dorkos 0.124.0 → 0.125.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 +2319 -1483
- package/dist/browser/native/package-manifest.json +1 -1
- package/dist/browser/source-manifest.json +1 -1
- package/dist/client/assets/{AboutPage-BH8Ndn3e.js → AboutPage-GdrU2Z3k.js} +1 -1
- package/dist/client/assets/{ActivityErrorState-K5Mew9EX.js → ActivityErrorState-D1T74VJE.js} +1 -1
- package/dist/client/assets/{ActivityPage-BB20L5HU.js → ActivityPage-7GXGUwd1.js} +1 -1
- package/dist/client/assets/{ActivityRow-C5O7rnmS.js → ActivityRow-C-8dACWp.js} +1 -1
- package/dist/client/assets/{AdapterIcon-Bmybvrzb.js → AdapterIcon-CRRs6yil.js} +1 -1
- package/dist/client/assets/{AdapterSetupWizard-CkdV7Hhh.js → AdapterSetupWizard-K6DsejqG.js} +2 -2
- package/dist/client/assets/{AgentOptionRow-BA2cDa7r.js → AgentOptionRow-CF5XZmBx.js} +1 -1
- package/dist/client/assets/{AgentPicker-CsIIPGZJ.js → AgentPicker-BXes2ymU.js} +1 -1
- package/dist/client/assets/{AgentRequestCard-0fOxvaoe.js → AgentRequestCard-BuXVpWfb.js} +4 -4
- package/dist/client/assets/{AppearancePage-XOjkkoli.js → AppearancePage-DoqoCU4j.js} +1 -1
- package/dist/client/assets/ApplyToOverridesDialog-By8jgPX3.js +1 -0
- package/dist/client/assets/AttentionSignalRow-CgGyTDmT.js +1 -0
- package/dist/client/assets/{BaseTanStackRouterDevtoolsPanel-B-iktbLX-9TVHyRPJ.js → BaseTanStackRouterDevtoolsPanel-B-iktbLX-BzDxZ-G5.js} +3 -3
- package/dist/client/assets/{BindingDialog-DLoAQauL.js → BindingDialog-BXfjFGvP.js} +1 -1
- package/dist/client/assets/{BlintzCanvas-CYHsXAcY.js → BlintzCanvas-C-dobEns.js} +4 -4
- package/dist/client/assets/{CanvasCsvContent--Gr7Fe_U.js → CanvasCsvContent-ClMFJX7T.js} +4 -4
- package/dist/client/assets/CanvasFileContent-BoDE2jjA.js +2 -0
- package/dist/client/assets/CanvasModel3dContent-fnWc0B7B.js +2 -0
- package/dist/client/assets/ChannelComposer-DIRPjyyf.js +44 -0
- package/dist/client/assets/{ChatAppsOff-D4L1zJVN.js → ChatAppsOff-DlCWmwEz.js} +1 -1
- package/dist/client/assets/{CodeMirrorDiff-DY_6ju-z.js → CodeMirrorDiff-COsbYyNC.js} +2 -2
- package/dist/client/assets/{CodeMirrorEditor-BUoDBsBv.js → CodeMirrorEditor-n3l14rY7.js} +1 -1
- package/dist/client/assets/{CommitmentList-wDkcVP9c.js → CommitmentList-S2O_hvwR.js} +1 -1
- package/dist/client/assets/{CommitmentsPage-CzSM6b8R.js → CommitmentsPage-COOCQFpL.js} +1 -1
- package/dist/client/assets/{ComputerResourceView-cERD9H2L.js → ComputerResourceView-PA9T4FZP.js} +1 -1
- package/dist/client/assets/{ComputerViewer-rMcfbk2_.js → ComputerViewer-CnYUWQBS.js} +1 -1
- package/dist/client/assets/{ConnectionAccessLists-f7QeQbQo.js → ConnectionAccessLists-C1ZJtNl-.js} +1 -1
- package/dist/client/assets/{ConnectionsPage-BmjtA6pw.js → ConnectionsPage-BBpWiN4-.js} +2 -2
- package/dist/client/assets/{ConventionPage-CH-ah6nI.js → ConventionPage-sa0Yn2uq.js} +3 -3
- package/dist/client/assets/{ExtensionPageRoute-CJIxa6ST.js → ExtensionPageRoute-BztrmZNp.js} +2 -2
- package/dist/client/assets/{FloatingTanStackRouterDevtools-CqogiFob-BP7EJ2JL.js → FloatingTanStackRouterDevtools-CqogiFob-CJrqr29-.js} +1 -1
- package/dist/client/assets/HandlePage-tZidnrlt.js +1 -0
- package/dist/client/assets/{HeartbeatPage-BUsf-qrU.js → HeartbeatPage-BkyUpdZt.js} +1 -1
- package/dist/client/assets/{KeyEntry-C2kWdN8q.js → KeyEntry-DAMr1NNY.js} +1 -1
- package/dist/client/assets/{LexicalField-CR8ulsI_.js → LexicalField-Cnzrh08A.js} +2 -2
- package/dist/client/assets/{ManagesPage-DTtsIOGi.js → ManagesPage-EAbQtygH.js} +1 -1
- package/dist/client/assets/{Marketplace-iaV5XAzv.js → Marketplace-BfADALGd.js} +2 -2
- package/dist/client/assets/{MarketplaceSourcesView-6tgzUfFj.js → MarketplaceSourcesView-u1WKUk-p.js} +1 -1
- package/dist/client/assets/{McpAppFrame-C7eYYdI9.js → McpAppFrame-Cz-Ttlqr.js} +1 -1
- package/dist/client/assets/{McpSigninBody-BDyGbJ7I.js → McpSigninBody-CkOBUhOz.js} +1 -1
- package/dist/client/assets/{Model3dViewer-BujDNuVS.js → Model3dViewer-CvLaSO7V.js} +1 -1
- package/dist/client/assets/NamePage-BS-oN_Hi.js +1 -0
- package/dist/client/assets/{NewDirectMessageMenu-D4e-z2Jt.js → NewDirectMessageMenu-Be_4mBPd.js} +1 -1
- package/dist/client/assets/{NotificationsPage-CkDeTaJp.js → NotificationsPage-GCk9gfsW.js} +1 -1
- package/dist/client/assets/{OpenMeshSwitch-CtbOt3r5.js → OpenMeshSwitch-BBzgYSUc.js} +2 -2
- package/dist/client/assets/{OperatorIdentityForm-Vr4qZnmM.js → OperatorIdentityForm-ZAbJ4FJn.js} +1 -1
- package/dist/client/assets/PermissionHistory-DgmFpdJK.js +1 -0
- package/dist/client/assets/{PermissionsPage-f4QaX8oM.js → PermissionsPage-DHFt_34a.js} +1 -1
- package/dist/client/assets/{PersonalityPopover-BkZruwF-.js → PersonalityPopover-CobRy95S.js} +1 -1
- package/dist/client/assets/PhotoPage-BmFypD13.js +1 -0
- package/dist/client/assets/{PreviewRefusedNotice-BXC2K0tx.js → PreviewRefusedNotice-Ux5sq2Om.js} +1 -1
- package/dist/client/assets/ProfileFields-kBzeRPfc.js +1 -0
- package/dist/client/assets/{ProfilePanelContainer-DZoL65zQ.js → ProfilePanelContainer-CREt4ZC3.js} +1 -1
- package/dist/client/assets/{ProfileRolePicker-D9H7wsuT.js → ProfileRolePicker-hQbo8P6M.js} +1 -1
- package/dist/client/assets/{PromptSuggestionChips-B5fDmc-g.js → PromptSuggestionChips-CmW1lIso.js} +1 -1
- package/dist/client/assets/{ReportsToPopover-uVYhSqj7.js → ReportsToPopover-Dpa-_NsO.js} +1 -1
- package/dist/client/assets/RoomSurface-BQhgKnIE.js +1 -0
- package/dist/client/assets/{RoomsPage-yflYFulU.js → RoomsPage-BHUDRYzJ.js} +1 -1
- package/dist/client/assets/{RunsOnPopover-DtGrX1Vq.js → RunsOnPopover-bGZ6VJoF.js} +1 -1
- package/dist/client/assets/RuntimeConnectFlow-DN2ElvcH.js +1 -0
- package/dist/client/assets/{RuntimeSetupDialog-Cr4GRi8c.js → RuntimeSetupDialog-CUFie4LV.js} +1 -1
- package/dist/client/assets/SeenDevices-D_FnsL7V.js +19 -0
- package/dist/client/assets/{SessionsPage-BWu-en78.js → SessionsPage-1uOPUCP9.js} +1 -1
- package/dist/client/assets/SettingsDialog-AbwEHDG8.js +12 -0
- package/dist/client/assets/{SkillsPage-BdUb9SZy.js → SkillsPage-BEobBuAr.js} +1 -1
- package/dist/client/assets/TaskDialogWrapper-BAFSmT-z.js +1 -0
- package/dist/client/assets/{TasksEmptyState-Bgcg9vxF.js → TasksEmptyState-BFw2ODM-.js} +2 -2
- package/dist/client/assets/{TasksPage-Ch5W2WQS.js → TasksPage-C0CMgSFx.js} +1 -1
- package/dist/client/assets/{TeamComputerEntry-CPwSIMRw.js → TeamComputerEntry-BpjxLA1n.js} +1 -1
- package/dist/client/assets/ToolsPage-dx-rQ2F1.js +2 -0
- package/dist/client/assets/TopologyGraph-LpxkBhGK.js +30 -0
- package/dist/client/assets/{TourHost-BPaSwh9I.js → TourHost--UYZoKlJ.js} +1 -1
- package/dist/client/assets/{UnlinkDialog-BUWZUu5P.js → UnlinkDialog-BN2odbqD.js} +1 -1
- package/dist/client/assets/UnreadDivider-LbVIAoxM.js +1 -0
- package/dist/client/assets/{WidgetErrorCard-cS8yMCxU.js → WidgetErrorCard-CAUx4KUI.js} +7 -7
- package/dist/client/assets/WorkView-DVx4WoVI.js +63 -0
- package/dist/client/assets/_shell-D7Jp6t6_.js +80 -0
- package/dist/client/assets/{_shell._home-DCA5k-jb.js → _shell._home-uuqgFA3M.js} +1 -1
- package/dist/client/assets/{_shell._home.activity-BX4nFLna.js → _shell._home.activity-CiMsy7bF.js} +1 -1
- package/dist/client/assets/_shell._home.index-0Zm5q3-G.js +3 -0
- package/dist/client/assets/{_shell._home.tasks-BgUeEvhK.js → _shell._home.tasks-BClPai4g.js} +1 -1
- package/dist/client/assets/{_shell._home.workspaces-BPBdnkRt.js → _shell._home.workspaces-DH4BgLT0.js} +1 -1
- package/dist/client/assets/{_shell.channels-CX4kki7G.js → _shell.channels-BGXkXPhY.js} +4 -4
- package/dist/client/assets/{_shell.connections-0vP7g7E4.js → _shell.connections-BwjXkgi1.js} +1 -1
- package/dist/client/assets/{_shell.feedback-requests-TsuaO4eR.js → _shell.feedback-requests-j7gTBF5b.js} +1 -1
- package/dist/client/assets/_shell.marketplace-6JRXJ9gt.js +1 -0
- package/dist/client/assets/_shell.marketplace_.sources-DriHXfBM.js +1 -0
- package/dist/client/assets/_shell.session-BXSWGdwi.js +1 -0
- package/dist/client/assets/{_shell.team-Bm6cOBhR.js → _shell.team-BgJu1gDa.js} +5 -5
- package/dist/client/assets/_shell.threads-C1IJJzcf.js +1 -0
- package/dist/client/assets/_shell.x._extensionId-BNgicBXG.js +1 -0
- package/dist/client/assets/_shell.x._extensionId_._-BNgicBXG.js +1 -0
- package/dist/client/assets/{abnfDiagram-WEYOIA3C-CrvoN15x.js → abnfDiagram-WEYOIA3C-BuEHMh0D.js} +1 -1
- package/dist/client/assets/{access-copy-B3yNZ7Gz.js → access-copy-BZNjpw9v.js} +1 -1
- package/dist/client/assets/{arc-CuT6QA_y.js → arc-BbGU9Ctb.js} +1 -1
- package/dist/client/assets/{architectureDiagram-ZHVYKT53-CPXCZ9H4.js → architectureDiagram-ZHVYKT53-CdRG5sTM.js} +2 -2
- package/dist/client/assets/{banner-DRumuw3F.js → banner-C7kHJJGz.js} +2 -2
- package/dist/client/assets/{blockDiagram-RJAE7QA3-CM0rka9p.js → blockDiagram-RJAE7QA3-CBQ6YXoI.js} +1 -1
- package/dist/client/assets/{c4Diagram-XDPPPE54-D4j2cXRy.js → c4Diagram-XDPPPE54-DavNcKCF.js} +1 -1
- package/dist/client/assets/{card-B3CtfC3R.js → card-D4ek-VvX.js} +1 -1
- package/dist/client/assets/channel-ClNeQ2PQ.js +1 -0
- package/dist/client/assets/{chunk-2E7WHVMD-KGyqhVpO.js → chunk-2E7WHVMD-ClO15ze9.js} +1 -1
- package/dist/client/assets/{chunk-2Q5K7J3B-Dl0BHoqK.js → chunk-2Q5K7J3B-DsLDzf_i.js} +1 -1
- package/dist/client/assets/{chunk-4EMNKR2T-Da7vH6Kv.js → chunk-4EMNKR2T-D20fXIIK.js} +1 -1
- package/dist/client/assets/{chunk-55XCU76K-DgBUEROO.js → chunk-55XCU76K-no_S5sRX.js} +1 -1
- package/dist/client/assets/{chunk-5VM5RSS4-BQ4mn-_I.js → chunk-5VM5RSS4-D5xWEZ2p.js} +1 -1
- package/dist/client/assets/{chunk-JWPE2WC7-8LPR3mXf.js → chunk-JWPE2WC7-CnsdZOv0.js} +1 -1
- package/dist/client/assets/{chunk-VQ5W62QI-BkIVXi4W.js → chunk-VQ5W62QI-DxYg8tsH.js} +1 -1
- package/dist/client/assets/{chunk-XXDRQBXY-DQXJx06h.js → chunk-XXDRQBXY-7CQ-MKdC.js} +1 -1
- package/dist/client/assets/{chunk-ZCHMQSOR-DzCE7qlD.js → chunk-ZCHMQSOR-Ca7Jh42b.js} +2 -2
- package/dist/client/assets/{classDiagram-v2-4MYWR3UA-C_cZra7c.js → classDiagram-v2-4MYWR3UA-BvZXavcI.js} +1 -1
- package/dist/client/assets/{command-CDKbyppr.js → command-srO4Wv-5.js} +1 -1
- package/dist/client/assets/{cose-bilkent-JH36ORCC-DlXHdGwT.js → cose-bilkent-JH36ORCC-1NCiJaHv.js} +1 -1
- package/dist/client/assets/{cpu-B7xLO7jn.js → cpu-CFIu4JtK.js} +1 -1
- package/dist/client/assets/{cynefin-EF2NZ3EQ-HhP4ArLc.js → cynefin-EF2NZ3EQ-DgZeohG3.js} +1 -1
- package/dist/client/assets/{cynefinDiagram-WF24UDRP-D4GgWnZV.js → cynefinDiagram-WF24UDRP-MQB2xbJK.js} +1 -1
- package/dist/client/assets/{dagre-NK4GIZVX-SZ_OI2Zi.js → dagre-NK4GIZVX-BFHk_Y44.js} +1 -1
- package/dist/client/assets/{diagram-CBK3MWTC-BN-_Ja5m.js → diagram-CBK3MWTC-CloEvZfp.js} +1 -1
- package/dist/client/assets/{diagram-I5XIIV2D-t7AK6xnL.js → diagram-I5XIIV2D-9nzUtfKI.js} +1 -1
- package/dist/client/assets/{diagram-ODIL2UCW-C1V7szSc.js → diagram-ODIL2UCW-DVdnelgu.js} +1 -1
- package/dist/client/assets/{diagram-PFBEJUXE-DPtraQ2g.js → diagram-PFBEJUXE-tTEeiAHa.js} +1 -1
- package/dist/client/assets/{diagram-RJA3I4VV-D2XNRB2b.js → diagram-RJA3I4VV-QFehV9_1.js} +1 -1
- package/dist/client/assets/{diagram-TYUNFSNR-BieaRy38.js → diagram-TYUNFSNR-CYU5li-4.js} +1 -1
- package/dist/client/assets/{ebnfDiagram-V4P3TTPT-Bwki86UY.js → ebnfDiagram-V4P3TTPT-Cn040Beg.js} +1 -1
- package/dist/client/assets/{elk-QONTBCTQ-WEXSAyHB.js → elk-QONTBCTQ-tBbnwcb3.js} +1 -1
- package/dist/client/assets/{empty-state-J-UJ0BUU.js → empty-state-Bxfi7_ss.js} +1 -1
- package/dist/client/assets/{erDiagram-KYQIGQAA-DIKASnoc.js → erDiagram-KYQIGQAA-DAA0fFlD.js} +1 -1
- package/dist/client/assets/{execution-config-ILQiJAmy.js → execution-config-afKaYukD.js} +1 -1
- package/dist/client/assets/{file-D40js1Zx.js → file-C-ooqbRY.js} +1 -1
- package/dist/client/assets/{file-exclamation-point-Dg3ZpiAe.js → file-exclamation-point-BWWgLsMF.js} +1 -1
- package/dist/client/assets/{file-text-DgdvRfMk.js → file-text-BJt8biPY.js} +1 -1
- package/dist/client/assets/{find-latest-widget-fence-D4kBWC_1.js → find-latest-widget-fence-DPQimlUD.js} +2 -2
- package/dist/client/assets/{flowDiagram-IUGLLWBU-CoavNw0M.js → flowDiagram-IUGLLWBU-vYI6TodS.js} +1 -1
- package/dist/client/assets/{form-DlPwEgQH.js → form-LJ2Rf9ny.js} +1 -1
- package/dist/client/assets/{format-cron-BrK8RzgT.js → format-cron-DrUISrHj.js} +1 -1
- package/dist/client/assets/{ganttDiagram-R7GPNTJY-DccKAz7f.js → ganttDiagram-R7GPNTJY-DLYpSX7r.js} +3 -3
- package/dist/client/assets/{git-branch-BpxhecMq.js → git-branch-D5xr7U5P.js} +1 -1
- package/dist/client/assets/{gitGraphDiagram-PDYL7XHY-DEbo_dgQ.js → gitGraphDiagram-PDYL7XHY-DNIbVOaY.js} +1 -1
- package/dist/client/assets/{graph-DROgI3M3.js → graph-DNjxkUSL.js} +1 -1
- package/dist/client/assets/{heart-c7u4Ezxt.js → heart-DnR_GX4I.js} +1 -1
- package/dist/client/assets/{highlighted-body-KPVGNVTW-CrATNdTR.js → highlighted-body-KPVGNVTW-L_Jd2uei.js} +1 -1
- package/dist/client/assets/image-lightbox-DZIhMyF3.js +1 -0
- package/dist/client/assets/{image-off-BExgZjfM.js → image-off-DdvvVxmq.js} +2 -2
- package/dist/client/assets/index-5eNHb7up.js +1 -0
- package/dist/client/assets/{index-BVqSmajJ.js → index-5hCWBj-r.js} +1 -1
- package/dist/client/assets/{index-Be0OJLWK.js → index-9GoQjBFo.js} +1 -1
- package/dist/client/assets/{index-DswGXheF.js → index-ANmu61E0.js} +1 -1
- package/dist/client/assets/{index-dyAahqKe.js → index-B0jt7Nng.js} +1 -1
- package/dist/client/assets/index-B1gC3xYN.js +1 -0
- package/dist/client/assets/{index-DDgOoXP1.js → index-B2wx4J9U.js} +1 -1
- package/dist/client/assets/{index-DksjixUS.js → index-BAIKz_P0.js} +1 -1
- package/dist/client/assets/{index-CT_pFeX_.js → index-BFecX5dC.js} +1 -1
- package/dist/client/assets/{index-CqPRAM_6.js → index-BWQfqbbe.js} +1 -1
- package/dist/client/assets/{index-BlyoyIck.js → index-BYeyKNKj.js} +1 -1
- package/dist/client/assets/{index-CD8aw6Jb.js → index-Ba9q2CoQ.js} +1 -1
- package/dist/client/assets/{index-DeRDq7bD.js → index-Blhsfk7u.js} +1 -1
- package/dist/client/assets/{index-mwf7ZNk2.js → index-Bpwvxz0c.js} +1 -1
- package/dist/client/assets/{index-CYy1cjtq.js → index-BqKjnd_r.js} +1 -1
- package/dist/client/assets/{index-2wezsLA_.js → index-Bri5bZfv.js} +1 -1
- package/dist/client/assets/{index-CZmqtJWZ.js → index-BsHyymmC.js} +1 -1
- package/dist/client/assets/index-BsmR2hi4.js +23 -0
- package/dist/client/assets/index-By-VWzSF.js +43 -0
- package/dist/client/assets/{index-D150FXCC.js → index-By8pKNSM.js} +1 -1
- package/dist/client/assets/{index-B3eeEDWj.js → index-BzKkoaB1.js} +3 -3
- package/dist/client/assets/{index-DaZ1I8s-.js → index-CDGWl8qL.js} +1 -1
- package/dist/client/assets/{index-J3Hh1MnL.js → index-CDo6TA8n.js} +1 -1
- package/dist/client/assets/{index-DINk1YfD.js → index-CLQIvYHP.js} +1 -1
- package/dist/client/assets/{index-D3YeRrne.js → index-CLbs0fcq.js} +1 -1
- package/dist/client/assets/{index-DxiRRZRo.js → index-CQ2atcs_.js} +1 -1
- package/dist/client/assets/index-CSqz4B0v.js +1 -0
- package/dist/client/assets/{index-BizvylBV.js → index-CXWlrRzK.js} +1 -1
- package/dist/client/assets/{index-CbHCZsbE.js → index-D-Q7CW4p.js} +1 -1
- package/dist/client/assets/index-D0ujPZdD.js +1 -0
- package/dist/client/assets/index-D1kQ19Gb.css +1 -0
- package/dist/client/assets/index-DHi8-3w0.js +1 -0
- package/dist/client/assets/index-DKTd8X7n.js +1053 -0
- package/dist/client/assets/{index-D0eJtRlK.js → index-DTuNXPGU.js} +1 -1
- package/dist/client/assets/{index-Ccf1XBTs.js → index-DXWsH2Ep.js} +1 -1
- package/dist/client/assets/index-DjFFFMc-.js +2 -0
- package/dist/client/assets/{index-C7B3eSOP.js → index-DqCxUalt.js} +1 -1
- package/dist/client/assets/{index-C5or4L_3.js → index-Ixk2o7yl.js} +1 -1
- package/dist/client/assets/{index-AzyLwYS_.js → index-ZYbeRA5f.js} +3 -3
- package/dist/client/assets/index-a6ojvFqI.js +1 -0
- package/dist/client/assets/{index-DT7pv2iW.js → index-adYd35CJ.js} +1 -1
- package/dist/client/assets/{index-DhHobJd3.js → index-ld6lMfGU.js} +1 -1
- package/dist/client/assets/{index-DNGNMW3c.js → index-r0stHl-2.js} +1 -1
- package/dist/client/assets/index-uIonuakd.js +1 -0
- package/dist/client/assets/{index-BEkYBuOq.js → index-xfRcAp50.js} +1 -1
- package/dist/client/assets/{index.esm-BFJ9SG0n.js → index.esm-j5KQ_b6S.js} +1 -1
- package/dist/client/assets/{infoDiagram-MVDRKAX5-VL8q5pKx.js → infoDiagram-MVDRKAX5-DjvSkTas.js} +1 -1
- package/dist/client/assets/{inline-code-BE9ckzPs.js → inline-code-DlVYFFW7.js} +1 -1
- package/dist/client/assets/{ishikawaDiagram-HPEHV2GE-BLKkPYF-.js → ishikawaDiagram-HPEHV2GE-BBivrI5n.js} +1 -1
- package/dist/client/assets/{journeyDiagram-BOSHW7O7-CSYpRobu.js → journeyDiagram-BOSHW7O7-DKdhbtdx.js} +1 -1
- package/dist/client/assets/{kanban-definition-FNSA4HC5-HilAqtZo.js → kanban-definition-FNSA4HC5-CkgAodR5.js} +1 -1
- package/dist/client/assets/{layers-Cm7coqdo.js → layers-CzyhuVSM.js} +1 -1
- package/dist/client/assets/{lightbulb-DqdWS75d.js → lightbulb-DwGE7s99.js} +1 -1
- package/dist/client/assets/{link-2-CDJapTSa.js → link-2-CljREnN9.js} +1 -1
- package/dist/client/assets/{list-runtime-types-CP82p1u4.js → list-runtime-types-D5ZO30FL.js} +1 -1
- package/dist/client/assets/{markdown-content-m_qereFc.js → markdown-content-CN_dGlgE.js} +1 -1
- package/dist/client/assets/{mention-pill-DV5HIG5Q.js → mention-pill-C6OT4gx4.js} +1 -1
- package/dist/client/assets/{mermaid.core-zxW6MBr-.js → mermaid.core-DNuzxE7q.js} +4 -4
- package/dist/client/assets/{message-square-off-YVtpbaJ0.js → message-square-off-DlkAPJdd.js} +1 -1
- package/dist/client/assets/{mindmap-definition-6OY57UG3-IAYemvOg.js → mindmap-definition-6OY57UG3-f9ygKKO1.js} +1 -1
- package/dist/client/assets/{more-details-ReA2ZFBn.js → more-details-DRPervoL.js} +1 -1
- package/dist/client/assets/{owner-notice-M4hn_1ep.js → owner-notice-C-Q9ySA7.js} +1 -1
- package/dist/client/assets/{package-CUuTl39E.js → package-BVNiaGrb.js} +1 -1
- package/dist/client/assets/{page-container-BnmNikNZ.js → page-container-D03bhclt.js} +1 -1
- package/dist/client/assets/pane-resize-handle-CZ9rHhNr.js +1 -0
- package/dist/client/assets/{paperclip-C6fYq5Zf.js → paperclip-DQQVX5tJ.js} +1 -1
- package/dist/client/assets/{path-input-DHn9-XaE.js → path-input-CQ16nhYd.js} +1 -1
- package/dist/client/assets/{pegDiagram-ECIUJNBX-CojaUwe7.js → pegDiagram-ECIUJNBX-CZ_YkcKh.js} +1 -1
- package/dist/client/assets/{pieDiagram-GNMPY74T-CjP3pw6V.js → pieDiagram-GNMPY74T-DLHSPEH7.js} +1 -1
- package/dist/client/assets/{plug-DHQcxt7N.js → plug-CadJyjTp.js} +1 -1
- package/dist/client/assets/primer-trigger-DH4xfrlM.js +3 -0
- package/dist/client/assets/profile-errors-DSnHlauU.js +1 -0
- package/dist/client/assets/{progress-4FQQfnS6.js → progress-BB97hlmb.js} +1 -1
- package/dist/client/assets/{quadrantDiagram-D57K4MC3-OP0Z8zcR.js → quadrantDiagram-D57K4MC3-BWcUu48x.js} +1 -1
- package/dist/client/assets/{query-error-state-BkUdxenP.js → query-error-state-B456s96E.js} +1 -1
- package/dist/client/assets/{radio-ta5Bw763.js → radio-DrpN3x3S.js} +1 -1
- package/dist/client/assets/{railroadDiagram-Y72NRBL7-CT3NCb9b.js → railroadDiagram-Y72NRBL7-C2VRM83h.js} +1 -1
- package/dist/client/assets/registry-DRvQ3ChB.js +1 -0
- package/dist/client/assets/{relay-trace-schemas-DwUuyxao.js → relay-trace-schemas-BYCaGsVJ.js} +2 -2
- package/dist/client/assets/repeat-DPzic7-j.js +11 -0
- package/dist/client/assets/{requirementDiagram-EQYSW5RA-tde4lYGp.js → requirementDiagram-EQYSW5RA-B1bpdcM7.js} +1 -1
- package/dist/client/assets/{room-files-source-CZWhaaOy.js → room-files-source-aN4p_kDV.js} +2 -2
- package/dist/client/assets/{rotate-ccw-clock-RfbbgUa4.js → rotate-ccw-clock-gqBy98sI.js} +1 -1
- package/dist/client/assets/{rotate-cw-B3rB_YSw.js → rotate-cw-mHsqEte-.js} +1 -1
- package/dist/client/assets/{sankeyDiagram-SY24JHO5-sdCzIA7-.js → sankeyDiagram-SY24JHO5-QCGTTh9k.js} +1 -1
- package/dist/client/assets/{scroll-area-B4WB7Q40.js → scroll-area-DVd6ctli.js} +1 -1
- package/dist/client/assets/{search-x-DCUmWW2_.js → search-x-CzgTzL0z.js} +2 -2
- package/dist/client/assets/{sequenceDiagram-BLEHNHQU-DvzTJcKu.js → sequenceDiagram-BLEHNHQU-kiR1gX_u.js} +1 -1
- package/dist/client/assets/{shield-x-CANziVLc.js → shield-x-Btfd3Xnx.js} +1 -1
- package/dist/client/assets/{signed-in-DctJ2IWe.js → signed-in-gS3tMpTW.js} +1 -1
- package/dist/client/assets/{sizeCapture-INFHLROL-DuDA7TKE.js → sizeCapture-INFHLROL-Da56aMj0.js} +1 -1
- package/dist/client/assets/{soul-file-Co_8f1qw.js → soul-file-C7zd1yXt.js} +1 -1
- package/dist/client/assets/{stateDiagram-v2-A6IESKWZ-BJPX5JTC.js → stateDiagram-v2-A6IESKWZ-BZ3qlQWl.js} +1 -1
- package/dist/client/assets/{swimlanes-B3ENRKFQ-CiLSffGv.js → swimlanes-B3ENRKFQ-B-wp91_T.js} +1 -1
- package/dist/client/assets/swimlanesDiagram-AYQRV4AK-Drg_8k1s.js +8 -0
- package/dist/client/assets/{table-BSAvOYPp.js → table-BIdFvzBs.js} +1 -1
- package/dist/client/assets/{timeline-definition-JXYKGLGB-5oq8sl82.js → timeline-definition-JXYKGLGB-CQojjy-8.js} +1 -1
- package/dist/client/assets/{trust-posture-D-Yjm6ot.js → trust-posture-DszobEjt.js} +1 -1
- package/dist/client/assets/{unplug-Bq_1WdV7.js → unplug-xlfZ61jC.js} +1 -1
- package/dist/client/assets/{unverified-catalog-notice-CEzu54YH.js → unverified-catalog-notice-DymrAwtm.js} +1 -1
- package/dist/client/assets/{use-adapter-catalog-Tn3ZbPAj.js → use-adapter-catalog-CytBTafV.js} +1 -1
- package/dist/client/assets/{use-bindings-Bz9YRgO7.js → use-bindings-BPNK3sUh.js} +1 -1
- package/dist/client/assets/{use-composer-prefs-D9oKJSQN.js → use-composer-prefs-DMQT0qiv.js} +1 -1
- package/dist/client/assets/{use-connector-management-CLYFraXN.js → use-connector-management-PDVdWccW.js} +1 -1
- package/dist/client/assets/{use-deep-link-scroll-DkS713kG.js → use-deep-link-scroll-CwapSmGj.js} +1 -1
- package/dist/client/assets/{use-delete-binding-CukKpHBK.js → use-delete-binding-CgTwS83G.js} +1 -1
- package/dist/client/assets/{use-dev-links-DQ32IcGe.js → use-dev-links-BoZCIc4h.js} +1 -1
- package/dist/client/assets/use-direct-message-panel-Cs4I6669.js +1 -0
- package/dist/client/assets/{use-external-adapter-catalog-D-FO_XW6.js → use-external-adapter-catalog-PBrsasQ8.js} +1 -1
- package/dist/client/assets/{use-full-activity-feed-BNxcyb1j.js → use-full-activity-feed-C2seN-V1.js} +1 -1
- package/dist/client/assets/use-is-below-desktop-pvzUlnxh.js +1 -0
- package/dist/client/assets/use-is-hub-CvEPWuj0.js +1 -0
- package/dist/client/assets/{use-local-browser-xg7WXAVK.js → use-local-browser-CF0uGQ6e.js} +1 -1
- package/dist/client/assets/{use-mesh-topology-BgCSFw8s.js → use-mesh-topology-CnCeK4gS.js} +1 -1
- package/dist/client/assets/{use-mounted-ref-qRbdZfOU.js → use-mounted-ref-BtAb14HI.js} +1 -1
- package/dist/client/assets/{use-notification-prefs-B-4kZR7I.js → use-notification-prefs-B8LHpZTt.js} +1 -1
- package/dist/client/assets/{use-panel-tab-placements-CCq-mZlY.js → use-panel-tab-placements-DOXj0Pii.js} +1 -1
- package/dist/client/assets/use-pending-read-DBaC7e8N.js +1 -0
- package/dist/client/assets/{use-personality-commit-DwSisUfF.js → use-personality-commit-YV9FVC-a.js} +1 -1
- package/dist/client/assets/{use-promo-activation-Botoso6l.js → use-promo-activation-CjtGhz_3.js} +3 -3
- package/dist/client/assets/{use-promo-dismissals-RJXp-r_J.js → use-promo-dismissals-4rbLgSDG.js} +1 -1
- package/dist/client/assets/{use-pulse-freshness-B3390hGg.js → use-pulse-freshness-CGqANpVO.js} +1 -1
- package/dist/client/assets/{use-relay-config-BV0xcLwS.js → use-relay-config-CvU_70WJ.js} +1 -1
- package/dist/client/assets/{use-room-follow-claim-Du4hKHIJ.js → use-room-follow-claim-Doq_lWjk.js} +1 -1
- package/dist/client/assets/use-room-sessions-CoEIaBRt.js +1 -0
- package/dist/client/assets/{use-roving-tab-list-g2hO6Ruz.js → use-roving-tab-list-BzsrpjWV.js} +1 -1
- package/dist/client/assets/use-session-canvas-DQ9ND8il.js +27 -0
- package/dist/client/assets/use-status-budget-AnHroEO0.js +16 -0
- package/dist/client/assets/{use-unclaimed-chats-B92om889.js → use-unclaimed-chats-DzOLK27i.js} +1 -1
- package/dist/client/assets/use-update-config-NRkQbxae.js +1 -0
- package/dist/client/assets/{useMutationState-DdOGdpjP.js → useMutationState-BAU_J-u3.js} +1 -1
- package/dist/client/assets/{usecaseDiagram-WPOLBNNX-Di5pJvcw.js → usecaseDiagram-WPOLBNNX-BrHN0c6G.js} +1 -1
- package/dist/client/assets/{vennDiagram-Q3Y3IDCW-K7KAf26T.js → vennDiagram-Q3Y3IDCW-CbeP0Pbp.js} +1 -1
- package/dist/client/assets/{wardleyDiagram-IVAIDKWA-DVTaxQt9.js → wardleyDiagram-IVAIDKWA-mn5ebFhs.js} +1 -1
- package/dist/client/assets/{xychartDiagram-4URNHDU4-x-lSJm_B.js → xychartDiagram-4URNHDU4-C8fXRQEv.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/drizzle/20261019185620_dor3037_wifi_holds.sql +8 -0
- package/dist/drizzle/20261020142444_read_cursor_room_thread.sql +17 -0
- package/dist/drizzle/20261021004938_dor3203_settle_turn_holds.sql +7 -0
- package/dist/drizzle/20261021153328_dor3175_person_chat_mode.sql +1 -0
- package/dist/drizzle/meta/20261019185620_snapshot.json +14079 -0
- package/dist/drizzle/meta/20261020142444_snapshot.json +14079 -0
- package/dist/drizzle/meta/20261021004938_snapshot.json +14079 -0
- package/dist/drizzle/meta/20261021153328_snapshot.json +14086 -0
- package/dist/drizzle/meta/_journal.json +28 -0
- package/dist/server/extension-child.cjs +45 -3
- package/dist/server/index.js +61358 -29913
- package/dist/server/index.js.map +2 -2
- package/package.json +9 -9
- package/dist/client/assets/ApplyToOverridesDialog-CoO6V1G4.js +0 -1
- package/dist/client/assets/AttentionSignalRow-CjjZobp7.js +0 -1
- package/dist/client/assets/CanvasFileContent-estXyAbr.js +0 -2
- package/dist/client/assets/CanvasModel3dContent-CkOo930M.js +0 -2
- package/dist/client/assets/HandlePage-Cg8H3mQS.js +0 -1
- package/dist/client/assets/NamePage-Bx8T98OF.js +0 -1
- package/dist/client/assets/PermissionHistory-DzU1rf2B.js +0 -1
- package/dist/client/assets/PhotoPage-CmrOIRjf.js +0 -1
- package/dist/client/assets/ProfileFields-BebX5oiv.js +0 -1
- package/dist/client/assets/RoomSurface-Bg5WV4Ep.js +0 -44
- package/dist/client/assets/RuntimeConnectFlow-DjReuQ-T.js +0 -1
- package/dist/client/assets/SeenDevices-SPWkdzoK.js +0 -19
- package/dist/client/assets/SettingsDialog-_dEXUhHe.js +0 -12
- package/dist/client/assets/TaskDialogWrapper-qYJPEoSR.js +0 -1
- package/dist/client/assets/ToolsPage-Idimrn3o.js +0 -2
- package/dist/client/assets/TopologyGraph-I4_mkMHM.js +0 -30
- package/dist/client/assets/_shell-ClVN2pUj.js +0 -80
- package/dist/client/assets/_shell._home.index-C8t8cw72.js +0 -3
- package/dist/client/assets/_shell.marketplace-CiL6YRbl.js +0 -1
- package/dist/client/assets/_shell.marketplace_.sources-C0sI8e21.js +0 -1
- package/dist/client/assets/_shell.session-_hhBvFc6.js +0 -63
- package/dist/client/assets/_shell.x._extensionId-BWy5v1YE.js +0 -1
- package/dist/client/assets/_shell.x._extensionId_._-BWy5v1YE.js +0 -1
- package/dist/client/assets/channel-DjBlTcCV.js +0 -1
- package/dist/client/assets/image-lightbox-DE_fHkw-.js +0 -1
- package/dist/client/assets/index-7jby-RRg.js +0 -1
- package/dist/client/assets/index-BGqvci3k.js +0 -1
- package/dist/client/assets/index-BkoMsjtM.js +0 -2
- package/dist/client/assets/index-BqIHtiaE.js +0 -1
- package/dist/client/assets/index-Cga0qx1T.js +0 -1033
- package/dist/client/assets/index-Ct4At33X.js +0 -1
- package/dist/client/assets/index-DCJQGDZk.js +0 -1
- package/dist/client/assets/index-DITPwUa9.js +0 -38
- package/dist/client/assets/index-DUZrTFYD.css +0 -1
- package/dist/client/assets/index-F-vqXYqa.js +0 -1
- package/dist/client/assets/index-InEBtYxw.js +0 -23
- package/dist/client/assets/primer-trigger-BmV5wjek.js +0 -3
- package/dist/client/assets/profile-errors-BSCuj3rT.js +0 -1
- package/dist/client/assets/registry-Dc102rws.js +0 -1
- package/dist/client/assets/swimlanesDiagram-AYQRV4AK-Dv1-QS9J.js +0 -8
- package/dist/client/assets/terminal-6CdY-T1V.js +0 -6
- package/dist/client/assets/use-is-below-desktop-gTvJDvw4.js +0 -1
- package/dist/client/assets/use-is-hub-B1vPpkYU.js +0 -1
- package/dist/client/assets/use-jump-back-in-Bibj5tVk.js +0 -11
- package/dist/client/assets/use-pending-read-C8L_v4Zw.js +0 -1
- package/dist/client/assets/use-session-canvas-i30oMO_Q.js +0 -25
- package/dist/client/assets/use-session-diagnostics-a4b83F5J.js +0 -16
- package/dist/client/assets/use-update-config-Tbn3SodN.js +0 -1
- /package/dist/client/assets/{_shell-DIs3GY4I.css → WorkView-DIs3GY4I.css} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{E as o}from"./ExtensionPageRoute-CJIxa6ST.js";import"./index-Cga0qx1T.js";import"./empty-state-J-UJ0BUU.js";import"./page-container-BnmNikNZ.js";import"./use-dev-links-DQ32IcGe.js";import"./UnlinkDialog-BUWZUu5P.js";const e=o;export{e as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{E as o}from"./ExtensionPageRoute-CJIxa6ST.js";import"./index-Cga0qx1T.js";import"./empty-state-J-UJ0BUU.js";import"./page-container-BnmNikNZ.js";import"./use-dev-links-DQ32IcGe.js";import"./UnlinkDialog-BUWZUu5P.js";const e=o;export{e as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{U as a,C as n}from"./mermaid.core-zxW6MBr-.js";const t=(r,o)=>a.lang.round(n.parse(r)[o]);export{t as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as h,dA as et,j as i,dg as nt,dh as st,di as ot,ar as O,dj as rt,dM as it,G as A,dN as ct,X as at,x as lt,C as ut,dO as dt}from"./index-Cga0qx1T.js";import{T as ft,a as mt}from"./index.esm-BFJ9SG0n.js";import{a as d}from"./index-F-vqXYqa.js";import{u as z,a as ht,I as pt}from"./image-off-BExgZjfM.js";const Q={"image/png":"png","image/jpeg":"jpg","image/gif":"gif","image/webp":"webp","image/avif":"avif","image/svg+xml":"svg"},xt=new Set(["png","jpg","jpeg","gif","webp","avif","svg"]);function G(n,s){var u;const o=/^(.*)\.([a-z0-9]{1,5})$/i.exec(n),t=(o?o[1]:n)||"image",c=(u=o==null?void 0:o[2])==null?void 0:u.toLowerCase(),a=(s?Q[s.split(";")[0].trim()]:void 0)??(c&&xt.has(c)?c:"png");return`${t}.${a}`}function gt(n){var s;if(n.downloadName)return n.downloadName;if(n.src.startsWith("data:")){const o=((s=/^data:([^;,]+)/.exec(n.src))==null?void 0:s[1])??"";return`image.${Q[o]??"png"}`}try{const o=new URL(n.src,"http://local").pathname.split("/").pop()??"",t=decodeURIComponent(o);return/\.[a-z0-9]{2,5}$/i.test(t)?t:"image"}catch{return"image"}}function $(n,s,o){const t=document.createElement("a");t.href=n,t.download=s,o&&(t.target="_blank",t.rel="noopener noreferrer"),document.body.append(t),t.click(),t.remove()}async function bt(n){const s=gt(n);try{const o=await fetch(n.src);if(!o.ok)throw new Error(`HTTP ${o.status}`);const t=await o.blob(),c=URL.createObjectURL(t);$(c,G(s,t.type),!1),setTimeout(()=>URL.revokeObjectURL(c),1e3)}catch{$(n.src,G(s),!0)}}function H(n,s,o){const t=Math.min(s.width/n.width,s.height/n.height),c=o?t:Math.min(t,1),f=n.width*c,a=n.height*c;return{left:s.left+(s.width-f)/2,top:s.top+(s.height-a)/2,width:f,height:a}}function q(n,s,o){const t={width:n.naturalWidth,height:n.naturalHeight};if(t.width===0||t.height===0)return null;const c=n.getBoundingClientRect();if(c.width===0||c.height===0||!(c.bottom>0&&c.right>0&&c.top<o.height&&c.left<o.width))return null;const a=H(t,c,!0),u=H(t,s,!1);return{x:a.left+a.width/2-(s.left+s.width/2),y:a.top+a.height/2-(s.top+s.height/2),scale:a.width/u.width}}const yt=8,wt=110,jt=70,V=.5,vt=6,_={type:"spring",stiffness:520,damping:42};function St(n){const s=h.useRef(n);h.useLayoutEffect(()=>{s.current=n});const o=h.useRef(new Set),t=h.useRef(null),c=h.useRef(null),f=h.useRef(!1),a=()=>{const{x:r,y:l,scale:x,backdrop:y}=s.current;d(r,0,_),d(l,0,_),d(x,1,_),d(y,1,_)},u=r=>{var l;if(c.current={x:r.clientX,y:r.clientY},f.current=!1,r.pointerType!=="mouse"){if(o.current.add(r.pointerId),o.current.size>1){(l=t.current)!=null&&l.axis&&a(),t.current=null;return}t.current=s.current.canGesture()?{id:r.pointerId,startX:r.clientX,startY:r.clientY,startTime:r.timeStamp,axis:null}:null}},v=r=>{c.current&&Math.hypot(r.clientX-c.current.x,r.clientY-c.current.y)>vt&&(f.current=!0);const l=t.current;if(!l||l.id!==r.pointerId)return;const x=r.clientX-l.startX,y=r.clientY-l.startY;if(l.axis===null){if(Math.max(Math.abs(x),Math.abs(y))<yt)return;l.axis=Math.abs(y)>Math.abs(x)?"y":"x"}const{x:j,y:k,scale:C,backdrop:S,canStep:T}=s.current;if(l.axis==="y"){const N=Math.min(Math.abs(y)/320,1);k.set(y),C.set(1-N*.12),S.set(1-N*.7)}else j.set(T(x<0?1:-1)?x:x*.25)},p=r=>{o.current.delete(r.pointerId);const l=t.current;if(!l||l.id!==r.pointerId||(t.current=null,l.axis===null))return;const x=Math.max(r.timeStamp-l.startTime,1),{canStep:y,onDismiss:j,onStep:k}=s.current;if(r.type==="pointercancel"){a();return}if(l.axis==="y"){const N=r.clientY-l.startY;Math.abs(N)>wt||Math.abs(N)/x>V?j():a();return}const C=r.clientX-l.startX,S=C<0?1:-1;(Math.abs(C)>jt||Math.abs(C)/x>V)&&y(S)?k(S):a()};return{handlers:{onPointerDown:u,onPointerMove:v,onPointerUp:p,onPointerCancel:p},endedDrag:()=>f.current}}const Y={type:"spring",stiffness:360,damping:34,mass:.9},U={type:"spring",stiffness:420,damping:40},P={duration:.16,ease:"easeOut"},Z=72,w=n=>n.stopPropagation(),Nt={onClick:w,onDoubleClick:w,onContextMenu:w,onKeyDown:w,onKeyUp:w,onPointerDown:w,onPointerMove:w,onPointerUp:w,onPointerCancel:w,onTouchStart:w,onTouchMove:w,onTouchEnd:w,onWheel:w};function Et({open:n,onOpenChange:s,images:o,index:t,onIndexChange:c,getTrigger:f}){const a=et()===!0,u=z(0),v=z(0),p=z(1),r=z(1),l=z(0),x=ht(l,[.55,1],[0,1]),y=h.useRef(null),j=h.useRef("idle"),k=h.useRef(!1),C=h.useRef(async()=>{}),S=h.useRef(null),[T,N]=h.useState(null),[tt,F]=h.useState({}),g=o[t],E=o.length,B=g?tt[g.src]??"loading":"loading",M=g!==void 0&&T===g.src;h.useLayoutEffect(()=>{var L,R;if(!n)return;j.current="idle",k.current=!1,S.current=null,u.set(0),v.set(0),p.set(1),d(l,1,a?P:{duration:.24,ease:"easeOut"});const e=(L=f==null?void 0:f(t))==null?void 0:L.querySelector("img"),m=(R=y.current)==null?void 0:R.getBoundingClientRect(),b=!a&&e&&m?q(e,m,{width:window.innerWidth,height:window.innerHeight}):null;b?(u.set(b.x),v.set(b.y),p.set(b.scale),r.set(1),d(u,0,Y),d(v,0,Y),d(p,1,Y)):(r.set(0),a||p.set(.96),d(r,1,P),d(p,1,P))},[n]),h.useLayoutEffect(()=>{const e=S.current;e!==null&&(S.current=null,v.set(0),p.set(1),u.set(a?0:e*Z),d(u,0,_),d(r,1,P).then(()=>{j.current="idle",k.current&&(k.current=!1,C.current())}))},[t,r,a,u,v,p]),h.useEffect(()=>{if(n)for(const e of[o[t-1],o[t+1]])e&&(new Image().src=e.src)},[n,o,t]);const I=h.useCallback(async()=>{var R,X;if(j.current==="closing")return;if(j.current==="stepping"){k.current=!0;return}j.current="closing",N(null);const e=(R=f==null?void 0:f(t))==null?void 0:R.querySelector("img"),m=(X=y.current)==null?void 0:X.getBoundingClientRect(),b=!a&&!M&&e&&m?q(e,m,{width:window.innerWidth,height:window.innerHeight}):null,L=d(l,0,a?P:{duration:.22,ease:"easeIn"});b?await Promise.all([d(u,b.x,U),d(v,b.y,U),d(p,b.scale,U),L]):await Promise.all([d(r,0,P),a?null:d(p,p.get()*.96,P),L]),s==null||s(!1)},[l,f,t,s,r,a,p,u,v,M]);h.useLayoutEffect(()=>{C.current=I},[I]);const D=h.useCallback(async e=>{const m=t+e;j.current!=="idle"||m<0||m>=E||(j.current="stepping",await Promise.all([a?null:d(u,-e*Z+u.get()*.5,P),d(r,0,{duration:.1})]),S.current=e,c(m))},[E,t,c,r,a,u]),K=St({x:u,y:v,scale:p,backdrop:l,canGesture:()=>j.current==="idle"&&!M,canStep:e=>t+e>=0&&t+e<E,onDismiss:()=>void I(),onStep:e=>void D(e)});return g?i.jsx(nt,{open:n,onOpenChange:e=>{e||I()},children:i.jsx(st,{container:document.body,children:i.jsxs("div",{className:"contents",...Nt,children:[i.jsx(ot,{asChild:!0,children:i.jsx(O.div,{"data-slot":"image-lightbox-backdrop",style:{opacity:l},className:"bg-background/90 fixed inset-0 z-50 backdrop-blur-xl"})}),i.jsxs(rt,{"data-slot":"image-lightbox","aria-describedby":void 0,onOpenAutoFocus:e=>{var m;e.preventDefault(),(m=e.currentTarget)==null||m.focus()},onFocusOutside:e=>e.preventDefault(),onCloseAutoFocus:e=>{const m=f==null?void 0:f(t);m&&(e.preventDefault(),m.focus({preventScroll:!0}))},onKeyDown:e=>{e.key==="ArrowRight"?D(1):e.key==="ArrowLeft"&&D(-1)},onClick:e=>{var R,X;const m=e.target;if(K.endedDrag()||m.closest("button"))return;const b=(X=(R=y.current)==null?void 0:R.querySelector("img"))==null?void 0:X.getBoundingClientRect();b!==void 0&&e.clientX>=b.left&&e.clientX<=b.right&&e.clientY>=b.top&&e.clientY<=b.bottom||I()},...K.handlers,className:"fixed inset-0 z-50 flex touch-none flex-col outline-none select-none",children:[i.jsx(it,{className:"sr-only",children:g.alt||"Image"}),i.jsxs(O.div,{style:{opacity:x},className:"flex shrink-0 items-center justify-between gap-2 pt-[max(0.75rem,env(safe-area-inset-top))] pr-[max(0.75rem,env(safe-area-inset-right))] pb-2 pl-[max(0.75rem,env(safe-area-inset-left))]",children:[i.jsxs("p",{"aria-live":"polite",className:A("text-muted-foreground px-2 text-sm tabular-nums",E<2&&"invisible"),children:[t+1," of ",E]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(W,{label:"Download image",onClick:()=>void bt(g),children:i.jsx(ct,{className:"size-[18px]"})}),i.jsx(W,{label:"Close",onClick:()=>void I(),children:i.jsx(at,{className:"size-5"})})]})]}),i.jsxs("div",{className:"relative min-h-0 flex-1 px-3 sm:px-20",children:[i.jsxs("div",{ref:y,className:"relative h-full w-full",children:[i.jsx(O.div,{style:{x:u,y:v,scale:p,opacity:r},className:"h-full w-full",children:i.jsx(ft,{centerOnInit:!0,minScale:1,maxScale:8,doubleClick:{mode:"toggle",step:1.2},wheel:{step:.15},panning:{disabled:!M,velocityDisabled:!0},onTransform:(e,m)=>N(m.scale>1.01?g.src:null),children:i.jsx(mt,{wrapperClass:"!h-full !w-full",contentClass:"!h-full !w-full flex items-center justify-center",children:B==="error"?i.jsxs("p",{className:"text-muted-foreground flex items-center gap-2 text-sm",children:[i.jsx(pt,{"aria-hidden":!0,className:"size-4"}),"This image couldn’t be loaded."]}):i.jsx("img",{src:g.src,alt:g.alt,draggable:!1,onLoad:()=>F(e=>({...e,[g.src]:"loaded"})),onError:()=>F(e=>({...e,[g.src]:"error"})),className:A("max-h-full max-w-full rounded-lg object-contain shadow-2xl shadow-black/25",M?"cursor-grab active:cursor-grabbing":"cursor-zoom-in")})})},g.src)}),B==="loading"&&i.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:i.jsx(lt,{size:"md",label:"Loading image",className:"text-muted-foreground"})})]}),t>0&&i.jsx(J,{direction:-1,fade:x,onClick:()=>void D(-1)}),t<E-1&&i.jsx(J,{direction:1,fade:x,onClick:()=>void D(1)})]}),i.jsx(O.div,{style:{opacity:x},className:"flex min-h-12 shrink-0 items-center justify-center px-6 pt-2 pb-[max(0.75rem,env(safe-area-inset-bottom))]",children:g.alt&&i.jsx("p",{className:"text-muted-foreground line-clamp-2 max-w-prose text-center text-sm",children:g.alt})})]})]})})}):null}function W({label:n,onClick:s,fade:o,className:t,children:c}){return i.jsx(O.button,{type:"button","aria-label":n,title:n,onClick:s,style:o?{opacity:o}:void 0,className:A("focus-ring bg-background/70 text-foreground border-border/60 hover:bg-background","flex size-10 items-center justify-center rounded-full border shadow-sm backdrop-blur-md","transition-colors duration-150 motion-reduce:transition-none",t),children:c})}function J({direction:n,fade:s,onClick:o}){return i.jsx(W,{label:n===1?"Next image":"Previous image",onClick:o,fade:s,className:A("absolute top-1/2 hidden -translate-y-1/2 sm:flex",n===1?"right-4":"left-4"),children:n===1?i.jsx(ut,{className:"size-5"}):i.jsx(dt,{className:"size-5"})})}export{Et as ImageLightbox};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as h,M as w}from"./Marketplace-iaV5XAzv.js";import{M as U,P as V,m as b,u as C,a as D}from"./index-Cga0qx1T.js";import{M as q}from"./MarketplaceSourcesView-6tgzUfFj.js";import{U as y}from"./UnlinkDialog-BUWZUu5P.js";import"./PreviewRefusedNotice-BXC2K0tx.js";import"./shield-x-CANziVLc.js";import"./card-B3CtfC3R.js";import"./empty-state-J-UJ0BUU.js";import"./markdown-content-m_qereFc.js";import"./use-unclaimed-chats-B92om889.js";import"./use-bindings-Bz9YRgO7.js";import"./more-details-ReA2ZFBn.js";import"./use-dev-links-DQ32IcGe.js";import"./terminal-6CdY-T1V.js";import"./file-D40js1Zx.js";import"./AgentPicker-CsIIPGZJ.js";import"./command-CDKbyppr.js";import"./AgentOptionRow-BA2cDa7r.js";import"./useMutationState-DdOGdpjP.js";import"./file-exclamation-point-Dg3ZpiAe.js";import"./rotate-ccw-clock-RfbbgUa4.js";import"./path-input-DHn9-XaE.js";import"./use-pending-read-C8L_v4Zw.js";export{h as InstalledPackagesView,w as Marketplace,U as MarketplaceSidebar,q as MarketplaceSourcesView,V as PackageCard,y as UnlinkDialog,b as marketplaceSearchSchema,C as useMarketplaceParams,D as useMarketplaceStore};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{eJ as J,j as e,eK as Q,eL as Z,eM as C,eN as ee,eO as z,cv as se,eP as te,r as O,ak as A,eQ as D,H as Y,aS as G,X as ne,eR as ae,eS as ie,eT as re,eU as oe,B as E,f as de,eV as le,eW as U,eX as ce,eY as X,a0 as me,bb as ue,eZ as xe,e_ as he,e$ as ge,f0 as pe,f1 as fe,f2 as ve,T as je,G as L,e3 as Ne,f3 as M,f4 as be,f5 as we,_ as T,$ as ye,f6 as Se,f7 as ke,f8 as Ce,f9 as Ee,fa as $e,fb as Pe,fc as Te,fd as B,dB as Re,a7 as S,fe as _e,ff as F}from"./index-Cga0qx1T.js";import{fg as cs,fh as ms,fi as us,fj as xs,fk as hs,fl as gs}from"./index-Cga0qx1T.js";import{u as Ae}from"./use-deep-link-scroll-DkS713kG.js";import{M as K}from"./more-details-ReA2ZFBn.js";import{C as De}from"./card-B3CtfC3R.js";import{u as Le,a as Ie}from"./use-panel-tab-placements-CCq-mZlY.js";import{C as Oe,a as ze,b as Me,c as Be,d as R,e as _}from"./command-CDKbyppr.js";import{F as q}from"./file-text-DgdvRfMk.js";const Fe=["server_crashed","server_out_of_memory","server_unresponsive","isolation_unavailable","server_start_failed","server_start_timeout"],He={server_crashed:s=>`${s} stopped unexpectedly 3 times. Reload it to try again.`,server_out_of_memory:s=>`${s} ran out of memory and stopped. Reload it to try again.`,server_unresponsive:s=>`${s} stopped responding, so DorkOS stopped it.`,isolation_unavailable:s=>`${s} can’t run with its limits on this computer.`,server_start_failed:s=>`${s} couldn’t start. Reload it to try again.`,server_start_timeout:s=>`${s} took too long to start. Reload it to try again.`};function I(s){return Fe.includes(s)}function Ve(s,r){return I(s)?He[s](r):null}function Ye(s){return`Restarting ${s}…`}function Ge({extensionId:s}){const r=J("right-panel").filter(d=>d.extensionId===s);return r.length===0?null:e.jsx("div",{className:"space-y-3 pt-1","data-testid":`panel-tab-placement-${s}`,children:r.map(d=>e.jsx(Xe,{tab:d,labelled:r.length>1},d.id))})}function Ue(){var d;const s=(d=se().data)==null?void 0:d.agents,r=te().data;return O.useMemo(()=>{const l=new Map((s??[]).map(a=>[a.id,A(a)])),c=new Map((r??[]).map(a=>[a.id,D(a)]));return{agents:s??[],rooms:r??[],agentNames:l,roomNames:c}},[s,r])}function Xe({tab:s,labelled:r}){const d=Q(Le(),s.id),{setPlacement:l}=Ie(),c=Ue(),a=Z(d,s.declaredPlacement),g=a.show.pages.includes(C),o=t=>l(s.id,{show:t.show,hide:t.hide}),m=t=>t.kind==="agents"?c.agentNames.get(t.id)??"An agent that is gone":t.kind==="rooms"?c.roomNames.get(t.id)??"A channel that is gone":ae(t.id),v=(t,u)=>["agents","rooms","pages"].flatMap(j=>t[j].filter(i=>u||i!==C).map(i=>({kind:j,id:i}))),n=(t,u)=>({...t,[u.kind]:t[u.kind].filter(j=>j!==u.id)}),p=v(a.show,!1),N=v(a.hide,!0);return e.jsxs("div",{className:"space-y-2","data-testid":`panel-tab-placement-${s.id}`,children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx("span",{className:"text-sm",children:r?`${s.title} tab shows`:"Panel tab shows"}),e.jsxs(ee,{value:g?"everywhere":"only",onValueChange:t=>o({hide:a.hide,show:t==="everywhere"?{...a.show,pages:[C]}:{...a.show,pages:a.show.pages.filter(u=>u!==C)}}),"aria-label":`Where the ${s.title} tab shows`,children:[e.jsx(z,{value:"everywhere",children:"Everywhere"}),e.jsx(z,{value:"only",children:"Only in…"})]}),d&&e.jsx("button",{type:"button",onClick:()=>l(s.id,null),className:"text-muted-foreground hover:text-foreground focus-ring rounded-sm text-xs underline underline-offset-2",children:s.declaredPlacement?"Use its default":"Reset"})]}),!g&&e.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[p.map(t=>e.jsx(H,{place:t,name:m(t),removeLabel:`Remove ${m(t)}`,onRemove:()=>o({...a,show:n(a.show,t)})},`${t.kind}:${t.id}`)),e.jsx(qe,{tabTitle:s.title,names:c,taken:a.show,onAdd:t=>o({show:{...a.show,[t.kind]:[...a.show[t.kind],t.id]},hide:n(a.hide,t)})}),p.length===0&&e.jsx("span",{className:"text-muted-foreground text-xs",children:"Shows nowhere yet. Add a place."})]}),N.length>0&&e.jsxs("div",{role:"group","aria-labelledby":`${s.id}-hidden-in`,className:"flex flex-wrap items-center gap-1.5",children:[e.jsx("span",{id:`${s.id}-hidden-in`,className:"text-muted-foreground text-xs",children:"Hidden in"}),N.map(t=>e.jsx(H,{place:t,name:m(t),removeLabel:`Show in ${m(t)} again`,onRemove:()=>o({...a,hide:n(a.hide,t)})},`${t.kind}:${t.id}`))]})]})}const Ke={agents:G,rooms:Y,pages:q};function H({place:s,name:r,removeLabel:d,onRemove:l}){const c=Ke[s.kind];return e.jsxs("span",{className:"bg-muted inline-flex h-6 items-center gap-1 rounded-md pr-0.5 pl-1.5 text-xs",children:[e.jsx(c,{className:"text-muted-foreground size-3","aria-hidden":!0}),e.jsx("span",{className:"max-w-40 truncate",children:r}),e.jsx("button",{type:"button",onClick:l,"aria-label":d,className:"text-muted-foreground hover:text-foreground focus-ring rounded-sm p-0.5",children:e.jsx(ne,{className:"size-3"})})]})}function qe({tabTitle:s,names:r,taken:d,onAdd:l}){const[c,a]=O.useState(!1),g=n=>{l(n),a(!1)},o=ie.filter(n=>!d.pages.includes(n.key)),m=r.agents.filter(n=>!d.agents.includes(n.id)),v=r.rooms.filter(n=>!d.rooms.includes(n.id));return e.jsxs(re,{open:c,onOpenChange:a,children:[e.jsx(oe,{asChild:!0,children:e.jsxs(E,{variant:"ghost",size:"sm",className:"h-6 px-1.5 text-xs","aria-label":`Add a place for the ${s} tab`,children:[e.jsx(de,{className:"size-3"}),"Add"]})}),e.jsx(le,{align:"start",className:"w-64 p-0",children:e.jsxs(Oe,{children:[e.jsx(ze,{placeholder:"Find an agent, channel or page"}),e.jsxs(Me,{className:"max-h-64",children:[e.jsx(Be,{children:"Nothing matches."}),m.length>0&&e.jsx(R,{heading:"Agents",children:m.map(n=>e.jsxs(_,{value:`agent ${A(n)} ${n.id}`,onSelect:()=>g({kind:"agents",id:n.id}),children:[e.jsx(G,{className:"size-3.5"}),A(n)]},n.id))}),v.length>0&&e.jsx(R,{heading:"Channels and DMs",children:v.map(n=>e.jsxs(_,{value:`room ${D(n)} ${n.id}`,onSelect:()=>g({kind:"rooms",id:n.id}),children:[e.jsx(Y,{className:"size-3.5"}),D(n)]},n.id))}),o.length>0&&e.jsx(R,{heading:"Pages",children:o.map(n=>e.jsxs(_,{value:`page ${n.label}`,onSelect:()=>g({kind:"pages",id:n.key}),children:[e.jsx(q,{className:"size-3.5"}),n.label]},n.key))})]})]})})]})}const We=new Set(["disabled","discovered","incompatible","invalid"]),Je="/marketplace?view=installed";function Qe({extension:s,onToggle:r,isToggling:d,onSetRunApproval:l,isSettingApproval:c,onReload:a,isReloading:g}){const{manifest:o,status:m,scope:v,error:n,serverError:p,origin:N,approvedToRun:t}=s,[u,j]=O.useState(!1),i=!We.has(m),x=m==="incompatible",b=m==="invalid",h=m==="compile_error"||m==="activate_error",y=!x&&!b,f=!(N==="core"&&o.canDisable===!1),k=s.hasServerEntry||s.hasDataProxy,w=U(s),W=ce(s.id,X(w)),$=h?"Not working":x?"Incompatible":b?"Can’t load":null;return e.jsx(De,{"data-slot":"extension-card","data-testid":`extension-card-${s.id}`,"data-section":s.id,radius:"lg",gap:"none",className:L(h&&"border-amber-500/50",(x||b)&&"opacity-70"),children:e.jsxs("div",{className:"flex items-start justify-between gap-4",children:[e.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[h&&e.jsx(me,{className:"text-status-warning-dot size-4 shrink-0","aria-hidden":"true"}),(x||b)&&!h&&e.jsx(ue,{className:"text-muted-foreground size-4 shrink-0","aria-hidden":"true"}),!h&&!x&&!b&&e.jsx(xe,{className:"text-muted-foreground size-4 shrink-0","aria-hidden":"true"}),e.jsx("span",{className:"font-medium",children:o.name}),e.jsxs("span",{className:"text-muted-foreground text-sm",children:["v",o.version]}),s.devLink&&e.jsx(he,{})]}),s.devLink&&e.jsxs("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1","data-testid":`extension-dev-link-${s.id}`,children:[e.jsx(ge,{path:s.devLink.path,className:"min-w-0"}),e.jsx("button",{type:"button",onClick:()=>void pe(Je),className:"text-muted-foreground hover:text-foreground focus-ring rounded-sm text-xs underline underline-offset-2",children:"Unlink or switch"})]}),o.description&&e.jsx("p",{className:"text-muted-foreground text-sm",children:o.description}),e.jsx(fe,{gifts:ve(s),"data-testid":`extension-agent-gifts-${s.id}`}),i&&e.jsx(Ge,{extensionId:s.id}),x&&o.minHostVersion&&e.jsxs("p",{className:"text-muted-foreground text-sm",children:["Needs DorkOS ",o.minHostVersion," or newer"]}),h&&n&&e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"text-status-warning-fg text-sm",children:[m==="compile_error"?"Couldn’t build: ":"Couldn’t start: ",n.message]}),n.details&&e.jsxs("button",{type:"button",onClick:()=>j(P=>!P),className:"text-muted-foreground hover:text-foreground flex items-center gap-1 text-xs transition-colors","aria-expanded":u,children:[e.jsx(je,{className:L("size-3 transition-transform",u&&"rotate-180")}),u?"Hide details":"Show details"]}),u&&n.details&&e.jsx("pre",{className:"bg-muted mt-1 max-h-32 overflow-auto rounded-md p-2 text-xs",children:n.details})]}),p&&I(p.code)&&e.jsxs("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1","data-testid":`extension-server-status-${s.id}`,children:[e.jsx("p",{className:"text-status-warning-fg text-sm",children:p.message||Ve(p.code,o.name)}),e.jsx("button",{type:"button",onClick:a,disabled:g,className:"text-muted-foreground hover:text-foreground focus-ring rounded-sm text-xs underline underline-offset-2 disabled:opacity-50",children:"Reload"})]}),s.restartingAt&&!p&&e.jsx("p",{className:"text-muted-foreground text-sm",role:"status",children:Ye(o.name)}),p&&!I(p.code)&&e.jsxs("p",{className:"text-status-warning-fg text-sm",children:["Couldn’t rebuild its server part: ",p.message,". The last version still runs."]}),N==="user"&&(t?e.jsxs("div",{className:"text-muted-foreground flex flex-wrap items-center gap-2 text-xs","data-testid":`extension-run-allowed-${s.id}`,children:[e.jsx(Ne,{className:"size-3.5 shrink-0","aria-hidden":"true"}),e.jsx("span",{children:"You allowed this to run."}),s.originProblem==="changed"&&e.jsx("span",{children:"You approved its changed files. Any further change asks again."}),e.jsx("button",{type:"button",onClick:()=>l(s.id,!1),disabled:c,className:"hover:text-foreground underline underline-offset-2 disabled:opacity-50",children:"Stop it"}),e.jsx(M,{permissions:w,className:"basis-full","data-testid":`extension-permissions-${s.id}`})]}):e.jsxs("div",{className:"space-y-2 rounded-lg border border-amber-500/40 bg-amber-500/5 p-3","data-testid":`extension-needs-approval-${s.id}`,children:[e.jsx("p",{className:"text-sm font-medium",children:"This extension is waiting for you"}),s.originProblem&&e.jsx("p",{className:"text-status-warning-fg text-sm","data-testid":`extension-origin-problem-${s.id}`,children:s.originProblem==="changed"?"Its files changed after install, so DorkOS can’t vouch for it. Look it over first.":s.originProblem==="dev-link"?"It runs from your folder, so DorkOS can’t vouch for its source.":"Its plugin links to files elsewhere, so DorkOS can’t vouch for its source."}),e.jsx(M,{permissions:w,added:W,"data-testid":`extension-permissions-${s.id}`}),e.jsx("p",{className:"text-muted-foreground text-sm",children:be(k,(w==null?void 0:w.runtime)==="subprocess")}),e.jsx("p",{className:"text-muted-foreground text-sm",children:we}),e.jsx(E,{size:"sm",onClick:()=>l(s.id,!0),disabled:c,"data-testid":`extension-approve-run-${s.id}`,children:"Turn it on"})]})),e.jsxs("div",{className:"text-muted-foreground flex flex-wrap items-center gap-2 text-xs",children:[e.jsx(T,{variant:"outline",children:v}),$&&e.jsx(T,{variant:$==="Not working"?"destructive":"secondary","data-testid":`extension-health-${s.id}`,children:$}),o.author&&e.jsx("span",{children:o.author})]})]}),e.jsx("div",{className:"flex shrink-0 items-center pt-0.5",children:f?e.jsx(ye,{checked:i,onCheckedChange:P=>r(s.id,P),disabled:!y||d,"aria-label":`${i?"Disable":"Enable"} ${o.name}`}):e.jsx(T,{variant:"secondary",title:"This extension is always on","data-testid":`extension-required-${s.id}`,children:"Required"})})]})})}function V(s){const r=new Date(s);return Number.isNaN(r.getTime())?"":r.toLocaleDateString(void 0,{month:"short",day:"numeric",year:"numeric"})}function Ze(){const{data:s=[]}=Se(),{stop:r,pendingSource:d}=ke();return s.length===0?null:e.jsxs("section",{className:"space-y-3","data-testid":"trusted-sources-section",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("h3",{className:"text-sm font-semibold",children:"Trusted sources"}),e.jsx("p",{className:"text-muted-foreground text-sm",children:"Extensions from these sources turn on without asking."}),e.jsx("p",{className:"text-muted-foreground text-sm",children:"Stop trusting one, and extensions already on keep running."}),e.jsx(K,{className:"text-muted-foreground text-sm",label:"If you stop trusting one",openLabel:"If you stop trusting one",children:e.jsx("p",{children:"Newer versions and new extensions from it wait for your yes."})})]}),e.jsx("ul",{className:"divide-y rounded-xl border",children:s.map(({source:l,trustedAt:c})=>e.jsxs("li",{className:"flex flex-wrap items-center justify-between gap-x-3 gap-y-1.5 px-3 py-2.5",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"truncate font-mono text-sm",children:l}),V(c)&&e.jsxs("p",{className:"text-muted-foreground text-xs",children:["Trusted ",V(c)]})]}),e.jsx(E,{type:"button",variant:"outline",size:"sm",disabled:d===l,onClick:()=>r(l),children:"Stop trusting"})]},l))})]})}function os(){const{data:s=[],isLoading:r}=Ce(),{section:d}=Ee();Ae(r?null:d);const l=$e(),c=Pe(),a=Te(),g=B(!0),o=B(!1),m=new Set([...l.variables?[l.variables]:[],...c.variables?[c.variables]:[]]),v=new Set([...g.isPending&&g.variables?[g.variables.id]:[],...o.isPending&&o.variables?[o.variables.id]:[]]);function n(i,x){const b=x?g:o,h=s.find(f=>f.id===i);if(!h)return;const y=x?X(U(h)):void 0;b.mutate({id:i,version:h.manifest.version,plugin:h.sourcePlugin??null,...y?{permissions:y}:{}},{onSuccess:f=>{x&&F.getState().forget(i);const k=f.extension.manifest.name,w=f.extension.isolation?"":" inside DorkOS";S.success(x?`${k} can now run${w}`:`${k} stopped running`)},onError:f=>{if(f instanceof _e&&f.stale){y&&F.getState().remember(i,y),S.error(`${h.manifest.name} changed since you saw it. Check it again.`);return}S.error(x?"Couldn’t let it run.":"Couldn’t stop it running.",{description:f.message})}})}async function p(i,x){(x?l:c).mutate(i,{onError:h=>{S.error(x?"Couldn’t turn that on.":"Couldn’t turn that off.",{description:h.message})}})}function N(){a.mutate(void 0,{onSuccess:i=>{S.success(`Reloaded ${i.length} extension${i.length===1?"":"s"}`)},onError:i=>{S.error("Couldn’t reload your extensions.",{description:i.message})}})}if(r)return e.jsx("div",{className:"text-muted-foreground py-8 text-center text-sm",children:"Loading extensions…"});const t=s.filter(i=>i.origin==="core"),u=s.filter(i=>i.origin==="user"),j=i=>e.jsx(Qe,{extension:i,onToggle:p,isToggling:m.has(i.id),onSetRunApproval:n,isSettingApproval:v.has(i.id),onReload:N,isReloading:a.isPending},i.id);return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"text-muted-foreground space-y-1 text-sm",children:[e.jsx("p",{children:"Extensions add new screens and tools to DorkOS."}),e.jsxs(K,{children:[e.jsx("p",{children:"Core extensions come with DorkOS."}),e.jsxs("p",{children:["Installed ones live in"," ",e.jsx("code",{className:"bg-muted rounded px-1",children:"~/.dork/extensions/"})," or your project’s"," ",e.jsx("code",{className:"bg-muted rounded px-1",children:".dork/extensions/"}),"."]})]})]}),s.length===0?e.jsx("div",{className:"text-muted-foreground py-8 text-center text-sm","data-testid":"no-extensions",children:e.jsx("p",{children:"No extensions installed."})}):e.jsxs(e.Fragment,{children:[t.length>0&&e.jsxs("section",{className:"space-y-3","data-testid":"core-extensions-section",children:[e.jsx("h3",{className:"text-sm font-semibold",children:"Core extensions"}),e.jsx("div",{className:"space-y-3",children:t.map(j)})]}),e.jsxs("section",{className:"space-y-3","data-testid":"installed-extensions-section",children:[e.jsx("h3",{className:"text-sm font-semibold",children:"Installed extensions"}),u.length>0?e.jsx("div",{className:"space-y-3",children:u.map(j)}):e.jsxs("div",{className:"text-muted-foreground rounded-xl border border-dashed p-4 text-sm","data-testid":"no-installed-extensions",children:["No extensions installed yet. Browse"," ",e.jsx("span",{className:"text-foreground font-medium",children:"Marketplace"})," to add some."]})]})]}),e.jsx(Ze,{}),e.jsx("div",{className:"flex justify-end",children:e.jsxs(E,{variant:"outline",size:"sm",onClick:N,disabled:a.isPending,"data-testid":"reload-extensions-button",children:[e.jsx(Re,{className:L("mr-2 size-4",a.isPending&&"animate-spin")}),"Reload extensions"]})})]})}export{cs as ExtensionEventBridge,ms as ExtensionLoader,us as ExtensionProvider,os as ExtensionsSettingsTab,xs as createExtensionAPI,hs as createExtensionEventBridge,gs as useExtensions};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/FloatingTanStackRouterDevtools-CqogiFob-BP7EJ2JL.js","assets/BaseTanStackRouterDevtoolsPanel-B-iktbLX-9TVHyRPJ.js","assets/index-Cga0qx1T.js","assets/index-DUZrTFYD.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
var Fe=e=>{throw TypeError(e)};var Ve=(e,t,n)=>t.has(e)||Fe("Cannot "+n);var y=(e,t,n)=>(Ve(e,t,"read from private field"),n?n.call(e):t.get(e)),p=(e,t,n)=>t.has(e)?Fe("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),m=(e,t,n,s)=>(Ve(e,t,"write to private field"),s?s.call(e,n):t.set(e,n),n);import{aX as Ye,ax as ze,er as Qe,r as C,j as le}from"./index-Cga0qx1T.js";var d={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return Be(this.context.count)},getNextContextId(){return Be(this.context.count++)}};function Be(e){const t=String(e),n=t.length-1;return d.context.id+(n?String.fromCharCode(96+n):"")+t}function ie(e){d.context=e}var dt=(e,t)=>e===t,be=Symbol("solid-proxy"),Je=typeof Proxy=="function",ht=Symbol("solid-track"),Se={equals:dt},Ze=rt,L=1,xe=2,et={owned:null,cleanups:null,context:null,owner:null},Re={},w=null,Ne=null,gt=null,v=null,E=null,$=null,Pe=0;function ve(e,t){const n=v,s=w,r=e.length===0,l=t===void 0?s:t,i=r?et:{owned:null,cleanups:null,context:l?l.context:null,owner:l},o=r?e:()=>e(()=>P(()=>ce(i)));w=i,v=null;try{return j(o,!0)}finally{v=n,w=s}}function D(e,t){t=t?Object.assign({},Se,t):Se;const n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},s=r=>(typeof r=="function"&&(r=r(n.value)),ot(n,r));return[st.bind(n),s]}function yt(e,t,n){const s=Ae(e,t,!0,L);se(s)}function V(e,t,n){const s=Ae(e,t,!1,L);se(s)}function yn(e,t,n){Ze=Ot;const s=Ae(e,t,!1,L);(!n||!n.render)&&(s.user=!0),$?$.push(s):se(s)}function x(e,t,n){n=n?Object.assign({},Se,n):Se;const s=Ae(e,t,!0,0);return s.observers=null,s.observerSlots=null,s.comparator=n.equals||void 0,se(s),st.bind(s)}function mt(e){return e&&typeof e=="object"&&"then"in e}function wt(e,t,n){let s,r,l;s=!0,r=e,l={};let i=null,o=Re,a=null,f=!1,u="initialValue"in l,c=typeof s=="function"&&x(s);const h=new Set,[g,R]=(l.storage||D)(l.initialValue),[M,U]=D(void 0),[oe,N]=D(void 0,{equals:!1}),[T,k]=D(u?"ready":"unresolved");d.context&&(a=d.getNextContextId(),l.ssrLoadFrom==="initial"?o=l.initialValue:d.load&&d.has(a)&&(o=d.load(a)));function A(S,b,I,O){return i===S&&(i=null,O!==void 0&&(u=!0),(S===o||b===o)&&l.onHydrated&&queueMicrotask(()=>l.onHydrated(O,{value:b})),o=Re,Te(b,I)),b}function Te(S,b){j(()=>{b===void 0&&R(()=>S),k(b!==void 0?"errored":u?"ready":"unresolved"),U(b);for(const I of h.keys())I.decrement();h.clear()},!1)}function Ce(){const S=St,b=g(),I=M();if(I!==void 0&&!i)throw I;return v&&v.user,b}function De(S=!0){if(S!==!1&&f)return;f=!1;const b=c?c():s;if(b==null||b===!1){A(i,P(g));return}let I;const O=o!==Re?o:P(()=>{try{return r(b,{value:g(),refetching:S})}catch(re){I=re}});if(I!==void 0){A(i,void 0,pe(I),b);return}else if(!mt(O))return A(i,O,void 0,b),O;return i=O,"v"in O?(O.s===1?A(i,O.v,void 0,b):A(i,void 0,pe(O.v),b),O):(f=!0,queueMicrotask(()=>f=!1),j(()=>{k(u?"refreshing":"pending"),N()},!1),O.then(re=>A(O,re,void 0,b),re=>A(O,void 0,pe(re),b)))}Object.defineProperties(Ce,{state:{get:()=>T()},error:{get:()=>M()},loading:{get(){const S=T();return S==="pending"||S==="refreshing"}},latest:{get(){if(!u)return Ce();const S=M();if(S&&!i)throw S;return g()}}});let _e=w;return c?yt(()=>(_e=w,De(!1))):De(!1),[Ce,{refetch:S=>pt(_e,()=>De(S)),mutate:R}]}function P(e){if(v===null)return e();const t=v;v=null;try{return e()}finally{v=t}}function vt(e){return w===null||(w.cleanups===null?w.cleanups=[e]:w.cleanups.push(e)),e}function pt(e,t){const n=w,s=v;w=e,v=null;try{return j(t,!0)}catch(r){je(r)}finally{w=n,v=s}}var[mn,wn]=D(!1);function tt(e,t){const n=Symbol("context");return{id:n,Provider:Pt(n),defaultValue:e}}function bt(e){let t;return w&&w.context&&(t=w.context[e.id])!==void 0?t:e.defaultValue}function nt(e){const t=x(e),n=x(()=>Me(t()));return n.toArray=()=>{const s=n();return Array.isArray(s)?s:s!=null?[s]:[]},n}var St;function st(){if(this.sources&&this.state)if(this.state===L)se(this);else{const e=E;E=null,j(()=>Oe(this),!1),E=e}if(v){const e=this.observers?this.observers.length:0;v.sources?(v.sources.push(this),v.sourceSlots.push(e)):(v.sources=[this],v.sourceSlots=[e]),this.observers?(this.observers.push(v),this.observerSlots.push(v.sources.length-1)):(this.observers=[v],this.observerSlots=[v.sources.length-1])}return this.value}function ot(e,t,n){let s=e.value;return(!e.comparator||!e.comparator(s,t))&&(e.value=t,e.observers&&e.observers.length&&j(()=>{for(let r=0;r<e.observers.length;r+=1){const l=e.observers[r],i=Ne&&Ne.running;i&&Ne.disposed.has(l),(i?!l.tState:!l.state)&&(l.pure?E.push(l):$.push(l),l.observers&&it(l)),i||(l.state=L)}if(E.length>1e6)throw E=[],new Error},!1)),t}function se(e){if(!e.fn)return;ce(e);const t=Pe;xt(e,e.value,t)}function xt(e,t,n){let s;const r=w,l=v;v=w=e;try{s=e.fn(t)}catch(i){return e.pure&&(e.state=L,e.owned&&e.owned.forEach(ce),e.owned=null),e.updatedAt=n+1,je(i)}finally{v=l,w=r}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?ot(e,s):e.value=s,e.updatedAt=n)}function Ae(e,t,n,s=L,r){const l={fn:e,state:s,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:w,context:w?w.context:null,pure:n};return w===null||w!==et&&(w.owned?w.owned.push(l):w.owned=[l]),l}function Ee(e){if(e.state===0)return;if(e.state===xe)return Oe(e);if(e.suspense&&P(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<Pe);)e.state&&t.push(e);for(let n=t.length-1;n>=0;n--)if(e=t[n],e.state===L)se(e);else if(e.state===xe){const s=E;E=null,j(()=>Oe(e,t[0]),!1),E=s}}function j(e,t){if(E)return e();let n=!1;t||(E=[]),$?n=!0:$=[],Pe++;try{const s=e();return Et(n),s}catch(s){n||($=null),E=null,je(s)}}function Et(e){if(E&&(rt(E),E=null),e)return;const t=$;$=null,t.length&&j(()=>Ze(t),!1)}function rt(e){for(let t=0;t<e.length;t++)Ee(e[t])}function Ot(e){let t,n=0;for(t=0;t<e.length;t++){const s=e[t];s.user?e[n++]=s:Ee(s)}if(d.context){if(d.count){d.effects||(d.effects=[]),d.effects.push(...e.slice(0,n));return}ie()}for(d.effects&&(d.done||!d.count)&&(e=[...d.effects,...e],n+=d.effects.length,delete d.effects),t=0;t<n;t++)Ee(e[t])}function Oe(e,t){e.state=0;for(let n=0;n<e.sources.length;n+=1){const s=e.sources[n];if(s.sources){const r=s.state;r===L?s!==t&&(!s.updatedAt||s.updatedAt<Pe)&&Ee(s):r===xe&&Oe(s,t)}}}function it(e){for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t];n.state||(n.state=xe,n.pure?E.push(n):$.push(n),n.observers&&it(n))}}function ce(e){let t;if(e.sources)for(;e.sources.length;){const n=e.sources.pop(),s=e.sourceSlots.pop(),r=n.observers;if(r&&r.length){const l=r.pop(),i=n.observerSlots.pop();s<r.length&&(l.sourceSlots[i]=s,r[s]=l,n.observerSlots[s]=i)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)ce(e.tOwned[t]);delete e.tOwned}if(e.owned){for(t=e.owned.length-1;t>=0;t--)ce(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function pe(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function je(e,t=w){throw pe(e)}function Me(e){if(typeof e=="function"&&!e.length)return Me(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const s=Me(e[n]);Array.isArray(s)?t.push.apply(t,s):t.push(s)}return t}return e}function Pt(e,t){return function(s){let r;return V(()=>r=P(()=>(w.context={...w.context,[e]:s.value},nt(()=>s.children))),void 0),r}}var At=Symbol("fallback");function Ue(e){for(let t=0;t<e.length;t++)e[t]()}function Tt(e,t,n={}){let s=[],r=[],l=[],i=0,o=t.length>1?[]:null;return vt(()=>Ue(l)),()=>{let a=e()||[],f=a.length,u,c;return a[ht],P(()=>{let g,R,M,U,oe,N,T,k,A;if(f===0)i!==0&&(Ue(l),l=[],s=[],r=[],i=0,o&&(o=[])),n.fallback&&(s=[At],r[0]=ve(Te=>(l[0]=Te,n.fallback())),i=1);else if(i===0){for(r=new Array(f),c=0;c<f;c++)s[c]=a[c],r[c]=ve(h);i=f}else{for(M=new Array(f),U=new Array(f),o&&(oe=new Array(f)),N=0,T=Math.min(i,f);N<T&&s[N]===a[N];N++);for(T=i-1,k=f-1;T>=N&&k>=N&&s[T]===a[k];T--,k--)M[k]=r[T],U[k]=l[T],o&&(oe[k]=o[T]);for(g=new Map,R=new Array(k+1),c=k;c>=N;c--)A=a[c],u=g.get(A),R[c]=u===void 0?-1:u,g.set(A,c);for(u=N;u<=T;u++)A=s[u],c=g.get(A),c!==void 0&&c!==-1?(M[c]=r[u],U[c]=l[u],o&&(oe[c]=o[u]),c=R[c],g.set(A,c)):l[u]();for(c=N;c<f;c++)c in M?(r[c]=M[c],l[c]=U[c],o&&(o[c]=oe[c],o[c](c))):r[c]=ve(h);r=r.slice(0,i=f),s=a.slice(0)}return r});function h(g){if(l[c]=g,o){const[R,M]=D(c);return o[c]=M,t(a[c],R)}return t(a[c])}}}function ae(e,t){return P(()=>e(t||{}))}function we(){return!0}var Ie={get(e,t,n){return t===be?n:e.get(t)},has(e,t){return t===be?!0:e.has(t)},set:we,deleteProperty:we,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:we,deleteProperty:we}},ownKeys(e){return e.keys()}};function ke(e){return(e=typeof e=="function"?e():e)?e:{}}function Ct(){for(let e=0,t=this.length;e<t;++e){const n=this[e]();if(n!==void 0)return n}}function vn(...e){let t=!1;for(let i=0;i<e.length;i++){const o=e[i];t=t||!!o&&be in o,e[i]=typeof o=="function"?(t=!0,x(o)):o}if(Je&&t)return new Proxy({get(i){for(let o=e.length-1;o>=0;o--){const a=ke(e[o])[i];if(a!==void 0)return a}},has(i){for(let o=e.length-1;o>=0;o--)if(i in ke(e[o]))return!0;return!1},keys(){const i=[];for(let o=0;o<e.length;o++)i.push(...Object.keys(ke(e[o])));return[...new Set(i)]}},Ie);const n={},s=Object.create(null);for(let i=e.length-1;i>=0;i--){const o=e[i];if(!o)continue;const a=Object.getOwnPropertyNames(o);for(let f=a.length-1;f>=0;f--){const u=a[f];if(u==="__proto__"||u==="constructor")continue;const c=Object.getOwnPropertyDescriptor(o,u);if(!s[u])s[u]=c.get?{enumerable:!0,configurable:!0,get:Ct.bind(n[u]=[c.get.bind(o)])}:c.value!==void 0?c:void 0;else{const h=n[u];h&&(c.get?h.push(c.get.bind(o)):c.value!==void 0&&h.push(()=>c.value))}}}const r={},l=Object.keys(s);for(let i=l.length-1;i>=0;i--){const o=l[i],a=s[o];a&&a.get?Object.defineProperty(r,o,a):r[o]=a?a.value:void 0}return r}function Dt(e,...t){const n=t.length;if(Je&&be in e){const r=n>1?t.flat():t[0],l=t.map(i=>new Proxy({get(o){return i.includes(o)?e[o]:void 0},has(o){return i.includes(o)&&o in e},keys(){return i.filter(o=>o in e)}},Ie));return l.push(new Proxy({get(i){return r.includes(i)?void 0:e[i]},has(i){return r.includes(i)?!1:i in e},keys(){return Object.keys(e).filter(i=>!r.includes(i))}},Ie)),l}const s=[];for(let r=0;r<=n;r++)s[r]={};for(const r of Object.getOwnPropertyNames(e)){let l=n;for(let o=0;o<t.length;o++)if(t[o].includes(r)){l=o;break}const i=Object.getOwnPropertyDescriptor(e,r);!i.get&&!i.set&&i.enumerable&&i.writable&&i.configurable?s[l][r]=i.value:Object.defineProperty(s[l],r,i)}return s}function lt(e){let t,n;const s=r=>{const l=d.context;if(l){const[o,a]=D();d.count||(d.count=0),d.count++,(n||(n=e())).then(f=>{!d.done&&ie(l),d.count--,a(()=>f.default),ie()}),t=o}else if(!t){const[o]=wt(()=>(n||(n=e())).then(a=>a.default));t=o}let i;return x(()=>(i=t())?P(()=>{if(!l||d.done)return i(r);const o=d.context;ie(l);const a=i(r);return ie(o),a}):"")};return s.preload=()=>n||((n=e()).then(r=>t=()=>r.default),n),s}var Rt=0;function pn(){return d.context?d.getNextContextId():`cl-${Rt++}`}var at=e=>`Stale read from <${e}>.`;function bn(e){const t="fallback"in e&&{fallback:()=>e.fallback};return x(Tt(()=>e.each,e.children,t||void 0))}function Sn(e){const t=e.keyed,n=x(()=>e.when,void 0,void 0),s=t?n:x(n,void 0,{equals:(r,l)=>!r==!l});return x(()=>{const r=s();if(r){const l=e.children;return typeof l=="function"&&l.length>0?P(()=>l(t?r:()=>{if(!P(s))throw at("Show");return n()})):l}return e.fallback},void 0,void 0)}function xn(e){const t=nt(()=>e.children),n=x(()=>{const s=t(),r=Array.isArray(s)?s:[s];let l=()=>{};for(let i=0;i<r.length;i++){const o=i,a=r[i],f=l,u=x(()=>f()?void 0:a.when,void 0,void 0),c=a.keyed?u:x(u,void 0,{equals:(h,g)=>!h==!g});l=()=>f()||(c()?[o,u,a]:void 0)}return l});return x(()=>{const s=n()();if(!s)return e.fallback;const[r,l,i]=s,o=i.children;return typeof o=="function"&&o.length>0?P(()=>o(i.keyed?l():()=>{var a;if(((a=P(n)())==null?void 0:a[0])!==r)throw at("Match");return l()})):o},void 0,void 0)}function En(e){return e}var Nt=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline","adAuctionHeaders","allowFullscreen","browsingTopics","defaultChecked","defaultMuted","defaultSelected","disablePictureInPicture","disableRemotePlayback","preservesPitch","shadowRootClonable","shadowRootCustomElementRegistry","shadowRootDelegatesFocus","shadowRootSerializable","sharedStorageWritable","allowfullscreen","async","alpha","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","adauctionheaders","browsingtopics","credentialless","defaultchecked","defaultmuted","defaultselected","defer","disablepictureinpicture","disableremoteplayback","preservespitch","shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootserializable","sharedstoragewritable"]),kt=new Set(["innerHTML","textContent","innerText","children"]),Mt=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),It=Object.assign(Object.create(null),{class:"className",novalidate:{$:"noValidate",FORM:1},formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1},adauctionheaders:{$:"adAuctionHeaders",IFRAME:1},allowfullscreen:{$:"allowFullscreen",IFRAME:1},browsingtopics:{$:"browsingTopics",IMG:1},defaultchecked:{$:"defaultChecked",INPUT:1},defaultmuted:{$:"defaultMuted",AUDIO:1,VIDEO:1},defaultselected:{$:"defaultSelected",OPTION:1},disablepictureinpicture:{$:"disablePictureInPicture",VIDEO:1},disableremoteplayback:{$:"disableRemotePlayback",AUDIO:1,VIDEO:1},preservespitch:{$:"preservesPitch",AUDIO:1,VIDEO:1},shadowrootclonable:{$:"shadowRootClonable",TEMPLATE:1},shadowrootdelegatesfocus:{$:"shadowRootDelegatesFocus",TEMPLATE:1},shadowrootserializable:{$:"shadowRootSerializable",TEMPLATE:1},sharedstoragewritable:{$:"sharedStorageWritable",IFRAME:1,IMG:1}});function $t(e,t){const n=It[e];return typeof n=="object"?n[t]?n.$:void 0:n}var Lt=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),jt=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),_t={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},On=e=>x(()=>e());function Ft(e,t,n){let s=n.length,r=t.length,l=s,i=0,o=0,a=t[r-1].nextSibling,f=null;for(;i<r||o<l;){if(t[i]===n[o]){i++,o++;continue}for(;t[r-1]===n[l-1];)r--,l--;if(r===i){const u=l<s?o?n[o-1].nextSibling:n[l-o]:a;for(;o<l;)e.insertBefore(n[o++],u)}else if(l===o)for(;i<r;)(!f||!f.has(t[i]))&&t[i].remove(),i++;else if(t[i]===n[l-1]&&n[o]===t[r-1]){const u=t[--r].nextSibling;e.insertBefore(n[o++],t[i++].nextSibling),e.insertBefore(n[--l],u),t[r]=n[l]}else{if(!f){f=new Map;let c=o;for(;c<l;)f.set(n[c],c++)}const u=f.get(t[i]);if(u!=null)if(o<u&&u<l){let c=i,h=1,g;for(;++c<r&&c<l&&!((g=f.get(t[c]))==null||g!==u+h);)h++;if(h>u-o){const R=t[i];for(;o<u;)e.insertBefore(n[o++],R)}else e.replaceChild(n[o++],t[i++])}else i++;else t[i++].remove()}}}var Ge="_$DX_DELEGATE";function ct(e,t,n,s={}){let r;return ve(l=>{r=l,t===document?e():Yt(t,e(),t.firstChild?null:void 0,n)},s.owner),()=>{r(),t.textContent=""}}function Pn(e,t,n,s){let r;const l=()=>{const o=document.createElement("template");return o.innerHTML=e,o.content.firstChild},i=()=>(r||(r=l())).cloneNode(!0);return i.cloneNode=i,i}function Vt(e,t=window.document){const n=t[Ge]||(t[Ge]=new Set);for(let s=0,r=e.length;s<r;s++){const l=e[s];n.has(l)||(n.add(l),t.addEventListener(l,Zt))}}function $e(e,t,n){B(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function Bt(e,t,n,s){B(e)||(s==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,s))}function Ut(e,t,n){B(e)||(n?e.setAttribute(t,""):e.removeAttribute(t))}function Gt(e,t){B(e)||(t==null?e.removeAttribute("class"):e.className=t)}function Ht(e,t,n,s){if(s)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const r=n[0];e.addEventListener(t,n[0]=l=>r.call(e,n[1],l))}else e.addEventListener(t,n,typeof n!="function"&&n)}function Kt(e,t,n={}){const s=Object.keys(t||{}),r=Object.keys(n);let l,i;for(l=0,i=r.length;l<i;l++){const o=r[l];!o||o==="undefined"||t[o]||(He(e,o,!1),delete n[o])}for(l=0,i=s.length;l<i;l++){const o=s[l],a=!!t[o];!o||o==="undefined"||n[o]===a||!a||(He(e,o,!0),n[o]=a)}return n}function qt(e,t,n){if(!t)return n?$e(e,"style"):t;const s=e.style;if(typeof t=="string")return s.cssText=t;typeof n=="string"&&(s.cssText=n=void 0),n||(n={}),t||(t={});let r,l;for(l in n)t[l]??s.removeProperty(l),delete n[l];for(l in t)r=t[l],r!==n[l]&&(s.setProperty(l,r),n[l]=r);return n}function Xt(e,t={},n,s){const r={};return s||V(()=>r.children=ue(e,t.children,r.children)),V(()=>typeof t.ref=="function"&&Wt(t.ref,e)),V(()=>zt(e,t,n,!0,r,!0)),r}function Wt(e,t,n){return P(()=>e(t,n))}function Yt(e,t,n,s){if(n!==void 0&&!s&&(s=[]),typeof t!="function")return ue(e,t,s,n);V(r=>ue(e,t(),r,n),s)}function zt(e,t,n,s,r={},l=!1){t||(t={});for(const i in r)if(!(i in t)){if(i==="children")continue;r[i]=Ke(e,i,null,r[i],n,l,t)}for(const i in t){if(i==="children")continue;const o=t[i];r[i]=Ke(e,i,o,r[i],n,l,t)}}function Qt(e){let t,n;return!B()||!(t=d.registry.get(n=en()))?e():(d.completed&&d.completed.add(t),d.registry.delete(n),t)}function B(e){return!!d.context&&!d.done&&(!e||e.isConnected)}function Jt(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function He(e,t,n){const s=t.trim().split(/\s+/);for(let r=0,l=s.length;r<l;r++)e.classList.toggle(s[r],n)}function Ke(e,t,n,s,r,l,i){let o,a,f,u,c;if(t==="style")return qt(e,n,s);if(t==="classList")return Kt(e,n,s);if(n===s)return s;if(t==="ref")l||n(e);else if(t.slice(0,3)==="on:"){const h=t.slice(3);s&&e.removeEventListener(h,s,typeof s!="function"&&s),n&&e.addEventListener(h,n,typeof n!="function"&&n)}else if(t.slice(0,10)==="oncapture:"){const h=t.slice(10);s&&e.removeEventListener(h,s,!0),n&&e.addEventListener(h,n,!0)}else if(t.slice(0,2)==="on"){const h=t.slice(2).toLowerCase(),g=Lt.has(h);if(!g&&s){const R=Array.isArray(s)?s[0]:s;e.removeEventListener(h,R)}(g||n)&&(Ht(e,h,n,g),g&&Vt([h]))}else if(t.slice(0,5)==="attr:")$e(e,t.slice(5),n);else if(t.slice(0,5)==="bool:")Ut(e,t.slice(5),n);else if((c=t.slice(0,5)==="prop:")||(f=kt.has(t))||!r&&((u=$t(t,e.tagName))||(a=Nt.has(t)))||(o=e.nodeName.includes("-")||"is"in i)){if(c)t=t.slice(5),a=!0;else if(B(e))return n;t==="class"||t==="className"?Gt(e,n):o&&!a&&!f?e[Jt(t)]=n:e[u||t]=n}else{const h=r&&t.indexOf(":")>-1&&_t[t.split(":")[0]];h?Bt(e,h,t,n):$e(e,Mt[t]||t,n)}return n}function Zt(e){if(d.registry&&d.events&&d.events.find(([a,f])=>f===e))return;let t=e.target;const n=`$$${e.type}`,s=e.target,r=e.currentTarget,l=a=>Object.defineProperty(e,"target",{configurable:!0,value:a}),i=()=>{const a=t[n];if(a&&!t.disabled){const f=t[`${n}Data`];if(f!==void 0?a.call(t,f,e):a.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&l(t.host),!0},o=()=>{for(;i()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),d.registry&&!d.done&&(d.done=_$HY.done=!0),e.composedPath){const a=e.composedPath();l(a[0]);for(let f=0;f<a.length-2&&(t=a[f],!!i());f++){if(t._$host){t=t._$host,o();break}if(t.parentNode===r)break}}else o();l(s)}function ue(e,t,n,s,r){const l=B(e);if(l){!n&&(n=[...e.childNodes]);let a=[];for(let f=0;f<n.length;f++){const u=n[f];u.nodeType===8&&u.data.slice(0,2)==="!$"?u.remove():a.push(u)}n=a}for(;typeof n=="function";)n=n();if(t===n)return n;const i=typeof t,o=s!==void 0;if(e=o&&n[0]&&n[0].parentNode||e,i==="string"||i==="number"){if(l||i==="number"&&(t=t.toString(),t===n))return n;if(o){let a=n[0];a&&a.nodeType===3?a.data!==t&&(a.data=t):a=document.createTextNode(t),n=G(e,n,s,a)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t}else if(t==null||i==="boolean"){if(l)return n;n=G(e,n,s)}else{if(i==="function")return V(()=>{let a=t();for(;typeof a=="function";)a=a();n=ue(e,a,n,s)}),()=>n;if(Array.isArray(t)){const a=[],f=n&&Array.isArray(n);if(Le(a,t,n,r))return V(()=>n=ue(e,a,n,s,!0)),()=>n;if(l){if(!a.length)return n;if(s===void 0)return n=[...e.childNodes];let u=a[0];if(u.parentNode!==e)return n;const c=[u];for(;(u=u.nextSibling)!==s;)c.push(u);return n=c}if(a.length===0){if(n=G(e,n,s),o)return n}else f?n.length===0?qe(e,a,s):Ft(e,n,a):(n&&G(e),qe(e,a));n=a}else if(t.nodeType){if(l&&t.parentNode)return n=o?[t]:t;if(Array.isArray(n)){if(o)return n=G(e,n,s,t);G(e,n,null,t)}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}}return n}function Le(e,t,n,s){let r=!1;for(let l=0,i=t.length;l<i;l++){let o=t[l],a=n&&n[e.length],f;if(!(o==null||o===!0||o===!1))if((f=typeof o)=="object"&&o.nodeType)e.push(o);else if(Array.isArray(o))r=Le(e,o,a)||r;else if(f==="function")if(s){for(;typeof o=="function";)o=o();r=Le(e,Array.isArray(o)?o:[o],Array.isArray(a)?a:[a])||r}else e.push(o),r=!0;else{const u=String(o);a&&a.nodeType===3&&a.data===u?e.push(a):e.push(document.createTextNode(u))}}return r}function qe(e,t,n=null){for(let s=0,r=t.length;s<r;s++)e.insertBefore(t[s],n)}function G(e,t,n,s){if(n===void 0)return e.textContent="";const r=s||document.createTextNode("");if(t.length){let l=!1;for(let i=t.length-1;i>=0;i--){const o=t[i];if(r!==o){const a=o.parentNode===e;!l&&!i?a?e.replaceChild(r,o):e.insertBefore(r,n):a&&o.remove()}else l=!0}}else e.insertBefore(r,n);return[r]}function en(){return d.getNextContextId()}var tn="http://www.w3.org/2000/svg";function nn(e,t=!1,n=void 0){return t?document.createElementNS(tn,e):document.createElement(e,{is:n})}function sn(e,t){const n=x(e);return x(()=>{const s=n();switch(typeof s){case"function":return P(()=>s(t));case"string":const r=jt.has(s),l=d.context?Qt():nn(s,r,P(()=>t.is));return Xt(l,t,r),l}})}function An(e){const[,t]=Dt(e,["component"]);return sn(()=>e.component,t)}var ut=tt(void 0),ft=tt(void 0),Tn=()=>{const e=bt(ft);if(!e)throw new Error("useDevtoolsOnClose must be used within a TanStackRouterDevtools component");return e},H,K,q,X,W,fe,de,he,Y,_,z,ge,Xe,on=(Xe=class{constructor(e){p(this,H);p(this,K);p(this,q);p(this,X);p(this,W);p(this,fe);p(this,de);p(this,he);p(this,Y);p(this,_,!1);p(this,z);p(this,ge);m(this,H,D(e.router)),m(this,K,D(e.routerState)),m(this,q,e.position??"bottom-left"),m(this,X,e.initialIsOpen??!1),m(this,W,e.shadowDOMTarget),m(this,fe,e.panelProps),m(this,de,e.closeButtonProps),m(this,he,e.toggleButtonProps),m(this,Y,e.containerElement)}mount(e){if(y(this,_))throw new Error("Devtools is already mounted");const t=ct(()=>{const[n]=y(this,H),[s]=y(this,K),r=y(this,q),l=y(this,X),i=y(this,W),o=y(this,fe),a=y(this,de),f=y(this,he),u=y(this,Y);let c;return y(this,z)?c=y(this,z):(c=lt(()=>Ye(()=>import("./FloatingTanStackRouterDevtools-CqogiFob-BP7EJ2JL.js"),__vite__mapDeps([0,1,2,3]))),m(this,z,c)),ae(ut.Provider,{value:i,get children(){return ae(c,{position:r,initialIsOpen:l,router:n,routerState:s,shadowDOMTarget:i,panelProps:o,closeButtonProps:a,toggleButtonProps:f,containerElement:u})}})},e);m(this,_,!0),m(this,ge,t)}unmount(){var e;if(!y(this,_))throw new Error("Devtools is not mounted");(e=y(this,ge))==null||e.call(this),m(this,_,!1)}setRouter(e){y(this,H)[1](e)}setRouterState(e){y(this,K)[1](e)}setOptions(e){e.position!==void 0&&m(this,q,e.position),e.initialIsOpen!==void 0&&m(this,X,e.initialIsOpen),e.shadowDOMTarget!==void 0&&m(this,W,e.shadowDOMTarget),e.containerElement!==void 0&&m(this,Y,e.containerElement)}},H=new WeakMap,K=new WeakMap,q=new WeakMap,X=new WeakMap,W=new WeakMap,fe=new WeakMap,de=new WeakMap,he=new WeakMap,Y=new WeakMap,_=new WeakMap,z=new WeakMap,ge=new WeakMap,Xe),Q,J,Z,ee,te,F,ye,me,ne,We,rn=(We=class{constructor(e){p(this,Q);p(this,J);p(this,Z);p(this,ee);p(this,te);p(this,F,!1);p(this,ye);p(this,me);p(this,ne);const{router:t,routerState:n,shadowDOMTarget:s,setIsOpen:r,style:l,className:i}=e;m(this,Q,D(t)),m(this,J,D(n)),m(this,Z,D(l)),m(this,ee,D(i)),m(this,te,s),m(this,ye,r)}mount(e){if(y(this,F))throw new Error("Devtools is already mounted");const t=ct(()=>{const[n]=y(this,Q),[s]=y(this,J),[r]=y(this,Z),[l]=y(this,ee),i=y(this,te),o=y(this,ye);let a;return y(this,ne)?a=y(this,ne):(a=lt(()=>Ye(()=>import("./BaseTanStackRouterDevtoolsPanel-B-iktbLX-9TVHyRPJ.js"),__vite__mapDeps([1,2,3]))),m(this,ne,a)),ae(ut.Provider,{value:i,get children(){return ae(ft.Provider,{value:{onCloseClick:()=>{}},get children(){return ae(a,{router:n,routerState:s,shadowDOMTarget:i,setIsOpen:o,style:r,className:l})}})}})},e);m(this,F,!0),m(this,me,t)}unmount(){var e;if(!y(this,F))throw new Error("Devtools is not mounted");(e=y(this,me))==null||e.call(this),m(this,F,!1)}setRouter(e){y(this,Q)[1](e)}setRouterState(e){y(this,J)[1](e)}setStyle(e){y(this,Z)[1](e)}setClassName(e){y(this,ee)[1](e)}setOptions(e){e.shadowDOMTarget!==void 0&&m(this,te,e.shadowDOMTarget),e.router!==void 0&&this.setRouter(e.router),e.routerState!==void 0&&this.setRouterState(e.routerState),e.style!==void 0&&this.setStyle(e.style),e.className!==void 0&&this.setClassName(e.className)}},Q=new WeakMap,J=new WeakMap,Z=new WeakMap,ee=new WeakMap,te=new WeakMap,F=new WeakMap,ye=new WeakMap,me=new WeakMap,ne=new WeakMap,We);function ln(e){const{initialIsOpen:t,panelProps:n,closeButtonProps:s,toggleButtonProps:r,position:l,containerElement:i,shadowDOMTarget:o,router:a}=e,f=ze(),u=a??f,c=Qe({router:u}),h=C.useRef(null),[g]=C.useState(()=>new on({initialIsOpen:t,panelProps:n,closeButtonProps:s,toggleButtonProps:r,position:l,containerElement:i,shadowDOMTarget:o,router:u,routerState:c}));return C.useEffect(()=>{g.setRouter(u)},[g,u]),C.useEffect(()=>{g.setRouterState(c)},[g,c]),C.useEffect(()=>{g.setOptions({initialIsOpen:t,panelProps:n,closeButtonProps:s,toggleButtonProps:r,position:l,containerElement:i,shadowDOMTarget:o})},[g,t,n,s,r,l,i,o]),C.useEffect(()=>(h.current&&g.mount(h.current),()=>{g.unmount()}),[g]),le.jsx(C.Fragment,{children:le.jsx("div",{ref:h})})}var an=e=>{const{router:t,...n}=e,s=ze(),r=t??s,l=Qe({router:r}),i=C.useRef(null),[o]=C.useState(()=>new rn({...n,router:r,routerState:l}));return C.useEffect(()=>{o.setRouter(r)},[o,r]),C.useEffect(()=>{o.setRouterState(l)},[o,l]),C.useEffect(()=>{o.setOptions({className:e.className,style:e.style,shadowDOMTarget:e.shadowDOMTarget})},[o,e.className,e.style,e.shadowDOMTarget]),C.useEffect(()=>(i.current&&o.mount(i.current),()=>{o.unmount()}),[o]),le.jsx(le.Fragment,{children:le.jsx("div",{ref:i})})},cn=function(){return null},un=ln,fn=function(){return null},dn=an;const Cn=Object.freeze(Object.defineProperty({__proto__:null,TanStackRouterDevtools:cn,TanStackRouterDevtoolsInProd:un,TanStackRouterDevtoolsPanel:fn,TanStackRouterDevtoolsPanelInProd:dn},Symbol.toStringTag,{value:"Module"}));export{ft as D,bn as F,En as M,xn as S,yn as a,x as b,D as c,ae as d,V as e,Gt as f,An as g,pn as h,Yt as i,$e as j,Ht as k,On as l,vn as m,bt as n,Sn as o,vt as p,P as q,ut as r,Xt as s,Pn as t,Tn as u,Vt as v,Cn as w};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as m,C as x,a as h,c as p,p as g}from"./use-session-diagnostics-a4b83F5J.js";import{A as he,b as pe,d as ge,e as fe,G as je,M as Se,f as be,P as ve,g as ke,R as Ne,h as Ie,S as Ce,i as we,j as ye,U as Me,k as Pe,l as Re,m as Ae,n as Te,o as Ue,q as De,r as Ee,s as Ge,t as Oe,v as $e,w as Le,x as Be,y as qe,z as _e,B as Fe,D as ze}from"./use-session-diagnostics-a4b83F5J.js";import{c6 as f,j as s,l as j,B as S,c8 as b,aW as v,c9 as k,ca as t,G as N,cb as r,cc as I,cd as C,r as l,ce as w,_ as y}from"./index-Cga0qx1T.js";import{cf as Qe,cg as Ve,ch as Ke,ci as We,cj as Je,ck as Xe,cl as Ye,cm as Ze,cn as es,co as ss,cp as ts,cq as ns,cr as as,cs as os,ct as rs,cu as is}from"./index-Cga0qx1T.js";import{f as M}from"./format-duration-BCr6uzby.js";import{r as P}from"./composer-insert-BpyATrmR.js";import{S as R}from"./ConnectionAccessLists-f7QeQbQo.js";import"./git-branch-BpxhecMq.js";import"./use-update-config-Tbn3SodN.js";import"./settings-for-runtime-BoOa-ZFG.js";import"./card-B3CtfC3R.js";import"./RuntimeSetupDialog-Cr4GRi8c.js";import"./inline-code-BE9ckzPs.js";import"./list-runtime-types-CP82p1u4.js";import"./RuntimeConnectFlow-DjReuQ-T.js";import"./useMutationState-DdOGdpjP.js";import"./runtime-connect-Dn0T5YWv.js";import"./terminal-6CdY-T1V.js";import"./unverified-catalog-notice-CEzu54YH.js";import"./layers-Cm7coqdo.js";import"./cpu-B7xLO7jn.js";import"./access-copy-B3yNZ7Gz.js";import"./query-error-state-BkUdxenP.js";import"./empty-state-J-UJ0BUU.js";const A="I need access to another service. Ask me which service and actions you need, then request only that access.";function T({sessionId:e}){const a=f(),o=s.jsx(S,{variant:"secondary",size:"sm","data-testid":`ask-agent-for-connection-${e}`,onClick:()=>P(A),children:"Ask your agent"});return s.jsx(R,{sessionId:e,onManage:()=>void a({...j.connections()}),emptyAction:o,footer:s.jsx("div",{className:"pt-1",children:o})})}const U=1e3;function de(){const[e]=b(),a=m(e??""),o=v(n=>n.rightPanelOpen);return e?s.jsx(D,{diagnostics:a,live:o,connectors:s.jsx(T,{sessionId:e})}):s.jsx("div",{className:"text-muted-foreground flex h-full items-center justify-center p-6 text-center text-xs",children:"Open a chat to inspect it."})}function D({diagnostics:e,live:a=!0,connectors:o}){return s.jsxs("div",{"data-slot":"session-inspector",className:"flex h-full min-w-0 flex-col gap-4 overflow-y-auto p-3",children:[s.jsx(E,{diagnostics:e,live:a}),s.jsx(G,{diagnostics:e}),s.jsx(O,{diagnostics:e}),s.jsx($,{diagnostics:e}),o,s.jsxs("div",{className:"mt-auto pt-2",children:[s.jsx(k,{className:"mb-2"}),s.jsx(x,{diagnostics:e,className:"w-full justify-center"})]})]})}function E({diagnostics:e,live:a}){const o=_(e.lastEventAt,a),n=h[e.connectionState];return s.jsxs(c,{label:"Live",children:[s.jsx(t,{label:"Live updates",children:s.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[s.jsx("span",{"aria-hidden":!0,className:N("inline-block size-1.5 rounded-full",n.color,n.tasks&&"animate-breath")}),n.shortLabel]})}),s.jsx(t,{label:"Turn",children:L(e)}),s.jsx(t,{label:"Last event",children:e.lastEventSeq===0?"none yet":`seq ${e.lastEventSeq}`}),s.jsx(t,{label:"Resumed from",children:e.snapshotCursor===null?"not hydrated":`cursor ${e.snapshotCursor}`}),s.jsx(t,{label:"Last update",children:o===null?"—":`${M(o)} ago`}),s.jsx(t,{label:"Queued messages",children:String(e.queueDepth)})]})}function G({diagnostics:e}){return s.jsxs(c,{label:"Resolved",children:[s.jsx(t,{label:"Directory",wrap:!0,children:e.cwd??"—"}),s.jsx(t,{label:"Git",children:q(e.git)}),s.jsx(t,{label:"Runs on",children:e.runtime??"—"}),s.jsx(t,{label:"Model",wrap:!0,children:e.model??"—"}),e.selectedModel!==null&&e.selectedModel!==e.model&&s.jsx(t,{label:"Model selected",children:e.selectedModel}),s.jsx(t,{label:"Effort",children:e.effort??"—"}),s.jsx(t,{label:"Fast mode",children:e.fastMode?"on":"off"}),s.jsx(t,{label:"Permissions",children:e.permissionMode}),s.jsx(t,{label:"Chat ID",wrap:!0,children:e.sessionId}),s.jsx(t,{label:"DorkOS version",children:e.clientVersion??"—"})]})}function O({diagnostics:e}){var o;const a=(((o=e.contextUsage)==null?void 0:o.categories)??[]).filter(n=>n.tokens>0).sort((n,i)=>i.tokens-n.tokens);return s.jsxs(c,{label:"Usage",children:[s.jsx(t,{label:"Context",children:e.contextPercent===null?"—":`${e.contextPercent}% full`}),e.contextUsage&&s.jsxs(t,{label:"Tokens",children:[r(e.contextUsage.totalTokens)," / ",r(e.contextUsage.maxTokens)]}),a.map(n=>s.jsx(t,{label:n.name,indent:!0,swatch:n.color,"data-testid":`context-category-${n.name}`,children:r(n.tokens)},n.name)),e.cache===null?s.jsx(t,{label:"Cache",children:"nothing cached yet"}):s.jsxs(s.Fragment,{children:[s.jsx(t,{label:"Cache hit",children:`${p(e.cache)}%`}),s.jsx(t,{label:"Cache read",indent:!0,children:r(e.cache.readTokens)}),s.jsx(t,{label:"Cache written",indent:!0,children:r(e.cache.creationTokens)})]}),e.usage!==null&&I(e.usage)?s.jsx("div",{className:"pt-1",children:s.jsx(C,{usage:e.usage})}):s.jsx(t,{label:"Usage & cost",children:"no usage reported"})]})}function $({diagnostics:e}){const{running:a,finished:o}=g(e.activeSubagents);return s.jsxs(c,{label:"Subagents",children:[s.jsx(t,{label:"Running",children:B(a.length,e.runningSubagentCount)}),a.map(n=>s.jsx(u,{subagent:n},n.taskId)),o.length>0&&s.jsxs(s.Fragment,{children:[s.jsx(t,{label:"Finished this turn",children:String(o.length)}),o.map(n=>s.jsx(u,{subagent:n},n.taskId))]}),s.jsx(t,{label:"Available",children:e.subagents.length===0?"none":e.subagents.map(n=>n.name).join(", ")})]})}function u({subagent:e}){return s.jsxs("div",{"data-testid":`active-subagent-${e.taskId}`,"data-status":e.status,className:"space-y-0.5 py-1",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(w,{className:"text-muted-foreground size-3.5 shrink-0","aria-hidden":!0}),s.jsx("span",{className:"min-w-0 flex-1 truncate",children:e.description??e.taskId}),s.jsx(y,{size:"xs",variant:"secondary",className:"shrink-0",children:e.status})]}),s.jsxs("p",{className:"text-muted-foreground text-3xs pl-5 leading-tight",children:[e.toolUses??0," tool",e.toolUses===1?"":"s",e.lastToolName?` · last ${e.lastToolName}`:""]})]})}function c({label:e,children:a}){return s.jsxs("section",{className:"min-w-0",children:[s.jsx("h3",{className:"text-muted-foreground px-1 pb-1 text-xs font-medium tracking-wide uppercase",children:e}),s.jsx("div",{className:"space-y-1 px-1 text-xs",children:a})]})}function L(e){return e.triggerPending?"sending":e.streaming?"streaming":e.lifecycle??"not hydrated"}function B(e,a){const o=e===0?"none":String(e);return a===null||a===e?o:`${o} · server says ${a}`}function q(e){return e.state==="unknown"?"—":e.state==="no-repo"?"no repo":e.dirty?`${e.branch} · changed`:`${e.branch} · clean`}function _(e,a){const[o,n]=l.useState(()=>Date.now());return l.useEffect(()=>{if(e===null||!a)return;const i=()=>n(Date.now());i();const d=setInterval(i,U);return()=>clearInterval(d)},[e,a]),e===null?null:Math.max(0,o-e)}export{Qe as AccountBadge,Ve as AccountBadgeView,Ke as AccountItem,We as AccountMenuRow,Je as AccountPopover,Xe as AccountTrigger,he as AutoModeConfirmDialog,pe as ConnectionItem,ge as ContextItem,fe as CwdItem,je as GitStatusItem,Se as MakeDefaultStopLine,be as ModelConfigPopover,ve as PermissionModeItem,ke as PlanModeItem,Ne as ReadOnlyModeNotice,Ie as RuntimeItem,de as SessionInspector,Ce as SessionPopover,D as SessionReadout,we as StatusLine,ye as SubagentsItem,Me as UsageRevealPopover,Ye as UsageStatusItem,Ze as accountChipPromotion,Pe as applyStatusBudget,es as canOfferContinue,ss as chipToneFor,Re as evaluateExtensionStatusItems,ts as formatCost,Ae as formatDiagnostics,Te as gitPromotionState,I as hasRenderableUsage,Ue as isGitStatusOk,De as isUsageAbsorbed,g as partitionSubagents,Ee as resolveStatusBudget,Ge as selectPromotedItems,ns as showsStaleMark,Oe as useExtensionStatusItems,$e as useGitStatus,Le as useMakeDefaultStop,Be as useReadOnlyModeHint,as as useResolvedSessionRuntime,os as useRuntimeChip,rs as useSessionAccount,m as useSessionDiagnostics,is as useSessionPermissionPicker,qe as useSessionPopoverShortcut,_e as useStatusBarPins,Fe as useStatusBudget,ze as useStatusUsage};
|