@tickernelz/wardmote-ui 2026.1114.3 → 2026.1115.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/assets/AccessSelectIdentity-BDYx1ZfF.js +1 -0
- package/dist/assets/AdapterManager-Dr6HMn6m.js +1 -0
- package/dist/assets/AdvancedToolsRoute-BtrEJ8Kl.js +39 -0
- package/dist/assets/AgentActionButtons-GqegemnQ.js +1 -0
- package/dist/assets/AgentAvatar-CHxCQtX1.js +1 -0
- package/dist/assets/AgentBubbleActionRow-DDep61nY.js +1 -0
- package/dist/assets/AgentCharacter-DpdNYKTX.js +2 -0
- package/dist/assets/AgentChat-BwT6gtxl.js +1 -0
- package/dist/assets/AgentChats-C7Wny5Xo.js +1 -0
- package/dist/assets/AgentDefaults-Cs5Bf0J-.js +1 -0
- package/dist/assets/AgentDetail-FzlEvgyi.js +38 -0
- package/dist/assets/AgentIconPicker-CDdlpWlV.js +1 -0
- package/dist/assets/AgentIdentity-C6wmi_qi.js +1 -0
- package/dist/assets/AgentMailCredentialField-DTevbVmi.js +1 -0
- package/dist/assets/AgentMultiSelect-isF4VAOe.js +1 -0
- package/dist/assets/AgentRoleEditor-DALs_S3f.js +1 -0
- package/dist/assets/AgentSetupPrompt-mJfq45rR.js +30 -0
- package/dist/assets/AgentTodoCard-DofAPWmu.js +1 -0
- package/dist/assets/Agents-CmauHEC_.js +3 -0
- package/dist/assets/AppDetail-C61JaJyi.js +5 -0
- package/dist/assets/AppLogo-Da6J2kSR.js +1 -0
- package/dist/assets/AppNotConnected-CiM1HSNo.js +1 -0
- package/dist/assets/ApprovalCard-C-z6ovlE.js +1 -0
- package/dist/assets/ApprovalDetail-DvGLSlDB.js +1 -0
- package/dist/assets/ApprovalPayload-VYiHqD4m.js +1 -0
- package/dist/assets/Approvals-D7h2H_sr.js +1 -0
- package/dist/assets/AppsConnect-BV3-Loxz.js +1 -0
- package/dist/assets/AppsReview-CbER22st.js +1 -0
- package/dist/assets/ArtifactCard-BewPtFvc.js +1 -0
- package/dist/assets/Artifacts-DvVv2IJk.js +1 -0
- package/dist/assets/AssistantConnection-hL02uszq.js +1 -0
- package/dist/assets/AttentionInteractionResolver-qHNl_xbV.js +1 -0
- package/dist/assets/AuditHub-nt7z4iFD.js +1 -0
- package/dist/assets/Auth-BB7VP3fC.js +3 -0
- package/dist/assets/BoardChat-BNCmqJXx.js +18 -0
- package/dist/assets/BoardClaim-Cy6RXIcK.js +1 -0
- package/dist/assets/BootstrapSetupUxLab-Dx7dsqL7.js +1 -0
- package/dist/assets/BreadcrumbContext-BKgeE2st.js +1 -0
- package/dist/assets/Browse-CSoDYBmL.js +1 -0
- package/dist/assets/BudgetPolicyCard-CvjxMT7D.js +1 -0
- package/dist/assets/CaseDetail-DLWFPO4F.js +2 -0
- package/dist/assets/CaseIdentifierKey-Bxj5DIwm.js +1 -0
- package/dist/assets/Cases-DVrVJGhT.js +2 -0
- package/dist/assets/ChatEndpointDetail-BtVesRM4.js +5 -0
- package/dist/assets/ChatEndpointSetup-aBQTEbNQ.js +1 -0
- package/dist/assets/ChatIdentityConfirm-BzwwLyfO.js +1 -0
- package/dist/assets/ChoiceControls-CyXp9WJX.js +1 -0
- package/dist/assets/CliAuth-CyZ8-Woi.js +1 -0
- package/dist/assets/CommentAttributionChip-CojGGiYj.js +1 -0
- package/dist/assets/Companies-NQZfEwC5.js +1 -0
- package/dist/assets/CompanyAccess-FyXDsh86.js +1 -0
- package/dist/assets/CompanyActivity-BJv98EGz.js +1 -0
- package/dist/assets/CompanyConnections-XcsFcJNb.js +1 -0
- package/dist/assets/CompanyContext-dsHNbwL5.js +1 -0
- package/dist/assets/CompanyEnvironments-iFBbTOTj.js +3 -0
- package/dist/assets/CompanyExport-xlMYiY7S.js +4 -0
- package/dist/assets/CompanyImport-CfVS727g.js +1 -0
- package/dist/assets/CompanySettings-CkI5BPE7.js +1 -0
- package/dist/assets/CompanySettingsPluginPage-CHfwGrSy.js +1 -0
- package/dist/assets/CompanySkills-DRYlbEIw.js +10 -0
- package/dist/assets/ComposerAddMenu-DE7U8fwA.js +3 -0
- package/dist/assets/ConfigureBuiltInAgentModal-CPTKswQX.js +1 -0
- package/dist/assets/ConnectionSetupFlow-CVuuI_IB.js +40 -0
- package/dist/assets/CopyText-_f1fNkU9.js +1 -0
- package/dist/assets/CopyableGatewayUrl-C5DM-jlb.js +1 -0
- package/dist/assets/CrossIssueCollaborationUxLab-tDhS-jq4.js +1 -0
- package/dist/assets/Dashboard-CsWdlf2w.js +2 -0
- package/dist/assets/DecisionDateChips-CKGOW4lI.js +1 -0
- package/dist/assets/DecisionModelSettings-CRU_tFiW.js +1 -0
- package/dist/assets/DecisionQueuePage-B-d23vhE.js +1 -0
- package/dist/assets/DesignGuide-C6pUE0g8.js +23 -0
- package/dist/assets/DocumentFrameHeader-DJxQSrVU.js +1 -0
- package/dist/assets/EmailConnectionAccess-Bmzjruyw.js +1 -0
- package/dist/assets/EmailEndpointSetup-tb-MwAeF.js +1 -0
- package/dist/assets/EnforcementBanner-CvSlJnT3.js +1 -0
- package/dist/assets/EntityRow-B_hi0SpF.js +1 -0
- package/dist/assets/ExecutionWorkspaceDetail-DeGCUx0Z.js +19 -0
- package/dist/assets/FilterBar-B0Ky4IKW.js +1 -0
- package/dist/assets/FoldCurtain-DpaCBMQq.js +1 -0
- package/dist/assets/FolderControls-Bnct9FlN.js +1 -0
- package/dist/assets/GatewayDetail-C1azJf5O.js +2 -0
- package/dist/assets/GatewaysList-C5G4t9_s.js +1 -0
- package/dist/assets/GoalDetail-CI3GJljQ.js +1 -0
- package/dist/assets/GoalTree-DSJRz3A3.js +1 -0
- package/dist/assets/Goals-BD7j5fQ-.js +1 -0
- package/dist/assets/Identity-D6-4ufCa.js +1 -0
- package/dist/assets/ImageGalleryModal-DYawBp7o.js +1 -0
- package/dist/assets/Inbox-D31eIx5B.js +2 -0
- package/dist/assets/InlineBanner-BxYdCuGP.js +1 -0
- package/dist/assets/InlineEditor-CDKgapVj.js +1 -0
- package/dist/assets/InlineEntitySelector-DcWijm3s.js +1 -0
- package/dist/assets/InstanceAccess-DGzXC0Xl.js +1 -0
- package/dist/assets/InstanceAdvanced-xrGokT-A.js +1 -0
- package/dist/assets/InstanceFeatures-Dh9AJ16M.js +1 -0
- package/dist/assets/InviteLanding-SBgzJ00W.js +1 -0
- package/dist/assets/IssueChatLongThreadPerf-C8RVTu9g.js +2 -0
- package/dist/assets/IssueChatThread-D_ke-NXX.js +40 -0
- package/dist/assets/IssueDetail-D6t6W3vf.js +9 -0
- package/dist/assets/IssueDocumentAnnotations-BusZRPJz.js +2 -0
- package/dist/assets/IssueOutputSection-DbSjLJ0z.js +1 -0
- package/dist/assets/IssueRecoveryActionCard--s2DeVTI.js +1 -0
- package/dist/assets/IssueReferencePill-CrbkBko3.js +1 -0
- package/dist/assets/IssueThreadInteractionCard-CEOm3Nou.js +9 -0
- package/dist/assets/IssueWriteDenialNotice-BSocbA8i.js +1 -0
- package/dist/assets/Issues-D87QBALw.js +5 -0
- package/dist/assets/JoinRequestQueue-m5g8CeX_.js +1 -0
- package/dist/assets/JsonSchemaForm-DcMqKoRk.js +1 -0
- package/dist/assets/LiveNowTodoLine-4_fha7LL.js +1 -0
- package/dist/assets/ManagedAiConnectionDetails-BvECa_4J.js +1 -0
- package/dist/assets/MarkdownBody-DneqWO_F.js +16 -0
- package/dist/assets/MarkdownEditor-Dop0pvpQ.js +85 -0
- package/dist/assets/McpConnect-B6lgmV49.js +1 -0
- package/dist/assets/MembershipAction-lxyNE6cV.js +1 -0
- package/dist/assets/MetricCard-C65n44vu.js +1 -0
- package/dist/assets/MissingPluginTabPlaceholder-DzxTVHCm.js +1 -0
- package/dist/assets/ModelsAndProviders-Cf5ywcp6.js +1 -0
- package/dist/assets/MootMark-Cw1oipfs.js +1 -0
- package/dist/assets/NewAgent-DIm04W61.js +1 -0
- package/dist/assets/OmpAllSettings-BN_03A5F.js +1 -0
- package/dist/assets/OpenwaGatewayManager-CR2JaccN.js +2 -0
- package/dist/assets/PathInstructionsModal-BJj8D16I.js +1 -0
- package/dist/assets/PipelineSettings-DJ3wPyS6.js +2 -0
- package/dist/assets/Pipelines-DGmfqNxF.js +1 -0
- package/dist/assets/PixelsOffice-IvHoOjLi.js +2 -0
- package/dist/assets/PluginManager-CCLKIrQH.js +1 -0
- package/dist/assets/PluginPage-BPjyJHry.js +1 -0
- package/dist/assets/PluginSettings-BOAe2lNP.js +1 -0
- package/dist/assets/ProfileDetailRoute-BtPWhwsL.js +1 -0
- package/dist/assets/ProfileSettings-nUyykb7U.js +1 -0
- package/dist/assets/ProfileWizardRoute-BgmALebB.js +1 -0
- package/dist/assets/ProjectDetail-Sc5w75pl.js +1 -0
- package/dist/assets/ProjectWorkspaceDetail-DddXh8vS.js +29 -0
- package/dist/assets/ProjectWorkspacesContent-BDjk8_xt.js +1 -0
- package/dist/assets/Projects-CI3qDhpS.js +1 -0
- package/dist/assets/PublicIssueSharePage-DwYXZzxO.js +1 -0
- package/dist/assets/QuestionForm-CichUYOX.js +7 -0
- package/dist/assets/QuotaBar-BGCW-X3-.js +1 -0
- package/dist/assets/RepositoryEditor-DjowAt7s.js +1 -0
- package/dist/assets/ResponsibleUserDenialNotice-Bln16DNY.js +1 -0
- package/dist/assets/ResponsibleUserDenialUxLab-D7OT10CT.js +1 -0
- package/dist/assets/ReviewQueueCard-DOmPi2Sh.js +1 -0
- package/dist/assets/RichWorkProductCard-DR1nS1PX.js +1 -0
- package/dist/assets/RoutineActivityRow-FRpZgdY9.js +1 -0
- package/dist/assets/RoutineDetail-B3VRsS0N.js +2 -0
- package/dist/assets/RoutineRunVariablesDialog-DswRuGZ9.js +1 -0
- package/dist/assets/RoutineVariablesEditor-Donmo-Ha.js +1 -0
- package/dist/assets/Routines-Di5TG7XO.js +1 -0
- package/dist/assets/ScrollToBottom-_G56w_lV.js +1 -0
- package/dist/assets/Search-BIik4_bN.js +1 -0
- package/dist/assets/SearchableSelect-Dt_6_dds.js +1 -0
- package/dist/assets/Secrets-CHpXsGv_.js +4 -0
- package/dist/assets/SetupWizard-Bywkpo--.js +1 -0
- package/dist/assets/SidebarContext-B3wVOcP3.js +1 -0
- package/dist/assets/SidebarNavItem-DKoBWUYG.js +1 -0
- package/dist/assets/SkillBinaryFile-StCRWUUR.js +1 -0
- package/dist/assets/SkillCardIcon-DV49-Rqj.js +2 -0
- package/dist/assets/SkillSourceTree-DggH4IBB.js +2 -0
- package/dist/assets/SkillSources-DfT7WFOQ.js +2 -0
- package/dist/assets/SkillStudio-CRelTbZ8.js +9 -0
- package/dist/assets/SourceTrustBadge-DVLJ7ZD_.js +1 -0
- package/dist/assets/StatusCards-DpkFy5MW.js +1 -0
- package/dist/assets/StatusIcon-DQw2SvHx.js +1 -0
- package/dist/assets/SummarySlotCard-DrD7ZUGg.js +1 -0
- package/dist/assets/TaskChatComposerTakeoverContext-CDZizi4n.js +1 -0
- package/dist/assets/TaskChatLab-DEU_p6uP.js +11 -0
- package/dist/assets/TaskChatMarker-CIi5LTz5.js +2 -0
- package/dist/assets/TaskChatProtocolCard-914r9_hc.js +1 -0
- package/dist/assets/TaskChatThreadView-Cg1OemFt.js +4 -0
- package/dist/assets/TaskTreeControls-CxIqDyig.js +3 -0
- package/dist/assets/Terminal-BbK63NvM.js +1 -0
- package/dist/assets/TerminalView-rL43P2cd.js +58 -0
- package/dist/assets/ThemeContext-VwmgZV3v.js +1 -0
- package/dist/assets/ThemeToggle-zSm7ZVJQ.js +1 -0
- package/dist/assets/ToastContext-Brs-4k-1.js +1 -0
- package/dist/assets/ToolsAdminGate-r7j5MzHI.js +1 -0
- package/dist/assets/TrustPresetSection-Clyy_toY.js +1 -0
- package/dist/assets/UserProfile-DPol1TV3.js +1 -0
- package/dist/assets/WebhookUrlWarning-DL5kWPiZ.js +1 -0
- package/dist/assets/WhatNeedsMe-CgUifJfF.js +1 -0
- package/dist/assets/WorkspaceRuntimeControls-C-Iz5m02.js +1 -0
- package/dist/assets/Workspaces-VvtqZaqn.js +1 -0
- package/dist/assets/access-GBXLU9Vk.js +1 -0
- package/dist/assets/activity-CYcMbzsk.js +1 -0
- package/dist/assets/activity-fmxP7mpr.js +1 -0
- package/dist/assets/activity-format-DoAsbE0g.js +1 -0
- package/dist/assets/adapter-display-registry-C6GXIVXZ.js +1 -0
- package/dist/assets/adapters-CFK_eCPY.js +1 -0
- package/dist/assets/agent-avatar-url-D2n1Ozed.js +1 -0
- package/dist/assets/agent-config-primitives-Cs7txZkg.js +1 -0
- package/dist/assets/agentChats-B6eLnzJT.js +1 -0
- package/dist/assets/agents-B46GLJqX.js +1 -0
- package/dist/assets/alert-dialog-BvLBb6EL.js +1 -0
- package/dist/assets/app-connect-policy-BuNz5ikd.js +1 -0
- package/dist/assets/archive-CJfzKyJd.js +1 -0
- package/dist/assets/archive-restore-Bu12jvK6.js +1 -0
- package/dist/assets/arrow-down-Ci2NVHDm.js +1 -0
- package/dist/assets/arrow-down-left-Dk2oXKyh.js +1 -0
- package/dist/assets/arrow-left-C6eRcImQ.js +1 -0
- package/dist/assets/arrow-right-rIiVMAiv.js +1 -0
- package/dist/assets/arrow-up-Dnv0YU10.js +1 -0
- package/dist/assets/arrow-up-down-DYp2VJib.js +1 -0
- package/dist/assets/arrow-up-right-BWJhDk_Y.js +1 -0
- package/dist/assets/artifacts-BwKfWH9Y.js +1 -0
- package/dist/assets/assets-CcTyp_pK.js +1 -0
- package/dist/assets/attachment-icon-CABmZCE-.js +1 -0
- package/dist/assets/avatar-DWrtTUFj.js +1 -0
- package/dist/assets/badge-Bw9Yv7_W.js +1 -0
- package/dist/assets/badge-check-C3SQez1U.js +1 -0
- package/dist/assets/book-open-amuA6uFy.js +1 -0
- package/dist/assets/bot-DRofiPdb.js +1 -0
- package/dist/assets/boxes-5gvA2uo8.js +1 -0
- package/dist/assets/braces-C5ZUDIxe.js +1 -0
- package/dist/assets/browser-use-BILV_BYD.js +1 -0
- package/dist/assets/budgets-DZOWP4Hh.js +1 -0
- package/dist/assets/button-bS07vQAg.js +1 -0
- package/dist/assets/calendar-clock-BYIHtGGP.js +1 -0
- package/dist/assets/card-BdxT61BL.js +1 -0
- package/dist/assets/cases-CZE-FTip.js +1 -0
- package/dist/assets/chatEndpoints-91qyAU1E.js +1 -0
- package/dist/assets/check-Cn0uuQ_e.js +1 -0
- package/dist/assets/checkbox-tTcdQ3wz.js +1 -0
- package/dist/assets/chevron-down-DA6rxxgD.js +1 -0
- package/dist/assets/chevron-left-zJln1v3t.js +1 -0
- package/dist/assets/chevron-right-dRlTJLmW.js +1 -0
- package/dist/assets/chevron-up-OGjfRrmd.js +1 -0
- package/dist/assets/chip-C1sAQ_om.js +1 -0
- package/dist/assets/circle-D37l2gIX.js +1 -0
- package/dist/assets/circle-alert-Da1ne2k3.js +1 -0
- package/dist/assets/circle-dot-BflVdAjA.js +1 -0
- package/dist/assets/circle-question-mark-D9QciJpU.js +1 -0
- package/dist/assets/circle-slash-C-AiIJx8.js +1 -0
- package/dist/assets/circle-x-CSlDT5zP.js +1 -0
- package/dist/assets/clipboard-paste-CDNv7EUP.js +1 -0
- package/dist/assets/clock-CzJ0Y1V8.js +1 -0
- package/dist/assets/cloud-DFiLk-Nc.js +1 -0
- package/dist/assets/code-xml-BdOLy6gM.js +1 -0
- package/dist/assets/coins-DxyWOmEZ.js +1 -0
- package/dist/assets/collapsible-9d0h08gJ.js +1 -0
- package/dist/assets/columns-3-Bd3qBbsG.js +1 -0
- package/dist/assets/command-DibaV-of.js +5 -0
- package/dist/assets/companies-query-lyTYPUyy.js +1 -0
- package/dist/assets/connection-identity-CymhAKo1.js +1 -0
- package/dist/assets/connection-owner-CrqspCR3.js +1 -0
- package/dist/assets/copy-B9wRjKte.js +1 -0
- package/dist/assets/createLucideIcon-Dp_BESPI.js +94 -0
- package/dist/assets/decision-models-BtPQZgAS.js +1 -0
- package/dist/assets/dialog-BbBEA9p-.js +1 -0
- package/dist/assets/dist-B4RM_iwm.js +1 -0
- package/dist/assets/dist-BUubItNY.js +1 -0
- package/dist/assets/dist-Bfnp-w05.js +1 -0
- package/dist/assets/dist-Br1hXe2P.js +1 -0
- package/dist/assets/dist-Bt8JSjoR.js +1 -0
- package/dist/assets/dist-ByLqhYXa.js +1 -0
- package/dist/assets/dist-CYtosku9.js +1 -0
- package/dist/assets/dist-CaA23w-w.js +1 -0
- package/dist/assets/dist-CgTn_tfa.js +1 -0
- package/dist/assets/dist-DZG7nTA7.js +1 -0
- package/dist/assets/dist-DqqULahA.js +1 -0
- package/dist/assets/dist-DrKAhw8j.js +1 -0
- package/dist/assets/dist-Dy96Oxtm.js +1 -0
- package/dist/assets/dropdown-menu-CR4r_wCy.js +1 -0
- package/dist/assets/ellipsis-D-B_YyXO.js +1 -0
- package/dist/assets/ellipsis-vertical-Cvwuft46.js +1 -0
- package/dist/assets/email-B4M0T3qh.js +1 -0
- package/dist/assets/environment-variables-editor-CMuDqyG3.js +1 -0
- package/dist/assets/environments-DXsydWIO.js +1 -0
- package/dist/assets/es2015-C36Uu4St.js +41 -0
- package/dist/assets/external-link-dcZMvrBY.js +1 -0
- package/dist/assets/eye-FIf8kCfJ.js +1 -0
- package/dist/assets/eye-off-DyiqgKoU.js +1 -0
- package/dist/assets/fast-responses-BRhTUKUm.js +1 -0
- package/dist/assets/file-BTR-cl5V.js +1 -0
- package/dist/assets/file-code-corner-D56_khbN.js +1 -0
- package/dist/assets/file-question-mark-DKgQ4Qx0.js +1 -0
- package/dist/assets/file-search-qrHVliUu.js +1 -0
- package/dist/assets/file-text-C3HKnY1t.js +1 -0
- package/dist/assets/flag-DtP1qZ9D.js +1 -0
- package/dist/assets/flask-conical-CEy_2iN6.js +1 -0
- package/dist/assets/folder-git-2-sTNuDiCh.js +1 -0
- package/dist/assets/folder-open-BjdwrLu4.js +1 -0
- package/dist/assets/folder-search-C2QnQ02g.js +1 -0
- package/dist/assets/funnel-B6zSgvNd.js +1 -0
- package/dist/assets/git-pull-request-BVLQZnFj.js +1 -0
- package/dist/assets/github-icon-BvWUh1KT.js +1 -0
- package/dist/assets/health-CcqADKZw.js +1 -0
- package/dist/assets/heartbeats-Do5AjDtr.js +1 -0
- package/dist/assets/inbox-Dob9VqgU.js +1 -0
- package/dist/assets/inboxArchiveCache-DyAJQXXz.js +1 -0
- package/dist/assets/index-Bz_e1N10.css +2 -0
- package/dist/assets/index-CUNTJ_RK.js +67 -0
- package/dist/assets/info-Tk1lW8gi.js +1 -0
- package/dist/assets/input-Cq0iBDAN.js +1 -0
- package/dist/assets/instanceSettings-kW2DXfL4.js +1 -0
- package/dist/assets/interaction-audience-eGPW7epJ.js +1 -0
- package/dist/assets/interaction-card-visibility-CMe0W5FM.js +1 -0
- package/dist/assets/issue-blockers-B3cNlMTc.js +1 -0
- package/dist/assets/issue-filters-Ce8v1l6U.js +1 -0
- package/dist/assets/issue-output-DJVhoabR.js +1 -0
- package/dist/assets/issue-properties-By4_d87g.js +4 -0
- package/dist/assets/issue-share-Csd88Ksi.js +1 -0
- package/dist/assets/issue-workspace-selection-D3X0yGTI.js +1 -0
- package/dist/assets/key-round-DnZyJChv.js +1 -0
- package/dist/assets/label-C8OzDIYT.js +1 -0
- package/dist/assets/layout-dashboard-BKS8iwhq.js +1 -0
- package/dist/assets/link-2-Cl0gUYUT.js +1 -0
- package/dist/assets/link-DJXsSlVf.js +1 -0
- package/dist/assets/list-filter-WC4U6eSH.js +1 -0
- package/dist/assets/list-todo-CQxIFFFt.js +1 -0
- package/dist/assets/log-in-CqSMhQnh.js +1 -0
- package/dist/assets/maximize-2-amZRvyCt.js +1 -0
- package/dist/assets/mention-chips-CE46mpoH.js +17 -0
- package/dist/assets/message-square-plus-C_l_rEfF.js +1 -0
- package/dist/assets/minus-Buu9ydDk.js +1 -0
- package/dist/assets/model-fallback-DLgR8yUB.js +1 -0
- package/dist/assets/model-picker-fields-B9Syk1Po.js +1 -0
- package/dist/assets/network-CwJcZzzO.js +1 -0
- package/dist/assets/octagon-alert-Brf0_Mjx.js +1 -0
- package/dist/assets/octagon-x-Buu9jyYv.js +1 -0
- package/dist/assets/omp-settings-model-tJ2dGg2i.js +1 -0
- package/dist/assets/package-Cear_jmz.js +1 -0
- package/dist/assets/pause-BUOF24wZ.js +1 -0
- package/dist/assets/pen-line-BzM9aj3c.js +1 -0
- package/dist/assets/pipeline-stage-presentation-DlCpG0qw.js +2 -0
- package/dist/assets/pipelines-CNnZNrdV.js +1 -0
- package/dist/assets/play-BbPL3U2Z.js +1 -0
- package/dist/assets/plug-8Lp1g1l2.js +1 -0
- package/dist/assets/plugins-DkSvCKMQ.js +1 -0
- package/dist/assets/plus--_-YgodI.js +1 -0
- package/dist/assets/popover-CgIDA573.js +1 -0
- package/dist/assets/power-CApeDdsJ.js +1 -0
- package/dist/assets/presentation-mode-CA39Cukj.js +1 -0
- package/dist/assets/profile-summary-Djbqv9qM.js +1 -0
- package/dist/assets/projects-oY9VYW38.js +1 -0
- package/dist/assets/proposal-review-Duwdz6By.js +1 -0
- package/dist/assets/queryClient-DexRZQAq.js +1 -0
- package/dist/assets/queryKeys-Sk0U6x0H.js +1 -0
- package/dist/assets/radio-Cqg3txrz.js +1 -0
- package/dist/assets/radio-card-Dt1-FCvF.js +1 -0
- package/dist/assets/recent-agent-chats-d0l_Yj1L.js +1 -0
- package/dist/assets/refresh-cw-DCZxsFMf.js +1 -0
- package/dist/assets/repeat-CC7VfEiF.js +1 -0
- package/dist/assets/resizable-panels-ByTtx3M4.js +1 -0
- package/dist/assets/review-policy-Dxd8aZiE.js +1 -0
- package/dist/assets/rotate-ccw-C_1vZuhL.js +1 -0
- package/dist/assets/rotate-cw-I3e1Xw1W.js +1 -0
- package/dist/assets/router-qrDA_fDm.js +1 -0
- package/dist/assets/routines-CJdlnuen.js +1 -0
- package/dist/assets/runRetryState-dV9X1tL7.js +1 -0
- package/dist/assets/save-DqST8D4G.js +1 -0
- package/dist/assets/schema-config-fields-DWL2SGAV.js +1 -0
- package/dist/assets/scroll-area-CpCJXkWU.js +1 -0
- package/dist/assets/scroll-text-BJJb9Pmr.js +1 -0
- package/dist/assets/search-ibIk5iio.js +1 -0
- package/dist/assets/secrets-Bm2e103f.js +1 -0
- package/dist/assets/select-DHbqeY8-.js +1 -0
- package/dist/assets/send-C41Z1Xid.js +1 -0
- package/dist/assets/separator-BidXiA6w.js +1 -0
- package/dist/assets/server-CMSWA2Ot.js +1 -0
- package/dist/assets/server-cog-BD1bLG6y.js +1 -0
- package/dist/assets/settings-C9BE0rWf.js +1 -0
- package/dist/assets/shared-BbsNa_97.js +1 -0
- package/dist/assets/sheet-CBSmXpkT.js +1 -0
- package/dist/assets/shield-alert-YwTMOIDC.js +1 -0
- package/dist/assets/shield-check-wN-_3-kE.js +1 -0
- package/dist/assets/shield-fs-95RH0.js +1 -0
- package/dist/assets/shield-question-mark-BMirO5nk.js +1 -0
- package/dist/assets/shield-x-D-Cey5j5.js +1 -0
- package/dist/assets/sidebarPreferences-DrwUhshr.js +1 -0
- package/dist/assets/skeleton-BGHeLb8T.js +1 -0
- package/dist/assets/slots-CoW6zbG2.js +49 -0
- package/dist/assets/smoke-lab-matrix-Bd93k2qI.js +1 -0
- package/dist/assets/square-CxemVvLC.js +1 -0
- package/dist/assets/star-CpH09lE0.js +15 -0
- package/dist/assets/sun-BmLLKuXZ.js +1 -0
- package/dist/assets/system-notice-comment-C59ifr3s.js +1 -0
- package/dist/assets/tabs-BeNCSQfH.js +1 -0
- package/dist/assets/task-chat-attachments-fAxgAmq-.js +10 -0
- package/dist/assets/terminal-BHpyJMSm.js +1 -0
- package/dist/assets/textarea-BCpiepe1.js +1 -0
- package/dist/assets/thumbs-down-DZc6J8BY.js +1 -0
- package/dist/assets/thumbs-up-BSrfRAoM.js +1 -0
- package/dist/assets/toggle-switch-4ZdUl1cb.js +1 -0
- package/dist/assets/tools-CtHWMX0r.js +1 -0
- package/dist/assets/tooltip-BeXkeOXn.js +1 -0
- package/dist/assets/transcript-adapter-CL9r2VPx.js +5 -0
- package/dist/assets/trash-DR-HYzK4.js +1 -0
- package/dist/assets/triangle-alert-2xDDaXgc.js +1 -0
- package/dist/assets/use-adapter-capabilities-Doio2Kd7.js +1 -0
- package/dist/assets/use-copy-action-BwdiNLQ4.js +1 -0
- package/dist/assets/useAgentChatEnabled-DAjgbjFc.js +1 -0
- package/dist/assets/useAutosaveIndicator-SeuXAwa6.js +1 -0
- package/dist/assets/useHiddenSettings-su4lPXtZ.js +1 -0
- package/dist/assets/useInfiniteQuery-DpkS2abG.js +1 -0
- package/dist/assets/useInstanceFeatureSettings-Jo6rkq0M.js +1 -0
- package/dist/assets/useManagedSandboxOnly-mYadyWYh.js +1 -0
- package/dist/assets/useMobileEntityPickerViewportStyle-Dndq48zX.js +1 -0
- package/dist/assets/usePrefersReducedMotion-CtREi7r-.js +1 -0
- package/dist/assets/useProfilesData-yVfX1sRo.js +1 -0
- package/dist/assets/useQueries-SZ8rhHDB.js +1 -0
- package/dist/assets/useSecondTick-D3ecvH8m.js +1 -0
- package/dist/assets/useSharedPolling-SqFIqyK_.js +1 -0
- package/dist/assets/useSummaryDraftStream-DNU41h57.js +3 -0
- package/dist/assets/user-BVhnWxYc.js +1 -0
- package/dist/assets/user-check-BUwzmc0Y.js +1 -0
- package/dist/assets/user-minus-DUnrN5mR.js +1 -0
- package/dist/assets/user-round-DlEVjh6C.js +1 -0
- package/dist/assets/user-x-3uNljA-y.js +1 -0
- package/dist/assets/users-CycOHqnK.js +1 -0
- package/dist/assets/wand-sparkles-DpBlMupu.js +1 -0
- package/dist/assets/webhook-DmWTKMCs.js +1 -0
- package/dist/assets/x-C-YdLCiV.js +1 -0
- package/dist/index.html +192 -191
- package/dist/sw.js +1 -1
- package/package.json +1 -1
- package/dist/assets/AccessSelectIdentity-Dp--1kWe.js +0 -1
- package/dist/assets/ActiveAgentsPanel-CF0fwsze.js +0 -1
- package/dist/assets/AdapterManager-DUXWwNxv.js +0 -1
- package/dist/assets/AdvancedToolsRoute-BamlkE3p.js +0 -39
- package/dist/assets/AgentActionButtons-CPIhsP04.js +0 -1
- package/dist/assets/AgentAvatar-DgGEobSY.js +0 -1
- package/dist/assets/AgentBubbleActionRow-BUAUmJKa.js +0 -1
- package/dist/assets/AgentCharacter-BTEn5MBu.js +0 -2
- package/dist/assets/AgentChat-BAn_ghsu.js +0 -1
- package/dist/assets/AgentChats-f73hodzr.js +0 -1
- package/dist/assets/AgentDefaults-BL1XYvEo.js +0 -1
- package/dist/assets/AgentDetail-DthxFfuB.js +0 -38
- package/dist/assets/AgentIconPicker-D87bSkxE.js +0 -1
- package/dist/assets/AgentIdentity-I_kB4rMX.js +0 -1
- package/dist/assets/AgentMailCredentialField-L4T0REEW.js +0 -1
- package/dist/assets/AgentMultiSelect-DsJfZtR2.js +0 -1
- package/dist/assets/AgentRoleEditor-DTKNKZXs.js +0 -1
- package/dist/assets/AgentSetupPrompt-DYBB5Med.js +0 -30
- package/dist/assets/AgentTodoCard-BvgkWD0T.js +0 -1
- package/dist/assets/Agents-D5qI6yZZ.js +0 -3
- package/dist/assets/AppDetail-B6PtMl8J.js +0 -5
- package/dist/assets/AppLogo-CZr1Y48O.js +0 -1
- package/dist/assets/AppNotConnected-C_tGn786.js +0 -1
- package/dist/assets/ApprovalCard-DrfZAdGQ.js +0 -1
- package/dist/assets/ApprovalDetail-sfPpfdXc.js +0 -1
- package/dist/assets/ApprovalPayload-C4F3ItGH.js +0 -1
- package/dist/assets/Approvals-DZoMl7_m.js +0 -1
- package/dist/assets/AppsConnect-D8Gu187f.js +0 -1
- package/dist/assets/AppsReview-DokFETm0.js +0 -1
- package/dist/assets/ArtifactCard-BTf2-JIV.js +0 -1
- package/dist/assets/Artifacts-CK8FaygC.js +0 -1
- package/dist/assets/AssistantConnection-BlKC7jk0.js +0 -1
- package/dist/assets/AttentionInteractionResolver-C2iz6oqT.js +0 -1
- package/dist/assets/AuditHub-DMhunMn8.js +0 -1
- package/dist/assets/Auth-_P9t1YSS.js +0 -3
- package/dist/assets/BoardChat-C4W8JLKB.js +0 -18
- package/dist/assets/BoardClaim-CsomHmd6.js +0 -1
- package/dist/assets/BootstrapSetupUxLab-D58OwniR.js +0 -1
- package/dist/assets/BreadcrumbContext-BVZDZoC0.js +0 -1
- package/dist/assets/Browse-BDjohBak.js +0 -1
- package/dist/assets/BudgetPolicyCard-DfAAgk9Z.js +0 -1
- package/dist/assets/CaseDetail-CL0FC5sG.js +0 -2
- package/dist/assets/CaseIdentifierKey-D8Xi16PS.js +0 -1
- package/dist/assets/Cases-C-7dXrEt.js +0 -2
- package/dist/assets/ChatEndpointDetail-C-IYAYG8.js +0 -5
- package/dist/assets/ChatEndpointSetup-CM3QixMj.js +0 -1
- package/dist/assets/ChatIdentityConfirm-DCI5BnWo.js +0 -1
- package/dist/assets/ChoiceControls-3Qpci4yE.js +0 -1
- package/dist/assets/CliAuth-CRG0c0EH.js +0 -1
- package/dist/assets/CommentAttributionChip-fz5Mn0RW.js +0 -1
- package/dist/assets/Companies-97toQ8Cw.js +0 -1
- package/dist/assets/CompanyAccess-CKhS1BaS.js +0 -1
- package/dist/assets/CompanyActivity-DzNrAyAb.js +0 -1
- package/dist/assets/CompanyConnections-ORCH4i3U.js +0 -1
- package/dist/assets/CompanyContext-CSrVsSze.js +0 -1
- package/dist/assets/CompanyEnvironments-DphURbtb.js +0 -3
- package/dist/assets/CompanyExport-XeVCUcK3.js +0 -4
- package/dist/assets/CompanyImport-DPKpUaRa.js +0 -1
- package/dist/assets/CompanySettings-4JQpzuS1.js +0 -1
- package/dist/assets/CompanySettingsPluginPage-cVvXh0_G.js +0 -1
- package/dist/assets/CompanySkills-BA_9Ztwj.js +0 -10
- package/dist/assets/ComposerAddMenu-DNp4ecG8.js +0 -3
- package/dist/assets/ConfigureBuiltInAgentModal-CQCHDkl4.js +0 -1
- package/dist/assets/ConnectionSetupFlow-BaarToKu.js +0 -40
- package/dist/assets/CopyText-Cr673_Kx.js +0 -1
- package/dist/assets/CopyableGatewayUrl-DxQsV7Hr.js +0 -1
- package/dist/assets/CrossIssueCollaborationUxLab-CEh5B2iJ.js +0 -1
- package/dist/assets/Dashboard--iaPJqJp.js +0 -2
- package/dist/assets/DashboardLive-4rGeotay.js +0 -1
- package/dist/assets/DecisionDateChips-CJOLtNrJ.js +0 -1
- package/dist/assets/DecisionModelSettings-D-OxKIGP.js +0 -1
- package/dist/assets/DecisionQueuePage-D-kNFav_.js +0 -1
- package/dist/assets/DesignGuide-D7486q4b.js +0 -23
- package/dist/assets/DocumentFrameHeader-B61HhahB.js +0 -1
- package/dist/assets/EmailConnectionAccess-DAFMofYX.js +0 -1
- package/dist/assets/EmailEndpointSetup-6OHb9B4q.js +0 -1
- package/dist/assets/EnforcementBanner-DWPluRU0.js +0 -1
- package/dist/assets/EntityRow-BIfupmlZ.js +0 -1
- package/dist/assets/ExecutionWorkspaceDetail-BGV-9D5Y.js +0 -19
- package/dist/assets/FilterBar-5ta25FCb.js +0 -1
- package/dist/assets/FoldCurtain-DUAOdtCt.js +0 -1
- package/dist/assets/FolderControls-L2RzbfdQ.js +0 -1
- package/dist/assets/GatewayDetail-CdXNQ9gD.js +0 -2
- package/dist/assets/GatewaysList-B0Jq1IRC.js +0 -1
- package/dist/assets/GoalDetail-D2VhPtvw.js +0 -1
- package/dist/assets/GoalTree-kFpgH4dA.js +0 -1
- package/dist/assets/Goals-B-_gq_Qu.js +0 -1
- package/dist/assets/Identity-Cv_2a9qJ.js +0 -1
- package/dist/assets/ImageGalleryModal-DzKBMOnu.js +0 -1
- package/dist/assets/Inbox-zllmqRcB.js +0 -2
- package/dist/assets/InlineBanner-VQ5mstsR.js +0 -1
- package/dist/assets/InlineEditor-BKBqNA21.js +0 -1
- package/dist/assets/InlineEntitySelector-v2Q4C8oT.js +0 -1
- package/dist/assets/InstanceAccess-Ns2rAmva.js +0 -1
- package/dist/assets/InstanceAdvanced-B7tDfjwG.js +0 -1
- package/dist/assets/InstanceFeatures-DUQnBkxy.js +0 -1
- package/dist/assets/InviteLanding-brwa_8NC.js +0 -1
- package/dist/assets/IssueChatLongThreadPerf-D0HJe6IV.js +0 -2
- package/dist/assets/IssueChatThread-CMXzuvrF.js +0 -40
- package/dist/assets/IssueDetail-DGdg-mB8.js +0 -9
- package/dist/assets/IssueDocumentAnnotations-BK-LgExc.js +0 -2
- package/dist/assets/IssueOutputSection-aSyiE1pg.js +0 -1
- package/dist/assets/IssueRecoveryActionCard-vAuL_OEC.js +0 -1
- package/dist/assets/IssueReferenceActivitySummary-CbpSjmdV.js +0 -1
- package/dist/assets/IssueReferencePill-DAEplgLd.js +0 -1
- package/dist/assets/IssueThreadInteractionCard-wFidFTIh.js +0 -9
- package/dist/assets/IssueWriteDenialNotice-BCJ74Czu.js +0 -1
- package/dist/assets/Issues-CsmM33z_.js +0 -3
- package/dist/assets/JoinRequestQueue-ZZq3jWW-.js +0 -1
- package/dist/assets/JsonSchemaForm-ixDd6e-N.js +0 -1
- package/dist/assets/LiveNowTodoLine-CP32NNp_.js +0 -1
- package/dist/assets/ManagedAiConnectionDetails-Ba0awZ-O.js +0 -1
- package/dist/assets/MarkdownBody-BTjuUgFa.js +0 -16
- package/dist/assets/MarkdownEditor-DXD-Cu3u.js +0 -85
- package/dist/assets/McpConnect-CYLP1yLX.js +0 -1
- package/dist/assets/MembershipAction-CKs7Ua9x.js +0 -1
- package/dist/assets/MetricCard-DaAh5x_N.js +0 -1
- package/dist/assets/MissingPluginTabPlaceholder-DT47WyQq.js +0 -1
- package/dist/assets/ModelsAndProviders-gaR7HDQm.js +0 -1
- package/dist/assets/MootMark-DZAfkwdv.js +0 -1
- package/dist/assets/NewAgent-DBQzvxIr.js +0 -1
- package/dist/assets/OmpAllSettings-B_Knr51Z.js +0 -1
- package/dist/assets/OpenwaGatewayManager-DH3bF7fa.js +0 -2
- package/dist/assets/PathInstructionsModal-D4GUYKIT.js +0 -1
- package/dist/assets/PipelineSettings-Dl-94FB5.js +0 -2
- package/dist/assets/Pipelines-CY9hGe0h.js +0 -1
- package/dist/assets/PixelsOffice-BgyGZsiV.js +0 -2
- package/dist/assets/PluginManager-4rrrAOLG.js +0 -1
- package/dist/assets/PluginPage-CMA4Ei50.js +0 -1
- package/dist/assets/PluginSettings-Cm4H1JRT.js +0 -1
- package/dist/assets/ProfileDetailRoute-BEBctbC6.js +0 -1
- package/dist/assets/ProfileSettings-Djo7BLIj.js +0 -1
- package/dist/assets/ProfileWizardRoute-DxLujEtD.js +0 -1
- package/dist/assets/ProjectDetail-CmmdvUHn.js +0 -1
- package/dist/assets/ProjectWorkspaceDetail-BsA0hJ-k.js +0 -29
- package/dist/assets/ProjectWorkspacesContent-BNNI_WAk.js +0 -1
- package/dist/assets/Projects-BTAauZr0.js +0 -1
- package/dist/assets/PublicIssueSharePage-DdPjfmD9.js +0 -1
- package/dist/assets/QuestionForm-B8-PWz3B.js +0 -7
- package/dist/assets/QuotaBar-_ok6Pek4.js +0 -1
- package/dist/assets/RepositoryEditor-CFt-HPgf.js +0 -1
- package/dist/assets/ResponsibleUserDenialNotice-DKNk1-BK.js +0 -1
- package/dist/assets/ResponsibleUserDenialUxLab-Bt9vnHJz.js +0 -1
- package/dist/assets/ReviewQueueCard-BC6VY8Bc.js +0 -1
- package/dist/assets/RichWorkProductCard-ClpMt_Bh.js +0 -1
- package/dist/assets/RoutineActivityRow-B69N6Hcy.js +0 -1
- package/dist/assets/RoutineDetail-BT6_GKnC.js +0 -2
- package/dist/assets/RoutineRunVariablesDialog-D_Mls1sV.js +0 -1
- package/dist/assets/RoutineVariablesEditor-0dQ10yPY.js +0 -1
- package/dist/assets/Routines-4LevOfvV.js +0 -1
- package/dist/assets/ScrollToBottom-jItsgDR8.js +0 -1
- package/dist/assets/Search-bmcm0_m_.js +0 -1
- package/dist/assets/SearchableSelect-CIJ5K8ih.js +0 -1
- package/dist/assets/Secrets-DfR1fBAZ.js +0 -4
- package/dist/assets/SetupWizard-C8qzkJn1.js +0 -1
- package/dist/assets/SidebarContext-CF3RWLxh.js +0 -1
- package/dist/assets/SidebarNavItem-DV9nmC7O.js +0 -1
- package/dist/assets/SkillBinaryFile-DNe-MmCv.js +0 -1
- package/dist/assets/SkillCardIcon-BTCafp8l.js +0 -2
- package/dist/assets/SkillSourceTree--FWKWyF3.js +0 -2
- package/dist/assets/SkillSources-jUDjqy5i.js +0 -2
- package/dist/assets/SkillStudio-BsqtUnzF.js +0 -9
- package/dist/assets/SourceTrustBadge-CfBrvKL3.js +0 -1
- package/dist/assets/StatusCards-Dt3zorUZ.js +0 -1
- package/dist/assets/StatusIcon-0GcYXDdN.js +0 -1
- package/dist/assets/SummarySlotCard-D1C0qH2L.js +0 -1
- package/dist/assets/TaskChatComposerTakeoverContext-BJAHPHve.js +0 -1
- package/dist/assets/TaskChatLab-B0coUvdp.js +0 -11
- package/dist/assets/TaskChatMarker-C40twVjh.js +0 -2
- package/dist/assets/TaskChatProtocolCard--bi_tc6i.js +0 -1
- package/dist/assets/TaskChatThreadView-DkzFDrLW.js +0 -4
- package/dist/assets/TaskDetailRelationsPanel-DZGkinoJ.js +0 -1
- package/dist/assets/TaskTreeControls-DznugVpi.js +0 -3
- package/dist/assets/Terminal-NjEb5-2b.js +0 -1
- package/dist/assets/TerminalView-DZxK2Ei5.js +0 -58
- package/dist/assets/ThemeContext-DYRUK81c.js +0 -1
- package/dist/assets/ThemeToggle-BWFlFnSX.js +0 -1
- package/dist/assets/ToastContext-DMdt9oTd.js +0 -1
- package/dist/assets/ToolsAdminGate-BI5-WYC3.js +0 -1
- package/dist/assets/TrustPresetSection-CjNwNBo3.js +0 -1
- package/dist/assets/UserProfile-Dujv3qdz.js +0 -1
- package/dist/assets/WebhookUrlWarning-D0GLAS0A.js +0 -1
- package/dist/assets/WhatNeedsMe-C9P2EsqQ.js +0 -1
- package/dist/assets/WorkspaceRuntimeControls-T4YUoZvK.js +0 -1
- package/dist/assets/Workspaces-BTgSx9nA.js +0 -1
- package/dist/assets/access-GAosX22P.js +0 -1
- package/dist/assets/activity-BVYJmFzR.js +0 -1
- package/dist/assets/activity-CB9AQzZO.js +0 -1
- package/dist/assets/activity-format-zP89NM00.js +0 -1
- package/dist/assets/adapter-display-registry-Bk0KWAHT.js +0 -1
- package/dist/assets/adapters-Dp0USyWg.js +0 -1
- package/dist/assets/agent-avatar-url-C-slYk2A.js +0 -1
- package/dist/assets/agent-config-primitives-BsZUnbf2.js +0 -1
- package/dist/assets/agentChats-CjHr739f.js +0 -1
- package/dist/assets/agents-DmlgUVso.js +0 -1
- package/dist/assets/alert-dialog-Blls2GnU.js +0 -1
- package/dist/assets/app-connect-policy-CUzbEnhU.js +0 -1
- package/dist/assets/archive-CTfe4zq5.js +0 -1
- package/dist/assets/archive-restore-DeLPtKS0.js +0 -1
- package/dist/assets/arrow-down-Dg4PKbmt.js +0 -1
- package/dist/assets/arrow-down-left-C8jhGqM0.js +0 -1
- package/dist/assets/arrow-left-Ce_LIut0.js +0 -1
- package/dist/assets/arrow-right-BL5kYtCZ.js +0 -1
- package/dist/assets/arrow-up-D_YoSnQD.js +0 -1
- package/dist/assets/arrow-up-down-Bpe9xqCo.js +0 -1
- package/dist/assets/arrow-up-right-BLYWl-we.js +0 -1
- package/dist/assets/artifacts-9HWeqVeB.js +0 -1
- package/dist/assets/assets-TRDkBfss.js +0 -1
- package/dist/assets/attachment-icon-4xDiQblX.js +0 -1
- package/dist/assets/avatar-UO226cef.js +0 -1
- package/dist/assets/badge-DuA2EgZC.js +0 -1
- package/dist/assets/badge-check-Bd7IYIB2.js +0 -1
- package/dist/assets/bot-C9arfJWx.js +0 -1
- package/dist/assets/boxes-fV98p9-r.js +0 -1
- package/dist/assets/braces-BEVhwPeU.js +0 -1
- package/dist/assets/browser-use-D2HTf8rD.js +0 -1
- package/dist/assets/budgets-DvML2uxG.js +0 -1
- package/dist/assets/button-CMwV3L1P.js +0 -1
- package/dist/assets/calendar-clock-BVFltraz.js +0 -1
- package/dist/assets/card-Bru3x_SJ.js +0 -1
- package/dist/assets/cases-m9RZ5Cym.js +0 -1
- package/dist/assets/chatEndpoints-BKsIHowE.js +0 -1
- package/dist/assets/check-Ctsrlfa-.js +0 -1
- package/dist/assets/checkbox-BHQhs41k.js +0 -1
- package/dist/assets/chevron-down-BCvxsWfI.js +0 -1
- package/dist/assets/chevron-left-DP4zwC0G.js +0 -1
- package/dist/assets/chevron-right-s7L6hXXq.js +0 -1
- package/dist/assets/chevron-up-rFDQGA-7.js +0 -1
- package/dist/assets/chip-DsDe6yck.js +0 -1
- package/dist/assets/circle-IAHLDvLO.js +0 -1
- package/dist/assets/circle-alert-C-L4OsHh.js +0 -1
- package/dist/assets/circle-dot-zr8GONq2.js +0 -1
- package/dist/assets/circle-question-mark-B1jR2is9.js +0 -1
- package/dist/assets/circle-slash-Bx5HrFMb.js +0 -1
- package/dist/assets/circle-x-CFlSbYzD.js +0 -1
- package/dist/assets/clipboard-paste-D9rNPVFj.js +0 -1
- package/dist/assets/clock-CzrJT_cP.js +0 -1
- package/dist/assets/cloud-BktKFMPI.js +0 -1
- package/dist/assets/code-xml-BWc3OvMt.js +0 -1
- package/dist/assets/coins-C6QoCoLN.js +0 -1
- package/dist/assets/collapsible-CqjPlqOa.js +0 -1
- package/dist/assets/columns-3-CqC5nP-p.js +0 -1
- package/dist/assets/command-Ca3v36Mu.js +0 -5
- package/dist/assets/companies-query-D9PxIiMT.js +0 -1
- package/dist/assets/connection-identity-YKZfppDS.js +0 -1
- package/dist/assets/connection-owner-DL4yKhSt.js +0 -1
- package/dist/assets/copy-_wvZOjTe.js +0 -1
- package/dist/assets/createLucideIcon-DJi9suAC.js +0 -94
- package/dist/assets/decision-models-CD2AFC2a.js +0 -1
- package/dist/assets/dialog-CKUblzlR.js +0 -1
- package/dist/assets/dist-BNOqBr2U.js +0 -1
- package/dist/assets/dist-Bm2igrAN.js +0 -1
- package/dist/assets/dist-BuHnL0GV.js +0 -1
- package/dist/assets/dist-CClcSLHe.js +0 -1
- package/dist/assets/dist-CtvMIwRC.js +0 -1
- package/dist/assets/dist-CvHBQVAC.js +0 -1
- package/dist/assets/dist-DC4EOH0g.js +0 -1
- package/dist/assets/dist-DMg_vOQs.js +0 -1
- package/dist/assets/dist-DOIzg2vq.js +0 -1
- package/dist/assets/dist-DTFX_1D6.js +0 -1
- package/dist/assets/dist-DcOFbG-W.js +0 -1
- package/dist/assets/dist-SzpVz8Pd.js +0 -1
- package/dist/assets/dist-ypeTPGg_.js +0 -1
- package/dist/assets/dropdown-menu-DEO3mF_E.js +0 -1
- package/dist/assets/ellipsis-BTiLRUn4.js +0 -1
- package/dist/assets/ellipsis-vertical-DWXPf6Ow.js +0 -1
- package/dist/assets/email-BNu4jmOH.js +0 -1
- package/dist/assets/environment-variables-editor-0qgSPgNN.js +0 -1
- package/dist/assets/environments-BLQs1ScE.js +0 -1
- package/dist/assets/es2015-C3hhXnTu.js +0 -41
- package/dist/assets/external-link-nl1b263c.js +0 -1
- package/dist/assets/eye-DRS7RbEp.js +0 -1
- package/dist/assets/eye-off-CVVA-EWh.js +0 -1
- package/dist/assets/fast-responses-DZodQpLv.js +0 -1
- package/dist/assets/file-N19tC0jj.js +0 -1
- package/dist/assets/file-code-corner-CmZ_RihF.js +0 -1
- package/dist/assets/file-pen-line-DX6PZQXR.js +0 -1
- package/dist/assets/file-question-mark-CTomlKBX.js +0 -1
- package/dist/assets/file-search-DZpRLS-j.js +0 -1
- package/dist/assets/file-text-Cw7ntqRx.js +0 -1
- package/dist/assets/flag-R0AVTKGk.js +0 -1
- package/dist/assets/flask-conical-CEYKkO5k.js +0 -1
- package/dist/assets/folder-git-2-D2Hz-CeQ.js +0 -1
- package/dist/assets/folder-open-8WDYv4mw.js +0 -1
- package/dist/assets/folder-search-D0WkVTZt.js +0 -1
- package/dist/assets/funnel-DWwD2WCu.js +0 -1
- package/dist/assets/git-pull-request-CdCSG7CL.js +0 -1
- package/dist/assets/github-icon-Bbgf67tg.js +0 -1
- package/dist/assets/health-DF7yrggW.js +0 -1
- package/dist/assets/heartbeats-DOyojsaN.js +0 -1
- package/dist/assets/inbox-C08arfF_.js +0 -1
- package/dist/assets/inboxArchiveCache-D8QGdg49.js +0 -1
- package/dist/assets/index-3AxqhPET.js +0 -67
- package/dist/assets/index-B5bd7Tk6.css +0 -2
- package/dist/assets/info-DXpx_HA2.js +0 -1
- package/dist/assets/input-DobnTAyB.js +0 -1
- package/dist/assets/instanceSettings-D8g_QlS-.js +0 -1
- package/dist/assets/interaction-audience-BRS_4X7S.js +0 -1
- package/dist/assets/interaction-card-visibility-DcyO470L.js +0 -1
- package/dist/assets/issue-blockers-DLfa24KC.js +0 -1
- package/dist/assets/issue-filters-BO9xiK0c.js +0 -1
- package/dist/assets/issue-output-CU3gasZ1.js +0 -1
- package/dist/assets/issue-properties-B1cYnBDU.js +0 -4
- package/dist/assets/issue-share-j9E_vLuf.js +0 -1
- package/dist/assets/issue-workspace-selection-S8UgGgK1.js +0 -1
- package/dist/assets/key-round-0RqEOB_C.js +0 -1
- package/dist/assets/label-BPz3pg9_.js +0 -1
- package/dist/assets/layout-dashboard-DClZjSaR.js +0 -1
- package/dist/assets/link-2-CND-9QZ2.js +0 -1
- package/dist/assets/link-BITB8yRp.js +0 -1
- package/dist/assets/list-filter-h7_mdWEH.js +0 -1
- package/dist/assets/list-todo-BmObdeVq.js +0 -1
- package/dist/assets/log-in-nSyhNjrD.js +0 -1
- package/dist/assets/maximize-2-DgliXYEr.js +0 -1
- package/dist/assets/mention-chips-D8856Q0_.js +0 -17
- package/dist/assets/message-square-plus-yRlSBxPl.js +0 -1
- package/dist/assets/minus-WOgDAWiC.js +0 -1
- package/dist/assets/model-fallback-X_YvC3rj.js +0 -1
- package/dist/assets/model-picker-fields-235ien8Z.js +0 -1
- package/dist/assets/network-RCsafDTP.js +0 -1
- package/dist/assets/octagon-alert-CeNhknXC.js +0 -1
- package/dist/assets/octagon-x-CBcXy1zJ.js +0 -1
- package/dist/assets/omp-settings-model-uqWvMNr2.js +0 -1
- package/dist/assets/package-CYC5MDhY.js +0 -1
- package/dist/assets/pause-CJSwJvLv.js +0 -1
- package/dist/assets/pen-line-CxWwoiP_.js +0 -1
- package/dist/assets/pipeline-stage-presentation-5UBw7nsb.js +0 -2
- package/dist/assets/pipelines-vN196fc4.js +0 -1
- package/dist/assets/play-CJNuUj69.js +0 -1
- package/dist/assets/plug-VjpaJcMq.js +0 -1
- package/dist/assets/plugins-CF2QITJB.js +0 -1
- package/dist/assets/plus-C6fnr28l.js +0 -1
- package/dist/assets/popover-BhYHYj7q.js +0 -1
- package/dist/assets/power-B3xsPeS4.js +0 -1
- package/dist/assets/presentation-mode-Bk6TnKr9.js +0 -1
- package/dist/assets/profile-summary-unutni_7.js +0 -1
- package/dist/assets/projects-mixWrT5q.js +0 -1
- package/dist/assets/proposal-review-kucrRJgS.js +0 -1
- package/dist/assets/queryClient-BOli2vjj.js +0 -1
- package/dist/assets/queryKeys-DYV5MhM_.js +0 -1
- package/dist/assets/radio-DnDOdgWd.js +0 -1
- package/dist/assets/radio-card-DVZaXlw0.js +0 -1
- package/dist/assets/recent-agent-chats-DIU_z_qg.js +0 -1
- package/dist/assets/refresh-cw-B_Oki9wZ.js +0 -1
- package/dist/assets/repeat-DGPKlc5I.js +0 -1
- package/dist/assets/resizable-panels-Qjbo0P05.js +0 -1
- package/dist/assets/review-policy-BL48kYvb.js +0 -1
- package/dist/assets/rotate-ccw-CQEJ4ewP.js +0 -1
- package/dist/assets/rotate-cw-DnCrcS38.js +0 -1
- package/dist/assets/router-2UfGeejU.js +0 -1
- package/dist/assets/routines-KPtwxuS7.js +0 -1
- package/dist/assets/runRetryState-BdjK4QQj.js +0 -1
- package/dist/assets/save-CJ1Iqyew.js +0 -1
- package/dist/assets/schema-config-fields-DggSrP5S.js +0 -1
- package/dist/assets/scroll-area-P1KpIQWe.js +0 -1
- package/dist/assets/scroll-text-BpkOrME3.js +0 -1
- package/dist/assets/search-04O7m-IF.js +0 -1
- package/dist/assets/secrets-CZifgF0J.js +0 -1
- package/dist/assets/select-V0Hm_q4f.js +0 -1
- package/dist/assets/send-mNwfi_F1.js +0 -1
- package/dist/assets/separator-B2LFqBpM.js +0 -1
- package/dist/assets/server-DIhG4RDC.js +0 -1
- package/dist/assets/server-cog-DV4ua9lY.js +0 -1
- package/dist/assets/settings-DuZndeX2.js +0 -1
- package/dist/assets/shared-4LF6wQ38.js +0 -1
- package/dist/assets/sheet-jd7y5x4-.js +0 -1
- package/dist/assets/shield-BhaVQdWV.js +0 -1
- package/dist/assets/shield-alert-Be9GuMrS.js +0 -1
- package/dist/assets/shield-check-B0HVjzM_.js +0 -1
- package/dist/assets/shield-question-mark-D1_en6pn.js +0 -1
- package/dist/assets/shield-x-D-Ice3nf.js +0 -1
- package/dist/assets/sidebarPreferences-vEHBC54I.js +0 -1
- package/dist/assets/skeleton-Bv_lQagE.js +0 -1
- package/dist/assets/slots-Dw517dxP.js +0 -49
- package/dist/assets/smoke-lab-matrix-0BhnGQeo.js +0 -1
- package/dist/assets/square-B2aH51tE.js +0 -1
- package/dist/assets/star-BZgQbzhV.js +0 -15
- package/dist/assets/sun-_NIddwh7.js +0 -1
- package/dist/assets/system-notice-comment-CL_SWj_f.js +0 -1
- package/dist/assets/tabs-B2Os_leL.js +0 -1
- package/dist/assets/task-chat-attachments-jZNCAKd4.js +0 -10
- package/dist/assets/terminal-C0CKe_Zz.js +0 -1
- package/dist/assets/textarea-BRPEfJ-g.js +0 -1
- package/dist/assets/thumbs-down-C2BkjZOy.js +0 -1
- package/dist/assets/thumbs-up-OW2IsTL7.js +0 -1
- package/dist/assets/toggle-switch-BHxNtSq9.js +0 -1
- package/dist/assets/tool-taxonomy-B5zpbkHA.js +0 -1
- package/dist/assets/tools-B-L_sU_9.js +0 -1
- package/dist/assets/tooltip-B5WQ3lq5.js +0 -1
- package/dist/assets/transcript-adapter-C29ZJiU2.js +0 -5
- package/dist/assets/trash-D7zTaHTj.js +0 -1
- package/dist/assets/triangle-alert-CBVKiaXB.js +0 -1
- package/dist/assets/use-adapter-capabilities-Bu8XkVZ9.js +0 -1
- package/dist/assets/use-copy-action-D5dEzo6L.js +0 -1
- package/dist/assets/useAgentChatEnabled-Chi_JXJj.js +0 -1
- package/dist/assets/useAutosaveIndicator-DttGFwx7.js +0 -1
- package/dist/assets/useHiddenSettings-CcaZfHLD.js +0 -1
- package/dist/assets/useInfiniteQuery-B28xptxn.js +0 -1
- package/dist/assets/useInstanceFeatureSettings-CEK6Xn3o.js +0 -1
- package/dist/assets/useManagedSandboxOnly-CO01cDK4.js +0 -1
- package/dist/assets/useMobileEntityPickerViewportStyle-C3R37KtS.js +0 -1
- package/dist/assets/usePrefersReducedMotion-Dw81-akd.js +0 -1
- package/dist/assets/useProfilesData-2L3_71Ql.js +0 -1
- package/dist/assets/useQueries-BIJ7zVTy.js +0 -1
- package/dist/assets/useSecondTick-Gige2l0t.js +0 -1
- package/dist/assets/useSharedPolling-D4Xn8mY2.js +0 -1
- package/dist/assets/useSummaryDraftStream-R2Y2bAUU.js +0 -3
- package/dist/assets/user-Ccom_Ph0.js +0 -1
- package/dist/assets/user-check-BoBa1Xs_.js +0 -1
- package/dist/assets/user-minus-B4F-9ccK.js +0 -1
- package/dist/assets/user-round-CGxsJ0K8.js +0 -1
- package/dist/assets/user-x-CRO9YVVi.js +0 -1
- package/dist/assets/users-DyKzwIh4.js +0 -1
- package/dist/assets/wand-sparkles-BqnbLKl3.js +0 -1
- package/dist/assets/webhook-BVBCKjlU.js +0 -1
- package/dist/assets/x-DRDFdlYE.js +0 -1
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
var G=Object.defineProperty;var l=(t,d)=>G(t,"name",{value:d,configurable:!0});import{i as q}from"./rolldown-runtime-ZpX3ckPj.js";import{l as C,na as H,t as U,ta as $}from"./createLucideIcon-DJi9suAC.js";import{t as Y}from"./check-Ctsrlfa-.js";import{t as W}from"./circle-IAHLDvLO.js";import{t as X}from"./copy-_wvZOjTe.js";import{r as J}from"./button-CMwV3L1P.js";import{t as Q}from"./minus-WOgDAWiC.js";import{t as Z}from"./pause-CJSwJvLv.js";import{t as ee}from"./play-CJNuUj69.js";import{t as te}from"./plus-C6fnr28l.js";import{t as F}from"./rotate-ccw-CQEJ4ewP.js";import{a as N,i as M,l as ae,o as I,s as O,t as se}from"./TaskChatThreadView-DkzFDrLW.js";import{t as ne}from"./use-copy-action-D5dEzo6L.js";import{Ft as K}from"./index-3AxqhPET.js";var B={name:"grip-horizontal",size:24,node:[["circle",{cx:"12",cy:"9",r:"1",key:"124mty"}],["circle",{cx:"19",cy:"9",r:"1",key:"1ruzo2"}],["circle",{cx:"5",cy:"9",r:"1",key:"1a8b28"}],["circle",{cx:"12",cy:"15",r:"1",key:"1e56xg"}],["circle",{cx:"19",cy:"15",r:"1",key:"1a92ep"}],["circle",{cx:"5",cy:"15",r:"1",key:"5r1jwy"}]]};B.node;var re=U(B),o=q(H(),1),ie=["session-start","human-message","agent-message","thinking","responding","responding-burst","tool-call","diff","working","running","completed","activity-phases","awaiting-approval","plan-todo","interrupted","refused","truncated","live-token-cost"],oe={"session-start":{id:"session-start",label:"Session start",tier:"live",surface:"thread",protocol:'acpx.session → TranscriptEntry kind:"init"'},"human-message":{id:"human-message",label:"Human message",tier:"live",surface:"thread",protocol:'IssueComment authorType:"user"'},"agent-message":{id:"agent-message",label:"Final response",tier:"live",surface:"thread",protocol:'PRP item.delta kind:"agentMessage" channel:"final"'},thinking:{id:"thinking",label:"Thinking",tier:"live",surface:"thread",protocol:"text_delta stream:thought (ACP agent_thought_chunk)"},responding:{id:"responding",label:"Progress update (streaming)",tier:"live",surface:"thread",protocol:'PRP item.delta kind:"agentMessage" channel:"progress"'},"responding-burst":{id:"responding-burst",label:"Progress update burst",tier:"live",surface:"thread",protocol:"text_delta stream:output ×N, tool calls between (PAP-368 dwell)"},"tool-call":{id:"tool-call",label:"Tool call",tier:"live",surface:"thread",protocol:"acpx.tool_call (ACP tool_call / tool_call_update)"},diff:{id:"diff",label:"Diff",tier:"live",surface:"thread",protocol:'ToolCallContent type:"diff" → TranscriptEntry kind:"diff"'},working:{id:"working",label:"Working",tier:"live",surface:"thread",protocol:"heartbeat.run.progress + acpx.status"},running:{id:"running",label:"Running",tier:"live",surface:"thread",protocol:'message.status.type === "running"'},completed:{id:"completed",label:"Completed (collapsed)",tier:"live",surface:"thread",protocol:"acpx.result (StopReason in subtype)"},"activity-phases":{id:"activity-phases",label:"Long-run activity phases",tier:"live",surface:"thread",protocol:"assistant boundaries + chronological tool calls"},"awaiting-approval":{id:"awaiting-approval",label:"Awaiting approval",tier:"tier-b",surface:"thread",protocol:"ACP RequestPermissionRequest + PermissionOptionKind"},"plan-todo":{id:"plan-todo",label:"Plan / todo",tier:"tier-b",surface:"plan",protocol:"ACP Plan { entries: PlanEntry[] }, PlanEntryStatus"},interrupted:{id:"interrupted",label:"Interrupted",tier:"tier-b",surface:"thread",protocol:'AcpRuntimeTurnResult.status:"cancelled" / StopReason "cancelled"'},refused:{id:"refused",label:"Refused",tier:"tier-b",surface:"thread",protocol:'StopReason "refusal"'},truncated:{id:"truncated",label:"Truncated",tier:"tier-b",surface:"thread",protocol:'StopReason "max_tokens" | "max_turn_requests"'},"live-token-cost":{id:"live-token-cost",label:"Live token / cost",tier:"tier-b",surface:"thread",protocol:"ACP UsageUpdate { used, size, cost }"}},L=ie.map(t=>oe[t]),j="Atlas";function b(){return[{id:"m-user-1",kind:"message",author:"human",text:"Add a rate limiter to the login route.",timestamp:"2:31 PM"}]}l(b,"exchangePrefix");var le={revision:2,updatedAt:"2:33 PM",entries:[{id:"p1",content:"Read the login route and existing middleware",status:"completed",priority:"medium"},{id:"p2",content:"Add a token-bucket rate limiter util",status:"in_progress",priority:"high"},{id:"p3",content:"Wire the limiter into POST /login",status:"pending",priority:"high"},{id:"p4",content:"Add tests for the limit + reset window",status:"pending",priority:"low"}]};function de(t){switch(t){case"session-start":return{surface:"thread",items:[{id:"mk-start",kind:"marker",variant:"session_start",label:"Session started",detail:"claude · Auto mode"},...b()]};case"human-message":return{surface:"thread",items:b()};case"agent-message":return{surface:"thread",items:[...b(),{id:"m-agent-1",kind:"message",author:"agent",authorName:j,agentIcon:"bot",text:"On it — I'll add a token-bucket limiter and wire it into the login route.",timestamp:"2:31 PM"}]};case"thinking":return{surface:"thread",items:[...b(),{id:"turn-thinking",kind:"turn",settled:!1,summary:{toolCount:1,added:0,removed:0},liveStatus:{id:"st-thinking",kind:"status",status:"running",label:"Thinking",startedAtMs:Date.now()-6100,tokens:{used:18240,size:2e5}},items:[{id:"th-grep",kind:"tool",name:"Grep",target:"rateLimit",toolKind:"search",status:"completed"}]}]};case"responding":return{surface:"thread",items:[...b(),{id:"turn-responding",kind:"turn",settled:!1,summary:{toolCount:1,added:0,removed:0},liveStatus:{id:"st-responding",kind:"status",status:"running",label:"Responding",startedAtMs:Date.now()-9300,tokens:{used:18240,size:2e5},selfTalk:"I found an existing ipRateLimit helper, so I'll extend it with a per-account token bucket keyed on the email address instead of adding a second limiter. The bucket refills at six requests a minute, matching the lockout policy the auth spec documents, and failed attempts drain it twice as fast so brute-force runs hit the ceiling quickly while a fat-fingered password barely registers."},items:[{id:"resp-read",kind:"tool",name:"Read",target:"server/src/routes/auth.ts",toolKind:"read",status:"completed"}]}]};case"responding-burst":return{surface:"thread",items:[...b(),{id:"turn-responding-burst",kind:"turn",settled:!1,summary:{toolCount:2,added:0,removed:0},liveStatus:{id:"st-responding-burst",kind:"status",status:"running",label:"Responding",startedAtMs:Date.now()-21400,tokens:{used:18240,size:2e5},selfTalk:`Found the existing ipRateLimit helper — extending it beats adding a second limiter.
|
|
2
|
-
|
|
3
|
-
Wiring a per-account token bucket keyed on the email address, refilling at six requests a minute per the auth spec.
|
|
4
|
-
|
|
5
|
-
Failed attempts drain the bucket twice as fast, so brute-force runs hit the ceiling while a fat-fingered password barely registers.
|
|
6
|
-
|
|
7
|
-
Now updating the login route to consume from the bucket before the password check and adding tests for the lockout path.`},items:[{id:"burst-read",kind:"tool",name:"Read",target:"server/src/routes/auth.ts",toolKind:"read",status:"completed"},{id:"burst-grep",kind:"tool",name:"Grep",target:"ipRateLimit",toolKind:"search",status:"completed"}]}]};case"tool-call":return{surface:"thread",items:[{id:"tool-1",kind:"tool",name:"Read",target:"server/src/routes/auth.ts",toolKind:"read",status:"in_progress"}]};case"diff":return{surface:"thread",items:[{id:"tool-diff",kind:"tool",name:"Edit",target:"server/src/routes/auth.ts",toolKind:"edit",status:"completed",decision:"allowed",diff:{path:"server/src/routes/auth.ts",added:3,removed:1,lines:[{kind:"context",text:"router.post('/login', async (req, res) => {"},{kind:"remove",text:" const ok = await checkPassword(req.body);"},{kind:"add",text:" await rateLimiter.consume(req.body.email);"},{kind:"add",text:" const ok = await checkPassword(req.body);"},{kind:"add",text:" if (!ok) return res.status(401).end();"}]}}]};case"working":return{surface:"thread",items:[...b(),{id:"turn-working",kind:"turn",settled:!1,summary:{toolCount:2,added:0,removed:0},liveStatus:{id:"st-working",kind:"status",status:"working",label:"Editing files",detail:"Edit · server/src/routes/auth.ts",toolName:"Edit",startedAtMs:Date.now()-4200},items:[{id:"w-read",kind:"tool",name:"Read",target:"server/src/routes/auth.ts",toolKind:"read",status:"completed"},{id:"w-edit",kind:"tool",name:"Edit",target:"server/src/routes/auth.ts",toolKind:"edit",status:"in_progress"}]}]};case"running":return{surface:"thread",items:[...b(),{id:"turn-running",kind:"turn",settled:!1,summary:{toolCount:1,added:0,removed:0},liveStatus:{id:"st-running",kind:"status",status:"running",label:"Running",detail:"no output for 3s — still running",startedAtMs:Date.now()-12e3,tokens:{used:18240,size:2e5}},items:[{id:"r-grep",kind:"tool",name:"Grep",target:"rateLimit",toolKind:"search",status:"completed"}]}]};case"completed":return{surface:"thread",items:[...b(),{id:"m-done",kind:"message",author:"agent",authorName:j,agentIcon:"bot",text:"Done — added a per-account token-bucket limiter and wired it into the login route. Tests pass.",timestamp:"2:34 PM",attachedTurn:{id:"turn-done",kind:"turn",settled:!0,summary:{durationLabel:"38s",toolCount:2,added:34,removed:3,tokensLabel:"12.3k tokens"},items:[{id:"tool-done-1",kind:"tool",name:"Read",target:"server/src/routes/auth.ts",toolKind:"read",status:"completed"},{id:"tool-done-2",kind:"tool",name:"Edit",target:"server/src/routes/auth.ts",toolKind:"edit",status:"completed",diff:{path:"server/src/routes/auth.ts",added:34,removed:3}}]}}]};case"awaiting-approval":return{surface:"thread",items:[{id:"st-approval",kind:"status",status:"awaiting_approval",label:"Approve running a command?",detail:"npm run migrate — modifies the database",approval:{toolName:"execute",options:[{id:"reject",label:"Deny",kind:"reject_once"},{id:"allow-always",label:"Always allow",kind:"allow_always"},{id:"allow",label:"Allow once",kind:"allow_once"}]}}]};case"activity-phases":{const d=l((n,m,i,p)=>({id:n,kind:"activity_phase",active:i,interstitial:m?{id:`${n}:message`,kind:"message",author:"agent",authorName:j,text:m,interstitial:!0}:void 0,items:p.filter(h=>h.kind==="tool"||h.kind==="usage"),summary:i?"Ran 1 command, called 1 tool":n.endsWith("opening")?"Called 2 tools":"Read 3 files, edited 1 file"}),"phase");return{surface:"thread",items:[...b(),{id:"turn-long-run",kind:"turn",settled:!1,summary:{toolCount:8,added:4,removed:1},liveStatus:{id:"long-status",kind:"status",status:"working",label:"Running tests",detail:"Bash · vitest",toolName:"Bash",startedAtMs:Date.now()-48e3},items:[d("phase-opening",void 0,!1,[{id:"generic-1",kind:"tool",name:"Tool",rawName:"tool call",status:"completed"},{id:"generic-2",kind:"tool",name:"Tool",rawName:"acp_tool",status:"failed",detail:"Adapter interrupted"}]),d("phase-read","I found the relevant adapter and am tracing its render boundary.",!1,[{id:"read-1",kind:"tool",name:"Read",status:"completed",target:"ui/src/components/task-chat/transcript-adapter.ts"},{id:"read-2",kind:"tool",name:"Read",status:"completed",target:"ui/src/components/task-chat/TaskChatTurn.tsx"},{id:"read-3",kind:"tool",name:"Read",status:"completed",target:"ui/src/components/task-chat/TaskChatThreadView.tsx"},{id:"edit-1",kind:"tool",name:"Edit",status:"completed",target:"ui/src/components/task-chat/task-chat-model.ts"}]),d("phase-active","The grouping is wired; I’m running focused checks now.",!0,[{id:"bash-1",kind:"tool",name:"Bash",status:"in_progress",target:"vitest task-chat"},{id:"mcp-1",kind:"tool",name:"Search",rawName:"mcp__docs__search",status:"completed"}])]}]}}case"plan-todo":return{surface:"plan",items:[],plan:le};case"interrupted":return{surface:"thread",items:[{id:"m-int",kind:"message",author:"agent",authorName:j,text:"Starting the migration now…"},{id:"mk-int",kind:"marker",variant:"interrupted",label:"Interrupted",detail:"stopped by you at 2:35 PM"}]};case"refused":return{surface:"thread",items:[{id:"st-refused",kind:"status",status:"refused",label:"Turn ended: refusal",detail:"The agent declined to complete this request."}]};case"truncated":return{surface:"thread",items:[{id:"st-trunc",kind:"status",status:"truncated",label:"Turn ended: max tokens",detail:"Output was cut off — continue to resume.",tokens:{used:199120,size:2e5}}]};case"live-token-cost":return{surface:"thread",items:[{id:"usage-1",kind:"usage",usage:{used:42800,size:2e5,inputTokens:38200,outputTokens:4600,costUsd:.1284}}]};default:return t}}l(de,"buildScenario");var e=q($(),1),ce={completed:{Icon:Y,spin:!1,tone:"text-(--status-task-icon-done)"},in_progress:{Icon:J,spin:!0,tone:"text-(--status-agent-running)"},pending:{Icon:W,spin:!1,tone:"text-ink-3"}},ue={high:"text-bad",medium:"text-(--status-agent-paused)",low:"text-ink-3"};function me({plan:t}){const d=t.entries.filter(n=>n.status==="completed").length;return(0,e.jsxs)("div",{className:"flex flex-col gap-2 py-2",children:[(0,e.jsxs)("div",{className:"flex items-center gap-2 px-1 text-xs text-ink-3",children:[(0,e.jsx)("span",{className:"font-medium text-ink",children:"Plan"}),(0,e.jsxs)("span",{children:["· rev ",t.revision]}),(0,e.jsxs)("span",{className:"ml-auto",children:[d,"/",t.entries.length," done"]})]}),(0,e.jsx)("ul",{className:"flex flex-col gap-1",children:t.entries.map((n,m)=>{const{Icon:i,spin:p,tone:h}=ce[n.status];return(0,e.jsxs)("li",{className:"tc-enter-plan-entry flex items-start gap-2 rounded-md border border-line bg-bg-2/50 px-2.5 py-1.5 text-sm",style:{animationDelay:`calc(var(--motion-plan-entry-stagger) * ${m})`},children:[(0,e.jsx)(i,{className:C("mt-0.5 h-4 w-4 shrink-0",h,p&&"animate-spin")}),(0,e.jsx)("span",{className:C("min-w-0 flex-1",n.status==="completed"&&"text-ink-3 line-through"),children:n.content}),(0,e.jsx)("span",{className:C("shrink-0 text-(length:--text-nano) uppercase tracking-wide",ue[n.priority]),children:n.priority})]},n.id)})})]})}l(me,"TaskChatPlanView");var z="tc-tweak-pos",_="tc-tweak-overrides";function P(t){return typeof document>"u"?"":getComputedStyle(document.documentElement).getPropertyValue(t).trim()}l(P,"readComputed");function D(t,d){try{const n=sessionStorage.getItem(t);return n?JSON.parse(n):d}catch{return d}}l(D,"loadSession");function A(t,d){try{sessionStorage.setItem(t,JSON.stringify(d))}catch{}}l(A,"saveSession");function pe(){const[t,d]=(0,o.useState)(()=>D(z,{x:24,y:24})),[n,m]=(0,o.useState)(!1),[i,p]=(0,o.useState)({}),[h,x]=(0,o.useState)(()=>D(_,{})),[k,r]=(0,o.useState)(null),g=ne(),f=(0,o.useRef)(null);(0,o.useEffect)(()=>{const s={};for(const a of N)s[a.name]=P(a.name);for(const[a,u]of Object.entries(h))document.documentElement.style.setProperty(a,u),s[a]=u;p(s)},[]);const y=(0,o.useCallback)((s,a)=>{document.documentElement.style.setProperty(s,a),p(u=>({...u,[s]:a})),x(u=>{const E={...u,[s]:a};return A(_,E),E})},[]),w=(0,o.useCallback)(()=>{for(const a of Object.keys(h))document.documentElement.style.removeProperty(a);x({}),A(_,{});const s={};for(const a of N)s[a.name]=P(a.name);p(s)},[h]),T=(0,o.useCallback)(s=>{s.target.setPointerCapture(s.pointerId),f.current={dx:s.clientX-t.x,dy:s.clientY-t.y}},[t]),c=(0,o.useCallback)(s=>{if(!f.current)return;const a={x:s.clientX-f.current.dx,y:s.clientY-f.current.dy};d(a)},[]),v=(0,o.useCallback)(()=>{f.current&&(f.current=null,A(z,t))},[t]),S=(0,o.useCallback)(()=>{const s=N.map(a=>{const u=i[a.name]||P(a.name);return` ${a.name}: ${u};`});r(`:root {
|
|
8
|
-
${s.join(`
|
|
9
|
-
`)}
|
|
10
|
-
}
|
|
11
|
-
`)},[i]),V=(0,o.useMemo)(()=>{const s={};for(const a of I)s[a]=[];for(const a of N)s[a.group].push(a);return s},[]);return(0,e.jsxs)("div",{className:"fixed z-50 w-72 select-none rounded-lg border border-line bg-bg-2 text-ink shadow-lg",style:{left:t.x,top:t.y},"data-testid":"task-chat-tweak-panel",children:[(0,e.jsxs)("div",{className:"flex cursor-grab items-center gap-2 rounded-t-lg border-b border-line bg-bg-3/50 px-2 py-1.5 text-xs font-medium active:cursor-grabbing",onPointerDown:T,onPointerMove:c,onPointerUp:v,children:[(0,e.jsx)(re,{className:"h-3.5 w-3.5 text-ink-3"}),(0,e.jsx)("span",{children:"Motion tweak panel"}),(0,e.jsxs)("div",{className:"ml-auto flex items-center gap-1",children:[(0,e.jsx)("button",{type:"button",title:"Reset all",onClick:w,className:"rounded p-0.5 hover:bg-bg-3",children:(0,e.jsx)(F,{className:"h-3.5 w-3.5"})}),(0,e.jsx)("button",{type:"button",title:n?"Expand":"Minimize",onClick:l(()=>m(s=>!s),"onClick"),className:"rounded p-0.5 hover:bg-bg-3",children:n?(0,e.jsx)(te,{className:"h-3.5 w-3.5"}):(0,e.jsx)(Q,{className:"h-3.5 w-3.5"})})]})]}),n?null:(0,e.jsxs)("div",{className:"max-h-(--sz-tweak-panel-max) overflow-y-auto p-2",children:[I.map(s=>(0,e.jsxs)("div",{className:"mb-3",children:[(0,e.jsx)("p",{className:"mb-1 text-(length:--text-nano) font-semibold uppercase tracking-wide text-ink-3",children:s}),(0,e.jsx)("div",{className:"flex flex-col gap-2",children:V[s].map(a=>(0,e.jsxs)("div",{"data-token":a.name,className:"flex flex-col gap-1",children:[(0,e.jsxs)("div",{className:"flex items-center justify-between text-(length:--text-micro)",children:[(0,e.jsx)("span",{className:"truncate font-mono text-ink-3",children:a.name.replace("--motion-","")}),(0,e.jsx)("span",{className:"ml-2 shrink-0 tabular-nums",children:a.kind==="time"?`${Math.round(O(i[a.name]??"0"))}ms`:""})]}),a.kind==="time"?(0,e.jsx)("input",{type:"range","aria-label":a.name,min:a.min??0,max:a.max??1e3,step:a.step??10,value:Math.round(O(i[a.name]??"0")),onChange:l(u=>y(a.name,`${u.target.value}ms`),"onChange"),className:"h-1.5 w-full"}):(0,e.jsxs)("select",{"aria-label":a.name,value:i[a.name]??"",onChange:l(u=>y(a.name,u.target.value),"onChange"),className:"w-full rounded border border-line bg-bg px-1 py-0.5 text-(length:--text-micro)",children:[M.every(u=>u.value!==(i[a.name]??""))&&i[a.name]?(0,e.jsx)("option",{value:i[a.name],children:i[a.name]}):null,M.map(u=>(0,e.jsx)("option",{value:u.value,children:u.label},u.value))]})]},a.name))})]},s)),(0,e.jsx)("div",{className:"mt-1 flex gap-2",children:(0,e.jsxs)("button",{type:"button",onClick:S,className:"flex flex-1 items-center justify-center gap-1 rounded border border-line px-2 py-1 text-xs hover:bg-bg-3",children:[(0,e.jsx)(X,{className:"h-3.5 w-3.5"}),"Copy as @theme"]})}),k?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("textarea",{readOnly:!0,"data-testid":"task-chat-tweak-export",className:"mt-2 h-32 w-full resize-none rounded border border-line bg-bg-3/40 p-2 font-mono text-(length:--text-nano)",value:k,onFocus:l(s=>{s.currentTarget.select(),g.copy(k)},"onFocus")}),(0,e.jsx)("p",{className:"mt-1 text-(length:--text-nano) text-ink-3","aria-live":"polite",children:g.copied?"Copied to clipboard":g.failed?"Copy failed — select the text and copy it manually":"Click the box to copy"})]}):null]})]})}l(pe,"TweakPanel");function he(t){return t.author!=="agent"||t.optimistic?null:(0,e.jsx)(ae,{copyText:t.text,feedback:{activeVote:null,sharingPreference:"allowed",termsUrl:null,onVote:l(async()=>{},"onVote")}})}l(he,"labMessageActions");var R=30;function ge(t){return t.split(/\n{2,}/).map(d=>d.trim()).filter(Boolean)}l(ge,"selfTalkSegments");function fe(t,d){let n=d;for(let m=0;m<t.length;m++){const i=t[m];if(n<=i.length)return i.slice(0,n)||void 0;if(n-=i.length,m===t.length-1||n<=R)return;n-=R}}l(fe,"selfTalkAtTick");function xe(t,d,n){const[m,i]=(0,o.useState)(Number.MAX_SAFE_INTEGER),p=t.findIndex(r=>r.kind==="message"&&r.streaming||r.kind==="turn"&&!r.settled&&r.liveStatus?.selfTalk!=null),h=t[p]?.kind==="turn",x=(0,o.useMemo)(()=>{const r=t[p];return r?r.kind==="message"?r.text:r.kind==="turn"?r.liveStatus?.selfTalk??"":"":""},[t,p]),k=(0,o.useMemo)(()=>h?ge(x):[],[h,x]);return(0,o.useEffect)(()=>{if(p<0){i(Number.MAX_SAFE_INTEGER);return}i(0);let r=0;const g=h?k.reduce((y,w)=>y+w.length,0)+R*Math.max(0,k.length-1)+1:x.length,f=window.setInterval(()=>{r+=1,i(r),r>=g&&window.clearInterval(f)},Math.max(4,24/d));return()=>window.clearInterval(f)},[p,x,h,k,d,n]),p<0?t:t.map((r,g)=>{if(g!==p)return r;const f=x.slice(0,m),y=m>=x.length;return r.kind==="message"?{...r,text:f,streaming:!y}:r.kind==="turn"&&r.liveStatus?{...r,liveStatus:{...r.liveStatus,selfTalk:fe(k,m)}}:r})}l(xe,"useStreamingReplay");var ke=[{id:"",label:"Chosen · C · On bg"},{id:"former",label:"Former"},{id:"darker",label:"A · Darker"},{id:"hairline",label:"B · Hairline"}];function Ie(){const[t,d]=(0,o.useState)("agent-message"),[n,m]=(0,o.useState)(""),[i,p]=(0,o.useState)(1),[h,x]=(0,o.useState)(!0),[k,r]=(0,o.useState)(0),g=(0,o.useMemo)(()=>de(t),[t]),f=xe(g.items,i,k),y=h?f:g.items,w=(0,o.useRef)(null),T=L.find(c=>c.id===t);return(0,e.jsxs)("div",{className:"flex h-full min-h-0 flex-col",children:[(0,e.jsxs)("header",{className:"border-b border-line px-4 py-2",children:[(0,e.jsx)("h1",{className:"text-sm font-semibold",children:"Task Chat Lab"}),(0,e.jsx)("p",{className:"text-xs text-ink-3",children:"Synthetic harness for the task chat redesign · every state renders here with no live agent."})]}),(0,e.jsxs)("div",{className:"flex min-h-0 flex-1",children:[(0,e.jsx)("nav",{className:"w-56 shrink-0 overflow-y-auto border-r border-line p-2","aria-label":"States",children:["live","tier-b"].map(c=>(0,e.jsxs)("div",{className:"mb-3",children:[(0,e.jsx)("p",{className:"mb-1 px-1 text-(length:--text-nano) font-semibold uppercase tracking-wide text-ink-3",children:c==="live"?"Live states":"Tier-B (synthetic)"}),(0,e.jsx)("ul",{className:"flex flex-col gap-0.5",children:L.filter(v=>v.tier===c).map(v=>(0,e.jsx)("li",{children:(0,e.jsx)(K,{selected:t===v.id,"data-state-id":v.id,onClick:l(()=>{d(v.id),r(S=>S+1)},"onClick"),children:v.label})},v.id))})]},c))}),(0,e.jsxs)("main",{className:"flex min-h-0 flex-1 flex-col",children:[(0,e.jsxs)("div",{className:"flex items-center gap-3 border-b border-line px-4 py-2 text-xs",children:[(0,e.jsxs)("button",{type:"button",onClick:l(()=>x(c=>!c),"onClick"),className:"flex items-center gap-1 rounded border border-line px-2 py-1 hover:bg-bg-3",children:[h?(0,e.jsx)(Z,{className:"h-3.5 w-3.5"}):(0,e.jsx)(ee,{className:"h-3.5 w-3.5"}),h?"Pause":"Play"]}),(0,e.jsxs)("button",{type:"button",onClick:l(()=>r(c=>c+1),"onClick"),className:"flex items-center gap-1 rounded border border-line px-2 py-1 hover:bg-bg-3",children:[(0,e.jsx)(F,{className:"h-3.5 w-3.5"}),"Replay"]}),(0,e.jsxs)("label",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:"text-ink-3",children:"Speed"}),(0,e.jsx)("input",{type:"range",min:.1,max:10,step:.1,value:i,onChange:l(c=>p(parseFloat(c.target.value)),"onChange"),"aria-label":"Streaming speed",className:"w-32"}),(0,e.jsxs)("span",{className:"w-10 tabular-nums",children:[i.toFixed(1),"×"]})]}),(0,e.jsxs)("div",{className:"ml-auto flex items-center gap-2",children:[(0,e.jsx)("span",{className:"text-ink-3",children:"Agent bubble"}),(0,e.jsx)("div",{className:"flex items-center gap-0.5 rounded border border-line p-0.5",role:"group","aria-label":"Agent bubble treatment",children:ke.map(c=>(0,e.jsx)(K,{selected:n===c.id,"data-bubble-variant-id":c.id||"current",onClick:l(()=>m(c.id),"onClick"),children:c.label},c.id||"current"))}),(0,e.jsx)("span",{className:"font-mono text-(length:--text-micro) text-ink-3",children:T.protocol})]})]}),(0,e.jsx)("div",{ref:w,className:"flex min-h-0 flex-1 flex-col","data-testid":"task-chat-stage","data-bubble-variant":n||void 0,children:g.surface==="plan"&&g.plan?(0,e.jsx)("div",{className:"mx-auto max-w-2xl px-4",children:(0,e.jsx)(me,{plan:g.plan})}):(0,e.jsx)("div",{className:"mx-auto flex min-h-0 w-full max-w-2xl flex-1 flex-col",children:(0,e.jsx)(se,{items:y,renderMessageActions:he})})})]})]}),(0,e.jsx)(pe,{})]})}l(Ie,"TaskChatLab");export{Ie as TaskChatLab,Ie as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var ae=Object.defineProperty;var o=(e,a)=>ae(e,"name",{value:a,configurable:!0});import{i as E}from"./rolldown-runtime-ZpX3ckPj.js";import{l as m,na as ne,t as S,ta as se}from"./createLucideIcon-DJi9suAC.js";import{i as re}from"./star-BZgQbzhV.js";import{_t as B,an as ie,at as le,ot as H,t as w,tt as oe,vt as $}from"./router-2UfGeejU.js";import{t as I}from"./bot-C9arfJWx.js";import{t as ce}from"./check-Ctsrlfa-.js";import{t as de}from"./chevron-down-BCvxsWfI.js";import{t as _}from"./chevron-right-s7L6hXXq.js";import{a as j,n as D,r as ue,t as L}from"./tool-taxonomy-B5zpbkHA.js";import{t as pe}from"./circle-dot-zr8GONq2.js";import{t as z}from"./circle-IAHLDvLO.js";import{o as fe,t as T}from"./MarkdownBody-BTjuUgFa.js";import{t as W}from"./external-link-nl1b263c.js";import{t as he}from"./file-pen-line-DX6PZQXR.js";import{t as F}from"./file-text-Cw7ntqRx.js";import{t as me}from"./flag-R0AVTKGk.js";import{t as xe}from"./info-DXpx_HA2.js";import{t as ge}from"./key-round-0RqEOB_C.js";import{r as be,t as v}from"./button-CMwV3L1P.js";import{t as ve}from"./octagon-x-CBcXy1zJ.js";import{r as ke}from"./TaskChatProtocolCard--bi_tc6i.js";import{t as N}from"./search-04O7m-IF.js";import{t as we}from"./shield-check-B0HVjzM_.js";import{t as je}from"./square-B2aH51tE.js";import{t as ye}from"./triangle-alert-CBVKiaXB.js";import{t as k}from"./users-DyKzwIh4.js";import{t as Le}from"./x-DRDFdlYE.js";import{n as Ne}from"./presentation-mode-Bk6TnKr9.js";import{Ba as Ce,Ga as Se,Ha as O,Ma as _e,ya as Te}from"./index-3AxqhPET.js";var U={name:"file-check-corner",size:24,node:[["path",{d:"M10.5 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v6",key:"g5mvt7"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m14 20 2 2 4-4",key:"15kota"}]],aliases:["file-check-2"]};U.node;var P=S(U),q={name:"folder-kanban",size:24,node:[["path",{d:"M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z",key:"1fr9dc"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M12 10v2",key:"hh53o1"}],["path",{d:"M16 10v6",key:"1d6xys"}]]};q.node;var Re=S(q),V={name:"gauge",size:24,node:[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]};V.node;var R=S(V),h=E(ne(),1),Ae=(0,h.createContext)(null);function Pt(e){const[a,n]=(0,h.useState)(()=>({issueId:e,memory:new Map}));if(a.issueId===e)return a.memory;const s={issueId:e,memory:new Map};return n(s),s.memory}o(Pt,"useIssueExpansionMemory");function A(e,a){const n=(0,h.useContext)(Ae),[s,c]=(0,h.useState)(()=>n?.get(e));return[s??n?.get(e)??a,(0,h.useCallback)(u=>{c(r=>{const p=r??n?.get(e)??a,d=typeof u=="function"?u(p):u;return n?.set(e,d),d})},[e,n,a])]}o(A,"useTaskChatExpansion");var t=E(se(),1);function $e({item:e}){const{used:a,size:n,inputTokens:s,outputTokens:c,costUsd:u}=e.usage,r=typeof n=="number"&&n>0?n:null,p=r?Math.min(100,Math.round(a/r*100)):0;return(0,t.jsxs)("div",{className:"flex flex-col gap-1 px-1 py-1 text-(length:--text-micro) text-ink-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(R,{className:"h-3 w-3"}),e.label?(0,t.jsx)("span",{className:"font-medium",children:e.label}):null,r?(0,t.jsxs)("span",{children:[a.toLocaleString(),"/",r.toLocaleString()," ctx (",p,"%)"]}):null,s!=null||c!=null?(0,t.jsxs)("span",{children:["· ↑",(s??0).toLocaleString()," ↓",(c??0).toLocaleString()]}):null,u!=null?(0,t.jsxs)("span",{children:["· $",u.toFixed(4)]}):null]}),e.detail?(0,t.jsx)("div",{children:e.detail}):null,r?(0,t.jsx)("div",{className:"h-1 w-full overflow-hidden rounded-full bg-line",children:(0,t.jsx)("div",{className:m("h-full rounded-full bg-(--status-agent-running)"),style:{width:`${p}%`}})}):null]})}o($e,"TaskChatUsageReadout");function G(e){const a=e.details.find(n=>n.label==="Severity")?.value;return e.status==="failed"||a==="error"?"error":a==="info"?"info":"warning"}o(G,"providerNoticeSeverity");function x(e,...a){return e.details.find(n=>a.includes(n.label))?.value}o(x,"providerDetail");function C(e){if(!(!e||D(e)||/^tool(?:\s+|_)call\b/i.test(e)))return e}o(C,"meaningfulToolDetail");function Ie(e){const a=e.summary??x(e,"Query","URL","Target","Name","Reference","Reason","Summary");switch(e.family){case"research":{const n=x(e,"Action")?.toLowerCase();return n==="open_page"?{icon:N,runningLabel:"Opening a web page",completedLabel:"Opened a web page",failedLabel:"Couldn’t open the web page",interruptedLabel:"Stopped opening the web page",detail:a}:n==="find_in_page"?{icon:N,runningLabel:"Searching the page",completedLabel:"Searched the page",failedLabel:"Page search failed",interruptedLabel:"Page search stopped",detail:a}:{icon:N,runningLabel:"Searching the web",completedLabel:"Searched the web",failedLabel:"Web search failed",interruptedLabel:"Web search stopped",detail:a}}case"tool_execution":{const n=x(e,"Name"),s=x(e,"Target"),c=x(e,"Progress"),u=j({name:n,transport:x(e,"Transport"),namespace:x(e,"Namespace"),operation:x(e,"Operation"),target:s,progress:c}),r=C(e.summary)??C(c)??C(s),p=!!(r&&n&&L(r)===L(n)),d=n?ue(n)?.name??n:u.displayName,i=u.sourceLabel?`${u.sourceLabel} · ${d}`:n&&!D(n)&&L(n)!==u.runningLabel.replace(/^Running /,"")?n:void 0;return{icon:u.icon,runningLabel:u.runningLabel,completedLabel:u.completedLabel,failedLabel:u.failedLabel,interruptedLabel:u.interruptedLabel,detail:[p?void 0:r,i].filter(Boolean).join(" · ")||void 0}}case"plan":return{icon:_e,runningLabel:"Updating the plan",completedLabel:"Updated the plan",failedLabel:"Plan update failed",interruptedLabel:"Plan update stopped",detail:a};case"delegation":{const n=x(e,"Action")?.toLowerCase();return n==="message"?{icon:k,runningLabel:"Messaging a subagent",completedLabel:"Messaged a subagent",failedLabel:"Subagent message failed",interruptedLabel:"Subagent message stopped",detail:a}:n==="resume"?{icon:k,runningLabel:"Resuming a subagent",completedLabel:"Resumed a subagent",failedLabel:"Couldn’t resume the subagent",interruptedLabel:"Subagent resume stopped",detail:a}:n==="close"?{icon:k,runningLabel:"Closing a subagent",completedLabel:"Closed a subagent",failedLabel:"Couldn’t close the subagent",interruptedLabel:"Subagent close stopped",detail:a}:n==="wait"?{icon:k,runningLabel:"Waiting for subagents",completedLabel:"Finished waiting for subagents",failedLabel:"Subagent wait failed",interruptedLabel:"Stopped waiting for subagents",detail:a}:{icon:k,runningLabel:"Starting a subagent",completedLabel:"Started a subagent",failedLabel:"Subagent start failed",interruptedLabel:"Subagent start stopped",detail:a}}case"model_identity":return e.eventType==="model.route.changed"?{icon:I,runningLabel:"Switching models",completedLabel:"Switched models",failedLabel:"Model switch failed",interruptedLabel:"Model switch stopped",detail:a}:{icon:I,runningLabel:"Verifying the model",completedLabel:"Verified the model",failedLabel:"Model verification failed",interruptedLabel:"Model verification stopped",detail:a};case"context":return{icon:re,runningLabel:"Compacting context",completedLabel:"Compacted context",failedLabel:"Context compaction failed",interruptedLabel:"Context compaction stopped",detail:a};case"artifact":return e.eventType==="artifact.viewed"?{icon:$,runningLabel:"Viewing an artifact",completedLabel:"Viewed an artifact",failedLabel:"Couldn’t view the artifact",interruptedLabel:"Artifact view stopped",detail:a}:{icon:$,runningLabel:"Generating an artifact",completedLabel:"Generated an artifact",failedLabel:"Artifact generation failed",interruptedLabel:"Artifact generation stopped",detail:a};case"review":return x(e,"State")?.toLowerCase()==="exited"?{icon:P,runningLabel:"Leaving review mode",completedLabel:"Left review mode",failedLabel:"Couldn’t leave review mode",interruptedLabel:"Review-mode change stopped",detail:a}:{icon:P,runningLabel:"Entering review mode",completedLabel:"Entered review mode",failedLabel:"Couldn’t enter review mode",interruptedLabel:"Review-mode change stopped",detail:a};case"hook":return{icon:H,runningLabel:"Running a hook",completedLabel:"Ran a hook",failedLabel:"Hook failed",interruptedLabel:"Hook stopped",detail:a};case"memory":return{icon:Se,runningLabel:"Checking memory",completedLabel:"Referenced memory",failedLabel:"Memory lookup failed",interruptedLabel:"Memory lookup stopped",detail:a};case"safety":return{icon:we,runningLabel:"Reviewing safety",completedLabel:"Reviewed safety",failedLabel:"Safety review failed",interruptedLabel:"Safety review stopped",detail:a};case"terminal":return{icon:Te,runningLabel:"Sending terminal input",completedLabel:"Sent terminal input",failedLabel:"Terminal input failed",interruptedLabel:"Terminal input stopped",detail:a};case"wait":return{icon:Ce,runningLabel:"Waiting",completedLabel:"Finished waiting",failedLabel:"Wait failed",interruptedLabel:"Wait stopped",detail:a};case"provider_notice":return{icon:G(e)==="info"?xe:ye,runningLabel:"Provider notice",completedLabel:"Provider notice",failedLabel:"Provider error",interruptedLabel:"Provider notice",detail:a}}}o(Ie,"providerActivityPresentation");function ze(e){const a=e.totals.files||e.files.length,n=a>0?`${a} ${a===1?"file":"files"}`:void 0;return{icon:he,runningLabel:"Editing files",completedLabel:"Edited files",detail:n}}o(ze,"workspaceChangePresentation");function Pe(e){return{icon:F,runningLabel:"Referencing a file",completedLabel:"Referenced a file",detail:e.line==null?e.path:`${e.path}:${e.line}`}}o(Pe,"workspaceFilePresentation");function Me(e){return{icon:e.resourceKind==="document"?F:ke,runningLabel:"Saving a resource",completedLabel:e.resourceKind==="document"?"Added a document":"Added a deliverable",detail:e.title}}o(Me,"resourcePresentation");function K(e){switch(e.surface){case"provider_activity":return Ie(e);case"workspace_change":return ze(e);case"workspace_file":return Pe(e);case"resource":return Me(e);case"runtime_request":case"run_result":case"run_terminal":return null}}o(K,"protocolActivityPresentation");function X(e){return e.surface==="provider_activity"?e.status==="running":e.surface==="workspace_change"?!e.complete:!1}o(X,"protocolActivityIsRunning");function Ee(e,a){return e.surface!=="provider_activity"?X(e)?a.runningLabel:a.completedLabel:e.status==="failed"?a.failedLabel??`${a.completedLabel} · failed`:e.status==="interrupted"?a.interruptedLabel??`${a.completedLabel} · interrupted`:e.status==="running"?a.runningLabel:a.completedLabel}o(Ee,"protocolActivityLabel");var Be={terminal:"Ran commands",grep:"Searched files",search:"Searched files",read:"Read files",edit:"Edited files",web:"Searched the web",plan:"Worked on a plan",question:"Requested input",agent:"Worked with agents",safety:"Reviewed safety",image:"Worked with images",wait:"Waited",mcp:"Used connected tools",other:"Used tools"};function He(e){const a=new Map,n=o((i,l,f=0)=>{const g=a.get(i);(!g||f<g.order)&&a.set(i,{label:i,icon:l,order:f})},"add"),s=[],c=[];for(const[i,l]of e.entries())if(l.kind==="tool"){const f=j({name:l.rawName??l.name,target:l.target});s.push({...f,order:i,completed:l.status==="completed"})}else if(l.kind==="protocol")if(l.surface==="provider_activity"&&l.family==="tool_execution"){const f=o(b=>l.details.find(y=>y.label===b)?.value,"value"),g=j({name:f("Name"),operation:f("Operation"),transport:f("Transport"),namespace:f("Namespace"),target:f("Target")});s.push({...g,order:i,completed:l.status==="completed"})}else{const f=K(l);if(!f)continue;if(l.surface==="provider_activity"&&l.family==="provider_notice"){const g=l.summary?.trim()||l.details.find(b=>b.label==="Summary")?.value.trim();c.push({summary:g,severity:G(l),icon:f.icon,order:i});continue}n({research:"Searched the web",plan:"Worked on a plan",delegation:"Worked with agents",artifact:"Worked with artifacts",context:"Managed context",memory:"Checked memory",model_identity:"Checked model settings",review:"Worked in review mode",hook:"Ran hooks",safety:"Reviewed safety",terminal:"Ran commands",wait:"Waited",workspace_change:"Worked on files",workspace_file:"Referenced files",resource:"Added resources"}[l.surface==="provider_activity"?l.family:l.surface]??"Used tools",f.icon,i)}if(c.length){const i=c.find(l=>l.severity==="error")??c.find(l=>l.severity==="warning")??c[0];n(c.length===1?i.summary||"Received a provider update":i.severity==="error"?"Provider error reported":i.severity==="warning"?"Provider warning reported":"Received provider updates",i.icon,i.severity==="info"?c[0].order:-1)}const u=new Set(s.filter(i=>i.completed).map(i=>i.family));for(const i of s){const l=u.has(i.family);n(i.family==="read"&&!l?"Checked files":i.family==="edit"&&!l?"Worked on files":Be[i.family],i.icon,i.order)}a.size||(e.some(i=>i.kind==="thinking")?n("Thought through the task",B):e.some(i=>i.kind==="marker")?n("Activity stopped",O):n("Recorded usage",R));const r=[...a.values()].sort((i,l)=>i.order-l.order),p=o(i=>i.map((l,f)=>f?l.charAt(0).toLowerCase()+l.slice(1):l).join(", "),"join"),d=p(r.map(i=>i.label));return{label:r.length>3?`${p(r.slice(0,2).map(i=>i.label))}, and more`:d,fullLabel:d,icon:r.length===1?r[0].icon:oe}}o(He,"completedActivitySummary");var M=5,De=8;function We(e,a=!1){return a&&(e==="blocked"||e==="failed")?(0,t.jsx)(z,{className:"h-3 w-3 text-ink-3","aria-hidden":!0}):e==="in_progress"?(0,t.jsx)(be,{className:"h-3 w-3 animate-spin text-(--status-agent-running)","aria-hidden":!0}):e==="completed"?(0,t.jsx)(ce,{className:"h-3 w-3 text-(--status-task-icon-done)","aria-hidden":!0}):e==="blocked"||e==="failed"?(0,t.jsx)(Le,{className:"h-3 w-3 text-bad","aria-hidden":!0}):(0,t.jsx)(z,{className:"h-3 w-3 text-ink-3","aria-hidden":!0})}o(We,"stepStatusIcon");function Q({details:e}){return e.length===0?null:(0,t.jsx)("dl",{className:"flex min-w-0 flex-col gap-1.5","data-testid":"task-chat-provider-detail-list",children:e.map(a=>(0,t.jsxs)("div",{className:"grid min-w-0 grid-cols-1 gap-0.5 sm:grid-cols-(--gtc-task-chat-details) sm:gap-3",children:[(0,t.jsx)("dt",{className:"text-ink-3",children:a.label}),(0,t.jsx)("dd",{className:m("min-w-0 break-words text-ink",a.mono&&"font-mono"),children:a.value})]},`${a.label}:${a.value}`))})}o(Q,"DetailList");function Fe(e){try{return new URL(e).hostname.replace(/^www\./,"")}catch{return e}}o(Fe,"sourceHostname");function Oe({item:e}){const[a,n]=(0,h.useState)(!1),s=e.details.find(p=>p.label.toLowerCase()==="query"),c=e.details.filter(p=>!["action","query","status"].includes(p.label.toLowerCase())),u=a?e.links:e.links.slice(0,M),r=e.links.length-u.length;return(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-2.5",children:[s?(0,t.jsxs)("div",{className:"min-w-0 rounded-sm bg-bg-3/40 px-2.5 py-2","data-testid":"task-chat-research-query",children:[(0,t.jsx)("p",{className:"text-(length:--text-nano) font-medium uppercase tracking-wide text-ink-3",children:"Query"}),(0,t.jsx)("p",{className:"mt-0.5 min-w-0 break-words font-mono text-(length:--text-micro) text-ink",children:s.value})]}):null,e.links.length>0?(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsxs)("p",{className:"mb-1 text-(length:--text-nano) font-medium uppercase tracking-wide text-ink-3",children:[e.links.length," ",e.links.length===1?"result":"results"]}),(0,t.jsx)("ol",{className:"divide-y divide-line/60","aria-label":"Research sources",children:u.map((p,d)=>(0,t.jsxs)("li",{className:"min-w-0 py-1.5 first:pt-0 last:pb-0",children:[(0,t.jsxs)("a",{className:"flex min-w-0 items-center gap-1 font-medium text-ink hover:underline",href:p.href,target:"_blank",rel:"noreferrer",children:[(0,t.jsx)("span",{className:"truncate",children:p.label}),(0,t.jsx)(W,{className:"h-3 w-3 shrink-0","aria-hidden":!0})]}),(0,t.jsxs)("p",{className:"mt-0.5 flex min-w-0 gap-2 text-ink-3",children:[(0,t.jsx)("span",{className:"shrink-0",children:Fe(p.href)}),p.description?(0,t.jsx)("span",{className:"min-w-0 truncate",children:p.description}):null]})]},`${p.href}:${d}`))}),r>0?(0,t.jsxs)("button",{type:"button",className:"mt-1.5 text-ink-3 hover:text-ink",onClick:o(()=>n(!0),"onClick"),children:["Show ",r," more ",r===1?"result":"results"]}):a&&e.links.length>M?(0,t.jsx)("button",{type:"button",className:"mt-1.5 text-ink-3 hover:text-ink",onClick:o(()=>n(!1),"onClick"),children:"Show fewer results"}):null]}):null,(0,t.jsx)(Q,{details:c}),e.output||e.outputTruncated?(0,t.jsx)("p",{className:"text-ink-3",children:"Additional provider output is available in Runner Inspector."}):null]})}o(Oe,"ResearchDetails");function Ue({item:e,neutral:a=!1}){return e.family==="research"?(0,t.jsx)(Oe,{item:e}):(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-2",children:[e.steps.length>0?(0,t.jsx)("ol",{className:"flex flex-col gap-1","aria-label":"Plan steps",children:e.steps.map(n=>(0,t.jsxs)("li",{className:"flex min-w-0 items-start gap-2",children:[(0,t.jsx)("span",{className:"mt-0.5 shrink-0",children:We(n.status,a)}),(0,t.jsx)("span",{className:m("min-w-0",n.status==="completed"&&"text-ink-3 line-through"),children:n.label})]},n.id))}):null,e.links.length>0?(0,t.jsx)("ul",{className:"flex flex-col gap-1.5","aria-label":"Research sources",children:e.links.map(n=>(0,t.jsxs)("li",{children:[(0,t.jsxs)("a",{className:"inline-flex min-w-0 items-center gap-1 font-medium text-accent hover:underline",href:n.href,target:"_blank",rel:"noreferrer",children:[(0,t.jsx)("span",{className:"truncate",children:n.label}),(0,t.jsx)(W,{className:"h-3 w-3 shrink-0","aria-hidden":!0})]}),n.description?(0,t.jsx)("p",{className:"mt-0.5 text-ink-3",children:n.description}):null]},n.href))}):null,e.children.length>0?(0,t.jsx)("ul",{className:"flex flex-col gap-1.5","aria-label":"Delegated agents",children:e.children.map(n=>(0,t.jsxs)("li",{className:"flex min-w-0 flex-col gap-0.5",children:[(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-2",children:[(0,t.jsx)("span",{className:"font-medium text-ink",children:n.title}),(0,t.jsx)("span",{className:"capitalize text-ink-3",children:n.status}),n.metadata?(0,t.jsx)("span",{className:"min-w-0 truncate font-mono text-(length:--text-micro)",children:n.metadata}):null]}),n.summary?(0,t.jsx)("span",{className:"text-ink-3",children:n.summary}):null]},n.id))}):null,e.details.length>0?(0,t.jsx)(Q,{details:e.details}):null,e.output?(0,t.jsx)("pre",{className:"max-h-(--sz-64) overflow-auto whitespace-pre-wrap rounded-sm bg-bg-3/50 p-2 font-mono text-(length:--text-micro) text-ink",children:e.output}):null,e.outputTruncated?(0,t.jsx)("p",{className:"text-ink-3",children:"Output truncated to 8 KiB."}):null]})}o(Ue,"ProviderDetails");function qe({item:e}){if(e.files.length===0)return(0,t.jsx)("p",{className:"text-ink-3",children:"No changed-file details were reported."});const a=e.files.slice(0,De),n=e.files.length-a.length;return(0,t.jsxs)("div",{className:"min-w-0","data-testid":"task-chat-workspace-change-details",children:[(0,t.jsx)("ul",{className:"flex min-w-0 flex-col divide-y divide-line/60","aria-label":"Changed files",children:a.map(s=>(0,t.jsxs)("li",{className:"flex min-w-0 items-center gap-2 py-1.5 first:pt-0 last:pb-0",children:[(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-ink",title:s.previousPath?`${s.previousPath} → ${s.path}`:s.path,children:s.previousPath?`${s.previousPath} → ${s.path}`:s.path}),(0,t.jsx)("span",{className:"shrink-0 capitalize text-ink-3",children:s.operation.replaceAll("_"," ")}),s.additions!=null||s.deletions!=null?(0,t.jsxs)("span",{className:"shrink-0 font-mono text-(length:--text-micro) text-ink-3",children:[s.additions==null?"":`+${s.additions}`," ",s.deletions==null?"":`−${s.deletions}`]}):null]},`${s.operation}:${s.path}`))}),n>0?(0,t.jsxs)("p",{className:"mt-1.5 text-ink-3",children:[n," more ",n===1?"file":"files"," not shown"]}):null]})}o(qe,"WorkspaceChangeDetails");function Ve({item:e}){const a={path:e.path,resourceKind:"file",line:e.line,column:null,raw:e.path};return(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-2",children:[(0,t.jsx)(fe,{workspaceFileRef:a,label:e.path}),e.preview?e.presentation==="document"?(0,t.jsx)("div",{className:"max-h-(--sz-64) overflow-auto rounded-sm bg-bg-3/30 p-2 text-ink",children:(0,t.jsx)(T,{children:e.preview})}):(0,t.jsx)("pre",{className:"max-h-(--sz-64) overflow-auto whitespace-pre-wrap rounded-sm bg-bg-3/50 p-2 font-mono text-(length:--text-micro) text-ink",children:e.preview}):(0,t.jsx)("p",{className:"text-ink-3",children:"Preview unavailable."}),e.previewTruncated?(0,t.jsx)("p",{className:"text-ink-3",children:"Preview truncated by the runner."}):null]})}o(Ve,"WorkspaceFileDetails");function Z(e,a=!1){switch(e.surface){case"provider_activity":return e.details.length>0||e.steps.length>0||e.links.length>0||e.children.length>0||e.output||e.outputTruncated?(0,t.jsx)(Ue,{item:e,neutral:a}):null;case"workspace_change":return(0,t.jsx)(qe,{item:e});case"workspace_file":return(0,t.jsx)(Ve,{item:e});case"resource":case"runtime_request":case"run_result":case"run_terminal":return null}}o(Z,"detailContent");function J(e){if(e)try{const a=new URL(e,"https://wardmote.invalid");return a.protocol==="https:"||a.protocol==="http:"?e:void 0}catch{return}}o(J,"safeActivityHref");function Ge(e){return e.surface==="resource"?!!J(e.href):Z(e)!==null||e.surface==="provider_activity"&&!!e.summary?.trim()}o(Ge,"hasTaskChatProtocolActivityDetails");function Ke({item:e,neutral:a=!1}){const n=Z(e,a);if(e.surface==="resource"){const s=J(e.href);return s?(0,t.jsx)("a",{href:s,className:"text-ink underline",children:e.title}):(0,t.jsx)("p",{children:e.title})}return(0,t.jsxs)(t.Fragment,{children:[e.surface==="provider_activity"&&e.summary?(0,t.jsx)("p",{className:"whitespace-pre-wrap break-words",children:e.summary}):null,n]})}o(Ke,"TaskChatProtocolActivityDetails");function Y(e,a){if(e.kind==="tool"){const d=j({name:e.rawName??e.name,target:e.target}),i=a&&(e.status==="pending"||e.status==="in_progress");return{icon:d.icon,label:e.status==="failed"?d.failedLabel:e.status==="interrupted"?d.interruptedLabel:i?d.runningLabel:d.completedLabel,target:e.target,mono:!0,running:i}}if(e.kind==="thinking"){const d=a&&!!e.streaming;return{icon:B,label:d?"Thinking":"Thought",target:e.lines.filter(i=>i.trim()).at(-1)?.trim(),mono:!1,running:d}}if(e.kind==="protocol"){const d=K(e);return d?{icon:d.icon,label:Ee(e,d),target:d.detail,mono:!0,running:a&&X(e)}:null}if(e.kind==="marker")return{icon:O,label:e.label,target:e.detail,mono:!1,running:!1};const{used:n,size:s,inputTokens:c,outputTokens:u,costUsd:r}=e.usage,p=[s>0?`${n.toLocaleString()}/${s.toLocaleString()} ctx`:void 0,c!=null||u!=null?`↑${(c??0).toLocaleString()} ↓${(u??0).toLocaleString()}`:void 0,r!=null?`$${r.toFixed(4)}`:void 0].filter(Boolean).join(" · ");return{icon:R,label:e.label??"Token usage",target:p||e.detail,mono:!1,running:!1}}o(Y,"presentation");function Xe({item:e,active:a}){const n=Y(e,a);if(!n)return null;const s=n.icon;return(0,t.jsxs)("span",{className:"flex min-w-0 flex-1 items-center gap-2","data-activity-row":e.id,"data-activity-family":e.kind==="protocol"?e.surface==="provider_activity"?e.family:e.surface:void 0,children:[(0,t.jsx)("span",{className:"flex size-5 shrink-0 items-center justify-center","data-activity-icon":!0,children:(0,t.jsx)(s,{className:"size-3.5","aria-hidden":"true"})}),(0,t.jsxs)("span",{className:"flex min-w-0 flex-1 items-center gap-2 overflow-hidden whitespace-nowrap",children:[(0,t.jsx)("span",{className:m("max-w-full shrink-0 truncate text-xs",n.running&&"text-ink"),children:n.label}),n.target?(0,t.jsx)("span",{title:n.target,className:m("truncate text-xs text-ink-3",n.mono&&"font-mono"),children:n.target}):null]})]})}o(Xe,"ActivityContent");function Qe({item:e}){return e.kind==="thinking"?(0,t.jsx)(T,{softBreaks:!0,children:e.lines.join(`
|
|
2
|
-
`)}):e.kind==="usage"?(0,t.jsx)($e,{item:e}):e.kind==="protocol"?(0,t.jsx)(Ke,{item:e,neutral:!0}):e.kind==="marker"?(0,t.jsx)("p",{className:"whitespace-pre-wrap break-words",children:e.detail??e.label}):(0,t.jsxs)(t.Fragment,{children:[e.target?(0,t.jsx)("p",{className:"break-all font-mono",children:e.target}):null,e.detail?(0,t.jsx)("pre",{className:"whitespace-pre-wrap break-words font-mono",children:e.detail}):null,e.decision?(0,t.jsxs)("p",{children:["Permission ",e.decision]}):null,e.diff?(0,t.jsxs)("p",{className:"break-all font-mono",children:[e.diff.path," · +",e.diff.added," −",e.diff.removed]}):null]})}o(Qe,"ActivityDetails");function Ze(e){return e.kind==="protocol"?Ge(e):e.kind==="thinking"?e.lines.some(a=>a.trim()):e.kind==="tool"?!!(e.target?.trim()||e.detail?.trim()||e.diff||e.decision):e.kind==="marker"?!!e.detail?.trim():!!(e.detail||e.usage.size>0||e.usage.inputTokens!=null||e.usage.outputTokens!=null||e.usage.costUsd!=null)}o(Ze,"hasActivityDetails");var Je=24;function Ye(e){const a=(0,h.useRef)(null),n=(0,h.useRef)(e),s=(0,h.useRef)(0),c=(0,h.useCallback)(()=>{const r=a.current;r&&(n.current=!0,r.scrollTop=r.scrollHeight,s.current=r.scrollTop)},[]),u=(0,h.useCallback)(()=>{const r=a.current;if(!r)return;const p=r.scrollTop,d=p-s.current;if(s.current=p,d<-24){n.current=!1;return}d>0&&r.scrollHeight-p-r.clientHeight<=Je&&(n.current=!0)},[]);return(0,h.useLayoutEffect)(()=>{e&&c()},[e,c]),(0,h.useEffect)(()=>{const r=a.current;if(!r||typeof ResizeObserver>"u")return;const p=new ResizeObserver(()=>{n.current&&(r.scrollTop=r.scrollHeight,s.current=r.scrollTop)});for(const d of r.children)p.observe(d);return()=>p.disconnect()},[]),{ref:a,onScroll:u}}o(Ye,"useFollowDetailBottom");var et=new Set;function ee(e){return e.items.filter(a=>Y(a,!1)!==null)}o(ee,"visibleActivities");function tt(e){const a=e.flatMap(n=>ee(n).map(s=>s.id));return new Set(a.slice(-3))}o(tt,"newestActivityIds");function te({item:e,active:a,auto:n,current:s=!1}){const[c,u]=A(`runner-detail:${e.id}`,n),[r,p]=(0,h.useState)(c),d=Ye(c&&s===!0);c&&!r&&p(!0);const i=(0,h.useId)(),l=Ze(e),f=(0,t.jsx)(Xe,{item:e,active:a});return(0,t.jsxs)("li",{className:"min-w-0","data-activity-item-id":e.id,"data-activity-open":l?c:void 0,"data-testid":s?"task-chat-activity-current":void 0,children:[l?(0,t.jsxs)("button",{type:"button",className:"flex h-8 w-full min-w-0 items-center gap-2 rounded-sm text-left text-ink-3 hover:text-ink focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus",onClick:o(()=>u(!c),"onClick"),"aria-expanded":c,"aria-controls":r?i:void 0,children:[f,(0,t.jsx)(_,{className:m("size-3.5 shrink-0",c&&"rotate-90"),"aria-hidden":"true"})]}):(0,t.jsx)("div",{className:"flex h-8 w-full min-w-0 items-center gap-2 text-ink-3",children:f}),l&&r?(0,t.jsx)("div",{id:i,hidden:!c,ref:d.ref,onScroll:d.onScroll,className:"flex max-h-(--sz-64) min-w-0 flex-col gap-2 overflow-y-auto rounded-md bg-bg-3/40 p-3 text-xs leading-relaxed text-ink-3 [&>*]:shrink-0","data-testid":"task-chat-runner-activity-detail",children:(0,t.jsx)("div",{className:"flex min-w-0 flex-col gap-2","data-testid":"task-chat-runner-activity-body",children:(0,t.jsx)(Qe,{item:e})})}):null]})}o(te,"ExpandedActivity");function at({phaseId:e,activities:a,openIds:n,active:s}){const[c,u]=A(`runner-earlier:${e}`,!1),r=(0,h.useId)(),p=a.at(-1),d=a.filter(l=>!n.has(l.id)).length,i=a.filter(l=>c||n.has(l.id));return(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-1",children:[d>0?(0,t.jsxs)("button",{type:"button",className:"flex h-8 w-full min-w-0 items-center gap-2 rounded-sm text-left text-xs text-ink-3 hover:text-ink focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus","data-testid":"task-chat-activity-earlier-toggle",onClick:o(()=>u(!c),"onClick"),"aria-expanded":c,"aria-controls":r,children:[(0,t.jsx)("span",{className:"flex size-5 shrink-0 items-center justify-center",children:(0,t.jsx)(_,{className:m("size-3.5",c&&"rotate-90"),"aria-hidden":"true"})}),(0,t.jsx)("span",{children:c?`Hide ${d} earlier`:`+${d} earlier`})]}):null,(0,t.jsx)("ol",{id:r,className:"flex min-w-0 flex-col gap-1","aria-label":"Activity history","data-testid":"task-chat-runner-activity-list",children:i.map(l=>(0,t.jsx)(te,{item:l,active:s&&l===p,auto:n.has(l.id),current:l===p},l.id))})]})}o(at,"LiveActivities");function nt({phaseId:e,activities:a}){const[n,s]=A(e,!1),c=(0,h.useId)(),u=He(a),r=u.icon,p=`${a.length} ${a.length===1?"activity":"activities"}`;return(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsxs)("button",{type:"button",className:"flex min-h-8 w-full min-w-0 items-center gap-2 rounded-sm text-left text-ink-3 hover:text-ink focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus","data-testid":"task-chat-activity-phase-toggle",onClick:o(()=>s(!n),"onClick"),"aria-expanded":n,"aria-controls":n?c:void 0,"aria-label":`${n?"Collapse":"Expand"} ${u.fullLabel.toLowerCase()} (${p})`,children:[(0,t.jsxs)("span",{className:"flex h-8 min-w-0 flex-1 items-center gap-2 text-xs","data-completed-summary":!0,children:[(0,t.jsx)("span",{className:"flex size-5 shrink-0 items-center justify-center",children:(0,t.jsx)(r,{className:"size-3.5","aria-hidden":"true"})}),(0,t.jsx)("span",{className:"truncate",title:u.fullLabel,children:u.label})]}),(0,t.jsxs)("span",{className:"flex shrink-0 items-center gap-1 text-xs",children:[n?p:null,(0,t.jsx)(_,{className:m("size-3.5",n&&"rotate-90"),"aria-hidden":"true"})]})]}),n?(0,t.jsx)("ol",{id:c,className:"flex min-w-0 flex-col gap-1","aria-label":"Activity history","data-testid":"task-chat-runner-activity-list",children:a.map(d=>(0,t.jsx)(te,{item:d,active:!1,auto:!1},d.id))}):null]})}o(nt,"SettledActivities");function Mt({item:e,openActivityIds:a}){const n=ee(e),s=a??(e.active?tt([e]):et),c=n.some(u=>s.has(u.id));return(0,t.jsxs)("section",{className:"flex min-w-0 flex-col gap-2","data-testid":"task-chat-activity-phase","data-activity-group":e.id,"data-activity-mode":c?"live":"settled",children:[e.interstitial?(0,t.jsx)("div",{className:"min-w-0 px-1 text-sm text-ink/90","data-testid":"task-chat-phase-interstitial",children:(0,t.jsx)(T,{softBreaks:!0,linkIssueReferences:!0,children:e.interstitial.text})}):null,c?(0,t.jsx)(at,{phaseId:e.id,activities:n,openIds:s,active:e.active}):n.length>0?(0,t.jsx)(nt,{phaseId:e.id,activities:n}):null]})}o(Mt,"TaskChatRunnerActivityGroup");function Et({browser:e,label:a="Browser",onOpen:n}){const s=e.status==="closed"||e.status==="failed";return(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2 py-1 text-sm","aria-label":`${a} session`,children:[(0,t.jsx)(le,{className:"size-4 shrink-0 text-ink-3","aria-hidden":!0}),(0,t.jsx)("span",{children:a}),(0,t.jsxs)("span",{className:"text-ink-3",children:["· ",e.status]}),n&&(0,t.jsx)(v,{variant:"ghost",size:"sm",onClick:o(()=>n(e.id),"onClick"),children:s?"View session":"Open browser"})]})}o(Et,"TaskBrowserActivity");function Bt({item:e}){return(0,t.jsx)("article",{className:"rounded-lg border border-line bg-bg-2 p-3","aria-label":`Project created: ${e.name}`,children:(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)(Re,{className:"mt-0.5 size-4 shrink-0 text-ink-3","aria-hidden":!0}),(0,t.jsxs)("div",{className:"min-w-0 flex-1 space-y-1",children:[(0,t.jsx)("p",{className:"text-xs text-ink-3",children:"Project created"}),(0,t.jsx)(w,{to:`/projects/${e.projectId}`,className:"break-words text-sm font-medium hover:underline focus-visible:underline",children:e.name}),e.description&&(0,t.jsx)("p",{className:"line-clamp-3 text-sm text-ink-3",children:e.description}),e.repositories.length>0&&(0,t.jsx)("ul",{className:"space-y-1 pt-1",children:e.repositories.map(a=>(0,t.jsxs)("li",{className:"flex min-w-0 items-center gap-2 text-xs text-ink-3",children:[(0,t.jsx)(H,{className:"size-3 shrink-0","aria-hidden":!0}),(0,t.jsx)("a",{className:"truncate hover:underline focus-visible:underline",href:a.url,target:"_blank",rel:"noreferrer",children:a.name})]},a.id))})]})]})})}o(Bt,"TaskChatProjectCreatedCard");var st={session_start:pe,interrupted:ve,turn_boundary:me};function Ht({item:e,onTryAgain:a,tryAgainPending:n=!1}){const[s,c]=(0,h.useState)(!1),u=(0,h.useId)(),r=Ne(),p=e.tone==="neutral"?je:st[e.variant],d=e.variant==="interrupted"&&e.tone!=="neutral",i=e.createdAtIso?ie(e.createdAtIso):void 0,l=o(()=>{Promise.resolve().then(()=>a?.()).catch(()=>{})},"handleTryAgain");if(e.credentialAccess){const{agentName:f,credentialName:g,deniedUser:b,settingsHref:y}=e.credentialAccess;return(0,t.jsxs)("div",{role:"alert","data-testid":"task-chat-credential-access-notice",className:"tc-enter-marker flex w-full items-start gap-3 rounded-lg border border-bad/40 bg-bad/10 p-4 text-sm",children:[(0,t.jsx)(ge,{className:"mt-0.5 size-5 shrink-0 text-bad","aria-hidden":!0}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-2",children:[(0,t.jsxs)("p",{className:"font-semibold text-bad",children:[f," couldn’t start"]}),(0,t.jsxs)("p",{className:"break-words font-medium text-ink",children:[f," is configured to use ",g||"an AI credential",", but ",b==="you"?"you don’t":`${b} doesn’t`," have access to that credential."]}),(0,t.jsxs)("p",{className:"text-ink-3",children:["Choose an AI connection ",b==="you"?"you can":`${b} can`," use, or ask an administrator to update ",f,"’s connection. Then try again."]}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2 pt-1",children:[(0,t.jsx)(v,{asChild:!0,variant:"secondary",size:"sm",children:(0,t.jsx)(w,{to:y,children:"Change AI connection"})}),e.runHref&&(0,t.jsx)(v,{asChild:!0,variant:"ghost",size:"sm",children:(0,t.jsx)(w,{to:e.runHref,children:"View run"})})]})]})]})}return e.collapsible?(0,t.jsxs)("div",{className:"tc-enter-marker flex flex-col items-start py-1 text-xs text-ink-3","data-testid":"task-chat-collapsible-marker",children:[(0,t.jsxs)("div",{className:"flex max-w-(--pct-85) items-center gap-1.5",children:[(0,t.jsxs)("button",{type:"button",onClick:o(()=>c(f=>!f),"onClick"),"aria-expanded":s,"aria-controls":u,className:m("flex min-w-0 items-center gap-1.5 rounded-md px-2 py-0.5",d?"text-bad":"text-ink-3","hover:bg-bg-3/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus/50"),children:[(0,t.jsx)(p,{className:"h-3.5 w-3.5 shrink-0","aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate font-medium",children:e.label}),i?(0,t.jsxs)("span",{className:"shrink-0 text-ink-3/70",children:["· ",i]}):null,(0,t.jsx)(de,{className:m("tc-notice-chevron h-3.5 w-3.5 shrink-0 transition-transform",s&&"rotate-180"),"aria-hidden":!0})]}),a&&!s?(0,t.jsx)(v,{type:"button",variant:"secondary",size:"xs",onClick:l,disabled:n,"data-testid":"task-chat-run-failed-try-again",children:n?"Trying again...":"Try again"}):null]}),s?(0,t.jsxs)("div",{id:u,"data-testid":"task-chat-collapsible-marker-details",className:"mt-1 w-full max-w-(--pct-85) overflow-hidden rounded-lg border border-line bg-bg-3/25 text-left text-sm dark:bg-bg-3/15",children:[e.detail?(0,t.jsx)("div",{className:"px-3 py-2.5 text-ink/90",children:e.detail}):null,e.runHref||e.planHref||a?(0,t.jsxs)("div",{className:"flex items-center justify-end gap-2 border-t border-line/70 bg-bg/50 px-3 py-2 dark:bg-bg/30",children:[e.planHref?(0,t.jsx)(v,{asChild:!0,variant:"ghost",size:"xs",children:(0,t.jsx)(w,{to:e.planHref,children:"View saved plan"})}):null,e.runHref?(0,t.jsx)(v,{asChild:!0,variant:"ghost",size:"xs",children:(0,t.jsx)(w,{to:e.runHref,children:"View run"})}):null,a?(0,t.jsx)(v,{type:"button",size:"xs",onClick:l,disabled:n,"data-testid":"task-chat-run-failed-try-again",children:n?"Trying again...":"Try again"}):null]}):null]}):null]}):(0,t.jsxs)("div",{className:"tc-enter-marker flex items-center gap-2 py-1 text-xs text-ink-3",role:r?"separator":void 0,"aria-label":r?e.label:void 0,children:[(0,t.jsx)("span",{className:m("h-px flex-1",d?"border-t border-dashed border-bad/50":"bg-line")}),(0,t.jsxs)("span",{className:m("flex items-center gap-1.5",d&&"text-bad"),children:[(0,t.jsx)(p,{className:"h-3.5 w-3.5"}),(0,t.jsx)("span",{className:"font-medium",children:e.label}),e.detail?(0,t.jsxs)("span",{className:"text-ink-3",children:["· ",e.detail]}):null,a?(0,t.jsx)(v,{type:"button",variant:"secondary",size:"xs",onClick:l,disabled:n,"data-testid":"task-chat-run-failed-try-again",children:n?"Trying again...":"Try again"}):null]}),(0,t.jsx)("span",{className:m("h-px flex-1",d?"border-t border-dashed border-bad/50":"bg-line")})]})}o(Ht,"TaskChatMarker");export{tt as a,Pt as c,Mt as i,A as l,Bt as n,$e as o,Et as r,Ae as s,Ht as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var L=Object.defineProperty;var l=(e,a)=>L(e,"name",{value:a,configurable:!0});import{i as P}from"./rolldown-runtime-ZpX3ckPj.js";import{l as u,na as O,t as V,ta as H}from"./createLucideIcon-DJi9suAC.js";import{ot as C}from"./router-2UfGeejU.js";import{t as T}from"./bot-C9arfJWx.js";import{t as G}from"./check-Ctsrlfa-.js";import{t as U}from"./chevron-down-BCvxsWfI.js";import{t as X}from"./chevron-right-s7L6hXXq.js";import{t as Y}from"./circle-question-mark-B1jR2is9.js";import{t as J}from"./circle-IAHLDvLO.js";import{o as Z,t as K}from"./MarkdownBody-BTjuUgFa.js";import{t as ee}from"./external-link-nl1b263c.js";import{t as I}from"./file-code-corner-CmZ_RihF.js";import{t as S}from"./file-text-Cw7ntqRx.js";import{t as se}from"./RichWorkProductCard-ClpMt_Bh.js";import{n as te,t as z}from"./QuestionForm-B8-PWz3B.js";import{r as ne,t as p}from"./button-CMwV3L1P.js";import{t as q}from"./shield-check-B0HVjzM_.js";import{t as ae}from"./triangle-alert-CBVKiaXB.js";import{t as le}from"./x-DRDFdlYE.js";import{a as F,n as B,s as W,t as A}from"./dialog-CKUblzlR.js";import{t as re}from"./textarea-BRPEfJ-g.js";import{_ as ie,a as oe,f as ce,r as de}from"./TaskChatComposerTakeoverContext-BJAHPHve.js";import{Ba as ue,ya as _}from"./index-3AxqhPET.js";var Q={name:"package-check",size:24,node:[["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m16 17 2 2 4-4",key:"uh5qu3"}],["path",{d:"M21 11.127V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.729l7 4a2 2 0 0 0 2 .001l1.32-.753",key:"kpkbpo"}],["path",{d:"M3.29 7 12 12l8.71-5",key:"19ckod"}],["path",{d:"m7.5 4.27 8.997 5.148",key:"9yrvtv"}]]};Q.node;var w=V(Q),x=P(O(),1),s=P(H(),1),xe={plan:C,tool_execution:_,research:S,delegation:T,model_identity:T,context:w,artifact:w,review:q,hook:C,memory:S,safety:q,terminal:_,wait:ue,provider_notice:ae};function g(e){return["failed","blocked","denied","cancelled","interrupted"].includes(e)?"text-bad":["running","pending","in_progress","waiting"].includes(e)?"text-(--status-agent-running)":["completed","done","succeeded","passed","resolved"].includes(e)?"text-(--status-task-icon-done)":"text-ink-3"}l(g,"statusTone");function N({status:e,className:a}){return["running","pending","in_progress","waiting"].includes(e)?(0,s.jsx)(ne,{"aria-hidden":!0,className:u("h-4 w-4 animate-spin",g(e),a)}):["failed","blocked","denied","cancelled","interrupted"].includes(e)?(0,s.jsx)(le,{"aria-hidden":!0,className:u("h-4 w-4",g(e),a)}):["completed","done","succeeded","passed","resolved"].includes(e)?(0,s.jsx)(G,{"aria-hidden":!0,className:u("h-4 w-4",g(e),a)}):(0,s.jsx)(J,{"aria-hidden":!0,className:u("h-4 w-4",g(e),a)})}l(N,"StatusIcon");function j({icon:e,title:a,status:t,summary:n,children:c,testId:o,presentation:k="timeline"}){const h=(0,s.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,s.jsx)(e,{"aria-hidden":!0,className:"h-4 w-4 shrink-0 text-ink-3"}),(0,s.jsx)("strong",{className:"min-w-0 truncate text-sm font-medium text-ink",children:a}),t&&t!=="pending"?(0,s.jsxs)("span",{className:u("inline-flex shrink-0 items-center gap-1 text-xs capitalize",g(t)),children:[(0,s.jsx)(N,{status:t,className:"h-3.5 w-3.5"}),t.replaceAll("_"," ")]}):null]});return k==="takeover"?(0,s.jsxs)("article",{className:"overflow-hidden","data-testid":o,children:[(0,s.jsx)(de,{children:h}),n?(0,s.jsx)("p",{className:u("text-sm text-ink-3",!!c&&"mb-3"),children:n}):null,c]}):(0,s.jsxs)("article",{className:u("overflow-hidden",k==="timeline"&&"rounded-md border border-line bg-bg-2/60"),"data-testid":o,children:[(0,s.jsxs)("header",{className:"flex min-w-0 items-start gap-2 px-3 py-2.5",children:[(0,s.jsx)(e,{"aria-hidden":!0,className:"mt-0.5 h-4 w-4 shrink-0 text-ink-3"}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1",children:[(0,s.jsx)("strong",{className:"text-sm font-medium text-ink",children:a}),t?(0,s.jsxs)("span",{className:u("inline-flex items-center gap-1 text-xs capitalize",g(t)),children:[(0,s.jsx)(N,{status:t,className:"h-3.5 w-3.5"}),t.replaceAll("_"," ")]}):null]}),n?(0,s.jsx)("p",{className:"mt-1 text-sm text-ink-3",children:n}):null]})]}),c?(0,s.jsx)("div",{className:"border-t border-line/70 px-3 py-2.5",children:c}):null]})}l(j,"CardShell");function pe({steps:e}){return e.length===0?null:(0,s.jsx)("ol",{className:"flex flex-col gap-1.5","aria-label":"Plan steps",children:e.map(a=>(0,s.jsxs)("li",{className:"flex items-start gap-2 text-sm",children:[(0,s.jsx)(N,{status:a.status,className:"mt-0.5 shrink-0"}),(0,s.jsx)("span",{className:u("min-w-0 flex-1",a.status==="completed"&&"text-ink-3 line-through"),children:a.label})]},a.id))})}l(pe,"PlanSteps");function he({item:e}){const a=xe[e.family],t=e.details.length>0||e.links.length>0||e.children.length>0||!!e.output;return(0,s.jsxs)(j,{icon:a,title:e.title,status:e.status,summary:e.summary,testId:`task-chat-provider-${e.family}`,children:[e.steps.length>0?(0,s.jsx)(pe,{steps:e.steps}):null,e.children.length>0?(0,s.jsx)("ul",{className:"flex flex-col gap-2","aria-label":"Delegated agents",children:e.children.map(n=>(0,s.jsxs)("li",{className:"rounded-sm bg-bg-3/40 px-2.5 py-2 text-sm",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(N,{status:n.status,className:"shrink-0"}),(0,s.jsx)("strong",{className:"font-medium",children:n.title}),(0,s.jsx)("span",{className:u("ml-auto text-xs capitalize",g(n.status)),children:n.status})]}),n.metadata?(0,s.jsx)("p",{className:"mt-1 text-xs text-ink-3",children:n.metadata}):null,n.summary?(0,s.jsx)("p",{className:"mt-1 text-sm text-ink-3",children:n.summary}):null]},n.id))}):null,e.links.length>0?(0,s.jsx)("ul",{className:"flex flex-col gap-2","aria-label":"Research sources",children:e.links.map(n=>(0,s.jsxs)("li",{children:[(0,s.jsxs)("a",{className:"inline-flex items-center gap-1 text-sm font-medium text-accent hover:underline",href:n.href,target:"_blank",rel:"noreferrer",children:[n.label,(0,s.jsx)(ee,{"aria-hidden":!0,className:"h-3.5 w-3.5"})]}),n.description?(0,s.jsx)("p",{className:"text-xs text-ink-3",children:n.description}):null]},n.href))}):null,t?(0,s.jsxs)("details",{className:u((e.steps.length>0||e.links.length>0||e.children.length>0)&&"mt-2"),children:[(0,s.jsxs)("summary",{className:"flex cursor-pointer list-none items-center gap-1 text-xs font-medium text-ink-3",children:[(0,s.jsx)(U,{"aria-hidden":!0,className:"h-3.5 w-3.5"})," Details"]}),e.details.length>0?(0,s.jsx)("dl",{className:"mt-2 flex min-w-0 flex-col gap-1.5 text-xs",children:e.details.map(n=>(0,s.jsxs)("div",{className:"grid min-w-0 grid-cols-1 gap-0.5 sm:grid-cols-(--gtc-task-chat-details) sm:gap-3",children:[(0,s.jsx)("dt",{className:"text-ink-3",children:n.label}),(0,s.jsx)("dd",{className:u("min-w-0 break-words text-ink",n.mono&&"font-mono"),children:n.value})]},`${n.label}:${n.value}`))}):null,e.output?(0,s.jsx)("pre",{className:"mt-2 max-h-(--sz-64) overflow-auto whitespace-pre-wrap rounded-sm bg-bg-3/50 p-2 font-mono text-xs text-ink",children:e.output}):null,e.outputTruncated?(0,s.jsx)("p",{className:"mt-1 text-xs text-ink-3",children:"Output truncated to 8 KiB."}):null]}):null]})}l(he,"ProviderActivityCard");function me(e){return(0,s.jsxs)("span",{className:"shrink-0 font-mono text-xs text-ink-3",children:[e.additions==null?"":`+${e.additions}`,e.additions!=null&&e.deletions!=null?" ":"",e.deletions==null?"":`−${e.deletions}`]})}l(me,"diffStats");function fe({item:e}){const[a,t]=(0,x.useState)(null),[n,c]=(0,x.useState)(!1),o=e.files.find(i=>i.path===a)??null,k=n?e.files:e.files.slice(0,3),h=e.totals.files||e.files.length,m=`${h} ${h===1?"file":"files"}`,b=[e.totals.additions==null?null:`+${e.totals.additions}`,e.totals.deletions==null?null:`−${e.totals.deletions}`].filter(Boolean).join(" "),d=e.complete?`${m} changed${b?` · ${b}`:""}`:"Workspace changes in progress";return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(j,{icon:C,title:"Workspace changes",status:e.complete?"completed":"running",summary:d,testId:"task-chat-workspace-change",children:[(0,s.jsx)("div",{className:"flex flex-col gap-1",children:k.map(i=>(0,s.jsxs)("button",{type:"button",className:"flex min-w-0 items-center gap-2 rounded-sm px-2 py-1.5 text-left text-sm hover:bg-bg-3/60",onClick:l(()=>t(i.path),"onClick"),children:[(0,s.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,s.jsx)("span",{className:"block truncate font-mono",children:i.previousPath?`${i.previousPath} → ${i.path}`:i.path}),(0,s.jsxs)("span",{className:"text-xs capitalize text-ink-3",children:[i.binary?"binary · ":"",i.operation.replaceAll("_"," ")]})]}),me(i)]},`${i.operation}:${i.path}`))}),(0,s.jsxs)("div",{className:"mt-2 flex flex-wrap items-center gap-2",children:[e.files.length>3?(0,s.jsx)(p,{type:"button",size:"sm",variant:"ghost",onClick:l(()=>c(i=>!i),"onClick"),children:n?"Show fewer files":`Show ${e.files.length-3} more files`}):null,e.files.length>0?(0,s.jsx)(p,{type:"button",size:"sm",variant:"secondary",onClick:l(()=>t(e.files[0].path),"onClick"),children:"Review diff"}):null]})]}),(0,s.jsx)(A,{open:o!==null,onOpenChange:l(i=>{i||t(null)},"onOpenChange"),children:(0,s.jsxs)(B,{className:"w-full max-w-(--pct-90) overflow-hidden",children:[(0,s.jsx)(F,{children:(0,s.jsx)(W,{className:"font-mono text-sm",children:o?.path??"Workspace diff"})}),e.files.length>1?(0,s.jsx)("div",{className:"flex max-w-full gap-1 overflow-x-auto pb-1","aria-label":"Changed files",children:e.files.map(i=>(0,s.jsx)(p,{type:"button",size:"sm",variant:i.path===o?.path?"secondary":"ghost",onClick:l(()=>t(i.path),"onClick"),children:i.path},i.path))}):null,o?.binary?(0,s.jsx)("p",{className:"rounded-sm bg-bg-3/50 p-3 text-sm text-ink-3",children:"Binary file; text diff is unavailable."}):o?.diff?(0,s.jsx)("pre",{className:"max-h-(--sz-70vh) overflow-auto whitespace-pre rounded-sm bg-bg-3/50 p-3 font-mono text-xs",children:o.diff}):(0,s.jsx)("p",{className:"rounded-sm bg-bg-3/50 p-3 text-sm text-ink-3",children:"No inline patch was recorded for this file."})]})})]})}l(fe,"WorkspaceChangeCard");function ge({item:e}){const[a,t]=(0,x.useState)(!1),n=e.displayName.includes(".")?e.displayName.split(".").at(-1)?.toUpperCase():"FILE",c=e.presentation==="generic"?"File":je(e.presentation),o=(0,x.useMemo)(()=>({path:e.path,resourceKind:"file",line:e.line,column:null,raw:e.path}),[e.line,e.path]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(j,{icon:I,title:e.displayName,status:e.source==="runner_verified"?"completed":"informational",summary:`${c} · ${n}${e.line?` · line ${e.line}`:""}`,testId:"task-chat-workspace-file",children:(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,s.jsx)(Z,{workspaceFileRef:o,label:e.path}),(0,s.jsx)(p,{className:"ml-auto",type:"button",size:"sm",variant:"secondary",onClick:l(()=>t(!0),"onClick"),children:"Preview"})]})}),(0,s.jsx)(A,{open:a,onOpenChange:t,children:(0,s.jsxs)(B,{className:"w-full max-w-(--pct-90) overflow-hidden",children:[(0,s.jsx)(F,{children:(0,s.jsx)(W,{children:e.displayName})}),(0,s.jsx)("p",{className:"font-mono text-xs text-ink-3",children:e.path}),e.preview==null?(0,s.jsx)("p",{className:"rounded-sm bg-bg-3/50 p-3 text-sm text-ink-3",children:"Preview unavailable. The verified workspace reference is still available above."}):e.presentation==="document"?(0,s.jsx)("div",{className:"max-h-(--sz-70vh) overflow-auto rounded-sm bg-bg-3/30 p-3",children:(0,s.jsx)(K,{children:e.preview})}):e.presentation==="image"&&e.mediaType?.startsWith("image/")&&e.preview.startsWith("data:")?(0,s.jsx)("img",{className:"max-h-(--sz-70vh) max-w-full object-contain",alt:e.displayName,src:e.preview}):(0,s.jsx)("pre",{className:"max-h-(--sz-70vh) overflow-auto whitespace-pre-wrap rounded-sm bg-bg-3/50 p-3 font-mono text-xs",children:e.preview}),e.previewTruncated?(0,s.jsx)("p",{className:"text-xs text-ink-3",children:"Preview truncated by the runner."}):null]})})]})}l(ge,"WorkspaceFileCard");function je(e){return e.replaceAll("_"," ").replace(/\b\w/g,a=>a.toUpperCase())}l(je,"titleCaseKey");function E({item:e}){const a=e.questionSet;return a?(0,s.jsx)("div",{className:"flex flex-col gap-2","data-testid":"task-chat-runtime-request-history",children:e.response?(0,s.jsx)(te,{questionSet:a,response:e.response}):(0,s.jsxs)("div",{className:"flex flex-col gap-2 text-sm",children:[a.questions.map(t=>(0,s.jsxs)("div",{children:[t.header?(0,s.jsx)("p",{className:"text-xs font-medium text-ink-3",children:t.header}):null,(0,s.jsx)("p",{className:"text-ink",children:t.prompt})]},t.id)),(0,s.jsx)("p",{className:"text-xs text-ink-3",children:e.status==="resolved"?"Answer details were not recorded by this older runtime.":`No answers were submitted; this request was ${e.status}.`})]})}):null}l(E,"RuntimeQuestionHistory");function ke({item:e}){const a=e.status==="resolved"?"Questions answered":e.status==="cancelled"?"Questions cancelled":e.status==="expired"?"Questions expired":"Questions resolved";return(0,s.jsxs)("details",{className:"group","data-testid":"task-chat-runtime-request",children:[(0,s.jsxs)("summary",{className:"flex min-h-8 cursor-pointer list-none items-center gap-2 rounded-sm px-1 py-1.5 text-sm leading-5 text-ink-3 transition-colors hover:text-ink focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus",children:[(0,s.jsx)("span",{className:"flex w-6 shrink-0 items-center justify-center","data-testid":"task-chat-runtime-request-icon-slot",children:(0,s.jsx)(Y,{"aria-hidden":!0,className:"h-3.5 w-3.5 shrink-0 text-ink-3","data-testid":"task-chat-runtime-request-icon"})}),(0,s.jsx)("span",{children:a}),(0,s.jsx)(X,{"aria-hidden":!0,className:"ml-auto h-3 w-3 shrink-0 text-ink-3 opacity-0 transition-[opacity,transform] group-hover:opacity-70 group-focus-visible:opacity-70 group-open:rotate-90","data-testid":"task-chat-runtime-request-caret"})]}),(0,s.jsxs)("div",{className:"pb-3 pl-7 pr-1",children:[(0,s.jsxs)("div",{className:"mb-3",children:[(0,s.jsx)("p",{className:"text-sm font-medium text-ink",children:e.questionSet?.title??"Runtime input"}),(0,s.jsx)("p",{className:"mt-1 text-sm text-ink-3",children:e.prompt})]}),(0,s.jsx)(E,{item:e})]})]})}l(ke,"RuntimeQuestionReceipt");function be({item:e,onDecision:a,presentation:t,draftKey:n,imageUploadHandler:c,mentions:o}){const k=e.questionSet?.title??(e.requestType==="permission"?"Runtime permission":"Runtime input"),h=e.fields.length>0?e.fields:[{name:"answer",label:"Response",placeholder:null}],[m,b]=(0,x.useState)(()=>n?ce(n,{}):{}),[d,i]=(0,x.useState)(!1),[$,y]=(0,x.useState)(null);if((0,x.useEffect)(()=>{n||b({}),i(!1),y(null)},[n,e.requestId,e.status]),(0,x.useEffect)(()=>{n&&ie(n,m)},[n,m]),t==="timeline"&&e.requestType==="input"&&e.status!=="pending"&&e.questionSet)return(0,s.jsx)(ke,{item:e});const f=l(async r=>{if(!(!a||e.status!=="pending"||d)){i(!0),y(null);try{await a(e,r),n&&oe(n)}catch(v){i(!1),y(v instanceof Error?v.message:"The runtime request could not be resolved.")}}},"submit"),R=h.some(r=>(m[r.name]??"").trim().length>0);return t==="takeover"&&e.requestType==="input"&&e.status==="pending"&&e.questionSet?(0,s.jsx)(z,{id:e.id,questionSet:e.questionSet,draftKey:n,disabled:!a||d,imageUploadHandler:c,mentions:o,onSubmit:l(r=>f({action:"submit",response:r}),"onSubmit")}):(0,s.jsxs)(j,{icon:q,title:k,status:e.status,summary:e.prompt,testId:"task-chat-runtime-request",presentation:t,children:[e.requestType==="input"&&e.status==="pending"&&e.questionSet?(0,s.jsx)(z,{id:e.id,questionSet:e.questionSet,draftKey:n,disabled:!a||d,imageUploadHandler:c,mentions:o,onSubmit:l(r=>f({action:"submit",response:r}),"onSubmit"),onCancel:t==="timeline"?()=>f({action:"cancel"}):void 0}):e.requestType==="input"&&e.status!=="pending"&&e.questionSet?(0,s.jsx)(E,{item:e}):e.requestType==="input"&&e.status==="pending"?(0,s.jsxs)("form",{className:"flex flex-col gap-3",onSubmit:l(r=>{r.preventDefault(),R&&f({action:"submit",values:m})},"onSubmit"),children:[h.map(r=>{const v=`${e.id}:${r.name}`;return(0,s.jsxs)("label",{className:"flex flex-col gap-1.5 text-sm",htmlFor:v,children:[(0,s.jsx)("span",{className:"font-medium text-ink",children:r.label}),(0,s.jsx)(re,{id:v,value:m[r.name]??"",placeholder:r.placeholder??void 0,disabled:!a||d,rows:2,className:"resize-y border-0 bg-bg-3/35 shadow-none focus-visible:ring-0 focus-visible:ring-offset-0",onChange:l(M=>b(D=>({...D,[r.name]:M.target.value})),"onChange")})]},r.name)}),(0,s.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,s.jsx)(p,{type:"submit",size:"sm",disabled:!a||d||!R,children:d?"Submitting…":"Submit response"}),e.choices.some(r=>r.key==="decline")?(0,s.jsx)(p,{type:"button",size:"sm",variant:"secondary",disabled:!a||d,onClick:l(()=>{f({action:"decline"})},"onClick"),children:"Deny"}):null,t==="timeline"?(0,s.jsx)(p,{type:"button",size:"sm",variant:"secondary",disabled:!a||d,onClick:l(()=>{f({action:"cancel"})},"onClick"),children:"Cancel"}):null]})]}):e.status==="pending"&&e.choices.length>0?(0,s.jsx)("div",{className:"flex flex-wrap gap-2",children:e.choices.filter(r=>t==="timeline"||r.key!=="cancel").map(r=>(0,s.jsx)(p,{type:"button",size:"sm",variant:"secondary",disabled:e.status!=="pending"||!a||d,onClick:l(()=>{(r.key==="accept"||r.key==="accept_for_session"||r.key==="decline"||r.key==="cancel")&&f({action:r.key})},"onClick"),children:d?"Submitting…":r.label},r.key))}):null,e.status==="pending"&&!a?(0,s.jsx)("p",{className:"mt-2 text-xs text-ink-3",children:"Resolve this request in the active runtime session."}):null,$?(0,s.jsx)("p",{className:"mt-2 text-xs text-bad",role:"alert",children:$}):null]})}l(be,"RuntimeRequestCard");function ve({item:e}){const a=e.verification.length>0||e.remainingWork.length>0||e.artifacts.length>0||e.blocker;return(0,s.jsx)(j,{icon:w,title:"Run result",status:e.disposition,summary:e.summary,testId:"task-chat-run-result",children:a?(0,s.jsxs)("div",{className:"flex flex-col gap-3 text-sm",children:[e.blocker?(0,s.jsxs)("div",{className:"rounded-sm bg-bg-3/50 p-2",children:[(0,s.jsxs)("strong",{children:["Blocked: ",e.blocker.reasonCode]}),(0,s.jsx)("p",{className:"mt-1 text-ink-3",children:e.blocker.unblockAction})]}):null,e.verification.length>0?(0,s.jsx)("ul",{className:"flex flex-col gap-1","aria-label":"Verification results",children:e.verification.map((t,n)=>(0,s.jsxs)("li",{className:"flex items-start gap-2",children:[(0,s.jsx)(N,{status:t.status,className:"mt-0.5 shrink-0"}),(0,s.jsxs)("span",{children:[(0,s.jsx)("span",{className:"font-mono text-xs",children:t.commandOrCheck}),t.detail?(0,s.jsx)("span",{className:"block text-xs text-ink-3",children:t.detail}):null]})]},`${t.commandOrCheck}:${n}`))}):null,e.remainingWork.length>0?(0,s.jsx)("ul",{className:"list-disc space-y-1 pl-5 text-ink-3",children:e.remainingWork.map((t,n)=>(0,s.jsxs)("li",{children:[t.description,t.blocksCompletion?" · blocks completion":""]},`${t.description}:${n}`))}):null,e.artifacts.length>0?(0,s.jsx)("div",{className:"flex flex-wrap gap-2",children:e.artifacts.map(t=>(0,s.jsx)("span",{className:"rounded-sm border border-line px-2 py-1 font-mono text-xs",children:t.title??t.ref},`${t.kind}:${t.ref}`))}):null]}):null})}l(ve,"ResultCard");function Ne({item:e}){return(0,s.jsx)(j,{icon:_,title:"Run ended",status:e.runState,summary:[e.disposition.replaceAll("_"," "),e.stopReason].filter(Boolean).join(" · "),testId:"task-chat-run-terminal"})}l(Ne,"TerminalCard");function we({item:e}){if(e.resourceKind==="deliverable"&&e.workProduct)return(0,s.jsx)(se,{workProduct:e.workProduct,href:e.href});const a=e.resourceKind==="document"?S:e.resourceKind==="attachment"?I:w,t=(0,s.jsx)(j,{icon:a,title:e.title,status:null,summary:e.subtitle,testId:`task-chat-resource-${e.resourceKind}`});return e.href?(0,s.jsx)("a",{className:"block rounded-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus",href:e.href,children:t}):t}l(we,"ResourceCard");function Ue({item:e,onRuntimeRequestDecision:a,presentation:t="timeline",draftKey:n,imageUploadHandler:c,mentions:o}){switch(e.surface){case"provider_activity":return(0,s.jsx)(he,{item:e});case"workspace_change":return(0,s.jsx)(fe,{item:e});case"workspace_file":return(0,s.jsx)(ge,{item:e});case"runtime_request":return(0,s.jsx)(be,{item:e,onDecision:a,presentation:t,draftKey:n,imageUploadHandler:c,mentions:o});case"run_result":return(0,s.jsx)(ve,{item:e});case"run_terminal":return(0,s.jsx)(Ne,{item:e});case"resource":return(0,s.jsx)(we,{item:e});default:return e}}l(Ue,"TaskChatProtocolCard");export{Ue as n,w as r,N as t};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var ve=Object.defineProperty;var l=(e,n)=>ve(e,"name",{value:n,configurable:!0});import{i as de}from"./rolldown-runtime-ZpX3ckPj.js";import{l as v,na as we,t as je,ta as ye}from"./createLucideIcon-DJi9suAC.js";import{a as Ne,o as Se}from"./star-BZgQbzhV.js";import{n as Ce}from"./ArtifactCard-BTf2-JIV.js";import{G as Te,_t as V,an as Ie,et as Re}from"./router-2UfGeejU.js";import{o as _e,r as Ae,t as Me}from"./popover-BhYHYj7q.js";import{t as Ee}from"./arrow-down-Dg4PKbmt.js";import{t as U}from"./check-Ctsrlfa-.js";import{t as Le}from"./chevron-down-BCvxsWfI.js";import{t as G}from"./chevron-right-s7L6hXXq.js";import{i as $e,o as ue}from"./tool-taxonomy-B5zpbkHA.js";import{t as P}from"./MarkdownBody-BTjuUgFa.js";import{t as Oe}from"./copy-_wvZOjTe.js";import{_ as Pe,a as He,c as ze,f as De,g as Be,h as Fe,l as We,m as Ke,n as Ue,o as te,p as Ge,r as Ve,s as F,t as qe}from"./task-chat-attachments-jZNCAKd4.js";import{i as Xe,l as Ye,n as Je,o as Qe,r as Ze,t as et}from"./TaskChatMarker-C40twVjh.js";import{i as tt}from"./RichWorkProductCard-ClpMt_Bh.js";import{t as Y}from"./info-DXpx_HA2.js";import{t as nt}from"./list-todo-BmObdeVq.js";import{r as H,t as J}from"./button-CMwV3L1P.js";import{t as at}from"./maximize-2-DgliXYEr.js";import{t as st}from"./octagon-alert-CeNhknXC.js";import{t as rt}from"./octagon-x-CBcXy1zJ.js";import{n as it}from"./TaskChatProtocolCard--bi_tc6i.js";import{t as lt}from"./shield-check-B0HVjzM_.js";import{t as ot}from"./shield-question-mark-D1_en6pn.js";import{t as ct}from"./shield-x-D-Ice3nf.js";import{t as dt}from"./triangle-alert-CBVKiaXB.js";import{t as z}from"./x-DRDFdlYE.js";import{t as ut}from"./Identity-Cv_2a9qJ.js";import{t as mt}from"./AgentAvatar-DgGEobSY.js";import{n as D}from"./presentation-mode-Bk6TnKr9.js";import{t as ht}from"./use-copy-action-D5dEzo6L.js";import{_ as pt,c as xt,d as ft,h as gt,i as kt,n as bt,o as vt,p as wt}from"./system-notice-comment-CL_SWj_f.js";import{d as jt,s as yt,t as Nt}from"./ImageGalleryModal-DzKBMOnu.js";import{b as St,s as Ct}from"./transcript-adapter-C29ZJiU2.js";import{s as ne}from"./issue-output-CU3gasZ1.js";import{n as Tt}from"./AgentBubbleActionRow-BUAUmJKa.js";var me={name:"scissors",size:24,node:[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]]};me.node;var It=je(me),c=de(we(),1),t=de(ye(),1);function Rt(e,n,a){for(const r of e.querySelectorAll("[data-thread-anchor]")){const i=r.getBoundingClientRect();if(i.height>0&&i.bottom>n&&i.top<a)return{id:r.dataset.threadAnchor,top:i.top-n}}return null}l(Rt,"readThreadScrollAnchor");function he(e,n,a){if(!n)return 0;for(const r of e.querySelectorAll("[data-thread-anchor]"))if(r.dataset.threadAnchor===n.id)return r.getBoundingClientRect().top-a-n.top;return 0}l(he,"threadScrollAnchorDelta");var _t=(0,c.createContext)(null),At=(0,c.createContext)(!0);function aa(e){const n=e.state&&typeof e.state=="object"&&"taskDocumentScrollEntry"in e.state?e.state.taskDocumentScrollEntry:null;return n&&typeof n=="object"&&"key"in n&&"hash"in n&&"pathname"in n&&n.pathname===e.pathname&&typeof n.key=="string"&&typeof n.hash=="string"?{key:n.key,hash:n.hash,pathname:e.pathname}:{key:e.key,hash:e.hash,pathname:e.pathname}}l(aa,"taskChatScrollEntry");var $=new Map;function Mt(){const e=(0,c.useContext)(_t),n=(0,c.useContext)(At),a=e?JSON.stringify([e.key,e.hash]):null;return{key:e?.key,hash:e?.hash,ready:n,initialPosition(r,i,m){if(!e)return null;if(e.restore&&a&&$.has(a)){const d=$.get(a);return d.anchor&&[...r.querySelectorAll("[data-thread-anchor]")].some(u=>u.dataset.threadAnchor===d.anchor?.id)?m+he(r,d.anchor,i):d.top}if(e.hash){let d;try{d=decodeURIComponent(e.hash.slice(1))}catch{return null}const u=document.getElementById(d);if(u&&r.contains(u))return m+u.getBoundingClientRect().top-i}return null},remember(r,i){!a||!n||($.set(a,{top:r,anchor:i}),$.size>100&&$.delete($.keys().next().value))}}}l(Mt,"useTaskChatScrollNavigation");var Et={pending:{Icon:H,spin:!1,tone:"text-ink-3"},in_progress:{Icon:H,spin:!0,tone:"text-(--status-agent-running)"},completed:{Icon:U,spin:!1,tone:"text-ink-3"},failed:{Icon:z,spin:!1,tone:"text-bad"},interrupted:{Icon:z,spin:!1,tone:"text-ink-3"}};function Lt({item:e}){const{Icon:n,spin:a,tone:r}=Et[e.status],i=ue(e.rawName??e.name).icon,[m,d]=Ye(e.id,!1),u=!!(e.target||e.detail||e.diff);return(0,t.jsxs)("div",{"data-testid":"task-chat-tool-card",className:"flex min-w-0 max-w-full flex-col text-xs",children:[(0,t.jsxs)("button",{type:"button",onClick:u?()=>d(g=>!g):void 0,"aria-expanded":u?m:void 0,className:v("group/tool -mx-1.5 flex min-h-6 w-full min-w-0 max-w-full items-center gap-2 overflow-hidden rounded-sm px-1.5 py-1 text-left leading-none text-ink-3",u?"cursor-pointer transition-colors hover:bg-bg-3/60 hover:text-ink":"cursor-default"),children:[(0,t.jsx)("span",{className:"flex w-5 shrink-0 items-center justify-center",children:(0,t.jsx)(i,{className:"h-3.5 w-3.5 shrink-0","aria-hidden":!0,"data-testid":"task-chat-tool-icon"})}),(0,t.jsxs)("span",{className:"flex min-w-0 flex-1 items-baseline gap-2 overflow-hidden",children:[(0,t.jsx)("span",{className:"shrink-0 font-medium leading-4",children:e.name}),e.target?(0,t.jsx)("span",{className:"task-chat-collapsed-line-fade min-w-0 flex-1 font-mono text-(length:--text-micro) leading-4",children:e.target}):null]}),(0,t.jsxs)("span",{className:"ml-auto flex shrink-0 items-center gap-2",children:[e.decision?(0,t.jsxs)("span",{className:v("flex items-center gap-1 text-(length:--text-micro)",e.decision==="allowed"?"text-(--status-task-icon-done)":"text-bad"),children:[e.decision==="allowed"?(0,t.jsx)(lt,{className:"h-3 w-3"}):(0,t.jsx)(ct,{className:"h-3 w-3"}),e.decision]}):null,u?(0,t.jsx)(G,{className:v("h-3 w-3 opacity-0 transition-[opacity,transform] group-hover/tool:opacity-80",m?"rotate-90":null),"aria-hidden":!0}):null,(0,t.jsx)(n,{className:v("h-3.5 w-3.5",r,a&&"animate-spin"),"aria-hidden":!0}),e.status==="interrupted"?(0,t.jsx)("span",{className:"text-(length:--text-micro) text-ink-3",children:"Interrupted"}):null]})]}),e.target&&m?(0,t.jsx)("div",{className:"task-chat-expanded-line-wrap ml-1.5 mt-0.5 min-w-0 max-w-full overflow-hidden border-l-2 border-line py-1 pl-2.5 font-mono text-(length:--text-micro) leading-relaxed text-ink-3","data-testid":"task-chat-tool-target-detail",children:e.target}):null,e.detail&&m?(0,t.jsx)("pre",{className:"task-chat-expanded-line-wrap ml-1.5 mt-0.5 min-w-0 max-w-full overflow-hidden whitespace-pre-wrap border-l-2 border-line py-1 pl-2.5 font-mono text-(length:--text-micro) leading-relaxed text-ink-3",children:e.detail}):null,e.diff&&m?(0,t.jsx)("div",{className:"ml-1.5 mt-0.5 border-l-2 border-line py-1 pl-2.5","data-testid":"task-chat-tool-change-summary",children:(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2 text-(length:--text-micro) text-ink-3",children:[(0,t.jsx)("span",{className:"shrink-0",children:"Changed"}),e.diff.path?(0,t.jsx)("span",{className:"min-w-0 truncate font-mono text-ink",children:e.diff.path}):null,(0,t.jsxs)("span",{className:"ml-auto shrink-0 font-mono",children:["+",e.diff.added," −",e.diff.removed]})]})}):null]})}l(Lt,"TaskChatToolCard");function $t({item:e,defaultOpen:n,rowClassName:a,active:r=!!e.streaming}){const[i,m]=(0,c.useState)(n??!1),d=e.lines.join(`
|
|
2
|
-
`).trim(),u=Ct(d),g=e.channel==="detail"?"Reasoning detail":"Reasoning",h=r?d?`${g}…`:"Thinking…":e.summaryLabel??(d?g:"Thought");return d&&!r?(0,t.jsxs)("div",{className:v("flex min-w-0 items-start gap-1.5 px-1 py-0.5 text-xs font-normal text-ink-3",a),"data-testid":"task-chat-thinking","data-state":"settled",children:[(0,t.jsx)("span",{className:"flex w-5 shrink-0 items-center justify-center",children:(0,t.jsx)(V,{className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-ink-3/50","aria-hidden":!0,"data-testid":"task-chat-thinking-icon"})}),(0,t.jsx)("div",{className:"min-w-0 flex-1","data-testid":"task-chat-thinking-text",children:(0,t.jsx)(P,{softBreaks:!0,linkIssueReferences:!0,children:d})})]}):d?(0,t.jsxs)("div",{className:"flex min-w-0 max-w-full flex-col overflow-hidden text-xs font-normal","data-testid":"task-chat-thinking",children:[(0,t.jsxs)("button",{type:"button","aria-expanded":i,"aria-label":`${i?"Collapse":"Expand"} ${g.toLowerCase()}: ${u}`,onClick:l(()=>m(p=>!p),"onClick"),className:v("group/thinking -mx-1.5 flex w-full min-w-0 max-w-full items-center gap-2 overflow-hidden rounded-sm px-1.5 py-0.5 text-left font-normal text-ink-3 transition-colors hover:text-ink focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus",a),children:[(0,t.jsx)("span",{className:"flex w-5 shrink-0 items-center justify-center",children:(0,t.jsx)(V,{className:v("h-3.5 w-3.5 shrink-0",r&&"text-(--status-agent-running)"),"aria-hidden":!0,"data-testid":"task-chat-thinking-icon"})}),r?(0,t.jsx)("span",{className:"shimmer-text shimmer-text-muted shrink-0",children:h}):null,i?null:(0,t.jsx)("span",{className:"task-chat-collapsed-line-fade min-w-0 flex-1","data-testid":"task-chat-thinking-preview",children:u}),(0,t.jsx)(G,{className:v("tc-hover-disclosure-caret h-3 w-3 shrink-0 transition-[opacity,transform] group-hover/thinking:opacity-80 group-focus-visible/thinking:opacity-80",i?"rotate-90 opacity-80":"opacity-0"),"aria-hidden":!0})]}),i?(0,t.jsx)("div",{className:"task-chat-expanded-line-wrap ml-2.5 mt-1 min-w-0 max-w-full overflow-hidden border-l-2 border-line pl-2.5 text-xs font-normal text-ink-3",children:(0,t.jsx)(P,{className:"task-chat-reasoning-markdown",softBreaks:!0,linkIssueReferences:!0,children:d})}):null]}):(0,t.jsxs)("div",{className:v("-mx-1.5 flex min-w-0 items-center gap-2 px-1.5 py-0.5 text-xs font-normal text-ink-3",a),"data-testid":"task-chat-thinking",children:[(0,t.jsx)("span",{className:"flex w-5 shrink-0 items-center justify-center",children:(0,t.jsx)(V,{className:v("h-3.5 w-3.5 shrink-0",r&&"text-(--status-agent-running)"),"aria-hidden":!0,"data-testid":"task-chat-thinking-icon"})}),(0,t.jsx)("span",{className:v(r&&"shimmer-text shimmer-text-muted"),children:h})]})}l($t,"TaskChatThinking");var Ot={in_progress:{Icon:H,spin:!0,tone:"text-(--status-agent-running)",label:"running"},completed:{Icon:U,spin:!1,tone:"text-ink-3",label:"done"},failed:{Icon:z,spin:!1,tone:"text-bad",label:"failed"}};function Pt({item:e}){const n=(0,c.useId)(),a=St(e),{Icon:r,spin:i,tone:m,label:d}=Ot[e.status],u=e.status==="failed"?e.error:void 0;return(0,t.jsxs)("div",{role:"note","aria-label":`${a} (${d})`,"aria-describedby":u?n:void 0,"data-testid":"task-chat-todo-row","data-todo-status":e.status,className:"-mx-1.5 flex min-w-0 max-w-full flex-col overflow-hidden px-1.5 py-1 text-xs text-ink-3",children:[(0,t.jsxs)("div",{className:"flex min-h-4 min-w-0 items-center gap-2 leading-none",children:[(0,t.jsx)("span",{className:"flex w-5 shrink-0 items-center justify-center",children:(0,t.jsx)(nt,{className:"h-3.5 w-3.5 shrink-0","aria-hidden":!0})}),(0,t.jsx)("span",{className:"task-chat-collapsed-line-fade min-w-0 flex-1 truncate leading-4",title:a,children:a}),(0,t.jsx)(r,{"aria-hidden":!0,className:v("h-3.5 w-3.5 shrink-0",m,i&&"animate-spin")})]}),u?(0,t.jsx)("p",{id:n,"data-testid":"task-chat-todo-error",className:"mt-0.5 line-clamp-3 whitespace-pre-wrap break-words pl-7 leading-4 text-bad",title:u,children:u}):null]})}l(Pt,"TaskChatTodoRow");var Ht="System update",zt=80;function Dt(e){const n=e.match(/Latest retry failure: `([^`]+)`/);return n?n[1]:null}l(Dt,"retryFailureCode");function Bt(e){const n=e.match(/Recovery owner: \[([^\]]+)\]\(/)?.[1]?.trim();return n&&n.length>0?n:null}l(Bt,"recoveryOwnerName");function Ft(e){const n=e.split(`
|
|
3
|
-
`).map(i=>i.trim()).find(i=>i.length>0);if(!n)return;const a=n.search(/[.!?](\s|$)/),r=a>=0?n.slice(0,a+1):n;return r.length<=zt?r:`${r.slice(0,79).trimEnd()}…`}l(Ft,"firstSentence");function Wt(e){const n=e.presentation?.title?.trim(),a=e.presentation?.tone;if(n)return{title:n,tone:a??"neutral"};const r=e.body??"",i=Dt(r);if(i==="claude_auth_required")return{title:"Task paused — Claude needs re-authentication",tone:a??"warning"};if(i==="configuration_incomplete"||r.includes("secret/env bindings are missing"))return{title:"Task paused — a secret/config binding is missing",tone:a??"warning"};if(i==="workspace_validation_failed"||r.includes("workspace failed validation"))return{title:"Task paused — workspace problem",tone:a??"warning"};if(r.includes("no live execution path")){const m=Bt(r);return{title:m?`Task paused — waiting on ${m}`:"Task paused — waiting on a recovery owner",tone:a??"warning"}}return{title:Ht,tone:a??"neutral",detail:Ft(r)}}l(Wt,"humanizeSystemNotice");var Kt={neutral:Y,info:Y,success:Ne,warning:dt,danger:st},Ut={neutral:"text-ink-3",info:"text-(--status-task-icon-in_progress)",success:"text-(--status-task-icon-done)",warning:"text-(--status-task-icon-todo)",danger:"text-(--status-task-icon-blocked)"};function Gt({item:e,onTryAgainNoLiveExecutionPath:n,tryAgainNoLiveExecutionPathPending:a=!1}){const r=gt(e.metadata),i=pt(e.metadata),m=D(),[d,u]=(0,c.useState)(!!e.presentation?.detailsDefaultOpen),g=(0,c.useId)(),{title:h,tone:p,detail:k}=Wt({body:e.text,presentation:e.presentation}),x=bt(e.metadata,{runAgentId:e.runAgentId}),w=!(e.presentation?.kind==="system_notice"&&e.presentation.title?.trim().toLowerCase().startsWith("workspace ready")===!0&&x.some(b=>b.title?.trim().toLowerCase()==="workspace")),C=Kt[p],N=e.createdAtIso?Ie(e.createdAtIso):void 0,f=!!n&&(e.presentation?.title?.trim()==="No live execution path"||e.text.toLowerCase().includes("no live execution path")),S=l(()=>{Promise.resolve().then(()=>n?.()).catch(()=>{})},"handleTryAgain");return e.author==="system"&&i?(0,t.jsx)(kt,{...i.props},`${i.actionId}:${i.runId}`):e.author==="system"&&r?(0,t.jsx)(wt,{snapshot:r,createdAt:e.createdAtIso,defaultExpanded:e.presentation?.detailsDefaultOpen}):(0,t.jsxs)("div",{className:v("tc-enter-bubble flex flex-col items-start",m?"py-0.5":"py-1"),"data-testid":"task-chat-system-notice","data-tone":m?p:void 0,role:m?"group":void 0,"aria-label":m?`System update: ${h}`:void 0,children:[(0,t.jsxs)("div",{className:"flex max-w-(--pct-85) items-center gap-1.5",children:[(0,t.jsxs)("button",{type:"button",onClick:l(()=>u(b=>!b),"onClick"),"aria-expanded":d,"aria-controls":g,className:v("flex min-w-0 items-center gap-1.5 rounded-md px-2 py-0.5 text-xs text-ink-3","hover:bg-bg-3/50 hover:text-ink","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus/50"),children:[(0,t.jsx)(C,{className:v("h-3.5 w-3.5 shrink-0",Ut[p]),"aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate font-medium",children:h}),k?(0,t.jsxs)("span",{className:"hidden truncate sm:inline",children:["· ",k]}):null,N?(0,t.jsxs)("span",{className:"shrink-0 text-ink-3/70",children:["· ",N]}):null,(0,t.jsx)(Le,{className:v("tc-notice-chevron h-3.5 w-3.5 shrink-0 transition-transform",d&&"rotate-180"),"aria-hidden":!0})]}),f&&!d?(0,t.jsx)(J,{type:"button",variant:"secondary",size:"xs",onClick:S,disabled:a,"data-testid":"task-chat-no-live-path-try-again",children:a?"Trying again...":"Try again"}):null]}),d?(0,t.jsxs)("div",{id:g,"data-testid":"task-chat-system-notice-details",className:"mt-1 w-full max-w-(--pct-85) overflow-hidden rounded-lg border border-line bg-bg-3/25 text-left text-sm dark:bg-bg-3/15",children:[w?(0,t.jsx)("div",{className:"px-3 py-2.5 text-ink/90",children:(0,t.jsx)(P,{softBreaks:!0,linkIssueReferences:!0,children:e.text})}):null,x.length>0?(0,t.jsx)("div",{className:v("bg-bg/50 dark:bg-bg/30",w&&"border-t border-line/70"),children:(0,t.jsx)(vt,{sections:x,tone:p})}):null,f?(0,t.jsx)("div",{className:"flex justify-end border-t border-line/70 bg-bg/50 px-3 py-2 dark:bg-bg/30",children:(0,t.jsx)(J,{type:"button",size:"xs",onClick:S,disabled:a,"data-testid":"task-chat-no-live-path-try-again",children:a?"Trying again...":"Try again"})}):null]}):null]})}l(Gt,"TaskChatSystemNotice");function pe({agentName:e,agentIcon:n,agent:a}){return(0,t.jsxs)("span",{className:"flex items-center gap-2 px-1","data-testid":"task-chat-agent-identity",children:[(0,t.jsx)("span",{"data-testid":"task-chat-agent-avatar",children:(0,t.jsx)(mt,{agent:a,name:e,size:24})}),(0,t.jsx)("span",{className:"text-sm font-semibold text-ink",children:e})]})}l(pe,"TaskChatAgentIdentity");function ae(e,n,a){return{id:a?.id??e,contentPath:a?.openPath??e,openPath:a?.openPath,downloadPath:a?.downloadPath,contentType:a?.contentType??"",originalFilename:n?.trim()?n:"image"}}l(ae,"galleryItemForMedia");function se(e){return e.filter((n,a)=>e.findIndex(r=>n.id&&r.id===n.id||r.url===n.url)===a)}l(se,"uniqueAttachmentRefs");function Vt(e){return ft(e.item.id)??(0,t.jsx)(qt,{...e})}l(Vt,"TaskChatBubble");function qt({item:e,animateEntry:n=!0,queuedAction:a,attachedTurn:r,beforeTurn:i,hideAgentIdentity:m=!1,actions:d,attachments:u=[],onTryAgainNoLiveExecutionPath:g,tryAgainNoLiveExecutionPathPending:h}){const p=D(),k=(0,c.useContext)(jt),x=(0,c.useContext)(tt),[w,C]=(0,c.useState)(null),N=(0,c.useCallback)(o=>{x?.(o)||C(o)},[x]);if(e.interstitial)return null;if(e.author==="system")return(0,t.jsx)(Gt,{item:e,onTryAgainNoLiveExecutionPath:g,tryAgainNoLiveExecutionPathPending:h});const f=e.author==="human",S=f&&e.isCurrentUser===!0,b=f&&e.sourceChannel==="imessage-photon",{refs:I,text:T}=qe(e.text),j=Ue(T),_=ze(T),A=te(I,u),L=te(j,u),R=u.filter(o=>o.issueCommentId===e.id).map(o=>({id:o.id,name:o.originalFilename?.trim()||"attachment",url:o.contentPath,contentType:o.contentType,byteSize:o.byteSize,openPath:o.openPath,downloadPath:o.downloadPath})),s=se([...L,...A.filter(F),...R.filter(F)]),y=se([...A.filter(o=>!F(o)),...R.filter(o=>!F(o))]),M=[...s,...y.filter(o=>ne(o.contentType,o.name))],ke=w!==null&&!M.some(o=>o.url===w)?[ae(w)]:M.map(o=>ae(o.url,o.name,o)),Z=w===null?-1:Math.max(0,M.findIndex(o=>o.url===w));return(0,t.jsxs)("div",{className:v("flex w-full flex-col gap-1",n&&"tc-enter-bubble",S?"items-end":"items-start"),children:[i?(0,t.jsx)("div",{className:"w-full pb-1",children:i}):null,f&&!e.isCurrentUser&&e.authorName?(0,t.jsx)("span",{className:"px-1 text-sm font-semibold text-ink","data-testid":"task-chat-human-identity","data-author-user-id":e.authorUserId,children:(0,t.jsx)(ut,{name:e.authorName,avatarUrl:xt(e.authorAvatarUrl),size:"default",className:"gap-2"})}):null,!f&&e.authorName&&!m?(0,t.jsx)(pe,{agentName:e.authorName,agentIcon:e.agentIcon,agent:e.agent}):null,_.length>0?(0,t.jsx)("div",{"data-testid":f?"task-chat-human-bubble":"task-chat-agent-bubble",className:v("break-words py-2 text-sm",S?"max-w-(--pct-85) rounded-2xl rounded-br-sm bg-(--liveness-blue) px-3.5 text-white":"w-full bg-transparent px-1 text-ink"),children:(0,t.jsx)(P,{className:S?"wardmote-markdown-on-accent":void 0,softBreaks:!0,linkIssueReferences:!0,onImageClick:N,children:_})}):null,s.length>0?(0,t.jsxs)("div",{className:"flex max-w-(--pct-85) flex-col gap-2","data-testid":"task-chat-bubble-media",children:[(0,t.jsxs)("span",{className:"text-xs text-ink-3",children:["Images · ",s.length]}),(0,t.jsxs)("div",{className:"grid grid-cols-4 gap-2",children:[s.slice(0,s.length>4?3:4).map((o,E)=>(0,t.jsx)("button",{type:"button",className:"group aspect-video min-w-0 overflow-hidden rounded-md bg-bg-3 outline-none focus-visible:ring-2 focus-visible:ring-focus","aria-label":`Open ${o.name||`image ${E+1}`}`,onClick:l(()=>N(o.url),"onClick"),children:(0,t.jsx)("img",{src:o.openPath??o.url,alt:o.name,loading:"lazy",className:"h-full w-full object-cover transition-transform group-hover:scale-(--s-1_02)"})},o.url)),s.length>4?(0,t.jsxs)("button",{type:"button",className:"aspect-video min-w-0 rounded-md bg-bg-3 text-sm font-semibold text-ink outline-none focus-visible:ring-2 focus-visible:ring-focus","aria-label":`Open ${s.length-3} more screenshots`,onClick:l(()=>N(s[3].url),"onClick"),children:["+",s.length-3]}):null]}),(0,t.jsx)("span",{className:"truncate text-xs text-ink-3",children:s.map(o=>o.name||"image").join(" · ")})]}):null,y.length>0?(0,t.jsxs)("div",{className:"flex max-w-(--pct-85) flex-col gap-2",children:[(0,t.jsxs)("span",{className:"text-xs text-ink-3",children:["Files · ",y.length]}),(0,t.jsx)(Ke,{"data-testid":"task-chat-bubble-attachments",children:y.map(o=>{const E=Ve(o),be=E.icon,ee=He(o.byteSize),B=ne(o.contentType,o.name);return(0,t.jsxs)(We,{size:"sm",children:[(0,t.jsx)(Fe,{className:B?"aspect-video group-data-[size=sm]/attachment:w-20":void 0,children:B?(0,t.jsx)(Ce,{artifact:{title:o.name,contentPath:o.openPath??o.url,mediaKind:"video"}}):(0,t.jsx)(be,{"aria-hidden":!0})}),(0,t.jsxs)(De,{children:[(0,t.jsx)(Be,{className:"max-w-48",children:o.name}),(0,t.jsx)(Ge,{className:"max-w-48",children:ee?`${E.label} · ${ee}`:E.label})]}),(0,t.jsx)(Pe,{"aria-label":`Open ${o.name}`,onClick:B?()=>N(o.url):void 0,render:B?(0,t.jsx)("button",{type:"button"}):(0,t.jsx)("a",{href:o.openPath??o.url,onClick:l(O=>{k&&o.id&&yt({contentType:o.contentType??"",originalFilename:o.name})&&!O.metaKey&&!O.ctrlKey&&!O.shiftKey&&!O.altKey&&(O.preventDefault(),k(o.id,o.name))},"onClick"),target:"_blank",rel:"noreferrer"})})]},o.url)})})]}):null,!f&&e.verificationCaveats?.length?(0,t.jsxs)("div",{className:"mx-1 w-(--sz-calc-7) rounded-md border border-amber-500/25 bg-amber-500/5 px-3 py-2 text-xs","data-testid":"task-chat-verification-caveats",children:[(0,t.jsx)("p",{className:"font-medium text-amber-800 dark:text-amber-200",children:"Verification caveat"}),(0,t.jsx)("ul",{className:"mt-1 space-y-1 text-ink-3",children:e.verificationCaveats.map((o,E)=>(0,t.jsxs)("li",{children:[(0,t.jsx)("span",{className:"font-mono text-ink",children:o.commandOrCheck}),o.reasonCode?` · ${o.reasonCode.replaceAll("_"," ")}`:"",o.detail?(0,t.jsx)("span",{className:"block",children:o.detail}):null]},`${o.commandOrCheck}:${E}`))})]}):null,e.optimistic?(0,t.jsxs)("span",{className:"flex items-center gap-1 px-1 text-(length:--text-micro) text-ink-3",children:[(0,t.jsx)("span",{children:e.optimistic==="queued"?"Queued":"Sending…"}),e.optimistic==="queued"?a:null]}):r?(0,t.jsx)("div",{className:"self-stretch","data-testid":"task-chat-bubble-attached-turn",children:r}):d?p?(0,t.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 px-1",children:[e.timestamp||b?(0,t.jsxs)("span",{className:"text-(length:--text-micro) text-ink-3",children:[b?"Sent from iMessage":null,b&&e.timestamp?" · ":null,e.timestamp]}):null,d]}):(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[d,e.timestamp||b?(0,t.jsxs)("span",{className:"px-1 text-(length:--text-micro) text-ink-3",children:[b?"Sent from iMessage":null,b&&e.timestamp?" · ":null,e.timestamp]}):null]}):e.timestamp||b?(0,t.jsxs)("span",{className:"px-1 text-(length:--text-micro) text-ink-3",children:[b?"Sent from iMessage":null,b&&e.timestamp?" · ":null,e.timestamp]}):null,w!==null&&Z>=0?(0,t.jsx)(Nt,{items:ke,initialIndex:Z,open:!0,onOpenChange:l(o=>{o||C(null)},"onOpenChange")}):null]})}l(qt,"TaskChatBubbleContent");function sa({copyText:e,feedback:n,fastResponse:a}){const{copied:r,failed:i,copy:m}=ht(2e3),d=i?"Couldn’t copy message":"Copy message";return(0,t.jsxs)("div",{className:"flex items-center gap-0.5","data-testid":"task-chat-bubble-actions",children:[(0,t.jsx)("button",{type:"button",className:"inline-flex h-7 w-7 items-center justify-center rounded-md text-ink-3 transition-colors hover:bg-bg-3 hover:text-ink",title:d,"aria-label":d,onClick:l(()=>{m(e)},"onClick"),children:r?(0,t.jsx)(U,{className:"h-3.5 w-3.5"}):i?(0,t.jsx)(z,{className:"h-3.5 w-3.5 text-bad"}):(0,t.jsx)(Oe,{className:"h-3.5 w-3.5"})}),a&&(0,t.jsxs)(Me,{children:[(0,t.jsx)(_e,{asChild:!0,children:(0,t.jsx)("button",{type:"button","aria-label":"Message details",title:"Message details",className:"inline-flex h-7 w-7 items-center justify-center rounded-md text-ink-3 hover:bg-bg-3 hover:text-ink",children:(0,t.jsx)(Y,{className:"h-3.5 w-3.5"})})}),(0,t.jsx)(Ae,{className:"text-xs",children:"Platform-generated acknowledgement. The agent’s substantive response follows separately."})]}),n?(0,t.jsx)(Tt,{activeVote:n.activeVote,sharingPreference:n.sharingPreference,termsUrl:n.termsUrl,onVote:n.onVote}):null]})}l(sa,"TaskChatBubbleActions");var xe=3;function Xt(e){const n=e.split(`
|
|
4
|
-
`).map(r=>r.trim()).filter(Boolean),a=n.findIndex(r=>/^#\s+/.test(r));return{title:a>=0?n[a].replace(/^#\s+/,"").trim():"Plan",preview:n.filter((r,i)=>i!==a&&!/^(```|~~~|---+$|\*\*\*+$|___+$)/.test(r)).map(r=>r.replace(/^#{1,6}\s+/,"").replace(/^[-*+]\s+/,"").replace(/^\d+[.)]\s+/,"").replace(/^>\s*/,"").replace(/`([^`]+)`/g,"$1").replace(/\*\*([^*]+)\*\*/g,"$1").replace(/__([^_]+)__/g,"$1").replace(/\[([^\]]+)]\([^)]*\)/g,"$1").trim()).filter(Boolean).slice(0,xe)}}l(Xt,"planPreviewContent");function Yt(e){const n=e.title.trim()&&e.title.trim().toLowerCase()!=="plan"?e.title.trim():"Plan",a=e.steps.map(r=>r.label.trim()).filter(Boolean).slice(0,xe);return a.length===0&&e.summary?.trim()&&a.push(e.summary.trim()),{title:n,preview:a}}l(Yt,"livePlanContent");function Jt(e){if(e.kind==="saved")return e.revision??e.document?.latestRevisionNumber??null;const n=e.activity.details.find(({label:r})=>r==="Revision"||r==="Document Revision");if(!n)return null;const a=Number.parseInt(n.value,10);return Number.isFinite(a)?a:null}l(Jt,"planRevision");function Qt({source:e,href:n=e.kind==="saved"?"#document-plan":null,ariaLabel:a,testId:r="task-chat-plan-preview",className:i}){const m=Jt(e),d=e.kind==="saved"&&e.document?Xt(e.document.body):e.kind==="saved"?{title:e.fallbackTitle?.trim()||"Plan",preview:[]}:Yt(e.activity),u=e.kind==="live",g=m==null?null:`rev ${m}`,h=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 border-b border-line/70 px-3 py-2.5 text-sm text-ink-3",children:[(0,t.jsx)(Re,{"aria-hidden":!0,className:v("h-4 w-4 shrink-0",u&&"text-(--status-agent-running)")}),(0,t.jsx)("span",{className:v("font-medium",u&&"shimmer-text shimmer-text-muted"),"data-testid":u?"task-chat-plan-streaming-status":void 0,children:u?"Writing plan":"Plan"}),g?(0,t.jsxs)("span",{className:v("text-xs",u&&"shimmer-text shimmer-text-muted"),children:["· ",g]}):null,n?(0,t.jsx)(at,{"aria-hidden":!0,className:"ml-auto h-4 w-4 transition-transform group-hover:scale-105 group-hover:text-ink"}):null]}),(0,t.jsxs)("div",{className:"relative max-h-36 overflow-hidden px-4 py-3",children:[(0,t.jsx)("h3",{className:"text-base font-semibold leading-6 text-ink",children:d.title}),d.preview.length>0?(0,t.jsx)("ul",{className:"mt-2 space-y-1.5 text-sm leading-5 text-ink-3",children:d.preview.map((k,x)=>(0,t.jsxs)("li",{className:"flex gap-2",children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"shrink-0 text-ink-3/60",children:"•"}),(0,t.jsx)("span",{className:"line-clamp-1",children:k})]},`${x}-${k}`))}):(0,t.jsx)("p",{className:"mt-1 text-sm text-ink-3",children:u?"Waiting for the first plan step…":"Open the synchronized plan to review it."}),(0,t.jsx)("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 h-8 bg-linear-to-b from-transparent to-bg-2/95"})]})]}),p=v("group block w-full overflow-hidden rounded-md border border-line bg-bg-3/25 text-left",n&&"transition-colors hover:border-ink/25 hover:bg-bg-3/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus",i);return n?(0,t.jsx)("a",{href:n,"data-testid":r,"aria-label":a??`Open Plan${m==null?"":` revision ${m}`}`,className:p,children:h}):(0,t.jsx)("section",{"aria-label":a??"Streaming Plan preview","data-testid":r,className:p,children:h})}l(Qt,"TaskChatPlanPreviewCard");function Zt({item:e,onOpen:n}){return(0,t.jsx)("article",{className:"rounded-lg border border-line bg-bg-2 p-3","aria-label":`Skill created: ${e.name}`,children:(0,t.jsxs)("button",{type:"button",className:"flex w-full items-start gap-3 text-left",onClick:l(()=>n?.(e.skillId,e.name),"onClick"),children:[(0,t.jsx)(Te,{className:"mt-0.5 size-4 shrink-0 text-ink-3","aria-hidden":!0}),(0,t.jsxs)("span",{className:"min-w-0 flex-1 space-y-1",children:[(0,t.jsx)("span",{className:"block text-xs text-ink-3",children:"Skill created"}),(0,t.jsx)("span",{className:"block break-words text-sm font-medium hover:underline focus-visible:underline",children:e.name}),e.description?(0,t.jsx)("span",{className:"block line-clamp-3 text-sm text-ink-3",children:e.description}):null]})]})})}l(Zt,"TaskChatSkillCreatedCard");var q=["Clipping","Organizing","Sorting","Synthesizing","Analyzing","Filing","Collating","Stapling","Indexing","Annotating","Drafting","Proofreading","Alphabetizing","Photocopying","Laminating","Hole-punching","Bookmarking","Highlighting","Typing","Trimming","Aligning","Combining","Whiteboarding","Diagramming","Sketching","Labeling","Sticky-noting"],X=["Brewing","Tinkering","Distilling","Deliberating"],re=(()=>{const e=[],n=Math.max(q.length,X.length);for(let a=0;a<n;a++)a<q.length&&e.push(q[a]),a<X.length&&e.push(X[a]);return e})(),en=1e4;function tn(e){const n=(e??"").trim().toLowerCase();return n==="running"||n==="working"}l(tn,"isGenericStatusLabel");function nn(e){let n=2166136261;for(let a=0;a<e.length;a++)n^=e.charCodeAt(a),n=Math.imul(n,16777619);return n>>>0}l(nn,"fnv1a");function an(e,n=0){const a=Math.floor(Math.max(0,n)/en);return re[(nn(e)+a)%re.length]}l(an,"whimsyWord");var sn=[{name:"--motion-ease-out-expo",group:"Easing",kind:"easing"},{name:"--motion-ease-standard",group:"Easing",kind:"easing"},{name:"--motion-ease-out",group:"Easing",kind:"easing"},{name:"--motion-ease-scroll-pill-in",group:"Easing",kind:"easing"},{name:"--motion-ease-scroll-pill-out",group:"Easing",kind:"easing"},{name:"--motion-ease-in",group:"Easing",kind:"easing"},{name:"--motion-duration-instant",group:"Durations",kind:"time",min:0,max:1e3,step:10},{name:"--motion-duration-fast",group:"Durations",kind:"time",min:0,max:1e3,step:10},{name:"--motion-duration-base",group:"Durations",kind:"time",min:0,max:1e3,step:10},{name:"--motion-duration-slow",group:"Durations",kind:"time",min:0,max:1500,step:10},{name:"--motion-duration-deliberate",group:"Durations",kind:"time",min:0,max:2e3,step:10},{name:"--motion-duration-enter",group:"Durations",kind:"time",min:0,max:1e3,step:10},{name:"--motion-duration-exit",group:"Durations",kind:"time",min:0,max:1e3,step:10},{name:"--motion-duration-swap",group:"Durations",kind:"time",min:0,max:1e3,step:10},{name:"--motion-marker-enter",group:"States",kind:"time",min:0,max:1500,step:10},{name:"--motion-bubble-enter",group:"States",kind:"time",min:0,max:1500,step:10},{name:"--motion-cot-line-stagger",group:"States",kind:"time",min:0,max:300,step:5},{name:"--motion-cot-collapse",group:"States",kind:"time",min:0,max:1500,step:10},{name:"--motion-tool-enter",group:"States",kind:"time",min:0,max:1500,step:10},{name:"--motion-diff-reveal",group:"States",kind:"time",min:0,max:1500,step:10},{name:"--motion-status-enter",group:"States",kind:"time",min:0,max:1500,step:10},{name:"--motion-status-exit",group:"States",kind:"time",min:0,max:1500,step:10},{name:"--motion-approval-pulse",group:"States",kind:"time",min:0,max:3e3,step:20},{name:"--motion-plan-entry-stagger",group:"States",kind:"time",min:0,max:300,step:5},{name:"--motion-plan-check",group:"States",kind:"time",min:0,max:1500,step:10},{name:"--motion-question-page-enter",group:"States",kind:"time",min:0,max:1e3,step:10},{name:"--motion-count-tween",group:"States",kind:"time",min:0,max:1500,step:10},{name:"--motion-streaming-cursor-blink",group:"States",kind:"time",min:0,max:3e3,step:20},{name:"--motion-turn-fold",group:"States",kind:"time",min:0,max:1500,step:10},{name:"--motion-turn-meta",group:"States",kind:"time",min:0,max:1500,step:10},{name:"--motion-line-scroll",group:"States",kind:"time",min:0,max:1500,step:10},{name:"--motion-interstitial-dwell",group:"States",kind:"time",min:0,max:1e4,step:100},{name:"--motion-scroll-pill-enter",group:"States",kind:"time",min:0,max:1500,step:10},{name:"--motion-scroll-pill-exit",group:"States",kind:"time",min:0,max:1500,step:10},{name:"--motion-mobile-nav-enter",group:"States",kind:"time",min:0,max:1500,step:10},{name:"--motion-mobile-nav-exit",group:"States",kind:"time",min:0,max:1500,step:10},{name:"--motion-scrollbar-idle-delay",group:"States",kind:"time",min:0,max:2e3,step:10},{name:"--motion-pane-glide",group:"States",kind:"time",min:0,max:1500,step:10},{name:"--motion-side-panel-tab",group:"States",kind:"time",min:0,max:1500,step:10},{name:"--motion-live-now-sweep",group:"States",kind:"time",min:0,max:5e3,step:100},{name:"--motion-live-now-breathe",group:"States",kind:"time",min:0,max:5e3,step:100}],ra=[{label:"ease-out-expo (house)",value:"cubic-bezier(0.16, 1, 0.3, 1)"},{label:"standard (house)",value:"cubic-bezier(0.4, 0, 0.2, 1)"},{label:"ease-out",value:"cubic-bezier(0, 0, 0.2, 1)"},{label:"ease-in-out",value:"cubic-bezier(0.42, 0, 0.58, 1)"},{label:"linear",value:"linear"}],ia=Array.from(new Set(sn.map(e=>e.group)));function fe(e){const n=e.trim();if(n.endsWith("ms"))return parseFloat(n);if(n.endsWith("s"))return parseFloat(n)*1e3;const a=parseFloat(n);return Number.isFinite(a)?a:0}l(fe,"parseCssTimeMs");function rn(e){if(e==null)return null;const n=Math.round(e/1e3);return n<60?`${n}s`:`${Math.floor(n/60)}m ${n%60}s`}l(rn,"elapsedLabel");function ln(e){if(e==null)return null;const n=Math.max(0,e)/1e3;return n<60?`${n.toFixed(1)}s`:`${Math.floor(n/60)}m ${(n%60).toFixed(1)}s`}l(ln,"liveElapsedLabel");function on(e,n){const[a,r]=(0,c.useState)(()=>Date.now());return(0,c.useEffect)(()=>{if(e==null||!n)return;const i=window.setInterval(()=>r(Date.now()),100);return()=>window.clearInterval(i)},[e,n]),e==null?void 0:Math.max(0,a-e)}l(on,"useLiveElapsedMs");function cn(e,n){return!Number.isFinite(e)||!Number.isFinite(n)||n<=0?0:Math.max(0,Math.round(e/n)-1)}l(cn,"lineScrollOffset");function W(e){const n=getComputedStyle(document.documentElement).getPropertyValue(e),a=fe(n);return Number.isFinite(a)?a:0}l(W,"motionTokenMs");function dn({text:e,streaming:n,leaving:a}){const r=(0,c.useRef)(null),[i,m]=(0,c.useState)(0),[d,u]=(0,c.useState)(!1),[g,h]=(0,c.useState)(!1);(0,c.useLayoutEffect)(()=>{const k=r.current;if(!k)return;const x=l(()=>{const C=parseFloat(window.getComputedStyle(k).lineHeight);m(cn(k.scrollHeight,C))},"measure");if(x(),typeof ResizeObserver>"u")return;const w=new ResizeObserver(x);return w.observe(k),()=>w.disconnect()},[e,n]),(0,c.useEffect)(()=>{const k=requestAnimationFrame(()=>u(!0)),x=window.setTimeout(()=>h(!0),W("--motion-line-scroll"));return()=>{cancelAnimationFrame(k),window.clearTimeout(x)}},[]);const p=d?a?-1:n?-i:0:1;return(0,t.jsx)("span",{className:"tc-line-scroll min-w-0 flex-1","data-testid":"task-chat-live-self-talk","data-streaming":n||void 0,"data-leaving":a||void 0,children:(0,t.jsx)("span",{ref:r,className:v("tc-line-scroll-inner block",!n&&"truncate"),style:{transform:p!==0?`translateY(calc(${p} * 1lh))`:void 0,transition:g&&!a?"none":void 0},children:e})})}l(dn,"LiveSelfTalkLine");function un(e,n){const[a,r]=(0,c.useState)(null),i=(0,c.useRef)(a),m=(0,c.useRef)(null),d=(0,c.useRef)(e),u=(0,c.useRef)(0),g=(0,c.useRef)(null),h=(0,c.useRef)(null),p=(0,c.useRef)(null);return d.current=e,(0,c.useEffect)(()=>{const k=l(f=>{f.current!=null&&(window.clearTimeout(f.current),f.current=null)},"clear"),x=l(f=>{i.current=f,r(f)},"show"),w=l(()=>{k(h),k(p),h.current=window.setTimeout(()=>{if(h.current=null,m.current!=null)return;const f=i.current;f==null||f.streaming||(x({...f,leaving:!0}),p.current=window.setTimeout(()=>{p.current=null,i.current?.leaving&&x(null)},W("--motion-line-scroll")))},W("--motion-interstitial-dwell"))},"scheduleLeave"),C=l((f,S)=>{k(h),k(p),u.current=Date.now(),x({text:f,streaming:S,swapKey:(i.current?.swapKey??0)+1}),S||w()},"swapIn");if(!n){k(g),k(h),k(p),m.current=null,i.current&&x(null);return}const N=i.current;if(e==null){N?.streaming&&(x({...N,streaming:!1}),w());return}if(N==null){C(e,!0);return}if(N.streaming){N.text!==e&&x({...N,text:e});return}if(m.current=e,g.current==null){const f=W("--motion-interstitial-dwell"),S=Math.max(0,u.current+f-Date.now());g.current=window.setTimeout(()=>{g.current=null;const b=m.current;m.current=null,b!=null&&C(b,d.current!=null)},S)}},[e,n]),(0,c.useEffect)(()=>()=>{g.current!=null&&window.clearTimeout(g.current),h.current!=null&&window.clearTimeout(h.current),p.current!=null&&window.clearTimeout(p.current)},[]),a}l(un,"useHeldSelfTalk");var mn={running:{Icon:H,spin:!0,tone:"text-(--status-agent-running)"},working:{Icon:H,spin:!0,tone:"text-(--status-agent-running)"},awaiting_approval:{Icon:ot,spin:!1,tone:"text-accent"},interrupted:{Icon:rt,spin:!1,tone:"text-bad"},refused:{Icon:Se,spin:!1,tone:"text-bad"},truncated:{Icon:It,spin:!1,tone:"text-(--status-agent-paused)"}};function ge({item:e,onApprovalDecision:n,chevronOpen:a,onToggle:r}){const{Icon:i,spin:m,tone:d}=mn[e.status],u=e.status==="awaiting_approval",g=e.status==="running"||e.status==="working",h=on(e.startedAtMs,g),p=un(g?e.selfTalk:void 0,g),k=rn(e.elapsedMs);if(g){const x=ln(h??e.elapsedMs),w=e.selfTalk!=null,C=e.toolName?ue(e.toolName).icon:w?null:$e(e.label),N=w||tn(e.label)?an(e.id,h??e.elapsedMs??0):e.label,f=(0,t.jsxs)("div",{className:"tc-enter-status flex items-center gap-2 py-0.5 text-xs text-ink-3",children:[a!==void 0?(0,t.jsx)("span",{className:"flex h-3.5 w-3.5 shrink-0 items-center justify-center","data-testid":"task-chat-status-caret-slot",children:(0,t.jsx)(G,{className:v("h-3 w-3 transition-transform",a?"rotate-90":null),"aria-hidden":!0})}):null,(0,t.jsx)("span",{className:"flex h-3.5 w-3.5 shrink-0 items-center justify-center","data-testid":"task-chat-status-dot-slot",children:(0,t.jsx)("span",{"aria-hidden":!0,className:"h-2 w-2 animate-pulse rounded-full bg-(--status-agent-running)"})}),C?(0,t.jsx)(C,{className:"h-3.5 w-3.5 shrink-0","aria-hidden":!0}):null,(0,t.jsxs)("span",{className:"flex min-w-0 flex-1 items-baseline gap-2",children:[(0,t.jsxs)("span",{className:"shimmer-text shimmer-text-muted shrink-0 font-medium",children:[N,"…"]}),x?(0,t.jsx)("span",{className:"shrink-0 font-mono tabular-nums text-(length:--text-micro)",children:x}):null,e.detail?(0,t.jsx)("span",{className:"min-w-0 truncate font-mono text-(length:--text-micro)",children:e.detail}):null,e.tokens?(0,t.jsxs)("span",{className:"ml-auto shrink-0 font-mono text-(length:--text-micro)",children:[e.tokens.used.toLocaleString(),"/",e.tokens.size.toLocaleString()," ctx"]}):null]})]});return(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 py-0.5 text-xs text-ink-3","data-testid":"task-chat-interstitial-row",children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"h-3.5 w-3.5 shrink-0"}),p?(0,t.jsx)(dn,{text:p.text,streaming:p.streaming,leaving:p.leaving},p.swapKey):(0,t.jsx)("span",{"aria-hidden":!0,className:"tc-line-scroll min-w-0 flex-1"})]}),r?(0,t.jsx)("button",{type:"button",onClick:r,"aria-expanded":a,className:"-mx-1.5 block w-full rounded-sm px-1.5 text-left transition-colors hover:bg-bg-3/60","data-testid":"task-chat-live-turn",children:f}):f]})}return(0,t.jsxs)("div",{className:v("tc-enter-status flex flex-col gap-2 rounded-lg border px-3 py-2 text-sm",u?"tc-approval border-accent/40 bg-accent/5":"border-line bg-bg-3/40"),children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,t.jsx)(i,{className:v("h-4 w-4 shrink-0",d,m&&"animate-spin")}),(0,t.jsx)("span",{className:"min-w-0 truncate font-medium",children:e.label}),(0,t.jsxs)("span",{className:"ml-auto flex shrink-0 items-center gap-2 text-xs text-ink-3",children:[k?(0,t.jsx)("span",{children:k}):null,e.tokens?(0,t.jsxs)("span",{children:[e.tokens.used.toLocaleString(),"/",e.tokens.size.toLocaleString()," ctx"]}):null]})]}),e.detail?(0,t.jsx)("p",{className:"text-xs text-ink-3",children:e.detail}):null,u&&e.approval?(0,t.jsx)("div",{className:"flex flex-wrap justify-end gap-2 pt-1",children:e.approval.options.map(x=>{const w=x.kind.startsWith("reject");return(0,t.jsx)(J,{variant:w?"secondary":"primary",size:"xs",type:"button",onClick:l(()=>n?.(x.id),"onClick"),children:x.label},x.id)})}):null]})}l(ge,"TaskChatStatusPill");function ie(e){const n=[];return e.durationLabel&&n.push(e.durationLabel),e.toolCount>0&&n.push(`${e.toolCount} tool${e.toolCount===1?"":"s"}`),(e.added>0||e.removed>0)&&n.push(`+${e.added} −${e.removed}`),e.tokensLabel&&n.push(e.tokensLabel),n.join(" · ")}l(ie,"turnSummaryMetrics");function le({item:e,renderChild:n,timestampPrefix:a,leading:r}){const i=D(),m=!e.settled&&e.liveStatus!=null;if(e.standaloneHeader)return(0,t.jsxs)("div",{"data-testid":"task-chat-turn","data-settled":e.settled?"true":"false",children:[e.agentName||!e.historical?(0,t.jsxs)("div",{className:"flex min-h-8 w-full min-w-0 items-center gap-2 pb-1 pt-1.5 text-sm text-ink-3","data-testid":"task-chat-turn-summary","data-turn-position":"identity",children:[e.agentName?(0,t.jsx)(pe,{agentName:e.agentName,agentIcon:e.agentIcon,agent:e.agent}):null,e.historical?null:(0,t.jsxs)("span",{className:"min-w-0 truncate",children:[e.continuedAfterSteering?"Continued after steering · ":"",e.summary.durationLabel?`${e.summary.failed?"Stopped":"Worked"} for ${e.summary.durationLabel}`:e.summary.failed?"Stopped":"Worked"]})]}):null,e.items.length>0?(0,t.jsx)("div",{className:"flex min-w-0 flex-col gap-2 py-1","data-testid":"task-chat-turn-timeline",children:e.items.map(j=>(0,t.jsx)("div",{className:"min-w-0","data-testid":"task-chat-turn-timeline-row","data-timeline-row-id":j.id,"data-thread-anchor":j.id,children:n(j)},j.id))}):null,e.finalResponse?(0,t.jsx)("div",{className:"w-full","data-testid":"task-chat-final-response",children:(0,t.jsx)("div",{className:"break-words px-1 py-2 text-sm text-ink","data-testid":"task-chat-agent-bubble",children:(0,t.jsx)(P,{softBreaks:!0,linkIssueReferences:!0,children:e.finalResponse.text})})}):null]});const d=e.settled?e.items.filter(j=>j.kind==="protocol"&&j.surface==="runtime_request"):[],u=new Set(d.map(j=>j.id)),g=d.length>0?e.items.filter(j=>!u.has(j.id)):e.items,[h,p]=(0,c.useState)(()=>!e.settled&&e.liveStatus==null),[k,x]=(0,c.useState)(h);h&&!k&&x(!0);const[w,C]=(0,c.useState)(e.settled),[N,f]=(0,c.useState)(m);m&&!N&&f(!0),e.settled!==w&&(C(e.settled),e.settled&&!N&&p(!1));const S=g.length>0,b=(e.settled||m)&&!h,I=e.summary.failed?z:U,T=e.settled&&(!e.historical||S)?(0,t.jsxs)("button",{type:"button",onClick:l(()=>p(j=>!j),"onClick"),"aria-expanded":h,className:v("group flex w-full items-center gap-2 px-1 text-ink-3 transition-colors hover:text-ink",e.standaloneHeader?"border-b border-line/70 py-2 text-sm":"py-0.5 text-xs",i&&"min-w-0"),"data-testid":"task-chat-turn-summary",children:[a?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-(length:--text-micro)",children:a}),(0,t.jsx)("span",{"aria-hidden":!0,className:"text-(length:--text-micro)",children:"·"})]}):null,!e.standaloneHeader&&!e.historical?(0,t.jsx)(I,{className:"h-3.5 w-3.5 shrink-0"}):null,(0,t.jsx)("span",{children:e.historical?"Activity":e.standaloneHeader&&e.summary.durationLabel?`${e.summary.failed?"Stopped":"Worked"} for ${e.summary.durationLabel}`:e.summary.failed?"Stopped":"Worked"}),!e.standaloneHeader&&ie(e.summary)?(0,t.jsx)("span",{className:"tc-turn-metrics","data-visible":h?"true":"false",children:(0,t.jsx)("span",{className:"min-w-0 overflow-hidden whitespace-nowrap font-mono text-(length:--text-micro)",children:ie(e.summary)})}):null,(0,t.jsx)(G,{className:v("h-3 w-3 shrink-0 transition-transform",e.standaloneHeader&&"ml-auto",h?"rotate-90":null),"aria-hidden":!0})]}):m?(0,t.jsx)(ge,{item:e.liveStatus,chevronOpen:S?h:void 0,onToggle:S?()=>p(j=>!j):void 0}):null;return(0,t.jsxs)("div",{"data-testid":"task-chat-turn","data-settled":e.settled?"true":"false",children:[r?i?(0,t.jsxs)("div",{className:"flex w-full items-center justify-between gap-2",children:[(0,t.jsx)("div",{className:"min-w-0",children:T}),(0,t.jsx)("div",{className:"shrink-0",children:r})]}):(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[r,T]}):T,(0,t.jsx)("div",{className:"tc-turn-fold","data-folded":b?"true":"false","aria-hidden":b,children:(0,t.jsx)("div",{children:(0,t.jsx)("div",{className:"flex flex-col gap-2 pt-1",children:k&&g.map(j=>(0,t.jsx)("div",{children:n(j)},j.id))})})}),d.length>0?(0,t.jsx)("div",{className:"flex flex-col gap-2 pt-2","data-testid":"task-chat-turn-persistent-history",children:d.map(j=>(0,t.jsx)("div",{children:n(j)},j.id))}):null]})}l(le,"TaskChatTurn");function hn({children:e,className:n}){return(0,t.jsx)("div",{"data-slot":"task-chat-sticky-header-actions",className:v("sticky top-[calc(var(--mobile-topbar-h,0.5rem)+0.5rem)] z-10 h-0",n),children:(0,t.jsx)("div",{className:"absolute right-0 top-0 rounded-md bg-bg/90 backdrop-blur-sm",children:e})})}l(hn,"TaskChatStickyHeaderActions");var pn=48;function oe(){return typeof window>"u"||typeof window.matchMedia!="function"?!0:window.matchMedia("(prefers-reduced-motion: reduce)").matches}l(oe,"motionDisabled");function xn({children:e,contentKey:n,className:a}){const r=D(),i=Mt(),m=(0,c.useRef)(!1),d=(0,c.useRef)({key:i.key,hash:i.hash}),u=(0,c.useRef)(null),g=(0,c.useRef)(null),h=(0,c.useRef)(!0),p=(0,c.useRef)(!1),k=(0,c.useRef)(null),x=(0,c.useRef)(null),w=(0,c.useRef)(null),[C,N]=(0,c.useState)("hidden"),f=(0,c.useCallback)(()=>{const s=u.current;if(!s)return;s.dataset.scrollActive="true",x.current!==null&&window.clearTimeout(x.current);const y=w.current??fe(getComputedStyle(document.documentElement).getPropertyValue("--motion-scrollbar-idle-delay"));w.current=y,x.current=window.setTimeout(()=>{delete s.dataset.scrollActive,x.current=null,w.current=null},y)},[]),S=(0,c.useCallback)(()=>{N("in")},[]),b=(0,c.useCallback)(()=>{N(s=>s==="hidden"?s:oe()?"hidden":"out")},[]),I=(0,c.useCallback)(()=>{const s=u.current;return s?s.scrollHeight-s.scrollTop-s.clientHeight<=pn:!0},[]),T=(0,c.useCallback)(()=>{const s=u.current;s&&(s.scrollTop=s.scrollHeight)},[]),j=(0,c.useCallback)(()=>{const s=u.current;if(!s)return!1;const y=k.current,M=s.clientHeight;return k.current=M,y==null||y<=0||y===M||!h.current?!1:(T(),!0)},[T]),_=(0,c.useCallback)(()=>{const s=u.current;if(!s)return;const y=s.getBoundingClientRect();g.current=Rt(s,y.top,y.bottom),m.current&&i.remember(s.scrollTop,g.current)},[i.key,i.hash,i.ready]),A=(0,c.useCallback)(()=>{const s=u.current;if(s){if(p.current&&(p.current=!1,h.current=!0,b()),h.current)T();else{const y=he(s,g.current,s.getBoundingClientRect().top);y&&(s.scrollTop+=y)}_()}},[_,T,b]),L=(0,c.useCallback)(()=>{if(_(),f(),j()){b();return}const s=I();if(p.current){s&&(p.current=!1,h.current=!0,b());return}h.current=s,s?b():S()},[_,j,I,b,S,f]),R=(0,c.useCallback)(()=>{const s=u.current;if(s){if(I()){h.current=!0,b();return}p.current=!0,typeof s.scrollTo=="function"&&!oe()?s.scrollTo({top:s.scrollHeight,behavior:"smooth"}):(s.scrollTop=s.scrollHeight,p.current=!1,h.current=!0,b())}},[I,b]);return(0,c.useEffect)(()=>{const s=u.current;if(!s)return;const y=l(()=>{p.current&&(p.current=!1,h.current=!1,S())},"cancelEasing");return s.addEventListener("wheel",y,{passive:!0}),s.addEventListener("touchstart",y,{passive:!0}),()=>{s.removeEventListener("wheel",y),s.removeEventListener("touchstart",y)}},[S]),(0,c.useEffect)(()=>()=>{x.current!==null&&window.clearTimeout(x.current)},[]),(0,c.useLayoutEffect)(()=>{const s=u.current;if(!s||(k.current=s.clientHeight,typeof ResizeObserver>"u"))return;const y=new ResizeObserver(()=>{j()&&b(),A()});return y.observe(s),s.firstElementChild&&y.observe(s.firstElementChild),()=>y.disconnect()},[j,b,A]),(0,c.useLayoutEffect)(()=>{const s=u.current;if((d.current.key!==i.key||d.current.hash!==i.hash)&&(d.current={key:i.key,hash:i.hash},m.current=!1),s&&i.ready&&!m.current){const y=i.initialPosition(s,s.getBoundingClientRect().top,s.scrollTop);y!==null&&(s.scrollTop=y,h.current=I(),_()),m.current=!0}A()},[n,A,i.key,i.hash,i.ready]),(0,t.jsxs)("div",{className:"relative min-h-0 flex-1",children:[(0,t.jsx)("div",{ref:u,onScroll:L,className:v("task-chat-scroll-viewport scrollbar-while-scrolling absolute inset-y-0 left-0 overflow-y-auto",r?"-right-4 overflow-x-hidden pr-4 md:-right-6 md:pr-6":"right-0",a),"data-testid":"task-chat-scroller",children:e}),C!=="hidden"?(0,t.jsx)("button",{type:"button","aria-label":"Scroll to latest",onClick:R,onAnimationEnd:l(()=>{C==="out"&&N("hidden")},"onAnimationEnd"),className:v("absolute left-1/2 flex size-8 items-center justify-center rounded-full border border-line bg-bg shadow-sm hover:bg-bg-3",r?"bottom-7":"bottom-3",C==="out"?"tc-scroll-pill-out":"tc-scroll-pill-in"),children:(0,t.jsx)(Ee,{className:"h-4 w-4"})}):null]})}l(xn,"TaskMessageScroller");var fn=[];function K(e,n,a,r,i,m,d,u="classic",g,h=!1,p,k,x,w=[],C,N){switch(e.kind){case"browser":return(0,t.jsx)(Ze,{browser:e.browser,label:e.label,onOpen:N});case"project_created":return(0,t.jsx)(Je,{item:e});case"skill_created":return(0,t.jsx)(Zt,{item:e,onOpen:C});case"message":{const f=i?.(e),S=e.attachedTurn?.standaloneHeader?{...e.attachedTurn,agentName:e.attachedTurn.agentName??e.authorName,agentIcon:e.attachedTurn.agentIcon??e.agentIcon,agent:e.attachedTurn.agent??e.agent}:e.attachedTurn,b=S?(0,t.jsx)(le,{item:S,timestampPrefix:S.standaloneHeader?void 0:e.timestamp,leading:S.standaloneHeader?void 0:f,renderChild:l(I=>K(I,n,void 0,void 0,void 0,void 0,d,e.attachedTurn?.standaloneHeader?"runner":"classic",void 0,!1,void 0,void 0,void 0,w,C,N),"renderChild")}):void 0;return(0,t.jsx)(Vt,{item:e,animateEntry:!1,actions:e.attachedTurn?.standaloneHeader?f:e.attachedTurn?void 0:f,queuedAction:m?.(e),beforeTurn:e.attachedTurn?.standaloneHeader?b:void 0,attachedTurn:e.attachedTurn?.standaloneHeader?void 0:b,hideAgentIdentity:!!e.attachedTurn?.standaloneHeader,onTryAgainNoLiveExecutionPath:g,tryAgainNoLiveExecutionPathPending:h,attachments:w})}case"marker":return(0,t.jsx)(et,{item:e,onTryAgain:e.id===p&&e.retryable!==!1?e.runId&&k?()=>k(e.runId):g:void 0,tryAgainPending:e.runId?x===e.runId:h});case"thinking":return(0,t.jsx)($t,{item:e});case"tool":return(0,t.jsx)(Lt,{item:e});case"status":return(0,t.jsx)(ge,{item:e,onApprovalDecision:l(f=>n?.(e.id,f),"onApprovalDecision")});case"usage":return(0,t.jsx)(Qe,{item:e});case"activity_phase":return(0,t.jsx)(Xe,{item:e});case"interaction":return a?a(e):null;case"plan_document":return(0,t.jsx)(Qt,{source:{kind:"saved",document:e.document},testId:e.placement==="fallback"?"task-chat-plan-preview-fallback":"task-chat-plan-preview"});case"todo":return(0,t.jsx)(Pt,{item:e});case"brief":return r?r():null;case"turn":return(0,t.jsx)(le,{item:e,renderChild:l(f=>K(f,n,void 0,void 0,void 0,void 0,d,e.standaloneHeader?"runner":"classic",void 0,!1,void 0,void 0,void 0,w,C,N),"renderChild")});case"protocol":return(0,t.jsx)(it,{item:e,onRuntimeRequestDecision:d});default:return e}}l(K,"renderItem");function ce(e){return e.kind==="marker"||e.kind==="message"&&e.author==="system"}l(ce,"isSystemLikeItem");function gn(e,n){if(!n)return;const a=ce(e),r=ce(n);return a&&r?"mt-2":a||r||e.kind==="turn"||n.kind==="turn"?"mt-3":e.kind==="interaction"||n.kind==="interaction"?"mt-4":"mt-6"}l(gn,"taskChatItemSpacingClass");function la({items:e,header:n,headerActions:a,onApprovalDecision:r,onRuntimeRequestDecision:i,renderInteraction:m,renderBrief:d,renderMessageActions:u,renderQueuedAction:g,onTryAgainNoLiveExecutionPath:h,tryAgainNoLiveExecutionPathPending:p=!1,onRetryFailedRun:k,retryFailedRunId:x=null,tail:w,contentKey:C,className:N,scroll:f=!0,attachments:S=fn,onOpenSkill:b,onOpenBrowser:I}){const T=D();let j;if(k||h)for(let R=e.length-1;R>=0;R-=1){const s=e[R];if(s.kind==="marker"&&s.variant==="interrupted"&&(s.label==="Run failed"||s.label==="Usage limit reached")){j=s.id;break}}const _=(0,c.useMemo)(()=>{const R=T?e.map(s=>({item:s,content:K(s,r,m,d,u,g,i,"classic",h,p,j,k,x,S,b,I)})).filter(s=>s.content!==null):[];return(0,t.jsx)(t.Fragment,{children:T?R.map(({item:s,content:y},M)=>(0,t.jsx)("div",{"data-thread-anchor":s.kind==="message"?s.renderKey??s.id:s.id,id:s.kind==="message"?`comment-${s.id}`:void 0,className:gn(s,R[M-1]?.item??null),"data-thread-item-kind":s.kind==="message"?s.author:s.kind,children:y},s.kind==="message"?s.renderKey??s.id:s.id)):e.map((s,y)=>(0,t.jsx)("div",{"data-thread-anchor":s.kind==="message"?s.renderKey??s.id:s.id,id:s.kind==="message"?`comment-${s.id}`:void 0,className:v(y>0&&s.kind==="interaction"&&s.interaction.status!=="pending"&&"-mt-3"),children:K(s,r,m,d,u,g,i,"classic",h,p,j,k,x,S,b,I)},s.kind==="message"?s.renderKey??s.id:s.id))})},[e,T,r,i,m,d,u,g,h,p,j,k,x,S,b,I]),A=(0,c.useMemo)(()=>kn(e),[e]),L=(0,t.jsxs)("div",{className:v("wardmote-mobile-thread mx-auto flex w-full max-w-(--tc-shell-max-w) flex-col px-1 py-3 md:px-4 md:py-4",T?"md:px-0":"gap-5",N),children:[a?(0,t.jsx)(hn,{className:T?void 0:"-mb-5",children:a}):null,n?(0,t.jsx)("div",{className:v("flex flex-col gap-6",T?"pb-4":"pb-2"),"data-testid":"task-chat-thread-header",children:n}):null,_,w?T?(0,t.jsx)("div",{className:"mt-4",children:w}):w:null]});return f?(0,t.jsx)(xn,{contentKey:C??A,children:L}):L}l(la,"TaskChatThreadView");function Q(e){if(e.kind==="message")return e.text.length+(e.attachedTurn?1:0);if(e.kind==="thinking")return e.lines.reduce((n,a)=>n+a.length,0);if(e.kind==="tool")return(e.diff?.lines?.length??0)+(e.status==="completed"?1:0);if(e.kind==="plan_document")return e.document.body.length+e.document.latestRevisionNumber;if(e.kind==="todo")return(e.status==="in_progress"?0:1)+(e.counts?.completed??0);if(e.kind==="turn"){if(e.settled)return 1+(e.finalResponse?.text.length??0);const n=e.liveStatus?e.liveStatus.label.length+(e.liveStatus.detail?.length??0)+(e.liveStatus.selfTalk?.length??0):0;return e.items.reduce((a,r)=>a+Q(r),e.items.length+n+(e.finalResponse?.text.length??0))}return e.kind==="activity_phase"?e.items.reduce((n,a)=>n+Q(a),e.summary.length+(e.interstitial?.text.length??0)):1}l(Q,"signatureOf");function kn(e){return e.reduce((n,a)=>n+Q(a),e.length)}l(kn,"taskChatContentKey");export{aa as _,sn as a,he as b,Qt as c,Vt as d,Pt as f,At as g,_t as h,ra as i,sa as l,Lt as m,kn as n,ia as o,$t as p,hn as r,fe as s,la as t,pe as u,Mt as v,Rt as y};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var m=Object.defineProperty;var r=(s,t)=>m(s,"name",{value:t,configurable:!0});import{i as f}from"./rolldown-runtime-ZpX3ckPj.js";import{ta as k}from"./createLucideIcon-DJi9suAC.js";import{Jt as b,Ut as p,t as g}from"./router-2UfGeejU.js";import{b as j,x as N}from"./MarkdownBody-BTjuUgFa.js";import{t as v}from"./button-CMwV3L1P.js";import{t as y}from"./plus-C6fnr28l.js";import{t as w}from"./StatusIcon-0GcYXDdN.js";import{x as T}from"./index-3AxqhPET.js";var e=f(k(),1);function o({items:s,emptyMessage:t,ariaLabel:l,issueLinkState:n}){return s.length===0?(0,e.jsx)("p",{className:"py-6 text-center text-sm text-ink-3",children:t}):(0,e.jsx)("ul",{className:"flex flex-col gap-0.5","aria-label":l,children:s.map(a=>{if(N(a))return(0,e.jsx)("li",{className:"px-2 py-2",children:(0,e.jsx)(j,{identifier:a.identifier})},a.id);const i=a.identifier??a.id;return(0,e.jsx)("li",{children:(0,e.jsxs)(g,{to:p(i),state:n,onClickCapture:r(()=>b(i,n),"onClickCapture"),className:"flex min-w-0 items-center gap-2 rounded-md px-2 py-2 text-sm transition-colors hover:bg-bg-3/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus",title:`${a.identifier?`${a.identifier} — `:""}${a.title}`,children:[a.status?(0,e.jsx)(w,{status:a.status,className:"h-3.5 w-3.5 shrink-0"}):null,(0,e.jsx)("span",{className:"min-w-0 flex-1 truncate",children:a.title}),a.identifier?(0,e.jsx)("span",{className:"shrink-0 font-mono text-xs text-ink-3",children:a.identifier}):null]})},a.id)})})}r(o,"RelationNavigationList");var _=["in_progress","in_review","todo","backlog","blocked"];function S(s){const t=_.map(l=>s.find(n=>n.status===l)).find(l=>!!l)??null;return{nextAction:t,rootBlocker:t?.status==="blocked"?t.blockerAttention?.terminalBlocker??null:null,remainingItems:t?s.filter(l=>l.id!==t.id):s}}r(S,"resolveTaskDetailSubtaskState");function x({items:s,ariaLabel:t,issueLinkState:l}){return(0,e.jsx)("ul",{className:"flex flex-col gap-0.5","aria-label":t,children:s.map(n=>(0,e.jsx)("li",{children:(0,e.jsx)(T,{issue:n,issueLinkState:l,presentation:"task",className:"rounded-md"})},n.id))})}r(x,"TaskDetailTaskList");function $({items:s,onAddSubtask:t,issueLinkState:l}){const n=s.filter(h=>h.status==="done").length,a=s.length>0?Math.round(n/s.length*100):0,{nextAction:i,rootBlocker:c,remainingItems:d}=S(s),u=s.length>0&&n===s.length;return(0,e.jsxs)("section",{className:"flex flex-col gap-4","aria-label":"Subtasks",children:[(0,e.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,e.jsxs)("div",{className:"flex items-center justify-between gap-3 text-xs text-ink-3",children:[(0,e.jsx)("span",{children:"Progress"}),(0,e.jsxs)("span",{className:"font-mono",children:[n," of ",s.length," complete"]})]}),(0,e.jsx)("div",{className:"h-1.5 overflow-hidden rounded-full bg-bg-3",role:"progressbar","aria-label":"Subtask completion","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":a,children:(0,e.jsx)("div",{className:"h-full rounded-full bg-(--status-task-icon-done) transition-[width]",style:{width:`${a}%`}})})]}),c?(0,e.jsxs)("section",{className:"flex flex-col gap-1.5","aria-labelledby":"task-root-blocker-heading",children:[(0,e.jsx)("h3",{id:"task-root-blocker-heading",className:"text-xs font-medium text-ink-3",children:"Root blocker"}),(0,e.jsx)(o,{items:[c],emptyMessage:"",ariaLabel:"Root blocker",issueLinkState:l})]}):null,i?(0,e.jsxs)("section",{className:"flex flex-col gap-1.5","aria-labelledby":"task-next-action-heading",children:[(0,e.jsx)("h3",{id:"task-next-action-heading",className:"text-xs font-medium text-ink-3",children:i.status==="blocked"?"Blocked subtask":"Next action"}),(0,e.jsx)(x,{items:[i],ariaLabel:"Next subtask action",issueLinkState:l})]}):s.length>0?(0,e.jsx)("p",{className:"text-xs text-ink-3",children:u?"All subtasks are complete.":"No remaining subtask actions."}):(0,e.jsx)("p",{className:"py-6 text-center text-sm text-ink-3",children:"No subtasks yet."}),d.length>0?(0,e.jsxs)("section",{className:"flex flex-col gap-1.5","aria-labelledby":"task-other-subtasks-heading",children:[(0,e.jsx)("h3",{id:"task-other-subtasks-heading",className:"text-xs font-medium text-ink-3",children:i?"Other subtasks":"Subtasks"}),(0,e.jsx)(x,{items:d,ariaLabel:i?"Other subtasks":"Subtasks",issueLinkState:l})]}):null,t?(0,e.jsxs)(v,{type:"button",variant:"secondary",size:"sm",className:"self-start",onClick:t,children:[(0,e.jsx)(y,{className:"h-3.5 w-3.5"}),"Add subtask"]}):null]})}r($,"TaskDetailSubtasksPanel");function E({referenced:s,mentionedIn:t,issueLinkState:l}){return(0,e.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,e.jsxs)("section",{className:"flex flex-col gap-2","aria-labelledby":"task-referenced-heading",children:[(0,e.jsx)("h3",{id:"task-referenced-heading",className:"text-xs font-medium text-ink-3",children:"Referenced"}),(0,e.jsx)(o,{items:s,emptyMessage:"This task does not reference another task.",ariaLabel:"Referenced tasks",issueLinkState:l})]}),(0,e.jsxs)("section",{className:"flex flex-col gap-2","aria-labelledby":"task-mentioned-in-heading",children:[(0,e.jsx)("h3",{id:"task-mentioned-in-heading",className:"text-xs font-medium text-ink-3",children:"Mentioned in"}),(0,e.jsx)(o,{items:t,emptyMessage:"No other task mentions this task.",ariaLabel:"Tasks that mention this task",issueLinkState:l})]})]})}r(E,"TaskDetailReferencesPanel");export{x as i,E as n,$ as r,o as t};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
var z=Object.defineProperty;var o=(s,t)=>z(s,"name",{value:t,configurable:!0});import{i as I}from"./rolldown-runtime-ZpX3ckPj.js";import{C as q,bt as M,l as O,na as V,ta as K}from"./createLucideIcon-DJi9suAC.js";import{t as H,v as T}from"./queryKeys-DYV5MhM_.js";import{Jt as U,Ut as X,ot as W,t as F,zt as G}from"./router-2UfGeejU.js";import{n as J,r as Q,t as Y}from"./collapsible-CqjPlqOa.js";import{a as Z,c as k,d as ee,f as se,i as N,o as te,p as ae,r as re,s as D,t as ne,u as ie}from"./dropdown-menu-DEO3mF_E.js";import{n as le}from"./PathInstructionsModal-D4GUYKIT.js";import{t as oe}from"./arrow-up-right-BLYWl-we.js";import{t as ce}from"./chevron-right-s7L6hXXq.js";import{t as de}from"./circle-x-CFlSbYzD.js";import{t as me}from"./MarkdownBody-BTjuUgFa.js";import{t as he}from"./code-xml-BWc3OvMt.js";import{t as xe}from"./ellipsis-BTiLRUn4.js";import{t as ue}from"./eye-DRS7RbEp.js";import{r as pe,t as f}from"./button-CMwV3L1P.js";import{t as fe}from"./refresh-cw-B_Oki9wZ.js";import{t as je}from"./repeat-DGPKlc5I.js";import{t as we}from"./square-B2aH51tE.js";import{t as ge}from"./x-DRDFdlYE.js";import{i as R,n as E,t as $}from"./tooltip-B5WQ3lq5.js";import{a as be,i as ve,n as ke,r as Ne,s as ye,t as Ce}from"./dialog-CKUblzlR.js";import{u as _}from"./issue-filters-BO9xiK0c.js";import{Ba as P,Ha as De,Ra as Se,Va as Me}from"./index-3AxqhPET.js";import{l as Te,n as Re,o as Ee,s as $e,u as _e}from"./ImageGalleryModal-DzKBMOnu.js";import{i as Pe,r as Le,t as Be}from"./TaskDetailRelationsPanel-DZGkinoJ.js";var e=I(K(),1);function Ie({createdFrom:s,issueLinkState:t,className:n}){if(!s)return null;const{issue:a,agent:i}=s,r=a.identifier??a.id;return(0,e.jsxs)("p",{"data-testid":"issue-created-from",className:O("flex min-w-0 items-center gap-1 text-xs text-ink-3",n),children:[(0,e.jsx)(W,{"aria-hidden":!0,className:"h-3 w-3 shrink-0"}),(0,e.jsx)("span",{className:"shrink-0",children:"Created from"}),(0,e.jsx)(F,{to:X(r),state:t,onClickCapture:o(()=>U(r,t),"onClickCapture"),className:"min-w-0 truncate hover:text-ink transition-colors",title:a.title,children:a.identifier?`${a.identifier} ${a.title}`:a.title}),i&&(0,e.jsxs)("span",{className:"shrink-0",children:["by ",i.name]})]})}o(Ie,"IssueCreatedFromNote");function y({name:s,projectPath:t,children:n}){return(0,e.jsx)(Y,{defaultOpen:!0,asChild:!0,children:(0,e.jsxs)("section",{"aria-label":s,children:[(0,e.jsxs)("div",{className:"group/header flex items-center gap-1 rounded-md hover:bg-bg-3/50",children:[(0,e.jsx)("h2",{children:(0,e.jsxs)(Q,{className:"group flex items-center gap-1 rounded-md py-1 text-left text-sm font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus",children:[(0,e.jsx)("span",{children:s}),(0,e.jsx)("span",{"aria-hidden":!0,className:"flex w-3.5 items-center justify-center opacity-0 transition-opacity duration-(--motion-duration-fast) ease-(--motion-ease-standard) group-hover/header:opacity-100 group-focus-within/header:opacity-100",children:(0,e.jsx)(ce,{className:"h-3.5 w-3.5 text-ink-3 transition-transform duration-(--motion-duration-fast) ease-(--motion-ease-standard) group-data-[state=open]:rotate-90"})})]})}),t&&(0,e.jsx)(F,{to:t,"aria-label":`Go to ${s} project`,title:`Go to ${s} project`,className:"ml-auto inline-flex h-6 w-6 shrink-0 items-center justify-center rounded-md text-ink-3 opacity-0 transition-opacity duration-(--motion-duration-fast) ease-(--motion-ease-standard) hover:bg-bg-3 hover:text-ink group-hover/header:opacity-100 group-focus-within/header:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus",children:(0,e.jsx)(oe,{"aria-hidden":!0,className:"h-3.5 w-3.5"})})]}),(0,e.jsx)(J,{className:"pt-2",children:n})]})})}o(y,"TaskGroup");function ws({ancestors:s=[],createdFrom:t=null,subtasks:n,createdTasks:a,projects:i,isLoading:r,hasError:c,onRetry:l,issueLinkState:d}){const m=L(n),p=new Map;for(const h of L(a)){const x=h.projectId??"no-project",g=h.projectId?i.find(w=>w.id===h.projectId)??h.project:null,u=p.get(x)??{name:g?.name??(h.projectId?"Project":"No project"),path:h.projectId?`/projects/${q(g??{id:h.projectId})}/issues`:void 0,tasks:[]};u.tasks.push(h),p.set(x,u)}return(0,e.jsxs)("section",{className:"flex flex-col gap-6","aria-label":"Related tasks",children:[t&&(0,e.jsx)(y,{name:"Created from",children:(0,e.jsx)(Ie,{createdFrom:t,issueLinkState:d,className:"px-2 text-sm"})}),s.length>0&&(0,e.jsx)(y,{name:"Ancestors",children:(0,e.jsx)(Be,{items:[...s].reverse(),emptyMessage:"",ariaLabel:"Ancestor tasks, root to parent",issueLinkState:d})}),m.length>0&&(0,e.jsx)(y,{name:"Subtasks",children:(0,e.jsx)(Le,{items:m,issueLinkState:d})}),[...p.entries()].sort(([,h],[,x])=>h.name.localeCompare(x.name)).map(([h,x])=>(0,e.jsx)(y,{name:x.name,projectPath:x.path,children:(0,e.jsx)(Pe,{items:x.tasks,ariaLabel:`${x.name} tasks`,issueLinkState:d})},h)),r&&(0,e.jsx)("p",{role:"status",className:"text-sm text-ink-3",children:"Loading tasks…"}),c&&(0,e.jsxs)("div",{role:"alert",className:"flex items-center gap-2 text-sm text-bad",children:[(0,e.jsx)("span",{children:"Could not load all tasks."}),l&&(0,e.jsx)(f,{variant:"ghost",size:"sm",onClick:l,children:"Retry"})]}),!r&&!c&&!t&&s.length===0&&n.length===0&&a.length===0&&(0,e.jsx)("p",{className:"py-6 text-center text-sm text-ink-3",children:"No tasks yet."})]})}o(ws,"TaskDetailTasksPanel");function L(s){return[...new Map(s.map(t=>[t.id,t])).values()].sort((t,n)=>_.indexOf(t.status)-_.indexOf(n.status))}o(L,"sortTasks");var C=I(V(),1);function Fe(s,t=""){return/\.csv$/i.test(s)||t.split(";")[0].trim().toLowerCase()==="text/csv"}o(Fe,"isCsvFile");function Ae(s){const t=s.replace(/^\uFEFF/,"");if(!t)return[];const n=[];let a=[],i="",r=!1;for(let c=0;c<t.length;c++){const l=t[c];l==='"'?r&&t[c+1]==='"'?(i+='"',c++):r||i===""?r=!r:i+=l:!r&&l===","?(a.push(i),i=""):!r&&(l===`
|
|
2
|
-
`||l==="\r")?(a.push(i),n.push(a),a=[],i="",l==="\r"&&t[c+1]===`
|
|
3
|
-
`&&c++):i+=l}if(r)throw new Error("A quoted field is incomplete. Switch to raw view to inspect the file.");return(i!==""||a.length||!/[\r\n]$/.test(t))&&(a.push(i),n.push(a)),n}o(Ae,"parseCsv");var S=500,B=100;function ze({text:s,title:t}){const n=(0,C.useMemo)(()=>{try{return{rows:Ae(s),error:null}}catch(l){return{rows:[],error:l.message}}},[s]);if(n.error)return(0,e.jsx)("p",{role:"alert",className:"p-4 text-sm text-ink-3",children:n.error});if(!n.rows.length)return(0,e.jsx)("p",{className:"p-4 text-sm text-ink-3",children:"File is empty."});const[a,...i]=n.rows,r=n.rows.reduce((l,d)=>Math.max(l,d.length),0),c=Array.from({length:Math.min(r,B)},(l,d)=>d);return(0,e.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col bg-bg",children:[(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-2 border-b border-line px-4 py-2 text-xs text-ink-3",role:"status",children:[(0,e.jsx)("span",{className:"font-medium text-ink",children:"CSV preview"}),(0,e.jsxs)("span",{children:[i.length.toLocaleString()," ",i.length===1?"row":"rows"]}),(0,e.jsxs)("span",{children:[r.toLocaleString()," ",r===1?"column":"columns"]}),(i.length>S||r>B)&&(0,e.jsxs)("span",{children:["Showing the first ",Math.min(i.length,S)," rows and ",c.length," columns. Download for the complete file."]})]}),(0,e.jsx)("div",{className:"min-h-0 flex-1 overflow-auto focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-inset",role:"region","aria-label":`${t} CSV table`,tabIndex:0,children:(0,e.jsxs)("table",{className:"w-full border-collapse text-sm",children:[(0,e.jsxs)("caption",{className:"sr-only",children:[t," — first record used as column headers"]}),(0,e.jsx)("thead",{className:"sticky top-0 z-10 bg-bg-3",children:(0,e.jsxs)("tr",{children:[(0,e.jsxs)("th",{scope:"col",className:"w-10 border-b border-line px-3 py-3 text-right font-mono text-xs text-ink-3",children:[(0,e.jsx)("span",{className:"sr-only",children:"Row"}),"#"]}),c.map(l=>(0,e.jsx)("th",{scope:"col",className:"whitespace-nowrap border-b border-line px-4 py-3 text-left font-medium",children:a[l]||`Column ${l+1}`},l))]})}),(0,e.jsx)("tbody",{children:i.slice(0,S).map((l,d)=>(0,e.jsxs)("tr",{className:"even:bg-bg-3/30 hover:bg-bg-3/50",children:[(0,e.jsx)("th",{scope:"row",className:"border-b border-line/50 px-3 py-2 text-right font-mono text-xs font-normal text-ink-3",children:d+1}),c.map(m=>(0,e.jsx)("td",{className:"whitespace-pre-wrap border-b border-line/50 px-4 py-2 align-top",children:l[m]??""},m))]},d))})]})})]})}o(ze,"CsvPreview");function qe({html:s,title:t}){const n=(0,C.useMemo)(()=>Te(s),[s]);return(0,e.jsx)("iframe",{title:`${t} rendered HTML`,srcDoc:n,sandbox:"allow-scripts",referrerPolicy:"no-referrer",allow:"camera 'none'; microphone 'none'; geolocation 'none'; clipboard-read 'none'; clipboard-write 'none'; fullscreen 'none'",className:"block h-full min-h-0 w-full flex-1 border-0 bg-bg"})}o(qe,"HtmlArtifactPreview");function Oe({mode:s,onChange:t,label:n}){return(0,e.jsxs)("div",{className:"flex gap-1",role:"group","aria-label":n,children:[(0,e.jsx)(f,{type:"button",size:"icon-sm",variant:s==="rendered"?"secondary":"ghost","aria-label":"Rendered",title:"Rendered","aria-pressed":s==="rendered",onClick:o(()=>t("rendered"),"onClick"),children:(0,e.jsx)(ue,{"aria-hidden":!0})}),(0,e.jsx)(f,{type:"button",size:"icon-sm",variant:s==="raw"?"secondary":"ghost","aria-label":"Raw",title:"Raw","aria-pressed":s==="raw",onClick:o(()=>t("raw"),"onClick"),children:(0,e.jsx)(he,{"aria-hidden":!0})})]})}o(Oe,"FilePreviewModeToggle");async function Ve(s){if(!s.ok)throw new Error(`Could not load file (${s.status}).`);if(!s.body)throw new Error("The file response is empty.");const t=s.body.getReader(),n=new TextDecoder("utf-8",{fatal:!0});let a=0,i="";try{for(;;){const r=await t.read();if(r.done)break;if(a+=r.value.byteLength,a>524288)throw new Error("This file is too large to preview. Download it instead.");i+=n.decode(r.value,{stream:!0})}if(i+=n.decode(),i.includes("\0"))throw new Error("This file contains binary data. Download it instead.");return i}finally{await t.cancel(),t.releaseLock()}}o(Ve,"readTextPreview");function Ke({title:s,text:t,markdown:n,html:a=!1,csv:i=!1,downloadUrl:r}){const[c,l]=(0,C.useState)("rendered");(0,C.useEffect)(()=>l("rendered"),[s]);const d=i&&c==="rendered"&&t.length>0,m=a&&c==="rendered"&&t.length>0;return(0,e.jsxs)("div",{className:"flex h-full min-h-0 flex-col",children:[(0,e.jsxs)("header",{className:"flex items-center gap-2 border-b border-line px-3 py-2",children:[(0,e.jsx)("h2",{className:"min-w-0 flex-1 truncate text-sm font-medium",title:s,children:s}),n||a||i?(0,e.jsx)(Oe,{mode:c,onChange:l,label:a?"HTML view":i?"CSV view":"Markdown view"}):null,(0,e.jsx)(f,{asChild:!0,variant:"ghost",size:"icon-sm",children:(0,e.jsx)("a",{href:r,download:!0,"aria-label":`Download ${s}`,title:`Download ${s}`,children:(0,e.jsx)(Se,{"aria-hidden":!0})})})]}),(0,e.jsx)("div",{className:m||d?"flex min-h-0 flex-1 flex-col overflow-hidden":"min-h-0 flex-1 overflow-auto p-4",children:t.length===0?(0,e.jsx)("p",{className:"text-sm text-ink-3",children:"File is empty."}):d?(0,e.jsx)(ze,{text:t,title:s}):m?(0,e.jsx)(qe,{html:t,title:s}):n&&c==="rendered"?(0,e.jsx)(me,{mediaMode:"reference",children:t}):(0,e.jsx)("pre",{className:"whitespace-pre-wrap break-words font-mono text-sm","aria-label":`${s} raw text`,children:t})})]})}o(Ke,"TextAttachmentPreview");function gs({issueId:s,attachmentId:t}){const n=T({queryKey:H.issues.attachments(s),queryFn:o(()=>G.listAttachments(s),"queryFn")}),a=n.data?.find(l=>l.id===t),i=a&&$e(a)&&a.byteSize<=524288,r=T({queryKey:["task-text-attachment",s,t],queryFn:o(async({signal:l})=>Ve(await fetch(`/api/attachments/${encodeURIComponent(t)}/content`,{signal:l,credentials:"same-origin"})),"queryFn"),enabled:!!i,retry:!1});if(n.isLoading)return(0,e.jsx)("p",{className:"p-4 text-sm",role:"status",children:"Loading file…"});if(n.isError)return(0,e.jsxs)("div",{className:"p-4",role:"alert",children:["Could not load attachment details. ",(0,e.jsx)(f,{onClick:o(()=>{n.refetch()},"onClick"),children:"Retry"})]});if(!a)return(0,e.jsx)("p",{className:"p-4 text-sm",role:"status",children:"File no longer available. Close this tab or choose another file."});const c=Re(a);return!i||r.isError?(0,e.jsxs)("div",{className:"space-y-3 p-4",role:"alert",children:[(0,e.jsx)("p",{className:"text-sm",children:r.isError?"Could not preview this file. Retry or download it.":"This file is too large or is not supported for text preview. Download it instead."}),i?(0,e.jsx)(f,{onClick:o(()=>{r.refetch()},"onClick"),children:"Retry"}):null,(0,e.jsx)(f,{asChild:!0,variant:"secondary",children:(0,e.jsx)("a",{href:c,download:!0,children:"Download file"})})]}):r.data===void 0?(0,e.jsx)("p",{className:"p-4 text-sm",role:"status",children:"Loading file…"}):(0,e.jsx)(Ke,{title:a.originalFilename??a.id,text:r.data,csv:Fe(a.originalFilename??"",a.contentType),markdown:Ee(a),html:_e(a.contentType,a.originalFilename),downloadUrl:c},a.id)}o(gs,"TaskAttachmentPanel");function bs({browser:s,now:t,disabled:n=!1,onControl:a,onReconnect:i,viewport:r="fit",controlledElsewhere:c=!1,resizing:l=!1,resizeAvailable:d=!0,onResize:m}){const p=s.status==="running"||s.status==="idle",h=s.expiresAt?Date.parse(s.expiresAt):1/0,x=s.idleDeadline?Date.parse(s.idleDeadline):1/0,g=Math.min(x,h),u=Math.max(0,Math.ceil((g-t)/1e3)),w=s.status==="idle"&&u<=300,b=s.status==="idle"&&h>x&&g>t,v=`${Math.floor(u/60)}:${String(u%60).padStart(2,"0")}`,A=r==="fit"?"Fit to pane":M.find(j=>j.id===r)?.label??"Default";return p?(0,e.jsxs)("footer",{"aria-label":"Browser session",className:"flex shrink-0 flex-wrap items-center gap-x-3 gap-y-1 border-t px-3 py-2 text-xs text-ink-3",children:[w&&(0,e.jsxs)("span",{role:"timer","aria-live":"off",className:"flex items-center gap-1 whitespace-nowrap",children:[(0,e.jsx)(P,{className:"size-3","aria-hidden":"true"}),u>0?(0,e.jsxs)(e.Fragment,{children:["Closes in"," ",(0,e.jsx)("span",{className:"font-mono tabular-nums",children:v})]}):"Closing…"]}),c&&r==="fit"&&(0,e.jsx)("span",{children:"Size follows another viewer"}),l?(0,e.jsxs)("span",{role:"status",className:"flex items-center gap-1",children:[(0,e.jsx)(pe,{className:"size-3 animate-spin motion-reduce:animate-none","aria-hidden":"true"}),"Resizing…"]}):s.status==="running"&&(0,e.jsx)("span",{children:"Browsing"}),(0,e.jsxs)("div",{className:"ml-auto flex items-center gap-1",children:[w&&b&&(0,e.jsxs)($,{children:[(0,e.jsx)(R,{asChild:!0,children:(0,e.jsx)(f,{size:"xs",variant:"ghost",disabled:n,onClick:o(()=>a("keep_open"),"onClick"),children:"Keep browsing"})}),(0,e.jsxs)(E,{children:["Keep this browser open for up to ",6e5/6e4," ","more minutes."]})]}),s.status==="running"&&(0,e.jsxs)($,{children:[(0,e.jsx)(R,{asChild:!0,children:(0,e.jsxs)(f,{size:"xs",variant:"ghost",disabled:n,onClick:o(()=>a("cancel"),"onClick"),children:[(0,e.jsx)(we,{"aria-hidden":"true"})," Stop browsing"]})}),(0,e.jsx)(E,{children:"Stop the agent’s browser work and leave the browser open."})]}),p&&(0,e.jsxs)(ne,{children:[(0,e.jsx)(ae,{asChild:!0,children:(0,e.jsx)(f,{size:"icon-xs",variant:"ghost","aria-label":"Browser options",disabled:n,children:(0,e.jsx)(xe,{"aria-hidden":"true"})})}),(0,e.jsxs)(re,{side:"top",align:"end",className:"w-64",children:[(0,e.jsxs)(ie,{children:[(0,e.jsxs)(se,{disabled:l||!d,children:[(0,e.jsx)(le,{"aria-hidden":"true"}),(0,e.jsx)("span",{children:"Browser size"}),(0,e.jsx)("span",{className:"ml-auto text-xs text-ink-3",children:A})]}),(0,e.jsxs)(ee,{className:"w-64",children:[(0,e.jsx)(Z,{children:"Browser size"}),(0,e.jsxs)(te,{value:r,onValueChange:o(j=>m(j),"onValueChange"),children:[(0,e.jsx)(D,{value:"fit",onSelect:o(()=>{r==="fit"&&m("fit")},"onSelect"),children:"Fit to pane"}),c&&(0,e.jsx)(N,{onSelect:o(()=>m("fit"),"onSelect"),children:"Fit to this pane instead"}),(0,e.jsx)(k,{}),(0,e.jsx)(D,{value:"default",onSelect:o(()=>{r==="default"&&m("default")},"onSelect"),children:"Browser default"}),(0,e.jsx)(k,{}),M.map(j=>(0,e.jsxs)(D,{value:j.id,onSelect:o(()=>{r===j.id&&m(j.id)},"onSelect"),children:[(0,e.jsx)("span",{children:j.label}),(0,e.jsxs)("span",{className:"ml-auto font-mono text-xs tabular-nums text-ink-3",children:[j.width," × ",j.height]})]},j.id))]})]})]}),(0,e.jsx)(k,{}),(0,e.jsxs)(N,{onSelect:i,className:"items-start",children:[(0,e.jsx)(fe,{className:"mt-0.5","aria-hidden":"true"}),(0,e.jsxs)("span",{className:"flex flex-col gap-1",children:[(0,e.jsx)("span",{children:"Reconnect view"}),(0,e.jsx)("span",{className:"text-xs font-normal text-ink-3",children:"Reload the live view. Browser work keeps running."})]})]}),b&&(0,e.jsxs)(N,{onSelect:o(()=>a("keep_open"),"onSelect"),className:"items-start",children:[(0,e.jsx)(P,{className:"mt-0.5","aria-hidden":"true"}),(0,e.jsxs)("span",{className:"flex flex-col gap-1",children:[(0,e.jsx)("span",{children:"Keep browser open"}),(0,e.jsx)("span",{className:"text-xs font-normal text-ink-3",children:"Keep it open for up to 10 more minutes."})]})]}),(0,e.jsx)(k,{}),(0,e.jsxs)(N,{variant:"destructive",onSelect:o(()=>a("end"),"onSelect"),className:"items-start",children:[(0,e.jsx)(ge,{className:"mt-0.5","aria-hidden":"true"}),(0,e.jsxs)("span",{className:"flex flex-col gap-1",children:[(0,e.jsx)("span",{children:"Close browser"}),(0,e.jsx)("span",{className:"text-xs font-normal text-ink-3",children:"End this browser and stop any browsing."})]})]})]})]})]})]}):null}o(bs,"TaskBrowserFooter");function vs({scope:s,canPause:t,canResume:n,canCancel:a,canRestore:i,pending:r,onPause:c,onResume:l,onCancel:d,onRestore:m}){const p="flex items-center gap-2 w-full px-2 py-1.5 text-xs rounded hover:bg-bg-3/50 disabled:opacity-50 disabled:pointer-events-none";return(0,e.jsxs)(e.Fragment,{children:[t?(0,e.jsxs)("button",{disabled:r,className:p,onClick:c,children:[(0,e.jsx)(De,{className:"h-3 w-3"}),s==="leaf"?"Pause work":"Pause subtree"]}):null,n?(0,e.jsxs)("button",{disabled:r,className:p,onClick:l,children:[(0,e.jsx)(Me,{className:"h-3 w-3"}),s==="leaf"?"Resume work":"Resume subtree"]}):null,a?(0,e.jsxs)("button",{disabled:r,className:`${p} text-bad`,onClick:d,children:[(0,e.jsx)(de,{className:"h-3 w-3"}),"Cancel subtree..."]}):null,i?(0,e.jsxs)("button",{disabled:r,className:p,onClick:m,children:[(0,e.jsx)(je,{className:"h-3 w-3"}),"Restore subtree..."]}):null]})}o(vs,"TaskTreeControlMenuItems");function ks({open:s,onOpenChange:t,mode:n,scope:a,affectedCount:i,affectedAgentCount:r,loading:c,error:l,pending:d,valid:m,wakeAgents:p,onWakeAgentsChange:h,onRetry:x,onApply:g}){const u=n==="cancel",w=`${i} task${i===1?"":"s"}`,b=u?"Cancel subtree?":n==="restore"?"Restore subtree":a==="leaf"?"Resume work":"Resume subtree";return(0,e.jsx)(Ce,{open:s,onOpenChange:o(v=>{d||t(v)},"onOpenChange"),children:(0,e.jsxs)(ke,{showCloseButton:!d,className:"max-h-(--sz-calc-18) overflow-y-auto sm:max-w-sm",children:[(0,e.jsxs)(be,{children:[(0,e.jsx)(ye,{children:b}),(0,e.jsx)(Ne,{children:c?"Loading…":u?`${w} will be cancelled.`:`${w} will ${n==="restore"?"be restored":"resume"}.`})]}),l?(0,e.jsxs)("div",{className:"space-y-2",children:[(0,e.jsx)("p",{role:"alert",className:"text-sm text-bad",children:l}),(0,e.jsx)(f,{size:"sm",variant:"secondary",disabled:d,onClick:x,children:"Retry preview"})]}):null,u?null:(0,e.jsxs)("label",{className:"flex items-center gap-2 text-sm",children:[(0,e.jsx)("input",{type:"checkbox",checked:p,disabled:d||c||r===0,onChange:o(v=>h(v.target.checked),"onChange")}),"Wake affected agents (",r,")"]}),(0,e.jsxs)(ve,{children:[(0,e.jsx)(f,{variant:"secondary",disabled:d,onClick:o(()=>t(!1),"onClick"),children:u?"Keep tasks":"Close"}),(0,e.jsx)(f,{variant:u?"danger":"primary",disabled:d||c||!!l||!m,onClick:g,children:d?"Applying…":u?`Cancel ${w}`:n==="restore"?`Restore ${w}`:b})]})]})})}o(ks,"TaskTreeControlDialog");export{Ke as a,ze as c,gs as i,Fe as l,vs as n,Oe as o,bs as r,qe as s,ks as t,ws as u};
|