dorkos 0.125.1 → 0.125.3
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 +127 -20
- package/dist/browser/native/package-manifest.json +1 -1
- package/dist/browser/source-manifest.json +1 -1
- package/dist/client/assets/{AboutPage-DNNSr3b2.js → AboutPage-DSSx1Gzx.js} +1 -1
- package/dist/client/assets/{ActivityErrorState-CXDzOpkQ.js → ActivityErrorState-C-mLOmJm.js} +1 -1
- package/dist/client/assets/{ActivityPage-BXp-o5SB.js → ActivityPage-DsOjjulF.js} +1 -1
- package/dist/client/assets/{ActivityRow-DDhj9QxV.js → ActivityRow-ylgCMe7Y.js} +1 -1
- package/dist/client/assets/{AdapterIcon-CXXdDfkv.js → AdapterIcon-DT5OdFbe.js} +1 -1
- package/dist/client/assets/{AdapterSetupWizard-BLljbUjj.js → AdapterSetupWizard-C6jxF55P.js} +1 -1
- package/dist/client/assets/{AgentOptionRow-BcNFNeXa.js → AgentOptionRow-CtdBmX9G.js} +1 -1
- package/dist/client/assets/{AgentPicker-D4o66W3h.js → AgentPicker--wr93sVO.js} +1 -1
- package/dist/client/assets/{AgentRequestCard-C6aBR2TD.js → AgentRequestCard-DVoE2cnk.js} +4 -4
- package/dist/client/assets/{AppearancePage-BbXPYAzg.js → AppearancePage-DR_g6BJO.js} +1 -1
- package/dist/client/assets/{ApplyToOverridesDialog-DG2dhgC7.js → ApplyToOverridesDialog-BqaoB6AS.js} +1 -1
- package/dist/client/assets/{AttentionSignalRow-DQpV3YrI.js → AttentionSignalRow-CM0TrrbJ.js} +1 -1
- package/dist/client/assets/{BaseTanStackRouterDevtoolsPanel-B-iktbLX-BZReuFC7.js → BaseTanStackRouterDevtoolsPanel-B-iktbLX-DJ54CELa.js} +1 -1
- package/dist/client/assets/{BindingDialog-dKfunEtT.js → BindingDialog-JAPULq7H.js} +1 -1
- package/dist/client/assets/{BlintzCanvas-D4mpLc0Z.js → BlintzCanvas-B3-FjszN.js} +3 -3
- package/dist/client/assets/{CanvasCsvContent-DgUpsa5s.js → CanvasCsvContent-Cmqry1BS.js} +1 -1
- package/dist/client/assets/{CanvasFileContent-CfHHO1iy.js → CanvasFileContent-BMkxUF1r.js} +2 -2
- package/dist/client/assets/{CanvasModel3dContent-BZBPeTnP.js → CanvasModel3dContent-DBhuNbFD.js} +2 -2
- package/dist/client/assets/ChannelComposer-WR3_Vvta.js +44 -0
- package/dist/client/assets/{ChatAppsOff-B8Afyn-8.js → ChatAppsOff-CY5_0lQH.js} +1 -1
- package/dist/client/assets/{CodeMirrorDiff-046sCUyi.js → CodeMirrorDiff-_EI44zW6.js} +1 -1
- package/dist/client/assets/{CodeMirrorEditor-gqpifORb.js → CodeMirrorEditor-x1lTuDQH.js} +1 -1
- package/dist/client/assets/{CommitmentList-DIO5Qd5w.js → CommitmentList-D-CvccnF.js} +1 -1
- package/dist/client/assets/{CommitmentsPage-DDYSjVdN.js → CommitmentsPage-CLw1FRLv.js} +1 -1
- package/dist/client/assets/{ComputerResourceView-nLfGu6HH.js → ComputerResourceView-QJnXivV4.js} +1 -1
- package/dist/client/assets/{ComputerViewer-Cmw-5KwO.js → ComputerViewer-DbTGz3OL.js} +1 -1
- package/dist/client/assets/{ConnectionAccessLists-DNjf06tk.js → ConnectionAccessLists-CB5UY0f0.js} +1 -1
- package/dist/client/assets/{ConnectionsPage-Cshv0nqL.js → ConnectionsPage-SpEJxCeF.js} +1 -1
- package/dist/client/assets/{ConventionPage-CWpUQZsc.js → ConventionPage-C2NIZjG3.js} +1 -1
- package/dist/client/assets/{ExtensionPageRoute-D4d8hWqD.js → ExtensionPageRoute-Drr5uceG.js} +1 -1
- package/dist/client/assets/{FloatingTanStackRouterDevtools-CqogiFob-D8MtiBS3.js → FloatingTanStackRouterDevtools-CqogiFob-kKteNmsx.js} +1 -1
- package/dist/client/assets/HandlePage-A1OCw0nr.js +1 -0
- package/dist/client/assets/{HeartbeatPage-DcQd3crO.js → HeartbeatPage-BLGTx_57.js} +1 -1
- package/dist/client/assets/{KeyEntry-B1M6Cb_W.js → KeyEntry-DgN8iewR.js} +1 -1
- package/dist/client/assets/{LexicalField-DglxKbVV.js → LexicalField-Bfj72GvX.js} +1 -1
- package/dist/client/assets/{ManagesPage-CHnWwBcn.js → ManagesPage-C3G1-Mep.js} +1 -1
- package/dist/client/assets/{Marketplace-nlAKYRdC.js → Marketplace-Dg0bIo7_.js} +2 -2
- package/dist/client/assets/{MarketplaceSourcesView-Co53MiW9.js → MarketplaceSourcesView-KPw8YYXi.js} +1 -1
- package/dist/client/assets/{McpAppFrame-L2zafUSH.js → McpAppFrame-DjJ4EM39.js} +1 -1
- package/dist/client/assets/{McpSigninBody-DRxPP8Zc.js → McpSigninBody-V6RSsDqe.js} +1 -1
- package/dist/client/assets/{Model3dViewer-Bjxhkabj.js → Model3dViewer-woNPO5OC.js} +1 -1
- package/dist/client/assets/NamePage-Du9m4rGe.js +1 -0
- package/dist/client/assets/{NewDirectMessageMenu-BjCp-d3D.js → NewDirectMessageMenu-CmCOFmXQ.js} +1 -1
- package/dist/client/assets/{NotificationsPage-DwkL4gtE.js → NotificationsPage-kUtiVsFS.js} +1 -1
- package/dist/client/assets/{OpenMeshSwitch-BLE-N5Jb.js → OpenMeshSwitch-r6HJBjR6.js} +1 -1
- package/dist/client/assets/{OperatorIdentityForm-Bl5rL-MI.js → OperatorIdentityForm-B29T-N9x.js} +1 -1
- package/dist/client/assets/{PermissionHistory-T4I64dJP.js → PermissionHistory-CV8cFJr3.js} +1 -1
- package/dist/client/assets/{PermissionsPage-CU2ztV8O.js → PermissionsPage-_PKlbWde.js} +1 -1
- package/dist/client/assets/{PersonalityPopover-A50oTbpT.js → PersonalityPopover-BOXTCA6E.js} +1 -1
- package/dist/client/assets/PhotoPage-Dx-3Lhm5.js +1 -0
- package/dist/client/assets/{PreviewRefusedNotice-B6hvUBqt.js → PreviewRefusedNotice-CdHja8fU.js} +1 -1
- package/dist/client/assets/{ProfileFields-BIDZHo11.js → ProfileFields-C48alR3i.js} +1 -1
- package/dist/client/assets/{ProfilePanelContainer-IHMOmga2.js → ProfilePanelContainer-BpJVbdUL.js} +1 -1
- package/dist/client/assets/{ProfileRolePicker-Bg_Tf8eF.js → ProfileRolePicker-DtuSZNaw.js} +1 -1
- package/dist/client/assets/{PromptSuggestionChips-BItU6w6K.js → PromptSuggestionChips-DT-JdGeO.js} +1 -1
- package/dist/client/assets/{ReportsToPopover-CohliF94.js → ReportsToPopover-BP2nxz2E.js} +1 -1
- package/dist/client/assets/{RoomSurface-CAbD4wVy.js → RoomSurface-C_mTmn8g.js} +1 -1
- package/dist/client/assets/{RoomsPage-D8kdi2T4.js → RoomsPage-gDIy73MQ.js} +1 -1
- package/dist/client/assets/{RunsOnPopover-BCCxm2Mk.js → RunsOnPopover-DhXG88Uj.js} +1 -1
- package/dist/client/assets/{RuntimeConnectFlow-CXAcX8bE.js → RuntimeConnectFlow-BsZsQZS9.js} +1 -1
- package/dist/client/assets/{RuntimeSetupDialog-Cof6tku2.js → RuntimeSetupDialog-BSb5iK2A.js} +1 -1
- package/dist/client/assets/{SeenDevices-DVjFyFfQ.js → SeenDevices-dzzlSeB2.js} +3 -3
- package/dist/client/assets/{SessionsPage-DkThEA16.js → SessionsPage-C6nmCWVM.js} +1 -1
- package/dist/client/assets/{SettingsDialog-DqaBWDI4.js → SettingsDialog-5aEZ-DG6.js} +3 -3
- package/dist/client/assets/{SkillsPage-D8eM04tW.js → SkillsPage-DSIKEsHr.js} +1 -1
- package/dist/client/assets/{TaskDialogWrapper-b6z6wcEV.js → TaskDialogWrapper-Cst7UxoY.js} +1 -1
- package/dist/client/assets/{TasksEmptyState-D4XWi20k.js → TasksEmptyState-DityFi7P.js} +1 -1
- package/dist/client/assets/{TasksPage-TK0pCu-r.js → TasksPage-BZx_Ku0k.js} +1 -1
- package/dist/client/assets/{TeamComputerEntry-BxNRBuRo.js → TeamComputerEntry-uj1GcPP_.js} +1 -1
- package/dist/client/assets/{ToolsPage-DpcUQDHa.js → ToolsPage-Qm6x37SO.js} +1 -1
- package/dist/client/assets/{TopologyGraph-CFdwWKhT.js → TopologyGraph-2C3Ij6tO.js} +2 -2
- package/dist/client/assets/{TourHost-CViLk6JM.js → TourHost-BsV8lcXT.js} +1 -1
- package/dist/client/assets/{UnlinkDialog-CHiFjqy9.js → UnlinkDialog-ClNn0nv6.js} +1 -1
- package/dist/client/assets/{UnreadDivider-CNjRFpAY.js → UnreadDivider-CGKnJcx7.js} +1 -1
- package/dist/client/assets/{WidgetErrorCard-D9LKAbNg.js → WidgetErrorCard-oq5MKUX_.js} +3 -3
- package/dist/client/assets/{WorkView-CDLKDo74.js → WorkView-wVnGvWAz.js} +15 -15
- package/dist/client/assets/{_shell-x_WZg6D7.js → _shell-D4V8GQqV.js} +6 -6
- package/dist/client/assets/{_shell._home-eVhoIWNB.js → _shell._home-DoaHLKk8.js} +1 -1
- package/dist/client/assets/{_shell._home.activity-Btyz_JXC.js → _shell._home.activity-BP1byb8g.js} +1 -1
- package/dist/client/assets/{_shell._home.index-mdspCjhm.js → _shell._home.index-BB5pgiqt.js} +2 -2
- package/dist/client/assets/{_shell._home.tasks-C1zBEy4f.js → _shell._home.tasks-B3w6mqyb.js} +1 -1
- package/dist/client/assets/{_shell._home.workspaces-B7eLLMZo.js → _shell._home.workspaces-BcOiklL5.js} +1 -1
- package/dist/client/assets/_shell.channels-DxSDnd-3.js +10 -0
- package/dist/client/assets/{_shell.connections-FwwnIiVq.js → _shell.connections-YKOm7ap5.js} +1 -1
- package/dist/client/assets/{_shell.feedback-requests-BiagdWVc.js → _shell.feedback-requests-DC2Jw1EF.js} +1 -1
- package/dist/client/assets/_shell.marketplace-BUh4boaf.js +1 -0
- package/dist/client/assets/_shell.marketplace_.sources-CnOFcGv1.js +1 -0
- package/dist/client/assets/_shell.session-BUP7x_Ra.js +1 -0
- package/dist/client/assets/{_shell.team-B3A__-1w.js → _shell.team-C9QJNwaK.js} +3 -3
- package/dist/client/assets/{_shell.threads-C-eFVUo7.js → _shell.threads-gs_o48eZ.js} +1 -1
- package/dist/client/assets/_shell.x._extensionId-B-X7HuaQ.js +1 -0
- package/dist/client/assets/_shell.x._extensionId_._-B-X7HuaQ.js +1 -0
- package/dist/client/assets/{abnfDiagram-WEYOIA3C-RjxMmLSp.js → abnfDiagram-WEYOIA3C-sjxf16g2.js} +1 -1
- package/dist/client/assets/{access-copy-robDo1S-.js → access-copy-_81ChCG3.js} +1 -1
- package/dist/client/assets/{arc-De3porJy.js → arc-B-c5OGeX.js} +1 -1
- package/dist/client/assets/{architectureDiagram-ZHVYKT53-U4UN3Fwb.js → architectureDiagram-ZHVYKT53-CExq4B1X.js} +1 -1
- package/dist/client/assets/{banner-Bb9qmJFV.js → banner-BhzLIs7u.js} +1 -1
- package/dist/client/assets/{blockDiagram-RJAE7QA3-CckMUzCn.js → blockDiagram-RJAE7QA3-C1D5MR7Z.js} +1 -1
- package/dist/client/assets/{c4Diagram-XDPPPE54-4IXkmK3u.js → c4Diagram-XDPPPE54-DMtF_wcg.js} +1 -1
- package/dist/client/assets/{card-CHG8Y8EA.js → card-Dsy8PPN6.js} +1 -1
- package/dist/client/assets/channel-C6IoQ0kc.js +1 -0
- package/dist/client/assets/{chunk-2E7WHVMD-DtPOfWfp.js → chunk-2E7WHVMD-DCmxZwyD.js} +1 -1
- package/dist/client/assets/{chunk-2Q5K7J3B-Dk44yc47.js → chunk-2Q5K7J3B-BXvjhtJ3.js} +1 -1
- package/dist/client/assets/{chunk-4EMNKR2T-K_Oa4h2U.js → chunk-4EMNKR2T-CR6qWjas.js} +1 -1
- package/dist/client/assets/{chunk-55XCU76K-CBCR5VUz.js → chunk-55XCU76K-Bny7RY06.js} +1 -1
- package/dist/client/assets/{chunk-5VM5RSS4-o7pQ4Ip8.js → chunk-5VM5RSS4-B9aD4Uib.js} +1 -1
- package/dist/client/assets/{chunk-JWPE2WC7-DnjGyJd7.js → chunk-JWPE2WC7-D28Xa5gr.js} +1 -1
- package/dist/client/assets/{chunk-VQ5W62QI-C2_U7FnB.js → chunk-VQ5W62QI-CLgnUSgl.js} +1 -1
- package/dist/client/assets/{chunk-XXDRQBXY-BEWhI2hh.js → chunk-XXDRQBXY-vMTRVR5A.js} +1 -1
- package/dist/client/assets/{chunk-ZCHMQSOR-B4HhT1sq.js → chunk-ZCHMQSOR-Ck0VFEtd.js} +2 -2
- package/dist/client/assets/{classDiagram-v2-4MYWR3UA-DhCJ3JPo.js → classDiagram-v2-4MYWR3UA-Dh4gPh4M.js} +1 -1
- package/dist/client/assets/{command-BiVO_CS1.js → command-CxjTPW0z.js} +1 -1
- package/dist/client/assets/{cose-bilkent-JH36ORCC-xZpEDSd4.js → cose-bilkent-JH36ORCC-BA-tF0x7.js} +1 -1
- package/dist/client/assets/{cpu-DDZTaXtb.js → cpu-SRODWAA1.js} +1 -1
- package/dist/client/assets/{cynefin-EF2NZ3EQ-Cgz_Z2on.js → cynefin-EF2NZ3EQ-B_kxrTf4.js} +1 -1
- package/dist/client/assets/{cynefinDiagram-WF24UDRP-BJFrcql_.js → cynefinDiagram-WF24UDRP-Be0brpVq.js} +1 -1
- package/dist/client/assets/{dagre-NK4GIZVX-BYAx5Cie.js → dagre-NK4GIZVX-zI9I0fUC.js} +1 -1
- package/dist/client/assets/{diagram-CBK3MWTC-DZ9R9gqz.js → diagram-CBK3MWTC-jN0pUEKR.js} +1 -1
- package/dist/client/assets/{diagram-I5XIIV2D--bivdwUI.js → diagram-I5XIIV2D-BjRZmmQf.js} +1 -1
- package/dist/client/assets/{diagram-ODIL2UCW-9hvkubLT.js → diagram-ODIL2UCW-BtnkiX3a.js} +1 -1
- package/dist/client/assets/{diagram-PFBEJUXE-hVLmub11.js → diagram-PFBEJUXE-Bteh9wpL.js} +1 -1
- package/dist/client/assets/{diagram-RJA3I4VV-BB5ttZ9z.js → diagram-RJA3I4VV-hRmqKbOC.js} +1 -1
- package/dist/client/assets/{diagram-TYUNFSNR-B_FkQUUF.js → diagram-TYUNFSNR-NKdthGes.js} +1 -1
- package/dist/client/assets/{ebnfDiagram-V4P3TTPT-TS7ZNoLc.js → ebnfDiagram-V4P3TTPT-CpkD13ID.js} +1 -1
- package/dist/client/assets/{elk-QONTBCTQ-BRCKNiM7.js → elk-QONTBCTQ-Dw4bdkn4.js} +1 -1
- package/dist/client/assets/{empty-state-BO-UXPQj.js → empty-state-Xw8KQdod.js} +1 -1
- package/dist/client/assets/{erDiagram-KYQIGQAA-DycIeIib.js → erDiagram-KYQIGQAA-fiThyiH_.js} +1 -1
- package/dist/client/assets/{execution-config-DEYWqx9f.js → execution-config-ryHuiBdx.js} +1 -1
- package/dist/client/assets/{file-DQJ4ncBH.js → file-CbZILJJL.js} +1 -1
- package/dist/client/assets/{file-exclamation-point-3K4for51.js → file-exclamation-point-rCHuN_aY.js} +1 -1
- package/dist/client/assets/{file-text-3tteNtIM.js → file-text-DGtefNvG.js} +1 -1
- package/dist/client/assets/{find-latest-widget-fence-C2e-pGhG.js → find-latest-widget-fence-DJDfJAaN.js} +1 -1
- package/dist/client/assets/{flowDiagram-IUGLLWBU-4-MVKKj-.js → flowDiagram-IUGLLWBU-ORyRd0wW.js} +1 -1
- package/dist/client/assets/{form-DJvcnZrN.js → form-USBlP2n_.js} +1 -1
- package/dist/client/assets/{format-cron-B6RtTy4x.js → format-cron-u8efK62G.js} +1 -1
- package/dist/client/assets/{ganttDiagram-R7GPNTJY-DXZ9M_09.js → ganttDiagram-R7GPNTJY-BC-M9_Wi.js} +1 -1
- package/dist/client/assets/{git-branch-B5MdRp1u.js → git-branch-jQqbJAvp.js} +1 -1
- package/dist/client/assets/{gitGraphDiagram-PDYL7XHY-CXZBvZz1.js → gitGraphDiagram-PDYL7XHY-NIdjLN38.js} +1 -1
- package/dist/client/assets/{graph-Ok4GTm1i.js → graph-CBIOKOiw.js} +1 -1
- package/dist/client/assets/{heart-WdIkTWht.js → heart-CSbB9K4Q.js} +1 -1
- package/dist/client/assets/{highlighted-body-KPVGNVTW-BnvI3qHd.js → highlighted-body-KPVGNVTW-OC8sqXXy.js} +1 -1
- package/dist/client/assets/{image-lightbox-DSFIEDOy.js → image-lightbox-DgWS2xlv.js} +1 -1
- package/dist/client/assets/{image-off-SpOmtTU2.js → image-off-DziiNcIl.js} +1 -1
- package/dist/client/assets/{index-BFyPYiSk.js → index-B-KhOLHd.js} +1 -1
- package/dist/client/assets/{index-D8KycDT8.js → index-B5eM1_q1.js} +1 -1
- package/dist/client/assets/{index-BPEGncOX.js → index-B9utW3HE.js} +1 -1
- package/dist/client/assets/{index-CS1S0apl.js → index-BAaqQW-m.js} +1 -1
- package/dist/client/assets/index-BGGnQdij.js +17 -0
- package/dist/client/assets/{index-Cjqqoh6c.js → index-BN02EVKP.js} +1 -1
- package/dist/client/assets/{index-BAP0wpId.js → index-BOaou3k5.js} +1 -1
- package/dist/client/assets/{index-CA3lyhQr.js → index-BU_bmsP2.js} +1 -1
- package/dist/client/assets/{index-BAAZ_Afo.js → index-BYxDsLTQ.js} +1 -1
- package/dist/client/assets/index-BpsATTKn.js +1 -0
- package/dist/client/assets/{index-BUlGEVe6.js → index-Bz9CgPjs.js} +1 -1
- package/dist/client/assets/{index-CebrNsDE.js → index-C49AWTah.js} +1 -1
- package/dist/client/assets/{index-CO8DgOi_.js → index-C5gtuueN.js} +1 -1
- package/dist/client/assets/{index-0TLaDwd7.js → index-C9UgTEuh.js} +1 -1
- package/dist/client/assets/{index-BBfQSvDI.js → index-CCohVfmo.js} +1 -1
- package/dist/client/assets/{index-DZ9FOOp-.js → index-CDslENFz.js} +1 -1
- package/dist/client/assets/{index-qqbs2gqN.js → index-CP7hD01s.js} +1 -1
- package/dist/client/assets/{index-CzUbn74z.js → index-CRPh-508.js} +1 -1
- package/dist/client/assets/{index-C1t_dxLe.js → index-CRTzTiNF.js} +1 -1
- package/dist/client/assets/index-CUKvspHB.js +1 -0
- package/dist/client/assets/{index-B5tjSdoa.js → index-CWhDGAYM.js} +1 -1
- package/dist/client/assets/{index-CejscP7D.js → index-CeJVF9AD.js} +1 -1
- package/dist/client/assets/{index-DaAe-kkp.js → index-CiAb-mD4.js} +1 -1
- package/dist/client/assets/{index-Dy7lfs5H.js → index-CuT_aCM-.js} +2 -2
- package/dist/client/assets/{index-DncDh-DQ.js → index-D9Ej8fsx.js} +1 -1
- package/dist/client/assets/{index-DG-QaLdS.js → index-DJlq_kd_.js} +1 -1
- package/dist/client/assets/{index-DlJvYygP.js → index-DJyLZL6w.js} +1 -1
- package/dist/client/assets/index-DSYz85aL.js +1053 -0
- package/dist/client/assets/{index-CGvU4pGg.js → index-DYF1ER90.js} +3 -3
- package/dist/client/assets/{index-Uuq_anEw.js → index-DeDh_2c1.js} +1 -1
- package/dist/client/assets/{index-Beqi9bTa.js → index-DfYJ-zxk.js} +1 -1
- package/dist/client/assets/{index-PXtYLHfj.js → index-DgnJZ7RZ.js} +1 -1
- package/dist/client/assets/{index-BwZrircO.js → index-Dk33a8Wz.js} +1 -1
- package/dist/client/assets/{index-Z7RWysQU.js → index-DkcRrH0O.js} +1 -1
- package/dist/client/assets/{index-8N601Ptt.js → index-DnyoNFRt.js} +1 -1
- package/dist/client/assets/index-DtlBeLQB.css +1 -0
- package/dist/client/assets/{index-CjNQaSIo.js → index-LFeqJL-v.js} +1 -1
- package/dist/client/assets/{index-CXyeZWZE.js → index-RXFhiamo.js} +1 -1
- package/dist/client/assets/{index-BHnCpgC9.js → index-Yr72qWri.js} +1 -1
- package/dist/client/assets/{index-elechdSH.js → index-YtJ82pkp.js} +1 -1
- package/dist/client/assets/{index-F1p3rnVP.js → index-fAHI5hei.js} +1 -1
- package/dist/client/assets/{index-DYc5kmwr.js → index-j5szQcqb.js} +1 -1
- package/dist/client/assets/{index-D6y63gKa.js → index-jJbbnV9q.js} +3 -3
- package/dist/client/assets/{index-VsLUphXS.js → index-n6f9pLtt.js} +1 -1
- package/dist/client/assets/{index-mYbSzZYJ.js → index-w4wyJU8q.js} +1 -1
- package/dist/client/assets/{index.esm-Cl_dMJjM.js → index.esm-Dyd3JXuK.js} +1 -1
- package/dist/client/assets/{infoDiagram-MVDRKAX5-BLyKorfr.js → infoDiagram-MVDRKAX5-CPcm-36U.js} +1 -1
- package/dist/client/assets/{inline-code-hmEz0OM4.js → inline-code-BjkmgK0M.js} +1 -1
- package/dist/client/assets/{ishikawaDiagram-HPEHV2GE-BrnGHajs.js → ishikawaDiagram-HPEHV2GE-B8eVNEDQ.js} +1 -1
- package/dist/client/assets/{journeyDiagram-BOSHW7O7-BQft6X3_.js → journeyDiagram-BOSHW7O7-CGkIGaMV.js} +1 -1
- package/dist/client/assets/{kanban-definition-FNSA4HC5-l4Lwd6a7.js → kanban-definition-FNSA4HC5-BTDbT6UJ.js} +1 -1
- package/dist/client/assets/{layers-DHQ_aTAp.js → layers-DyShcAgn.js} +1 -1
- package/dist/client/assets/{lightbulb-qcE7kdo5.js → lightbulb-QljDqLq7.js} +1 -1
- package/dist/client/assets/{link-2-DBDnK6MQ.js → link-2-7SoeCkEs.js} +1 -1
- package/dist/client/assets/{list-runtime-types-CaJn2_14.js → list-runtime-types-DvfLx6v2.js} +1 -1
- package/dist/client/assets/{markdown-content-NzXgwE2G.js → markdown-content-D7t62wwm.js} +1 -1
- package/dist/client/assets/{mention-pill-CumFsu3I.js → mention-pill-DNQ2ICCW.js} +1 -1
- package/dist/client/assets/{mermaid.core-DP7EozpQ.js → mermaid.core-NAyHAvFm.js} +4 -4
- package/dist/client/assets/{message-square-off-Zgzm0pcy.js → message-square-off-D6K1M95g.js} +1 -1
- package/dist/client/assets/{mindmap-definition-6OY57UG3-DXfFlXJZ.js → mindmap-definition-6OY57UG3-26dEepZx.js} +1 -1
- package/dist/client/assets/{more-details-XSn-_PbH.js → more-details-BJ_2FYn8.js} +1 -1
- package/dist/client/assets/{owner-notice-C0ArQJdp.js → owner-notice-CIfb2Yr7.js} +1 -1
- package/dist/client/assets/{package-DAjaMh-O.js → package-CeRLwc1u.js} +1 -1
- package/dist/client/assets/{page-container-CGXX9atD.js → page-container-D2J6eon9.js} +1 -1
- package/dist/client/assets/{pane-resize-handle-DAB3TvrY.js → pane-resize-handle-CXxva43c.js} +1 -1
- package/dist/client/assets/{paperclip-C6yKmauj.js → paperclip-DFuuQSWM.js} +1 -1
- package/dist/client/assets/{path-input-mDIpl2-x.js → path-input-DhGxbEsh.js} +1 -1
- package/dist/client/assets/{pegDiagram-ECIUJNBX-PjvGQ3d5.js → pegDiagram-ECIUJNBX-BJu6g9eg.js} +1 -1
- package/dist/client/assets/{pieDiagram-GNMPY74T-BRtspcrq.js → pieDiagram-GNMPY74T-CMf8TQF7.js} +1 -1
- package/dist/client/assets/{plug-BEjxxorV.js → plug-Bqwk5g66.js} +1 -1
- package/dist/client/assets/{primer-trigger-BiiSNY7s.js → primer-trigger-NAz78FSN.js} +1 -1
- package/dist/client/assets/{profile-errors-XchEnatB.js → profile-errors--0_JG2R0.js} +1 -1
- package/dist/client/assets/{progress-BF25Vgvc.js → progress-cQRXQehb.js} +1 -1
- package/dist/client/assets/{quadrantDiagram-D57K4MC3--heUvlvX.js → quadrantDiagram-D57K4MC3-Bb92PcA9.js} +1 -1
- package/dist/client/assets/{query-error-state-C2EyJ_cl.js → query-error-state-C2QLFCgp.js} +1 -1
- package/dist/client/assets/{radio-BTlBepzs.js → radio-CBD2fSSB.js} +1 -1
- package/dist/client/assets/{railroadDiagram-Y72NRBL7-DI8BFDIm.js → railroadDiagram-Y72NRBL7-YN2siyto.js} +1 -1
- package/dist/client/assets/registry-CsiY3fnM.js +1 -0
- package/dist/client/assets/{relay-trace-schemas-V7JmDMFe.js → relay-trace-schemas-yWn__06J.js} +1 -1
- package/dist/client/assets/{repeat-Dl9Z6gcw.js → repeat-CtIEyxm4.js} +1 -1
- package/dist/client/assets/{requirementDiagram-EQYSW5RA-BocwQwBX.js → requirementDiagram-EQYSW5RA-DJBQviv-.js} +1 -1
- package/dist/client/assets/{room-files-source-4I4JJamw.js → room-files-source-nnbGMKus.js} +1 -1
- package/dist/client/assets/{rotate-ccw-clock-Cvx7qMiL.js → rotate-ccw-clock-C2jXtg-P.js} +1 -1
- package/dist/client/assets/{rotate-cw-BS2tU5V-.js → rotate-cw-34X3Kx8Z.js} +1 -1
- package/dist/client/assets/{sankeyDiagram-SY24JHO5-ezcikI89.js → sankeyDiagram-SY24JHO5-DH2qnwVI.js} +1 -1
- package/dist/client/assets/{scroll-area-CkX9hs5p.js → scroll-area-DYTbXWMY.js} +1 -1
- package/dist/client/assets/{search-x-BqiSsIfJ.js → search-x-DeFOvp_5.js} +1 -1
- package/dist/client/assets/{sequenceDiagram-BLEHNHQU-CoGhkN3M.js → sequenceDiagram-BLEHNHQU-CkHcuOw2.js} +1 -1
- package/dist/client/assets/{shield-x-DxL97yUb.js → shield-x-bloGLifl.js} +1 -1
- package/dist/client/assets/{signed-in-BPaLzWUS.js → signed-in-DD2qV0PJ.js} +1 -1
- package/dist/client/assets/{sizeCapture-INFHLROL-CqWfeZMY.js → sizeCapture-INFHLROL-BXK-Cxjs.js} +1 -1
- package/dist/client/assets/{soul-file-BgdRcA9b.js → soul-file-DFPctfHR.js} +1 -1
- package/dist/client/assets/{stateDiagram-v2-A6IESKWZ-FWPmI7hi.js → stateDiagram-v2-A6IESKWZ-DP_cqXJO.js} +1 -1
- package/dist/client/assets/{swimlanes-B3ENRKFQ-BmnK0GaI.js → swimlanes-B3ENRKFQ-BZxkK7Fr.js} +1 -1
- package/dist/client/assets/swimlanesDiagram-AYQRV4AK-DXRZtHKX.js +8 -0
- package/dist/client/assets/{table-C5zpnw52.js → table-B8zvHC0J.js} +1 -1
- package/dist/client/assets/{timeline-definition-JXYKGLGB-BJRYVT6z.js → timeline-definition-JXYKGLGB-BPZ64ADa.js} +1 -1
- package/dist/client/assets/{trust-posture-DxR7JKit.js → trust-posture-C9r0jGhc.js} +1 -1
- package/dist/client/assets/{unplug-Cbp9pPvY.js → unplug-DYZEcvkR.js} +1 -1
- package/dist/client/assets/{unverified-catalog-notice-v-qMrtTV.js → unverified-catalog-notice-DAhwNpy_.js} +1 -1
- package/dist/client/assets/{use-adapter-catalog-B3wTq44G.js → use-adapter-catalog-DrDMqxhZ.js} +1 -1
- package/dist/client/assets/{use-bindings-BAKvriCK.js → use-bindings-Ci7hpEO4.js} +1 -1
- package/dist/client/assets/{use-composer-prefs-BLOdXw95.js → use-composer-prefs-FpUdi_wE.js} +1 -1
- package/dist/client/assets/{use-connector-management-CApx-e1Z.js → use-connector-management-CinfkPZI.js} +1 -1
- package/dist/client/assets/{use-deep-link-scroll-DjC3PUqZ.js → use-deep-link-scroll-DZnA4iYZ.js} +1 -1
- package/dist/client/assets/{use-delete-binding-DIu3LTuB.js → use-delete-binding-DDtaCc3v.js} +1 -1
- package/dist/client/assets/{use-dev-links-D5AXy-P_.js → use-dev-links-CtHwhTBj.js} +1 -1
- package/dist/client/assets/{use-direct-message-panel-CzUy0Vi1.js → use-direct-message-panel-Da9rkfA3.js} +1 -1
- package/dist/client/assets/{use-external-adapter-catalog-CzMLWn_7.js → use-external-adapter-catalog-CikM-LiV.js} +1 -1
- package/dist/client/assets/{use-full-activity-feed-Ce5XvGGR.js → use-full-activity-feed-B6TQc-xB.js} +1 -1
- package/dist/client/assets/use-is-below-desktop-DJQVU5CF.js +1 -0
- package/dist/client/assets/{use-local-browser-Bw7S_z6h.js → use-local-browser-ABoWOGv1.js} +1 -1
- package/dist/client/assets/{use-mesh-topology-42Fa1F-V.js → use-mesh-topology-C5njB0KY.js} +1 -1
- package/dist/client/assets/{use-mounted-ref-NbCy8N-y.js → use-mounted-ref-Bp9Wp7zY.js} +1 -1
- package/dist/client/assets/{use-notification-prefs-DAokZCgt.js → use-notification-prefs-DXww4pVV.js} +1 -1
- package/dist/client/assets/{use-panel-tab-placements-Dbjj1FO5.js → use-panel-tab-placements-DLQeHI7w.js} +1 -1
- package/dist/client/assets/use-pending-read-CgR0BnSW.js +1 -0
- package/dist/client/assets/{use-personality-commit-mY_GJ7u5.js → use-personality-commit-DYQ3KVxd.js} +1 -1
- package/dist/client/assets/{use-promo-activation-CzAU3S9F.js → use-promo-activation-nURLgFxH.js} +1 -1
- package/dist/client/assets/{use-promo-dismissals-gDFH0Uhg.js → use-promo-dismissals-BQkeHMCS.js} +1 -1
- package/dist/client/assets/{use-pulse-freshness-C6m4sn2E.js → use-pulse-freshness-B8VeNnHj.js} +1 -1
- package/dist/client/assets/{use-relay-config-COZDw_jc.js → use-relay-config-D0BknsXK.js} +1 -1
- package/dist/client/assets/{use-room-follow-claim-CTPdEUnW.js → use-room-follow-claim-BruRRf3z.js} +1 -1
- package/dist/client/assets/{use-room-sessions-DiysSClf.js → use-room-sessions-DGcrmZvE.js} +1 -1
- package/dist/client/assets/{use-roving-tab-list-PltEsGcU.js → use-roving-tab-list-YQ4MgIBO.js} +1 -1
- package/dist/client/assets/{use-session-canvas-pL8waI_Q.js → use-session-canvas-BaGypLR6.js} +3 -3
- package/dist/client/assets/{use-status-budget-D-MyG_Pd.js → use-status-budget-Q1ltHI80.js} +4 -4
- package/dist/client/assets/{use-unclaimed-chats-BrLVSVmS.js → use-unclaimed-chats-Bext8Aim.js} +1 -1
- package/dist/client/assets/use-update-config-BJEw2LjV.js +1 -0
- package/dist/client/assets/{useMutationState-BwG8hXiA.js → useMutationState-C3WVn0hu.js} +1 -1
- package/dist/client/assets/{usecaseDiagram-WPOLBNNX-57NgEVRV.js → usecaseDiagram-WPOLBNNX-Dg4P8nSr.js} +1 -1
- package/dist/client/assets/{vennDiagram-Q3Y3IDCW-CRKzxbya.js → vennDiagram-Q3Y3IDCW-B8Txoqsz.js} +1 -1
- package/dist/client/assets/{wardleyDiagram-IVAIDKWA-wRMWM1mn.js → wardleyDiagram-IVAIDKWA-lgQBspKc.js} +1 -1
- package/dist/client/assets/{xychartDiagram-4URNHDU4-Bm6K2W58.js → xychartDiagram-4URNHDU4-Ct9-Lgo9.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/extension-child.cjs +1701 -435
- package/dist/server/index.js +23320 -21771
- package/dist/server/index.js.map +2 -2
- package/package.json +6 -6
- package/dist/client/assets/ChannelComposer-Fmb-x_zK.js +0 -44
- package/dist/client/assets/HandlePage-BFp054RW.js +0 -1
- package/dist/client/assets/NamePage-CaA8-GZa.js +0 -1
- package/dist/client/assets/PhotoPage-B-aM0VI7.js +0 -1
- package/dist/client/assets/_shell.channels-KC-oi383.js +0 -10
- package/dist/client/assets/_shell.marketplace-D5vPAK8b.js +0 -1
- package/dist/client/assets/_shell.marketplace_.sources-DKXolkMK.js +0 -1
- package/dist/client/assets/_shell.session-CRLQUxCR.js +0 -1
- package/dist/client/assets/_shell.x._extensionId-Cy2JYMPv.js +0 -1
- package/dist/client/assets/_shell.x._extensionId_._-Cy2JYMPv.js +0 -1
- package/dist/client/assets/channel-DT-ECQUE.js +0 -1
- package/dist/client/assets/index-5kYaIjI6.js +0 -1
- package/dist/client/assets/index-BDJuvXMG.js +0 -1053
- package/dist/client/assets/index-C_mZH9d1.js +0 -17
- package/dist/client/assets/index-D2ZFfqZZ.css +0 -1
- package/dist/client/assets/index-DN4ppujx.js +0 -1
- package/dist/client/assets/registry-ZygbjV-M.js +0 -1
- package/dist/client/assets/swimlanesDiagram-AYQRV4AK-CPB9ed5R.js +0 -8
- package/dist/client/assets/use-is-below-desktop-OolRlRyZ.js +0 -1
- package/dist/client/assets/use-is-hub-CCn7X2nA.js +0 -1
- package/dist/client/assets/use-pending-read-BBA4gaxj.js +0 -1
- package/dist/client/assets/use-update-config-Cjq60G6n.js +0 -1
package/dist/bin/cli.js
CHANGED
|
@@ -26503,6 +26503,10 @@ var init_env = __esm({
|
|
|
26503
26503
|
// `@dorkos/shared/telemetry-consent` so the server and CLI agree exactly.
|
|
26504
26504
|
DO_NOT_TRACK: external_exports.string().optional(),
|
|
26505
26505
|
DORKOS_TELEMETRY_DISABLED: external_exports.string().optional(),
|
|
26506
|
+
// Keeps the server off the npm registry: no "update available" check
|
|
26507
|
+
// (DOR-3226). '1'/'true' turns it off. The contract harness sets it so no
|
|
26508
|
+
// test server reaches the network.
|
|
26509
|
+
DORKOS_UPDATE_CHECK_DISABLED: external_exports.string().optional(),
|
|
26506
26510
|
// Telemetry debug mode (DOR-312) — when '1'/'true', the heartbeat, install,
|
|
26507
26511
|
// usage, and error-report senders print the exact JSON payload to stderr
|
|
26508
26512
|
// instead of sending it.
|
|
@@ -26823,7 +26827,7 @@ import path2 from "path";
|
|
|
26823
26827
|
import { fileURLToPath } from "url";
|
|
26824
26828
|
function resolveVersion() {
|
|
26825
26829
|
if (env2.DORKOS_VERSION_OVERRIDE) return env2.DORKOS_VERSION_OVERRIDE;
|
|
26826
|
-
if (true) return "0.125.
|
|
26830
|
+
if (true) return "0.125.3";
|
|
26827
26831
|
const pkgPath = path2.join(path2.dirname(fileURLToPath(import.meta.url)), "../../package.json");
|
|
26828
26832
|
return JSON.parse(readFileSync(pkgPath, "utf-8")).version;
|
|
26829
26833
|
}
|
|
@@ -43899,7 +43903,11 @@ var init_env2 = __esm({
|
|
|
43899
43903
|
GH_CONFIG_DIR: external_exports.string().optional(),
|
|
43900
43904
|
LOCALAPPDATA: external_exports.string().optional(),
|
|
43901
43905
|
PROGRAMFILES: external_exports.string().optional(),
|
|
43902
|
-
"PROGRAMFILES(X86)": external_exports.string().optional()
|
|
43906
|
+
"PROGRAMFILES(X86)": external_exports.string().optional(),
|
|
43907
|
+
// The Cloud address the server is pointed at, so `dorkos browser` keeps the
|
|
43908
|
+
// same Cloud origin out of saved sign-ins (lib/agent-browser/storage-state.ts).
|
|
43909
|
+
DORKOS_CLOUD_URL: external_exports.string().optional(),
|
|
43910
|
+
DORKOS_CLOUD_API_URL: external_exports.string().optional()
|
|
43903
43911
|
});
|
|
43904
43912
|
env4 = cliEnvSchema.parse(process.env);
|
|
43905
43913
|
}
|
|
@@ -54305,7 +54313,7 @@ function isSafeSigninUrl(value) {
|
|
|
54305
54313
|
if (url2.protocol !== "http:") return false;
|
|
54306
54314
|
return url2.hostname === "localhost" || url2.hostname === "127.0.0.1" || url2.hostname === "[::1]";
|
|
54307
54315
|
}
|
|
54308
|
-
var PermissionModeSchema, PermissionModeIdSchema, PermissionStopSchema2, SessionTaskStatusSchema, StreamEventTypeSchema, QuestionOptionSchema, QuestionItemSchema, EffortLevelSchema, SessionOriginSchema, SessionLifecycleSchema, LimitPlanSchema, LimitStateSchema, SessionLimitSchema, ContinueAccountOptionSchema, ContinueOptionsResponseSchema, ContinueSessionRequestSchema, ContinueSessionResponseSchema, WaitForResetRequestSchema, LimitPlanResponseSchema, TrackerItemRefSchema, SessionStartedBySchema, SessionSchema, SessionUpdateResponseSchema, SessionSettingsSchema, StoredSessionSettingsResponseSchema, UpdateSessionRequestSchema, ForkSessionRequestSchema, ReloadPluginsResultSchema, SEED_CONTEXT_MAX_LENGTH, MessageDispositionSchema, DispositionDowngradeReasonSchema, MessageDeliveryOutcomeSchema, InterruptOutcomeSchema, InterruptReasonSchema, InterruptReceiptSchema, QueuedWaitingOnSchema, QueuedMessageSchema, SendMessageRequestSchema, SendMessageResponseSchema, SessionTriggerResponseSchema, SessionQueueResponseSchema, QueueMoveTargetSchema, UpdateQueuedMessageRequestSchema, UpdateQueuedMessageResponseSchema, DENY_REASON_MAX_LENGTH, ApprovalRequestSchema, BatchApprovalRequestSchema, SubmitAnswersRequestSchema, UI_ACTION_ID_MAX_LENGTH, UI_ACTION_TITLE_MAX_LENGTH, UI_ACTION_PAYLOAD_MAX_LENGTH, UiActionRequestSchema, McpAppPermissionSchema, McpAppResourceRequestSchema, McpAppResourceResponseSchema, ElicitationModeSchema, ElicitationActionSchema, SubmitElicitationRequestSchema, ListSessionsQuerySchema, SessionListWarningSchema, SessionListResponseSchema, RecentSessionsQuerySchema, RecentSessionsResponseSchema, SessionDailyCountsQuerySchema, SessionDailyCountsResponseSchema, CommandsQuerySchema, TextDeltaSchema, ThinkingDeltaSchema, ToolCallStatusSchema, McpAppRefSchema, ToolCallEventSchema, ToolProgressEventSchema, AlwaysAllowScopeSchema, ApprovalEventSchema, QuestionPromptEventSchema, PendingInteractionDTOSchema, ErrorCategorySchema, ErrorEventSchema, ApiRetryEventSchema, DoneEventSchema, TerminalReasonSchema, UsageStateSchema, UsageStatusSchema, SessionStatusEventSchema, ContextUsageCategorySchema, ContextUsageSchema, TaskItemSchema, TaskUpdateEventSchema, RelayReceiptEventSchema, MessageDeliveredEventSchema, RelayMessageEventSchema, BackgroundTaskTypeSchema, BackgroundTaskStatusSchema, BackgroundTaskStartedEventSchema, BackgroundTaskProgressEventSchema, BackgroundTaskDoneEventSchema, SubagentTextDeltaEventSchema, SystemStatusEventSchema, OperationKindSchema, OperationStateSchema, OperationProgressEventShapeSchema, OperationProgressEventSchema, MemoryEntrySchema, MemoryRecallEventSchema, agentCompactionShape, CompactBoundaryEventSchema, sessionImageShape, SessionImageEventSchema, deniedAgentShape, PermissionDeniedEventSchema, ModelSubstitutedEventSchema, PromptSuggestionEventSchema, HookStartedEventSchema, HookProgressEventSchema, HookResponseEventSchema, SdkSessionStateSchema, SessionStateChangedEventSchema, ElicitationPromptEventSchema, ElicitationCompleteEventSchema, InteractionCancelledEventSchema, CapabilityApprovalRequiredEventSchema, CapabilityApprovalResolvedEventSchema, SigninUrlSchema, MCP_SIGNIN_OUTCOMES, McpSigninOutcomeSchema, McpSigninRequiredEventSchema, McpSigninResolvedEventSchema, StreamEventSchema, TextPartSchema, HookStatusSchema, HookPartSchema, ToolApprovalOutcomeSchema, QuestionOutcomeSchema, ToolCallPartSchema, BackgroundTaskPartSchema, ThinkingPartSchema, ErrorPartSchema, ElicitationPartSchema, CapabilityApprovalPartSchema, McpSigninPartSchema, MemoryRecallPartSchema, PermissionDeniedPartSchema, ModelSubstitutedPartSchema, CompactBoundaryPartSchema, ImagePartSchema, MessagePartSchema, MessageTypeSchema, HistoryToolCallSchema, CompactMetadataSchema, HistoryMessageSchema, HistoryReadSchema, CommandEntrySchema, CommandRegistrySchema, FileListQuerySchema, RawFileQuerySchema, FileListResponseSchema, FileEntrySchema, FileTreeQuerySchema, FileTreeResponseSchema, FileContentQuerySchema, FileContentResponseSchema, CreateEntryRequestSchema, CreateEntryResponseSchema, DeleteEntryQuerySchema, RenameEntryRequestSchema, CopyEntryRequestSchema, RevealEntryRequestSchema, DiffBaselineOriginSchema, DiffBaselineQuerySchema, DiffBaselineResponseSchema, AdvanceDiffBaselineRequestSchema, DiffPendingQuerySchema, DiffPendingResponseSchema, DiffBaselineRawQuerySchema, RevertDiffBaselineRequestSchema, FileMutationResponseSchema, WorkbenchSignRequestSchema, WorkbenchSignResponseSchema, WorkbenchProbeRequestSchema, WorkbenchProbeResponseSchema, FRAME_SCRIPT_HTML_MAX_BYTES, FrameBridgeRefusalSchema, WorkbenchBridgeStatusRequestSchema, WorkbenchBridgeStatusResponseSchema, BrowseDirectoryQuerySchema, DirectoryEntrySchema, BrowseDirectoryResponseSchema, TunnelStatusSchema, LanAccessStatusSchema, RemoteAccessStateSchema, RemoteAccessAvailabilitySchema, RemoteAccessEnrolmentSchema, RemoteAccessReportSchema, HealthResponseSchema, ExecutionDefaultsSchema, ExperimentStateSchema, ServerConfigSchema2, ModelTierSchema, ModelOptionSchema, SubagentInfoSchema, GitStatusResponseSchema, GitStatusErrorSchema, ErrorResponseSchema, SessionLockedErrorSchema, TaskStatusSchema, SettableTaskStatusSchema, TaskNameSchema, TaskRunStatusSchema, TaskRunTriggerSchema, ScheduleOriginMarksSchema, TaskSchema, TaskRunSchema, CancelTaskRunResponseSchema, TaskTemplateSchema, TASK_DURATION_PATTERN, TASK_DURATION_MAX, TASK_DESCRIPTION_MAX, CreateTaskRequestSchema, SIDEBAR_TAB_ID_PATTERN, ShapeLiveLayoutCaptureSchema, ForkShapeRequestSchema, UpdateTaskRequestSchema, ListTaskRunsQuerySchema, ConfigPatchRequestSchema, ConfigPatchResponseSchema, UploadResultSchema, UploadResponseSchema, UploadProgressSchema, CanvasMediaSrcSchema, UiCanvasContentSchema, UiPanelIdSchema, UiToastLevelSchema, CELEBRATION_KINDS, CELEBRATION_KIND_SYNONYMS, CelebrationKindSchema, UiCommandTargetSchema, UiCommandSchema, UiCommandEventSchema, UiStateSchema, UiStateReportDocumentSchema, UiStateReportSchema, DevtoolsConsoleLevelSchema, DEVTOOLS_ARGS_MAX_CHARS, DevtoolsConsoleEntrySchema, DevtoolsNetworkEntrySchema, DEVTOOLS_CONSOLE_BATCH_MAX, DEVTOOLS_NETWORK_BATCH_MAX, DEVTOOLS_SCREENSHOT_MAX_CHARS, DevtoolsScreenshotResultSchema, DevtoolsIngestSchema, BrowserTargetSchema, BrowserActCommandSchema, BrowserPageSummarySchema, DEVTOOLS_OUTLINE_MAX_CHARS, DevtoolsActionResultSchema, DevtoolsRecordingUploadSchema, KeepAwakeUnsupportedReasonSchema, KeepAwakeStatusSchema;
|
|
54316
|
+
var PermissionModeSchema, PermissionModeIdSchema, PermissionStopSchema2, SessionTaskStatusSchema, StreamEventTypeSchema, QuestionOptionSchema, QuestionItemSchema, EffortLevelSchema, SessionOriginSchema, SessionLifecycleSchema, LimitPlanSchema, LimitStateSchema, SessionLimitSchema, ContinueAccountOptionSchema, ContinueOptionsResponseSchema, ContinueSessionRequestSchema, ContinueSessionResponseSchema, WaitForResetRequestSchema, LimitPlanResponseSchema, TrackerItemRefSchema, SessionStartedBySchema, SessionSchema, SessionUpdateResponseSchema, SessionSettingsSchema, StoredSessionSettingsResponseSchema, UpdateSessionRequestSchema, ForkSessionRequestSchema, ReloadPluginsResultSchema, SEED_CONTEXT_MAX_LENGTH, MessageDispositionSchema, DispositionDowngradeReasonSchema, MessageDeliveryOutcomeSchema, InterruptOutcomeSchema, InterruptReasonSchema, InterruptReceiptSchema, QueuedWaitingOnSchema, QueuedMessageSchema, SendMessageRequestSchema, SendMessageResponseSchema, SessionTriggerResponseSchema, SessionQueueResponseSchema, QueueMoveTargetSchema, UpdateQueuedMessageRequestSchema, UpdateQueuedMessageResponseSchema, DENY_REASON_MAX_LENGTH, ApprovalRequestSchema, BatchApprovalRequestSchema, SubmitAnswersRequestSchema, UI_ACTION_ID_MAX_LENGTH, UI_ACTION_TITLE_MAX_LENGTH, UI_ACTION_PAYLOAD_MAX_LENGTH, UiActionRequestSchema, McpAppPermissionSchema, McpAppResourceRequestSchema, McpAppResourceResponseSchema, ElicitationModeSchema, ElicitationActionSchema, SubmitElicitationRequestSchema, ListSessionsQuerySchema, SessionListWarningSchema, SessionListResponseSchema, RecentSessionsQuerySchema, RecentSessionsResponseSchema, SessionDailyCountsQuerySchema, SessionDailyCountsResponseSchema, CommandsQuerySchema, TextDeltaSchema, ThinkingDeltaSchema, ToolCallStatusSchema, McpAppRefSchema, ToolCallEventSchema, ToolProgressEventSchema, AlwaysAllowScopeSchema, ApprovalEventSchema, QuestionPromptEventSchema, PendingInteractionDTOSchema, ErrorCategorySchema, ErrorEventSchema, ApiRetryEventSchema, DoneEventSchema, TerminalReasonSchema, UsageStateSchema, UsageStatusSchema, SessionStatusEventSchema, ContextUsageCategorySchema, ContextUsageSchema, TaskItemSchema, TaskUpdateEventSchema, RelayReceiptEventSchema, MessageDeliveredEventSchema, RelayMessageEventSchema, BackgroundTaskTypeSchema, BackgroundTaskStatusSchema, BackgroundTaskStartedEventSchema, BackgroundTaskProgressEventSchema, BackgroundTaskDoneEventSchema, SubagentTextDeltaEventSchema, SystemStatusEventSchema, OperationKindSchema, OperationStateSchema, OperationProgressEventShapeSchema, OperationProgressEventSchema, MemoryEntrySchema, MemoryRecallEventSchema, agentCompactionShape, CompactBoundaryEventSchema, sessionImageShape, SessionImageEventSchema, deniedAgentShape, PermissionDeniedEventSchema, ModelSubstitutedEventSchema, PromptSuggestionEventSchema, HookStartedEventSchema, HookProgressEventSchema, HookResponseEventSchema, SdkSessionStateSchema, SessionStateChangedEventSchema, ElicitationPromptEventSchema, ElicitationCompleteEventSchema, InteractionCancelledEventSchema, CapabilityApprovalRequiredEventSchema, CapabilityApprovalResolvedEventSchema, SigninUrlSchema, MCP_SIGNIN_OUTCOMES, McpSigninOutcomeSchema, McpSigninRequiredEventSchema, McpSigninResolvedEventSchema, StreamEventSchema, TextPartSchema, HookStatusSchema, HookPartSchema, ToolApprovalOutcomeSchema, QuestionOutcomeSchema, ToolCallPartSchema, BackgroundTaskPartSchema, ThinkingPartSchema, ErrorPartSchema, ElicitationPartSchema, CapabilityApprovalPartSchema, McpSigninPartSchema, MemoryRecallPartSchema, PermissionDeniedPartSchema, ModelSubstitutedPartSchema, CompactBoundaryPartSchema, ImagePartSchema, MessagePartSchema, MessageTypeSchema, HistoryToolCallSchema, CompactMetadataSchema, HistoryMessageSchema, HistoryReadSchema, CommandEntrySchema, CommandRegistrySchema, FileListQuerySchema, RawFileQuerySchema, FileListResponseSchema, FileEntrySchema, FileTreeQuerySchema, FileTreeResponseSchema, FileContentQuerySchema, FileContentResponseSchema, CreateEntryRequestSchema, CreateEntryResponseSchema, DeleteEntryQuerySchema, RenameEntryRequestSchema, CopyEntryRequestSchema, RevealEntryRequestSchema, DiffBaselineOriginSchema, DiffBaselineQuerySchema, DiffBaselineResponseSchema, AdvanceDiffBaselineRequestSchema, DiffPendingQuerySchema, DiffPendingResponseSchema, DiffBaselineRawQuerySchema, RevertDiffBaselineRequestSchema, FileMutationResponseSchema, WorkbenchSignRequestSchema, WorkbenchSignResponseSchema, WorkbenchProbeRequestSchema, WorkbenchProbeResponseSchema, FRAME_SCRIPT_HTML_MAX_BYTES, FrameBridgeRefusalSchema, WorkbenchBridgeStatusRequestSchema, WorkbenchBridgeStatusResponseSchema, BrowseDirectoryQuerySchema, DirectoryEntrySchema, BrowseDirectoryResponseSchema, TunnelStatusSchema, LanAccessStatusSchema, RemoteAccessStateSchema, RemoteAccessAvailabilitySchema, RemoteAccessEnrolmentSchema, RemoteAccessReportSchema, HealthResponseSchema, ExecutionDefaultsSchema, ExperimentStateSchema, ServerConfigSchema2, ModelTierSchema, ModelOptionSchema, SubagentInfoSchema, GitStatusResponseSchema, GitStatusErrorSchema, ErrorResponseSchema, SessionLockedErrorSchema, TaskStatusSchema, SettableTaskStatusSchema, TaskNameSchema, TaskRunStatusSchema, TaskRunTriggerSchema, ScheduleOriginMarksSchema, TaskSchema, TaskRunSchema, CancelTaskRunResponseSchema, TaskTemplateSchema, TASK_DURATION_PATTERN, TASK_DURATION_MAX, TASK_DESCRIPTION_MAX, CreateTaskRequestSchema, SIDEBAR_TAB_ID_PATTERN, ShapeLiveLayoutCaptureSchema, ForkShapeRequestSchema, UpdateTaskRequestSchema, ListTaskRunsQuerySchema, ConfigPatchRequestSchema, ConfigPatchResponseSchema, UploadResultSchema, UploadResponseSchema, UploadProgressSchema, CanvasMediaSrcSchema, UiCanvasContentSchema, UiPanelIdSchema, UiToastLevelSchema, CELEBRATION_KINDS, CELEBRATION_KIND_SYNONYMS, CelebrationKindSchema, UiCommandTargetSchema, UiCommandSchema, UiCommandEventSchema, UiStateSchema, UiStateReportDocumentSchema, UiStateReportSchema, DevtoolsConsoleLevelSchema, DEVTOOLS_ARGS_MAX_CHARS, DevtoolsConsoleEntrySchema, DevtoolsNetworkEntrySchema, DEVTOOLS_CONSOLE_BATCH_MAX, DEVTOOLS_NETWORK_BATCH_MAX, DEVTOOLS_SCREENSHOT_MAX_CHARS, DevtoolsScreenshotResultSchema, DevtoolsIngestSchema, BrowserTargetSchema, BrowserActCommandSchema, BrowserPageSummarySchema, DEVTOOLS_OUTLINE_MAX_CHARS, DevtoolsActionResultSchema, DevtoolsRecordingUploadSchema, KeepAwakeUnsupportedReasonSchema, KeepAwakeStatusSchema, StreamHealthReportSchema;
|
|
54309
54317
|
var init_schemas4 = __esm({
|
|
54310
54318
|
"../shared/src/schemas.ts"() {
|
|
54311
54319
|
"use strict";
|
|
@@ -58307,6 +58315,15 @@ var init_schemas4 = __esm({
|
|
|
58307
58315
|
description: "Waking the computer for scheduled runs. Not built yet: always disabled, `unsupported`, with no next wake and no setup command."
|
|
58308
58316
|
})
|
|
58309
58317
|
}).openapi("KeepAwakeStatus");
|
|
58318
|
+
StreamHealthReportSchema = external_exports.object({
|
|
58319
|
+
kind: external_exports.enum(["silent-turn", "unrendered-turn"]),
|
|
58320
|
+
/** How long the window waited without hearing the turn, in milliseconds. */
|
|
58321
|
+
silentMs: external_exports.number().int().nonnegative(),
|
|
58322
|
+
/** The highest event sequence the window had applied. */
|
|
58323
|
+
lastSeq: external_exports.number().int().nonnegative(),
|
|
58324
|
+
/** The window's stream connection state when it noticed. */
|
|
58325
|
+
connectionState: external_exports.enum(["connecting", "connected", "reconnecting", "disconnected"])
|
|
58326
|
+
}).openapi("StreamHealthReport");
|
|
58310
58327
|
}
|
|
58311
58328
|
});
|
|
58312
58329
|
|
|
@@ -160218,7 +160235,7 @@ function summarizeStorageState(state, nowSeconds) {
|
|
|
160218
160235
|
const originHosts = state.origins.map((o3) => originHost(o3.origin)).filter((h2) => Boolean(h2));
|
|
160219
160236
|
const siteOf = groupHosts([...state.cookies.map((c3) => c3.domain), ...originHosts]);
|
|
160220
160237
|
const bySite = /* @__PURE__ */ new Map();
|
|
160221
|
-
const
|
|
160238
|
+
const entryFor2 = (site) => {
|
|
160222
160239
|
let entry = bySite.get(site);
|
|
160223
160240
|
if (!entry) {
|
|
160224
160241
|
entry = {
|
|
@@ -160236,7 +160253,7 @@ function summarizeStorageState(state, nowSeconds) {
|
|
|
160236
160253
|
for (const cookie of state.cookies) {
|
|
160237
160254
|
const site = siteOf.get(normalizeHost(cookie.domain));
|
|
160238
160255
|
if (!site) continue;
|
|
160239
|
-
const entry =
|
|
160256
|
+
const entry = entryFor2(site);
|
|
160240
160257
|
entry.cookies += 1;
|
|
160241
160258
|
if (cookie.expires === -1) {
|
|
160242
160259
|
entry.live += 1;
|
|
@@ -160248,7 +160265,7 @@ function summarizeStorageState(state, nowSeconds) {
|
|
|
160248
160265
|
for (const origin of state.origins) {
|
|
160249
160266
|
const host = originHost(origin.origin);
|
|
160250
160267
|
const site = host ? siteOf.get(host) : void 0;
|
|
160251
|
-
if (site && origin.localStorage.length > 0)
|
|
160268
|
+
if (site && origin.localStorage.length > 0) entryFor2(site).pageStorage = true;
|
|
160252
160269
|
}
|
|
160253
160270
|
return [...bySite.values()].map(({ live, ...site }) => ({
|
|
160254
160271
|
...site,
|
|
@@ -160669,6 +160686,86 @@ var init_profile2 = __esm({
|
|
|
160669
160686
|
}
|
|
160670
160687
|
});
|
|
160671
160688
|
|
|
160689
|
+
// ../shared/src/cloud-origin.ts
|
|
160690
|
+
function normalizeHost2(host) {
|
|
160691
|
+
return host.toLowerCase().replace(/\.+$/, "");
|
|
160692
|
+
}
|
|
160693
|
+
function entryFor(url2) {
|
|
160694
|
+
let parsed;
|
|
160695
|
+
try {
|
|
160696
|
+
parsed = new URL(url2);
|
|
160697
|
+
} catch {
|
|
160698
|
+
return null;
|
|
160699
|
+
}
|
|
160700
|
+
if (parsed.protocol !== "http:" && parsed.protocol !== "https:") return null;
|
|
160701
|
+
const host = normalizeHost2(parsed.hostname);
|
|
160702
|
+
if (!host) return null;
|
|
160703
|
+
if (LOCAL_HOST.test(host))
|
|
160704
|
+
return { kind: "origin", protocol: parsed.protocol, host, port: parsed.port };
|
|
160705
|
+
return { kind: "host", host };
|
|
160706
|
+
}
|
|
160707
|
+
function cloudOriginEntries(config3 = {}) {
|
|
160708
|
+
const urls = [CLOUD_ORIGIN, CLOUD_WEBSITE];
|
|
160709
|
+
if (config3.DORKOS_CLOUD_API_URL) urls.push(config3.DORKOS_CLOUD_API_URL);
|
|
160710
|
+
if (config3.DORKOS_CLOUD_URL) urls.push(config3.DORKOS_CLOUD_URL);
|
|
160711
|
+
const entries = [];
|
|
160712
|
+
const seen = /* @__PURE__ */ new Set();
|
|
160713
|
+
for (const url2 of urls) {
|
|
160714
|
+
const entry = entryFor(url2);
|
|
160715
|
+
if (!entry) continue;
|
|
160716
|
+
const key = JSON.stringify(entry);
|
|
160717
|
+
if (seen.has(key)) continue;
|
|
160718
|
+
seen.add(key);
|
|
160719
|
+
entries.push(entry);
|
|
160720
|
+
}
|
|
160721
|
+
return entries;
|
|
160722
|
+
}
|
|
160723
|
+
function hostIsUnder(host, parent) {
|
|
160724
|
+
return host === parent || host.endsWith(`.${parent}`);
|
|
160725
|
+
}
|
|
160726
|
+
function isCloudOriginUrl(url2, entries = cloudOriginEntries()) {
|
|
160727
|
+
let parsed;
|
|
160728
|
+
try {
|
|
160729
|
+
parsed = new URL(url2);
|
|
160730
|
+
if (parsed.protocol === "blob:") parsed = new URL(parsed.pathname);
|
|
160731
|
+
} catch {
|
|
160732
|
+
return false;
|
|
160733
|
+
}
|
|
160734
|
+
if (parsed.protocol !== "http:" && parsed.protocol !== "https:") return false;
|
|
160735
|
+
const host = normalizeHost2(parsed.hostname);
|
|
160736
|
+
return entries.some(
|
|
160737
|
+
(entry) => entry.kind === "host" ? hostIsUnder(host, entry.host) : entry.protocol === parsed.protocol && entry.host === host && entry.port === parsed.port
|
|
160738
|
+
);
|
|
160739
|
+
}
|
|
160740
|
+
function cookieReachesCloud(domain2, entries = cloudOriginEntries()) {
|
|
160741
|
+
const isDomainCookie = domain2.startsWith(".");
|
|
160742
|
+
const cookieHost = normalizeHost2(domain2.replace(/^\.+/, ""));
|
|
160743
|
+
if (!cookieHost) return false;
|
|
160744
|
+
return entries.some((entry) => {
|
|
160745
|
+
if (entry.kind === "origin") return cookieHost === entry.host;
|
|
160746
|
+
if (hostIsUnder(cookieHost, entry.host)) return true;
|
|
160747
|
+
return isDomainCookie && hostIsUnder(entry.host, cookieHost);
|
|
160748
|
+
});
|
|
160749
|
+
}
|
|
160750
|
+
function withoutCloudOrigin(state, entries = cloudOriginEntries()) {
|
|
160751
|
+
const cookies = state.cookies.filter((cookie) => !cookieReachesCloud(cookie.domain, entries));
|
|
160752
|
+
const origins = state.origins.filter((origin) => !isCloudOriginUrl(origin.origin, entries));
|
|
160753
|
+
return {
|
|
160754
|
+
state: { ...state, cookies, origins },
|
|
160755
|
+
removedCookies: state.cookies.length - cookies.length,
|
|
160756
|
+
removedOrigins: state.origins.length - origins.length
|
|
160757
|
+
};
|
|
160758
|
+
}
|
|
160759
|
+
var CLOUD_ORIGIN, CLOUD_WEBSITE, LOCAL_HOST;
|
|
160760
|
+
var init_cloud_origin = __esm({
|
|
160761
|
+
"../shared/src/cloud-origin.ts"() {
|
|
160762
|
+
init_links();
|
|
160763
|
+
CLOUD_ORIGIN = links.cloudApi;
|
|
160764
|
+
CLOUD_WEBSITE = links.site;
|
|
160765
|
+
LOCAL_HOST = /^(localhost|\[[0-9a-f:.]+\]|\d{1,3}(\.\d{1,3}){3})$/i;
|
|
160766
|
+
}
|
|
160767
|
+
});
|
|
160768
|
+
|
|
160672
160769
|
// src/lib/agent-browser/storage-state.ts
|
|
160673
160770
|
import fs25 from "node:fs";
|
|
160674
160771
|
import path53 from "node:path";
|
|
@@ -160734,10 +160831,18 @@ async function collectStorageState(cdp, options = {}) {
|
|
|
160734
160831
|
const origins = options.pageStorage === false ? [] : await readOpenTabStorage(cdp);
|
|
160735
160832
|
return { cookies: cookies.map(toStorageStateCookie), origins };
|
|
160736
160833
|
}
|
|
160834
|
+
function cliCloudOrigins() {
|
|
160835
|
+
return cloudOriginEntries({
|
|
160836
|
+
DORKOS_CLOUD_URL: env4.DORKOS_CLOUD_URL,
|
|
160837
|
+
DORKOS_CLOUD_API_URL: env4.DORKOS_CLOUD_API_URL
|
|
160838
|
+
});
|
|
160839
|
+
}
|
|
160737
160840
|
async function writeStorageState(file2, state) {
|
|
160841
|
+
const saved = withoutCloudOrigin(state, cliCloudOrigins()).state;
|
|
160738
160842
|
fs25.mkdirSync(path53.dirname(file2), { recursive: true, mode: 448 });
|
|
160739
|
-
await writeFileAtomic2(file2, `${JSON.stringify(
|
|
160843
|
+
await writeFileAtomic2(file2, `${JSON.stringify(saved, null, 2)}
|
|
160740
160844
|
`, { mode: 384 });
|
|
160845
|
+
return saved;
|
|
160741
160846
|
}
|
|
160742
160847
|
function readStorageState(file2) {
|
|
160743
160848
|
let raw;
|
|
@@ -160748,7 +160853,7 @@ function readStorageState(file2) {
|
|
|
160748
160853
|
throw err;
|
|
160749
160854
|
}
|
|
160750
160855
|
try {
|
|
160751
|
-
return StorageStateSchema.parse(JSON.parse(raw));
|
|
160856
|
+
return withoutCloudOrigin(StorageStateSchema.parse(JSON.parse(raw)), cliCloudOrigins()).state;
|
|
160752
160857
|
} catch {
|
|
160753
160858
|
throw new UnreadableStorageStateError(file2);
|
|
160754
160859
|
}
|
|
@@ -160759,6 +160864,8 @@ var init_storage_state = __esm({
|
|
|
160759
160864
|
"use strict";
|
|
160760
160865
|
init_agent_browser();
|
|
160761
160866
|
init_atomic_write2();
|
|
160867
|
+
init_cloud_origin();
|
|
160868
|
+
init_env2();
|
|
160762
160869
|
UnreadableStorageStateError = class extends Error {
|
|
160763
160870
|
constructor(file2) {
|
|
160764
160871
|
super(
|
|
@@ -160907,8 +161014,8 @@ ${LOGIN_USAGE}`);
|
|
|
160907
161014
|
}
|
|
160908
161015
|
}
|
|
160909
161016
|
async function saveAndReport(deps, stateFile, state, note) {
|
|
160910
|
-
await writeStorageState(stateFile, state);
|
|
160911
|
-
const sites = summarizeStorageState(
|
|
161017
|
+
const saved = await writeStorageState(stateFile, state);
|
|
161018
|
+
const sites = summarizeStorageState(saved, deps.now().getTime() / 1e3).filter((s2) => !s2.expired);
|
|
160912
161019
|
deps.log("");
|
|
160913
161020
|
if (sites.length === 0) {
|
|
160914
161021
|
deps.log("Saved, but no site is signed in yet. Sign in to a site in the agent browser,");
|
|
@@ -178149,7 +178256,7 @@ if (process.argv[2] === "community") {
|
|
|
178149
178256
|
);
|
|
178150
178257
|
Object.assign(childEnv, credentialEnv.pickCommunityCredentialEnv(rawProcessEnv));
|
|
178151
178258
|
const exitCode = await dispatcher.runCommunityDispatcher(process.argv.slice(3), {
|
|
178152
|
-
cliVersion: "0.125.
|
|
178259
|
+
cliVersion: "0.125.3",
|
|
178153
178260
|
dorkHome: DORK_HOME,
|
|
178154
178261
|
processEnv: childEnv,
|
|
178155
178262
|
parseRelease: (bytes) => releaseContract.parseCompatibleCommunityReleaseManifest(
|
|
@@ -178167,7 +178274,7 @@ if (process.argv[2] === "community") {
|
|
|
178167
178274
|
process.exit(1);
|
|
178168
178275
|
}
|
|
178169
178276
|
}
|
|
178170
|
-
var cliErrorReporter = initCliErrorReporting({ dorkHome: DORK_HOME, version: "0.125.
|
|
178277
|
+
var cliErrorReporter = initCliErrorReporting({ dorkHome: DORK_HOME, version: "0.125.3" });
|
|
178171
178278
|
var uninstallCliErrorHandlers = cliErrorReporter ? installCliErrorHandlers(cliErrorReporter) : void 0;
|
|
178172
178279
|
if (process.argv[2] === "doctor") {
|
|
178173
178280
|
process.env.DORK_HOME = DORK_HOME;
|
|
@@ -178177,7 +178284,7 @@ if (process.argv[2] === "doctor") {
|
|
|
178177
178284
|
if (process.argv[2] === "feedback") {
|
|
178178
178285
|
process.env.DORK_HOME = DORK_HOME;
|
|
178179
178286
|
const { runFeedback: runFeedback2 } = await Promise.resolve().then(() => (init_feedback2(), feedback_exports));
|
|
178180
|
-
process.exit(await runFeedback2(DORK_HOME, "0.125.
|
|
178287
|
+
process.exit(await runFeedback2(DORK_HOME, "0.125.3", process.argv.slice(3)));
|
|
178181
178288
|
}
|
|
178182
178289
|
if (process.argv[2] === "auth") {
|
|
178183
178290
|
process.env.DORK_HOME = DORK_HOME;
|
|
@@ -178276,7 +178383,7 @@ if (process.argv[2] === "agent" || process.argv[2] === "task" || process.argv[2]
|
|
|
178276
178383
|
}
|
|
178277
178384
|
}
|
|
178278
178385
|
const { runVersionDispatcher: runVersionDispatcher2 } = await Promise.resolve().then(() => (init_version5(), version_exports));
|
|
178279
|
-
process.exit(await runVersionDispatcher2("0.125.
|
|
178386
|
+
process.exit(await runVersionDispatcher2("0.125.3", DORK_HOME, subArgs));
|
|
178280
178387
|
}
|
|
178281
178388
|
var { values, positionals } = parseCliArgs();
|
|
178282
178389
|
if (positionals[0] && !knownCommands.has(positionals[0])) {
|
|
@@ -178370,14 +178477,14 @@ Examples:
|
|
|
178370
178477
|
process.exit(0);
|
|
178371
178478
|
}
|
|
178372
178479
|
if (values.version) {
|
|
178373
|
-
console.log("0.125.
|
|
178480
|
+
console.log("0.125.3");
|
|
178374
178481
|
process.exit(0);
|
|
178375
178482
|
}
|
|
178376
178483
|
if (values["post-install-check"]) {
|
|
178377
178484
|
const claudeFound = checkClaude();
|
|
178378
178485
|
const coreExtensionsFound = checkCoreExtensions();
|
|
178379
178486
|
const extensionsCompile = await checkExtensionCompilation();
|
|
178380
|
-
console.log(`dorkos ${"0.125.
|
|
178487
|
+
console.log(`dorkos ${"0.125.3"}`);
|
|
178381
178488
|
if (!coreExtensionsFound) {
|
|
178382
178489
|
console.log("Installation incomplete \u2014 bundled core extensions are missing.");
|
|
178383
178490
|
}
|
|
@@ -178525,7 +178632,7 @@ if (fs39.existsSync(envPath)) {
|
|
|
178525
178632
|
}
|
|
178526
178633
|
uninstallCliErrorHandlers?.();
|
|
178527
178634
|
process.env.DORKOS_CLI_ENTRYPOINT = fileURLToPath7(import.meta.url);
|
|
178528
|
-
process.env.DORKOS_CLI_VERSION = "0.125.
|
|
178635
|
+
process.env.DORKOS_CLI_VERSION = "0.125.3";
|
|
178529
178636
|
var server;
|
|
178530
178637
|
try {
|
|
178531
178638
|
server = await import("../server/index.js");
|
|
@@ -178550,7 +178657,7 @@ var ansiReset = "\x1B[0m";
|
|
|
178550
178657
|
console.log("");
|
|
178551
178658
|
console.log(`${purple}${logo}${ansiReset}`);
|
|
178552
178659
|
console.log("");
|
|
178553
|
-
console.log(` DorkOS v${"0.125.
|
|
178660
|
+
console.log(` DorkOS v${"0.125.3"}`);
|
|
178554
178661
|
console.log(` Local: ${link(localUrl, localUrl)}`);
|
|
178555
178662
|
var nets = networkInterfaces();
|
|
178556
178663
|
var networkUrl = null;
|
|
@@ -178576,9 +178683,9 @@ if (shouldOpenBrowser && process.stdin.isTTY) {
|
|
|
178576
178683
|
const openCmd = process.platform === "darwin" ? "open" : process.platform === "win32" ? "start" : "xdg-open";
|
|
178577
178684
|
exec(`${openCmd} ${localUrl}`);
|
|
178578
178685
|
}
|
|
178579
|
-
checkForUpdate("0.125.
|
|
178686
|
+
checkForUpdate("0.125.3").then((latestVersion) => {
|
|
178580
178687
|
if (latestVersion) {
|
|
178581
|
-
const msg = `Update available: ${"0.125.
|
|
178688
|
+
const msg = `Update available: ${"0.125.3"} \u2192 ${latestVersion}`;
|
|
178582
178689
|
const cmd = "Run npm install -g dorkos@latest to update";
|
|
178583
178690
|
const width = Math.max(msg.length, cmd.length) + 6;
|
|
178584
178691
|
const pad2 = (s2) => `\u2502 ${s2}${" ".repeat(width - s2.length - 6)} \u2502`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":1,"controllerSHA256":"
|
|
1
|
+
{"version":1,"controllerSHA256":"ef83eb74f050b4bb14bfdbfdffe77c81025188eaae6a4ba1c218335e8b5b43e3","nativeManifestSHA256":"19fb0607902e9c30bc693f3a8f7e80601f6ccfd090ffa412a5a38614e6eb7c00","platform":"darwin","arch":"arm64","availability":"available","workers":[{"name":"darwin-journal-worker.mjs","sha256":"739958b3515b48dda8cf40366aa6e34cf65366662c96dba1c951f38bc2f97603","bytes":88486},{"name":"darwin-supervisor-worker.mjs","sha256":"83b9b1e6d8969f5f909b43ebcf2d3ae6830601908bd2e4e4b2747d9ee7e55b77","bytes":74686}]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"schemaVersion":1,"controllerSHA256":"
|
|
1
|
+
{"schemaVersion":1,"controllerSHA256":"ef83eb74f050b4bb14bfdbfdffe77c81025188eaae6a4ba1c218335e8b5b43e3","verifierSHA256":"5cb8f248a264a0602757ad2c0971c1b1e84bcf3185a2b8d706230d2cfac0703c"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as N,d as v,j as e,e as w,r as d,X as C,I as k,B as D,f as S}from"./index-
|
|
1
|
+
import{b as N,d as v,j as e,e as w,r as d,X as C,I as k,B as D,f as S}from"./index-DSYz85aL.js";function j({children:i}){return e.jsx("div",{className:"text-muted-foreground text-3xs font-medium tracking-wider uppercase",children:i})}function A({agent:i,onUpdate:t}){const[a,l]=d.useState(!1),[o,u]=d.useState(""),n=i.capabilities??[];function c(){const s=o.trim();s&&!n.includes(s)&&t({capabilities:[...n,s]}),u(""),l(!1)}return e.jsxs("div",{className:"space-y-1",children:[e.jsx(j,{children:"Capabilities"}),e.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[n.map(s=>e.jsxs("span",{className:"bg-accent text-accent-foreground inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs",children:[s,e.jsx("button",{type:"button",onClick:()=>t({capabilities:n.filter(p=>p!==s)}),className:"hover:text-destructive transition-colors","aria-label":`Remove capability ${s}`,children:e.jsx(C,{"aria-hidden":!0,className:"size-3"})})]},s)),a?e.jsx(k,{autoFocus:!0,value:o,onChange:s=>u(s.target.value),onBlur:c,onKeyDown:s=>{s.key==="Enter"&&c(),s.key==="Escape"&&l(!1)},className:"h-6 w-28 text-xs",placeholder:"Capability name","aria-label":"New capability"}):e.jsxs(D,{type:"button",variant:"ghost",size:"sm",onClick:()=>l(!0),className:"text-muted-foreground hover:text-foreground h-auto gap-0.5 px-1 py-0 text-xs",children:[e.jsx(S,{"aria-hidden":!0,className:"size-3"})," Add"]})]})]})}function b({label:i,value:t,placeholder:a,multiline:l,testId:o,onCommit:u}){const[n,c]=d.useState(t),[s,p]=d.useState(t),[m,f]=d.useState(null);s!==t&&(p(t),c(t));function x(){const r=n.trim();if(r===t.trim())return;const g=u(r);if(typeof g!="string")return f(null);c(t),f(g)}const h="border-input bg-background placeholder:text-muted-foreground focus-visible:ring-ring w-full rounded-md border px-3 py-2 text-sm focus-visible:ring-2 focus-visible:outline-none",y=m?e.jsx("p",{role:"status",className:"text-destructive text-xs",children:m}):null;return e.jsxs("div",{className:"space-y-1",children:[e.jsx(j,{children:i}),l?e.jsx("textarea",{value:n,rows:4,"data-testid":o,"aria-label":i,placeholder:a,onChange:r=>{f(null),c(r.target.value)},onBlur:x,onKeyDown:r=>{r.key==="Enter"&&!r.shiftKey&&(r.preventDefault(),x())},className:h}):e.jsx("input",{value:n,"data-testid":o,"aria-label":i,placeholder:a,onChange:r=>{f(null),c(r.target.value)},onBlur:x,onKeyDown:r=>{r.key==="Enter"&&x()},className:h}),y]})}function R({member:i,roster:t}){const{agent:a,isPending:l,update:o}=N(i),u=v(i,t)==="managed";return l?e.jsx(w,{className:"h-16 w-full"}):!u||!a?e.jsx(E,{member:i,agent:a}):e.jsxs("div",{className:"flex flex-col gap-4","data-slot":"profile-about",children:[e.jsx(b,{label:"Name",value:a.displayName??a.name,placeholder:"What you call this agent",testId:"agent-name-field",onCommit:n=>{if(!n)return"A name can’t be empty, so the old one was kept.";o({displayName:n})}}),e.jsx(b,{multiline:!0,label:"Description",value:a.description??"",placeholder:"What is this agent for?",testId:"agent-description-field",onCommit:n=>o({description:n})}),e.jsx(A,{agent:a,onUpdate:o})]})}function E({member:i,agent:t}){var l;const a=(l=t==null?void 0:t.description)==null?void 0:l.trim();return a?e.jsx("p",{className:"text-sm leading-relaxed whitespace-pre-wrap",children:a}):e.jsxs("p",{className:"text-muted-foreground text-sm",children:[i.displayName," has no description yet."]})}export{R as AboutPage};
|
package/dist/client/assets/{ActivityErrorState-CXDzOpkQ.js → ActivityErrorState-C-mLOmJm.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{eU as x,a1 as o,av as u,eV as f,j as a,G as c,a0 as p,B as y}from"./index-
|
|
1
|
+
import{eU as x,a1 as o,av as u,eV as f,j as a,G as c,a0 as p,B as y}from"./index-DSYz85aL.js";const g=["Today","Yesterday","This week","Earlier"];function A(e,s){const t=new Map;for(const r of e){const n=h(new Date(r.occurredAt),s),i=t.get(n)??[];i.push(r),t.set(n,i)}return g.filter(r=>t.has(r)).map(r=>({label:r,items:t.get(r)}))}function h(e,s){const t=new Date(s);t.setHours(0,0,0,0);const r=new Date(t);r.setDate(r.getDate()-1);const n=new Date(t);return n.setDate(n.getDate()-n.getDay()),e>=t?"Today":e>=r?"Yesterday":e>=n?"This week":"Earlier"}const T={person:"user",external:"user",agent:"agent",system:"system"};function k(e){return e.source.sessionId?x({session:e.source.sessionId}):null}function v(e){return{id:e.id,occurredAt:e.at,actorType:T[e.actor.kind],actorLabel:e.actor.name,summary:e.summary,linkPath:k(e)}}const d=["audit"],l=50;function m(e){return e.pages.flatMap(s=>s.events.map(v))}function E(e={}){const s=o();return u({queryKey:[...d,"list",e],queryFn:({pageParam:t})=>s.listAuditEvents({...e,limit:l,beforeSeq:t}),initialPageParam:void 0,getNextPageParam:t=>t.nextBeforeSeq,select:m,staleTime:3e4,refetchOnWindowFocus:!0})}function P(e){const s=o();return u({queryKey:[...d,"timeline",e],queryFn:e===null?f:({pageParam:t})=>s.getAccountTimeline(e,{limit:l,beforeSeq:t}),initialPageParam:void 0,getNextPageParam:t=>t.nextBeforeSeq,select:m,staleTime:3e4,refetchOnWindowFocus:!0})}function j({label:e,className:s}){return a.jsx("div",{"data-slot":"activity-group-header",className:c("sticky top-0 z-10 -mx-4 px-4 py-2 sm:-mx-6 sm:px-6","bg-background/95 backdrop-blur-sm",s),children:a.jsx("h3",{className:"text-muted-foreground text-xs font-medium tracking-wider uppercase",children:e})})}function D({onRetry:e,className:s}){return a.jsxs("div",{"data-slot":"activity-error-state",className:c("flex flex-col items-center justify-center gap-3 py-16 text-center",s),children:[a.jsx("div",{className:"bg-destructive/10 rounded-xl p-3",children:a.jsx(p,{className:"text-destructive size-6","aria-hidden":"true"})}),a.jsxs("div",{className:"space-y-1",children:[a.jsx("p",{className:"text-foreground text-sm font-medium",children:"Couldn’t load your activity"}),a.jsx("p",{className:"text-muted-foreground max-w-xs text-xs",children:"The DorkOS server didn’t answer. Check that it’s running."})]}),a.jsx(y,{variant:"outline",size:"sm",onClick:e,children:"Retry"})]})}export{D as A,j as a,E as b,A as g,P as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as c,j as e,e as d,A as u,B as j,x as v}from"./index-
|
|
1
|
+
import{r as c,j as e,e as d,A as u,B as j,x as v}from"./index-DSYz85aL.js";import{E as g}from"./empty-state-Xw8KQdod.js";import{T as N,a as A}from"./table-B8zvHC0J.js";import{u as b,g as w,A as E,a as T}from"./ActivityErrorState-C-mLOmJm.js";import{A as B}from"./ActivityRow-ylgCMe7Y.js";function I({member:i}){var n;const r=((n=i.agent)==null?void 0:n.manifestId)??null,{data:l,isLoading:x,isError:m,refetch:p,isFetchingNextPage:o,hasNextPage:h,fetchNextPage:f}=b(r),s=c.useMemo(()=>l??[],[l]),y=c.useMemo(()=>w(s,new Date),[s]);return r===null?e.jsx("div",{className:"min-h-0 flex-1 px-4 py-3","data-slot":"profile-activity",children:e.jsx("p",{className:"text-muted-foreground text-xs",children:"Activity is kept per agent."})}):x?e.jsxs("div",{className:"min-h-0 flex-1 space-y-2 px-4 py-3","data-slot":"profile-activity","aria-busy":"true",children:[e.jsx(d,{className:"h-3 w-16"}),Array.from({length:5}).map((t,a)=>e.jsx(d,{className:"h-4 w-full"},a))]}):m&&s.length===0?e.jsx("div",{className:"min-h-0 flex-1 px-2","data-slot":"profile-activity",children:e.jsx(E,{onRetry:()=>void p()})}):s.length===0?e.jsx("div",{className:"min-h-0 flex-1 px-4 py-8","data-slot":"profile-activity",children:e.jsx(g,{icon:u,headline:"Nothing on record yet",description:`What ${i.displayName} does shows up here.`})}):e.jsxs("div",{className:"min-h-0 flex-1 px-2 py-2","data-slot":"profile-activity",children:[y.map(t=>e.jsxs("section",{children:[e.jsx(T,{label:t.label}),e.jsx(N,{children:e.jsx(A,{children:t.items.map(a=>e.jsx(B,{item:a,compact:!0},a.id))})})]},t.label)),h&&e.jsx("div",{className:"flex justify-center py-3",children:e.jsxs(j,{variant:"outline",size:"sm",onClick:()=>void f(),disabled:o,className:"gap-2",children:[o&&e.jsx(v,{size:"xs"}),"Load 50 more"]})})]})}export{I as ActivityPage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b9 as d,ds as x,j as e,_ as u,G as l,cj as m,dt as g,B as h}from"./index-
|
|
1
|
+
import{b9 as d,ds as x,j as e,_ as u,G as l,cj as m,dt as g,B as h}from"./index-DSYz85aL.js";import{b as f,c}from"./table-B8zvHC0J.js";const k={tasks:{text:"text-purple-500",bg:"bg-purple-500/10",label:"Schedules"},relay:{text:"text-teal-500",bg:"bg-teal-500/10",label:"Messages"},agent:{text:"text-indigo-500",bg:"bg-indigo-500/10",label:"Agent"},config:{text:"text-amber-500",bg:"bg-amber-500/10",label:"Settings"},system:{text:"text-neutral-500",bg:"bg-neutral-500/10",label:"System"},permissions:{text:"text-sky-500",bg:"bg-sky-500/10",label:"Permissions"}},p={user:{text:"text-muted-foreground"},agent:{text:"text-foreground"},system:{icon:x,text:"text-neutral-500"},tasks:{icon:d,text:"text-purple-500"}};function b({actorType:s,actorLabel:r,agentColor:a,className:n}){const i=p[s],t=i.icon;return s==="user"?e.jsx(u,{shape:"pill",variant:"outline",className:l("text-muted-foreground",n),children:r}):s==="agent"?e.jsxs("span",{"data-slot":"actor-badge",className:l("inline-flex items-center gap-1.5 text-xs font-medium",i.text,n),children:[e.jsx("span",{className:"size-2 shrink-0 rounded-full",style:a?{backgroundColor:a}:void 0,"aria-hidden":!0}),e.jsx("span",{className:"truncate",children:r})]}):e.jsxs("span",{"data-slot":"actor-badge",className:l("inline-flex items-center gap-1 text-xs font-medium",i.text,n),children:[t&&e.jsx(t,{className:"size-3 shrink-0","aria-hidden":!0}),e.jsx("span",{children:r})]})}function y(s,r=new Date){const a=new Date(s),n=new Date(r);n.setHours(0,0,0,0);const i=new Date(n);i.setDate(i.getDate()-1);const t=new Date(n);t.setDate(t.getDate()-t.getDay());const o=a.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0});return a>=n?o:a>=i?`Yesterday ${o}`:a>=t?`${a.toLocaleDateString("en-US",{weekday:"long"})} ${o}`:a.toLocaleDateString("en-US",{month:"short",day:"numeric"})}function v({item:s,compact:r=!1,className:a}){const n=m(),i=y(s.occurredAt),t=s.linkPath?g(s.linkPath):null;return e.jsxs(f,{"data-slot":"activity-row","data-activity-row":t?"":void 0,tabIndex:t?0:void 0,onKeyDown:t?o=>{o.key==="Enter"&&n({href:t,replace:!1})}:void 0,className:l(t?"focus-visible:ring-ring focus-visible:ring-2 focus-visible:outline-none":"hover:bg-transparent",a),children:[!r&&e.jsxs(e.Fragment,{children:[e.jsx(c,{className:"w-28 py-1.5 pr-0 pl-2 max-sm:hidden",children:e.jsx("span",{className:"text-muted-foreground text-xs tabular-nums",children:i})}),e.jsx(c,{className:"w-24 py-1.5 pr-0 max-sm:hidden",children:e.jsx(b,{actorType:s.actorType,actorLabel:s.actorLabel})})]}),e.jsx(c,{className:l("max-w-0 py-1.5",r?"pl-2":"max-sm:pl-2"),children:e.jsxs("span",{className:"text-foreground/80 block truncate text-sm",children:[e.jsx("span",{className:l("text-muted-foreground mr-1 text-xs font-medium",!r&&"sm:hidden"),children:s.actorLabel}),s.summary]})}),e.jsx(c,{className:l("py-1.5 pr-2 text-right",r?"w-10":"w-16 max-sm:w-10"),children:t&&e.jsx(h,{variant:"ghost",size:"sm",className:"h-6 min-h-[44px] px-2 text-xs sm:min-h-0",onClick:()=>n({href:t,replace:!1}),children:"Open →"})})]})}export{v as A,k as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bE as n,bF as r,j as c,bG as s,aV as A}from"./index-
|
|
1
|
+
import{bE as n,bF as r,j as c,bG as s,aV as A}from"./index-DSYz85aL.js";const g={connected:n.success,disconnected:n.neutral,error:n.error,starting:`${n.warning} ${r}`,stopping:`${n.warning} ${r}`,reconnecting:`${n.warning} ${r}`},E={connected:"Connected",disconnected:"Ready",error:"Error",starting:"Connecting…",stopping:"Stopping…",reconnecting:"Reconnecting…"};function _({iconId:i,adapterType:a,size:t=16,className:o}){const e=s[i??""]??s[a??""];return e?c.jsx(e,{size:t,className:o}):c.jsx(A,{className:o,style:{width:t,height:t}})}export{_ as A,g as a,E as b};
|
package/dist/client/assets/{AdapterSetupWizard-BLljbUjj.js → AdapterSetupWizard-C6jxF55P.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a1 as be,a3 as Ne,a4 as ze,j as e,bg as qe,bh as Ee,r as m,dd as ie,hR as Te,de as oe,hr as le,$ as $e,O as ce,Q as de,az as ue,T as he,U as pe,by as K,ar as J,hS as me,hT as Me,G as U,en as X,eo as Z,ep as ee,eq as se,er as te,I as re,ev as xe,J as We,bx as Ve,B as k,hU as Se,ex as De,eu as ae,x as ke,be as Pe,bd as Re,a0 as Oe,ak as ge,hV as _e,hW as Le,hX as Ge,hY as Ue,hZ as Qe,cQ as Ie,a7 as G,eY as He,eZ as Ye,e_ as Ke,e$ as Je,f0 as Xe,f1 as Ze,h_ as fe,h$ as H}from"./index-BDJuvXMG.js";import{B as es}from"./use-bindings-BAKvriCK.js";import{M as Q}from"./markdown-content-NzXgwE2G.js";import{a as ss,b as ts,c as rs}from"./use-adapter-catalog-B3wTq44G.js";import{u as as}from"./form-DJvcnZrN.js";import{a as ns}from"./BindingDialog-dKfunEtT.js";import"./relay-trace-schemas-V7JmDMFe.js";function zs(s={}){const t=be(),a=Ne();return ze({mutationFn:({id:r,updates:l})=>t.updateBinding(r,l),onSuccess:()=>{a.invalidateQueries({queryKey:[...es]})},meta:s.suppressErrorToast?{suppressErrorToast:!0}:{errorLabel:s.errorLabel??"Couldn’t update that connection"}})}function is({field:s,value:t,onChange:a,error:r,allValues:l}){const[i,n]=m.useState("");if(s.showWhen&&l[s.showWhen.field]!==s.showWhen.equals)return null;const o=`config-field-${s.key}`,v=s.type==="select"&&s.displayAs==="radio-cards",h=t!=null?String(t):"",x=h==="***",y=()=>{if(x){n("");return}if(s.pattern&&h&&!new RegExp(s.pattern).test(h)){n(s.patternMessage??"Check the format");return}n("")},d=r??i;if(s.type==="boolean")return e.jsxs("div",{children:[e.jsxs(ie,{orientation:"horizontal",className:"items-center justify-between gap-4",children:[e.jsxs(Te,{className:"min-w-0",children:[e.jsxs(oe,{htmlFor:o,className:"text-sm font-medium",children:[s.label,s.required&&e.jsx("span",{"aria-hidden":"true",className:"text-destructive ml-0.5",children:"*"})]}),s.description&&e.jsx(le,{className:"text-xs",children:s.description})]}),e.jsx($e,{id:o,checked:!!t,onCheckedChange:N=>a(s.key,N)})]}),s.helpMarkdown&&e.jsxs(ce,{children:[e.jsxs(de,{className:"text-muted-foreground hover:text-foreground mt-1 flex items-center gap-1 text-xs transition-colors",children:[e.jsx(ue,{className:"size-3"}),"Where do I find this?",e.jsx(he,{className:"size-3 transition-transform [[data-state=open]_&]:rotate-180"})]}),e.jsx(pe,{children:e.jsx("div",{className:"bg-muted/50 mt-2 rounded-md border p-3",children:e.jsx(Q,{content:s.helpMarkdown,className:"text-xs"})})})]}),e.jsx(K,{children:d&&e.jsx(J.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.15},className:"overflow-hidden",children:e.jsx(me,{className:"mt-1.5",children:d})})})]});const b=()=>{var N,C;switch(s.type){case"text":case"url":return e.jsx(re,{id:o,type:s.type==="url"?"url":"text",value:h,onChange:c=>a(s.key,c.target.value),placeholder:s.placeholder,"aria-invalid":!!d||void 0,"aria-required":s.required||void 0});case"password":return x?e.jsx(xe,{id:o,value:h,showPassword:!1,onChange:c=>{a(s.key,c.target.value.trim()),i&&n("")},onFocus:()=>a(s.key,""),onBlur:y,placeholder:"Saved · type to replace"}):e.jsx(xe,{id:o,value:h,visibleByDefault:s.visibleByDefault??!1,onChange:c=>{a(s.key,c.target.value.trim()),i&&n("")},onBlur:y,onPaste:()=>setTimeout(y,0),placeholder:s.placeholder,"aria-invalid":!!d||void 0,"aria-required":s.required||void 0});case"number":return e.jsx(re,{id:o,type:"number",value:h,onChange:c=>a(s.key,c.target.value?Number(c.target.value):void 0),placeholder:s.placeholder,"aria-invalid":!!d||void 0,"aria-required":s.required||void 0});case"select":return s.displayAs==="radio-cards"?e.jsx("div",{className:"grid grid-cols-2 gap-3",role:"radiogroup","aria-labelledby":`${o}-label`,"aria-required":s.required||void 0,children:(N=s.options)==null?void 0:N.map(c=>e.jsxs("button",{type:"button",role:"radio","aria-checked":h===c.value,onClick:()=>a(s.key,c.value),className:U("hover:bg-accent/50 focus-visible:border-ring focus-visible:ring-ring flex flex-col items-start rounded-md border p-3 text-left transition outline-none focus-visible:ring-[3px]",h===c.value&&"border-primary ring-primary bg-accent/30 ring-1"),children:[e.jsx("span",{className:"text-sm font-medium",children:c.label}),c.description&&e.jsx("span",{className:"text-muted-foreground mt-1 text-xs",children:c.description})]},c.value))}):e.jsxs(X,{value:h,onValueChange:c=>a(s.key,c),children:[e.jsx(Z,{id:o,"aria-invalid":!!d||void 0,"aria-required":s.required||void 0,children:e.jsx(ee,{placeholder:s.placeholder??"Select…"})}),e.jsx(se,{children:(C=s.options)==null?void 0:C.map(c=>e.jsx(te,{value:c.value,children:c.label},c.value))})]});case"textarea":return e.jsx(Me,{id:o,value:h,onChange:c=>a(s.key,c.target.value),placeholder:s.placeholder,rows:3,"aria-invalid":!!d||void 0,"aria-required":s.required||void 0});default:return null}};return e.jsxs(ie,{children:[e.jsxs(oe,{id:`${o}-label`,htmlFor:v?void 0:o,children:[s.label,s.required&&!x&&e.jsx("span",{"aria-hidden":"true",className:"text-destructive ml-0.5",children:"*"})]}),b(),s.description&&e.jsx(le,{className:"text-xs",children:s.description}),s.helpMarkdown&&e.jsxs(ce,{children:[e.jsxs(de,{className:"text-muted-foreground hover:text-foreground mt-1 flex items-center gap-1 text-xs transition-colors",children:[e.jsx(ue,{className:"size-3"}),"Where do I find this?",e.jsx(he,{className:"size-3 transition-transform [[data-state=open]_&]:rotate-180"})]}),e.jsx(pe,{children:e.jsx("div",{className:"bg-muted/50 mt-2 rounded-md border p-3",children:e.jsx(Q,{content:s.helpMarkdown,className:"text-xs"})})})]}),e.jsx(K,{children:d&&e.jsx(J.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.15},className:"overflow-hidden",children:e.jsx(me,{children:d})})})]})}function os(s,t){return s.showWhen?t[s.showWhen.field]===s.showWhen.equals:!0}function ls({fields:s,allValues:t,renderField:a}){const r=new Map;for(const l of s){const i=l.section;r.has(i)||r.set(i,[]),r.get(i).push(l)}return e.jsx("div",{className:"space-y-6",children:Array.from(r.entries()).map(([l,i])=>{const n=i.filter(o=>os(o,t));return n.length===0?null:e.jsxs("div",{className:"space-y-3",children:[l&&e.jsx("h4",{className:"text-sm font-semibold",children:l}),e.jsx(qe,{children:e.jsx(Ee,{children:n.map(o=>a(o))})})]},l??"__default")})})}const je=["agent","configure","test","confirm"],cs={agent:"Agent",configure:"Set up",test:"Check",confirm:"Review"};function ds({current:s,showAgentStep:t}){const a=t?je:je.filter(l=>l!=="agent"),r=a.indexOf(s);return e.jsx("div",{className:"flex items-start justify-between px-1",role:"navigation","aria-label":"Setup steps",children:a.map((l,i)=>{const n=i<r,o=i===r,v=i>r;return e.jsxs(m.Fragment,{children:[i>0&&e.jsx("div",{className:U("mt-3 h-px flex-1",n||o?"bg-primary":"border-muted-foreground/40 border-t border-dashed")}),e.jsxs("div",{className:"flex flex-col items-center gap-1",children:[e.jsx("div",{className:U("flex size-6 items-center justify-center rounded-full text-xs font-medium",n&&"bg-primary text-primary-foreground",o&&"bg-primary text-primary-foreground ring-primary/30 ring-2",v&&"border-muted-foreground text-muted-foreground border"),"aria-current":o?"step":void 0,children:n?e.jsx(We,{className:"size-3"}):i+1}),e.jsx("span",{className:U("text-3xs",o?"text-foreground font-medium":"text-muted-foreground"),children:cs[l]})]})]},l)})})}function us({manifest:s,label:t,onLabelChange:a,fields:r,form:l,currentSetupStep:i,hasSetupGuide:n,onOpenGuide:o}){const{Subscribe:v,AppField:h}=l;return e.jsxs("div",{className:"space-y-4",children:[s.setupInstructions&&e.jsxs("div",{className:"flex gap-2 rounded-md border border-blue-200 bg-blue-50 p-3 text-sm text-blue-800 dark:border-blue-800 dark:bg-blue-950 dark:text-blue-200",children:[e.jsx(Ve,{className:"mt-0.5 size-4 shrink-0"}),e.jsx(Q,{content:s.setupInstructions,className:"text-sm text-blue-800 dark:text-blue-200"})]}),(s.actionButton||n)&&e.jsxs("div",{className:"flex items-center justify-end gap-2",children:[n&&e.jsxs(k,{type:"button",variant:"outline",size:"sm",onClick:o,children:[e.jsx(Se,{className:"mr-1.5 size-3.5"}),"Setup guide"]}),s.actionButton&&e.jsx(k,{asChild:!0,type:"button",variant:"outline",size:"sm",children:e.jsx(De,{href:s.actionButton.url,children:s.actionButton.label})})]}),i&&e.jsx("h4",{className:"text-sm font-medium",children:i.title}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(ae,{htmlFor:"adapter-label",children:"Name (optional)"}),e.jsx(re,{id:"adapter-label",placeholder:s.displayName,value:t,onChange:x=>a(x.target.value)}),e.jsx("p",{className:"text-muted-foreground text-xs",children:"Helps you tell this connection apart."})]}),e.jsx(v,{selector:x=>x.values,children:x=>e.jsx(ls,{fields:r,allValues:x,renderField:y=>e.jsx(h,{name:y.key,children:d=>{var b;return e.jsx(is,{field:y,value:d.state.value,onChange:(N,C)=>d.handleChange(C),onBlur:d.handleBlur,error:d.state.meta.isTouched?(b=d.state.meta.errors[0])==null?void 0:b.toString():void 0,allValues:x})}},y.key)})})]})}function hs({isPending:s,isSuccess:t,isError:a,errorMessage:r,botUsername:l,onRetry:i}){return e.jsxs("div",{className:"flex flex-col items-center gap-3 py-6",children:[s&&e.jsxs(e.Fragment,{children:[e.jsx(ke,{size:"lg",className:"text-muted-foreground"}),e.jsx("p",{className:"text-muted-foreground text-sm",children:"Trying to reach it…"})]}),t&&e.jsxs("div",{className:"flex flex-col items-center gap-2",children:[e.jsx(Pe,{className:"text-status-success size-8"}),e.jsx("p",{className:"text-status-success-fg text-sm",children:"Reachable"}),l&&e.jsx("div",{className:"flex items-center gap-2 rounded-md border px-3 py-2 text-sm",children:e.jsxs("span",{className:"font-mono",children:["@",l]})})]}),a&&e.jsxs(e.Fragment,{children:[e.jsx(Re,{className:"text-destructive size-8"}),e.jsx("p",{className:"text-destructive text-sm",children:"Not reachable"}),r&&e.jsxs("div",{className:"flex items-start gap-2 rounded-md border border-red-200 bg-red-50 p-3 text-xs text-red-700 dark:border-red-800 dark:bg-red-950 dark:text-red-300",children:[e.jsx(Oe,{className:"mt-0.5 size-3 shrink-0"}),e.jsx("span",{children:r})]}),e.jsx(k,{variant:"outline",size:"sm",onClick:i,children:"Retry"})]})]})}function ps(s){return s.length>8?"•••• "+s.slice(-4):"•••"}function ms({manifest:s,adapterId:t,isEditMode:a,values:r,botUsername:l,agentName:i}){return e.jsxs("div",{className:"space-y-3",children:[!a&&i&&e.jsxs("p",{className:"bg-accent/30 rounded-md border px-3 py-2 text-sm",children:["Messages here go to ",e.jsx("span",{className:"font-medium",children:i}),"."]}),!a&&e.jsxs("div",{className:"flex justify-between text-sm",children:[e.jsx("span",{className:"text-muted-foreground",children:"Connection ID"}),e.jsx("span",{className:"font-mono",children:t})]}),s.configFields.map(n=>{if(n.showWhen&&r[n.showWhen.field]!==n.showWhen.equals)return null;const o=String(r[n.key]??""),v=n.type==="password"?ps(o):o;return e.jsxs("div",{className:"flex justify-between text-sm",children:[e.jsx("span",{className:"text-muted-foreground",children:n.label}),e.jsx("span",{className:"max-w-[200px] truncate font-mono",children:v})]},n.key)}),l&&s.type==="telegram"&&e.jsxs("a",{href:`https://t.me/${l}`,target:"_blank",rel:"noopener noreferrer",className:"text-primary inline-flex items-center gap-1.5 text-sm underline-offset-4 hover:underline",children:["Message @",l," in Telegram"]})]})}const ye=[{value:"per-chat",label:"One shared chat per group or channel",hint:"Everyone there shares one chat with the agent."},{value:"per-user",label:"One chat per person",hint:"Each person gets their own chat, even in a group."},{value:"stateless",label:"A fresh start every message",hint:"Nothing carries over from the message before."}];function xs({agentOptions:s,agentId:t,onAgentIdChange:a,strategy:r,onStrategyChange:l}){var n;const i=s.length===1?s[0]:void 0;return m.useEffect(()=>{i&&!t&&a(i.id)},[i,t,a]),s.length===0?e.jsx("p",{role:"alert",className:"text-muted-foreground rounded-md border border-dashed px-4 py-6 text-center text-sm",children:"No agents yet. Add one from the Team page first."}):e.jsxs("div",{className:"space-y-4",children:[e.jsx("p",{className:"text-muted-foreground text-sm",children:"Messages here go to this agent."}),i?e.jsxs("div",{className:"bg-accent/30 rounded-md border px-4 py-3 text-sm",children:[e.jsx("span",{className:"font-medium",children:ge(i)})," will answer."]}):e.jsxs("div",{className:"space-y-2",children:[e.jsx(ae,{htmlFor:"wizard-agent",children:"Who should answer?"}),e.jsxs(X,{value:t,onValueChange:a,children:[e.jsx(Z,{id:"wizard-agent",className:"w-full",children:e.jsx(ee,{placeholder:"Pick an agent"})}),e.jsx(se,{children:s.map(o=>e.jsx(te,{value:o.id,children:ge(o)},o.id))})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(ae,{htmlFor:"wizard-memory",children:"How the agent remembers"}),e.jsxs(X,{value:r,onValueChange:o=>l(o),children:[e.jsx(Z,{id:"wizard-memory",className:"w-full",children:e.jsx(ee,{})}),e.jsx(se,{children:ye.map(o=>e.jsx(te,{value:o.value,children:o.label},o.value))})]}),e.jsx("p",{className:"text-muted-foreground text-xs",children:(n=ye.find(o=>o.value===r))==null?void 0:n.hint})]})]})}function gs({open:s,onOpenChange:t,title:a,content:r}){return e.jsx(_e,{open:s,onOpenChange:t,children:e.jsxs(Le,{side:"right",className:"w-[480px] overflow-y-auto sm:max-w-lg",children:[e.jsxs(Ge,{children:[e.jsxs(Ue,{className:"flex items-center gap-2",children:[e.jsx(Se,{className:"size-4"}),a," setup guide"]}),e.jsx(Qe,{children:"Step-by-step setup instructions."})]}),e.jsx("div",{className:"mt-4 px-4",children:e.jsx(Q,{content:r})})]})})}function we(s){const t=s.setupSteps;if(!t||t.length===0)return[];const a=new Set(t.flatMap(r=>r.fields));return s.configFields.filter(r=>!a.has(r.key))}function fs(s,t){return typeof t=="string"||t===void 0||t===null?t:s.valueShape==="id-list"?Array.isArray(t)?t.join(`
|
|
1
|
+
import{a1 as be,a3 as Ne,a4 as ze,j as e,bg as qe,bh as Ee,r as m,dd as ie,hR as Te,de as oe,hr as le,$ as $e,O as ce,Q as de,az as ue,T as he,U as pe,by as K,ar as J,hS as me,hT as Me,G as U,en as X,eo as Z,ep as ee,eq as se,er as te,I as re,ev as xe,J as We,bx as Ve,B as k,hU as Se,ex as De,eu as ae,x as ke,be as Pe,bd as Re,a0 as Oe,ak as ge,hV as _e,hW as Le,hX as Ge,hY as Ue,hZ as Qe,cQ as Ie,a7 as G,eY as He,eZ as Ye,e_ as Ke,e$ as Je,f0 as Xe,f1 as Ze,h_ as fe,h$ as H}from"./index-DSYz85aL.js";import{B as es}from"./use-bindings-Ci7hpEO4.js";import{M as Q}from"./markdown-content-D7t62wwm.js";import{a as ss,b as ts,c as rs}from"./use-adapter-catalog-DrDMqxhZ.js";import{u as as}from"./form-USBlP2n_.js";import{a as ns}from"./BindingDialog-JAPULq7H.js";import"./relay-trace-schemas-yWn__06J.js";function zs(s={}){const t=be(),a=Ne();return ze({mutationFn:({id:r,updates:l})=>t.updateBinding(r,l),onSuccess:()=>{a.invalidateQueries({queryKey:[...es]})},meta:s.suppressErrorToast?{suppressErrorToast:!0}:{errorLabel:s.errorLabel??"Couldn’t update that connection"}})}function is({field:s,value:t,onChange:a,error:r,allValues:l}){const[i,n]=m.useState("");if(s.showWhen&&l[s.showWhen.field]!==s.showWhen.equals)return null;const o=`config-field-${s.key}`,v=s.type==="select"&&s.displayAs==="radio-cards",h=t!=null?String(t):"",x=h==="***",y=()=>{if(x){n("");return}if(s.pattern&&h&&!new RegExp(s.pattern).test(h)){n(s.patternMessage??"Check the format");return}n("")},d=r??i;if(s.type==="boolean")return e.jsxs("div",{children:[e.jsxs(ie,{orientation:"horizontal",className:"items-center justify-between gap-4",children:[e.jsxs(Te,{className:"min-w-0",children:[e.jsxs(oe,{htmlFor:o,className:"text-sm font-medium",children:[s.label,s.required&&e.jsx("span",{"aria-hidden":"true",className:"text-destructive ml-0.5",children:"*"})]}),s.description&&e.jsx(le,{className:"text-xs",children:s.description})]}),e.jsx($e,{id:o,checked:!!t,onCheckedChange:N=>a(s.key,N)})]}),s.helpMarkdown&&e.jsxs(ce,{children:[e.jsxs(de,{className:"text-muted-foreground hover:text-foreground mt-1 flex items-center gap-1 text-xs transition-colors",children:[e.jsx(ue,{className:"size-3"}),"Where do I find this?",e.jsx(he,{className:"size-3 transition-transform [[data-state=open]_&]:rotate-180"})]}),e.jsx(pe,{children:e.jsx("div",{className:"bg-muted/50 mt-2 rounded-md border p-3",children:e.jsx(Q,{content:s.helpMarkdown,className:"text-xs"})})})]}),e.jsx(K,{children:d&&e.jsx(J.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.15},className:"overflow-hidden",children:e.jsx(me,{className:"mt-1.5",children:d})})})]});const b=()=>{var N,C;switch(s.type){case"text":case"url":return e.jsx(re,{id:o,type:s.type==="url"?"url":"text",value:h,onChange:c=>a(s.key,c.target.value),placeholder:s.placeholder,"aria-invalid":!!d||void 0,"aria-required":s.required||void 0});case"password":return x?e.jsx(xe,{id:o,value:h,showPassword:!1,onChange:c=>{a(s.key,c.target.value.trim()),i&&n("")},onFocus:()=>a(s.key,""),onBlur:y,placeholder:"Saved · type to replace"}):e.jsx(xe,{id:o,value:h,visibleByDefault:s.visibleByDefault??!1,onChange:c=>{a(s.key,c.target.value.trim()),i&&n("")},onBlur:y,onPaste:()=>setTimeout(y,0),placeholder:s.placeholder,"aria-invalid":!!d||void 0,"aria-required":s.required||void 0});case"number":return e.jsx(re,{id:o,type:"number",value:h,onChange:c=>a(s.key,c.target.value?Number(c.target.value):void 0),placeholder:s.placeholder,"aria-invalid":!!d||void 0,"aria-required":s.required||void 0});case"select":return s.displayAs==="radio-cards"?e.jsx("div",{className:"grid grid-cols-2 gap-3",role:"radiogroup","aria-labelledby":`${o}-label`,"aria-required":s.required||void 0,children:(N=s.options)==null?void 0:N.map(c=>e.jsxs("button",{type:"button",role:"radio","aria-checked":h===c.value,onClick:()=>a(s.key,c.value),className:U("hover:bg-accent/50 focus-visible:border-ring focus-visible:ring-ring flex flex-col items-start rounded-md border p-3 text-left transition outline-none focus-visible:ring-[3px]",h===c.value&&"border-primary ring-primary bg-accent/30 ring-1"),children:[e.jsx("span",{className:"text-sm font-medium",children:c.label}),c.description&&e.jsx("span",{className:"text-muted-foreground mt-1 text-xs",children:c.description})]},c.value))}):e.jsxs(X,{value:h,onValueChange:c=>a(s.key,c),children:[e.jsx(Z,{id:o,"aria-invalid":!!d||void 0,"aria-required":s.required||void 0,children:e.jsx(ee,{placeholder:s.placeholder??"Select…"})}),e.jsx(se,{children:(C=s.options)==null?void 0:C.map(c=>e.jsx(te,{value:c.value,children:c.label},c.value))})]});case"textarea":return e.jsx(Me,{id:o,value:h,onChange:c=>a(s.key,c.target.value),placeholder:s.placeholder,rows:3,"aria-invalid":!!d||void 0,"aria-required":s.required||void 0});default:return null}};return e.jsxs(ie,{children:[e.jsxs(oe,{id:`${o}-label`,htmlFor:v?void 0:o,children:[s.label,s.required&&!x&&e.jsx("span",{"aria-hidden":"true",className:"text-destructive ml-0.5",children:"*"})]}),b(),s.description&&e.jsx(le,{className:"text-xs",children:s.description}),s.helpMarkdown&&e.jsxs(ce,{children:[e.jsxs(de,{className:"text-muted-foreground hover:text-foreground mt-1 flex items-center gap-1 text-xs transition-colors",children:[e.jsx(ue,{className:"size-3"}),"Where do I find this?",e.jsx(he,{className:"size-3 transition-transform [[data-state=open]_&]:rotate-180"})]}),e.jsx(pe,{children:e.jsx("div",{className:"bg-muted/50 mt-2 rounded-md border p-3",children:e.jsx(Q,{content:s.helpMarkdown,className:"text-xs"})})})]}),e.jsx(K,{children:d&&e.jsx(J.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.15},className:"overflow-hidden",children:e.jsx(me,{children:d})})})]})}function os(s,t){return s.showWhen?t[s.showWhen.field]===s.showWhen.equals:!0}function ls({fields:s,allValues:t,renderField:a}){const r=new Map;for(const l of s){const i=l.section;r.has(i)||r.set(i,[]),r.get(i).push(l)}return e.jsx("div",{className:"space-y-6",children:Array.from(r.entries()).map(([l,i])=>{const n=i.filter(o=>os(o,t));return n.length===0?null:e.jsxs("div",{className:"space-y-3",children:[l&&e.jsx("h4",{className:"text-sm font-semibold",children:l}),e.jsx(qe,{children:e.jsx(Ee,{children:n.map(o=>a(o))})})]},l??"__default")})})}const je=["agent","configure","test","confirm"],cs={agent:"Agent",configure:"Set up",test:"Check",confirm:"Review"};function ds({current:s,showAgentStep:t}){const a=t?je:je.filter(l=>l!=="agent"),r=a.indexOf(s);return e.jsx("div",{className:"flex items-start justify-between px-1",role:"navigation","aria-label":"Setup steps",children:a.map((l,i)=>{const n=i<r,o=i===r,v=i>r;return e.jsxs(m.Fragment,{children:[i>0&&e.jsx("div",{className:U("mt-3 h-px flex-1",n||o?"bg-primary":"border-muted-foreground/40 border-t border-dashed")}),e.jsxs("div",{className:"flex flex-col items-center gap-1",children:[e.jsx("div",{className:U("flex size-6 items-center justify-center rounded-full text-xs font-medium",n&&"bg-primary text-primary-foreground",o&&"bg-primary text-primary-foreground ring-primary/30 ring-2",v&&"border-muted-foreground text-muted-foreground border"),"aria-current":o?"step":void 0,children:n?e.jsx(We,{className:"size-3"}):i+1}),e.jsx("span",{className:U("text-3xs",o?"text-foreground font-medium":"text-muted-foreground"),children:cs[l]})]})]},l)})})}function us({manifest:s,label:t,onLabelChange:a,fields:r,form:l,currentSetupStep:i,hasSetupGuide:n,onOpenGuide:o}){const{Subscribe:v,AppField:h}=l;return e.jsxs("div",{className:"space-y-4",children:[s.setupInstructions&&e.jsxs("div",{className:"flex gap-2 rounded-md border border-blue-200 bg-blue-50 p-3 text-sm text-blue-800 dark:border-blue-800 dark:bg-blue-950 dark:text-blue-200",children:[e.jsx(Ve,{className:"mt-0.5 size-4 shrink-0"}),e.jsx(Q,{content:s.setupInstructions,className:"text-sm text-blue-800 dark:text-blue-200"})]}),(s.actionButton||n)&&e.jsxs("div",{className:"flex items-center justify-end gap-2",children:[n&&e.jsxs(k,{type:"button",variant:"outline",size:"sm",onClick:o,children:[e.jsx(Se,{className:"mr-1.5 size-3.5"}),"Setup guide"]}),s.actionButton&&e.jsx(k,{asChild:!0,type:"button",variant:"outline",size:"sm",children:e.jsx(De,{href:s.actionButton.url,children:s.actionButton.label})})]}),i&&e.jsx("h4",{className:"text-sm font-medium",children:i.title}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(ae,{htmlFor:"adapter-label",children:"Name (optional)"}),e.jsx(re,{id:"adapter-label",placeholder:s.displayName,value:t,onChange:x=>a(x.target.value)}),e.jsx("p",{className:"text-muted-foreground text-xs",children:"Helps you tell this connection apart."})]}),e.jsx(v,{selector:x=>x.values,children:x=>e.jsx(ls,{fields:r,allValues:x,renderField:y=>e.jsx(h,{name:y.key,children:d=>{var b;return e.jsx(is,{field:y,value:d.state.value,onChange:(N,C)=>d.handleChange(C),onBlur:d.handleBlur,error:d.state.meta.isTouched?(b=d.state.meta.errors[0])==null?void 0:b.toString():void 0,allValues:x})}},y.key)})})]})}function hs({isPending:s,isSuccess:t,isError:a,errorMessage:r,botUsername:l,onRetry:i}){return e.jsxs("div",{className:"flex flex-col items-center gap-3 py-6",children:[s&&e.jsxs(e.Fragment,{children:[e.jsx(ke,{size:"lg",className:"text-muted-foreground"}),e.jsx("p",{className:"text-muted-foreground text-sm",children:"Trying to reach it…"})]}),t&&e.jsxs("div",{className:"flex flex-col items-center gap-2",children:[e.jsx(Pe,{className:"text-status-success size-8"}),e.jsx("p",{className:"text-status-success-fg text-sm",children:"Reachable"}),l&&e.jsx("div",{className:"flex items-center gap-2 rounded-md border px-3 py-2 text-sm",children:e.jsxs("span",{className:"font-mono",children:["@",l]})})]}),a&&e.jsxs(e.Fragment,{children:[e.jsx(Re,{className:"text-destructive size-8"}),e.jsx("p",{className:"text-destructive text-sm",children:"Not reachable"}),r&&e.jsxs("div",{className:"flex items-start gap-2 rounded-md border border-red-200 bg-red-50 p-3 text-xs text-red-700 dark:border-red-800 dark:bg-red-950 dark:text-red-300",children:[e.jsx(Oe,{className:"mt-0.5 size-3 shrink-0"}),e.jsx("span",{children:r})]}),e.jsx(k,{variant:"outline",size:"sm",onClick:i,children:"Retry"})]})]})}function ps(s){return s.length>8?"•••• "+s.slice(-4):"•••"}function ms({manifest:s,adapterId:t,isEditMode:a,values:r,botUsername:l,agentName:i}){return e.jsxs("div",{className:"space-y-3",children:[!a&&i&&e.jsxs("p",{className:"bg-accent/30 rounded-md border px-3 py-2 text-sm",children:["Messages here go to ",e.jsx("span",{className:"font-medium",children:i}),"."]}),!a&&e.jsxs("div",{className:"flex justify-between text-sm",children:[e.jsx("span",{className:"text-muted-foreground",children:"Connection ID"}),e.jsx("span",{className:"font-mono",children:t})]}),s.configFields.map(n=>{if(n.showWhen&&r[n.showWhen.field]!==n.showWhen.equals)return null;const o=String(r[n.key]??""),v=n.type==="password"?ps(o):o;return e.jsxs("div",{className:"flex justify-between text-sm",children:[e.jsx("span",{className:"text-muted-foreground",children:n.label}),e.jsx("span",{className:"max-w-[200px] truncate font-mono",children:v})]},n.key)}),l&&s.type==="telegram"&&e.jsxs("a",{href:`https://t.me/${l}`,target:"_blank",rel:"noopener noreferrer",className:"text-primary inline-flex items-center gap-1.5 text-sm underline-offset-4 hover:underline",children:["Message @",l," in Telegram"]})]})}const ye=[{value:"per-chat",label:"One shared chat per group or channel",hint:"Everyone there shares one chat with the agent."},{value:"per-user",label:"One chat per person",hint:"Each person gets their own chat, even in a group."},{value:"stateless",label:"A fresh start every message",hint:"Nothing carries over from the message before."}];function xs({agentOptions:s,agentId:t,onAgentIdChange:a,strategy:r,onStrategyChange:l}){var n;const i=s.length===1?s[0]:void 0;return m.useEffect(()=>{i&&!t&&a(i.id)},[i,t,a]),s.length===0?e.jsx("p",{role:"alert",className:"text-muted-foreground rounded-md border border-dashed px-4 py-6 text-center text-sm",children:"No agents yet. Add one from the Team page first."}):e.jsxs("div",{className:"space-y-4",children:[e.jsx("p",{className:"text-muted-foreground text-sm",children:"Messages here go to this agent."}),i?e.jsxs("div",{className:"bg-accent/30 rounded-md border px-4 py-3 text-sm",children:[e.jsx("span",{className:"font-medium",children:ge(i)})," will answer."]}):e.jsxs("div",{className:"space-y-2",children:[e.jsx(ae,{htmlFor:"wizard-agent",children:"Who should answer?"}),e.jsxs(X,{value:t,onValueChange:a,children:[e.jsx(Z,{id:"wizard-agent",className:"w-full",children:e.jsx(ee,{placeholder:"Pick an agent"})}),e.jsx(se,{children:s.map(o=>e.jsx(te,{value:o.id,children:ge(o)},o.id))})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(ae,{htmlFor:"wizard-memory",children:"How the agent remembers"}),e.jsxs(X,{value:r,onValueChange:o=>l(o),children:[e.jsx(Z,{id:"wizard-memory",className:"w-full",children:e.jsx(ee,{})}),e.jsx(se,{children:ye.map(o=>e.jsx(te,{value:o.value,children:o.label},o.value))})]}),e.jsx("p",{className:"text-muted-foreground text-xs",children:(n=ye.find(o=>o.value===r))==null?void 0:n.hint})]})]})}function gs({open:s,onOpenChange:t,title:a,content:r}){return e.jsx(_e,{open:s,onOpenChange:t,children:e.jsxs(Le,{side:"right",className:"w-[480px] overflow-y-auto sm:max-w-lg",children:[e.jsxs(Ge,{children:[e.jsxs(Ue,{className:"flex items-center gap-2",children:[e.jsx(Se,{className:"size-4"}),a," setup guide"]}),e.jsx(Qe,{children:"Step-by-step setup instructions."})]}),e.jsx("div",{className:"mt-4 px-4",children:e.jsx(Q,{content:r})})]})})}function we(s){const t=s.setupSteps;if(!t||t.length===0)return[];const a=new Set(t.flatMap(r=>r.fields));return s.configFields.filter(r=>!a.has(r.key))}function fs(s,t){return typeof t=="string"||t===void 0||t===null?t:s.valueShape==="id-list"?Array.isArray(t)?t.join(`
|
|
2
2
|
`):t:s.valueShape==="json-object"&&typeof t=="object"?JSON.stringify(t,null,2):t}function js(s,t){const a=s.setupSteps;if(!a||a.length===0)return s.configFields;const r=a[t];if(!r)return s.configFields;const l=s.configFields.filter(i=>r.fields.includes(i.key));return t!==a.length-1?l:[...l,...we(s)]}const ys="Advanced";function Y(s){const t={};for(const[a,r]of Object.entries(s)){const l=a.split(".");let i=t;for(let n=0;n<l.length-1;n++){const o=l[n];(!(o in i)||typeof i[o]!="object"||i[o]===null)&&(i[o]={}),i=i[o]}i[l[l.length-1]]=r}return t}function ve(s,t){const a=t.split(".");let r=s;for(const l of a){if(r==null||typeof r!="object")return;r=r[l]}return r}function vs(s,t){const a={};for(const r of s.configFields){const l=t?ve(t,r.key):void 0;l!==void 0&&r.type!=="password"?a[r.key]=fs(r,l):r.type==="password"&&t&&ve(t,r.key)!==void 0?a[r.key]="***":r.default!==void 0?a[r.key]=r.default:a[r.key]=r.type==="boolean"?!1:""}return a}function bs(s,t=[]){const a=s.type;if(!t.includes(a))return a;let r=2;for(;t.includes(`${a}-${r}`);)r++;return`${a}-${r}`}function Ns({manifest:s,existingInstance:t,existingAdapterIds:a=[],onOpenChange:r}){const l=!!t,[i,n]=m.useState(t?"configure":"agent"),[o,v]=m.useState(!1),[h]=m.useState(()=>(t==null?void 0:t.id)??bs(s,a)),[x,y]=m.useState(()=>{var p;return((p=t==null?void 0:t.config)==null?void 0:p.label)??""}),[d,b]=m.useState(0),[N,C]=m.useState(""),[c,P]=m.useState(""),[$,R]=m.useState("per-chat"),E=ss(),z=ts(),S=rs(),M=ns(),{data:F}=Ie(),w=be(),q=Ne(),T=(F==null?void 0:F.agents)??[],B=s.setupSteps&&s.setupSteps.length>0,j=as({defaultValues:vs(s,t==null?void 0:t.config),validators:{onSubmit:({value:p})=>{const g={};for(const u of s.configFields)if(!(u.showWhen&&p[u.showWhen.field]!==u.showWhen.equals)&&u.required){const f=p[u.key];(f==null||f==="")&&(g[u.key]=`${u.label} is required`)}return Object.keys(g).length>0?{fields:g}:void 0}},onSubmit:async()=>{}}),W=m.useMemo(()=>{const p=new Set(we(s).map(g=>g.key));return js(s,d).map(g=>p.has(g.key)&&!g.section?{...g,section:ys}:g)},[s,d]),O=m.useCallback(()=>{const p=j.state.values;let g=!0;for(const u of W)if(!(u.showWhen&&p[u.showWhen.field]!==u.showWhen.equals)&&u.required){const f=p[u.key];(f==null||f==="")&&(j.setFieldMeta(u.key,A=>({...A,isTouched:!0,errors:[`${u.label} is required`],errorMap:{onSubmit:`${u.label} is required`}})),g=!1)}return g},[j,W]),_=m.useCallback(()=>{if(i==="agent"){if(!c)return;n("configure");return}if(i==="configure"){if(!O())return;if(B&&s.setupSteps&&d<s.setupSteps.length-1){b(u=>u+1);return}const g=j.state.values;n("test"),S.mutate({type:s.type,config:Y(g)},{onSuccess:u=>{u.botUsername&&(C(u.botUsername),x||y(`@${u.botUsername}`))}})}else i==="test"&&n("confirm")},[i,c,B,s,d,O,j,S,x]),V=m.useCallback(()=>{i==="test"?(n("configure"),S.reset()):i==="confirm"?n("test"):i==="configure"&&(B&&d>0?b(p=>p-1):l||n("agent"))},[i,B,d,S,l]),D=m.useCallback(async p=>{try{return await w.removeRelayAdapter(p),!0}catch{return!1}finally{q.invalidateQueries({queryKey:["relay"]})}},[w,q]),I=m.useCallback(()=>{const p=j.state.values,g=Y(p),u=x?{...g,label:x}:g;if(l&&t){z.mutate({id:t.id,config:u},{onSuccess:()=>r(!1)});return}if(!c){n("agent");return}E.mutate({type:s.type,id:h,config:u},{onSuccess:()=>{M.mutate({adapterId:h,agentId:c,sessionStrategy:$,label:""},{onSuccess:()=>{var A;const f=((A=T.find(L=>L.id===c))==null?void 0:A.name)??c;G.success(`${s.displayName} is connected`,{description:`Messages here go to ${f}.`}),r(!1)},onError:f=>{n("agent"),D(h).then(A=>{A?G.error("Nothing was set up",{description:`${s.displayName} couldn’t be linked to an agent, so it wasn’t saved. ${f.message}`}):G.error("Couldn’t finish undoing",{description:`${s.displayName} was added with no agent to answer it. Remove it from Messaging. ${f.message}`})})}})},onError:f=>{var A,L,ne;(A=f.message)!=null&&A.includes("timed out")?G.error(`Couldn’t reach ${s.displayName}`,{description:"Check your token and network, then try again."}):((L=f.message)!=null&&L.includes("duplicate")||(ne=f.message)!=null&&ne.includes("exists"))&&(n("configure"),b(0))}})},[j,l,t,z,E,M,s,h,x,c,$,T,D,r]),Ce=m.useCallback(p=>{p||(n(l?"configure":"agent"),b(0),y(""),C(""),P(""),R("per-chat"),v(!1),j.reset(),S.reset()),r(p)},[r,j,S,l]),Ae=m.useCallback(()=>{S.mutate({type:s.type,config:Y(j.state.values)})},[S,s.type,j]),Fe=E.isPending||z.isPending||M.isPending,Be=B&&s.setupSteps?s.setupSteps[d]:void 0;return{step:i,isEditMode:l,adapterId:h,label:x,setLabel:y,botUsername:N,guideOpen:o,setGuideOpen:v,form:j,visibleFields:W,bindAgentId:c,setBindAgentId:P,bindStrategy:$,setBindStrategy:R,agentOptions:T,isSaving:Fe,hasSetupSteps:B,setupStepIndex:d,currentSetupStep:Be,testConnection:S,handleContinue:_,handleBack:V,handleSave:I,handleOpenChange:Ce,handleRetryTest:Ae}}function qs({open:s,onOpenChange:t,manifest:a,existingInstance:r,existingAdapterIds:l=[]}){var _;const i=Ns({manifest:a,existingInstance:r,existingAdapterIds:l,onOpenChange:t}),{step:n,isEditMode:o,adapterId:v,label:h,setLabel:x,botUsername:y,guideOpen:d,setGuideOpen:b,form:N,visibleFields:C,bindAgentId:c,setBindAgentId:P,bindStrategy:$,setBindStrategy:R,agentOptions:E,isSaving:z,hasSetupSteps:S,setupStepIndex:M,currentSetupStep:F,testConnection:w,handleContinue:q,handleBack:T,handleSave:B,handleOpenChange:j,handleRetryTest:W}=i,O={agent:"Pick who answers messages here.",configure:(F==null?void 0:F.description)??"Fill in the settings this needs.",test:"Checking the connection…",confirm:"Check it over, then save."}[n];return e.jsxs(m.Fragment,{children:[e.jsx(He,{open:s,onOpenChange:j,children:e.jsxs(Ye,{className:"flex max-h-[85vh] max-w-lg flex-col",children:[e.jsxs(Ke,{children:[e.jsx(Je,{children:o?`Edit ${a.displayName}`:`Add ${a.displayName}`}),e.jsx(Xe,{children:O})]}),e.jsxs("div",{className:"min-h-0 space-y-4 overflow-y-auto py-2",children:[e.jsx(ds,{current:n,showAgentStep:!o}),e.jsx(K,{mode:"wait",children:e.jsxs(J.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},children:[n==="agent"&&e.jsx(xs,{agentOptions:E,agentId:c,onAgentIdChange:P,strategy:$,onStrategyChange:R}),n==="configure"&&e.jsx(us,{manifest:a,label:h,onLabelChange:x,fields:C,form:N,currentSetupStep:F,hasSetupGuide:!!a.setupGuide,onOpenGuide:()=>b(!0)}),n==="test"&&e.jsx(hs,{isPending:w.isPending,isSuccess:w.isSuccess,isError:w.isError,errorMessage:(_=w.error)==null?void 0:_.message,botUsername:y,onRetry:W}),n==="confirm"&&e.jsx(N.Subscribe,{selector:V=>V.values,children:V=>{var D;return e.jsx(ms,{manifest:a,adapterId:v,isEditMode:o,values:V,botUsername:y,agentName:((D=E.find(I=>I.id===c))==null?void 0:D.name)||c})}})]},n)})]}),e.jsxs(Ze,{className:"flex items-center justify-between sm:justify-between",children:[e.jsxs("div",{children:[(n==="test"||n==="confirm")&&e.jsxs(k,{variant:"ghost",onClick:T,disabled:z,children:[e.jsx(fe,{className:"mr-1 size-4"}),"Back"]}),n==="configure"&&(S?M>0:!o)&&e.jsxs(k,{variant:"ghost",onClick:T,children:[e.jsx(fe,{className:"mr-1 size-4"}),"Back"]})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(k,{variant:"outline",onClick:()=>j(!1),children:"Cancel"}),n==="agent"&&e.jsxs(k,{onClick:q,disabled:!c,children:["Continue",e.jsx(H,{className:"ml-1 size-4"})]}),n==="configure"&&e.jsxs(k,{onClick:q,children:["Continue",e.jsx(H,{className:"ml-1 size-4"})]}),n==="test"&&!w.isPending&&!w.isSuccess&&e.jsx(k,{variant:"ghost",onClick:q,children:"Skip"}),n==="test"&&w.isSuccess&&e.jsxs(k,{onClick:q,children:["Continue",e.jsx(H,{className:"ml-1 size-4"})]}),n==="confirm"&&e.jsxs(k,{onClick:B,disabled:z,children:[z&&e.jsx(ke,{className:"mr-2"}),o?"Save changes":"Connect"]})]})]})]})}),a.setupGuide&&e.jsx(gs,{open:d,onOpenChange:b,title:a.displayName,content:a.setupGuide})]})}export{qs as A,zs as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ai as m,j as s,aj as c,ak as x,J as u,G as d}from"./index-
|
|
1
|
+
import{ai as m,j as s,aj as c,ak as x,J as u,G as d}from"./index-DSYz85aL.js";function j({agent:e,name:t,secondary:a,trailing:n,selected:i,className:r}){const{color:o,emoji:l}=m(e);return s.jsxs("div",{className:d("flex w-full min-w-0 items-center gap-2",r),children:[s.jsx(c,{color:o,emoji:l,size:"xs",className:"shrink-0"}),s.jsx("span",{className:"min-w-[8ch] flex-auto truncate text-sm font-medium",children:t??x(e)}),a!=null&&s.jsx("span",{"data-slot":"agent-option-row-secondary",className:"text-muted-foreground min-w-0 shrink truncate text-xs",children:a}),n??(i&&s.jsx(u,{className:"size-4 shrink-0","aria-hidden":!0}))]})}export{j as A};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as l,ad as h,j as e,ae as j,af as g,ag as b,ah as v,ai as w,aj as N,ak as p,al as C,G as y,am as k}from"./index-
|
|
1
|
+
import{r as l,ad as h,j as e,ae as j,af as g,ag as b,ah as v,ai as w,aj as N,ak as p,al as C,G as y,am as k}from"./index-DSYz85aL.js";import{C as A,a as S,b as D,c as E,d as P,e as L}from"./command-CxjTPW0z.js";import{A as R}from"./AgentOptionRow-CtdBmX9G.js";function u({agents:n,value:t,onSelect:a}){return e.jsxs(A,{children:[e.jsx(S,{placeholder:"Search agents…"}),e.jsxs(D,{className:"!max-h-60 !overflow-y-auto",children:[e.jsx(E,{children:"No agents found."}),e.jsx(P,{children:n.map(s=>e.jsx(L,{value:`${p(s)} ${s.name} ${s.projectPath}`,onSelect:()=>a(s.id),children:e.jsx(R,{agent:s,secondary:k(s.projectPath),selected:s.id===t})},s.id))})]})]})}function x({selectedAgent:n,open:t,onClick:a}){const s=n?w(n):null;return e.jsxs("button",{type:"button","aria-expanded":t,"aria-haspopup":"listbox",className:y("border-input ring-offset-background flex h-9 w-full items-center justify-between rounded-md border bg-transparent px-3 py-2 text-sm shadow-xs transition-colors","focus-visible:ring-ring focus-visible:ring-1 focus-visible:outline-none","hover:bg-accent/50"),onClick:a,children:[n?e.jsxs("span",{className:"flex items-center gap-2 truncate",children:[e.jsx(N,{color:s.color,emoji:s.emoji,size:"xs"}),e.jsx("span",{className:"truncate",children:p(n)})]}):e.jsx("span",{className:"text-muted-foreground",children:"Select an agent…"}),e.jsx(C,{className:"ml-2 size-4 shrink-0 opacity-50"})]})}function $({agents:n,value:t,onValueChange:a}){const[s,o]=l.useState(!1),i=h(),c=l.useRef(null);l.useEffect(()=>{if(!s||i)return;function r(f){c.current&&!c.current.contains(f.target)&&o(!1)}return document.addEventListener("mousedown",r),()=>document.removeEventListener("mousedown",r)},[s,i]);const d=n.find(r=>r.id===t);function m(r){a(r===t?void 0:r),o(!1)}return n.length===0?e.jsxs("div",{className:"rounded-md border px-4 py-6 text-center",children:[e.jsx("p",{className:"text-muted-foreground text-sm",children:"No agents yet"}),e.jsx("p",{className:"text-muted-foreground mt-1 text-xs",children:"Add one from the Team page to give it tasks."})]}):i?e.jsxs(e.Fragment,{children:[e.jsx(x,{selectedAgent:d,open:s,onClick:()=>o(!0)}),e.jsx(j,{open:s,onOpenChange:o,children:e.jsxs(g,{children:[e.jsx(b,{children:e.jsx(v,{children:"Select an agent"})}),e.jsx("div",{className:"px-4 pb-4",children:e.jsx(u,{agents:n,value:t,onSelect:m})})]})})]}):e.jsxs("div",{ref:c,className:"relative w-full",children:[e.jsx(x,{selectedAgent:d,open:s,onClick:()=>o(r=>!r)}),s&&e.jsx("div",{className:"bg-popover text-popover-foreground absolute top-full left-0 z-50 mt-1 w-full rounded-md border shadow-md",children:e.jsx(u,{agents:n,value:t,onSelect:m})})]})}export{$ as A};
|