dorkos 0.111.0 → 0.114.1
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/core-extensions/hello-world/index.ts +2 -2
- package/dist/bin/cli.js +14236 -1898
- package/dist/browser/native/package-manifest.json +1 -1
- package/dist/browser/source-manifest.json +1 -1
- package/dist/client/assets/{AboutPage-BKzqcz_A.js → AboutPage-BRHiWrvg.js} +1 -1
- package/dist/client/assets/{ActivityErrorState-BXOZg9ve.js → ActivityErrorState-DGwKpdjB.js} +1 -1
- package/dist/client/assets/{ActivityPage-CFN2MEAV.js → ActivityPage-C-lpXfva.js} +1 -1
- package/dist/client/assets/{ActivityRow-CujXx04u.js → ActivityRow-TjAMUrcU.js} +1 -1
- package/dist/client/assets/AdapterIcon-B-NJfk_R.js +1 -0
- package/dist/client/assets/{AdapterSetupWizard-3Bt9HEWF.js → AdapterSetupWizard-CrdiWINL.js} +2 -2
- package/dist/client/assets/{AgentRequestCard-CAaBGC0L.js → AgentRequestCard-BRINjair.js} +3 -3
- package/dist/client/assets/{AppearancePage-BEe-Gssu.js → AppearancePage-COdpfn1g.js} +1 -1
- package/dist/client/assets/{AttentionSignalRow-Cp0AJs73.js → AttentionSignalRow-Dc8laCri.js} +1 -1
- package/dist/client/assets/{BaseTanStackRouterDevtoolsPanel-B-iktbLX-CN1iW2cB.js → BaseTanStackRouterDevtoolsPanel-B-iktbLX-C-BpNthi.js} +3 -3
- package/dist/client/assets/{BlintzCanvas-B7qs2dxW.js → BlintzCanvas-DCU4iOtF.js} +1 -1
- package/dist/client/assets/{CanvasCsvContent-DiB5zXOC.js → CanvasCsvContent-oayJjsGq.js} +2 -2
- package/dist/client/assets/CanvasFileContent-C-aDKKws.js +2 -0
- package/dist/client/assets/CanvasModel3dContent-Dnx6oUx2.js +2 -0
- package/dist/client/assets/{CodeMirrorDiff-BJhflpbC.js → CodeMirrorDiff-j0jAFw_i.js} +1 -1
- package/dist/client/assets/{CodeMirrorEditor-SkdXRKSN.js → CodeMirrorEditor-DWgnGEHZ.js} +1 -1
- package/dist/client/assets/{CommitmentList-DsEn6iK1.js → CommitmentList-CCsDbGY2.js} +1 -1
- package/dist/client/assets/{CommitmentsPage-W5h0GjRr.js → CommitmentsPage-_vCusfuJ.js} +1 -1
- package/dist/client/assets/{ConnectionAccessLists-DVFqelmV.js → ConnectionAccessLists-umV6IbYS.js} +1 -1
- package/dist/client/assets/{ConnectionsPage-CZhSh2mO.js → ConnectionsPage-2iGwApEi.js} +2 -2
- package/dist/client/assets/{ConventionPage-DcDBP-vR.js → ConventionPage-Bucu3-TK.js} +3 -3
- package/dist/client/assets/{ExtensionPageRoute-mKN8Jqyx.js → ExtensionPageRoute-XXcMwrQY.js} +2 -2
- package/dist/client/assets/{FloatingTanStackRouterDevtools-CqogiFob-CGXG-x9g.js → FloatingTanStackRouterDevtools-CqogiFob-C8yf1gK7.js} +1 -1
- package/dist/client/assets/HandlePage-BotSAp8X.js +1 -0
- package/dist/client/assets/{HeartbeatPage-DFf7Udem.js → HeartbeatPage-CVAZeDqg.js} +1 -1
- package/dist/client/assets/{LexicalField-vJ284m2H.js → LexicalField-Dr5vnDVn.js} +2 -2
- package/dist/client/assets/{ManagesPage-mDuaA2JT.js → ManagesPage-Dj_UOeFQ.js} +1 -1
- package/dist/client/assets/{Marketplace-BoiupH2Z.js → Marketplace-RwZrKU4O.js} +4 -4
- package/dist/client/assets/{MarketplaceSourcesView-krw9hUyu.js → MarketplaceSourcesView-xSimTjA0.js} +1 -1
- package/dist/client/assets/{McpAppFrame-DmHduNgp.js → McpAppFrame-Er6EX82b.js} +2 -2
- package/dist/client/assets/{McpSigninBody-DoY09n4J.js → McpSigninBody-DMK94EGx.js} +1 -1
- package/dist/client/assets/{Model3dViewer-BZEdR7-9.js → Model3dViewer-D5xu-FCi.js} +1 -1
- package/dist/client/assets/NamePage-NZ40HlPR.js +1 -0
- package/dist/client/assets/NewDirectMessageMenu-DiI_GTiE.js +1 -0
- package/dist/client/assets/{NotificationsPage-CybW1eIb.js → NotificationsPage-B_XMIlHt.js} +1 -1
- package/dist/client/assets/{OpenMeshSwitch-DrmjsCDY.js → OpenMeshSwitch-BjiejioP.js} +2 -2
- package/dist/client/assets/{OperatorIdentityForm-byU2FeSU.js → OperatorIdentityForm-H7l8r2VC.js} +1 -1
- package/dist/client/assets/{PermissionsPage-CP3kbqyJ.js → PermissionsPage-DVV9vtoW.js} +1 -1
- package/dist/client/assets/{PersonalityPopover-BLsjgaum.js → PersonalityPopover-BT-aQ65s.js} +1 -1
- package/dist/client/assets/PhotoPage-DKgOQCBH.js +1 -0
- package/dist/client/assets/{PreviewRefusedNotice-fTN8MJ1h.js → PreviewRefusedNotice-DJyQxUFv.js} +1 -1
- package/dist/client/assets/{PromptSuggestionChips-BZOaY5Tx.js → PromptSuggestionChips-Dw7RA2P1.js} +1 -1
- package/dist/client/assets/{ReportsToPopover-B6JvfRt3.js → ReportsToPopover-fxu1r9iw.js} +1 -1
- package/dist/client/assets/{RoomSurface-BM0QO_av.js → RoomSurface-D4Etqadg.js} +8 -8
- package/dist/client/assets/{RoomsPage-B-NOCLXC.js → RoomsPage-D0795GTq.js} +1 -1
- package/dist/client/assets/{RunsOnPopover-D1jQQatj.js → RunsOnPopover-Cp8EMGHD.js} +1 -1
- package/dist/client/assets/RuntimeSetupDialog-Cxtz9b_r.js +1 -0
- package/dist/client/assets/SessionsPage-DbIKrtbg.js +1 -0
- package/dist/client/assets/{SkillsPage-CPTFjEUe.js → SkillsPage-DYSIGciZ.js} +1 -1
- package/dist/client/assets/{TasksPage-BRUqs3v5.js → TasksPage-DoEP7ZsZ.js} +1 -1
- package/dist/client/assets/{ToolsPage-C25kL822.js → ToolsPage-gUYaNA1-.js} +2 -2
- package/dist/client/assets/{TopologyGraph-of6Cp5Kj.js → TopologyGraph-KPxRfshp.js} +1 -1
- package/dist/client/assets/{TourHost-zwSilkjm.js → TourHost-BIozl4IA.js} +1 -1
- package/dist/client/assets/{UnlinkDialog-BgwHAqdW.js → UnlinkDialog-RuuQUyOF.js} +1 -1
- package/dist/client/assets/{WidgetErrorCard-BQwrR6PJ.js → WidgetErrorCard-BojvLOeP.js} +24 -29
- package/dist/client/assets/_shell-BMQyJ7r4.js +88 -0
- package/dist/client/assets/{_shell._home-BkP0NafS.js → _shell._home-C-OJaDmg.js} +1 -1
- package/dist/client/assets/{_shell._home.activity-BO_2ciGK.js → _shell._home.activity-Bvsxue6y.js} +1 -1
- package/dist/client/assets/_shell._home.index-DXnd_q3h.js +3 -0
- package/dist/client/assets/_shell._home.tasks-Mz-iO--x.js +1 -0
- package/dist/client/assets/_shell._home.workspaces-ChuVp2dK.js +1 -0
- package/dist/client/assets/_shell.channels-Cpde6Iix.js +10 -0
- package/dist/client/assets/_shell.connections-CxgvSPjQ.js +1 -0
- package/dist/client/assets/{_shell.feedback-requests-B71l48KB.js → _shell.feedback-requests-BBEuotuF.js} +2 -2
- package/dist/client/assets/_shell.marketplace-Hk6n4nNt.js +1 -0
- package/dist/client/assets/_shell.marketplace_.sources-B8f38K6K.js +1 -0
- package/dist/client/assets/_shell.session-DsF1tXPP.js +66 -0
- package/dist/client/assets/_shell.team-4bF5Nn4_.js +28 -0
- package/dist/client/assets/_shell.x._extensionId-B6J6mDaT.js +1 -0
- package/dist/client/assets/_shell.x._extensionId_._-B6J6mDaT.js +1 -0
- package/dist/client/assets/{agent-browser-Cs8abkZs.js → agent-browser-BIsnzdje.js} +1 -1
- package/dist/client/assets/{banner-CU2Nh3Kv.js → banner-Dll8KWyW.js} +2 -2
- package/dist/client/assets/{card-BTgwskmX.js → card-5POMzMJ6.js} +1 -1
- package/dist/client/assets/{file-DlQX-hKl.js → file-CY9v6yos.js} +1 -1
- package/dist/client/assets/{file-exclamation-point-Dg2iCyPM.js → file-exclamation-point-DNS4eVZR.js} +1 -1
- package/dist/client/assets/file-text-BQ5NBk6w.js +6 -0
- package/dist/client/assets/{find-latest-widget-fence-BGiexm6r.js → find-latest-widget-fence-BC8zM39x.js} +1 -1
- package/dist/client/assets/{git-branch-Dq_w3Iyx.js → git-branch-34CUrn_R.js} +1 -1
- package/dist/client/assets/{heart-Bp14wOx6.js → heart-B5oPCBeT.js} +1 -1
- package/dist/client/assets/{highlighted-body-KPVGNVTW-kD1HK_wk.js → highlighted-body-KPVGNVTW-DeDxlHr7.js} +1 -1
- package/dist/client/assets/{index-BeBmUxo_.js → index-BCJdsNmC.js} +1 -1
- package/dist/client/assets/{index-CcV9S7cO.js → index-BM9_nnxH.js} +1 -1
- package/dist/client/assets/{index-B0OZehWe.js → index-BTkflOTk.js} +1 -1
- package/dist/client/assets/{index-gu2JYnOq.js → index-BWj2VXUd.js} +1 -1
- package/dist/client/assets/{index-B6_ikFYj.js → index-BZYcFunZ.js} +1 -1
- package/dist/client/assets/{index-C_uYJzKi.js → index-B_LR9e6q.js} +3 -3
- package/dist/client/assets/{index-DNglWRBB.js → index-BeH3ljiU.js} +1 -1
- package/dist/client/assets/{index-DHUToGjI.js → index-BfY2tknC.js} +1 -1
- package/dist/client/assets/{index-knGXyHhh.js → index-BfoRyh9U.js} +1 -1
- package/dist/client/assets/index-BqtFX8p5.js +1 -0
- package/dist/client/assets/{index-DKlxz3u7.js → index-Bvr-_HFb.js} +1 -1
- package/dist/client/assets/{index-DSPs6GF4.js → index-C-DMBd4V.js} +1 -1
- package/dist/client/assets/{index-BHsZlKfx.js → index-C4ZJEVQG.js} +1 -1
- package/dist/client/assets/{index-PxSRtDpP.js → index-C6XffNP5.js} +1 -1
- package/dist/client/assets/{index-BxrZwUJp.js → index-C9NjdeaX.js} +3 -3
- package/dist/client/assets/{index-CKCMjqcu.js → index-CFakjglG.js} +1 -1
- package/dist/client/assets/{index--3UwFg2s.js → index-C_nYZwKl.js} +1 -1
- package/dist/client/assets/{index-LszRbEbX.js → index-CbUkmP4v.js} +1 -1
- package/dist/client/assets/index-Cdi4wcy2.js +23 -0
- package/dist/client/assets/{index-DW6zqLoM.js → index-CfPs0N2z.js} +1 -1
- package/dist/client/assets/{index-DO6a5Hey.js → index-CiOdQLWf.js} +1 -1
- package/dist/client/assets/{index-CAhJGlSW.js → index-CkfVcaGE.js} +1 -1
- package/dist/client/assets/{index-B8R78Nnj.js → index-Cw1lCYXU.js} +2 -2
- package/dist/client/assets/index-D1AN47IZ.js +17 -0
- package/dist/client/assets/{index-CDWsIVX7.js → index-D6QoZ_JK.js} +1 -1
- package/dist/client/assets/index-DFEF2MFy.css +1 -0
- package/dist/client/assets/{index-Cc280M3V.js → index-DipT3Tl7.js} +1 -1
- package/dist/client/assets/{index-DnmtTIUB.js → index-DjQZM7xU.js} +1 -1
- package/dist/client/assets/{index-C99173Ze.js → index-Dl3NBIFK.js} +1 -1
- package/dist/client/assets/{index-Dm53S0up.js → index-DvSjlchr.js} +1 -1
- package/dist/client/assets/{index-BA-nPsLw.js → index-HmNnK1_1.js} +1 -1
- package/dist/client/assets/{index-5OyUurJr.js → index-Svn7q7Oq.js} +1 -1
- package/dist/client/assets/index-d-DK54t2.js +1099 -0
- package/dist/client/assets/{index-aDNEGBTK.js → index-hw9zI0x5.js} +1 -1
- package/dist/client/assets/{index-C-DN0Vg_.js → index-juObjGCH.js} +1 -1
- package/dist/client/assets/index-obtMBZBo.js +1 -0
- package/dist/client/assets/{index-DKQDBIWq.js → index-sLuAyJv-.js} +1 -1
- package/dist/client/assets/index-tdK5EJaB.js +1 -0
- package/dist/client/assets/index-wx8w6kby.js +1 -0
- package/dist/client/assets/{index-DS-thlE8.js → index-yDaSJS2Z.js} +1 -1
- package/dist/client/assets/kickoff-BwvlCy0n.js +3 -0
- package/dist/client/assets/{layers-B0oCOfxz.js → layers-5nJbTYJI.js} +1 -1
- package/dist/client/assets/{lightbulb-D80IzMqz.js → lightbulb-CTbrj6Bh.js} +1 -1
- package/dist/client/assets/{markdown-content-aNzh-54y.js → markdown-content-BWVUF3Ll.js} +1 -1
- package/dist/client/assets/{mention-pill-BxMK0xuY.js → mention-pill-DlZf_ikY.js} +1 -1
- package/dist/client/assets/{message-square-off-D-CJXmTq.js → message-square-off-DwAOErT_.js} +1 -1
- package/dist/client/assets/{owner-notice-BkrTEMDm.js → owner-notice-De98Vj3z.js} +1 -1
- package/dist/client/assets/{package-CoTlAnXZ.js → package-B1hSUoIL.js} +1 -1
- package/dist/client/assets/{page-container-CPxW5T9E.js → page-container-DTyW7UJt.js} +1 -1
- package/dist/client/assets/{paperclip-Cj1P85mz.js → paperclip-CoxP50ae.js} +1 -1
- package/dist/client/assets/{radio-DICkTr_p.js → radio-WZhvBdvS.js} +1 -1
- package/dist/client/assets/{room-files-source-BywWQPBN.js → room-files-source-B2H-CIeN.js} +2 -2
- package/dist/client/assets/{rotate-ccw-clock-cx5RyP4l.js → rotate-ccw-clock-DFGhE-_C.js} +1 -1
- package/dist/client/assets/{rotate-cw-DrGRGSwy.js → rotate-cw-DiWMKflx.js} +1 -1
- package/dist/client/assets/{scroll-area-XlDz8u4m.js → scroll-area-BJrXoUrS.js} +1 -1
- package/dist/client/assets/{search-x-LIKnWE64.js → search-x-CPf5yiSS.js} +2 -2
- package/dist/client/assets/{shield-x-DioB6qH_.js → shield-x-D-yr2n7H.js} +1 -1
- package/dist/client/assets/{soul-file-C7YgkNET.js → soul-file-D0y7QIBL.js} +1 -1
- package/dist/client/assets/{table-P4N5xQn2.js → table-B3kRSRyK.js} +1 -1
- package/dist/client/assets/{use-connector-management-pgVHbXoO.js → use-connector-management-2rrubqr1.js} +1 -1
- package/dist/client/assets/{use-delete-binding-DxEiOjjh.js → use-delete-binding-BKhK3a7C.js} +1 -1
- package/dist/client/assets/{use-dev-links-BImQrE6g.js → use-dev-links-BIxj0Pjl.js} +1 -1
- package/dist/client/assets/{use-external-adapter-catalog-D8KHMSZU.js → use-external-adapter-catalog-XS0vyTlS.js} +1 -1
- package/dist/client/assets/use-full-activity-feed-CwqKSvpf.js +1 -0
- package/dist/client/assets/use-is-below-desktop-Dzs5i_TM.js +1 -0
- package/dist/client/assets/{use-jump-back-in-D9tBJ4v5.js → use-jump-back-in-CD5wYoFA.js} +3 -3
- package/dist/client/assets/use-mesh-topology-3LbL6yfa.js +1 -0
- package/dist/client/assets/use-panel-tab-placements-CTNXdvC6.js +1 -0
- package/dist/client/assets/use-pending-read-sDmA-i7r.js +1 -0
- package/dist/client/assets/{use-personality-commit-Gfoi__sT.js → use-personality-commit-B13DSXxo.js} +1 -1
- package/dist/client/assets/{use-promo-activation-Bv1gnqKq.js → use-promo-activation-DCy9ROgP.js} +3 -3
- package/dist/client/assets/{use-pulse-freshness-SFRdnugS.js → use-pulse-freshness-CRHnQO_-.js} +1 -1
- package/dist/client/assets/{use-room-follow-claim-Cf20JiJ_.js → use-room-follow-claim-FWatOD5-.js} +1 -1
- package/dist/client/assets/{use-roving-tab-list-3Pb7ps4E.js → use-roving-tab-list-C56ygMxj.js} +1 -1
- package/dist/client/assets/{use-session-canvas-BaXuEhw8.js → use-session-canvas-Dsmt92or.js} +4 -4
- package/dist/client/assets/{use-session-diagnostics-7xxJ6zQQ.js → use-session-diagnostics-ypmmhIlN.js} +4 -4
- package/dist/client/assets/{use-unclaimed-chats-D4k-EK_f.js → use-unclaimed-chats-C_bsrJFb.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/index.js +80743 -74474
- package/dist/server/index.js.map +2 -2
- package/package.json +6 -7
- package/dist/client/assets/AdapterIcon-BdM7K69W.js +0 -1
- package/dist/client/assets/CanvasFileContent-CDNfnWMW.js +0 -2
- package/dist/client/assets/CanvasModel3dContent-C7EINmuq.js +0 -2
- package/dist/client/assets/HandlePage-Bun58ePo.js +0 -1
- package/dist/client/assets/NamePage-CXyClUPJ.js +0 -1
- package/dist/client/assets/NewDirectMessageMenu-BjqYwnXW.js +0 -1
- package/dist/client/assets/PhotoPage-hn5b42qN.js +0 -1
- package/dist/client/assets/RuntimeSetupDialog-ufwCvCJB.js +0 -1
- package/dist/client/assets/SessionsPage-CBE1KHYg.js +0 -1
- package/dist/client/assets/_shell-bcx2y7VT.js +0 -88
- package/dist/client/assets/_shell._home.index-B-OFwU9u.js +0 -3
- package/dist/client/assets/_shell._home.tasks-jAQczH7j.js +0 -1
- package/dist/client/assets/_shell._home.workspaces-B34Uk1SP.js +0 -1
- package/dist/client/assets/_shell.channels-CGzsxvXD.js +0 -10
- package/dist/client/assets/_shell.connections-BNbeBrxQ.js +0 -1
- package/dist/client/assets/_shell.marketplace-3YAsNaRk.js +0 -1
- package/dist/client/assets/_shell.marketplace_.sources-cI3nNBXr.js +0 -1
- package/dist/client/assets/_shell.session-ybAc0bwn.js +0 -66
- package/dist/client/assets/_shell.team-BE_60YS4.js +0 -28
- package/dist/client/assets/_shell.x._extensionId-jiyP599c.js +0 -1
- package/dist/client/assets/_shell.x._extensionId_._-jiyP599c.js +0 -1
- package/dist/client/assets/index-B2JJZXsq.js +0 -1
- package/dist/client/assets/index-BAjUSKoJ.js +0 -1
- package/dist/client/assets/index-BpDY3eoD.js +0 -1
- package/dist/client/assets/index-BxUoa3yn.js +0 -17
- package/dist/client/assets/index-Dr-0P6rd.js +0 -1094
- package/dist/client/assets/index-ExcAk4pE.css +0 -1
- package/dist/client/assets/index-F7Lcwnfm.js +0 -1
- package/dist/client/assets/index-kHXlTLUx.js +0 -23
- package/dist/client/assets/kickoff-Btbza7bw.js +0 -3
- package/dist/client/assets/use-full-activity-feed-2o7GNAMe.js +0 -1
- package/dist/client/assets/use-is-below-desktop-DBet5zg_.js +0 -1
- package/dist/client/assets/use-mesh-topology-DBeqzUoy.js +0 -1
- package/dist/client/assets/use-pending-read-DmrlNHS0.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ae as q,af as B,r as l,
|
|
1
|
+
import{ae as q,af as B,r as l,e5 as K,ag as T,aj as Q,j as s,e6 as U,I as W,e7 as Y,B as b,F as z,Z as S,e8 as H,e9 as V,ea as X,bb as Z}from"./index-d-DK54t2.js";const P={SIGNIN_NO_APP_REGISTRATION:"This server doesn’t let DorkOS register itself. Add your own app credentials to try again.",SIGNIN_NO_SIGNIN_SUPPORT:"This server doesn’t offer sign-in the way DorkOS expects.",SIGNIN_UNREACHABLE:"Couldn’t reach the server to start the sign-in."};function J(e){return e!==void 0&&e in P}function k(e){const{message:t,code:i,detail:c}=e;return J(i)?{message:P[i],detail:c??t??null,canUseOwnCredentials:i==="SIGNIN_NO_APP_REGISTRATION"}:{message:t??"Sign-in didn’t finish. Try again.",detail:c??null,canUseOwnCredentials:!1}}function ee(e){if(typeof e!="object"||e===null)return{};const{code:t,body:i}=e,c=typeof i=="object"&&i!==null?i.detail:void 0;return{...typeof t=="string"?{code:t}:{},...typeof c=="string"?{detail:c}:{}}}const _=2e3,F=5,se="Couldn’t check the sign-in. Retrying.",te="Couldn’t check if the sign-in finished. Try again in a moment.",j={phase:"idle",disclosure:null,authorizeUrl:null,startFailure:null,credentialsError:null,flowId:null,watching:!1};function ne(e){const t=e==null?void 0:e.toolCount;return typeof t!="number"||!Number.isFinite(t)||t<0?null:t}function re(e,t){return(e==null?void 0:e.status)==="failed"?e.error??"Sign-in didn’t finish. Try again.":t>=F?te:null}function ie(e){return{...j,phase:"failed",startFailure:k({message:e.message,...ee(e)})}}function le(e){return e===null?null:k({message:e})}function O(e){return e.flowId===null?!1:e.phase==="waiting"||e.phase==="disclosure"&&e.watching}function ae(e,t,i){return O(e)?(t==null?void 0:t.status)==="connected"?"connected":(t==null?void 0:t.status)==="failed"?"failed":e.phase!=="waiting"?e.phase:i>=F?"failed":"waiting":e.phase}function he(e,t){const i=q(),c=B(),[o,r]=l.useState(j),h=l.useRef(0),[x,C]=l.useState(0),g=l.useRef(null),d=l.useCallback(n=>{g.current=n,h.current=0,C(0)},[]),p=l.useCallback((n,u)=>{u===g.current&&(h.current=n==="ok"?0:h.current+1,C(h.current))},[]),f=l.useCallback(()=>{c.invalidateQueries({queryKey:K.mcpServers(e)}),c.invalidateQueries({queryKey:["mcp-config"]})},[c,e]),a=T({mutationFn:()=>i.startMcpSignin(e,t),meta:{suppressErrorToast:!0}}),v=l.useCallback(()=>{d(null),r({...j,phase:"starting"}),a.mutate(void 0,{onSuccess:n=>{if(!n.alreadyConnected&&!n.authorizeUrl){r({...j,phase:"failed",startFailure:k({message:"Couldn’t make a sign-in link for this server."})});return}d(n.flowId),r({phase:n.alreadyConnected?"connected":"disclosure",disclosure:n.disclosure,authorizeUrl:n.authorizeUrl??null,startFailure:null,credentialsError:null,flowId:n.flowId,watching:!1})},onError:n=>r(ie(n))})},[a,d]),I=T({mutationFn:n=>i.setMcpClientCredentials(e,t,n),meta:{suppressErrorToast:!0}}),A=l.useCallback(n=>{r(u=>u.credentialsError===null?u:{...u,credentialsError:null}),I.mutate(n,{onSuccess:()=>{f(),v()},onError:u=>r(N=>({...N,credentialsError:u.message}))})},[I,f,v]),M=l.useCallback(n=>{g.current!==n.flowId&&(f(),d(n.flowId),r({phase:"disclosure",disclosure:n.disclosure,authorizeUrl:n.authorizeUrl,startFailure:null,credentialsError:null,flowId:n.flowId,watching:!0}))},[d]),D=l.useCallback(()=>{r(n=>n.phase==="disclosure"?{...n,phase:"waiting"}:n)},[]),G=l.useCallback(()=>{d(null),r(j)},[d]),E=Q({queryKey:["mcp-signin",e,t,o.flowId??""],queryFn:async()=>{const n=o.flowId??"";try{const u=await i.pollMcpSignin(n);return p("ok",n),u}catch(u){throw p("failed",n),u}},enabled:O(o),refetchInterval:n=>{var R;const u=(R=n.state.data)==null?void 0:R.status;if(u==="connected"||u==="failed")return!1;const N=h.current;return N===0?_:N>=F?!1:_*(N+1)},retry:!1,refetchOnWindowFocus:!1,refetchOnReconnect:!1,gcTime:0,staleTime:0,meta:{suppressErrorToast:!0}}),w=x,y=ae(o,E.data,w);l.useEffect(()=>{y==="connected"&&f()},[y,f]);const m=O(o)?le(re(E.data,w)):o.startFailure,$=y==="waiting"&&w>0?se:null;return{state:{step:y,disclosure:o.disclosure,authorizeUrl:o.authorizeUrl,error:(m==null?void 0:m.message)??null,errorDetail:(m==null?void 0:m.detail)??null,canUseOwnCredentials:(m==null?void 0:m.canUseOwnCredentials)??!1,savingCredentials:I.isPending,credentialsError:o.credentialsError,retryNotice:$,toolCount:y==="connected"?ne(E.data):null},start:v,adopt:M,authOpened:D,useOwnCredentials:A,reset:G}}function ce({onSave:e,onCancel:t,saving:i=!1,error:c=null,className:o}){const r=l.useId(),h=l.useRef(null),[x,C]=l.useState(""),[g,d]=l.useState(""),p=x.trim(),f=g.trim();return l.useEffect(()=>{var a;(a=h.current)==null||a.focus()},[]),s.jsxs("form",{className:S("space-y-2",o),onSubmit:a=>{a.preventDefault(),!(!p||i)&&e({clientId:p,...f?{clientSecret:f}:{}})},children:[s.jsxs("div",{className:"space-y-1",children:[s.jsx(U,{htmlFor:`${r}-client-id`,className:"text-xs",children:"Client ID"}),s.jsx(W,{id:`${r}-client-id`,ref:h,value:x,onChange:a=>C(a.target.value),autoComplete:"off",spellCheck:!1,disabled:i,className:"h-8 text-xs"})]}),s.jsxs("div",{className:"space-y-1",children:[s.jsxs(U,{htmlFor:`${r}-client-secret`,className:"text-xs",children:["Client secret ",s.jsx("span",{className:"text-muted-foreground font-normal",children:"(if you got one)"})]}),s.jsx(Y,{id:`${r}-client-secret`,value:g,onChange:a=>d(a.target.value),autoComplete:"off",disabled:i,className:"h-8 text-xs"})]}),s.jsx("p",{className:"text-muted-foreground text-xs leading-relaxed",children:"From the service’s developer settings. Kept encrypted here; agents never see it."}),c&&s.jsx("p",{role:"alert",className:"text-destructive text-xs leading-relaxed",children:c}),s.jsxs("div",{className:"flex gap-2",children:[s.jsxs(b,{type:"submit",size:"sm",disabled:!p||i,className:"gap-1.5 focus-visible:ring-2",children:[i&&s.jsx(z,{size:"xs"}),"Save and sign in"]}),s.jsx(b,{type:"button",variant:"ghost",size:"sm",onClick:t,disabled:i,className:"focus-visible:ring-2",children:"Cancel"})]})]})}function L({children:e}){return s.jsxs("p",{className:"text-muted-foreground flex items-center gap-2 text-xs",children:[s.jsx(z,{size:"xs"}),e]})}function oe(e){return e===null?"Signed in. Its tools are available on the next turn.":`Connected · ${e} tool${e===1?"":"s"}.`}function ue(e){return`DorkOS keeps the key from ${e} here, never your agent. Removing the server deletes it.`}function de(e){const{state:t}=e;return t.step==="starting"?s.jsx(L,{children:"Starting sign-in…"}):t.step==="waiting"?s.jsxs("div",{className:"space-y-1",children:[s.jsx(L,{children:"Waiting for you to sign in… Close the tab when done."}),t.retryNotice&&s.jsx("p",{className:"text-muted-foreground text-xs",children:t.retryNotice})]}):t.step==="connected"?s.jsxs("p",{className:"text-status-success-fg flex items-center gap-2 text-xs",children:[s.jsx(Z,{className:"size-3.5","aria-hidden":!0}),oe(t.toolCount)]}):null}function pe({flow:e,serverName:t,className:i,failedActions:c,connectedActions:o}){const{state:r}=e,h=l.useRef(null),x=r.step==="disclosure",C=l.useRef(null),[g,d]=l.useState(!1),p=g&&r.canUseOwnCredentials;l.useEffect(()=>{var a;x&&((a=h.current)==null||a.focus())},[x]);const f=l.useRef(!1);return l.useEffect(()=>{var a;!f.current||p||(f.current=!1,(a=C.current)==null||a.focus())},[p]),s.jsxs(s.Fragment,{children:[s.jsx("div",{role:"status",className:S("[&:not(:empty)]:mt-1",i),children:de(e)}),x&&s.jsxs("div",{className:S("mt-1 space-y-2",i),children:[s.jsxs("div",{ref:h,tabIndex:-1,className:"border-status-success-border bg-status-success-bg text-status-success-fg flex items-start gap-2 rounded-md border px-3 py-2 focus-visible:ring-2",children:[s.jsx(H,{className:"mt-0.5 size-4 shrink-0","aria-hidden":!0}),s.jsxs("div",{className:"min-w-0 space-y-1",children:[s.jsx("p",{className:"text-xs font-semibold",children:"Your sign-in stays on this computer."}),s.jsx("p",{className:"text-xs leading-relaxed",children:r.disclosure??ue(t)})]})]}),r.authorizeUrl&&s.jsx(b,{asChild:!0,size:"sm",className:"gap-1.5 focus-visible:ring-2",children:s.jsxs(V,{href:r.authorizeUrl,onOpened:()=>e.authOpened(),"aria-label":`Open the sign-in page for ${t}`,children:["Open the sign-in page",s.jsx(X,{className:"size-3.5","aria-hidden":!0})]})})]}),r.step==="failed"&&s.jsxs("div",{className:S("mt-1 space-y-2",i),children:[s.jsx("p",{role:"alert",className:"text-destructive text-xs leading-relaxed",children:r.error??"Sign-in didn’t finish. Try again."}),r.errorDetail&&s.jsxs("details",{className:"text-muted-foreground text-xs",children:[s.jsx("summary",{className:"cursor-pointer focus-visible:ring-2",children:"Details"}),s.jsx("code",{className:"text-2xs mt-1 block font-mono break-all",children:r.errorDetail})]}),p?s.jsx(ce,{onSave:a=>e.useOwnCredentials(a),onCancel:()=>{d(!1),f.current=!0},saving:r.savingCredentials,error:r.credentialsError}):s.jsxs("div",{className:"flex flex-wrap gap-2",children:[c,r.canUseOwnCredentials&&s.jsx(b,{ref:C,variant:"secondary",size:"sm",onClick:()=>d(!0),className:"focus-visible:ring-2",children:"Use your own app credentials"})]})]}),r.step==="connected"&&o&&s.jsx("div",{className:S("mt-1",i),children:o})]})}export{pe as M,he as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var i_=Object.defineProperty;var s_=(r,e,t)=>e in r?i_(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var jt=(r,e,t)=>s_(r,typeof e!="symbol"?e+"":e,t);import{r as Xc,j as Kc}from"./index-
|
|
1
|
+
var i_=Object.defineProperty;var s_=(r,e,t)=>e in r?i_(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var jt=(r,e,t)=>s_(r,typeof e!="symbol"?e+"":e,t);import{r as Xc,j as Kc}from"./index-d-DK54t2.js";/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as o,o as r}from"./index-d-DK54t2.js";function a({member:e}){return o.jsx(r,{member:e})}export{a as NamePage};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ae as R,af as b,ag as j,el as x,cU as P,em as C,r as d,j as e,cZ as E,c_ as M,c$ as k,d0 as T,d1 as K,de as L,e6 as I,I as F,aC as N,B as D,dI as O,dJ as _,en as B,f as Q,dK as q,dL as H,eo as Y}from"./index-d-DK54t2.js";function w(t){return Promise.all([t.invalidateQueries({queryKey:x.lists()}),t.invalidateQueries({queryKey:x.details()}),t.invalidateQueries({queryKey:x.threads()})]).then(()=>{})}function S(t){return(t==null?void 0:t.code)==="SLUG_TAKEN"}function $({isInlineErrorVisible:t}){const n=R(),r=b();return j({mutationFn:({title:a,agentPaths:l})=>n.createRoom({kind:"channel",title:a,members:[],agentPaths:l}),onSuccess:()=>w(r),meta:{suppressErrorToast:!0},onError:a=>{S(a)&&t()||P.error("Couldn’t create that channel.",{description:a.message})}})}function J(){const t=R(),n=b();return j({mutationFn:({agentPaths:r,title:a})=>t.createRoom({kind:"dm",title:a,members:[],agentPaths:r}),onSettled:()=>w(n),meta:{errorLabel:"Couldn’t start that DM"}})}const y=200;function W({open:t,onOpenChange:n,onCreated:r}){const a=C(),[l,m]=d.useState(""),h=d.useRef(null),c=d.useRef(null),u=d.useRef(!0);d.useEffect(()=>(u.current=!0,()=>{u.current=!1}),[]);const o=$({isInlineErrorVisible:()=>u.current}),g=S(o.error)?o.error.message:null,f=l.trim(),p=f.length>0&&f.length<=y,v=s=>{!p||o.isPending||o.mutate({title:f,agentPaths:s.map(i=>i.agentPath)},{onSuccess:i=>{n(!1),r(i)}})},A=s=>{var i;s.key==="Enter"&&(s.preventDefault(),p&&((i=c.current)==null||i.focus()))};return e.jsx(E,{open:t,onOpenChange:n,children:e.jsxs(M,{className:"sm:max-w-md",onOpenAutoFocus:s=>{var i;s.preventDefault(),(i=h.current)==null||i.focus()},children:[e.jsxs(k,{children:[e.jsx(T,{children:"New channel"}),e.jsx(K,{children:"Name it, then pick who’s in it."})]}),e.jsxs(L,{className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(I,{htmlFor:"channel-name",children:"Channel name"}),e.jsx(F,{ref:h,id:"channel-name",value:l,maxLength:y,placeholder:"Backend",autoComplete:"off",onChange:s=>{m(s.target.value),o.error&&o.reset()},onKeyDown:A,"aria-invalid":g?!0:void 0,"aria-describedby":g?"channel-name-error":void 0}),g&&e.jsx("p",{id:"channel-name-error",role:"alert",className:"text-destructive text-xs",children:g})]}),e.jsxs("section",{"aria-label":"Agents in this channel",className:"space-y-2 border-t pt-4",children:[e.jsx("h3",{className:"text-sm font-medium",children:"Who’s in it"}),e.jsx("p",{className:"text-muted-foreground text-xs",children:"Agents read everything here and reply when @mentioned."}),e.jsx(N,{roster:a,onSubmit:v,submitLabel:s=>s.length===0?"Create channel":s.length===1?"Create channel with 1 agent":`Create channel with ${s.length} agents`,emptyRosterMessage:"You don’t have any agents yet. You can add them to the channel later.",allChosenMessage:"That’s every agent you have.",isSubmitting:o.isPending,submitDisabled:!p,inputRef:c})]}),e.jsx("div",{className:"flex justify-center border-t pt-3",children:e.jsx(D,{type:"button",variant:"ghost",size:"sm",disabled:!p||o.isPending,onClick:()=>v([]),children:"Create it without agents"})})]})]})})}const z="One agent opens a chat. Two or more start a group message.";function G(t){return t.length===1}function U(t){const n=t[0];return n!==void 0&&G(t)?`Open chat with ${n.displayName}`:"Start group message"}function X({onStart:t,open:n,onOpenChange:r,hideTrigger:a=!1}){const l=C(),m=d.useRef(null),h=()=>{r(!1),Y.getState().open()};return e.jsxs(O,{open:n,onOpenChange:r,modal:!0,fullHeight:!0,children:[e.jsx(_,{asChild:!0,children:e.jsx(B,{...a?{"aria-hidden":!0,tabIndex:-1,className:"sr-only"}:{"aria-label":"New message"},children:e.jsx(Q,{})})}),e.jsxs(q,{side:"right",align:"start",className:"flex w-64 flex-col p-2","aria-label":"New message",onOpenAutoFocus:c=>{var u;c.preventDefault(),(u=m.current)==null||u.focus()},children:[e.jsx(H,{children:"New message"}),e.jsx(N,{inputRef:m,roster:l,onSubmit:c=>{r(!1),t(c)},submitLabel:U,emptyRosterMessage:"You don’t have any agents yet.",emptyRosterAction:e.jsx(D,{type:"button",size:"sm",variant:"outline",onClick:h,children:"Create agent"}),allChosenMessage:"Everyone is already here."}),e.jsx("p",{className:"text-muted-foreground mt-2 shrink-0 px-2 text-xs",children:z})]})]})}export{W as C,X as N,z as O,G as a,U as o,J as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as t,z as s}from"./index-
|
|
1
|
+
import{j as t,z as s}from"./index-d-DK54t2.js";function o({member:e}){var n;const i=((n=e.agent)==null?void 0:n.manifestId)??null;return i===null?t.jsx("div",{className:"min-h-0 flex-1 px-4 py-3","data-slot":"profile-notifications",children:t.jsx("p",{className:"text-muted-foreground text-xs",children:"Notifications are set per agent."})}):t.jsx("div",{className:"min-h-0 flex-1 px-2 py-2","data-slot":"profile-notifications",children:t.jsx(s,{lens:{agentId:i},emptyLabel:`${e.displayName} has not told you anything yet.`})})}export{o as NotificationsPage};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ep as A,r as f,eq as K,er as T,ae as p,aj as _,af as m,ag as v,es as M,j as d,et as S,dA as j,Z as R}from"./index-d-DK54t2.js";import{u as w}from"./use-mesh-topology-3LbL6yfa.js";const O={activeWithinMs:3600*1e3,inactiveAfterMs:10080*60*1e3};function P(e){if(e.liveKinds.includes("pendingApproval")||e.liveKinds.includes("error")||e.hasBrokenExecutionConfig===!0)return"needs-attention";if(e.liveKinds.includes("streaming"))return"active";if(e.lastActivityAt===null)return"fresh";if(e.now-e.lastActivityAt<=O.activeWithinMs)return"active";const s=Math.max(e.lastActivityAt,e.lastInteractionAt??e.lastActivityAt);return e.now-s>O.inactiveAfterMs?"inactive":"idle"}function q(e,t,s){var a;const n=new Map;for(const[i,o]of Object.entries(e)){if(!s.has(o))continue;const r=T((a=t[i])==null?void 0:a.lifecycle);if(!r)continue;const c=n.get(o);c?c.push(r):n.set(o,[r])}return n}const x=Object.freeze({});function B(e,t=[],s=x){const n=e.join(`
|
|
2
2
|
`),a=t.join(`
|
|
3
3
|
`),i=A(f.useCallback(u=>u.statusCwds,[])),o=A(f.useCallback(u=>u.statuses,[])),{data:r}=K(),c=r==null?void 0:r.agentActivity;return f.useMemo(()=>{const u=n.length===0?[]:n.split(`
|
|
4
4
|
`),N=new Set(a.length===0?[]:a.split(`
|
|
5
|
-
`)),b=
|
|
5
|
+
`)),b=q(i,o,new Set(u)),k=Date.now(),y={};for(const l of u){const g=c==null?void 0:c[l];y[l]=P({liveKinds:b.get(l)??[],lastActivityAt:g?new Date(g).getTime():null,lastInteractionAt:s[l]??null,now:k,hasBrokenExecutionConfig:N.has(l)})}return y},[n,a,i,o,c,s])}function W(e){const t=p();return _({queryKey:["mesh","agent-health",e],queryFn:()=>t.getMeshAgentHealth(e),enabled:e!==null})}const h=["mesh","topology"];function Y(){const e=p(),t=m();return v({mutationFn:s=>e.updateMeshAccessRule(s),onSuccess:()=>{t.invalidateQueries({queryKey:h})}})}function E(){const e=p(),t=m();return v({mutationFn:s=>e.updateMeshAccessRule({sourceNamespace:M,targetNamespace:M,action:s?"allow":"deny"}),onMutate:async s=>{await t.cancelQueries({queryKey:h});const n=t.getQueriesData({queryKey:h});return t.setQueriesData({queryKey:h},a=>a&&{...a,openMesh:s}),{previous:n}},onError:(s,n,a)=>{for(const[i,o]of(a==null?void 0:a.previous)??[])t.setQueryData(i,o)},onSettled:()=>{t.invalidateQueries({queryKey:h})}})}const C="Let all my agents talk to each other",L="On: any agent can message any other. Off: same project, plus pairs below.",D="New agents reach only their own project. Change it later in Team → Access.";function H({checked:e,onCheckedChange:t,disabled:s,className:n}){return d.jsx(S,{label:C,description:L,checked:e,onCheckedChange:t,disabled:s,className:n})}function Q({checked:e,onCheckedChange:t,disabled:s,className:n}){return d.jsx(S,{label:C,description:D,checked:e,onCheckedChange:t,disabled:s,className:R("bg-muted/40 rounded-xl px-4 py-3",n)})}function z(){const{data:e}=w(),{mutate:t,isPending:s}=E();return d.jsx(H,{checked:(e==null?void 0:e.openMesh)??!1,onCheckedChange:t,disabled:s})}function G({className:e}){const{data:t}=w(),{data:s}=j(),{mutate:n,isPending:a}=E(),i=((s==null?void 0:s.agents)??[]).filter(o=>!o.isSystem).length;return(t==null?void 0:t.openMesh)!==!1||i===0?null:d.jsx(Q,{checked:!1,onCheckedChange:n,disabled:a,className:e})}export{z as O,Y as a,W as b,E as c,G as d,B as u};
|
package/dist/client/assets/{OperatorIdentityForm-byU2FeSU.js → OperatorIdentityForm-H7l8r2VC.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{fz as j,fA as _,fB as F,aR as x,r as p,bR as P,fC as w,fD as B,ae as D,aj as G,bG as K,bB as M,fE as Y,V as q,U as z,fF as W,fG as U,fH as N,fI as V,fJ as J,bW as Q,j as i,e6 as R,I as A,fK as L,B as I}from"./index-d-DK54t2.js";function X(e){return{name:e.displayName.trim()===""||e.displayName===j,handle:!e.handle}}function se(e){const r=X(e);return r.name||r.handle}function Z(e,r){var t,s,d;const a=(d=(s=(t=e.person)==null?void 0:t.email)==null?void 0:s.split("@")[0])==null?void 0:d.trim();if(!a)return"";const o=new Set([..._,...r.filter(l=>l.id!==e.id&&l.handle).map(l=>l.handle.toLowerCase())]);return F(a,o)??""}function re(){const e=x(a=>a.setRightPanelOpen),r=x(a=>a.setActiveRightPanelTab);p.useEffect(()=>{const a=o=>{if((o.metaKey||o.ctrlKey)&&o.shiftKey&&o.key==="A"){o.preventDefault();const{rightPanelOpen:t,activeRightPanelTab:s}=x.getState();t&&s===P?e(!1):(r(P),e(!0))}};return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[e,r])}const $="agent-hub",ee={sessions:"sessions",tasks:"tasks",tools:"tools",channels:"rooms",config:null,toolkit:null,identity:null,overview:null,profile:null,personality:null};function te(e){return(typeof e=="string"?ee[e]:null)??void 0}const k=new Set(["identity","personality","channels","tools"]);function oe(){var n;const e=w(),r=D(),a=G({queryKey:["profile-location",e.profileRef],queryFn:()=>r.getSessionLocation(e.profileRef),enabled:!!e.profileRef}),o=K(g=>g.openProfileDockedFromLink),t=x(g=>g.requestRightPanel),s=x(g=>g.setExplicitAgentPath),d=M(),l=e.panel===P,c=e.agentPath??((n=a.data)==null?void 0:n.cwd)??null,u=Y(e.profilePage)??void 0,h=p.useRef(null);p.useEffect(()=>{!l&&c&&h.current!==c&&(h.current=c,s(c))},[l,c,s]);const f=p.useRef(new Map);p.useEffect(()=>{if(!l){f.current.clear();return}if(e.profileRef&&!c)return;const g=c??d;if(g){const m=f.current.get(g);if(m!==void 0&&(u===void 0||m.has(u)))return;f.current.set(g,(m??new Set).add(u??"")),o(g,u);return}t(P,null)},[l,e.profileRef,c,d,u,o,t])}function le(){const e=w(),r=B(),a=D(),o=e.panel===$,t=e.dialog==="agent"||!!e.agent&&k.has(e.agent),s=o||t,d=o?e.hubTab:e.agent;p.useEffect(()=>{if(!s&&!e.agentPath||!r)return;let l=!1;return(async()=>{const u=e.profileRef??(e.agentPath?(await a.createSessionLocation(e.agentPath)).id:void 0);if(l)return;const h=te(d);r({search:f=>{const n={...f};return e.dialog==="agent"&&delete n.dialog,typeof n.agent=="string"&&k.has(n.agent)&&delete n.agent,u&&(n.profileRef=u,delete n.agentPath),s&&(delete n.hubTab,n.panel=P,h?n.profilePage=h:delete n.profilePage),n},replace:!0})})().catch(()=>{}),()=>{l=!0}},[s,e.dialog,e.agentPath,e.profileRef,d,r,a])}function ae(){var S,b;const r=((S=q().data)==null?void 0:S.members)??[],a=r.find(y=>y.isSelf),o=z(),t=W({isShownInline:()=>o.current}),s=U({isShownInline:()=>o.current}),[d,l]=p.useState(!1),c=!a||a.displayName===j?"":a.displayName,u=(a==null?void 0:a.handle)??"",[h,f]=N(c),[n,g]=N(a?u||Z(a,r):""),m=h.trim(),v=n.trim(),E=a?V(a):null,C=m.length>0&&(m!==c||E!==null),T=t.isError&&t.variables===m?J(t.error):null,H=s.isError&&((b=s.variables)==null?void 0:b.handle)===v?Q(s.error,v):null,O=async()=>{if(!a)return!1;l(!0);let y=!0;return C&&(y=await t.mutateAsync(m).then(()=>y,()=>!1)),v&&v!==u&&(y=await s.mutateAsync({authorId:a.id,handle:v}).then(()=>y,()=>!1)),l(!1),y};return{ready:a!==void 0,name:h,setName:f,handle:n,setHandle:g,canSave:a!==void 0&&!d&&(m.length>0||v.length>0),saving:d,nameError:T,nameSuggestion:E!==null&&m===c?E:null,handleError:H,save:O}}function ie({onSaved:e,confirmLabel:r="Save",onSkip:a,skipLabel:o="Skip"}){const t=ae(),s=p.useId(),d=p.useId(),l=p.useId(),c=f=>{f.preventDefault(),t.canSave&&t.save().then(n=>{n&&e()})},u=t.nameError!==null||t.handleError!==null;let h=r;return t.saving?h="Saving…":u&&(h="Try again"),i.jsxs("form",{onSubmit:c,className:"flex flex-col gap-3","data-testid":"operator-identity-form",children:[i.jsxs("div",{className:"flex flex-col gap-1.5",children:[i.jsx(R,{htmlFor:s,className:"text-xs",children:"Your name"}),i.jsx(A,{id:s,value:t.name,maxLength:80,autoComplete:"name",placeholder:"What you go by",disabled:!t.ready,onChange:f=>t.setName(f.target.value),className:"h-8 text-sm"}),t.nameSuggestion&&!t.nameError&&i.jsxs("p",{className:"text-muted-foreground text-xs",children:[t.nameSuggestion,". Save it to make it yours."]}),t.nameError&&i.jsx(L,{tone:"error",children:t.nameError})]}),i.jsxs("div",{className:"flex flex-col gap-1.5",children:[i.jsx(R,{htmlFor:d,className:"text-xs",children:"Handle"}),i.jsxs("div",{className:"relative",children:[i.jsx("span",{"aria-hidden":!0,className:"text-muted-foreground pointer-events-none absolute top-1/2 left-2.5 -translate-y-1/2 text-sm",children:"@"}),i.jsx(A,{id:d,value:t.handle,maxLength:64,autoComplete:"username",autoCapitalize:"none",spellCheck:!1,placeholder:"yourname","aria-describedby":l,disabled:!t.ready,onChange:f=>t.setHandle(f.target.value),className:"h-8 pl-6 text-sm"})]}),i.jsx("p",{id:l,className:"text-muted-foreground text-xs",children:"What others type after @ to reach you."}),t.handleError&&i.jsx(L,{tone:"error",children:t.handleError})]}),i.jsxs("div",{className:"flex flex-wrap gap-2",children:[i.jsx(I,{type:"submit",size:"sm",disabled:!t.canSave,"data-testid":"confirm-identity",children:h}),a&&i.jsx(I,{type:"button",size:"sm",variant:"ghost",onClick:a,disabled:t.saving,"data-testid":"skip-identity",children:o})]})]})}export{ie as O,oe as a,re as b,se as i,le as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{G as i,j as s,J as a,K as r}from"./index-
|
|
1
|
+
import{G as i,j as s,J as a,K as r}from"./index-d-DK54t2.js";function d({member:t}){var o;const e=i((o=t.agent)==null?void 0:o.runtime),n=(e==null?void 0:e.supportsMcp)??!0;return s.jsxs("div",{className:"space-y-6",children:[n?null:s.jsx("p",{className:"text-muted-foreground text-sm",children:"This agent can’t use DorkOS tools, so these don’t apply."}),s.jsx(a,{scope:{kind:"agent",agentId:t.id}}),s.jsxs("section",{className:"space-y-2",children:[s.jsx("h3",{className:"text-sm font-semibold",children:"History"}),s.jsx(r,{agentId:t.id})]})]})}export{d as PermissionsPage};
|
package/dist/client/assets/{PersonalityPopover-BLsjgaum.js → PersonalityPopover-BT-aQ65s.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as n,j as t,e as i}from"./index-
|
|
1
|
+
import{b as n,j as t,e as i}from"./index-d-DK54t2.js";import{u as m,P as p}from"./use-personality-commit-B13DSXxo.js";import"./dorkbot-templates-8Yu9POWJ.js";import"./sound-D3r8dGFH.js";import"./soul-file-D0y7QIBL.js";function P({member:r}){const{agent:e,isPending:o,update:a}=n(r),s=m(e,a);return o?t.jsx(i,{className:"h-40 w-full"}):e?t.jsx(p,{traits:s.traits,onTraitsChange:s.onTraitsChange,compact:!0,className:"p-1"}):t.jsx("p",{className:"text-muted-foreground p-1 text-sm",children:"Couldn’t read this agent’s personality."})}export{P as PersonalityPopover};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as t,s as r}from"./index-d-DK54t2.js";function s({member:o}){return t.jsx(r,{member:o})}export{s as PhotoPage};
|
package/dist/client/assets/{PreviewRefusedNotice-fTN8MJ1h.js → PreviewRefusedNotice-DJyQxUFv.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as b,j as n,
|
|
1
|
+
import{r as b,j as n,bd as _,bg as p,bh as I,eG as k,bl as S,d4 as E,eH as N,eI as R,eJ as A,be as T,bm as h,eK as M,eL as $,eM as D,eN as O,ae as F,aj as G,ak as L}from"./index-d-DK54t2.js";import{S as V}from"./shield-x-D-yr2n7H.js";var K=Object.defineProperty,g=(e,t)=>K(e,"name",{value:t,configurable:!0}),x="Tabs",[H,oe]=I(x,[k]),C=k(),[U,y]=H(x),q=b.forwardRef(g(function(t,a){const{__scopeTabs:r,value:s,onValueChange:o,defaultValue:d,orientation:i="horizontal",dir:l,activationMode:v="automatic",...m}=t,u=S(l),[c,f]=E({prop:s,onChange:o,defaultProp:d??"",caller:x});return n.jsx(U,{scope:r,baseId:N(),value:c,onValueChange:f,orientation:i,dir:u,activationMode:v,children:n.jsx(p.div,{dir:u,"data-orientation":i,...m,ref:a})})},"Tabs")),z="TabsList",B=b.forwardRef(g(function(t,a){const{__scopeTabs:r,loop:s=!0,...o}=t,d=y(z,r),i=C(r);return n.jsx(R,{asChild:!0,...i,orientation:d.orientation,dir:d.dir,loop:s,children:n.jsx(p.div,{role:"tablist","aria-orientation":d.orientation,...o,ref:a})})},"TabsList")),J="TabsTrigger",Q=b.forwardRef(g(function(t,a){const{__scopeTabs:r,value:s,disabled:o=!1,...d}=t,i=y(J,r),l=C(r),v=w(i.baseId,s),m=j(i.baseId,s),u=s===i.value;return n.jsx(A,{asChild:!0,...l,focusable:!o,active:u,children:n.jsx(p.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":m,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:v,...d,ref:a,onMouseDown:T(t.onMouseDown,c=>{!o&&c.button===0&&c.ctrlKey===!1?i.onValueChange(s):c.preventDefault()}),onKeyDown:T(t.onKeyDown,c=>{o||c.target!==c.currentTarget||[" ","Enter"].includes(c.key)&&i.onValueChange(s)}),onFocus:T(t.onFocus,()=>{const c=i.activationMode!=="manual";!u&&!o&&c&&i.onValueChange(s)})})})},"TabsTrigger")),W="TabsContent",X=b.forwardRef(g(function(t,a){const{__scopeTabs:r,value:s,forceMount:o,children:d,...i}=t,l=y(W,r),v=w(l.baseId,s),m=j(l.baseId,s),u=s===l.value,c=b.useRef(u);return b.useEffect(()=>{const f=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(f)},[]),n.jsx(_,{present:o||u,children:({present:f})=>n.jsx(p.div,{"data-state":u?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":v,hidden:!f,id:m,tabIndex:0,...i,ref:a,style:{...t.style,animationDuration:c.current?"0s":void 0},children:f&&d})})},"TabsContent"));function w(e,t){return`${e}-trigger-${t}`}g(w,"makeTriggerId");function j(e,t){return`${e}-content-${t}`}g(j,"makeContentId");var Y=q,Z=B,ee=Q,te=X;function ie({...e}){return n.jsx(Y,{"data-slot":"tabs",...e})}function ce({className:e,responsive:t=!0,...a}){return n.jsx(Z,{"data-slot":"tabs-list",className:h("bg-dui-muted text-dui-muted-foreground inline-flex items-center justify-center rounded-lg p-1",t?M:"h-9",e),...a})}function ue({className:e,...t}){return n.jsx(ee,{"data-slot":"tabs-trigger",className:h("ring-offset-dui-background inline-flex items-center justify-center rounded-md px-3 py-1.5 text-sm font-medium whitespace-nowrap transition-[color,background-color,box-shadow,opacity] motion-reduce:transition-none! md:py-1","focus-visible:ring-dui-ring focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","disabled:pointer-events-none disabled:opacity-50","data-[state=active]:bg-dui-background data-[state=active]:text-dui-foreground data-[state=active]:shadow",e),...t})}function de({className:e,...t}){return n.jsx(te,{"data-slot":"tabs-content",className:h("ring-offset-dui-background mt-2","data-[state=active]:animate-in data-[state=active]:fade-in-0 data-[state=active]:duration-150 motion-reduce:animate-none!","focus-visible:ring-dui-ring focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",e),...t})}const ae={default:!1,plan:!1,acceptEdits:!1,dontAsk:!0,bypassPermissions:!0,auto:!0};function le(e){return ae[e]??!1}function se(e){try{return O.toString(e)}catch{return`On the schedule ${e}`}}function fe(e){const t=e.cron?se(e.cron):"Runs only when you ask",a=$(e.startsEnabled);return`${t}, ${a}. This job ${D(e.permissionMode)}.`}function be(e,t){const a=F(),{enabled:r=!0,...s}=t??{},o=Object.keys(s).length>0;return G({queryKey:L.permissionPreview(e??"",o?s:void 0),queryFn:()=>a.previewMarketplacePackage(e,o?s:void 0),enabled:r&&e!==null,staleTime:3e4,networkMode:"always"})}function P(e){const t=e==null?void 0:e.body,a=Array.isArray(t==null?void 0:t.errors)?t.errors.filter(r=>typeof r=="string"):[];return a.length>0?{reasons:a,checked:!0}:{reasons:e instanceof Error&&e.message?[e.message]:[],checked:!1}}function ge(e){return P(e).checked}function ve({error:e}){const{reasons:t,checked:a}=P(e);return n.jsxs("div",{role:"alert",className:"border-destructive/40 bg-destructive/5 space-y-2 rounded-md border p-3 text-sm",children:[n.jsxs("p",{className:"text-destructive flex items-center gap-2 font-medium",children:[n.jsx(V,{className:"size-4 shrink-0","aria-hidden":!0}),"DorkOS won’t install this package"]}),n.jsx("p",{className:"text-muted-foreground text-xs",children:a?"What it found:":"It couldn’t check what this package does."}),t.length>0&&n.jsx("ul",{className:"text-muted-foreground list-disc space-y-1 pl-5 text-xs [overflow-wrap:anywhere]",children:t.map(r=>n.jsx("li",{children:r},r))})]})}export{ve as P,ie as T,ce as a,ue as b,de as c,fe as d,ge as i,le as r,be as u};
|
package/dist/client/assets/{PromptSuggestionChips-BZOaY5Tx.js → PromptSuggestionChips-Dw7RA2P1.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e,a3 as c,
|
|
1
|
+
import{j as e,a3 as c,aP as l,Z as i}from"./index-d-DK54t2.js";const p=4,m={compact:"max-w-[200px] gap-1.5 px-2.5 py-1 text-xs",comfortable:"min-h-9 max-w-[280px] gap-2 px-3 py-1.5 text-sm"};function u({suggestions:o,onChipClick:s,ariaLabel:r="Suggested follow-ups",size:a="compact"}){const n=o.slice(0,p);return e.jsx(c.div,{"data-slot":"prompt-suggestion-chips",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},role:"group","aria-label":r,className:"mt-1.5 flex flex-wrap items-center gap-2",children:n.map(t=>e.jsxs("button",{type:"button","aria-label":t,title:t,onClick:()=>s(t),className:i("bg-secondary text-muted-foreground hover:text-foreground hover:bg-muted focus-visible:ring-ring inline-flex items-center truncate rounded-md transition-colors duration-150 focus-visible:ring-2 focus-visible:ring-offset-2",m[a]),children:[e.jsx(l,{className:i("shrink-0",a==="compact"?"size-3":"size-3.5")}),e.jsx("span",{className:"truncate",children:t})]},t))})}export{u as P};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{U as P,r as g,b as D,V as O,j as e,e as U,W as _,Y,Z as C,t as z,g as F,$ as M,a0 as W}from"./index-
|
|
1
|
+
import{U as P,r as g,b as D,V as O,j as e,e as U,W as _,Y,Z as C,t as z,g as F,$ as M,a0 as W}from"./index-d-DK54t2.js";const A="REPORTS_TO_CYCLE",q="text-muted-foreground text-3xs font-medium tracking-wider uppercase";function B({option:a,selected:d,focusable:i,isDefault:f,disabled:p,onPick:c}){const o=z(a.member);return e.jsxs("button",{type:"button",role:"radio","aria-checked":d,tabIndex:i?0:-1,disabled:p,onClick:c,className:C(W,"flex w-full min-w-0 items-center gap-2 rounded-md px-1.5 py-1 text-left text-sm","hover:bg-accent disabled:opacity-60"),children:[e.jsx(F,{size:"xs",kind:o.kind,color:o.color,emoji:o.emoji,imageUrl:o.imageUrl,fallback:o.fallback,origin:o.origin,badge:null}),e.jsxs("span",{className:"min-w-0 flex-1 truncate",children:[a.label,f&&e.jsxs(e.Fragment,{children:[" ",e.jsx("span",{className:"text-muted-foreground",children:"(default)"})]})]}),d&&e.jsx(M,{"aria-hidden":!0,className:"size-3.5 shrink-0"})]})}function K({member:a}){var y,R;const d=P(),i=g.useRef(null),f=g.useId(),p=g.useId(),{agent:c,isPending:o,isSaving:h,error:u,update:b}=D(a,{errorLabel:"Couldn’t change who this agent reports to",isShownInline:t=>d.current===!0&&t.code===A}),j=O();if(o||j.isPending)return e.jsx(U,{className:"h-24 w-full"});if(!c)return e.jsx("p",{className:"text-muted-foreground p-1 text-sm",children:"Couldn’t read this agent’s settings."});const I=((y=j.data)==null?void 0:y.members)??[],l=_(c,I,a),m=Y(c.id,I,a),E=m.some(t=>t.accountId===l.accountId)?l.accountId:((R=m[0])==null?void 0:R.accountId)??null,L=t=>{var v;const s=Array.from(((v=i.current)==null?void 0:v.querySelectorAll('[role="radio"]'))??[]),r=s.indexOf(document.activeElement),n={ArrowDown:r+1,ArrowRight:r+1,ArrowUp:r-1,ArrowLeft:r-1,Home:0,End:s.length-1}[t.key];if(n===void 0||s.length===0)return;t.preventDefault();const x=s[(n+s.length)%s.length];s.forEach(N=>N.tabIndex=N===x?0:-1),x==null||x.focus()},S=m.filter(t=>t.kind==="person"),T=m.filter(t=>t.kind==="agent"),k=(u==null?void 0:u.code)===A?u.message:null,w=(t,s,r)=>r.length>0&&e.jsxs("div",{role:"group","aria-labelledby":s,className:"space-y-0.5",children:[e.jsx("div",{id:s,className:C(q,"px-1.5"),children:t}),r.map(n=>e.jsx(B,{option:n,selected:l.accountId===n.accountId,focusable:E===n.accountId,isDefault:l.isDefault&&l.accountId===n.accountId,disabled:h,onPick:()=>{n.accountId!==c.reportsTo&&b({reportsTo:n.accountId})}},n.accountId))]});return e.jsxs("div",{className:"space-y-3 p-1","data-slot":"profile-reports-to",children:[e.jsxs("div",{ref:i,role:"radiogroup","aria-label":"Reports to",onKeyDown:L,className:"max-h-72 space-y-2 overflow-y-auto",children:[w("People",f,S),w("Agents",p,T)]}),k&&e.jsx("p",{role:"alert",className:"text-status-error px-1.5 text-xs",children:k}),!l.isDefault&&e.jsx("button",{type:"button",disabled:h,onClick:()=>b({reportsTo:null}),className:"text-muted-foreground hover:text-foreground px-1.5 text-xs underline-offset-2 hover:underline",children:"Use the default"})]})}export{K as ReportsToPopover};
|