@opengeni/react 6.35.1-canary.45058281793001 → 6.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/app-state.js +34 -34
- package/dist/app/components/Composer.js +43 -43
- package/dist/app/components/add-card-dialog.js +1 -1
- package/dist/app/components/add-card.js +2 -2
- package/dist/app/components/agent/agent-capability-picker.js +9 -9
- package/dist/app/components/agents/agent-can-use.js +47 -47
- package/dist/app/components/agents/agent-form-page.js +140 -140
- package/dist/app/components/agents/agent-page.js +123 -123
- package/dist/app/components/agents/agent-setup-sections.js +74 -74
- package/dist/app/components/agents/agent-skills.js +13 -13
- package/dist/app/components/agents/agent-trigger-chat-field.js +6 -6
- package/dist/app/components/agents/agent-trigger-dialog.js +31 -31
- package/dist/app/components/agents/agent-trigger-picker.js +8 -8
- package/dist/app/components/agents/agents-page.js +90 -90
- package/dist/app/components/agents/composer-agent-chip.js +59 -59
- package/dist/app/components/agents/session-agent-chip.js +54 -54
- package/dist/app/components/artifacts/app-package.js +10 -10
- package/dist/app/components/artifacts/artifact-browse-controls.js +3 -3
- package/dist/app/components/artifacts/artifact-library.js +28 -28
- package/dist/app/components/artifacts/artifact-page-chrome.js +1 -1
- package/dist/app/components/artifacts/artifact-viewer.js +68 -68
- package/dist/app/components/artifacts/chat-interactive-block.js +27 -27
- package/dist/app/components/artifacts/copy-artifact-link.js +1 -1
- package/dist/app/components/artifacts/file-reach-dialog.js +11 -11
- package/dist/app/components/artifacts/inline-chat-image.js +51 -51
- package/dist/app/components/artifacts/retained-file-preview.js +57 -57
- package/dist/app/components/artifacts/retained-text-preview.js +8 -8
- package/dist/app/components/artifacts/site-actions.js +11 -11
- package/dist/app/components/artifacts/site-audience.js +7 -7
- package/dist/app/components/artifacts/site-conversations.js +33 -33
- package/dist/app/components/artifacts/site-data.js +28 -28
- package/dist/app/components/artifacts/site-public-link.js +3 -3
- package/dist/app/components/artifacts/site-publishing-page.js +66 -66
- package/dist/app/components/artifacts/site-publishing.js +51 -51
- package/dist/app/components/artifacts/site-settings.js +65 -65
- package/dist/app/components/artifacts/site-version-menu.js +9 -9
- package/dist/app/components/billing-class-mark.js +8 -8
- package/dist/app/components/capabilities/capability-detail-sheet.js +18 -18
- package/dist/app/components/capabilities/capability-logo-source.js +27 -27
- package/dist/app/components/capabilities/capability-logo.js +1 -1
- package/dist/app/components/capabilities/connection-account-picker.js +2 -2
- package/dist/app/components/capabilities/connector-tool-permissions.js +8 -8
- package/dist/app/components/capabilities/native-connect-setup.js +31 -31
- package/dist/app/components/capabilities/own-logins-shared-heads-up.js +6 -6
- package/dist/app/components/capabilities/perform-capability-action.js +2 -2
- package/dist/app/components/capabilities/prepared-mcp-setup-card.js +30 -30
- package/dist/app/components/capabilities/session-capability-card.js +142 -142
- package/dist/app/components/capabilities/session-chrome-card.js +49 -49
- package/dist/app/components/capabilities/session-connect-inputs-card.js +33 -33
- package/dist/app/components/capabilities/session-custom-mcp-card.js +37 -37
- package/dist/app/components/capabilities/session-github-card.js +46 -46
- package/dist/app/components/capabilities/session-machine-card.js +50 -50
- package/dist/app/components/capabilities/session-personal-github-card.js +31 -31
- package/dist/app/components/capabilities/session-plugin-card.js +20 -20
- package/dist/app/components/capabilities/use-capabilities-catalog.js +3 -3
- package/dist/app/components/capabilities/use-connection-accounts.js +2 -2
- package/dist/app/components/chat-payment-pages.js +2 -2
- package/dist/app/components/command-menu/chat-status.js +25 -25
- package/dist/app/components/command-menu/chat-switcher.js +84 -84
- package/dist/app/components/command-menu/command-menu.js +113 -113
- package/dist/app/components/command-menu/shortcut-sheet.js +25 -25
- package/dist/app/components/composer-capabilities-menu-body.js +6 -6
- package/dist/app/components/composer-mobile-plus-panel.js +31 -31
- package/dist/app/components/composer-mobile-plus.js +3 -3
- package/dist/app/components/credit-required-gate.js +6 -6
- package/dist/app/components/credit-required-prompt.js +19 -19
- package/dist/app/components/credits/checkout-credits-celebration.js +1 -1
- package/dist/app/components/credits/checkout-return.js +1 -1
- package/dist/app/components/credits/coupon-redeem.js +1 -1
- package/dist/app/components/credits/credit-refusal-notice.js +7 -7
- package/dist/app/components/credits/own-subscription-plan-notice.js +3 -3
- package/dist/app/components/desktop/app-shots.js +9 -9
- package/dist/app/components/desktop/app-update.js +3 -3
- package/dist/app/components/desktop/computer-use.js +3 -3
- package/dist/app/components/desktop/this-computer.js +6 -6
- package/dist/app/components/feedback.js +10 -10
- package/dist/app/components/follow-up-repository-menu-body.js +14 -14
- package/dist/app/components/follow-up-repository-picker.js +1 -1
- package/dist/app/components/github-app-connect-launcher.js +2 -2
- package/dist/app/components/in-app-help-link.js +3 -3
- package/dist/app/components/knowledge/agent-learning-settings.js +3 -3
- package/dist/app/components/machines/connect-machine-dialog.js +25 -25
- package/dist/app/components/manual-repository-editor.js +4 -4
- package/dist/app/components/markdown.js +15 -15
- package/dist/app/components/model-identity.js +3 -3
- package/dist/app/components/models/models-ui.js +16 -16
- package/dist/app/components/models/provider-mark.js +3 -3
- package/dist/app/components/models/subscription-usage.js +5 -5
- package/dist/app/components/my-things.js +16 -16
- package/dist/app/components/own-where-it-works.js +10 -10
- package/dist/app/components/personal-resource-attachment-surface.js +4 -4
- package/dist/app/components/pickers.js +11 -11
- package/dist/app/components/rail/channel-create-dialog.js +5 -5
- package/dist/app/components/rail/project-glyph.js +52 -52
- package/dist/app/components/rail/project-profile.js +74 -74
- package/dist/app/components/rail/rail-context.js +2 -2
- package/dist/app/components/rail/rail-sections.js +157 -157
- package/dist/app/components/rail/session-header.js +128 -128
- package/dist/app/components/rail/session-list.js +155 -155
- package/dist/app/components/rail/session-row-content.js +7 -7
- package/dist/app/components/rail/session-row-hover-details.js +34 -34
- package/dist/app/components/rail/session-shell.js +196 -196
- package/dist/app/components/rail/site-session-group-heading.js +37 -37
- package/dist/app/components/repository-picker.js +14 -14
- package/dist/app/components/repository-ref-input.js +2 -2
- package/dist/app/components/secrets/session-secrets-panel.js +4 -4
- package/dist/app/components/session/agent-configuration-panel.js +46 -46
- package/dist/app/components/session/artifact-session-page.js +6 -6
- package/dist/app/components/session/banners.js +19 -19
- package/dist/app/components/session/chat-avatar.js +52 -52
- package/dist/app/components/session/console-new-conversation.js +109 -109
- package/dist/app/components/session/conversation-find.js +3 -3
- package/dist/app/components/session/descendant-requests.js +109 -109
- package/dist/app/components/session/editable-artifacts-workspace.js +59 -59
- package/dist/app/components/session/failed-session-banner.js +22 -22
- package/dist/app/components/session/failure-recovery-boundary.js +3 -3
- package/dist/app/components/session/human-input-delegation-record.js +3 -3
- package/dist/app/components/session/human-input.js +87 -87
- package/dist/app/components/session/inspector.js +143 -143
- package/dist/app/components/session/linked-panel.js +3 -3
- package/dist/app/components/session/message-actions.js +10 -10
- package/dist/app/components/session/model-recovery-notice.js +4 -4
- package/dist/app/components/session/new-session-settings-menu.js +30 -30
- package/dist/app/components/session/new-session-setup-strip.js +55 -55
- package/dist/app/components/session/pull-request-panel.js +24 -24
- package/dist/app/components/session/sandbox-recovery-actions.js +3 -3
- package/dist/app/components/session/sandbox-switcher.js +23 -23
- package/dist/app/components/session/sandbox-workspace.js +119 -119
- package/dist/app/components/session/search-markdown-highlight.js +16 -16
- package/dist/app/components/session/search-results-view.js +17 -17
- package/dist/app/components/session/session-admin-access.js +11 -11
- package/dist/app/components/session/session-admission-notice.js +11 -11
- package/dist/app/components/session/session-avatar-picker.js +59 -59
- package/dist/app/components/session/session-avatar.js +54 -54
- package/dist/app/components/session/session-machine-access-notice.js +11 -11
- package/dist/app/components/session/session-profile-dialog.js +70 -70
- package/dist/app/components/session/session-profile-editor.js +71 -71
- package/dist/app/components/session/session-retention.js +7 -7
- package/dist/app/components/session/session-search-dialog.js +22 -22
- package/dist/app/components/session/session-skill-reviews.js +5 -5
- package/dist/app/components/session/session-tenancy-control.js +27 -27
- package/dist/app/components/session/session-unattended-setting.js +3 -3
- package/dist/app/components/session/session-usage-limit-section.js +14 -14
- package/dist/app/components/session/share-chat-dialog.js +9 -9
- package/dist/app/components/session/subagents.js +23 -23
- package/dist/app/components/session/subscription-account-indicator.js +25 -25
- package/dist/app/components/session/subscription-account-menu.js +7 -7
- package/dist/app/components/session-connectors-menu-body.js +7 -7
- package/dist/app/components/settings/row-select.js +6 -6
- package/dist/app/components/toaster.js +2 -2
- package/dist/app/components/transcription-settings.js +10 -10
- package/dist/app/components/ui/destructive-confirm.js +9 -9
- package/dist/app/components/usage/usage-entry.js +8 -8
- package/dist/app/components/window-bar.js +26 -26
- package/dist/app/components/workspace-composer-plus.js +41 -41
- package/dist/app/components/workspace-reach.js +6 -6
- package/dist/app/embed/session-app.js +406 -406
- package/dist/app/lib/actions/actions-provider.js +20 -20
- package/dist/app/lib/agent-capabilities.js +4 -4
- package/dist/app/lib/app-connect-card.js +14 -14
- package/dist/app/lib/app-shared-key-dialog.js +8 -8
- package/dist/app/lib/app-surfaces.js +1 -1
- package/dist/app/lib/app-sync-opt-in.js +4 -4
- package/dist/app/lib/codex-usage-query.js +3 -3
- package/dist/app/lib/composer-agent.js +2 -2
- package/dist/app/lib/composer-connectors.js +31 -31
- package/dist/app/lib/composer-send-blocking.js +3 -3
- package/dist/app/lib/console-site.js +6 -6
- package/dist/app/lib/console-text.js +2 -2
- package/dist/app/lib/deployment-free-model.js +2 -2
- package/dist/app/lib/events.js +29 -29
- package/dist/app/lib/failed-session-copy.js +6 -6
- package/dist/app/lib/feedback-capture.js +2 -2
- package/dist/app/lib/free-credit-gap.js +2 -2
- package/dist/app/lib/model-access-onboarding.js +5 -5
- package/dist/app/lib/model-policy.js +1 -1
- package/dist/app/lib/move-chat-to-machine.js +5 -5
- package/dist/app/lib/personal-resource-attachments.js +1 -1
- package/dist/app/lib/session-branch-cache.js +18 -18
- package/dist/app/lib/session-create.js +5 -5
- package/dist/app/lib/session-group-pagination.js +18 -18
- package/dist/app/lib/session-hover-facts.js +25 -25
- package/dist/app/lib/session-list-dirty-scopes.js +19 -19
- package/dist/app/lib/session-model.js +3 -3
- package/dist/app/lib/session-rail.js +16 -16
- package/dist/app/lib/session-rename.js +4 -4
- package/dist/app/lib/sessions-group.js +22 -22
- package/dist/app/lib/site-tool-consent-dialog.js +23 -23
- package/dist/app/lib/site-tool-consent.js +1 -1
- package/dist/app/lib/turn-failure-analytics.js +7 -7
- package/dist/app/lib/unavailable-session-model.js +2 -2
- package/dist/app/lib/use-artifact-catalog.js +2 -2
- package/dist/app/lib/use-duplicate-site.js +4 -4
- package/dist/app/lib/use-follow-up-repositories.js +6 -6
- package/dist/app/lib/use-personal-resource-attachment.js +2 -2
- package/dist/app/lib/use-workspace-machines.js +10 -10
- package/dist/app/lib/use-workspace-model-catalog.js +6 -6
- package/dist/app/lib/use-workspace-rigs.js +7 -7
- package/dist/app/lib/workspace-navigation-preference.js +5 -5
- package/dist/app/lib/workspace-scope-context.js +4 -4
- package/dist/app/routes/app-page-view.js +17 -17
- package/dist/app/routes/app-page.js +2 -2
- package/dist/app/routes/artifacts.js +158 -158
- package/dist/app/routes/retained-artifact.js +114 -114
- package/dist/app/routes/session-unavailable.js +5 -5
- package/dist/app/routes/session.js +247 -247
- package/dist/app/routes/sessions-index-hydration.js +6 -6
- package/dist/app/routes/sessions-index.js +203 -203
- package/dist/app/routes/site-view.js +200 -200
- package/dist/artifacts-document.js +4 -4
- package/dist/artifacts-presentation.js +7 -7
- package/dist/artifacts-spreadsheet.js +4 -4
- package/dist/artifacts.js +50 -50
- package/dist/automation-model.js +7 -7
- package/dist/automations.js +67 -67
- package/dist/browser-viewer-EIEMRVFF.js +23 -0
- package/dist/chat-interactive-block-FV37LWYZ.js +22 -0
- package/dist/chunk-2COBAJC7.js +818 -0
- package/dist/chunk-2HS3IUXE.js +170 -0
- package/dist/chunk-2JTMFYCT.js +296 -0
- package/dist/chunk-2JXKP4M6.js +114 -0
- package/dist/chunk-2P5K7CBH.js +269 -0
- package/dist/chunk-2XGRHMRI.js +250 -0
- package/dist/chunk-332BYSAZ.js +65 -0
- package/dist/chunk-3EM5GTP3.js +158 -0
- package/dist/chunk-3L5ATO4A.js +52 -0
- package/dist/chunk-3S3PJB7J.js +107 -0
- package/dist/chunk-3SBKYPNM.js +270 -0
- package/dist/chunk-3Z7VA6ET.js +114 -0
- package/dist/chunk-43BRJBEV.js +207 -0
- package/dist/chunk-46LZO4ZO.js +188 -0
- package/dist/chunk-46ZC5VNC.js +38 -0
- package/dist/chunk-4AH4EEHE.js +298 -0
- package/dist/chunk-4D3YJNVN.js +270 -0
- package/dist/chunk-4E5QVAT4.js +4480 -0
- package/dist/chunk-4E5QVAT4.js.map +1 -0
- package/dist/chunk-4I4RTI4D.js +37 -0
- package/dist/chunk-4KASGJTF.js +287 -0
- package/dist/chunk-4RUKLIOF.js +1263 -0
- package/dist/chunk-4UU7FN3I.js +650 -0
- package/dist/chunk-4VEIBNC2.js +427 -0
- package/dist/chunk-4VEIBNC2.js.map +1 -0
- package/dist/chunk-4ZRNASBF.js +2551 -0
- package/dist/chunk-5EJBPQI2.js +41 -0
- package/dist/chunk-5G4IGG7F.js +209 -0
- package/dist/chunk-5JAYZOAW.js +131 -0
- package/dist/chunk-5JOKVDSR.js +789 -0
- package/dist/chunk-5MP3G7ZV.js +1236 -0
- package/dist/chunk-5OVRMKP5.js +42 -0
- package/dist/chunk-5SGTRULO.js +1184 -0
- package/dist/chunk-5SOL4INY.js +572 -0
- package/dist/chunk-5Y34P32B.js +27 -0
- package/dist/chunk-62HIKJ5F.js +72 -0
- package/dist/chunk-62T2ZPD5.js +266 -0
- package/dist/chunk-63VNZRLY.js +386 -0
- package/dist/chunk-6CDBX3XG.js +33 -0
- package/dist/chunk-6D3D2JWY.js +278 -0
- package/dist/chunk-6DOIINY4.js +201 -0
- package/dist/chunk-6DQBUKGJ.js +112 -0
- package/dist/chunk-6SETNFNH.js +1399 -0
- package/dist/chunk-6XYFMHNT.js +56 -0
- package/dist/chunk-6YU3WV2P.js +33 -0
- package/dist/chunk-6YUHDFOZ.js +351 -0
- package/dist/chunk-72EOXOR7.js +1185 -0
- package/dist/chunk-72ND4ALI.js +532 -0
- package/dist/chunk-757LE32E.js +283 -0
- package/dist/chunk-7FDEV6XW.js +89 -0
- package/dist/chunk-7S2S4MXR.js +138 -0
- package/dist/chunk-7SYCHMXS.js +200 -0
- package/dist/chunk-7TVAPQOV.js +5089 -0
- package/dist/chunk-7UDLRDHK.js +214 -0
- package/dist/chunk-7YLQCMZP.js +357 -0
- package/dist/chunk-A5GX3CAE.js +849 -0
- package/dist/chunk-A7EBV2EB.js +318 -0
- package/dist/chunk-AB5SPXUR.js +114 -0
- package/dist/chunk-AHVQGL5A.js +202 -0
- package/dist/chunk-AI77ZKEV.js +26 -0
- package/dist/chunk-AIX2D6RB.js +1019 -0
- package/dist/chunk-AVSIHP7Q.js +192 -0
- package/dist/chunk-AWK23Q32.js +107 -0
- package/dist/chunk-AYVWA6KD.js +432 -0
- package/dist/chunk-AYZXE4IM.js +2553 -0
- package/dist/chunk-AZGGSPTE.js +124 -0
- package/dist/chunk-B45TB4HY.js +931 -0
- package/dist/chunk-BIUJHNVR.js +46 -0
- package/dist/chunk-BJUOKUE5.js +234 -0
- package/dist/chunk-BPEEVMKH.js +292 -0
- package/dist/chunk-BPHPAGYF.js +74 -0
- package/dist/chunk-BXMND6YU.js +307 -0
- package/dist/chunk-C6OM2SRG.js +117 -0
- package/dist/chunk-CIRCUDKF.js +1309 -0
- package/dist/chunk-CLKR4UG3.js +403 -0
- package/dist/chunk-CPX6BHER.js +554 -0
- package/dist/chunk-CVC4RO7D.js +155 -0
- package/dist/chunk-D3YJAQGK.js +103 -0
- package/dist/chunk-DFQ72BLS.js +1024 -0
- package/dist/chunk-DG65PJOZ.js +4564 -0
- package/dist/chunk-DNAXAS5R.js +406 -0
- package/dist/chunk-DO247ITS.js +175 -0
- package/dist/chunk-DONBARLL.js +154 -0
- package/dist/chunk-DTLXQ3ZU.js +373 -0
- package/dist/chunk-EAXTACI4.js +274 -0
- package/dist/chunk-EDPH7AJH.js +412 -0
- package/dist/chunk-EER3B3G5.js +10036 -0
- package/dist/chunk-EER3B3G5.js.map +1 -0
- package/dist/chunk-EFKQHCGJ.js +276 -0
- package/dist/chunk-EILSPMVD.js +133 -0
- package/dist/chunk-EK7KIETS.js +211 -0
- package/dist/chunk-EMWT6GOK.js +437 -0
- package/dist/chunk-EO22NST7.js +259 -0
- package/dist/chunk-ER5MYLIE.js +256 -0
- package/dist/chunk-ES5HKVQF.js +234 -0
- package/dist/chunk-EXRQ5ATC.js +738 -0
- package/dist/chunk-EXRQ5ATC.js.map +1 -0
- package/dist/chunk-F26YBYAZ.js +111 -0
- package/dist/chunk-F6QP4GSK.js +515 -0
- package/dist/chunk-F7QEO7M2.js +851 -0
- package/dist/chunk-FJFGDLXB.js +12 -0
- package/dist/chunk-FLLJ2WXW.js +113 -0
- package/dist/chunk-FMBJKMT4.js +107 -0
- package/dist/chunk-FPN4I4CG.js +3690 -0
- package/dist/chunk-FUXFJTXL.js +3070 -0
- package/dist/chunk-FZI4QOAV.js +3996 -0
- package/dist/chunk-FZI4QOAV.js.map +1 -0
- package/dist/chunk-G6SSSX5R.js +158 -0
- package/dist/chunk-GBGCMHBB.js +608 -0
- package/dist/chunk-GIHE7U3Y.js +174 -0
- package/dist/chunk-GJ4GTYOD.js +372 -0
- package/dist/chunk-GLSDWNFV.js +432 -0
- package/dist/chunk-GMGAW3T6.js +278 -0
- package/dist/chunk-GNGI6XFN.js +43 -0
- package/dist/chunk-GO5VIAA7.js +264 -0
- package/dist/chunk-GSW4YHZE.js +229 -0
- package/dist/chunk-GUC6IWEY.js +407 -0
- package/dist/chunk-GWAY3SO5.js +15 -0
- package/dist/chunk-GXOTNT5D.js +168 -0
- package/dist/chunk-GZZCVF76.js +3851 -0
- package/dist/chunk-H4VMHFOX.js +214 -0
- package/dist/chunk-HA5RFQAF.js +110 -0
- package/dist/chunk-HFROJDFQ.js +118 -0
- package/dist/chunk-HHFFPE67.js +220 -0
- package/dist/chunk-HJLHGXWL.js +103 -0
- package/dist/chunk-HKNMNL7B.js +2984 -0
- package/dist/chunk-HT7MBHLY.js +1021 -0
- package/dist/chunk-I5FSUZVW.js +584 -0
- package/dist/chunk-IINQO425.js +246 -0
- package/dist/chunk-IIXNEOK4.js +1022 -0
- package/dist/chunk-IM3WA5AL.js +311 -0
- package/dist/chunk-IX4P4OGR.js +399 -0
- package/dist/chunk-IX5VHZYS.js +129 -0
- package/dist/chunk-JB3TSUZO.js +263 -0
- package/dist/chunk-JIC6RLUB.js +27 -0
- package/dist/chunk-JNJIZCTN.js +172 -0
- package/dist/chunk-JNV5ZPUV.js +828 -0
- package/dist/chunk-JPQFVR24.js +50 -0
- package/dist/chunk-JPZVMXDP.js +1333 -0
- package/dist/chunk-JVPF34MX.js +215 -0
- package/dist/chunk-KED67KAF.js +85 -0
- package/dist/chunk-KJ72GMZ2.js +378 -0
- package/dist/chunk-KTGKGHEA.js +75 -0
- package/dist/chunk-KU77XHWB.js +285 -0
- package/dist/chunk-KVPQUADA.js +5915 -0
- package/dist/chunk-KVPQUADA.js.map +1 -0
- package/dist/chunk-KXBLLFOO.js +249 -0
- package/dist/chunk-L6WVCO6D.js +61 -0
- package/dist/chunk-LIOZ2MXJ.js +380 -0
- package/dist/chunk-LIOZ2MXJ.js.map +1 -0
- package/dist/chunk-LPEFULJY.js +73 -0
- package/dist/chunk-LRMGPO7E.js +98 -0
- package/dist/chunk-LVKTKORH.js +121 -0
- package/dist/chunk-MCPKUVMQ.js +99 -0
- package/dist/chunk-MFLU3466.js +99 -0
- package/dist/chunk-MIUJ3EH5.js +60 -0
- package/dist/chunk-MIUMNTIJ.js +175 -0
- package/dist/chunk-ML46TXRM.js +113 -0
- package/dist/chunk-MO3XJQN2.js +629 -0
- package/dist/chunk-MQRHTOQ2.js +218 -0
- package/dist/chunk-MVYQDBE6.js +79 -0
- package/dist/chunk-NE5P7LFQ.js +100 -0
- package/dist/chunk-NIPON7YB.js +850 -0
- package/dist/chunk-NIPON7YB.js.map +1 -0
- package/dist/chunk-NPBEUU22.js +196 -0
- package/dist/chunk-NSXKGS2K.js +178 -0
- package/dist/chunk-NUEFORM6.js +2317 -0
- package/dist/chunk-NZOFNQNC.js +176 -0
- package/dist/chunk-O664PL2U.js +47 -0
- package/dist/chunk-O664PL2U.js.map +1 -0
- package/dist/chunk-OATXCLTY.js +211 -0
- package/dist/chunk-OG3ELROW.js +538 -0
- package/dist/chunk-OI4WS7FW.js +162 -0
- package/dist/chunk-OITGZUDC.js +82 -0
- package/dist/chunk-OKD2LBMK.js +333 -0
- package/dist/chunk-OLFOGAWU.js +273 -0
- package/dist/chunk-OLFOGAWU.js.map +1 -0
- package/dist/chunk-OSA4CGST.js +134 -0
- package/dist/chunk-OXYAKUFU.js +401 -0
- package/dist/chunk-OYMSMU5O.js +396 -0
- package/dist/chunk-P4NZ72KY.js +162 -0
- package/dist/chunk-PBYL2VIM.js +379 -0
- package/dist/chunk-PDW3OOSZ.js +505 -0
- package/dist/chunk-PGRKTQIW.js +523 -0
- package/dist/chunk-PPQJIVGM.js +175 -0
- package/dist/chunk-PYMQM65Y.js +125 -0
- package/dist/chunk-Q273Q33U.js +166 -0
- package/dist/chunk-Q4CLS2HL.js +340 -0
- package/dist/chunk-QA5UNVHD.js +85 -0
- package/dist/chunk-QFOBUA2J.js +428 -0
- package/dist/chunk-QLIM4D56.js +1095 -0
- package/dist/chunk-QMQF5U2D.js +20 -0
- package/dist/chunk-QNOWKKZ4.js +40 -0
- package/dist/chunk-QPOUPVPD.js +144 -0
- package/dist/chunk-QTJAQ6DS.js +48 -0
- package/dist/chunk-QUOFP3G7.js +404 -0
- package/dist/chunk-QVOTPOXK.js +29 -0
- package/dist/chunk-QYZ5RVGM.js +184 -0
- package/dist/chunk-R7CVDKRN.js +2580 -0
- package/dist/chunk-RB7MXNZD.js +639 -0
- package/dist/chunk-RDZQFZOQ.js +187 -0
- package/dist/chunk-RIHKEGWS.js +194 -0
- package/dist/chunk-ROSB7GF6.js +57 -0
- package/dist/chunk-RP3YMYCX.js +723 -0
- package/dist/chunk-RPHXJHNX.js +271 -0
- package/dist/chunk-RVC3M66H.js +191 -0
- package/dist/chunk-S3OTJAAC.js +283 -0
- package/dist/chunk-SBWPMVRN.js +56 -0
- package/dist/chunk-SERECSAR.js +138 -0
- package/dist/chunk-SHSEF3GJ.js +187 -0
- package/dist/chunk-SMS2M3RG.js +772 -0
- package/dist/chunk-SRDHDIRQ.js +177 -0
- package/dist/chunk-SXRYA7NN.js +389 -0
- package/dist/chunk-SYA3WYG4.js +1187 -0
- package/dist/chunk-SYYFA7W7.js +23 -0
- package/dist/chunk-T2QDSTBH.js +371 -0
- package/dist/chunk-TFSCGFYV.js +251 -0
- package/dist/chunk-TGCKZOSX.js +246 -0
- package/dist/chunk-THILLYQM.js +132 -0
- package/dist/chunk-TI6LGUEZ.js +2412 -0
- package/dist/chunk-TSY6YZL2.js +366 -0
- package/dist/chunk-TW2RHTLH.js +3321 -0
- package/dist/chunk-TWA5G277.js +141 -0
- package/dist/chunk-TZZ2S4XI.js +247 -0
- package/dist/chunk-U5D3K53R.js +58 -0
- package/dist/chunk-UECD27LX.js +251 -0
- package/dist/chunk-UFJDETKG.js +108 -0
- package/dist/chunk-UHCFYX4I.js +570 -0
- package/dist/chunk-UHTURYJO.js +898 -0
- package/dist/chunk-UJH63JT3.js +67 -0
- package/dist/chunk-UOLDS6S5.js +1152 -0
- package/dist/chunk-UUE3OGXI.js +84 -0
- package/dist/chunk-UUNJ2E57.js +391 -0
- package/dist/chunk-UYQVWRAH.js +199 -0
- package/dist/chunk-UYWVK7JQ.js +234 -0
- package/dist/chunk-UYWWUEL4.js +126 -0
- package/dist/chunk-V4CQKX5H.js +48 -0
- package/dist/chunk-V4QM7GDQ.js +3176 -0
- package/dist/chunk-V5Y74WII.js +91 -0
- package/dist/chunk-VGGZLUQK.js +129 -0
- package/dist/chunk-VGX636MB.js +311 -0
- package/dist/chunk-VGZLFQO2.js +773 -0
- package/dist/chunk-VJWZATNF.js +137 -0
- package/dist/chunk-VMWCIC2N.js +50 -0
- package/dist/chunk-VPWKTIU5.js +227 -0
- package/dist/chunk-VXOLG6YB.js +469 -0
- package/dist/chunk-W2NAU5VB.js +1628 -0
- package/dist/chunk-WGORKMR3.js +353 -0
- package/dist/chunk-WMIDELSJ.js +391 -0
- package/dist/chunk-WSOSGL2G.js +383 -0
- package/dist/chunk-WXUUOM4X.js +400 -0
- package/dist/chunk-WZ74QHLE.js +4863 -0
- package/dist/chunk-X2OWM2ME.js +1870 -0
- package/dist/chunk-X6UMGG4T.js +68 -0
- package/dist/chunk-XDXKB25W.js +93 -0
- package/dist/chunk-XE4PHI74.js +231 -0
- package/dist/chunk-XHF2XNU5.js +73 -0
- package/dist/chunk-XLJ4SQFS.js +230 -0
- package/dist/chunk-XOD4FX6M.js +2434 -0
- package/dist/chunk-XODQ2GPF.js +3110 -0
- package/dist/chunk-XT54RTAM.js +441 -0
- package/dist/chunk-YAVW5OJ5.js +131 -0
- package/dist/chunk-YDQHFJM2.js +83 -0
- package/dist/chunk-YH6O6OQ6.js +1356 -0
- package/dist/chunk-YIKPC2QP.js +794 -0
- package/dist/chunk-ZD7PKYC4.js +335 -0
- package/dist/chunk-ZEQYHEWP.js +406 -0
- package/dist/chunk-ZMYL6DTE.js +225 -0
- package/dist/chunk-ZP3QCPYG.js +21 -0
- package/dist/chunk-ZRVUCTSI.js +265 -0
- package/dist/chunk-ZSI3ITRK.js +449 -0
- package/dist/chunk-ZZMEQCIZ.js +236 -0
- package/dist/composer.js +36 -36
- package/dist/computer-viewer-ZBY3BPYW.js +21 -0
- package/dist/connect.js +29 -29
- package/dist/connection-step-up-JQ4OFSQN.js +145 -0
- package/dist/desktop-dictation.js +24 -24
- package/dist/desktop.js +2 -2
- package/dist/editor.js +2 -2
- package/dist/embedded-new-voice-ZB5XLKLU.js +25 -0
- package/dist/embedded-voice-MZJISDCS.js +25 -0
- package/dist/fleet-decision-row-LG3SYVR3.js +361 -0
- package/dist/human-input-model.d.ts +2 -0
- package/dist/in-chat-connect-model.js +6 -6
- package/dist/index.js +298 -298
- package/dist/interaction.js +9 -9
- package/dist/latest-question-QWJTXMFA.js +1 -1
- package/dist/machine-request-model.js +1 -1
- package/dist/machines.js +8 -8
- package/dist/meetings-recorder.js +1 -1
- package/dist/meetings.js +122 -122
- package/dist/messages/en.d.ts +10 -0
- package/dist/messages.js +1 -1
- package/dist/model-levels.js +2 -2
- package/dist/model-picker-model.js +2 -2
- package/dist/model-policy-picker-menu-5Y72PLNF.js +23 -0
- package/dist/model-policy.js +1 -1
- package/dist/payment-page-card-YPSXRHBA.js +226 -0
- package/dist/platform-activity-row-ZU4MEBNK.js +156 -0
- package/dist/queue-surface-implementation-6Q25RPH6.js +932 -0
- package/dist/realtime.js +17 -17
- package/dist/recorder-host-JD4GWJ2Z.js +80 -0
- package/dist/recordings.js +3 -3
- package/dist/sandbox-files-HCLEEJMU.js +28 -0
- package/dist/session-app.js +406 -406
- package/dist/session-connect-cards-DRKEN3Z4.js +27 -0
- package/dist/session-list-model.js +3 -3
- package/dist/session-realtime-IZOTTRH6.js +30 -0
- package/dist/session-realtime.js +2 -2
- package/dist/session-ui.js +95 -95
- package/dist/session.js +42 -42
- package/dist/sites.js +3 -3
- package/dist/terminal.js +2 -2
- package/dist/this-computer.js +3 -3
- package/dist/timeline-annotation-markers-WWXNJOXI.js +157 -0
- package/dist/timeline-annotation-selection-ZKRIQFIQ.js +208 -0
- package/dist/timeline-annotations-dialog-4IMKTOXJ.js +283 -0
- package/dist/timeline-model.js +58 -58
- package/dist/ui/access-list.js +19 -19
- package/dist/ui/cadence-picker.js +7 -7
- 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 +6 -6
- package/dist/ui/detail-sheet.js +6 -6
- package/dist/ui/diff-view.js +2 -2
- package/dist/ui/disclosure.js +7 -7
- package/dist/ui/email-chips-input.js +3 -3
- package/dist/ui/field.js +2 -2
- package/dist/ui/flush-form-page.js +6 -6
- package/dist/ui/form-dialog.js +5 -5
- package/dist/ui/list-row.js +7 -7
- package/dist/ui/load-failure.js +3 -3
- package/dist/ui/relative-time.js +3 -3
- package/dist/ui/revision-history.js +10 -10
- package/dist/ui/role-select.js +10 -10
- package/dist/ui/select-menu.js +5 -5
- package/dist/ui/settings-nav.js +6 -6
- package/dist/ui/sheet.js +2 -2
- package/dist/ui/usage-meter.js +4 -4
- package/dist/usage.js +3 -3
- package/dist/workbench.js +11 -11
- package/package.json +5 -6
- package/src/components/secret-question-field.tsx +2 -1
- package/src/human-input-model.ts +53 -12
- package/src/messages/en.ts +10 -0
- package/src/model-policy.ts +3 -1
- package/dist/browser-viewer-WGRM3JME.js +0 -23
- package/dist/chat-interactive-block-5E3UQYHO.js +0 -22
- package/dist/chunk-26KK6DN5.js +0 -41
- package/dist/chunk-272XEENJ.js +0 -100
- package/dist/chunk-2AU2S5NP.js +0 -772
- package/dist/chunk-2L7TCAO4.js +0 -188
- package/dist/chunk-2MXP6ZRP.js +0 -1095
- package/dist/chunk-2Q4XBV3J.js +0 -113
- package/dist/chunk-2U5ZJMNP.js +0 -386
- package/dist/chunk-2VHPKSFK.js +0 -1236
- package/dist/chunk-2WF5XIPA.js +0 -48
- package/dist/chunk-2Y53MMGA.js +0 -56
- package/dist/chunk-2ZR75AUO.js +0 -225
- package/dist/chunk-33QC4RN7.js +0 -133
- package/dist/chunk-35LBFD5I.js +0 -311
- package/dist/chunk-37J3ZX2N.js +0 -270
- package/dist/chunk-37SXZVSY.js +0 -380
- package/dist/chunk-37SXZVSY.js.map +0 -1
- package/dist/chunk-3ITEAD3E.js +0 -639
- package/dist/chunk-3JBLX5BN.js +0 -629
- package/dist/chunk-3JYID53J.js +0 -432
- package/dist/chunk-3MZCXSC7.js +0 -723
- package/dist/chunk-3NRJ4Z3A.js +0 -3176
- package/dist/chunk-3UG2AJHR.js +0 -89
- package/dist/chunk-3XS3A6Y6.js +0 -162
- package/dist/chunk-3ZBQIZEM.js +0 -214
- package/dist/chunk-3ZVACRTK.js +0 -82
- package/dist/chunk-46USHCHK.js +0 -389
- package/dist/chunk-4IMVT7OU.js +0 -263
- package/dist/chunk-4J4IPUPZ.js +0 -103
- package/dist/chunk-4PG2BEQA.js +0 -175
- package/dist/chunk-4YQFDBKE.js +0 -532
- package/dist/chunk-5ERDSF2C.js +0 -79
- package/dist/chunk-5EZELID5.js +0 -789
- package/dist/chunk-5NGW5K2D.js +0 -1333
- package/dist/chunk-5SK5PYFN.js +0 -15
- package/dist/chunk-5UI3VPCY.js +0 -1152
- package/dist/chunk-5W4ZGFXZ.js +0 -373
- package/dist/chunk-64XZTYX4.js +0 -572
- package/dist/chunk-67MFNMGH.js +0 -200
- package/dist/chunk-6C55RLFY.js +0 -103
- package/dist/chunk-6DFHNNWJ.js +0 -121
- package/dist/chunk-6F34IWSA.js +0 -47
- package/dist/chunk-6F34IWSA.js.map +0 -1
- package/dist/chunk-6FWBGVFL.js +0 -5905
- package/dist/chunk-6FWBGVFL.js.map +0 -1
- package/dist/chunk-6GBJFFQL.js +0 -215
- package/dist/chunk-6H2OQ6XG.js +0 -318
- package/dist/chunk-6LUF4TOE.js +0 -91
- package/dist/chunk-6M2WXQX5.js +0 -523
- package/dist/chunk-6O6CHBD3.js +0 -29
- package/dist/chunk-6U3PE427.js +0 -794
- package/dist/chunk-6V2UH36U.js +0 -187
- package/dist/chunk-73YALMGG.js +0 -1022
- package/dist/chunk-7JNWIGM4.js +0 -1628
- package/dist/chunk-7QODDTOI.js +0 -554
- package/dist/chunk-7TEXZ5LW.js +0 -46
- package/dist/chunk-A4SKSSSS.js +0 -2553
- package/dist/chunk-A7Z65D33.js +0 -400
- package/dist/chunk-ACUDUVDJ.js +0 -231
- package/dist/chunk-AI7XM4MY.js +0 -194
- package/dist/chunk-AJEOTFQE.js +0 -234
- package/dist/chunk-AKQSOR4G.js +0 -538
- package/dist/chunk-AP4FMXAM.js +0 -353
- package/dist/chunk-AQHQUPEF.js +0 -202
- package/dist/chunk-ATVSG5CO.js +0 -296
- package/dist/chunk-B6YDINPE.js +0 -68
- package/dist/chunk-BMOYN4HY.js +0 -283
- package/dist/chunk-BMSMK7SA.js +0 -84
- package/dist/chunk-BY7AWWDB.js +0 -177
- package/dist/chunk-BZ4GSY44.js +0 -2412
- package/dist/chunk-CGYPX3HJ.js +0 -292
- package/dist/chunk-CHYAUIZ3.js +0 -2984
- package/dist/chunk-CJEQQBNZ.js +0 -818
- package/dist/chunk-CP53LM7W.js +0 -1021
- package/dist/chunk-CQW4ZPU4.js +0 -191
- package/dist/chunk-CTKUOOU4.js +0 -246
- package/dist/chunk-CWKFPDYB.js +0 -124
- package/dist/chunk-CYBRD5BP.js +0 -113
- package/dist/chunk-CYPMAJ75.js +0 -449
- package/dist/chunk-CYPNXHWM.js +0 -379
- package/dist/chunk-D45IDQBW.js +0 -114
- package/dist/chunk-D4RTU236.js +0 -230
- package/dist/chunk-DBGOJIMM.js +0 -399
- package/dist/chunk-DD3DT5MY.js +0 -3321
- package/dist/chunk-DG3GW325.js +0 -72
- package/dist/chunk-DHLGGANG.js +0 -50
- package/dist/chunk-DHZW6JXQ.js +0 -10035
- package/dist/chunk-DHZW6JXQ.js.map +0 -1
- package/dist/chunk-DLHR7HHS.js +0 -931
- package/dist/chunk-DM7JLUWN.js +0 -406
- package/dist/chunk-DMQY35LC.js +0 -98
- package/dist/chunk-EBVL3YJQ.js +0 -67
- package/dist/chunk-EIQQYUOT.js +0 -274
- package/dist/chunk-EMART4X3.js +0 -107
- package/dist/chunk-EMJSJTIE.js +0 -207
- package/dist/chunk-ES3JAYQJ.js +0 -214
- package/dist/chunk-EWJ7WEZT.js +0 -175
- package/dist/chunk-FC6MLU5C.js +0 -52
- package/dist/chunk-FD6F2OE5.js +0 -515
- package/dist/chunk-FE4HNBHF.js +0 -48
- package/dist/chunk-FFXJF5KU.js +0 -201
- package/dist/chunk-FN5UTQSL.js +0 -117
- package/dist/chunk-FT4ZKYTG.js +0 -138
- package/dist/chunk-FYOGQHCD.js +0 -209
- package/dist/chunk-FZOK37SC.js +0 -155
- package/dist/chunk-GA42NSDJ.js +0 -132
- package/dist/chunk-GDWKVSMK.js +0 -372
- package/dist/chunk-GH3Q5XW4.js +0 -2551
- package/dist/chunk-GHLUZSIB.js +0 -259
- package/dist/chunk-GISBCT5E.js +0 -366
- package/dist/chunk-GKA5LFYR.js +0 -21
- package/dist/chunk-GPRM5GYZ.js +0 -131
- package/dist/chunk-GWJLR55B.js +0 -333
- package/dist/chunk-GX3RAB4W.js +0 -357
- package/dist/chunk-GYNTJYWY.js +0 -166
- package/dist/chunk-GYWQ4KVM.js +0 -85
- package/dist/chunk-H2AOQJQP.js +0 -378
- package/dist/chunk-H35G5UHL.js +0 -111
- package/dist/chunk-H6PJEWZH.js +0 -170
- package/dist/chunk-HHUTU5EN.js +0 -108
- package/dist/chunk-HPH3MFFE.js +0 -3996
- package/dist/chunk-HPH3MFFE.js.map +0 -1
- package/dist/chunk-HQZ6NGUU.js +0 -114
- package/dist/chunk-HSEHIVAE.js +0 -4564
- package/dist/chunk-HTYDPAJL.js +0 -391
- package/dist/chunk-HUKGLWAY.js +0 -174
- package/dist/chunk-HUTQJY3F.js +0 -23
- package/dist/chunk-HUWJZRD3.js +0 -311
- package/dist/chunk-HVL7TCB5.js +0 -50
- package/dist/chunk-HWOYJOKK.js +0 -266
- package/dist/chunk-HXANXMPH.js +0 -3851
- package/dist/chunk-HZBPL4KB.js +0 -244
- package/dist/chunk-HZBPL4KB.js.map +0 -1
- package/dist/chunk-I4CXHN6E.js +0 -269
- package/dist/chunk-I6YOCSEP.js +0 -37
- package/dist/chunk-IAXF3IO6.js +0 -1399
- package/dist/chunk-IGUPUA3G.js +0 -403
- package/dist/chunk-IKAVNCO5.js +0 -112
- package/dist/chunk-IMWP2Q4W.js +0 -137
- package/dist/chunk-IXPLYZFO.js +0 -40
- package/dist/chunk-J3CHK7NH.js +0 -12
- package/dist/chunk-JAC5I2BN.js +0 -85
- package/dist/chunk-JK2WTBLD.js +0 -158
- package/dist/chunk-JOKNFHFU.js +0 -412
- package/dist/chunk-JOVCPP44.js +0 -441
- package/dist/chunk-JTRRMV7B.js +0 -469
- package/dist/chunk-K2WDXLZS.js +0 -134
- package/dist/chunk-K6JW7GB3.js +0 -828
- package/dist/chunk-KA5H2Z3E.js +0 -168
- package/dist/chunk-KQBVH5LN.js +0 -229
- package/dist/chunk-KQVHSEQQ.js +0 -20
- package/dist/chunk-KREVCOE7.js +0 -187
- package/dist/chunk-KYDLVMKA.js +0 -99
- package/dist/chunk-L4PIAAQB.js +0 -4863
- package/dist/chunk-L64LMYJD.js +0 -114
- package/dist/chunk-L7XVC27Z.js +0 -850
- package/dist/chunk-L7XVC27Z.js.map +0 -1
- package/dist/chunk-L7ZLPS37.js +0 -371
- package/dist/chunk-LDZSUY7K.js +0 -298
- package/dist/chunk-LK3AAMN7.js +0 -404
- package/dist/chunk-LLVJ3P2N.js +0 -428
- package/dist/chunk-LPHBZCCV.js +0 -1263
- package/dist/chunk-LT3MK2XP.js +0 -608
- package/dist/chunk-M72GFKDP.js +0 -335
- package/dist/chunk-M73QQXUQ.js +0 -270
- package/dist/chunk-M7NPDODK.js +0 -1870
- package/dist/chunk-MB5EK2PA.js +0 -211
- package/dist/chunk-MB5WRIYX.js +0 -33
- package/dist/chunk-MBYHDOTU.js +0 -42
- package/dist/chunk-MDIHQGPV.js +0 -276
- package/dist/chunk-MQFJPFL4.js +0 -5089
- package/dist/chunk-MU6IU4IH.js +0 -650
- package/dist/chunk-N7IOCNWK.js +0 -1019
- package/dist/chunk-NDJPEX7P.js +0 -1187
- package/dist/chunk-NLKHAZMG.js +0 -898
- package/dist/chunk-NLYAWFDY.js +0 -199
- package/dist/chunk-NNIUBJOE.js +0 -154
- package/dist/chunk-NSBOITEM.js +0 -175
- package/dist/chunk-NUZNJSL5.js +0 -285
- package/dist/chunk-NZFMEGPE.js +0 -287
- package/dist/chunk-O4UAH7WR.js +0 -427
- package/dist/chunk-O4UAH7WR.js.map +0 -1
- package/dist/chunk-O4VCJWKV.js +0 -176
- package/dist/chunk-OE4QJJ4C.js +0 -432
- package/dist/chunk-OQEAJGAJ.js +0 -65
- package/dist/chunk-ORSFNFNY.js +0 -1184
- package/dist/chunk-OU2J6K3L.js +0 -129
- package/dist/chunk-OVAT4PIR.js +0 -437
- package/dist/chunk-OWF2AVT6.js +0 -407
- package/dist/chunk-P2OHWZMB.js +0 -256
- package/dist/chunk-PCSRHFRF.js +0 -75
- package/dist/chunk-PH2FDKJE.js +0 -250
- package/dist/chunk-PMBZMVKE.js +0 -33
- package/dist/chunk-PNLVWZSM.js +0 -211
- package/dist/chunk-PQ7WJAKL.js +0 -74
- package/dist/chunk-PTSRBKQC.js +0 -118
- package/dist/chunk-PTUIF4TT.js +0 -144
- package/dist/chunk-PV7X4PRR.js +0 -570
- package/dist/chunk-Q35LFE7H.js +0 -26
- package/dist/chunk-QAHGGBL2.js +0 -1024
- package/dist/chunk-QI5RXPYP.js +0 -56
- package/dist/chunk-QODAMEOR.js +0 -2317
- package/dist/chunk-QXOO5U46.js +0 -172
- package/dist/chunk-R6OBJ7LF.js +0 -131
- package/dist/chunk-R6WQLIFX.js +0 -73
- package/dist/chunk-R7SBV5KD.js +0 -3690
- package/dist/chunk-R7ZIFQ7D.js +0 -738
- package/dist/chunk-R7ZIFQ7D.js.map +0 -1
- package/dist/chunk-RFBJ6TUL.js +0 -43
- package/dist/chunk-RLNJSAHP.js +0 -851
- package/dist/chunk-RMVKH4EE.js +0 -351
- package/dist/chunk-RO2UO3VN.js +0 -107
- package/dist/chunk-ROCQ3IDW.js +0 -184
- package/dist/chunk-RPWI6A3H.js +0 -849
- package/dist/chunk-RTJVIXH5.js +0 -141
- package/dist/chunk-RZ5IQ3SX.js +0 -278
- package/dist/chunk-S7NX6KSE.js +0 -406
- package/dist/chunk-SFWP4DNI.js +0 -218
- package/dist/chunk-SI2RFGQX.js +0 -158
- package/dist/chunk-SKHYIIH4.js +0 -107
- package/dist/chunk-SOC5IBQT.js +0 -383
- package/dist/chunk-SUMBC7BQ.js +0 -396
- package/dist/chunk-T4UTYGB2.js +0 -110
- package/dist/chunk-T6N33M46.js +0 -251
- package/dist/chunk-TD5EKKVD.js +0 -83
- package/dist/chunk-TGG3ODCS.js +0 -99
- package/dist/chunk-TGVTVLNI.js +0 -401
- package/dist/chunk-TLTE3QSX.js +0 -73
- package/dist/chunk-TXAMGOUG.js +0 -2580
- package/dist/chunk-U4OIE2MJ.js +0 -271
- package/dist/chunk-UBTDG6GC.js +0 -126
- package/dist/chunk-UFRXYZCJ.js +0 -125
- package/dist/chunk-UHU2WESP.js +0 -340
- package/dist/chunk-UKDLZ76A.js +0 -2434
- package/dist/chunk-UPRN4FBY.js +0 -38
- package/dist/chunk-UQDT3SM2.js +0 -27
- package/dist/chunk-UQFUI3KT.js +0 -3070
- package/dist/chunk-UXBW2TYH.js +0 -1356
- package/dist/chunk-UXZLTAJO.js +0 -227
- package/dist/chunk-UZAVFOZC.js +0 -505
- package/dist/chunk-V2A4I4GC.js +0 -265
- package/dist/chunk-VAN6CEAV.js +0 -234
- package/dist/chunk-VDHWFRTL.js +0 -58
- package/dist/chunk-VLDKWGHD.js +0 -61
- package/dist/chunk-W4ABZ6XO.js +0 -4480
- package/dist/chunk-W4ABZ6XO.js.map +0 -1
- package/dist/chunk-W4TOPPVT.js +0 -162
- package/dist/chunk-W7P44UAE.js +0 -278
- package/dist/chunk-WAVR3UIC.js +0 -773
- package/dist/chunk-WLRB74VH.js +0 -251
- package/dist/chunk-WOVGVEKP.js +0 -192
- package/dist/chunk-WQ35KUFP.js +0 -264
- package/dist/chunk-WSBUFP77.js +0 -391
- package/dist/chunk-X56NEOYY.js +0 -283
- package/dist/chunk-XET2K3TU.js +0 -138
- package/dist/chunk-XJPDGFVT.js +0 -307
- package/dist/chunk-XK4VFZHQ.js +0 -246
- package/dist/chunk-XVP23IJS.js +0 -236
- package/dist/chunk-YEU2JC3B.js +0 -27
- package/dist/chunk-YFU2VZXS.js +0 -249
- package/dist/chunk-YMY2OO3V.js +0 -584
- package/dist/chunk-YNRZN3TU.js +0 -57
- package/dist/chunk-YP4SNX4P.js +0 -220
- package/dist/chunk-YSZAX6WJ.js +0 -196
- package/dist/chunk-YTUVANLR.js +0 -93
- package/dist/chunk-YUEYZTBP.js +0 -1309
- package/dist/chunk-YUVS7HYN.js +0 -129
- package/dist/chunk-YVQUPHYL.js +0 -234
- package/dist/chunk-YW4YRCXI.js +0 -3110
- package/dist/chunk-YZ2G24VJ.js +0 -1185
- package/dist/chunk-ZBTYTG4E.js +0 -247
- package/dist/chunk-ZCQJUYDX.js +0 -178
- package/dist/chunk-ZD67RM6G.js +0 -60
- package/dist/computer-viewer-BWWVUD6J.js +0 -21
- package/dist/connection-step-up-7ICLBORD.js +0 -145
- package/dist/embedded-new-voice-VD6GR5JQ.js +0 -25
- package/dist/embedded-voice-J2B6J2QQ.js +0 -25
- package/dist/fleet-decision-row-B672XMNG.js +0 -361
- package/dist/model-policy-picker-menu-HT3TWGSS.js +0 -23
- package/dist/payment-page-card-4LZPJ3OK.js +0 -226
- package/dist/platform-activity-row-TWXWUCXD.js +0 -156
- package/dist/queue-surface-implementation-SQ7K2TM4.js +0 -932
- package/dist/recorder-host-N2S7G3CW.js +0 -80
- package/dist/sandbox-files-6CKWJ2CU.js +0 -28
- package/dist/session-connect-cards-VNQWMX7A.js +0 -27
- package/dist/session-realtime-CRG7DRV6.js +0 -30
- package/dist/timeline-annotation-markers-JXCNK4S6.js +0 -157
- package/dist/timeline-annotation-selection-5ZTVYJXT.js +0 -208
- package/dist/timeline-annotations-dialog-4QWVCZCF.js +0 -283
- /package/dist/{browser-viewer-WGRM3JME.js.map → browser-viewer-EIEMRVFF.js.map} +0 -0
- /package/dist/{chat-interactive-block-5E3UQYHO.js.map → chat-interactive-block-FV37LWYZ.js.map} +0 -0
- /package/dist/{chunk-CJEQQBNZ.js.map → chunk-2COBAJC7.js.map} +0 -0
- /package/dist/{chunk-H6PJEWZH.js.map → chunk-2HS3IUXE.js.map} +0 -0
- /package/dist/{chunk-ATVSG5CO.js.map → chunk-2JTMFYCT.js.map} +0 -0
- /package/dist/{chunk-L64LMYJD.js.map → chunk-2JXKP4M6.js.map} +0 -0
- /package/dist/{chunk-I4CXHN6E.js.map → chunk-2P5K7CBH.js.map} +0 -0
- /package/dist/{chunk-PH2FDKJE.js.map → chunk-2XGRHMRI.js.map} +0 -0
- /package/dist/{chunk-OQEAJGAJ.js.map → chunk-332BYSAZ.js.map} +0 -0
- /package/dist/{chunk-SI2RFGQX.js.map → chunk-3EM5GTP3.js.map} +0 -0
- /package/dist/{chunk-FC6MLU5C.js.map → chunk-3L5ATO4A.js.map} +0 -0
- /package/dist/{chunk-SKHYIIH4.js.map → chunk-3S3PJB7J.js.map} +0 -0
- /package/dist/{chunk-37J3ZX2N.js.map → chunk-3SBKYPNM.js.map} +0 -0
- /package/dist/{chunk-D45IDQBW.js.map → chunk-3Z7VA6ET.js.map} +0 -0
- /package/dist/{chunk-EMJSJTIE.js.map → chunk-43BRJBEV.js.map} +0 -0
- /package/dist/{chunk-2L7TCAO4.js.map → chunk-46LZO4ZO.js.map} +0 -0
- /package/dist/{chunk-UPRN4FBY.js.map → chunk-46ZC5VNC.js.map} +0 -0
- /package/dist/{chunk-LDZSUY7K.js.map → chunk-4AH4EEHE.js.map} +0 -0
- /package/dist/{chunk-M73QQXUQ.js.map → chunk-4D3YJNVN.js.map} +0 -0
- /package/dist/{chunk-I6YOCSEP.js.map → chunk-4I4RTI4D.js.map} +0 -0
- /package/dist/{chunk-NZFMEGPE.js.map → chunk-4KASGJTF.js.map} +0 -0
- /package/dist/{chunk-LPHBZCCV.js.map → chunk-4RUKLIOF.js.map} +0 -0
- /package/dist/{chunk-MU6IU4IH.js.map → chunk-4UU7FN3I.js.map} +0 -0
- /package/dist/{chunk-GH3Q5XW4.js.map → chunk-4ZRNASBF.js.map} +0 -0
- /package/dist/{chunk-26KK6DN5.js.map → chunk-5EJBPQI2.js.map} +0 -0
- /package/dist/{chunk-FYOGQHCD.js.map → chunk-5G4IGG7F.js.map} +0 -0
- /package/dist/{chunk-GPRM5GYZ.js.map → chunk-5JAYZOAW.js.map} +0 -0
- /package/dist/{chunk-5EZELID5.js.map → chunk-5JOKVDSR.js.map} +0 -0
- /package/dist/{chunk-2VHPKSFK.js.map → chunk-5MP3G7ZV.js.map} +0 -0
- /package/dist/{chunk-MBYHDOTU.js.map → chunk-5OVRMKP5.js.map} +0 -0
- /package/dist/{chunk-ORSFNFNY.js.map → chunk-5SGTRULO.js.map} +0 -0
- /package/dist/{chunk-64XZTYX4.js.map → chunk-5SOL4INY.js.map} +0 -0
- /package/dist/{chunk-YEU2JC3B.js.map → chunk-5Y34P32B.js.map} +0 -0
- /package/dist/{chunk-DG3GW325.js.map → chunk-62HIKJ5F.js.map} +0 -0
- /package/dist/{chunk-HWOYJOKK.js.map → chunk-62T2ZPD5.js.map} +0 -0
- /package/dist/{chunk-2U5ZJMNP.js.map → chunk-63VNZRLY.js.map} +0 -0
- /package/dist/{chunk-PMBZMVKE.js.map → chunk-6CDBX3XG.js.map} +0 -0
- /package/dist/{chunk-W7P44UAE.js.map → chunk-6D3D2JWY.js.map} +0 -0
- /package/dist/{chunk-FFXJF5KU.js.map → chunk-6DOIINY4.js.map} +0 -0
- /package/dist/{chunk-IKAVNCO5.js.map → chunk-6DQBUKGJ.js.map} +0 -0
- /package/dist/{chunk-IAXF3IO6.js.map → chunk-6SETNFNH.js.map} +0 -0
- /package/dist/{chunk-QI5RXPYP.js.map → chunk-6XYFMHNT.js.map} +0 -0
- /package/dist/{chunk-MB5WRIYX.js.map → chunk-6YU3WV2P.js.map} +0 -0
- /package/dist/{chunk-RMVKH4EE.js.map → chunk-6YUHDFOZ.js.map} +0 -0
- /package/dist/{chunk-YZ2G24VJ.js.map → chunk-72EOXOR7.js.map} +0 -0
- /package/dist/{chunk-4YQFDBKE.js.map → chunk-72ND4ALI.js.map} +0 -0
- /package/dist/{chunk-X56NEOYY.js.map → chunk-757LE32E.js.map} +0 -0
- /package/dist/{chunk-3UG2AJHR.js.map → chunk-7FDEV6XW.js.map} +0 -0
- /package/dist/{chunk-XET2K3TU.js.map → chunk-7S2S4MXR.js.map} +0 -0
- /package/dist/{chunk-67MFNMGH.js.map → chunk-7SYCHMXS.js.map} +0 -0
- /package/dist/{chunk-MQFJPFL4.js.map → chunk-7TVAPQOV.js.map} +0 -0
- /package/dist/{chunk-ES3JAYQJ.js.map → chunk-7UDLRDHK.js.map} +0 -0
- /package/dist/{chunk-GX3RAB4W.js.map → chunk-7YLQCMZP.js.map} +0 -0
- /package/dist/{chunk-RPWI6A3H.js.map → chunk-A5GX3CAE.js.map} +0 -0
- /package/dist/{chunk-6H2OQ6XG.js.map → chunk-A7EBV2EB.js.map} +0 -0
- /package/dist/{chunk-HQZ6NGUU.js.map → chunk-AB5SPXUR.js.map} +0 -0
- /package/dist/{chunk-AQHQUPEF.js.map → chunk-AHVQGL5A.js.map} +0 -0
- /package/dist/{chunk-Q35LFE7H.js.map → chunk-AI77ZKEV.js.map} +0 -0
- /package/dist/{chunk-N7IOCNWK.js.map → chunk-AIX2D6RB.js.map} +0 -0
- /package/dist/{chunk-WOVGVEKP.js.map → chunk-AVSIHP7Q.js.map} +0 -0
- /package/dist/{chunk-EMART4X3.js.map → chunk-AWK23Q32.js.map} +0 -0
- /package/dist/{chunk-3JYID53J.js.map → chunk-AYVWA6KD.js.map} +0 -0
- /package/dist/{chunk-A4SKSSSS.js.map → chunk-AYZXE4IM.js.map} +0 -0
- /package/dist/{chunk-CWKFPDYB.js.map → chunk-AZGGSPTE.js.map} +0 -0
- /package/dist/{chunk-DLHR7HHS.js.map → chunk-B45TB4HY.js.map} +0 -0
- /package/dist/{chunk-7TEXZ5LW.js.map → chunk-BIUJHNVR.js.map} +0 -0
- /package/dist/{chunk-AJEOTFQE.js.map → chunk-BJUOKUE5.js.map} +0 -0
- /package/dist/{chunk-CGYPX3HJ.js.map → chunk-BPEEVMKH.js.map} +0 -0
- /package/dist/{chunk-PQ7WJAKL.js.map → chunk-BPHPAGYF.js.map} +0 -0
- /package/dist/{chunk-XJPDGFVT.js.map → chunk-BXMND6YU.js.map} +0 -0
- /package/dist/{chunk-FN5UTQSL.js.map → chunk-C6OM2SRG.js.map} +0 -0
- /package/dist/{chunk-YUEYZTBP.js.map → chunk-CIRCUDKF.js.map} +0 -0
- /package/dist/{chunk-IGUPUA3G.js.map → chunk-CLKR4UG3.js.map} +0 -0
- /package/dist/{chunk-7QODDTOI.js.map → chunk-CPX6BHER.js.map} +0 -0
- /package/dist/{chunk-FZOK37SC.js.map → chunk-CVC4RO7D.js.map} +0 -0
- /package/dist/{chunk-6C55RLFY.js.map → chunk-D3YJAQGK.js.map} +0 -0
- /package/dist/{chunk-QAHGGBL2.js.map → chunk-DFQ72BLS.js.map} +0 -0
- /package/dist/{chunk-HSEHIVAE.js.map → chunk-DG65PJOZ.js.map} +0 -0
- /package/dist/{chunk-DM7JLUWN.js.map → chunk-DNAXAS5R.js.map} +0 -0
- /package/dist/{chunk-NSBOITEM.js.map → chunk-DO247ITS.js.map} +0 -0
- /package/dist/{chunk-NNIUBJOE.js.map → chunk-DONBARLL.js.map} +0 -0
- /package/dist/{chunk-5W4ZGFXZ.js.map → chunk-DTLXQ3ZU.js.map} +0 -0
- /package/dist/{chunk-EIQQYUOT.js.map → chunk-EAXTACI4.js.map} +0 -0
- /package/dist/{chunk-JOKNFHFU.js.map → chunk-EDPH7AJH.js.map} +0 -0
- /package/dist/{chunk-MDIHQGPV.js.map → chunk-EFKQHCGJ.js.map} +0 -0
- /package/dist/{chunk-33QC4RN7.js.map → chunk-EILSPMVD.js.map} +0 -0
- /package/dist/{chunk-PNLVWZSM.js.map → chunk-EK7KIETS.js.map} +0 -0
- /package/dist/{chunk-OVAT4PIR.js.map → chunk-EMWT6GOK.js.map} +0 -0
- /package/dist/{chunk-GHLUZSIB.js.map → chunk-EO22NST7.js.map} +0 -0
- /package/dist/{chunk-P2OHWZMB.js.map → chunk-ER5MYLIE.js.map} +0 -0
- /package/dist/{chunk-YVQUPHYL.js.map → chunk-ES5HKVQF.js.map} +0 -0
- /package/dist/{chunk-H35G5UHL.js.map → chunk-F26YBYAZ.js.map} +0 -0
- /package/dist/{chunk-FD6F2OE5.js.map → chunk-F6QP4GSK.js.map} +0 -0
- /package/dist/{chunk-RLNJSAHP.js.map → chunk-F7QEO7M2.js.map} +0 -0
- /package/dist/{chunk-J3CHK7NH.js.map → chunk-FJFGDLXB.js.map} +0 -0
- /package/dist/{chunk-CYBRD5BP.js.map → chunk-FLLJ2WXW.js.map} +0 -0
- /package/dist/{chunk-RO2UO3VN.js.map → chunk-FMBJKMT4.js.map} +0 -0
- /package/dist/{chunk-R7SBV5KD.js.map → chunk-FPN4I4CG.js.map} +0 -0
- /package/dist/{chunk-UQFUI3KT.js.map → chunk-FUXFJTXL.js.map} +0 -0
- /package/dist/{chunk-JK2WTBLD.js.map → chunk-G6SSSX5R.js.map} +0 -0
- /package/dist/{chunk-LT3MK2XP.js.map → chunk-GBGCMHBB.js.map} +0 -0
- /package/dist/{chunk-HUKGLWAY.js.map → chunk-GIHE7U3Y.js.map} +0 -0
- /package/dist/{chunk-GDWKVSMK.js.map → chunk-GJ4GTYOD.js.map} +0 -0
- /package/dist/{chunk-OE4QJJ4C.js.map → chunk-GLSDWNFV.js.map} +0 -0
- /package/dist/{chunk-RZ5IQ3SX.js.map → chunk-GMGAW3T6.js.map} +0 -0
- /package/dist/{chunk-RFBJ6TUL.js.map → chunk-GNGI6XFN.js.map} +0 -0
- /package/dist/{chunk-WQ35KUFP.js.map → chunk-GO5VIAA7.js.map} +0 -0
- /package/dist/{chunk-KQBVH5LN.js.map → chunk-GSW4YHZE.js.map} +0 -0
- /package/dist/{chunk-OWF2AVT6.js.map → chunk-GUC6IWEY.js.map} +0 -0
- /package/dist/{chunk-5SK5PYFN.js.map → chunk-GWAY3SO5.js.map} +0 -0
- /package/dist/{chunk-KA5H2Z3E.js.map → chunk-GXOTNT5D.js.map} +0 -0
- /package/dist/{chunk-HXANXMPH.js.map → chunk-GZZCVF76.js.map} +0 -0
- /package/dist/{chunk-3ZBQIZEM.js.map → chunk-H4VMHFOX.js.map} +0 -0
- /package/dist/{chunk-T4UTYGB2.js.map → chunk-HA5RFQAF.js.map} +0 -0
- /package/dist/{chunk-PTSRBKQC.js.map → chunk-HFROJDFQ.js.map} +0 -0
- /package/dist/{chunk-YP4SNX4P.js.map → chunk-HHFFPE67.js.map} +0 -0
- /package/dist/{chunk-4J4IPUPZ.js.map → chunk-HJLHGXWL.js.map} +0 -0
- /package/dist/{chunk-CHYAUIZ3.js.map → chunk-HKNMNL7B.js.map} +0 -0
- /package/dist/{chunk-CP53LM7W.js.map → chunk-HT7MBHLY.js.map} +0 -0
- /package/dist/{chunk-YMY2OO3V.js.map → chunk-I5FSUZVW.js.map} +0 -0
- /package/dist/{chunk-CTKUOOU4.js.map → chunk-IINQO425.js.map} +0 -0
- /package/dist/{chunk-73YALMGG.js.map → chunk-IIXNEOK4.js.map} +0 -0
- /package/dist/{chunk-HUWJZRD3.js.map → chunk-IM3WA5AL.js.map} +0 -0
- /package/dist/{chunk-DBGOJIMM.js.map → chunk-IX4P4OGR.js.map} +0 -0
- /package/dist/{chunk-OU2J6K3L.js.map → chunk-IX5VHZYS.js.map} +0 -0
- /package/dist/{chunk-4IMVT7OU.js.map → chunk-JB3TSUZO.js.map} +0 -0
- /package/dist/{chunk-UQDT3SM2.js.map → chunk-JIC6RLUB.js.map} +0 -0
- /package/dist/{chunk-QXOO5U46.js.map → chunk-JNJIZCTN.js.map} +0 -0
- /package/dist/{chunk-K6JW7GB3.js.map → chunk-JNV5ZPUV.js.map} +0 -0
- /package/dist/{chunk-HVL7TCB5.js.map → chunk-JPQFVR24.js.map} +0 -0
- /package/dist/{chunk-5NGW5K2D.js.map → chunk-JPZVMXDP.js.map} +0 -0
- /package/dist/{chunk-6GBJFFQL.js.map → chunk-JVPF34MX.js.map} +0 -0
- /package/dist/{chunk-JAC5I2BN.js.map → chunk-KED67KAF.js.map} +0 -0
- /package/dist/{chunk-H2AOQJQP.js.map → chunk-KJ72GMZ2.js.map} +0 -0
- /package/dist/{chunk-PCSRHFRF.js.map → chunk-KTGKGHEA.js.map} +0 -0
- /package/dist/{chunk-NUZNJSL5.js.map → chunk-KU77XHWB.js.map} +0 -0
- /package/dist/{chunk-YFU2VZXS.js.map → chunk-KXBLLFOO.js.map} +0 -0
- /package/dist/{chunk-VLDKWGHD.js.map → chunk-L6WVCO6D.js.map} +0 -0
- /package/dist/{chunk-TLTE3QSX.js.map → chunk-LPEFULJY.js.map} +0 -0
- /package/dist/{chunk-DMQY35LC.js.map → chunk-LRMGPO7E.js.map} +0 -0
- /package/dist/{chunk-6DFHNNWJ.js.map → chunk-LVKTKORH.js.map} +0 -0
- /package/dist/{chunk-TGG3ODCS.js.map → chunk-MCPKUVMQ.js.map} +0 -0
- /package/dist/{chunk-KYDLVMKA.js.map → chunk-MFLU3466.js.map} +0 -0
- /package/dist/{chunk-ZD67RM6G.js.map → chunk-MIUJ3EH5.js.map} +0 -0
- /package/dist/{chunk-EWJ7WEZT.js.map → chunk-MIUMNTIJ.js.map} +0 -0
- /package/dist/{chunk-2Q4XBV3J.js.map → chunk-ML46TXRM.js.map} +0 -0
- /package/dist/{chunk-3JBLX5BN.js.map → chunk-MO3XJQN2.js.map} +0 -0
- /package/dist/{chunk-SFWP4DNI.js.map → chunk-MQRHTOQ2.js.map} +0 -0
- /package/dist/{chunk-5ERDSF2C.js.map → chunk-MVYQDBE6.js.map} +0 -0
- /package/dist/{chunk-272XEENJ.js.map → chunk-NE5P7LFQ.js.map} +0 -0
- /package/dist/{chunk-YSZAX6WJ.js.map → chunk-NPBEUU22.js.map} +0 -0
- /package/dist/{chunk-ZCQJUYDX.js.map → chunk-NSXKGS2K.js.map} +0 -0
- /package/dist/{chunk-QODAMEOR.js.map → chunk-NUEFORM6.js.map} +0 -0
- /package/dist/{chunk-O4VCJWKV.js.map → chunk-NZOFNQNC.js.map} +0 -0
- /package/dist/{chunk-MB5EK2PA.js.map → chunk-OATXCLTY.js.map} +0 -0
- /package/dist/{chunk-AKQSOR4G.js.map → chunk-OG3ELROW.js.map} +0 -0
- /package/dist/{chunk-W4TOPPVT.js.map → chunk-OI4WS7FW.js.map} +0 -0
- /package/dist/{chunk-3ZVACRTK.js.map → chunk-OITGZUDC.js.map} +0 -0
- /package/dist/{chunk-GWJLR55B.js.map → chunk-OKD2LBMK.js.map} +0 -0
- /package/dist/{chunk-K2WDXLZS.js.map → chunk-OSA4CGST.js.map} +0 -0
- /package/dist/{chunk-TGVTVLNI.js.map → chunk-OXYAKUFU.js.map} +0 -0
- /package/dist/{chunk-SUMBC7BQ.js.map → chunk-OYMSMU5O.js.map} +0 -0
- /package/dist/{chunk-3XS3A6Y6.js.map → chunk-P4NZ72KY.js.map} +0 -0
- /package/dist/{chunk-CYPNXHWM.js.map → chunk-PBYL2VIM.js.map} +0 -0
- /package/dist/{chunk-UZAVFOZC.js.map → chunk-PDW3OOSZ.js.map} +0 -0
- /package/dist/{chunk-6M2WXQX5.js.map → chunk-PGRKTQIW.js.map} +0 -0
- /package/dist/{chunk-4PG2BEQA.js.map → chunk-PPQJIVGM.js.map} +0 -0
- /package/dist/{chunk-UFRXYZCJ.js.map → chunk-PYMQM65Y.js.map} +0 -0
- /package/dist/{chunk-GYNTJYWY.js.map → chunk-Q273Q33U.js.map} +0 -0
- /package/dist/{chunk-UHU2WESP.js.map → chunk-Q4CLS2HL.js.map} +0 -0
- /package/dist/{chunk-GYWQ4KVM.js.map → chunk-QA5UNVHD.js.map} +0 -0
- /package/dist/{chunk-LLVJ3P2N.js.map → chunk-QFOBUA2J.js.map} +0 -0
- /package/dist/{chunk-2MXP6ZRP.js.map → chunk-QLIM4D56.js.map} +0 -0
- /package/dist/{chunk-KQVHSEQQ.js.map → chunk-QMQF5U2D.js.map} +0 -0
- /package/dist/{chunk-IXPLYZFO.js.map → chunk-QNOWKKZ4.js.map} +0 -0
- /package/dist/{chunk-PTUIF4TT.js.map → chunk-QPOUPVPD.js.map} +0 -0
- /package/dist/{chunk-FE4HNBHF.js.map → chunk-QTJAQ6DS.js.map} +0 -0
- /package/dist/{chunk-LK3AAMN7.js.map → chunk-QUOFP3G7.js.map} +0 -0
- /package/dist/{chunk-6O6CHBD3.js.map → chunk-QVOTPOXK.js.map} +0 -0
- /package/dist/{chunk-ROCQ3IDW.js.map → chunk-QYZ5RVGM.js.map} +0 -0
- /package/dist/{chunk-TXAMGOUG.js.map → chunk-R7CVDKRN.js.map} +0 -0
- /package/dist/{chunk-3ITEAD3E.js.map → chunk-RB7MXNZD.js.map} +0 -0
- /package/dist/{chunk-KREVCOE7.js.map → chunk-RDZQFZOQ.js.map} +0 -0
- /package/dist/{chunk-AI7XM4MY.js.map → chunk-RIHKEGWS.js.map} +0 -0
- /package/dist/{chunk-YNRZN3TU.js.map → chunk-ROSB7GF6.js.map} +0 -0
- /package/dist/{chunk-3MZCXSC7.js.map → chunk-RP3YMYCX.js.map} +0 -0
- /package/dist/{chunk-U4OIE2MJ.js.map → chunk-RPHXJHNX.js.map} +0 -0
- /package/dist/{chunk-CQW4ZPU4.js.map → chunk-RVC3M66H.js.map} +0 -0
- /package/dist/{chunk-BMOYN4HY.js.map → chunk-S3OTJAAC.js.map} +0 -0
- /package/dist/{chunk-2Y53MMGA.js.map → chunk-SBWPMVRN.js.map} +0 -0
- /package/dist/{chunk-FT4ZKYTG.js.map → chunk-SERECSAR.js.map} +0 -0
- /package/dist/{chunk-6V2UH36U.js.map → chunk-SHSEF3GJ.js.map} +0 -0
- /package/dist/{chunk-2AU2S5NP.js.map → chunk-SMS2M3RG.js.map} +0 -0
- /package/dist/{chunk-BY7AWWDB.js.map → chunk-SRDHDIRQ.js.map} +0 -0
- /package/dist/{chunk-46USHCHK.js.map → chunk-SXRYA7NN.js.map} +0 -0
- /package/dist/{chunk-NDJPEX7P.js.map → chunk-SYA3WYG4.js.map} +0 -0
- /package/dist/{chunk-HUTQJY3F.js.map → chunk-SYYFA7W7.js.map} +0 -0
- /package/dist/{chunk-L7ZLPS37.js.map → chunk-T2QDSTBH.js.map} +0 -0
- /package/dist/{chunk-T6N33M46.js.map → chunk-TFSCGFYV.js.map} +0 -0
- /package/dist/{chunk-XK4VFZHQ.js.map → chunk-TGCKZOSX.js.map} +0 -0
- /package/dist/{chunk-GA42NSDJ.js.map → chunk-THILLYQM.js.map} +0 -0
- /package/dist/{chunk-BZ4GSY44.js.map → chunk-TI6LGUEZ.js.map} +0 -0
- /package/dist/{chunk-GISBCT5E.js.map → chunk-TSY6YZL2.js.map} +0 -0
- /package/dist/{chunk-DD3DT5MY.js.map → chunk-TW2RHTLH.js.map} +0 -0
- /package/dist/{chunk-RTJVIXH5.js.map → chunk-TWA5G277.js.map} +0 -0
- /package/dist/{chunk-ZBTYTG4E.js.map → chunk-TZZ2S4XI.js.map} +0 -0
- /package/dist/{chunk-VDHWFRTL.js.map → chunk-U5D3K53R.js.map} +0 -0
- /package/dist/{chunk-WLRB74VH.js.map → chunk-UECD27LX.js.map} +0 -0
- /package/dist/{chunk-HHUTU5EN.js.map → chunk-UFJDETKG.js.map} +0 -0
- /package/dist/{chunk-PV7X4PRR.js.map → chunk-UHCFYX4I.js.map} +0 -0
- /package/dist/{chunk-NLKHAZMG.js.map → chunk-UHTURYJO.js.map} +0 -0
- /package/dist/{chunk-EBVL3YJQ.js.map → chunk-UJH63JT3.js.map} +0 -0
- /package/dist/{chunk-5UI3VPCY.js.map → chunk-UOLDS6S5.js.map} +0 -0
- /package/dist/{chunk-BMSMK7SA.js.map → chunk-UUE3OGXI.js.map} +0 -0
- /package/dist/{chunk-WSBUFP77.js.map → chunk-UUNJ2E57.js.map} +0 -0
- /package/dist/{chunk-NLYAWFDY.js.map → chunk-UYQVWRAH.js.map} +0 -0
- /package/dist/{chunk-VAN6CEAV.js.map → chunk-UYWVK7JQ.js.map} +0 -0
- /package/dist/{chunk-UBTDG6GC.js.map → chunk-UYWWUEL4.js.map} +0 -0
- /package/dist/{chunk-2WF5XIPA.js.map → chunk-V4CQKX5H.js.map} +0 -0
- /package/dist/{chunk-3NRJ4Z3A.js.map → chunk-V4QM7GDQ.js.map} +0 -0
- /package/dist/{chunk-6LUF4TOE.js.map → chunk-V5Y74WII.js.map} +0 -0
- /package/dist/{chunk-YUVS7HYN.js.map → chunk-VGGZLUQK.js.map} +0 -0
- /package/dist/{chunk-35LBFD5I.js.map → chunk-VGX636MB.js.map} +0 -0
- /package/dist/{chunk-WAVR3UIC.js.map → chunk-VGZLFQO2.js.map} +0 -0
- /package/dist/{chunk-IMWP2Q4W.js.map → chunk-VJWZATNF.js.map} +0 -0
- /package/dist/{chunk-DHLGGANG.js.map → chunk-VMWCIC2N.js.map} +0 -0
- /package/dist/{chunk-UXZLTAJO.js.map → chunk-VPWKTIU5.js.map} +0 -0
- /package/dist/{chunk-JTRRMV7B.js.map → chunk-VXOLG6YB.js.map} +0 -0
- /package/dist/{chunk-7JNWIGM4.js.map → chunk-W2NAU5VB.js.map} +0 -0
- /package/dist/{chunk-AP4FMXAM.js.map → chunk-WGORKMR3.js.map} +0 -0
- /package/dist/{chunk-HTYDPAJL.js.map → chunk-WMIDELSJ.js.map} +0 -0
- /package/dist/{chunk-SOC5IBQT.js.map → chunk-WSOSGL2G.js.map} +0 -0
- /package/dist/{chunk-A7Z65D33.js.map → chunk-WXUUOM4X.js.map} +0 -0
- /package/dist/{chunk-L4PIAAQB.js.map → chunk-WZ74QHLE.js.map} +0 -0
- /package/dist/{chunk-M7NPDODK.js.map → chunk-X2OWM2ME.js.map} +0 -0
- /package/dist/{chunk-B6YDINPE.js.map → chunk-X6UMGG4T.js.map} +0 -0
- /package/dist/{chunk-YTUVANLR.js.map → chunk-XDXKB25W.js.map} +0 -0
- /package/dist/{chunk-ACUDUVDJ.js.map → chunk-XE4PHI74.js.map} +0 -0
- /package/dist/{chunk-R6WQLIFX.js.map → chunk-XHF2XNU5.js.map} +0 -0
- /package/dist/{chunk-D4RTU236.js.map → chunk-XLJ4SQFS.js.map} +0 -0
- /package/dist/{chunk-UKDLZ76A.js.map → chunk-XOD4FX6M.js.map} +0 -0
- /package/dist/{chunk-YW4YRCXI.js.map → chunk-XODQ2GPF.js.map} +0 -0
- /package/dist/{chunk-JOVCPP44.js.map → chunk-XT54RTAM.js.map} +0 -0
- /package/dist/{chunk-R6OBJ7LF.js.map → chunk-YAVW5OJ5.js.map} +0 -0
- /package/dist/{chunk-TD5EKKVD.js.map → chunk-YDQHFJM2.js.map} +0 -0
- /package/dist/{chunk-UXBW2TYH.js.map → chunk-YH6O6OQ6.js.map} +0 -0
- /package/dist/{chunk-6U3PE427.js.map → chunk-YIKPC2QP.js.map} +0 -0
- /package/dist/{chunk-M72GFKDP.js.map → chunk-ZD7PKYC4.js.map} +0 -0
- /package/dist/{chunk-S7NX6KSE.js.map → chunk-ZEQYHEWP.js.map} +0 -0
- /package/dist/{chunk-2ZR75AUO.js.map → chunk-ZMYL6DTE.js.map} +0 -0
- /package/dist/{chunk-GKA5LFYR.js.map → chunk-ZP3QCPYG.js.map} +0 -0
- /package/dist/{chunk-V2A4I4GC.js.map → chunk-ZRVUCTSI.js.map} +0 -0
- /package/dist/{chunk-CYPMAJ75.js.map → chunk-ZSI3ITRK.js.map} +0 -0
- /package/dist/{chunk-XVP23IJS.js.map → chunk-ZZMEQCIZ.js.map} +0 -0
- /package/dist/{computer-viewer-BWWVUD6J.js.map → computer-viewer-ZBY3BPYW.js.map} +0 -0
- /package/dist/{connection-step-up-7ICLBORD.js.map → connection-step-up-JQ4OFSQN.js.map} +0 -0
- /package/dist/{embedded-new-voice-VD6GR5JQ.js.map → embedded-new-voice-ZB5XLKLU.js.map} +0 -0
- /package/dist/{embedded-voice-J2B6J2QQ.js.map → embedded-voice-MZJISDCS.js.map} +0 -0
- /package/dist/{fleet-decision-row-B672XMNG.js.map → fleet-decision-row-LG3SYVR3.js.map} +0 -0
- /package/dist/{model-policy-picker-menu-HT3TWGSS.js.map → model-policy-picker-menu-5Y72PLNF.js.map} +0 -0
- /package/dist/{payment-page-card-4LZPJ3OK.js.map → payment-page-card-YPSXRHBA.js.map} +0 -0
- /package/dist/{platform-activity-row-TWXWUCXD.js.map → platform-activity-row-ZU4MEBNK.js.map} +0 -0
- /package/dist/{queue-surface-implementation-SQ7K2TM4.js.map → queue-surface-implementation-6Q25RPH6.js.map} +0 -0
- /package/dist/{recorder-host-N2S7G3CW.js.map → recorder-host-JD4GWJ2Z.js.map} +0 -0
- /package/dist/{sandbox-files-6CKWJ2CU.js.map → sandbox-files-HCLEEJMU.js.map} +0 -0
- /package/dist/{session-connect-cards-VNQWMX7A.js.map → session-connect-cards-DRKEN3Z4.js.map} +0 -0
- /package/dist/{session-realtime-CRG7DRV6.js.map → session-realtime-IZOTTRH6.js.map} +0 -0
- /package/dist/{timeline-annotation-markers-JXCNK4S6.js.map → timeline-annotation-markers-WWXNJOXI.js.map} +0 -0
- /package/dist/{timeline-annotation-selection-5ZTVYJXT.js.map → timeline-annotation-selection-ZKRIQFIQ.js.map} +0 -0
- /package/dist/{timeline-annotations-dialog-4QWVCZCF.js.map → timeline-annotations-dialog-4IMKTOXJ.js.map} +0 -0
|
@@ -0,0 +1,2434 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
redactDeep,
|
|
4
|
+
redactSignedUrls,
|
|
5
|
+
signedValuesDeep
|
|
6
|
+
} from "./chunk-YM45PLD6.js";
|
|
7
|
+
import {
|
|
8
|
+
invokedToolCall
|
|
9
|
+
} from "./chunk-MFVUNNFN.js";
|
|
10
|
+
import {
|
|
11
|
+
applyPatchOpsFromToolItem,
|
|
12
|
+
controlCaret,
|
|
13
|
+
execTruncated,
|
|
14
|
+
isExecSessionLostBanner,
|
|
15
|
+
looksBinary,
|
|
16
|
+
parseExecBannerSessionId,
|
|
17
|
+
parseToolArgs,
|
|
18
|
+
retainedToolResultImages,
|
|
19
|
+
sandboxCommandExitCode,
|
|
20
|
+
stripExecBanner,
|
|
21
|
+
tailPeek,
|
|
22
|
+
unwrapMcpOutput,
|
|
23
|
+
v4aToGitFileDiff
|
|
24
|
+
} from "./chunk-E4BLXMIZ.js";
|
|
25
|
+
import {
|
|
26
|
+
builtInToolStep,
|
|
27
|
+
mcpToolLeaf,
|
|
28
|
+
toolDisplayName,
|
|
29
|
+
toolStepLabel,
|
|
30
|
+
toolStepPhase
|
|
31
|
+
} from "./chunk-J7QHW2KS.js";
|
|
32
|
+
import {
|
|
33
|
+
stringifyPayload,
|
|
34
|
+
tryParseJson
|
|
35
|
+
} from "./chunk-UIK52VL4.js";
|
|
36
|
+
|
|
37
|
+
// src/timeline/registry.ts
|
|
38
|
+
function rawTypeOf(item) {
|
|
39
|
+
const raw = item.raw;
|
|
40
|
+
if (raw && typeof raw === "object" && typeof raw.type === "string") {
|
|
41
|
+
return raw.type;
|
|
42
|
+
}
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
function createToolRegistry(baseEntries, baseFallback, options = {}) {
|
|
46
|
+
const entries = [...options.entries ?? [], ...baseEntries];
|
|
47
|
+
const fallback = options.fallback ?? baseFallback;
|
|
48
|
+
const byRawType = /* @__PURE__ */ new Map();
|
|
49
|
+
const byName = /* @__PURE__ */ new Map();
|
|
50
|
+
const byPrefixedLeaf = /* @__PURE__ */ new Map();
|
|
51
|
+
for (const entry of entries) {
|
|
52
|
+
if (entry.match === "rawType") {
|
|
53
|
+
if (!byRawType.has(entry.type)) {
|
|
54
|
+
byRawType.set(entry.type, entry.render);
|
|
55
|
+
}
|
|
56
|
+
} else if (!byName.has(entry.name)) {
|
|
57
|
+
byName.set(entry.name, entry.render);
|
|
58
|
+
}
|
|
59
|
+
if (entry.match === "name" && entry.matchPrefixedLeaf !== false) {
|
|
60
|
+
if (!byPrefixedLeaf.has(entry.name)) {
|
|
61
|
+
byPrefixedLeaf.set(entry.name, entry.render);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
const resolve = (item) => {
|
|
66
|
+
const rawType = rawTypeOf(item);
|
|
67
|
+
if (rawType) {
|
|
68
|
+
const byType = byRawType.get(rawType);
|
|
69
|
+
if (byType) {
|
|
70
|
+
return byType;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
const exact = byName.get(item.name);
|
|
74
|
+
if (exact) {
|
|
75
|
+
return exact;
|
|
76
|
+
}
|
|
77
|
+
const leaf = mcpToolLeaf(item.name);
|
|
78
|
+
if (leaf !== item.name) {
|
|
79
|
+
const byLeaf = byPrefixedLeaf.get(leaf);
|
|
80
|
+
if (byLeaf) {
|
|
81
|
+
return byLeaf;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return fallback;
|
|
85
|
+
};
|
|
86
|
+
return { resolve, fallback };
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// src/timeline/command-step.ts
|
|
90
|
+
var HEREDOC = /(?<!<)<<(?!<)-?\s*(['"]?)([A-Za-z_][\w-]*)\1/g;
|
|
91
|
+
function stripHeredocBodies(source) {
|
|
92
|
+
const lines = source.split("\n");
|
|
93
|
+
const kept = [];
|
|
94
|
+
for (let index = 0; index < lines.length; index++) {
|
|
95
|
+
const line = lines[index];
|
|
96
|
+
const delimiters = [...line.matchAll(HEREDOC)].map((match) => match[2]);
|
|
97
|
+
kept.push(line);
|
|
98
|
+
for (const delimiter of delimiters) {
|
|
99
|
+
while (index + 1 < lines.length && lines[index + 1].trim() !== delimiter) index++;
|
|
100
|
+
index++;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
return kept.join("\n");
|
|
104
|
+
}
|
|
105
|
+
function tokenize(source) {
|
|
106
|
+
const tokens = [];
|
|
107
|
+
let word = "";
|
|
108
|
+
let inWord = false;
|
|
109
|
+
const flush = () => {
|
|
110
|
+
if (inWord) tokens.push({ word });
|
|
111
|
+
word = "";
|
|
112
|
+
inWord = false;
|
|
113
|
+
};
|
|
114
|
+
for (let i = 0; i < source.length; i++) {
|
|
115
|
+
const ch = source[i];
|
|
116
|
+
if (ch === "'") {
|
|
117
|
+
const end = source.indexOf("'", i + 1);
|
|
118
|
+
word += source.slice(i + 1, end < 0 ? void 0 : end);
|
|
119
|
+
inWord = true;
|
|
120
|
+
i = end < 0 ? source.length : end;
|
|
121
|
+
} else if (ch === '"') {
|
|
122
|
+
let j = i + 1;
|
|
123
|
+
while (j < source.length && source[j] !== '"') {
|
|
124
|
+
if (source[j] === "\\" && j + 1 < source.length) j++;
|
|
125
|
+
word += source[j];
|
|
126
|
+
j++;
|
|
127
|
+
}
|
|
128
|
+
inWord = true;
|
|
129
|
+
i = j;
|
|
130
|
+
} else if (ch === "\\") {
|
|
131
|
+
if (source[i + 1] === "\n") i++;
|
|
132
|
+
else {
|
|
133
|
+
word += source[i + 1] ?? "";
|
|
134
|
+
inWord = true;
|
|
135
|
+
i++;
|
|
136
|
+
}
|
|
137
|
+
} else if (ch === "$" && source[i + 1] === "(") {
|
|
138
|
+
let depth = 0;
|
|
139
|
+
let j = i + 1;
|
|
140
|
+
for (; j < source.length; j++) {
|
|
141
|
+
if (source[j] === "(") depth++;
|
|
142
|
+
else if (source[j] === ")" && --depth === 0) break;
|
|
143
|
+
}
|
|
144
|
+
word += source.slice(i, j + 1);
|
|
145
|
+
inWord = true;
|
|
146
|
+
i = j;
|
|
147
|
+
} else if (ch === "`") {
|
|
148
|
+
const end = source.indexOf("`", i + 1);
|
|
149
|
+
word += source.slice(i, end < 0 ? void 0 : end + 1);
|
|
150
|
+
inWord = true;
|
|
151
|
+
i = end < 0 ? source.length : end;
|
|
152
|
+
} else if (ch === "#" && !inWord) {
|
|
153
|
+
while (i + 1 < source.length && source[i + 1] !== "\n") i++;
|
|
154
|
+
} else if (ch === " " || ch === " ") {
|
|
155
|
+
flush();
|
|
156
|
+
} else if (ch === "\n" || ch === ";" || ch === "(" || ch === ")" || ch === "{" || ch === "}") {
|
|
157
|
+
if ((ch === "{" || ch === "}") && inWord) {
|
|
158
|
+
word += ch;
|
|
159
|
+
continue;
|
|
160
|
+
}
|
|
161
|
+
flush();
|
|
162
|
+
tokens.push({ op: ";" });
|
|
163
|
+
} else if (ch === "&" || ch === "|") {
|
|
164
|
+
if (ch === "&" && source[i + 1] === ">") {
|
|
165
|
+
flush();
|
|
166
|
+
tokens.push({ op: ">" });
|
|
167
|
+
i += source[i + 2] === ">" ? 2 : 1;
|
|
168
|
+
continue;
|
|
169
|
+
}
|
|
170
|
+
flush();
|
|
171
|
+
const double = source[i + 1] === ch;
|
|
172
|
+
tokens.push({ op: double ? ";" : ch === "|" ? "|" : ";" });
|
|
173
|
+
if (double) i++;
|
|
174
|
+
} else if (ch === ">" || ch === "<") {
|
|
175
|
+
let fd = "";
|
|
176
|
+
if (inWord && /^\d+$/.test(word)) {
|
|
177
|
+
fd = word;
|
|
178
|
+
word = "";
|
|
179
|
+
inWord = false;
|
|
180
|
+
}
|
|
181
|
+
flush();
|
|
182
|
+
let op = fd + ch;
|
|
183
|
+
while (source[i + 1] === ">" || source[i + 1] === "<") op += source[++i];
|
|
184
|
+
if (source[i + 1] === "&") {
|
|
185
|
+
i++;
|
|
186
|
+
while (i + 1 < source.length && /[\d-]/.test(source[i + 1])) i++;
|
|
187
|
+
continue;
|
|
188
|
+
}
|
|
189
|
+
tokens.push({ op });
|
|
190
|
+
} else {
|
|
191
|
+
word += ch;
|
|
192
|
+
inWord = true;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
flush();
|
|
196
|
+
return tokens;
|
|
197
|
+
}
|
|
198
|
+
function parseCommands(source) {
|
|
199
|
+
const text = stripHeredocBodies(source);
|
|
200
|
+
const commands = [];
|
|
201
|
+
const fresh = () => ({
|
|
202
|
+
words: [],
|
|
203
|
+
redirects: [],
|
|
204
|
+
heredoc: false,
|
|
205
|
+
pipelineHead: null
|
|
206
|
+
});
|
|
207
|
+
let current = fresh();
|
|
208
|
+
let head = null;
|
|
209
|
+
let pendingRedirect = null;
|
|
210
|
+
const end = (piped) => {
|
|
211
|
+
if (current.words.length) {
|
|
212
|
+
current.pipelineHead = head;
|
|
213
|
+
commands.push(current);
|
|
214
|
+
if (piped) head ??= current;
|
|
215
|
+
}
|
|
216
|
+
if (!piped) head = null;
|
|
217
|
+
current = fresh();
|
|
218
|
+
};
|
|
219
|
+
for (const token of tokenize(text)) {
|
|
220
|
+
if ("op" in token) {
|
|
221
|
+
if (token.op === ";") {
|
|
222
|
+
end(false);
|
|
223
|
+
} else if (token.op === "|") {
|
|
224
|
+
end(true);
|
|
225
|
+
} else if (token.op.startsWith("<<")) {
|
|
226
|
+
current.heredoc = true;
|
|
227
|
+
pendingRedirect = token.op === "<<<" ? "<<<" : "<<";
|
|
228
|
+
} else {
|
|
229
|
+
pendingRedirect = token.op;
|
|
230
|
+
}
|
|
231
|
+
continue;
|
|
232
|
+
}
|
|
233
|
+
if (pendingRedirect) {
|
|
234
|
+
current.redirects.push({ op: pendingRedirect, target: token.word });
|
|
235
|
+
pendingRedirect = null;
|
|
236
|
+
continue;
|
|
237
|
+
}
|
|
238
|
+
current.words.push(token.word);
|
|
239
|
+
}
|
|
240
|
+
end(false);
|
|
241
|
+
return commands;
|
|
242
|
+
}
|
|
243
|
+
var UNNAMED = {
|
|
244
|
+
read: "readFile",
|
|
245
|
+
write: "writeFile",
|
|
246
|
+
edit: "editFile",
|
|
247
|
+
list: "browseFiles",
|
|
248
|
+
download: "download",
|
|
249
|
+
runScript: null,
|
|
250
|
+
install: "installPackages",
|
|
251
|
+
createFolder: "createFolderUnnamed",
|
|
252
|
+
createFile: "createFileUnnamed",
|
|
253
|
+
copy: "copyFiles",
|
|
254
|
+
move: "moveFiles",
|
|
255
|
+
delete: "deleteFiles",
|
|
256
|
+
unpack: "unpackFiles",
|
|
257
|
+
pack: "packFiles",
|
|
258
|
+
convert: "convertFile"
|
|
259
|
+
};
|
|
260
|
+
var COMMAND_STEP_IDS = [
|
|
261
|
+
...Object.keys(UNNAMED),
|
|
262
|
+
...Object.values(UNNAMED).filter(
|
|
263
|
+
(step) => step !== null && step !== "editFile" && step !== "download"
|
|
264
|
+
),
|
|
265
|
+
"runTests",
|
|
266
|
+
"checkChanges",
|
|
267
|
+
"saveChanges",
|
|
268
|
+
"uploadChanges",
|
|
269
|
+
"getChanges",
|
|
270
|
+
"queryDatabase",
|
|
271
|
+
"useGitHub",
|
|
272
|
+
"runDownloadedCode",
|
|
273
|
+
"reinstallPackages",
|
|
274
|
+
"readFiles",
|
|
275
|
+
"search",
|
|
276
|
+
"searchFiles",
|
|
277
|
+
"fetch",
|
|
278
|
+
"send",
|
|
279
|
+
"runCode"
|
|
280
|
+
];
|
|
281
|
+
var TRIVIAL = /* @__PURE__ */ new Set([
|
|
282
|
+
"cd",
|
|
283
|
+
"pushd",
|
|
284
|
+
"popd",
|
|
285
|
+
"export",
|
|
286
|
+
"set",
|
|
287
|
+
"unset",
|
|
288
|
+
"source",
|
|
289
|
+
".",
|
|
290
|
+
"true",
|
|
291
|
+
"false",
|
|
292
|
+
":",
|
|
293
|
+
"shopt",
|
|
294
|
+
"trap",
|
|
295
|
+
"alias",
|
|
296
|
+
"umask",
|
|
297
|
+
"ulimit",
|
|
298
|
+
"echo",
|
|
299
|
+
"printf",
|
|
300
|
+
"if",
|
|
301
|
+
"then",
|
|
302
|
+
"else",
|
|
303
|
+
"elif",
|
|
304
|
+
"fi",
|
|
305
|
+
"for",
|
|
306
|
+
"while",
|
|
307
|
+
"until",
|
|
308
|
+
"do",
|
|
309
|
+
"done",
|
|
310
|
+
"case",
|
|
311
|
+
"esac",
|
|
312
|
+
"in",
|
|
313
|
+
"[",
|
|
314
|
+
"[[",
|
|
315
|
+
"test",
|
|
316
|
+
"exit",
|
|
317
|
+
"return",
|
|
318
|
+
"wait",
|
|
319
|
+
"read",
|
|
320
|
+
"local",
|
|
321
|
+
"declare",
|
|
322
|
+
"clear",
|
|
323
|
+
"pwd",
|
|
324
|
+
"date",
|
|
325
|
+
"whoami",
|
|
326
|
+
"which",
|
|
327
|
+
"type",
|
|
328
|
+
"command"
|
|
329
|
+
]);
|
|
330
|
+
var READERS = /* @__PURE__ */ new Set([
|
|
331
|
+
"cat",
|
|
332
|
+
"head",
|
|
333
|
+
"tail",
|
|
334
|
+
"less",
|
|
335
|
+
"more",
|
|
336
|
+
"nl",
|
|
337
|
+
"bat",
|
|
338
|
+
"wc",
|
|
339
|
+
"pdftotext",
|
|
340
|
+
"pdfinfo",
|
|
341
|
+
"strings",
|
|
342
|
+
"xxd",
|
|
343
|
+
"hexdump",
|
|
344
|
+
"file",
|
|
345
|
+
"stat",
|
|
346
|
+
"md5sum",
|
|
347
|
+
"sha256sum",
|
|
348
|
+
"column",
|
|
349
|
+
"sort",
|
|
350
|
+
"uniq",
|
|
351
|
+
"cut",
|
|
352
|
+
"jq",
|
|
353
|
+
"yq",
|
|
354
|
+
"csvlook",
|
|
355
|
+
"exiftool"
|
|
356
|
+
]);
|
|
357
|
+
var LISTERS = /* @__PURE__ */ new Set(["ls", "find", "tree", "du", "fd", "fdfind", "exa", "eza"]);
|
|
358
|
+
var SEARCHERS = /* @__PURE__ */ new Set(["grep", "egrep", "fgrep", "rg", "ag", "ack"]);
|
|
359
|
+
var INTERPRETERS = {
|
|
360
|
+
python: "Python",
|
|
361
|
+
python3: "Python",
|
|
362
|
+
node: "JavaScript",
|
|
363
|
+
deno: "JavaScript",
|
|
364
|
+
bun: "JavaScript",
|
|
365
|
+
tsx: "TypeScript",
|
|
366
|
+
"ts-node": "TypeScript",
|
|
367
|
+
ruby: "Ruby",
|
|
368
|
+
perl: "Perl",
|
|
369
|
+
php: "PHP",
|
|
370
|
+
Rscript: "R",
|
|
371
|
+
bash: "shell",
|
|
372
|
+
sh: "shell",
|
|
373
|
+
zsh: "shell"
|
|
374
|
+
};
|
|
375
|
+
var PACKAGE_MANAGERS = /* @__PURE__ */ new Set([
|
|
376
|
+
"pip",
|
|
377
|
+
"pip3",
|
|
378
|
+
"npm",
|
|
379
|
+
"yarn",
|
|
380
|
+
"pnpm",
|
|
381
|
+
"bun",
|
|
382
|
+
"apt",
|
|
383
|
+
"apt-get",
|
|
384
|
+
"brew",
|
|
385
|
+
"uv",
|
|
386
|
+
"cargo",
|
|
387
|
+
"gem",
|
|
388
|
+
"conda",
|
|
389
|
+
"go"
|
|
390
|
+
]);
|
|
391
|
+
var CONVERTERS = /* @__PURE__ */ new Set([
|
|
392
|
+
"pandoc",
|
|
393
|
+
"soffice",
|
|
394
|
+
"libreoffice",
|
|
395
|
+
"convert",
|
|
396
|
+
"magick",
|
|
397
|
+
"ffmpeg",
|
|
398
|
+
"pdftoppm",
|
|
399
|
+
"pdftocairo",
|
|
400
|
+
"qpdf",
|
|
401
|
+
"gs",
|
|
402
|
+
"rsvg-convert",
|
|
403
|
+
"inkscape",
|
|
404
|
+
"wkhtmltopdf"
|
|
405
|
+
]);
|
|
406
|
+
var DATABASES = /* @__PURE__ */ new Set(["psql", "sqlite3", "mysql", "duckdb", "clickhouse-client"]);
|
|
407
|
+
var TEST_RUNNERS = /* @__PURE__ */ new Set(["pytest", "jest", "vitest", "mocha"]);
|
|
408
|
+
var DOWNLOADED_CODE_WEIGHT = 100;
|
|
409
|
+
var SEND_WEIGHT = 60;
|
|
410
|
+
var DELETE_WEIGHT = 50;
|
|
411
|
+
var REGENERABLE_DELETE_WEIGHT = 0.8;
|
|
412
|
+
var DOWNLOADERS = /* @__PURE__ */ new Set(["curl", "wget", "aria2c", "fetch", "http", "https", "xh"]);
|
|
413
|
+
var DELETERS = /* @__PURE__ */ new Set(["rm", "rmdir", "unlink", "trash", "shred", "srm"]);
|
|
414
|
+
var REGENERABLE_FOLDERS = /* @__PURE__ */ new Set([
|
|
415
|
+
"node_modules",
|
|
416
|
+
".venv",
|
|
417
|
+
"venv",
|
|
418
|
+
"__pycache__",
|
|
419
|
+
".pytest_cache",
|
|
420
|
+
".mypy_cache",
|
|
421
|
+
".ruff_cache",
|
|
422
|
+
".next",
|
|
423
|
+
".turbo",
|
|
424
|
+
".parcel-cache"
|
|
425
|
+
]);
|
|
426
|
+
var INSTALL_VALUE_FLAGS = /* @__PURE__ */ new Set([
|
|
427
|
+
"-r",
|
|
428
|
+
"--requirement",
|
|
429
|
+
"-c",
|
|
430
|
+
"--constraint",
|
|
431
|
+
"-e",
|
|
432
|
+
"--editable",
|
|
433
|
+
"-i",
|
|
434
|
+
"--index-url",
|
|
435
|
+
"--extra-index-url",
|
|
436
|
+
"-t",
|
|
437
|
+
"--target",
|
|
438
|
+
"--prefix",
|
|
439
|
+
"-f",
|
|
440
|
+
"--find-links"
|
|
441
|
+
]);
|
|
442
|
+
var RUNS_DOWNLOAD_INLINE = /(?:^|[\s;&|(])(?:(?:ba|z|k|da)?sh|python3?|node|perl|ruby|php|eval|source|\.)\s+(?:-\S+\s+)*["']?(?:<\(|\$\(|`)\s*(?:\S*\/)?(?:curl|wget|aria2c|xh)\b/;
|
|
443
|
+
function basename(path) {
|
|
444
|
+
const trimmed = path.replace(/\/+$/, "");
|
|
445
|
+
return trimmed.slice(trimmed.lastIndexOf("/") + 1);
|
|
446
|
+
}
|
|
447
|
+
function displayName(path) {
|
|
448
|
+
if (!path) return null;
|
|
449
|
+
const name = basename(redactSignedUrls(path).replace(/\?.*$/, ""));
|
|
450
|
+
if (!name || name === "." || name === ".." || name === "-" || name.startsWith("-")) return null;
|
|
451
|
+
if (/[$*?`{}[\]<>|]/.test(name) || /^\d+$/.test(name)) return null;
|
|
452
|
+
return name.length > 48 ? `${name.slice(0, 47)}\u2026` : name;
|
|
453
|
+
}
|
|
454
|
+
function hostOf(url) {
|
|
455
|
+
try {
|
|
456
|
+
const parsed = new URL(url);
|
|
457
|
+
return parsed.protocol === "http:" || parsed.protocol === "https:" ? parsed.hostname : null;
|
|
458
|
+
} catch {
|
|
459
|
+
return null;
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
function pathOf(url) {
|
|
463
|
+
try {
|
|
464
|
+
return new URL(url).pathname;
|
|
465
|
+
} catch {
|
|
466
|
+
return void 0;
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
function operands(words, valueFlags = /* @__PURE__ */ new Set()) {
|
|
470
|
+
const out = [];
|
|
471
|
+
for (let i = 1; i < words.length; i++) {
|
|
472
|
+
const word = words[i];
|
|
473
|
+
if (word === "--") {
|
|
474
|
+
out.push(...words.slice(i + 1));
|
|
475
|
+
break;
|
|
476
|
+
}
|
|
477
|
+
if (word.startsWith("-") && word.length > 1) {
|
|
478
|
+
if (valueFlags.has(word)) i++;
|
|
479
|
+
continue;
|
|
480
|
+
}
|
|
481
|
+
out.push(word);
|
|
482
|
+
}
|
|
483
|
+
return out;
|
|
484
|
+
}
|
|
485
|
+
function flagValue(words, flags) {
|
|
486
|
+
for (let i = 1; i < words.length; i++) {
|
|
487
|
+
const word = words[i];
|
|
488
|
+
for (const flag of flags) {
|
|
489
|
+
if (word === flag) return words[i + 1];
|
|
490
|
+
if (flag.startsWith("--") && word.startsWith(`${flag}=`)) return word.slice(flag.length + 1);
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
return void 0;
|
|
494
|
+
}
|
|
495
|
+
var CURL_VALUE_LETTERS = new Set("dFTXHuoAebcmrwxKEDUYyzCPQt");
|
|
496
|
+
var WGET_VALUE_LETTERS = new Set("OoaPtTwUeilARDIXQB");
|
|
497
|
+
var LONG_VALUE_OPTIONS = /* @__PURE__ */ new Set([
|
|
498
|
+
"--output",
|
|
499
|
+
"--out",
|
|
500
|
+
"--output-document",
|
|
501
|
+
"--output-file",
|
|
502
|
+
"--data",
|
|
503
|
+
"--data-raw",
|
|
504
|
+
"--data-binary",
|
|
505
|
+
"--data-ascii",
|
|
506
|
+
"--data-urlencode",
|
|
507
|
+
"--json",
|
|
508
|
+
"--form",
|
|
509
|
+
"--form-string",
|
|
510
|
+
"--upload-file",
|
|
511
|
+
"--request",
|
|
512
|
+
"--method",
|
|
513
|
+
"--header",
|
|
514
|
+
"--user",
|
|
515
|
+
"--password",
|
|
516
|
+
"--user-agent",
|
|
517
|
+
"--referer",
|
|
518
|
+
"--cookie",
|
|
519
|
+
"--cookie-jar",
|
|
520
|
+
"--config",
|
|
521
|
+
"--cert",
|
|
522
|
+
"--key",
|
|
523
|
+
"--max-time",
|
|
524
|
+
"--connect-timeout",
|
|
525
|
+
"--retry",
|
|
526
|
+
"--post-data",
|
|
527
|
+
"--post-file",
|
|
528
|
+
"--body-data",
|
|
529
|
+
"--body-file",
|
|
530
|
+
"--directory-prefix",
|
|
531
|
+
"--tries",
|
|
532
|
+
"--timeout"
|
|
533
|
+
]);
|
|
534
|
+
var SEND_OPTIONS = [
|
|
535
|
+
"-d",
|
|
536
|
+
"--data",
|
|
537
|
+
"--data-raw",
|
|
538
|
+
"--data-binary",
|
|
539
|
+
"--data-ascii",
|
|
540
|
+
"--data-urlencode",
|
|
541
|
+
"--json",
|
|
542
|
+
"-F",
|
|
543
|
+
"--form",
|
|
544
|
+
"--form-string",
|
|
545
|
+
"-T",
|
|
546
|
+
"--upload-file",
|
|
547
|
+
"--post-data",
|
|
548
|
+
"--post-file",
|
|
549
|
+
"--body-data",
|
|
550
|
+
"--body-file"
|
|
551
|
+
];
|
|
552
|
+
var SENDING_METHODS = /^(?:POST|PUT|PATCH|DELETE)$/i;
|
|
553
|
+
function readDownloader(program, words) {
|
|
554
|
+
const valueLetters = program === "wget" ? WGET_VALUE_LETTERS : CURL_VALUE_LETTERS;
|
|
555
|
+
const options = /* @__PURE__ */ new Map();
|
|
556
|
+
let url;
|
|
557
|
+
for (let i = 1; i < words.length; i++) {
|
|
558
|
+
const word = words[i];
|
|
559
|
+
if (word === "--") {
|
|
560
|
+
url ??= words.slice(i + 1).find((rest) => /^https?:\/\//i.test(rest));
|
|
561
|
+
break;
|
|
562
|
+
}
|
|
563
|
+
if (word.startsWith("--")) {
|
|
564
|
+
const equals = word.indexOf("=");
|
|
565
|
+
if (equals > 0) options.set(word.slice(0, equals), word.slice(equals + 1));
|
|
566
|
+
else if (LONG_VALUE_OPTIONS.has(word)) options.set(word, words[++i] ?? "");
|
|
567
|
+
else options.set(word, true);
|
|
568
|
+
continue;
|
|
569
|
+
}
|
|
570
|
+
if (/^-[A-Za-z]/.test(word)) {
|
|
571
|
+
for (let j = 1; j < word.length; j++) {
|
|
572
|
+
const letter = word[j];
|
|
573
|
+
if (valueLetters.has(letter)) {
|
|
574
|
+
options.set(`-${letter}`, j + 1 < word.length ? word.slice(j + 1) : words[++i] ?? "");
|
|
575
|
+
break;
|
|
576
|
+
}
|
|
577
|
+
options.set(`-${letter}`, true);
|
|
578
|
+
}
|
|
579
|
+
continue;
|
|
580
|
+
}
|
|
581
|
+
if (!url && /^https?:\/\//i.test(word)) url = word;
|
|
582
|
+
}
|
|
583
|
+
const text = (name) => {
|
|
584
|
+
const value = options.get(name);
|
|
585
|
+
return typeof value === "string" ? value : void 0;
|
|
586
|
+
};
|
|
587
|
+
const method = text("-X") ?? text("--request") ?? text("--method") ?? "";
|
|
588
|
+
const sends = SEND_OPTIONS.some((name) => options.has(name)) || SENDING_METHODS.test(method);
|
|
589
|
+
if (program === "wget") {
|
|
590
|
+
const file = text("-O") ?? text("--output-document");
|
|
591
|
+
return { url, file, remoteName: file === void 0, sends };
|
|
592
|
+
}
|
|
593
|
+
if (program === "aria2c") {
|
|
594
|
+
const file = text("-o") ?? text("--out");
|
|
595
|
+
return { url, file, remoteName: file === void 0, sends };
|
|
596
|
+
}
|
|
597
|
+
return {
|
|
598
|
+
url,
|
|
599
|
+
file: text("-o") ?? text("--output"),
|
|
600
|
+
remoteName: options.has("-O") || options.has("--remote-name") || options.has("--remote-name-all"),
|
|
601
|
+
sends
|
|
602
|
+
};
|
|
603
|
+
}
|
|
604
|
+
function programOf(command) {
|
|
605
|
+
return command ? basename(unwrap(command.words)[0] ?? "") : "";
|
|
606
|
+
}
|
|
607
|
+
function filesRun(command) {
|
|
608
|
+
const words = unwrap(command.words);
|
|
609
|
+
const first = words[0];
|
|
610
|
+
if (!first) return [];
|
|
611
|
+
if (/^\.{0,2}\//.test(first)) return [basename(first)];
|
|
612
|
+
const program = basename(first);
|
|
613
|
+
if (!INTERPRETERS[program] && program !== "source" && program !== ".") return [];
|
|
614
|
+
const script = operands(
|
|
615
|
+
words,
|
|
616
|
+
/* @__PURE__ */ new Set(["-W", "-X", "-r", "--require", "--import", "--loader"])
|
|
617
|
+
)[0];
|
|
618
|
+
return script ? [basename(script)] : [];
|
|
619
|
+
}
|
|
620
|
+
var WRAPPERS = /* @__PURE__ */ new Set(["sudo", "time", "nice", "nohup", "exec", "stdbuf", "caffeinate"]);
|
|
621
|
+
function unwrap(words) {
|
|
622
|
+
let rest = [...words];
|
|
623
|
+
for (let guard = 0; guard < 8 && rest.length; guard++) {
|
|
624
|
+
const first = rest[0];
|
|
625
|
+
if (/^[A-Za-z_][A-Za-z0-9_]*=/.test(first)) rest = rest.slice(1);
|
|
626
|
+
else if (WRAPPERS.has(first)) {
|
|
627
|
+
rest = rest.slice(1);
|
|
628
|
+
while (rest[0]?.startsWith("-")) rest = rest.slice(1);
|
|
629
|
+
} else if (first === "env") {
|
|
630
|
+
rest = rest.slice(1);
|
|
631
|
+
while (rest[0] && (rest[0].startsWith("-") || rest[0].includes("="))) rest = rest.slice(1);
|
|
632
|
+
} else if (first === "timeout") {
|
|
633
|
+
rest = rest.slice(1);
|
|
634
|
+
while (rest[0]?.startsWith("-")) rest = rest.slice(1);
|
|
635
|
+
rest = rest.slice(1);
|
|
636
|
+
} else if (first === "npx" || first === "bunx" || first === "pnpx" || first === "bun" && rest[1] === "x") {
|
|
637
|
+
rest = rest.slice(first === "bun" ? 2 : 1);
|
|
638
|
+
while (rest[0]?.startsWith("-"))
|
|
639
|
+
rest = rest.slice(rest[0] === "-p" || rest[0] === "--package" ? 2 : 1);
|
|
640
|
+
} else if ((first === "uv" || first === "poetry" || first === "pipenv") && rest[1] === "run") {
|
|
641
|
+
rest = rest.slice(2);
|
|
642
|
+
} else break;
|
|
643
|
+
}
|
|
644
|
+
return rest;
|
|
645
|
+
}
|
|
646
|
+
function classify(command, depth) {
|
|
647
|
+
const words = unwrap(command.words);
|
|
648
|
+
if (!words.length) return null;
|
|
649
|
+
const program = basename(words[0]);
|
|
650
|
+
const sub = words[1];
|
|
651
|
+
const output = command.redirects.find(
|
|
652
|
+
(r) => (r.op === ">" || r.op === ">>" || r.op === "1>") && r.target !== "/dev/null"
|
|
653
|
+
)?.target;
|
|
654
|
+
const named = (step, path, weight) => ({
|
|
655
|
+
kind: "named",
|
|
656
|
+
step,
|
|
657
|
+
name: displayName(path),
|
|
658
|
+
weight
|
|
659
|
+
});
|
|
660
|
+
const fixed = (step, weight) => ({ kind: "fixed", step, weight });
|
|
661
|
+
const toolArgs = program === "ogtool" ? words.slice(1) : words[1] === "codemode" && /OPENGENI|ogtool/i.test(words[0]) ? words.slice(2) : null;
|
|
662
|
+
if (toolArgs) {
|
|
663
|
+
const [verb, tool] = toolArgs;
|
|
664
|
+
if (verb === "call" && tool) return { kind: "tool", name: tool, weight: 5 };
|
|
665
|
+
if (verb === "list" || verb === "show" || verb === "declarations") {
|
|
666
|
+
return { kind: "toolStep", step: "findTools", weight: 2 };
|
|
667
|
+
}
|
|
668
|
+
if (verb === "read") return { kind: "toolStep", step: "checkProgress", weight: 2 };
|
|
669
|
+
return null;
|
|
670
|
+
}
|
|
671
|
+
if (DELETERS.has(program)) {
|
|
672
|
+
const paths = operands(words);
|
|
673
|
+
if (paths.length && paths.every((path) => REGENERABLE_FOLDERS.has(basename(path)))) {
|
|
674
|
+
return paths.length === 1 ? named("delete", paths[0], REGENERABLE_DELETE_WEIGHT) : fixed("deleteFiles", REGENERABLE_DELETE_WEIGHT);
|
|
675
|
+
}
|
|
676
|
+
return paths.length === 1 ? named("delete", paths[0], DELETE_WEIGHT) : fixed("deleteFiles", DELETE_WEIGHT);
|
|
677
|
+
}
|
|
678
|
+
if (program === "find") {
|
|
679
|
+
const exec = words.findIndex((word) => /^-(?:exec|execdir|ok|okdir)$/.test(word));
|
|
680
|
+
if (words.includes("-delete") || exec >= 0 && DELETERS.has(basename(unwrap(words.slice(exec + 1))[0] ?? ""))) {
|
|
681
|
+
return fixed("deleteFiles", DELETE_WEIGHT);
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
if (program === "xargs" || program === "parallel") {
|
|
685
|
+
const rest = words.slice(1);
|
|
686
|
+
while (rest[0]?.startsWith("-")) rest.shift();
|
|
687
|
+
if (DELETERS.has(basename(unwrap(rest)[0] ?? ""))) return fixed("deleteFiles", DELETE_WEIGHT);
|
|
688
|
+
return null;
|
|
689
|
+
}
|
|
690
|
+
if (program === "git" && (sub === "clean" || sub === "rm")) {
|
|
691
|
+
return fixed("deleteFiles", DELETE_WEIGHT);
|
|
692
|
+
}
|
|
693
|
+
if (TRIVIAL.has(program)) {
|
|
694
|
+
return (program === "echo" || program === "printf") && output ? named("write", output, 2) : null;
|
|
695
|
+
}
|
|
696
|
+
if (program === "sleep") return { kind: "toolStep", step: "wait", weight: 0.5 };
|
|
697
|
+
if (program === "curl" || program === "wget" || program === "aria2c") {
|
|
698
|
+
const call = readDownloader(program, words);
|
|
699
|
+
const host = call.url ? hostOf(call.url) : null;
|
|
700
|
+
if (call.sends) {
|
|
701
|
+
return host ? { kind: "host", step: "send", host, weight: SEND_WEIGHT } : { kind: "opaque", weight: SEND_WEIGHT };
|
|
702
|
+
}
|
|
703
|
+
const file = call.file ?? output;
|
|
704
|
+
if (file && file !== "-" && file !== "/dev/null") return named("download", file, 4);
|
|
705
|
+
const remoteName = call.url && call.remoteName && file !== "-" ? pathOf(call.url) : void 0;
|
|
706
|
+
if (remoteName && displayName(remoteName)) return named("download", remoteName, 4);
|
|
707
|
+
return host ? { kind: "host", step: "fetch", host, weight: 4 } : null;
|
|
708
|
+
}
|
|
709
|
+
if (program === "cat") {
|
|
710
|
+
if (output) return named("write", output, 3);
|
|
711
|
+
const files = operands(words);
|
|
712
|
+
if (!files.length) return null;
|
|
713
|
+
return files.length > 1 ? { kind: "readFiles", count: files.length, weight: 2 } : named("read", files[0], 2);
|
|
714
|
+
}
|
|
715
|
+
if (program === "tee") return named("write", operands(words)[0], 3);
|
|
716
|
+
if (program === "sed" || program === "awk" || program === "perl" && words.includes("-pi")) {
|
|
717
|
+
const inPlace = words.some((word) => /^-i/.test(word) || word === "-pi");
|
|
718
|
+
const files = operands(words, /* @__PURE__ */ new Set(["-e", "-f"]));
|
|
719
|
+
const file = files.length > 1 ? files[files.length - 1] : void 0;
|
|
720
|
+
if (inPlace) return named("edit", file, 3);
|
|
721
|
+
return file ? named("read", file, 2) : null;
|
|
722
|
+
}
|
|
723
|
+
if (READERS.has(program)) {
|
|
724
|
+
const files = operands(
|
|
725
|
+
words,
|
|
726
|
+
/* @__PURE__ */ new Set(["-n", "-c", "--lines", "--bytes", "-d", "-f", "-k", "-t"])
|
|
727
|
+
);
|
|
728
|
+
const inputs = program === "jq" || program === "yq" ? files.slice(1) : files;
|
|
729
|
+
if (!inputs.length) return null;
|
|
730
|
+
return inputs.length > 1 ? { kind: "readFiles", count: inputs.length, weight: 2 } : named("read", inputs[0], 2);
|
|
731
|
+
}
|
|
732
|
+
if (LISTERS.has(program)) {
|
|
733
|
+
const target = operands(
|
|
734
|
+
words,
|
|
735
|
+
/* @__PURE__ */ new Set([
|
|
736
|
+
"-name",
|
|
737
|
+
"-iname",
|
|
738
|
+
"-type",
|
|
739
|
+
"-maxdepth",
|
|
740
|
+
"-mindepth",
|
|
741
|
+
"-path",
|
|
742
|
+
"-newer",
|
|
743
|
+
"-size",
|
|
744
|
+
"-mtime",
|
|
745
|
+
"-L",
|
|
746
|
+
"-d",
|
|
747
|
+
"--max-depth"
|
|
748
|
+
])
|
|
749
|
+
)[0];
|
|
750
|
+
return target && target !== "." ? named("list", target, 1) : fixed("browseFiles", 1);
|
|
751
|
+
}
|
|
752
|
+
if (SEARCHERS.has(program) || program === "git" && sub === "grep") {
|
|
753
|
+
if (program === "rg" && words.includes("--files")) return fixed("browseFiles", 1);
|
|
754
|
+
const args = operands(
|
|
755
|
+
program === "git" ? words.slice(1) : words,
|
|
756
|
+
/* @__PURE__ */ new Set([
|
|
757
|
+
"-e",
|
|
758
|
+
"-g",
|
|
759
|
+
"--glob",
|
|
760
|
+
"-t",
|
|
761
|
+
"--type",
|
|
762
|
+
"-A",
|
|
763
|
+
"-B",
|
|
764
|
+
"-C",
|
|
765
|
+
"-m",
|
|
766
|
+
"--max-count",
|
|
767
|
+
"--include",
|
|
768
|
+
"--exclude"
|
|
769
|
+
])
|
|
770
|
+
);
|
|
771
|
+
const pattern = flagValue(words, ["-e"]) ?? args[0];
|
|
772
|
+
const plain = pattern && /^[\p{L}\p{N} '’.,:@_-]{2,40}$/u.test(pattern) ? pattern : null;
|
|
773
|
+
return { kind: "search", query: plain, weight: 2 };
|
|
774
|
+
}
|
|
775
|
+
if (program === "mkdir") {
|
|
776
|
+
const dirs = operands(words, /* @__PURE__ */ new Set(["-m"]));
|
|
777
|
+
return dirs.length === 1 ? named("createFolder", dirs[0], 1) : fixed("createFolderUnnamed", 1);
|
|
778
|
+
}
|
|
779
|
+
if (program === "touch") {
|
|
780
|
+
const files = operands(words);
|
|
781
|
+
return files.length === 1 ? named("createFile", files[0], 1) : fixed("createFileUnnamed", 1);
|
|
782
|
+
}
|
|
783
|
+
if (program === "cp" || program === "mv" || program === "rsync" || program === "ln") {
|
|
784
|
+
const paths = operands(words, /* @__PURE__ */ new Set(["-t", "--target-directory", "-e"]));
|
|
785
|
+
const step = program === "mv" ? "move" : "copy";
|
|
786
|
+
if (program === "ln") return null;
|
|
787
|
+
return paths.length === 2 ? named(step, paths[0], 1.5) : fixed(step === "move" ? "moveFiles" : "copyFiles", 1.5);
|
|
788
|
+
}
|
|
789
|
+
if (program === "unzip" || program === "gunzip" || program === "bunzip2" || program === "unxz") {
|
|
790
|
+
return named("unpack", operands(words, /* @__PURE__ */ new Set(["-d"]))[0], 2);
|
|
791
|
+
}
|
|
792
|
+
if (program === "zip") return named("pack", operands(words)[0], 2);
|
|
793
|
+
if (program === "tar" || program === "7z") {
|
|
794
|
+
const flags = words.slice(1).join(" ");
|
|
795
|
+
const archive = flagValue(words, ["-f", "--file"]) ?? words.slice(1).find((word) => /\.(?:tar|tgz|gz|bz2|xz|zst|zip|7z)$/i.test(word));
|
|
796
|
+
if (program === "7z" ? sub === "x" || sub === "e" : /(?:^|\s)-?[a-z]*x/.test(flags)) {
|
|
797
|
+
return named("unpack", archive, 2);
|
|
798
|
+
}
|
|
799
|
+
return named("pack", archive, 2);
|
|
800
|
+
}
|
|
801
|
+
if (CONVERTERS.has(program)) {
|
|
802
|
+
const input = program === "ffmpeg" ? flagValue(words, ["-i"]) : operands(
|
|
803
|
+
words,
|
|
804
|
+
/* @__PURE__ */ new Set([
|
|
805
|
+
"-o",
|
|
806
|
+
"--output",
|
|
807
|
+
"--outdir",
|
|
808
|
+
"--convert-to",
|
|
809
|
+
"-t",
|
|
810
|
+
"-f",
|
|
811
|
+
"--from",
|
|
812
|
+
"--to",
|
|
813
|
+
"-density",
|
|
814
|
+
"-resize",
|
|
815
|
+
"-quality",
|
|
816
|
+
"-r"
|
|
817
|
+
])
|
|
818
|
+
)[0];
|
|
819
|
+
return input ? named("convert", input, 3) : fixed("convertFile", 3);
|
|
820
|
+
}
|
|
821
|
+
if (DATABASES.has(program)) return fixed("queryDatabase", 3);
|
|
822
|
+
if (program === "gh") return fixed("useGitHub", 2);
|
|
823
|
+
if (program === "git") {
|
|
824
|
+
switch (sub) {
|
|
825
|
+
case "status":
|
|
826
|
+
case "diff":
|
|
827
|
+
case "log":
|
|
828
|
+
case "show":
|
|
829
|
+
case "blame":
|
|
830
|
+
return fixed("checkChanges", 1);
|
|
831
|
+
case "commit":
|
|
832
|
+
return fixed("saveChanges", 2);
|
|
833
|
+
case "push":
|
|
834
|
+
return fixed("uploadChanges", 2);
|
|
835
|
+
case "pull":
|
|
836
|
+
case "fetch":
|
|
837
|
+
return fixed("getChanges", 2);
|
|
838
|
+
case "clone": {
|
|
839
|
+
const repo = operands(words.slice(1), /* @__PURE__ */ new Set(["-b", "--branch", "--depth", "-o"]))[0];
|
|
840
|
+
return named("download", repo?.replace(/\.git$/, ""), 3);
|
|
841
|
+
}
|
|
842
|
+
default:
|
|
843
|
+
return null;
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
if (TEST_RUNNERS.has(program) || (program === "bun" || program === "npm" || program === "yarn" || program === "pnpm" || program === "go" || program === "cargo") && sub === "test") {
|
|
847
|
+
return fixed("runTests", 3);
|
|
848
|
+
}
|
|
849
|
+
if (PACKAGE_MANAGERS.has(program)) {
|
|
850
|
+
const installVerb = program === "uv" && sub === "pip" ? words[2] : sub;
|
|
851
|
+
if (installVerb === "ci" || program === "uv" && installVerb === "sync") {
|
|
852
|
+
return fixed("installPackages", 3);
|
|
853
|
+
}
|
|
854
|
+
if (installVerb === "install" || installVerb === "add" || installVerb === "i") {
|
|
855
|
+
const packages = operands(
|
|
856
|
+
program === "uv" && sub === "pip" ? words.slice(2) : words.slice(1),
|
|
857
|
+
INSTALL_VALUE_FLAGS
|
|
858
|
+
).filter((word) => !/^(?:-|install$|add$|i$)/.test(word));
|
|
859
|
+
return packages.length === 1 ? named("install", packages[0], 3) : fixed("installPackages", 3);
|
|
860
|
+
}
|
|
861
|
+
if ((program === "npm" || program === "yarn" || program === "pnpm" || program === "bun") && sub === "run" && words[2]) {
|
|
862
|
+
return named("runScript", words[2], 3);
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
if (program === "pip" || program === "pip3") return null;
|
|
866
|
+
const language = INTERPRETERS[program];
|
|
867
|
+
if (language) {
|
|
868
|
+
if (language === "shell") {
|
|
869
|
+
const inline = flagValue(words, ["-c", "-lc", "-ic", "-xc", "-ec"]);
|
|
870
|
+
if (inline && depth < 2) return pick(parseCommands(inline), depth + 1);
|
|
871
|
+
}
|
|
872
|
+
if (program === "python" || program === "python3") {
|
|
873
|
+
const module = flagValue(words, ["-m"]);
|
|
874
|
+
if (module === "pytest" || module === "unittest") return fixed("runTests", 3);
|
|
875
|
+
if (module === "pip") {
|
|
876
|
+
return classify(
|
|
877
|
+
{ ...command, words: ["pip", ...words.slice(words.indexOf("-m") + 2)] },
|
|
878
|
+
depth
|
|
879
|
+
);
|
|
880
|
+
}
|
|
881
|
+
if (module) return named("runScript", module, 3);
|
|
882
|
+
}
|
|
883
|
+
if (program === "bun" && sub && !/\.(?:[cm]?[jt]sx?)$/.test(sub)) return null;
|
|
884
|
+
const script = operands(
|
|
885
|
+
words,
|
|
886
|
+
/* @__PURE__ */ new Set(["-W", "-X", "-r", "--require", "--import", "--loader"])
|
|
887
|
+
)[0];
|
|
888
|
+
if (script && script !== "-" && /\.[A-Za-z0-9]+$/.test(script))
|
|
889
|
+
return named("runScript", script, 3);
|
|
890
|
+
const display = program === "bun" || program === "deno" || program === "node" ? "JavaScript" : language;
|
|
891
|
+
if (command.heredoc || words.some((word) => /^-[ce]$/.test(word) || word === "-")) {
|
|
892
|
+
return { kind: "code", language: display, weight: 3 };
|
|
893
|
+
}
|
|
894
|
+
return null;
|
|
895
|
+
}
|
|
896
|
+
if (/^\.{0,2}\/[\w./-]+$/.test(words[0])) return named("runScript", words[0], 3);
|
|
897
|
+
return null;
|
|
898
|
+
}
|
|
899
|
+
function classifyPiped(command, depth) {
|
|
900
|
+
const words = unwrap(command.words);
|
|
901
|
+
const program = basename(words[0] ?? "");
|
|
902
|
+
const language = INTERPRETERS[program];
|
|
903
|
+
const headProgram = programOf(command.pipelineHead);
|
|
904
|
+
if (language) {
|
|
905
|
+
const inlineFlag = language === "shell" || language === "Python" ? /^-[a-z]*c$/ : /^-(?:e|p|-eval|-print)$/;
|
|
906
|
+
const inline = words.some((word) => inlineFlag.test(word));
|
|
907
|
+
const script = operands(words).find((word) => /\.[A-Za-z0-9]+$/.test(word));
|
|
908
|
+
if (inline || script) return null;
|
|
909
|
+
if (DOWNLOADERS.has(headProgram)) {
|
|
910
|
+
return { kind: "fixed", step: "runDownloadedCode", weight: DOWNLOADED_CODE_WEIGHT };
|
|
911
|
+
}
|
|
912
|
+
const display = program === "bun" || program === "deno" || program === "node" ? "JavaScript" : language;
|
|
913
|
+
return { kind: "code", language: display, weight: 3.5 };
|
|
914
|
+
}
|
|
915
|
+
const step = classify(command, depth);
|
|
916
|
+
if (step && step.weight >= DELETE_WEIGHT) return step;
|
|
917
|
+
if (DOWNLOADERS.has(headProgram)) {
|
|
918
|
+
const saved = program === "tee" ? operands(words, /* @__PURE__ */ new Set(["-p"]))[0] : command.redirects.find(
|
|
919
|
+
(r) => (r.op === ">" || r.op === ">>" || r.op === "1>") && r.target !== "/dev/null"
|
|
920
|
+
)?.target;
|
|
921
|
+
if (saved && displayName(saved)) {
|
|
922
|
+
return { kind: "named", step: "download", name: displayName(saved), weight: 4.5 };
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
return null;
|
|
926
|
+
}
|
|
927
|
+
function isDeletion(step) {
|
|
928
|
+
return step.kind === "named" && step.step === "delete" || step.kind === "fixed" && step.step === "deleteFiles";
|
|
929
|
+
}
|
|
930
|
+
function pick(commands, depth) {
|
|
931
|
+
let best = null;
|
|
932
|
+
const reads = /* @__PURE__ */ new Set();
|
|
933
|
+
let readCount = 0;
|
|
934
|
+
const deletions = /* @__PURE__ */ new Set();
|
|
935
|
+
let regenerableDeletion = false;
|
|
936
|
+
const downloaded = /* @__PURE__ */ new Set();
|
|
937
|
+
for (const command of commands) {
|
|
938
|
+
let step = command.pipelineHead ? classifyPiped(command, depth) : classify(command, depth);
|
|
939
|
+
if (downloaded.size && filesRun(command).some((name) => downloaded.has(name))) {
|
|
940
|
+
step = { kind: "fixed", step: "runDownloadedCode", weight: DOWNLOADED_CODE_WEIGHT };
|
|
941
|
+
}
|
|
942
|
+
if (!step) continue;
|
|
943
|
+
if (step.kind === "named" && step.step === "download" && step.name && DOWNLOADERS.has(programOf(command.pipelineHead ?? command))) {
|
|
944
|
+
downloaded.add(step.name);
|
|
945
|
+
}
|
|
946
|
+
if (step.kind === "named" && step.step === "read" && step.name) {
|
|
947
|
+
reads.add(step.name);
|
|
948
|
+
readCount++;
|
|
949
|
+
}
|
|
950
|
+
if (step.kind === "readFiles") readCount += step.count;
|
|
951
|
+
const deletes = isDeletion(step);
|
|
952
|
+
if (deletes && step.weight < DELETE_WEIGHT) regenerableDeletion = true;
|
|
953
|
+
else if (deletes) {
|
|
954
|
+
deletions.add(step.kind === "named" && step.name || `#${deletions.size}`);
|
|
955
|
+
}
|
|
956
|
+
if (!best || step.weight > best.weight) best = step;
|
|
957
|
+
}
|
|
958
|
+
if (!best) return null;
|
|
959
|
+
if (isDeletion(best) && best.weight >= DELETE_WEIGHT && deletions.size > 1) {
|
|
960
|
+
return { kind: "fixed", step: "deleteFiles", weight: best.weight };
|
|
961
|
+
}
|
|
962
|
+
const installs = best.kind === "named" && best.step === "install" || best.kind === "fixed" && best.step === "installPackages";
|
|
963
|
+
if (installs && regenerableDeletion) {
|
|
964
|
+
return { kind: "fixed", step: "reinstallPackages", weight: best.weight };
|
|
965
|
+
}
|
|
966
|
+
if (best.kind === "named" && best.step === "read" && reads.size > 1 || best.kind === "readFiles" && readCount > best.count) {
|
|
967
|
+
return { kind: "readFiles", count: Math.max(reads.size, readCount), weight: best.weight };
|
|
968
|
+
}
|
|
969
|
+
return best;
|
|
970
|
+
}
|
|
971
|
+
function commandStepTitle(t, command, phase) {
|
|
972
|
+
if (!command.trim()) return null;
|
|
973
|
+
if (RUNS_DOWNLOAD_INLINE.test(command))
|
|
974
|
+
return t(`timeline.commandStep.runDownloadedCode.${phase}`);
|
|
975
|
+
const step = pick(parseCommands(command), 0);
|
|
976
|
+
if (!step) return null;
|
|
977
|
+
switch (step.kind) {
|
|
978
|
+
case "named": {
|
|
979
|
+
if (step.name) return t(`timeline.commandStep.${step.step}.${phase}`, { name: step.name });
|
|
980
|
+
const unnamed = UNNAMED[step.step];
|
|
981
|
+
if (unnamed === null) return null;
|
|
982
|
+
if (unnamed === "editFile" || unnamed === "download") return toolStepLabel(t, unnamed, phase);
|
|
983
|
+
return t(`timeline.commandStep.${unnamed}.${phase}`);
|
|
984
|
+
}
|
|
985
|
+
case "fixed":
|
|
986
|
+
return t(`timeline.commandStep.${step.step}.${phase}`);
|
|
987
|
+
case "readFiles":
|
|
988
|
+
return t(`timeline.commandStep.readFiles.${phase}`, { count: step.count });
|
|
989
|
+
case "search":
|
|
990
|
+
return step.query ? t(`timeline.commandStep.search.${phase}`, { query: step.query }) : t(`timeline.commandStep.searchFiles.${phase}`);
|
|
991
|
+
case "host":
|
|
992
|
+
return t(`timeline.commandStep.${step.step}.${phase}`, { host: step.host });
|
|
993
|
+
case "code":
|
|
994
|
+
return t(`timeline.commandStep.runCode.${phase}`, { language: step.language });
|
|
995
|
+
case "tool": {
|
|
996
|
+
const dotted = step.name.split(".");
|
|
997
|
+
const wire = dotted.length > 1 ? `${dotted[0]}__${dotted.slice(1).join("_")}` : step.name;
|
|
998
|
+
return toolDisplayName(t, wire, void 0, phase);
|
|
999
|
+
}
|
|
1000
|
+
case "toolStep":
|
|
1001
|
+
return toolStepLabel(t, step.step, phase);
|
|
1002
|
+
case "opaque":
|
|
1003
|
+
return null;
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
// src/timeline/tool-presentation.ts
|
|
1008
|
+
import { withoutProviderTracking } from "@opengeni/contracts/citation-urls";
|
|
1009
|
+
import { isConnectedMachineOutcomeUnknownOutput } from "@opengeni/sdk";
|
|
1010
|
+
function withComputePreview(label, preview) {
|
|
1011
|
+
if (!label) {
|
|
1012
|
+
return preview;
|
|
1013
|
+
}
|
|
1014
|
+
return `on ${label} \xB7 ${preview}`;
|
|
1015
|
+
}
|
|
1016
|
+
function truncatePreview(text, max) {
|
|
1017
|
+
const cleaned = text.replace(/\s+/g, " ").trim();
|
|
1018
|
+
if (!cleaned) {
|
|
1019
|
+
return "";
|
|
1020
|
+
}
|
|
1021
|
+
return cleaned.length > max ? `${cleaned.slice(0, max - 1)}\u2026` : cleaned;
|
|
1022
|
+
}
|
|
1023
|
+
function readableToolError(text) {
|
|
1024
|
+
const stripTransport = (value) => value.trim().replace(/^An error occurred while running the tool\. Please try again\.\s*(Error:\s*)?/, "").replace(/^(?:[A-Za-z][\w.-]{0,40} )?API \d{3}:\s*/, "");
|
|
1025
|
+
let message = stripTransport(text);
|
|
1026
|
+
const parsed = tryParseJson(message);
|
|
1027
|
+
if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) {
|
|
1028
|
+
const envelope = parsed;
|
|
1029
|
+
const inner = typeof envelope.error === "string" ? envelope.error : envelope.error && typeof envelope.error === "object" ? envelope.error.message : envelope.message;
|
|
1030
|
+
if (typeof inner === "string" && inner.trim()) message = stripTransport(inner);
|
|
1031
|
+
}
|
|
1032
|
+
return message.replace(/\s*\(?Reference: [\w-]+\)?\.?$/, "").trim();
|
|
1033
|
+
}
|
|
1034
|
+
function textPreview(text, running) {
|
|
1035
|
+
return running ? { kind: "text", text, running: true } : { kind: "text", text };
|
|
1036
|
+
}
|
|
1037
|
+
function textContentOutput(out) {
|
|
1038
|
+
if (!out || typeof out !== "object" || Array.isArray(out)) return null;
|
|
1039
|
+
const content = out.content;
|
|
1040
|
+
if (!Array.isArray(content) || content.length === 0) return null;
|
|
1041
|
+
const texts = [];
|
|
1042
|
+
for (const part of content) {
|
|
1043
|
+
if (!part || typeof part !== "object" || part.type !== "text" || typeof part.text !== "string") {
|
|
1044
|
+
return null;
|
|
1045
|
+
}
|
|
1046
|
+
texts.push(part.text);
|
|
1047
|
+
}
|
|
1048
|
+
return texts.join("\n");
|
|
1049
|
+
}
|
|
1050
|
+
function execTitle(t, cmd, phase) {
|
|
1051
|
+
return commandStepTitle(t, cmd, phase) ?? toolStepLabel(t, "runCommand", phase);
|
|
1052
|
+
}
|
|
1053
|
+
function execPresentation(t, item, context = {}) {
|
|
1054
|
+
const args = parseToolArgs(item.arguments);
|
|
1055
|
+
const cmd = typeof args.cmd === "string" ? args.cmd : "";
|
|
1056
|
+
const command = cmd.trim() ? redactSignedUrls(cmd) : null;
|
|
1057
|
+
const workdir = typeof args.workdir === "string" ? args.workdir : null;
|
|
1058
|
+
const out = item.output;
|
|
1059
|
+
const computeLabel = context.computeLabel ?? null;
|
|
1060
|
+
const base = {
|
|
1061
|
+
tool: "exec",
|
|
1062
|
+
icon: "terminal",
|
|
1063
|
+
title: execTitle(t, cmd, "running")
|
|
1064
|
+
};
|
|
1065
|
+
if (isConnectedMachineOutcomeUnknownOutput(out)) {
|
|
1066
|
+
return {
|
|
1067
|
+
...base,
|
|
1068
|
+
title: execTitle(t, cmd, "done"),
|
|
1069
|
+
iconTone: "failed",
|
|
1070
|
+
failed: true,
|
|
1071
|
+
chip: { tone: "bad", text: t("timeline.toolPresentation.outcomeUnknown") },
|
|
1072
|
+
body: {
|
|
1073
|
+
kind: "term",
|
|
1074
|
+
command,
|
|
1075
|
+
workdir,
|
|
1076
|
+
output: redactSignedUrls(out, void 0, "text"),
|
|
1077
|
+
failed: true
|
|
1078
|
+
}
|
|
1079
|
+
};
|
|
1080
|
+
}
|
|
1081
|
+
if (item.status === "failed" && out === void 0) {
|
|
1082
|
+
return {
|
|
1083
|
+
...base,
|
|
1084
|
+
iconTone: "failed",
|
|
1085
|
+
chip: { tone: "bad", text: t("timeline.chip.failed") },
|
|
1086
|
+
preview: textPreview(
|
|
1087
|
+
withComputePreview(computeLabel, t("timeline.toolPresentation.outputLostNulByteCould"))
|
|
1088
|
+
),
|
|
1089
|
+
body: {
|
|
1090
|
+
kind: "term",
|
|
1091
|
+
command,
|
|
1092
|
+
workdir,
|
|
1093
|
+
output: "",
|
|
1094
|
+
failed: true,
|
|
1095
|
+
note: t("timeline.toolPresentation.outputContainedANulByte")
|
|
1096
|
+
}
|
|
1097
|
+
};
|
|
1098
|
+
}
|
|
1099
|
+
if (item.status === "failed" && (out == null || out === "")) {
|
|
1100
|
+
return {
|
|
1101
|
+
...base,
|
|
1102
|
+
iconTone: "failed",
|
|
1103
|
+
chip: { tone: "bad", text: t("timeline.chip.failed") },
|
|
1104
|
+
preview: textPreview(
|
|
1105
|
+
withComputePreview(computeLabel, t("timeline.toolPresentation.toolCallFailed"))
|
|
1106
|
+
),
|
|
1107
|
+
body: {
|
|
1108
|
+
kind: "term",
|
|
1109
|
+
command,
|
|
1110
|
+
workdir,
|
|
1111
|
+
output: "",
|
|
1112
|
+
failed: true,
|
|
1113
|
+
note: t("timeline.toolPresentation.theToolCallFailedWith")
|
|
1114
|
+
}
|
|
1115
|
+
};
|
|
1116
|
+
}
|
|
1117
|
+
if (item.status === "running") {
|
|
1118
|
+
const streamed = typeof out === "string" ? redactSignedUrls(stripExecBanner(out), void 0, "text") : "";
|
|
1119
|
+
const runningPreview = streamed ? `${streamed.split("\n").length} lines` : "running\u2026";
|
|
1120
|
+
return {
|
|
1121
|
+
...base,
|
|
1122
|
+
iconTone: "running",
|
|
1123
|
+
running: true,
|
|
1124
|
+
preview: textPreview(withComputePreview(computeLabel, runningPreview), true),
|
|
1125
|
+
body: {
|
|
1126
|
+
kind: "term",
|
|
1127
|
+
command,
|
|
1128
|
+
workdir,
|
|
1129
|
+
output: streamed,
|
|
1130
|
+
live: true
|
|
1131
|
+
}
|
|
1132
|
+
};
|
|
1133
|
+
}
|
|
1134
|
+
const text = typeof out === "string" ? out : textContentOutput(out) ?? stringifyPayload(out);
|
|
1135
|
+
const stripped = redactSignedUrls(stripExecBanner(text), void 0, "text");
|
|
1136
|
+
const bgSession = parseExecBannerSessionId(text);
|
|
1137
|
+
const exitCode = sandboxCommandExitCode(text);
|
|
1138
|
+
const binary = looksBinary(stripped);
|
|
1139
|
+
const exitedBadly = exitCode != null && exitCode !== 0;
|
|
1140
|
+
let chip;
|
|
1141
|
+
let iconTone = "muted";
|
|
1142
|
+
if (bgSession != null) {
|
|
1143
|
+
chip = { tone: "muted", text: `session ${bgSession}` };
|
|
1144
|
+
} else if (exitCode != null && exitCode !== 0) {
|
|
1145
|
+
chip = { tone: "bad", text: `exit ${exitCode}` };
|
|
1146
|
+
iconTone = "failed";
|
|
1147
|
+
}
|
|
1148
|
+
const peek = binary ? t("timeline.toolPresentation.binaryOutput") : tailPeek(stripped) || t("timeline.toolPresentation.noOutput");
|
|
1149
|
+
const truncated = execTruncated(text);
|
|
1150
|
+
const preview = withComputePreview(
|
|
1151
|
+
computeLabel,
|
|
1152
|
+
truncated ? t("timeline.toolPresentation.truncatedPeek", { peek }) : peek
|
|
1153
|
+
);
|
|
1154
|
+
return {
|
|
1155
|
+
...base,
|
|
1156
|
+
title: execTitle(
|
|
1157
|
+
t,
|
|
1158
|
+
cmd,
|
|
1159
|
+
item.status === "complete" && !exitedBadly && bgSession == null ? "done" : "running"
|
|
1160
|
+
),
|
|
1161
|
+
iconTone,
|
|
1162
|
+
...chip ? { chip } : {},
|
|
1163
|
+
failed: item.status === "failed",
|
|
1164
|
+
cancelled: item.status === "cancelled",
|
|
1165
|
+
preview: textPreview(preview),
|
|
1166
|
+
body: {
|
|
1167
|
+
kind: "term",
|
|
1168
|
+
command,
|
|
1169
|
+
workdir,
|
|
1170
|
+
output: binary ? t("timeline.toolPresentation.binaryOutputSuppressed") : stripped,
|
|
1171
|
+
failed: item.status === "failed" || exitedBadly,
|
|
1172
|
+
...bgSession != null ? {
|
|
1173
|
+
note: t("timeline.toolPresentation.sessionBgsessionALaterWrite", { bgSession })
|
|
1174
|
+
} : {}
|
|
1175
|
+
}
|
|
1176
|
+
};
|
|
1177
|
+
}
|
|
1178
|
+
function writeStdinPresentation(t, item) {
|
|
1179
|
+
const args = parseToolArgs(item.arguments);
|
|
1180
|
+
const sessionId = typeof args.session_id === "string" || typeof args.session_id === "number" ? args.session_id : void 0;
|
|
1181
|
+
const text = typeof item.output === "string" ? item.output : stringifyPayload(item.output);
|
|
1182
|
+
const lost = isExecSessionLostBanner(text);
|
|
1183
|
+
const keys = controlCaret(typeof args.chars === "string" ? args.chars : "");
|
|
1184
|
+
const exitCode = sandboxCommandExitCode(text);
|
|
1185
|
+
const stripped = stripExecBanner(text);
|
|
1186
|
+
const title = `session ${sessionId} \u2190 ${keys || "\u2205"}`;
|
|
1187
|
+
const base = {
|
|
1188
|
+
tool: "write_stdin",
|
|
1189
|
+
icon: "keyboard",
|
|
1190
|
+
title,
|
|
1191
|
+
titleMono: true
|
|
1192
|
+
};
|
|
1193
|
+
if (item.status === "running") {
|
|
1194
|
+
return {
|
|
1195
|
+
...base,
|
|
1196
|
+
iconTone: "running",
|
|
1197
|
+
running: true,
|
|
1198
|
+
preview: textPreview("sending\u2026", true),
|
|
1199
|
+
body: {
|
|
1200
|
+
kind: "note",
|
|
1201
|
+
text: t("timeline.toolPresentation.sendingInputToSessionSessionid", { sessionId })
|
|
1202
|
+
}
|
|
1203
|
+
};
|
|
1204
|
+
}
|
|
1205
|
+
let chip;
|
|
1206
|
+
if (lost) {
|
|
1207
|
+
chip = { tone: "bad", text: t("timeline.chip.lost") };
|
|
1208
|
+
} else if (exitCode != null && exitCode !== 0) {
|
|
1209
|
+
chip = { tone: "bad", text: `exit ${exitCode}` };
|
|
1210
|
+
}
|
|
1211
|
+
return {
|
|
1212
|
+
...base,
|
|
1213
|
+
iconTone: lost ? "failed" : "muted",
|
|
1214
|
+
...chip ? { chip } : {},
|
|
1215
|
+
failed: item.status === "failed",
|
|
1216
|
+
cancelled: item.status === "cancelled",
|
|
1217
|
+
preview: textPreview(
|
|
1218
|
+
lost ? t("timeline.toolPresentation.sessionSessionidPtyVanished", { sessionId }) : tailPeek(stripped) || "sent"
|
|
1219
|
+
),
|
|
1220
|
+
body: lost ? { kind: "note", tone: "error", text: stripped || text } : {
|
|
1221
|
+
kind: "term",
|
|
1222
|
+
command: `write_stdin \u2192 session ${sessionId}`,
|
|
1223
|
+
workdir: null,
|
|
1224
|
+
output: stripped
|
|
1225
|
+
}
|
|
1226
|
+
};
|
|
1227
|
+
}
|
|
1228
|
+
function patchVerb(t, op) {
|
|
1229
|
+
if (!op) {
|
|
1230
|
+
return t("timeline.toolPresentation.edited");
|
|
1231
|
+
}
|
|
1232
|
+
return op.type === "create_file" ? t("timeline.toolPresentation.created") : op.type === "delete_file" ? t("timeline.toolPresentation.deleted") : op.moveTo ? t("timeline.toolPresentation.renamed") : t("timeline.toolPresentation.edited");
|
|
1233
|
+
}
|
|
1234
|
+
function pathBasename(path) {
|
|
1235
|
+
const parts = path.split("/").filter(Boolean);
|
|
1236
|
+
return parts.length ? parts[parts.length - 1] : path;
|
|
1237
|
+
}
|
|
1238
|
+
function pathDirname(path) {
|
|
1239
|
+
const idx = path.lastIndexOf("/");
|
|
1240
|
+
return idx >= 0 ? path.slice(0, idx + 1) : "";
|
|
1241
|
+
}
|
|
1242
|
+
function safeParsePatchOp(op) {
|
|
1243
|
+
try {
|
|
1244
|
+
return v4aToGitFileDiff(op);
|
|
1245
|
+
} catch {
|
|
1246
|
+
return null;
|
|
1247
|
+
}
|
|
1248
|
+
}
|
|
1249
|
+
function patchFiles(ops, parsed) {
|
|
1250
|
+
return ops.map((op, index) => ({
|
|
1251
|
+
key: `${op.type}:${op.path}:${index}`,
|
|
1252
|
+
path: op.path,
|
|
1253
|
+
file: parsed ? parsed[index] ?? null : safeParsePatchOp(op),
|
|
1254
|
+
diff: op.diff ?? ""
|
|
1255
|
+
}));
|
|
1256
|
+
}
|
|
1257
|
+
function applyPatchPresentation(t, item) {
|
|
1258
|
+
const ops = applyPatchOpsFromToolItem(item);
|
|
1259
|
+
const cancelled = item.status === "cancelled";
|
|
1260
|
+
const firstOp = ops[0];
|
|
1261
|
+
const base = { tool: "apply_patch", icon: "file-diff" };
|
|
1262
|
+
if (item.status === "running") {
|
|
1263
|
+
const fileCount = ops.length;
|
|
1264
|
+
const titleVerb = firstOp ? t("timeline.toolPresentation.applyingPathbasename", {
|
|
1265
|
+
pathBasename: pathBasename(firstOp.path)
|
|
1266
|
+
}) : t("timeline.toolPresentation.applyingPatch");
|
|
1267
|
+
return {
|
|
1268
|
+
...base,
|
|
1269
|
+
iconTone: "running",
|
|
1270
|
+
title: fileCount > 1 ? t("timeline.toolPresentation.applyingFilecountFiles", { fileCount }) : titleVerb,
|
|
1271
|
+
running: true,
|
|
1272
|
+
preview: textPreview(
|
|
1273
|
+
fileCount > 1 ? `${fileCount} files` : firstOp ? firstOp.path : "applying\u2026",
|
|
1274
|
+
true
|
|
1275
|
+
),
|
|
1276
|
+
body: { kind: "patch", files: patchFiles(ops) }
|
|
1277
|
+
};
|
|
1278
|
+
}
|
|
1279
|
+
if (item.status === "failed") {
|
|
1280
|
+
return {
|
|
1281
|
+
...base,
|
|
1282
|
+
iconTone: "failed",
|
|
1283
|
+
title: firstOp ? `${patchVerb(t, firstOp)} ${pathBasename(firstOp.path)}` : "apply_patch",
|
|
1284
|
+
chip: { tone: "bad", text: t("timeline.chip.failed") },
|
|
1285
|
+
preview: textPreview(
|
|
1286
|
+
typeof item.output === "string" ? item.output : t("timeline.toolPresentation.patchFailed")
|
|
1287
|
+
),
|
|
1288
|
+
body: {
|
|
1289
|
+
kind: "payloads",
|
|
1290
|
+
blocks: [{ label: t("timeline.toolPresentation.error"), value: item.output, failed: true }]
|
|
1291
|
+
}
|
|
1292
|
+
};
|
|
1293
|
+
}
|
|
1294
|
+
if (ops.length > 1) {
|
|
1295
|
+
const parsed = ops.map((op) => safeParsePatchOp(op));
|
|
1296
|
+
const goodFiles = parsed.filter((f) => f !== null);
|
|
1297
|
+
const add = goodFiles.reduce((n, f) => n + f.additions, 0);
|
|
1298
|
+
const del = goodFiles.reduce((n, f) => n + f.deletions, 0);
|
|
1299
|
+
return {
|
|
1300
|
+
...base,
|
|
1301
|
+
iconTone: "accent",
|
|
1302
|
+
title: t("timeline.toolPresentation.editedLengthFiles", { length: ops.length }),
|
|
1303
|
+
cancelled,
|
|
1304
|
+
preview: { kind: "files", count: ops.length, add, del },
|
|
1305
|
+
body: { kind: "patch", files: patchFiles(ops, parsed) }
|
|
1306
|
+
};
|
|
1307
|
+
}
|
|
1308
|
+
if (!firstOp) {
|
|
1309
|
+
return null;
|
|
1310
|
+
}
|
|
1311
|
+
if (firstOp.type === "delete_file") {
|
|
1312
|
+
return {
|
|
1313
|
+
...base,
|
|
1314
|
+
iconTone: "failed",
|
|
1315
|
+
title: t("timeline.toolPresentation.deletedPathbasename", {
|
|
1316
|
+
pathBasename: pathBasename(firstOp.path)
|
|
1317
|
+
}),
|
|
1318
|
+
cancelled,
|
|
1319
|
+
preview: { kind: "path", path: firstOp.path },
|
|
1320
|
+
body: { kind: "note", text: t("timeline.toolPresentation.fileDeletedNoDiffTo") }
|
|
1321
|
+
};
|
|
1322
|
+
}
|
|
1323
|
+
const file = safeParsePatchOp(firstOp);
|
|
1324
|
+
if (!file) {
|
|
1325
|
+
return {
|
|
1326
|
+
...base,
|
|
1327
|
+
iconTone: "accent",
|
|
1328
|
+
title: `${patchVerb(t, firstOp)} ${pathBasename(firstOp.path)}`,
|
|
1329
|
+
cancelled,
|
|
1330
|
+
preview: { kind: "malformed", name: pathBasename(firstOp.path) },
|
|
1331
|
+
body: { kind: "patch", files: patchFiles([firstOp], [null]), bare: true }
|
|
1332
|
+
};
|
|
1333
|
+
}
|
|
1334
|
+
return {
|
|
1335
|
+
...base,
|
|
1336
|
+
iconTone: "accent",
|
|
1337
|
+
title: `${patchVerb(t, firstOp)} ${pathBasename(file.path)}`,
|
|
1338
|
+
cancelled,
|
|
1339
|
+
preview: {
|
|
1340
|
+
kind: "path",
|
|
1341
|
+
path: file.path,
|
|
1342
|
+
add: file.additions,
|
|
1343
|
+
del: file.deletions
|
|
1344
|
+
},
|
|
1345
|
+
body: { kind: "patch", files: patchFiles([firstOp], [file]) }
|
|
1346
|
+
};
|
|
1347
|
+
}
|
|
1348
|
+
function webSearchQueryFromArguments(args) {
|
|
1349
|
+
if (typeof args === "string") {
|
|
1350
|
+
const trimmed = args.trim();
|
|
1351
|
+
if (!trimmed) {
|
|
1352
|
+
return null;
|
|
1353
|
+
}
|
|
1354
|
+
try {
|
|
1355
|
+
return webSearchQueryFromArguments(JSON.parse(trimmed));
|
|
1356
|
+
} catch {
|
|
1357
|
+
return trimmed;
|
|
1358
|
+
}
|
|
1359
|
+
}
|
|
1360
|
+
if (!args || typeof args !== "object") {
|
|
1361
|
+
return null;
|
|
1362
|
+
}
|
|
1363
|
+
const record = args;
|
|
1364
|
+
if (typeof record.query === "string" && record.query.trim().length > 0) {
|
|
1365
|
+
return record.query;
|
|
1366
|
+
}
|
|
1367
|
+
if (Array.isArray(record.queries)) {
|
|
1368
|
+
const first = record.queries.find(
|
|
1369
|
+
(value) => typeof value === "string" && value.trim().length > 0
|
|
1370
|
+
);
|
|
1371
|
+
if (first) {
|
|
1372
|
+
return first;
|
|
1373
|
+
}
|
|
1374
|
+
}
|
|
1375
|
+
return null;
|
|
1376
|
+
}
|
|
1377
|
+
function webSearchPresentation(t, item) {
|
|
1378
|
+
const raw = item.raw ?? {};
|
|
1379
|
+
const rawAction = raw.providerData?.action ?? {};
|
|
1380
|
+
const action = typeof rawAction.url === "string" ? { ...rawAction, url: withoutProviderTracking(rawAction.url) } : rawAction;
|
|
1381
|
+
const actionType = action.type ?? "search";
|
|
1382
|
+
const queries = (action.queries ?? []).filter(
|
|
1383
|
+
(value) => typeof value === "string" && value.trim().length > 0
|
|
1384
|
+
);
|
|
1385
|
+
const searchQuery = (typeof action.query === "string" && action.query.trim().length > 0 ? action.query : null) ?? queries[0] ?? webSearchQueryFromArguments(item.arguments);
|
|
1386
|
+
const running = item.status === "running";
|
|
1387
|
+
const query = actionType === "open_page" ? action.url ?? t("timeline.toolPresentation.pageUnavailable") : actionType === "find_in_page" ? action.pattern && action.url ? `"${action.pattern}" in ${action.url}` : action.pattern ?? action.url ?? t("timeline.toolPresentation.pageUnavailable") : (
|
|
1388
|
+
// Codex often emits the live card before action.query/queries land.
|
|
1389
|
+
searchQuery ?? (running ? "\u2026" : t("timeline.toolPresentation.queryUnavailable"))
|
|
1390
|
+
);
|
|
1391
|
+
const variants = queries.length > 1 ? ` +${queries.length - 1} variants` : "";
|
|
1392
|
+
const base = { tool: "web_search", icon: "search" };
|
|
1393
|
+
if (running) {
|
|
1394
|
+
return {
|
|
1395
|
+
...base,
|
|
1396
|
+
iconTone: "running",
|
|
1397
|
+
title: actionType === "open_page" ? t("timeline.toolPresentation.openingWebPage") : actionType === "find_in_page" ? t("timeline.toolPresentation.searchingWithinPage") : t("timeline.toolPresentation.searchingTheWeb"),
|
|
1398
|
+
running: true,
|
|
1399
|
+
preview: textPreview(`${query}${variants}`, true),
|
|
1400
|
+
body: {
|
|
1401
|
+
kind: "note",
|
|
1402
|
+
text: t("timeline.toolPresentation.searchingResultsFoldIntoThe")
|
|
1403
|
+
}
|
|
1404
|
+
};
|
|
1405
|
+
}
|
|
1406
|
+
const rawResults = item.output?.results;
|
|
1407
|
+
const results = Array.isArray(rawResults) ? rawResults.filter((r) => !!r && typeof r === "object") : null;
|
|
1408
|
+
return {
|
|
1409
|
+
...base,
|
|
1410
|
+
iconTone: "muted",
|
|
1411
|
+
title: actionType === "open_page" ? t("timeline.toolPresentation.openedWebPage") : actionType === "find_in_page" ? t("timeline.toolPresentation.searchedWithinPage") : t("timeline.toolPresentation.searchedTheWeb"),
|
|
1412
|
+
preview: textPreview(`${query}${variants}`),
|
|
1413
|
+
failed: item.status === "failed",
|
|
1414
|
+
cancelled: item.status === "cancelled",
|
|
1415
|
+
body: { kind: "web-results", results }
|
|
1416
|
+
};
|
|
1417
|
+
}
|
|
1418
|
+
function askToolPreview(args) {
|
|
1419
|
+
const record = args && typeof args === "object" ? args : null;
|
|
1420
|
+
const questions = Array.isArray(record?.questions) ? record.questions : null;
|
|
1421
|
+
if (!questions || questions.length === 0) {
|
|
1422
|
+
return null;
|
|
1423
|
+
}
|
|
1424
|
+
const first = questions[0];
|
|
1425
|
+
if (!first || typeof first !== "object") {
|
|
1426
|
+
return null;
|
|
1427
|
+
}
|
|
1428
|
+
const q = first;
|
|
1429
|
+
const text = typeof q.label === "string" && q.label.trim() ? q.label.trim() : typeof q.prompt === "string" && q.prompt.trim() ? q.prompt.trim() : null;
|
|
1430
|
+
if (!text) {
|
|
1431
|
+
return null;
|
|
1432
|
+
}
|
|
1433
|
+
const preview = truncatePreview(text, 90);
|
|
1434
|
+
return questions.length > 1 ? `${preview} \xB7 ${questions.length} questions` : preview;
|
|
1435
|
+
}
|
|
1436
|
+
function runOnTargetName(output) {
|
|
1437
|
+
const { text } = unwrapMcpOutput(output);
|
|
1438
|
+
const parsed = tryParseJson(text);
|
|
1439
|
+
if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) {
|
|
1440
|
+
const name = parsed.targetName;
|
|
1441
|
+
if (typeof name === "string" && name.trim()) {
|
|
1442
|
+
return name.trim();
|
|
1443
|
+
}
|
|
1444
|
+
}
|
|
1445
|
+
return null;
|
|
1446
|
+
}
|
|
1447
|
+
function runOnOpPreview(args) {
|
|
1448
|
+
const op = args.op;
|
|
1449
|
+
if (!op || typeof op !== "object" || Array.isArray(op)) {
|
|
1450
|
+
return null;
|
|
1451
|
+
}
|
|
1452
|
+
const record = op;
|
|
1453
|
+
if (record.kind === "exec" && typeof record.cmd === "string" && record.cmd.trim()) {
|
|
1454
|
+
return `$ ${redactSignedUrls(record.cmd.trim())}`;
|
|
1455
|
+
}
|
|
1456
|
+
if ((record.kind === "read" || record.kind === "write") && typeof record.path === "string" && record.path.trim()) {
|
|
1457
|
+
return truncatePreview(record.path.trim(), 72);
|
|
1458
|
+
}
|
|
1459
|
+
return null;
|
|
1460
|
+
}
|
|
1461
|
+
function goalToolPreview(name, args) {
|
|
1462
|
+
const leaf = mcpToolLeaf(name);
|
|
1463
|
+
if (leaf !== "goal_set" && leaf !== "goal_update" && leaf !== "goal_complete" && leaf !== "goal_pause" && leaf !== "wait_for_input") {
|
|
1464
|
+
return null;
|
|
1465
|
+
}
|
|
1466
|
+
const record = args && typeof args === "object" ? args : null;
|
|
1467
|
+
if (!record) {
|
|
1468
|
+
return null;
|
|
1469
|
+
}
|
|
1470
|
+
const text = typeof record.text === "string" ? record.text : typeof record.evidence === "string" ? record.evidence : typeof record.rationale === "string" ? record.rationale : typeof record.reason === "string" ? record.reason : typeof record.progressNote === "string" ? record.progressNote : null;
|
|
1471
|
+
return text ? truncatePreview(text, 90) : null;
|
|
1472
|
+
}
|
|
1473
|
+
var SKILL_TOOLS = /* @__PURE__ */ new Set([
|
|
1474
|
+
"skill_read",
|
|
1475
|
+
"repository_skill_read",
|
|
1476
|
+
"skill_checkout",
|
|
1477
|
+
"skill_search",
|
|
1478
|
+
"skill_save",
|
|
1479
|
+
"skill_publish",
|
|
1480
|
+
"skill_install",
|
|
1481
|
+
"skill_remove"
|
|
1482
|
+
]);
|
|
1483
|
+
var UUID_LIKE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
1484
|
+
function readableSkillName(name) {
|
|
1485
|
+
const bare = name.trim().replace(/^builtin:/, "");
|
|
1486
|
+
if (!bare || UUID_LIKE.test(bare)) return null;
|
|
1487
|
+
const plain = bare.replace(/[-_]+/g, " ").replace(/\s+/g, " ").trim();
|
|
1488
|
+
if (!plain) return null;
|
|
1489
|
+
return plain.charAt(0).toUpperCase() + plain.slice(1);
|
|
1490
|
+
}
|
|
1491
|
+
function skillNameInOutput(output) {
|
|
1492
|
+
const { text } = unwrapMcpOutput(output);
|
|
1493
|
+
const head = text.slice(0, 4e3).replace(/\\r/g, "").replace(/\r/g, "").replace(/\\n/g, "\n").replace(/\\"/g, '"');
|
|
1494
|
+
const start = /(?:^|\n|")---[ \t]*\n/.exec(head);
|
|
1495
|
+
if (!start) return null;
|
|
1496
|
+
const rest = head.slice(start.index + start[0].length);
|
|
1497
|
+
const end = /\n---[ \t]*(?:\n|$)/.exec(rest);
|
|
1498
|
+
const frontMatter = end ? rest.slice(0, end.index + 1) : rest;
|
|
1499
|
+
const match = /(?:^|\n)name:[ \t]*["']?([^"'\n\\]+?)["']?[ \t]*(?:\n|$)/.exec(frontMatter);
|
|
1500
|
+
return match?.[1]?.trim() || null;
|
|
1501
|
+
}
|
|
1502
|
+
function skillToolPreview(item) {
|
|
1503
|
+
const leaf = mcpToolLeaf(item.name);
|
|
1504
|
+
if (!SKILL_TOOLS.has(leaf)) return null;
|
|
1505
|
+
const args = parseToolArgs(item.arguments);
|
|
1506
|
+
if (leaf === "skill_search") {
|
|
1507
|
+
return typeof args.query === "string" && args.query.trim() ? truncatePreview(args.query, 72) : null;
|
|
1508
|
+
}
|
|
1509
|
+
const returned = item.status === "running" ? null : skillNameInOutput(item.output);
|
|
1510
|
+
const requested = typeof args.skill === "string" ? args.skill : typeof args.name === "string" ? args.name : typeof args.skillId === "string" ? args.skillId : null;
|
|
1511
|
+
const name = readableSkillName(returned ?? requested ?? "");
|
|
1512
|
+
return name ? truncatePreview(name, 72) : null;
|
|
1513
|
+
}
|
|
1514
|
+
var TOOL_STEP_ICONS = {
|
|
1515
|
+
// Chats, goals and notifications
|
|
1516
|
+
nameChat: "rename",
|
|
1517
|
+
saveBotTemplate: "rename",
|
|
1518
|
+
notify: "bell",
|
|
1519
|
+
callYou: "phone",
|
|
1520
|
+
withdrawNotification: "bell",
|
|
1521
|
+
tidyInbox: "inbox",
|
|
1522
|
+
setGoal: "target",
|
|
1523
|
+
noteProgress: "target",
|
|
1524
|
+
completeGoal: "target",
|
|
1525
|
+
setWaitingOn: "wait",
|
|
1526
|
+
updateLinks: "share",
|
|
1527
|
+
pauseGoal: "target",
|
|
1528
|
+
resumeGoal: "target",
|
|
1529
|
+
wait: "wait",
|
|
1530
|
+
askYou: "question",
|
|
1531
|
+
askForHelp: "help",
|
|
1532
|
+
// Notes, knowledge and instructions
|
|
1533
|
+
checkNotes: "brain",
|
|
1534
|
+
checkMeetings: "record",
|
|
1535
|
+
saveMeetingNotes: "record",
|
|
1536
|
+
saveNote: "brain",
|
|
1537
|
+
archiveNote: "brain",
|
|
1538
|
+
proposeUpdate: "brain",
|
|
1539
|
+
confirmUpdate: "brain",
|
|
1540
|
+
updateInstructions: "brain",
|
|
1541
|
+
coordinateWork: "sessions",
|
|
1542
|
+
// Guides (Skills)
|
|
1543
|
+
readGuide: "skill",
|
|
1544
|
+
findGuides: "skill",
|
|
1545
|
+
saveGuide: "skill",
|
|
1546
|
+
removeGuide: "skill",
|
|
1547
|
+
// Computers
|
|
1548
|
+
findComputers: "server",
|
|
1549
|
+
switchComputer: "server",
|
|
1550
|
+
useComputer: "server",
|
|
1551
|
+
setUpComputer: "server",
|
|
1552
|
+
removeComputer: "server",
|
|
1553
|
+
runCommand: "terminal",
|
|
1554
|
+
runCode: "code",
|
|
1555
|
+
editFile: "file-diff",
|
|
1556
|
+
lookAtImage: "image",
|
|
1557
|
+
searchCode: "search",
|
|
1558
|
+
searchFiles: "file-search",
|
|
1559
|
+
openFile: "file",
|
|
1560
|
+
// Screens and the browser
|
|
1561
|
+
checkScreens: "screen",
|
|
1562
|
+
openScreen: "screen",
|
|
1563
|
+
lookAtScreen: "screen",
|
|
1564
|
+
useScreen: "screen",
|
|
1565
|
+
enableScreenControl: "screen",
|
|
1566
|
+
useClipboard: "clipboard",
|
|
1567
|
+
openBrowser: "browser",
|
|
1568
|
+
useBrowser: "browser",
|
|
1569
|
+
readPage: "browser",
|
|
1570
|
+
readToolOutput: "file",
|
|
1571
|
+
lookAtPage: "browser",
|
|
1572
|
+
workInBrowser: "browser",
|
|
1573
|
+
download: "download",
|
|
1574
|
+
recordBrowser: "record",
|
|
1575
|
+
signIn: "sign-in",
|
|
1576
|
+
manageSignIns: "sign-in",
|
|
1577
|
+
shareBrowser: "share",
|
|
1578
|
+
workInExcel: "spreadsheet",
|
|
1579
|
+
// Projects, other chats and helpers
|
|
1580
|
+
checkProjects: "folder",
|
|
1581
|
+
organizeProjects: "folder",
|
|
1582
|
+
checkSidebar: "folder",
|
|
1583
|
+
updateSidebar: "folder",
|
|
1584
|
+
checkChats: "sessions",
|
|
1585
|
+
chooseChat: "sessions",
|
|
1586
|
+
checkProgress: "progress",
|
|
1587
|
+
changeModel: "model",
|
|
1588
|
+
startHelper: "helper",
|
|
1589
|
+
messageAssistant: "sessions",
|
|
1590
|
+
manageChat: "sessions",
|
|
1591
|
+
// Workspace administration and setup
|
|
1592
|
+
manageWorkspace: "settings",
|
|
1593
|
+
manageSetup: "server-cog",
|
|
1594
|
+
checkModels: "model",
|
|
1595
|
+
// Passwords and settings
|
|
1596
|
+
findPassword: "key",
|
|
1597
|
+
savePassword: "key",
|
|
1598
|
+
deletePassword: "key",
|
|
1599
|
+
checkSettings: "settings",
|
|
1600
|
+
updateSettings: "settings",
|
|
1601
|
+
// Tools and connections
|
|
1602
|
+
findTools: "package-search",
|
|
1603
|
+
useTool: "plug",
|
|
1604
|
+
requestAccess: "plug",
|
|
1605
|
+
listRepositories: "git",
|
|
1606
|
+
attachRepository: "git",
|
|
1607
|
+
// Web, images and video
|
|
1608
|
+
searchWeb: "search",
|
|
1609
|
+
createImage: "image",
|
|
1610
|
+
createVideo: "video",
|
|
1611
|
+
// Social accounts
|
|
1612
|
+
checkAccounts: "share",
|
|
1613
|
+
readPosts: "share",
|
|
1614
|
+
syncPosts: "share",
|
|
1615
|
+
replyToPost: "share",
|
|
1616
|
+
// Scheduled tasks
|
|
1617
|
+
checkSchedules: "calendar",
|
|
1618
|
+
checkEvents: "calendar",
|
|
1619
|
+
changeEventSource: "calendar",
|
|
1620
|
+
createSchedule: "calendar",
|
|
1621
|
+
updateSchedule: "calendar",
|
|
1622
|
+
runSchedule: "calendar",
|
|
1623
|
+
// Slack
|
|
1624
|
+
readSlack: "message",
|
|
1625
|
+
postSlack: "message",
|
|
1626
|
+
deleteMessage: "message",
|
|
1627
|
+
// Accounting
|
|
1628
|
+
readAccounting: "accounting",
|
|
1629
|
+
updateAccounting: "accounting",
|
|
1630
|
+
// Documents, files and Sites
|
|
1631
|
+
searchDocuments: "file-search",
|
|
1632
|
+
checkDocuments: "document",
|
|
1633
|
+
createDocument: "document",
|
|
1634
|
+
editDocument: "document",
|
|
1635
|
+
exportDocument: "document",
|
|
1636
|
+
restoreDocument: "document",
|
|
1637
|
+
archiveDocument: "archive",
|
|
1638
|
+
shareFile: "attachment",
|
|
1639
|
+
checkSite: "site",
|
|
1640
|
+
updateSite: "site"
|
|
1641
|
+
};
|
|
1642
|
+
function genericToolIconKind(name) {
|
|
1643
|
+
const leaf = mcpToolLeaf(name);
|
|
1644
|
+
const step = builtInToolStep(leaf);
|
|
1645
|
+
if (step) return TOOL_STEP_ICONS[step];
|
|
1646
|
+
return leaf.startsWith("goal_") ? "target" : leaf.startsWith("memory_") || leaf.startsWith("knowledge_") ? "brain" : leaf.startsWith("session_") || leaf.startsWith("sessions_") ? "sessions" : leaf.startsWith("sandbox") || leaf.startsWith("connected_machine_") ? "server" : leaf.startsWith("rig_") ? "server-cog" : leaf.startsWith("scheduled_") ? "calendar" : leaf.startsWith("artifacts_") || leaf.startsWith("editable_artifact_") ? "document" : leaf.startsWith("site_") ? "site" : leaf.startsWith("browser_") ? "browser" : leaf.startsWith("computer_") || leaf.startsWith("cua_") ? "screen" : leaf.startsWith("secret_") ? "key" : leaf.startsWith("social_") || leaf.startsWith("x_") || leaf.startsWith("reddit_") ? "share" : leaf.startsWith("slack_") ? "message" : leaf.startsWith("github_") ? "git" : leaf.startsWith("variable_") || leaf.startsWith("environment_") ? "settings" : leaf.includes("document") ? "file-search" : leaf.startsWith("skill_") ? "skill" : "wrench";
|
|
1647
|
+
}
|
|
1648
|
+
function mcpRowPresentation(t, item, options) {
|
|
1649
|
+
const args = parseToolArgs(item.arguments);
|
|
1650
|
+
const base = { tool: options.tool, icon: options.icon, title: options.title };
|
|
1651
|
+
if (item.status === "running") {
|
|
1652
|
+
return {
|
|
1653
|
+
...base,
|
|
1654
|
+
iconTone: "running",
|
|
1655
|
+
running: true,
|
|
1656
|
+
preview: options.runningPreview != null && options.plainRunningPreview ? textPreview(options.runningPreview) : textPreview(options.runningPreview ?? options.runningFallback, true),
|
|
1657
|
+
body: {
|
|
1658
|
+
kind: "payloads",
|
|
1659
|
+
blocks: [{ label: t("timeline.toolPresentation.arguments"), value: args }]
|
|
1660
|
+
}
|
|
1661
|
+
};
|
|
1662
|
+
}
|
|
1663
|
+
const { text: outText, isError } = unwrapMcpOutput(item.output);
|
|
1664
|
+
if ((isError || item.status === "failed") && item.status !== "cancelled") {
|
|
1665
|
+
const errorFallback = options.settledFallback === void 0 ? options.settledPreview : null;
|
|
1666
|
+
return {
|
|
1667
|
+
...base,
|
|
1668
|
+
iconTone: "failed",
|
|
1669
|
+
chip: { tone: "bad", text: t("timeline.chip.error") },
|
|
1670
|
+
...options.quietError ? {} : {
|
|
1671
|
+
detailPreview: true,
|
|
1672
|
+
preview: textPreview(
|
|
1673
|
+
truncatePreview(readableToolError(outText), 80) || errorFallback || t("timeline.toolPresentation.error")
|
|
1674
|
+
)
|
|
1675
|
+
},
|
|
1676
|
+
body: {
|
|
1677
|
+
kind: "payloads",
|
|
1678
|
+
blocks: [
|
|
1679
|
+
{ label: t("timeline.toolPresentation.arguments"), value: args },
|
|
1680
|
+
{ label: t("timeline.toolPresentation.error"), value: outText, failed: true }
|
|
1681
|
+
]
|
|
1682
|
+
}
|
|
1683
|
+
};
|
|
1684
|
+
}
|
|
1685
|
+
const settled = item.status === "cancelled" ? null : options.settledPreview ?? options.settledFallback ?? null;
|
|
1686
|
+
return {
|
|
1687
|
+
...base,
|
|
1688
|
+
iconTone: "muted",
|
|
1689
|
+
cancelled: item.status === "cancelled",
|
|
1690
|
+
...settled != null ? { preview: textPreview(settled) } : {},
|
|
1691
|
+
body: {
|
|
1692
|
+
kind: "payloads",
|
|
1693
|
+
blocks: options.omitEmptyResult && !outText ? [{ label: t("timeline.toolPresentation.arguments"), value: args }] : [
|
|
1694
|
+
{ label: t("timeline.toolPresentation.arguments"), value: args },
|
|
1695
|
+
{ label: t("timeline.toolPresentation.result"), value: outText }
|
|
1696
|
+
]
|
|
1697
|
+
}
|
|
1698
|
+
};
|
|
1699
|
+
}
|
|
1700
|
+
function askPresentation(t, item) {
|
|
1701
|
+
const preview = askToolPreview(parseToolArgs(item.arguments));
|
|
1702
|
+
return mcpRowPresentation(t, item, {
|
|
1703
|
+
tool: "ask",
|
|
1704
|
+
icon: "question",
|
|
1705
|
+
title: t("timeline.toolPresentation.ask"),
|
|
1706
|
+
runningPreview: preview,
|
|
1707
|
+
runningFallback: t("timeline.toolPresentation.waiting"),
|
|
1708
|
+
settledPreview: preview,
|
|
1709
|
+
omitEmptyResult: true
|
|
1710
|
+
});
|
|
1711
|
+
}
|
|
1712
|
+
function runOnPresentation(t, item) {
|
|
1713
|
+
const targetName = runOnTargetName(item.output);
|
|
1714
|
+
const opPreview = runOnOpPreview(parseToolArgs(item.arguments));
|
|
1715
|
+
return mcpRowPresentation(t, item, {
|
|
1716
|
+
tool: "run_on",
|
|
1717
|
+
icon: "server",
|
|
1718
|
+
title: targetName ? t("timeline.toolPresentation.runOnTargetname", { targetName }) : t("timeline.toolPresentation.runOn"),
|
|
1719
|
+
runningPreview: opPreview,
|
|
1720
|
+
runningFallback: t("timeline.toolPresentation.running"),
|
|
1721
|
+
settledPreview: opPreview,
|
|
1722
|
+
omitEmptyResult: true
|
|
1723
|
+
});
|
|
1724
|
+
}
|
|
1725
|
+
function machinePresentation(t, item) {
|
|
1726
|
+
const leaf = mcpToolLeaf(item.name);
|
|
1727
|
+
const args = parseToolArgs(item.arguments);
|
|
1728
|
+
const action = leaf === "computer_act" ? computerActAction(args) : null;
|
|
1729
|
+
const preview = (action && computerActPreview(action)) ?? null;
|
|
1730
|
+
const failed = item.status !== "running" && item.status !== "cancelled" && (item.status === "failed" || unwrapMcpOutput(item.output).isError);
|
|
1731
|
+
return mcpRowPresentation(t, item, {
|
|
1732
|
+
tool: "machine",
|
|
1733
|
+
icon: genericToolIconKind(item.name),
|
|
1734
|
+
title: failed ? machineFailureTitle(t, leaf) : machineTitle(t, leaf, args, action, item.output),
|
|
1735
|
+
runningPreview: preview,
|
|
1736
|
+
runningFallback: t("timeline.toolPresentation.running"),
|
|
1737
|
+
settledPreview: preview,
|
|
1738
|
+
settledFallback: t("timeline.toolPresentation.done"),
|
|
1739
|
+
plainRunningPreview: true,
|
|
1740
|
+
quietError: true
|
|
1741
|
+
});
|
|
1742
|
+
}
|
|
1743
|
+
function machineFailureTitle(t, leaf) {
|
|
1744
|
+
switch (leaf) {
|
|
1745
|
+
case "sandboxes_list":
|
|
1746
|
+
return t("timeline.toolPresentation.couldNotLookForMachines");
|
|
1747
|
+
case "sandbox_swap":
|
|
1748
|
+
return t("timeline.toolPresentation.couldNotMoveToTheMachine");
|
|
1749
|
+
case "computer_open":
|
|
1750
|
+
return t("timeline.toolPresentation.couldNotOpenTheScreen");
|
|
1751
|
+
default:
|
|
1752
|
+
return t("timeline.toolPresentation.couldNotUseTheScreen");
|
|
1753
|
+
}
|
|
1754
|
+
}
|
|
1755
|
+
function cuaTitle(t, leaf) {
|
|
1756
|
+
if (/^cua_(get_|list_|verify_|parse_|zoom$)/.test(leaf)) {
|
|
1757
|
+
return t("timeline.toolPresentation.lookedAtTheScreen");
|
|
1758
|
+
}
|
|
1759
|
+
if (/^cua_(click|double_click|right_click)$/.test(leaf)) {
|
|
1760
|
+
return t("timeline.toolPresentation.clickedOnTheScreen");
|
|
1761
|
+
}
|
|
1762
|
+
if (/^cua_(type_text|press_key|hotkey)$/.test(leaf)) {
|
|
1763
|
+
return t("timeline.toolPresentation.typedOnTheKeyboard");
|
|
1764
|
+
}
|
|
1765
|
+
return t("timeline.toolPresentation.usedTheScreen");
|
|
1766
|
+
}
|
|
1767
|
+
function computerActAction(args) {
|
|
1768
|
+
const action = args.action;
|
|
1769
|
+
return action && typeof action === "object" ? action : null;
|
|
1770
|
+
}
|
|
1771
|
+
function machineTitle(t, leaf, args, action, output) {
|
|
1772
|
+
switch (leaf) {
|
|
1773
|
+
case "sandboxes_list":
|
|
1774
|
+
return t("timeline.toolPresentation.lookedForMachines");
|
|
1775
|
+
case "interaction_discover":
|
|
1776
|
+
return t("timeline.toolPresentation.lookedForScreens");
|
|
1777
|
+
case "sandbox_swap": {
|
|
1778
|
+
if (args.target === "session") return t("timeline.toolPresentation.movedBack");
|
|
1779
|
+
const targetName = runOnTargetName(output);
|
|
1780
|
+
return targetName ? t("timeline.toolPresentation.movedToTargetname", { targetName }) : t("timeline.toolPresentation.movedToAMachine");
|
|
1781
|
+
}
|
|
1782
|
+
case "computer_open":
|
|
1783
|
+
return t("timeline.toolPresentation.openedTheScreen");
|
|
1784
|
+
case "computer_act":
|
|
1785
|
+
return action?.type === "pointer" ? t("timeline.toolPresentation.clickedOnTheScreen") : action?.type === "keyboard" ? t("timeline.toolPresentation.typedOnTheKeyboard") : t("timeline.toolPresentation.usedTheScreen");
|
|
1786
|
+
default:
|
|
1787
|
+
return leaf.startsWith("cua_") ? cuaTitle(t, leaf) : t("timeline.toolPresentation.lookedAtTheScreen");
|
|
1788
|
+
}
|
|
1789
|
+
}
|
|
1790
|
+
function computerActPreview(action) {
|
|
1791
|
+
const locator = action.locator && typeof action.locator === "object" ? action.locator : void 0;
|
|
1792
|
+
const named = typeof locator?.name === "string" ? locator.name : typeof locator?.text === "string" ? locator.text : void 0;
|
|
1793
|
+
const shown = (action.type === "keyboard" && typeof action.value === "string" ? action.value : named)?.trim();
|
|
1794
|
+
if (!shown) return void 0;
|
|
1795
|
+
return `\u201C${shown.length > 60 ? `${shown.slice(0, 59)}\u2026` : shown}\u201D`;
|
|
1796
|
+
}
|
|
1797
|
+
function genericToolPresentation(t, item) {
|
|
1798
|
+
const goalPreview = goalToolPreview(item.name, parseToolArgs(item.arguments)) ?? skillToolPreview(item) ?? callUserPreview(t, item);
|
|
1799
|
+
const title = toolDisplayName(t, item.name, item.display, callStepPhase(item));
|
|
1800
|
+
if (item.status !== "running") {
|
|
1801
|
+
const { text: outText, isError } = unwrapMcpOutput(item.output);
|
|
1802
|
+
const base = {
|
|
1803
|
+
tool: "generic",
|
|
1804
|
+
icon: genericToolIconKind(item.name),
|
|
1805
|
+
title
|
|
1806
|
+
};
|
|
1807
|
+
const args = parseToolArgs(item.arguments);
|
|
1808
|
+
if (isError && BLOCKED_OUTPUT.test(outText)) {
|
|
1809
|
+
return {
|
|
1810
|
+
...base,
|
|
1811
|
+
iconTone: "muted",
|
|
1812
|
+
chip: { tone: "interrupted", text: t("timeline.chip.blocked") },
|
|
1813
|
+
preview: textPreview(t("timeline.toolPresentation.blockedByYourPermissionSettings")),
|
|
1814
|
+
body: {
|
|
1815
|
+
kind: "payloads",
|
|
1816
|
+
note: t("timeline.toolPresentation.yourPermissionSettingsBlockThis"),
|
|
1817
|
+
blocks: [{ label: t("timeline.toolPresentation.arguments"), value: args }]
|
|
1818
|
+
}
|
|
1819
|
+
};
|
|
1820
|
+
}
|
|
1821
|
+
if (isError && UNCERTAIN_OUTPUT.test(outText)) {
|
|
1822
|
+
return {
|
|
1823
|
+
...base,
|
|
1824
|
+
iconTone: "failed",
|
|
1825
|
+
chip: { tone: "bad", text: t("timeline.toolPresentation.outcomeUnknown") },
|
|
1826
|
+
preview: textPreview(t("timeline.toolPresentation.itMayHaveRun")),
|
|
1827
|
+
body: {
|
|
1828
|
+
kind: "payloads",
|
|
1829
|
+
note: t("timeline.toolPresentation.thisActionMayHaveRun"),
|
|
1830
|
+
blocks: [{ label: t("timeline.toolPresentation.arguments"), value: args }]
|
|
1831
|
+
}
|
|
1832
|
+
};
|
|
1833
|
+
}
|
|
1834
|
+
}
|
|
1835
|
+
return mcpRowPresentation(t, item, {
|
|
1836
|
+
tool: "generic",
|
|
1837
|
+
icon: genericToolIconKind(item.name),
|
|
1838
|
+
title,
|
|
1839
|
+
runningPreview: goalPreview,
|
|
1840
|
+
runningFallback: t("timeline.toolPresentation.running"),
|
|
1841
|
+
settledPreview: goalPreview,
|
|
1842
|
+
settledFallback: t("timeline.toolPresentation.done"),
|
|
1843
|
+
plainRunningPreview: true
|
|
1844
|
+
});
|
|
1845
|
+
}
|
|
1846
|
+
var BLOCKED_OUTPUT = /Connector action was not executed: blocked\b/;
|
|
1847
|
+
function callUserPreview(t, item) {
|
|
1848
|
+
if (mcpToolLeaf(item.name) !== "call_user") return null;
|
|
1849
|
+
const args = parseToolArgs(item.arguments);
|
|
1850
|
+
const reason = args && typeof args === "object" && typeof args.reason === "string" ? truncatePreview(args.reason, 80) : null;
|
|
1851
|
+
if (item.status === "running") return reason;
|
|
1852
|
+
const result = tryParseJson(unwrapMcpOutput(item.output).text);
|
|
1853
|
+
const record = result && typeof result === "object" ? result : null;
|
|
1854
|
+
const outcome = record?.placed === false ? t("timeline.toolPresentation.callUser.notPlaced") : record?.outcome === "answered" ? t("timeline.toolPresentation.callUser.answered") : record?.outcome === "declined" ? t("timeline.toolPresentation.callUser.declined") : record?.outcome === "missed" ? t("timeline.toolPresentation.callUser.missed") : record?.outcome === "cancelled" ? t("timeline.toolPresentation.callUser.cancelled") : null;
|
|
1855
|
+
if (outcome && reason) return `${outcome} \xB7 ${reason}`;
|
|
1856
|
+
return outcome ?? reason;
|
|
1857
|
+
}
|
|
1858
|
+
var UNCERTAIN_OUTPUT = /Connector action outcome is uncertain\b/;
|
|
1859
|
+
function splitToolWireName(name) {
|
|
1860
|
+
const boundary = name.indexOf("__");
|
|
1861
|
+
if (boundary <= 0) {
|
|
1862
|
+
return { name, source: null, leaf: name };
|
|
1863
|
+
}
|
|
1864
|
+
return {
|
|
1865
|
+
name,
|
|
1866
|
+
source: name.slice(0, boundary),
|
|
1867
|
+
leaf: name.slice(boundary + 2)
|
|
1868
|
+
};
|
|
1869
|
+
}
|
|
1870
|
+
function toolSearchQuery(item) {
|
|
1871
|
+
const fromArgs = parseToolArgs(item.arguments);
|
|
1872
|
+
if (typeof fromArgs.query === "string" && fromArgs.query.trim()) {
|
|
1873
|
+
return fromArgs.query.trim();
|
|
1874
|
+
}
|
|
1875
|
+
const raw = item.raw;
|
|
1876
|
+
if (raw && typeof raw === "object") {
|
|
1877
|
+
const rawArgs = raw.arguments;
|
|
1878
|
+
if (typeof rawArgs === "string" && rawArgs.trim()) {
|
|
1879
|
+
const parsed = tryParseJson(rawArgs);
|
|
1880
|
+
if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) {
|
|
1881
|
+
const query = parsed.query;
|
|
1882
|
+
if (typeof query === "string" && query.trim()) {
|
|
1883
|
+
return query.trim();
|
|
1884
|
+
}
|
|
1885
|
+
}
|
|
1886
|
+
} else if (rawArgs && typeof rawArgs === "object" && !Array.isArray(rawArgs)) {
|
|
1887
|
+
const query = rawArgs.query;
|
|
1888
|
+
if (typeof query === "string" && query.trim()) {
|
|
1889
|
+
return query.trim();
|
|
1890
|
+
}
|
|
1891
|
+
}
|
|
1892
|
+
}
|
|
1893
|
+
return "";
|
|
1894
|
+
}
|
|
1895
|
+
function parseDisclosedTools(output) {
|
|
1896
|
+
if (output && typeof output === "object" && !Array.isArray(output)) {
|
|
1897
|
+
const tools = output.tools;
|
|
1898
|
+
if (Array.isArray(tools)) {
|
|
1899
|
+
return tools.map((tool) => {
|
|
1900
|
+
if (typeof tool === "string" && tool.trim()) {
|
|
1901
|
+
return splitToolWireName(tool.trim());
|
|
1902
|
+
}
|
|
1903
|
+
if (tool && typeof tool === "object" && typeof tool.name === "string") {
|
|
1904
|
+
const name = tool.name.trim();
|
|
1905
|
+
return name ? splitToolWireName(name) : null;
|
|
1906
|
+
}
|
|
1907
|
+
return null;
|
|
1908
|
+
}).filter((tool) => tool != null);
|
|
1909
|
+
}
|
|
1910
|
+
}
|
|
1911
|
+
const { text } = unwrapMcpOutput(output);
|
|
1912
|
+
const trimmed = text.trim();
|
|
1913
|
+
if (!trimmed) {
|
|
1914
|
+
return null;
|
|
1915
|
+
}
|
|
1916
|
+
if (/^no matching tools found\.?$/i.test(trimmed)) {
|
|
1917
|
+
return [];
|
|
1918
|
+
}
|
|
1919
|
+
const disclosed = trimmed.match(/^disclosed tools:\s*(.+)$/i);
|
|
1920
|
+
if (disclosed?.[1]) {
|
|
1921
|
+
return disclosed[1].split(",").map((part) => part.trim()).filter(Boolean).map(splitToolWireName);
|
|
1922
|
+
}
|
|
1923
|
+
const parsed = tryParseJson(trimmed);
|
|
1924
|
+
if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) {
|
|
1925
|
+
return parseDisclosedTools(parsed);
|
|
1926
|
+
}
|
|
1927
|
+
return null;
|
|
1928
|
+
}
|
|
1929
|
+
function toolSearchPreview(t, tools, cancelled) {
|
|
1930
|
+
if (cancelled) {
|
|
1931
|
+
return void 0;
|
|
1932
|
+
}
|
|
1933
|
+
if (!tools) {
|
|
1934
|
+
return t("timeline.toolPresentation.done");
|
|
1935
|
+
}
|
|
1936
|
+
if (tools.length === 0) {
|
|
1937
|
+
return t("timeline.toolPresentation.noMatches");
|
|
1938
|
+
}
|
|
1939
|
+
if (tools.length === 1) {
|
|
1940
|
+
return tools[0].leaf;
|
|
1941
|
+
}
|
|
1942
|
+
const head = tools[0].leaf;
|
|
1943
|
+
return t("timeline.toolPresentation.lengthToolsTruncatepreview", {
|
|
1944
|
+
length: tools.length,
|
|
1945
|
+
truncatePreview: truncatePreview(head, 28)
|
|
1946
|
+
});
|
|
1947
|
+
}
|
|
1948
|
+
function toolSearchPresentation(t, item) {
|
|
1949
|
+
const query = toolSearchQuery(item);
|
|
1950
|
+
const queryPreview = query ? truncatePreview(query, 64) : "";
|
|
1951
|
+
const note = query ? `capability query: ${query}` : void 0;
|
|
1952
|
+
const args = parseToolArgs(item.arguments);
|
|
1953
|
+
const base = { tool: "tool_search", icon: "package-search" };
|
|
1954
|
+
if (item.status === "running") {
|
|
1955
|
+
return {
|
|
1956
|
+
...base,
|
|
1957
|
+
iconTone: "running",
|
|
1958
|
+
title: t("timeline.toolPresentation.lookingUpTools"),
|
|
1959
|
+
running: true,
|
|
1960
|
+
preview: textPreview(
|
|
1961
|
+
queryPreview || t("timeline.toolPresentation.matchingCapabilities"),
|
|
1962
|
+
true
|
|
1963
|
+
),
|
|
1964
|
+
body: {
|
|
1965
|
+
kind: "listing",
|
|
1966
|
+
note,
|
|
1967
|
+
entries: [],
|
|
1968
|
+
blocks: [{ label: t("timeline.toolPresentation.arguments"), value: args }]
|
|
1969
|
+
}
|
|
1970
|
+
};
|
|
1971
|
+
}
|
|
1972
|
+
const { text: outText, isError } = unwrapMcpOutput(item.output);
|
|
1973
|
+
if ((isError || item.status === "failed") && item.status !== "cancelled") {
|
|
1974
|
+
return {
|
|
1975
|
+
...base,
|
|
1976
|
+
iconTone: "failed",
|
|
1977
|
+
title: t("timeline.toolPresentation.toolLookupFailed"),
|
|
1978
|
+
failed: true,
|
|
1979
|
+
preview: textPreview(
|
|
1980
|
+
truncatePreview(outText, 80) || queryPreview || t("timeline.toolPresentation.lookupFailed")
|
|
1981
|
+
),
|
|
1982
|
+
body: {
|
|
1983
|
+
kind: "listing",
|
|
1984
|
+
note,
|
|
1985
|
+
entries: [],
|
|
1986
|
+
blocks: [
|
|
1987
|
+
{ label: t("timeline.toolPresentation.arguments"), value: args },
|
|
1988
|
+
{ label: t("timeline.toolPresentation.error"), value: outText, failed: true }
|
|
1989
|
+
]
|
|
1990
|
+
}
|
|
1991
|
+
};
|
|
1992
|
+
}
|
|
1993
|
+
const tools = parseDisclosedTools(item.output);
|
|
1994
|
+
const preview = toolSearchPreview(t, tools, item.status === "cancelled");
|
|
1995
|
+
return {
|
|
1996
|
+
...base,
|
|
1997
|
+
iconTone: "muted",
|
|
1998
|
+
title: t("timeline.toolPresentation.lookedUpTools"),
|
|
1999
|
+
detailPreview: true,
|
|
2000
|
+
cancelled: item.status === "cancelled",
|
|
2001
|
+
...preview ? { preview: textPreview(preview) } : {},
|
|
2002
|
+
body: {
|
|
2003
|
+
kind: "listing",
|
|
2004
|
+
note,
|
|
2005
|
+
entries: (tools ?? []).slice(0, 12).map((tool) => ({
|
|
2006
|
+
key: tool.name,
|
|
2007
|
+
title: tool.leaf,
|
|
2008
|
+
eyebrow: tool.source,
|
|
2009
|
+
mono: true
|
|
2010
|
+
})),
|
|
2011
|
+
more: tools && tools.length > 12 ? tools.length - 12 : void 0,
|
|
2012
|
+
empty: tools && tools.length === 0 ? t("timeline.toolPresentation.noDeferredToolsMatchedThis") : void 0,
|
|
2013
|
+
blocks: tools == null && outText ? [
|
|
2014
|
+
{ label: t("timeline.toolPresentation.arguments"), value: args },
|
|
2015
|
+
{ label: t("timeline.toolPresentation.result"), value: outText }
|
|
2016
|
+
] : [{ label: t("timeline.toolPresentation.arguments"), value: args }]
|
|
2017
|
+
}
|
|
2018
|
+
};
|
|
2019
|
+
}
|
|
2020
|
+
function parseSearchHits(t, outText) {
|
|
2021
|
+
const parsed = tryParseJson(outText);
|
|
2022
|
+
if (parsed == null) {
|
|
2023
|
+
return null;
|
|
2024
|
+
}
|
|
2025
|
+
const list = Array.isArray(parsed) ? parsed : parsed && typeof parsed === "object" && Array.isArray(parsed.results) ? parsed.results : parsed && typeof parsed === "object" && Array.isArray(parsed.hits) ? parsed.hits : null;
|
|
2026
|
+
if (!list) {
|
|
2027
|
+
return null;
|
|
2028
|
+
}
|
|
2029
|
+
return list.map((row) => {
|
|
2030
|
+
const r = row && typeof row === "object" ? row : {};
|
|
2031
|
+
const title = typeof r.title === "string" && r.title || typeof r.name === "string" && r.name || typeof r.documentTitle === "string" && r.documentTitle || typeof r.path === "string" && r.path || typeof r.id === "string" && r.id || t("timeline.toolPresentation.result");
|
|
2032
|
+
const snippet = typeof r.snippet === "string" && r.snippet || typeof r.text === "string" && r.text || typeof r.content === "string" && r.content || "";
|
|
2033
|
+
return { title, snippet: truncatePreview(snippet, 160) };
|
|
2034
|
+
});
|
|
2035
|
+
}
|
|
2036
|
+
function docsSearchPresentation(t, item) {
|
|
2037
|
+
const args = parseToolArgs(item.arguments);
|
|
2038
|
+
const query = typeof args.query === "string" ? args.query.trim() : "";
|
|
2039
|
+
const base = {
|
|
2040
|
+
tool: "docs_search",
|
|
2041
|
+
icon: "file-search",
|
|
2042
|
+
title: query ? t("timeline.toolPresentation.searchTruncatepreview", {
|
|
2043
|
+
truncatePreview: truncatePreview(query, 48)
|
|
2044
|
+
}) : toolDisplayName(t, item.name, item.display, callStepPhase(item))
|
|
2045
|
+
};
|
|
2046
|
+
if (item.status === "running") {
|
|
2047
|
+
return {
|
|
2048
|
+
...base,
|
|
2049
|
+
iconTone: "running",
|
|
2050
|
+
running: true,
|
|
2051
|
+
preview: textPreview(t("timeline.toolPresentation.searching"), true),
|
|
2052
|
+
body: {
|
|
2053
|
+
kind: "payloads",
|
|
2054
|
+
blocks: [{ label: t("timeline.toolPresentation.arguments"), value: args }]
|
|
2055
|
+
}
|
|
2056
|
+
};
|
|
2057
|
+
}
|
|
2058
|
+
const { text: outText, isError } = unwrapMcpOutput(item.output);
|
|
2059
|
+
if ((isError || item.status === "failed") && item.status !== "cancelled") {
|
|
2060
|
+
return {
|
|
2061
|
+
...base,
|
|
2062
|
+
iconTone: "failed",
|
|
2063
|
+
failed: true,
|
|
2064
|
+
preview: textPreview(
|
|
2065
|
+
truncatePreview(outText, 80) || t("timeline.toolPresentation.searchFailed")
|
|
2066
|
+
),
|
|
2067
|
+
body: {
|
|
2068
|
+
kind: "payloads",
|
|
2069
|
+
blocks: [
|
|
2070
|
+
{ label: t("timeline.toolPresentation.arguments"), value: args },
|
|
2071
|
+
{ label: t("timeline.toolPresentation.error"), value: outText, failed: true }
|
|
2072
|
+
]
|
|
2073
|
+
}
|
|
2074
|
+
};
|
|
2075
|
+
}
|
|
2076
|
+
const hits = parseSearchHits(t, outText);
|
|
2077
|
+
const preview = item.status === "cancelled" ? void 0 : hits ? hits.length === 0 ? t("timeline.toolPresentation.noHits") : t("counts.hits", { count: hits.length }) : t("timeline.toolPresentation.done");
|
|
2078
|
+
return {
|
|
2079
|
+
...base,
|
|
2080
|
+
iconTone: "muted",
|
|
2081
|
+
cancelled: item.status === "cancelled",
|
|
2082
|
+
...preview ? { preview: textPreview(preview) } : {},
|
|
2083
|
+
body: {
|
|
2084
|
+
kind: "listing",
|
|
2085
|
+
entries: (hits ?? []).slice(0, 8).map((hit) => ({
|
|
2086
|
+
key: `${hit.title}\0${hit.snippet}`,
|
|
2087
|
+
title: hit.title,
|
|
2088
|
+
snippet: hit.snippet || void 0
|
|
2089
|
+
})),
|
|
2090
|
+
blocks: [
|
|
2091
|
+
{ label: t("timeline.toolPresentation.arguments"), value: args },
|
|
2092
|
+
{ label: t("timeline.toolPresentation.result"), value: outText }
|
|
2093
|
+
]
|
|
2094
|
+
}
|
|
2095
|
+
};
|
|
2096
|
+
}
|
|
2097
|
+
function sessionTitlePresentation(t, item) {
|
|
2098
|
+
const args = parseToolArgs(item.arguments);
|
|
2099
|
+
const titleArg = typeof args.title === "string" ? args.title.trim() : "";
|
|
2100
|
+
const previewTitle = titleArg ? truncatePreview(titleArg, 72) : "";
|
|
2101
|
+
const base = {
|
|
2102
|
+
tool: "session_title",
|
|
2103
|
+
icon: genericToolIconKind(item.name),
|
|
2104
|
+
title: toolDisplayName(t, item.name, item.display, callStepPhase(item))
|
|
2105
|
+
};
|
|
2106
|
+
if (item.status === "running") {
|
|
2107
|
+
return {
|
|
2108
|
+
...base,
|
|
2109
|
+
iconTone: "running",
|
|
2110
|
+
running: true,
|
|
2111
|
+
preview: textPreview(previewTitle || t("timeline.toolPresentation.settingTitle"), true),
|
|
2112
|
+
body: {
|
|
2113
|
+
kind: "payloads",
|
|
2114
|
+
blocks: [{ label: t("timeline.toolPresentation.arguments"), value: args }]
|
|
2115
|
+
}
|
|
2116
|
+
};
|
|
2117
|
+
}
|
|
2118
|
+
const { text: outText, isError } = unwrapMcpOutput(item.output);
|
|
2119
|
+
if ((isError || item.status === "failed") && item.status !== "cancelled") {
|
|
2120
|
+
return {
|
|
2121
|
+
...base,
|
|
2122
|
+
iconTone: "failed",
|
|
2123
|
+
failed: true,
|
|
2124
|
+
preview: textPreview(
|
|
2125
|
+
truncatePreview(outText, 80) || t("timeline.toolPresentation.renameFailed")
|
|
2126
|
+
),
|
|
2127
|
+
body: {
|
|
2128
|
+
kind: "payloads",
|
|
2129
|
+
blocks: [
|
|
2130
|
+
{ label: t("timeline.toolPresentation.arguments"), value: args },
|
|
2131
|
+
{ label: t("timeline.toolPresentation.error"), value: outText, failed: true }
|
|
2132
|
+
]
|
|
2133
|
+
}
|
|
2134
|
+
};
|
|
2135
|
+
}
|
|
2136
|
+
let settledTitle = previewTitle;
|
|
2137
|
+
if (!settledTitle) {
|
|
2138
|
+
const parsed = tryParseJson(outText);
|
|
2139
|
+
if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) {
|
|
2140
|
+
const fromResult = parsed.title;
|
|
2141
|
+
if (typeof fromResult === "string" && fromResult.trim()) {
|
|
2142
|
+
settledTitle = truncatePreview(fromResult.trim(), 72);
|
|
2143
|
+
}
|
|
2144
|
+
}
|
|
2145
|
+
}
|
|
2146
|
+
return {
|
|
2147
|
+
...base,
|
|
2148
|
+
iconTone: "muted",
|
|
2149
|
+
cancelled: item.status === "cancelled",
|
|
2150
|
+
...item.status !== "cancelled" && settledTitle ? { preview: textPreview(settledTitle) } : {},
|
|
2151
|
+
body: {
|
|
2152
|
+
kind: "payloads",
|
|
2153
|
+
blocks: outText ? [
|
|
2154
|
+
{ label: t("timeline.toolPresentation.arguments"), value: args },
|
|
2155
|
+
{ label: t("timeline.toolPresentation.result"), value: outText }
|
|
2156
|
+
] : [{ label: t("timeline.toolPresentation.arguments"), value: args }]
|
|
2157
|
+
}
|
|
2158
|
+
};
|
|
2159
|
+
}
|
|
2160
|
+
var PRESENTERS_BY_RAW_TYPE = {
|
|
2161
|
+
apply_patch_call: "apply_patch",
|
|
2162
|
+
// Web renders these with richer media renderers; keep them off name matches.
|
|
2163
|
+
computer_call: "generic",
|
|
2164
|
+
tool_search_call: "tool_search"
|
|
2165
|
+
};
|
|
2166
|
+
var PRESENTERS_BY_NAME = {
|
|
2167
|
+
exec_command: "exec",
|
|
2168
|
+
request_human_input: "ask",
|
|
2169
|
+
run_on: "run_on",
|
|
2170
|
+
write_stdin: "write_stdin",
|
|
2171
|
+
apply_patch_call: "apply_patch",
|
|
2172
|
+
apply_patch: "apply_patch",
|
|
2173
|
+
web_search_call: "web_search",
|
|
2174
|
+
tool_search: "tool_search",
|
|
2175
|
+
search_documents: "docs_search",
|
|
2176
|
+
knowledge_search: "docs_search",
|
|
2177
|
+
set_session_title: "session_title",
|
|
2178
|
+
set_other_session_title: "session_title",
|
|
2179
|
+
sandboxes_list: "machine",
|
|
2180
|
+
sandbox_swap: "machine",
|
|
2181
|
+
computer_open: "machine",
|
|
2182
|
+
computer_observe: "machine",
|
|
2183
|
+
computer_act: "machine",
|
|
2184
|
+
interaction_discover: "machine"
|
|
2185
|
+
};
|
|
2186
|
+
function callStepPhase(item) {
|
|
2187
|
+
if (item.status === "complete" && unwrapMcpOutput(item.output).isError) return "running";
|
|
2188
|
+
return toolStepPhase(item.status);
|
|
2189
|
+
}
|
|
2190
|
+
function plainToolRow(t, item, row, context = {}) {
|
|
2191
|
+
const { detailPreview: _detailPreview, titleMono: _titleMono, ...rest } = row;
|
|
2192
|
+
const plain = { ...rest, body: plainBody(row.body) };
|
|
2193
|
+
if (row.detailPreview) delete plain.preview;
|
|
2194
|
+
if (row.tool === "exec" || row.tool === "write_stdin") {
|
|
2195
|
+
const failed = row.iconTone === "failed" || row.chip?.tone === "bad" || item.status === "failed";
|
|
2196
|
+
plain.title = toolStepLabel(t, "runCommand", failed ? "running" : toolStepPhase(item.status));
|
|
2197
|
+
if (isConnectedMachineOutcomeUnknownOutput(item.output)) {
|
|
2198
|
+
return {
|
|
2199
|
+
...plain,
|
|
2200
|
+
title: toolStepLabel(t, "runCommand", "done"),
|
|
2201
|
+
body: { kind: "note", tone: "error", text: t("toolActionReview.itMayHaveRunCheck") }
|
|
2202
|
+
};
|
|
2203
|
+
}
|
|
2204
|
+
const computeLabel = context.computeLabel ?? null;
|
|
2205
|
+
if (computeLabel) plain.preview = textPreview(computeLabel, row.running);
|
|
2206
|
+
else delete plain.preview;
|
|
2207
|
+
if (row.chip?.tone === "bad") plain.chip = { tone: "bad", text: t("timeline.chip.failed") };
|
|
2208
|
+
else delete plain.chip;
|
|
2209
|
+
} else if (row.tool === "apply_patch") {
|
|
2210
|
+
delete plain.preview;
|
|
2211
|
+
}
|
|
2212
|
+
return plain;
|
|
2213
|
+
}
|
|
2214
|
+
function plainBody(body) {
|
|
2215
|
+
switch (body.kind) {
|
|
2216
|
+
case "term":
|
|
2217
|
+
case "patch":
|
|
2218
|
+
return { kind: "none" };
|
|
2219
|
+
case "payloads":
|
|
2220
|
+
return body.note ? { kind: "note", text: body.note } : { kind: "none" };
|
|
2221
|
+
case "listing": {
|
|
2222
|
+
const entries = body.entries.filter((entry) => !entry.mono);
|
|
2223
|
+
return entries.length ? { ...body, entries, blocks: [] } : { kind: "none" };
|
|
2224
|
+
}
|
|
2225
|
+
default:
|
|
2226
|
+
return body;
|
|
2227
|
+
}
|
|
2228
|
+
}
|
|
2229
|
+
function presentedToolKind(item) {
|
|
2230
|
+
const rawType = rawTypeOf(item);
|
|
2231
|
+
if (rawType && PRESENTERS_BY_RAW_TYPE[rawType]) {
|
|
2232
|
+
return PRESENTERS_BY_RAW_TYPE[rawType];
|
|
2233
|
+
}
|
|
2234
|
+
const exact = PRESENTERS_BY_NAME[item.name];
|
|
2235
|
+
if (exact) {
|
|
2236
|
+
return exact;
|
|
2237
|
+
}
|
|
2238
|
+
const leaf = mcpToolLeaf(item.name);
|
|
2239
|
+
if (leaf !== item.name && PRESENTERS_BY_NAME[leaf]) {
|
|
2240
|
+
return PRESENTERS_BY_NAME[leaf];
|
|
2241
|
+
}
|
|
2242
|
+
if (leaf.startsWith("cua_")) {
|
|
2243
|
+
return "machine";
|
|
2244
|
+
}
|
|
2245
|
+
return "generic";
|
|
2246
|
+
}
|
|
2247
|
+
var PREVIEW_READABLE_KINDS = /* @__PURE__ */ new Set([
|
|
2248
|
+
"exec",
|
|
2249
|
+
"write_stdin",
|
|
2250
|
+
"apply_patch",
|
|
2251
|
+
"generic"
|
|
2252
|
+
]);
|
|
2253
|
+
function presentsToolOutputPreview(item) {
|
|
2254
|
+
if (!item.outputPreview) return true;
|
|
2255
|
+
if (item.outputPreview.shape !== "structured") return false;
|
|
2256
|
+
const shown = invokedToolCall(item);
|
|
2257
|
+
const kind = presentedToolKind(shown);
|
|
2258
|
+
if (!PREVIEW_READABLE_KINDS.has(kind)) return false;
|
|
2259
|
+
if (kind !== "generic") return true;
|
|
2260
|
+
if (hasCutJsonText(shown.output, 0)) return false;
|
|
2261
|
+
return retainedToolResultImages(shown.output).images.length === 0;
|
|
2262
|
+
}
|
|
2263
|
+
var OUTPUT_PREVIEW_OMISSION = / characters omitted from this preview\]…\n/u;
|
|
2264
|
+
function hasCutJsonText(value, depth) {
|
|
2265
|
+
if (typeof value === "string") {
|
|
2266
|
+
return /^\s*[[{]/u.test(value) && OUTPUT_PREVIEW_OMISSION.test(value);
|
|
2267
|
+
}
|
|
2268
|
+
if (depth >= 4 || value === null || typeof value !== "object") return false;
|
|
2269
|
+
const children = Array.isArray(value) ? value : Object.values(value);
|
|
2270
|
+
return children.some((child) => hasCutJsonText(child, depth + 1));
|
|
2271
|
+
}
|
|
2272
|
+
function toolRowPresentation(t, item, context = {}) {
|
|
2273
|
+
item = invokedToolCall(item);
|
|
2274
|
+
const row = presentedToolRow(t, item, context);
|
|
2275
|
+
const presented = context.details === "plain" ? plainToolRow(t, item, row, context) : row;
|
|
2276
|
+
const shown = item.awaitingApproval ? awaitingApprovalRow(t, presented) : item.approvalRejected ? rejectedApprovalRow(t, presented, item.approvalRejected === "automatic") : presented;
|
|
2277
|
+
return redactRow(shown, item);
|
|
2278
|
+
}
|
|
2279
|
+
function redactRow(row, item) {
|
|
2280
|
+
const values = signedValuesDeep([item.arguments, item.output, item.raw, row]);
|
|
2281
|
+
return redactDeep(row, values);
|
|
2282
|
+
}
|
|
2283
|
+
function awaitingApprovalRow(t, row) {
|
|
2284
|
+
return {
|
|
2285
|
+
...row,
|
|
2286
|
+
iconTone: "accent",
|
|
2287
|
+
running: false,
|
|
2288
|
+
chip: void 0,
|
|
2289
|
+
failed: false,
|
|
2290
|
+
cancelled: false,
|
|
2291
|
+
detailPreview: false,
|
|
2292
|
+
preview: textPreview(t("timeline.toolRenderers.waitingForYourApproval"))
|
|
2293
|
+
};
|
|
2294
|
+
}
|
|
2295
|
+
function rejectedApprovalRow(t, row, automatic) {
|
|
2296
|
+
return {
|
|
2297
|
+
...row,
|
|
2298
|
+
iconTone: "muted",
|
|
2299
|
+
running: false,
|
|
2300
|
+
chip: void 0,
|
|
2301
|
+
failed: false,
|
|
2302
|
+
cancelled: false,
|
|
2303
|
+
detailPreview: false,
|
|
2304
|
+
preview: textPreview(
|
|
2305
|
+
t(
|
|
2306
|
+
automatic ? "timeline.toolRenderers.declinedAutomatically" : "timeline.toolRenderers.youRejectedThis"
|
|
2307
|
+
)
|
|
2308
|
+
)
|
|
2309
|
+
};
|
|
2310
|
+
}
|
|
2311
|
+
function presentedToolRow(t, item, context) {
|
|
2312
|
+
switch (presentedToolKind(item)) {
|
|
2313
|
+
case "exec":
|
|
2314
|
+
return execPresentation(t, item, context);
|
|
2315
|
+
case "write_stdin":
|
|
2316
|
+
return writeStdinPresentation(t, item);
|
|
2317
|
+
case "apply_patch":
|
|
2318
|
+
return applyPatchPresentation(t, item) ?? genericToolPresentation(t, item);
|
|
2319
|
+
case "web_search":
|
|
2320
|
+
return webSearchPresentation(t, item);
|
|
2321
|
+
case "ask":
|
|
2322
|
+
return askPresentation(t, item);
|
|
2323
|
+
case "run_on":
|
|
2324
|
+
return runOnPresentation(t, item);
|
|
2325
|
+
case "tool_search":
|
|
2326
|
+
return toolSearchPresentation(t, item);
|
|
2327
|
+
case "docs_search":
|
|
2328
|
+
return docsSearchPresentation(t, item);
|
|
2329
|
+
case "session_title":
|
|
2330
|
+
return sessionTitlePresentation(t, item);
|
|
2331
|
+
case "machine":
|
|
2332
|
+
return machinePresentation(t, item);
|
|
2333
|
+
default:
|
|
2334
|
+
return genericToolPresentation(t, item);
|
|
2335
|
+
}
|
|
2336
|
+
}
|
|
2337
|
+
|
|
2338
|
+
// src/timeline/genie-copy.ts
|
|
2339
|
+
var GENIE_PREPARING_PHRASES = (t) => [
|
|
2340
|
+
t("timeline.genieCopy.polishingTheLamp"),
|
|
2341
|
+
t("timeline.genieCopy.consultingTheCarpet"),
|
|
2342
|
+
t("timeline.genieCopy.untanglingWishes"),
|
|
2343
|
+
t("timeline.genieCopy.summoningALittleCleverness"),
|
|
2344
|
+
t("timeline.genieCopy.checkingTheFinePrintOn"),
|
|
2345
|
+
t("timeline.genieCopy.warmingUpTheAbracadabra"),
|
|
2346
|
+
t("timeline.genieCopy.rearrangingTheStars"),
|
|
2347
|
+
t("timeline.genieCopy.negotiatingWithTheLamp"),
|
|
2348
|
+
t("timeline.genieCopy.dustingOffAThousandYears"),
|
|
2349
|
+
t("timeline.genieCopy.wishfulThinking"),
|
|
2350
|
+
t("timeline.genieCopy.decantingALittleMagic"),
|
|
2351
|
+
t("timeline.genieCopy.findingTheGoodStardust"),
|
|
2352
|
+
t("timeline.genieCopy.fluffingTheMagicCarpet"),
|
|
2353
|
+
t("timeline.genieCopy.puttingAWishIntoMotion"),
|
|
2354
|
+
t("timeline.genieCopy.aLittleHocusALittle")
|
|
2355
|
+
];
|
|
2356
|
+
var GENIE_WAITING_PHRASES = (t) => [
|
|
2357
|
+
t("timeline.genieCopy.waitingForAResponse")
|
|
2358
|
+
];
|
|
2359
|
+
|
|
2360
|
+
// src/timeline/agent-identity.tsx
|
|
2361
|
+
import { createContext, useContext, useMemo } from "react";
|
|
2362
|
+
import { jsx } from "react/jsx-runtime";
|
|
2363
|
+
var SESSION_ID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
2364
|
+
var AGENT_TITLE_MAX_LENGTH = 80;
|
|
2365
|
+
function isSessionId(value) {
|
|
2366
|
+
return typeof value === "string" && SESSION_ID.test(value);
|
|
2367
|
+
}
|
|
2368
|
+
function displayAgentTitle(value) {
|
|
2369
|
+
if (typeof value !== "string") return null;
|
|
2370
|
+
const title = value.replace(/\s+/g, " ").trim();
|
|
2371
|
+
if (!title) return null;
|
|
2372
|
+
return title.length > AGENT_TITLE_MAX_LENGTH ? `${title.slice(0, AGENT_TITLE_MAX_LENGTH - 1).trimEnd()}\u2026` : title;
|
|
2373
|
+
}
|
|
2374
|
+
var AgentIdentityContext = createContext({ titleFor: () => null });
|
|
2375
|
+
function useAgentIdentity() {
|
|
2376
|
+
return useContext(AgentIdentityContext);
|
|
2377
|
+
}
|
|
2378
|
+
function AgentIdentityProvider({
|
|
2379
|
+
items,
|
|
2380
|
+
resolveSessionTitle,
|
|
2381
|
+
onOpenSession,
|
|
2382
|
+
children
|
|
2383
|
+
}) {
|
|
2384
|
+
const spawnTitleKey = JSON.stringify(
|
|
2385
|
+
items.flatMap(
|
|
2386
|
+
(item) => item.kind === "worker" && item.action === "spawn" && isSessionId(item.workerSessionId) && item.title ? [[item.workerSessionId.toLowerCase(), item.title]] : []
|
|
2387
|
+
)
|
|
2388
|
+
);
|
|
2389
|
+
const value = useMemo(() => {
|
|
2390
|
+
const spawnTitles = new Map(JSON.parse(spawnTitleKey));
|
|
2391
|
+
return {
|
|
2392
|
+
titleFor: (sessionId) => {
|
|
2393
|
+
if (!isSessionId(sessionId)) return null;
|
|
2394
|
+
return displayAgentTitle(resolveSessionTitle?.(sessionId)) ?? displayAgentTitle(spawnTitles.get(sessionId.toLowerCase())) ?? null;
|
|
2395
|
+
},
|
|
2396
|
+
onOpenSession
|
|
2397
|
+
};
|
|
2398
|
+
}, [spawnTitleKey, resolveSessionTitle, onOpenSession]);
|
|
2399
|
+
return /* @__PURE__ */ jsx(AgentIdentityContext.Provider, { value, children });
|
|
2400
|
+
}
|
|
2401
|
+
|
|
2402
|
+
export {
|
|
2403
|
+
isSessionId,
|
|
2404
|
+
useAgentIdentity,
|
|
2405
|
+
AgentIdentityProvider,
|
|
2406
|
+
rawTypeOf,
|
|
2407
|
+
createToolRegistry,
|
|
2408
|
+
commandStepTitle,
|
|
2409
|
+
withComputePreview,
|
|
2410
|
+
truncatePreview,
|
|
2411
|
+
execPresentation,
|
|
2412
|
+
writeStdinPresentation,
|
|
2413
|
+
pathBasename,
|
|
2414
|
+
pathDirname,
|
|
2415
|
+
applyPatchPresentation,
|
|
2416
|
+
webSearchPresentation,
|
|
2417
|
+
genericToolIconKind,
|
|
2418
|
+
askPresentation,
|
|
2419
|
+
runOnPresentation,
|
|
2420
|
+
machinePresentation,
|
|
2421
|
+
genericToolPresentation,
|
|
2422
|
+
toolSearchQuery,
|
|
2423
|
+
parseDisclosedTools,
|
|
2424
|
+
toolSearchPreview,
|
|
2425
|
+
parseSearchHits,
|
|
2426
|
+
callStepPhase,
|
|
2427
|
+
plainToolRow,
|
|
2428
|
+
presentedToolKind,
|
|
2429
|
+
presentsToolOutputPreview,
|
|
2430
|
+
toolRowPresentation,
|
|
2431
|
+
GENIE_PREPARING_PHRASES,
|
|
2432
|
+
GENIE_WAITING_PHRASES
|
|
2433
|
+
};
|
|
2434
|
+
//# sourceMappingURL=chunk-XOD4FX6M.js.map
|