dorkos 0.126.1 → 0.126.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 +132 -39
- package/dist/browser/native/package-manifest.json +1 -1
- package/dist/browser/source-manifest.json +1 -1
- package/dist/client/assets/{AboutPage-DNd3mwur.js → AboutPage-ycWTfXI8.js} +1 -1
- package/dist/client/assets/{ActivityErrorState-BlEsDhu6.js → ActivityErrorState-DBecAo4-.js} +1 -1
- package/dist/client/assets/{ActivityPage-pJWfDAtq.js → ActivityPage-CGuIeDGm.js} +1 -1
- package/dist/client/assets/{ActivityRow-DcMyqIbt.js → ActivityRow-BRiUvjHA.js} +1 -1
- package/dist/client/assets/{AdapterIcon-DQGwQ4aw.js → AdapterIcon-z6z9LKwd.js} +1 -1
- package/dist/client/assets/{AdapterSetupWizard-ClTTFSN8.js → AdapterSetupWizard-Cp56Zx24.js} +1 -1
- package/dist/client/assets/{AgentOptionRow-CHrQXa04.js → AgentOptionRow-BLuSwpNh.js} +1 -1
- package/dist/client/assets/{AgentPicker-BlEBEkwu.js → AgentPicker-DazquIgR.js} +1 -1
- package/dist/client/assets/{AgentRequestCard-MwbVsmZC.js → AgentRequestCard-BoRmxLKy.js} +1 -1
- package/dist/client/assets/{AppearancePage-C2aq_s3x.js → AppearancePage-BMiVpe48.js} +1 -1
- package/dist/client/assets/{ApplyToOverridesDialog-DZOUEUaq.js → ApplyToOverridesDialog-BHIrnfPf.js} +1 -1
- package/dist/client/assets/{AttentionSignalRow-BlaPCr09.js → AttentionSignalRow-CjN8lCWI.js} +1 -1
- package/dist/client/assets/{BaseTanStackRouterDevtoolsPanel-B-iktbLX-DdbD6Zvu.js → BaseTanStackRouterDevtoolsPanel-B-iktbLX-BMBnO0fv.js} +1 -1
- package/dist/client/assets/{BindingDialog-Cx-Ivbp4.js → BindingDialog-Bw55sMTh.js} +1 -1
- package/dist/client/assets/{BlintzCanvas-Dk4R-tRN.js → BlintzCanvas-Dd3bC9vw.js} +3 -3
- package/dist/client/assets/{CanvasCsvContent-B8JYLp4U.js → CanvasCsvContent-B2S75f6B.js} +1 -1
- package/dist/client/assets/{CanvasFileContent-DAjXJnQu.js → CanvasFileContent-CVSfg4MO.js} +2 -2
- package/dist/client/assets/{CanvasModel3dContent-DdF3BtnR.js → CanvasModel3dContent-CNmJsBTS.js} +2 -2
- package/dist/client/assets/{ChannelComposer-R4MqXxIw.js → ChannelComposer-7KpffyFv.js} +3 -3
- package/dist/client/assets/{ChatAppsOff-lfRbITbe.js → ChatAppsOff-D7anOG3n.js} +1 -1
- package/dist/client/assets/{CodeMirrorDiff-q-jovmzx.js → CodeMirrorDiff-CfOmRCky.js} +1 -1
- package/dist/client/assets/{CodeMirrorEditor-C7xgL8qE.js → CodeMirrorEditor-Cyz227_1.js} +1 -1
- package/dist/client/assets/{CommitmentList-gaA4uwIz.js → CommitmentList-DKo1Fb1A.js} +1 -1
- package/dist/client/assets/{CommitmentsPage-BJSRJ2-C.js → CommitmentsPage-DIcEZ2ka.js} +1 -1
- package/dist/client/assets/{ComputerResourceView-CrT_C0XS.js → ComputerResourceView-Ck7rJ-SP.js} +1 -1
- package/dist/client/assets/{ComputerViewer-DnD5bw95.js → ComputerViewer-Dw_VpNjD.js} +1 -1
- package/dist/client/assets/{ConnectionAccessLists-B0ZoSb-o.js → ConnectionAccessLists-CETLVH7o.js} +1 -1
- package/dist/client/assets/{ConnectionsPage-D0UCC0lO.js → ConnectionsPage-ZVWDffcl.js} +1 -1
- package/dist/client/assets/{ConventionPage-BN6W7-LW.js → ConventionPage-DkJ91wrN.js} +1 -1
- package/dist/client/assets/{ExtensionPageRoute-BiTCSGKw.js → ExtensionPageRoute-FbJo1Qc0.js} +1 -1
- package/dist/client/assets/{FloatingTanStackRouterDevtools-CqogiFob-Bodk_Y7V.js → FloatingTanStackRouterDevtools-CqogiFob-DCLR3iKw.js} +1 -1
- package/dist/client/assets/{ForwardConsentHost-CgfhSAU6.js → ForwardConsentHost-Buy5XlH7.js} +1 -1
- package/dist/client/assets/HandlePage-CByGC3B8.js +1 -0
- package/dist/client/assets/{HeartbeatPage-D1G1-DHk.js → HeartbeatPage-GXBEcZoJ.js} +1 -1
- package/dist/client/assets/{KeyEntry-4udAjn0w.js → KeyEntry-g2VQ33KW.js} +1 -1
- package/dist/client/assets/{LexicalField-gOrkh_4N.js → LexicalField-CLd77PuB.js} +1 -1
- package/dist/client/assets/{ManagesPage-B-RoT8ya.js → ManagesPage-qCwzJ4Cx.js} +1 -1
- package/dist/client/assets/{Marketplace-B_NBPebW.js → Marketplace-DdkdIVPQ.js} +1 -1
- package/dist/client/assets/{MarketplaceSourcesView-DY3WqXwE.js → MarketplaceSourcesView-D44G21ff.js} +1 -1
- package/dist/client/assets/{McpAppFrame-D7EnUa4z.js → McpAppFrame-DVNWJHrn.js} +1 -1
- package/dist/client/assets/{McpSigninBody-BUUEs-bT.js → McpSigninBody-BO0OkvOw.js} +1 -1
- package/dist/client/assets/{Model3dViewer-cLheCoqc.js → Model3dViewer-Cvcyx2yv.js} +1 -1
- package/dist/client/assets/NamePage-5VUtswMH.js +1 -0
- package/dist/client/assets/{NewDirectMessageMenu-ok_-eb2s.js → NewDirectMessageMenu-C_hXtliM.js} +1 -1
- package/dist/client/assets/{NotificationsPage-D-8cloSV.js → NotificationsPage-DP4HAVMA.js} +1 -1
- package/dist/client/assets/{OpenMeshSwitch-D_qdw4sU.js → OpenMeshSwitch-0Mkl8abo.js} +1 -1
- package/dist/client/assets/{OperatorIdentityForm-ClEW_TUR.js → OperatorIdentityForm-BRftJqRq.js} +1 -1
- package/dist/client/assets/{PermissionHistory-CYOX0EOM.js → PermissionHistory-Czl5PWN3.js} +1 -1
- package/dist/client/assets/{PermissionsPage-ah-JDHZr.js → PermissionsPage-DAsbrl6Q.js} +1 -1
- package/dist/client/assets/{PersonalityPopover-Ciu5HC-v.js → PersonalityPopover-liTJ0Lns.js} +1 -1
- package/dist/client/assets/PhotoPage-DDcbiGjb.js +1 -0
- package/dist/client/assets/{PreviewRefusedNotice-BxhPcov8.js → PreviewRefusedNotice-DcD1EY2c.js} +1 -1
- package/dist/client/assets/{ProfileFields-BuIUDvpL.js → ProfileFields-Bi_AfHOE.js} +1 -1
- package/dist/client/assets/{ProfilePanelContainer-BFeuTypW.js → ProfilePanelContainer-BIbOulLu.js} +1 -1
- package/dist/client/assets/{ProfileRolePicker-Be4vB80d.js → ProfileRolePicker-BadkFi4V.js} +1 -1
- package/dist/client/assets/{PromptSuggestionChips-bZ_zHQ5j.js → PromptSuggestionChips-C653MlaU.js} +1 -1
- package/dist/client/assets/{ReportsToPopover-BqVUWSAd.js → ReportsToPopover-dIbt6aes.js} +1 -1
- package/dist/client/assets/{RoomSurface-DSjUeoAV.js → RoomSurface-CssMcozl.js} +1 -1
- package/dist/client/assets/{RoomsPage-YtoZPygh.js → RoomsPage-CxwTRRNu.js} +1 -1
- package/dist/client/assets/{RunsOnPopover-BxTUZpOj.js → RunsOnPopover-lp8n4lgI.js} +1 -1
- package/dist/client/assets/{RuntimeConnectFlow-DdhsdAJI.js → RuntimeConnectFlow-BAqkzthF.js} +1 -1
- package/dist/client/assets/{RuntimeSetupDialog-BrSBwG4u.js → RuntimeSetupDialog-E6f7Rd2W.js} +1 -1
- package/dist/client/assets/{SeenDevices-CJ4v3o5k.js → SeenDevices-xdR3YQNr.js} +1 -1
- package/dist/client/assets/{SessionsPage-TT3p1ADx.js → SessionsPage-BNZTufty.js} +1 -1
- package/dist/client/assets/{SettingsDialog-CV24vMhr.js → SettingsDialog-d7SQTDNy.js} +1 -1
- package/dist/client/assets/{SkillsPage-DMoOe_ed.js → SkillsPage-DiqUOZup.js} +1 -1
- package/dist/client/assets/{TaskDialogWrapper-Df3Su6Ao.js → TaskDialogWrapper-5gb-f-Uo.js} +1 -1
- package/dist/client/assets/{TasksEmptyState-Bno8iZfM.js → TasksEmptyState-g-CavcMv.js} +1 -1
- package/dist/client/assets/{TasksPage-Cml1MQA0.js → TasksPage-BexV_pxB.js} +1 -1
- package/dist/client/assets/{TeamComputerEntry-DqZRmbw6.js → TeamComputerEntry-BFYqGL-G.js} +1 -1
- package/dist/client/assets/{ToolsPage-7ltzJ0Tl.js → ToolsPage-Dxt6qOdF.js} +1 -1
- package/dist/client/assets/{TopologyGraph-B2LvNaci.js → TopologyGraph-Cx_6gdbV.js} +1 -1
- package/dist/client/assets/{TourHost-D0yftrMH.js → TourHost-DvAjpsug.js} +1 -1
- package/dist/client/assets/{UnlinkDialog-Bo_AjY1w.js → UnlinkDialog-fgubvOUd.js} +1 -1
- package/dist/client/assets/{UnreadDivider-WmPtKB4_.js → UnreadDivider-BoLcTO_Z.js} +1 -1
- package/dist/client/assets/{WidgetErrorCard-CPcqdG0j.js → WidgetErrorCard-CgRMeAEO.js} +1 -1
- package/dist/client/assets/{WithheldExtensionsNotice-pF93YZXc.js → WithheldExtensionsNotice-CFHBDyIh.js} +1 -1
- package/dist/client/assets/{WorkView-hgkQKS3s.js → WorkView-5jzcnod5.js} +1 -1
- package/dist/client/assets/{_shell-BrV7uqZF.js → _shell-DFfXd1ys.js} +1 -1
- package/dist/client/assets/{_shell._home-geuB-5H5.js → _shell._home-D2GJeGbi.js} +1 -1
- package/dist/client/assets/{_shell._home.activity-DPVZ1nh6.js → _shell._home.activity-DRXBBtAq.js} +1 -1
- package/dist/client/assets/{_shell._home.index-TWvjPAWy.js → _shell._home.index-CA_GnaUK.js} +1 -1
- package/dist/client/assets/{_shell._home.tasks-ZXMaDkUK.js → _shell._home.tasks-Cr4gak8T.js} +1 -1
- package/dist/client/assets/{_shell._home.workspaces-Df9guoYs.js → _shell._home.workspaces-DbWciI1g.js} +1 -1
- package/dist/client/assets/{_shell.channels-Bpp1mkMp.js → _shell.channels-C31Txlqh.js} +1 -1
- package/dist/client/assets/{_shell.connections-BPwFAyOF.js → _shell.connections-gfevZyC-.js} +1 -1
- package/dist/client/assets/{_shell.feedback-requests-BpBQUL2J.js → _shell.feedback-requests-CQc7aVrV.js} +1 -1
- package/dist/client/assets/_shell.marketplace-BepG1fJe.js +1 -0
- package/dist/client/assets/_shell.marketplace_.sources-BBQESbqU.js +1 -0
- package/dist/client/assets/_shell.session-DzeI9YIK.js +1 -0
- package/dist/client/assets/{_shell.team-IhRAcCx5.js → _shell.team-BlLU5BMC.js} +3 -3
- package/dist/client/assets/{_shell.threads-g5dMzDb-.js → _shell.threads-YmF9dQnZ.js} +1 -1
- package/dist/client/assets/_shell.x._extensionId-ByRocZjS.js +1 -0
- package/dist/client/assets/_shell.x._extensionId_._-ByRocZjS.js +1 -0
- package/dist/client/assets/{abnfDiagram-WEYOIA3C-DMyEQ0uA.js → abnfDiagram-WEYOIA3C-DLiXaMmC.js} +1 -1
- package/dist/client/assets/{access-copy-BPHkp17T.js → access-copy-xWnaUps1.js} +1 -1
- package/dist/client/assets/{arc-Bick8t6f.js → arc-AndXXvZc.js} +1 -1
- package/dist/client/assets/{architectureDiagram-ZHVYKT53-RFf4UrPQ.js → architectureDiagram-ZHVYKT53-CM4tGveM.js} +1 -1
- package/dist/client/assets/{banner-7ifL3s-E.js → banner-BH1gXPTc.js} +1 -1
- package/dist/client/assets/{blockDiagram-RJAE7QA3-D1AK_MVZ.js → blockDiagram-RJAE7QA3-DenkdFXV.js} +1 -1
- package/dist/client/assets/{c4Diagram-XDPPPE54-ljhZv1XJ.js → c4Diagram-XDPPPE54-DMAlFuoX.js} +1 -1
- package/dist/client/assets/{card-Dv_Aomu3.js → card-TbpEl6EH.js} +1 -1
- package/dist/client/assets/channel-5-dQamNX.js +1 -0
- package/dist/client/assets/{chunk-2E7WHVMD-DbW34T1y.js → chunk-2E7WHVMD-u0q5vCEc.js} +1 -1
- package/dist/client/assets/{chunk-2Q5K7J3B-2rza71Au.js → chunk-2Q5K7J3B-DBTggfjR.js} +1 -1
- package/dist/client/assets/{chunk-4EMNKR2T-B4wdt-9S.js → chunk-4EMNKR2T-zu55wq-c.js} +1 -1
- package/dist/client/assets/{chunk-55XCU76K-CdGphgDA.js → chunk-55XCU76K-XLIA3Qss.js} +1 -1
- package/dist/client/assets/{chunk-5VM5RSS4-B4YPDQYw.js → chunk-5VM5RSS4-DmGjbtZg.js} +1 -1
- package/dist/client/assets/{chunk-JWPE2WC7-CwQLcazz.js → chunk-JWPE2WC7-ikMrk6md.js} +1 -1
- package/dist/client/assets/{chunk-VQ5W62QI-B73o-HC8.js → chunk-VQ5W62QI-cfwin8SC.js} +1 -1
- package/dist/client/assets/{chunk-XXDRQBXY-Cd57QkHJ.js → chunk-XXDRQBXY-Cn3e0QEQ.js} +1 -1
- package/dist/client/assets/{chunk-ZCHMQSOR-BYXpbBGk.js → chunk-ZCHMQSOR-7RkBP94K.js} +2 -2
- package/dist/client/assets/{classDiagram-v2-4MYWR3UA-Cp5KSk7m.js → classDiagram-v2-4MYWR3UA-CqVol7t8.js} +1 -1
- package/dist/client/assets/{command-8GHnkf0M.js → command-2pl_Cn7b.js} +1 -1
- package/dist/client/assets/{cose-bilkent-JH36ORCC-BQ2-jSL1.js → cose-bilkent-JH36ORCC-m0tmlDnx.js} +1 -1
- package/dist/client/assets/{cpu-DlVEjqG9.js → cpu-CdCfSlSR.js} +1 -1
- package/dist/client/assets/{cynefin-EF2NZ3EQ-BipxprT2.js → cynefin-EF2NZ3EQ-Cf7ajLou.js} +1 -1
- package/dist/client/assets/{cynefinDiagram-WF24UDRP-BzzsLOi7.js → cynefinDiagram-WF24UDRP-Dl8GJr0l.js} +1 -1
- package/dist/client/assets/{dagre-NK4GIZVX-Xv2f8ipe.js → dagre-NK4GIZVX-2yAF6nW_.js} +1 -1
- package/dist/client/assets/{diagram-CBK3MWTC-DeSTMYz_.js → diagram-CBK3MWTC-DaBb9JFm.js} +1 -1
- package/dist/client/assets/{diagram-I5XIIV2D-BY785yX3.js → diagram-I5XIIV2D-BMeCfhD1.js} +1 -1
- package/dist/client/assets/{diagram-ODIL2UCW-BYlRM0z6.js → diagram-ODIL2UCW-ClVKCieB.js} +1 -1
- package/dist/client/assets/{diagram-PFBEJUXE-Dy4p9mkx.js → diagram-PFBEJUXE-DFIKk-tB.js} +1 -1
- package/dist/client/assets/{diagram-RJA3I4VV-Dq8FUki2.js → diagram-RJA3I4VV-DzC_xtYu.js} +1 -1
- package/dist/client/assets/{diagram-TYUNFSNR-Dzm6245A.js → diagram-TYUNFSNR-BroMVHm2.js} +1 -1
- package/dist/client/assets/{ebnfDiagram-V4P3TTPT-dIL65PnI.js → ebnfDiagram-V4P3TTPT-GMsyIh86.js} +1 -1
- package/dist/client/assets/{elk-QONTBCTQ-W6PbkfOO.js → elk-QONTBCTQ-DIpw6SW5.js} +1 -1
- package/dist/client/assets/{empty-state-BQbeqUqX.js → empty-state-B7ufhAFk.js} +1 -1
- package/dist/client/assets/{erDiagram-KYQIGQAA-Di7NEzZi.js → erDiagram-KYQIGQAA-CsezeWpx.js} +1 -1
- package/dist/client/assets/{execution-config-CievpGFf.js → execution-config-DRqIsff0.js} +1 -1
- package/dist/client/assets/{file-7wx4V3ce.js → file-DHPgnMgj.js} +1 -1
- package/dist/client/assets/{file-exclamation-point-hN_yiJcG.js → file-exclamation-point-DtjBa2XX.js} +1 -1
- package/dist/client/assets/{file-text-C7UYBoWy.js → file-text-wmrSy3Io.js} +1 -1
- package/dist/client/assets/{find-latest-widget-fence-BQipW7Cp.js → find-latest-widget-fence-Bv9D10ve.js} +1 -1
- package/dist/client/assets/{flowDiagram-IUGLLWBU-BBkZgKdO.js → flowDiagram-IUGLLWBU-BGwNqglr.js} +1 -1
- package/dist/client/assets/{form-CY71tX5p.js → form-CA_eiUg-.js} +1 -1
- package/dist/client/assets/{format-cron-CE_acG1K.js → format-cron-YPhIy57w.js} +1 -1
- package/dist/client/assets/{ganttDiagram-R7GPNTJY-CWk4fs8K.js → ganttDiagram-R7GPNTJY-4IlzTCzA.js} +1 -1
- package/dist/client/assets/{git-branch-CI-azrJf.js → git-branch-BLIYLcM4.js} +1 -1
- package/dist/client/assets/{gitGraphDiagram-PDYL7XHY-DVZX00fz.js → gitGraphDiagram-PDYL7XHY-HeaC8vlP.js} +1 -1
- package/dist/client/assets/{graph-D6ajmsGE.js → graph-Ch9lnHSS.js} +1 -1
- package/dist/client/assets/{heart-CFZ56Xlf.js → heart-D4fTvM5q.js} +1 -1
- package/dist/client/assets/{highlighted-body-KPVGNVTW-B3fBty4y.js → highlighted-body-KPVGNVTW-KPma22SA.js} +1 -1
- package/dist/client/assets/{image-lightbox-BLGg6wh_.js → image-lightbox-DI18fB2Q.js} +1 -1
- package/dist/client/assets/{image-off-C6e_AfQT.js → image-off-DRgXXpgv.js} +1 -1
- package/dist/client/assets/{index-BG1A_ge2.js → index--2mMmier.js} +1 -1
- package/dist/client/assets/{index-C41IirFx.js → index-2J89pJxF.js} +1 -1
- package/dist/client/assets/{index-8hFGmOr3.js → index-3UGWygRZ.js} +1 -1
- package/dist/client/assets/{index-DgckOojV.js → index-B-4XmK5Q.js} +1 -1
- package/dist/client/assets/index-B9X2-pzp.js +1 -0
- package/dist/client/assets/{index-D2sEXpm3.js → index-BAd8jUzo.js} +2 -2
- package/dist/client/assets/{index-D2uFkg04.js → index-BMYGo6Ki.js} +1 -1
- package/dist/client/assets/{index-MoiusTJb.js → index-BY0SKYuc.js} +1 -1
- package/dist/client/assets/{index-Bs4lTtGw.js → index-B_56Srtt.js} +1 -1
- package/dist/client/assets/{index-BwXTRvBg.js → index-BmlBYrxT.js} +1 -1
- package/dist/client/assets/{index-CYluA-8M.js → index-BtRM2yox.js} +1 -1
- package/dist/client/assets/{index-BV1EGYfS.js → index-ButY6gKr.js} +1 -1
- package/dist/client/assets/{index-Dqk3QNzm.js → index-C-X6jaVm.js} +1 -1
- package/dist/client/assets/{index-DLMCPhNA.js → index-C3IsCAxA.js} +1 -1
- package/dist/client/assets/{index-iT7Ifblv.js → index-COoO8dzi.js} +1 -1
- package/dist/client/assets/{index-BFF1EyA0.js → index-CRCfkwyN.js} +1 -1
- package/dist/client/assets/{index-CIDKu-yP.js → index-CTTaeOCw.js} +1 -1
- package/dist/client/assets/index-CgpRBcA4.js +1 -0
- package/dist/client/assets/{index-DYEHGDEV.js → index-ClbMjgcZ.js} +1 -1
- package/dist/client/assets/{index-BKcJmqqf.js → index-CucieFDK.js} +1 -1
- package/dist/client/assets/{index-wjGuFbZC.js → index-D0cIffaH.js} +1 -1
- package/dist/client/assets/{index-D8e8MIlc.js → index-D9w0FBQG.js} +1 -1
- package/dist/client/assets/{index-CaWLNyFj.js → index-DHZS9Lod.js} +1 -1
- package/dist/client/assets/{index-DLpEKf-i.js → index-DSIdPh8G.js} +1 -1
- package/dist/client/assets/{index-BA45jX_i.js → index-DTRAR0KK.js} +1 -1
- package/dist/client/assets/{index-DY3oKB_B.js → index-DbV3-jog.js} +1 -1
- package/dist/client/assets/{index-RwED5fTx.js → index-Dbujw1c2.js} +1 -1
- package/dist/client/assets/{index-CCrXd3Yp.js → index-DpvGUFpV.js} +1 -1
- package/dist/client/assets/{index-CFtdiRm4.js → index-DuvW22xi.js} +1 -1
- package/dist/client/assets/{index-CERazZNv.js → index-Dy9bWvna.js} +1 -1
- package/dist/client/assets/{index-CtoQYN47.js → index-EDXuyCOT.js} +1 -1
- package/dist/client/assets/{index-DbYzwbJb.js → index-Ix2nCAz0.js} +1 -1
- package/dist/client/assets/{index-DdV8QyX6.js → index-JoxvTUfo.js} +3 -3
- package/dist/client/assets/{index-DfhxqF8Y.js → index-QSo53dH-.js} +1 -1
- package/dist/client/assets/{index-CrLfzo3p.js → index-bzM-k5lI.js} +1 -1
- package/dist/client/assets/{index-Djn4XFpD.js → index-jk2K24il.js} +1 -1
- package/dist/client/assets/{index-DtHKgyyZ.js → index-mRMaqxu5.js} +9 -9
- package/dist/client/assets/{index-Cm9hYycN.js → index-p3WivF1M.js} +226 -226
- package/dist/client/assets/{index-DCkLt2hP.js → index-qEI7Rsr1.js} +1 -1
- package/dist/client/assets/{index-99DlkqSD.js → index-rPJ8b_DO.js} +1 -1
- package/dist/client/assets/{index-Bd8shyC1.js → index-uG06zgQo.js} +1 -1
- package/dist/client/assets/{index-Dq324laj.js → index-uy36h8lC.js} +1 -1
- package/dist/client/assets/{index-DPRUHxoN.js → index-zvAbU6ah.js} +1 -1
- package/dist/client/assets/{index.esm-CkNwJHAt.js → index.esm-CxXuMuQv.js} +1 -1
- package/dist/client/assets/{infoDiagram-MVDRKAX5-BZXw_Lom.js → infoDiagram-MVDRKAX5-g9EeD2xH.js} +1 -1
- package/dist/client/assets/{inline-code-DjwtR-ll.js → inline-code-14c1Gacs.js} +1 -1
- package/dist/client/assets/{ishikawaDiagram-HPEHV2GE-C5w4s3jl.js → ishikawaDiagram-HPEHV2GE-Zv5DrRnv.js} +1 -1
- package/dist/client/assets/{journeyDiagram-BOSHW7O7-BebIDsWW.js → journeyDiagram-BOSHW7O7-COiWWTez.js} +1 -1
- package/dist/client/assets/{kanban-definition-FNSA4HC5-BDyRuDB8.js → kanban-definition-FNSA4HC5-DnQa8qXB.js} +1 -1
- package/dist/client/assets/{layers-C7PyFRXp.js → layers-D_NEJsnH.js} +1 -1
- package/dist/client/assets/{lightbulb-C5ICPq-a.js → lightbulb-EadQi_Lr.js} +1 -1
- package/dist/client/assets/{link-2-UFQfJbpL.js → link-2-DugR2HHU.js} +1 -1
- package/dist/client/assets/{list-runtime-types-D9dCsbEf.js → list-runtime-types-iJaKcim4.js} +1 -1
- package/dist/client/assets/{markdown-content-6YMskxmm.js → markdown-content-BFHUHPgi.js} +1 -1
- package/dist/client/assets/{mention-pill-B0W4IHW4.js → mention-pill-DXBno6EY.js} +1 -1
- package/dist/client/assets/{mermaid.core-7GExh8O_.js → mermaid.core-C6ckWvkG.js} +4 -4
- package/dist/client/assets/{message-square-off-BPdN3pJK.js → message-square-off-BH8wbm2a.js} +1 -1
- package/dist/client/assets/{mindmap-definition-6OY57UG3-0Lt_mZ3n.js → mindmap-definition-6OY57UG3-DV4PNLc-.js} +1 -1
- package/dist/client/assets/{more-details-7N--psJ3.js → more-details-DhdX4DGU.js} +1 -1
- package/dist/client/assets/{owner-notice-nPsTnsXw.js → owner-notice-FMj3k7-f.js} +1 -1
- package/dist/client/assets/{package-CC-1rWTp.js → package-0mI7-RiJ.js} +1 -1
- package/dist/client/assets/{page-container-BHbpFrD0.js → page-container-DRyYoDkA.js} +1 -1
- package/dist/client/assets/{pane-resize-handle-DIFmKCMF.js → pane-resize-handle-OBc3uYxQ.js} +1 -1
- package/dist/client/assets/{paperclip-Byuc-1Au.js → paperclip-BsTJpkyE.js} +1 -1
- package/dist/client/assets/{path-input-Djx0L5Em.js → path-input-CFm1b1pk.js} +1 -1
- package/dist/client/assets/{pegDiagram-ECIUJNBX-Xa1X09Wi.js → pegDiagram-ECIUJNBX-Cboo0f6B.js} +1 -1
- package/dist/client/assets/{pieDiagram-GNMPY74T-CAKIXX0r.js → pieDiagram-GNMPY74T-CiihSor1.js} +1 -1
- package/dist/client/assets/{plug-w8CfVLDw.js → plug-BdnJAo1j.js} +1 -1
- package/dist/client/assets/{primer-trigger-D-tDGGyD.js → primer-trigger-BV4xZfFz.js} +1 -1
- package/dist/client/assets/{profile-errors-CV4pLH99.js → profile-errors-B08zStmk.js} +1 -1
- package/dist/client/assets/{progress-BMUhJjlP.js → progress-CpiQE0rv.js} +1 -1
- package/dist/client/assets/{quadrantDiagram-D57K4MC3-c8r8UetD.js → quadrantDiagram-D57K4MC3-dF0oKeMn.js} +1 -1
- package/dist/client/assets/{query-error-state-BjXOCuG9.js → query-error-state-B0RUeb10.js} +1 -1
- package/dist/client/assets/{radio-mxLzWnFP.js → radio-CAGXbJK_.js} +1 -1
- package/dist/client/assets/{railroadDiagram-Y72NRBL7-Bbj-1mVs.js → railroadDiagram-Y72NRBL7-ClkFJVq1.js} +1 -1
- package/dist/client/assets/{registry-CcYIR8Nc.js → registry-Cog_2xvt.js} +4 -4
- package/dist/client/assets/registry-DLWJMbtY.js +1 -0
- package/dist/client/assets/{relay-trace-schemas-DpSy65Yn.js → relay-trace-schemas-CNDSmhcJ.js} +1 -1
- package/dist/client/assets/{repeat-4eTQX5mk.js → repeat-Dag80z5v.js} +1 -1
- package/dist/client/assets/{requirementDiagram-EQYSW5RA-geZa9MpH.js → requirementDiagram-EQYSW5RA-Cey6FmFd.js} +1 -1
- package/dist/client/assets/{room-files-source-I4_DLrZD.js → room-files-source-BKUFMU_b.js} +1 -1
- package/dist/client/assets/{rotate-ccw-clock-CXa8qFYi.js → rotate-ccw-clock-egrvXlKX.js} +1 -1
- package/dist/client/assets/{rotate-cw-DHEYuGSm.js → rotate-cw-Po-L3HFe.js} +1 -1
- package/dist/client/assets/{sankeyDiagram-SY24JHO5-Srm25ry_.js → sankeyDiagram-SY24JHO5-BsIuHjbJ.js} +1 -1
- package/dist/client/assets/{scroll-area-Bjsw3VpU.js → scroll-area-C7vKp2H4.js} +1 -1
- package/dist/client/assets/{search-x-ChUxCHLH.js → search-x-C_BEqIuX.js} +1 -1
- package/dist/client/assets/{sequenceDiagram-BLEHNHQU-CX9mhXoN.js → sequenceDiagram-BLEHNHQU-BJZXJxwu.js} +1 -1
- package/dist/client/assets/{shield-x-CLFQxyuz.js → shield-x-hHpT8rAA.js} +1 -1
- package/dist/client/assets/{signed-in-Bcgd3tr-.js → signed-in-BhArfIJC.js} +1 -1
- package/dist/client/assets/{sizeCapture-INFHLROL-CsGk_egJ.js → sizeCapture-INFHLROL-DYCQyn7S.js} +1 -1
- package/dist/client/assets/{soul-file-ndv3pF6l.js → soul-file-Doekkv7n.js} +1 -1
- package/dist/client/assets/{stateDiagram-v2-A6IESKWZ-B0UoiZA7.js → stateDiagram-v2-A6IESKWZ-C6bUDAO7.js} +1 -1
- package/dist/client/assets/{swimlanes-B3ENRKFQ-Z8KKQyjo.js → swimlanes-B3ENRKFQ-DGyTrJBT.js} +1 -1
- package/dist/client/assets/swimlanesDiagram-AYQRV4AK-DrZ99xGr.js +8 -0
- package/dist/client/assets/{table-hGD-o8Hv.js → table-9KRGRv_s.js} +1 -1
- package/dist/client/assets/{timeline-definition-JXYKGLGB-MiLN-bA8.js → timeline-definition-JXYKGLGB-CHAJwSq6.js} +1 -1
- package/dist/client/assets/{trust-posture-bENWFq73.js → trust-posture-BQE9NSf_.js} +1 -1
- package/dist/client/assets/{unplug-CuyYU8At.js → unplug-CklGWwz7.js} +1 -1
- package/dist/client/assets/untrusted-text-BDygHCRk.js +1 -0
- package/dist/client/assets/{unverified-catalog-notice-Buza_8FG.js → unverified-catalog-notice-9mykZSlO.js} +1 -1
- package/dist/client/assets/{use-adapter-catalog-xRiWVPVu.js → use-adapter-catalog-CDxy08u_.js} +1 -1
- package/dist/client/assets/{use-bindings-BVGWiy25.js → use-bindings-CPbqKyo6.js} +1 -1
- package/dist/client/assets/{use-composer-prefs-DptaPZ0D.js → use-composer-prefs-C7v03Xx_.js} +1 -1
- package/dist/client/assets/{use-connector-management-SgpNguoX.js → use-connector-management-COqWo76Y.js} +1 -1
- package/dist/client/assets/{use-deep-link-scroll-_gvpwuhX.js → use-deep-link-scroll-BuYR3PaO.js} +1 -1
- package/dist/client/assets/{use-delete-binding-MWO6gLCZ.js → use-delete-binding-Dfz8BlLn.js} +1 -1
- package/dist/client/assets/{use-dev-links-jwjGn-ea.js → use-dev-links-Cu2JmM-_.js} +1 -1
- package/dist/client/assets/{use-direct-message-panel-C_5C3BJN.js → use-direct-message-panel-DobIp_O4.js} +1 -1
- package/dist/client/assets/{use-external-adapter-catalog-FcCuR-0-.js → use-external-adapter-catalog-OLn4l20Q.js} +1 -1
- package/dist/client/assets/{use-full-activity-feed-vIOHR9AY.js → use-full-activity-feed-DNrhQueu.js} +1 -1
- package/dist/client/assets/use-is-below-desktop-7gY1n-47.js +1 -0
- package/dist/client/assets/{use-local-browser-DZxfbzlC.js → use-local-browser-DPdkgs06.js} +1 -1
- package/dist/client/assets/{use-mesh-topology-Dc-oTr32.js → use-mesh-topology-Ci7r-pAi.js} +1 -1
- package/dist/client/assets/{use-mounted-ref-DibgeFBj.js → use-mounted-ref-CWXhSyZ8.js} +1 -1
- package/dist/client/assets/{use-notification-prefs-C7VkjjTj.js → use-notification-prefs-GJ2coibL.js} +1 -1
- package/dist/client/assets/use-pending-read-DcVJ8fZb.js +1 -0
- package/dist/client/assets/{use-personality-commit-ltA6XvBX.js → use-personality-commit-Da2BJ_58.js} +1 -1
- package/dist/client/assets/{use-promo-activation-C-Rnqz23.js → use-promo-activation-D4PAd7pd.js} +1 -1
- package/dist/client/assets/{use-promo-dismissals-BmshxhAa.js → use-promo-dismissals-BCBu0s3k.js} +1 -1
- package/dist/client/assets/{use-pulse-freshness-z2WkS2Ys.js → use-pulse-freshness-CHLSUL-h.js} +1 -1
- package/dist/client/assets/{use-relay-config-DaDq9PpU.js → use-relay-config-C6rPlEud.js} +1 -1
- package/dist/client/assets/{use-room-follow-claim-C3SS0Gw2.js → use-room-follow-claim-BSijPV3c.js} +1 -1
- package/dist/client/assets/{use-room-sessions-WV0Pz8--.js → use-room-sessions-CNqHgLVa.js} +1 -1
- package/dist/client/assets/{use-roving-tab-list-DVFfvzml.js → use-roving-tab-list-EsqX22Ik.js} +1 -1
- package/dist/client/assets/use-session-canvas-DAGOz8a6.js +27 -0
- package/dist/client/assets/{use-status-budget-tnw0joN-.js → use-status-budget-CHln-8aP.js} +1 -1
- package/dist/client/assets/{use-transform-B4y73VwQ.js → use-transform-BmyqpcvO.js} +1 -1
- package/dist/client/assets/{use-unclaimed-chats-BkPZ0agl.js → use-unclaimed-chats-9Clj_rwl.js} +1 -1
- package/dist/client/assets/use-update-config-T78vOnRy.js +1 -0
- package/dist/client/assets/{useMutationState-BTgljbHC.js → useMutationState-B61VoWtY.js} +1 -1
- package/dist/client/assets/{usecaseDiagram-WPOLBNNX-CwDaydYb.js → usecaseDiagram-WPOLBNNX-BUqj8rIH.js} +1 -1
- package/dist/client/assets/{vennDiagram-Q3Y3IDCW-B9DrYXJV.js → vennDiagram-Q3Y3IDCW-B09oli-Z.js} +1 -1
- package/dist/client/assets/{wardleyDiagram-IVAIDKWA-fP8m3n4J.js → wardleyDiagram-IVAIDKWA-BE7gzLdw.js} +1 -1
- package/dist/client/assets/{xychartDiagram-4URNHDU4-C52wlqaB.js → xychartDiagram-4URNHDU4-CbGKfmuW.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/index.js +5730 -4729
- package/dist/server/index.js.map +2 -2
- package/package.json +6 -6
- package/dist/client/assets/HandlePage-DCG-qQFm.js +0 -1
- package/dist/client/assets/NamePage-CYVVUDVS.js +0 -1
- package/dist/client/assets/PhotoPage-NO6Yrpi-.js +0 -1
- package/dist/client/assets/_shell.marketplace-cDEjeXV8.js +0 -1
- package/dist/client/assets/_shell.marketplace_.sources-C8vj4_eL.js +0 -1
- package/dist/client/assets/_shell.session-CsYuj8kc.js +0 -1
- package/dist/client/assets/_shell.x._extensionId-Cdkx4eoj.js +0 -1
- package/dist/client/assets/_shell.x._extensionId_._-Cdkx4eoj.js +0 -1
- package/dist/client/assets/channel-rtfAMlVl.js +0 -1
- package/dist/client/assets/index-EN1TLx2G.js +0 -1
- package/dist/client/assets/index-N177Jgr-.js +0 -1
- package/dist/client/assets/registry-DgRI6STP.js +0 -1
- package/dist/client/assets/swimlanesDiagram-AYQRV4AK-CL3LnYRl.js +0 -8
- package/dist/client/assets/untrusted-text-pHjcUwfI.js +0 -1
- package/dist/client/assets/use-is-below-desktop-CN5C6wtD.js +0 -1
- package/dist/client/assets/use-pending-read-D5ur6NeX.js +0 -1
- package/dist/client/assets/use-session-canvas-Rz7f3BhB.js +0 -27
- package/dist/client/assets/use-update-config-et3Tcr-G.js +0 -1
package/dist/bin/cli.js
CHANGED
|
@@ -27003,7 +27003,7 @@ import path2 from "path";
|
|
|
27003
27003
|
import { fileURLToPath } from "url";
|
|
27004
27004
|
function resolveVersion() {
|
|
27005
27005
|
if (env2.DORKOS_VERSION_OVERRIDE) return env2.DORKOS_VERSION_OVERRIDE;
|
|
27006
|
-
if (true) return "0.126.
|
|
27006
|
+
if (true) return "0.126.3";
|
|
27007
27007
|
const pkgPath = path2.join(path2.dirname(fileURLToPath(import.meta.url)), "../../package.json");
|
|
27008
27008
|
return JSON.parse(readFileSync(pkgPath, "utf-8")).version;
|
|
27009
27009
|
}
|
|
@@ -52368,12 +52368,10 @@ function mergeTeammateOrigins(a2, b2) {
|
|
|
52368
52368
|
const added = b2.filter((origin) => !seen.has(key(origin)));
|
|
52369
52369
|
return added.length === 0 ? a2 : [...a2, ...added];
|
|
52370
52370
|
}
|
|
52371
|
-
function
|
|
52372
|
-
if (!Array.isArray(ceiling))
|
|
52373
|
-
return ceiling === "runtime-default" || ceiling.outsider === true;
|
|
52374
|
-
}
|
|
52371
|
+
function ceilingHoldsForOutsider(ceiling) {
|
|
52372
|
+
if (!Array.isArray(ceiling)) return ceiling === "runtime-default";
|
|
52375
52373
|
const bounds = ceiling;
|
|
52376
|
-
return bounds.length === 0 || bounds.some(
|
|
52374
|
+
return bounds.length === 0 || bounds.some(ceilingHoldsForOutsider);
|
|
52377
52375
|
}
|
|
52378
52376
|
function stricterPower(a2, b2) {
|
|
52379
52377
|
const fits = (inner, outer) => isNoLooserThan(outer, inner) && (!inner.auto || outer.auto === true || outer.asks === "never");
|
|
@@ -52399,7 +52397,7 @@ function clampModeToCeiling(declared, modeId, ceiling) {
|
|
|
52399
52397
|
)[0];
|
|
52400
52398
|
return strictest?.id ?? modeId;
|
|
52401
52399
|
}
|
|
52402
|
-
var PERMISSION_STOPS, ASKS_RANK, REACH_RANK, AUTO_MODE_ID, READ_ONLY_LEVEL;
|
|
52400
|
+
var PERMISSION_STOPS, ASKS_RANK, REACH_RANK, AUTO_MODE_ID, READ_ONLY_LEVEL, CARRIED_OUTSIDER_LEVEL;
|
|
52403
52401
|
var init_permission_semantics = __esm({
|
|
52404
52402
|
"../shared/src/permission-semantics.ts"() {
|
|
52405
52403
|
"use strict";
|
|
@@ -52417,6 +52415,11 @@ var init_permission_semantics = __esm({
|
|
|
52417
52415
|
};
|
|
52418
52416
|
AUTO_MODE_ID = "auto";
|
|
52419
52417
|
READ_ONLY_LEVEL = { asks: "always", reach: "read" };
|
|
52418
|
+
CARRIED_OUTSIDER_LEVEL = Object.freeze({
|
|
52419
|
+
asks: "never",
|
|
52420
|
+
reach: "everything",
|
|
52421
|
+
outsider: true
|
|
52422
|
+
});
|
|
52420
52423
|
}
|
|
52421
52424
|
});
|
|
52422
52425
|
|
|
@@ -53735,7 +53738,6 @@ var init_capabilities = __esm({
|
|
|
53735
53738
|
var PROJECT_NAME_PATTERN, ProjectRefSchema, ProjectInfoSchema, ProjectListResponseSchema, ProjectResolveQuerySchema, ProjectResolveResponseSchema, AccountEligibilityRowSchema, AccountEligibilityQuerySchema, AccountEligibilityResponseSchema, ProjectAccountsRequestSchema, ProjectWithoutCreditsRequestSchema, OnlyProjectsRequestSchema, OnlyProjectsResponseSchema, NoAutoMoveSchema;
|
|
53736
53739
|
var init_project_schemas = __esm({
|
|
53737
53740
|
"../shared/src/project-schemas.ts"() {
|
|
53738
|
-
"use strict";
|
|
53739
53741
|
init_zod();
|
|
53740
53742
|
init_zod_openapi();
|
|
53741
53743
|
extendZodWithOpenApiOnce();
|
|
@@ -59401,7 +59403,6 @@ function validateSlug(s2) {
|
|
|
59401
59403
|
}
|
|
59402
59404
|
var init_slug = __esm({
|
|
59403
59405
|
"../skills/src/slug.ts"() {
|
|
59404
|
-
"use strict";
|
|
59405
59406
|
}
|
|
59406
59407
|
});
|
|
59407
59408
|
|
|
@@ -118767,6 +118768,15 @@ function withMarks(level, marks) {
|
|
|
118767
118768
|
if (carriesAllMarks(own2, marks)) return level;
|
|
118768
118769
|
return { ...level, ...mergeMarks(own2, marks) };
|
|
118769
118770
|
}
|
|
118771
|
+
function withCarriedHold(runtimeType, opts) {
|
|
118772
|
+
const ceiling = opts?.permissionCeiling;
|
|
118773
|
+
if (ceiling === void 0 || GATES_CARRIED_SHELL.has(runtimeType)) return opts;
|
|
118774
|
+
if (ceilingHoldsForOutsider(ceiling) || marksOfCeiling(ceiling).outsider !== true) return opts;
|
|
118775
|
+
const bounds = Array.isArray(ceiling) ? [...ceiling] : [ceiling];
|
|
118776
|
+
bounds.push("runtime-default");
|
|
118777
|
+
const { continuationHold: _dropped, ...rest } = opts ?? {};
|
|
118778
|
+
return { ...rest, permissionCeiling: bounds.length === 1 ? bounds[0] : bounds };
|
|
118779
|
+
}
|
|
118770
118780
|
async function* refused(reason) {
|
|
118771
118781
|
yield* [];
|
|
118772
118782
|
throw new Error(reason);
|
|
@@ -118785,7 +118795,7 @@ function applyTurnMarks(runtime, marksOfSession, recordRefused) {
|
|
|
118785
118795
|
const marks = marksForTurn(opts);
|
|
118786
118796
|
if (!hasMarks(marks)) return start(opts);
|
|
118787
118797
|
if (marks.outsider === true) noteChatHeardOutsider(sessionId);
|
|
118788
|
-
let sent = opts;
|
|
118798
|
+
let sent = withCarriedHold(target.type, opts);
|
|
118789
118799
|
if (marks.teammate !== void 0) {
|
|
118790
118800
|
sent = teammateTurnOpts(opts);
|
|
118791
118801
|
const refusal2 = teammateTurnRefusal(target.type, marks.teammate);
|
|
@@ -118825,7 +118835,7 @@ function applyTurnMarks(runtime, marksOfSession, recordRefused) {
|
|
|
118825
118835
|
}
|
|
118826
118836
|
});
|
|
118827
118837
|
}
|
|
118828
|
-
var TURN_MARK_KINDS, NO_MARKS, PLACE_MEMORY, UNKNOWN_SOURCE, sameOrigin, RULES;
|
|
118838
|
+
var TURN_MARK_KINDS, NO_MARKS, PLACE_MEMORY, UNKNOWN_SOURCE, sameOrigin, RULES, GATES_CARRIED_SHELL;
|
|
118829
118839
|
var init_turn_marks = __esm({
|
|
118830
118840
|
"../../apps/server/src/services/core/turn-power/turn-marks.ts"() {
|
|
118831
118841
|
"use strict";
|
|
@@ -118852,13 +118862,19 @@ var init_turn_marks = __esm({
|
|
|
118852
118862
|
covers: (outer, inner) => inner === void 0 || outer !== void 0 && inner.every((origin) => outer.some((o3) => sameOrigin(o3, origin)))
|
|
118853
118863
|
}
|
|
118854
118864
|
};
|
|
118865
|
+
GATES_CARRIED_SHELL = /* @__PURE__ */ new Set(["claude-code"]);
|
|
118855
118866
|
}
|
|
118856
118867
|
});
|
|
118857
118868
|
|
|
118858
118869
|
// ../../apps/server/src/services/core/turn-power/continuation-hold.ts
|
|
118859
|
-
function noteTurnHold(sessionId, held2) {
|
|
118860
|
-
if (!db) return;
|
|
118870
|
+
function noteTurnHold(sessionId, held2, carried = false) {
|
|
118861
118871
|
const key = primaryOf(sessionId);
|
|
118872
|
+
carriedOnly.delete(key);
|
|
118873
|
+
if (held2 && carried) {
|
|
118874
|
+
carriedOnly.add(key);
|
|
118875
|
+
if (carriedOnly.size > WRITTEN_MAX) carriedOnly.delete(carriedOnly.values().next().value);
|
|
118876
|
+
}
|
|
118877
|
+
if (!db) return;
|
|
118862
118878
|
if (written.get(key) === held2) return;
|
|
118863
118879
|
try {
|
|
118864
118880
|
db.insert(sessionMetadata).values({
|
|
@@ -118877,15 +118893,17 @@ function noteTurnHold(sessionId, held2) {
|
|
|
118877
118893
|
});
|
|
118878
118894
|
}
|
|
118879
118895
|
}
|
|
118880
|
-
var db, written, WRITTEN_MAX;
|
|
118896
|
+
var db, written, WRITTEN_MAX, carriedOnly;
|
|
118881
118897
|
var init_continuation_hold = __esm({
|
|
118882
118898
|
"../../apps/server/src/services/core/turn-power/continuation-hold.ts"() {
|
|
118883
118899
|
"use strict";
|
|
118884
118900
|
init_src2();
|
|
118901
|
+
init_permission_semantics();
|
|
118885
118902
|
init_session_key_registry();
|
|
118886
118903
|
init_logger();
|
|
118887
118904
|
written = /* @__PURE__ */ new Map();
|
|
118888
118905
|
WRITTEN_MAX = 1e4;
|
|
118906
|
+
carriedOnly = /* @__PURE__ */ new Set();
|
|
118889
118907
|
}
|
|
118890
118908
|
});
|
|
118891
118909
|
|
|
@@ -118904,6 +118922,35 @@ function lastTurnLevelOf(sessionId) {
|
|
|
118904
118922
|
function levelForTurn(runtime, stored, opts) {
|
|
118905
118923
|
return withMarks(powerForTurn(runtime, stored, opts), marksForTurn(opts));
|
|
118906
118924
|
}
|
|
118925
|
+
function recordTurn(runtime, sessionId, stored, opts) {
|
|
118926
|
+
const level = levelForTurn(runtime, stored, opts);
|
|
118927
|
+
remember(turnLevels, sessionId, level);
|
|
118928
|
+
const ceiling = opts?.continuationHold === true ? void 0 : opts?.permissionCeiling;
|
|
118929
|
+
if (ceiling !== void 0 && ceilingHoldsForOutsider(ceiling)) {
|
|
118930
|
+
strangerHeld.add(sessionId);
|
|
118931
|
+
const own2 = withoutStrangerHold(ceiling);
|
|
118932
|
+
const { permissionCeiling: _held, ...rest } = opts ?? {};
|
|
118933
|
+
const handOff = withMarks(
|
|
118934
|
+
powerForTurn(runtime, stored, own2 === void 0 ? rest : { ...rest, permissionCeiling: own2 }),
|
|
118935
|
+
marksOfLevel(level)
|
|
118936
|
+
);
|
|
118937
|
+
remember(handOffLevels, sessionId, handOff);
|
|
118938
|
+
} else {
|
|
118939
|
+
strangerHeld.delete(sessionId);
|
|
118940
|
+
handOffLevels.delete(sessionId);
|
|
118941
|
+
}
|
|
118942
|
+
if (strangerHeld.size > TURN_LEVEL_MEMORY) {
|
|
118943
|
+
strangerHeld.delete(strangerHeld.values().next().value);
|
|
118944
|
+
}
|
|
118945
|
+
return level;
|
|
118946
|
+
}
|
|
118947
|
+
function withoutStrangerHold(ceiling) {
|
|
118948
|
+
if (!Array.isArray(ceiling)) return ceiling === "runtime-default" ? void 0 : ceiling;
|
|
118949
|
+
const kept = ceiling.filter(
|
|
118950
|
+
(bound) => bound !== "runtime-default"
|
|
118951
|
+
);
|
|
118952
|
+
return kept.length === 0 ? void 0 : kept.length === 1 ? kept[0] : kept;
|
|
118953
|
+
}
|
|
118907
118954
|
function powerForTurn(runtime, stored, opts) {
|
|
118908
118955
|
let declared;
|
|
118909
118956
|
try {
|
|
@@ -118928,7 +118975,7 @@ function recordTurnLevels(runtime, storedModeOf) {
|
|
|
118928
118975
|
} catch {
|
|
118929
118976
|
stored = void 0;
|
|
118930
118977
|
}
|
|
118931
|
-
|
|
118978
|
+
recordTurn(runtime, sessionId, stored, opts);
|
|
118932
118979
|
}
|
|
118933
118980
|
);
|
|
118934
118981
|
}
|
|
@@ -118944,9 +118991,13 @@ function recordLevels(runtime, storedModeOf) {
|
|
|
118944
118991
|
} catch {
|
|
118945
118992
|
stored = void 0;
|
|
118946
118993
|
}
|
|
118947
|
-
const level =
|
|
118948
|
-
|
|
118949
|
-
|
|
118994
|
+
const level = recordTurn(target, sessionId, stored, opts);
|
|
118995
|
+
if (opts?.continuationHold !== true) {
|
|
118996
|
+
const held2 = level.outsider === true;
|
|
118997
|
+
const ceiling = opts?.permissionCeiling;
|
|
118998
|
+
const carried = held2 && !(ceiling !== void 0 && ceilingHoldsForOutsider(ceiling));
|
|
118999
|
+
noteTurnHold(sessionId, held2, carried);
|
|
119000
|
+
}
|
|
118950
119001
|
const serial = ++nextTurnSerial;
|
|
118951
119002
|
for (const id of /* @__PURE__ */ new Set([sessionId, primaryOf(sessionId)])) {
|
|
118952
119003
|
turnSerials.delete(id);
|
|
@@ -118963,7 +119014,7 @@ function recordLevels(runtime, storedModeOf) {
|
|
|
118963
119014
|
}
|
|
118964
119015
|
});
|
|
118965
119016
|
}
|
|
118966
|
-
var TURN_LEVEL_MEMORY, AUTO_MODE_ID2, AUTO_FALLBACK_MODE_ID, turnLevels, turnSerials, nextTurnSerial;
|
|
119017
|
+
var TURN_LEVEL_MEMORY, AUTO_MODE_ID2, AUTO_FALLBACK_MODE_ID, turnLevels, handOffLevels, strangerHeld, turnSerials, nextTurnSerial;
|
|
118967
119018
|
var init_turn_levels = __esm({
|
|
118968
119019
|
"../../apps/server/src/services/core/turn-power/turn-levels.ts"() {
|
|
118969
119020
|
"use strict";
|
|
@@ -118976,6 +119027,8 @@ var init_turn_levels = __esm({
|
|
|
118976
119027
|
AUTO_MODE_ID2 = "auto";
|
|
118977
119028
|
AUTO_FALLBACK_MODE_ID = "default";
|
|
118978
119029
|
turnLevels = /* @__PURE__ */ new Map();
|
|
119030
|
+
handOffLevels = /* @__PURE__ */ new Map();
|
|
119031
|
+
strangerHeld = /* @__PURE__ */ new Set();
|
|
118979
119032
|
turnSerials = /* @__PURE__ */ new Map();
|
|
118980
119033
|
nextTurnSerial = 0;
|
|
118981
119034
|
}
|
|
@@ -120744,9 +120797,10 @@ async function agentOfTurn(runtime, sessionId, opts, recordedAgentOf) {
|
|
|
120744
120797
|
}
|
|
120745
120798
|
function turnIsMarked(opts) {
|
|
120746
120799
|
const ceiling = opts?.permissionCeiling;
|
|
120747
|
-
if (ceiling !== void 0 &&
|
|
120800
|
+
if (ceiling !== void 0 && ceilingHoldsForOutsider(ceiling)) return true;
|
|
120748
120801
|
if (opts?.teammate === true || opts?.roomTurn?.teammate === true) return true;
|
|
120749
|
-
|
|
120802
|
+
if (opts?.roomTurn?.outsiderInView === true) return true;
|
|
120803
|
+
return marksForTurn(opts).teammate !== void 0;
|
|
120750
120804
|
}
|
|
120751
120805
|
function rises(runtime, sessionId, agentPath, stored, levelMode, opts) {
|
|
120752
120806
|
if (opts?.permissionMode !== void 0 || opts?.unattended === true) return false;
|
|
@@ -173220,7 +173274,6 @@ var init_connection_copy = __esm({
|
|
|
173220
173274
|
var CONNECTOR_OPERATION_SELECTION_LIMIT, CONNECTOR_AUTHENTICATION_FLOW_TTL_MS, CONNECTOR_EVENT_REVIEW_SCOPE_LIMIT, ConnectorJsonValueSchema, ConnectorJsonObjectSchema, ConnectorProviderInstanceIdSchema, ConnectionIdSchema, ConnectorExternalAccountRefSchema, ConnectorProviderModeSchema, ConnectorProviderHealthSchema, ConnectorGrantReconciliationStatusSchema, ConnectorOperationClassificationSchema, ConnectorAccessLevelSchema, ConnectorRetryPolicySchema, ConnectorOperationRevisionSchema, ConnectorOperationPageSchema, ConnectorCapabilityAvailabilitySchema, ConnectorUnsupportedResultSchema, ConnectorProviderCapabilitySetSchema, ConnectorToolkitVersionResultSchema, ConnectorProviderExecuteResultSchema, ConnectorAuthenticationFlowSchema, ConnectorExecutionTargetSchema, ConnectorProgramExecutionRequestSchema, ConnectorExecutionPublicResultSchema, ConnectorExecutionResponseSchema, ConnectionReadinessStateSchema, ConnectionReadinessReasonSchema, ConnectionFixActionSchema, ConnectionFixSchema, ConnectionReadinessSchema, AccessibleConnectorConnectionSchema, AccessibleConnectorOperationSchema, ConnectorAccessibleConnectionsResponseSchema, ConnectorAccessibleOperationsResponseSchema, ConnectorUsageItemSchema, ConnectorUsagePageSchema, ConnectorReconciliationPreviewRequestSchema, ConnectorReconciliationGrantSelectionSchema, ConnectorReconciliationEveryAgentSelectionSchema, ConnectorReconciliationEveryAgentStateSchema, ConnectorEveryAgentRevokeResponseSchema, ConnectorReconciliationAgentSchema, ConnectorReconciliationCandidateSchema, ConnectorReconciliationPreviewSchema, ConnectorReconciliationApplyRequestSchema, ConnectorReconciliationApplyResponseSchema, ReviewActionBaseSchema, ConnectionTargetSchema, ConnectorRequestAccessSchema, ConnectorReviewActionSchema, ConnectorAgentConnectionRequestInputSchema, ConnectorAgentRequestBaseSchema, ConnectorRequestNotGrantedSchema, ConnectorAgentRequestStatusSchema, ConnectorAgentRequestItemSchema, ConnectorAgentRequestListResponseSchema, ConnectorManagementConnectActionSchema, ConnectorManagementAppliedActionSchema, ConnectorManagementReviewActionSchema, ConnectorManagementReviewCreateRequestSchema, ConnectorManagementReviewOutcomeSchema, ConnectorManagementReviewOperationContextSchema, ConnectorManagementReviewConnectionContextSchema, ConnectorManagementReviewAgentContextSchema, ConnectorManagementReviewContextSchema, ManagementReviewItemBaseShape, ConnectorPendingManagementReviewItemSchema, ConnectorResolvingManagementReviewItemSchema, ConnectorExpiredManagementReviewItemSchema, ConnectorDeniedManagementReviewItemSchema, ConnectorApprovedAppliedManagementReviewItemSchema, ConnectorApprovedConnectManagementReviewItemSchema, ConnectorApprovedUnknownManagementReviewItemSchema, ConnectorManagementReviewItemSchema, ProgramReviewStatusBaseShape, ConnectorProgramReviewStatusSchema, ConnectorManagementReviewDecisionSchema, ConnectorManagementReviewDecisionResultSchema;
|
|
173221
173275
|
var init_connector_schemas = __esm({
|
|
173222
173276
|
"../connector-providers/src/connector-schemas.ts"() {
|
|
173223
|
-
"use strict";
|
|
173224
173277
|
init_zod();
|
|
173225
173278
|
init_connection_copy();
|
|
173226
173279
|
CONNECTOR_OPERATION_SELECTION_LIMIT = 1e5;
|
|
@@ -174260,13 +174313,19 @@ var init_connector_event_schemas = __esm({
|
|
|
174260
174313
|
});
|
|
174261
174314
|
|
|
174262
174315
|
// ../connector-providers/src/connector-managed-schemas.ts
|
|
174263
|
-
var ManagedConnectorErrorBodySchema, ManagedConnectorOperationSelectorSchema, ManagedAuthorityCommandBaseSchema, ManagedConnectorAuthorityCommandSchema, ManagedAuthorityStatusBaseSchema, ManagedConnectorAuthorityCommandStatusSchema, ManagedConnectorExecutionAttributionSchema, ManagedConnectorExecutionRequestSchema, ManagedConnectorExecutionReceiptSchema, ManagedConnectorCompletedExecutionResponseSchema, ManagedConnectorExecutionResponseSchema, ManagedConnectorExecutionReceiptStatusSchema;
|
|
174316
|
+
var ManagedConnectorApprovalRefSchema, ManagedConnectorErrorBodySchema, ManagedConnectorOperationSelectorSchema, ManagedAuthorityCommandBaseSchema, ManagedConnectorAuthorityCommandSchema, ManagedAuthorityStatusBaseSchema, ManagedConnectorAuthorityCommandStatusSchema, ManagedConnectorTurnMarkSchema, ManagedConnectorExecutionAttributionSchema, ManagedConnectorExecutionRequestSchema, ManagedConnectorExecutionReceiptSchema, ManagedConnectorHeldExecutionSchema, ManagedConnectorCompletedExecutionResponseSchema, ManagedConnectorExecutionResponseSchema, ManagedConnectorExecutionReceiptStatusSchema, ManagedConnectorInstanceApprovalSchema, ManagedConnectorInstanceApprovalListSchema;
|
|
174264
174317
|
var init_connector_managed_schemas = __esm({
|
|
174265
174318
|
"../connector-providers/src/connector-managed-schemas.ts"() {
|
|
174266
174319
|
init_dist13();
|
|
174267
174320
|
init_zod();
|
|
174321
|
+
init_stable_stringify();
|
|
174268
174322
|
init_connector_event_schemas();
|
|
174269
174323
|
init_connector_schemas();
|
|
174324
|
+
ManagedConnectorApprovalRefSchema = external_exports.object({
|
|
174325
|
+
approvalId: external_exports.string().uuid(),
|
|
174326
|
+
approveUrl: external_exports.string().url(),
|
|
174327
|
+
expiresAt: external_exports.string().datetime().refine((at) => Date.parse(at) > Date.now(), "The approval has already expired")
|
|
174328
|
+
}).strict();
|
|
174270
174329
|
ManagedConnectorErrorBodySchema = external_exports.object({
|
|
174271
174330
|
error: external_exports.string().min(1).max(100),
|
|
174272
174331
|
reason: external_exports.string().max(1e3).optional()
|
|
@@ -174335,16 +174394,32 @@ var init_connector_managed_schemas = __esm({
|
|
|
174335
174394
|
"event_subscription_limit_reached",
|
|
174336
174395
|
"invalid_event_filter",
|
|
174337
174396
|
"permission_upgrade_required",
|
|
174338
|
-
"scope_conflict"
|
|
174397
|
+
"scope_conflict",
|
|
174398
|
+
"approval_denied",
|
|
174399
|
+
"approval_expired",
|
|
174400
|
+
"approval_limit_reached"
|
|
174339
174401
|
])
|
|
174340
174402
|
}).strict(),
|
|
174341
|
-
ManagedAuthorityStatusBaseSchema.extend({ state: external_exports.literal("superseded") }).strict()
|
|
174403
|
+
ManagedAuthorityStatusBaseSchema.extend({ state: external_exports.literal("superseded") }).strict(),
|
|
174404
|
+
// Not applied yet: the owner has not approved it. The client keeps honouring
|
|
174405
|
+
// the last `applied` set for that scope; this is not a stall and not a reason
|
|
174406
|
+
// to resend. Sent only to a client that sent MANAGED_APPROVALS_HEADER.
|
|
174407
|
+
ManagedAuthorityStatusBaseSchema.extend({ state: external_exports.literal("awaiting_approval") }).merge(ManagedConnectorApprovalRefSchema).strict()
|
|
174342
174408
|
]);
|
|
174409
|
+
ManagedConnectorTurnMarkSchema = external_exports.enum(["outsider", "tool_read", "teammate"]);
|
|
174343
174410
|
ManagedConnectorExecutionAttributionSchema = external_exports.object({
|
|
174344
174411
|
surface: external_exports.enum(["mcp", "rest", "cli", "event"]),
|
|
174345
174412
|
actorKind: external_exports.enum(["operator", "agent", "program", "event", "runtime"]),
|
|
174346
174413
|
actorId: external_exports.string().min(1).max(200),
|
|
174347
|
-
sessionId: external_exports.string().min(1).max(200).optional()
|
|
174414
|
+
sessionId: external_exports.string().min(1).max(200).optional(),
|
|
174415
|
+
/**
|
|
174416
|
+
* What the calling turn carries, derived by the broker, never the agent, so
|
|
174417
|
+
* the owner's approval card can say it: `outsider` (the turn read words
|
|
174418
|
+
* from outside the owner's circle, or a stranger started it), `tool_read`
|
|
174419
|
+
* (it read outside text through a tool) and `teammate` (a teammate in a
|
|
174420
|
+
* shared space started the chain). Absent means none is known.
|
|
174421
|
+
*/
|
|
174422
|
+
marks: external_exports.array(ManagedConnectorTurnMarkSchema).max(3).optional()
|
|
174348
174423
|
}).strict();
|
|
174349
174424
|
ManagedConnectorExecutionRequestSchema = external_exports.object({
|
|
174350
174425
|
version: external_exports.literal(1),
|
|
@@ -174383,6 +174458,12 @@ var init_connector_managed_schemas = __esm({
|
|
|
174383
174458
|
});
|
|
174384
174459
|
}
|
|
174385
174460
|
});
|
|
174461
|
+
ManagedConnectorHeldExecutionSchema = external_exports.object({
|
|
174462
|
+
state: external_exports.literal("held"),
|
|
174463
|
+
attemptId: external_exports.string().min(1).max(200),
|
|
174464
|
+
approval: external_exports.enum(["awaiting", "approved"]),
|
|
174465
|
+
requestHash: external_exports.string().regex(/^[0-9a-f]{64}$/)
|
|
174466
|
+
}).merge(ManagedConnectorApprovalRefSchema).strict();
|
|
174386
174467
|
ManagedConnectorCompletedExecutionResponseSchema = external_exports.object({
|
|
174387
174468
|
state: external_exports.literal("completed"),
|
|
174388
174469
|
result: ConnectorProviderExecuteResultSchema,
|
|
@@ -174406,7 +174487,8 @@ var init_connector_managed_schemas = __esm({
|
|
|
174406
174487
|
external_exports.object({
|
|
174407
174488
|
state: external_exports.literal("pending"),
|
|
174408
174489
|
attemptId: external_exports.string().min(1).max(200)
|
|
174409
|
-
}).strict()
|
|
174490
|
+
}).strict(),
|
|
174491
|
+
ManagedConnectorHeldExecutionSchema
|
|
174410
174492
|
]);
|
|
174411
174493
|
ManagedConnectorExecutionReceiptStatusSchema = external_exports.discriminatedUnion("state", [
|
|
174412
174494
|
external_exports.object({
|
|
@@ -174416,8 +174498,19 @@ var init_connector_managed_schemas = __esm({
|
|
|
174416
174498
|
external_exports.object({
|
|
174417
174499
|
state: external_exports.literal("recorded"),
|
|
174418
174500
|
receipt: ManagedConnectorExecutionReceiptSchema
|
|
174419
|
-
}).strict()
|
|
174501
|
+
}).strict(),
|
|
174502
|
+
ManagedConnectorHeldExecutionSchema
|
|
174420
174503
|
]);
|
|
174504
|
+
ManagedConnectorInstanceApprovalSchema = external_exports.object({
|
|
174505
|
+
kind: external_exports.enum(["grant", "grant_review", "execution"]),
|
|
174506
|
+
managedConnectionId: external_exports.string().min(1).max(200),
|
|
174507
|
+
commandId: external_exports.string().min(1).max(200).optional(),
|
|
174508
|
+
attemptId: external_exports.string().min(1).max(200).optional()
|
|
174509
|
+
}).merge(ManagedConnectorApprovalRefSchema).strict();
|
|
174510
|
+
ManagedConnectorInstanceApprovalListSchema = external_exports.object({
|
|
174511
|
+
version: external_exports.literal(1),
|
|
174512
|
+
approvals: external_exports.array(ManagedConnectorInstanceApprovalSchema)
|
|
174513
|
+
}).strict();
|
|
174421
174514
|
}
|
|
174422
174515
|
});
|
|
174423
174516
|
|
|
@@ -179383,7 +179476,7 @@ if (process.argv[2] === "community") {
|
|
|
179383
179476
|
);
|
|
179384
179477
|
Object.assign(childEnv, credentialEnv.pickCommunityCredentialEnv(rawProcessEnv));
|
|
179385
179478
|
const exitCode = await dispatcher.runCommunityDispatcher(process.argv.slice(3), {
|
|
179386
|
-
cliVersion: "0.126.
|
|
179479
|
+
cliVersion: "0.126.3",
|
|
179387
179480
|
dorkHome: DORK_HOME,
|
|
179388
179481
|
processEnv: childEnv,
|
|
179389
179482
|
parseRelease: (bytes) => releaseContract.parseCompatibleCommunityReleaseManifest(
|
|
@@ -179391,7 +179484,7 @@ if (process.argv[2] === "community") {
|
|
|
179391
179484
|
{
|
|
179392
179485
|
platform: { os: "linux", architecture: "amd64" },
|
|
179393
179486
|
configSchemaVersion: releaseContract.COMMUNITY_CONFIG_SCHEMA_VERSION,
|
|
179394
|
-
migrationCompatibilityId: "sha256:
|
|
179487
|
+
migrationCompatibilityId: "sha256:137102b0b50d6beffe53867c67282c84d4b7bf27f2f27134fec41c72289bca28"
|
|
179395
179488
|
}
|
|
179396
179489
|
)
|
|
179397
179490
|
});
|
|
@@ -179401,7 +179494,7 @@ if (process.argv[2] === "community") {
|
|
|
179401
179494
|
process.exit(1);
|
|
179402
179495
|
}
|
|
179403
179496
|
}
|
|
179404
|
-
var cliErrorReporter = initCliErrorReporting({ dorkHome: DORK_HOME, version: "0.126.
|
|
179497
|
+
var cliErrorReporter = initCliErrorReporting({ dorkHome: DORK_HOME, version: "0.126.3" });
|
|
179405
179498
|
var uninstallCliErrorHandlers = cliErrorReporter ? installCliErrorHandlers(cliErrorReporter) : void 0;
|
|
179406
179499
|
if (process.argv[2] === "doctor") {
|
|
179407
179500
|
process.env.DORK_HOME = DORK_HOME;
|
|
@@ -179411,7 +179504,7 @@ if (process.argv[2] === "doctor") {
|
|
|
179411
179504
|
if (process.argv[2] === "feedback") {
|
|
179412
179505
|
process.env.DORK_HOME = DORK_HOME;
|
|
179413
179506
|
const { runFeedback: runFeedback2 } = await Promise.resolve().then(() => (init_feedback2(), feedback_exports));
|
|
179414
|
-
process.exit(await runFeedback2(DORK_HOME, "0.126.
|
|
179507
|
+
process.exit(await runFeedback2(DORK_HOME, "0.126.3", process.argv.slice(3)));
|
|
179415
179508
|
}
|
|
179416
179509
|
if (process.argv[2] === "auth") {
|
|
179417
179510
|
process.env.DORK_HOME = DORK_HOME;
|
|
@@ -179510,7 +179603,7 @@ if (process.argv[2] === "agent" || process.argv[2] === "task" || process.argv[2]
|
|
|
179510
179603
|
}
|
|
179511
179604
|
}
|
|
179512
179605
|
const { runVersionDispatcher: runVersionDispatcher2 } = await Promise.resolve().then(() => (init_version5(), version_exports));
|
|
179513
|
-
process.exit(await runVersionDispatcher2("0.126.
|
|
179606
|
+
process.exit(await runVersionDispatcher2("0.126.3", DORK_HOME, subArgs));
|
|
179514
179607
|
}
|
|
179515
179608
|
var { values, positionals } = parseCliArgs();
|
|
179516
179609
|
if (positionals[0] && !knownCommands.has(positionals[0])) {
|
|
@@ -179604,14 +179697,14 @@ Examples:
|
|
|
179604
179697
|
process.exit(0);
|
|
179605
179698
|
}
|
|
179606
179699
|
if (values.version) {
|
|
179607
|
-
console.log("0.126.
|
|
179700
|
+
console.log("0.126.3");
|
|
179608
179701
|
process.exit(0);
|
|
179609
179702
|
}
|
|
179610
179703
|
if (values["post-install-check"]) {
|
|
179611
179704
|
const claudeFound = checkClaude();
|
|
179612
179705
|
const coreExtensionsFound = checkCoreExtensions();
|
|
179613
179706
|
const extensionsCompile = await checkExtensionCompilation();
|
|
179614
|
-
console.log(`dorkos ${"0.126.
|
|
179707
|
+
console.log(`dorkos ${"0.126.3"}`);
|
|
179615
179708
|
if (!coreExtensionsFound) {
|
|
179616
179709
|
console.log("Installation incomplete \u2014 bundled core extensions are missing.");
|
|
179617
179710
|
}
|
|
@@ -179759,7 +179852,7 @@ if (fs40.existsSync(envPath)) {
|
|
|
179759
179852
|
}
|
|
179760
179853
|
uninstallCliErrorHandlers?.();
|
|
179761
179854
|
process.env.DORKOS_CLI_ENTRYPOINT = fileURLToPath7(import.meta.url);
|
|
179762
|
-
process.env.DORKOS_CLI_VERSION = "0.126.
|
|
179855
|
+
process.env.DORKOS_CLI_VERSION = "0.126.3";
|
|
179763
179856
|
var server;
|
|
179764
179857
|
try {
|
|
179765
179858
|
server = await import("../server/index.js");
|
|
@@ -179784,7 +179877,7 @@ var ansiReset = "\x1B[0m";
|
|
|
179784
179877
|
console.log("");
|
|
179785
179878
|
console.log(`${purple}${logo}${ansiReset}`);
|
|
179786
179879
|
console.log("");
|
|
179787
|
-
console.log(` DorkOS v${"0.126.
|
|
179880
|
+
console.log(` DorkOS v${"0.126.3"}`);
|
|
179788
179881
|
console.log(` Local: ${link(localUrl, localUrl)}`);
|
|
179789
179882
|
var nets = networkInterfaces();
|
|
179790
179883
|
var networkUrl = null;
|
|
@@ -179810,9 +179903,9 @@ if (shouldOpenBrowser && process.stdin.isTTY) {
|
|
|
179810
179903
|
const openCmd = process.platform === "darwin" ? "open" : process.platform === "win32" ? "start" : "xdg-open";
|
|
179811
179904
|
exec(`${openCmd} ${localUrl}`);
|
|
179812
179905
|
}
|
|
179813
|
-
checkForUpdate("0.126.
|
|
179906
|
+
checkForUpdate("0.126.3").then((latestVersion) => {
|
|
179814
179907
|
if (latestVersion) {
|
|
179815
|
-
const msg = `Update available: ${"0.126.
|
|
179908
|
+
const msg = `Update available: ${"0.126.3"} \u2192 ${latestVersion}`;
|
|
179816
179909
|
const cmd = "Run npm install -g dorkos@latest to update";
|
|
179817
179910
|
const width = Math.max(msg.length, cmd.length) + 6;
|
|
179818
179911
|
const pad2 = (s2) => `\u2502 ${s2}${" ".repeat(width - s2.length - 6)} \u2502`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":1,"controllerSHA256":"
|
|
1
|
+
{"version":1,"controllerSHA256":"e4195f8ec22e36d2c08634d997b277e475ce5426d86690eb5c94348fb564576e","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":"e4195f8ec22e36d2c08634d997b277e475ce5426d86690eb5c94348fb564576e","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-p3WivF1M.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-BlEsDhu6.js → ActivityErrorState-DBecAo4-.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ff as f,a1 as o,as as u,fg as x,j as a,G as c,a0 as p,B as y}from"./index-
|
|
1
|
+
import{ff as f,a1 as o,as as u,fg as x,j as a,G as c,a0 as p,B as y}from"./index-p3WivF1M.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?f({session:e.source.sessionId}):null}function w(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(w))}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?x:({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-p3WivF1M.js";import{E as g}from"./empty-state-B7ufhAFk.js";import{T as N,a as A}from"./table-9KRGRv_s.js";import{u as b,g as w,A as E,a as T}from"./ActivityErrorState-DBecAo4-.js";import{A as B}from"./ActivityRow-BRiUvjHA.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,dF as x,j as e,_ as u,G as l,cu as m,dG as g,B as h}from"./index-
|
|
1
|
+
import{b9 as d,dF as x,j as e,_ as u,G as l,cu as m,dG as g,B as h}from"./index-p3WivF1M.js";import{b as f,c}from"./table-9KRGRv_s.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-p3WivF1M.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-ClTTFSN8.js → AdapterSetupWizard-Cp56Zx24.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,dr as ie,hZ as Te,ds as oe,h0 as le,$ as $e,Q as ce,T as de,aw as ue,U as he,V as pe,by as Y,ar as J,h_ as me,h$ as Me,G as U,eh as X,ei as Z,ej as ee,ek as se,el as te,I as re,ep as xe,J as We,bx as Ve,B as k,i0 as Se,er as De,eo as ae,x as ke,be as Pe,bd as Re,a0 as Oe,ak as ge,i1 as Le,i2 as _e,i3 as Ge,i4 as Ue,i5 as Ie,c$ as Qe,a7 as G,fj as He,fk as Ke,fl as Ye,fm as Je,fn as Xe,fo as Ze,i6 as fe,i7 as H}from"./index-Cm9hYycN.js";import{B as es}from"./use-bindings-BVGWiy25.js";import{M as I}from"./markdown-content-6YMskxmm.js";import{a as ss,b as ts,c as rs}from"./use-adapter-catalog-xRiWVPVu.js";import{u as as}from"./form-CY71tX5p.js";import{a as ns}from"./BindingDialog-Cx-Ivbp4.js";import"./relay-trace-schemas-DpSy65Yn.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(I,{content:s.helpMarkdown,className:"text-xs"})})})]}),e.jsx(Y,{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(I,{content:s.helpMarkdown,className:"text-xs"})})})]}),e.jsx(Y,{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(I,{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(Le,{open:s,onOpenChange:t,children:e.jsxs(_e,{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(Ie,{children:"Step-by-step setup instructions."})]}),e.jsx("div",{className:"mt-4 px-4",children:e.jsx(I,{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,dr as ie,hZ as Te,ds as oe,h0 as le,$ as $e,Q as ce,T as de,aw as ue,U as he,V as pe,by as Y,ar as J,h_ as me,h$ as Me,G as U,eh as X,ei as Z,ej as ee,ek as se,el as te,I as re,ep as xe,J as We,bx as Ve,B as k,i0 as Se,er as De,eo as ae,x as ke,be as Pe,bd as Re,a0 as Oe,ak as ge,i1 as Le,i2 as _e,i3 as Ge,i4 as Ue,i5 as Ie,c$ as Qe,a7 as G,fj as He,fk as Ke,fl as Ye,fm as Je,fn as Xe,fo as Ze,i6 as fe,i7 as H}from"./index-p3WivF1M.js";import{B as es}from"./use-bindings-CPbqKyo6.js";import{M as I}from"./markdown-content-BFHUHPgi.js";import{a as ss,b as ts,c as rs}from"./use-adapter-catalog-CDxy08u_.js";import{u as as}from"./form-CA_eiUg-.js";import{a as ns}from"./BindingDialog-Bw55sMTh.js";import"./relay-trace-schemas-CNDSmhcJ.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(I,{content:s.helpMarkdown,className:"text-xs"})})})]}),e.jsx(Y,{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(I,{content:s.helpMarkdown,className:"text-xs"})})})]}),e.jsx(Y,{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(I,{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(Le,{open:s,onOpenChange:t,children:e.jsxs(_e,{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(Ie,{children:"Step-by-step setup instructions."})]}),e.jsx("div",{className:"mt-4 px-4",children:e.jsx(I,{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 K(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}=Qe(),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]),L=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:K(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]),Q=m.useCallback(()=>{const p=j.state.values,g=K(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(_=>_.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,_,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."}):((_=f.message)!=null&&_.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:K(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:L,handleBack:V,handleSave:Q,handleOpenChange:Ce,handleRetryTest:Ae}}function qs({open:s,onOpenChange:t,manifest:a,existingInstance:r,existingAdapterIds:l=[]}){var L;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(Ke,{className:"flex max-h-[85vh] max-w-lg flex-col",children:[e.jsxs(Ye,{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(Y,{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:(L=w.error)==null?void 0:L.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(Q=>Q.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-p3WivF1M.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};
|