dorkos 0.126.4 → 0.127.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/cli.js +7648 -7063
- package/dist/browser/native/package-manifest.json +1 -1
- package/dist/browser/source-manifest.json +1 -1
- package/dist/client/assets/{AboutPage-CAt15a-r.js → AboutPage-BnnwvwU1.js} +1 -1
- package/dist/client/assets/{ActivityErrorState-s4xAcJQR.js → ActivityErrorState-DW-plne9.js} +1 -1
- package/dist/client/assets/{ActivityPage-BpSggjZV.js → ActivityPage-BMrtNC9t.js} +1 -1
- package/dist/client/assets/{ActivityRow-5PJBHIt2.js → ActivityRow-BnBDxJqK.js} +1 -1
- package/dist/client/assets/{AdapterIcon-d8mZODCX.js → AdapterIcon-J2UUIfEX.js} +1 -1
- package/dist/client/assets/{AdapterSetupWizard-R-KxNMiM.js → AdapterSetupWizard-MDV6zwYC.js} +1 -1
- package/dist/client/assets/{AgentOptionRow-hemBruhh.js → AgentOptionRow-Dj2MlE6E.js} +1 -1
- package/dist/client/assets/{AgentPicker-DOba9a77.js → AgentPicker-D6MsFN_H.js} +1 -1
- package/dist/client/assets/{AgentRequestCard-RFQOrk-W.js → AgentRequestCard-BTyuNOhU.js} +1 -1
- package/dist/client/assets/{AppearancePage-1m4bJ-Rg.js → AppearancePage-DJfJUAkw.js} +1 -1
- package/dist/client/assets/{ApplyToOverridesDialog-BxeMLhGv.js → ApplyToOverridesDialog-Akw0_458.js} +1 -1
- package/dist/client/assets/{AttentionSignalRow-BoTonsR5.js → AttentionSignalRow-Cx9-sStN.js} +1 -1
- package/dist/client/assets/{BaseTanStackRouterDevtoolsPanel-B-iktbLX-Bz6XyZ6v.js → BaseTanStackRouterDevtoolsPanel-B-iktbLX-CRlmlore.js} +1 -1
- package/dist/client/assets/{BindingDialog-CILm91iU.js → BindingDialog-ZAX-h6D4.js} +1 -1
- package/dist/client/assets/{BlintzCanvas-BFJXKo1L.js → BlintzCanvas-fEMJgpNx.js} +3 -3
- package/dist/client/assets/{CanvasCsvContent-DzkaHpEo.js → CanvasCsvContent-CUoIFG7g.js} +1 -1
- package/dist/client/assets/{CanvasFileContent-DZf9SjJn.js → CanvasFileContent-Cg2jcXse.js} +2 -2
- package/dist/client/assets/{CanvasModel3dContent-Cd8hf6Ba.js → CanvasModel3dContent-BL-UiHAj.js} +2 -2
- package/dist/client/assets/ChannelComposer-BHxXoQwT.js +44 -0
- package/dist/client/assets/{ChatAppsOff-X5Y8OHAz.js → ChatAppsOff-CSSu_yVC.js} +1 -1
- package/dist/client/assets/{CodeMirrorDiff-BsQKbrls.js → CodeMirrorDiff-dfcDpguR.js} +1 -1
- package/dist/client/assets/{CodeMirrorEditor-DnkumDd3.js → CodeMirrorEditor-C1YQ35ki.js} +1 -1
- package/dist/client/assets/{CommitmentList-BjI2jvMX.js → CommitmentList-B6RG_hWB.js} +1 -1
- package/dist/client/assets/{CommitmentsPage-7g68FcGR.js → CommitmentsPage-CDFvo1lt.js} +1 -1
- package/dist/client/assets/{ComputerResourceView-Dcd0e_Oj.js → ComputerResourceView-vJ8UfRNm.js} +1 -1
- package/dist/client/assets/{ComputerViewer-Dq3aQyZD.js → ComputerViewer-BTqPuZyh.js} +1 -1
- package/dist/client/assets/{ConnectionAccessLists-CXPn8ICQ.js → ConnectionAccessLists-DPnmOuiA.js} +1 -1
- package/dist/client/assets/{ConnectionsPage-DEc4JsR5.js → ConnectionsPage-CSHnGkha.js} +1 -1
- package/dist/client/assets/{ConventionPage-B7cm4O1D.js → ConventionPage-C6WsAvm4.js} +1 -1
- package/dist/client/assets/{ExtensionPageRoute-ba2uGsYs.js → ExtensionPageRoute-CGjw2Cwy.js} +1 -1
- package/dist/client/assets/{FloatingTanStackRouterDevtools-CqogiFob-Dxk_rLHR.js → FloatingTanStackRouterDevtools-CqogiFob-CKlmwuIc.js} +1 -1
- package/dist/client/assets/{ForwardConsentHost-CNuTTR3q.js → ForwardConsentHost-D8rVtTRp.js} +1 -1
- package/dist/client/assets/HandlePage-BciCIffv.js +1 -0
- package/dist/client/assets/{HeartbeatPage-CEb8SaAx.js → HeartbeatPage-DQImR4dY.js} +1 -1
- package/dist/client/assets/{KeyEntry-CHJpgP6H.js → KeyEntry-BerpQFQT.js} +1 -1
- package/dist/client/assets/{LexicalField-B0tWaDy5.js → LexicalField-CkcKNJGL.js} +1 -1
- package/dist/client/assets/{ManagesPage-rcz--gCT.js → ManagesPage-CV4xieFk.js} +1 -1
- package/dist/client/assets/{Marketplace-wjAUiULQ.js → Marketplace-Cp0e4Nv8.js} +1 -1
- package/dist/client/assets/{MarketplaceSourcesView-BMGnEy8T.js → MarketplaceSourcesView-ZBNnVSuv.js} +1 -1
- package/dist/client/assets/{McpAppFrame-CmwiQHxf.js → McpAppFrame-BtKAUDBg.js} +1 -1
- package/dist/client/assets/{McpSigninBody-D99PCc0n.js → McpSigninBody-DjGrp_sO.js} +1 -1
- package/dist/client/assets/{Model3dViewer-qUwwZnb2.js → Model3dViewer-BSX1QGsE.js} +1 -1
- package/dist/client/assets/NamePage-tBV32PJI.js +1 -0
- package/dist/client/assets/{NewDirectMessageMenu-DyMfEU7i.js → NewDirectMessageMenu-DTQ7vFsa.js} +1 -1
- package/dist/client/assets/{NotificationsPage-BsOaV6Ei.js → NotificationsPage-q7BDVKOz.js} +1 -1
- package/dist/client/assets/{OpenMeshSwitch-CjCPWZn0.js → OpenMeshSwitch-aAMKDAyc.js} +1 -1
- package/dist/client/assets/{OperatorIdentityForm-Cd6B2hxb.js → OperatorIdentityForm-CCAvadEZ.js} +1 -1
- package/dist/client/assets/{PermissionHistory-xp6vPQ20.js → PermissionHistory-_8m4ohGq.js} +1 -1
- package/dist/client/assets/{PermissionsPage-DaAJew99.js → PermissionsPage-DHl8sCfQ.js} +1 -1
- package/dist/client/assets/{PersonalityPopover-BZaif5Fn.js → PersonalityPopover-DOql0nWB.js} +1 -1
- package/dist/client/assets/PhotoPage-DtX2GEvQ.js +1 -0
- package/dist/client/assets/{PreviewRefusedNotice-CCpHgrea.js → PreviewRefusedNotice-BfvSYL-w.js} +1 -1
- package/dist/client/assets/{ProfileFields-DyVqmcPr.js → ProfileFields-CX2mdPAV.js} +1 -1
- package/dist/client/assets/{ProfilePanelContainer-CMRG6AmB.js → ProfilePanelContainer-Cj_57NEG.js} +1 -1
- package/dist/client/assets/{ProfileRolePicker-Q_hY6ybO.js → ProfileRolePicker-D7F0PDw9.js} +1 -1
- package/dist/client/assets/{PromptSuggestionChips-B5afjbD0.js → PromptSuggestionChips-BopMvYe7.js} +1 -1
- package/dist/client/assets/{ReportsToPopover-CVF7Rtzh.js → ReportsToPopover-CG_hjT_U.js} +1 -1
- package/dist/client/assets/{RoomSurface-Bz1DfoQD.js → RoomSurface-Mt3dk4_6.js} +1 -1
- package/dist/client/assets/{RoomsPage-4u74yonc.js → RoomsPage-ByHhS_HA.js} +1 -1
- package/dist/client/assets/{RunsOnPopover-CnUm4LP2.js → RunsOnPopover-DS8_Au0B.js} +1 -1
- package/dist/client/assets/RuntimeConnectFlow-hhvWVRMu.js +1 -0
- package/dist/client/assets/{RuntimeSetupDialog-CEUC7GrY.js → RuntimeSetupDialog-NKy3mLEH.js} +1 -1
- package/dist/client/assets/SeenDevices-65oxnxk6.js +19 -0
- package/dist/client/assets/{SessionsPage-l6_Qc7hz.js → SessionsPage-WbWf0huR.js} +1 -1
- package/dist/client/assets/SettingsDialog-e33ltTb6.js +12 -0
- package/dist/client/assets/{SkillsPage-PlVj6VdA.js → SkillsPage-Cj3XrV8s.js} +1 -1
- package/dist/client/assets/{TaskDialogWrapper-TspfYk9J.js → TaskDialogWrapper-DJAGQuab.js} +1 -1
- package/dist/client/assets/{TasksEmptyState-DsHh0blU.js → TasksEmptyState-DNI1C274.js} +1 -1
- package/dist/client/assets/{TasksPage-Va0dvkif.js → TasksPage-Dc1j_X1K.js} +1 -1
- package/dist/client/assets/{TeamComputerEntry-C6juiObF.js → TeamComputerEntry-DWenh1bP.js} +1 -1
- package/dist/client/assets/{ToolsPage-C0ESG42C.js → ToolsPage-CXKq_axq.js} +1 -1
- package/dist/client/assets/{TopologyGraph-M24Edx-I.js → TopologyGraph-DgTGLoaA.js} +1 -1
- package/dist/client/assets/{TourHost-CcN4uCDR.js → TourHost-C4KKDX9k.js} +1 -1
- package/dist/client/assets/{UnlinkDialog-DlD1cmRZ.js → UnlinkDialog-GfsbP91q.js} +1 -1
- package/dist/client/assets/{UnreadDivider-DPD9MQ8-.js → UnreadDivider-C52_nmrB.js} +1 -1
- package/dist/client/assets/{WidgetErrorCard-Bte2obmw.js → WidgetErrorCard-BZkAK-Ke.js} +1 -1
- package/dist/client/assets/{WithheldExtensionsNotice-CZibLuKA.js → WithheldExtensionsNotice-Dt51QZLT.js} +1 -1
- package/dist/client/assets/{WorkView-PsLjURld.js → WorkView-YozVoXhb.js} +1 -1
- package/dist/client/assets/{_shell-Ce_cSF7V.js → _shell-BScdINMH.js} +1 -1
- package/dist/client/assets/{_shell._home-DcZcTXu8.js → _shell._home-CUusDXBM.js} +1 -1
- package/dist/client/assets/{_shell._home.activity-BXw8iSC4.js → _shell._home.activity-DPjJ1_vZ.js} +1 -1
- package/dist/client/assets/{_shell._home.index-BleaCq_y.js → _shell._home.index-CTBWy5Au.js} +1 -1
- package/dist/client/assets/{_shell._home.tasks-gdbnkq3-.js → _shell._home.tasks-DWFh5Qbq.js} +1 -1
- package/dist/client/assets/{_shell._home.workspaces-BCwJX783.js → _shell._home.workspaces-DWjB1sCd.js} +1 -1
- package/dist/client/assets/{_shell.channels-D-lMqbSA.js → _shell.channels-C6v3yOzH.js} +1 -1
- package/dist/client/assets/_shell.connections-jXaP35mN.js +1 -0
- package/dist/client/assets/{_shell.feedback-requests-NKpm6Uhu.js → _shell.feedback-requests-CyV-aboj.js} +1 -1
- package/dist/client/assets/_shell.marketplace-Cp2Udmlv.js +1 -0
- package/dist/client/assets/_shell.marketplace_.sources-Dg0YgG-u.js +1 -0
- package/dist/client/assets/_shell.session-DyKnijqi.js +1 -0
- package/dist/client/assets/{_shell.team-DcCRbdAb.js → _shell.team-BPevCu33.js} +3 -3
- package/dist/client/assets/{_shell.threads-BLy6Cgqk.js → _shell.threads-gzYSpt7x.js} +1 -1
- package/dist/client/assets/_shell.x._extensionId-BA0u_ZTU.js +1 -0
- package/dist/client/assets/_shell.x._extensionId_._-BA0u_ZTU.js +1 -0
- package/dist/client/assets/{abnfDiagram-WEYOIA3C-DpkXbw1_.js → abnfDiagram-WEYOIA3C-iUnN9Com.js} +1 -1
- package/dist/client/assets/{access-copy-Y2_F9uAx.js → access-copy-CP0B1ZT9.js} +1 -1
- package/dist/client/assets/{arc-B3bZAGvi.js → arc-BVSQ4HBO.js} +1 -1
- package/dist/client/assets/{architectureDiagram-ZHVYKT53-BKR1sFvp.js → architectureDiagram-ZHVYKT53-_zlUU8PS.js} +1 -1
- package/dist/client/assets/{banner-CqhUGJmy.js → banner-DTCBttcQ.js} +1 -1
- package/dist/client/assets/{blockDiagram-RJAE7QA3-C2I50BMQ.js → blockDiagram-RJAE7QA3-COqNq2ny.js} +1 -1
- package/dist/client/assets/{c4Diagram-XDPPPE54-dhHi_wUH.js → c4Diagram-XDPPPE54-Caa3QxQ_.js} +1 -1
- package/dist/client/assets/{card-CM7-_8nD.js → card-D9DO5nt4.js} +1 -1
- package/dist/client/assets/channel-CenDG0-I.js +1 -0
- package/dist/client/assets/{chunk-2E7WHVMD-B0B27SHJ.js → chunk-2E7WHVMD-BqirxZIN.js} +1 -1
- package/dist/client/assets/{chunk-2Q5K7J3B-dsUDjsr2.js → chunk-2Q5K7J3B-CYGt3XQf.js} +1 -1
- package/dist/client/assets/{chunk-4EMNKR2T-C3IdUlS9.js → chunk-4EMNKR2T-Bx234GPP.js} +1 -1
- package/dist/client/assets/{chunk-55XCU76K-D6qgX8rY.js → chunk-55XCU76K-CAA7du3_.js} +1 -1
- package/dist/client/assets/{chunk-5VM5RSS4-CWhRZZS1.js → chunk-5VM5RSS4-Dxl-FvVz.js} +1 -1
- package/dist/client/assets/{chunk-JWPE2WC7-Bd3RyNB2.js → chunk-JWPE2WC7-CjcTenhr.js} +1 -1
- package/dist/client/assets/{chunk-VQ5W62QI-HqUjzAO7.js → chunk-VQ5W62QI-COdK9J2i.js} +1 -1
- package/dist/client/assets/{chunk-XXDRQBXY-CfeGRauy.js → chunk-XXDRQBXY-DeXzMeSy.js} +1 -1
- package/dist/client/assets/{chunk-ZCHMQSOR-D30UE34C.js → chunk-ZCHMQSOR-C7r0u2k6.js} +2 -2
- package/dist/client/assets/{classDiagram-v2-4MYWR3UA-ClIZEeNx.js → classDiagram-v2-4MYWR3UA-BSI2Eza3.js} +1 -1
- package/dist/client/assets/{command-DuhX52Bi.js → command-C7Cl56dV.js} +1 -1
- package/dist/client/assets/{cose-bilkent-JH36ORCC-C_MZbmxw.js → cose-bilkent-JH36ORCC-CLzQXbOG.js} +1 -1
- package/dist/client/assets/{cpu-BMUMZCWW.js → cpu-CLfYM0zq.js} +1 -1
- package/dist/client/assets/{cynefin-EF2NZ3EQ-DjzC1gsw.js → cynefin-EF2NZ3EQ-e_0nKhb5.js} +1 -1
- package/dist/client/assets/{cynefinDiagram-WF24UDRP-Dnu1pf_9.js → cynefinDiagram-WF24UDRP-Cflfw_GE.js} +1 -1
- package/dist/client/assets/{dagre-NK4GIZVX-Bruwoqfg.js → dagre-NK4GIZVX-D66Simjb.js} +1 -1
- package/dist/client/assets/{diagram-CBK3MWTC-Co7nk3xQ.js → diagram-CBK3MWTC-CJEeUCUY.js} +1 -1
- package/dist/client/assets/{diagram-I5XIIV2D-CDJY0Snc.js → diagram-I5XIIV2D-BPSiDLoN.js} +1 -1
- package/dist/client/assets/{diagram-ODIL2UCW-CF0utpvI.js → diagram-ODIL2UCW-DJptgW_s.js} +1 -1
- package/dist/client/assets/{diagram-PFBEJUXE-BrLRX5Ip.js → diagram-PFBEJUXE-BECklqVg.js} +1 -1
- package/dist/client/assets/{diagram-RJA3I4VV-BOo6-thr.js → diagram-RJA3I4VV-B-veBl7Z.js} +1 -1
- package/dist/client/assets/{diagram-TYUNFSNR-B-206XZy.js → diagram-TYUNFSNR-U8kleemE.js} +1 -1
- package/dist/client/assets/{ebnfDiagram-V4P3TTPT-C6SZjvSQ.js → ebnfDiagram-V4P3TTPT-DlwBfJCe.js} +1 -1
- package/dist/client/assets/{elk-QONTBCTQ-B_QHOQ8G.js → elk-QONTBCTQ-DnFzEb3y.js} +1 -1
- package/dist/client/assets/{empty-state-BzWMBBQZ.js → empty-state-2mQX7azC.js} +1 -1
- package/dist/client/assets/{erDiagram-KYQIGQAA-BTKJgVOK.js → erDiagram-KYQIGQAA-CYTM37Ws.js} +1 -1
- package/dist/client/assets/{execution-config-D_PgYyCI.js → execution-config-COqY7hHn.js} +1 -1
- package/dist/client/assets/{file-DiYwTQdD.js → file-CKSjJRX5.js} +1 -1
- package/dist/client/assets/{file-exclamation-point-CnQYdJiV.js → file-exclamation-point-ad7FedZ9.js} +1 -1
- package/dist/client/assets/{file-text-DLPhIP0f.js → file-text-DXPPkxAL.js} +1 -1
- package/dist/client/assets/{find-latest-widget-fence-BYtG5PzD.js → find-latest-widget-fence-BsDq4SYp.js} +1 -1
- package/dist/client/assets/{flowDiagram-IUGLLWBU-o2In4cGl.js → flowDiagram-IUGLLWBU-DD259OPj.js} +1 -1
- package/dist/client/assets/{form-DUFlQ-yL.js → form-C9cPRNOV.js} +1 -1
- package/dist/client/assets/{format-cron-D5dtMPdH.js → format-cron-DIw9_M6c.js} +1 -1
- package/dist/client/assets/{ganttDiagram-R7GPNTJY-WwrWLB2J.js → ganttDiagram-R7GPNTJY-BmoAVY6N.js} +1 -1
- package/dist/client/assets/{git-branch-uZFa3Tmr.js → git-branch-DlUQMA-U.js} +1 -1
- package/dist/client/assets/{gitGraphDiagram-PDYL7XHY-C1yG6xrf.js → gitGraphDiagram-PDYL7XHY-Db8GGxGr.js} +1 -1
- package/dist/client/assets/{graph-C10tj8MW.js → graph-BqwkokGk.js} +1 -1
- package/dist/client/assets/{heart--8btr31M.js → heart-CRoafWCm.js} +1 -1
- package/dist/client/assets/{highlighted-body-KPVGNVTW-DGp-Vg6c.js → highlighted-body-KPVGNVTW-D-QIuqsv.js} +1 -1
- package/dist/client/assets/{image-lightbox-BfwZy_vF.js → image-lightbox-BZBT_ptW.js} +1 -1
- package/dist/client/assets/{image-off-Bmtj2Xtq.js → image-off-Bc6AP3w0.js} +1 -1
- package/dist/client/assets/{index-C-tNYOVV.js → index-78G8l1M7.js} +1 -1
- package/dist/client/assets/{index-C3LZBxuM.js → index-AxYQRAoO.js} +1 -1
- package/dist/client/assets/{index-fge85Gub.js → index-B48IJBNm.js} +236 -231
- package/dist/client/assets/{index-D97clHqL.js → index-BHNwprrd.js} +1 -1
- package/dist/client/assets/{index-D-ZRSiaH.js → index-B_i3pTpf.js} +1 -1
- package/dist/client/assets/{index-BBaFVr5z.js → index-Be3_cvW0.js} +1 -1
- package/dist/client/assets/{index-DamNtsio.js → index-BeCzlnZ3.js} +1 -1
- package/dist/client/assets/{index-8hXtJ0Xw.js → index-Bw1l5I4w.js} +1 -1
- package/dist/client/assets/{index-BJ_fl1Gy.js → index-BwOvHDL2.js} +1 -1
- package/dist/client/assets/{index-CvIKejlx.js → index-ByyXrDny.js} +1 -1
- package/dist/client/assets/{index-CypEgDik.js → index-CFV7Ggyj.js} +1 -1
- package/dist/client/assets/{index-CaxFHvSK.js → index-CMWttCLt.js} +1 -1
- package/dist/client/assets/{index-LGTvsZzp.js → index-CNsZn6QE.js} +1 -1
- package/dist/client/assets/{index-B5i5B8F0.js → index-CTFwtIJP.js} +1 -1
- package/dist/client/assets/{index-YrSNUw95.js → index-CWfreKgt.js} +1 -1
- package/dist/client/assets/{index-DMTfnznD.js → index-CWx_JEio.js} +1 -1
- package/dist/client/assets/{index-CYM65t4i.js → index-CZ4wx2F3.js} +1 -1
- package/dist/client/assets/{index-BCZa5De0.js → index-Clr1ssap.js} +1 -1
- package/dist/client/assets/{index-CO9QUYdl.js → index-CoFRHepD.js} +1 -1
- package/dist/client/assets/{index-Dqouol3i.js → index-CptdhVbC.js} +1 -1
- package/dist/client/assets/{index-mweR5xOP.js → index-Cpy9wOYc.js} +1 -1
- package/dist/client/assets/{index-BE8yM241.js → index-Cs9yQ5zH.js} +1 -1
- package/dist/client/assets/{index-CoL3MmPh.js → index-Cx2slDvh.js} +1 -1
- package/dist/client/assets/{index-BbIFaQ9_.js → index-DDGc0Nfu.js} +1 -1
- package/dist/client/assets/{index-BlHuuCes.js → index-DMlo5rLX.js} +1 -1
- package/dist/client/assets/index-DSt16Y0s.js +1 -0
- package/dist/client/assets/{index-D8ZcqMea.js → index-DV5hFlfw.js} +1 -1
- package/dist/client/assets/{index-CdHuEKYh.js → index-DfWZORsm.js} +1 -1
- package/dist/client/assets/{index-CujX3mpY.css → index-Dry_agqN.css} +1 -1
- package/dist/client/assets/{index-DmG7yphM.js → index-Dtb34mrg.js} +1 -1
- package/dist/client/assets/{index-BtrV6g02.js → index-DwyVu2Mh.js} +1 -1
- package/dist/client/assets/{index-DI9IsN-O.js → index-Hf3kLtiJ.js} +1 -1
- package/dist/client/assets/{index-Nr39AP-T.js → index-a8LKmWxN.js} +1 -1
- package/dist/client/assets/{index-BHXG7bNX.js → index-bSzhhjtG.js} +1 -1
- package/dist/client/assets/{index-E5KPj_ZX.js → index-eF6QtmU6.js} +1 -1
- package/dist/client/assets/{index-CtN6_QCQ.js → index-jIAsl-Y5.js} +2 -2
- package/dist/client/assets/{index-ocZzSFoR.js → index-mrbr3BaJ.js} +1 -1
- package/dist/client/assets/{index-CP47qL8N.js → index-okP_lDUw.js} +1 -1
- package/dist/client/assets/{index-DZQUx5pX.js → index-sCJ7YWzB.js} +3 -3
- package/dist/client/assets/index-sZ8Dddnp.js +1 -0
- package/dist/client/assets/{index-DLPkp7I9.js → index-x0XGESNQ.js} +1 -1
- package/dist/client/assets/{index-CaZ9yNIm.js → index-y1yAU07O.js} +1 -1
- package/dist/client/assets/{index-Dsj1fDYU.js → index-zIfhHvVv.js} +1 -1
- package/dist/client/assets/{index-DenTxAiI.js → index-zSj20f3H.js} +1 -1
- package/dist/client/assets/{index.esm-BEGwgVfU.js → index.esm-uC5dql6Q.js} +1 -1
- package/dist/client/assets/{infoDiagram-MVDRKAX5-oeBcoEBA.js → infoDiagram-MVDRKAX5-y6U3OQ5m.js} +1 -1
- package/dist/client/assets/{inline-code-7dwi7wWG.js → inline-code-BCFlKPIb.js} +1 -1
- package/dist/client/assets/{ishikawaDiagram-HPEHV2GE-CLIGz304.js → ishikawaDiagram-HPEHV2GE-D32SA0vX.js} +1 -1
- package/dist/client/assets/{journeyDiagram-BOSHW7O7-Cg0HlPT5.js → journeyDiagram-BOSHW7O7-D1X0dI8X.js} +1 -1
- package/dist/client/assets/{kanban-definition-FNSA4HC5-DXaqYXhm.js → kanban-definition-FNSA4HC5-gU9KcKa4.js} +1 -1
- package/dist/client/assets/{layers-BhECZJWp.js → layers-A4MxcGWV.js} +1 -1
- package/dist/client/assets/{lightbulb-DjMxuZnu.js → lightbulb-Dh2dYHMS.js} +1 -1
- package/dist/client/assets/{link-2-BY2WyWzK.js → link-2-qEUih2FP.js} +1 -1
- package/dist/client/assets/{list-runtime-types-hMouIGtG.js → list-runtime-types-B1J9AtqH.js} +1 -1
- package/dist/client/assets/{markdown-content-DV3AiG76.js → markdown-content-BA0KEJH_.js} +1 -1
- package/dist/client/assets/mention-pill-0aHe3D1A.js +1 -0
- package/dist/client/assets/{mermaid.core-_ZqWvaFB.js → mermaid.core-Birdr1kF.js} +4 -4
- package/dist/client/assets/{message-square-off-w0__0O5g.js → message-square-off-DvVenheW.js} +1 -1
- package/dist/client/assets/{mindmap-definition-6OY57UG3-BRVkHL68.js → mindmap-definition-6OY57UG3-CLlh3nSF.js} +1 -1
- package/dist/client/assets/{more-details-BUolHzrY.js → more-details-Bo2AAXHj.js} +1 -1
- package/dist/client/assets/{owner-notice-Cn5EUxgh.js → owner-notice-DReCUEf1.js} +1 -1
- package/dist/client/assets/{package-BafFSryH.js → package-CxZe6vve.js} +1 -1
- package/dist/client/assets/{page-container-BCdJ_DsH.js → page-container-Bx1sr900.js} +1 -1
- package/dist/client/assets/{pane-resize-handle-Bar-FdkY.js → pane-resize-handle-ojhYGmDs.js} +1 -1
- package/dist/client/assets/{paperclip-DY4e-IlK.js → paperclip-D3-8ygf1.js} +1 -1
- package/dist/client/assets/{path-input-SZl4NGTs.js → path-input-D_o1_pAa.js} +1 -1
- package/dist/client/assets/{pegDiagram-ECIUJNBX-D9J7XmXK.js → pegDiagram-ECIUJNBX-BeMd_oXJ.js} +1 -1
- package/dist/client/assets/{pieDiagram-GNMPY74T-myMGqtsR.js → pieDiagram-GNMPY74T-CXUXnp_A.js} +1 -1
- package/dist/client/assets/{plug-BdWCGVJg.js → plug-Du5LK0oZ.js} +1 -1
- package/dist/client/assets/{primer-trigger-r8N0YY5e.js → primer-trigger-BxofQe1n.js} +1 -1
- package/dist/client/assets/{profile-errors-DymWFWiP.js → profile-errors-C0BgTjzk.js} +1 -1
- package/dist/client/assets/{progress-es667_cM.js → progress-AKcr8opu.js} +1 -1
- package/dist/client/assets/{quadrantDiagram-D57K4MC3-D5_2lcqK.js → quadrantDiagram-D57K4MC3-FTkKRlZm.js} +1 -1
- package/dist/client/assets/{query-error-state-BNPduDBN.js → query-error-state-CRmZMMkL.js} +1 -1
- package/dist/client/assets/{radio-DpWUX1KL.js → radio-DQHR6Su5.js} +1 -1
- package/dist/client/assets/{railroadDiagram-Y72NRBL7-D15ELhSC.js → railroadDiagram-Y72NRBL7-D5TdGrPg.js} +1 -1
- package/dist/client/assets/{registry-5Qudcjd5.js → registry-BxY1lah6.js} +4 -4
- package/dist/client/assets/registry-CWK5lzYs.js +1 -0
- package/dist/client/assets/{relay-trace-schemas-DURazPP9.js → relay-trace-schemas---fuhTF2.js} +1 -1
- package/dist/client/assets/{repeat-HOHWZc6L.js → repeat-zL9y24zY.js} +1 -1
- package/dist/client/assets/{requirementDiagram-EQYSW5RA-CHcEVlsR.js → requirementDiagram-EQYSW5RA-Dxiv9lE0.js} +1 -1
- package/dist/client/assets/{room-files-source-BO3E2ed0.js → room-files-source-B0WR4gIC.js} +1 -1
- package/dist/client/assets/{rotate-ccw-clock-Dniulnw5.js → rotate-ccw-clock-BUhy2_cF.js} +1 -1
- package/dist/client/assets/{rotate-cw-um9OzAM7.js → rotate-cw-CCrNd4eJ.js} +1 -1
- package/dist/client/assets/{sankeyDiagram-SY24JHO5-_R5087R3.js → sankeyDiagram-SY24JHO5-C3jjstXq.js} +1 -1
- package/dist/client/assets/{scroll-area-MdXbnM77.js → scroll-area-D6gNpFjK.js} +1 -1
- package/dist/client/assets/{search-x-CHNgYj0F.js → search-x-CUZ1LRYe.js} +1 -1
- package/dist/client/assets/{sequenceDiagram-BLEHNHQU-BzHmSHMF.js → sequenceDiagram-BLEHNHQU-CIDmjz0x.js} +1 -1
- package/dist/client/assets/{shield-x-CDXAW9YF.js → shield-x-Ch7sY2XD.js} +1 -1
- package/dist/client/assets/{signed-in-JAMHtSjx.js → signed-in-BQ44fFH5.js} +1 -1
- package/dist/client/assets/{sizeCapture-INFHLROL-CqA3cZcy.js → sizeCapture-INFHLROL-Dkp-75Wy.js} +1 -1
- package/dist/client/assets/{soul-file-BcaDvIdL.js → soul-file-CTFcpRMh.js} +1 -1
- package/dist/client/assets/{stateDiagram-v2-A6IESKWZ-RAA8YyBW.js → stateDiagram-v2-A6IESKWZ-L_51UnwV.js} +1 -1
- package/dist/client/assets/{swimlanes-B3ENRKFQ-BQvgJIcj.js → swimlanes-B3ENRKFQ-D-etAQQd.js} +1 -1
- package/dist/client/assets/swimlanesDiagram-AYQRV4AK-zjIBWGY4.js +8 -0
- package/dist/client/assets/{table-BcJvj9rx.js → table-D6BUawIb.js} +1 -1
- package/dist/client/assets/{timeline-definition-JXYKGLGB-DXi0saeN.js → timeline-definition-JXYKGLGB-DNxnC3VG.js} +1 -1
- package/dist/client/assets/{trust-posture-vH4plBRD.js → trust-posture-5IWBJmA5.js} +1 -1
- package/dist/client/assets/{unplug-CK2bPGpg.js → unplug-BVIT6OSL.js} +1 -1
- package/dist/client/assets/{unverified-catalog-notice-WMkPDdUp.js → unverified-catalog-notice-BA7_V-80.js} +1 -1
- package/dist/client/assets/{use-bindings-h_mG9d64.js → use-bindings-DdWRXvtd.js} +1 -1
- package/dist/client/assets/{use-composer-prefs-DhCnTsrF.js → use-composer-prefs-DC5w4eWw.js} +1 -1
- package/dist/client/assets/{use-connector-management-CXVz2xe3.js → use-connector-management-DDlpD6tk.js} +1 -1
- package/dist/client/assets/{use-deep-link-scroll-DYOZ5k0G.js → use-deep-link-scroll-Cvv0VcXx.js} +1 -1
- package/dist/client/assets/{use-delete-binding-CHAeTC_Q.js → use-delete-binding-D585ISkL.js} +1 -1
- package/dist/client/assets/{use-dev-links-CM2NIeqy.js → use-dev-links-BwS5hgur.js} +1 -1
- package/dist/client/assets/{use-direct-message-panel-DXTH05Ym.js → use-direct-message-panel--unflmj8.js} +1 -1
- package/dist/client/assets/{use-external-adapter-catalog-DKlBkkvF.js → use-external-adapter-catalog-DUyh1bH1.js} +1 -1
- package/dist/client/assets/{use-full-activity-feed-QZAZ5vBJ.js → use-full-activity-feed-DsNOIkL8.js} +1 -1
- package/dist/client/assets/use-is-below-desktop-C-4kc5lS.js +1 -0
- package/dist/client/assets/{use-local-browser-43FpcgCM.js → use-local-browser-DGIut7R4.js} +1 -1
- package/dist/client/assets/{use-mesh-topology-Bw7MmKA9.js → use-mesh-topology-DNXD7seM.js} +1 -1
- package/dist/client/assets/{use-mounted-ref-Cuui7-gf.js → use-mounted-ref-7xoMthh4.js} +1 -1
- package/dist/client/assets/{use-notification-prefs-CJnF55Rv.js → use-notification-prefs-CzibxpTZ.js} +1 -1
- package/dist/client/assets/use-pending-read-BTR5-HXf.js +1 -0
- package/dist/client/assets/{use-personality-commit-p6Of1UxX.js → use-personality-commit-isaMS7W5.js} +1 -1
- package/dist/client/assets/{use-promo-activation-CxG-kZJQ.js → use-promo-activation-DesLEeyi.js} +1 -1
- package/dist/client/assets/{use-promo-dismissals-DeNbRWOh.js → use-promo-dismissals-DQi8tey8.js} +1 -1
- package/dist/client/assets/{use-pulse-freshness-CdRkKThf.js → use-pulse-freshness-DPplpvcq.js} +1 -1
- package/dist/client/assets/{use-room-follow-claim-_B7HonZx.js → use-room-follow-claim-C4UikQzz.js} +1 -1
- package/dist/client/assets/{use-room-sessions-CrFskgCJ.js → use-room-sessions-C6wsszcG.js} +1 -1
- package/dist/client/assets/{use-roving-tab-list-DSjW4_wm.js → use-roving-tab-list-DEh387tR.js} +1 -1
- package/dist/client/assets/{use-session-canvas-KguPfnsc.js → use-session-canvas-B2CM1KZu.js} +3 -3
- package/dist/client/assets/{use-status-budget-CTereFSr.js → use-status-budget-CltxSIUD.js} +1 -1
- package/dist/client/assets/{use-transform-YUDqOhoc.js → use-transform-CNLqlc2h.js} +1 -1
- package/dist/client/assets/{use-unclaimed-chats-B9ChucvA.js → use-unclaimed-chats-DJyl7A1E.js} +1 -1
- package/dist/client/assets/use-update-config-B2rsDnxk.js +1 -0
- package/dist/client/assets/{useMutationState-TJGtJT5R.js → useMutationState-BX-ggHVY.js} +1 -1
- package/dist/client/assets/{usecaseDiagram-WPOLBNNX-Cjs1EpVL.js → usecaseDiagram-WPOLBNNX-2l6yZUUH.js} +1 -1
- package/dist/client/assets/{vennDiagram-Q3Y3IDCW-BtgH-ZyN.js → vennDiagram-Q3Y3IDCW-DIOfjNDq.js} +1 -1
- package/dist/client/assets/{wardleyDiagram-IVAIDKWA-BCWHQ18G.js → wardleyDiagram-IVAIDKWA-B5Hx1we8.js} +1 -1
- package/dist/client/assets/{xychartDiagram-4URNHDU4-CUBPWq_V.js → xychartDiagram-4URNHDU4-sy90CqIK.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/index.js +28125 -24702
- package/dist/server/index.js.map +2 -2
- package/package.json +7 -7
- package/dist/client/assets/ChannelComposer-YXkkFcyY.js +0 -44
- package/dist/client/assets/HandlePage-WIwOCyJg.js +0 -1
- package/dist/client/assets/NamePage-B7VSrPmK.js +0 -1
- package/dist/client/assets/PhotoPage-43WNaavk.js +0 -1
- package/dist/client/assets/RuntimeConnectFlow-B0TIITVq.js +0 -1
- package/dist/client/assets/SeenDevices-CxhuIRp3.js +0 -19
- package/dist/client/assets/SettingsDialog-GEK8nhI8.js +0 -12
- package/dist/client/assets/_shell.connections-BFmTpceq.js +0 -1
- package/dist/client/assets/_shell.marketplace-DB7NSxDU.js +0 -1
- package/dist/client/assets/_shell.marketplace_.sources-WU9ILkRM.js +0 -1
- package/dist/client/assets/_shell.session-CchZWYRA.js +0 -1
- package/dist/client/assets/_shell.x._extensionId-CVW0g7Rb.js +0 -1
- package/dist/client/assets/_shell.x._extensionId_._-CVW0g7Rb.js +0 -1
- package/dist/client/assets/channel-NlrM9BR7.js +0 -1
- package/dist/client/assets/index-Cz9N1NHd.js +0 -1
- package/dist/client/assets/index-DAaYbj1s.js +0 -1
- package/dist/client/assets/mention-pill-Db0XBC6Z.js +0 -1
- package/dist/client/assets/registry-DvKu39S1.js +0 -1
- package/dist/client/assets/swimlanesDiagram-AYQRV4AK-iDgTYazX.js +0 -8
- package/dist/client/assets/use-is-below-desktop-DS51QTwj.js +0 -1
- package/dist/client/assets/use-pending-read-DB25CO5E.js +0 -1
- package/dist/client/assets/use-update-config-BH0agtZh.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a1 as u,dL as h,a4 as p,dM as k,j as r,d0 as D,d1 as j,d3 as x,d4 as L,d5 as R,dN as P,B as f,dD as l}from"./index-
|
|
1
|
+
import{a1 as u,dL as h,a4 as p,dM as k,j as r,d0 as D,d1 as j,d3 as x,d4 as L,d5 as R,dN as P,B as f,dD as l}from"./index-B48IJBNm.js";import{u as m}from"./use-dev-links-BwS5hgur.js";function y(){const e=u();return p({mutationFn:t=>e.previewDevLink(t),meta:{suppressErrorToast:!0}})}function A(){const e=u(),t=m(),o=h(n=>n.forget);return p({mutationFn:n=>e.linkDevLink(n),meta:{suppressErrorToast:!0},onSuccess:n=>{n.status==="linked"&&(o(n.link),t())}})}function $(){const e=u(),t=m(),o=h(n=>n.forget);return p({mutationFn:({name:n,...s})=>e.unlinkDevLink(n,s),meta:{suppressErrorToast:!0},onSuccess:(n,s)=>{o(s),t()}})}const w=/^(\S+) didn't build:/;function g(e){const t=e.length===1?w.exec(e[0]):null;return t?`Couldn’t reload: ${t[1]} has a build error.`:"Couldn’t reload your last edit."}function N(e,t,o){if(e.state!=="active")return{kind:e.state};const n=o==null?void 0:o.lastReloadAt,s=t!==void 0&&(o===void 0||t.at>=o.linkedAt)?t:void 0,i=s!==void 0&&(n===void 0||s.at>=n);if(i&&s.errors&&s.errors.length>0)return{kind:"reload-failed",at:s.at,headline:g(s.errors),details:s.errors};const d=i?s.at:n;return d?{kind:"reloaded",at:d}:{kind:"watching"}}function C(e,t){const o=Math.max(0,Math.floor((t-new Date(e).getTime())/1e3));if(o<2)return"Reloaded just now";if(o<60)return`Reloaded ${o}s ago`;const n=Math.floor(o/60);if(n<60)return`Reloaded ${n}m ago`;const s=Math.floor(n/60);return s<24?`Reloaded ${s}h ago`:`Reloaded ${new Date(e).toLocaleDateString(void 0,{month:"short",day:"numeric"})}`}function v(e){return e.agentPath?{scope:"project",projectPath:e.agentPath}:{scope:"global"}}function F(e,t){var s;const{scope:o}=v(t),n=(s=t.devLink)==null?void 0:s.path;return e==null?void 0:e.find(i=>i.name===t.name&&i.scope===o&&i.path===n)}function T(e,t){return t?{name:t.name,scope:t.scope,...t.projectPath!==void 0&&{projectPath:t.projectPath}}:{name:e.name,...v(e)}}function I(e,t){return t.restored==="installed"?{title:`${e} runs from the installed copy.`}:t.parkedLeftAt?{title:`${e} unlinked. Its installed copy couldn’t come back.`,description:`It’s still set aside at ${t.parkedLeftAt}.`}:t.leftInPlace?{title:`${e} unlinked.`,description:"Something else was in its place. It was left as it is."}:{title:`${e} removed.`}}function M({target:e,onClose:t,onUnlinked:o}){const n=$(),s=e?k(e.name):"",i=(e==null?void 0:e.then)==="install";async function d(){if(e)try{const a=await n.mutateAsync({name:e.name,scope:e.scope,...e.projectPath!==void 0&&{projectPath:e.projectPath}});if(i&&a.restored==="removed"&&!a.parkedLeftAt)l.success(`${s} unlinked.`,{description:a.leftInPlace?"Something else was in its place. It was left as it is.":"It’s not installed until you finish the install."});else{const c=I(s,a);l.success(c.title,c.description?{description:c.description}:void 0)}o==null||o(e,a),t()}catch(a){l.error(`Couldn’t unlink ${s}`,{description:a instanceof Error?a.message:void 0})}}return r.jsx(D,{open:e!==null,onOpenChange:a=>!a&&t(),children:r.jsx(j,{className:"!min-h-0 sm:max-w-md",children:e&&r.jsxs(r.Fragment,{children:[r.jsxs(x,{className:"text-left",children:[r.jsx(L,{className:"text-left",children:i?`Install the published ${s}?`:`Unlink ${s}?`}),r.jsx(R,{className:"text-left",children:i?`${s} is unlinked first. Your folder is not touched.`:e.parked?"Your installed copy comes back.":`${s} is removed. Your folder is not touched.`})]}),r.jsxs(P,{children:[r.jsx(f,{variant:"ghost",onClick:t,disabled:n.isPending,children:"Cancel"}),r.jsx(f,{onClick:()=>void d(),disabled:n.isPending,children:n.isPending?"Unlinking…":i?"Unlink and install":"Unlink"})]})]})})})}export{M as U,T as a,N as b,C as c,v as d,A as e,F as f,y as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a1 as k,a3 as F,r as o,dV as T,aW as m,dW as v,dX as M,dY as q,aI as B,dZ as C,aN as E,d_ as Q,d$ as W,j as S}from"./index-
|
|
1
|
+
import{a1 as k,a3 as F,r as o,dV as T,aW as m,dW as v,dX as M,dY as q,aI as B,dZ as C,aN as E,d_ as Q,d$ as W,j as S}from"./index-B48IJBNm.js";import{m as J}from"./registry-BxY1lah6.js";function P(e,t){const n=e??[];return n.some(a=>a.seq===t.seq)?n:n.length===0||n[n.length-1].seq<t.seq?[...n,t]:[...n,t].sort((a,s)=>a.seq-s.seq)}function U(e,t){const n=e??[],a=n.findIndex(w=>w.id===t.id);if(a===-1)return n;const s=n[a];if(s.seq!==t.seq||s.roomId!==t.roomId||JSON.stringify(s.body)===JSON.stringify(t.body)&&JSON.stringify(s.mentions)===JSON.stringify(t.mentions)&&JSON.stringify(s.mentionSpans)===JSON.stringify(t.mentionSpans))return n;const h=[...n];return h[a]={...s,body:t.body,mentions:t.mentions,mentionSpans:t.mentionSpans},h}function Y(e,t){if(t.kind!=="notice"||t.body.notice!=="turn_failed")return;const n=t.body.subjectAuthorId;n!==void 0&&C.getState().clearAuthor(e,n)}function K(e,t){const n=e.getQueryData(E.entries(t));return n&&n.length>0?n[n.length-1].seq:0}function H(e,t){var n;return((n=e.getQueryData(E.detail(t)))==null?void 0:n.viewerAuthorId)??null}const V=2e3;function G(){const e=o.useRef(null),t=o.useCallback(()=>{e.current!==null&&(clearTimeout(e.current),e.current=null)},[]),n=o.useCallback(s=>{t(),m.getState().endRoomCanvasCycle(s)},[t]),a=o.useCallback(s=>{t(),e.current=setTimeout(()=>{e.current=null,m.getState().endRoomCanvasCycle(s)},V)},[t]);return o.useEffect(()=>t,[t]),{arm:a,now:n}}function X(e){const t=Math.min(v.BACKOFF_CAP_MS,v.BACKOFF_BASE_MS*2**e);return Math.random()*t}const Z=50;function $(e,t){return new Promise(n=>{if(t.aborted)return n();const a=()=>{clearTimeout(s),t.removeEventListener("abort",a),n()},s=setTimeout(a,e);t.addEventListener("abort",a,{once:!0})})}function ee(e,t){const n=k(),a=F(),[s,y]=o.useState(null),[h,w]=o.useState(null),[O,A]=o.useState(0),R=o.useRef(!1),_=G(),j=o.useCallback(()=>A(i=>i+1),[]),g=o.useRef(null),N=o.useCallback(()=>{g.current===null&&(g.current=setTimeout(()=>{g.current=null,A(i=>i+1)},Z))},[]);return o.useEffect(()=>{if(e===null)return;const i=()=>N();let u=null;const d=()=>{if(document.visibilityState!=="visible"){u=Date.now();return}const f=u===null?0:Date.now()-u;u=null,(R.current||f>=v.VISIBILITY_GRACE_MS)&&N()};let c=T.getListConnectionState();const b=T.subscribeListConnectionState(f=>{const p=f==="connected"&&c==="reconnecting";c=f,p&&N()});return window.addEventListener("online",i),document.addEventListener("visibilitychange",d),()=>{window.removeEventListener("online",i),document.removeEventListener("visibilitychange",d),b(),g.current!==null&&(clearTimeout(g.current),g.current=null)}},[e,N]),o.useEffect(()=>(m.getState().setRoomCanvasLiveRoom(e),()=>m.getState().setRoomCanvasLiveRoom(null)),[e]),o.useEffect(()=>{if(e===null||!t)return;const i=new AbortController;let u=!0,d;return(async()=>{y(null),w(null),R.current=!1;let c=0,b=!1;const f=()=>{c=0,R.current=!1,b&&(b=!1,y(p=>p===e?null:p))};for(;u&&!i.signal.aborted;){const p=Date.now();R.current=!1,m.getState().beginRoomCanvasCycle(e),_.arm(e);const D=setTimeout(f,v.STABILITY_WINDOW_MS);let l;try{if(l=M(n,e,K(a,e),i.signal),d=l,!u||i.signal.aborted){l.retire();return}for await(const r of l.stream){if(!u||i.signal.aborted||(f(),!l.current()))return;if(r.type==="canvas_event"||r.type==="canvas_channel_snapshot"){if(l.publish(r),!l.current())return;continue}if(r.type==="signal"){q(r)?B.getState().observe(e,r):(C.getState().observe(e,r),m.getState().applyRoomCanvasPresence(e,r));continue}if(r.type==="reaction"){a.setQueryData(E.entries(e),x=>J(x,r.entryId,r.reactions));continue}if(r.type==="revision"){if(r.entry.roomId!==e)continue;a.setQueryData(E.entries(e),x=>U(x,r.entry));continue}if(r.type==="canvas"){m.getState().applyRoomCanvasFrame(e,r,H(a,e)),r.change!==void 0?_.now(e):_.arm(e);continue}C.getState().clearAuthor(e,r.entry.authorId),Y(e,r.entry),Q.getState().settle(e,r.entry.id),a.setQueryData(E.entries(e),x=>P(x,r.entry))}}catch(r){if(i.signal.aborted)return;if(console.warn("[rooms] live stream dropped",{roomId:e,err:r}),W(r)){C.getState().clearRoom(e),w(e),y(e),clearTimeout(D);return}}finally{try{l==null||l.retire()}finally{clearTimeout(D)}}if(i.signal.aborted)return;Date.now()-p>=v.STABILITY_WINDOW_MS&&(c=0),c+=1,R.current=!0,c>=v.DISCONNECTED_THRESHOLD&&!b&&(C.getState().clearRoom(e),y(e),b=!0),await $(X(c),i.signal)}})(),()=>{u=!1;try{d==null||d.retire()}finally{i.abort()}}},[e,t,n,a,O]),{stalled:s!==null&&s===e,unavailable:h!==null&&h===e,retry:j}}function te({label:e}){return S.jsxs("div",{"data-slot":"day-divider","data-testid":"day-divider",role:"separator","aria-label":e,className:"flex items-center gap-3 py-4",children:[S.jsx("span",{"aria-hidden":"true",className:"bg-border/70 h-px flex-1"}),S.jsx("span",{className:"border-border/70 bg-background text-muted-foreground text-2xs rounded-full border px-2.5 py-0.5 font-medium",children:e}),S.jsx("span",{"aria-hidden":"true",className:"bg-border/70 h-px flex-1"})]})}const L="New messages";function ne(){return S.jsxs("div",{"data-slot":"unread-divider","data-testid":"unread-divider",role:"separator","aria-label":L,className:"flex items-center gap-2 px-[var(--msg-padding-x)] py-2",children:[S.jsx("span",{"aria-hidden":"true",className:"bg-brand/60 h-px flex-1"}),S.jsx("span",{className:"text-brand-text text-2xs font-medium tracking-wide",children:L})]})}export{te as D,ne as U,ee as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{O as A,r as x,fH as g,fI as f,fS as k,fG as F,fP as st,fR as ln,o4 as dn,lb as Te,fQ as ye,oc as E,od as Z,oe as un,of as pn,og as mn,fO as Ee,fK as he,oh as fn,fL as M,fJ as ee,oi as hn,o2 as xn,oj as gn,jv as yn,a1 as bn,ok as Ne,ol as vn,om as at,aW as jn,jz as kn,j as t,fz as Nn,fA as wn,e3 as Sn,on as Cn,dI as _n,ia as rt,m8 as In,m7 as An,ap as y,G as N,cv as Mn,fg as Se,aQ as $n,cB as Tn,bU as En,fh as Ln,oo as Dn,jT as On,kk as it,dE as Rn,dU as zn,g7 as Wn,fC as Pn,op as Bn,b8 as Fn,oq as Un,bv as Gn,ig as Hn,el as Kn,b7 as Vn,J as Le,or as Yn,ie as qn,n7 as Qn,a0 as ot,bV as Xn,B as ct,en as De,eg as Jn,eh as Zn,ei as es,ej as ts,ek as ns,I as ss,x as as,h8 as lt,dj as dt,dk as ut,dl as pt,os as mt,dD as ft,gQ as rs,X as is,ot as os,C as cs}from"./index-
|
|
1
|
+
import{O as A,r as x,fH as g,fI as f,fS as k,fG as F,fP as st,fR as ln,o4 as dn,lb as Te,fQ as ye,oc as E,od as Z,oe as un,of as pn,og as mn,fO as Ee,fK as he,oh as fn,fL as M,fJ as ee,oi as hn,o2 as xn,oj as gn,jv as yn,a1 as bn,ok as Ne,ol as vn,om as at,aW as jn,jz as kn,j as t,fz as Nn,fA as wn,e3 as Sn,on as Cn,dI as _n,ia as rt,m8 as In,m7 as An,ap as y,G as N,cv as Mn,fg as Se,aQ as $n,cB as Tn,bU as En,fh as Ln,oo as Dn,jT as On,kk as it,dE as Rn,dU as zn,g7 as Wn,fC as Pn,op as Bn,b8 as Fn,oq as Un,bv as Gn,ig as Hn,el as Kn,b7 as Vn,J as Le,or as Yn,ie as qn,n7 as Qn,a0 as ot,bV as Xn,B as ct,en as De,eg as Jn,eh as Zn,ei as es,ej as ts,ek as ns,I as ss,x as as,h8 as lt,dj as dt,dk as ut,dl as pt,os as mt,dD as ft,gQ as rs,X as is,ot as os,C as cs}from"./index-B48IJBNm.js";import{a as ls}from"./index-Hf3kLtiJ.js";import{C as ht,a as ds,b as us,c as ps,d as ms,e as fs}from"./card-D9DO5nt4.js";import{P as hs,S as xs}from"./progress-AKcr8opu.js";import{M as gs}from"./markdown-content-BA0KEJH_.js";import{T as xt,d as gt,b as be,e as Ce,c as _e,a as yt}from"./table-D6BUawIb.js";import{P as ys}from"./package-CxZe6vve.js";import{H as bs}from"./heart-CRoafWCm.js";import{G as vs}from"./git-branch-DlUQMA-U.js";import{F as js}from"./file-text-DXPPkxAL.js";import{F as ks}from"./file-CKSjJRX5.js";/**
|
|
2
2
|
* @license lucide-react v1.48.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d7 as c,d8 as l,r as u,j as r,B as h,G as m}from"./index-
|
|
1
|
+
import{d7 as c,d8 as l,r as u,j as r,B as h,G as m}from"./index-B48IJBNm.js";const d=[];function x(i){const{approvals:s}=c(),{data:t}=l();return u.useMemo(()=>{if(!t||s.length===0)return d;const a=new Set(t.filter(e=>{var o;return(o=e.manifest.contributions)==null?void 0:o[i]}).map(e=>e.id)),n=s.filter(e=>(e.changedFiles||e.updatedFrom)&&a.has(e.id)).map(e=>({id:e.id,name:e.name}));return n.length===0?d:n},[s,t,i])}function f({slot:i,onReview:s,className:t}){const a=x(i);return a.length===0?null:r.jsx("ul",{className:m("space-y-1",t),"aria-label":"Mini apps waiting for your OK",children:a.map(n=>r.jsxs("li",{"data-testid":`withheld-extension-${n.id}`,className:"bg-status-warning-bg text-status-warning-fg flex items-center justify-between gap-2 rounded-md px-3 py-1.5 text-xs",children:[r.jsxs("span",{className:"min-w-0 truncate",children:[n.name," changed and is waiting for your OK"]}),r.jsx(h,{variant:"ghost",size:"xs",className:"text-status-warning-fg shrink-0 pointer-coarse:min-h-11",onClick:s,children:"Review"})]},n.id))})}export{f as W,x as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Aa=Object.defineProperty;var _a=(e,t,n)=>t in e?Aa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ye=(e,t,n)=>_a(e,typeof t!="symbol"?t+"":t,n);import{r as l,O as it,e3 as qe,j as r,ap as Q,bw as pe,ih as Fn,a1 as be,qK as Er,q as rt,kr as Ma,cq as Oa,qL as Ar,qM as Ia,qN as Da,g8 as Pa,B as me,dD as Ae,fA as $a,G as W,J as Gt,X as ot,b7 as ft,qO as kt,qP as _r,aW as ce,qQ as Fa,qR as Cn,ie as La,aL as Ln,dG as Ua,an as qa,j6 as za,ag as lt,a7 as Un,qS as Ba,j7 as Wa,qT as Ha,ba as Ga,x as ze,U as vt,ik as Be,il as We,ah as qn,qU as Kt,ee as St,kk as Ka,cs as Qe,s as ct,gS as Qa,gO as ks,is as Mr,gW as Va,C as zn,qV as Ya,l as Xa,n6 as Or,aU as Ja,qW as Za,qX as Ue,ok as Re,ot as ei,ol as Qt,aO as ti,i0 as ni,cB as si,bU as ri,ju as oi,qY as tt,a0 as Bn,eR as vs,dI as Ir,f as Dr,qZ as Ss,ed as js,a6 as at,pF as ai,q_ as ii,pM as gt,q$ as zt,a2 as ut,jS as Wn,a4 as xt,hh as jt,ec as Hn,ck as wt,d0 as li,d1 as ci,d3 as ui,d4 as di,d5 as mi,eC as fi,e as ws,lo as pi,dN as hi,lp as gi,pH as Gn,e7 as xi,r0 as yi,r1 as bi,lC as Kn,r2 as Pr,r3 as $r,r4 as ki,r5 as vi,a3 as Qn,cS as Ct,eb as Vt,e9 as Vn,ea as Si,r6 as ji,j_ as Fr,r7 as wi,pJ as Ci,ia as Ni,hI as Lr,iy as Ur,hU as yt,j$ as qr,eO as Ti,r8 as Ri,r9 as Ei,o as zr,y as Yt,aT as Br,ra as Wr,rb as Ai,nF as rn,rc as Bt,jH as _i,lt as Mi,bc as Hr,rd as Yn,re as Oi,rf as Ii,rg as Di,rh as Gr,ri as Pi,rj as $i,rk as Kr,rl as Qr,fg as Fi,rm as Li,fC as Ui,fe as qi,m7 as zi,bH as Bi,bI as Wi,bJ as Hi,bK as Gi,bL as Ki,bM as Qi,bN as Vi,bP as Yi,rn as Xi,o_ as Vr,ro as Ji,rp as Zi,mz as el,jB as tl,jC as nl,jD as sl,jE as on,n0 as rl,jF as Cs,kj as ol,bZ as al,kl as il,b$ as ll,rq as Ns,cE as cl,f_ as Yr,cJ as Xr,cy as ul,cI as dl,iw as ml,cR as Jr,rr as Zr,cu as eo,cO as fl,rs as Xn,cP as pl,rt as hl,ar as gl,cA as xl,ru as yl,mg as oe,rv as bl,rw as kl,cN as vl,_ as Sl,aS as Ge,nk as Ts,rx as jl,iY as He,ry as an,dV as pt,rz as Rs,rA as Es,rB as As,ct as ln,rC as et,eS as ht,rD as wl,cU as to,rE as no,rF as Cl,rG as Nl,rH as Tl,cV as so,rI as Rl,rJ as El,rK as Xe,rL as ro,rM as Al,bY as _l,rN as Ml,rO as Ol,fB as oo,rP as _s,rQ as Il,c4 as Nn,jl as ao,el as Dl,cY as Pl,rR as $l,gv as Fl,gu as Ll,jn as Ul,cl as ql,cX as zl,ci as Bl,ai as Xt,rS as Wl,rT as Hl,gp as io,gm as Jn,kM as Gl,rU as Kl,rV as Ql,rW as Vl,i$ as Yl,rX as lo,oy as Xl,jG as Jl,rY as mt,rZ as Zl,cT as ec,hl as tc,r_ as nc,fx as sc,r$ as rc,e1 as oc,jT as ac,Y as ic}from"./index-
|
|
1
|
+
var Aa=Object.defineProperty;var _a=(e,t,n)=>t in e?Aa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ye=(e,t,n)=>_a(e,typeof t!="symbol"?t+"":t,n);import{r as l,O as it,e3 as qe,j as r,ap as Q,bw as pe,ih as Fn,a1 as be,qK as Er,q as rt,kr as Ma,cq as Oa,qL as Ar,qM as Ia,qN as Da,g8 as Pa,B as me,dD as Ae,fA as $a,G as W,J as Gt,X as ot,b7 as ft,qO as kt,qP as _r,aW as ce,qQ as Fa,qR as Cn,ie as La,aL as Ln,dG as Ua,an as qa,j6 as za,ag as lt,a7 as Un,qS as Ba,j7 as Wa,qT as Ha,ba as Ga,x as ze,U as vt,ik as Be,il as We,ah as qn,qU as Kt,ee as St,kk as Ka,cs as Qe,s as ct,gS as Qa,gO as ks,is as Mr,gW as Va,C as zn,qV as Ya,l as Xa,n6 as Or,aU as Ja,qW as Za,qX as Ue,ok as Re,ot as ei,ol as Qt,aO as ti,i0 as ni,cB as si,bU as ri,ju as oi,qY as tt,a0 as Bn,eR as vs,dI as Ir,f as Dr,qZ as Ss,ed as js,a6 as at,pF as ai,q_ as ii,pM as gt,q$ as zt,a2 as ut,jS as Wn,a4 as xt,hh as jt,ec as Hn,ck as wt,d0 as li,d1 as ci,d3 as ui,d4 as di,d5 as mi,eC as fi,e as ws,lo as pi,dN as hi,lp as gi,pH as Gn,e7 as xi,r0 as yi,r1 as bi,lC as Kn,r2 as Pr,r3 as $r,r4 as ki,r5 as vi,a3 as Qn,cS as Ct,eb as Vt,e9 as Vn,ea as Si,r6 as ji,j_ as Fr,r7 as wi,pJ as Ci,ia as Ni,hI as Lr,iy as Ur,hU as yt,j$ as qr,eO as Ti,r8 as Ri,r9 as Ei,o as zr,y as Yt,aT as Br,ra as Wr,rb as Ai,nF as rn,rc as Bt,jH as _i,lt as Mi,bc as Hr,rd as Yn,re as Oi,rf as Ii,rg as Di,rh as Gr,ri as Pi,rj as $i,rk as Kr,rl as Qr,fg as Fi,rm as Li,fC as Ui,fe as qi,m7 as zi,bH as Bi,bI as Wi,bJ as Hi,bK as Gi,bL as Ki,bM as Qi,bN as Vi,bP as Yi,rn as Xi,o_ as Vr,ro as Ji,rp as Zi,mz as el,jB as tl,jC as nl,jD as sl,jE as on,n0 as rl,jF as Cs,kj as ol,bZ as al,kl as il,b$ as ll,rq as Ns,cE as cl,f_ as Yr,cJ as Xr,cy as ul,cI as dl,iw as ml,cR as Jr,rr as Zr,cu as eo,cO as fl,rs as Xn,cP as pl,rt as hl,ar as gl,cA as xl,ru as yl,mg as oe,rv as bl,rw as kl,cN as vl,_ as Sl,aS as Ge,nk as Ts,rx as jl,iY as He,ry as an,dV as pt,rz as Rs,rA as Es,rB as As,ct as ln,rC as et,eS as ht,rD as wl,cU as to,rE as no,rF as Cl,rG as Nl,rH as Tl,cV as so,rI as Rl,rJ as El,rK as Xe,rL as ro,rM as Al,bY as _l,rN as Ml,rO as Ol,fB as oo,rP as _s,rQ as Il,c4 as Nn,jl as ao,el as Dl,cY as Pl,rR as $l,gv as Fl,gu as Ll,jn as Ul,cl as ql,cX as zl,ci as Bl,ai as Xt,rS as Wl,rT as Hl,gp as io,gm as Jn,kM as Gl,rU as Kl,rV as Ql,rW as Vl,i$ as Yl,rX as lo,oy as Xl,jG as Jl,rY as mt,rZ as Zl,cT as ec,hl as tc,r_ as nc,fx as sc,r$ as rc,e1 as oc,jT as ac,Y as ic}from"./index-B48IJBNm.js";import{P as lc}from"./PromptSuggestionChips-BopMvYe7.js";import{u as cc,a as uc,L as dc,f as mc,b as fc,c as pc,B as hc,d as gc}from"./primer-trigger-BxofQe1n.js";import{C as xc}from"./card-D9DO5nt4.js";import{a as yc,u as bc,i as kc}from"./use-notification-prefs-CzibxpTZ.js";import{e as vc,h as Sc,o as co,f as jc,P as wc,g as Cc,d as Nc,p as Tc,j as Rc,b as Ec,G as Ac,W as uo,y as _c,x as Mc,z as Oc,u as Ic,t as Dc,w as Pc,n as $c,k as Fc,s as Lc,M as Uc,i as qc,S as zc,U as Bc,A as Wc,v as Hc,R as Gc,q as Kc}from"./use-status-budget-CltxSIUD.js";import{B as Qc}from"./banner-DTCBttcQ.js";import{t as Et,S as Zn,f as Wt,n as mo,O as fo,o as Vc,p as Yc,V as po,q as Xc,r as Jc,s as Zc,v as eu,w as Ms,x as Os,T as tu,y as nu,L as Is,z as ho,A as su,B as go,D as ru,G as xo,H as Tn,N as Ds,d as ou,I as yo,J as au,u as iu,C as bt,K as bo,c as Je,k as lu,h as cu,F as uu}from"./registry-BxY1lah6.js";import{u as du,b as mu}from"./WidgetErrorCard-BZkAK-Ke.js";import{u as fu,D as pu,U as hu}from"./UnreadDivider-C52_nmrB.js";import{a as gu,c as xu}from"./composer-insert-BpyATrmR.js";import{u as yu}from"./use-composer-prefs-DC5w4eWw.js";import{A as Rn,M as bu}from"./McpAppFrame-BtKAUDBg.js";import{P as ku,C as vu,b as Su}from"./find-latest-widget-fence-BsDq4SYp.js";import{F as ko}from"./file-CKSjJRX5.js";import{F as ju,j as wu}from"./use-session-canvas-B2CM1KZu.js";import{F as Cu}from"./file-text-DXPPkxAL.js";import{b as vo,e as Nu,R as Tu,K as Ru,a as Eu,g as Au}from"./RuntimeConnectFlow-hhvWVRMu.js";import{S as _u}from"./shield-x-Ch7sY2XD.js";import{u as Mu,M as Ou}from"./McpSigninBody-DjGrp_sO.js";import{I as Iu}from"./image-off-Bc6AP3w0.js";import{f as Du}from"./format-duration-BCr6uzby.js";import{l as Pu}from"./use-connector-management-DDlpD6tk.js";import{A as $u}from"./AgentRequestCard-BTyuNOhU.js";function Fu(e){const t=Math.floor(e/1e3);if(t<3600){const o=Math.floor(t/60),a=t%60;return`${o}m ${String(a).padStart(2,"0")}s`}const n=Math.floor(t/3600),s=Math.floor(t%3600/60);return`${n}h ${String(s).padStart(2,"0")}m`}function So(e){const[t,n]=l.useState(()=>Date.now()),s=l.useRef(null);if(l.useEffect(()=>{if(e===null){s.current&&(clearInterval(s.current),s.current=null);return}return n(Date.now()),s.current=setInterval(()=>n(Date.now()),1e3),()=>{s.current&&(clearInterval(s.current),s.current=null)}},[e]),e===null)return{formatted:"0m 00s",ms:0};const o=Math.max(0,t-e);return{formatted:Fu(o),ms:o}}function Lu(e={}){const{timeoutMs:t=3e4,onIdle:n,onReturn:s}=e,o=l.useRef(!1),a=l.useRef(null),i=l.useCallback(()=>{o.current||(o.current=!0,n==null||n())},[n]),c=l.useCallback(()=>{o.current&&(o.current=!1,s==null||s())},[s]),u=l.useCallback(()=>{a.current&&clearTimeout(a.current),a.current=setTimeout(i,t),c()},[t,i,c]);return l.useEffect(()=>{a.current=setTimeout(i,t);const d=["mousemove","keydown","scroll","touchstart"];d.forEach(h=>document.addEventListener(h,u,{passive:!0}));const m=()=>{document.hidden?i():u()};return document.addEventListener("visibilitychange",m),()=>{a.current&&clearTimeout(a.current),d.forEach(h=>document.removeEventListener(h,u)),document.removeEventListener("visibilitychange",m)}},[t,i,u]),{isIdle:o.current}}function Uu({activeInteraction:e,onApprove:t,onAlwaysAllow:n,onDeny:s,onToggleOption:o,onNavigateOption:a,onNavigateQuestion:i,onSubmit:c,optionCount:u=0,focusedIndex:d=0}){const m=l.useRef(!1);l.useEffect(()=>{m.current=!1},[e==null?void 0:e.toolCallId]),l.useEffect(()=>{if(!e)return;function h(p){const f=p.target,g=(f.tagName==="TEXTAREA"||f.tagName==="INPUT")&&!f.disabled;if(!m.current&&!(p.metaKey||p.ctrlKey||p.altKey)){if(e.type==="approval"){if(p.key==="Enter"&&g&&f.closest("[data-approval-field]")!==null)return;p.key==="Enter"&&p.shiftKey?(p.preventDefault(),m.current=!0,n==null||n()):p.key==="Enter"?(p.preventDefault(),m.current=!0,t==null||t()):p.key==="Escape"&&(p.preventDefault(),m.current=!0,s==null||s());return}if(e.type==="question"){if(g){if(p.key==="Enter"&&!p.shiftKey){p.preventDefault(),c==null||c();return}if(p.key==="ArrowUp"){p.preventDefault(),a==null||a("up");return}if(p.key==="ArrowDown"){p.preventDefault(),a==null||a("down");return}return}const x=parseInt(p.key,10);if(x>=1&&x<=9){p.preventDefault(),x-1<u&&(o==null||o(x-1));return}switch(p.key){case"ArrowUp":p.preventDefault(),a==null||a("up");break;case"ArrowDown":p.preventDefault(),a==null||a("down");break;case" ":p.preventDefault(),o==null||o(d);break;case"ArrowLeft":case"[":p.preventDefault(),i==null||i("prev");break;case"ArrowRight":case"]":p.preventDefault(),i==null||i("next");break;case"Enter":p.preventDefault(),c==null||c();break}}}}return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[e,t,n,s,o,a,i,c,u,d])}function jo(){const[e,t]=l.useState(()=>!document.hidden);return l.useEffect(()=>{const n=()=>t(!document.hidden);return document.addEventListener("visibilitychange",n),()=>document.removeEventListener("visibilitychange",n)},[]),e}/**
|
|
2
2
|
* @license lucide-react v1.48.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Bu=Object.defineProperty;var zu=(e,t,s)=>t in e?Bu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var bn=(e,t,s)=>zu(e,typeof t!="symbol"?t+"":t,s);import{s0 as Uu,r as u,f9 as Ho,s1 as Ku,f7 as Yr,j as n,s2 as Hu,s3 as Gi,fa as Wu,k8 as Vr,a1 as ae,a2 as Ie,aG as Be,f5 as _e,fW as Rn,s4 as Gs,k5 as as,s5 as Gu,s6 as qu,a3 as le,an as pe,jS as Wo,s7 as Yu,O as Ge,es as js,ap as se,B as L,X as Ue,G as K,jv as qi,s8 as Vu,x as De,a0 as Yi,bv as Vi,bc as ks,dG as ze,aX as Qu,s9 as Go,sa as Xu,bQ as Ju,aF as Qi,cs as Pe,aL as Le,s as $t,kq as Zu,kr as Xi,dD as ce,lw as Ln,lx as jt,ly as Ji,aW as P,rD as em,eS as kt,dV as is,iY as an,sb as tm,a4 as Wt,eF as Zi,fx as Qr,da as Xr,as as Gt,sc as qo,jR as nm,jW as ec,jQ as sm,pS as Jr,ju as Fn,J as cn,it as Zr,er as nn,l as je,aH as tc,eP as nc,e9 as sc,ea as rc,eQ as rm,sd as om,ee as it,bx as ln,by as dn,U as qt,bz as un,bB as mn,C as hn,en as We,eo as am,mP as oc,l7 as ac,aN as Ke,se as im,gM as ic,bR as Yo,sf as cm,g as cs,k4 as vr,z as eo,e3 as lt,hI as rt,gd as to,fC as Ss,kj as no,f as At,b7 as cc,eE as Cs,sg as lc,el as lm,ak as so,_ as Tn,dj as fn,dk as pn,dl as gn,ai as $e,ao as Ns,nR as dc,sh as dm,si as um,cZ as mm,dU as ls,bw as Xe,kx as As,kw as en,d0 as xt,d1 as bt,d3 as ht,d4 as tt,d5 as ft,eC as St,dN as tn,dL as hm,cm as $n,ey as uc,sj as fm,ck as mc,gv as hc,h6 as Vo,sk as pm,ig as ds,kf as gm,kh as xm,h4 as fc,sl as bm,g0 as Es,g1 as Is,g3 as Rs,sm as pc,g4 as Qe,sn as Bn,g6 as es,h as ro,so as oo,sp as ym,g2 as vm,qQ as wm,sq as gc,jH as jm,sr as km,ss as Sm,st as Cm,hn as xc,su as Nm,sv as Am,iX as Em,sw as Im,sx as Rm,av as Tm,gm as bc,ab as Fe,hl as Ts,sy as Dm,sz as Om,gn as Mm,rW as Qo,i1 as _m,mN as Pm,i3 as Lm,i4 as Fm,i5 as $m,jk as yc,sA as Bm,sB as me,sC as zm,sD as vc,sE as ao,sF as wr,sG as wc,sH as io,sI as co,b6 as zn,sJ as Ds,sK as Um,sL as Km,sM as Hm,sN as Wm,sO as Gm,sP as qm,sQ as Ym,sR as Tt,k6 as Vm,jA as Qm,oq as Xm,sS as Xo,bb as Jm,hU as jc,sT as Bt,sU as sn,sV as Zm,sW as eh,sX as th,sY as nh,fB as kc,c4 as Dt,sZ as Sc,s_ as us,s$ as Cc,t0 as sh,t1 as rh,t2 as Nc,t3 as Ac,t4 as oh,t5 as ah,i9 as Ec,ia as Ic,t6 as zt,t7 as ih,t8 as ch,eu as lh,t9 as Dn,ta as dh,aZ as Rc,tb as uh,tc as mh,td as hh,te as fh,tf as ph,tg as Tc,th as Ot,fA as Ct,fI as ct,fG as Un,fH as he,fL as Kn,fK as _t,fO as xe,I as gt,pd as Dc,pn as Oc,nk as Ut,nj as rn,co as Os,k$ as gh,ni as Mc,eT as _c,rN as Pc,oy as xh,nh as bh,ti as yh,tj as Jo,tk as vh,tl as on,tm as Lc,bY as Ms,ih as Fc,tn as wh,q9 as jh,to as kh,tp as $c,tq as Sh,tr as Ch,gw as Nh,aY as lo,nl as uo,ts as Ah,gp as _s,tt as Sn,tu as mo,q as ms,lB as Bc,tv as Eh,o as zc,tw as Ih,ks as Zo,mg as Rh,oQ as Th,tx as Dh,ca as Oh,ty as Mh,ah as ho,ag as fo,ns as Uc,nr as Kc,tz as _h,dE as Ps,kM as Hc,tA as Ph,tB as Lh,tC as Fh,tD as $h,tE as Bh,tF as zh,tG as Uh,hh as po,pR as Kh,tH as Wc,nU as Hh,l5 as jr,e5 as Wh,tI as Ls,nn as Fs,tJ as $s,tK as Gh,nm as qh,im as go,no as Gc,tL as Yh,qK as Vh,tM as Qh,tN as Xh,tO as ea,tP as Jh,tQ as Zh,tR as ef,tS as tf,tT as ta,tU as nf,tV as sf,tW as rf,tX as of,tY as na,e as Pt,tZ as af,t_ as cf,l3 as Bs,lN as qc,t$ as lf,gr as Yc,lI as df,lU as uf,u0 as mf,b4 as hf,jI as ff,u1 as pf,u2 as hs,m1 as Vc,u3 as Qc,u4 as gf,u5 as xf,u6 as Xc,u7 as sa,u8 as ra,u9 as Jc,b3 as bf,ua as yf,ub as Zc,uc as qn,ud as vf,ue as wf,uf as jf,ug as el,go as zs,uh as kr,ui as kf,cB as yn,H as tl,aT as Sf,uj as nl,eR as oa,kl as xo,bh as Cf,t as Nf,iy as Sr,i0 as Af,aO as bo,id as sl,uk as Ef,m7 as If,m8 as Rf,ph as Tf,l2 as Df,ul as Of,l4 as aa,lV as rl,bH as Mf,bI as _f,bJ as Pf,bK as Lf,bL as Ff,bM as $f,bN as Bf,um as zf,un as Cr,uo as Uf,up as qs,uq as Kf,ur as Hf,us as On,ut as Wf,uu as ia,mZ as Gf,lO as qf,uv as Yf,k9 as Vf,ka as Qf,b8 as fs,kb as Xf,kc as ca,mp as la,mn as Jf,mo as da,uw as Zf,m0 as ep,ux as tp,uy as np,fe as sp,uz as rp,uA as op,uB as ap,b$ as ip,uC as cp,uD as ol,uE as al,Q as yo,T as vo,V as wo,uF as lp,uG as dp,bV as up,f_ as mp,uH as Ys,ha as hp,uI as fp,uJ as pp,uK as gp,uL as xp,uM as bp,uN as yp,uO as vp,uP as wp,uQ as jp,uR as ua,jG as kp,bU as Sp,uS as il,uT as Cp,fD as Np,uU as ma,h$ as Ap,uV as Ep,uW as Ip,pi as Rp,uX as Tp,uY as Dp,cj as Op,uZ as Mp,u_ as ha,u$ as _p,v0 as Pp,pc as Lp,pv as Fp,j_ as $p,ec as Bp,v1 as zp,a7 as cl,v2 as Up,jU as Kp,jV as Hp,kN as Wp,fk as ll,fl as dl,fm as ul,fn as ml,dH as Gp,eq as qp,fi as Yp,fj as Vp,j8 as Qp,jf as Xp,kR as Jp,j9 as Zp,v3 as eg,ew as tg,kS as ng,v4 as hl,v5 as sg,v6 as rg,kQ as og,kP as ag,ja as ig,ez as cg,k3 as lg,i$ as dg,v7 as ug,v8 as fl,v9 as Us,bg as pl,$ as gl,va as xl,pU as mg,be as hg,bf as fg,eW as fa,bd as pg,gO as Vs,gW as Qs,ep as gg,vb as jo,n as xg,aQ as pa,pg as bg,bA as bl,vc as yl,vd as vl,q3 as yg,ve as vg,vf as wg,vg as Zt,dr as jg,vh as ga,nz as kg,nB as wl,dM as Sg,jP as Cg,oP as Ng,vi as Nr,f$ as Ag,ix as Eg,nM as ut,nO as Ig,rC as Rg,ok as xa,cU as Tg,vj as Dg,vk as Og,vl as Mg,vm as _g,vn as Pg,vo as Lg,vp as Fg,vq as $g,vr as Bg,r$ as zg,kG as Ug,h8 as Kg,vs as Hg,vt as Wg,vu as Gg,vv as qg,vw as Yg,vx as Vg,cv as Qg,vy as Xg,vz as Jg,jj as Zg,d9 as ex}from"./index-fge85Gub.js";import{u as tx,g as nx}from"./use-connector-management-CXVz2xe3.js";import{D as Nt,a as sx}from"./TourHost-CcN4uCDR.js";import{r as rx,f as ox,b as ax,K as ix}from"./RuntimeConnectFlow-B0TIITVq.js";import{O as cx,B as jl}from"./banner-CqhUGJmy.js";import{u as Ks,P as kl,a as lx}from"./ProfileRolePicker-Q_hY6ybO.js";import{u as dx}from"./use-dev-links-CM2NIeqy.js";import{B as ux,u as mx}from"./use-bindings-h_mG9d64.js";import{C as ko,o as Sl,O as Cl,p as at,H as hx,q as wt,I as nt,t as ps,s as Hn,v as Nl,x as fx,y as Al,z as px,u as El,r as gx,w as xx,b as bx,j as yx,D as Ar,A as vx,T as wx,a as jx,P as kx,B as Sx,e as Il,E as Rl,F as Tl,G as Cx,J as Nx,h as Ax,S as ba,n as Ex,L as Ix}from"./SeenDevices-CxhuIRp3.js";import{d as Rx}from"./untrusted-text-BDygHCRk.js";import{S as Nn}from"./scroll-area-MdXbnM77.js";import{T as Dl,a as Ol,b as ts,c as Xs,u as Tx,i as Dx,d as Ox,P as Ml}from"./PreviewRefusedNotice-CCpHgrea.js";import{P as Mx}from"./paperclip-DY4e-IlK.js";import{L as _x}from"./lightbulb-DjMxuZnu.js";import{u as Wn}from"./use-update-config-BH0agtZh.js";import{a as Px,u as Lx,S as Fx,s as $x,b as Bx,P as zx}from"./ApplyToOverridesDialog-BxeMLhGv.js";import{r as _l,s as ya,e as Ux}from"./access-copy-Y2_F9uAx.js";import{t as Kx,I as va}from"./trust-posture-vH4plBRD.js";import{a as Hx}from"./use-pulse-freshness-CdRkKThf.js";import{c as Wx,B as Gx,w as qx,b as Yx,a as Vx,e as Qx}from"./primer-trigger-r8N0YY5e.js";import{M as Xx,u as Jx,s as Zx,P as eb,a as tb}from"./use-promo-activation-CxG-kZJQ.js";import{u as Pl}from"./use-promo-dismissals-DeNbRWOh.js";import{u as Ll}from"./use-pending-read-DB25CO5E.js";import{a as pt}from"./dorkbot-templates-8Yu9POWJ.js";import{i as nb,O as Fl,c as sb,b as rb}from"./OperatorIdentityForm-Cd6B2hxb.js";import{A as $l}from"./repeat-HOHWZc6L.js";import{S as Bl,P as ob}from"./progress-es667_cM.js";import{P as ab,M as ib}from"./plug-BdWCGVJg.js";import{i as So,a as cb,u as lb}from"./use-notification-prefs-CJnF55Rv.js";import{R as db}from"./rotate-cw-um9OzAM7.js";import{b as ub,u as mb,O as hb,c as fb}from"./OpenMeshSwitch-CjCPWZn0.js";import{u as pb,a as gb,C as xb,N as bb}from"./NewDirectMessageMenu-DyMfEU7i.js";import{P as yb,C as vb,f as wb,a as jb}from"./find-latest-widget-fence-BYtG5PzD.js";import{o as kb}from"./owner-notice-Cn5EUxgh.js";import{a as zl,C as Sb}from"./cpu-BMUMZCWW.js";import{U as Cb}from"./unplug-CK2bPGpg.js";import{c as Nb,H as Ul,a as Kl,b as Hl}from"./RuntimeSetupDialog-CEUC7GrY.js";import{a as Ab,u as Eb,F as Ib}from"./ForwardConsentHost-CNuTTR3q.js";import{P as wa}from"./page-container-BCdJ_DsH.js";import{A as Rb}from"./AttentionSignalRow-BoTonsR5.js";import{u as Tb}from"./use-roving-tab-list-DSjW4_wm.js";import{R as Wl}from"./rotate-ccw-clock-Dniulnw5.js";import{d as et,e as Ce,f as ja,g as Gl,C as ql,a as Yl,b as Vl,c as Db}from"./command-DuhX52Bi.js";import{A as Ob,M as Mb}from"./McpAppFrame-CmwiQHxf.js";import{L as _b}from"./layers-BhECZJWp.js";import{A as Pb}from"./AgentOptionRow-hemBruhh.js";import{R as Lb}from"./radio-DpWUX1KL.js";import{a as Fb}from"./sound-D3r8dGFH.js";import{d as $b}from"./connection-copy--MA7AN04.js";import{P as Bb}from"./path-input-SZl4NGTs.js";import"./WidgetErrorCard-Bte2obmw.js";import{a as zb}from"./ComputerResourceView-Dcd0e_Oj.js";import{P as Ub,u as Kb}from"./pane-resize-handle-Bar-FdkY.js";import{u as Ql}from"./use-is-below-desktop-DS51QTwj.js";import{W as Hb}from"./WithheldExtensionsNotice-CZibLuKA.js";import{u as Wb}from"./use-direct-message-panel-DXTH05Ym.js";import{u as Gb}from"./ComputerViewer-Dq3aQyZD.js";import{a as qb}from"./use-local-browser-43FpcgCM.js";import{F as Yb}from"./file-text-DLPhIP0f.js";import"./use-external-adapter-catalog-DKlBkkvF.js";import"./inline-code-7dwi7wWG.js";import"./useMutationState-TJGtJT5R.js";import"./runtime-connect-Dn0T5YWv.js";import"./execution-config-D_PgYyCI.js";import"./settings-for-runtime-BoOa-ZFG.js";import"./shield-x-CDXAW9YF.js";import"./use-full-activity-feed-QZAZ5vBJ.js";import"./profile-errors-DymWFWiP.js";import"./use-mounted-ref-Cuui7-gf.js";import"./ProfileFields-DyVqmcPr.js";import"./use-mesh-topology-Bw7MmKA9.js";import"./card-CM7-_8nD.js";import"./list-runtime-types-hMouIGtG.js";import"./more-details-BUolHzrY.js";import"./index-DI9IsN-O.js";import"./markdown-content-DV3AiG76.js";import"./table-BcJvj9rx.js";import"./package-BafFSryH.js";import"./heart--8btr31M.js";import"./git-branch-uZFa3Tmr.js";import"./file-DiYwTQdD.js";function Vb({children:e,isValidProp:t,...s}){t&&Uu(t);const r=u.useContext(Ho);s={...r,...s},s.transition=Ku(s.transition,r.transition),s.isStatic=Yr(()=>s.isStatic);const o=u.useMemo(()=>s,[JSON.stringify(s.transition),s.transformPagePoint,s.reducedMotion,s.skipAnimations]);return n.jsx(Ho.Provider,{value:o,children:e})}function Qb(e){e.values.forEach(t=>t.stop())}function Er(e,t){[...t].reverse().forEach(r=>{const o=e.getVariant(r);o&&Gi(e,o),e.variantChildren&&e.variantChildren.forEach(a=>{Er(a,t)})})}function Xb(e,t){if(Array.isArray(t))return Er(e,t);if(typeof t=="string")return Er(e,[t]);Gi(e,t)}function Jb(){const e=new Set,t={subscribe(s){return e.add(s),()=>void e.delete(s)},start(s,r){const o=[];return e.forEach(a=>{o.push(Hu(a,s,{transitionOverride:r}))}),Promise.all(o)},set(s){return e.forEach(r=>{Xb(r,s)})},stop(){e.forEach(s=>{Qb(s)})},mount(){return()=>{t.stop()}}};return t}function Zb(){const e=Yr(Jb);return Wu(e.mount,[]),e}class ey{constructor(){this.componentControls=new Set}subscribe(t){return this.componentControls.add(t),()=>this.componentControls.delete(t)}start(t,s){this.componentControls.forEach(r=>{r.start(t.nativeEvent||t,s)})}cancel(){this.componentControls.forEach(t=>{t.cancel()})}stop(){this.componentControls.forEach(t=>{t.stop()})}}const ty=()=>new ey;function ny(){return Yr(ty)}const sy=`${Vr.repo}/issues/new`,ry={"tunnel.enabled":"boolean","tasks.enabled":"boolean","relay.enabled":"boolean","scheduler.enabled":"boolean","mesh.enabled":"boolean","mcp.enabled":"boolean","telemetry.install":"boolean","telemetry.heartbeat":"boolean","telemetry.errorReporting":"boolean","auth.enabled":"boolean","workspace.enabled":"boolean","harness.autoSync":"boolean","harness.autoAdopt":"boolean","runtimes.codex.enabled":"boolean","runtimes.opencode.enabled":"boolean","runtimes.default":"enum","logging.level":"enum","ui.theme":"enum"},oy={"runtimes.default":["claude-code","codex","opencode","doe"],"logging.level":["fatal","error","warn","info","debug","trace"],"ui.theme":["light","dark","system"]},ay=/^[a-z0-9][a-z0-9._-]{0,31}$/,iy={bug:["bug"],feature:["enhancement"],runtime:["bug"]},cy={bug:"Bug: (describe what went wrong)",feature:"Feature: (describe what you want)",runtime:"Runtime issue: (describe what went wrong)"};function ly(e){return e.replace(/\b(?:sk-|pk-|rk-|ghp_|gho_|ghu_|ghs_|github_pat_|glpat-|npm_|xox[baprsc]-)[A-Za-z0-9._-]+/g,"[redacted]").replace(/\b(?:AKIA|ASIA|AGPA|AIDA|AROA|ANPA)[0-9A-Z]{16}\b/g,"[redacted]").replace(/\bBearer\s+[A-Za-z0-9._-]+/gi,"[redacted]")}function Co(e){return ly(e).replace(/[^\s/@]+@[^\s/@]+\.[^\s/@]+/g,"[email]").replace(/\b\d{1,3}(?:\.\d{1,3}){3}\b/g,"[ip]").replace(/\b(?:[A-Fa-f0-9]{1,4}:){2,7}[A-Fa-f0-9]{1,4}\b/g,"[ip]").replace(new RegExp("(?<![\\w:.])(?:[A-Fa-f0-9]{1,4})?(?::[A-Fa-f0-9]{0,4}){2,}(?![\\w:.])","g"),"[ip]").replace(/\\\\[^\s\\]+(?:\\[^\s\\]+)+/g,"[path]").replace(/(^|[\s"'`(<[{])\/\/[^\s"'`)>\]}/]+\/[^\s"'`)>\]}]+/g,"$1[path]").replace(/\b[A-Za-z]:\\[^\r\n]*/g,"[path]").replace(/(^|[\s"'`(<[{/:])(~|\/(?:Users|home))\/[^\s"'`)>\]}]+/g,"$1[home]").replace(/(^|[\s"'`(<[{])\/[\w.-]+(?:\/[\w.-]*)+/g,"$1[path]").replace(/\b(?=[A-Za-z0-9_-]*\d)[A-Za-z0-9_-]{24,}\b/g,"[redacted]")}function dy(e,t){const s=oy[e];return s?s.includes(t):ay.test(t)&&Co(t)===t}function uy(e){const t={};for(const[s,r]of Object.entries(ry)){const o=e[s];o!=null&&(r==="boolean"&&typeof o=="boolean"||r==="number"&&typeof o=="number"&&Number.isFinite(o)||r==="enum"&&typeof o=="string"&&dy(s,o))&&(t[s]=o)}return t}const my=["details","summary"];function No(e){return Rx(Co(e),my)}function hy(e){const t=e.runtimes.length>0?e.runtimes.join(", "):"none configured",s=Object.entries(e.flags).map(([o,a])=>`- ${o}: ${String(a)}`).join(`
|
|
1
|
+
var Bu=Object.defineProperty;var zu=(e,t,s)=>t in e?Bu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var bn=(e,t,s)=>zu(e,typeof t!="symbol"?t+"":t,s);import{s0 as Uu,r as u,f9 as Ho,s1 as Ku,f7 as Yr,j as n,s2 as Hu,s3 as Gi,fa as Wu,k8 as Vr,a1 as ae,a2 as Ie,aG as Be,f5 as _e,fW as Rn,s4 as Gs,k5 as as,s5 as Gu,s6 as qu,a3 as le,an as pe,jS as Wo,s7 as Yu,O as Ge,es as js,ap as se,B as L,X as Ue,G as K,jv as qi,s8 as Vu,x as De,a0 as Yi,bv as Vi,bc as ks,dG as ze,aX as Qu,s9 as Go,sa as Xu,bQ as Ju,aF as Qi,cs as Pe,aL as Le,s as $t,kq as Zu,kr as Xi,dD as ce,lw as Ln,lx as jt,ly as Ji,aW as P,rD as em,eS as kt,dV as is,iY as an,sb as tm,a4 as Wt,eF as Zi,fx as Qr,da as Xr,as as Gt,sc as qo,jR as nm,jW as ec,jQ as sm,pS as Jr,ju as Fn,J as cn,it as Zr,er as nn,l as je,aH as tc,eP as nc,e9 as sc,ea as rc,eQ as rm,sd as om,ee as it,bx as ln,by as dn,U as qt,bz as un,bB as mn,C as hn,en as We,eo as am,mP as oc,l7 as ac,aN as Ke,se as im,gM as ic,bR as Yo,sf as cm,g as cs,k4 as vr,z as eo,e3 as lt,hI as rt,gd as to,fC as Ss,kj as no,f as At,b7 as cc,eE as Cs,sg as lc,el as lm,ak as so,_ as Tn,dj as fn,dk as pn,dl as gn,ai as $e,ao as Ns,nR as dc,sh as dm,si as um,cZ as mm,dU as ls,bw as Xe,kx as As,kw as en,d0 as xt,d1 as bt,d3 as ht,d4 as tt,d5 as ft,eC as St,dN as tn,dL as hm,cm as $n,ey as uc,sj as fm,ck as mc,gv as hc,h6 as Vo,sk as pm,ig as ds,kf as gm,kh as xm,h4 as fc,sl as bm,g0 as Es,g1 as Is,g3 as Rs,sm as pc,g4 as Qe,sn as Bn,g6 as es,h as ro,so as oo,sp as ym,g2 as vm,qQ as wm,sq as gc,jH as jm,sr as km,ss as Sm,st as Cm,hn as xc,su as Nm,sv as Am,iX as Em,sw as Im,sx as Rm,av as Tm,gm as bc,ab as Fe,hl as Ts,sy as Dm,sz as Om,gn as Mm,rW as Qo,i1 as _m,mN as Pm,i3 as Lm,i4 as Fm,i5 as $m,jk as yc,sA as Bm,sB as me,sC as zm,sD as vc,sE as ao,sF as wr,sG as wc,sH as io,sI as co,b6 as zn,sJ as Ds,sK as Um,sL as Km,sM as Hm,sN as Wm,sO as Gm,sP as qm,sQ as Ym,sR as Tt,k6 as Vm,jA as Qm,oq as Xm,sS as Xo,bb as Jm,hU as jc,sT as Bt,sU as sn,sV as Zm,sW as eh,sX as th,sY as nh,fB as kc,c4 as Dt,sZ as Sc,s_ as us,s$ as Cc,t0 as sh,t1 as rh,t2 as Nc,t3 as Ac,t4 as oh,t5 as ah,i9 as Ec,ia as Ic,t6 as zt,t7 as ih,t8 as ch,eu as lh,t9 as Dn,ta as dh,aZ as Rc,tb as uh,tc as mh,td as hh,te as fh,tf as ph,tg as Tc,th as Ot,fA as Ct,fI as ct,fG as Un,fH as he,fL as Kn,fK as _t,fO as xe,I as gt,pd as Dc,pn as Oc,nk as Ut,nj as rn,co as Os,k$ as gh,ni as Mc,eT as _c,rN as Pc,oy as xh,nh as bh,ti as yh,tj as Jo,tk as vh,tl as on,tm as Lc,bY as Ms,ih as Fc,tn as wh,q9 as jh,to as kh,tp as $c,tq as Sh,tr as Ch,gw as Nh,aY as lo,nl as uo,ts as Ah,gp as _s,tt as Sn,tu as mo,q as ms,lB as Bc,tv as Eh,o as zc,tw as Ih,ks as Zo,mg as Rh,oQ as Th,tx as Dh,ca as Oh,ty as Mh,ah as ho,ag as fo,ns as Uc,nr as Kc,tz as _h,dE as Ps,kM as Hc,tA as Ph,tB as Lh,tC as Fh,tD as $h,tE as Bh,tF as zh,tG as Uh,hh as po,pR as Kh,tH as Wc,nU as Hh,l5 as jr,e5 as Wh,tI as Ls,nn as Fs,tJ as $s,tK as Gh,nm as qh,im as go,no as Gc,tL as Yh,qK as Vh,tM as Qh,tN as Xh,tO as ea,tP as Jh,tQ as Zh,tR as ef,tS as tf,tT as ta,tU as nf,tV as sf,tW as rf,tX as of,tY as na,e as Pt,tZ as af,t_ as cf,l3 as Bs,lN as qc,t$ as lf,gr as Yc,lI as df,lU as uf,u0 as mf,b4 as hf,jI as ff,u1 as pf,u2 as hs,m1 as Vc,u3 as Qc,u4 as gf,u5 as xf,u6 as Xc,u7 as sa,u8 as ra,u9 as Jc,b3 as bf,ua as yf,ub as Zc,uc as qn,ud as vf,ue as wf,uf as jf,ug as el,go as zs,uh as kr,ui as kf,cB as yn,H as tl,aT as Sf,uj as nl,eR as oa,kl as xo,bh as Cf,t as Nf,iy as Sr,i0 as Af,aO as bo,id as sl,uk as Ef,m7 as If,m8 as Rf,ph as Tf,l2 as Df,ul as Of,l4 as aa,lV as rl,bH as Mf,bI as _f,bJ as Pf,bK as Lf,bL as Ff,bM as $f,bN as Bf,um as zf,un as Cr,uo as Uf,up as qs,uq as Kf,ur as Hf,us as On,ut as Wf,uu as ia,mZ as Gf,lO as qf,uv as Yf,k9 as Vf,ka as Qf,b8 as fs,kb as Xf,kc as ca,mp as la,mn as Jf,mo as da,uw as Zf,m0 as ep,ux as tp,uy as np,fe as sp,uz as rp,uA as op,uB as ap,b$ as ip,uC as cp,uD as ol,uE as al,Q as yo,T as vo,V as wo,uF as lp,uG as dp,bV as up,f_ as mp,uH as Ys,ha as hp,uI as fp,uJ as pp,uK as gp,uL as xp,uM as bp,uN as yp,uO as vp,uP as wp,uQ as jp,uR as ua,jG as kp,bU as Sp,uS as il,uT as Cp,fD as Np,uU as ma,h$ as Ap,uV as Ep,uW as Ip,pi as Rp,uX as Tp,uY as Dp,cj as Op,uZ as Mp,u_ as ha,u$ as _p,v0 as Pp,pc as Lp,pv as Fp,j_ as $p,ec as Bp,v1 as zp,a7 as cl,v2 as Up,jU as Kp,jV as Hp,kN as Wp,fk as ll,fl as dl,fm as ul,fn as ml,dH as Gp,eq as qp,fi as Yp,fj as Vp,j8 as Qp,jf as Xp,kR as Jp,j9 as Zp,v3 as eg,ew as tg,kS as ng,v4 as hl,v5 as sg,v6 as rg,kQ as og,kP as ag,ja as ig,ez as cg,k3 as lg,i$ as dg,v7 as ug,v8 as fl,v9 as Us,bg as pl,$ as gl,va as xl,pU as mg,be as hg,bf as fg,eW as fa,bd as pg,gO as Vs,gW as Qs,ep as gg,vb as jo,n as xg,aQ as pa,pg as bg,bA as bl,vc as yl,vd as vl,q3 as yg,ve as vg,vf as wg,vg as Zt,dr as jg,vh as ga,nz as kg,nB as wl,dM as Sg,jP as Cg,oP as Ng,vi as Nr,f$ as Ag,ix as Eg,nM as ut,nO as Ig,rC as Rg,ok as xa,cU as Tg,vj as Dg,vk as Og,vl as Mg,vm as _g,vn as Pg,vo as Lg,vp as Fg,vq as $g,vr as Bg,r$ as zg,kG as Ug,h8 as Kg,vs as Hg,vt as Wg,vu as Gg,vv as qg,vw as Yg,vx as Vg,cv as Qg,vy as Xg,vz as Jg,jj as Zg,d9 as ex}from"./index-B48IJBNm.js";import{u as tx,g as nx}from"./use-connector-management-DDlpD6tk.js";import{D as Nt,a as sx}from"./TourHost-C4KKDX9k.js";import{r as rx,f as ox,b as ax,K as ix}from"./RuntimeConnectFlow-hhvWVRMu.js";import{O as cx,B as jl}from"./banner-DTCBttcQ.js";import{u as Ks,P as kl,a as lx}from"./ProfileRolePicker-D7F0PDw9.js";import{u as dx}from"./use-dev-links-BwS5hgur.js";import{B as ux,u as mx}from"./use-bindings-DdWRXvtd.js";import{C as ko,o as Sl,O as Cl,p as at,H as hx,q as wt,I as nt,t as ps,s as Hn,v as Nl,x as fx,y as Al,z as px,u as El,r as gx,w as xx,b as bx,j as yx,D as Ar,A as vx,T as wx,a as jx,P as kx,B as Sx,e as Il,E as Rl,F as Tl,G as Cx,J as Nx,h as Ax,S as ba,n as Ex,L as Ix}from"./SeenDevices-65oxnxk6.js";import{d as Rx}from"./untrusted-text-BDygHCRk.js";import{S as Nn}from"./scroll-area-D6gNpFjK.js";import{T as Dl,a as Ol,b as ts,c as Xs,u as Tx,i as Dx,d as Ox,P as Ml}from"./PreviewRefusedNotice-BfvSYL-w.js";import{P as Mx}from"./paperclip-D3-8ygf1.js";import{L as _x}from"./lightbulb-Dh2dYHMS.js";import{u as Wn}from"./use-update-config-B2rsDnxk.js";import{a as Px,u as Lx,S as Fx,s as $x,b as Bx,P as zx}from"./ApplyToOverridesDialog-Akw0_458.js";import{r as _l,s as ya,e as Ux}from"./access-copy-CP0B1ZT9.js";import{t as Kx,I as va}from"./trust-posture-5IWBJmA5.js";import{a as Hx}from"./use-pulse-freshness-DPplpvcq.js";import{c as Wx,B as Gx,w as qx,b as Yx,a as Vx,e as Qx}from"./primer-trigger-BxofQe1n.js";import{M as Xx,u as Jx,s as Zx,P as eb,a as tb}from"./use-promo-activation-DesLEeyi.js";import{u as Pl}from"./use-promo-dismissals-DQi8tey8.js";import{u as Ll}from"./use-pending-read-BTR5-HXf.js";import{a as pt}from"./dorkbot-templates-8Yu9POWJ.js";import{i as nb,O as Fl,c as sb,b as rb}from"./OperatorIdentityForm-CCAvadEZ.js";import{A as $l}from"./repeat-zL9y24zY.js";import{S as Bl,P as ob}from"./progress-AKcr8opu.js";import{P as ab,M as ib}from"./plug-Du5LK0oZ.js";import{i as So,a as cb,u as lb}from"./use-notification-prefs-CzibxpTZ.js";import{R as db}from"./rotate-cw-CCrNd4eJ.js";import{b as ub,u as mb,O as hb,c as fb}from"./OpenMeshSwitch-aAMKDAyc.js";import{u as pb,a as gb,C as xb,N as bb}from"./NewDirectMessageMenu-DTQ7vFsa.js";import{P as yb,C as vb,f as wb,a as jb}from"./find-latest-widget-fence-BsDq4SYp.js";import{o as kb}from"./owner-notice-DReCUEf1.js";import{a as zl,C as Sb}from"./cpu-CLfYM0zq.js";import{U as Cb}from"./unplug-BVIT6OSL.js";import{c as Nb,H as Ul,a as Kl,b as Hl}from"./RuntimeSetupDialog-NKy3mLEH.js";import{a as Ab,u as Eb,F as Ib}from"./ForwardConsentHost-D8rVtTRp.js";import{P as wa}from"./page-container-Bx1sr900.js";import{A as Rb}from"./AttentionSignalRow-Cx9-sStN.js";import{u as Tb}from"./use-roving-tab-list-DEh387tR.js";import{R as Wl}from"./rotate-ccw-clock-BUhy2_cF.js";import{d as et,e as Ce,f as ja,g as Gl,C as ql,a as Yl,b as Vl,c as Db}from"./command-C7Cl56dV.js";import{A as Ob,M as Mb}from"./McpAppFrame-BtKAUDBg.js";import{L as _b}from"./layers-A4MxcGWV.js";import{A as Pb}from"./AgentOptionRow-Dj2MlE6E.js";import{R as Lb}from"./radio-DQHR6Su5.js";import{a as Fb}from"./sound-D3r8dGFH.js";import{d as $b}from"./connection-copy--MA7AN04.js";import{P as Bb}from"./path-input-D_o1_pAa.js";import"./WidgetErrorCard-BZkAK-Ke.js";import{a as zb}from"./ComputerResourceView-vJ8UfRNm.js";import{P as Ub,u as Kb}from"./pane-resize-handle-ojhYGmDs.js";import{u as Ql}from"./use-is-below-desktop-C-4kc5lS.js";import{W as Hb}from"./WithheldExtensionsNotice-Dt51QZLT.js";import{u as Wb}from"./use-direct-message-panel--unflmj8.js";import{u as Gb}from"./ComputerViewer-BTqPuZyh.js";import{a as qb}from"./use-local-browser-DGIut7R4.js";import{F as Yb}from"./file-text-DXPPkxAL.js";import"./use-external-adapter-catalog-DUyh1bH1.js";import"./inline-code-BCFlKPIb.js";import"./useMutationState-BX-ggHVY.js";import"./runtime-connect-Dn0T5YWv.js";import"./execution-config-COqY7hHn.js";import"./settings-for-runtime-BoOa-ZFG.js";import"./shield-x-Ch7sY2XD.js";import"./use-full-activity-feed-DsNOIkL8.js";import"./profile-errors-C0BgTjzk.js";import"./use-mounted-ref-7xoMthh4.js";import"./ProfileFields-CX2mdPAV.js";import"./use-mesh-topology-DNXD7seM.js";import"./card-D9DO5nt4.js";import"./list-runtime-types-B1J9AtqH.js";import"./more-details-Bo2AAXHj.js";import"./index-Hf3kLtiJ.js";import"./markdown-content-BA0KEJH_.js";import"./table-D6BUawIb.js";import"./package-CxZe6vve.js";import"./heart-CRoafWCm.js";import"./git-branch-DlUQMA-U.js";import"./file-CKSjJRX5.js";function Vb({children:e,isValidProp:t,...s}){t&&Uu(t);const r=u.useContext(Ho);s={...r,...s},s.transition=Ku(s.transition,r.transition),s.isStatic=Yr(()=>s.isStatic);const o=u.useMemo(()=>s,[JSON.stringify(s.transition),s.transformPagePoint,s.reducedMotion,s.skipAnimations]);return n.jsx(Ho.Provider,{value:o,children:e})}function Qb(e){e.values.forEach(t=>t.stop())}function Er(e,t){[...t].reverse().forEach(r=>{const o=e.getVariant(r);o&&Gi(e,o),e.variantChildren&&e.variantChildren.forEach(a=>{Er(a,t)})})}function Xb(e,t){if(Array.isArray(t))return Er(e,t);if(typeof t=="string")return Er(e,[t]);Gi(e,t)}function Jb(){const e=new Set,t={subscribe(s){return e.add(s),()=>void e.delete(s)},start(s,r){const o=[];return e.forEach(a=>{o.push(Hu(a,s,{transitionOverride:r}))}),Promise.all(o)},set(s){return e.forEach(r=>{Xb(r,s)})},stop(){e.forEach(s=>{Qb(s)})},mount(){return()=>{t.stop()}}};return t}function Zb(){const e=Yr(Jb);return Wu(e.mount,[]),e}class ey{constructor(){this.componentControls=new Set}subscribe(t){return this.componentControls.add(t),()=>this.componentControls.delete(t)}start(t,s){this.componentControls.forEach(r=>{r.start(t.nativeEvent||t,s)})}cancel(){this.componentControls.forEach(t=>{t.cancel()})}stop(){this.componentControls.forEach(t=>{t.stop()})}}const ty=()=>new ey;function ny(){return Yr(ty)}const sy=`${Vr.repo}/issues/new`,ry={"tunnel.enabled":"boolean","tasks.enabled":"boolean","relay.enabled":"boolean","scheduler.enabled":"boolean","mesh.enabled":"boolean","mcp.enabled":"boolean","telemetry.install":"boolean","telemetry.heartbeat":"boolean","telemetry.errorReporting":"boolean","auth.enabled":"boolean","workspace.enabled":"boolean","harness.autoSync":"boolean","harness.autoAdopt":"boolean","runtimes.codex.enabled":"boolean","runtimes.opencode.enabled":"boolean","runtimes.default":"enum","logging.level":"enum","ui.theme":"enum"},oy={"runtimes.default":["claude-code","codex","opencode","doe"],"logging.level":["fatal","error","warn","info","debug","trace"],"ui.theme":["light","dark","system"]},ay=/^[a-z0-9][a-z0-9._-]{0,31}$/,iy={bug:["bug"],feature:["enhancement"],runtime:["bug"]},cy={bug:"Bug: (describe what went wrong)",feature:"Feature: (describe what you want)",runtime:"Runtime issue: (describe what went wrong)"};function ly(e){return e.replace(/\b(?:sk-|pk-|rk-|ghp_|gho_|ghu_|ghs_|github_pat_|glpat-|npm_|xox[baprsc]-)[A-Za-z0-9._-]+/g,"[redacted]").replace(/\b(?:AKIA|ASIA|AGPA|AIDA|AROA|ANPA)[0-9A-Z]{16}\b/g,"[redacted]").replace(/\bBearer\s+[A-Za-z0-9._-]+/gi,"[redacted]")}function Co(e){return ly(e).replace(/[^\s/@]+@[^\s/@]+\.[^\s/@]+/g,"[email]").replace(/\b\d{1,3}(?:\.\d{1,3}){3}\b/g,"[ip]").replace(/\b(?:[A-Fa-f0-9]{1,4}:){2,7}[A-Fa-f0-9]{1,4}\b/g,"[ip]").replace(new RegExp("(?<![\\w:.])(?:[A-Fa-f0-9]{1,4})?(?::[A-Fa-f0-9]{0,4}){2,}(?![\\w:.])","g"),"[ip]").replace(/\\\\[^\s\\]+(?:\\[^\s\\]+)+/g,"[path]").replace(/(^|[\s"'`(<[{])\/\/[^\s"'`)>\]}/]+\/[^\s"'`)>\]}]+/g,"$1[path]").replace(/\b[A-Za-z]:\\[^\r\n]*/g,"[path]").replace(/(^|[\s"'`(<[{/:])(~|\/(?:Users|home))\/[^\s"'`)>\]}]+/g,"$1[home]").replace(/(^|[\s"'`(<[{])\/[\w.-]+(?:\/[\w.-]*)+/g,"$1[path]").replace(/\b(?=[A-Za-z0-9_-]*\d)[A-Za-z0-9_-]{24,}\b/g,"[redacted]")}function dy(e,t){const s=oy[e];return s?s.includes(t):ay.test(t)&&Co(t)===t}function uy(e){const t={};for(const[s,r]of Object.entries(ry)){const o=e[s];o!=null&&(r==="boolean"&&typeof o=="boolean"||r==="number"&&typeof o=="number"&&Number.isFinite(o)||r==="enum"&&typeof o=="string"&&dy(s,o))&&(t[s]=o)}return t}const my=["details","summary"];function No(e){return Rx(Co(e),my)}function hy(e){const t=e.runtimes.length>0?e.runtimes.join(", "):"none configured",s=Object.entries(e.flags).map(([o,a])=>`- ${o}: ${String(a)}`).join(`
|
|
2
2
|
`),r=[`- DorkOS version: ${e.version}`,`- OS / arch: ${e.platform}`,`- Runtimes configured: ${t}`,`- Reported from: ${e.surface}`,"","Settings (on/off values only, no secrets or file paths):",s.length>0?s:"- (none available)"];return Co(r.join(`
|
|
3
3
|
`))}function fy(e){var s;const t=(s=e.body)==null?void 0:s.trim();return t?[No(t)]:e.kind==="feature"?["## What do you want DorkOS to do?","","","## Why would it help?","",""]:["## What happened?","","","## What did you expect?","","","## Steps to reproduce","","1. ","2. ","3. "]}function py(e){return["<details><summary>Environment</summary>","",hy(e),"","</details>","","DorkOS filled in the details above. Please check them and remove anything you do not want to share.","","---","",...fy(e)].join(`
|
|
4
4
|
`)}function Js(e){var r;const t=(r=e.title)==null?void 0:r.trim(),s=new URLSearchParams({title:No(t||cy[e.kind]),body:py(e),labels:iy[e.kind].join(",")});return`${sy}?${s.toString()}`}const gy=6e3,ka=`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as o,d9 as t}from"./index-
|
|
1
|
+
import{j as o,d9 as t}from"./index-B48IJBNm.js";function e(){return o.jsx("div",{className:"h-full min-h-0 overflow-hidden",children:o.jsx(t,{})})}const s=e;export{s as component};
|
package/dist/client/assets/{_shell._home.activity-BXw8iSC4.js → _shell._home.activity-DPjJ1_vZ.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{cs as R,da as D,r as l,iW as C,iX as O,j as e,bw as V,ap as g,B as M,X as Y,G as x,A as j,hp as G,hq as k,_ as q,e as v,x as K,a1 as z,a2 as U,iY as X,hl as Q,iZ as Z,ey as J,e1 as ee}from"./index-fge85Gub.js";import{P as te}from"./page-container-BCdJ_DsH.js";import{g as se,A as ne,a as ie,b as ae}from"./ActivityErrorState-s4xAcJQR.js";import{u as re}from"./use-full-activity-feed-QZAZ5vBJ.js";import{C as w,A as oe}from"./ActivityRow-5PJBHIt2.js";import{T as P,a as _,b as ce,c as p}from"./table-BcJvj9rx.js";import{E as b}from"./empty-state-BzWMBBQZ.js";import{u as le,W as ue}from"./WithheldExtensionsNotice-CZibLuKA.js";const S=["categories","actorType","actorId","since"];function A(){const s=R(),n=D({strict:!1}),t={categories:n.categories,actorType:n.actorType,actorId:n.actorId,since:n.since},i=S.some(c=>n[c]!==void 0),a={};t.categories&&(a.categories=t.categories),t.actorType&&(a.actorType=t.actorType),t.actorId&&(a.actorId=t.actorId),t.since&&(a.since=t.since);const r=l.useCallback(c=>{s({search:c})},[s]),o=l.useCallback(c=>{r(f=>{const y=f.categories?f.categories.split(","):[],N=y.includes(c)?y.filter(B=>B!==c):[...y,c];return{...f,categories:N.length>0?N.join(","):void 0}})},[r]),d=l.useCallback(c=>{r(f=>({...f,actorType:c}))},[r]),m=l.useCallback(c=>{r(f=>({...f,actorId:c}))},[r]),u=l.useCallback(c=>{r(f=>({...f,since:c}))},[r]),h=l.useCallback(()=>{r(c=>{const f={...c};for(const y of S)delete f[y];return f})},[r]);return{filters:t,queryFilters:a,isFiltered:i,toggleCategory:o,setActorType:d,setActorId:m,setSince:u,clearAll:h}}function de(){const s=R(),t=D({strict:!1}).view==="all"?"all":"activity",i=l.useCallback(a=>{s({search:(r=>({...r,view:a==="all"?"all":void 0}))})},[s]);return{view:t,setView:i}}function me(){const[s]=l.useState(()=>C.getState().lastSeenAt);return l.useEffect(()=>{const{markSeen:n,setViewing:t}=C.getState();return n(),t(!0),()=>{n(),t(!1)}},[]),s}function he(s){const n=l.useRef(null),t=l.useCallback(i=>{var d,m,u;const a=n.current;if(!a)return;const r=a.querySelectorAll("[data-activity-row]"),o=Array.from(r).findIndex(h=>h===document.activeElement||h.contains(document.activeElement));switch(i.key){case"ArrowDown":{i.preventDefault();const h=Math.min(o+1,r.length-1);(d=r[h])==null||d.focus();break}case"ArrowUp":{i.preventDefault();const h=Math.max(o-1,0);(m=r[h])==null||m.focus();break}case"Escape":{(u=document.activeElement)==null||u.blur();break}}},[s]);return{containerRef:n,handleKeyDown:t}}const xe=["tasks","relay","agent","config","system","permissions"],L="group inline-flex min-h-11 shrink-0 items-center outline-none md:min-h-0",$="inline-flex h-6 items-center rounded-full px-2.5 text-xs font-medium transition-colors group-focus-visible:ring-ring group-focus-visible:ring-2 group-focus-visible:ring-offset-1";function fe({category:s,isActive:n,onToggle:t}){const i=w[s];return e.jsx(g.button,{type:"button",layout:!0,onClick:t,"aria-pressed":n,transition:{duration:.15},className:L,children:e.jsx("span",{className:x($,n?x(i.bg,i.text):"text-muted-foreground group-hover:bg-muted group-hover:text-foreground"),children:i.label})})}function ge({isActive:s,onClick:n}){return e.jsx(g.button,{type:"button",layout:!0,onClick:n,"aria-pressed":s,transition:{duration:.15},className:L,children:e.jsx("span",{className:x($,s?"bg-foreground text-background":"text-muted-foreground group-hover:bg-muted group-hover:text-foreground"),children:"All"})})}function ye({className:s}){const{filters:n,isFiltered:t,toggleCategory:i,clearAll:a}=A(),r=l.useRef(null),o=O(r,"horizontal"),d=new Set(n.categories?n.categories.split(","):[]),m=()=>{t&&a()};return e.jsxs("div",{className:x("relative",s),children:[e.jsxs("div",{ref:r,onScroll:o.onScroll,"data-slot":"activity-filter-bar",className:"flex items-center gap-1 overflow-x-auto",children:[e.jsx(ge,{isActive:!t,onClick:m}),xe.map(u=>e.jsx(fe,{category:u,isActive:d.has(u),onToggle:()=>i(u)},u)),e.jsx(V,{children:t&&e.jsx(g.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.15},children:e.jsxs(M,{variant:"ghost",size:"xs",className:"ml-1",onClick:a,children:[e.jsx(Y,{"aria-hidden":!0}),"Clear"]})},"clear-filters")})]}),o.start&&e.jsx("div",{"aria-hidden":!0,"data-testid":"activity-filter-bar-fade-start",className:"from-background via-background/70 pointer-events-none absolute inset-y-0 left-0 w-8 bg-gradient-to-r to-transparent"}),o.end&&e.jsx("div",{"aria-hidden":!0,"data-testid":"activity-filter-bar-fade-end",className:"from-background via-background/70 pointer-events-none absolute inset-y-0 right-0 w-8 bg-gradient-to-l to-transparent"})]})}function pe({isFiltered:s=!1,view:n="activity",className:t}){const{filters:i,clearAll:a}=A();return n==="all"?e.jsx(b,{className:t,icon:j,headline:"No actions yet",description:"Every action a person or agent takes shows up here."}):s?e.jsx(b,{className:t,icon:j,headline:`No ${ve(i.categories)} activity found`,description:"Try other filters.",action:{label:"Clear filters",onClick:a,variant:"outline"}}):e.jsx(b,{className:t,icon:j,headline:"No activity yet",description:"Your agents’ work shows up here."})}function ve(s){if(!s)return"matching";const t=s.split(",").map(r=>{var o;return((o=w[r])==null?void 0:o.label)??r});if(t.length===1)return t[0];const i=t[t.length-1];return`${t.slice(0,-1).join(", ")} or ${i}`}function je({view:s,onViewChange:n,className:t}){return e.jsxs(G,{"aria-label":"Which list to show",className:x("w-fit shrink-0",t),value:s,onValueChange:i=>n(i),children:[e.jsx(k,{value:"activity",children:"Activity"}),e.jsx(k,{value:"all",children:"All actions"})]})}function be(s){const n=Date.now()-new Date(s).getTime(),t=Math.floor(n/36e5);return t<1?"recently":t<24?`${t}h ago`:`${Math.floor(t/24)}d ago`}function we(s,n){const t=new Date(n),i={};for(const a of s)new Date(a.occurredAt)>t&&(i[a.category]=(i[a.category]??0)+1);return i}function Ae(s){const n={tasks:"scheduled run",relay:"message",agent:"agent update",config:"settings change",system:"system event",permissions:"permission change"};return Object.entries(s).filter(([,t])=>t>0).map(([t,i])=>{const a=n[t];return`${i} ${i===1?a:`${a}s`}`}).join(" · ")}function Ne({lastVisitedAt:s,items:n,className:t}){if(!s)return null;const i=we(n,s);if(Object.values(i).reduce((d,m)=>d+(m??0),0)===0)return null;const r=be(s),o=Ae(i);return e.jsxs(g.div,{"data-slot":"activity-since-last-visit",initial:{opacity:0,y:-6},animate:{opacity:1,y:0},transition:{duration:.2,ease:"easeOut"},className:x("rounded-lg border px-4 py-3","bg-card border-border",t),children:[e.jsxs("p",{className:"text-muted-foreground text-xs",children:[e.jsx("span",{className:"text-foreground font-medium",children:"Since your last visit"})," ",e.jsxs("span",{children:["(",r,")"]})]}),e.jsx("p",{className:"text-foreground/80 mt-0.5 text-sm",children:o}),e.jsx("div",{className:"mt-2 flex flex-wrap gap-2",children:Object.keys(i).map(d=>{const m=i[d];if(!m)return null;const u=w[d];return e.jsxs(q,{shape:"pill",className:x("border-transparent",u.bg,u.text),children:[m," ",u.label]},d)})})]})}const Ce={initial:{opacity:0,y:6},animate:{opacity:1,y:0,transition:{duration:.2,ease:"easeOut"}}};function ke(){const s=l.useId(),n=l.useMemo(()=>`${s.split("").reduce((i,a)=>i+a.charCodeAt(0),0)%40+50}%`,[s]);return e.jsxs(ce,{children:[e.jsx(p,{className:"w-28 py-1.5 pr-0 pl-2 max-sm:hidden",children:e.jsx(v,{className:"h-3 w-20"})}),e.jsx(p,{className:"w-24 py-1.5 pr-0 max-sm:hidden",children:e.jsx(v,{className:"h-5 w-20 rounded-full"})}),e.jsx(p,{className:"py-1.5 max-sm:pl-2",children:e.jsx(v,{className:"h-3 rounded",style:{width:n}})}),e.jsx(p,{className:"w-16 py-1.5 max-sm:w-10"})]})}function Se(){return e.jsxs("div",{"data-slot":"activity-timeline-skeleton",className:"space-y-1",children:[e.jsx("div",{className:"py-2",children:e.jsx(v,{className:"h-3 w-16 rounded"})}),e.jsx(P,{children:e.jsx(_,{children:Array.from({length:5}).map((s,n)=>e.jsx(ke,{},n))})})]})}function H({items:s,isLoading:n,isError:t,onRetry:i,isFiltered:a,view:r="activity",className:o}){const d=l.useMemo(()=>se(s,new Date),[s]),{containerRef:m,handleKeyDown:u}=he(s.length);return n&&s.length===0?e.jsx("div",{"data-slot":"activity-timeline",className:x(o),children:e.jsx(Se,{})}):t&&s.length===0?e.jsx("div",{"data-slot":"activity-timeline",className:x(o),children:e.jsx(ne,{onRetry:i})}):s.length===0?e.jsx("div",{"data-slot":"activity-timeline",className:x(o),children:e.jsx(pe,{isFiltered:a,view:r})}):e.jsx("div",{ref:m,onKeyDown:u,"data-slot":"activity-timeline",className:x(o),children:d.map(h=>e.jsxs("section",{children:[e.jsx(ie,{label:h.label}),e.jsx(g.div,{variants:Ce,initial:"initial",animate:"animate",children:e.jsx(P,{children:e.jsx(_,{children:h.items.map(c=>e.jsx(oe,{item:c},c.id))})})})]},h.label))})}function W({onLoadMore:s,isFetching:n,hasNextPage:t,className:i}){return t?e.jsx(g.div,{"data-slot":"activity-load-more",initial:{opacity:0},animate:{opacity:1},transition:{duration:.2,delay:.1},className:x("flex justify-center py-4",i),children:e.jsxs(M,{variant:"outline",size:"sm",onClick:s,disabled:n,className:"gap-2",children:[n&&e.jsx(K,{size:"xs"}),"Load 50 more events"]})}):null}const T=7;function Te(){var t;const s=z(),{data:n}=U({queryKey:X.dailyCounts(T),queryFn:()=>s.getSessionDailyCounts(T),staleTime:6e4});return!n||n.dailyCounts.length===0?null:{dailyCounts:n.dailyCounts,degraded:(((t=n.warnings)==null?void 0:t.length)??0)>0}}function Ie(s,n){const t=s.reduce((a,r)=>a+r,0),i=t===1?"session":"sessions";return n?t===0?"This week’s count is incomplete":`Your agents started at least ${t} ${i} this week`:t===0?"Your agents started no chats this week":`Your agents started ${t} ${i} this week`}const I=10,Ee=4,E=30,F=1;function Fe({data:s,className:n}){const t=Math.max(...s,1);return e.jsx("svg",{viewBox:"0 0 100 30",className:x("text-muted-foreground",n),"aria-hidden":"true",children:s.map((i,a)=>{const r=i/t*E;return e.jsx("rect",{x:a*(I+Ee)+1,y:E-Math.max(r,F),width:I,height:Math.max(r,F),rx:2,fill:"currentColor",opacity:.6},a)})})}function Re(){const s=Te();return s===null?null:e.jsxs("div",{className:"flex items-center justify-between gap-4",children:[e.jsx("p",{className:"text-muted-foreground text-sm",children:Ie(s.dailyCounts,s.degraded)}),e.jsx(Fe,{data:s.dailyCounts,className:"h-6 w-24 shrink-0"})]})}function De(){const s=l.useId(),n=Q("dashboard.sections"),t=l.useMemo(()=>n.filter(a=>Z(a.id)&&(!a.visibleWhen||a.visibleWhen())),[n]),i=le("dashboard.sections");return t.length===0&&i.length===0?null:e.jsxs("section",{className:"space-y-3","aria-labelledby":s,children:[e.jsx("h2",{id:s,className:"text-muted-foreground text-xs font-medium tracking-widest uppercase",children:"From your extensions"}),e.jsx(ue,{slot:"dashboard.sections",onReview:()=>J()}),e.jsx("div",{className:"space-y-4",children:t.map(a=>e.jsx(a.component,{},a.id))})]})}function Me(){const{view:s,setView:n}=de();return e.jsxs(e.Fragment,{children:[e.jsx(ee,{children:"Activity"}),e.jsxs(te,{width:"wide",className:"space-y-4",children:[e.jsxs("div",{className:"flex min-w-0 items-center gap-3",children:[e.jsx(je,{view:s,onViewChange:n}),s==="activity"&&e.jsx(ye,{className:"min-w-0 flex-1"})]}),e.jsx(Re,{}),e.jsx(De,{}),s==="all"?e.jsx(_e,{}):e.jsx(Pe,{})]})]})}function Pe(){const{queryFilters:s,isFiltered:n}=A(),t=me(),{data:i,isLoading:a,isError:r,refetch:o,isFetchingNextPage:d,hasNextPage:m,fetchNextPage:u}=re(s),h=l.useMemo(()=>(i==null?void 0:i.pages.flatMap(c=>c.items))??[],[i]);return e.jsxs(e.Fragment,{children:[e.jsx(Ne,{lastVisitedAt:t,items:h}),e.jsx(H,{items:h,isLoading:a,isError:r,onRetry:()=>void o(),isFiltered:n}),e.jsx(W,{onLoadMore:()=>void u(),isFetching:d,hasNextPage:!!m})]})}function _e(){const{data:s,isLoading:n,isError:t,refetch:i,isFetchingNextPage:a,hasNextPage:r,fetchNextPage:o}=ae();return e.jsxs(e.Fragment,{children:[e.jsx(H,{items:s??[],isLoading:n,isError:t,onRetry:()=>void i(),isFiltered:!1,view:"all"}),e.jsx(W,{onLoadMore:()=>void o(),isFetching:a,hasNextPage:!!r})]})}const Ge=Me;export{Ge as component};
|
|
1
|
+
import{cs as R,da as D,r as l,iW as C,iX as O,j as e,bw as V,ap as g,B as M,X as Y,G as x,A as j,hp as G,hq as k,_ as q,e as v,x as K,a1 as z,a2 as U,iY as X,hl as Q,iZ as Z,ey as J,e1 as ee}from"./index-B48IJBNm.js";import{P as te}from"./page-container-Bx1sr900.js";import{g as se,A as ne,a as ie,b as ae}from"./ActivityErrorState-DW-plne9.js";import{u as re}from"./use-full-activity-feed-DsNOIkL8.js";import{C as w,A as oe}from"./ActivityRow-BnBDxJqK.js";import{T as P,a as _,b as ce,c as p}from"./table-D6BUawIb.js";import{E as b}from"./empty-state-2mQX7azC.js";import{u as le,W as ue}from"./WithheldExtensionsNotice-Dt51QZLT.js";const S=["categories","actorType","actorId","since"];function A(){const s=R(),n=D({strict:!1}),t={categories:n.categories,actorType:n.actorType,actorId:n.actorId,since:n.since},i=S.some(c=>n[c]!==void 0),a={};t.categories&&(a.categories=t.categories),t.actorType&&(a.actorType=t.actorType),t.actorId&&(a.actorId=t.actorId),t.since&&(a.since=t.since);const r=l.useCallback(c=>{s({search:c})},[s]),o=l.useCallback(c=>{r(f=>{const y=f.categories?f.categories.split(","):[],N=y.includes(c)?y.filter(B=>B!==c):[...y,c];return{...f,categories:N.length>0?N.join(","):void 0}})},[r]),d=l.useCallback(c=>{r(f=>({...f,actorType:c}))},[r]),m=l.useCallback(c=>{r(f=>({...f,actorId:c}))},[r]),u=l.useCallback(c=>{r(f=>({...f,since:c}))},[r]),h=l.useCallback(()=>{r(c=>{const f={...c};for(const y of S)delete f[y];return f})},[r]);return{filters:t,queryFilters:a,isFiltered:i,toggleCategory:o,setActorType:d,setActorId:m,setSince:u,clearAll:h}}function de(){const s=R(),t=D({strict:!1}).view==="all"?"all":"activity",i=l.useCallback(a=>{s({search:(r=>({...r,view:a==="all"?"all":void 0}))})},[s]);return{view:t,setView:i}}function me(){const[s]=l.useState(()=>C.getState().lastSeenAt);return l.useEffect(()=>{const{markSeen:n,setViewing:t}=C.getState();return n(),t(!0),()=>{n(),t(!1)}},[]),s}function he(s){const n=l.useRef(null),t=l.useCallback(i=>{var d,m,u;const a=n.current;if(!a)return;const r=a.querySelectorAll("[data-activity-row]"),o=Array.from(r).findIndex(h=>h===document.activeElement||h.contains(document.activeElement));switch(i.key){case"ArrowDown":{i.preventDefault();const h=Math.min(o+1,r.length-1);(d=r[h])==null||d.focus();break}case"ArrowUp":{i.preventDefault();const h=Math.max(o-1,0);(m=r[h])==null||m.focus();break}case"Escape":{(u=document.activeElement)==null||u.blur();break}}},[s]);return{containerRef:n,handleKeyDown:t}}const xe=["tasks","relay","agent","config","system","permissions"],L="group inline-flex min-h-11 shrink-0 items-center outline-none md:min-h-0",$="inline-flex h-6 items-center rounded-full px-2.5 text-xs font-medium transition-colors group-focus-visible:ring-ring group-focus-visible:ring-2 group-focus-visible:ring-offset-1";function fe({category:s,isActive:n,onToggle:t}){const i=w[s];return e.jsx(g.button,{type:"button",layout:!0,onClick:t,"aria-pressed":n,transition:{duration:.15},className:L,children:e.jsx("span",{className:x($,n?x(i.bg,i.text):"text-muted-foreground group-hover:bg-muted group-hover:text-foreground"),children:i.label})})}function ge({isActive:s,onClick:n}){return e.jsx(g.button,{type:"button",layout:!0,onClick:n,"aria-pressed":s,transition:{duration:.15},className:L,children:e.jsx("span",{className:x($,s?"bg-foreground text-background":"text-muted-foreground group-hover:bg-muted group-hover:text-foreground"),children:"All"})})}function ye({className:s}){const{filters:n,isFiltered:t,toggleCategory:i,clearAll:a}=A(),r=l.useRef(null),o=O(r,"horizontal"),d=new Set(n.categories?n.categories.split(","):[]),m=()=>{t&&a()};return e.jsxs("div",{className:x("relative",s),children:[e.jsxs("div",{ref:r,onScroll:o.onScroll,"data-slot":"activity-filter-bar",className:"flex items-center gap-1 overflow-x-auto",children:[e.jsx(ge,{isActive:!t,onClick:m}),xe.map(u=>e.jsx(fe,{category:u,isActive:d.has(u),onToggle:()=>i(u)},u)),e.jsx(V,{children:t&&e.jsx(g.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.15},children:e.jsxs(M,{variant:"ghost",size:"xs",className:"ml-1",onClick:a,children:[e.jsx(Y,{"aria-hidden":!0}),"Clear"]})},"clear-filters")})]}),o.start&&e.jsx("div",{"aria-hidden":!0,"data-testid":"activity-filter-bar-fade-start",className:"from-background via-background/70 pointer-events-none absolute inset-y-0 left-0 w-8 bg-gradient-to-r to-transparent"}),o.end&&e.jsx("div",{"aria-hidden":!0,"data-testid":"activity-filter-bar-fade-end",className:"from-background via-background/70 pointer-events-none absolute inset-y-0 right-0 w-8 bg-gradient-to-l to-transparent"})]})}function pe({isFiltered:s=!1,view:n="activity",className:t}){const{filters:i,clearAll:a}=A();return n==="all"?e.jsx(b,{className:t,icon:j,headline:"No actions yet",description:"Every action a person or agent takes shows up here."}):s?e.jsx(b,{className:t,icon:j,headline:`No ${ve(i.categories)} activity found`,description:"Try other filters.",action:{label:"Clear filters",onClick:a,variant:"outline"}}):e.jsx(b,{className:t,icon:j,headline:"No activity yet",description:"Your agents’ work shows up here."})}function ve(s){if(!s)return"matching";const t=s.split(",").map(r=>{var o;return((o=w[r])==null?void 0:o.label)??r});if(t.length===1)return t[0];const i=t[t.length-1];return`${t.slice(0,-1).join(", ")} or ${i}`}function je({view:s,onViewChange:n,className:t}){return e.jsxs(G,{"aria-label":"Which list to show",className:x("w-fit shrink-0",t),value:s,onValueChange:i=>n(i),children:[e.jsx(k,{value:"activity",children:"Activity"}),e.jsx(k,{value:"all",children:"All actions"})]})}function be(s){const n=Date.now()-new Date(s).getTime(),t=Math.floor(n/36e5);return t<1?"recently":t<24?`${t}h ago`:`${Math.floor(t/24)}d ago`}function we(s,n){const t=new Date(n),i={};for(const a of s)new Date(a.occurredAt)>t&&(i[a.category]=(i[a.category]??0)+1);return i}function Ae(s){const n={tasks:"scheduled run",relay:"message",agent:"agent update",config:"settings change",system:"system event",permissions:"permission change"};return Object.entries(s).filter(([,t])=>t>0).map(([t,i])=>{const a=n[t];return`${i} ${i===1?a:`${a}s`}`}).join(" · ")}function Ne({lastVisitedAt:s,items:n,className:t}){if(!s)return null;const i=we(n,s);if(Object.values(i).reduce((d,m)=>d+(m??0),0)===0)return null;const r=be(s),o=Ae(i);return e.jsxs(g.div,{"data-slot":"activity-since-last-visit",initial:{opacity:0,y:-6},animate:{opacity:1,y:0},transition:{duration:.2,ease:"easeOut"},className:x("rounded-lg border px-4 py-3","bg-card border-border",t),children:[e.jsxs("p",{className:"text-muted-foreground text-xs",children:[e.jsx("span",{className:"text-foreground font-medium",children:"Since your last visit"})," ",e.jsxs("span",{children:["(",r,")"]})]}),e.jsx("p",{className:"text-foreground/80 mt-0.5 text-sm",children:o}),e.jsx("div",{className:"mt-2 flex flex-wrap gap-2",children:Object.keys(i).map(d=>{const m=i[d];if(!m)return null;const u=w[d];return e.jsxs(q,{shape:"pill",className:x("border-transparent",u.bg,u.text),children:[m," ",u.label]},d)})})]})}const Ce={initial:{opacity:0,y:6},animate:{opacity:1,y:0,transition:{duration:.2,ease:"easeOut"}}};function ke(){const s=l.useId(),n=l.useMemo(()=>`${s.split("").reduce((i,a)=>i+a.charCodeAt(0),0)%40+50}%`,[s]);return e.jsxs(ce,{children:[e.jsx(p,{className:"w-28 py-1.5 pr-0 pl-2 max-sm:hidden",children:e.jsx(v,{className:"h-3 w-20"})}),e.jsx(p,{className:"w-24 py-1.5 pr-0 max-sm:hidden",children:e.jsx(v,{className:"h-5 w-20 rounded-full"})}),e.jsx(p,{className:"py-1.5 max-sm:pl-2",children:e.jsx(v,{className:"h-3 rounded",style:{width:n}})}),e.jsx(p,{className:"w-16 py-1.5 max-sm:w-10"})]})}function Se(){return e.jsxs("div",{"data-slot":"activity-timeline-skeleton",className:"space-y-1",children:[e.jsx("div",{className:"py-2",children:e.jsx(v,{className:"h-3 w-16 rounded"})}),e.jsx(P,{children:e.jsx(_,{children:Array.from({length:5}).map((s,n)=>e.jsx(ke,{},n))})})]})}function H({items:s,isLoading:n,isError:t,onRetry:i,isFiltered:a,view:r="activity",className:o}){const d=l.useMemo(()=>se(s,new Date),[s]),{containerRef:m,handleKeyDown:u}=he(s.length);return n&&s.length===0?e.jsx("div",{"data-slot":"activity-timeline",className:x(o),children:e.jsx(Se,{})}):t&&s.length===0?e.jsx("div",{"data-slot":"activity-timeline",className:x(o),children:e.jsx(ne,{onRetry:i})}):s.length===0?e.jsx("div",{"data-slot":"activity-timeline",className:x(o),children:e.jsx(pe,{isFiltered:a,view:r})}):e.jsx("div",{ref:m,onKeyDown:u,"data-slot":"activity-timeline",className:x(o),children:d.map(h=>e.jsxs("section",{children:[e.jsx(ie,{label:h.label}),e.jsx(g.div,{variants:Ce,initial:"initial",animate:"animate",children:e.jsx(P,{children:e.jsx(_,{children:h.items.map(c=>e.jsx(oe,{item:c},c.id))})})})]},h.label))})}function W({onLoadMore:s,isFetching:n,hasNextPage:t,className:i}){return t?e.jsx(g.div,{"data-slot":"activity-load-more",initial:{opacity:0},animate:{opacity:1},transition:{duration:.2,delay:.1},className:x("flex justify-center py-4",i),children:e.jsxs(M,{variant:"outline",size:"sm",onClick:s,disabled:n,className:"gap-2",children:[n&&e.jsx(K,{size:"xs"}),"Load 50 more events"]})}):null}const T=7;function Te(){var t;const s=z(),{data:n}=U({queryKey:X.dailyCounts(T),queryFn:()=>s.getSessionDailyCounts(T),staleTime:6e4});return!n||n.dailyCounts.length===0?null:{dailyCounts:n.dailyCounts,degraded:(((t=n.warnings)==null?void 0:t.length)??0)>0}}function Ie(s,n){const t=s.reduce((a,r)=>a+r,0),i=t===1?"session":"sessions";return n?t===0?"This week’s count is incomplete":`Your agents started at least ${t} ${i} this week`:t===0?"Your agents started no chats this week":`Your agents started ${t} ${i} this week`}const I=10,Ee=4,E=30,F=1;function Fe({data:s,className:n}){const t=Math.max(...s,1);return e.jsx("svg",{viewBox:"0 0 100 30",className:x("text-muted-foreground",n),"aria-hidden":"true",children:s.map((i,a)=>{const r=i/t*E;return e.jsx("rect",{x:a*(I+Ee)+1,y:E-Math.max(r,F),width:I,height:Math.max(r,F),rx:2,fill:"currentColor",opacity:.6},a)})})}function Re(){const s=Te();return s===null?null:e.jsxs("div",{className:"flex items-center justify-between gap-4",children:[e.jsx("p",{className:"text-muted-foreground text-sm",children:Ie(s.dailyCounts,s.degraded)}),e.jsx(Fe,{data:s.dailyCounts,className:"h-6 w-24 shrink-0"})]})}function De(){const s=l.useId(),n=Q("dashboard.sections"),t=l.useMemo(()=>n.filter(a=>Z(a.id)&&(!a.visibleWhen||a.visibleWhen())),[n]),i=le("dashboard.sections");return t.length===0&&i.length===0?null:e.jsxs("section",{className:"space-y-3","aria-labelledby":s,children:[e.jsx("h2",{id:s,className:"text-muted-foreground text-xs font-medium tracking-widest uppercase",children:"From your extensions"}),e.jsx(ue,{slot:"dashboard.sections",onReview:()=>J()}),e.jsx("div",{className:"space-y-4",children:t.map(a=>e.jsx(a.component,{},a.id))})]})}function Me(){const{view:s,setView:n}=de();return e.jsxs(e.Fragment,{children:[e.jsx(ee,{children:"Activity"}),e.jsxs(te,{width:"wide",className:"space-y-4",children:[e.jsxs("div",{className:"flex min-w-0 items-center gap-3",children:[e.jsx(je,{view:s,onViewChange:n}),s==="activity"&&e.jsx(ye,{className:"min-w-0 flex-1"})]}),e.jsx(Re,{}),e.jsx(De,{}),s==="all"?e.jsx(_e,{}):e.jsx(Pe,{})]})]})}function Pe(){const{queryFilters:s,isFiltered:n}=A(),t=me(),{data:i,isLoading:a,isError:r,refetch:o,isFetchingNextPage:d,hasNextPage:m,fetchNextPage:u}=re(s),h=l.useMemo(()=>(i==null?void 0:i.pages.flatMap(c=>c.items))??[],[i]);return e.jsxs(e.Fragment,{children:[e.jsx(Ne,{lastVisitedAt:t,items:h}),e.jsx(H,{items:h,isLoading:a,isError:r,onRetry:()=>void o(),isFiltered:n}),e.jsx(W,{onLoadMore:()=>void u(),isFetching:d,hasNextPage:!!m})]})}function _e(){const{data:s,isLoading:n,isError:t,refetch:i,isFetchingNextPage:a,hasNextPage:r,fetchNextPage:o}=ae();return e.jsxs(e.Fragment,{children:[e.jsx(H,{items:s??[],isLoading:n,isError:t,onRetry:()=>void i(),isFiltered:!1,view:"all"}),e.jsx(W,{onLoadMore:()=>void o(),isFetching:a,hasNextPage:!!r})]})}const Ge=Me;export{Ge as component};
|
package/dist/client/assets/{_shell._home.index-BleaCq_y.js → _shell._home.index-CTBWy5Au.js}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{kH as be,kI as ye,j as t,i1 as $,i2 as F,i3 as L,i4 as q,i5 as z,_ as I,at as A,Q as Se,T as Ne,C as ke,V as we,kJ as B,B as b,kK as Re,kL as Ce,cs as W,e as C,G as y,s as H,r as m,J as Ie,kM as Ae,ah as Pe,ai as De,ee as Oe,aW as Me,X as oe,kN as Te,kO as Ee,aO as $e,e3 as ie,iX as Fe,bw as V,ap as R,U as Le,kP as qe,ja as ze,kQ as Be,ez as We,eA as He,j8 as _e,jf as Ue,kR as Ke,kS as Ve,et as ae,ev as Ge,kT as Qe,da as re,ab as Ye,ew as Xe,j9 as Je,l as le,kU as de,kV as ce,gv as Ze,kW as _,eu as et,bd as tt,aZ as st,hh as nt,hI as ot,kX as it,aL as at,gx as ue,g as rt,gw as me,kY as G,ag as Q,cg as lt,kZ as dt,k_ as ct,k$ as ut,a1 as mt,l0 as ht,co as gt,bY as ft,jx as pt,aN as xt,im as jt,eS as M,kl as vt,q as Y,e1 as bt,gA as yt,l1 as St,n as Nt}from"./index-fge85Gub.js";import{I as kt,p as wt}from"./ChannelComposer-YXkkFcyY.js";import{b as Rt}from"./registry-5Qudcjd5.js";import{R as Ct}from"./RoomSurface-Bz1DfoQD.js";import{P as he}from"./PromptSuggestionChips-B5afjbD0.js";import{S as U}from"./scroll-area-MdXbnM77.js";import{d as It}from"./dead-letter-reasons-DtBHju9v.js";import{u as At}from"./use-mesh-topology-Bw7MmKA9.js";import{A as Pt}from"./AttentionSignalRow-BoTonsR5.js";import{u as ge}from"./use-promo-dismissals-DeNbRWOh.js";import{u as Dt,s as Ot,P as Mt,a as Tt}from"./use-promo-activation-CxG-kZJQ.js";import"./WidgetErrorCard-Bte2obmw.js";import"./index-DI9IsN-O.js";import"./card-CM7-_8nD.js";import"./progress-es667_cM.js";import"./markdown-content-DV3AiG76.js";import"./table-BcJvj9rx.js";import"./package-BafFSryH.js";import"./heart--8btr31M.js";import"./git-branch-uZFa3Tmr.js";import"./file-text-DLPhIP0f.js";import"./file-DiYwTQdD.js";import"./repeat-HOHWZc6L.js";import"./use-room-sessions-CrFskgCJ.js";import"./find-latest-widget-fence-BYtG5PzD.js";import"./format-duration-BCr6uzby.js";import"./RuntimeSetupDialog-CEUC7GrY.js";import"./inline-code-7dwi7wWG.js";import"./list-runtime-types-hMouIGtG.js";import"./RuntimeConnectFlow-B0TIITVq.js";import"./useMutationState-TJGtJT5R.js";import"./runtime-connect-Dn0T5YWv.js";import"./mention-pill-Db0XBC6Z.js";import"./rotate-ccw-clock-Dniulnw5.js";import"./unplug-CK2bPGpg.js";import"./message-square-off-w0__0O5g.js";import"./registry-DvKu39S1.js";import"./file-drag-GDx2qhdk.js";import"./paperclip-DY4e-IlK.js";import"./index-CvIKejlx.js";import"./use-transform-YUDqOhoc.js";import"./pane-resize-handle-Bar-FdkY.js";import"./UnreadDivider-DPD9MQ8-.js";import"./use-room-follow-claim-_B7HonZx.js";import"./use-connector-management-CXVz2xe3.js";import"./AgentRequestCard-RFQOrk-W.js";import"./access-copy-Y2_F9uAx.js";import"./query-error-state-BNPduDBN.js";import"./empty-state-BzWMBBQZ.js";import"./use-bindings-h_mG9d64.js";import"./connection-copy--MA7AN04.js";import"./KeyEntry-CHJpgP6H.js";import"./use-update-config-BH0agtZh.js";function Et({open:e,itemId:n,onClose:o}){const{data:s}=be(),i=ye(),a=(n==null?void 0:n.indexOf("::"))??-1,r=a>=0?n.slice(0,a):void 0,l=a>=0?n.slice(a+2):void 0,d=s==null?void 0:s.find(h=>h.source===r&&h.reason===l),c=()=>{!r||!l||i.mutate({source:r,reason:l},{onSuccess:o})};return t.jsx($,{open:e,onOpenChange:h=>!h&&o(),children:t.jsxs(F,{side:"right",children:[t.jsxs(L,{children:[t.jsx(q,{children:"Messages that never arrived"}),t.jsx(z,{children:r??"Source unknown"})]}),t.jsx(U,{className:"flex-1 px-4",children:d?t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{className:"space-y-2",children:[t.jsx("p",{className:"text-muted-foreground text-sm",children:"These never reached an agent. Clearing them doesn’t send them."}),t.jsxs("p",{className:"text-foreground text-sm",children:[d.count," message",d.count===1?"":"s"," couldn’t be delivered"]}),t.jsx(I,{variant:"secondary",children:It(d.reason)})]}),t.jsxs("div",{className:"space-y-1 text-sm",children:[t.jsxs("p",{className:"text-muted-foreground",children:["First happened ",A(d.firstSeen)," ago"]}),t.jsxs("p",{className:"text-muted-foreground",children:["Last happened ",A(d.lastSeen)," ago"]})]}),d.sample!=null&&t.jsxs(Se,{children:[t.jsxs(Ne,{className:"text-muted-foreground hover:text-foreground group flex items-center gap-1 text-xs font-medium transition-colors",children:[t.jsx(ke,{className:"size-3 transition-transform group-data-[state=open]:rotate-90"}),"What one of them looked like"]}),t.jsx(we,{children:t.jsx("pre",{className:"bg-muted mt-1 overflow-x-auto rounded-md p-3 font-mono text-xs",children:JSON.stringify(d.sample,null,2)})})]})]}):t.jsx("p",{className:"text-muted-foreground py-8 text-center text-sm",children:"These are cleared already."})}),t.jsxs(B,{children:[d&&t.jsx(b,{variant:"destructive",onClick:c,disabled:i.isPending,children:i.isPending?"Clearing…":"Clear these"}),t.jsx(b,{variant:"outline",onClick:o,children:"Close"})]})]})})}function $t(e){const n=Math.floor(e/1e3);if(n<60)return`${n}s`;const o=Math.floor(n/60),s=n%60;if(o<60)return`${o}m ${s}s`;const i=Math.floor(o/60),a=o%60;return`${i}h ${a}m`}function Ft(e){switch(e){case"needs_attention":return{label:"Needs attention",badge:"destructive",tone:"error",heading:"What it needed",title:"Run that was refused a tool"};case"failed":return{label:"Didn’t finish",badge:"destructive",tone:"error",heading:"Error",title:"Run that didn’t finish"};case"cancelled":return{label:"Cancelled",badge:"secondary",tone:"neutral",heading:"Stopped",title:"Run that was stopped"};case"skipped":return{label:"Skipped",badge:"secondary",tone:"neutral",heading:"Why",title:"Run that never started"};case"running":return{label:"Running",badge:"secondary",tone:"neutral",heading:"Latest",title:"Run that is still going"};default:return{label:"Completed",badge:"secondary",tone:"neutral",heading:"Note",title:"Run that finished"}}}const Lt={error:{box:"bg-destructive/10 border-destructive/20",heading:"text-destructive",body:"text-destructive"},neutral:{box:"bg-muted border-border",heading:"text-foreground",body:"text-foreground/80"}};function qt({open:e,itemId:n,onClose:o}){const{data:s,isLoading:i,isError:a}=Re(e?n??null:null),r=Ce(),l=W(),d=()=>{s!=null&&s.sessionId&&l(H({session:s.sessionId}))},c=()=>{s&&r.mutate(s.id)},h=s?Ft(s.status):null,g=h?Lt[h.tone]:null;return t.jsx($,{open:e,onOpenChange:f=>!f&&o(),children:t.jsxs(F,{side:"right",children:[t.jsxs(L,{children:[t.jsx(q,{children:(h==null?void 0:h.title)??"Run that needs a look"}),t.jsx(z,{children:n?n.slice(0,8):"Unknown"})]}),t.jsxs(U,{className:"flex-1 px-4",children:[i&&t.jsxs("div",{className:"space-y-4",children:[t.jsx(C,{className:"h-6 w-24"}),t.jsx(C,{className:"h-4 w-48"}),t.jsx(C,{className:"h-20 w-full"})]}),a&&t.jsx("p",{className:"text-destructive py-8 text-center text-sm",children:"Couldn’t load this run."}),!i&&!a&&!s&&t.jsx("p",{className:"text-muted-foreground py-8 text-center text-sm",children:"Already resolved."}),s&&t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{className:"flex gap-2",children:[t.jsx(I,{variant:h.badge,children:h.label}),t.jsx(I,{variant:"secondary",children:s.trigger==="scheduled"?"Scheduled":"Manual"})]}),t.jsxs("div",{className:"space-y-1 text-sm",children:[s.startedAt&&t.jsxs("p",{className:"text-muted-foreground",children:["Started: ",A(s.startedAt)," ago"]}),s.finishedAt&&t.jsxs("p",{className:"text-muted-foreground",children:["Finished: ",A(s.finishedAt)," ago"]}),s.durationMs!=null&&t.jsxs("p",{className:"text-muted-foreground",children:["Duration: ",$t(s.durationMs)]})]}),s.error&&t.jsxs("div",{className:y("rounded-md border p-3",g.box),children:[t.jsx("p",{className:y("text-sm font-medium",g.heading),children:h.heading}),t.jsx("p",{className:y("mt-1 text-sm",g.body),children:s.error})]}),s.outputSummary&&t.jsxs("div",{className:"space-y-1",children:[t.jsx("p",{className:"text-muted-foreground text-xs font-medium",children:"Output"}),t.jsx("pre",{className:"bg-muted max-h-48 overflow-auto rounded-md p-3 font-mono text-xs",children:s.outputSummary})]})]})]}),t.jsxs(B,{children:[(s==null?void 0:s.sessionId)&&t.jsx(b,{variant:"default",onClick:d,children:"View chat"}),(s==null?void 0:s.status)==="running"&&t.jsx(b,{variant:"destructive",onClick:c,disabled:r.isPending,children:r.isPending?"Cancelling…":"Cancel run"}),t.jsx(b,{variant:"outline",onClick:o,children:"Close"})]})]})})}function zt({agent:e}){const n=Ae(e,e.projectPath??"");return t.jsxs("div",{className:"flex items-center gap-3 py-2",children:[t.jsx(Pe,{color:n.color,emoji:n.emoji,size:"sm",className:"shrink-0"}),t.jsxs("div",{className:"min-w-0 flex-1",children:[t.jsx("p",{className:"text-foreground truncate text-sm font-medium",children:De(e)}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(I,{variant:"destructive",children:"Unreachable"}),e.runtime&&t.jsx(I,{variant:"secondary",children:Oe(e.runtime).label})]})]}),e.lastSeenAt&&t.jsxs("span",{className:"text-muted-foreground shrink-0 text-xs",children:[A(e.lastSeenAt)," ago"]})]})}function Bt({open:e,onClose:n}){const{data:o}=At(void 0,e),s=m.useMemo(()=>o?o.namespaces.flatMap(i=>i.agents).filter(i=>i.healthStatus==="unreachable"):[],[o]);return t.jsx($,{open:e,onOpenChange:i=>!i&&n(),children:t.jsxs(F,{side:"right",children:[t.jsxs(L,{children:[t.jsx(q,{children:"Agents that aren’t answering"}),t.jsxs(z,{children:["DorkOS can’t reach ",s.length," agent",s.length===1?"":"s"," right now"]})]}),t.jsx(U,{className:"flex-1 px-4",children:s.length>0?t.jsx("div",{className:"divide-y",children:s.map(i=>t.jsx(zt,{agent:i},i.id))}):t.jsxs("div",{className:"flex flex-col items-center gap-2 py-8",children:[t.jsx(Ie,{className:"text-status-success size-6"}),t.jsx("p",{className:"text-muted-foreground text-sm",children:"All agents are online"})]})}),t.jsx(B,{children:t.jsx(b,{variant:"outline",onClick:n,children:"Close"})})]})})}function Wt(e){return e.content.suggestion!==void 0}function Ht(){const e=Dt(),{dismissedIds:n}=ge(),o=Me(s=>s.promoEnabled);return m.useMemo(()=>{if(!o)return null;const[s]=Ot(Mt.filter(Wt),e,n,1);return s??null},[e,n,o])}function _t({suggestion:e,promoTitle:n,onAccept:o,onDismiss:s}){return t.jsxs("p",{"data-slot":"quiet-suggestion",className:"text-muted-foreground/70 text-2xs mt-1",children:[e.question," ",t.jsx("button",{type:"button",onClick:o,className:"text-muted-foreground hover:text-foreground focus-ring rounded-sm font-medium underline-offset-4 transition-colors hover:underline focus-visible:underline",children:e.action}),t.jsx("button",{type:"button","aria-label":`Dismiss suggestion: ${n}`,onClick:s,className:"text-muted-foreground/60 hover:text-foreground focus-ring -my-1.5 ml-0.5 inline-flex translate-y-[3px] items-center justify-center rounded-sm p-1.5 align-baseline transition-colors",children:t.jsx(oe,{className:"size-3"})})]})}function Ut({promo:e}){const{dismissPromo:n}=ge(),{activate:o,dialog:s}=Tt(e);return t.jsxs(t.Fragment,{children:[t.jsx(_t,{suggestion:e.content.suggestion,promoTitle:e.content.title,onAccept:o,onDismiss:()=>n(e.id)}),s]})}function Kt(){const e=Ht();return e===null?null:t.jsx(Ut,{promo:e},e.id)}const Vt=["report.daily"];function fe(){const{notifications:e}=Te({kinds:Vt,unread:!0});return m.useMemo(()=>e[0],[e])}function Gt({questions:e,requests:n,schedules:o,approvalsUnavailable:s,attention:i}){const a=[],r=[],l=e+n+o;return l>0?(a.push(`${Ee(e,n,o)} ${l===1?"is":"are"} waiting on you.`),r.push(`${l} waiting`)):s&&(a.push("Couldn’t read approvals."),r.push("Couldn’t read approvals")),i===1?(a.push("1 thing needs attention."),r.push("1 needs attention")):i>1&&(a.push(`${i} things need attention.`),r.push(`${i} need attention`)),{spoken:a.join(" "),compact:r.join(" · ")}}function Qt({notification:e,onDismiss:n}){return t.jsxs("div",{"data-slot":"shift-report-card",className:"border-border/60 bg-background/60 relative rounded-lg border p-3 pr-8",children:[t.jsxs("div",{className:"flex items-start gap-2.5",children:[t.jsx($e,{"aria-hidden":!0,className:"text-muted-foreground mt-0.5 size-3.5 shrink-0"}),t.jsxs("div",{className:"min-w-0 flex-1",children:[t.jsx("p",{className:"text-foreground text-xs font-medium",children:e.title}),e.body!==void 0&&t.jsx("p",{className:"text-muted-foreground mt-1 text-xs leading-relaxed",children:e.body})]})]}),t.jsx("button",{type:"button",onClick:n,"aria-label":"Dismiss",className:"text-muted-foreground hover:text-foreground focus-ring absolute top-2 right-2 rounded-md p-1 transition-colors",children:t.jsx(oe,{className:"size-3.5"})})]})}const Yt="max-h-[40svh] sm:max-h-[50svh]",Xt={initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0}};function T({title:e,tone:n="waiting",children:o}){const s=m.useId();return t.jsxs("section",{"aria-labelledby":s,className:"min-w-0",children:[t.jsx("h2",{id:s,className:y("mb-2 text-xs font-medium",n==="waiting"?"text-status-warning-fg":"text-muted-foreground"),children:e}),o]})}function X({edge:e}){return t.jsx("div",{"aria-hidden":"true","data-slot":`pinned-triage-fade-${e}`,className:y("from-background/95 via-background/65 pointer-events-none absolute inset-x-0 h-6 to-transparent",e==="bottom"?"bottom-0 bg-gradient-to-t":"top-0 bg-gradient-to-b")})}const J={animate:{transition:{staggerChildren:.04}}};function Jt(e){return e?0:.18}function Zt({approvals:e,asks:n,settlingAsks:o,askAgentNames:s,onOpenSession:i,approvalsUnavailable:a,onRetryApprovals:r,scheduleApprovals:l,errorSignals:d,activityItems:c,onOpenActivity:h,shiftReport:g,presence:f,condensed:j,onExpand:x,className:u}){const p=ie(),v=m.useRef(null),N=Fe(v),k=e.length>0||n.length>0||o.length>0||l.length>0||a,P=d.length>0,w=c.length>0,je=k||P||w||g!==void 0||(f==null?void 0:f.occupied)===!0,O=Gt({questions:n.length,requests:e.length,schedules:l.length,approvalsUnavailable:a,attention:d.length+c.length}),ve=j===!0&&O.compact!=="";return t.jsxs(t.Fragment,{children:[t.jsx("div",{role:"status","aria-live":"polite","aria-atomic":"true",className:"sr-only",children:O.spoken}),t.jsxs(V,{initial:!1,children:[ve&&t.jsx(R.div,{"data-slot":"pinned-triage-summary",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:Jt(p===!0)},className:y("bg-background/95 border-border/60 shrink-0 border-b backdrop-blur-sm",u),children:t.jsxs("button",{type:"button",onClick:x,className:"text-muted-foreground hover:text-foreground flex min-h-11 w-full min-w-0 items-center gap-2 px-[var(--msg-padding-x)] text-left text-xs",children:[t.jsx("span",{className:"bg-status-warning-dot size-1.5 shrink-0 rounded-full","aria-hidden":!0}),t.jsx("span",{className:"min-w-0 flex-1 truncate",children:O.compact}),t.jsx(Le,{className:"size-3.5 shrink-0","aria-hidden":!0})]})},"triage-summary"),je&&j!==!0&&t.jsxs(R.div,{"data-slot":"pinned-triage-header",...Xt,transition:{duration:p?0:.25,ease:[0,0,.2,1]},className:y("bg-background/95 border-border/60 relative shrink-0 overflow-hidden border-b backdrop-blur-sm",u),children:[t.jsxs("div",{ref:v,onScroll:N.onScroll,"data-slot":"pinned-triage-scroller",className:y("flex w-full min-w-0 scroll-py-6 flex-col gap-3 overflow-y-auto overscroll-contain px-[var(--msg-padding-x)] py-3",Yt),children:[k&&t.jsxs(T,{title:"Waiting on you",children:[(n.length>0||o.length>0)&&t.jsx(qe,{asks:n,agentNames:s,onOpenSession:i,emptyState:t.jsx("p",{className:"text-muted-foreground text-xs",children:"Nothing needs you"})}),e.length>0&&t.jsx(ze,{approvals:e}),e.length===0&&a&&t.jsx(Be,{onRetry:r}),t.jsx(V,{initial:!1,children:l.map(S=>t.jsx(We,{task:S,className:"mt-2"},S.id))})]}),P&&t.jsx(T,{title:"Needs attention",children:t.jsx("div",{className:"border-status-warning-border/40 bg-background/60 rounded-lg border p-2",children:t.jsx(R.div,{variants:J,initial:"initial",animate:"animate",children:d.map(S=>t.jsx(Pt,{signal:S},S.id))})})}),g&&t.jsx(Qt,{notification:g.notification,onDismiss:g.onDismiss}),w&&t.jsx(T,{title:"Recent activity",tone:"neutral",children:t.jsx("div",{className:"border-border/60 bg-background/60 rounded-lg border p-2",children:t.jsx(R.div,{variants:J,initial:"initial",animate:"animate",children:c.map(S=>t.jsx(He,{notification:S,onOpen:()=>h(S)},S.id))})})}),f==null?void 0:f.node]}),N.start&&t.jsx(X,{edge:"top"}),N.end&&t.jsx(X,{edge:"bottom"})]},"triage-header")]})]})}function es({presence:e,composerFocused:n,onExpand:o,className:s}){const{approvals:i,isError:a,retry:r}=_e(),{interactions:l}=Ue(),d=Ke(),c=Ve(l),{schedules:h,errors:g,activity:f}=ae(),j=Ge(),x=fe(),{mutate:u}=Qe(),p=re({strict:!1}),v=W(),N=Ye(),k=Xe(h),P=Je(i),w=m.useCallback(()=>{v({...le.home(),search:{}})},[v]);return t.jsxs(t.Fragment,{children:[t.jsx(Zt,{approvals:P,asks:l,settlingAsks:d,askAgentNames:c,onOpenSession:K=>{v(H({session:K}))},approvalsUnavailable:a&&i.length===0,onRetryApprovals:r,scheduleApprovals:k,errorSignals:g,activityItems:f,onOpenActivity:j,shiftReport:x===void 0?void 0:{notification:x,onDismiss:()=>u(x.id)},presence:e,condensed:N&&n===!0,onExpand:o,className:s}),t.jsx(Et,{open:p.detail==="dead-letter",itemId:p.itemId,onClose:w}),t.jsx(qt,{open:p.detail==="failed-run",itemId:p.itemId,onClose:w}),t.jsx(Bt,{open:p.detail==="offline-agent",onClose:w})]})}const ts=["What can you help with?","Make my first agent","What’s in this project?","Set up a daily run"];function ss({roomId:e}){const n=m.useCallback(o=>{de.getState().set(e,o),ce.getState().requestFocus(e)},[e]);return t.jsx("div",{className:"w-full px-[var(--msg-padding-x)] pb-1",children:t.jsx(he,{suggestions:ts,onChipClick:n,ariaLabel:"Ways to start",size:"comfortable"})})}function ns(e){var a;const{data:n}=Ze(e),o=((a=n==null?void 0:n.members.find(r=>r.author.id===n.viewerAuthorId))==null?void 0:a.lastReadSeq)??null,[s,i]=m.useState({roomId:null,seq:null});return s.roomId===e?s.seq:o===null?null:(i({roomId:e,seq:o}),o)}function os(e,n){if(e===void 0)return null;let o=null,s=1/0;for(const i of e){if(!i.enabled||i.status!=="active")continue;const a=i.nextRun;if(a==null)continue;const r=Date.parse(a);Number.isNaN(r)||r<=n||r>=s||(s=r,o={name:i.displayName??i.name,at:a})}return o}function is(e,n){const o=new Date(e),s=o.toLocaleTimeString(void 0,{hour:"numeric",minute:"2-digit"}),i=as(new Date(n),o);return i===0?`today at ${s}`:i===1?`tomorrow at ${s}`:`on ${o.toLocaleDateString(void 0,{weekday:"long",month:"short",day:"numeric"})} at ${s}`}function as(e,n){const o=s=>new Date(s.getFullYear(),s.getMonth(),s.getDate()).getTime();return Math.round((o(n)-o(e))/864e5)}function rs(e,n){return e===null?null:`Next up: ${e.name} runs ${is(e.at,n)}.`}function ls({forwardLook:e,suggestion:n}){return t.jsx(R.div,{"data-slot":"home-quiet-state",initial:{opacity:0},animate:{opacity:1},transition:{duration:.2},className:"border-border/60 shrink-0 border-b",children:t.jsxs("div",{className:"w-full px-[var(--msg-padding-x)] py-2",children:[t.jsxs("p",{className:"text-muted-foreground text-xs",children:[t.jsx("span",{className:"text-foreground/80 font-medium",children:"All quiet."}),e!==null&&t.jsxs(t.Fragment,{children:[" ",e]})]}),n]})})}function ds({roomId:e,presenceOccupied:n}){const o=_(e),s=ns(e),{items:i,isLoading:a,isAnyError:r}=et(),{total:l}=ae(),d=fe(),c=o!==void 0&&o.length>0,h=s!==null&&o!==void 0&&o.every(k=>k.seq<=s),g=i.length>0||a||r||l>0||d!==void 0||n,f=c&&h&&!g,[j,x]=m.useState("waiting");f&&j==="waiting"?x("shown"):!f&&j==="shown"&&x("retired");const u=f&&j!=="retired",p=tt(),{data:v}=st(p&&u),N=nt();return u?t.jsx(ls,{forwardLook:rs(os(v,N),N),suggestion:t.jsx(Kt,{})}):null}const pe="dorkos:home-opened-on";function Z(){const e=new Date,n=String(e.getMonth()+1).padStart(2,"0"),o=String(e.getDate()).padStart(2,"0");return`${e.getFullYear()}-${n}-${o}`}function cs(){try{return localStorage.getItem(pe)}catch{return null}}function us(e){try{localStorage.setItem(pe,e)}catch{}}function ms(){const[e]=m.useState(()=>cs()!==Z());return m.useEffect(()=>{e&&us(Z())},[e]),e}function hs({children:e}){const n=ms(),o=ie(),s=n&&o!==!0;return t.jsx(R.div,{className:"h-full",initial:s?{opacity:0}:!1,animate:{opacity:1},transition:{duration:.45,ease:[0,0,.2,1]},children:e})}const ee="@dorkbot",gs="Build me a tracker for my customers",fs="Make a daily plan board",xe="Something else",ps=[gs,fs,xe];function xs({roomId:e,mode:n}){const o=Rt(),s=ot(),i=m.useCallback(a=>{if(a===xe){de.getState().set(e,`${ee} `),ce.getState().requestFocus(e);return}o.mutate({roomId:e,text:`${ee} ${a}`,clientId:it()})},[e,o]);return n==="starters"?t.jsx("div",{className:"w-full px-[var(--msg-padding-x)] pb-1","data-testid":"first-run-chips",children:t.jsx(he,{suggestions:ps,onChipClick:i,ariaLabel:"First jobs for DorkBot",size:"comfortable"})}):t.jsxs("div",{className:"flex w-full flex-wrap gap-2 px-[var(--msg-padding-x)] pb-1","data-testid":"first-run-connect-chips",children:[t.jsx(b,{size:"sm",onClick:()=>s.open("account"),children:"Continue with DorkOS"}),t.jsx(b,{size:"sm",variant:"outline",onClick:()=>s.open("runtimes"),children:"Use my own AI"})]})}function js(e){var r,l;const{data:n}=at(),o=_(e),s=ue(e,null),i=((r=n==null?void 0:n.onboarding)==null?void 0:r.welcomeEntryId)??null;if(e===null||i===null||!o||s.length>0)return null;const a=o.reduce((d,c)=>d===void 0||c.seq>d.seq?c:d,void 0);return(a==null?void 0:a.id)!==i?null:((l=n==null?void 0:n.onboarding)==null?void 0:l.firstRunPath)==="none"?"connect":"starters"}const vs=5,bs="relative after:absolute after:-inset-x-1 after:-inset-y-2.5 md:after:hidden";function ys(e,n){return e===null||n===null?null:Math.max(0,n-Date.parse(e))}function Ss({row:e,onFollow:n,onViewProfile:o}){const[s,i]=m.useState(null),a=ys(e.since,s),r=e.profileMemberId,l=o===void 0||r===null?void 0:()=>o(r);return t.jsx(kt,{onViewProfile:l,identity:{kind:e.face.kind,displayName:e.name,...e.handle!==null?{handle:e.handle}:{},color:e.face.color,...e.face.emoji!==void 0?{emoji:e.face.emoji}:{},...e.face.imageUrl!==void 0?{imageUrl:e.face.imageUrl}:{},...e.face.origin!==void 0?{origin:e.face.origin}:{},...e.face.kind==="agent"?{agent:{...e.runtime!==null?{runtime:e.runtime}:{},...a!==null?{working:{...e.roomTitle!==null?{room:e.roomTitle}:{},forMs:a}}:{}}}:{}},children:t.jsxs("button",{type:"button","aria-label":e.detail===null?`Watch ${e.name}`:`Watch ${e.name}: ${e.detail}`,onClick:()=>n(e.follow),onPointerEnter:()=>i(Date.now()),onPointerLeave:()=>i(null),onFocus:()=>i(Date.now()),onBlur:()=>i(null),className:y("focus-ring group/identity hover:bg-muted/60 flex min-w-0 items-center gap-1.5 rounded-full py-1 pr-2.5 pl-1 text-xs transition-colors",bs),children:[t.jsx(rt,{size:"xs",kind:e.face.kind,color:e.face.color,...e.face.emoji!==void 0?{emoji:e.face.emoji}:{},...e.face.imageUrl!==void 0?{imageUrl:e.face.imageUrl}:{},...e.face.origin!==void 0?{origin:e.face.origin}:{},fallback:e.face.fallback,status:"working"}),t.jsx("span",{className:"text-foreground shrink-0 font-medium",children:e.name}),e.detail!==null&&t.jsxs("span",{"aria-hidden":!0,className:"text-muted-foreground truncate",children:["· ",e.detail]})]})})}function Ns({rows:e,onFollow:n,onViewProfile:o,className:s}){if(e.length===0)return null;const i=e.slice(0,vs),a=e.length-i.length;return t.jsxs("ul",{"data-testid":"presence-strip","aria-label":"Working right now",className:y("flex items-center gap-x-2 overflow-hidden",s),children:[i.map(r=>t.jsx("li",{className:"min-w-0",children:t.jsx(Ss,{row:r,onFollow:n,onViewProfile:o})},r.id)),a>0&&t.jsx("li",{"aria-label":a===1?"1 more agent is working":`${a} more agents are working`,className:"text-muted-foreground shrink-0 text-xs",children:t.jsxs("span",{"aria-hidden":!0,children:["+",a," more"]})})]})}function ks(e){return`replying in ${e}`}const ws="working in a chat";function Rs(e,n){var i;const o=n.rosters[e];if(o!==void 0)return o.members.map(a=>({author:a.author,origin:a.origin}));const s=(i=n.rooms[e])==null?void 0:i.participants;return s==null?[]:s.map(a=>({author:a}))}function Cs(e){const n=new Map;for(const[o,s]of Object.entries(e))s!==null&&n.set(lt(o),{path:o,manifest:s});return n}function te(e){return{...e,line:ct(e.name,e.binding,e.state),detail:dt(e.binding,e.state)}}function Is(e){const n=Cs(e.agents),o=new Set(e.excludeRoomIds??[]),s=[],i=new Set;for(const l of e.claims){const d=Rs(l.roomId,e).find(f=>f.author.id===l.authorId);if(d===void 0)continue;const c=d.author.agentRef===void 0?void 0:n.get(d.author.agentRef);if(c!==void 0&&i.add(c.path),o.has(l.roomId))continue;const h=e.rooms[l.roomId],g=h===void 0?null:me(h);s.push(te({id:`room:${l.roomId}:${l.authorId}`,name:d.author.displayName,handle:d.author.handle,face:G({record:d.author,override:c===void 0?null:Q(c.manifest),...d.origin!==void 0?{origin:d.origin}:{}}),binding:g===null?null:ks(g),state:l.state,since:l.since,roomTitle:g,runtime:(c==null?void 0:c.manifest.runtime)??null,profileMemberId:c===void 0?null:e.meshIdByPath[c.path]??null,follow:{kind:"room",roomId:l.roomId}}))}const a=new Set(i),r=[];for(const l of e.sessions){if(a.has(l.cwd))continue;const d=e.agents[l.cwd];if(d==null)continue;a.add(l.cwd);const c=d.displayName??d.name;r.push(te({id:`session:${l.sessionId}`,name:c,handle:null,face:G({record:{id:d.id,kind:"agent",displayName:c},override:Q(d)}),binding:ws,state:"working",since:null,roomTitle:null,runtime:d.runtime,profileMemberId:e.meshIdByPath[l.cwd]??null,follow:{kind:"session",sessionId:l.sessionId,cwd:l.cwd}}))}return r.sort((l,d)=>l.name.localeCompare(d.name)||l.id.localeCompare(d.id)),[...s,...r]}function As(e,n,o){var a;const s=new Set(ut(Object.keys(n),Object.values(o))),i=[];for(const[r,l]of Object.entries(n))((a=e[r])==null?void 0:a.lifecycle)==="streaming"&&s.has(r)&&i.push({sessionId:r,cwd:l});return i}const se=[],Ps=[],ne="\0",D="";function Ds(){const e=M(m.useCallback(i=>i.statuses,[])),n=M(m.useCallback(i=>i.statusCwds,[])),o=M(m.useCallback(i=>i.sessions,[])),s=m.useMemo(()=>As(e,n,o).map(i=>`${i.sessionId}${ne}${i.cwd}`).sort().join(D),[e,n,o]);return m.useMemo(()=>s.length===0?Ps:s.split(D).map(i=>{const[a,r]=i.split(ne);return{sessionId:a,cwd:r}}),[s])}function Os(e=[]){const n=mt(),o=ht(),s=Ds(),{data:i}=gt(),{data:a}=ft(),r=m.useMemo(()=>[...new Set(o.map(u=>u.roomId))].sort().join(`
|
|
1
|
+
import{kH as be,kI as ye,j as t,i1 as $,i2 as F,i3 as L,i4 as q,i5 as z,_ as I,at as A,Q as Se,T as Ne,C as ke,V as we,kJ as B,B as b,kK as Re,kL as Ce,cs as W,e as C,G as y,s as H,r as m,J as Ie,kM as Ae,ah as Pe,ai as De,ee as Oe,aW as Me,X as oe,kN as Te,kO as Ee,aO as $e,e3 as ie,iX as Fe,bw as V,ap as R,U as Le,kP as qe,ja as ze,kQ as Be,ez as We,eA as He,j8 as _e,jf as Ue,kR as Ke,kS as Ve,et as ae,ev as Ge,kT as Qe,da as re,ab as Ye,ew as Xe,j9 as Je,l as le,kU as de,kV as ce,gv as Ze,kW as _,eu as et,bd as tt,aZ as st,hh as nt,hI as ot,kX as it,aL as at,gx as ue,g as rt,gw as me,kY as G,ag as Q,cg as lt,kZ as dt,k_ as ct,k$ as ut,a1 as mt,l0 as ht,co as gt,bY as ft,jx as pt,aN as xt,im as jt,eS as M,kl as vt,q as Y,e1 as bt,gA as yt,l1 as St,n as Nt}from"./index-B48IJBNm.js";import{I as kt,p as wt}from"./ChannelComposer-BHxXoQwT.js";import{b as Rt}from"./registry-BxY1lah6.js";import{R as Ct}from"./RoomSurface-Mt3dk4_6.js";import{P as he}from"./PromptSuggestionChips-BopMvYe7.js";import{S as U}from"./scroll-area-D6gNpFjK.js";import{d as It}from"./dead-letter-reasons-DtBHju9v.js";import{u as At}from"./use-mesh-topology-DNXD7seM.js";import{A as Pt}from"./AttentionSignalRow-Cx9-sStN.js";import{u as ge}from"./use-promo-dismissals-DQi8tey8.js";import{u as Dt,s as Ot,P as Mt,a as Tt}from"./use-promo-activation-DesLEeyi.js";import"./WidgetErrorCard-BZkAK-Ke.js";import"./index-Hf3kLtiJ.js";import"./card-D9DO5nt4.js";import"./progress-AKcr8opu.js";import"./markdown-content-BA0KEJH_.js";import"./table-D6BUawIb.js";import"./package-CxZe6vve.js";import"./heart-CRoafWCm.js";import"./git-branch-DlUQMA-U.js";import"./file-text-DXPPkxAL.js";import"./file-CKSjJRX5.js";import"./repeat-zL9y24zY.js";import"./use-room-sessions-C6wsszcG.js";import"./find-latest-widget-fence-BsDq4SYp.js";import"./format-duration-BCr6uzby.js";import"./RuntimeSetupDialog-NKy3mLEH.js";import"./inline-code-BCFlKPIb.js";import"./list-runtime-types-B1J9AtqH.js";import"./RuntimeConnectFlow-hhvWVRMu.js";import"./useMutationState-BX-ggHVY.js";import"./runtime-connect-Dn0T5YWv.js";import"./mention-pill-0aHe3D1A.js";import"./rotate-ccw-clock-BUhy2_cF.js";import"./unplug-BVIT6OSL.js";import"./message-square-off-DvVenheW.js";import"./registry-CWK5lzYs.js";import"./file-drag-GDx2qhdk.js";import"./paperclip-D3-8ygf1.js";import"./index-ByyXrDny.js";import"./use-transform-CNLqlc2h.js";import"./pane-resize-handle-ojhYGmDs.js";import"./UnreadDivider-C52_nmrB.js";import"./use-room-follow-claim-C4UikQzz.js";import"./use-connector-management-DDlpD6tk.js";import"./AgentRequestCard-BTyuNOhU.js";import"./access-copy-CP0B1ZT9.js";import"./query-error-state-CRmZMMkL.js";import"./empty-state-2mQX7azC.js";import"./use-bindings-DdWRXvtd.js";import"./connection-copy--MA7AN04.js";import"./KeyEntry-BerpQFQT.js";import"./use-update-config-B2rsDnxk.js";function Et({open:e,itemId:n,onClose:o}){const{data:s}=be(),i=ye(),a=(n==null?void 0:n.indexOf("::"))??-1,r=a>=0?n.slice(0,a):void 0,l=a>=0?n.slice(a+2):void 0,d=s==null?void 0:s.find(h=>h.source===r&&h.reason===l),c=()=>{!r||!l||i.mutate({source:r,reason:l},{onSuccess:o})};return t.jsx($,{open:e,onOpenChange:h=>!h&&o(),children:t.jsxs(F,{side:"right",children:[t.jsxs(L,{children:[t.jsx(q,{children:"Messages that never arrived"}),t.jsx(z,{children:r??"Source unknown"})]}),t.jsx(U,{className:"flex-1 px-4",children:d?t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{className:"space-y-2",children:[t.jsx("p",{className:"text-muted-foreground text-sm",children:"These never reached an agent. Clearing them doesn’t send them."}),t.jsxs("p",{className:"text-foreground text-sm",children:[d.count," message",d.count===1?"":"s"," couldn’t be delivered"]}),t.jsx(I,{variant:"secondary",children:It(d.reason)})]}),t.jsxs("div",{className:"space-y-1 text-sm",children:[t.jsxs("p",{className:"text-muted-foreground",children:["First happened ",A(d.firstSeen)," ago"]}),t.jsxs("p",{className:"text-muted-foreground",children:["Last happened ",A(d.lastSeen)," ago"]})]}),d.sample!=null&&t.jsxs(Se,{children:[t.jsxs(Ne,{className:"text-muted-foreground hover:text-foreground group flex items-center gap-1 text-xs font-medium transition-colors",children:[t.jsx(ke,{className:"size-3 transition-transform group-data-[state=open]:rotate-90"}),"What one of them looked like"]}),t.jsx(we,{children:t.jsx("pre",{className:"bg-muted mt-1 overflow-x-auto rounded-md p-3 font-mono text-xs",children:JSON.stringify(d.sample,null,2)})})]})]}):t.jsx("p",{className:"text-muted-foreground py-8 text-center text-sm",children:"These are cleared already."})}),t.jsxs(B,{children:[d&&t.jsx(b,{variant:"destructive",onClick:c,disabled:i.isPending,children:i.isPending?"Clearing…":"Clear these"}),t.jsx(b,{variant:"outline",onClick:o,children:"Close"})]})]})})}function $t(e){const n=Math.floor(e/1e3);if(n<60)return`${n}s`;const o=Math.floor(n/60),s=n%60;if(o<60)return`${o}m ${s}s`;const i=Math.floor(o/60),a=o%60;return`${i}h ${a}m`}function Ft(e){switch(e){case"needs_attention":return{label:"Needs attention",badge:"destructive",tone:"error",heading:"What it needed",title:"Run that was refused a tool"};case"failed":return{label:"Didn’t finish",badge:"destructive",tone:"error",heading:"Error",title:"Run that didn’t finish"};case"cancelled":return{label:"Cancelled",badge:"secondary",tone:"neutral",heading:"Stopped",title:"Run that was stopped"};case"skipped":return{label:"Skipped",badge:"secondary",tone:"neutral",heading:"Why",title:"Run that never started"};case"running":return{label:"Running",badge:"secondary",tone:"neutral",heading:"Latest",title:"Run that is still going"};default:return{label:"Completed",badge:"secondary",tone:"neutral",heading:"Note",title:"Run that finished"}}}const Lt={error:{box:"bg-destructive/10 border-destructive/20",heading:"text-destructive",body:"text-destructive"},neutral:{box:"bg-muted border-border",heading:"text-foreground",body:"text-foreground/80"}};function qt({open:e,itemId:n,onClose:o}){const{data:s,isLoading:i,isError:a}=Re(e?n??null:null),r=Ce(),l=W(),d=()=>{s!=null&&s.sessionId&&l(H({session:s.sessionId}))},c=()=>{s&&r.mutate(s.id)},h=s?Ft(s.status):null,g=h?Lt[h.tone]:null;return t.jsx($,{open:e,onOpenChange:f=>!f&&o(),children:t.jsxs(F,{side:"right",children:[t.jsxs(L,{children:[t.jsx(q,{children:(h==null?void 0:h.title)??"Run that needs a look"}),t.jsx(z,{children:n?n.slice(0,8):"Unknown"})]}),t.jsxs(U,{className:"flex-1 px-4",children:[i&&t.jsxs("div",{className:"space-y-4",children:[t.jsx(C,{className:"h-6 w-24"}),t.jsx(C,{className:"h-4 w-48"}),t.jsx(C,{className:"h-20 w-full"})]}),a&&t.jsx("p",{className:"text-destructive py-8 text-center text-sm",children:"Couldn’t load this run."}),!i&&!a&&!s&&t.jsx("p",{className:"text-muted-foreground py-8 text-center text-sm",children:"Already resolved."}),s&&t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{className:"flex gap-2",children:[t.jsx(I,{variant:h.badge,children:h.label}),t.jsx(I,{variant:"secondary",children:s.trigger==="scheduled"?"Scheduled":"Manual"})]}),t.jsxs("div",{className:"space-y-1 text-sm",children:[s.startedAt&&t.jsxs("p",{className:"text-muted-foreground",children:["Started: ",A(s.startedAt)," ago"]}),s.finishedAt&&t.jsxs("p",{className:"text-muted-foreground",children:["Finished: ",A(s.finishedAt)," ago"]}),s.durationMs!=null&&t.jsxs("p",{className:"text-muted-foreground",children:["Duration: ",$t(s.durationMs)]})]}),s.error&&t.jsxs("div",{className:y("rounded-md border p-3",g.box),children:[t.jsx("p",{className:y("text-sm font-medium",g.heading),children:h.heading}),t.jsx("p",{className:y("mt-1 text-sm",g.body),children:s.error})]}),s.outputSummary&&t.jsxs("div",{className:"space-y-1",children:[t.jsx("p",{className:"text-muted-foreground text-xs font-medium",children:"Output"}),t.jsx("pre",{className:"bg-muted max-h-48 overflow-auto rounded-md p-3 font-mono text-xs",children:s.outputSummary})]})]})]}),t.jsxs(B,{children:[(s==null?void 0:s.sessionId)&&t.jsx(b,{variant:"default",onClick:d,children:"View chat"}),(s==null?void 0:s.status)==="running"&&t.jsx(b,{variant:"destructive",onClick:c,disabled:r.isPending,children:r.isPending?"Cancelling…":"Cancel run"}),t.jsx(b,{variant:"outline",onClick:o,children:"Close"})]})]})})}function zt({agent:e}){const n=Ae(e,e.projectPath??"");return t.jsxs("div",{className:"flex items-center gap-3 py-2",children:[t.jsx(Pe,{color:n.color,emoji:n.emoji,size:"sm",className:"shrink-0"}),t.jsxs("div",{className:"min-w-0 flex-1",children:[t.jsx("p",{className:"text-foreground truncate text-sm font-medium",children:De(e)}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(I,{variant:"destructive",children:"Unreachable"}),e.runtime&&t.jsx(I,{variant:"secondary",children:Oe(e.runtime).label})]})]}),e.lastSeenAt&&t.jsxs("span",{className:"text-muted-foreground shrink-0 text-xs",children:[A(e.lastSeenAt)," ago"]})]})}function Bt({open:e,onClose:n}){const{data:o}=At(void 0,e),s=m.useMemo(()=>o?o.namespaces.flatMap(i=>i.agents).filter(i=>i.healthStatus==="unreachable"):[],[o]);return t.jsx($,{open:e,onOpenChange:i=>!i&&n(),children:t.jsxs(F,{side:"right",children:[t.jsxs(L,{children:[t.jsx(q,{children:"Agents that aren’t answering"}),t.jsxs(z,{children:["DorkOS can’t reach ",s.length," agent",s.length===1?"":"s"," right now"]})]}),t.jsx(U,{className:"flex-1 px-4",children:s.length>0?t.jsx("div",{className:"divide-y",children:s.map(i=>t.jsx(zt,{agent:i},i.id))}):t.jsxs("div",{className:"flex flex-col items-center gap-2 py-8",children:[t.jsx(Ie,{className:"text-status-success size-6"}),t.jsx("p",{className:"text-muted-foreground text-sm",children:"All agents are online"})]})}),t.jsx(B,{children:t.jsx(b,{variant:"outline",onClick:n,children:"Close"})})]})})}function Wt(e){return e.content.suggestion!==void 0}function Ht(){const e=Dt(),{dismissedIds:n}=ge(),o=Me(s=>s.promoEnabled);return m.useMemo(()=>{if(!o)return null;const[s]=Ot(Mt.filter(Wt),e,n,1);return s??null},[e,n,o])}function _t({suggestion:e,promoTitle:n,onAccept:o,onDismiss:s}){return t.jsxs("p",{"data-slot":"quiet-suggestion",className:"text-muted-foreground/70 text-2xs mt-1",children:[e.question," ",t.jsx("button",{type:"button",onClick:o,className:"text-muted-foreground hover:text-foreground focus-ring rounded-sm font-medium underline-offset-4 transition-colors hover:underline focus-visible:underline",children:e.action}),t.jsx("button",{type:"button","aria-label":`Dismiss suggestion: ${n}`,onClick:s,className:"text-muted-foreground/60 hover:text-foreground focus-ring -my-1.5 ml-0.5 inline-flex translate-y-[3px] items-center justify-center rounded-sm p-1.5 align-baseline transition-colors",children:t.jsx(oe,{className:"size-3"})})]})}function Ut({promo:e}){const{dismissPromo:n}=ge(),{activate:o,dialog:s}=Tt(e);return t.jsxs(t.Fragment,{children:[t.jsx(_t,{suggestion:e.content.suggestion,promoTitle:e.content.title,onAccept:o,onDismiss:()=>n(e.id)}),s]})}function Kt(){const e=Ht();return e===null?null:t.jsx(Ut,{promo:e},e.id)}const Vt=["report.daily"];function fe(){const{notifications:e}=Te({kinds:Vt,unread:!0});return m.useMemo(()=>e[0],[e])}function Gt({questions:e,requests:n,schedules:o,approvalsUnavailable:s,attention:i}){const a=[],r=[],l=e+n+o;return l>0?(a.push(`${Ee(e,n,o)} ${l===1?"is":"are"} waiting on you.`),r.push(`${l} waiting`)):s&&(a.push("Couldn’t read approvals."),r.push("Couldn’t read approvals")),i===1?(a.push("1 thing needs attention."),r.push("1 needs attention")):i>1&&(a.push(`${i} things need attention.`),r.push(`${i} need attention`)),{spoken:a.join(" "),compact:r.join(" · ")}}function Qt({notification:e,onDismiss:n}){return t.jsxs("div",{"data-slot":"shift-report-card",className:"border-border/60 bg-background/60 relative rounded-lg border p-3 pr-8",children:[t.jsxs("div",{className:"flex items-start gap-2.5",children:[t.jsx($e,{"aria-hidden":!0,className:"text-muted-foreground mt-0.5 size-3.5 shrink-0"}),t.jsxs("div",{className:"min-w-0 flex-1",children:[t.jsx("p",{className:"text-foreground text-xs font-medium",children:e.title}),e.body!==void 0&&t.jsx("p",{className:"text-muted-foreground mt-1 text-xs leading-relaxed",children:e.body})]})]}),t.jsx("button",{type:"button",onClick:n,"aria-label":"Dismiss",className:"text-muted-foreground hover:text-foreground focus-ring absolute top-2 right-2 rounded-md p-1 transition-colors",children:t.jsx(oe,{className:"size-3.5"})})]})}const Yt="max-h-[40svh] sm:max-h-[50svh]",Xt={initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0}};function T({title:e,tone:n="waiting",children:o}){const s=m.useId();return t.jsxs("section",{"aria-labelledby":s,className:"min-w-0",children:[t.jsx("h2",{id:s,className:y("mb-2 text-xs font-medium",n==="waiting"?"text-status-warning-fg":"text-muted-foreground"),children:e}),o]})}function X({edge:e}){return t.jsx("div",{"aria-hidden":"true","data-slot":`pinned-triage-fade-${e}`,className:y("from-background/95 via-background/65 pointer-events-none absolute inset-x-0 h-6 to-transparent",e==="bottom"?"bottom-0 bg-gradient-to-t":"top-0 bg-gradient-to-b")})}const J={animate:{transition:{staggerChildren:.04}}};function Jt(e){return e?0:.18}function Zt({approvals:e,asks:n,settlingAsks:o,askAgentNames:s,onOpenSession:i,approvalsUnavailable:a,onRetryApprovals:r,scheduleApprovals:l,errorSignals:d,activityItems:c,onOpenActivity:h,shiftReport:g,presence:f,condensed:j,onExpand:x,className:u}){const p=ie(),v=m.useRef(null),N=Fe(v),k=e.length>0||n.length>0||o.length>0||l.length>0||a,P=d.length>0,w=c.length>0,je=k||P||w||g!==void 0||(f==null?void 0:f.occupied)===!0,O=Gt({questions:n.length,requests:e.length,schedules:l.length,approvalsUnavailable:a,attention:d.length+c.length}),ve=j===!0&&O.compact!=="";return t.jsxs(t.Fragment,{children:[t.jsx("div",{role:"status","aria-live":"polite","aria-atomic":"true",className:"sr-only",children:O.spoken}),t.jsxs(V,{initial:!1,children:[ve&&t.jsx(R.div,{"data-slot":"pinned-triage-summary",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:Jt(p===!0)},className:y("bg-background/95 border-border/60 shrink-0 border-b backdrop-blur-sm",u),children:t.jsxs("button",{type:"button",onClick:x,className:"text-muted-foreground hover:text-foreground flex min-h-11 w-full min-w-0 items-center gap-2 px-[var(--msg-padding-x)] text-left text-xs",children:[t.jsx("span",{className:"bg-status-warning-dot size-1.5 shrink-0 rounded-full","aria-hidden":!0}),t.jsx("span",{className:"min-w-0 flex-1 truncate",children:O.compact}),t.jsx(Le,{className:"size-3.5 shrink-0","aria-hidden":!0})]})},"triage-summary"),je&&j!==!0&&t.jsxs(R.div,{"data-slot":"pinned-triage-header",...Xt,transition:{duration:p?0:.25,ease:[0,0,.2,1]},className:y("bg-background/95 border-border/60 relative shrink-0 overflow-hidden border-b backdrop-blur-sm",u),children:[t.jsxs("div",{ref:v,onScroll:N.onScroll,"data-slot":"pinned-triage-scroller",className:y("flex w-full min-w-0 scroll-py-6 flex-col gap-3 overflow-y-auto overscroll-contain px-[var(--msg-padding-x)] py-3",Yt),children:[k&&t.jsxs(T,{title:"Waiting on you",children:[(n.length>0||o.length>0)&&t.jsx(qe,{asks:n,agentNames:s,onOpenSession:i,emptyState:t.jsx("p",{className:"text-muted-foreground text-xs",children:"Nothing needs you"})}),e.length>0&&t.jsx(ze,{approvals:e}),e.length===0&&a&&t.jsx(Be,{onRetry:r}),t.jsx(V,{initial:!1,children:l.map(S=>t.jsx(We,{task:S,className:"mt-2"},S.id))})]}),P&&t.jsx(T,{title:"Needs attention",children:t.jsx("div",{className:"border-status-warning-border/40 bg-background/60 rounded-lg border p-2",children:t.jsx(R.div,{variants:J,initial:"initial",animate:"animate",children:d.map(S=>t.jsx(Pt,{signal:S},S.id))})})}),g&&t.jsx(Qt,{notification:g.notification,onDismiss:g.onDismiss}),w&&t.jsx(T,{title:"Recent activity",tone:"neutral",children:t.jsx("div",{className:"border-border/60 bg-background/60 rounded-lg border p-2",children:t.jsx(R.div,{variants:J,initial:"initial",animate:"animate",children:c.map(S=>t.jsx(He,{notification:S,onOpen:()=>h(S)},S.id))})})}),f==null?void 0:f.node]}),N.start&&t.jsx(X,{edge:"top"}),N.end&&t.jsx(X,{edge:"bottom"})]},"triage-header")]})]})}function es({presence:e,composerFocused:n,onExpand:o,className:s}){const{approvals:i,isError:a,retry:r}=_e(),{interactions:l}=Ue(),d=Ke(),c=Ve(l),{schedules:h,errors:g,activity:f}=ae(),j=Ge(),x=fe(),{mutate:u}=Qe(),p=re({strict:!1}),v=W(),N=Ye(),k=Xe(h),P=Je(i),w=m.useCallback(()=>{v({...le.home(),search:{}})},[v]);return t.jsxs(t.Fragment,{children:[t.jsx(Zt,{approvals:P,asks:l,settlingAsks:d,askAgentNames:c,onOpenSession:K=>{v(H({session:K}))},approvalsUnavailable:a&&i.length===0,onRetryApprovals:r,scheduleApprovals:k,errorSignals:g,activityItems:f,onOpenActivity:j,shiftReport:x===void 0?void 0:{notification:x,onDismiss:()=>u(x.id)},presence:e,condensed:N&&n===!0,onExpand:o,className:s}),t.jsx(Et,{open:p.detail==="dead-letter",itemId:p.itemId,onClose:w}),t.jsx(qt,{open:p.detail==="failed-run",itemId:p.itemId,onClose:w}),t.jsx(Bt,{open:p.detail==="offline-agent",onClose:w})]})}const ts=["What can you help with?","Make my first agent","What’s in this project?","Set up a daily run"];function ss({roomId:e}){const n=m.useCallback(o=>{de.getState().set(e,o),ce.getState().requestFocus(e)},[e]);return t.jsx("div",{className:"w-full px-[var(--msg-padding-x)] pb-1",children:t.jsx(he,{suggestions:ts,onChipClick:n,ariaLabel:"Ways to start",size:"comfortable"})})}function ns(e){var a;const{data:n}=Ze(e),o=((a=n==null?void 0:n.members.find(r=>r.author.id===n.viewerAuthorId))==null?void 0:a.lastReadSeq)??null,[s,i]=m.useState({roomId:null,seq:null});return s.roomId===e?s.seq:o===null?null:(i({roomId:e,seq:o}),o)}function os(e,n){if(e===void 0)return null;let o=null,s=1/0;for(const i of e){if(!i.enabled||i.status!=="active")continue;const a=i.nextRun;if(a==null)continue;const r=Date.parse(a);Number.isNaN(r)||r<=n||r>=s||(s=r,o={name:i.displayName??i.name,at:a})}return o}function is(e,n){const o=new Date(e),s=o.toLocaleTimeString(void 0,{hour:"numeric",minute:"2-digit"}),i=as(new Date(n),o);return i===0?`today at ${s}`:i===1?`tomorrow at ${s}`:`on ${o.toLocaleDateString(void 0,{weekday:"long",month:"short",day:"numeric"})} at ${s}`}function as(e,n){const o=s=>new Date(s.getFullYear(),s.getMonth(),s.getDate()).getTime();return Math.round((o(n)-o(e))/864e5)}function rs(e,n){return e===null?null:`Next up: ${e.name} runs ${is(e.at,n)}.`}function ls({forwardLook:e,suggestion:n}){return t.jsx(R.div,{"data-slot":"home-quiet-state",initial:{opacity:0},animate:{opacity:1},transition:{duration:.2},className:"border-border/60 shrink-0 border-b",children:t.jsxs("div",{className:"w-full px-[var(--msg-padding-x)] py-2",children:[t.jsxs("p",{className:"text-muted-foreground text-xs",children:[t.jsx("span",{className:"text-foreground/80 font-medium",children:"All quiet."}),e!==null&&t.jsxs(t.Fragment,{children:[" ",e]})]}),n]})})}function ds({roomId:e,presenceOccupied:n}){const o=_(e),s=ns(e),{items:i,isLoading:a,isAnyError:r}=et(),{total:l}=ae(),d=fe(),c=o!==void 0&&o.length>0,h=s!==null&&o!==void 0&&o.every(k=>k.seq<=s),g=i.length>0||a||r||l>0||d!==void 0||n,f=c&&h&&!g,[j,x]=m.useState("waiting");f&&j==="waiting"?x("shown"):!f&&j==="shown"&&x("retired");const u=f&&j!=="retired",p=tt(),{data:v}=st(p&&u),N=nt();return u?t.jsx(ls,{forwardLook:rs(os(v,N),N),suggestion:t.jsx(Kt,{})}):null}const pe="dorkos:home-opened-on";function Z(){const e=new Date,n=String(e.getMonth()+1).padStart(2,"0"),o=String(e.getDate()).padStart(2,"0");return`${e.getFullYear()}-${n}-${o}`}function cs(){try{return localStorage.getItem(pe)}catch{return null}}function us(e){try{localStorage.setItem(pe,e)}catch{}}function ms(){const[e]=m.useState(()=>cs()!==Z());return m.useEffect(()=>{e&&us(Z())},[e]),e}function hs({children:e}){const n=ms(),o=ie(),s=n&&o!==!0;return t.jsx(R.div,{className:"h-full",initial:s?{opacity:0}:!1,animate:{opacity:1},transition:{duration:.45,ease:[0,0,.2,1]},children:e})}const ee="@dorkbot",gs="Build me a tracker for my customers",fs="Make a daily plan board",xe="Something else",ps=[gs,fs,xe];function xs({roomId:e,mode:n}){const o=Rt(),s=ot(),i=m.useCallback(a=>{if(a===xe){de.getState().set(e,`${ee} `),ce.getState().requestFocus(e);return}o.mutate({roomId:e,text:`${ee} ${a}`,clientId:it()})},[e,o]);return n==="starters"?t.jsx("div",{className:"w-full px-[var(--msg-padding-x)] pb-1","data-testid":"first-run-chips",children:t.jsx(he,{suggestions:ps,onChipClick:i,ariaLabel:"First jobs for DorkBot",size:"comfortable"})}):t.jsxs("div",{className:"flex w-full flex-wrap gap-2 px-[var(--msg-padding-x)] pb-1","data-testid":"first-run-connect-chips",children:[t.jsx(b,{size:"sm",onClick:()=>s.open("account"),children:"Continue with DorkOS"}),t.jsx(b,{size:"sm",variant:"outline",onClick:()=>s.open("runtimes"),children:"Use my own AI"})]})}function js(e){var r,l;const{data:n}=at(),o=_(e),s=ue(e,null),i=((r=n==null?void 0:n.onboarding)==null?void 0:r.welcomeEntryId)??null;if(e===null||i===null||!o||s.length>0)return null;const a=o.reduce((d,c)=>d===void 0||c.seq>d.seq?c:d,void 0);return(a==null?void 0:a.id)!==i?null:((l=n==null?void 0:n.onboarding)==null?void 0:l.firstRunPath)==="none"?"connect":"starters"}const vs=5,bs="relative after:absolute after:-inset-x-1 after:-inset-y-2.5 md:after:hidden";function ys(e,n){return e===null||n===null?null:Math.max(0,n-Date.parse(e))}function Ss({row:e,onFollow:n,onViewProfile:o}){const[s,i]=m.useState(null),a=ys(e.since,s),r=e.profileMemberId,l=o===void 0||r===null?void 0:()=>o(r);return t.jsx(kt,{onViewProfile:l,identity:{kind:e.face.kind,displayName:e.name,...e.handle!==null?{handle:e.handle}:{},color:e.face.color,...e.face.emoji!==void 0?{emoji:e.face.emoji}:{},...e.face.imageUrl!==void 0?{imageUrl:e.face.imageUrl}:{},...e.face.origin!==void 0?{origin:e.face.origin}:{},...e.face.kind==="agent"?{agent:{...e.runtime!==null?{runtime:e.runtime}:{},...a!==null?{working:{...e.roomTitle!==null?{room:e.roomTitle}:{},forMs:a}}:{}}}:{}},children:t.jsxs("button",{type:"button","aria-label":e.detail===null?`Watch ${e.name}`:`Watch ${e.name}: ${e.detail}`,onClick:()=>n(e.follow),onPointerEnter:()=>i(Date.now()),onPointerLeave:()=>i(null),onFocus:()=>i(Date.now()),onBlur:()=>i(null),className:y("focus-ring group/identity hover:bg-muted/60 flex min-w-0 items-center gap-1.5 rounded-full py-1 pr-2.5 pl-1 text-xs transition-colors",bs),children:[t.jsx(rt,{size:"xs",kind:e.face.kind,color:e.face.color,...e.face.emoji!==void 0?{emoji:e.face.emoji}:{},...e.face.imageUrl!==void 0?{imageUrl:e.face.imageUrl}:{},...e.face.origin!==void 0?{origin:e.face.origin}:{},fallback:e.face.fallback,status:"working"}),t.jsx("span",{className:"text-foreground shrink-0 font-medium",children:e.name}),e.detail!==null&&t.jsxs("span",{"aria-hidden":!0,className:"text-muted-foreground truncate",children:["· ",e.detail]})]})})}function Ns({rows:e,onFollow:n,onViewProfile:o,className:s}){if(e.length===0)return null;const i=e.slice(0,vs),a=e.length-i.length;return t.jsxs("ul",{"data-testid":"presence-strip","aria-label":"Working right now",className:y("flex items-center gap-x-2 overflow-hidden",s),children:[i.map(r=>t.jsx("li",{className:"min-w-0",children:t.jsx(Ss,{row:r,onFollow:n,onViewProfile:o})},r.id)),a>0&&t.jsx("li",{"aria-label":a===1?"1 more agent is working":`${a} more agents are working`,className:"text-muted-foreground shrink-0 text-xs",children:t.jsxs("span",{"aria-hidden":!0,children:["+",a," more"]})})]})}function ks(e){return`replying in ${e}`}const ws="working in a chat";function Rs(e,n){var i;const o=n.rosters[e];if(o!==void 0)return o.members.map(a=>({author:a.author,origin:a.origin}));const s=(i=n.rooms[e])==null?void 0:i.participants;return s==null?[]:s.map(a=>({author:a}))}function Cs(e){const n=new Map;for(const[o,s]of Object.entries(e))s!==null&&n.set(lt(o),{path:o,manifest:s});return n}function te(e){return{...e,line:ct(e.name,e.binding,e.state),detail:dt(e.binding,e.state)}}function Is(e){const n=Cs(e.agents),o=new Set(e.excludeRoomIds??[]),s=[],i=new Set;for(const l of e.claims){const d=Rs(l.roomId,e).find(f=>f.author.id===l.authorId);if(d===void 0)continue;const c=d.author.agentRef===void 0?void 0:n.get(d.author.agentRef);if(c!==void 0&&i.add(c.path),o.has(l.roomId))continue;const h=e.rooms[l.roomId],g=h===void 0?null:me(h);s.push(te({id:`room:${l.roomId}:${l.authorId}`,name:d.author.displayName,handle:d.author.handle,face:G({record:d.author,override:c===void 0?null:Q(c.manifest),...d.origin!==void 0?{origin:d.origin}:{}}),binding:g===null?null:ks(g),state:l.state,since:l.since,roomTitle:g,runtime:(c==null?void 0:c.manifest.runtime)??null,profileMemberId:c===void 0?null:e.meshIdByPath[c.path]??null,follow:{kind:"room",roomId:l.roomId}}))}const a=new Set(i),r=[];for(const l of e.sessions){if(a.has(l.cwd))continue;const d=e.agents[l.cwd];if(d==null)continue;a.add(l.cwd);const c=d.displayName??d.name;r.push(te({id:`session:${l.sessionId}`,name:c,handle:null,face:G({record:{id:d.id,kind:"agent",displayName:c},override:Q(d)}),binding:ws,state:"working",since:null,roomTitle:null,runtime:d.runtime,profileMemberId:e.meshIdByPath[l.cwd]??null,follow:{kind:"session",sessionId:l.sessionId,cwd:l.cwd}}))}return r.sort((l,d)=>l.name.localeCompare(d.name)||l.id.localeCompare(d.id)),[...s,...r]}function As(e,n,o){var a;const s=new Set(ut(Object.keys(n),Object.values(o))),i=[];for(const[r,l]of Object.entries(n))((a=e[r])==null?void 0:a.lifecycle)==="streaming"&&s.has(r)&&i.push({sessionId:r,cwd:l});return i}const se=[],Ps=[],ne="\0",D="";function Ds(){const e=M(m.useCallback(i=>i.statuses,[])),n=M(m.useCallback(i=>i.statusCwds,[])),o=M(m.useCallback(i=>i.sessions,[])),s=m.useMemo(()=>As(e,n,o).map(i=>`${i.sessionId}${ne}${i.cwd}`).sort().join(D),[e,n,o]);return m.useMemo(()=>s.length===0?Ps:s.split(D).map(i=>{const[a,r]=i.split(ne);return{sessionId:a,cwd:r}}),[s])}function Os(e=[]){const n=mt(),o=ht(),s=Ds(),{data:i}=gt(),{data:a}=ft(),r=m.useMemo(()=>[...new Set(o.map(u=>u.roomId))].sort().join(`
|
|
2
2
|
`),[o]),l=m.useMemo(()=>r.length===0?[]:r.split(`
|
|
3
3
|
`),[r]),d=pt({queries:l.map(u=>({queryKey:xt.detail(u),queryFn:()=>n.getRoom(u)})),combine:u=>{const p={};for(const v of u)v.data!==void 0&&(p[v.data.id]=v.data);return p}}),c=m.useMemo(()=>{const u={};for(const p of i??[])u[p.id]=p;return u},[i]),h=m.useMemo(()=>((a==null?void 0:a.agents)??[]).map(u=>u.projectPath),[a]),{data:g}=jt(h),f=m.useMemo(()=>g??{},[g]),j=m.useMemo(()=>{const u={};for(const p of(a==null?void 0:a.agents)??[])u[p.projectPath]=p.id;return u},[a]),x=e.join(D);return m.useMemo(()=>{if(o.length===0&&s.length===0)return se;const u=Is({claims:o,rosters:d,rooms:c,sessions:s,agents:f,meshIdByPath:j,excludeRoomIds:x.length===0?[]:x.split(D)});return u.length===0?se:u},[o,d,c,s,f,j,x])}function Ms(e=[]){const n=Os(e),o=W(),{open:s}=vt(),i=m.useCallback(r=>{if(r.kind==="room"){Y.getState().recordOpened("room",r.roomId),o({...le.channels(),search:{id:r.roomId}});return}r.cwd&&Y.getState().recordOpened("agent",r.cwd),o(H({session:r.sessionId,dir:r.cwd}))},[o]),a=m.useMemo(()=>t.jsx(Ns,{rows:n,onFollow:i,onViewProfile:s}),[n,i,s]);return{occupied:n.length>0,node:a}}function E({title:e,children:n,action:o}){return t.jsxs("div",{className:"text-muted-foreground flex h-full flex-col items-center justify-center gap-2 p-10 text-center text-sm",children:[t.jsx(Nt,{className:"text-muted-foreground/50 size-10","aria-hidden":!0}),t.jsx("p",{className:"text-foreground font-medium",children:e}),t.jsx("p",{className:"max-w-sm",children:n}),o]})}function Ts(){return t.jsxs(t.Fragment,{children:[t.jsx(bt,{children:"Home"}),t.jsx(Es,{})]})}function Es(){var f,j,x;const e=yt(),[n,o]=m.useState(!1),s=m.useCallback(()=>{const u=document.activeElement;wt(u)&&u.blur()},[]),{thread:i,entry:a}=re({strict:!1}),r=St(),l=Ms(e.room===null?[]:[e.room.id]),d=_(((f=e.room)==null?void 0:f.id)??null),c=ue(((j=e.room)==null?void 0:j.id)??null,null),h=d!==void 0&&d.length===0&&c.length===0,g=js(((x=e.room)==null?void 0:x.id)??null);if(e.status==="loading")return t.jsxs("div",{className:"flex h-full flex-col","aria-busy":!0,children:[t.jsxs("div",{className:"flex items-center gap-3 border-b px-4 py-3",children:[t.jsx(C,{className:"size-7 rounded-full"}),t.jsx(C,{className:"h-4 w-40"})]}),t.jsx("div",{className:"flex-1"})]});if(e.status==="error")return t.jsx(E,{title:"Couldn’t load your team room",action:t.jsx(b,{variant:"outline",size:"sm",className:"mt-2",onClick:e.retry,children:"Try again"}),children:"Its messages are safe."});if(e.status==="missing")return t.jsx(E,{title:"Your team room isn’t open yet",children:"DorkOS opens it at startup. Still missing? Restart DorkOS."});if(e.status==="archived"){const u=e.room;return t.jsx(E,{title:`${me(u)} is archived`,action:t.jsx(b,{variant:"outline",size:"sm",className:"mt-2",disabled:r.isPending,onClick:()=>r.mutate({roomId:u.id}),children:r.isPending?"Bringing it back…":"Bring it back"}),children:"Its messages are safe."})}return t.jsx(hs,{children:t.jsx(Ct,{roomId:e.room.id,threadId:i,entrySeq:a,threadRoute:"/",offerJumpBackIn:!0,onComposerFocusChange:o,aboveTimeline:t.jsxs(t.Fragment,{children:[t.jsx(es,{presence:l,composerFocused:n,onExpand:s}),t.jsx(ds,{roomId:e.room.id,presenceOccupied:l.occupied})]}),aboveComposer:g?t.jsx(xs,{roomId:e.room.id,mode:g}):h?t.jsx(ss,{roomId:e.room.id}):void 0})})}const $n=Ts;export{$n as component};
|
package/dist/client/assets/{_shell._home.tasks-gdbnkq3-.js → _shell._home.tasks-DWFh5Qbq.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e,G as R,ap as f,bc as _,B as E,eX as C,r as n,eY as D,eZ as b,e_ as F,e$ as M,f0 as B,e as L,f1 as u,f2 as z,c_ as H,e1 as G,bd as U,aZ as Z,cZ as K,b0 as Q}from"./index-
|
|
1
|
+
import{j as e,G as R,ap as f,bc as _,B as E,eX as C,r as n,eY as D,eZ as b,e_ as F,e$ as M,f0 as B,e as L,f1 as u,f2 as z,c_ as H,e1 as G,bd as U,aZ as Z,cZ as K,b0 as Q}from"./index-B48IJBNm.js";import{Q as V}from"./query-error-state-CRmZMMkL.js";import{P as N}from"./page-container-Bx1sr900.js";import{F as W,T as X,C as $}from"./TasksEmptyState-DNI1C274.js";import{i as Y}from"./registry-CWK5lzYs.js";import{u as q,S as J}from"./search-x-CUZ1LRYe.js";import{S as ee}from"./scroll-area-D6gNpFjK.js";import"./empty-state-2mQX7azC.js";import"./inline-code-BCFlKPIb.js";import"./form-C9cPRNOV.js";import"./command-C7Cl56dV.js";import"./AgentPicker-D6MsFN_H.js";import"./AgentOptionRow-Dj2MlE6E.js";import"./execution-config-COqY7hHn.js";import"./settings-for-runtime-BoOa-ZFG.js";import"./list-runtime-types-B1J9AtqH.js";import"./format-cron-DIw9_M6c.js";const te="relative after:absolute after:-inset-x-1 after:-inset-y-2 md:after:hidden";function se({count:a,active:r,onToggle:d}){return e.jsxs("button",{type:"button","data-slot":"tasks-failing-chip","aria-pressed":r,onClick:d,className:R("text-destructive hover:bg-destructive/10 inline-flex h-7 items-center gap-1.5 rounded-md border px-2.5 text-xs",te,r?"border-destructive/50 bg-destructive/10":"border-input"),children:["Failing",e.jsx("span",{className:"font-medium tabular-nums",children:a})]})}function ae({count:a,onShow:r}){return e.jsxs(e.Fragment,{children:[e.jsx("span",{"aria-hidden":!0,children:"·"}),e.jsxs("button",{type:"button","data-slot":"tasks-failing-count",onClick:r,className:"text-destructive rounded-sm underline-offset-2 hover:underline",children:[a," failing"]})]})}function ie({onShowAll:a}){return e.jsxs(f.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},"data-slot":"tasks-nothing-failing",className:"flex flex-col items-center justify-center gap-3 py-12 text-center",children:[e.jsx(_,{className:"text-muted-foreground/50 size-10","aria-hidden":!0}),e.jsx("p",{className:"text-muted-foreground text-sm",children:"Nothing is failing. Every schedule’s last run did its job."}),e.jsx(E,{variant:"outline",size:"sm",onClick:a,children:"Show all"})]})}const ne=8,re={visible:{transition:{staggerChildren:.04}},hidden:{}},oe={hidden:{opacity:0,y:8},visible:{opacity:1,y:0}};function le({tasks:a,isLoading:r,agentMap:d,onEditTask:k,agentId:x}){const s=q(C,{debounce:{search:200}}),[c]=n.useState(0),[v,h]=n.useState(null),o=n.useMemo(()=>x?a.filter(t=>t.agentId===x):a,[a,x]),j=n.useMemo(()=>[...new Set(o.map(t=>t.agentId).filter(t=>!!t))],[o]),m=n.useMemo(()=>{const t=D(o,C,s.values,F,{field:s.sortField||b,direction:s.sortDirection});return s.sortField?t:M(t)},[o,s.values,s.sortField,s.sortDirection]),l=n.useMemo(()=>o.filter(B).length,[o]),g=s.values.health==="failing",y=()=>s.set("health",g?"":"failing");return r?e.jsx("div",{className:"space-y-3 py-4",children:Array.from({length:3}).map((t,p)=>e.jsx(L,{className:"h-14 w-full rounded-xl"},p))}):e.jsxs("div",{className:"flex h-full flex-col overflow-hidden",children:[e.jsxs(u,{state:s,className:"px-0",children:[e.jsx(u.Search,{placeholder:"Filter tasks…"}),(l>0||g)&&e.jsx(se,{count:l,active:g,onToggle:y}),e.jsx(u.Primary,{name:"status"}),e.jsx(u.AddFilter,{dynamicOptions:{agent:j}}),e.jsx(u.Sort,{options:F,defaultField:b}),e.jsx(u.ResultCount,{count:m.length,total:o.length,noun:"schedule",children:l>0&&e.jsx(ae,{count:l,onShow:()=>s.set("health","failing")})}),e.jsx(u.ActiveFilters,{})]}),e.jsx(ee,{className:"min-h-0 flex-1","data-testid":z.tasksList,children:e.jsx("div",{className:"space-y-2 pb-4",children:m.length===0&&g&&l===0?e.jsx(ie,{onShowAll:()=>s.clear("health")}):m.length===0&&o.length>0?e.jsxs(f.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},className:"flex flex-col items-center justify-center gap-3 py-12 text-center",children:[e.jsx(J,{className:"text-muted-foreground/50 size-10"}),e.jsx("p",{className:"text-muted-foreground text-sm",children:s.describeActive()?`No tasks match ${s.describeActive()}`:"No tasks match your filters"}),e.jsx(E,{variant:"outline",size:"sm",onClick:s.clearAll,children:"Clear filters"})]}):e.jsx(f.div,{initial:"hidden",animate:"visible",variants:re,className:"space-y-2",children:m.map((t,p)=>e.jsx(f.div,{variants:p<ne?oe:void 0,transition:{duration:.15},children:e.jsx(H,{task:t,agent:(t.agentId?d.get(t.agentId):void 0)??null,expanded:v===t.id,onToggleExpand:()=>h(v===t.id?null:t.id),onEdit:()=>k(t)})},t.id))},c)})})]})}function de(){return e.jsxs(e.Fragment,{children:[e.jsx(G,{children:"Schedules"}),e.jsx(ce,{})]})}function ce(){const a=U(),{data:r=[],isLoading:d,isError:k,refetch:x}=Z(a),[s,c]=n.useState(!1),[v,h]=n.useState(),[o,j]=n.useState(null),m=r.some(i=>i.agentId),{data:l}=K(void 0,m||!d),g=n.useMemo(()=>{const i=new Map;for(const S of(l==null?void 0:l.agents)??[])i.set(S.id,S);return i},[l]),{externalTrigger:y,clear:t}=Q(),[p,T]=n.useState(!1);y&&!p&&!s?(T(!0),h(void 0),c(!0),t()):!y&&p&&T(!1);const A=i=>{j(i),h(void 0),c(!0)},O=()=>{j(null),h(void 0),c(!0)},w=i=>{h(i),c(!0)},P=i=>{c(i),i||j(null)};if(!a)return e.jsx(W,{icon:Y.tasks,name:"Scheduling",description:"Agents run tasks on a schedule, even while you’re away.",command:"dorkos --tasks"});if(k)return e.jsx(V,{className:"h-full",title:"Couldn’t load your scheduled tasks",description:"The DorkOS server didn’t answer. Check that it’s running.",onRetry:()=>void x()});const I=r.length>0;return e.jsxs(e.Fragment,{children:[!I&&!d?e.jsx(f.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.15},className:"h-full min-h-0",children:e.jsx(N,{width:"full",children:e.jsx(X,{onCreateWithPreset:A,onCreateBlank:O})})}):e.jsx(f.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.15},className:"h-full min-h-0",children:e.jsx(N,{width:"full",scroll:!1,children:e.jsx(le,{tasks:r,isLoading:d,agentMap:g,onEditTask:w})})}),e.jsx($,{open:s,onOpenChange:P,editTask:v,initialPreset:o})]})}const Ee=de;export{Ee as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a1 as j,a2 as g,r as f,j as e,e1 as N,ak as i,a0 as b,e2 as y,_ as u,b6 as w}from"./index-
|
|
1
|
+
import{a1 as j,a2 as g,r as f,j as e,e1 as N,ak as i,a0 as b,e2 as y,_ as u,b6 as w}from"./index-B48IJBNm.js";import{I as C}from"./inline-code-BCFlKPIb.js";import{T,d as v,b as p,e as c,a as k,c as d}from"./table-D6BUawIb.js";import{P as S}from"./page-container-Bx1sr900.js";import{G as L}from"./git-branch-DlUQMA-U.js";const F=["workspaces","scan"],P=6e4;function W(){var a,n,l;const s=j(),t=g({queryKey:F,queryFn:()=>s.scanWorktrees(),staleTime:P,refetchOnWindowFocus:!0});return{root:((a=t.data)==null?void 0:a.root)??null,worktrees:((n=t.data)==null?void 0:n.worktrees)??[],warnings:((l=t.data)==null?void 0:l.warnings)??[],isLoading:t.isLoading,isError:t.isError}}const m="—";function A(s){return s.changedFiles===null?m:s.changedFiles===0?"Clean":`${s.changedFiles} changed`}function B(s){const{ahead:t,behind:a,upstreamGone:n}=s;return n?"Branch merged or deleted":t===null||a===null?m:t===0&&a===0?"In sync":[t>0&&`${t} ahead`,a>0&&`${a} behind`].filter(Boolean).join(" · ")}function E({worktree:s}){const t=(s.changedFiles??0)>0;return e.jsxs(p,{children:[e.jsxs(d,{className:"max-w-0",children:[e.jsx("div",{className:"truncate font-medium",children:s.name}),e.jsx("div",{className:"text-muted-foreground truncate text-xs",title:s.path,children:i(s.path)})]}),e.jsx(d,{className:"max-w-0",children:s.readable?s.branch?e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx(L,{className:"text-muted-foreground size-3.5 shrink-0"}),e.jsx("span",{className:"truncate text-xs",children:s.branch})]}):e.jsx("span",{className:"text-muted-foreground text-xs",children:"No branch"}):e.jsx(u,{variant:"outline",title:"DorkOS couldn’t read this folder with git.",children:"Can’t read"})}),e.jsx(d,{className:t?"text-status-warning-fg":"text-muted-foreground",children:e.jsx("span",{className:"text-xs whitespace-nowrap",children:A(s)})}),e.jsx(d,{className:"text-muted-foreground hidden md:table-cell",children:e.jsx("span",{className:"text-xs whitespace-nowrap",children:B(s)})}),e.jsx(d,{className:"text-muted-foreground hidden sm:table-cell",children:e.jsx("span",{className:"text-xs whitespace-nowrap",children:s.lastCommitAt?w(s.lastCommitAt):m})})]})}function G({project:s,worktrees:t}){return e.jsxs("section",{children:[e.jsxs("h2",{className:"mb-3 flex items-center gap-2 text-sm font-semibold",children:[s,e.jsx(u,{variant:"secondary",children:t.length})]}),e.jsx("div",{className:"bg-card rounded-lg border",children:e.jsxs(T,{children:[e.jsx(v,{children:e.jsxs(p,{children:[e.jsx(c,{children:"Folder"}),e.jsx(c,{children:"Branch"}),e.jsx(c,{children:"Changes"}),e.jsx(c,{className:"hidden md:table-cell",children:"Compared to remote"}),e.jsx(c,{className:"hidden sm:table-cell",children:"Last commit"})]})}),e.jsx(k,{children:t.map(a=>e.jsx(E,{worktree:a},a.path))})]})})]})}function H(){const{root:s,worktrees:t,warnings:a,isLoading:n,isError:l}=W(),x=f.useMemo(()=>{const r=new Map;for(const o of t){const h=r.get(o.project)??[];h.push(o),r.set(o.project,h)}return[...r.entries()]},[t]);return e.jsxs(S,{width:"wide",children:[e.jsx(N,{children:"Workspaces"}),e.jsx("p",{className:"text-muted-foreground mb-6 text-sm",children:"Copies of your code, per agent."}),a.length>0&&e.jsxs("div",{className:"mb-6 rounded-lg border border-amber-600/40 bg-amber-500/10 p-4",children:[e.jsx("p",{className:"text-sm font-medium",children:"Some folders couldn’t be read"}),e.jsx("p",{className:"text-muted-foreground mt-1 text-sm",children:"This list may be missing what’s inside them."}),e.jsx("ul",{className:"text-muted-foreground mt-2 space-y-0.5 text-xs",children:a.map(r=>e.jsxs("li",{className:"truncate",title:r.path,children:[i(r.path)," (",r.reason,")"]},r.path))})]}),n?e.jsx("p",{className:"text-muted-foreground text-sm",children:"Looking for your worktrees…"}):l?e.jsxs("div",{className:"bg-card rounded-xl border p-10 text-center",children:[e.jsx(b,{className:"text-muted-foreground/60 mx-auto size-8"}),e.jsx("p",{className:"mt-3 font-medium",children:"Couldn’t check your worktrees"}),e.jsx("p",{className:"text-muted-foreground mt-1 text-sm",children:"The scan didn’t finish. DorkOS tries again on its own."})]}):x.length===0?e.jsxs("div",{className:"bg-card rounded-xl border p-10 text-center",children:[e.jsx(y,{className:"text-muted-foreground/60 mx-auto size-8"}),e.jsx("p",{className:"mt-3 font-medium",children:"No worktrees yet"}),e.jsx("p",{className:"text-muted-foreground mt-1 text-sm",children:"A worktree is a copy of your project, so agents’ edits never collide."}),s&&e.jsxs("p",{className:"text-muted-foreground mt-3 truncate text-xs",title:s,"data-slot":"workspaces-root-path",children:["Looking in ",e.jsx(C,{children:i(s)})]})]}):e.jsx("div",{className:"flex flex-col gap-8",children:x.map(([r,o])=>e.jsx(G,{project:r,worktrees:o},r))})]})}const K=H;export{K as component};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{O as Jt,r as f,j as e,gs as Qt,a1 as V,lw as mt,a2 as ft,lx as Y,a3 as ce,a4 as $e,ly as Wt,lz as fe,lA as X,co as Gt,lB as Vt,cf as Xt,gA as Zt,cs as Ie,l as Ne,lC as es,lD as ts,lE as ss,lF as Se,lG as Fe,B as S,lH as ns,cZ as ht,lI as pt,en as re,eg as xt,eh as gt,ei as yt,ej as vt,ek as _e,I as qe,bH as jt,h1 as as,bI as Nt,bJ as wt,bK as bt,bL as Ct,bM as St,bN as Rt,bP as rs,$ as is,lJ as os,lK as ls,lL as cs,l3 as he,d0 as He,d1 as Be,d3 as Je,d4 as Qe,d5 as We,eC as Ge,dN as Ve,dD as kt,lo as ds,lp as us,h$ as ms,lM as fs,lN as Xe,lO as hs,lP as ps,lQ as At,lR as xs,lS as Dt,lT as Tt,lU as gs,e1 as Mt,lV as ys,lW as vs,lX as js,ju as Ns,a0 as ws,er as bs,fA as Cs,lY as Ss,lZ as Rs,G as ve,b8 as Re,eq as Ze,Y as De,h2 as ks,l_ as As,l$ as rt,m0 as it,da as Et,m1 as Ds,m2 as Ts,kx as Ms,ab as Es,n as ot}from"./index-
|
|
1
|
+
import{O as Jt,r as f,j as e,gs as Qt,a1 as V,lw as mt,a2 as ft,lx as Y,a3 as ce,a4 as $e,ly as Wt,lz as fe,lA as X,co as Gt,lB as Vt,cf as Xt,gA as Zt,cs as Ie,l as Ne,lC as es,lD as ts,lE as ss,lF as Se,lG as Fe,B as S,lH as ns,cZ as ht,lI as pt,en as re,eg as xt,eh as gt,ei as yt,ej as vt,ek as _e,I as qe,bH as jt,h1 as as,bI as Nt,bJ as wt,bK as bt,bL as Ct,bM as St,bN as Rt,bP as rs,$ as is,lJ as os,lK as ls,lL as cs,l3 as he,d0 as He,d1 as Be,d3 as Je,d4 as Qe,d5 as We,eC as Ge,dN as Ve,dD as kt,lo as ds,lp as us,h$ as ms,lM as fs,lN as Xe,lO as hs,lP as ps,lQ as At,lR as xs,lS as Dt,lT as Tt,lU as gs,e1 as Mt,lV as ys,lW as vs,lX as js,ju as Ns,a0 as ws,er as bs,fA as Cs,lY as Ss,lZ as Rs,G as ve,b8 as Re,eq as Ze,Y as De,h2 as ks,l_ as As,l$ as rt,m0 as it,da as Et,m1 as Ds,m2 as Ts,kx as Ms,ab as Es,n as ot}from"./index-B48IJBNm.js";import{T as Os,a as $s,R as Is}from"./RoomSurface-Mt3dk4_6.js";import{c as ge,C as ke}from"./registry-BxY1lah6.js";import{M as Ls}from"./markdown-content-BA0KEJH_.js";import{o as Us,a as zs,c as Fs}from"./owner-notice-DReCUEf1.js";import{B as Ps}from"./banner-DTCBttcQ.js";import"./ChannelComposer-BHxXoQwT.js";import"./pane-resize-handle-ojhYGmDs.js";import"./UnreadDivider-C52_nmrB.js";import"./use-room-follow-claim-C4UikQzz.js";import"./use-connector-management-DDlpD6tk.js";import"./AgentRequestCard-BTyuNOhU.js";import"./access-copy-CP0B1ZT9.js";import"./query-error-state-CRmZMMkL.js";import"./empty-state-2mQX7azC.js";import"./use-bindings-DdWRXvtd.js";import"./connection-copy--MA7AN04.js";import"./KeyEntry-BerpQFQT.js";import"./use-room-sessions-C6wsszcG.js";import"./file-CKSjJRX5.js";import"./file-drag-GDx2qhdk.js";import"./find-latest-widget-fence-BsDq4SYp.js";import"./WidgetErrorCard-BZkAK-Ke.js";import"./index-Hf3kLtiJ.js";import"./card-D9DO5nt4.js";import"./progress-AKcr8opu.js";import"./table-D6BUawIb.js";import"./package-CxZe6vve.js";import"./heart-CRoafWCm.js";import"./git-branch-DlUQMA-U.js";import"./file-text-DXPPkxAL.js";import"./paperclip-D3-8ygf1.js";import"./index-ByyXrDny.js";import"./RuntimeSetupDialog-NKy3mLEH.js";import"./inline-code-BCFlKPIb.js";import"./list-runtime-types-B1J9AtqH.js";import"./RuntimeConnectFlow-hhvWVRMu.js";import"./useMutationState-BX-ggHVY.js";import"./runtime-connect-Dn0T5YWv.js";import"./use-transform-CNLqlc2h.js";import"./repeat-zL9y24zY.js";import"./format-duration-BCr6uzby.js";import"./mention-pill-0aHe3D1A.js";import"./rotate-ccw-clock-BUhy2_cF.js";import"./unplug-BVIT6OSL.js";import"./message-square-off-DvVenheW.js";import"./registry-CWK5lzYs.js";/**
|
|
2
2
|
* @license lucide-react v1.48.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|