dorkos 0.126.2 → 0.126.4
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 +254 -114
- package/dist/browser/native/package-manifest.json +1 -1
- package/dist/browser/source-manifest.json +1 -1
- package/dist/client/assets/{AboutPage-BQ66xWcJ.js → AboutPage-CAt15a-r.js} +1 -1
- package/dist/client/assets/{ActivityErrorState-CPbfgXjw.js → ActivityErrorState-s4xAcJQR.js} +1 -1
- package/dist/client/assets/{ActivityPage-CesljfZn.js → ActivityPage-BpSggjZV.js} +1 -1
- package/dist/client/assets/{ActivityRow-DzhwE0ht.js → ActivityRow-5PJBHIt2.js} +1 -1
- package/dist/client/assets/{AdapterIcon-BXJkyF5g.js → AdapterIcon-d8mZODCX.js} +1 -1
- package/dist/client/assets/AdapterSetupWizard-R-KxNMiM.js +2 -0
- package/dist/client/assets/{AgentOptionRow-0VdNzXCF.js → AgentOptionRow-hemBruhh.js} +1 -1
- package/dist/client/assets/{AgentPicker-Ldh64iOA.js → AgentPicker-DOba9a77.js} +1 -1
- package/dist/client/assets/{AgentRequestCard-CmAlDGTr.js → AgentRequestCard-RFQOrk-W.js} +1 -1
- package/dist/client/assets/{AppearancePage-DmsZPHst.js → AppearancePage-1m4bJ-Rg.js} +1 -1
- package/dist/client/assets/{ApplyToOverridesDialog-Ct1W283T.js → ApplyToOverridesDialog-BxeMLhGv.js} +1 -1
- package/dist/client/assets/{AttentionSignalRow-B7gezgzA.js → AttentionSignalRow-BoTonsR5.js} +1 -1
- package/dist/client/assets/{BaseTanStackRouterDevtoolsPanel-B-iktbLX-Nqvr65_g.js → BaseTanStackRouterDevtoolsPanel-B-iktbLX-Bz6XyZ6v.js} +3 -3
- package/dist/client/assets/BindingDialog-CILm91iU.js +1 -0
- package/dist/client/assets/{BlintzCanvas-BCtfZPrs.js → BlintzCanvas-BFJXKo1L.js} +3 -3
- package/dist/client/assets/{CanvasCsvContent-DYksqzaf.js → CanvasCsvContent-DzkaHpEo.js} +3 -3
- package/dist/client/assets/{CanvasFileContent-CqEqSxuJ.js → CanvasFileContent-DZf9SjJn.js} +2 -2
- package/dist/client/assets/{CanvasModel3dContent-vR6ze4IR.js → CanvasModel3dContent-Cd8hf6Ba.js} +2 -2
- package/dist/client/assets/{ChannelComposer-BVACOdph.js → ChannelComposer-YXkkFcyY.js} +10 -10
- package/dist/client/assets/{ChatAppsOff-VsPP2Hye.js → ChatAppsOff-X5Y8OHAz.js} +2 -2
- package/dist/client/assets/{CodeMirrorDiff-CmKjH03N.js → CodeMirrorDiff-BsQKbrls.js} +1 -1
- package/dist/client/assets/{CodeMirrorEditor-BtNgazuc.js → CodeMirrorEditor-DnkumDd3.js} +1 -1
- package/dist/client/assets/{CommitmentList-D9I-CmNy.js → CommitmentList-BjI2jvMX.js} +1 -1
- package/dist/client/assets/{CommitmentsPage-BORMYDZb.js → CommitmentsPage-7g68FcGR.js} +1 -1
- package/dist/client/assets/{ComputerResourceView-BZ9BxgOi.js → ComputerResourceView-Dcd0e_Oj.js} +1 -1
- package/dist/client/assets/{ComputerViewer-CbuU9tXK.js → ComputerViewer-Dq3aQyZD.js} +1 -1
- package/dist/client/assets/{ConnectionAccessLists-uE-Fzp6Y.js → ConnectionAccessLists-CXPn8ICQ.js} +1 -1
- package/dist/client/assets/{ConnectionsPage-D7QTHeQQ.js → ConnectionsPage-DEc4JsR5.js} +2 -2
- package/dist/client/assets/{ConventionPage-PS2WWCyB.js → ConventionPage-B7cm4O1D.js} +1 -1
- package/dist/client/assets/{ExtensionPageRoute-Cn7bYxGB.js → ExtensionPageRoute-ba2uGsYs.js} +2 -2
- package/dist/client/assets/{FloatingTanStackRouterDevtools-CqogiFob-DKGNSXVz.js → FloatingTanStackRouterDevtools-CqogiFob-Dxk_rLHR.js} +1 -1
- package/dist/client/assets/{ForwardConsentHost-CLIHtWwq.js → ForwardConsentHost-CNuTTR3q.js} +1 -1
- package/dist/client/assets/HandlePage-WIwOCyJg.js +1 -0
- package/dist/client/assets/{HeartbeatPage-7MTowke-.js → HeartbeatPage-CEb8SaAx.js} +1 -1
- package/dist/client/assets/{KeyEntry-Cf7D0Oo6.js → KeyEntry-CHJpgP6H.js} +1 -1
- package/dist/client/assets/{LexicalField-DqvzeMr3.js → LexicalField-B0tWaDy5.js} +1 -1
- package/dist/client/assets/{ManagesPage-DxR4zWMf.js → ManagesPage-rcz--gCT.js} +1 -1
- package/dist/client/assets/{Marketplace-V_92jKOn.js → Marketplace-wjAUiULQ.js} +4 -4
- package/dist/client/assets/{MarketplaceSourcesView-CjCVMP_d.js → MarketplaceSourcesView-BMGnEy8T.js} +1 -1
- package/dist/client/assets/{McpAppFrame-4JDJsrmg.js → McpAppFrame-CmwiQHxf.js} +2 -2
- package/dist/client/assets/{McpSigninBody-DG1XX7XT.js → McpSigninBody-D99PCc0n.js} +1 -1
- package/dist/client/assets/{Model3dViewer-DedBFHsl.js → Model3dViewer-qUwwZnb2.js} +1 -1
- package/dist/client/assets/NamePage-B7VSrPmK.js +1 -0
- package/dist/client/assets/{NewDirectMessageMenu-C8t7x-sB.js → NewDirectMessageMenu-DyMfEU7i.js} +1 -1
- package/dist/client/assets/{NotificationsPage-DwGFE3F6.js → NotificationsPage-BsOaV6Ei.js} +1 -1
- package/dist/client/assets/{OpenMeshSwitch-DPmTA9eg.js → OpenMeshSwitch-CjCPWZn0.js} +2 -2
- package/dist/client/assets/{OperatorIdentityForm-Cu0h8Xqy.js → OperatorIdentityForm-Cd6B2hxb.js} +1 -1
- package/dist/client/assets/{PermissionHistory-zD6ksrl2.js → PermissionHistory-xp6vPQ20.js} +1 -1
- package/dist/client/assets/{PermissionsPage-Durcnmie.js → PermissionsPage-DaAJew99.js} +1 -1
- package/dist/client/assets/{PersonalityPopover-DuRjJuLj.js → PersonalityPopover-BZaif5Fn.js} +1 -1
- package/dist/client/assets/PhotoPage-43WNaavk.js +1 -0
- package/dist/client/assets/{PreviewRefusedNotice-hlYrFDQM.js → PreviewRefusedNotice-CCpHgrea.js} +1 -1
- package/dist/client/assets/{ProfileFields-x-x8vgNo.js → ProfileFields-DyVqmcPr.js} +1 -1
- package/dist/client/assets/{ProfilePanelContainer-8WxopRj2.js → ProfilePanelContainer-CMRG6AmB.js} +1 -1
- package/dist/client/assets/{ProfileRolePicker-BfciiNpr.js → ProfileRolePicker-Q_hY6ybO.js} +1 -1
- package/dist/client/assets/{PromptSuggestionChips-D34Zeaq_.js → PromptSuggestionChips-B5afjbD0.js} +1 -1
- package/dist/client/assets/{ReportsToPopover-BhqA5qXi.js → ReportsToPopover-CVF7Rtzh.js} +1 -1
- package/dist/client/assets/{RoomSurface-BlMNuQsT.js → RoomSurface-Bz1DfoQD.js} +1 -1
- package/dist/client/assets/{RoomsPage-C52AOHIE.js → RoomsPage-4u74yonc.js} +1 -1
- package/dist/client/assets/{RunsOnPopover-DLhEKwXF.js → RunsOnPopover-CnUm4LP2.js} +1 -1
- package/dist/client/assets/{RuntimeConnectFlow-D3H5Fpkc.js → RuntimeConnectFlow-B0TIITVq.js} +1 -1
- package/dist/client/assets/{RuntimeSetupDialog-DPU4QIY9.js → RuntimeSetupDialog-CEUC7GrY.js} +1 -1
- package/dist/client/assets/{SeenDevices-CDSHTsL7.js → SeenDevices-CxhuIRp3.js} +2 -2
- package/dist/client/assets/{SessionsPage-Crh3D3Jj.js → SessionsPage-l6_Qc7hz.js} +1 -1
- package/dist/client/assets/{SettingsDialog-D0Oh-ku1.js → SettingsDialog-GEK8nhI8.js} +4 -4
- package/dist/client/assets/{SkillsPage-BPexZwnJ.js → SkillsPage-PlVj6VdA.js} +1 -1
- package/dist/client/assets/{TaskDialogWrapper-D6RB8E59.js → TaskDialogWrapper-TspfYk9J.js} +1 -1
- package/dist/client/assets/{TasksEmptyState-Di3SbhJM.js → TasksEmptyState-DsHh0blU.js} +2 -2
- package/dist/client/assets/{TasksPage-CDLsY1Ww.js → TasksPage-Va0dvkif.js} +1 -1
- package/dist/client/assets/{TeamComputerEntry-B_q-oVSs.js → TeamComputerEntry-C6juiObF.js} +1 -1
- package/dist/client/assets/{ToolsPage-gvIVTnwf.js → ToolsPage-C0ESG42C.js} +2 -2
- package/dist/client/assets/{TopologyGraph-Bp8aL_qw.js → TopologyGraph-M24Edx-I.js} +3 -3
- package/dist/client/assets/TourHost-CcN4uCDR.js +1 -0
- package/dist/client/assets/{UnlinkDialog-Ddd1Yxfk.js → UnlinkDialog-DlD1cmRZ.js} +1 -1
- package/dist/client/assets/{UnreadDivider-LL4_YtF0.js → UnreadDivider-DPD9MQ8-.js} +1 -1
- package/dist/client/assets/{WidgetErrorCard-BA3P7hNv.js → WidgetErrorCard-Bte2obmw.js} +3 -3
- package/dist/client/assets/{WithheldExtensionsNotice-quqWNbus.js → WithheldExtensionsNotice-CZibLuKA.js} +1 -1
- package/dist/client/assets/{WorkView-C_h8sclU.js → WorkView-PsLjURld.js} +15 -15
- package/dist/client/assets/{_shell-D9q8zLfr.js → _shell-Ce_cSF7V.js} +2 -2
- package/dist/client/assets/{_shell._home-CrTxBB3h.js → _shell._home-DcZcTXu8.js} +1 -1
- package/dist/client/assets/{_shell._home.activity-2M0BJkbQ.js → _shell._home.activity-BXw8iSC4.js} +1 -1
- package/dist/client/assets/_shell._home.index-BleaCq_y.js +3 -0
- package/dist/client/assets/{_shell._home.tasks-Dfrqv2nl.js → _shell._home.tasks-gdbnkq3-.js} +1 -1
- package/dist/client/assets/{_shell._home.workspaces-DPLQXDdH.js → _shell._home.workspaces-BCwJX783.js} +1 -1
- package/dist/client/assets/{_shell.channels-CJqfUTZ1.js → _shell.channels-D-lMqbSA.js} +1 -1
- package/dist/client/assets/_shell.connections-BFmTpceq.js +1 -0
- package/dist/client/assets/{_shell.feedback-requests-BeWCqScf.js → _shell.feedback-requests-NKpm6Uhu.js} +1 -1
- package/dist/client/assets/_shell.marketplace-DB7NSxDU.js +1 -0
- package/dist/client/assets/_shell.marketplace_.sources-WU9ILkRM.js +1 -0
- package/dist/client/assets/_shell.session-CchZWYRA.js +1 -0
- package/dist/client/assets/{_shell.team-EPvcS7RS.js → _shell.team-DcCRbdAb.js} +4 -4
- package/dist/client/assets/{_shell.threads-NJDzq9dv.js → _shell.threads-BLy6Cgqk.js} +1 -1
- package/dist/client/assets/_shell.x._extensionId-CVW0g7Rb.js +1 -0
- package/dist/client/assets/_shell.x._extensionId_._-CVW0g7Rb.js +1 -0
- package/dist/client/assets/{abnfDiagram-WEYOIA3C-DUHshdrR.js → abnfDiagram-WEYOIA3C-DpkXbw1_.js} +1 -1
- package/dist/client/assets/{access-copy-DHfPjN3G.js → access-copy-Y2_F9uAx.js} +1 -1
- package/dist/client/assets/{arc-sP6zNsGB.js → arc-B3bZAGvi.js} +1 -1
- package/dist/client/assets/{architectureDiagram-ZHVYKT53-C8PTjsPx.js → architectureDiagram-ZHVYKT53-BKR1sFvp.js} +1 -1
- package/dist/client/assets/{banner-CVrzHqOT.js → banner-CqhUGJmy.js} +2 -2
- package/dist/client/assets/{blockDiagram-RJAE7QA3-Cydde2fz.js → blockDiagram-RJAE7QA3-C2I50BMQ.js} +1 -1
- package/dist/client/assets/{c4Diagram-XDPPPE54-DbM6KAK7.js → c4Diagram-XDPPPE54-dhHi_wUH.js} +1 -1
- package/dist/client/assets/{card-DA_Z-FYX.js → card-CM7-_8nD.js} +1 -1
- package/dist/client/assets/channel-NlrM9BR7.js +1 -0
- package/dist/client/assets/{chunk-2E7WHVMD-CEbspaNh.js → chunk-2E7WHVMD-B0B27SHJ.js} +1 -1
- package/dist/client/assets/{chunk-2Q5K7J3B-DDP1SiE0.js → chunk-2Q5K7J3B-dsUDjsr2.js} +1 -1
- package/dist/client/assets/{chunk-4EMNKR2T-BFjozJqd.js → chunk-4EMNKR2T-C3IdUlS9.js} +1 -1
- package/dist/client/assets/{chunk-55XCU76K-0JSp6acZ.js → chunk-55XCU76K-D6qgX8rY.js} +1 -1
- package/dist/client/assets/{chunk-5VM5RSS4-DswTXnmp.js → chunk-5VM5RSS4-CWhRZZS1.js} +1 -1
- package/dist/client/assets/{chunk-JWPE2WC7-D0PYncYV.js → chunk-JWPE2WC7-Bd3RyNB2.js} +1 -1
- package/dist/client/assets/{chunk-VQ5W62QI-r5T-ZVBs.js → chunk-VQ5W62QI-HqUjzAO7.js} +1 -1
- package/dist/client/assets/{chunk-XXDRQBXY-D8kkjktE.js → chunk-XXDRQBXY-CfeGRauy.js} +1 -1
- package/dist/client/assets/{chunk-ZCHMQSOR-D6XtRzln.js → chunk-ZCHMQSOR-D30UE34C.js} +2 -2
- package/dist/client/assets/{classDiagram-v2-4MYWR3UA-DUPDMGfm.js → classDiagram-v2-4MYWR3UA-ClIZEeNx.js} +1 -1
- package/dist/client/assets/{command-BvXBgZfv.js → command-DuhX52Bi.js} +1 -1
- package/dist/client/assets/{cose-bilkent-JH36ORCC-tiQpE-Q8.js → cose-bilkent-JH36ORCC-C_MZbmxw.js} +1 -1
- package/dist/client/assets/{cpu-mx7zDf7k.js → cpu-BMUMZCWW.js} +1 -1
- package/dist/client/assets/{cynefin-EF2NZ3EQ-BjAUxFfb.js → cynefin-EF2NZ3EQ-DjzC1gsw.js} +1 -1
- package/dist/client/assets/{cynefinDiagram-WF24UDRP-PmlyltXR.js → cynefinDiagram-WF24UDRP-Dnu1pf_9.js} +1 -1
- package/dist/client/assets/{dagre-NK4GIZVX-DDePjPkn.js → dagre-NK4GIZVX-Bruwoqfg.js} +1 -1
- package/dist/client/assets/{diagram-CBK3MWTC-D7N3T4Fx.js → diagram-CBK3MWTC-Co7nk3xQ.js} +1 -1
- package/dist/client/assets/{diagram-I5XIIV2D-BfZHSbR2.js → diagram-I5XIIV2D-CDJY0Snc.js} +1 -1
- package/dist/client/assets/{diagram-ODIL2UCW-sXAa9bzN.js → diagram-ODIL2UCW-CF0utpvI.js} +1 -1
- package/dist/client/assets/{diagram-PFBEJUXE-Dfd_61WO.js → diagram-PFBEJUXE-BrLRX5Ip.js} +1 -1
- package/dist/client/assets/{diagram-RJA3I4VV-BCzdEfnM.js → diagram-RJA3I4VV-BOo6-thr.js} +1 -1
- package/dist/client/assets/{diagram-TYUNFSNR-BMqtz6sZ.js → diagram-TYUNFSNR-B-206XZy.js} +1 -1
- package/dist/client/assets/{ebnfDiagram-V4P3TTPT-CyWj1615.js → ebnfDiagram-V4P3TTPT-C6SZjvSQ.js} +1 -1
- package/dist/client/assets/{elk-QONTBCTQ-BkQMBXse.js → elk-QONTBCTQ-B_QHOQ8G.js} +1 -1
- package/dist/client/assets/{empty-state-Dv5iV4jb.js → empty-state-BzWMBBQZ.js} +1 -1
- package/dist/client/assets/{erDiagram-KYQIGQAA-DiPsX7uU.js → erDiagram-KYQIGQAA-BTKJgVOK.js} +1 -1
- package/dist/client/assets/{execution-config-Bej0Ot8e.js → execution-config-D_PgYyCI.js} +1 -1
- package/dist/client/assets/{file-DXbyb23e.js → file-DiYwTQdD.js} +1 -1
- package/dist/client/assets/{file-exclamation-point-C8XqHyzY.js → file-exclamation-point-CnQYdJiV.js} +1 -1
- package/dist/client/assets/{file-text-CRTgqqkn.js → file-text-DLPhIP0f.js} +1 -1
- package/dist/client/assets/{find-latest-widget-fence-D1i7qNny.js → find-latest-widget-fence-BYtG5PzD.js} +3 -3
- package/dist/client/assets/{flowDiagram-IUGLLWBU-BSM44aJP.js → flowDiagram-IUGLLWBU-o2In4cGl.js} +1 -1
- package/dist/client/assets/{form-DYSiVEri.js → form-DUFlQ-yL.js} +1 -1
- package/dist/client/assets/{format-cron-DYYwmo-o.js → format-cron-D5dtMPdH.js} +1 -1
- package/dist/client/assets/{ganttDiagram-R7GPNTJY-BWCjYexX.js → ganttDiagram-R7GPNTJY-WwrWLB2J.js} +1 -1
- package/dist/client/assets/{git-branch-1zYKSuur.js → git-branch-uZFa3Tmr.js} +1 -1
- package/dist/client/assets/{gitGraphDiagram-PDYL7XHY-ULC7Zunc.js → gitGraphDiagram-PDYL7XHY-C1yG6xrf.js} +1 -1
- package/dist/client/assets/{graph-BsZzo5TN.js → graph-C10tj8MW.js} +1 -1
- package/dist/client/assets/{heart-C4CSHUW7.js → heart--8btr31M.js} +1 -1
- package/dist/client/assets/{highlighted-body-KPVGNVTW-CFECg7iB.js → highlighted-body-KPVGNVTW-DGp-Vg6c.js} +1 -1
- package/dist/client/assets/{image-lightbox-M9t3Wulc.js → image-lightbox-BfwZy_vF.js} +1 -1
- package/dist/client/assets/{image-off-c01kxBAm.js → image-off-Bmtj2Xtq.js} +1 -1
- package/dist/client/assets/{index-BScgHCO_.js → index-8hXtJ0Xw.js} +1 -1
- package/dist/client/assets/{index-DG13Cp5o.js → index-B5i5B8F0.js} +1 -1
- package/dist/client/assets/{index-DzHj8lCz.js → index-BBaFVr5z.js} +9 -9
- package/dist/client/assets/{index-DIDUjTkq.js → index-BCZa5De0.js} +1 -1
- package/dist/client/assets/{index-BTGRc0hC.js → index-BE8yM241.js} +1 -1
- package/dist/client/assets/{index-XEE1k4cl.js → index-BHXG7bNX.js} +1 -1
- package/dist/client/assets/{index-BqwCOIbF.js → index-BJ_fl1Gy.js} +1 -1
- package/dist/client/assets/{index-DhoaVQXu.js → index-BbIFaQ9_.js} +1 -1
- package/dist/client/assets/{index-Dt7RONID.js → index-BlHuuCes.js} +1 -1
- package/dist/client/assets/{index-C3swXqWW.js → index-BtrV6g02.js} +1 -1
- package/dist/client/assets/{index-C1XazYWZ.js → index-C-tNYOVV.js} +1 -1
- package/dist/client/assets/{index-BYY8HEOz.js → index-C3LZBxuM.js} +1 -1
- package/dist/client/assets/{index-B-7P1Q9s.js → index-CO9QUYdl.js} +1 -1
- package/dist/client/assets/{index-BIVIHPoe.js → index-CP47qL8N.js} +1 -1
- package/dist/client/assets/{index-BRH6C3LJ.js → index-CYM65t4i.js} +1 -1
- package/dist/client/assets/{index-DhkfALZp.js → index-CaZ9yNIm.js} +1 -1
- package/dist/client/assets/index-CaxFHvSK.js +1 -0
- package/dist/client/assets/index-CdHuEKYh.js +1 -0
- package/dist/client/assets/{index-YXyEu3Ia.js → index-CoL3MmPh.js} +1 -1
- package/dist/client/assets/{index-Du4HX97h.js → index-CtN6_QCQ.js} +2 -2
- package/dist/client/assets/{index-JG_0k1NX.js → index-CvIKejlx.js} +1 -1
- package/dist/client/assets/{index-FwAvbbet.js → index-CypEgDik.js} +1 -1
- package/dist/client/assets/index-Cz9N1NHd.js +1 -0
- package/dist/client/assets/{index-CnltS8ym.js → index-D-ZRSiaH.js} +1 -1
- package/dist/client/assets/{index-DQTTC52E.js → index-D8ZcqMea.js} +1 -1
- package/dist/client/assets/{index-CAjKQnAd.js → index-D97clHqL.js} +1 -1
- package/dist/client/assets/index-DAaYbj1s.js +1 -0
- package/dist/client/assets/{index-B3xeyV6n.js → index-DI9IsN-O.js} +1 -1
- package/dist/client/assets/{index-DhYnXLRT.js → index-DLPkp7I9.js} +1 -1
- package/dist/client/assets/{index-CAAsqmfP.js → index-DMTfnznD.js} +1 -1
- package/dist/client/assets/{index-BSxkprTm.js → index-DZQUx5pX.js} +3 -3
- package/dist/client/assets/{index-B_he44rF.js → index-DamNtsio.js} +1 -1
- package/dist/client/assets/{index-Ce3HZQem.js → index-DenTxAiI.js} +1 -1
- package/dist/client/assets/{index-jLIoULQt.js → index-DmG7yphM.js} +1 -1
- package/dist/client/assets/{index-BnXWm8Db.js → index-Dqouol3i.js} +1 -1
- package/dist/client/assets/{index-DsasLE1l.js → index-Dsj1fDYU.js} +1 -1
- package/dist/client/assets/{index-Br35Gqfz.js → index-E5KPj_ZX.js} +1 -1
- package/dist/client/assets/{index-DrENuQdJ.js → index-LGTvsZzp.js} +1 -1
- package/dist/client/assets/{index-uLbyd6YP.js → index-Nr39AP-T.js} +1 -1
- package/dist/client/assets/{index-DrQqkQq_.js → index-YrSNUw95.js} +1 -1
- package/dist/client/assets/index-fge85Gub.js +1053 -0
- package/dist/client/assets/{index-D847rJXW.js → index-mweR5xOP.js} +1 -1
- package/dist/client/assets/{index-LpaxG4VS.js → index-ocZzSFoR.js} +1 -1
- package/dist/client/assets/{index.esm-CZ68Qd2t.js → index.esm-BEGwgVfU.js} +1 -1
- package/dist/client/assets/{infoDiagram-MVDRKAX5-BCjhXqIT.js → infoDiagram-MVDRKAX5-oeBcoEBA.js} +1 -1
- package/dist/client/assets/{inline-code-BKPMIXZR.js → inline-code-7dwi7wWG.js} +1 -1
- package/dist/client/assets/{ishikawaDiagram-HPEHV2GE-C9rsv2nh.js → ishikawaDiagram-HPEHV2GE-CLIGz304.js} +1 -1
- package/dist/client/assets/{journeyDiagram-BOSHW7O7-BRYr1XL1.js → journeyDiagram-BOSHW7O7-Cg0HlPT5.js} +1 -1
- package/dist/client/assets/{kanban-definition-FNSA4HC5-2ey8FXEn.js → kanban-definition-FNSA4HC5-DXaqYXhm.js} +1 -1
- package/dist/client/assets/{layers-DE3wjQuk.js → layers-BhECZJWp.js} +1 -1
- package/dist/client/assets/{lightbulb-BXJIRUdm.js → lightbulb-DjMxuZnu.js} +1 -1
- package/dist/client/assets/{link-2-DzWm9OxA.js → link-2-BY2WyWzK.js} +1 -1
- package/dist/client/assets/{list-runtime-types-BhkZkTrB.js → list-runtime-types-hMouIGtG.js} +1 -1
- package/dist/client/assets/{markdown-content-Bk9lCksw.js → markdown-content-DV3AiG76.js} +1 -1
- package/dist/client/assets/{mention-pill-os_7QQu2.js → mention-pill-Db0XBC6Z.js} +1 -1
- package/dist/client/assets/{mermaid.core-BcRUBvZd.js → mermaid.core-_ZqWvaFB.js} +4 -4
- package/dist/client/assets/{message-square-off-DuOiETNI.js → message-square-off-w0__0O5g.js} +1 -1
- package/dist/client/assets/{mindmap-definition-6OY57UG3-DBhXkS2i.js → mindmap-definition-6OY57UG3-BRVkHL68.js} +1 -1
- package/dist/client/assets/{more-details-Bt9nlPmS.js → more-details-BUolHzrY.js} +1 -1
- package/dist/client/assets/{owner-notice-4ZSBxa2K.js → owner-notice-Cn5EUxgh.js} +1 -1
- package/dist/client/assets/{package-BmOMrNwc.js → package-BafFSryH.js} +1 -1
- package/dist/client/assets/{page-container-LomhzyuS.js → page-container-BCdJ_DsH.js} +1 -1
- package/dist/client/assets/{pane-resize-handle-BOtzx5Q4.js → pane-resize-handle-Bar-FdkY.js} +1 -1
- package/dist/client/assets/{paperclip-C1tkiT74.js → paperclip-DY4e-IlK.js} +1 -1
- package/dist/client/assets/{path-input-JHTlL97W.js → path-input-SZl4NGTs.js} +1 -1
- package/dist/client/assets/{pegDiagram-ECIUJNBX-B01fb3t0.js → pegDiagram-ECIUJNBX-D9J7XmXK.js} +1 -1
- package/dist/client/assets/{pieDiagram-GNMPY74T-BJ7JYrTk.js → pieDiagram-GNMPY74T-myMGqtsR.js} +1 -1
- package/dist/client/assets/{plug-CsqfQsYq.js → plug-BdWCGVJg.js} +1 -1
- package/dist/client/assets/primer-trigger-r8N0YY5e.js +3 -0
- package/dist/client/assets/{profile-errors-CpvSy5wY.js → profile-errors-DymWFWiP.js} +1 -1
- package/dist/client/assets/{progress-qB87L0zJ.js → progress-es667_cM.js} +1 -1
- package/dist/client/assets/{quadrantDiagram-D57K4MC3-mJYGGmOV.js → quadrantDiagram-D57K4MC3-D5_2lcqK.js} +1 -1
- package/dist/client/assets/{query-error-state-MyJ1ivia.js → query-error-state-BNPduDBN.js} +1 -1
- package/dist/client/assets/{radio-DJV7l0fv.js → radio-DpWUX1KL.js} +1 -1
- package/dist/client/assets/{railroadDiagram-Y72NRBL7-BlXWwQe2.js → railroadDiagram-Y72NRBL7-D15ELhSC.js} +1 -1
- package/dist/client/assets/{registry-tJrGs7kB.js → registry-5Qudcjd5.js} +4 -4
- package/dist/client/assets/registry-DvKu39S1.js +1 -0
- package/dist/client/assets/relay-trace-schemas-DURazPP9.js +6 -0
- package/dist/client/assets/{repeat-CBnopqBr.js → repeat-HOHWZc6L.js} +1 -1
- package/dist/client/assets/{requirementDiagram-EQYSW5RA-Dqr1Y74x.js → requirementDiagram-EQYSW5RA-CHcEVlsR.js} +1 -1
- package/dist/client/assets/{room-files-source-BFo0FEUP.js → room-files-source-BO3E2ed0.js} +1 -1
- package/dist/client/assets/{rotate-ccw-clock-D9XRHj5E.js → rotate-ccw-clock-Dniulnw5.js} +1 -1
- package/dist/client/assets/{rotate-cw-DNa7ENG3.js → rotate-cw-um9OzAM7.js} +1 -1
- package/dist/client/assets/{sankeyDiagram-SY24JHO5-DGYZs_kW.js → sankeyDiagram-SY24JHO5-_R5087R3.js} +1 -1
- package/dist/client/assets/{scroll-area-Bf6IGziJ.js → scroll-area-MdXbnM77.js} +1 -1
- package/dist/client/assets/search-x-CHNgYj0F.js +6 -0
- package/dist/client/assets/{sequenceDiagram-BLEHNHQU-BW3u4L9y.js → sequenceDiagram-BLEHNHQU-BzHmSHMF.js} +1 -1
- package/dist/client/assets/{shield-x-WGxwrtNV.js → shield-x-CDXAW9YF.js} +1 -1
- package/dist/client/assets/{signed-in-eV4_EXuv.js → signed-in-JAMHtSjx.js} +1 -1
- package/dist/client/assets/{sizeCapture-INFHLROL-C1TpueOu.js → sizeCapture-INFHLROL-CqA3cZcy.js} +1 -1
- package/dist/client/assets/{soul-file-e1iYX9IV.js → soul-file-BcaDvIdL.js} +1 -1
- package/dist/client/assets/{stateDiagram-v2-A6IESKWZ-DvrHUauN.js → stateDiagram-v2-A6IESKWZ-RAA8YyBW.js} +1 -1
- package/dist/client/assets/{swimlanes-B3ENRKFQ-BUbTcoId.js → swimlanes-B3ENRKFQ-BQvgJIcj.js} +1 -1
- package/dist/client/assets/swimlanesDiagram-AYQRV4AK-iDgTYazX.js +8 -0
- package/dist/client/assets/{table-DsxLk3Gx.js → table-BcJvj9rx.js} +1 -1
- package/dist/client/assets/{timeline-definition-JXYKGLGB-CzbVpGxn.js → timeline-definition-JXYKGLGB-DXi0saeN.js} +1 -1
- package/dist/client/assets/{trust-posture-Blofy7eE.js → trust-posture-vH4plBRD.js} +1 -1
- package/dist/client/assets/{unplug-B6dUhqA7.js → unplug-CK2bPGpg.js} +1 -1
- package/dist/client/assets/untrusted-text-BDygHCRk.js +1 -0
- package/dist/client/assets/{unverified-catalog-notice-6pwZtIjx.js → unverified-catalog-notice-WMkPDdUp.js} +1 -1
- package/dist/client/assets/{use-bindings-BgXZ0D7k.js → use-bindings-h_mG9d64.js} +1 -1
- package/dist/client/assets/{use-composer-prefs--zO2mm_M.js → use-composer-prefs-DhCnTsrF.js} +1 -1
- package/dist/client/assets/{use-connector-management-9Q7wHb06.js → use-connector-management-CXVz2xe3.js} +1 -1
- package/dist/client/assets/{use-deep-link-scroll-CXqwdwGr.js → use-deep-link-scroll-DYOZ5k0G.js} +1 -1
- package/dist/client/assets/{use-delete-binding-BBQNMtUY.js → use-delete-binding-CHAeTC_Q.js} +1 -1
- package/dist/client/assets/{use-dev-links-C643CCcq.js → use-dev-links-CM2NIeqy.js} +1 -1
- package/dist/client/assets/{use-direct-message-panel-BD_daG2E.js → use-direct-message-panel-DXTH05Ym.js} +1 -1
- package/dist/client/assets/use-external-adapter-catalog-DKlBkkvF.js +1 -0
- package/dist/client/assets/use-full-activity-feed-QZAZ5vBJ.js +1 -0
- package/dist/client/assets/use-is-below-desktop-DS51QTwj.js +1 -0
- package/dist/client/assets/{use-local-browser-P93oA-F5.js → use-local-browser-43FpcgCM.js} +1 -1
- package/dist/client/assets/{use-mesh-topology-B0k0gLoW.js → use-mesh-topology-Bw7MmKA9.js} +1 -1
- package/dist/client/assets/{use-mounted-ref-DE7EQsBF.js → use-mounted-ref-Cuui7-gf.js} +1 -1
- package/dist/client/assets/{use-notification-prefs-B8JtshQ0.js → use-notification-prefs-CJnF55Rv.js} +1 -1
- package/dist/client/assets/use-pending-read-DB25CO5E.js +1 -0
- package/dist/client/assets/{use-personality-commit-Dh5Sejj_.js → use-personality-commit-p6Of1UxX.js} +1 -1
- package/dist/client/assets/{use-promo-activation-C9FWA7ru.js → use-promo-activation-CxG-kZJQ.js} +3 -3
- package/dist/client/assets/{use-promo-dismissals-BIfafj9f.js → use-promo-dismissals-DeNbRWOh.js} +1 -1
- package/dist/client/assets/{use-pulse-freshness-CxzVMmVK.js → use-pulse-freshness-CdRkKThf.js} +1 -1
- package/dist/client/assets/{use-room-follow-claim-B1QPFaUb.js → use-room-follow-claim-_B7HonZx.js} +1 -1
- package/dist/client/assets/{use-room-sessions-CdjzO67_.js → use-room-sessions-CrFskgCJ.js} +1 -1
- package/dist/client/assets/{use-roving-tab-list-Nu-MIapD.js → use-roving-tab-list-DSjW4_wm.js} +1 -1
- package/dist/client/assets/use-session-canvas-KguPfnsc.js +27 -0
- package/dist/client/assets/{use-status-budget-DgeTxC3h.js → use-status-budget-CTereFSr.js} +3 -3
- package/dist/client/assets/{use-transform-CiJqtMBf.js → use-transform-YUDqOhoc.js} +1 -1
- package/dist/client/assets/{use-unclaimed-chats-Blkq6U4D.js → use-unclaimed-chats-B9ChucvA.js} +1 -1
- package/dist/client/assets/use-update-config-BH0agtZh.js +1 -0
- package/dist/client/assets/{useMutationState-lbcdmnfE.js → useMutationState-TJGtJT5R.js} +1 -1
- package/dist/client/assets/{usecaseDiagram-WPOLBNNX-BM36oESm.js → usecaseDiagram-WPOLBNNX-Cjs1EpVL.js} +1 -1
- package/dist/client/assets/{vennDiagram-Q3Y3IDCW-Zrybcs91.js → vennDiagram-Q3Y3IDCW-BtgH-ZyN.js} +1 -1
- package/dist/client/assets/{wardleyDiagram-IVAIDKWA-CO4pzGG0.js → wardleyDiagram-IVAIDKWA-BCWHQ18G.js} +1 -1
- package/dist/client/assets/{xychartDiagram-4URNHDU4-pi_wF1CM.js → xychartDiagram-4URNHDU4-CUBPWq_V.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/index.js +7695 -5486
- package/dist/server/index.js.map +2 -2
- package/package.json +5 -5
- package/dist/client/assets/AdapterSetupWizard-CwKYl1vG.js +0 -2
- package/dist/client/assets/BindingDialog-CpBZoSZU.js +0 -1
- package/dist/client/assets/HandlePage-BjlcYr_l.js +0 -1
- package/dist/client/assets/NamePage-A8X09lY7.js +0 -1
- package/dist/client/assets/PhotoPage-DP5WoeFd.js +0 -1
- package/dist/client/assets/TourHost-Cg8EHvod.js +0 -1
- package/dist/client/assets/_shell._home.index-BTJhhEWN.js +0 -3
- package/dist/client/assets/_shell.connections-Cpe1hru3.js +0 -1
- package/dist/client/assets/_shell.marketplace-CzLqm8iR.js +0 -1
- package/dist/client/assets/_shell.marketplace_.sources-DtraxnMx.js +0 -1
- package/dist/client/assets/_shell.session-72JEfodU.js +0 -1
- package/dist/client/assets/_shell.x._extensionId-CcJi8pKR.js +0 -1
- package/dist/client/assets/_shell.x._extensionId_._-CcJi8pKR.js +0 -1
- package/dist/client/assets/channel-DMgpNBDz.js +0 -1
- package/dist/client/assets/index-B6Scr7KJ.js +0 -1053
- package/dist/client/assets/index-DyN65ufd.js +0 -1
- package/dist/client/assets/index-UJq1qaku.js +0 -1
- package/dist/client/assets/index-e6oawwKv.js +0 -1
- package/dist/client/assets/index-j30EyYIU.js +0 -1
- package/dist/client/assets/primer-trigger-DLdK7lVr.js +0 -3
- package/dist/client/assets/registry-BrjQCdmG.js +0 -1
- package/dist/client/assets/relay-trace-schemas-TH0-GYCB.js +0 -6
- package/dist/client/assets/search-x-DFBBEouE.js +0 -6
- package/dist/client/assets/swimlanesDiagram-AYQRV4AK-wkooBe_N.js +0 -8
- package/dist/client/assets/untrusted-text-pHjcUwfI.js +0 -1
- package/dist/client/assets/use-adapter-catalog-J43bUHJu.js +0 -1
- package/dist/client/assets/use-external-adapter-catalog-BjbC1V6t.js +0 -1
- package/dist/client/assets/use-full-activity-feed-DUH8r8jx.js +0 -1
- package/dist/client/assets/use-is-below-desktop-DAZnwJGB.js +0 -1
- package/dist/client/assets/use-pending-read-DeGO1wGC.js +0 -1
- package/dist/client/assets/use-relay-config-DQE3dmJ2.js +0 -1
- package/dist/client/assets/use-session-canvas-BfKGOpNy.js +0 -27
- package/dist/client/assets/use-update-config-BFFW_6Mc.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e,G as l}from"./index-
|
|
1
|
+
import{j as e,G as l}from"./index-fge85Gub.js";function s({className:a,...t}){return e.jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-auto",children:e.jsx("table",{"data-slot":"table",className:l("w-full caption-bottom text-sm",a),...t})})}function r({className:a,...t}){return e.jsx("thead",{"data-slot":"table-header",className:l("[&_tr]:border-b",a),...t})}function d({className:a,...t}){return e.jsx("tbody",{"data-slot":"table-body",className:l("[&_tr:last-child]:border-0",a),...t})}function n({className:a,...t}){return e.jsx("tr",{"data-slot":"table-row",className:l("hover:bg-accent data-[state=selected]:bg-muted border-b transition-colors duration-150",a),...t})}function c({className:a,...t}){return e.jsx("th",{"data-slot":"table-head",className:l("text-muted-foreground h-10 px-2 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...t})}function b({className:a,...t}){return e.jsx("td",{"data-slot":"table-cell",className:l("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...t})}export{s as T,d as a,n as b,b as c,r as d,c as e};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as l,M as gt,G as nt,D as Pt,ag as Bt,ah as Vt,ai as Ft,c as ft,l as S,R as zt,aa as Gt,aj as yt,L as Ot,ak as Dt,A as Kt}from"./mermaid.core-
|
|
1
|
+
import{_ as l,M as gt,G as nt,D as Pt,ag as Bt,ah as Vt,ai as Ft,c as ft,l as S,R as zt,aa as Gt,aj as yt,L as Ot,ak as Dt,A as Kt}from"./mermaid.core-_ZqWvaFB.js";import{s as J}from"./transform-BqqRT-Iy.js";import{d as lt}from"./arc-B3bZAGvi.js";import"./index-fge85Gub.js";import"./BlintzCanvas-BFJXKo1L.js";import"./index-Dsj1fDYU.js";import"./index-DZQUx5pX.js";var tt=(function(){var e=l(function(k,i,d,h){for(d=d||{},h=k.length;h--;d[k[h]]=i);return d},"o"),t=[6,11,13,14,15,17,19,20,23,24],s=[1,12],r=[1,13],n=[1,14],a=[1,15],o=[1,16],c=[1,19],p=[1,20],y={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:l(function(i,d,h,g,x,u,w){var v=u.length-1;switch(x){case 1:return u[v-1];case 3:g.setDirection("LR");break;case 4:g.setDirection("TD");break;case 5:this.$=[];break;case 6:u[v-1].push(u[v]),this.$=u[v-1];break;case 7:case 8:this.$=u[v];break;case 9:case 10:this.$=[];break;case 11:g.getCommonDb().setDiagramTitle(u[v].substr(6)),this.$=u[v].substr(6);break;case 12:this.$=u[v].trim(),g.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=u[v].trim(),g.getCommonDb().setAccDescription(this.$);break;case 15:g.addSection(u[v].substr(8)),this.$=u[v].substr(8);break;case 18:g.addTask(u[v],0,""),this.$=u[v];break;case 19:g.addEvent(u[v].substr(2)),this.$=u[v];break}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},e(t,[2,5],{5:6}),e(t,[2,2]),e(t,[2,3]),e(t,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:s,15:r,17:n,19:a,20:o,21:17,22:18,23:c,24:p},e(t,[2,10],{1:[2,1]}),e(t,[2,6]),{12:21,14:s,15:r,17:n,19:a,20:o,21:17,22:18,23:c,24:p},e(t,[2,8]),e(t,[2,9]),e(t,[2,11]),{16:[1,22]},{18:[1,23]},e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,7]),e(t,[2,12]),e(t,[2,13])],defaultActions:{},parseError:l(function(i,d){if(d.recoverable)this.trace(i);else{var h=new Error(i);throw h.hash=d,h}},"parseError"),parse:l(function(i){var d=this,h=[0],g=[],x=[null],u=[],w=this.table,v="",M=0,R=0,P=2,V=1,L=u.slice.call(arguments,1),_=Object.create(this.lexer),C={yy:{}};for(var F in this.yy)Object.prototype.hasOwnProperty.call(this.yy,F)&&(C.yy[F]=this.yy[F]);_.setInput(i,C.yy),C.yy.lexer=_,C.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var z=_.yylloc;u.push(z);var q=_.options&&_.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function K(A){h.length=h.length-2*A,x.length=x.length-A,u.length=u.length-A}l(K,"popStack");function O(){var A;return A=g.pop()||_.lex()||V,typeof A!="number"&&(A instanceof Array&&(g=A,A=g.pop()),A=d.symbols_[A]||A),A}l(O,"lex");for(var $,N,b,T,E={},H,I,B,D;;){if(N=h[h.length-1],this.defaultActions[N]?b=this.defaultActions[N]:(($===null||typeof $>"u")&&($=O()),b=w[N]&&w[N][$]),typeof b>"u"||!b.length||!b[0]){var U="";D=[];for(H in w[N])this.terminals_[H]&&H>P&&D.push("'"+this.terminals_[H]+"'");_.showPosition?U="Parse error on line "+(M+1)+`:
|
|
2
2
|
`+_.showPosition()+`
|
|
3
3
|
Expecting `+D.join(", ")+", got '"+(this.terminals_[$]||$)+"'":U="Parse error on line "+(M+1)+": Unexpected "+($==V?"end of input":"'"+(this.terminals_[$]||$)+"'"),this.parseError(U,{text:_.match,token:this.terminals_[$]||$,line:_.yylineno,loc:z,expected:D})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+N+", token: "+$);switch(b[0]){case 1:h.push($),x.push(_.yytext),u.push(_.yylloc),h.push(b[1]),$=null,R=_.yyleng,v=_.yytext,M=_.yylineno,z=_.yylloc;break;case 2:if(I=this.productions_[b[1]][1],E.$=x[x.length-I],E._$={first_line:u[u.length-(I||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(I||1)].first_column,last_column:u[u.length-1].last_column},q&&(E._$.range=[u[u.length-(I||1)].range[0],u[u.length-1].range[1]]),T=this.performAction.apply(E,[v,R,M,C.yy,b[1],x,u].concat(L)),typeof T<"u")return T;I&&(h=h.slice(0,-1*I*2),x=x.slice(0,-1*I),u=u.slice(0,-1*I)),h.push(this.productions_[b[1]][0]),x.push(E.$),u.push(E._$),B=w[h[h.length-2]][h[h.length-1]],h.push(B);break;case 3:return!0}}return!0},"parse")},m=(function(){var k={EOF:1,parseError:l(function(d,h){if(this.yy.parser)this.yy.parser.parseError(d,h);else throw new Error(d)},"parseError"),setInput:l(function(i,d){return this.yy=d||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:l(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var d=i.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:l(function(i){var d=i.length,h=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),h.length-1&&(this.yylineno-=h.length-1);var x=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:h?(h.length===g.length?this.yylloc.first_column:0)+g[g.length-h.length].length-h[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[x[0],x[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:l(function(i){this.unput(this.match.slice(i))},"less"),pastInput:l(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var i=this.pastInput(),d=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e,
|
|
1
|
+
import{j as e,bx as i,by as u,bv as d,G as l,bz as c,bA as f,bB as p}from"./index-fge85Gub.js";function x({label:s,title:t}){const{isDesktop:r}=f();return r?t?e.jsx("p",{className:"text-foreground mb-1.5 font-medium",children:t}):null:e.jsx(p,{children:t??s})}function v({label:s,children:t,title:r,className:n,side:o="top",align:a="start"}){return e.jsxs(i,{autoFocus:!0,children:[e.jsx(u,{asChild:!0,children:e.jsx("button",{type:"button","data-slot":"info-tip","aria-label":s,className:l("text-muted-foreground hover:text-foreground focus-ring relative inline-flex size-4 shrink-0 items-center justify-center rounded-full align-middle transition-colors duration-150","after:absolute after:-inset-2 after:content-['']","data-[state=open]:text-foreground",n),children:e.jsx(d,{"aria-hidden":!0,className:"size-3.5"})})}),e.jsxs(c,{side:o,align:a,"aria-label":r??s,className:"w-72 text-sm",children:[e.jsx(x,{label:s,title:r}),e.jsx("div",{className:"text-muted-foreground space-y-2 leading-relaxed",children:t})]})]})}function j(s){return s==="careful"?"careful":"trusted"}export{v as I,j as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const u=/[\u00ad\u200b-\u200f\u202a-\u202e\u2060-\u2064\ufeff\ufff9-\ufffb]/g,o=new Map;function f(n){const t=n.join("\0"),e=o.get(t);if(e)return e.lastIndex=0,e;const a=n.map(r=>[...r].join("\\s*")).join("|"),s=new RegExp(`<(?:\\s*/)?\\s*(?:${a})\\b`,"gi");return o.set(t,s),s}function c(n,t){return n.replace(u,"").replace(f(t),e=>`<${e.slice(1)}`)}const _=["agent_identity","agent_persona","agent_safety_boundaries","session_model","working_rules","agent_memory","dorkos_context","dorkos_areas","user_profile","env"];export{_ as A,c as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as r}from"./index-
|
|
1
|
+
import{j as r}from"./index-fge85Gub.js";function o({id:e}){return r.jsx("p",{"data-slot":"unverified-catalog-notice",id:e,className:"text-muted-foreground border-border text-2xs rounded-lg border border-dashed p-2 leading-snug","data-testid":"model-catalog-unverified",children:"A partial list DorkOS can’t confirm. Connect a provider to see yours."})}export{o as U};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a1 as s,a2 as r}from"./index-
|
|
1
|
+
import{a1 as s,a2 as r}from"./index-fge85Gub.js";const e=["relay","bindings"];function a(){const n=s();return r({queryKey:[...e],queryFn:()=>n.getBindings()})}export{e as B,a as u};
|
package/dist/client/assets/{use-composer-prefs--zO2mm_M.js → use-composer-prefs-DhCnTsrF.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{aL as i,aM as o,a1 as c,a3 as p,a4 as m,aF as y,aG as a,r as C}from"./index-fge85Gub.js";function T(r){var t;return((t=r==null?void 0:r.ui)==null?void 0:t.composer)??o}function v(){const{data:r}=i();return T(r).richText}function Q(){const r=c(),t=p(),u=m({mutationKey:y,mutationFn:s=>r.updateConfig({ui:{composer:{richText:s}}}),onMutate:async s=>{await t.cancelQueries({queryKey:a.current()});const n=t.getQueryData(a.current());return t.setQueryData(a.current(),e=>e!=null&&e.ui?{...e,ui:{...e.ui,composer:{richText:s}}}:e),{previous:n}},onError:(s,n,e)=>{e&&e.previous!==void 0&&t.setQueryData(a.current(),e.previous)},onSettled:()=>{t.invalidateQueries({queryKey:a.current()})}});return{setRichText:C.useCallback(s=>u.mutate(s),[u]),isPending:u.isPending}}export{Q as a,v as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a1 as a,a2 as y,a3 as l,a4 as p,
|
|
1
|
+
import{a1 as a,a2 as y,a3 as l,a4 as p,aP as r,r as g}from"./index-fge85Gub.js";function C(e,t={}){const n=a();return y({queryKey:r.reviewList(e),queryFn:()=>n.getConnectorManagementReviews(e),enabled:t.enabled??!0,refetchInterval:t.refetchInterval,refetchIntervalInBackground:!1})}function d(e){const t=a();return y({queryKey:r.review(e??""),queryFn:()=>t.getConnectorManagementReview(e??""),enabled:e!==null&&e!==""})}function R(e){const t=a();return y({queryKey:r.agentRequestList(e),queryFn:()=>t.getConnectorAgentRequests(e),meta:{suppressErrorToast:!0}})}function f(e){const t=a();return y({queryKey:r.sessionAgentRequests(e??""),queryFn:()=>t.getConnectorAgentRequests(void 0,e??""),enabled:!!e,meta:{suppressErrorToast:!0}})}function m(e){const t=a();return y({queryKey:r.agentRequest(e??""),queryFn:()=>t.getConnectorAgentRequest(e??""),enabled:e!==null&&e!==""})}function A(){const e=a(),t=l();return p({mutationFn:({requestId:n,decision:o})=>e.resolveConnectorAgentRequest(n,o),meta:{suppressErrorToast:!0},onSuccess:(n,{requestId:o})=>{t.setQueryData(r.agentRequest(o),n),t.invalidateQueries({queryKey:r.agentRequests(),predicate:u=>u.queryKey[3]!==o}),t.invalidateQueries({queryKey:r.connections()})}})}function K(e){const t=a();return p({mutationFn:n=>t.startConnectorAgentRequestAuthentication(e??"",n),meta:{suppressErrorToast:!0}})}function h(e,t){var v;const n=a(),o=l(),u=y({queryKey:r.agentRequestAuthentication(e??"",t??""),queryFn:()=>n.pollConnectorAgentRequestAuthentication(e??"",t??""),enabled:!!(e&&t),refetchInterval:s=>{var c;const i=(c=s.state.data)==null?void 0:c.state;return i==="starting"||i==="pending"?2e3:!1},staleTime:0,meta:{suppressErrorToast:!0}});return g.useEffect(()=>{var i;const s=(i=u.data)==null?void 0:i.state;!s||!e||(s==="connected"&&o.invalidateQueries({queryKey:r.connections()}),(s==="connected"||s==="failed"||s==="expired"||s==="start_unknown")&&o.invalidateQueries({queryKey:r.agentRequests(),predicate:c=>c.queryKey[4]!=="authentication-flow"}))},[(v=u.data)==null?void 0:v.state,o,e]),u}function E(){const e=a(),t=l();return p({mutationFn:({reviewRequestId:n,decision:o})=>e.resolveConnectorManagementReview(n,{decision:o}),meta:{suppressErrorToast:!0},onSuccess:(n,{reviewRequestId:o})=>{t.setQueryData(r.review(o),n.review),t.invalidateQueries({queryKey:r.reviewList("pending")}),t.invalidateQueries({queryKey:r.reviewList("resolved")}),t.invalidateQueries({queryKey:r.connections()})}})}function F(){const e=a();return p({mutationFn:({connectionId:t})=>e.previewConnectorReconciliation({connectionId:t}),meta:{suppressErrorToast:!0}})}function Q(){const e=a(),t=l();return p({mutationFn:n=>e.applyConnectorReconciliation(n),meta:{suppressErrorToast:!0},onSuccess:()=>{t.invalidateQueries({queryKey:r.connections()})}})}function T(){const e=a(),t=l();return p({mutationFn:({connectionId:n})=>e.stopSharingConnectorWithEveryAgent(n),meta:{suppressErrorToast:!0},onSuccess:()=>{t.invalidateQueries({queryKey:r.connections()})}})}function w(e,t){var v;const n=a(),o=l(),u=y({queryKey:r.authenticationFlow(e??""),queryFn:()=>n.pollConnectorAuthentication(e??""),enabled:t&&e!==null&&e!=="",refetchInterval:s=>{var c;const i=(c=s.state.data)==null?void 0:c.state;return i==="starting"||i==="pending"?2e3:!1},staleTime:0,gcTime:0,meta:{suppressErrorToast:!0}});return g.useEffect(()=>{var s;((s=u.data)==null?void 0:s.state)==="connected"&&o.invalidateQueries({queryKey:r.connections()})},[(v=u.data)==null?void 0:v.state,o]),u}export{F as a,Q as b,T as c,K as d,h as e,A as f,C as g,m as h,d as i,E as j,w as k,f as l,R as u};
|
package/dist/client/assets/{use-deep-link-scroll-CXqwdwGr.js → use-deep-link-scroll-DYOZ5k0G.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a}from"./index-
|
|
1
|
+
import{r as a}from"./index-fge85Gub.js";function n(e,o){a.useEffect(()=>{if(!e)return;const r=e.replace(/[^a-zA-Z0-9-]/g,"");r&&requestAnimationFrame(()=>{const t=document.querySelector(`[data-section="${r}"]`);t&&t.scrollIntoView({behavior:"smooth",block:"start"})})},[e,o])}export{n as u};
|
package/dist/client/assets/{use-delete-binding-BBQNMtUY.js → use-delete-binding-CHAeTC_Q.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a1 as r,a3 as o,a4 as a}from"./index-
|
|
1
|
+
import{a1 as r,a3 as o,a4 as a}from"./index-fge85Gub.js";import{B as s}from"./use-bindings-h_mG9d64.js";function c(){const e=r(),t=o();return a({mutationFn:n=>e.deleteBinding(n),onSuccess:()=>{t.invalidateQueries({queryKey:[...s]})},meta:{errorLabel:"Couldn’t remove that connection"}})}export{c as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a1 as s,a2 as r,a3 as i,r as n,
|
|
1
|
+
import{a1 as s,a2 as r,a3 as i,r as n,a8 as a,a9 as t}from"./index-fge85Gub.js";function l(){const e=s();return r({queryKey:a.devLinks(),queryFn:()=>e.listDevLinks()})}function o(){const e=i();return n.useCallback(()=>{e.invalidateQueries({queryKey:[...a.all,"installed"]}),e.invalidateQueries({queryKey:t.all}),e.invalidateQueries({queryKey:["commands"]})},[e])}export{l as a,o as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{cf as p,cg as S,ch as b,ci as w,cj as R,ck as k,cl as v,cm as P,cn as I,co as j,bY as D,cp as M,r as A,cq as E}from"./index-fge85Gub.js";function N(s){return s.kind==="dm"&&s.bridge==null&&p(s)===null}function O(s,t){if(!t||!s.participants)return[];const i=new Map(t.map(e=>[S(e.projectPath),e.projectPath])),o=[];for(const e of s.participants){if(e.kind!=="agent"||e.retired||e.agentRef===void 0)continue;const a=i.get(e.agentRef);a!==void 0&&o.push({authorId:e.id,agentPath:a,displayName:e.displayName,...e.emoji?{emoji:e.emoji}:{},...e.color?{color:e.color}:{}})}return o}function y(){const s=b(),t=w(),i=R(),[o]=k(),e=s&&i===E,a=v(e?o??null:null),f=P(),c=s&&I(i)?f.id??null:null,{data:r}=j({enabled:c!==null}),u=c===null||r==null?void 0:r.find(g=>g.id===c),n=u!==void 0&&N(u)?u:void 0,{data:d}=D({enabled:n!==void 0}),m=d==null?void 0:d.agents,h=M((n==null?void 0:n.id)??"",n==null?void 0:n.working)>0,l=a.mode==="dm"?a.chat:null;return A.useMemo(()=>e&&l!==null&&o?{kind:"one-to-one",sessionId:o,agentPath:l.agentPath,showSessions:t}:n!==void 0?{kind:"group",roomId:n.id,members:O(n,m),working:h,showSessions:t}:null,[e,l,o,t,n,m,h])}export{y as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a5 as s,r as n}from"./index-fge85Gub.js";const u="internal";function A(e=!0){const t=s(e),r=n.useMemo(()=>{var a;return((a=t.data)==null?void 0:a.filter(o=>o.manifest.category!==u))??[]},[t.data]);return{...t,data:r}}export{A as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a1 as r,aq as a}from"./index-fge85Gub.js";const n=["activity"];function o(t={}){const i=r();return a({queryKey:[...n,t],queryFn:({pageParam:e})=>i.listActivityEvents({...t,limit:50,before:e}),initialPageParam:void 0,getNextPageParam:e=>e.nextCursor??void 0,staleTime:3e4,refetchOnWindowFocus:!0})}export{n as A,o as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ar as e}from"./index-fge85Gub.js";const o=1024;function s(){return e(`(max-width: ${o-1}px)`)}export{s as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a1 as s,a2 as n}from"./index-
|
|
1
|
+
import{a1 as s,a2 as n}from"./index-fge85Gub.js";const c=["local-browser","state"];function l(e=!0){const r=s();return n({queryKey:c,enabled:e,queryFn:()=>r.getLocalBrowserState(),refetchInterval:t=>{var o;const a=(o=t.state.error)==null?void 0:o.code;return a==="local_only"||a==="owner_only"?!1:1e3},retry:!1})}function i(){const e=s(),r=l(),t=n({queryKey:["local-browser","capabilities"],queryFn:()=>e.getLocalBrowserCapabilities(),retry:!1});return{state:r,capabilities:t}}export{c as L,l as a,i as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a1 as t,a2 as s,
|
|
1
|
+
import{a1 as t,a2 as s,aS as u}from"./index-fge85Gub.js";const a=["mesh","topology"];function n(e,o=!0){const r=t();return s({queryKey:[...a,e],queryFn:()=>r.getMeshTopology(e),enabled:o,staleTime:3e4,refetchInterval:u.EVENT_BACKSTOP_REFETCH_MS})}export{n as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-fge85Gub.js";function u(){const e=r.useRef(!0);return r.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),e}export{u};
|
package/dist/client/assets/{use-notification-prefs-B8JtshQ0.js → use-notification-prefs-CJnF55Rv.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as d,
|
|
1
|
+
import{r as d,aL as P,a1 as g,a3 as v,e0 as N,a4 as S,aF as E,aG as a}from"./index-fge85Gub.js";function y(){if(typeof window>"u"||typeof window.Notification>"u")return"unsupported";const e=window.Notification.permission;return e==="granted"||e==="denied"||e==="default"?e:"unsupported"}let m=y();const l=new Set;function C(e){return l.add(e),()=>{l.delete(e)}}function b(){return m}function T(){return"unsupported"}function I(){const e=y();if(e!==m){m=e;for(const n of l)n()}}function O(){const e=d.useSyncExternalStore(C,b,T),n=d.useCallback(async()=>{if(typeof window>"u"||typeof window.Notification>"u")return"unsupported";try{await window.Notification.requestPermission()}catch{}return I(),y()},[]);return{permission:e,request:n}}function K(e,n){const[i,o,c]=e.split(".").map(Number),[s,f,t]=n.split(".").map(Number);return i!==s?i>s:o!==f?o>f:c>t}const w="dorkos-enable-notification-sound";let p=!1;function _(){try{const e=localStorage.getItem(w);return e==="true"?!0:e==="false"?!1:void 0}catch{return}}function A(e,n){return{...e,...n.escalation?{escalation:{...e.escalation,...n.escalation}}:{},...n.sounds?{sounds:{...e.sounds,...n.sounds}}:{},...n.notifyOnTurnCompleteWhileAway===void 0?{}:{notifyOnTurnCompleteWhileAway:n.notifyOnTurnCompleteWhileAway},...n.browserPermissionPrimerDismissed===void 0?{}:{browserPermissionPrimerDismissed:n.browserPermissionPrimerDismissed}}}function M(){const{data:e}=P(),n=g(),i=v(),o=(e==null?void 0:e.notifications)??N,c=S({mutationKey:E,mutationFn:t=>n.updateConfig({notifications:t}),onMutate:async t=>{await i.cancelQueries({queryKey:a.current()});const u=i.getQueryData(a.current());return i.setQueryData(a.current(),r=>r!=null&&r.notifications?{...r,notifications:A(r.notifications,t)}:r),{previous:u}},onError:(t,u,r)=>{r&&r.previous!==void 0&&i.setQueryData(a.current(),r.previous)},onSettled:()=>{i.invalidateQueries({queryKey:a.current()})}}),{mutate:s}=c,f=d.useCallback(t=>s(t),[s]);return d.useEffect(()=>{if(p||e===void 0)return;p=!0;const t=_();if(t===void 0)return;const u=()=>{try{localStorage.removeItem(w)}catch{}};if(t===o.sounds.turnEnd){u();return}s({sounds:{turnEnd:t}},{onSuccess:u})},[e,o.sounds.turnEnd,s]),{prefs:o,setPrefs:f,isPending:c.isPending}}export{O as a,K as i,M as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{aa as n}from"./index-fge85Gub.js";function r(s){const e=n();return s||e}export{r as u};
|
package/dist/client/assets/{use-personality-commit-Dh5Sejj_.js → use-personality-commit-p6Of1UxX.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as u,gD as Oe,bq as Le,bo as H,eI as Fe,j as t,bn as F,bt as He,bp as U,gE as Ge,bu as ye,gF as Ke,bv as X,bw as ze,gG as Ue,gH as Ye,G as P,W as we,gI as ve,e4 as We,gJ as qe,by as pe,ar as re,gK as Xe,dF as xe,gL as Je}from"./index-B6Scr7KJ.js";import{g as Qe}from"./dorkbot-templates-8Yu9POWJ.js";import{p as K}from"./sound-D3r8dGFH.js";import{p as Ze}from"./soul-file-e1iYX9IV.js";var et=Object.defineProperty,h=(r,e)=>et(r,"name",{value:e,configurable:!0}),je=["PageUp","PageDown"],ke=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ce={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Y="Slider",[oe,tt,rt]=Oe(Y),[ae,Ot]=Le(Y,[rt]),[nt,W]=ae(Y),st=u.forwardRef(h(function(e,s){const{name:a,min:i=0,max:n=100,step:d=1,orientation:l="horizontal",disabled:p=!1,minStepsBetweenThumbs:c=0,defaultValue:o=[i],value:x,onValueChange:f=h(()=>{},"onValueChange"),onValueCommit:g=h(()=>{},"onValueCommit"),inverted:j=!1,form:v,...S}=e,R=u.useRef(new Set),C=u.useRef(0),T=u.useRef(!1),_=l==="horizontal"?ot:it,[k,O]=u.useState(null),b=H(s,O),[m=[],w]=Fe({prop:x,defaultProp:o,onChange:h(y=>{var $;($=[...R.current][C.current])==null||$.focus({preventScroll:!0,focusVisible:T.current}),T.current=!1,f(y)},"onChange")}),I=u.useRef(m),q=u.useRef(m);u.useEffect(()=>{const y=v?k==null?void 0:k.ownerDocument.getElementById(v):k==null?void 0:k.closest("form");if(y instanceof HTMLFormElement){const N=h(()=>w(q.current),"reset");return y.addEventListener("reset",N),()=>y.removeEventListener("reset",N)}},[k,v,w]);function B(y){const N=_e(m,y);E(y,N)}h(B,"handleSlideStart");function D(y){E(y,C.current)}h(D,"handleSlideMove");function M(){String(m)!==String(I.current)&&g(m)}h(M,"handleSlideEnd");function E(y,N,{commit:$}={commit:!1}){const fe=ce(d),te=z(Math.round((y-i)/d)*d+i,fe),G=ye(te,[i,n]);w((L=[])=>{const V=Te(L,G,N);if($e(V,c*d)){C.current=V.indexOf(G);const me=String(V)!==String(L);return me&&$&&g(V),me?V:L}else return L})}return h(E,"updateValues"),t.jsx(nt,{scope:e.__scopeSlider,name:a,disabled:p,min:i,max:n,valueIndexToChangeRef:C,thumbs:R.current,values:m,orientation:l,form:v,children:t.jsx(oe.Provider,{scope:e.__scopeSlider,children:t.jsx(oe.Slot,{scope:e.__scopeSlider,children:t.jsx(_,{"aria-disabled":p,"data-disabled":p?"":void 0,...S,ref:b,onPointerDown:F(S.onPointerDown,()=>{p||(I.current=m,T.current=!1)}),min:i,max:n,inverted:j,onSlideStart:p?void 0:B,onSlideMove:p?void 0:D,onSlideEnd:p?void 0:M,onHomeKeyDown:()=>{p||(T.current=!0,E(i,0,{commit:!0}))},onEndKeyDown:()=>{p||(T.current=!0,E(n,m.length-1,{commit:!0}))},onStepKeyDown:({event:y,direction:N})=>{if(!p){T.current=!0;const te=je.includes(y.key)||y.shiftKey&&ke.includes(y.key)?10:1,G=C.current,L=m[G],V=Be(L,{min:i,step:d,direction:N,multiplier:te});E(V,G,{commit:!0})}}})})})})},"Slider")),[Re,Me]=ae(Y,{startEdge:"left",endEdge:"right",size:"width",direction:1}),ot=u.forwardRef(h(function(e,s){const{min:a,max:i,dir:n,inverted:d,onSlideStart:l,onSlideMove:p,onSlideEnd:c,onStepKeyDown:o,...x}=e,[f,g]=u.useState(null),j=H(s,g),v=u.useRef(void 0),S=He(n),R=S==="ltr",C=R&&!d||!R&&d;function T(A){const _=v.current||f.getBoundingClientRect(),k=[0,_.width],b=ee(k,C?[a,i]:[i,a]);return v.current=_,b(A-_.left)}return h(T,"getValueFromPointer"),t.jsx(Re,{scope:e.__scopeSlider,startEdge:C?"left":"right",endEdge:C?"right":"left",direction:C?1:-1,size:"width",children:t.jsx(Ee,{dir:S,"data-orientation":"horizontal",...x,ref:j,style:{...x.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:A=>{const _=T(A.clientX);l==null||l(_)},onSlideMove:A=>{const _=T(A.clientX);p==null||p(_)},onSlideEnd:()=>{v.current=void 0,c==null||c()},onStepKeyDown:A=>{const k=Ce[C?"from-left":"from-right"].includes(A.key);o==null||o({event:A,direction:k?-1:1})}})})},"SliderHorizontal")),it=u.forwardRef(h(function(e,s){const{min:a,max:i,inverted:n,onSlideStart:d,onSlideMove:l,onSlideEnd:p,onStepKeyDown:c,...o}=e,x=u.useRef(null),f=H(s,x),g=u.useRef(void 0),j=!n;function v(S){const R=g.current||x.current.getBoundingClientRect(),C=[0,R.height],A=ee(C,j?[i,a]:[a,i]);return g.current=R,A(S-R.top)}return h(v,"getValueFromPointer"),t.jsx(Re,{scope:e.__scopeSlider,startEdge:j?"bottom":"top",endEdge:j?"top":"bottom",size:"height",direction:j?1:-1,children:t.jsx(Ee,{"data-orientation":"vertical",...o,ref:f,style:{...o.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:S=>{const R=v(S.clientY);d==null||d(R)},onSlideMove:S=>{const R=v(S.clientY);l==null||l(R)},onSlideEnd:()=>{g.current=void 0,p==null||p()},onStepKeyDown:S=>{const C=Ce[j?"from-bottom":"from-top"].includes(S.key);c==null||c({event:S,direction:C?-1:1})}})})},"SliderVertical")),Ee=u.forwardRef(h(function(e,s){const{__scopeSlider:a,onSlideStart:i,onSlideMove:n,onSlideEnd:d,onHomeKeyDown:l,onEndKeyDown:p,onStepKeyDown:c,...o}=e,x=W(Y,a);return t.jsx(U.span,{...o,ref:s,onKeyDown:F(e.onKeyDown,f=>{f.key==="Home"?(l(f),f.preventDefault()):f.key==="End"?(p(f),f.preventDefault()):je.concat(ke).includes(f.key)&&(c(f),f.preventDefault())}),onPointerDown:F(e.onPointerDown,f=>{const g=f.target;g.setPointerCapture(f.pointerId),f.preventDefault(),x.thumbs.has(g)?g.focus({preventScroll:!0,focusVisible:!1}):i(f)}),onPointerMove:F(e.onPointerMove,f=>{f.target.hasPointerCapture(f.pointerId)&&n(f)}),onPointerUp:F(e.onPointerUp,f=>{const g=f.target;g.hasPointerCapture(f.pointerId)&&(g.releasePointerCapture(f.pointerId),d(f))})})},"SliderImpl")),at="SliderTrack",lt=u.forwardRef(h(function(e,s){const{__scopeSlider:a,...i}=e,n=W(at,a);return t.jsx(U.span,{"data-disabled":n.disabled?"":void 0,"data-orientation":n.orientation,...i,ref:s})},"SliderTrack")),he="SliderRange",ct=u.forwardRef(h(function(e,s){const{__scopeSlider:a,...i}=e,n=W(he,a),d=Me(he,a),l=u.useRef(null),p=H(s,l),c=n.values.length,o=n.values.map(g=>le(g,n.min,n.max)),x=c>1?Math.min(...o):0,f=100-Math.max(...o);return t.jsx(U.span,{"data-orientation":n.orientation,"data-disabled":n.disabled?"":void 0,...i,ref:p,style:{...e.style,[d.startEdge]:x+"%",[d.endEdge]:f+"%"}})},"SliderRange")),dt="SliderThumb",[ut,Pe]=ae(dt),ft="SliderThumbProvider";function Ae(r){const{__scopeSlider:e,name:s,children:a,internal_do_not_use_render:i}=r,n=W(ft,e),d=tt(e),[l,p]=u.useState(null),c=u.useMemo(()=>l?d().findIndex(S=>S.ref.current===l):-1,[d,l]),o=Ke(l),x=l?!!n.form||!!l.closest("form"):!0,f=n.values[c],g=s??(n.name?n.name+(n.values.length>1?"[]":""):void 0),j=f===void 0?0:le(f,n.min,n.max);u.useEffect(()=>{if(l)return n.thumbs.add(l),()=>{n.thumbs.delete(l)}},[l,n.thumbs]);const v={value:f,name:g,form:n.form,isFormControl:x,index:c,thumb:l,onThumbChange:p,percent:j,size:o};return t.jsx(ut,{scope:e,...v,children:Ve(i)?i(v):a})}h(Ae,"SliderThumbProvider");var ne="SliderThumbTrigger",mt=u.forwardRef(h(function(e,s){const{__scopeSlider:a,...i}=e,n=W(ne,a),d=Me(ne,a),{index:l,value:p,percent:c,size:o,onThumbChange:x}=Pe(ne,a),f=H(s,x),g=Ne(l,n.values.length),j=o==null?void 0:o[d.size],v=j?De(j,c,d.direction):0;return t.jsx("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[d.startEdge]:`calc(${c}% + ${v}px)`},children:t.jsx(oe.ItemSlot,{scope:a,children:t.jsx(U.span,{role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":n.min,"aria-valuenow":p,"aria-valuemax":n.max,"aria-orientation":n.orientation,"data-orientation":n.orientation,"data-disabled":n.disabled?"":void 0,tabIndex:n.disabled?void 0:0,...i,ref:f,style:p===void 0?{display:"none"}:e.style,onFocus:F(e.onFocus,()=>{n.valueIndexToChangeRef.current=l})})})})},"SliderThumbTrigger")),pt=u.forwardRef(h(function(e,s){const{__scopeSlider:a,name:i,...n}=e;return t.jsx(Ae,{__scopeSlider:a,name:i,internal_do_not_use_render:({index:d,isFormControl:l})=>t.jsxs(t.Fragment,{children:[t.jsx(mt,{...n,ref:s,__scopeSlider:a}),l?t.jsx(ht,{__scopeSlider:a},d):null]})})},"SliderThumb")),xt="SliderBubbleInput",ht=u.forwardRef(h(function({__scopeSlider:e,...s},a){const{value:i,name:n,form:d}=Pe(xt,e),l=u.useRef(null),p=H(l,a),c=Ge(i);return u.useEffect(()=>{const o=l.current;if(!o)return;const x=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(x,"value").set;if(c!==i&&g){const j=new Event("input",{bubbles:!0});g.call(o,i),o.dispatchEvent(j)}},[c,i]),t.jsx(U.input,{style:{display:"none"},name:n,form:d,...s,ref:p,defaultValue:i})},"SliderBubbleInput"));function Te(r=[],e,s){const a=[...r];return a[s]=e,a.sort((i,n)=>i-n)}h(Te,"getNextSortedValues");function le(r,e,s){const n=100/(s-e)*(r-e);return ye(n,[0,100])}h(le,"convertValueToPercentage");function Ne(r,e){return e>2?`Value ${r+1} of ${e}`:e===2?["Minimum","Maximum"][r]:void 0}h(Ne,"getLabel");function _e(r,e){if(r.length===1)return 0;const s=r.map(i=>Math.abs(i-e)),a=Math.min(...s);return s.indexOf(a)}h(_e,"getClosestValueIndex");function De(r,e,s){const a=r/2,n=ee([0,50],[0,a]);return(a-n(e)*s)*s}h(De,"getThumbInBoundsOffset");function Ie(r){return r.slice(0,-1).map((e,s)=>r[s+1]-e)}h(Ie,"getStepsBetweenValues");function $e(r,e){if(e>0){const s=Ie(r);return Math.min(...s)>=e}return!0}h($e,"hasMinStepsBetweenValues");function ee(r,e){return s=>{if(r[0]===r[1]||e[0]===e[1])return e[0];const a=(e[1]-e[0])/(r[1]-r[0]);return e[0]+a*(s-r[0])}}h(ee,"linearScale");function ce(r){if(!Number.isFinite(r))return 0;const e=r.toString();if(e.includes("e")){const[a,i]=e.split("e"),n=a.split(".")[1]||"",d=Number(i);return Math.max(0,n.length-d)}const s=e.split(".")[1];return s?s.length:0}h(ce,"getDecimalCount");function z(r,e){const s=Math.pow(10,e);return Math.round(r*s)/s}h(z,"roundValue");function Be(r,{min:e,step:s,direction:a,multiplier:i}){const n=ce(s),d=(r-e)/s,l=Math.round(d),p=z(l*s+e,n)===z(r,n);let c;return p?c=l+i*a:a>0?c=Math.ceil(d):c=Math.floor(d),z(c*s+e,n)}h(Be,"getNextStepValue");function Ve(r){return typeof r=="function"}h(Ve,"isFunction");function gt({className:r,defaultValue:e,value:s,min:a=0,max:i=100,...n}){const d=u.useMemo(()=>Array.isArray(s)?s:Array.isArray(e)?e:[a,i],[s,e,a,i]);return t.jsxs(st,{"data-slot":"slider",defaultValue:e,value:s,min:a,max:i,className:X("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",r),...n,children:[t.jsx(lt,{"data-slot":"slider-track",className:X("bg-dui-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),children:t.jsx(ct,{"data-slot":"slider-range",className:X("bg-dui-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")})}),Array.from({length:d.length},(l,p)=>t.jsx(pt,{"data-slot":"slider-thumb",className:X("border-dui-primary hover:ring-dui-ring/50 block size-4 shrink-0 rounded-full border bg-white shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50 motion-reduce:transition-none!",ze)},p))]})}const ge={light:{heroGlow:"28",heroGlowOuter:"14",pillBgStart:"20",pillBgEnd:"14",pillBorder:"50",pillGlow:"30"},dark:{heroGlow:"18",heroGlowOuter:"08",pillBgStart:"12",pillBgEnd:"08",pillBorder:"40",pillGlow:"33"}};function bt(){return document.documentElement.classList.contains("dark")}function St(){return!1}function yt(r){const e=new MutationObserver(s=>{for(const a of s)if(a.attributeName==="class"){r();return}});return e.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>e.disconnect()}function de(){return u.useSyncExternalStore(yt,bt,St)}function wt(){return de()?ge.dark:ge.light}function vt({traits:r,onChange:e,onSliderChange:s}){const a=u.useCallback((i,n)=>{s==null||s(i,n),e({...r,[i]:n})},[r,e,s]);return t.jsx("div",{className:"space-y-4",children:Ue.map(i=>t.jsx(jt,{name:i,level:r[i]??3,onChange:a},i))})}function jt({name:r,level:e,onChange:s}){const a=Ye[r][e];return t.jsxs("div",{className:"space-y-2",children:[t.jsxs("div",{className:"flex items-center justify-between text-sm",children:[t.jsx("span",{className:"font-medium capitalize",children:r}),t.jsxs("span",{className:"text-muted-foreground",children:[e,"/5 ",a.label]})]}),t.jsx(gt,{value:[e],onValueChange:([i])=>s(r,i),min:1,max:5,step:1,"aria-label":`${r} trait level`})]})}const kt=we("inline-flex shrink-0 items-center gap-1.5 rounded-full border font-medium transition-[color,background-color,border-color,box-shadow]",{variants:{size:{sm:"text-2xs px-2.5 py-1",md:"px-3 py-1 text-xs"},state:{rest:"bg-accent text-muted-foreground hover:text-foreground border-transparent",active:"text-foreground",glowing:"text-foreground"}},defaultVariants:{size:"md",state:"rest"}}),Ct=we("",{variants:{gradient:{true:"bg-clip-text text-transparent",false:""}},defaultVariants:{gradient:!1}});function Rt({emoji:r,name:e,colors:s,size:a="md",state:i="rest",gradientText:n=!1,className:d,style:l,...p}){const c=de(),o=wt(),x=i==="active"||i==="glowing";return t.jsxs("button",{type:"button",className:P(kt({size:a,state:i}),d),style:{...x?{borderColor:c?s.stroke+o.pillBorder:s.stroke+"AA",background:`linear-gradient(135deg, ${s.nebula}${o.pillBgStart}, ${s.wisp}${o.pillBgEnd})`,...i==="glowing"?{boxShadow:`0 0 12px ${s.nebula}${o.pillGlow}`}:{}}:{},...l},...p,children:[t.jsx("span",{children:r}),t.jsx("span",{className:Ct({gradient:n}),style:n?{backgroundImage:`linear-gradient(135deg, ${s.stroke}, ${s.strokeEnd})`,...c?{}:{filter:"brightness(0.65) saturate(1.3)"}}:void 0,children:e})]})}const Mt=["Verbosity","Autonomy","Chaos","Creativity","Humor","Spice"],J=["verbosity","autonomy","chaos","creativity","humor","spice"],Z=6,ue=5,be=3,Et=800,Pt=600,Se={light:{nebulaCenter:.45,nebulaMid:.25,wispStart:.2,fillStart:.25,fillEnd:.15,haloBase:.25,haloAmplitude:.12,breatheMin:.25,breatheMax:.4,guideBase:.1,guideStep:.04,axis:.12,stardustPeak:1,glowBlur:12,vertexBlur:4},dark:{nebulaCenter:.35,nebulaMid:.15,wispStart:.12,fillStart:.35,fillEnd:.25,haloBase:.15,haloAmplitude:.1,breatheMin:.15,breatheMax:.25,guideBase:.06,guideStep:.02,axis:.08,stardustPeak:.8,glowBlur:10,vertexBlur:4}},At=[{r:1.2,dur:"9s",fade:"4.5s",begin:"0s",path:"M0,0 C30,-40 60,0 40,40 C20,60 -20,40 -30,10 C-40,-20 -10,-50 0,0"},{r:.9,dur:"7s",fade:"3.5s",begin:"0s",path:"M0,0 C-20,30 -40,20 -30,-10 C-20,-30 10,-40 20,-20 C30,0 20,30 0,0"},{r:1,dur:"11s",fade:"5s",begin:"0s",path:"M0,0 C40,10 30,50 0,40 C-30,30 -40,-10 -20,-30 C0,-50 30,-20 0,0"},{r:.7,dur:"8s",fade:"4s",begin:"2s",path:"M0,0 C15,-35 45,-15 35,20 C25,45 -15,40 -25,15 C-35,-10 -5,-40 0,0"},{r:1.1,dur:"12s",fade:"6s",begin:"1s",path:"M0,0 C-25,25 -45,5 -30,-20 C-15,-45 20,-35 30,-10 C40,15 15,35 0,0"}];function Q(r,e,s,a){const i=Math.PI*2*r/Z-Math.PI/2,n=e/ue*a;return{x:s+n*Math.cos(i),y:s+n*Math.sin(i)}}function ie(r){return r.map(e=>`${e.x},${e.y}`).join(" ")}function Tt(r,e,s){return ie(Array.from({length:Z},(a,i)=>Q(i,r*ue,e,s)))}function Nt(r){return r<.5?4*r*r*r:1-(-2*r+2)**3/2}function _t({traits:r,colors:e=ve,size:s=180,animated:a=!0,className:i}){const n=u.useId().replace(/:/g,""),d=de(),l=d?Se.dark:Se.light,p=u.useRef(l);p.current=l;const c=d?{strokeStart:e.stroke,strokeEnd:e.strokeEnd,fillStart:e.fill,fillEnd:e.fillEnd,dot:e.dot,glow:e.glow}:{strokeStart:e.fill,strokeEnd:e.fillEnd,fillStart:e.stroke,fillEnd:e.strokeEnd,dot:e.fill,glow:e.stroke},o=s/2,x=s*.32,f=x+16,g=s/200,j=u.useRef(null),v=u.useRef(null),S=u.useRef([]),R=u.useRef([]),C=u.useRef({current:{...r},from:null,target:{...r},morphStart:0,breathe:0}),T=u.useRef(r);u.useEffect(()=>{const b=T.current;if(J.some(w=>b[w]!==r[w])){const w=C.current;if(a){w.from={...w.current},w.target={...r},w.morphStart=performance.now();const I=v.current;if(I){const q=performance.now();(function B(){const D=Math.min((performance.now()-q)/Pt,1),M=1-(1-D)*(1-D);I.setAttribute("r",String(x*(.7+.6*M))),I.setAttribute("opacity",String(.4*(1-M))),D<1&&requestAnimationFrame(B)})()}}else Object.assign(w.current,r),Object.assign(w.target,r)}T.current=r},[r,a,x]),u.useEffect(()=>{if(!a)return;let b;const m=C.current;function w(){var D;m.breathe+=.015;const I=1+Math.sin(m.breathe)*.04;if(m.from){const M=Math.min((performance.now()-m.morphStart)/Et,1),E=Nt(M);for(const y of J)m.current[y]=m.from[y]+(m.target[y]-m.from[y])*E;M>=1&&(m.from=null,Object.assign(m.current,m.target))}const B=J.map(M=>m.current[M]).map((M,E)=>Q(E,M*I,o,x));(D=j.current)==null||D.setAttribute("points",ie(B)),B.forEach((M,E)=>{const y=S.current[E],N=R.current[E];if(y){y.setAttribute("cx",String(M.x)),y.setAttribute("cy",String(M.y)),y.setAttribute("r",String(8+Math.sin(m.breathe+E*1.2)*3));const $=p.current;y.setAttribute("opacity",String($.haloBase+Math.sin(m.breathe+E)*$.haloAmplitude))}N&&(N.setAttribute("cx",String(M.x)),N.setAttribute("cy",String(M.y)),N.setAttribute("r",String(3.5+Math.sin(m.breathe+E*.8)*.8)))}),b=requestAnimationFrame(w)}return b=requestAnimationFrame(w),()=>cancelAnimationFrame(b)},[a,o,x]);const A=J.map((b,m)=>Q(m,r[b],o,x)),_=ie(A),k={transition:"stop-color 0.6s ease"},O={transition:"fill 0.6s ease"};return t.jsxs("svg",{viewBox:`0 0 ${s} ${s}`,className:P("aspect-square",i),"aria-label":"Personality radar chart",role:"img",children:[t.jsxs("defs",{children:[d?t.jsxs("filter",{id:`ng-${n}`,x:"-80%",y:"-80%",width:"260%",height:"260%",children:[t.jsx("feGaussianBlur",{stdDeviation:l.glowBlur,result:"blur"}),t.jsxs("feMerge",{children:[t.jsx("feMergeNode",{in:"blur"}),t.jsx("feMergeNode",{in:"blur"}),t.jsx("feMergeNode",{in:"SourceGraphic"})]})]}):t.jsx("filter",{id:`ng-${n}`,x:"-50%",y:"-30%",width:"200%",height:"200%",children:t.jsx("feDropShadow",{dx:"0",dy:"2",stdDeviation:"6",floodColor:c.strokeStart,floodOpacity:"0.18"})}),t.jsxs("filter",{id:`vg-${n}`,x:"-100%",y:"-100%",width:"300%",height:"300%",children:[t.jsx("feGaussianBlur",{stdDeviation:l.vertexBlur,result:"blur"}),t.jsxs("feMerge",{children:[t.jsx("feMergeNode",{in:"blur"}),t.jsx("feMergeNode",{in:"SourceGraphic"})]})]}),t.jsxs("radialGradient",{id:`nc-${n}`,cx:"50%",cy:"50%",r:"50%",children:[t.jsx("stop",{offset:"0%",style:{stopColor:e.nebula,stopOpacity:l.nebulaCenter,...k}}),t.jsx("stop",{offset:"50%",style:{stopColor:e.nebula,stopOpacity:l.nebulaMid,...k}}),t.jsx("stop",{offset:"100%",style:{stopColor:"var(--nebula-edge)"},stopOpacity:0})]}),t.jsxs("radialGradient",{id:`nw-${n}`,cx:"35%",cy:"35%",r:"60%",children:[t.jsx("stop",{offset:"0%",style:{stopColor:e.wisp,stopOpacity:l.wispStart,...k}}),t.jsx("stop",{offset:"100%",style:{stopColor:"var(--nebula-edge)"},stopOpacity:0})]}),t.jsxs("linearGradient",{id:`sf-${n}`,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[t.jsx("stop",{offset:"0%",style:{stopColor:c.fillStart,stopOpacity:l.fillStart,...k}}),t.jsx("stop",{offset:"100%",style:{stopColor:c.fillEnd,stopOpacity:l.fillEnd,...k}})]}),t.jsxs("linearGradient",{id:`ss-${n}`,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[t.jsx("stop",{offset:"0%",style:{stopColor:c.strokeStart,...k}}),t.jsx("stop",{offset:"100%",style:{stopColor:c.strokeEnd,...k}})]})]}),t.jsx("circle",{cx:o,cy:o,r:s*.44,fill:`url(#nc-${n})`,children:a&&t.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${o} ${o};360 ${o} ${o}`,dur:"90s",repeatCount:"indefinite"})}),t.jsx("ellipse",{cx:o*.94,cy:o*.97,rx:s*.35,ry:s*.25,fill:`url(#nw-${n})`,children:a&&t.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${o} ${o};-360 ${o} ${o}`,dur:"60s",repeatCount:"indefinite"})}),a&&t.jsxs("circle",{cx:o,cy:o,r:x*.92,fill:"none",style:{stroke:c.strokeStart,transition:"stroke 0.6s ease"},strokeWidth:.3,opacity:l.breatheMin,children:[t.jsx("animate",{attributeName:"r",values:`${x*.85};${x*1.08};${x*.85}`,dur:"4s",repeatCount:"indefinite",calcMode:"spline",keySplines:"0.4 0 0.6 1;0.4 0 0.6 1"}),t.jsx("animate",{attributeName:"opacity",values:`${l.breatheMin};${l.breatheMax};${l.breatheMin}`,dur:"4s",repeatCount:"indefinite",calcMode:"spline",keySplines:"0.4 0 0.6 1;0.4 0 0.6 1"})]}),a&&t.jsx("g",{transform:`translate(${o},${o}) scale(${g})`,children:At.map((b,m)=>t.jsxs("circle",{r:b.r,style:{fill:c.dot,...O},children:[t.jsx("animateMotion",{dur:b.dur,repeatCount:"indefinite",begin:b.begin,path:b.path}),t.jsx("animate",{attributeName:"opacity",values:`0;${l.stardustPeak};0`,dur:b.fade,repeatCount:"indefinite",begin:b.begin})]},`star-${m}`))}),t.jsx("circle",{ref:v,cx:o,cy:o,r:0,fill:e.nebula,opacity:0}),Array.from({length:be},(b,m)=>t.jsx("polygon",{points:Tt((m+1)/be,o,x),fill:"none",stroke:d?"currentColor":c.strokeStart,strokeWidth:.5,opacity:l.guideBase+m*l.guideStep},`ring-${m}`)),Array.from({length:Z},(b,m)=>{const w=Q(m,ue,o,x);return t.jsx("line",{x1:o,y1:o,x2:w.x,y2:w.y,stroke:d?"currentColor":c.strokeStart,strokeWidth:.5,opacity:l.axis},`axis-${m}`)}),t.jsx("polygon",{ref:j,points:_,fill:`url(#sf-${n})`,stroke:`url(#ss-${n})`,strokeWidth:2,strokeLinejoin:"round",filter:`url(#ng-${n})`}),A.map((b,m)=>t.jsx("circle",{ref:w=>{S.current[m]=w},cx:b.x,cy:b.y,r:8,style:{fill:c.glow,...O},opacity:l.haloBase},`halo-${m}`)),A.map((b,m)=>t.jsx("circle",{ref:w=>{R.current[m]=w},cx:b.x,cy:b.y,r:d?4:4.5,style:{fill:c.dot,...O},stroke:d?"none":"white",strokeWidth:d?0:1.5,filter:`url(#vg-${n})`},`dot-${m}`)),Mt.map((b,m)=>{const w=Math.PI*2*m/Z-Math.PI/2;return t.jsx("text",{x:o+f*Math.cos(w),y:o+f*Math.sin(w),textAnchor:"middle",dominantBaseline:"middle",fill:"currentColor",opacity:.5,fontSize:8,className:"select-none",children:b},b)})]})}const se={duration:.2,ease:"easeInOut"};function Lt({traits:r,onTraitsChange:e,compact:s=!1,layout:a="inline",sampleLabel:i="How this agent talks",className:n}){const[d,l]=u.useState("presets"),p=We()??!1,c=a==="stacked",o=qe(r),x=(o==null?void 0:o.colors)??ve,f=c?Qe(r,o==null?void 0:o.id):"",g=u.useCallback(S=>{e(S.traits),l("presets"),K()},[e]),j=u.useCallback(()=>{l("custom"),K()},[]),v=u.useCallback(()=>{l("presets"),K()},[]);return t.jsxs("div",{className:P("@container/picker w-full",n),children:[t.jsxs("div",{className:P("flex flex-col items-center gap-3",!c&&"@[480px]/picker:flex-row @[480px]/picker:items-center @[480px]/picker:gap-6",c&&"gap-4"),children:[t.jsxs("div",{className:P("flex flex-col items-center gap-1",!c&&"@[480px]/picker:w-[200px] @[480px]/picker:shrink-0",c&&"gap-1.5"),children:[t.jsx("div",{"data-testid":"personality-radar",children:t.jsx(_t,{traits:r,colors:x,size:c?240:s?180:200,className:P(c&&"w-full max-w-[240px]",!c&&(s?"w-[90%] max-w-[240px]":"w-full max-w-[200px]"))})}),t.jsxs("div",{className:"text-center",children:[t.jsx("h3",{className:P("bg-clip-text font-bold text-transparent",c?"text-base":"text-sm"),style:{backgroundImage:`linear-gradient(135deg, ${x.stroke}, ${x.strokeEnd})`},children:(o==null?void 0:o.name)??"Custom"}),t.jsx("p",{className:P("text-muted-foreground mt-0.5",c?"text-xs":"text-2xs"),children:(o==null?void 0:o.tagline)??"A custom blend of personality traits."})]})]}),t.jsx("div",{className:P("flex w-full min-w-0 flex-col items-center gap-3",!c&&"@[480px]/picker:items-start"),children:t.jsx(pe,{mode:"wait",initial:!1,children:d==="presets"?t.jsxs(re.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},exit:{opacity:0,y:-6},transition:se,className:P("flex max-w-sm flex-wrap justify-center gap-1.5",!c&&"@[480px]/picker:justify-start"),"data-testid":"preset-pills",children:[Xe.map(S=>t.jsx(Rt,{emoji:S.emoji,name:S.name,colors:S.colors,size:s?"sm":"md",state:(o==null?void 0:o.id)===S.id?"glowing":"rest",onClick:()=>g(S)},S.id)),t.jsxs("button",{type:"button",onClick:j,className:P("inline-flex shrink-0 items-center gap-1.5 rounded-full border border-dashed font-medium transition-[color,border-color]","text-muted-foreground hover:text-foreground hover:border-foreground/20 border-border",s?"text-2xs px-2.5 py-1":"px-3 py-1 text-xs"),"data-testid":"custom-toggle",children:[t.jsx(xe,{className:"size-3"}),t.jsx("span",{children:"Custom"})]})]},"presets"):t.jsxs(re.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},exit:{opacity:0,y:-6},transition:se,className:P("flex w-full flex-col items-center gap-3",!c&&"@[480px]/picker:items-start"),children:[t.jsxs("div",{className:"flex gap-1.5","data-testid":"custom-mode-pills",children:[t.jsxs("button",{type:"button",onClick:v,className:P("inline-flex shrink-0 items-center gap-1.5 rounded-full border border-dashed font-medium transition-[color,border-color]","text-muted-foreground hover:text-foreground hover:border-foreground/20 border-border",s?"text-2xs px-2.5 py-1":"px-3 py-1 text-xs"),"data-testid":"presets-toggle",children:[t.jsx("span",{children:"←"}),t.jsx("span",{children:"Presets"})]}),t.jsxs("span",{className:P("bg-accent text-foreground inline-flex shrink-0 items-center gap-1.5 rounded-full border font-medium","border-foreground/15",s?"text-2xs px-2.5 py-1":"px-3 py-1 text-xs"),children:[t.jsx(xe,{className:"size-3"}),t.jsx("span",{children:"Custom"})]})]}),t.jsx("div",{className:P("w-full",s?"max-w-sm":"max-w-md"),onPointerDown:()=>K(),children:t.jsx(vt,{traits:r,onChange:e,onSliderChange:()=>K()})})]},"custom")})})]}),t.jsxs("div",{className:P("w-full max-w-sm",c?"mt-4 flex flex-col items-center":"hidden"),children:[t.jsx("span",{className:"text-muted-foreground text-3xs self-start font-medium tracking-wider uppercase",children:i}),t.jsx("div",{className:"border-primary/40 bg-accent/40 mt-1 w-full rounded-md border-l-2 py-2 pr-3 pl-3",children:c?t.jsx(pe,{mode:"wait",initial:!1,children:t.jsxs(re.p,{"data-testid":"personality-sample",initial:p?!1:{opacity:0,y:4},animate:{opacity:1,y:0},exit:p?void 0:{opacity:0,y:-4},transition:se,className:"text-muted-foreground text-xs leading-relaxed italic",children:["“",f,"”"]},f)}):t.jsx("p",{className:"text-muted-foreground text-xs leading-relaxed italic",children:(o==null?void 0:o.sampleResponse)??"Custom blend. Pick a preset to see a sample reply."})})]})]})}const Dt=400;function Ft(r,e){const s=(r==null?void 0:r.traits)??Je,[a,i]=u.useState(null),n=u.useRef(null),d=u.useRef(null),l=u.useRef({agent:r,update:e});u.useEffect(()=>{l.current={agent:r,update:e}});const p=(r==null?void 0:r.id)??null;u.useEffect(()=>{n.current!==null&&(clearTimeout(n.current),n.current=null),d.current=null,i(null)},[p]);const c=u.useCallback(()=>{n.current!==null&&(clearTimeout(n.current),n.current=null);const x=d.current;if(d.current=null,x===null)return;const{agent:f,update:g}=l.current;f!==null&&g(Ze(f,x))},[]);u.useEffect(()=>()=>c(),[c]);const o=u.useCallback(x=>{i(x),d.current=x,n.current!==null&&clearTimeout(n.current),n.current=setTimeout(c,Dt)},[c]);return{traits:a??s,onTraitsChange:o}}export{Lt as P,Ft as u};
|
|
1
|
+
import{r as u,gD as Oe,bo as Le,bm as H,eH as Fe,j as t,bl as F,br as He,bn as U,gE as Ge,bs as ye,gF as Ke,bt as q,bu as ze,gG as Ue,gH as Ye,G as P,W as we,gI as ve,e3 as We,gJ as Xe,bw as pe,ap as re,gK as qe,dE as xe,gL as Je}from"./index-fge85Gub.js";import{g as Qe}from"./dorkbot-templates-8Yu9POWJ.js";import{p as K}from"./sound-D3r8dGFH.js";import{p as Ze}from"./soul-file-BcaDvIdL.js";var et=Object.defineProperty,h=(r,e)=>et(r,"name",{value:e,configurable:!0}),je=["PageUp","PageDown"],ke=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ce={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Y="Slider",[oe,tt,rt]=Oe(Y),[ae,Ot]=Le(Y,[rt]),[nt,W]=ae(Y),st=u.forwardRef(h(function(e,s){const{name:a,min:i=0,max:n=100,step:d=1,orientation:l="horizontal",disabled:p=!1,minStepsBetweenThumbs:c=0,defaultValue:o=[i],value:x,onValueChange:f=h(()=>{},"onValueChange"),onValueCommit:g=h(()=>{},"onValueCommit"),inverted:j=!1,form:v,...S}=e,R=u.useRef(new Set),C=u.useRef(0),T=u.useRef(!1),_=l==="horizontal"?ot:it,[k,O]=u.useState(null),b=H(s,O),[m=[],w]=Fe({prop:x,defaultProp:o,onChange:h(y=>{var B;(B=[...R.current][C.current])==null||B.focus({preventScroll:!0,focusVisible:T.current}),T.current=!1,f(y)},"onChange")}),$=u.useRef(m),X=u.useRef(m);u.useEffect(()=>{const y=v?k==null?void 0:k.ownerDocument.getElementById(v):k==null?void 0:k.closest("form");if(y instanceof HTMLFormElement){const N=h(()=>w(X.current),"reset");return y.addEventListener("reset",N),()=>y.removeEventListener("reset",N)}},[k,v,w]);function I(y){const N=_e(m,y);M(y,N)}h(I,"handleSlideStart");function D(y){M(y,C.current)}h(D,"handleSlideMove");function E(){String(m)!==String($.current)&&g(m)}h(E,"handleSlideEnd");function M(y,N,{commit:B}={commit:!1}){const fe=ce(d),te=z(Math.round((y-i)/d)*d+i,fe),G=ye(te,[i,n]);w((L=[])=>{const V=Te(L,G,N);if(Be(V,c*d)){C.current=V.indexOf(G);const me=String(V)!==String(L);return me&&B&&g(V),me?V:L}else return L})}return h(M,"updateValues"),t.jsx(nt,{scope:e.__scopeSlider,name:a,disabled:p,min:i,max:n,valueIndexToChangeRef:C,thumbs:R.current,values:m,orientation:l,form:v,children:t.jsx(oe.Provider,{scope:e.__scopeSlider,children:t.jsx(oe.Slot,{scope:e.__scopeSlider,children:t.jsx(_,{"aria-disabled":p,"data-disabled":p?"":void 0,...S,ref:b,onPointerDown:F(S.onPointerDown,()=>{p||($.current=m,T.current=!1)}),min:i,max:n,inverted:j,onSlideStart:p?void 0:I,onSlideMove:p?void 0:D,onSlideEnd:p?void 0:E,onHomeKeyDown:()=>{p||(T.current=!0,M(i,0,{commit:!0}))},onEndKeyDown:()=>{p||(T.current=!0,M(n,m.length-1,{commit:!0}))},onStepKeyDown:({event:y,direction:N})=>{if(!p){T.current=!0;const te=je.includes(y.key)||y.shiftKey&&ke.includes(y.key)?10:1,G=C.current,L=m[G],V=Ie(L,{min:i,step:d,direction:N,multiplier:te});M(V,G,{commit:!0})}}})})})})},"Slider")),[Re,Ee]=ae(Y,{startEdge:"left",endEdge:"right",size:"width",direction:1}),ot=u.forwardRef(h(function(e,s){const{min:a,max:i,dir:n,inverted:d,onSlideStart:l,onSlideMove:p,onSlideEnd:c,onStepKeyDown:o,...x}=e,[f,g]=u.useState(null),j=H(s,g),v=u.useRef(void 0),S=He(n),R=S==="ltr",C=R&&!d||!R&&d;function T(A){const _=v.current||f.getBoundingClientRect(),k=[0,_.width],b=ee(k,C?[a,i]:[i,a]);return v.current=_,b(A-_.left)}return h(T,"getValueFromPointer"),t.jsx(Re,{scope:e.__scopeSlider,startEdge:C?"left":"right",endEdge:C?"right":"left",direction:C?1:-1,size:"width",children:t.jsx(Me,{dir:S,"data-orientation":"horizontal",...x,ref:j,style:{...x.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:A=>{const _=T(A.clientX);l==null||l(_)},onSlideMove:A=>{const _=T(A.clientX);p==null||p(_)},onSlideEnd:()=>{v.current=void 0,c==null||c()},onStepKeyDown:A=>{const k=Ce[C?"from-left":"from-right"].includes(A.key);o==null||o({event:A,direction:k?-1:1})}})})},"SliderHorizontal")),it=u.forwardRef(h(function(e,s){const{min:a,max:i,inverted:n,onSlideStart:d,onSlideMove:l,onSlideEnd:p,onStepKeyDown:c,...o}=e,x=u.useRef(null),f=H(s,x),g=u.useRef(void 0),j=!n;function v(S){const R=g.current||x.current.getBoundingClientRect(),C=[0,R.height],A=ee(C,j?[i,a]:[a,i]);return g.current=R,A(S-R.top)}return h(v,"getValueFromPointer"),t.jsx(Re,{scope:e.__scopeSlider,startEdge:j?"bottom":"top",endEdge:j?"top":"bottom",size:"height",direction:j?1:-1,children:t.jsx(Me,{"data-orientation":"vertical",...o,ref:f,style:{...o.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:S=>{const R=v(S.clientY);d==null||d(R)},onSlideMove:S=>{const R=v(S.clientY);l==null||l(R)},onSlideEnd:()=>{g.current=void 0,p==null||p()},onStepKeyDown:S=>{const C=Ce[j?"from-bottom":"from-top"].includes(S.key);c==null||c({event:S,direction:C?-1:1})}})})},"SliderVertical")),Me=u.forwardRef(h(function(e,s){const{__scopeSlider:a,onSlideStart:i,onSlideMove:n,onSlideEnd:d,onHomeKeyDown:l,onEndKeyDown:p,onStepKeyDown:c,...o}=e,x=W(Y,a);return t.jsx(U.span,{...o,ref:s,onKeyDown:F(e.onKeyDown,f=>{f.key==="Home"?(l(f),f.preventDefault()):f.key==="End"?(p(f),f.preventDefault()):je.concat(ke).includes(f.key)&&(c(f),f.preventDefault())}),onPointerDown:F(e.onPointerDown,f=>{const g=f.target;g.setPointerCapture(f.pointerId),f.preventDefault(),x.thumbs.has(g)?g.focus({preventScroll:!0,focusVisible:!1}):i(f)}),onPointerMove:F(e.onPointerMove,f=>{f.target.hasPointerCapture(f.pointerId)&&n(f)}),onPointerUp:F(e.onPointerUp,f=>{const g=f.target;g.hasPointerCapture(f.pointerId)&&(g.releasePointerCapture(f.pointerId),d(f))})})},"SliderImpl")),at="SliderTrack",lt=u.forwardRef(h(function(e,s){const{__scopeSlider:a,...i}=e,n=W(at,a);return t.jsx(U.span,{"data-disabled":n.disabled?"":void 0,"data-orientation":n.orientation,...i,ref:s})},"SliderTrack")),he="SliderRange",ct=u.forwardRef(h(function(e,s){const{__scopeSlider:a,...i}=e,n=W(he,a),d=Ee(he,a),l=u.useRef(null),p=H(s,l),c=n.values.length,o=n.values.map(g=>le(g,n.min,n.max)),x=c>1?Math.min(...o):0,f=100-Math.max(...o);return t.jsx(U.span,{"data-orientation":n.orientation,"data-disabled":n.disabled?"":void 0,...i,ref:p,style:{...e.style,[d.startEdge]:x+"%",[d.endEdge]:f+"%"}})},"SliderRange")),dt="SliderThumb",[ut,Pe]=ae(dt),ft="SliderThumbProvider";function Ae(r){const{__scopeSlider:e,name:s,children:a,internal_do_not_use_render:i}=r,n=W(ft,e),d=tt(e),[l,p]=u.useState(null),c=u.useMemo(()=>l?d().findIndex(S=>S.ref.current===l):-1,[d,l]),o=Ke(l),x=l?!!n.form||!!l.closest("form"):!0,f=n.values[c],g=s??(n.name?n.name+(n.values.length>1?"[]":""):void 0),j=f===void 0?0:le(f,n.min,n.max);u.useEffect(()=>{if(l)return n.thumbs.add(l),()=>{n.thumbs.delete(l)}},[l,n.thumbs]);const v={value:f,name:g,form:n.form,isFormControl:x,index:c,thumb:l,onThumbChange:p,percent:j,size:o};return t.jsx(ut,{scope:e,...v,children:Ve(i)?i(v):a})}h(Ae,"SliderThumbProvider");var ne="SliderThumbTrigger",mt=u.forwardRef(h(function(e,s){const{__scopeSlider:a,...i}=e,n=W(ne,a),d=Ee(ne,a),{index:l,value:p,percent:c,size:o,onThumbChange:x}=Pe(ne,a),f=H(s,x),g=Ne(l,n.values.length),j=o==null?void 0:o[d.size],v=j?De(j,c,d.direction):0;return t.jsx("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[d.startEdge]:`calc(${c}% + ${v}px)`},children:t.jsx(oe.ItemSlot,{scope:a,children:t.jsx(U.span,{role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":n.min,"aria-valuenow":p,"aria-valuemax":n.max,"aria-orientation":n.orientation,"data-orientation":n.orientation,"data-disabled":n.disabled?"":void 0,tabIndex:n.disabled?void 0:0,...i,ref:f,style:p===void 0?{display:"none"}:e.style,onFocus:F(e.onFocus,()=>{n.valueIndexToChangeRef.current=l})})})})},"SliderThumbTrigger")),pt=u.forwardRef(h(function(e,s){const{__scopeSlider:a,name:i,...n}=e;return t.jsx(Ae,{__scopeSlider:a,name:i,internal_do_not_use_render:({index:d,isFormControl:l})=>t.jsxs(t.Fragment,{children:[t.jsx(mt,{...n,ref:s,__scopeSlider:a}),l?t.jsx(ht,{__scopeSlider:a},d):null]})})},"SliderThumb")),xt="SliderBubbleInput",ht=u.forwardRef(h(function({__scopeSlider:e,...s},a){const{value:i,name:n,form:d}=Pe(xt,e),l=u.useRef(null),p=H(l,a),c=Ge(i);return u.useEffect(()=>{const o=l.current;if(!o)return;const x=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(x,"value").set;if(c!==i&&g){const j=new Event("input",{bubbles:!0});g.call(o,i),o.dispatchEvent(j)}},[c,i]),t.jsx(U.input,{style:{display:"none"},name:n,form:d,...s,ref:p,defaultValue:i})},"SliderBubbleInput"));function Te(r=[],e,s){const a=[...r];return a[s]=e,a.sort((i,n)=>i-n)}h(Te,"getNextSortedValues");function le(r,e,s){const n=100/(s-e)*(r-e);return ye(n,[0,100])}h(le,"convertValueToPercentage");function Ne(r,e){return e>2?`Value ${r+1} of ${e}`:e===2?["Minimum","Maximum"][r]:void 0}h(Ne,"getLabel");function _e(r,e){if(r.length===1)return 0;const s=r.map(i=>Math.abs(i-e)),a=Math.min(...s);return s.indexOf(a)}h(_e,"getClosestValueIndex");function De(r,e,s){const a=r/2,n=ee([0,50],[0,a]);return(a-n(e)*s)*s}h(De,"getThumbInBoundsOffset");function $e(r){return r.slice(0,-1).map((e,s)=>r[s+1]-e)}h($e,"getStepsBetweenValues");function Be(r,e){if(e>0){const s=$e(r);return Math.min(...s)>=e}return!0}h(Be,"hasMinStepsBetweenValues");function ee(r,e){return s=>{if(r[0]===r[1]||e[0]===e[1])return e[0];const a=(e[1]-e[0])/(r[1]-r[0]);return e[0]+a*(s-r[0])}}h(ee,"linearScale");function ce(r){if(!Number.isFinite(r))return 0;const e=r.toString();if(e.includes("e")){const[a,i]=e.split("e"),n=a.split(".")[1]||"",d=Number(i);return Math.max(0,n.length-d)}const s=e.split(".")[1];return s?s.length:0}h(ce,"getDecimalCount");function z(r,e){const s=Math.pow(10,e);return Math.round(r*s)/s}h(z,"roundValue");function Ie(r,{min:e,step:s,direction:a,multiplier:i}){const n=ce(s),d=(r-e)/s,l=Math.round(d),p=z(l*s+e,n)===z(r,n);let c;return p?c=l+i*a:a>0?c=Math.ceil(d):c=Math.floor(d),z(c*s+e,n)}h(Ie,"getNextStepValue");function Ve(r){return typeof r=="function"}h(Ve,"isFunction");function gt({className:r,defaultValue:e,value:s,min:a=0,max:i=100,...n}){const d=u.useMemo(()=>Array.isArray(s)?s:Array.isArray(e)?e:[a,i],[s,e,a,i]);return t.jsxs(st,{"data-slot":"slider",defaultValue:e,value:s,min:a,max:i,className:q("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",r),...n,children:[t.jsx(lt,{"data-slot":"slider-track",className:q("bg-dui-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),children:t.jsx(ct,{"data-slot":"slider-range",className:q("bg-dui-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")})}),Array.from({length:d.length},(l,p)=>t.jsx(pt,{"data-slot":"slider-thumb",className:q("border-dui-primary hover:ring-dui-ring/50 block size-4 shrink-0 rounded-full border bg-white shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50 motion-reduce:transition-none!",ze)},p))]})}const ge={light:{heroGlow:"28",heroGlowOuter:"14",pillBgStart:"20",pillBgEnd:"14",pillBorder:"50",pillGlow:"30"},dark:{heroGlow:"18",heroGlowOuter:"08",pillBgStart:"12",pillBgEnd:"08",pillBorder:"40",pillGlow:"33"}};function bt(){return document.documentElement.classList.contains("dark")}function St(){return!1}function yt(r){const e=new MutationObserver(s=>{for(const a of s)if(a.attributeName==="class"){r();return}});return e.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>e.disconnect()}function de(){return u.useSyncExternalStore(yt,bt,St)}function wt(){return de()?ge.dark:ge.light}function vt({traits:r,onChange:e,onSliderChange:s}){const a=u.useCallback((i,n)=>{s==null||s(i,n),e({...r,[i]:n})},[r,e,s]);return t.jsx("div",{className:"space-y-4",children:Ue.map(i=>t.jsx(jt,{name:i,level:r[i]??3,onChange:a},i))})}function jt({name:r,level:e,onChange:s}){const a=Ye[r][e];return t.jsxs("div",{className:"space-y-2",children:[t.jsxs("div",{className:"flex items-center justify-between text-sm",children:[t.jsx("span",{className:"font-medium capitalize",children:r}),t.jsxs("span",{className:"text-muted-foreground",children:[e,"/5 ",a.label]})]}),t.jsx(gt,{value:[e],onValueChange:([i])=>s(r,i),min:1,max:5,step:1,"aria-label":`${r} trait level`})]})}const kt=we("inline-flex shrink-0 items-center gap-1.5 rounded-full border font-medium transition-[color,background-color,border-color,box-shadow]",{variants:{size:{sm:"text-2xs px-2.5 py-1",md:"px-3 py-1 text-xs"},state:{rest:"bg-accent text-muted-foreground hover:text-foreground border-transparent",active:"text-foreground",glowing:"text-foreground"}},defaultVariants:{size:"md",state:"rest"}}),Ct=we("",{variants:{gradient:{true:"bg-clip-text text-transparent",false:""}},defaultVariants:{gradient:!1}});function Rt({emoji:r,name:e,colors:s,size:a="md",state:i="rest",gradientText:n=!1,className:d,style:l,...p}){const c=de(),o=wt(),x=i==="active"||i==="glowing";return t.jsxs("button",{type:"button",className:P(kt({size:a,state:i}),d),style:{...x?{borderColor:c?s.stroke+o.pillBorder:s.stroke+"AA",background:`linear-gradient(135deg, ${s.nebula}${o.pillBgStart}, ${s.wisp}${o.pillBgEnd})`,...i==="glowing"?{boxShadow:`0 0 12px ${s.nebula}${o.pillGlow}`}:{}}:{},...l},...p,children:[t.jsx("span",{children:r}),t.jsx("span",{className:Ct({gradient:n}),style:n?{backgroundImage:`linear-gradient(135deg, ${s.stroke}, ${s.strokeEnd})`,...c?{}:{filter:"brightness(0.65) saturate(1.3)"}}:void 0,children:e})]})}const Et=["Verbosity","Autonomy","Chaos","Creativity","Humor","Spice"],J=["verbosity","autonomy","chaos","creativity","humor","spice"],Z=6,ue=5,be=3,Mt=800,Pt=600,Se={light:{nebulaCenter:.45,nebulaMid:.25,wispStart:.2,fillStart:.25,fillEnd:.15,haloBase:.25,haloAmplitude:.12,breatheMin:.25,breatheMax:.4,guideBase:.1,guideStep:.04,axis:.12,stardustPeak:1,glowBlur:12,vertexBlur:4},dark:{nebulaCenter:.35,nebulaMid:.15,wispStart:.12,fillStart:.35,fillEnd:.25,haloBase:.15,haloAmplitude:.1,breatheMin:.15,breatheMax:.25,guideBase:.06,guideStep:.02,axis:.08,stardustPeak:.8,glowBlur:10,vertexBlur:4}},At=[{r:1.2,dur:"9s",fade:"4.5s",begin:"0s",path:"M0,0 C30,-40 60,0 40,40 C20,60 -20,40 -30,10 C-40,-20 -10,-50 0,0"},{r:.9,dur:"7s",fade:"3.5s",begin:"0s",path:"M0,0 C-20,30 -40,20 -30,-10 C-20,-30 10,-40 20,-20 C30,0 20,30 0,0"},{r:1,dur:"11s",fade:"5s",begin:"0s",path:"M0,0 C40,10 30,50 0,40 C-30,30 -40,-10 -20,-30 C0,-50 30,-20 0,0"},{r:.7,dur:"8s",fade:"4s",begin:"2s",path:"M0,0 C15,-35 45,-15 35,20 C25,45 -15,40 -25,15 C-35,-10 -5,-40 0,0"},{r:1.1,dur:"12s",fade:"6s",begin:"1s",path:"M0,0 C-25,25 -45,5 -30,-20 C-15,-45 20,-35 30,-10 C40,15 15,35 0,0"}];function Q(r,e,s,a){const i=Math.PI*2*r/Z-Math.PI/2,n=e/ue*a;return{x:s+n*Math.cos(i),y:s+n*Math.sin(i)}}function ie(r){return r.map(e=>`${e.x},${e.y}`).join(" ")}function Tt(r,e,s){return ie(Array.from({length:Z},(a,i)=>Q(i,r*ue,e,s)))}function Nt(r){return r<.5?4*r*r*r:1-(-2*r+2)**3/2}function _t({traits:r,colors:e=ve,size:s=180,animated:a=!0,className:i}){const n=u.useId().replace(/:/g,""),d=de(),l=d?Se.dark:Se.light,p=u.useRef(l);p.current=l;const c=d?{strokeStart:e.stroke,strokeEnd:e.strokeEnd,fillStart:e.fill,fillEnd:e.fillEnd,dot:e.dot,glow:e.glow}:{strokeStart:e.fill,strokeEnd:e.fillEnd,fillStart:e.stroke,fillEnd:e.strokeEnd,dot:e.fill,glow:e.stroke},o=s/2,x=s*.32,f=x+16,g=s/200,j=u.useRef(null),v=u.useRef(null),S=u.useRef([]),R=u.useRef([]),C=u.useRef({current:{...r},from:null,target:{...r},morphStart:0,breathe:0}),T=u.useRef(r);u.useEffect(()=>{const b=T.current;if(J.some(w=>b[w]!==r[w])){const w=C.current;if(a){w.from={...w.current},w.target={...r},w.morphStart=performance.now();const $=v.current;if($){const X=performance.now();(function I(){const D=Math.min((performance.now()-X)/Pt,1),E=1-(1-D)*(1-D);$.setAttribute("r",String(x*(.7+.6*E))),$.setAttribute("opacity",String(.4*(1-E))),D<1&&requestAnimationFrame(I)})()}}else Object.assign(w.current,r),Object.assign(w.target,r)}T.current=r},[r,a,x]),u.useEffect(()=>{if(!a)return;let b;const m=C.current;function w(){var D;m.breathe+=.015;const $=1+Math.sin(m.breathe)*.04;if(m.from){const E=Math.min((performance.now()-m.morphStart)/Mt,1),M=Nt(E);for(const y of J)m.current[y]=m.from[y]+(m.target[y]-m.from[y])*M;E>=1&&(m.from=null,Object.assign(m.current,m.target))}const I=J.map(E=>m.current[E]).map((E,M)=>Q(M,E*$,o,x));(D=j.current)==null||D.setAttribute("points",ie(I)),I.forEach((E,M)=>{const y=S.current[M],N=R.current[M];if(y){y.setAttribute("cx",String(E.x)),y.setAttribute("cy",String(E.y)),y.setAttribute("r",String(8+Math.sin(m.breathe+M*1.2)*3));const B=p.current;y.setAttribute("opacity",String(B.haloBase+Math.sin(m.breathe+M)*B.haloAmplitude))}N&&(N.setAttribute("cx",String(E.x)),N.setAttribute("cy",String(E.y)),N.setAttribute("r",String(3.5+Math.sin(m.breathe+M*.8)*.8)))}),b=requestAnimationFrame(w)}return b=requestAnimationFrame(w),()=>cancelAnimationFrame(b)},[a,o,x]);const A=J.map((b,m)=>Q(m,r[b],o,x)),_=ie(A),k={transition:"stop-color 0.6s ease"},O={transition:"fill 0.6s ease"};return t.jsxs("svg",{viewBox:`0 0 ${s} ${s}`,className:P("aspect-square",i),"aria-label":"Personality radar chart",role:"img",children:[t.jsxs("defs",{children:[d?t.jsxs("filter",{id:`ng-${n}`,x:"-80%",y:"-80%",width:"260%",height:"260%",children:[t.jsx("feGaussianBlur",{stdDeviation:l.glowBlur,result:"blur"}),t.jsxs("feMerge",{children:[t.jsx("feMergeNode",{in:"blur"}),t.jsx("feMergeNode",{in:"blur"}),t.jsx("feMergeNode",{in:"SourceGraphic"})]})]}):t.jsx("filter",{id:`ng-${n}`,x:"-50%",y:"-30%",width:"200%",height:"200%",children:t.jsx("feDropShadow",{dx:"0",dy:"2",stdDeviation:"6",floodColor:c.strokeStart,floodOpacity:"0.18"})}),t.jsxs("filter",{id:`vg-${n}`,x:"-100%",y:"-100%",width:"300%",height:"300%",children:[t.jsx("feGaussianBlur",{stdDeviation:l.vertexBlur,result:"blur"}),t.jsxs("feMerge",{children:[t.jsx("feMergeNode",{in:"blur"}),t.jsx("feMergeNode",{in:"SourceGraphic"})]})]}),t.jsxs("radialGradient",{id:`nc-${n}`,cx:"50%",cy:"50%",r:"50%",children:[t.jsx("stop",{offset:"0%",style:{stopColor:e.nebula,stopOpacity:l.nebulaCenter,...k}}),t.jsx("stop",{offset:"50%",style:{stopColor:e.nebula,stopOpacity:l.nebulaMid,...k}}),t.jsx("stop",{offset:"100%",style:{stopColor:"var(--nebula-edge)"},stopOpacity:0})]}),t.jsxs("radialGradient",{id:`nw-${n}`,cx:"35%",cy:"35%",r:"60%",children:[t.jsx("stop",{offset:"0%",style:{stopColor:e.wisp,stopOpacity:l.wispStart,...k}}),t.jsx("stop",{offset:"100%",style:{stopColor:"var(--nebula-edge)"},stopOpacity:0})]}),t.jsxs("linearGradient",{id:`sf-${n}`,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[t.jsx("stop",{offset:"0%",style:{stopColor:c.fillStart,stopOpacity:l.fillStart,...k}}),t.jsx("stop",{offset:"100%",style:{stopColor:c.fillEnd,stopOpacity:l.fillEnd,...k}})]}),t.jsxs("linearGradient",{id:`ss-${n}`,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[t.jsx("stop",{offset:"0%",style:{stopColor:c.strokeStart,...k}}),t.jsx("stop",{offset:"100%",style:{stopColor:c.strokeEnd,...k}})]})]}),t.jsx("circle",{cx:o,cy:o,r:s*.44,fill:`url(#nc-${n})`,children:a&&t.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${o} ${o};360 ${o} ${o}`,dur:"90s",repeatCount:"indefinite"})}),t.jsx("ellipse",{cx:o*.94,cy:o*.97,rx:s*.35,ry:s*.25,fill:`url(#nw-${n})`,children:a&&t.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${o} ${o};-360 ${o} ${o}`,dur:"60s",repeatCount:"indefinite"})}),a&&t.jsxs("circle",{cx:o,cy:o,r:x*.92,fill:"none",style:{stroke:c.strokeStart,transition:"stroke 0.6s ease"},strokeWidth:.3,opacity:l.breatheMin,children:[t.jsx("animate",{attributeName:"r",values:`${x*.85};${x*1.08};${x*.85}`,dur:"4s",repeatCount:"indefinite",calcMode:"spline",keySplines:"0.4 0 0.6 1;0.4 0 0.6 1"}),t.jsx("animate",{attributeName:"opacity",values:`${l.breatheMin};${l.breatheMax};${l.breatheMin}`,dur:"4s",repeatCount:"indefinite",calcMode:"spline",keySplines:"0.4 0 0.6 1;0.4 0 0.6 1"})]}),a&&t.jsx("g",{transform:`translate(${o},${o}) scale(${g})`,children:At.map((b,m)=>t.jsxs("circle",{r:b.r,style:{fill:c.dot,...O},children:[t.jsx("animateMotion",{dur:b.dur,repeatCount:"indefinite",begin:b.begin,path:b.path}),t.jsx("animate",{attributeName:"opacity",values:`0;${l.stardustPeak};0`,dur:b.fade,repeatCount:"indefinite",begin:b.begin})]},`star-${m}`))}),t.jsx("circle",{ref:v,cx:o,cy:o,r:0,fill:e.nebula,opacity:0}),Array.from({length:be},(b,m)=>t.jsx("polygon",{points:Tt((m+1)/be,o,x),fill:"none",stroke:d?"currentColor":c.strokeStart,strokeWidth:.5,opacity:l.guideBase+m*l.guideStep},`ring-${m}`)),Array.from({length:Z},(b,m)=>{const w=Q(m,ue,o,x);return t.jsx("line",{x1:o,y1:o,x2:w.x,y2:w.y,stroke:d?"currentColor":c.strokeStart,strokeWidth:.5,opacity:l.axis},`axis-${m}`)}),t.jsx("polygon",{ref:j,points:_,fill:`url(#sf-${n})`,stroke:`url(#ss-${n})`,strokeWidth:2,strokeLinejoin:"round",filter:`url(#ng-${n})`}),A.map((b,m)=>t.jsx("circle",{ref:w=>{S.current[m]=w},cx:b.x,cy:b.y,r:8,style:{fill:c.glow,...O},opacity:l.haloBase},`halo-${m}`)),A.map((b,m)=>t.jsx("circle",{ref:w=>{R.current[m]=w},cx:b.x,cy:b.y,r:d?4:4.5,style:{fill:c.dot,...O},stroke:d?"none":"white",strokeWidth:d?0:1.5,filter:`url(#vg-${n})`},`dot-${m}`)),Et.map((b,m)=>{const w=Math.PI*2*m/Z-Math.PI/2;return t.jsx("text",{x:o+f*Math.cos(w),y:o+f*Math.sin(w),textAnchor:"middle",dominantBaseline:"middle",fill:"currentColor",opacity:.5,fontSize:8,className:"select-none",children:b},b)})]})}const se={duration:.2,ease:"easeInOut"};function Lt({traits:r,onTraitsChange:e,compact:s=!1,layout:a="inline",sampleLabel:i="How this agent talks",className:n}){const[d,l]=u.useState("presets"),p=We()??!1,c=a==="stacked",o=Xe(r),x=(o==null?void 0:o.colors)??ve,f=c?Qe(r,o==null?void 0:o.id):"",g=u.useCallback(S=>{e(S.traits),l("presets"),K()},[e]),j=u.useCallback(()=>{l("custom"),K()},[]),v=u.useCallback(()=>{l("presets"),K()},[]);return t.jsxs("div",{className:P("@container/picker w-full",n),children:[t.jsxs("div",{className:P("flex flex-col items-center gap-3",!c&&"@[480px]/picker:flex-row @[480px]/picker:items-center @[480px]/picker:gap-6",c&&"gap-4"),children:[t.jsxs("div",{className:P("flex flex-col items-center gap-1",!c&&"@[480px]/picker:w-[200px] @[480px]/picker:shrink-0",c&&"gap-1.5"),children:[t.jsx("div",{"data-testid":"personality-radar",children:t.jsx(_t,{traits:r,colors:x,size:c?240:s?180:200,className:P(c&&"w-full max-w-[240px]",!c&&(s?"w-[90%] max-w-[240px]":"w-full max-w-[200px]"))})}),t.jsxs("div",{className:"text-center",children:[t.jsx("h3",{className:P("bg-clip-text font-bold text-transparent",c?"text-base":"text-sm"),style:{backgroundImage:`linear-gradient(135deg, ${x.stroke}, ${x.strokeEnd})`},children:(o==null?void 0:o.name)??"Custom"}),t.jsx("p",{className:P("text-muted-foreground mt-0.5",c?"text-xs":"text-2xs"),children:(o==null?void 0:o.tagline)??"A custom blend of personality traits."})]})]}),t.jsx("div",{className:P("flex w-full min-w-0 flex-col items-center gap-3",!c&&"@[480px]/picker:items-start"),children:t.jsx(pe,{mode:"wait",initial:!1,children:d==="presets"?t.jsxs(re.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},exit:{opacity:0,y:-6},transition:se,className:P("flex max-w-sm flex-wrap justify-center gap-1.5",!c&&"@[480px]/picker:justify-start"),"data-testid":"preset-pills",children:[qe.map(S=>t.jsx(Rt,{emoji:S.emoji,name:S.name,colors:S.colors,size:s?"sm":"md",state:(o==null?void 0:o.id)===S.id?"glowing":"rest",onClick:()=>g(S)},S.id)),t.jsxs("button",{type:"button",onClick:j,className:P("inline-flex shrink-0 items-center gap-1.5 rounded-full border border-dashed font-medium transition-[color,border-color]","text-muted-foreground hover:text-foreground hover:border-foreground/20 border-border",s?"text-2xs px-2.5 py-1":"px-3 py-1 text-xs"),"data-testid":"custom-toggle",children:[t.jsx(xe,{className:"size-3"}),t.jsx("span",{children:"Custom"})]})]},"presets"):t.jsxs(re.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},exit:{opacity:0,y:-6},transition:se,className:P("flex w-full flex-col items-center gap-3",!c&&"@[480px]/picker:items-start"),children:[t.jsxs("div",{className:"flex gap-1.5","data-testid":"custom-mode-pills",children:[t.jsxs("button",{type:"button",onClick:v,className:P("inline-flex shrink-0 items-center gap-1.5 rounded-full border border-dashed font-medium transition-[color,border-color]","text-muted-foreground hover:text-foreground hover:border-foreground/20 border-border",s?"text-2xs px-2.5 py-1":"px-3 py-1 text-xs"),"data-testid":"presets-toggle",children:[t.jsx("span",{children:"←"}),t.jsx("span",{children:"Presets"})]}),t.jsxs("span",{className:P("bg-accent text-foreground inline-flex shrink-0 items-center gap-1.5 rounded-full border font-medium","border-foreground/15",s?"text-2xs px-2.5 py-1":"px-3 py-1 text-xs"),children:[t.jsx(xe,{className:"size-3"}),t.jsx("span",{children:"Custom"})]})]}),t.jsx("div",{className:P("w-full",s?"max-w-sm":"max-w-md"),onPointerDown:()=>K(),children:t.jsx(vt,{traits:r,onChange:e,onSliderChange:()=>K()})})]},"custom")})})]}),t.jsxs("div",{className:P("w-full max-w-sm",c?"mt-4 flex flex-col items-center":"hidden"),children:[t.jsx("span",{className:"text-muted-foreground text-3xs self-start font-medium tracking-wider uppercase",children:i}),t.jsx("div",{className:"border-primary/40 bg-accent/40 mt-1 w-full rounded-md border-l-2 py-2 pr-3 pl-3",children:c?t.jsx(pe,{mode:"wait",initial:!1,children:t.jsxs(re.p,{"data-testid":"personality-sample",initial:p?!1:{opacity:0,y:4},animate:{opacity:1,y:0},exit:p?void 0:{opacity:0,y:-4},transition:se,className:"text-muted-foreground text-xs leading-relaxed italic",children:["“",f,"”"]},f)}):t.jsx("p",{className:"text-muted-foreground text-xs leading-relaxed italic",children:(o==null?void 0:o.sampleResponse)??"Custom blend. Pick a preset to see a sample reply."})})]})]})}const Dt=400;function Ft(r,e){const s=(r==null?void 0:r.traits)??Je,[a,i]=u.useState(null),n=u.useRef(null),d=u.useRef(null),l=u.useRef({agent:r,update:e});u.useEffect(()=>{l.current={agent:r,update:e}});const p=(r==null?void 0:r.id)??null;u.useEffect(()=>{n.current!==null&&(clearTimeout(n.current),n.current=null),d.current=null,i(null)},[p]);const c=u.useCallback(()=>{n.current!==null&&(clearTimeout(n.current),n.current=null);const x=d.current;if(d.current=null,x===null)return;const{agent:f,update:g}=l.current;f!==null&&g(Ze(f,x))},[]);u.useEffect(()=>()=>c(),[c]);const o=u.useCallback(x=>{i(x),d.current=x,n.current!==null&&clearTimeout(n.current),n.current=setTimeout(c,Dt)},[c]);return{traits:a??s,onTraitsChange:o}}export{Lt as P,Ft as u};
|
package/dist/client/assets/{use-promo-activation-C9FWA7ru.js → use-promo-activation-CxG-kZJQ.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import{O as
|
|
1
|
+
import{O as b,j as t,G as m,B as y,gd as j,ie as v,aQ as A,fC as f,aY as N,b7 as R,cs as T,cB as E,n as k,l as L,ig as M,aW as U,r as d,bd as O,gc as z,ih as P,cZ as _,ii as I,aZ as F,aL as G,dG as q,d0 as B,d1 as H,d2 as W,d3 as Y,d4 as Z,d5 as $,eC as J,fW as K}from"./index-fge85Gub.js";import{R as Q}from"./repeat-HOHWZc6L.js";/**
|
|
2
2
|
* @license lucide-react v1.48.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
5
5
|
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/const w={name:"moon",size:24,node:[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]};w.node;const S=
|
|
6
|
+
*/const w={name:"moon",size:24,node:[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]};w.node;const S=b(w);/**
|
|
7
7
|
* @license lucide-react v1.48.0 - ISC
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the ISC license.
|
|
10
10
|
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/const
|
|
11
|
+
*/const C={name:"network",size:24,node:[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]};C.node;const V=b(C);function X(){return!0}const ee={indigo:{box:"bg-indigo-500/10",icon:"text-indigo-500"},purple:{box:"bg-purple-500/10",icon:"text-purple-500"},emerald:{box:"bg-emerald-500/10",icon:"text-emerald-500"}};function h({icon:e,tint:n,title:s,subtitle:o,highlights:a,primaryAction:r,secondaryAction:c}){const l=ee[n];return t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("div",{className:m("flex size-10 items-center justify-center rounded-lg",l.box),children:t.jsx(e,{className:m("size-5",l.icon),"aria-hidden":!0})}),t.jsxs("div",{children:[t.jsx("h3",{className:"text-sm font-medium",children:s}),t.jsx("p",{className:"text-muted-foreground text-xs",children:o})]})]}),t.jsx("div",{className:"bg-muted/50 space-y-3 rounded-lg p-4",children:a.map(({icon:i,title:u,description:p})=>t.jsxs("div",{className:"flex items-start gap-3",children:[t.jsx(i,{className:"text-muted-foreground mt-0.5 size-4","aria-hidden":!0}),t.jsxs("div",{children:[t.jsx("p",{className:"text-xs font-medium",children:u}),t.jsx("p",{className:"text-muted-foreground text-xs",children:p})]})]},u))}),t.jsxs("div",{className:"flex justify-end gap-2",children:[t.jsx(y,{variant:"ghost",size:"sm",onClick:c.onClick,children:c.label}),t.jsx(y,{size:"sm",onClick:r.onClick,children:r.label})]})]})}function te({onClose:e}){const n=j(),s=()=>{e(),n()};return t.jsx(h,{icon:f,tint:"purple",title:"Get notified where you already are",subtitle:"Slack, Telegram, and more",highlights:[{icon:v,title:"Notifications",description:"Hear when agents finish or need you"},{icon:A,title:"Reply from chat",description:"Answer agents from Telegram or Slack"}],primaryAction:{label:"Connect Telegram & Slack",onClick:s},secondaryAction:{label:"Not now",onClick:e}})}function se({onClose:e}){const{open:n}=N(),s=()=>{e(),n()};return t.jsx(h,{icon:S,tint:"indigo",title:"Agents that work on a schedule",subtitle:"Put any skill on a timer",highlights:[{icon:R,title:"Any schedule",description:"Daily, hourly, or your own timing"},{icon:Q,title:"Come back to results",description:"Agents start the work for you"}],primaryAction:{label:"Create a schedule",onClick:s},secondaryAction:{label:"Not now",onClick:e}})}function ne({onClose:e}){const n=T(),s=()=>{e(),n({...L.team()})};return t.jsx(h,{icon:k,tint:"emerald",title:"Let your agents work together",subtitle:"Agents can message each other",highlights:[{icon:E,title:"Shared work",description:"Agents hand tasks to each other"},{icon:V,title:"Topology view",description:"See which agents talk to each other"}],primaryAction:{label:"Open Team",onClick:s},secondaryAction:{label:"Not now",onClick:e}})}const he=[{id:"remote-access",placements:["dashboard-sidebar"],priority:90,shouldShow:e=>!e.isDesktopApp&&!e.isHub&&!e.remoteAccessConfigured,content:{icon:M,title:"Use DorkOS on the go",shortDescription:"Access your agents from anywhere",ctaLabel:"Learn more"},action:{type:"action",handler:()=>U.getState().setRemoteAccessOpen(!0)}},{id:"relay-adapters",placements:["dashboard-sidebar"],priority:80,shouldShow:e=>e.isRelayEnabled&&!e.hasAdapter("slack")&&!e.hasAdapter("telegram"),content:{icon:f,title:"Connect to Slack & Telegram",shortDescription:"Get notifications where you already are",ctaLabel:"Learn more"},action:{type:"dialog",component:te}},{id:"schedules",placements:["dashboard-sidebar"],priority:70,shouldShow:e=>e.isTasksEnabled&&e.sessionCount>0&&e.taskCount===0,content:{icon:S,title:"Run agents on a schedule",shortDescription:"Come back to finished work",ctaLabel:"Set up",suggestion:{question:"Want agents working while you’re away?",action:"Set up a schedule"}},action:{type:"dialog",component:se}},{id:"agent-chat",placements:[],priority:60,shouldShow:e=>e.isMeshEnabled&&e.agentCount>=2,content:{icon:k,title:"Agents working together",shortDescription:"Let your agents collaborate",ctaLabel:"Learn more",suggestion:{question:"Want two agents to split a job?",action:"Show me"}},action:{type:"dialog",component:ne}}];function pe(e,n,s,o){return e.filter(a=>!s.includes(a.id)).filter(a=>a.shouldShow(n)).sort((a,r)=>r.priority-a.priority).slice(0,o)}function ae(){return X()}const x="dorkos-first-use-date",oe=1e3*60*60*24;function ie(){try{const e=localStorage.getItem(x);if(e){const s=new Date(e);if(!isNaN(s.getTime()))return s}const n=new Date;return localStorage.setItem(x,n.toISOString()),n}catch{return new Date}}function re(){const e=ie();return Math.floor((Date.now()-e.getTime())/oe)}function ce(){const[e]=d.useState(re);return e}function ge(){const e=O(),n=ae(),s=z(),{sessions:o}=P(),{data:a}=_(),r=ce(),{data:c}=I(s),{data:l}=F(e),{data:i}=G(),u=((i==null?void 0:i.tunnel.enabled)??!1)||((i==null?void 0:i.tunnel.tokenConfigured)??!1);return{hasAdapter:d.useCallback(D=>c?c.some(g=>g.config.type===D&&g.status.state==="connected"):!1,[c]),isTasksEnabled:e,isMeshEnabled:n,isRelayEnabled:s,sessionCount:o.length,agentCount:(a==null?void 0:a.agents.length)??0,taskCount:(l==null?void 0:l.length)??0,daysSinceFirstUse:r,isDesktopApp:q(),remoteAccessConfigured:u,isHub:(i==null?void 0:i.serverRole)==="hub"}}function le({promo:e,open:n,onOpenChange:s}){const o=d.useCallback(()=>{s(!1)},[s]);if(e.action.type!=="dialog")return null;const a=e.action.component;return t.jsx(B,{open:n,onOpenChange:s,children:t.jsxs(H,{className:"max-h-[85vh] max-w-lg gap-0 p-0",children:[t.jsx(W,{}),t.jsxs(Y,{className:"p-4 pb-0",children:[t.jsx(Z,{className:"text-sm font-medium",children:e.content.title}),t.jsx($,{className:"sr-only",children:e.content.shortDescription})]}),t.jsx(J,{className:"p-4",children:t.jsx(a,{onClose:o})})]})})}function me(e){const[n,s]=d.useState(!1),{action:o}=e,a=d.useCallback(()=>{switch(o.type){case"dialog":s(!0);return;case"navigate":K(o.to);return;case"action":o.handler();return;default:{const c=o;throw new Error(`Unhandled promo action: ${JSON.stringify(c)}`)}}},[o]),r=o.type==="dialog"?t.jsx(le,{promo:e,open:n,onOpenChange:s}):null;return{activate:a,dialog:r}}export{S as M,he as P,me as a,pe as s,ge as u};
|
package/dist/client/assets/{use-promo-dismissals-BIfafj9f.js → use-promo-dismissals-DeNbRWOh.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{aL as I,a3 as p,r as u,aG as m}from"./index-fge85Gub.js";import{u as D}from"./use-update-config-BH0agtZh.js";const l="dorkos-dismissed-promo-ids";let g=!1,r=[];const a=new Set;function E(s){return a.add(s),()=>{a.delete(s)}}function C(){return r}function P(s){if(!r.includes(s)){r=[...r,s];for(const e of a)e()}}function h(s){if(r.includes(s)){r=r.filter(e=>e!==s);for(const e of a)e()}}function v(){try{const s=localStorage.getItem(l);if(s===null)return[];const e=JSON.parse(s);return Array.isArray(e)?e.filter(o=>typeof o=="string"):[]}catch{return[]}}function A(){const{data:s}=I(),e=D(),o=p(),f=u.useSyncExternalStore(E,C),n=s==null?void 0:s.dismissedPromoIds,c=u.useMemo(()=>[...new Set([...n??[],...f])],[n,f]);u.useEffect(()=>{if(g||s===void 0)return;g=!0;const t=v();if(t.length===0)return;const i=[...new Set([...s.dismissedPromoIds,...t])];if(i.length===s.dismissedPromoIds.length){try{localStorage.removeItem(l)}catch{}return}e.mutate({ui:{promos:{dismissedIds:i}}},{onSuccess:()=>{try{localStorage.removeItem(l)}catch{}}})},[s,e]);const y=u.useCallback(t=>{if(c.includes(t))return;const i=[...n??[],t];P(t);const S=o.getQueryData(m.current());o.setQueryData(m.current(),d=>d===void 0?d:{...d,dismissedPromoIds:i}),e.mutate({ui:{promos:{dismissedIds:i}}},{onError:()=>{h(t),S!==void 0&&o.setQueryData(m.current(),S)}})},[c,n,o,e]);return{dismissedIds:c,dismissPromo:y}}export{A as u};
|
package/dist/client/assets/{use-pulse-freshness-CxzVMmVK.js → use-pulse-freshness-CdRkKThf.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a1 as h,a2 as T,r as E,
|
|
1
|
+
import{a1 as h,a2 as T,r as E,bQ as p,an as a,bR as y,bS as m,bT as A}from"./index-fge85Gub.js";import{A as D}from"./use-full-activity-feed-QZAZ5vBJ.js";const f=15,g=["dashboard-activity"],S=["Today","Yesterday","This week","Earlier"];function w(d){const s=new Date,e=new Date(s);e.setHours(0,0,0,0);const _=new Date(e);_.setDate(_.getDate()-1);const o=new Date(e);o.setDate(o.getDate()-o.getDay());const l=new Map;for(const n of d){const c=new Date(n.occurredAt);let i;c>=e?i="Today":c>=_?i="Yesterday":c>=o?i="This week":i="Earlier";const u=l.get(i)??[];u.push(n),l.set(i,u)}return S.filter(n=>l.has(n)).map(n=>({label:n,items:l.get(n)}))}function k(){const d=h(),{data:s,isLoading:e}=T({queryKey:g,queryFn:()=>d.listActivityEvents({limit:f}),staleTime:3e4,refetchOnWindowFocus:!0});return{groups:E.useMemo(()=>w((s==null?void 0:s.items)??[]),[s==null?void 0:s.items]),hasMore:(s==null?void 0:s.nextCursor)!=null,isLoading:e}}const r=[g,D],t={relay_message:r,relay_flow:r,relay_adapters_changed:r,relay_bindings_changed:r,extension_reloaded:r,task_run_failed:[...r,y],task_run_updated:[y],relay_dead_letter:[m],mesh_liveness_changed:[A],tasks_changed:r},I=1200;function v(d=I){const s=p({coalesceMs:d}),e=_=>s(_.map(o=>({queryKey:o})));a("relay_message",()=>e(t.relay_message)),a("relay_flow",()=>e(t.relay_flow)),a("relay_adapters_changed",()=>e(t.relay_adapters_changed)),a("relay_bindings_changed",()=>e(t.relay_bindings_changed)),a("extension_reloaded",()=>e(t.extension_reloaded)),a("task_run_failed",()=>e(t.task_run_failed)),a("task_run_updated",()=>e(t.task_run_updated)),a("relay_dead_letter",()=>e(t.relay_dead_letter)),a("mesh_liveness_changed",()=>e(t.mesh_liveness_changed)),a("tasks_changed",()=>e(t.tasks_changed))}export{v as a,k as u};
|
package/dist/client/assets/{use-room-follow-claim-B1QPFaUb.js → use-room-follow-claim-_B7HonZx.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{aI as a,r,a1 as p,aJ as E,aK as F}from"./index-fge85Gub.js";function g(e){const n=a(l=>l.forgetRoom);r.useEffect(()=>{if(e!==null)return()=>n(e)},[e,n])}function L(e){const n=p(),l=a(t=>{var o;return e?((o=t.intent[e])==null?void 0:o.leaderId)??null:null}),u=a(t=>t.startFollowing),s=a(t=>t.stopFollowing),c=a(t=>t.sweep),f=r.useCallback(t=>{e&&u(e,t)},[e,u]),w=r.useCallback(()=>{e&&s(e)},[e,s]);return r.useEffect(()=>{const t=setInterval(()=>c(),E);return()=>clearInterval(t)},[c]),r.useEffect(()=>{if(!e||l===null)return;let t=!0;const o=()=>{n.followRoomMember(e,l).catch(()=>{t&&s(e)})};o();const v=setInterval(o,F),i=()=>s(e);return window.addEventListener("blur",i),window.addEventListener("pagehide",i),()=>{t=!1,clearInterval(v),window.removeEventListener("blur",i),window.removeEventListener("pagehide",i),n.unfollowRoomMember(e).catch(()=>{})}},[n,e,l,s]),{following:l,follow:f,stop:w}}export{L as a,g as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a1 as o,a2 as r,
|
|
1
|
+
import{a1 as o,a2 as r,aN as a}from"./index-fge85Gub.js";function t(s,e={}){const n=o();return r({queryKey:a.sessions(s??""),queryFn:()=>n.listRoomSessions(s),enabled:s!==null&&e.enabled===!0})}export{t as u};
|
package/dist/client/assets/{use-roving-tab-list-Nu-MIapD.js → use-roving-tab-list-DSjW4_wm.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as p}from"./index-
|
|
1
|
+
import{r as p}from"./index-fge85Gub.js";function x({orderedIds:n,activeId:l,onActivate:a,onClose:f,getFallbackFocus:s}){const o=p.useRef(new Map),k=l&&n.includes(l)?l:n[0]??null,c=p.useCallback(e=>{var b;e&&((b=o.current.get(e))==null||b.focus())},[]),u=p.useCallback(e=>{a(e,"keyboard"),c(e)},[a,c]);return{getTabProps:p.useCallback(e=>({ref:t=>{t?o.current.set(e,t):o.current.delete(e)},tabIndex:e===k?0:-1,onClick:()=>a(e,"pointer"),onKeyDown:t=>{var i;const r=n.indexOf(e);if(r===-1)return;const D=n.length-1;switch(t.key){case"ArrowRight":t.preventDefault(),u(n[r===D?0:r+1]);break;case"ArrowLeft":t.preventDefault(),u(n[r===0?D:r-1]);break;case"Home":t.preventDefault(),u(n[0]);break;case"End":t.preventDefault(),u(n[D]);break;case"Delete":{if(!f)return;t.preventDefault();const w=n[r+1]??n[r-1]??null;f(e,"keyboard"),w?c(w):(i=s==null?void 0:s())==null||i.focus();break}}},...f?{"aria-keyshortcuts":"Delete"}:{}}),[n,k,a,f,s,u,c])}}export{x as u};
|