@microvac/ui 0.1.0-rc.14 → 0.1.0-rc.15
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/{ActiveAgentsPanel-C9AP9hJu.js → ActiveAgentsPanel-BEx06tMt.js} +1 -1
- package/dist/assets/{AdapterManager-CmxTUKJH.js → AdapterManager-3kEEQWFJ.js} +1 -1
- package/dist/assets/{AdvancedToolsRoute-CXsQnTei.js → AdvancedToolsRoute-CgS6B-oh.js} +1 -1
- package/dist/assets/{AgentActionButtons-DWq2OuVK.js → AgentActionButtons-Cz3jCEd7.js} +1 -1
- package/dist/assets/{AgentAdvancedTab-dhBDxF-H.js → AgentAdvancedTab-BG6ZIAuN.js} +1 -1
- package/dist/assets/{AgentBulkSettingsSheet-DYT4ovDg.js → AgentBulkSettingsSheet-BrrbvspS.js} +1 -1
- package/dist/assets/{AgentChat-r0TPOfPK.js → AgentChat-Dw9iXD6H.js} +1 -1
- package/dist/assets/{AgentDetailPage-Bc_okBuS.js → AgentDetailPage-CuVIHv_q.js} +3 -3
- package/dist/assets/{AgentIdentityChip-CB2NBXkZ.js → AgentIdentityChip-BrVCcuHQ.js} +1 -1
- package/dist/assets/{AgentRosterFilters-b7qMLv8-.js → AgentRosterFilters-GQ2bdXfW.js} +2 -2
- package/dist/assets/{Agents-BsvXy3pZ.js → Agents-clrVQnvc.js} +2 -2
- package/dist/assets/{Agents.production-BeOZmzaF.js → Agents.production-DTopo7XB.js} +2 -2
- package/dist/assets/{AnimatedDialogContent-CWshmxP2.js → AnimatedDialogContent-CDLfw-dJ.js} +1 -1
- package/dist/assets/{AppDetail-DbqENTF_.js → AppDetail-BcWBg5yW.js} +1 -1
- package/dist/assets/{AppNotConnected-BhnCqL0F.js → AppNotConnected-NgfyHZ4L.js} +1 -1
- package/dist/assets/{ApprovalDetail-B2KiYLTj.js → ApprovalDetail-Dm_1V4tC.js} +1 -1
- package/dist/assets/{Approvals-j-wRmqKj.js → Approvals-i5AB3JPj.js} +1 -1
- package/dist/assets/{AppsConnect-CcPVEZ0C.js → AppsConnect-D660Tpuo.js} +1 -1
- package/dist/assets/{AppsReview-B8eWvKkS.js → AppsReview-DdTqOisY.js} +1 -1
- package/dist/assets/{ArtifactEmptyGraphic-5mdkS5jj.js → ArtifactEmptyGraphic-DzxCruYA.js} +1 -1
- package/dist/assets/{Artifacts-Bz7Oo6VX.js → Artifacts-CkXBz6nh.js} +1 -1
- package/dist/assets/{AssigneePickerInner-DdpF7hck.js → AssigneePickerInner-BNjyABBe.js} +1 -1
- package/dist/assets/{AssistantConnection-BpaaJDc_.js → AssistantConnection-CNF6mDmO.js} +1 -1
- package/dist/assets/{AttentionInlineVerbs-DlPQVCO-.js → AttentionInlineVerbs-BiyZ1ekZ.js} +1 -1
- package/dist/assets/{AttentionQueueRow-BC6ezctS.js → AttentionQueueRow-Bh0dKHpF.js} +1 -1
- package/dist/assets/{AuditHub-BVP7LKL9.js → AuditHub-BK848cb4.js} +1 -1
- package/dist/assets/{AuditRuns-DqizHgX1.js → AuditRuns-CUdlbP7S.js} +1 -1
- package/dist/assets/{Auth-DOF0snjp.js → Auth-DDqxm5gD.js} +1 -1
- package/dist/assets/{BoardChat-BYAbDtfd.js → BoardChat-fvKqk0R7.js} +1 -1
- package/dist/assets/{BoardClaim-7y41Pr8e.js → BoardClaim-BEC5BZfz.js} +1 -1
- package/dist/assets/{BootstrapSetupUxLab-BftH1vOv.js → BootstrapSetupUxLab-CXzErrin.js} +1 -1
- package/dist/assets/{Browse-Ck01W1Yl.js → Browse-DoovSMuF.js} +1 -1
- package/dist/assets/{BudgetPolicyCard-CKhrzfgy.js → BudgetPolicyCard-BYMlczCq.js} +1 -1
- package/dist/assets/{CaseDetail-qlXKJ66D.js → CaseDetail-UMAcSH_x.js} +1 -1
- package/dist/assets/{CaseStatus-B3RiZVDH.js → CaseStatus-BI0aMl9l.js} +1 -1
- package/dist/assets/{Cases-CFV3V-5X.js → Cases-CMTkGghU.js} +1 -1
- package/dist/assets/{ChatEndpointDetail-7Hi5TJNt.js → ChatEndpointDetail-CocNEInH.js} +1 -1
- package/dist/assets/{ChatEndpointSetup-CtwgH6sg.js → ChatEndpointSetup-Cyi2tI9K.js} +1 -1
- package/dist/assets/{ChatIdentityConfirm-CXjksBwX.js → ChatIdentityConfirm-Ba3JuTX1.js} +1 -1
- package/dist/assets/{CliAuth-KVjrGMfZ.js → CliAuth-D2jnueGH.js} +1 -1
- package/dist/assets/{Companies-oeJem3De.js → Companies-K75I9dJs.js} +1 -1
- package/dist/assets/{CompanyAccess-vWT6G-n_.js → CompanyAccess-Cw6nLUhE.js} +1 -1
- package/dist/assets/{CompanyActivity-zOzzeN1B.js → CompanyActivity-BsgmVpWS.js} +1 -1
- package/dist/assets/CompanyActivity.production-w-KGxvo6.js +1 -0
- package/dist/assets/{CompanyConnections-llSEaVa2.js → CompanyConnections-yRPYSdm7.js} +1 -1
- package/dist/assets/{CompanyEnvironments-DNyyGC_S.js → CompanyEnvironments-BA7kWdOJ.js} +1 -1
- package/dist/assets/{CompanyExport-CFa-F8Es.js → CompanyExport-DfsK4b9c.js} +1 -1
- package/dist/assets/{CompanyImport-DG6qwQ8F.js → CompanyImport-DJHAsmSF.js} +1 -1
- package/dist/assets/{CompanySettings-Dv5Z3ZQi.js → CompanySettings-DwzHGXec.js} +1 -1
- package/dist/assets/{CompanySettingsPluginPage-CZk1d_0d.js → CompanySettingsPluginPage-Bpa81PF3.js} +1 -1
- package/dist/assets/{CompanySkills-CdzWhJfQ.js → CompanySkills-eTqgbqQN.js} +1 -1
- package/dist/assets/{CompanySkills.production-IoCRW5FQ.js → CompanySkills.production-CQSWfH0r.js} +1 -1
- package/dist/assets/{ConfigureBuiltInAgentModal-BwW7XQ1O.js → ConfigureBuiltInAgentModal-DgeD7t_i.js} +1 -1
- package/dist/assets/{CopyableGatewayUrl-PTn061ft.js → CopyableGatewayUrl-B6K3rOal.js} +1 -1
- package/dist/assets/{CordisPluginSettings-C_BeeGEc.js → CordisPluginSettings-DD3AnD2G.js} +1 -1
- package/dist/assets/{Costs-DhuNxwSj.js → Costs-orBM8T-a.js} +1 -1
- package/dist/assets/{CrossIssueCollaborationUxLab-ZaAXq46r.js → CrossIssueCollaborationUxLab-Bv9y9-NE.js} +1 -1
- package/dist/assets/{Dashboard-BaDnqiKo.js → Dashboard-CrSBNKX1.js} +1 -1
- package/dist/assets/{DashboardLive-D-Ed7osd.js → DashboardLive-Cg8C9RiS.js} +1 -1
- package/dist/assets/{DecisionDateChips-D3pl_mLn.js → DecisionDateChips-BLZKZH71.js} +1 -1
- package/dist/assets/{DecisionHistoryPanel-D5MzyrOh.js → DecisionHistoryPanel-yK-CP7Qg.js} +1 -1
- package/dist/assets/{DecisionQueuePage-D3UZ9oRk.js → DecisionQueuePage-BKXbERai.js} +1 -1
- package/dist/assets/{DesignGuide-COTo7ICj.js → DesignGuide-2FswNsXz.js} +1 -1
- package/dist/assets/{DesignSandboxTaskThread-CMeCSQid.js → DesignSandboxTaskThread-CGU--FXR.js} +1 -1
- package/dist/assets/{EmailConnectionAccess-kCL7obSr.js → EmailConnectionAccess-CZ5QRKyg.js} +1 -1
- package/dist/assets/{EmailEndpointSetup-BGrksR_u.js → EmailEndpointSetup-BI2vsd8Y.js} +1 -1
- package/dist/assets/{EnforcementBanner-_Eb_nK3M.js → EnforcementBanner-B-iX466h.js} +1 -1
- package/dist/assets/{EntityRow-gpsOgEtu.js → EntityRow-BsICt6pd.js} +1 -1
- package/dist/assets/{ExecutionWorkspaceDetail-DwGkH6d3.js → ExecutionWorkspaceDetail-CMqR9puh.js} +1 -1
- package/dist/assets/{ExternalAgentInviteDialog-CGid6pM9.js → ExternalAgentInviteDialog-De30ZrLP.js} +1 -1
- package/dist/assets/{FilterBar-1D-VhrvG.js → FilterBar-rCmsTtG4.js} +1 -1
- package/dist/assets/{FolderControls-CQ6kef3c.js → FolderControls-CmnB7Ap-.js} +1 -1
- package/dist/assets/{GatewayDetail-CCqekM1J.js → GatewayDetail-Duw9pJ10.js} +1 -1
- package/dist/assets/{GatewaysList-nFsRcszh.js → GatewaysList-BBhVGhRq.js} +1 -1
- package/dist/assets/{GitHubConnectionRecovery-B9sFWJup.js → GitHubConnectionRecovery-6VshLoNV.js} +1 -1
- package/dist/assets/{GoalDetail-BQ8y55P-.js → GoalDetail-CahntjlI.js} +1 -1
- package/dist/assets/{GoalTree-laRjXp0P.js → GoalTree-CU4GBFCh.js} +1 -1
- package/dist/assets/{Goals-Cm14EaeP.js → Goals-CzM2NDFR.js} +1 -1
- package/dist/assets/{InstanceAccess-DxQ-Akt_.js → InstanceAccess-CZzkE65W.js} +1 -1
- package/dist/assets/{InstanceExperimentalSettings-BxwqbXNw.js → InstanceExperimentalSettings-DWumKtOK.js} +1 -1
- package/dist/assets/{InviteLanding-Cf0L_u6s.js → InviteLanding-BIy2z50u.js} +1 -1
- package/dist/assets/{IssueChatLongThreadPerf-BfsF6FdF.js → IssueChatLongThreadPerf-D4DJvdOG.js} +1 -1
- package/dist/assets/{JoinRequestQueue-BXCdTFG_.js → JoinRequestQueue-C5rauGYm.js} +1 -1
- package/dist/assets/{Layout.production-CqzU0qMi.js → Layout.production-BSDWnupa.js} +1 -1
- package/dist/assets/{McpConnect-COWnZ9Eb.js → McpConnect-BN8ST0RS.js} +1 -1
- package/dist/assets/{MembershipAction-C9i9Sdmi.js → MembershipAction-DTjhGn-L.js} +1 -1
- package/dist/assets/{MetricCard-Bwnt3_p3.js → MetricCard-CeL9Pdn5.js} +1 -1
- package/dist/assets/{MissingPluginTabPlaceholder-B0Zxv1Kx.js → MissingPluginTabPlaceholder-CbQiSVnZ.js} +1 -1
- package/dist/assets/{NewAgent-BIlJ5Dyt.js → NewAgent-BszrNpQk.js} +1 -1
- package/dist/assets/{NewAgentDialog-CJdMxxYL.js → NewAgentDialog-U9qAcTzc.js} +1 -1
- package/dist/assets/{NewGoalDialog-B8izfKLm.js → NewGoalDialog-DqKbk4-i.js} +1 -1
- package/dist/assets/{NewProjectDialog-DXqjTYFK.js → NewProjectDialog-DrlUAF-N.js} +1 -1
- package/dist/assets/{OnboardingPrimitives-DHYBqn_0.js → OnboardingPrimitives-BkgPF4Mu.js} +1 -1
- package/dist/assets/{OnboardingWizard-DqSfZ13V.js → OnboardingWizard-CMBMcuXv.js} +1 -1
- package/dist/assets/{OrgChart.production-DrSFUf7i.js → OrgChart.production-BLczTjRj.js} +1 -1
- package/dist/assets/{PaperclipCloudOAuthHandoff-jPUvjJ8q.js → PaperclipCloudOAuthHandoff-BTtF8UPD.js} +1 -1
- package/dist/assets/{PluginManager-h3LFPaUq.js → PluginManager-CCcqlfgK.js} +1 -1
- package/dist/assets/{PluginPage-E5Im4454.js → PluginPage-B1empV69.js} +1 -1
- package/dist/assets/{PluginSettings-BBO0jAgo.js → PluginSettings-DtopaRqR.js} +1 -1
- package/dist/assets/{ProfileDetailRoute-CQBD7fms.js → ProfileDetailRoute-BqvVpBZi.js} +1 -1
- package/dist/assets/{ProfileSettings-BwnVEHLp.js → ProfileSettings-5__tVfGi.js} +1 -1
- package/dist/assets/{ProfileWizardRoute-By_SC6Gn.js → ProfileWizardRoute-vt-MRLuD.js} +1 -1
- package/dist/assets/{ProjectDetail-CbiwFBAE.js → ProjectDetail-DJ4zjube.js} +1 -1
- package/dist/assets/{ProjectRepositoryInput-DZF9bX4E.js → ProjectRepositoryInput-BJcnj3At.js} +1 -1
- package/dist/assets/{ProjectWorkspaceDetail-DPsl_4bD.js → ProjectWorkspaceDetail-DEAO3q6v.js} +1 -1
- package/dist/assets/{ProjectWorkspacesContent-COH4dOWK.js → ProjectWorkspacesContent-CZvO7p0i.js} +1 -1
- package/dist/assets/{Projects-Ch9Qu7sn.js → Projects-Dm7-zXUH.js} +1 -1
- package/dist/assets/{QuotaBar-DIFOT9Uh.js → QuotaBar-Drp3CaxX.js} +1 -1
- package/dist/assets/{RepositoryEditor-DHB1bqId.js → RepositoryEditor-BT_VAkJu.js} +1 -1
- package/dist/assets/{Responsibilities-C5O0JXXG.js → Responsibilities-DbUEtGZu.js} +1 -1
- package/dist/assets/{ResponsibilityDetail-D6NpZpkm.js → ResponsibilityDetail--S8_GOkb.js} +1 -1
- package/dist/assets/{ResponsibleUserDenialUxLab-CFrIWYwe.js → ResponsibleUserDenialUxLab-1PB3JNG0.js} +1 -1
- package/dist/assets/{ReviewQueueCard-BPC4Lm67.js → ReviewQueueCard-B8w9aXKU.js} +1 -1
- package/dist/assets/{RoutineAuditActivity-sKyzMajz.js → RoutineAuditActivity-BCo7pYe5.js} +1 -1
- package/dist/assets/{RoutineDetail-CG8HF5fp.js → RoutineDetail-C9Dwn5G9.js} +1 -1
- package/dist/assets/{RoutineRunVariablesDialog-CKh3CmLD.js → RoutineRunVariablesDialog-Baomcbe3.js} +1 -1
- package/dist/assets/{Routines-tF2qfUKo.js → Routines-Dkv4gJno.js} +1 -1
- package/dist/assets/{Routines.production-BTyj1Ljr.js → Routines.production-Cs2Y-lpt.js} +1 -1
- package/dist/assets/{RoutinesToolbar-CvUFVCGN.js → RoutinesToolbar-BNKfCrTo.js} +1 -1
- package/dist/assets/{Search-Z9D0NuS1.js → Search-CVx4cl2o.js} +1 -1
- package/dist/assets/{Secrets-DgmbLOJK.js → Secrets-C2qv2HKZ.js} +1 -1
- package/dist/assets/{SkillBinaryFile-F3_9qcaM.js → SkillBinaryFile-DDkhLlfC.js} +1 -1
- package/dist/assets/{SkillCardIcon-CXHUCMej.js → SkillCardIcon-Cp_hws0N.js} +1 -1
- package/dist/assets/{SkillFolderTree-CB3lrTIE.js → SkillFolderTree-Cv0CmfYx.js} +1 -1
- package/dist/assets/{SkillSourceTree-BbuciCo6.js → SkillSourceTree-DmjlUswf.js} +1 -1
- package/dist/assets/{SkillSources-Dlo6Cew3.js → SkillSources-nmlYypUU.js} +1 -1
- package/dist/assets/{SkillStudio-ZO-Nf7eI.js → SkillStudio-BK3y_3zr.js} +1 -1
- package/dist/assets/{SkillsNavigationTabs-B9Iqnlqt.js → SkillsNavigationTabs-DRwMP1eu.js} +1 -1
- package/dist/assets/{SpekoPhoneCallback-C4VnMiZh.js → SpekoPhoneCallback-Cqi7AIyH.js} +1 -1
- package/dist/assets/{SpekoProviderSetup-I4evPZb3.js → SpekoProviderSetup-CJI4oXk5.js} +1 -1
- package/dist/assets/{StatusCards-D0MVzbsw.js → StatusCards-DKyyY81S.js} +1 -1
- package/dist/assets/{SummarySlotCard-DUXgZPxG.js → SummarySlotCard-f3RomdZS.js} +1 -1
- package/dist/assets/{TailscaleConnector-CMhT73gj.js → TailscaleConnector-yQWLR1Ra.js} +1 -1
- package/dist/assets/{TaskChatLab-D9-KAE-7.js → TaskChatLab-Dsr7eyj4.js} +1 -1
- package/dist/assets/{TaskSummaryList-CUxieFNe.js → TaskSummaryList-eFDfK_QH.js} +1 -1
- package/dist/assets/{Timeline-BNMoRbtK.js → Timeline-BWA9dyk6.js} +1 -1
- package/dist/assets/{ToolsAdminGate-CEr0zy2T.js → ToolsAdminGate-DpBg30hQ.js} +1 -1
- package/dist/assets/{TrustPresetSection-B9YXZtkh.js → TrustPresetSection-DtWjK9Kp.js} +1 -1
- package/dist/assets/{UserProfile-D-tnW96X.js → UserProfile-C66UI5xx.js} +1 -1
- package/dist/assets/{WebhookUrlWarning-Ba_DixKh.js → WebhookUrlWarning-CDygVnDH.js} +1 -1
- package/dist/assets/{WhatNeedsMe-B-Jzj8_M.js → WhatNeedsMe-BQ82RHus.js} +1 -1
- package/dist/assets/{Workspaces-BqhDI_Bl.js → Workspaces-DrjJes30.js} +1 -1
- package/dist/assets/{abnfDiagram-YUKMZFIV-Bn9P-nUW.js → abnfDiagram-YUKMZFIV-Crkksu2D.js} +1 -1
- package/dist/assets/{architecture-WOLXFQ4H-V1ldsZlt.js → architecture-WOLXFQ4H-bHU8FW0c.js} +1 -1
- package/dist/assets/{architectureDiagram-47P4ROYG-BkYxt-Gc.js → architectureDiagram-47P4ROYG-Bj5Styf9.js} +1 -1
- package/dist/assets/{arrow-down-left-o81ENfeW.js → arrow-down-left-Ck9VQyqQ.js} +1 -1
- package/dist/assets/{blockDiagram-E7TT5TSB-BO7pPYbp.js → blockDiagram-E7TT5TSB-OeHpNCQ-.js} +1 -1
- package/dist/assets/{budgets-0Dw6TH1A.js → budgets-CAWPqcn4.js} +1 -1
- package/dist/assets/{building-complex-DciZTnys.js → building-complex-Dxiyk_pH.js} +1 -1
- package/dist/assets/{c4Diagram-CRA5TL53-D4EpmmzV.js → c4Diagram-CRA5TL53-QbK5p76P.js} +1 -1
- package/dist/assets/channel-BSmZkKA8.js +1 -0
- package/dist/assets/{chat-channels-DWyry-9M.js → chat-channels-CzTZV2fr.js} +1 -1
- package/dist/assets/{chunk-2BW5OAIV-DFXIyCJy.js → chunk-2BW5OAIV-Ckr4HfBO.js} +1 -1
- package/dist/assets/{chunk-3YJQHVM4-Dj5wEKIw.js → chunk-3YJQHVM4-C_uoPpLR.js} +1 -1
- package/dist/assets/{chunk-4EA7E6EY-5XiUVgzK.js → chunk-4EA7E6EY-BeMEfIRS.js} +1 -1
- package/dist/assets/{chunk-7TKQ45FW-D0opKcsy.js → chunk-7TKQ45FW-DiwqWHvN.js} +1 -1
- package/dist/assets/{chunk-AW2ZBBNX-DnjsTe04.js → chunk-AW2ZBBNX-Cf57K3PO.js} +1 -1
- package/dist/assets/{chunk-DBDB3WZW-DNqSQPZ0.js → chunk-DBDB3WZW-B2qouVQO.js} +1 -1
- package/dist/assets/{chunk-E2ZNV5FY-cjSf_BTz.js → chunk-E2ZNV5FY-DG8wQ_NS.js} +1 -1
- package/dist/assets/{chunk-EU5HNXII-CZYBiaSw.js → chunk-EU5HNXII-cxRrXRGV.js} +1 -1
- package/dist/assets/{chunk-FVRAUYC3-DSc0-wJA.js → chunk-FVRAUYC3-Dizswk0V.js} +1 -1
- package/dist/assets/{chunk-HJ2JQQFS-MXK0gYSP.js → chunk-HJ2JQQFS-DL4lnpSv.js} +1 -1
- package/dist/assets/{chunk-HTAEGDNF-BjDZm_5k.js → chunk-HTAEGDNF-Zxjdb6kj.js} +1 -1
- package/dist/assets/{chunk-KQW6MTUR-Bfj0tDmO.js → chunk-KQW6MTUR-BsVaJdnu.js} +1 -1
- package/dist/assets/{chunk-NTY3LDVX-Bpz5TkVb.js → chunk-NTY3LDVX-DyT9N5sM.js} +1 -1
- package/dist/assets/{chunk-VPRB5NB3-CfeHjtbb.js → chunk-VPRB5NB3-BNz5CtBn.js} +1 -1
- package/dist/assets/{chunk-XC4XBNZT-FBCWmi6K.js → chunk-XC4XBNZT-CCgIhjYS.js} +1 -1
- package/dist/assets/{circle-slash-DqKFFqfb.js → circle-slash-uNv_ha0X.js} +1 -1
- package/dist/assets/{classDiagram-v2-K4WV4PDN-DbC_J0kK.js → classDiagram-v2-K4WV4PDN-Cdh3CEl4.js} +1 -1
- package/dist/assets/{coins-BztUbqyl.js → coins-BDAh8hDQ.js} +1 -1
- package/dist/assets/{collections-BxrcELwt.js → collections-B58p51lw.js} +1 -1
- package/dist/assets/{connection-owner-D-ikSHyR.js → connection-owner-D8fNrFqC.js} +1 -1
- package/dist/assets/{cynefin-EF2NZ3EQ-COwSJ4qP.js → cynefin-EF2NZ3EQ-BkwhfqJ0.js} +1 -1
- package/dist/assets/{cynefinDiagram-3GCD6N5R-diaEJq9Y.js → cynefinDiagram-3GCD6N5R-DuGb_wq2.js} +1 -1
- package/dist/assets/{dagre-W4DXFKR2-BPAMRuIj.js → dagre-W4DXFKR2-Bxq_Mhia.js} +1 -1
- package/dist/assets/{diagram-2UJZ2QOL-BvRnO1Id.js → diagram-2UJZ2QOL-B-P_hrXV.js} +1 -1
- package/dist/assets/{diagram-OVF4WLC6-CDgBeD0m.js → diagram-OVF4WLC6-Ds0BqQWH.js} +1 -1
- package/dist/assets/{diagram-PFPMY2P6-DAw9lREG.js → diagram-PFPMY2P6-Dpqb2-Cb.js} +1 -1
- package/dist/assets/{diagram-UMYRVEAY-ZQqQn22t.js → diagram-UMYRVEAY-BJSoxjiu.js} +1 -1
- package/dist/assets/{diagram-YEKJPTXX-CoJtGgWs.js → diagram-YEKJPTXX-BxaG_9tT.js} +1 -1
- package/dist/assets/{diagram-ZIFT7M5P-qW_Zn_bO.js → diagram-ZIFT7M5P-6acvVOtc.js} +1 -1
- package/dist/assets/{dist-B2E6oBK1.js → dist-0EWXio4m.js} +1 -1
- package/dist/assets/{dist-IcdxEhjC.js → dist-BGvZP_Cl.js} +1 -1
- package/dist/assets/{dist-DXjkgaZX.js → dist-BZ7AbEhN.js} +1 -1
- package/dist/assets/{dist-_EtfntKJ.js → dist-BlosHr86.js} +1 -1
- package/dist/assets/{dist-DylHAy-6.js → dist-Bmr4uhSk.js} +1 -1
- package/dist/assets/{dist-DML0cJH3.js → dist-C6yMfMNS.js} +1 -1
- package/dist/assets/{dist-Dl94YqeS.js → dist-CMZQedYl.js} +1 -1
- package/dist/assets/{dist-DKyBHaH2.js → dist-C_N_-eaT.js} +1 -1
- package/dist/assets/{dist-CvRpZH53.js → dist-CaUbG4Hl.js} +1 -1
- package/dist/assets/{dist-ptDa9fKh.js → dist-Cn7-nxjU.js} +1 -1
- package/dist/assets/{dist-CG-phytt.js → dist-Cnj95_pX.js} +1 -1
- package/dist/assets/{dist-DbXGl-wj.js → dist-D9DR7k9k.js} +1 -1
- package/dist/assets/{dist-CjRqeLFz.js → dist-DIwsVdS2.js} +1 -1
- package/dist/assets/{dist-BCJybC91.js → dist-DVE0lLId.js} +1 -1
- package/dist/assets/{dist-CPgRB-NQ.js → dist-DkAPL4CQ.js} +1 -1
- package/dist/assets/{dist-CeSzCyeG.js → dist-Dl6N3kpQ.js} +1 -1
- package/dist/assets/{dist-DZruZxAk.js → dist-DmBvXBzK.js} +1 -1
- package/dist/assets/{dist-CdmdXwCZ.js → dist-DpgXK0aZ.js} +1 -1
- package/dist/assets/{dist-CYRzGbSY.js → dist-gMRyU9GJ.js} +1 -1
- package/dist/assets/{dist-CG6fC1Db.js → dist-jQQX2kOU.js} +1 -1
- package/dist/assets/{dist-DZIxMHOT.js → dist-lUaUoFTq.js} +1 -1
- package/dist/assets/{dist-CuwPDbnL.js → dist-qw1ZF2vD.js} +1 -1
- package/dist/assets/{dist-B6Qde8KJ.js → dist-rH4qrNAn.js} +1 -1
- package/dist/assets/{ebnfDiagram-VR2GEFS7-DA4UvKXV.js → ebnfDiagram-VR2GEFS7-Ytj3Z5qC.js} +1 -1
- package/dist/assets/{elk-IJKZMXRS-CM74d3mJ.js → elk-IJKZMXRS-CJurNqqK.js} +1 -1
- package/dist/assets/{erDiagram-O2IAPWRE-d869V0qL.js → erDiagram-O2IAPWRE-hyXckW2d.js} +1 -1
- package/dist/assets/{eventmodeling-K75KTNOO-C-oz_eyI.js → eventmodeling-K75KTNOO-D3xQujrh.js} +1 -1
- package/dist/assets/flowDiagram-OXPTDLAJ-D4ojBTuY.js +1 -0
- package/dist/assets/{folder-plus-CxWXoYCi.js → folder-plus-BJZSMzuj.js} +1 -1
- package/dist/assets/{ganttDiagram-R7TSEDQI-BBul4Kpm.js → ganttDiagram-R7TSEDQI-C8U_ITl4.js} +1 -1
- package/dist/assets/{gitGraph-VSP46ZUC-BriEZgAq.js → gitGraph-VSP46ZUC-CDeq3yKT.js} +1 -1
- package/dist/assets/{gitGraphDiagram-XJZIOB7I-I12rg8s1.js → gitGraphDiagram-XJZIOB7I-CST3EWE9.js} +1 -1
- package/dist/assets/{goals-CvMWzjH4.js → goals-BNJZ4nzg.js} +1 -1
- package/dist/assets/{index-Bt31d8ga.js → index-BJtnP7H1.js} +8 -8
- package/dist/assets/{info-OHQRW6UA-CxrcGiem.js → info-OHQRW6UA-CPvTWk7J.js} +1 -1
- package/dist/assets/{infoDiagram-5W2HQ5XZ-4Sm0LiOu.js → infoDiagram-5W2HQ5XZ-BPUiNdxI.js} +1 -1
- package/dist/assets/{ishikawaDiagram-K3B6WC7H-CKXvKV-s.js → ishikawaDiagram-K3B6WC7H-D5Z3rmaA.js} +1 -1
- package/dist/assets/{issue-detail-4PCbYpdv.js → issue-detail-CZfjXs0M.js} +3 -3
- package/dist/assets/{journeyDiagram-COXZFDF6-BHsrZLvQ.js → journeyDiagram-COXZFDF6-CEkwEYdR.js} +1 -1
- package/dist/assets/{kanban-definition-P3RFRI5V-8HhnIs_l.js → kanban-definition-P3RFRI5V-8h_R6Qjq.js} +1 -1
- package/dist/assets/{line-rrKrpB-b.js → line-Ljt_vfsb.js} +1 -1
- package/dist/assets/{link-BecLzmfo.js → link-DvgFK0mz.js} +1 -1
- package/dist/assets/{list-filter-BC3D4IoX.js → list-filter-BR4_dvwm.js} +1 -1
- package/dist/assets/{log-in-BJCGwGGT.js → log-in-Dvx9-FMC.js} +1 -1
- package/dist/assets/{mcpSkills-DRs3pGKn.js → mcpSkills-76szK_k1.js} +1 -1
- package/dist/assets/{mermaid-parser.core-DmG0b4S0.js → mermaid-parser.core-BjFu937m.js} +3 -3
- package/dist/assets/{mermaid.core-D1vILTuF.js → mermaid.core-B0t95EIS.js} +4 -4
- package/dist/assets/{mindmap-definition-LZFPQGKD-DIMpL0de.js → mindmap-definition-LZFPQGKD-TVnHYUR4.js} +1 -1
- package/dist/assets/{packet-JDAUHWVQ-BnbYht3G.js → packet-JDAUHWVQ-aNGiRWLy.js} +1 -1
- package/dist/assets/{pegDiagram-BGZESJAR-BUjtJVjT.js → pegDiagram-BGZESJAR-DDadxqWQ.js} +1 -1
- package/dist/assets/{pie-XZMESJXO-CM4VXUb-.js → pie-XZMESJXO-CydFP1hd.js} +1 -1
- package/dist/assets/{pieDiagram-CAPJLFHJ-B3v8ryvG.js → pieDiagram-CAPJLFHJ-KhdUDwDS.js} +1 -1
- package/dist/assets/{power-0mw59G-l.js → power-sYV-WuqQ.js} +1 -1
- package/dist/assets/{profile-summary-B5rPf8v-.js → profile-summary-D4LPX-Dv.js} +1 -1
- package/dist/assets/{quadrantDiagram-GDMTTRAM-Cv-dS2Rn.js → quadrantDiagram-GDMTTRAM-B1X8K2Fs.js} +1 -1
- package/dist/assets/{radar-ABXABTNO-v6yZj4Fk.js → radar-ABXABTNO-BqodkLpx.js} +1 -1
- package/dist/assets/{railroad-I3PHUGI6-D-U8Cs0m.js → railroad-I3PHUGI6-HmRKXDJj.js} +1 -1
- package/dist/assets/{railroad-abnf-LNEFI6M7-Dw3fkrVy.js → railroad-abnf-LNEFI6M7-CkBttaHp.js} +1 -1
- package/dist/assets/{railroad-ebnf-DWYD2UWJ-_ln-e3Tx.js → railroad-ebnf-DWYD2UWJ-C6DBawFA.js} +1 -1
- package/dist/assets/{railroad-peg-JR7BVNR7-Bf8u1-RZ.js → railroad-peg-JR7BVNR7-Z9df3u5o.js} +1 -1
- package/dist/assets/{railroadDiagram-SM67HX2B-Drr5UhQI.js → railroadDiagram-SM67HX2B-2vDUUppL.js} +1 -1
- package/dist/assets/{requirementDiagram-X7JNWC4A-D5ef6_ac.js → requirementDiagram-X7JNWC4A-DAuP39Hc.js} +1 -1
- package/dist/assets/{sankeyDiagram-UM26HJRW-DncJWIz_.js → sankeyDiagram-UM26HJRW-ByS54QZK.js} +1 -1
- package/dist/assets/{saved-permissions-CizWg8-P.js → saved-permissions-CPiYtxkZ.js} +1 -1
- package/dist/assets/{scroll-text-Ck6HB7eM.js → scroll-text-CVSt6aO2.js} +1 -1
- package/dist/assets/{sdk-CWyUlmcn.js → sdk-vrG4HtB4.js} +1 -1
- package/dist/assets/{search-DkTqg7ab.js → search-CG-QtPVH.js} +1 -1
- package/dist/assets/{send-CYVi50sh.js → send-CH-0xdLm.js} +1 -1
- package/dist/assets/{sequenceDiagram-ZO4K6R2Y-Cs0nGCCg.js → sequenceDiagram-ZO4K6R2Y-DvWxKTLK.js} +1 -1
- package/dist/assets/{shared-CIwISWMj.js → shared-D37zfckm.js} +1 -1
- package/dist/assets/{smoke-lab-matrix-A7ubFpfk.js → smoke-lab-matrix-C5gR81E3.js} +1 -1
- package/dist/assets/{stateDiagram-v2-TBUQTH76-Dpp3m5Wq.js → stateDiagram-v2-TBUQTH76-DtiiZIXq.js} +1 -1
- package/dist/assets/{swimlanes-N4OXWK64-NXVbx1w8.js → swimlanes-N4OXWK64-BWSEtCbX.js} +1 -1
- package/dist/assets/swimlanesDiagram-K3J5GTZL-Bl_9DvHU.js +8 -0
- package/dist/assets/{timeline-definition-YOQAKGHF-DqI-Mv2e.js → timeline-definition-YOQAKGHF-U4QcniMh.js} +1 -1
- package/dist/assets/{treeView-D4JQ5SDB-CZBlE7ya.js → treeView-D4JQ5SDB-B2tdrtsj.js} +1 -1
- package/dist/assets/{treemap-SAJKECNS-BlueznID.js → treemap-SAJKECNS-DodN8j4n.js} +1 -1
- package/dist/assets/{useAgentlessOnboardingAutoOpen-CnFwEQ-H.js → useAgentlessOnboardingAutoOpen-DSWW7Juw.js} +1 -1
- package/dist/assets/{useAuthorizationWindow-DnFQsiFj.js → useAuthorizationWindow-tg3aKEU7.js} +1 -1
- package/dist/assets/{useDateRange-9EbqkWXy.js → useDateRange-CnZQr2KO.js} +1 -1
- package/dist/assets/{useFastResponsesEnabled-D8dunm4j.js → useFastResponsesEnabled-B8tHSJ1y.js} +1 -1
- package/dist/assets/{usePageView-BiX5i8ck.js → usePageView-CtFMs34g.js} +1 -1
- package/dist/assets/{useProfilesData-0VYQ4lAT.js → useProfilesData-CWHdMSuL.js} +1 -1
- package/dist/assets/{useReviewCount-WBWxwKI3.js → useReviewCount-W_bCZ2Hz.js} +1 -1
- package/dist/assets/{useRoutineFormOptions-DnX5DBn1.js → useRoutineFormOptions-CCLMmVSF.js} +1 -1
- package/dist/assets/{useSummaryDraftStream-DPQRvaXT.js → useSummaryDraftStream-NVNYNt72.js} +1 -1
- package/dist/assets/{useTailscaleConnections-BDff6dWx.js → useTailscaleConnections-Dy52nCY3.js} +1 -1
- package/dist/assets/{usecaseDiagram-VIAY4XPW-BSDn8OaJ.js → usecaseDiagram-VIAY4XPW-kEHhqgOj.js} +1 -1
- package/dist/assets/{vennDiagram-BLWOH2XV-BBSA9KNN.js → vennDiagram-BLWOH2XV-NPJU0aCU.js} +1 -1
- package/dist/assets/{wardley-7MLQ67FV-CsT-rTZ9.js → wardley-7MLQ67FV-bUGKvIPT.js} +1 -1
- package/dist/assets/{wardleyDiagram-YMQ3BMBF-BLClsIjw.js → wardleyDiagram-YMQ3BMBF-qtUDHfhb.js} +1 -1
- package/dist/assets/{xychartDiagram-TAQBALBS-2x4wB0gq.js → xychartDiagram-TAQBALBS-C-z57aZj.js} +1 -1
- package/dist/index.html +4 -4
- package/dist/sw.js +1 -1
- package/package.json +1 -1
- package/dist/assets/CompanyActivity.production-DbaFBsM0.js +0 -1
- package/dist/assets/channel-BQh2vFIU.js +0 -1
- package/dist/assets/flowDiagram-OXPTDLAJ-Be1xLbJu.js +0 -1
- package/dist/assets/swimlanesDiagram-K3J5GTZL-Ct3LnXZt.js +0 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
var Je=Object.defineProperty;var r=(t,a)=>Je(t,"name",{value:a,configurable:!0});import{a as ke}from"./rolldown-runtime-DhZMWcEn.js";import{a as We,i as Ie,o as Xe}from"./issue-detail-4PCbYpdv.js";import{C as et,b as Ue}from"./collections-BxrcELwt.js";import{t as tt}from"./scroll-text-Ck6HB7eM.js";import{$A as st,Ap as v,E_ as ie,GS as I,Gb as E,Jb as De,Kv as at,Mb as Ee,Mi as Ce,NE as V,Np as k,O_ as re,Op as U,Pp as D,QT as nt,Um as it,ZT as $e,__ as he,ab as fe,ay as rt,cv as lt,f_ as ot,hE as ct,iD as ye,jC as dt,jb as ut,ji as mt,ki as xt,kp as $,nj as pt,oE as ht,on as Fe,pE as gt,rS as ft,rT as yt,rb as Le,uE as jt,ub as ge,vE as vt,xE as F,zE as bt}from"./index-Bt31d8ga.js";import{i as Nt,n as At}from"./googleAccessRemoval-CQIi1dvu.js";var Me={name:"circle-dot-dashed",size:24,node:[["path",{d:"M10.1 2.18a9.93 9.93 0 0 1 3.8 0",key:"1qdqn0"}],["path",{d:"M17.6 3.71a9.95 9.95 0 0 1 2.69 2.7",key:"1bq7p6"}],["path",{d:"M21.82 10.1a9.93 9.93 0 0 1 0 3.8",key:"1rlaqf"}],["path",{d:"M20.29 17.6a9.95 9.95 0 0 1-2.7 2.69",key:"1xk03u"}],["path",{d:"M13.9 21.82a9.94 9.94 0 0 1-3.8 0",key:"l7re25"}],["path",{d:"M6.4 20.29a9.95 9.95 0 0 1-2.69-2.7",key:"1v18p6"}],["path",{d:"M2.18 13.9a9.93 9.93 0 0 1 0-3.8",key:"xdo6bj"}],["path",{d:"M3.71 6.4a9.95 9.95 0 0 1 2.7-2.69",key:"1jjmaz"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]};Me.node;var wt=nt(Me),u=ke(pt(),1);function Re(t){const a=new URLSearchParams;return t.actorScope&&a.set("actorScope",t.actorScope),t.agentId&&a.set("agentId",t.agentId),t.responsibleUserId&&a.set("responsibleUserId",t.responsibleUserId),t.runId&&a.set("runId",t.runId),t.entityType&&a.set("entityType",t.entityType),t.entityId&&a.set("entityId",t.entityId),t.action&&a.set("action",t.action),t.from&&a.set("from",t.from),t.to&&a.set("to",t.to),t.actorType&&a.set("actorType",t.actorType),t.cursor&&a.set("cursor",t.cursor),t.limit!=null&&a.set("limit",String(t.limit)),a}r(Re,"buildAuditQuery");var _e={listAgentActions:r((t,a={})=>{const n=Re(a).toString();return jt.get(`/companies/${t}/audit/agent-actions${n?`?${n}`:""}`)},"listAgentActions"),exportAgentActionsCsv:r(async(t,a={})=>{const n=Re(a).toString(),l=await fetch(`/api/companies/${t}/audit/agent-actions.csv${n?`?${n}`:""}`,{credentials:"include",headers:{Accept:"text/csv"}});if(!l.ok){const d=await l.json().catch(()=>null),h=vt.recoverIfNeeded(l.status,d);if(h)return h;const o=d?.error??`Export failed: ${l.status}`;throw new Error(o)}return l.blob()},"exportAgentActionsCsv")},e=ke(st(),1),St=50,c="__all",Tt=[{value:c,label:"All actions"},{value:"issue.",label:"Tasks"},{value:"case.",label:"Cases"},{value:"agent.",label:"Agents"},{value:"heartbeat.",label:"Runs"},{value:"approval.",label:"Approvals"},{value:"project.",label:"Projects"},{value:"goal.",label:"Goals"},{value:"tool_",label:"Apps & tools"},{value:"cost.",label:"Costs"},{value:"company.",label:"Organization"}],It=[{value:c,label:"All entities"},{value:"issue",label:"Task"},{value:"case",label:"Case"},{value:"agent",label:"Agent"},{value:"heartbeat_run",label:"Run"},{value:"routine",label:"Routine"},{value:"project",label:"Project"},{value:"goal",label:"Goal"},{value:"company",label:"Organization"},{value:"tool_connection",label:"Connection"}];function Et(t){if(!t)return;const a=new Date(`${t}T00:00:00.000Z`);return Number.isNaN(a.getTime())?void 0:a.toISOString()}r(Et,"toStartIso");function Ct(t){if(!t)return;const a=new Date(`${t}T23:59:59.999Z`);return Number.isNaN(a.getTime())?void 0:a.toISOString()}r(Ct,"toEndIso");function Rt({record:t,agentMap:a,userProfileMap:n}){const l=t.agentId??(t.actorType==="agent"?t.actorId:null),d=l?a.get(l):null;if(d)return(0,e.jsxs)("span",{className:"inline-flex min-w-0 items-center gap-1.5",title:d.name,children:[(0,e.jsx)(ut,{agent:d,size:20}),(0,e.jsx)("span",{className:"truncate font-medium text-foreground",children:d.name})]});if(t.actorType==="user"&&t.actorId){const o=n.get(t.actorId);return(0,e.jsx)(Ee,{name:o?.label??"User",avatarUrl:o?.image??null,size:"sm",className:"font-medium text-foreground"})}const h=t.actorType==="plugin"?"Plugin":t.actorType==="agent"?"Agent":t.actorType==="user"?"User":"System";return(0,e.jsx)(Ee,{name:h,size:"sm",className:"font-medium text-foreground"})}r(Rt,"AuditActor");function _t({record:t}){const a=De();if(t.entityType==="case"){const o=t.entity.case;return(0,e.jsx)(E,{to:a(o?.identifier??t.entityId),className:"font-medium text-primary hover:underline",children:o?`${o.identifier} · ${o.title}`:"the case"})}const{issue:n,document:l}=t.entity,d=n?.identifier??n?.id??null;if(d)return(0,e.jsx)(E,{to:`/issues/${d}`,className:"font-medium text-primary hover:underline",children:n?.identifier?`${n.identifier}${n.title?` · ${n.title}`:""}`:"the task"});if(l)return(0,e.jsx)("span",{className:"font-medium text-foreground",children:l.key});const h=t.entityType==="tool_connection"?t.entityId:typeof t.details?.connectionId=="string"?t.details.connectionId:null;return h?(0,e.jsx)(E,{to:`/apps/${h}/permissions`,className:"font-medium text-primary hover:underline",children:Ie("tool_connection",t.details)}):(0,e.jsx)("span",{className:"text-muted-foreground",children:Ie(t.entityType,t.details)})}r(_t,"AuditEntityNode");function kt(t){return t.action==="tool_connection.archived"||t.action==="tool_connection.grant_revoked"?(Nt(t.details?.providerAccess,t.action==="tool_connection.grant_revoked"?"credentials":"connection")??At(t.details?.signInRemoval))?.body??null:We(t.action,t.details)}r(kt,"auditOutcome");function Ut({record:t,agentMap:a,userProfileMap:n,casesEnabled:l}){const d=Xe(t.action,t.details,{agentMap:a,userProfileMap:n}),h=kt(t),o=t.responsibleUserId?n.get(t.responsibleUserId):null,y=!!(t.responsibleUserId&&!(t.actorType==="user"&&t.actorId===t.responsibleUserId)),b=o?.label??(t.responsibleUserId?"a user":null),j=t.entity.comment?.excerpt?.trim(),A=t.entity.issue&&t.entity.document?t.entity.document.key:null,x=l&&t.action.startsWith("case.handoff_")?t.details?.workflowTransition:null;return(0,e.jsx)("li",{className:"px-4 py-3 text-sm",children:(0,e.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,e.jsxs)("div",{className:"min-w-0 space-y-1",children:[(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-x-1.5 gap-y-1 text-foreground",children:[(0,e.jsx)(Rt,{record:t,agentMap:a,userProfileMap:n}),(0,e.jsx)("span",{className:"text-muted-foreground",children:d}),(0,e.jsx)(_t,{record:t})]}),h?(0,e.jsx)("p",{className:"text-muted-foreground",children:h}):null,j?(0,e.jsxs)("p",{className:"line-clamp-2 border-l-2 border-border pl-2 text-muted-foreground",children:["“",j,"”"]}):null,x?.from&&x?.to?(0,e.jsxs)("p",{className:"text-xs text-muted-foreground",children:[x.from.name??"Case instructions",x.from.phase?` · ${x.from.phase}`:""," → ",x.to.name??"Case instructions"," · ",x.to.phase]}):null,A?(0,e.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Document ",(0,e.jsx)("span",{className:"font-mono text-(length:--text-micro)",children:A})]}):null,(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-xs text-muted-foreground",children:[y&&b?(0,e.jsxs)("span",{className:"inline-flex items-center rounded-full bg-muted px-2 py-0.5",children:["on behalf of ",b]}):null,t.runId&&t.agentId?(0,e.jsx)(E,{to:`/agents/${t.agentId}/runs/${t.runId}`,className:"text-primary hover:underline",children:"View run"}):null,(0,e.jsx)("span",{className:"font-mono text-(length:--text-micro) opacity-70",children:t.action})]})]}),(0,e.jsx)("time",{className:"shrink-0 whitespace-nowrap text-xs text-muted-foreground",dateTime:t.createdAt,title:new Date(t.createdAt).toLocaleString(),children:ye(t.createdAt)})]})})}r(Ut,"AuditRow");function Dt(){return(0,e.jsx)(ie,{children:(0,e.jsxs)(re,{className:"flex flex-col items-center gap-3 py-14 text-center",children:[(0,e.jsx)(dt,{className:"h-10 w-10 text-muted-foreground/50"}),(0,e.jsxs)("div",{children:[(0,e.jsx)("p",{className:"text-sm font-medium text-foreground",children:"Agent audit is a Microvac Enterprise view"}),(0,e.jsxs)("p",{className:"mx-auto mt-1 max-w-md text-sm text-muted-foreground",children:["The agent audit log gives you a searchable, exportable record of everything your agents did — every comment, task change, approval, and run — with the responsible person for each action. Ask an administrator to grant you the"," ",(0,e.jsx)("span",{className:"font-mono text-(length:--text-micro)",children:"audit:view_agent_actions"})," ","permission to view it."]})]})]})})}r(Dt,"AuditUpsell");function Qt({companyId:t,lockedAgentId:a,lockedRunId:n,lockedEntity:l,hideHeader:d,mode:h,onModeChange:o,actionDomain:y,onActionDomainChange:b,entityType:j,onEntityTypeChange:A,entityId:x,onEntityIdChange:Q,onClearFilters:G}){const oe=De(),{pushToast:L}=lt(),[w,M]=(0,u.useState)(c),[i,f]=(0,u.useState)(c),[q,N]=(0,u.useState)(c),Z=y??q,qe=r(s=>{N(s),b?.(s)},"setActionDomain"),[Pe,je]=(0,u.useState)(c),C=j??Pe,ze=r(s=>{je(s),A?.(s)},"setEntityType"),[Be,ve]=(0,u.useState)(""),H=x??Be,[ce,Y]=(0,u.useState)(H);(0,u.useEffect)(()=>Y(H),[H]);const de=r(s=>{ve(s),Y(s),Q?.(s)},"setEntityId"),[J,be]=(0,u.useState)(""),[W,Ne]=(0,u.useState)(""),[Ae,we]=(0,u.useState)(!1),[X,Se]=(0,u.useState)(!1),ue=F({queryKey:I.agents.list(t),queryFn:r(()=>Le.list(t),"queryFn")}),me=F({queryKey:I.access.companyUserDirectory(t),queryFn:r(()=>rt.listUserDirectory(t),"queryFn")}),Oe=(0,u.useMemo)(()=>new Map((ue.data??[]).map(s=>[s.id,s])),[ue.data]),Ve=(0,u.useMemo)(()=>ot(me.data?.users),[me.data]),S=a||n?"agents":h??"all",T=!!(a||n||l),m={actorScope:S,agentId:a??(w===c?void 0:w),runId:n,responsibleUserId:i===c?void 0:i,action:Z===c?void 0:Z,entityType:l?.type??(C===c?void 0:C),entityId:l?.id??(C==="case"&&H.trim()||void 0),from:Et(J),to:Ct(W)},ee=!!(!a&&w!==c||i!==c||Z!==c||C!==c||J||W),Ke=!T&&(w!==c||i!==c),p=et({queryKey:I.audit.agentActions(t,{actorScope:m.actorScope,agentId:m.agentId,runId:m.runId,responsibleUserId:m.responsibleUserId,action:m.action,entityType:m.entityType,entityId:m.entityId,from:m.from,to:m.to}),queryFn:r(({pageParam:s})=>_e.listAgentActions(t,{...m,limit:St,cursor:s??void 0}),"queryFn"),initialPageParam:null,getNextPageParam:r(s=>s.nextCursor??void 0,"getNextPageParam")}),R=ge(p),xe=p.error instanceof gt&&p.error.status===403,te=p.data?.pages.some(s=>s.accessTier==="basic")??!1,Qe=p.data?.pages.some(s=>s.accessTier==="full")??!1,P=(0,u.useMemo)(()=>{const s=p.data?.pages??[];return(te?s.filter(_=>_.accessTier!=="full"):s).flatMap(_=>_.items)},[p.data,te]),{data:Ge}=F({queryKey:I.instance.experimentalSettings,queryFn:r(()=>at.getExperimental(),"queryFn"),enabled:P.some(s=>!!s.details?.workflowTransition)}),z=te?"basic":p.data?.pages[0]?.accessTier,se=l?.type==="case"?P.find(s=>s.entity.case)?.entity.case:null,ae=te&&Qe,pe=a||n?!0:z==="full",Ze=!!(ae&&X&&!p.isFetching),ne=!!(!T&&!Ze&&(xe&&Ke||ae)),B=!!(xe&&!T&&S==="agents"&&o),He=!!(!T&&o&&!B);(0,u.useEffect)(()=>{B&&o?.("all")},[B,o]),(0,u.useEffect)(()=>{!T&&(z==="basic"||ne)&&(M(c),f(c))},[z,T,ne]),(0,u.useEffect)(()=>{if(!ae){X&&Se(!1);return}X||(Se(!0),p.refetch())},[X,p,ae]);const Te=r(()=>{M(c),f(c),N(c),je(c),ve(""),Y(""),be(""),Ne(""),G?G():(b?.(c),A?.(c),Q?.(""))},"clearFilters"),Ye=r(async()=>{we(!0);try{const s=await _e.exportAgentActionsCsv(t,{actorScope:m.actorScope,agentId:m.agentId,runId:m.runId,responsibleUserId:m.responsibleUserId,action:m.action,entityType:m.entityType,entityId:m.entityId,from:m.from,to:m.to}),_=URL.createObjectURL(s),O=document.createElement("a");O.href=_,O.download=`${S==="agents"?"agent-audit":"activity"}-${t}.csv`,document.body.appendChild(O),O.click(),O.remove(),window.setTimeout(()=>URL.revokeObjectURL(_),5e3),L({title:"Audit exported",body:"Your CSV download has started.",tone:"success"})}catch(s){L({title:"Export failed",body:ct(s,{action:"export the audit log"}).body,tone:"error"})}finally{we(!1)}},"handleExport");return xe&&!ne&&!B?(0,e.jsx)(Dt,{}):(0,e.jsxs)("div",{className:"space-y-4",children:[d?null:(0,e.jsx)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:(0,e.jsxs)("div",{children:[(0,e.jsx)("h2",{className:"text-lg font-semibold text-foreground",children:"Activity"}),(0,e.jsxs)("p",{className:"mt-1 grid max-w-2xl text-sm text-muted-foreground",children:[(0,e.jsx)("span",{className:"col-start-1 row-start-1",style:{visibility:S==="agents"?"hidden":"visible"},children:"Everything happening in your organization, newest first — people, agents, and the system. Each line is one recorded action."}),(0,e.jsx)("span",{className:"col-start-1 row-start-1",style:{visibility:S==="agents"?"visible":"hidden"},children:"Every recorded agent action, newest first — with the responsible person and run behind each one."})]})]})}),He?(0,e.jsx)(xt,{"data-canonical-toolbar":"audit-scope",value:S,onValueChange:r(s=>o?.(s),"onValueChange"),children:(0,e.jsx)("div",{className:"design-view-toggle",children:(0,e.jsxs)(mt,{"aria-label":"Activity scope",children:[(0,e.jsx)(Ce,{value:"all",children:"Activity"}),(0,e.jsx)(Ce,{value:"agents",disabled:z==="basic",title:z==="basic"?"Agent Actions requires audit access":void 0,children:"Agent Actions"})]})})}):null,T?(0,e.jsx)("div",{className:"border-y border-border px-1 py-2 text-xs text-muted-foreground",children:n?`Scoped to run ${n.slice(0,8)}`:a?"Scoped to one agent":se?(0,e.jsxs)(e.Fragment,{children:["Case ",(0,e.jsxs)(E,{to:oe(se.identifier),className:"font-medium text-primary hover:underline",children:[se.identifier," · ",se.title]})]}):`Scoped to ${l?.label??l?.type??"entity"}`}):null,(0,e.jsxs)("div",{"data-canonical-toolbar":"audit-activity",role:"toolbar","aria-label":"Audit filters",className:"flex flex-wrap items-end gap-3 border-y border-border py-3",children:[pe&&!a&&!n?(0,e.jsxs)("label",{className:"grid gap-1 text-(length:--text-micro) font-medium text-muted-foreground",children:[(0,e.jsx)("span",{children:"Agent"}),(0,e.jsxs)(U,{value:w,onValueChange:M,children:[(0,e.jsx)(k,{className:"w-40",children:(0,e.jsx)(D,{placeholder:"Agent"})}),(0,e.jsxs)($,{children:[(0,e.jsx)(v,{value:c,children:"All agents"}),(ue.data??[]).map(s=>(0,e.jsx)(v,{value:s.id,children:s.name},s.id))]})]})]}):null,pe?(0,e.jsxs)("label",{className:"grid gap-1 text-(length:--text-micro) font-medium text-muted-foreground",children:[(0,e.jsx)("span",{children:"Responsible user"}),(0,e.jsxs)(U,{value:i,onValueChange:f,children:[(0,e.jsx)(k,{className:"w-52",children:(0,e.jsx)(D,{placeholder:"Responsible user"})}),(0,e.jsxs)($,{children:[(0,e.jsx)(v,{value:c,children:"All responsible users"}),(me.data?.users??[]).map(s=>(0,e.jsx)(v,{value:s.principalId,children:s.user?.name??s.user?.email??s.principalId.slice(0,8)},s.principalId))]})]})]}):null,(0,e.jsxs)("label",{className:"grid gap-1 text-(length:--text-micro) font-medium text-muted-foreground",children:[(0,e.jsx)("span",{children:"Action"}),(0,e.jsxs)(U,{value:Z,onValueChange:qe,children:[(0,e.jsx)(k,{className:"w-40",children:(0,e.jsx)(D,{placeholder:"Action"})}),(0,e.jsx)($,{children:Tt.map(s=>(0,e.jsx)(v,{value:s.value,children:s.label},s.value))})]})]}),l?null:(0,e.jsxs)("label",{className:"grid gap-1 text-(length:--text-micro) font-medium text-muted-foreground",children:[(0,e.jsx)("span",{children:"Entity"}),(0,e.jsxs)(U,{value:C,onValueChange:ze,children:[(0,e.jsx)(k,{className:"w-40",children:(0,e.jsx)(D,{placeholder:"Entity"})}),(0,e.jsx)($,{children:It.map(s=>(0,e.jsx)(v,{value:s.value,children:s.label},s.value))})]})]}),!l&&C==="case"?(0,e.jsxs)("label",{className:"grid gap-1 text-(length:--text-micro) font-medium text-muted-foreground",children:[(0,e.jsx)("span",{children:"Case"}),(0,e.jsx)(he,{type:"search","aria-label":"Case ID or identifier",placeholder:"CAS-C1",value:ce,onChange:r(s=>{Y(s.target.value),s.target.value||de("")},"onChange"),onBlur:r(()=>de(ce.trim()),"onBlur"),onKeyDown:r(s=>{s.key==="Enter"&&(s.preventDefault(),de(ce.trim()))},"onKeyDown"),className:"w-44 font-mono"})]}):null,(0,e.jsxs)("label",{className:"grid gap-1 text-(length:--text-micro) font-medium text-muted-foreground",children:[(0,e.jsx)("span",{children:"From"}),(0,e.jsx)(he,{type:"date","aria-label":"From date",value:J,max:W||void 0,onChange:r(s=>be(s.target.value),"onChange"),className:"w-36"})]}),(0,e.jsxs)("label",{className:"grid gap-1 text-(length:--text-micro) font-medium text-muted-foreground",children:[(0,e.jsx)("span",{children:"To"}),(0,e.jsx)(he,{type:"date","aria-label":"To date",value:W,min:J||void 0,onChange:r(s=>Ne(s.target.value),"onChange"),className:"w-36"})]}),ee?(0,e.jsx)(V,{variant:"ghost",size:"sm",onClick:Te,children:"Clear filters"}):null,pe?(0,e.jsxs)(V,{variant:"outline",size:"sm",className:"ml-auto",onClick:Ye,disabled:Ae||p.isLoading||P.length===0,children:[(0,e.jsx)(yt,{className:"mr-1.5 h-4 w-4"}),Ae?"Exporting…":"Export CSV"]}):null]}),ne||B?(0,e.jsx)(ie,{children:(0,e.jsx)(re,{className:"py-14 text-center text-sm text-muted-foreground",children:"Refreshing audit access…"})}):R.kind==="loading"||R.kind==="reconnecting"?(0,e.jsx)(ie,{children:(0,e.jsx)(re,{className:"py-14 text-center text-sm text-muted-foreground",children:"Loading…"})}):R.kind==="error"?(0,e.jsx)(fe,{error:R.error,action:"load the audit log",onRetry:R.retry,retrying:R.isFetching}):P.length===0?(0,e.jsx)(ie,{children:(0,e.jsxs)(re,{className:"flex flex-col items-center gap-3 py-14 text-center",children:[(0,e.jsx)(tt,{className:"h-10 w-10 text-muted-foreground/40"}),(0,e.jsxs)("div",{children:[(0,e.jsx)("p",{className:"text-sm font-medium text-foreground",children:ee?"No actions match these filters":"Nothing here yet"}),(0,e.jsx)("p",{className:"mt-1 max-w-md text-sm text-muted-foreground",children:ee?"Try a wider date range or different filters.":S==="agents"?"As soon as your agents start doing things, their actions show up here.":"As soon as anyone in your organization does something, it shows up here."})]}),ee?(0,e.jsx)(V,{variant:"outline",size:"sm",onClick:Te,children:"Clear filters"}):null]})}):(0,e.jsx)("div",{className:"border-y border-border",children:(0,e.jsx)("ul",{className:bt("divide-y divide-border"),"aria-label":"Audit activity",children:P.map(s=>(0,e.jsx)(Ut,{record:s,agentMap:Oe,userProfileMap:Ve,casesEnabled:Ge?.enableCases===!0},s.id))})}),p.hasNextPage?(0,e.jsx)("div",{className:"flex justify-center",children:(0,e.jsx)(V,{variant:"outline",size:"sm",onClick:r(()=>p.fetchNextPage(),"onClick"),disabled:p.isFetchingNextPage,children:p.isFetchingNextPage?"Loading…":"Load more"})}):null,(0,e.jsx)("p",{className:"text-xs text-muted-foreground",children:"Recorded by Microvac — entries can't be edited. Sensitive values are never stored."})]})}r(Qt,"AuditFeed");var g="__all",le=200;function $t(t){const a=t.resultJson,n=a?.summary??a?.result??t.error;return typeof n=="string"&&n.trim()?n.trim():null}r($t,"runSummary");function Ft(t){const a=t.startedAt?new Date(t.startedAt).getTime():null,n=t.finishedAt?new Date(t.finishedAt).getTime():null;if(a==null||n==null||!Number.isFinite(a)||!Number.isFinite(n))return null;const l=Math.max(0,Math.round((n-a)/1e3));return l<60?`${l}s`:`${Math.floor(l/60)}m ${l%60}s`}r(Ft,"runDuration");function K(t){return t.replaceAll("_"," ")}r(K,"readableSource");function Lt(t){return t.linkedIssue?.title??t.trigger?.label??"Routine run"}r(Lt,"routineRunTitle");function Mt({runs:t,view:a}){return a.kind==="loading"||a.kind==="reconnecting"?(0,e.jsx)("div",{className:"border-y border-border py-14 text-center text-sm text-muted-foreground",children:"Loading routine runs…"}):a.kind==="error"?(0,e.jsx)(fe,{error:a.error,action:"load routine runs",onRetry:a.retry,retrying:a.isFetching}):t.length===0?(0,e.jsx)(Fe,{icon:$e,message:"No routine runs yet."}):(0,e.jsxs)("div",{className:"space-y-4",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("h2",{className:"text-lg font-semibold text-foreground",children:"Routine runs"}),(0,e.jsx)("p",{className:"mt-1 max-w-2xl text-sm text-muted-foreground",children:"Executions created by this routine, newest first."})]}),(0,e.jsx)("ul",{className:"divide-y divide-border border-y border-border","aria-label":"Routine runs",children:t.map(n=>{const l=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:"min-w-0",children:[(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,e.jsx)("span",{className:"font-medium text-foreground",children:Lt(n)}),(0,e.jsx)(Ue,{status:n.status})]}),(0,e.jsx)("p",{className:"mt-1 truncate text-sm text-muted-foreground",children:n.trigger?.label??K(n.source)})]}),(0,e.jsxs)("div",{className:"flex shrink-0 items-center gap-2 text-xs text-muted-foreground sm:justify-end",children:[(0,e.jsx)("span",{className:"capitalize",children:K(n.source)}),(0,e.jsx)("time",{dateTime:new Date(n.triggeredAt).toISOString(),children:ye(n.triggeredAt)})]})]}),d="flex flex-col gap-2 px-1 py-3 text-inherit no-underline transition-colors hover:bg-muted/50 sm:flex-row sm:items-start sm:justify-between sm:px-3";return(0,e.jsx)("li",{children:n.linkedIssue?(0,e.jsx)(E,{to:`/issues/${n.linkedIssue.identifier??n.linkedIssue.id}`,className:d,children:l}):(0,e.jsx)("div",{className:d,children:l})},n.id)})}),(0,e.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Showing the ",le," most recent routine runs."]})]})}r(Mt,"RoutineScopedRuns");function Gt({companyId:t,routineId:a,lockedAgentId:n,hideHeader:l=!1}){const[d,h]=ht(),o=n??d.get("agentId")??g,y=d.get("runStatus")??g,b=F({queryKey:I.agents.list(t),queryFn:r(()=>Le.list(t),"queryFn"),enabled:!a}),j=F({queryKey:I.audit.runs(t,o===g?null:o),queryFn:r(()=>ft.list(t,o===g?void 0:o,le,{summary:!0}),"queryFn"),refetchInterval:15e3,enabled:!a}),A=F({queryKey:[...I.routines.runs(a??""),"audit"],queryFn:r(()=>it.listRuns(a,le),"queryFn"),enabled:!!a,refetchInterval:15e3}),x=ge(j),Q=ge(A),G=(0,u.useMemo)(()=>new Map((b.data??[]).map(i=>[i.id,i])),[b.data]),oe=(0,u.useMemo)(()=>Array.from(new Set((j.data??[]).map(i=>i.status))).sort(),[j.data]),L=(0,u.useMemo)(()=>(j.data??[]).filter(i=>y===g||i.status===y),[j.data,y]),w=r((i,f)=>{h(q=>{const N=new URLSearchParams(q);return f===g?N.delete(i):N.set(i,f),N},{replace:!0})},"updateFilter"),M=r(()=>{h(i=>{const f=new URLSearchParams(i);return f.delete("agentId"),f.delete("runStatus"),f},{replace:!0})},"clearFilters");return a?(0,e.jsx)(Mt,{runs:A.data??[],view:Q}):(0,e.jsxs)("div",{className:"space-y-4",children:[l?null:(0,e.jsxs)("div",{children:[(0,e.jsx)("h2",{className:"text-lg font-semibold text-foreground",children:"Runs"}),(0,e.jsx)("p",{className:"mt-1 max-w-2xl text-sm text-muted-foreground",children:"Recent agent executions across the organization. Open a run to inspect its transcript, output, and task context."})]}),(0,e.jsxs)("div",{"data-canonical-toolbar":"audit-runs",role:"toolbar","aria-label":"Audit filters",className:"flex flex-wrap items-end gap-3 border-y border-border py-3",children:[n?null:(0,e.jsxs)("label",{className:"grid gap-1 text-(length:--text-micro) font-medium text-muted-foreground",children:[(0,e.jsx)("span",{children:"Agent"}),(0,e.jsxs)(U,{value:o,onValueChange:r(i=>w("agentId",i),"onValueChange"),children:[(0,e.jsx)(k,{className:"w-48",children:(0,e.jsx)(D,{placeholder:"All agents"})}),(0,e.jsxs)($,{children:[(0,e.jsx)(v,{value:g,children:"All agents"}),(b.data??[]).map(i=>(0,e.jsx)(v,{value:i.id,children:i.name},i.id))]})]})]}),(0,e.jsxs)("label",{className:"grid gap-1 text-(length:--text-micro) font-medium text-muted-foreground",children:[(0,e.jsx)("span",{children:"Status"}),(0,e.jsxs)(U,{value:y,onValueChange:r(i=>w("runStatus",i),"onValueChange"),children:[(0,e.jsx)(k,{className:"w-40",children:(0,e.jsx)(D,{placeholder:"All statuses"})}),(0,e.jsxs)($,{children:[(0,e.jsx)(v,{value:g,children:"All statuses"}),oe.map(i=>(0,e.jsx)(v,{value:i,children:K(i)},i))]})]})]}),!n&&o!==g||y!==g?(0,e.jsx)(V,{variant:"ghost",size:"sm",onClick:M,children:"Clear filters"}):null]}),x.kind==="loading"||x.kind==="reconnecting"?(0,e.jsx)("div",{className:"border-y border-border py-14 text-center text-sm text-muted-foreground",children:"Loading runs…"}):x.kind==="error"?(0,e.jsx)(fe,{error:x.error,action:"load runs",onRetry:x.retry,retrying:x.isFetching}):L.length===0?(0,e.jsx)(Fe,{icon:o!==g||y!==g?wt:$e,message:o!==g||y!==g?"No runs match these filters.":"No runs yet."}):(0,e.jsx)("ul",{className:"divide-y divide-border border-y border-border","aria-label":"Recent runs",children:L.map(i=>{const f=G.get(i.agentId),q=$t(i),N=Ft(i);return(0,e.jsx)("li",{children:(0,e.jsxs)(E,{to:`/agents/${i.agentId}/runs/${i.id}`,className:"flex flex-col gap-2 px-1 py-3 text-inherit no-underline transition-colors hover:bg-muted/50 sm:flex-row sm:items-start sm:justify-between sm:px-3",children:[(0,e.jsxs)("div",{className:"min-w-0",children:[(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,e.jsx)("span",{className:"font-medium text-foreground",children:f?.name??"Unknown agent"}),(0,e.jsx)("span",{className:"font-mono text-(length:--text-micro) text-muted-foreground",children:i.id.slice(0,8)}),(0,e.jsx)(Ue,{status:i.status})]}),(0,e.jsx)("p",{className:"mt-1 truncate text-sm text-muted-foreground",children:q??`${K(i.invocationSource)} run`})]}),(0,e.jsxs)("div",{className:"flex shrink-0 items-center gap-2 text-xs text-muted-foreground sm:justify-end",children:[(0,e.jsx)("span",{className:"capitalize",children:K(i.invocationSource)}),N?(0,e.jsx)("span",{children:N}):null,(0,e.jsx)("time",{dateTime:new Date(i.createdAt).toISOString(),children:ye(i.createdAt)})]})]})},i.id)})}),(0,e.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Showing the ",le," most recent runs."]})]})}r(Gt,"AuditRuns");export{Qt as n,Gt as t};
|
|
1
|
+
var Je=Object.defineProperty;var r=(t,a)=>Je(t,"name",{value:a,configurable:!0});import{a as ke}from"./rolldown-runtime-DhZMWcEn.js";import{a as We,i as Ie,o as Xe}from"./issue-detail-CZfjXs0M.js";import{C as et,b as Ue}from"./collections-B58p51lw.js";import{t as tt}from"./scroll-text-CVSt6aO2.js";import{$A as st,Ap as v,E_ as ie,GS as I,Gb as E,Jb as De,Kv as at,Mb as Ee,Mi as Ce,NE as V,Np as k,O_ as re,Op as U,Pp as D,QT as nt,Um as it,ZT as $e,__ as he,ab as fe,ay as rt,cv as lt,f_ as ot,hE as ct,iD as ye,jC as dt,jb as ut,ji as mt,ki as xt,kp as $,nj as pt,oE as ht,on as Fe,pE as gt,rS as ft,rT as yt,rb as Le,uE as jt,ub as ge,vE as vt,xE as F,zE as bt}from"./index-BJtnP7H1.js";import{i as Nt,n as At}from"./googleAccessRemoval-CQIi1dvu.js";var Me={name:"circle-dot-dashed",size:24,node:[["path",{d:"M10.1 2.18a9.93 9.93 0 0 1 3.8 0",key:"1qdqn0"}],["path",{d:"M17.6 3.71a9.95 9.95 0 0 1 2.69 2.7",key:"1bq7p6"}],["path",{d:"M21.82 10.1a9.93 9.93 0 0 1 0 3.8",key:"1rlaqf"}],["path",{d:"M20.29 17.6a9.95 9.95 0 0 1-2.7 2.69",key:"1xk03u"}],["path",{d:"M13.9 21.82a9.94 9.94 0 0 1-3.8 0",key:"l7re25"}],["path",{d:"M6.4 20.29a9.95 9.95 0 0 1-2.69-2.7",key:"1v18p6"}],["path",{d:"M2.18 13.9a9.93 9.93 0 0 1 0-3.8",key:"xdo6bj"}],["path",{d:"M3.71 6.4a9.95 9.95 0 0 1 2.7-2.69",key:"1jjmaz"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]};Me.node;var wt=nt(Me),u=ke(pt(),1);function Re(t){const a=new URLSearchParams;return t.actorScope&&a.set("actorScope",t.actorScope),t.agentId&&a.set("agentId",t.agentId),t.responsibleUserId&&a.set("responsibleUserId",t.responsibleUserId),t.runId&&a.set("runId",t.runId),t.entityType&&a.set("entityType",t.entityType),t.entityId&&a.set("entityId",t.entityId),t.action&&a.set("action",t.action),t.from&&a.set("from",t.from),t.to&&a.set("to",t.to),t.actorType&&a.set("actorType",t.actorType),t.cursor&&a.set("cursor",t.cursor),t.limit!=null&&a.set("limit",String(t.limit)),a}r(Re,"buildAuditQuery");var _e={listAgentActions:r((t,a={})=>{const n=Re(a).toString();return jt.get(`/companies/${t}/audit/agent-actions${n?`?${n}`:""}`)},"listAgentActions"),exportAgentActionsCsv:r(async(t,a={})=>{const n=Re(a).toString(),l=await fetch(`/api/companies/${t}/audit/agent-actions.csv${n?`?${n}`:""}`,{credentials:"include",headers:{Accept:"text/csv"}});if(!l.ok){const d=await l.json().catch(()=>null),h=vt.recoverIfNeeded(l.status,d);if(h)return h;const o=d?.error??`Export failed: ${l.status}`;throw new Error(o)}return l.blob()},"exportAgentActionsCsv")},e=ke(st(),1),St=50,c="__all",Tt=[{value:c,label:"All actions"},{value:"issue.",label:"Tasks"},{value:"case.",label:"Cases"},{value:"agent.",label:"Agents"},{value:"heartbeat.",label:"Runs"},{value:"approval.",label:"Approvals"},{value:"project.",label:"Projects"},{value:"goal.",label:"Goals"},{value:"tool_",label:"Apps & tools"},{value:"cost.",label:"Costs"},{value:"company.",label:"Organization"}],It=[{value:c,label:"All entities"},{value:"issue",label:"Task"},{value:"case",label:"Case"},{value:"agent",label:"Agent"},{value:"heartbeat_run",label:"Run"},{value:"routine",label:"Routine"},{value:"project",label:"Project"},{value:"goal",label:"Goal"},{value:"company",label:"Organization"},{value:"tool_connection",label:"Connection"}];function Et(t){if(!t)return;const a=new Date(`${t}T00:00:00.000Z`);return Number.isNaN(a.getTime())?void 0:a.toISOString()}r(Et,"toStartIso");function Ct(t){if(!t)return;const a=new Date(`${t}T23:59:59.999Z`);return Number.isNaN(a.getTime())?void 0:a.toISOString()}r(Ct,"toEndIso");function Rt({record:t,agentMap:a,userProfileMap:n}){const l=t.agentId??(t.actorType==="agent"?t.actorId:null),d=l?a.get(l):null;if(d)return(0,e.jsxs)("span",{className:"inline-flex min-w-0 items-center gap-1.5",title:d.name,children:[(0,e.jsx)(ut,{agent:d,size:20}),(0,e.jsx)("span",{className:"truncate font-medium text-foreground",children:d.name})]});if(t.actorType==="user"&&t.actorId){const o=n.get(t.actorId);return(0,e.jsx)(Ee,{name:o?.label??"User",avatarUrl:o?.image??null,size:"sm",className:"font-medium text-foreground"})}const h=t.actorType==="plugin"?"Plugin":t.actorType==="agent"?"Agent":t.actorType==="user"?"User":"System";return(0,e.jsx)(Ee,{name:h,size:"sm",className:"font-medium text-foreground"})}r(Rt,"AuditActor");function _t({record:t}){const a=De();if(t.entityType==="case"){const o=t.entity.case;return(0,e.jsx)(E,{to:a(o?.identifier??t.entityId),className:"font-medium text-primary hover:underline",children:o?`${o.identifier} · ${o.title}`:"the case"})}const{issue:n,document:l}=t.entity,d=n?.identifier??n?.id??null;if(d)return(0,e.jsx)(E,{to:`/issues/${d}`,className:"font-medium text-primary hover:underline",children:n?.identifier?`${n.identifier}${n.title?` · ${n.title}`:""}`:"the task"});if(l)return(0,e.jsx)("span",{className:"font-medium text-foreground",children:l.key});const h=t.entityType==="tool_connection"?t.entityId:typeof t.details?.connectionId=="string"?t.details.connectionId:null;return h?(0,e.jsx)(E,{to:`/apps/${h}/permissions`,className:"font-medium text-primary hover:underline",children:Ie("tool_connection",t.details)}):(0,e.jsx)("span",{className:"text-muted-foreground",children:Ie(t.entityType,t.details)})}r(_t,"AuditEntityNode");function kt(t){return t.action==="tool_connection.archived"||t.action==="tool_connection.grant_revoked"?(Nt(t.details?.providerAccess,t.action==="tool_connection.grant_revoked"?"credentials":"connection")??At(t.details?.signInRemoval))?.body??null:We(t.action,t.details)}r(kt,"auditOutcome");function Ut({record:t,agentMap:a,userProfileMap:n,casesEnabled:l}){const d=Xe(t.action,t.details,{agentMap:a,userProfileMap:n}),h=kt(t),o=t.responsibleUserId?n.get(t.responsibleUserId):null,y=!!(t.responsibleUserId&&!(t.actorType==="user"&&t.actorId===t.responsibleUserId)),b=o?.label??(t.responsibleUserId?"a user":null),j=t.entity.comment?.excerpt?.trim(),A=t.entity.issue&&t.entity.document?t.entity.document.key:null,x=l&&t.action.startsWith("case.handoff_")?t.details?.workflowTransition:null;return(0,e.jsx)("li",{className:"px-4 py-3 text-sm",children:(0,e.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,e.jsxs)("div",{className:"min-w-0 space-y-1",children:[(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-x-1.5 gap-y-1 text-foreground",children:[(0,e.jsx)(Rt,{record:t,agentMap:a,userProfileMap:n}),(0,e.jsx)("span",{className:"text-muted-foreground",children:d}),(0,e.jsx)(_t,{record:t})]}),h?(0,e.jsx)("p",{className:"text-muted-foreground",children:h}):null,j?(0,e.jsxs)("p",{className:"line-clamp-2 border-l-2 border-border pl-2 text-muted-foreground",children:["“",j,"”"]}):null,x?.from&&x?.to?(0,e.jsxs)("p",{className:"text-xs text-muted-foreground",children:[x.from.name??"Case instructions",x.from.phase?` · ${x.from.phase}`:""," → ",x.to.name??"Case instructions"," · ",x.to.phase]}):null,A?(0,e.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Document ",(0,e.jsx)("span",{className:"font-mono text-(length:--text-micro)",children:A})]}):null,(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-xs text-muted-foreground",children:[y&&b?(0,e.jsxs)("span",{className:"inline-flex items-center rounded-full bg-muted px-2 py-0.5",children:["on behalf of ",b]}):null,t.runId&&t.agentId?(0,e.jsx)(E,{to:`/agents/${t.agentId}/runs/${t.runId}`,className:"text-primary hover:underline",children:"View run"}):null,(0,e.jsx)("span",{className:"font-mono text-(length:--text-micro) opacity-70",children:t.action})]})]}),(0,e.jsx)("time",{className:"shrink-0 whitespace-nowrap text-xs text-muted-foreground",dateTime:t.createdAt,title:new Date(t.createdAt).toLocaleString(),children:ye(t.createdAt)})]})})}r(Ut,"AuditRow");function Dt(){return(0,e.jsx)(ie,{children:(0,e.jsxs)(re,{className:"flex flex-col items-center gap-3 py-14 text-center",children:[(0,e.jsx)(dt,{className:"h-10 w-10 text-muted-foreground/50"}),(0,e.jsxs)("div",{children:[(0,e.jsx)("p",{className:"text-sm font-medium text-foreground",children:"Agent audit is a Microvac Enterprise view"}),(0,e.jsxs)("p",{className:"mx-auto mt-1 max-w-md text-sm text-muted-foreground",children:["The agent audit log gives you a searchable, exportable record of everything your agents did — every comment, task change, approval, and run — with the responsible person for each action. Ask an administrator to grant you the"," ",(0,e.jsx)("span",{className:"font-mono text-(length:--text-micro)",children:"audit:view_agent_actions"})," ","permission to view it."]})]})]})})}r(Dt,"AuditUpsell");function Qt({companyId:t,lockedAgentId:a,lockedRunId:n,lockedEntity:l,hideHeader:d,mode:h,onModeChange:o,actionDomain:y,onActionDomainChange:b,entityType:j,onEntityTypeChange:A,entityId:x,onEntityIdChange:Q,onClearFilters:G}){const oe=De(),{pushToast:L}=lt(),[w,M]=(0,u.useState)(c),[i,f]=(0,u.useState)(c),[q,N]=(0,u.useState)(c),Z=y??q,qe=r(s=>{N(s),b?.(s)},"setActionDomain"),[Pe,je]=(0,u.useState)(c),C=j??Pe,ze=r(s=>{je(s),A?.(s)},"setEntityType"),[Be,ve]=(0,u.useState)(""),H=x??Be,[ce,Y]=(0,u.useState)(H);(0,u.useEffect)(()=>Y(H),[H]);const de=r(s=>{ve(s),Y(s),Q?.(s)},"setEntityId"),[J,be]=(0,u.useState)(""),[W,Ne]=(0,u.useState)(""),[Ae,we]=(0,u.useState)(!1),[X,Se]=(0,u.useState)(!1),ue=F({queryKey:I.agents.list(t),queryFn:r(()=>Le.list(t),"queryFn")}),me=F({queryKey:I.access.companyUserDirectory(t),queryFn:r(()=>rt.listUserDirectory(t),"queryFn")}),Oe=(0,u.useMemo)(()=>new Map((ue.data??[]).map(s=>[s.id,s])),[ue.data]),Ve=(0,u.useMemo)(()=>ot(me.data?.users),[me.data]),S=a||n?"agents":h??"all",T=!!(a||n||l),m={actorScope:S,agentId:a??(w===c?void 0:w),runId:n,responsibleUserId:i===c?void 0:i,action:Z===c?void 0:Z,entityType:l?.type??(C===c?void 0:C),entityId:l?.id??(C==="case"&&H.trim()||void 0),from:Et(J),to:Ct(W)},ee=!!(!a&&w!==c||i!==c||Z!==c||C!==c||J||W),Ke=!T&&(w!==c||i!==c),p=et({queryKey:I.audit.agentActions(t,{actorScope:m.actorScope,agentId:m.agentId,runId:m.runId,responsibleUserId:m.responsibleUserId,action:m.action,entityType:m.entityType,entityId:m.entityId,from:m.from,to:m.to}),queryFn:r(({pageParam:s})=>_e.listAgentActions(t,{...m,limit:St,cursor:s??void 0}),"queryFn"),initialPageParam:null,getNextPageParam:r(s=>s.nextCursor??void 0,"getNextPageParam")}),R=ge(p),xe=p.error instanceof gt&&p.error.status===403,te=p.data?.pages.some(s=>s.accessTier==="basic")??!1,Qe=p.data?.pages.some(s=>s.accessTier==="full")??!1,P=(0,u.useMemo)(()=>{const s=p.data?.pages??[];return(te?s.filter(_=>_.accessTier!=="full"):s).flatMap(_=>_.items)},[p.data,te]),{data:Ge}=F({queryKey:I.instance.experimentalSettings,queryFn:r(()=>at.getExperimental(),"queryFn"),enabled:P.some(s=>!!s.details?.workflowTransition)}),z=te?"basic":p.data?.pages[0]?.accessTier,se=l?.type==="case"?P.find(s=>s.entity.case)?.entity.case:null,ae=te&&Qe,pe=a||n?!0:z==="full",Ze=!!(ae&&X&&!p.isFetching),ne=!!(!T&&!Ze&&(xe&&Ke||ae)),B=!!(xe&&!T&&S==="agents"&&o),He=!!(!T&&o&&!B);(0,u.useEffect)(()=>{B&&o?.("all")},[B,o]),(0,u.useEffect)(()=>{!T&&(z==="basic"||ne)&&(M(c),f(c))},[z,T,ne]),(0,u.useEffect)(()=>{if(!ae){X&&Se(!1);return}X||(Se(!0),p.refetch())},[X,p,ae]);const Te=r(()=>{M(c),f(c),N(c),je(c),ve(""),Y(""),be(""),Ne(""),G?G():(b?.(c),A?.(c),Q?.(""))},"clearFilters"),Ye=r(async()=>{we(!0);try{const s=await _e.exportAgentActionsCsv(t,{actorScope:m.actorScope,agentId:m.agentId,runId:m.runId,responsibleUserId:m.responsibleUserId,action:m.action,entityType:m.entityType,entityId:m.entityId,from:m.from,to:m.to}),_=URL.createObjectURL(s),O=document.createElement("a");O.href=_,O.download=`${S==="agents"?"agent-audit":"activity"}-${t}.csv`,document.body.appendChild(O),O.click(),O.remove(),window.setTimeout(()=>URL.revokeObjectURL(_),5e3),L({title:"Audit exported",body:"Your CSV download has started.",tone:"success"})}catch(s){L({title:"Export failed",body:ct(s,{action:"export the audit log"}).body,tone:"error"})}finally{we(!1)}},"handleExport");return xe&&!ne&&!B?(0,e.jsx)(Dt,{}):(0,e.jsxs)("div",{className:"space-y-4",children:[d?null:(0,e.jsx)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:(0,e.jsxs)("div",{children:[(0,e.jsx)("h2",{className:"text-lg font-semibold text-foreground",children:"Activity"}),(0,e.jsxs)("p",{className:"mt-1 grid max-w-2xl text-sm text-muted-foreground",children:[(0,e.jsx)("span",{className:"col-start-1 row-start-1",style:{visibility:S==="agents"?"hidden":"visible"},children:"Everything happening in your organization, newest first — people, agents, and the system. Each line is one recorded action."}),(0,e.jsx)("span",{className:"col-start-1 row-start-1",style:{visibility:S==="agents"?"visible":"hidden"},children:"Every recorded agent action, newest first — with the responsible person and run behind each one."})]})]})}),He?(0,e.jsx)(xt,{"data-canonical-toolbar":"audit-scope",value:S,onValueChange:r(s=>o?.(s),"onValueChange"),children:(0,e.jsx)("div",{className:"design-view-toggle",children:(0,e.jsxs)(mt,{"aria-label":"Activity scope",children:[(0,e.jsx)(Ce,{value:"all",children:"Activity"}),(0,e.jsx)(Ce,{value:"agents",disabled:z==="basic",title:z==="basic"?"Agent Actions requires audit access":void 0,children:"Agent Actions"})]})})}):null,T?(0,e.jsx)("div",{className:"border-y border-border px-1 py-2 text-xs text-muted-foreground",children:n?`Scoped to run ${n.slice(0,8)}`:a?"Scoped to one agent":se?(0,e.jsxs)(e.Fragment,{children:["Case ",(0,e.jsxs)(E,{to:oe(se.identifier),className:"font-medium text-primary hover:underline",children:[se.identifier," · ",se.title]})]}):`Scoped to ${l?.label??l?.type??"entity"}`}):null,(0,e.jsxs)("div",{"data-canonical-toolbar":"audit-activity",role:"toolbar","aria-label":"Audit filters",className:"flex flex-wrap items-end gap-3 border-y border-border py-3",children:[pe&&!a&&!n?(0,e.jsxs)("label",{className:"grid gap-1 text-(length:--text-micro) font-medium text-muted-foreground",children:[(0,e.jsx)("span",{children:"Agent"}),(0,e.jsxs)(U,{value:w,onValueChange:M,children:[(0,e.jsx)(k,{className:"w-40",children:(0,e.jsx)(D,{placeholder:"Agent"})}),(0,e.jsxs)($,{children:[(0,e.jsx)(v,{value:c,children:"All agents"}),(ue.data??[]).map(s=>(0,e.jsx)(v,{value:s.id,children:s.name},s.id))]})]})]}):null,pe?(0,e.jsxs)("label",{className:"grid gap-1 text-(length:--text-micro) font-medium text-muted-foreground",children:[(0,e.jsx)("span",{children:"Responsible user"}),(0,e.jsxs)(U,{value:i,onValueChange:f,children:[(0,e.jsx)(k,{className:"w-52",children:(0,e.jsx)(D,{placeholder:"Responsible user"})}),(0,e.jsxs)($,{children:[(0,e.jsx)(v,{value:c,children:"All responsible users"}),(me.data?.users??[]).map(s=>(0,e.jsx)(v,{value:s.principalId,children:s.user?.name??s.user?.email??s.principalId.slice(0,8)},s.principalId))]})]})]}):null,(0,e.jsxs)("label",{className:"grid gap-1 text-(length:--text-micro) font-medium text-muted-foreground",children:[(0,e.jsx)("span",{children:"Action"}),(0,e.jsxs)(U,{value:Z,onValueChange:qe,children:[(0,e.jsx)(k,{className:"w-40",children:(0,e.jsx)(D,{placeholder:"Action"})}),(0,e.jsx)($,{children:Tt.map(s=>(0,e.jsx)(v,{value:s.value,children:s.label},s.value))})]})]}),l?null:(0,e.jsxs)("label",{className:"grid gap-1 text-(length:--text-micro) font-medium text-muted-foreground",children:[(0,e.jsx)("span",{children:"Entity"}),(0,e.jsxs)(U,{value:C,onValueChange:ze,children:[(0,e.jsx)(k,{className:"w-40",children:(0,e.jsx)(D,{placeholder:"Entity"})}),(0,e.jsx)($,{children:It.map(s=>(0,e.jsx)(v,{value:s.value,children:s.label},s.value))})]})]}),!l&&C==="case"?(0,e.jsxs)("label",{className:"grid gap-1 text-(length:--text-micro) font-medium text-muted-foreground",children:[(0,e.jsx)("span",{children:"Case"}),(0,e.jsx)(he,{type:"search","aria-label":"Case ID or identifier",placeholder:"CAS-C1",value:ce,onChange:r(s=>{Y(s.target.value),s.target.value||de("")},"onChange"),onBlur:r(()=>de(ce.trim()),"onBlur"),onKeyDown:r(s=>{s.key==="Enter"&&(s.preventDefault(),de(ce.trim()))},"onKeyDown"),className:"w-44 font-mono"})]}):null,(0,e.jsxs)("label",{className:"grid gap-1 text-(length:--text-micro) font-medium text-muted-foreground",children:[(0,e.jsx)("span",{children:"From"}),(0,e.jsx)(he,{type:"date","aria-label":"From date",value:J,max:W||void 0,onChange:r(s=>be(s.target.value),"onChange"),className:"w-36"})]}),(0,e.jsxs)("label",{className:"grid gap-1 text-(length:--text-micro) font-medium text-muted-foreground",children:[(0,e.jsx)("span",{children:"To"}),(0,e.jsx)(he,{type:"date","aria-label":"To date",value:W,min:J||void 0,onChange:r(s=>Ne(s.target.value),"onChange"),className:"w-36"})]}),ee?(0,e.jsx)(V,{variant:"ghost",size:"sm",onClick:Te,children:"Clear filters"}):null,pe?(0,e.jsxs)(V,{variant:"outline",size:"sm",className:"ml-auto",onClick:Ye,disabled:Ae||p.isLoading||P.length===0,children:[(0,e.jsx)(yt,{className:"mr-1.5 h-4 w-4"}),Ae?"Exporting…":"Export CSV"]}):null]}),ne||B?(0,e.jsx)(ie,{children:(0,e.jsx)(re,{className:"py-14 text-center text-sm text-muted-foreground",children:"Refreshing audit access…"})}):R.kind==="loading"||R.kind==="reconnecting"?(0,e.jsx)(ie,{children:(0,e.jsx)(re,{className:"py-14 text-center text-sm text-muted-foreground",children:"Loading…"})}):R.kind==="error"?(0,e.jsx)(fe,{error:R.error,action:"load the audit log",onRetry:R.retry,retrying:R.isFetching}):P.length===0?(0,e.jsx)(ie,{children:(0,e.jsxs)(re,{className:"flex flex-col items-center gap-3 py-14 text-center",children:[(0,e.jsx)(tt,{className:"h-10 w-10 text-muted-foreground/40"}),(0,e.jsxs)("div",{children:[(0,e.jsx)("p",{className:"text-sm font-medium text-foreground",children:ee?"No actions match these filters":"Nothing here yet"}),(0,e.jsx)("p",{className:"mt-1 max-w-md text-sm text-muted-foreground",children:ee?"Try a wider date range or different filters.":S==="agents"?"As soon as your agents start doing things, their actions show up here.":"As soon as anyone in your organization does something, it shows up here."})]}),ee?(0,e.jsx)(V,{variant:"outline",size:"sm",onClick:Te,children:"Clear filters"}):null]})}):(0,e.jsx)("div",{className:"border-y border-border",children:(0,e.jsx)("ul",{className:bt("divide-y divide-border"),"aria-label":"Audit activity",children:P.map(s=>(0,e.jsx)(Ut,{record:s,agentMap:Oe,userProfileMap:Ve,casesEnabled:Ge?.enableCases===!0},s.id))})}),p.hasNextPage?(0,e.jsx)("div",{className:"flex justify-center",children:(0,e.jsx)(V,{variant:"outline",size:"sm",onClick:r(()=>p.fetchNextPage(),"onClick"),disabled:p.isFetchingNextPage,children:p.isFetchingNextPage?"Loading…":"Load more"})}):null,(0,e.jsx)("p",{className:"text-xs text-muted-foreground",children:"Recorded by Microvac — entries can't be edited. Sensitive values are never stored."})]})}r(Qt,"AuditFeed");var g="__all",le=200;function $t(t){const a=t.resultJson,n=a?.summary??a?.result??t.error;return typeof n=="string"&&n.trim()?n.trim():null}r($t,"runSummary");function Ft(t){const a=t.startedAt?new Date(t.startedAt).getTime():null,n=t.finishedAt?new Date(t.finishedAt).getTime():null;if(a==null||n==null||!Number.isFinite(a)||!Number.isFinite(n))return null;const l=Math.max(0,Math.round((n-a)/1e3));return l<60?`${l}s`:`${Math.floor(l/60)}m ${l%60}s`}r(Ft,"runDuration");function K(t){return t.replaceAll("_"," ")}r(K,"readableSource");function Lt(t){return t.linkedIssue?.title??t.trigger?.label??"Routine run"}r(Lt,"routineRunTitle");function Mt({runs:t,view:a}){return a.kind==="loading"||a.kind==="reconnecting"?(0,e.jsx)("div",{className:"border-y border-border py-14 text-center text-sm text-muted-foreground",children:"Loading routine runs…"}):a.kind==="error"?(0,e.jsx)(fe,{error:a.error,action:"load routine runs",onRetry:a.retry,retrying:a.isFetching}):t.length===0?(0,e.jsx)(Fe,{icon:$e,message:"No routine runs yet."}):(0,e.jsxs)("div",{className:"space-y-4",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("h2",{className:"text-lg font-semibold text-foreground",children:"Routine runs"}),(0,e.jsx)("p",{className:"mt-1 max-w-2xl text-sm text-muted-foreground",children:"Executions created by this routine, newest first."})]}),(0,e.jsx)("ul",{className:"divide-y divide-border border-y border-border","aria-label":"Routine runs",children:t.map(n=>{const l=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:"min-w-0",children:[(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,e.jsx)("span",{className:"font-medium text-foreground",children:Lt(n)}),(0,e.jsx)(Ue,{status:n.status})]}),(0,e.jsx)("p",{className:"mt-1 truncate text-sm text-muted-foreground",children:n.trigger?.label??K(n.source)})]}),(0,e.jsxs)("div",{className:"flex shrink-0 items-center gap-2 text-xs text-muted-foreground sm:justify-end",children:[(0,e.jsx)("span",{className:"capitalize",children:K(n.source)}),(0,e.jsx)("time",{dateTime:new Date(n.triggeredAt).toISOString(),children:ye(n.triggeredAt)})]})]}),d="flex flex-col gap-2 px-1 py-3 text-inherit no-underline transition-colors hover:bg-muted/50 sm:flex-row sm:items-start sm:justify-between sm:px-3";return(0,e.jsx)("li",{children:n.linkedIssue?(0,e.jsx)(E,{to:`/issues/${n.linkedIssue.identifier??n.linkedIssue.id}`,className:d,children:l}):(0,e.jsx)("div",{className:d,children:l})},n.id)})}),(0,e.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Showing the ",le," most recent routine runs."]})]})}r(Mt,"RoutineScopedRuns");function Gt({companyId:t,routineId:a,lockedAgentId:n,hideHeader:l=!1}){const[d,h]=ht(),o=n??d.get("agentId")??g,y=d.get("runStatus")??g,b=F({queryKey:I.agents.list(t),queryFn:r(()=>Le.list(t),"queryFn"),enabled:!a}),j=F({queryKey:I.audit.runs(t,o===g?null:o),queryFn:r(()=>ft.list(t,o===g?void 0:o,le,{summary:!0}),"queryFn"),refetchInterval:15e3,enabled:!a}),A=F({queryKey:[...I.routines.runs(a??""),"audit"],queryFn:r(()=>it.listRuns(a,le),"queryFn"),enabled:!!a,refetchInterval:15e3}),x=ge(j),Q=ge(A),G=(0,u.useMemo)(()=>new Map((b.data??[]).map(i=>[i.id,i])),[b.data]),oe=(0,u.useMemo)(()=>Array.from(new Set((j.data??[]).map(i=>i.status))).sort(),[j.data]),L=(0,u.useMemo)(()=>(j.data??[]).filter(i=>y===g||i.status===y),[j.data,y]),w=r((i,f)=>{h(q=>{const N=new URLSearchParams(q);return f===g?N.delete(i):N.set(i,f),N},{replace:!0})},"updateFilter"),M=r(()=>{h(i=>{const f=new URLSearchParams(i);return f.delete("agentId"),f.delete("runStatus"),f},{replace:!0})},"clearFilters");return a?(0,e.jsx)(Mt,{runs:A.data??[],view:Q}):(0,e.jsxs)("div",{className:"space-y-4",children:[l?null:(0,e.jsxs)("div",{children:[(0,e.jsx)("h2",{className:"text-lg font-semibold text-foreground",children:"Runs"}),(0,e.jsx)("p",{className:"mt-1 max-w-2xl text-sm text-muted-foreground",children:"Recent agent executions across the organization. Open a run to inspect its transcript, output, and task context."})]}),(0,e.jsxs)("div",{"data-canonical-toolbar":"audit-runs",role:"toolbar","aria-label":"Audit filters",className:"flex flex-wrap items-end gap-3 border-y border-border py-3",children:[n?null:(0,e.jsxs)("label",{className:"grid gap-1 text-(length:--text-micro) font-medium text-muted-foreground",children:[(0,e.jsx)("span",{children:"Agent"}),(0,e.jsxs)(U,{value:o,onValueChange:r(i=>w("agentId",i),"onValueChange"),children:[(0,e.jsx)(k,{className:"w-48",children:(0,e.jsx)(D,{placeholder:"All agents"})}),(0,e.jsxs)($,{children:[(0,e.jsx)(v,{value:g,children:"All agents"}),(b.data??[]).map(i=>(0,e.jsx)(v,{value:i.id,children:i.name},i.id))]})]})]}),(0,e.jsxs)("label",{className:"grid gap-1 text-(length:--text-micro) font-medium text-muted-foreground",children:[(0,e.jsx)("span",{children:"Status"}),(0,e.jsxs)(U,{value:y,onValueChange:r(i=>w("runStatus",i),"onValueChange"),children:[(0,e.jsx)(k,{className:"w-40",children:(0,e.jsx)(D,{placeholder:"All statuses"})}),(0,e.jsxs)($,{children:[(0,e.jsx)(v,{value:g,children:"All statuses"}),oe.map(i=>(0,e.jsx)(v,{value:i,children:K(i)},i))]})]})]}),!n&&o!==g||y!==g?(0,e.jsx)(V,{variant:"ghost",size:"sm",onClick:M,children:"Clear filters"}):null]}),x.kind==="loading"||x.kind==="reconnecting"?(0,e.jsx)("div",{className:"border-y border-border py-14 text-center text-sm text-muted-foreground",children:"Loading runs…"}):x.kind==="error"?(0,e.jsx)(fe,{error:x.error,action:"load runs",onRetry:x.retry,retrying:x.isFetching}):L.length===0?(0,e.jsx)(Fe,{icon:o!==g||y!==g?wt:$e,message:o!==g||y!==g?"No runs match these filters.":"No runs yet."}):(0,e.jsx)("ul",{className:"divide-y divide-border border-y border-border","aria-label":"Recent runs",children:L.map(i=>{const f=G.get(i.agentId),q=$t(i),N=Ft(i);return(0,e.jsx)("li",{children:(0,e.jsxs)(E,{to:`/agents/${i.agentId}/runs/${i.id}`,className:"flex flex-col gap-2 px-1 py-3 text-inherit no-underline transition-colors hover:bg-muted/50 sm:flex-row sm:items-start sm:justify-between sm:px-3",children:[(0,e.jsxs)("div",{className:"min-w-0",children:[(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,e.jsx)("span",{className:"font-medium text-foreground",children:f?.name??"Unknown agent"}),(0,e.jsx)("span",{className:"font-mono text-(length:--text-micro) text-muted-foreground",children:i.id.slice(0,8)}),(0,e.jsx)(Ue,{status:i.status})]}),(0,e.jsx)("p",{className:"mt-1 truncate text-sm text-muted-foreground",children:q??`${K(i.invocationSource)} run`})]}),(0,e.jsxs)("div",{className:"flex shrink-0 items-center gap-2 text-xs text-muted-foreground sm:justify-end",children:[(0,e.jsx)("span",{className:"capitalize",children:K(i.invocationSource)}),N?(0,e.jsx)("span",{children:N}):null,(0,e.jsx)("time",{dateTime:new Date(i.createdAt).toISOString(),children:ye(i.createdAt)})]})]})},i.id)})}),(0,e.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Showing the ",le," most recent runs."]})]})}r(Gt,"AuditRuns");export{Qt as n,Gt as t};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var ee=Object.defineProperty;var s=(h,i)=>ee(h,"name",{value:i,configurable:!0});import{a as Z}from"./rolldown-runtime-DhZMWcEn.js";import{$A as te,$n as ne,C_ as re,GS as L,ME as ie,NE as ae,N_ as oe,Vb as se,YS as Y,Yb as le,ab as ce,bE as ue,by as de,er as me,hE as he,nj as fe,oE as ge,qv as xe,xE as O}from"./index-
|
|
1
|
+
var ee=Object.defineProperty;var s=(h,i)=>ee(h,"name",{value:i,configurable:!0});import{a as Z}from"./rolldown-runtime-DhZMWcEn.js";import{$A as te,$n as ne,C_ as re,GS as L,ME as ie,NE as ae,N_ as oe,Vb as se,YS as Y,Yb as le,ab as ce,bE as ue,by as de,er as me,hE as he,nj as fe,oE as ge,qv as xe,xE as O}from"./index-BJtnP7H1.js";import{n as pe}from"./invite-memory-BKdqfr5K.js";var E=Z(fe(),1),r=Z(te(),1),D=[" ",".","·","▪","▫","○"],ye=1e3/24,T=[[" ╭────╮ "," ╭╯╭──╮│ "," │ │ ││ "," │ │ ││ "," │ │ ││ "," │ │ ││ "," │ ╰──╯│ "," ╰─────╯ "],[" ╭─────╮ "," │╭──╮╰╮ "," ││ │ │ "," ││ │ │ "," ││ │ │ "," ││ │ │ "," │╰──╯ │ "," ╰────╯ "]];function J(h){const i=document.createElement("span");i.textContent="M",i.style.cssText="position:absolute;visibility:hidden;white-space:pre;font-size:inherit;font-family:inherit;line-height:1;",h.appendChild(i);const d=i.getBoundingClientRect();return h.removeChild(i),{w:d.width,h:d.height}}s(J,"measureChar");function ve(h){let i=0;for(const d of h)i=Math.max(i,d.length);return{width:i,height:h.length}}s(ve,"spriteSize");function be(){const h=(0,E.useRef)(null),i=(0,E.useRef)(null);return(0,E.useEffect)(()=>{if(!h.current)return;const d=h.current,m=window.matchMedia("(prefers-reduced-motion: reduce)");let k=document.visibilityState!=="hidden",p=!1,q=0,j=0,l=0,a=0,R=7,y=11,b=new Float32Array(0),S=new Float32Array(0),N=new Float32Array(0),w=new Uint16Array(0),M=[],_="";function I(o){const c=Math.floor(Math.max(0,Math.min(.999,o))*D.length);return D[c]??" "}s(I,"toGlyph");function z(){const o=Math.max(0,Math.ceil(d.clientWidth/Math.max(1,R))),c=Math.max(0,Math.ceil(d.clientHeight/Math.max(1,y)));if(o===l&&c===a)return;l=o,a=c;const C=l*a;b=new Float32Array(C),S=new Float32Array(l),N=new Float32Array(a),w=new Uint16Array(C),M=M.filter(u=>u.x>-u.width-2&&u.x<l+2&&u.y>-u.height-2&&u.y<a+2),_=""}s(z,"rebuildGrid");function Q(){if(l<=0||a<=0){d.textContent="";return}const o=Array.from({length:a},()=>Array.from({length:l},()=>" "));for(let n=0;n<a;n++)for(let t=0;t<l;t++){const e=(Math.sin(t*.11+n*.04)+Math.cos(n*.08-t*.02))*.18+.22;o[n][t]=I(e)}const c=18,C=13;for(let n=1;n<a-9;n+=C){const t=Math.floor(n/C)%2===0?2:10;for(let e=t;e<l-10;e+=c){const v=T[(e+n)%T.length];for(let g=0;g<v.length;g++){const x=v[g];for(let A=0;A<x.length;A++){const K=x[A]??" ";if(K===" ")continue;const U=n+g,V=e+A;U<0||U>=a||V<0||V>=l||(o[U][V]=K)}}}}const u=o.map(n=>n.join("")).join(`
|
|
2
2
|
`);d.textContent=u,_=u}s(Q,"drawStaticFrame");function W(){const o=T[Math.floor(Math.random()*T.length)],c=ve(o),C=Math.random();let u=0,n=0,t=0,e=0;C<.68?(u=Math.random()<.5?-c.width-1:l+1,n=Math.random()*Math.max(1,a-c.height),t=u<0?.04+Math.random()*.05:-(.04+Math.random()*.05),e=(Math.random()-.5)*.014):(u=Math.random()*Math.max(1,l-c.width),n=Math.random()<.5?-c.height-1:a+1,t=(Math.random()-.5)*.014,e=n<0?.028+Math.random()*.034:-(.028+Math.random()*.034)),M.push({x:u,y:n,vx:t,vy:e,life:0,maxLife:260+Math.random()*220,drift:(Math.random()-.5)*1.2,sprite:o,width:c.width,height:c.height})}s(W,"spawnClip");function F(o,c){const C=Math.round(o.x),u=Math.round(o.y);for(let n=0;n<o.sprite.length;n++){const t=o.sprite[n],e=u+n;if(!(e<0||e>=a))for(let v=0;v<t.length;v++){const g=t[v]??" ";if(g===" ")continue;const x=C+v;if(x<0||x>=l)continue;const A=e*l+x,K=g==="│"||g==="─"?.8:.92;b[A]=Math.max(b[A]??0,c*K),w[A]=g.charCodeAt(0)}}}s(F,"stampClip");function P(o){if(!p||(i.current=requestAnimationFrame(P),o-q<ye||l<=0||a<=0))return;const c=Math.min(2,q===0?1:(o-q)/16.6667);q=o,j+=c;const C=l*a,u=Math.max(3,Math.floor(C/2200));for(;M.length<u;)W();for(let t=0;t<b.length;t++)b[t]*=.92;w.fill(0);for(let t=M.length-1;t>=0;t--){const e=M[t];e.life+=c;const v=Math.sin((e.y+e.drift+j*.12)*.09)*.0018,g=Math.cos((e.x-e.drift-j*.09)*.08)*.0014;if(e.vx=(e.vx+v)*.998,e.vy=(e.vy+g)*.998,e.x+=e.vx*c,e.y+=e.vy*c,e.life>=e.maxLife||e.x<-e.width-2||e.x>l+2||e.y<-e.height-2||e.y>a+2){M.splice(t,1);continue}const x=e.life/e.maxLife;F(e,x<.12?x/.12:x>.88?(1-x)/.12:1)}for(let t=0;t<l;t++)S[t]=Math.sin(t*.08+j*.06);for(let t=0;t<a;t++)N[t]=Math.cos(t*.1-j*.05);let n="";for(let t=0;t<a;t++){for(let e=0;e<l;e++){const v=t*l+e,g=w[v];if(g>0){n+=String.fromCharCode(g);continue}const x=(S[e]+N[t])*.08+.1,A=Math.max(b[v]??0,x*.45);n+=I(A)}t<a-1&&(n+=`
|
|
3
3
|
`)}n!==_&&(d.textContent=n,_=n)}s(P,"step");function f(){const o=l>0&&a>0;if(m.matches){p&&(p=!1,i.current!==null&&cancelAnimationFrame(i.current),i.current=null),o&&Q();return}if(!k||!o){p&&(p=!1,i.current!==null&&cancelAnimationFrame(i.current),i.current=null);return}p||(p=!0,q=0,i.current=requestAnimationFrame(P))}s(f,"syncLoop");const G=s(()=>{const o=J(d);R=o.w,y=o.h,z(),f()},"measureGrid"),H=new ResizeObserver(G);H.observe(d),document.fonts?.addEventListener("loadingdone",G);const X=s(()=>{k=document.visibilityState!=="hidden",f()},"onVisibilityChange");document.addEventListener("visibilitychange",X);const $=s(()=>{f()},"onMotionChange");m.addEventListener("change",$);const B=J(d);return R=B.w,y=B.h,z(),f(),()=>{p=!1,i.current!==null&&cancelAnimationFrame(i.current),H.disconnect(),document.fonts?.removeEventListener("loadingdone",G),document.removeEventListener("visibilitychange",X),m.removeEventListener("change",$)}},[]),(0,r.jsx)("pre",{ref:h,className:"font-mono w-full h-full m-0 p-0 overflow-hidden text-muted-foreground/60 select-none leading-none",style:{fontSize:"var(--text-micro)"},"aria-hidden":"true"})}s(be,"AsciiArtAnimation");function Ae(){const h=ie(),i=le(),[d]=ge(),[m,k]=(0,E.useState)("sign_in"),[p,q]=(0,E.useState)(""),[j,l]=(0,E.useState)(""),[a,R]=(0,E.useState)(""),[y,b]=(0,E.useState)(null),S="auth-error",N=(0,E.useMemo)(()=>de(d.get("next")||pe()||"/"),[d]),w=O({queryKey:L.health,queryFn:s(()=>se.get(),"queryFn")}),M=O({queryKey:L.auth.session,queryFn:s(()=>Y.getSession(),"queryFn")}),{data:_,isLoading:I,error:z}=M,Q=w.error??z,W=w.isFetching||M.isFetching;(0,E.useEffect)(()=>{_&&(me(),i(N,{replace:!0}))},[_,i,N]);const F=ue({mutationFn:s(async()=>{if(m==="sign_in"){await Y.signInEmail({email:j.trim(),password:a});return}await Y.signUpEmail({name:p.trim(),email:j.trim(),password:a})},"mutationFn"),onSuccess:s(async()=>{b(null),await h.invalidateQueries({queryKey:L.auth.session}),await h.invalidateQueries({queryKey:L.health}),await h.resetQueries({queryKey:L.companies.all}),i(N,{replace:!0})},"onSuccess"),onError:s(f=>{b(he(f).body)},"onError")}),P=j.trim().length>0&&a.trim().length>0&&(m==="sign_in"||p.trim().length>0&&a.trim().length>=8);return w.isLoading||I||_?(0,r.jsx)("div",{className:"fixed inset-0 flex items-center justify-center",children:(0,r.jsx)(oe,{className:"min-h-0"})}):Q?(0,r.jsx)(ce,{size:"panel",className:"p-6",error:Q,action:"check sign-in",onRetry:s(()=>{w.refetch(),M.refetch()},"onRetry"),retrying:W}):w.data?.cloud?(0,r.jsx)(ne,{cloud:w.data.cloud,returnTo:N}):(0,r.jsxs)("div",{className:"fixed inset-0 flex bg-background",children:[(0,r.jsx)("div",{className:"absolute top-4 right-4 z-10",children:(0,r.jsx)(xe,{})}),(0,r.jsx)("div",{className:"w-full md:w-1/2 flex flex-col overflow-y-auto",children:(0,r.jsxs)("div",{className:"w-full max-w-md mx-auto my-auto px-8 py-12",children:[(0,r.jsx)("div",{className:"mb-8",children:(0,r.jsx)(re,{className:"h-5 w-auto"})}),(0,r.jsx)("h1",{className:"text-xl font-semibold",children:m==="sign_in"?"Sign in to Microvac":"Create your Microvac account"}),(0,r.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:m==="sign_in"?"Use your email and password to access this instance.":"Create an account for this instance. Email confirmation is not required in v1."}),(0,r.jsxs)("form",{className:"mt-6 space-y-4",method:"post",action:m==="sign_up"?"/api/auth/sign-up/email":"/api/auth/sign-in/email",onSubmit:s(f=>{if(f.preventDefault(),!F.isPending){if(!P){b("Please fill in all required fields.");return}F.mutate()}},"onSubmit"),children:[m==="sign_up"&&(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"name",className:"text-xs text-muted-foreground mb-1 block",children:"Name"}),(0,r.jsx)("input",{id:"name",name:"name",className:"w-full rounded-md border border-border bg-transparent px-3 py-2 text-sm outline-none focus:ring-1 focus:ring-ring placeholder:text-muted-foreground/50",value:p,onChange:s(f=>q(f.target.value),"onChange"),autoComplete:"name",required:!0,"aria-required":"true","aria-invalid":y?!0:void 0,"aria-describedby":y?S:void 0,autoFocus:!0})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"email",className:"text-xs text-muted-foreground mb-1 block",children:"Email"}),(0,r.jsx)("input",{id:"email",name:"email",className:"w-full rounded-md border border-border bg-transparent px-3 py-2 text-sm outline-none focus:ring-1 focus:ring-ring placeholder:text-muted-foreground/50",type:"email",value:j,onChange:s(f=>l(f.target.value),"onChange"),autoComplete:"username",required:!0,"aria-required":"true","aria-invalid":y?!0:void 0,"aria-describedby":y?S:void 0,autoFocus:m==="sign_in"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"password",className:"text-xs text-muted-foreground mb-1 block",children:"Password"}),(0,r.jsx)("input",{id:"password",name:"password",className:"w-full rounded-md border border-border bg-transparent px-3 py-2 text-sm outline-none focus:ring-1 focus:ring-ring placeholder:text-muted-foreground/50",type:"password",value:a,onChange:s(f=>R(f.target.value),"onChange"),autoComplete:m==="sign_in"?"current-password":"new-password",required:!0,"aria-required":"true","aria-invalid":y?!0:void 0,"aria-describedby":y?S:void 0})]}),y&&(0,r.jsx)("p",{id:S,role:"alert",className:"text-xs text-destructive",children:y}),(0,r.jsx)(ae,{type:"submit",disabled:F.isPending,"aria-disabled":!P||F.isPending,className:`w-full ${!P&&!F.isPending?"opacity-50":""}`,children:F.isPending?"Working…":m==="sign_in"?"Sign In":"Create Account"})]}),(0,r.jsxs)("div",{className:"mt-5 text-sm text-muted-foreground",children:[m==="sign_in"?"Need an account?":"Already have an account?"," ",(0,r.jsx)("button",{type:"button",className:"font-medium text-foreground underline underline-offset-2",onClick:s(()=>{b(null),k(m==="sign_in"?"sign_up":"sign_in")},"onClick"),children:m==="sign_in"?"Create one":"Sign in"})]})]})}),(0,r.jsx)("div",{className:"hidden md:block w-1/2 overflow-hidden",children:(0,r.jsx)(be,{})})]})}s(Ae,"AuthPage");export{Ae as AuthPage};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var dt=Object.defineProperty;var i=(t,o)=>dt(t,"name",{value:o,configurable:!0});import{a as Ge}from"./rolldown-runtime-DhZMWcEn.js";import{Dt as lt,Et as ut,fi as mt}from"./issue-detail-4PCbYpdv.js";import{t as pt}from"./circle-slash-DqKFFqfb.js";import{t as ft}from"./list-filter-BC3D4IoX.js";import{t as ht}from"./log-in-BJCGwGGT.js";import{t as xt}from"./send-CYVi50sh.js";import{$A as gt,$C as bt,Ao as yt,BC as vt,ET as wt,E_ as jt,Ev as kt,GS as O,Gb as Nt,IS as Xe,JT as _t,LS as Ye,ME as It,MT as Tt,NC as be,NE as pe,Oy as Ct,QC as Ke,QT as St,TT as At,Tw as Et,WE as Mt,Yw as Rt,ZT as Dt,_w as fe,bT as zt,bv as $t,d as Ft,fC as qt,hC as Lt,hv as Ot,iS as Pt,ib as Bt,jT as Kt,jb as Me,jo as Wt,kT as Ht,lC as Je,lS as me,mv as Ut,mx as Vt,nj as Qt,p as Gt,pv as Xt,rb as Ze,uw as Yt,v as Jt,vC as Zt,vb as ye,wn as er,x as _e,xE as se,xT as tr,xb as ve,xv as rr,yb as we,yv as sr,zD as ar,zE as y}from"./index-Bt31d8ga.js";import{t as nr}from"./goals-CvMWzjH4.js";var et={name:"pencil-line",size:24,node:[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]};et.node;var or=St(et),s=Ge(Qt(),1),e=Ge(gt(),1);function Se(t){return typeof t=="string"?t.replace(/_/g," "):String(t??"")}i(Se,"humanize");function ir(t,o,l="chronological"){switch(t){case"issue.created":return"opened";case"issue.updated":{const d=o?.status;if(d==="in_review"&&o?.externalConversationState==="waiting")return"moved to idle";if(typeof d=="string")return`moved to ${Se(d)}`;const p=o?.priority;return typeof p=="string"?`set priority to ${Se(p)} on`:"updated"}case"issue.document_created":return"wrote doc on";case"issue.document_updated":return"edited doc on";case"issue.document_deleted":return"deleted doc from";case"issue.work_product_created":return"delivered work on";case"issue.work_product_updated":return"updated work on";case"issue.work_product_deleted":return"removed work from";case"issue.checked_out":return"picked up";case"issue.released":return"released";case"issue.commented":case"issue.comment_added":return"commented on";case"issue.attachment_added":return"attached a file to";case"issue.attachment_removed":return"removed attachment from";case"issue.deleted":return"deleted";case"approval.created":return l==="pinned"?"needs approval on":"requested approval on";case"approval.approved":return"approved";case"approval.rejected":return"rejected";case"approval.revision_requested":return"requested changes on";case"agent.created":return l==="pinned"?"wants to hire":"hired";case"agent.paused":return"paused";case"agent.resumed":return"resumed";case"agent.updated":return"updated";case"agent.terminated":return"terminated";case"heartbeat.invoked":return"started a run on";case"heartbeat.cancelled":return"cancelled a run on";case"project.created":return"created project";case"project.updated":return"updated project";case"project.deleted":return"deleted project";case"goal.created":return"created goal";case"goal.updated":return"updated goal";case"goal.deleted":return"deleted goal";case"company.created":return"created organization";case"company.updated":return"updated organization";case"company.archived":return"archived organization";case"company.budget_updated":return"updated organization budget";default:return t.replace(/[._]/g," ")}}i(ir,"formatVerb");function cr(t,o){switch(t){case"issue.created":return"todo";case"issue.updated":{const l=o?.status;return l==="in_review"&&o?.externalConversationState==="waiting"?"idle":typeof l=="string"?l:null}case"issue.document_created":case"issue.document_updated":return"in_progress";case"issue.work_product_created":return"in_review";case"approval.created":return"in_review";case"approval.approved":return"done";case"approval.rejected":case"approval.revision_requested":return"blocked";default:return null}}i(cr,"deriveTaskStatus");function dr(t,o,l){const d=t.action;if(d.startsWith("heartbeat."))return l&&d==="heartbeat.invoked"?{kind:"lucide",Icon:fe,color:"text-blue-600 dark:text-blue-400",spin:!0}:{kind:"lucide",Icon:fe,color:"text-muted-foreground"};switch(d){case"approval.created":return{kind:"lucide",Icon:wt,color:"text-amber-600 dark:text-amber-400"};case"approval.approved":return{kind:"lucide",Icon:At,color:"text-green-600 dark:text-green-400"};case"approval.rejected":return{kind:"lucide",Icon:pt,color:"text-red-600 dark:text-red-400"};case"approval.revision_requested":return{kind:"lucide",Icon:or,color:"text-amber-600 dark:text-amber-400",filled:!0}}switch(d){case"agent.created":return{kind:"lucide",Icon:qt,color:"text-purple-600 dark:text-purple-400"};case"agent.paused":return{kind:"lucide",Icon:tr,color:"text-muted-foreground"};case"agent.resumed":return{kind:"lucide",Icon:zt,color:"text-muted-foreground"};case"agent.updated":case"agent.terminated":return{kind:"lucide",Icon:be,color:"text-muted-foreground"}}return d==="issue.document_created"||d==="issue.document_updated"?{kind:"lucide",Icon:Rt,color:"text-blue-600 dark:text-blue-400"}:d.startsWith("issue.work_product_")?{kind:"lucide",Icon:bt,color:"text-indigo-600 dark:text-indigo-400"}:d==="issue.commented"||d==="issue.comment_added"?{kind:"lucide",Icon:Yt,color:"text-muted-foreground"}:d==="issue.checked_out"?{kind:"lucide",Icon:ht,color:"text-muted-foreground"}:t.entityType==="issue"?{kind:"status-circle",status:cr(d,o)??"backlog"}:t.entityType==="goal"?{kind:"lucide",Icon:Zt,color:"text-muted-foreground"}:{kind:"lucide",Icon:be,color:"text-muted-foreground"}}i(dr,"getIconSpec");function lr({status:t}){const o=Vt[t]??"text-muted-foreground border-muted-foreground",l=t==="done";return(0,e.jsx)("span",{className:y("relative inline-flex h-4 w-4 shrink-0 rounded-full border-2",o),children:l&&(0,e.jsx)("span",{className:"absolute inset-0 m-auto h-2 w-2 rounded-full bg-current"})})}i(lr,"StatusCircle");function ur({spec:t}){if(t.kind==="status-circle")return(0,e.jsx)(lr,{status:t.status});const{Icon:o,color:l,filled:d,spin:p}=t;return(0,e.jsx)(o,{className:y("h-4 w-4 shrink-0",l,p&&"animate-spin"),fill:d?"currentColor":"none",strokeWidth:d?1.5:2})}i(ur,"EntityIcon");function mr(t,o,l,d){const p=t.details,h=t.actorType==="agent"?o.get(t.actorId)??null:null,b=h?.name??(t.actorType==="system"?"System":t.actorType==="user"?"Board":t.actorId||"Unknown"),S=d?.get(`${t.entityType}:${t.entityId}`)??null,g=t.entityType==="heartbeat_run",m=g?p?.agentId:void 0,f=g?m?l.get(`agent:${m}`)??null:null:l.get(`${t.entityType}:${t.entityId}`)??null,P=p?.key,A=t.action==="issue.document_created"||t.action==="issue.document_updated",M=f??t.entityId,z=p?.hiredAgentId,$=p?.requestedByAgentId,I=$?o.get($)?.name??null:null,F=p?.type,w=g&&m?`/agents/${m}/runs/${t.entityId}`:t.entityType==="issue"?A&&P?`/issues/${M}#document-${encodeURIComponent(P)}`:`/issues/${M}`:t.entityType==="agent"?`/agents/${t.entityId}`:t.entityType==="approval"?t.action==="approval.approved"&&z?`/agents/${z}`:`/approvals/${t.entityId}`:t.entityType==="project"?`/projects/${ar(f,t.entityId)}`:t.entityType==="goal"?`/goals/${t.entityId}`:null;let v=null,j=!0,N=null;return t.entityType==="issue"?(v=f,N=S):t.entityType==="approval"?(I?v=I:(v=F?Se(F):"approval",j=!1),N=S):t.entityType==="agent"?(v=p?.name??f??t.entityId,N=null):g?(v=f,N=null):(v=f,N=S),{actorName:b,actorType:t.actorType,actor:h,identifier:v,identifierMono:j,title:N,link:w}}i(mr,"resolveContent");function pr({content:t}){return t.actorType==="agent"?(0,e.jsx)(Me,{agent:t.actor,size:16,className:"h-3.5 w-3.5 shrink-0 text-muted-foreground"}):t.actorType==="user"?(0,e.jsx)(Je,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground"}):(0,e.jsx)(be,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground"})}i(pr,"ActorGlyph");function Ae({event:t,agentMap:o,entityNameMap:l,entityTitleMap:d,isActive:p=!1,isMuted:h=!1,isPinned:b=!1,className:S}){const g=t.details,m=mr(t,o,l,d),f=ir(t.action,g,b?"pinned":"chronological"),P=dr(t,g,p),A=h?"text-muted-foreground/70":"text-(--hex-959596)",M=h?"":"group-hover:text-white",z=(0,e.jsxs)(jt,{"data-fc":"card",className:y("flex-row group ml-3 mr-3 md:ml-0 my-2 w-(--sz-calc-1) md:w-(--sz-calc-2) items-center gap-2 p-(--sz-18px) text-xs","transition-(--tp-background-color-border-color) duration-150",m.link&&"cursor-pointer hover:bg-accent hover:border-muted-foreground/30",S),children:[(0,e.jsx)(ur,{spec:P}),(0,e.jsx)(pr,{content:m}),(0,e.jsxs)("span",{className:"flex min-w-0 flex-1 items-baseline gap-1 truncate",children:[(0,e.jsx)("span",{"data-fc":"actor",className:y("font-medium",A,M),children:m.actorName}),(0,e.jsx)("span",{"data-fc":"verb",className:A,children:f}),m.identifier&&(0,e.jsx)("span",{"data-fc":"id",className:y(m.identifierMono&&"font-mono",A,M),children:m.identifier}),m.title&&(0,e.jsx)("span",{"data-fc":"title",className:y("truncate",A,M),children:m.title})]}),b&&(0,e.jsx)("span",{className:"shrink-0 text-xs text-muted-foreground",children:"Review →"}),(0,e.jsx)("span",{"data-fc":"time",className:"shrink-0 text-muted-foreground",children:Xe(t.createdAt)})]});return m.link?(0,e.jsx)(Nt,{to:m.link,"data-fc":"link",className:"block w-full no-underline text-inherit",issueQuicklookSide:"left",children:z}):z}i(Ae,"FeedCard");var fr={"issue.created":1,"issue.document_created":1,"approval.created":1,"approval.approved":1,"approval.rejected":1,"approval.revision_requested":1,"agent.created":1,"issue.work_product_created":1,"issue.updated":2,"issue.work_product_updated":2,"issue.work_product_deleted":2,"issue.checked_out":2,"issue.comment_added":2,"issue.commented":2,"heartbeat.invoked":2,"heartbeat.cancelled":2,"agent.paused":2,"agent.resumed":2,"agent.updated":2,"issue.read_marked":3,"issue.read_unmarked":3,"issue.inbox_archived":3,"issue.inbox_unarchived":3,"issue.released":3,"issue.attachment_added":3,"issue.attachment_removed":3,"issue.document_deleted":3,"issue.document_updated":2,"issue.deleted":3,"issue.feedback_vote_saved":3,"agent.key_created":3,"agent.budget_updated":3,"agent.runtime_session_reset":3,"agent.skills_synced":3,"agent.terminated":2,"approval.requester_wakeup_queued":3,"approval.requester_wakeup_failed":3,"company.created":3,"company.updated":3,"company.archived":3,"company.budget_updated":3,"company.skill_created":3,"company.skill_deleted":3,"project.created":2,"project.updated":3,"project.deleted":3,"goal.created":2,"goal.updated":3,"goal.deleted":3,"cost.reported":3,"cost.recorded":3};function Ee(t){return t.action==="issue.updated"&&t.details&&t.details.status==="in_review"?1:fr[t.action]??3}i(Ee,"getEventTier");var hr=[{value:"all",label:"All"},{value:"in-progress",label:"In Progress"},{value:"for-review",label:"In Review"},{value:"completed",label:"Done"}],xr={all:null,"in-progress":new Set(["issue.created","issue.checked_out","heartbeat.invoked"]),"for-review":new Set(["approval.created","issue.document_created","issue.document_updated"]),completed:new Set(["approval.approved"])},gr={all:null,"in-progress":new Set(["in_progress"]),"for-review":new Set(["in_review"]),completed:new Set(["done"])};function br(t,o){if(o==="all"||xr[o]?.has(t.action))return!0;if(t.action==="issue.updated"&&t.details){const l=gr[o],d=t.details;if(l&&typeof d.status=="string"&&l.has(d.status))return!0}return!1}i(br,"matchesFilter");var yr=3e5;function vr(t){if(t.length===0)return[];const o=[];let l=[t[0]],d=`${t[0].entityType}:${t[0].entityId}`;for(let p=1;p<t.length;p++){const h=t[p],b=`${h.entityType}:${h.entityId}`,S=new Date(l[l.length-1].createdAt).getTime(),g=new Date(h.createdAt).getTime(),m=Math.abs(S-g)<=yr,f=Ee(h);b===d&&m&&f>=2?l.push(h):(We(l,o),l=[h],d=b)}return We(l,o),o}i(vr,"collapseSequential");function We(t,o){if(t.length<=2)for(const l of t)o.push(l);else o.push({type:"collapsed",events:t,entityId:t[0].entityId,entityType:t[0].entityType,latestEvent:t[0]})}i(We,"flushGroup");var wr=3e5;function Ie(t){return Date.now()-new Date(t).getTime()<wr}i(Ie,"isRecent");var jr=`
|
|
1
|
+
var dt=Object.defineProperty;var i=(t,o)=>dt(t,"name",{value:o,configurable:!0});import{a as Ge}from"./rolldown-runtime-DhZMWcEn.js";import{Dt as lt,Et as ut,fi as mt}from"./issue-detail-CZfjXs0M.js";import{t as pt}from"./circle-slash-uNv_ha0X.js";import{t as ft}from"./list-filter-BR4_dvwm.js";import{t as ht}from"./log-in-Dvx9-FMC.js";import{t as xt}from"./send-CH-0xdLm.js";import{$A as gt,$C as bt,Ao as yt,BC as vt,ET as wt,E_ as jt,Ev as kt,GS as O,Gb as Nt,IS as Xe,JT as _t,LS as Ye,ME as It,MT as Tt,NC as be,NE as pe,Oy as Ct,QC as Ke,QT as St,TT as At,Tw as Et,WE as Mt,Yw as Rt,ZT as Dt,_w as fe,bT as zt,bv as $t,d as Ft,fC as qt,hC as Lt,hv as Ot,iS as Pt,ib as Bt,jT as Kt,jb as Me,jo as Wt,kT as Ht,lC as Je,lS as me,mv as Ut,mx as Vt,nj as Qt,p as Gt,pv as Xt,rb as Ze,uw as Yt,v as Jt,vC as Zt,vb as ye,wn as er,x as _e,xE as se,xT as tr,xb as ve,xv as rr,yb as we,yv as sr,zD as ar,zE as y}from"./index-BJtnP7H1.js";import{t as nr}from"./goals-BNJZ4nzg.js";var et={name:"pencil-line",size:24,node:[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]};et.node;var or=St(et),s=Ge(Qt(),1),e=Ge(gt(),1);function Se(t){return typeof t=="string"?t.replace(/_/g," "):String(t??"")}i(Se,"humanize");function ir(t,o,l="chronological"){switch(t){case"issue.created":return"opened";case"issue.updated":{const d=o?.status;if(d==="in_review"&&o?.externalConversationState==="waiting")return"moved to idle";if(typeof d=="string")return`moved to ${Se(d)}`;const p=o?.priority;return typeof p=="string"?`set priority to ${Se(p)} on`:"updated"}case"issue.document_created":return"wrote doc on";case"issue.document_updated":return"edited doc on";case"issue.document_deleted":return"deleted doc from";case"issue.work_product_created":return"delivered work on";case"issue.work_product_updated":return"updated work on";case"issue.work_product_deleted":return"removed work from";case"issue.checked_out":return"picked up";case"issue.released":return"released";case"issue.commented":case"issue.comment_added":return"commented on";case"issue.attachment_added":return"attached a file to";case"issue.attachment_removed":return"removed attachment from";case"issue.deleted":return"deleted";case"approval.created":return l==="pinned"?"needs approval on":"requested approval on";case"approval.approved":return"approved";case"approval.rejected":return"rejected";case"approval.revision_requested":return"requested changes on";case"agent.created":return l==="pinned"?"wants to hire":"hired";case"agent.paused":return"paused";case"agent.resumed":return"resumed";case"agent.updated":return"updated";case"agent.terminated":return"terminated";case"heartbeat.invoked":return"started a run on";case"heartbeat.cancelled":return"cancelled a run on";case"project.created":return"created project";case"project.updated":return"updated project";case"project.deleted":return"deleted project";case"goal.created":return"created goal";case"goal.updated":return"updated goal";case"goal.deleted":return"deleted goal";case"company.created":return"created organization";case"company.updated":return"updated organization";case"company.archived":return"archived organization";case"company.budget_updated":return"updated organization budget";default:return t.replace(/[._]/g," ")}}i(ir,"formatVerb");function cr(t,o){switch(t){case"issue.created":return"todo";case"issue.updated":{const l=o?.status;return l==="in_review"&&o?.externalConversationState==="waiting"?"idle":typeof l=="string"?l:null}case"issue.document_created":case"issue.document_updated":return"in_progress";case"issue.work_product_created":return"in_review";case"approval.created":return"in_review";case"approval.approved":return"done";case"approval.rejected":case"approval.revision_requested":return"blocked";default:return null}}i(cr,"deriveTaskStatus");function dr(t,o,l){const d=t.action;if(d.startsWith("heartbeat."))return l&&d==="heartbeat.invoked"?{kind:"lucide",Icon:fe,color:"text-blue-600 dark:text-blue-400",spin:!0}:{kind:"lucide",Icon:fe,color:"text-muted-foreground"};switch(d){case"approval.created":return{kind:"lucide",Icon:wt,color:"text-amber-600 dark:text-amber-400"};case"approval.approved":return{kind:"lucide",Icon:At,color:"text-green-600 dark:text-green-400"};case"approval.rejected":return{kind:"lucide",Icon:pt,color:"text-red-600 dark:text-red-400"};case"approval.revision_requested":return{kind:"lucide",Icon:or,color:"text-amber-600 dark:text-amber-400",filled:!0}}switch(d){case"agent.created":return{kind:"lucide",Icon:qt,color:"text-purple-600 dark:text-purple-400"};case"agent.paused":return{kind:"lucide",Icon:tr,color:"text-muted-foreground"};case"agent.resumed":return{kind:"lucide",Icon:zt,color:"text-muted-foreground"};case"agent.updated":case"agent.terminated":return{kind:"lucide",Icon:be,color:"text-muted-foreground"}}return d==="issue.document_created"||d==="issue.document_updated"?{kind:"lucide",Icon:Rt,color:"text-blue-600 dark:text-blue-400"}:d.startsWith("issue.work_product_")?{kind:"lucide",Icon:bt,color:"text-indigo-600 dark:text-indigo-400"}:d==="issue.commented"||d==="issue.comment_added"?{kind:"lucide",Icon:Yt,color:"text-muted-foreground"}:d==="issue.checked_out"?{kind:"lucide",Icon:ht,color:"text-muted-foreground"}:t.entityType==="issue"?{kind:"status-circle",status:cr(d,o)??"backlog"}:t.entityType==="goal"?{kind:"lucide",Icon:Zt,color:"text-muted-foreground"}:{kind:"lucide",Icon:be,color:"text-muted-foreground"}}i(dr,"getIconSpec");function lr({status:t}){const o=Vt[t]??"text-muted-foreground border-muted-foreground",l=t==="done";return(0,e.jsx)("span",{className:y("relative inline-flex h-4 w-4 shrink-0 rounded-full border-2",o),children:l&&(0,e.jsx)("span",{className:"absolute inset-0 m-auto h-2 w-2 rounded-full bg-current"})})}i(lr,"StatusCircle");function ur({spec:t}){if(t.kind==="status-circle")return(0,e.jsx)(lr,{status:t.status});const{Icon:o,color:l,filled:d,spin:p}=t;return(0,e.jsx)(o,{className:y("h-4 w-4 shrink-0",l,p&&"animate-spin"),fill:d?"currentColor":"none",strokeWidth:d?1.5:2})}i(ur,"EntityIcon");function mr(t,o,l,d){const p=t.details,h=t.actorType==="agent"?o.get(t.actorId)??null:null,b=h?.name??(t.actorType==="system"?"System":t.actorType==="user"?"Board":t.actorId||"Unknown"),S=d?.get(`${t.entityType}:${t.entityId}`)??null,g=t.entityType==="heartbeat_run",m=g?p?.agentId:void 0,f=g?m?l.get(`agent:${m}`)??null:null:l.get(`${t.entityType}:${t.entityId}`)??null,P=p?.key,A=t.action==="issue.document_created"||t.action==="issue.document_updated",M=f??t.entityId,z=p?.hiredAgentId,$=p?.requestedByAgentId,I=$?o.get($)?.name??null:null,F=p?.type,w=g&&m?`/agents/${m}/runs/${t.entityId}`:t.entityType==="issue"?A&&P?`/issues/${M}#document-${encodeURIComponent(P)}`:`/issues/${M}`:t.entityType==="agent"?`/agents/${t.entityId}`:t.entityType==="approval"?t.action==="approval.approved"&&z?`/agents/${z}`:`/approvals/${t.entityId}`:t.entityType==="project"?`/projects/${ar(f,t.entityId)}`:t.entityType==="goal"?`/goals/${t.entityId}`:null;let v=null,j=!0,N=null;return t.entityType==="issue"?(v=f,N=S):t.entityType==="approval"?(I?v=I:(v=F?Se(F):"approval",j=!1),N=S):t.entityType==="agent"?(v=p?.name??f??t.entityId,N=null):g?(v=f,N=null):(v=f,N=S),{actorName:b,actorType:t.actorType,actor:h,identifier:v,identifierMono:j,title:N,link:w}}i(mr,"resolveContent");function pr({content:t}){return t.actorType==="agent"?(0,e.jsx)(Me,{agent:t.actor,size:16,className:"h-3.5 w-3.5 shrink-0 text-muted-foreground"}):t.actorType==="user"?(0,e.jsx)(Je,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground"}):(0,e.jsx)(be,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground"})}i(pr,"ActorGlyph");function Ae({event:t,agentMap:o,entityNameMap:l,entityTitleMap:d,isActive:p=!1,isMuted:h=!1,isPinned:b=!1,className:S}){const g=t.details,m=mr(t,o,l,d),f=ir(t.action,g,b?"pinned":"chronological"),P=dr(t,g,p),A=h?"text-muted-foreground/70":"text-(--hex-959596)",M=h?"":"group-hover:text-white",z=(0,e.jsxs)(jt,{"data-fc":"card",className:y("flex-row group ml-3 mr-3 md:ml-0 my-2 w-(--sz-calc-1) md:w-(--sz-calc-2) items-center gap-2 p-(--sz-18px) text-xs","transition-(--tp-background-color-border-color) duration-150",m.link&&"cursor-pointer hover:bg-accent hover:border-muted-foreground/30",S),children:[(0,e.jsx)(ur,{spec:P}),(0,e.jsx)(pr,{content:m}),(0,e.jsxs)("span",{className:"flex min-w-0 flex-1 items-baseline gap-1 truncate",children:[(0,e.jsx)("span",{"data-fc":"actor",className:y("font-medium",A,M),children:m.actorName}),(0,e.jsx)("span",{"data-fc":"verb",className:A,children:f}),m.identifier&&(0,e.jsx)("span",{"data-fc":"id",className:y(m.identifierMono&&"font-mono",A,M),children:m.identifier}),m.title&&(0,e.jsx)("span",{"data-fc":"title",className:y("truncate",A,M),children:m.title})]}),b&&(0,e.jsx)("span",{className:"shrink-0 text-xs text-muted-foreground",children:"Review →"}),(0,e.jsx)("span",{"data-fc":"time",className:"shrink-0 text-muted-foreground",children:Xe(t.createdAt)})]});return m.link?(0,e.jsx)(Nt,{to:m.link,"data-fc":"link",className:"block w-full no-underline text-inherit",issueQuicklookSide:"left",children:z}):z}i(Ae,"FeedCard");var fr={"issue.created":1,"issue.document_created":1,"approval.created":1,"approval.approved":1,"approval.rejected":1,"approval.revision_requested":1,"agent.created":1,"issue.work_product_created":1,"issue.updated":2,"issue.work_product_updated":2,"issue.work_product_deleted":2,"issue.checked_out":2,"issue.comment_added":2,"issue.commented":2,"heartbeat.invoked":2,"heartbeat.cancelled":2,"agent.paused":2,"agent.resumed":2,"agent.updated":2,"issue.read_marked":3,"issue.read_unmarked":3,"issue.inbox_archived":3,"issue.inbox_unarchived":3,"issue.released":3,"issue.attachment_added":3,"issue.attachment_removed":3,"issue.document_deleted":3,"issue.document_updated":2,"issue.deleted":3,"issue.feedback_vote_saved":3,"agent.key_created":3,"agent.budget_updated":3,"agent.runtime_session_reset":3,"agent.skills_synced":3,"agent.terminated":2,"approval.requester_wakeup_queued":3,"approval.requester_wakeup_failed":3,"company.created":3,"company.updated":3,"company.archived":3,"company.budget_updated":3,"company.skill_created":3,"company.skill_deleted":3,"project.created":2,"project.updated":3,"project.deleted":3,"goal.created":2,"goal.updated":3,"goal.deleted":3,"cost.reported":3,"cost.recorded":3};function Ee(t){return t.action==="issue.updated"&&t.details&&t.details.status==="in_review"?1:fr[t.action]??3}i(Ee,"getEventTier");var hr=[{value:"all",label:"All"},{value:"in-progress",label:"In Progress"},{value:"for-review",label:"In Review"},{value:"completed",label:"Done"}],xr={all:null,"in-progress":new Set(["issue.created","issue.checked_out","heartbeat.invoked"]),"for-review":new Set(["approval.created","issue.document_created","issue.document_updated"]),completed:new Set(["approval.approved"])},gr={all:null,"in-progress":new Set(["in_progress"]),"for-review":new Set(["in_review"]),completed:new Set(["done"])};function br(t,o){if(o==="all"||xr[o]?.has(t.action))return!0;if(t.action==="issue.updated"&&t.details){const l=gr[o],d=t.details;if(l&&typeof d.status=="string"&&l.has(d.status))return!0}return!1}i(br,"matchesFilter");var yr=3e5;function vr(t){if(t.length===0)return[];const o=[];let l=[t[0]],d=`${t[0].entityType}:${t[0].entityId}`;for(let p=1;p<t.length;p++){const h=t[p],b=`${h.entityType}:${h.entityId}`,S=new Date(l[l.length-1].createdAt).getTime(),g=new Date(h.createdAt).getTime(),m=Math.abs(S-g)<=yr,f=Ee(h);b===d&&m&&f>=2?l.push(h):(We(l,o),l=[h],d=b)}return We(l,o),o}i(vr,"collapseSequential");function We(t,o){if(t.length<=2)for(const l of t)o.push(l);else o.push({type:"collapsed",events:t,entityId:t[0].entityId,entityType:t[0].entityType,latestEvent:t[0]})}i(We,"flushGroup");var wr=3e5;function Ie(t){return Date.now()-new Date(t).getTime()<wr}i(Ie,"isRecent");var jr=`
|
|
2
2
|
@keyframes feed-slide-in {
|
|
3
3
|
from {
|
|
4
4
|
opacity: 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var b=Object.defineProperty;var t=(r,m)=>b(r,"name",{value:m,configurable:!0});import{a as g}from"./rolldown-runtime-DhZMWcEn.js";import{$A as w,E_ as l,GS as n,Gb as h,ME as f,NE as d,YS as v,aE as C,ab as q,ay as y,bE as E,hE as S,nj as k,oE as Q,ub as _,xE as p}from"./index-
|
|
1
|
+
var b=Object.defineProperty;var t=(r,m)=>b(r,"name",{value:m,configurable:!0});import{a as g}from"./rolldown-runtime-DhZMWcEn.js";import{$A as w,E_ as l,GS as n,Gb as h,ME as f,NE as d,YS as v,aE as C,ab as q,ay as y,bE as E,hE as S,nj as k,oE as Q,ub as _,xE as p}from"./index-BJtnP7H1.js";var B=g(k(),1),e=g(w(),1);function M(){const r=f(),m=C(),[j]=Q(),s=(m.token??"").trim(),a=(j.get("code")??"").trim(),N=(0,B.useMemo)(()=>`/board-claim/${encodeURIComponent(s)}${a?`?code=${encodeURIComponent(a)}`:""}`,[s,a]),u=p({queryKey:n.auth.session,queryFn:t(()=>v.getSession(),"queryFn")}),o=p({queryKey:["board-claim",s,a],queryFn:t(()=>y.getBoardClaimStatus(s,a),"queryFn"),enabled:s.length>0&&a.length>0}),c=_(o),i=E({mutationFn:t(()=>y.claimBoard(s,a),"mutationFn"),onSuccess:t(async()=>{await r.invalidateQueries({queryKey:n.auth.session}),await r.invalidateQueries({queryKey:n.health}),await r.invalidateQueries({queryKey:n.companies.all}),await r.invalidateQueries({queryKey:n.companies.stats}),await o.refetch()},"onSuccess")});if(!s||!a)return(0,e.jsx)("div",{className:"mx-auto max-w-xl py-10 text-sm text-destructive",children:"Invalid board claim URL."});if(o.isLoading||u.isLoading)return(0,e.jsx)("div",{className:"mx-auto max-w-xl py-10 text-sm text-muted-foreground",children:"Loading claim challenge..."});if(c.kind==="error")return(0,e.jsx)("div",{className:"mx-auto max-w-xl py-10",children:(0,e.jsx)(l,{className:"block p-6",children:(0,e.jsx)(q,{size:"panel",error:c.error,action:"load the board claim challenge",onRetry:c.retry,retrying:c.isFetching})})});const x=o.data;return x?x.status==="claimed"?(0,e.jsx)("div",{className:"mx-auto max-w-xl py-10",children:(0,e.jsxs)(l,{className:"block p-6",children:[(0,e.jsx)("h1",{className:"text-lg font-semibold",children:"Board ownership claimed"}),(0,e.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"This instance is now linked to your authenticated user."}),(0,e.jsx)(d,{asChild:!0,className:"mt-4",children:(0,e.jsx)(h,{to:"/",children:"Open board"})})]})}):u.data?(0,e.jsx)("div",{className:"mx-auto max-w-xl py-10",children:(0,e.jsxs)(l,{className:"block p-6",children:[(0,e.jsx)("h1",{className:"text-xl font-semibold",children:"Claim Board ownership"}),(0,e.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"This will promote your user to instance admin and migrate organization ownership access from local trusted mode."}),i.isError&&(0,e.jsx)("p",{className:"mt-3 text-sm text-destructive",children:S(i.error).body}),(0,e.jsx)(d,{className:"mt-5",onClick:t(()=>i.mutate(),"onClick"),disabled:i.isPending,children:i.isPending?"Claiming…":"Claim ownership"})]})}):(0,e.jsx)("div",{className:"mx-auto max-w-xl py-10",children:(0,e.jsxs)(l,{className:"block p-6",children:[(0,e.jsx)("h1",{className:"text-lg font-semibold",children:"Sign in required"}),(0,e.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"Sign in or create an account, then return to this page to claim Board ownership."}),(0,e.jsx)(d,{asChild:!0,className:"mt-4",children:(0,e.jsx)(h,{to:`/auth?next=${encodeURIComponent(N)}`,children:"Sign in / Create account"})})]})}):(0,e.jsx)("div",{className:"mx-auto max-w-xl py-10 text-sm text-destructive",children:"Claim challenge unavailable."})}t(M,"BoardClaimPage");export{M as BoardClaimPage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var c=Object.defineProperty;var s=(t,d)=>c(t,"name",{value:d,configurable:!0});import{a as l}from"./rolldown-runtime-DhZMWcEn.js";import{$A as o,AC as m,E_ as x,NE as a,_C as h,_w as r,hC as u,tr as p}from"./index-
|
|
1
|
+
var c=Object.defineProperty;var s=(t,d)=>c(t,"name",{value:d,configurable:!0});import{a as l}from"./rolldown-runtime-DhZMWcEn.js";import{$A as o,AC as m,E_ as x,NE as a,_C as h,_w as r,hC as u,tr as p}from"./index-BJtnP7H1.js";var e=l(o(),1),f={"signed-out-private":"1 · authenticated/private — signed out (browser claim available)","signed-in-private":"2 · authenticated/private — signed in (claim CTA primary)",claiming:"3 · authenticated/private — claim in flight","claim-error":"4 · authenticated/private — claim error (e.g. 409 already claimed)","claim-success":"5 · authenticated/private — claim succeeded, redirect pending","public-invite-only":"6 · authenticated/public — invite-only (no browser claim)"},j=["signed-out-private","signed-in-private","claiming","claim-error","claim-success","public-invite-only"];function n({hasActiveInvite:t}){return(0,e.jsxs)("div",{className:"mt-6 border-t border-border pt-5",children:[(0,e.jsxs)("div",{className:"flex items-center gap-2 text-sm font-medium",children:[(0,e.jsx)(h,{className:"size-4 text-muted-foreground","aria-hidden":!0}),(0,e.jsx)("span",{children:"Prefer to finish setup from the host?"})]}),(0,e.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:t?"A bootstrap invite is already active. Check your Microvac startup logs for the first‑admin URL, or run this command on the host to rotate it:":"Run this command on the host that runs Microvac to print a one‑time first‑admin invite URL:"}),(0,e.jsx)("pre",{className:"mt-3 overflow-x-auto rounded-md border border-border bg-muted/30 p-3 font-mono text-xs",children:p})]})}s(n,"CliFallback");function i({children:t}){return(0,e.jsx)("div",{className:"mx-auto max-w-xl py-10",children:(0,e.jsx)(x,{className:"block p-6",children:t})})}s(i,"StateChrome");function g(){return(0,e.jsxs)(i,{children:[(0,e.jsx)("h1",{className:"text-xl font-semibold",children:"Finish setting up this Microvac"}),(0,e.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"No admin has claimed this instance yet. Sign in or create your Microvac account to become the first admin from this browser."}),(0,e.jsx)("div",{className:"mt-5",children:(0,e.jsx)(a,{asChild:!0,children:(0,e.jsx)("a",{href:"/auth?next=/",children:"Sign in / Create account"})})}),(0,e.jsx)(n,{hasActiveInvite:!1})]})}s(g,"SignedOutPrivate");function v(){return(0,e.jsxs)(i,{children:[(0,e.jsx)("h1",{className:"text-xl font-semibold",children:"Finish setting up this Microvac"}),(0,e.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"No admin has claimed this instance yet. Claim it now to become the first admin and start onboarding."}),(0,e.jsxs)("div",{className:"mt-5 flex flex-wrap items-center gap-3",children:[(0,e.jsx)(a,{children:"Claim this instance"}),(0,e.jsxs)("span",{className:"text-sm text-muted-foreground",children:["Signed in as ",(0,e.jsx)("span",{className:"font-medium text-foreground",children:"jane@appliance.local"})]})]}),(0,e.jsxs)("p",{className:"mt-3 text-xs text-muted-foreground",children:["Wrong account?"," ",(0,e.jsx)("a",{href:"/auth?next=/",className:"underline underline-offset-2",children:"Switch account"}),"."]}),(0,e.jsx)(n,{hasActiveInvite:!1})]})}s(v,"SignedInPrivate");function b(){return(0,e.jsxs)(i,{children:[(0,e.jsx)("h1",{className:"text-xl font-semibold",children:"Finish setting up this Microvac"}),(0,e.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"No admin has claimed this instance yet. Claim it now to become the first admin and start onboarding."}),(0,e.jsxs)("div",{className:"mt-5 flex flex-wrap items-center gap-3",children:[(0,e.jsxs)(a,{disabled:!0,children:[(0,e.jsx)(r,{className:"mr-2 size-4 animate-spin","aria-hidden":!0}),"Claiming…"]}),(0,e.jsxs)("span",{className:"text-sm text-muted-foreground",children:["Signed in as ",(0,e.jsx)("span",{className:"font-medium text-foreground",children:"jane@appliance.local"})]})]}),(0,e.jsx)(n,{hasActiveInvite:!1})]})}s(b,"ClaimingPrivate");function N(){return(0,e.jsxs)(i,{children:[(0,e.jsx)("h1",{className:"text-xl font-semibold",children:"Finish setting up this Microvac"}),(0,e.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"No admin has claimed this instance yet. Claim it now to become the first admin and start onboarding."}),(0,e.jsxs)("div",{className:"mt-5 flex flex-wrap items-center gap-3",children:[(0,e.jsx)(a,{children:"Claim this instance"}),(0,e.jsxs)("span",{className:"text-sm text-muted-foreground",children:["Signed in as ",(0,e.jsx)("span",{className:"font-medium text-foreground",children:"jane@appliance.local"})]})]}),(0,e.jsxs)("div",{role:"alert",className:"mt-4 flex items-start gap-2 rounded-md border border-destructive/40 bg-destructive/10 p-3 text-sm text-destructive",children:[(0,e.jsx)(u,{className:"mt-0.5 size-4 flex-shrink-0","aria-hidden":!0}),(0,e.jsxs)("div",{children:[(0,e.jsx)("p",{className:"font-medium",children:"Someone else has already claimed this instance."}),(0,e.jsxs)("p",{className:"mt-1 text-destructive/90",children:["Refresh to sign in, or ask the existing admin to invite you from"," ",(0,e.jsx)("span",{className:"font-mono",children:"Settings → Access"}),"."]})]})]}),(0,e.jsx)(n,{hasActiveInvite:!1})]})}s(N,"ClaimErrorPrivate");function C(){return(0,e.jsxs)(i,{children:[(0,e.jsxs)("div",{className:"flex items-start gap-3",children:[(0,e.jsx)("div",{className:"mt-0.5 flex size-9 flex-shrink-0 items-center justify-center rounded-full bg-emerald-500/15 text-emerald-600 dark:text-emerald-400",children:(0,e.jsx)(m,{className:"size-5","aria-hidden":!0})}),(0,e.jsxs)("div",{children:[(0,e.jsx)("h1",{className:"text-xl font-semibold",children:"You’re the instance admin"}),(0,e.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"Setup is complete. Taking you to onboarding to create your first organization…"})]})]}),(0,e.jsxs)("div",{className:"mt-5 flex items-center gap-3",children:[(0,e.jsx)(r,{className:"size-4 animate-spin text-muted-foreground","aria-hidden":!0}),(0,e.jsx)("span",{className:"text-sm text-muted-foreground",children:"Redirecting…"})]}),(0,e.jsx)("div",{className:"mt-5",children:(0,e.jsx)(a,{asChild:!0,variant:"outline",children:(0,e.jsx)("a",{href:"/",children:"Continue to dashboard"})})})]})}s(C,"ClaimSuccess");function y(){return(0,e.jsxs)(i,{children:[(0,e.jsx)("h1",{className:"text-xl font-semibold",children:"This Microvac is waiting on its first admin"}),(0,e.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"This instance runs in invite‑only mode. The operator must generate a one‑time first‑admin invite URL from the host. Once you have the link, open it from this browser to finish setup."}),(0,e.jsx)(n,{hasActiveInvite:!0}),(0,e.jsx)("p",{className:"mt-4 text-xs text-muted-foreground",children:"Browser‑based claim is intentionally disabled in public mode so anyone on the network can’t promote themselves."})]})}s(y,"PublicInviteOnly");var w={"signed-out-private":(0,e.jsx)(g,{}),"signed-in-private":(0,e.jsx)(v,{}),claiming:(0,e.jsx)(b,{}),"claim-error":(0,e.jsx)(N,{}),"claim-success":(0,e.jsx)(C,{}),"public-invite-only":(0,e.jsx)(y,{})};function T(){return(0,e.jsxs)("div",{className:"bg-background min-h-screen pb-16",children:[(0,e.jsx)("header",{className:"border-b border-border bg-muted/20",children:(0,e.jsxs)("div",{className:"mx-auto max-w-3xl px-6 py-6",children:[(0,e.jsx)("p",{className:"text-xs font-medium uppercase tracking-wider text-muted-foreground",children:"UX Lab"}),(0,e.jsx)("h1",{className:"mt-1 text-2xl font-semibold",children:"Bootstrap-pending setup states"}),(0,e.jsxs)("p",{className:"mt-2 max-w-2xl text-sm text-muted-foreground",children:["Fixtures for the bootstrap-pending screen in ",(0,e.jsx)("span",{className:"font-mono",children:"CloudAccessGate"}),". Used as the UX spec for"," ",(0,e.jsx)("a",{className:"underline underline-offset-2",href:"/PAP/issues/PAP-10113",children:"PAP-10113"})," ","and the implementation reference for"," ",(0,e.jsx)("a",{className:"underline underline-offset-2",href:"/PAP/issues/PAP-10114",children:"PAP-10114"}),". The browser claim CTA only appears when"," ",(0,e.jsx)("span",{className:"font-mono",children:'deploymentMode === "authenticated"'})," and"," ",(0,e.jsx)("span",{className:"font-mono",children:'deploymentExposure === "private"'}),"."]})]})}),(0,e.jsx)("main",{className:"mx-auto max-w-3xl space-y-12 px-6 pt-10",children:j.map(t=>(0,e.jsxs)("section",{"aria-labelledby":`lab-${t}`,children:[(0,e.jsx)("h2",{id:`lab-${t}`,className:"mb-3 text-xs font-medium uppercase tracking-wider text-muted-foreground",children:f[t]}),(0,e.jsx)("div",{className:"rounded-lg border border-dashed border-border/70 bg-muted/10 p-2",children:w[t]})]},t))})]})}s(T,"BootstrapSetupUxLab");export{T as BootstrapSetupUxLab};
|