dorkos 0.120.0 → 0.121.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/cli.js +118 -22
- package/dist/browser/native/package-manifest.json +1 -1
- package/dist/browser/source-manifest.json +1 -1
- package/dist/client/assets/{AboutPage-Y8O56Cz5.js → AboutPage-CtI8gbER.js} +1 -1
- package/dist/client/assets/{ActivityErrorState-DlROxqde.js → ActivityErrorState-CHTXfBS7.js} +1 -1
- package/dist/client/assets/{ActivityPage-BdV90CV2.js → ActivityPage-B8p4yYJL.js} +1 -1
- package/dist/client/assets/{ActivityRow-B5yiD_uD.js → ActivityRow-CSuSz-92.js} +1 -1
- package/dist/client/assets/{AdapterIcon-Dyq92Eup.js → AdapterIcon-Qnxn0cE5.js} +1 -1
- package/dist/client/assets/{AdapterSetupWizard-D9tqz7Hl.js → AdapterSetupWizard-BG8H-Lld.js} +1 -1
- package/dist/client/assets/{AgentOptionRow-BeRqDo7c.js → AgentOptionRow-BWFQFynn.js} +1 -1
- package/dist/client/assets/{AgentPicker-BRyYVJZu.js → AgentPicker-CL93SET3.js} +1 -1
- package/dist/client/assets/{AgentRequestCard-xX6fAKgO.js → AgentRequestCard-CamX7Tvr.js} +4 -4
- package/dist/client/assets/{AppearancePage-DKF9BqRt.js → AppearancePage-rN70_7ih.js} +1 -1
- package/dist/client/assets/{ApplyToOverridesDialog-CPvtr_-f.js → ApplyToOverridesDialog-DeWaXbgm.js} +1 -1
- package/dist/client/assets/{AttentionSignalRow-vBfioH1A.js → AttentionSignalRow-CKcSWExi.js} +1 -1
- package/dist/client/assets/{BaseTanStackRouterDevtoolsPanel-B-iktbLX-B50zNtwB.js → BaseTanStackRouterDevtoolsPanel-B-iktbLX-BwYaLf2P.js} +1 -1
- package/dist/client/assets/{BindingDialog-CSNjws3F.js → BindingDialog-DqPDLYbF.js} +1 -1
- package/dist/client/assets/BlintzCanvas-DoAZs5bz.js +1231 -0
- package/dist/client/assets/{BlintzCanvas-GgiCXV7C.css → BlintzCanvas-xZ3u3nk7.css} +1 -1
- package/dist/client/assets/{CanvasCsvContent-0Mb7uOuA.js → CanvasCsvContent-ViqRJuhW.js} +1 -1
- package/dist/client/assets/CanvasFileContent-ClcHZ_l-.js +2 -0
- package/dist/client/assets/{CanvasModel3dContent-UokbHY9i.js → CanvasModel3dContent-Cm3msNdQ.js} +2 -2
- package/dist/client/assets/{ChatAppsOff-CLRB0YU5.js → ChatAppsOff-D0PbHYqF.js} +1 -1
- package/dist/client/assets/{CodeMirrorDiff-B4uFJD6g.js → CodeMirrorDiff-DFNSXeuV.js} +1 -1
- package/dist/client/assets/{CodeMirrorEditor-rYOrBAZc.js → CodeMirrorEditor-AgkgsSqN.js} +1 -1
- package/dist/client/assets/{CommitmentList-i-IZ4gbr.js → CommitmentList-0V6QivXH.js} +1 -1
- package/dist/client/assets/{CommitmentsPage-ChO1JkrE.js → CommitmentsPage-i3XoHwBj.js} +1 -1
- package/dist/client/assets/{ComputerResourceView-pLuD2ie6.js → ComputerResourceView-RPoBc-km.js} +1 -1
- package/dist/client/assets/{ComputerViewer-D7tPmpY5.js → ComputerViewer-2ugaCd0H.js} +1 -1
- package/dist/client/assets/{ConnectionAccessLists-D6VH1vX3.js → ConnectionAccessLists-DaPP4U96.js} +1 -1
- package/dist/client/assets/{ConnectionsPage-7x5olD9q.js → ConnectionsPage-BVqYvfk5.js} +2 -2
- package/dist/client/assets/{ConventionPage-BTYLWw6p.js → ConventionPage-BoqncrFd.js} +1 -1
- package/dist/client/assets/{ExtensionPageRoute-A9AdBBbw.js → ExtensionPageRoute-BrOEeNX3.js} +2 -2
- package/dist/client/assets/{FloatingTanStackRouterDevtools-CqogiFob-ayv0yz1C.js → FloatingTanStackRouterDevtools-CqogiFob-DLwix3K7.js} +1 -1
- package/dist/client/assets/HandlePage-B_5GLHsp.js +1 -0
- package/dist/client/assets/{HeartbeatPage-Dh6W9Qg5.js → HeartbeatPage-DgXhbaBJ.js} +1 -1
- package/dist/client/assets/{KeyEntry-owhPGtw3.js → KeyEntry-CRr32Ae5.js} +1 -1
- package/dist/client/assets/{LexicalField-B1NFMLD6.js → LexicalField-DeAoA6yr.js} +1 -1
- package/dist/client/assets/{ManagesPage-BAnBmBdo.js → ManagesPage-ZBWYLTZx.js} +1 -1
- package/dist/client/assets/{Marketplace-67maxdwz.js → Marketplace-iL5p8Omt.js} +4 -4
- package/dist/client/assets/{MarketplaceSourcesView-CzPBNJJj.js → MarketplaceSourcesView-CsNLVOdP.js} +1 -1
- package/dist/client/assets/{McpAppFrame-CuObpQTg.js → McpAppFrame-B1WPswgk.js} +1 -1
- package/dist/client/assets/{McpSigninBody-B-ayj6bQ.js → McpSigninBody-CJ28yu0o.js} +1 -1
- package/dist/client/assets/{Model3dViewer-DRVqxazk.js → Model3dViewer-BIZWdK8g.js} +1 -1
- package/dist/client/assets/NamePage-0nr288eM.js +1 -0
- package/dist/client/assets/{NewDirectMessageMenu-B3DxayR2.js → NewDirectMessageMenu-DRx9e9kM.js} +1 -1
- package/dist/client/assets/{NotificationsPage-BavEo7VZ.js → NotificationsPage-cfqgSuVy.js} +1 -1
- package/dist/client/assets/{OpenMeshSwitch-BwkX2Toa.js → OpenMeshSwitch-BIIuKDku.js} +1 -1
- package/dist/client/assets/{OperatorIdentityForm-CtWgz2yi.js → OperatorIdentityForm-BKUSGrs6.js} +1 -1
- package/dist/client/assets/{PermissionHistory-DvM0F2bS.js → PermissionHistory-Ctdqhib6.js} +1 -1
- package/dist/client/assets/{PermissionsPage-D1DJHezV.js → PermissionsPage-CYA_zdrV.js} +1 -1
- package/dist/client/assets/{PersonalityPopover-BV-9wfIl.js → PersonalityPopover-BR4Cpr2C.js} +1 -1
- package/dist/client/assets/PhotoPage-C3Ir3wlA.js +1 -0
- package/dist/client/assets/{PresetPicker-BOQKgYAK.js → PresetPicker-zGvDOqTf.js} +2 -2
- package/dist/client/assets/{PreviewRefusedNotice-BdhUln2h.js → PreviewRefusedNotice-D1Tl265t.js} +1 -1
- package/dist/client/assets/{ProfileFields-DFRnRR38.js → ProfileFields-T3vVbHRC.js} +1 -1
- package/dist/client/assets/{ProfilePanelContainer-CkxX9Dps.js → ProfilePanelContainer-CParzTPA.js} +1 -1
- package/dist/client/assets/{ProfileRolePicker-BSYi_luB.js → ProfileRolePicker-BU4eiMKn.js} +1 -1
- package/dist/client/assets/{PromptSuggestionChips-r08GqBH1.js → PromptSuggestionChips-CGNQc2Tf.js} +1 -1
- package/dist/client/assets/{ReportsToPopover-BcsM5Eia.js → ReportsToPopover-Dj5U_Ppi.js} +1 -1
- package/dist/client/assets/{RoomSurface-DaRCf4og.js → RoomSurface-BIyjtxKD.js} +7 -7
- package/dist/client/assets/{RoomsPage-CQqsdVvB.js → RoomsPage-Cvs3h6f0.js} +1 -1
- package/dist/client/assets/{RunsOnPopover-DFb4xEhP.js → RunsOnPopover-BUlYwRW4.js} +1 -1
- package/dist/client/assets/{RuntimeConnectFlow-pKFJlNSJ.js → RuntimeConnectFlow-ChrvjC84.js} +1 -1
- package/dist/client/assets/{RuntimeSetupDialog-DvBJbrmj.js → RuntimeSetupDialog-BK9yo7YF.js} +1 -1
- package/dist/client/assets/{SessionsPage-CGgnEPh7.js → SessionsPage-CWUwU3US.js} +1 -1
- package/dist/client/assets/{SettingsDialog-D0cmzjrH.js → SettingsDialog-BApzy0J8.js} +3 -3
- package/dist/client/assets/{SkillsPage-DDoPlsn2.js → SkillsPage-z3XnApNX.js} +1 -1
- package/dist/client/assets/{TaskDialogWrapper-DoIVzbKU.js → TaskDialogWrapper-BEWUpAlk.js} +1 -1
- package/dist/client/assets/{TasksEmptyState-B68O6dnT.js → TasksEmptyState-CLwpLnIO.js} +2 -2
- package/dist/client/assets/{TasksPage-BsBDphim.js → TasksPage-CyHjr9OZ.js} +1 -1
- package/dist/client/assets/{TeamComputerEntry-CoQ4EsDm.js → TeamComputerEntry-BHHIofx3.js} +1 -1
- package/dist/client/assets/{ToolsPage-Cl1aOpev.js → ToolsPage-CckCco8x.js} +1 -1
- package/dist/client/assets/TopologyGraph-Dox7aWP3.js +30 -0
- package/dist/client/assets/{TourHost-4O6TJzc-.js → TourHost-CTBewD-a.js} +1 -1
- package/dist/client/assets/{UnlinkDialog-DIMY60Fi.js → UnlinkDialog-CFRgExId.js} +1 -1
- package/dist/client/assets/{WidgetErrorCard-CzWw_SPD.js → WidgetErrorCard-Dx5oPMlF.js} +23 -23
- package/dist/client/assets/_commonjs-dynamic-modules-TDtrdbi3.js +1 -0
- package/dist/client/assets/{_shell-BRH2Y-U-.js → _shell-BHUZq_8C.js} +1 -1
- package/dist/client/assets/{_shell._home-DG3Vw7S5.js → _shell._home-DnBkgWs4.js} +1 -1
- package/dist/client/assets/{_shell._home.activity-COI96oAO.js → _shell._home.activity-CVCC-EEI.js} +1 -1
- package/dist/client/assets/{_shell._home.index-CTwsTjcQ.js → _shell._home.index-Ck6jxwIx.js} +1 -1
- package/dist/client/assets/{_shell._home.tasks-DOVoPYaf.js → _shell._home.tasks-B7QQAZnA.js} +1 -1
- package/dist/client/assets/{_shell._home.workspaces-ApZhnjwy.js → _shell._home.workspaces-DlrRd9tv.js} +1 -1
- package/dist/client/assets/{_shell.channels-CRkJHU5R.js → _shell.channels-CiWehoyl.js} +4 -4
- package/dist/client/assets/{_shell.connections-bhAK3jnE.js → _shell.connections-CGP5hZHq.js} +1 -1
- package/dist/client/assets/{_shell.feedback-requests-k43R8-rW.js → _shell.feedback-requests-BxxNvw6j.js} +1 -1
- package/dist/client/assets/_shell.marketplace-BoAmyvPt.js +1 -0
- package/dist/client/assets/_shell.marketplace_.sources-BpqWjkGL.js +1 -0
- package/dist/client/assets/{_shell.session-D871zZl3.js → _shell.session-KyPj3OxK.js} +17 -17
- package/dist/client/assets/{_shell.team-DHCM1QoO.js → _shell.team-CsXH3NkS.js} +4 -4
- package/dist/client/assets/_shell.x._extensionId-CfiAgtoq.js +1 -0
- package/dist/client/assets/_shell.x._extensionId_._-CfiAgtoq.js +1 -0
- package/dist/client/assets/abnfDiagram-WEYOIA3C-CMdkyiQ3.js +1 -0
- package/dist/client/assets/{access-copy-BVzi1REx.js → access-copy-CW-z1oMH.js} +1 -1
- package/dist/client/assets/arc-Bw7tftQk.js +1 -0
- package/dist/client/assets/architectureDiagram-ZHVYKT53-BhpXALtX.js +36 -0
- package/dist/client/assets/{banner-3xXXsU5J.js → banner-EomQNDOH.js} +1 -1
- package/dist/client/assets/blockDiagram-RJAE7QA3-Bxk_BuZv.js +140 -0
- package/dist/client/assets/c4Diagram-XDPPPE54-CYN0FwR8.js +38 -0
- package/dist/client/assets/{card-Bt6IU-Bh.js → card-ww4ebz8h.js} +1 -1
- package/dist/client/assets/channel-DZpRF3QJ.js +1 -0
- package/dist/client/assets/chunk-2E7WHVMD-IPDvYcPa.js +88 -0
- package/dist/client/assets/chunk-2Q5K7J3B-DZ5bU5Ax.js +1 -0
- package/dist/client/assets/chunk-4EMNKR2T-DrsWxa6Y.js +1 -0
- package/dist/client/assets/chunk-55XCU76K-CiBbKG0b.js +1 -0
- package/dist/client/assets/chunk-5VM5RSS4-B3K3MUav.js +15 -0
- package/dist/client/assets/chunk-JWPE2WC7-CjV5RcIh.js +1 -0
- package/dist/client/assets/chunk-VQ5W62QI-CWoRr0H2.js +1 -0
- package/dist/client/assets/chunk-XXDRQBXY-E0nvzXiG.js +1 -0
- package/dist/client/assets/chunk-ZCHMQSOR-DFop6Lvt.js +2 -0
- package/dist/client/assets/classDiagram-v2-4MYWR3UA-B7JJfc9z.js +217 -0
- package/dist/client/assets/{command-CWokzKS1.js → command-D4fLpJxA.js} +1 -1
- package/dist/client/assets/cose-bilkent-JH36ORCC-BjNppl29.js +1 -0
- package/dist/client/assets/{cpu-BzByzE9V.js → cpu-DCe0Yyml.js} +1 -1
- package/dist/client/assets/cynefin-EF2NZ3EQ-PmRntJwW.js +141 -0
- package/dist/client/assets/cynefinDiagram-WF24UDRP-Ctdbp_Vg.js +62 -0
- package/dist/client/assets/cytoscape.esm-BLAcgzS2.js +331 -0
- package/dist/client/assets/dagre-NK4GIZVX-5tvLY2ZW.js +4 -0
- package/dist/client/assets/defaultLocale-DX6XiGOO.js +1 -0
- package/dist/client/assets/diagram-CBK3MWTC-DZO-XBOO.js +24 -0
- package/dist/client/assets/diagram-I5XIIV2D-CWBbA1Pv.js +24 -0
- package/dist/client/assets/diagram-ODIL2UCW-hP5A1tGl.js +30 -0
- package/dist/client/assets/diagram-PFBEJUXE-EI_-RoN7.js +3 -0
- package/dist/client/assets/diagram-RJA3I4VV-TrYq9A4Z.js +41 -0
- package/dist/client/assets/diagram-TYUNFSNR-BAQq2OM5.js +200 -0
- package/dist/client/assets/ebnfDiagram-V4P3TTPT-cKbeW9dQ.js +1 -0
- package/dist/client/assets/elk-QONTBCTQ-wpfNPp0q.js +27 -0
- package/dist/client/assets/{empty-state-BgnQDiMZ.js → empty-state-DXWQsHMf.js} +1 -1
- package/dist/client/assets/erDiagram-KYQIGQAA-Dk0OrvjE.js +99 -0
- package/dist/client/assets/{execution-config-D5-SEt2t.js → execution-config-CAyT2Qoo.js} +1 -1
- package/dist/client/assets/{file-VHDTQub2.js → file-Bf7D_47y.js} +1 -1
- package/dist/client/assets/{file-exclamation-point-DbWvGys0.js → file-exclamation-point-DZXE9_8o.js} +1 -1
- package/dist/client/assets/{file-text-BAhi2zct.js → file-text-C1ougnBY.js} +1 -1
- package/dist/client/assets/{find-latest-widget-fence-Z0HPVqeK.js → find-latest-widget-fence-B1_-pC-Z.js} +1 -1
- package/dist/client/assets/flowDiagram-IUGLLWBU-CdlOoRZV.js +213 -0
- package/dist/client/assets/{form-Blrb1xBU.js → form-D7kF-U0d.js} +1 -1
- package/dist/client/assets/{format-cron-lKWqEmle.js → format-cron-ZtliseYi.js} +1 -1
- package/dist/client/assets/ganttDiagram-R7GPNTJY-x0MJLv5d.js +292 -0
- package/dist/client/assets/{git-branch-BObm8Rlz.js → git-branch-B2k77X3Q.js} +1 -1
- package/dist/client/assets/gitGraphDiagram-PDYL7XHY-CruCvk7w.js +106 -0
- package/dist/client/assets/graph-5PBe05F8.js +1 -0
- package/dist/client/assets/{heart-Du7nuefC.js → heart-CmqGJPDc.js} +1 -1
- package/dist/client/assets/{highlighted-body-KPVGNVTW-B_GO7V1P.js → highlighted-body-KPVGNVTW-Bqu2cQDj.js} +1 -1
- package/dist/client/assets/{image-lightbox-BZ1TV3mN.js → image-lightbox-BBbz-ThL.js} +1 -1
- package/dist/client/assets/{image-off-hnjcBIzN.js → image-off-BCtWIY4q.js} +1 -1
- package/dist/client/assets/{index-Ch-ON5gw.js → index-1ShgR_xt.js} +1 -1
- package/dist/client/assets/{index-DoMJUxt_.js → index-8IAr9b71.js} +1 -1
- package/dist/client/assets/{index-EZHlD3gf.js → index-8TfzCkKR.js} +1 -1
- package/dist/client/assets/{index-B0tAedq7.js → index-B5rRtvWx.js} +1 -1
- package/dist/client/assets/index-B6dEbNhI.js +1 -0
- package/dist/client/assets/{index-WxtASL5_.js → index-BCk4wW-T.js} +1 -1
- package/dist/client/assets/{index-Ci74HAFs.js → index-BIIH5CXj.js} +1 -1
- package/dist/client/assets/{index-CiQxS4Bn.js → index-BXMxoWrk.js} +1 -1
- package/dist/client/assets/index-BXZlDqvy.js +74 -0
- package/dist/client/assets/{index-Bm0z9mHt.js → index-BfRW2WTx.js} +1 -1
- package/dist/client/assets/{index-CCg7yRe1.js → index-BpmmNapD.js} +1 -1
- package/dist/client/assets/{index-r_O6CmXY.js → index-BrQGZ6iF.js} +1 -1
- package/dist/client/assets/{index-Df7a-2P5.js → index-BuGQxHrf.js} +1 -1
- package/dist/client/assets/{index-BP68J4pb.js → index-BzPgsdPn.js} +1 -1
- package/dist/client/assets/{index-CqoIjNC2.js → index-C11Ssk2u.js} +2 -2
- package/dist/client/assets/{index-BnNTKsbt.js → index-CJ5v2_Cz.js} +1 -1
- package/dist/client/assets/{index-4PAAWURd.js → index-CMNc_OrC.js} +1 -1
- package/dist/client/assets/{index-BvjuGXcS.js → index-CQ0VLZf-.js} +1 -1
- package/dist/client/assets/{index-BaRQVgiN.js → index-ChwNEkM8.js} +1 -1
- package/dist/client/assets/index-Cl8trmnL.js +1 -0
- package/dist/client/assets/{index-1I8qHZDt.js → index-ClBIPuLA.js} +1 -1
- package/dist/client/assets/{index-D6y4WeTi.js → index-Cml5572f.js} +1 -1
- package/dist/client/assets/{index-DHYvT3nr.js → index-Cp3yShS8.js} +6 -6
- package/dist/client/assets/{index-DB8TDRSm.js → index-CtycM8wY.js} +1 -1
- package/dist/client/assets/{index-aXm0xP_2.js → index-Cv0GsC4n.js} +1 -1
- package/dist/client/assets/{index-ox3ce99A.js → index-DAdo_yIq.js} +1 -1
- package/dist/client/assets/{index-HxT_wkaZ.js → index-DIxzqCwG.js} +1 -1
- package/dist/client/assets/{index-Cdyszxoa.js → index-DKDK-3KH.js} +5 -5
- package/dist/client/assets/index-DPNBHwcQ.js +1 -0
- package/dist/client/assets/{index-BgzgdvDn.js → index-DbDI5BAA.js} +1 -1
- package/dist/client/assets/{index-Dc5cpBoO.js → index-DcZPWi_I.js} +248 -248
- package/dist/client/assets/{index-CBm3whA-.js → index-Dmn03xST.js} +1 -1
- package/dist/client/assets/{index-BeVbHOwX.js → index-Do6eeFps.js} +2 -2
- package/dist/client/assets/{index-BtbZpz4b.js → index-DrA03bMq.js} +1 -1
- package/dist/client/assets/{index-D5TZCu8j.js → index-DsJWzmWw.js} +1 -1
- package/dist/client/assets/{index-DRea_Gi0.js → index-EdJm7ZN-.js} +1 -1
- package/dist/client/assets/{index-CQCN6kWR.js → index-JxeBJIuE.js} +1 -1
- package/dist/client/assets/{index-BUOcbPfv.js → index-mFOJXyAE.js} +3 -3
- package/dist/client/assets/{index-BVKXIbLh.js → index-rWZWP3Wh.js} +1 -1
- package/dist/client/assets/{index-DkhM0fDi.js → index-t4Ud6YTX.js} +1 -1
- package/dist/client/assets/{index-Lh82Rz5C.js → index-xaMF1mrN.js} +1 -1
- package/dist/client/assets/{index-C60RrnTd.js → index-xmk9Ohv9.js} +1 -1
- package/dist/client/assets/{index-4GC2fkeO.js → index-yI1r4pSP.js} +1 -1
- package/dist/client/assets/{index.esm-DXsF3Bua.js → index.esm-CZZtbPRj.js} +1 -1
- package/dist/client/assets/infoDiagram-MVDRKAX5-Bj9DD77n.js +2 -0
- package/dist/client/assets/init-Gi6I4Gst.js +1 -0
- package/dist/client/assets/{inline-code-DAEoWvTf.js → inline-code-g9PVHZI2.js} +1 -1
- package/dist/client/assets/ishikawaDiagram-HPEHV2GE-DckI6dhS.js +70 -0
- package/dist/client/assets/journeyDiagram-BOSHW7O7-Ce1GAVa0.js +139 -0
- package/dist/client/assets/kanban-definition-FNSA4HC5-Kq5O9rZa.js +89 -0
- package/dist/client/assets/katex-DLorvT8M.js +257 -0
- package/dist/client/assets/{layers-CsM34LRv.js → layers-D3lEdRF0.js} +1 -1
- package/dist/client/assets/{lightbulb-B8JAixK_.js → lightbulb-BFE-KkFU.js} +1 -1
- package/dist/client/assets/linear-BT-xgETh.js +1 -0
- package/dist/client/assets/{link-2-Csc6okl3.js → link-2-Dvb6g-2Q.js} +1 -1
- package/dist/client/assets/{list-runtime-types-DQrZNB7x.js → list-runtime-types-8YGEK3Al.js} +1 -1
- package/dist/client/assets/{markdown-content-DPc7aD1j.js → markdown-content-Cqq_QMXA.js} +1 -1
- package/dist/client/assets/{mention-pill-8P_w4muj.js → mention-pill-Bnzt4u2l.js} +1 -1
- package/dist/client/assets/mermaid.core-dpp59v7L.js +312 -0
- package/dist/client/assets/{message-square-off-D5DXu2cY.js → message-square-off-BX2XnEDx.js} +1 -1
- package/dist/client/assets/mindmap-definition-6OY57UG3-CFdfJO6g.js +98 -0
- package/dist/client/assets/{more-details-DEeu2M-p.js → more-details-B4lBMpKi.js} +1 -1
- package/dist/client/assets/ordinal-Cboi1Yqb.js +1 -0
- package/dist/client/assets/{owner-notice-BW4k1ycg.js → owner-notice-ByjrIRmX.js} +1 -1
- package/dist/client/assets/{package-BSwwAFVm.js → package-6Rbxg35g.js} +1 -1
- package/dist/client/assets/{page-container-CjPUNtNw.js → page-container-DoZzad36.js} +1 -1
- package/dist/client/assets/{paperclip-DQaRz34E.js → paperclip-B-jDXtxw.js} +1 -1
- package/dist/client/assets/{path-input-CgXSYNZn.js → path-input-DpqUD8hN.js} +1 -1
- package/dist/client/assets/pegDiagram-ECIUJNBX-eVnSw2Ma.js +1 -0
- package/dist/client/assets/pieDiagram-GNMPY74T-BYG7LY5Q.js +39 -0
- package/dist/client/assets/{plug-BaUXMfIl.js → plug-DnaAhcy4.js} +1 -1
- package/dist/client/assets/{primer-trigger-DHB0vilf.js → primer-trigger-Da5ECjY8.js} +2 -2
- package/dist/client/assets/{profile-errors-JW2XTgia.js → profile-errors-GbTNc2-M.js} +1 -1
- package/dist/client/assets/{progress-CErAw8zp.js → progress-DlIRjXIA.js} +1 -1
- package/dist/client/assets/quadrantDiagram-D57K4MC3-CRgNKuHR.js +7 -0
- package/dist/client/assets/{query-error-state-BFWpEXsl.js → query-error-state-DB-Jby7_.js} +1 -1
- package/dist/client/assets/{radio-Bkx216ga.js → radio-CaaE60ws.js} +1 -1
- package/dist/client/assets/railroadDiagram-Y72NRBL7-DGL-Hqz9.js +1 -0
- package/dist/client/assets/registry-DS1Ghdft.js +1 -0
- package/dist/client/assets/{relay-trace-schemas-DiZj_AFV.js → relay-trace-schemas-CcCqyOrA.js} +2 -2
- package/dist/client/assets/requirementDiagram-EQYSW5RA-DKsFpU3l.js +84 -0
- package/dist/client/assets/{room-files-source-BilZvdpf.js → room-files-source-CbbVpvSW.js} +1 -1
- package/dist/client/assets/{rotate-ccw-clock-D_SO1stN.js → rotate-ccw-clock-CeY00nlZ.js} +1 -1
- package/dist/client/assets/{rotate-cw-C68kM23F.js → rotate-cw-Djl5J_x9.js} +1 -1
- package/dist/client/assets/sankeyDiagram-SY24JHO5-BFRkDxic.js +40 -0
- package/dist/client/assets/{scroll-area-CVWFUmJV.js → scroll-area-BOqrziJf.js} +1 -1
- package/dist/client/assets/{search-x-BTFVvyA2.js → search-x-B_mHjnlo.js} +1 -1
- package/dist/client/assets/sequenceDiagram-BLEHNHQU-fHea3KOI.js +169 -0
- package/dist/client/assets/{shield-check-Dpxi6WqO.js → shield-check-Csnr5rFy.js} +1 -1
- package/dist/client/assets/{shield-x-CdCCgyXk.js → shield-x-Dhl4YvvW.js} +1 -1
- package/dist/client/assets/{signed-in-BxAnDo0S.js → signed-in-BMqAss8c.js} +1 -1
- package/dist/client/assets/sizeCapture-INFHLROL-CztsD3qF.js +1 -0
- package/dist/client/assets/{soul-file-CRfKVJX3.js → soul-file-DOfamgB5.js} +1 -1
- package/dist/client/assets/stateDiagram-v2-A6IESKWZ-CWyOqZ9S.js +291 -0
- package/dist/client/assets/swimlanes-B3ENRKFQ-0EfOxSAX.js +1 -0
- package/dist/client/assets/swimlanesDiagram-AYQRV4AK-C7fkUKrq.js +8 -0
- package/dist/client/assets/{table-BL3xUC41.js → table-L7FvN6Or.js} +1 -1
- package/dist/client/assets/{terminal-u_UCRzSM.js → terminal-C9M5a_PS.js} +1 -1
- package/dist/client/assets/timeline-definition-JXYKGLGB-sFyYvZ20.js +120 -0
- package/dist/client/assets/transform-BqqRT-Iy.js +1 -0
- package/dist/client/assets/{trust-posture-B-v4BWo7.js → trust-posture-dl6qwDtI.js} +1 -1
- package/dist/client/assets/{unplug-CFbC-L5W.js → unplug-CFUEVRbc.js} +1 -1
- package/dist/client/assets/{unverified-catalog-notice-ZUqscVFM.js → unverified-catalog-notice-CdYU3WEJ.js} +1 -1
- package/dist/client/assets/{use-adapter-catalog-Z4MDWZAZ.js → use-adapter-catalog-YTofdqDJ.js} +1 -1
- package/dist/client/assets/{use-bindings-CsTavmf-.js → use-bindings-CpyT6kNu.js} +1 -1
- package/dist/client/assets/{use-composer-prefs-BY2dTvep.js → use-composer-prefs-CK_EK_QJ.js} +1 -1
- package/dist/client/assets/{use-connector-management-L9l21yTi.js → use-connector-management-DwoK8kon.js} +1 -1
- package/dist/client/assets/{use-deep-link-scroll-Bn2ZUtDY.js → use-deep-link-scroll-CgRjt48R.js} +1 -1
- package/dist/client/assets/{use-delete-binding-DLvdHtPD.js → use-delete-binding-CfsnMXrL.js} +1 -1
- package/dist/client/assets/{use-dev-links-DFvL8mIg.js → use-dev-links-B3I-ZK34.js} +1 -1
- package/dist/client/assets/{use-external-adapter-catalog-Be57G4tz.js → use-external-adapter-catalog-aGlZNRrp.js} +1 -1
- package/dist/client/assets/{use-full-activity-feed-Cp3lYXdi.js → use-full-activity-feed-B61Olhdw.js} +1 -1
- package/dist/client/assets/use-is-below-desktop-Qwyg-mFb.js +1 -0
- package/dist/client/assets/use-is-hub-CSz6NDaP.js +1 -0
- package/dist/client/assets/{use-jump-back-in-ChH1FSEK.js → use-jump-back-in-C39GOTHa.js} +3 -3
- package/dist/client/assets/{use-local-browser-zA8gMhcC.js → use-local-browser-DCwzB4D8.js} +1 -1
- package/dist/client/assets/{use-mesh-topology-CvoD-L1G.js → use-mesh-topology-LRYxFuZp.js} +1 -1
- package/dist/client/assets/{use-mounted-ref-Ch0wqQry.js → use-mounted-ref-CZaegwTr.js} +1 -1
- package/dist/client/assets/{use-notification-prefs-DeR05zhp.js → use-notification-prefs-FtOiUS5H.js} +1 -1
- package/dist/client/assets/{use-panel-tab-placements-DdjrmaoK.js → use-panel-tab-placements-Dv2OPvKh.js} +1 -1
- package/dist/client/assets/use-pending-read-DBOl1ee_.js +1 -0
- package/dist/client/assets/{use-personality-commit-qQfISO2-.js → use-personality-commit-BB5aeh6p.js} +1 -1
- package/dist/client/assets/{use-promo-activation-CwGoE7b-.js → use-promo-activation-BW0u7n7m.js} +2 -2
- package/dist/client/assets/{use-promo-dismissals-BBqVN4hx.js → use-promo-dismissals-BOXzW4kD.js} +1 -1
- package/dist/client/assets/{use-pulse-freshness-BKW7tjvX.js → use-pulse-freshness-ClW-MLMo.js} +1 -1
- package/dist/client/assets/{use-relay-config-D5iieBXl.js → use-relay-config-hItHtkSr.js} +1 -1
- package/dist/client/assets/{use-room-follow-claim-BwZh2ZPH.js → use-room-follow-claim-wotzxUWc.js} +1 -1
- package/dist/client/assets/{use-roving-tab-list-Ct7yDAUE.js → use-roving-tab-list-DkbO6xSs.js} +1 -1
- package/dist/client/assets/use-session-canvas-C_fuAgW_.js +24 -0
- package/dist/client/assets/{use-session-diagnostics-Dn-Wnyhh.js → use-session-diagnostics-DmxvD-wy.js} +1 -1
- package/dist/client/assets/{use-unclaimed-chats-M-c5tjXH.js → use-unclaimed-chats-DKpexDm3.js} +1 -1
- package/dist/client/assets/use-update-config-CSYwg557.js +1 -0
- package/dist/client/assets/{useMutationState-Cd-VqRAv.js → useMutationState-Btf2Hp1a.js} +1 -1
- package/dist/client/assets/usecaseDiagram-WPOLBNNX-DRngjDUq.js +370 -0
- package/dist/client/assets/value-wA6veExk.js +1 -0
- package/dist/client/assets/vennDiagram-Q3Y3IDCW-iK-dlS1-.js +34 -0
- package/dist/client/assets/wardleyDiagram-IVAIDKWA-sOS67Cks.js +78 -0
- package/dist/client/assets/xychartDiagram-4URNHDU4-EgnLiIao.js +7 -0
- package/dist/client/index.html +1 -1
- package/dist/server/index.js +4223 -3493
- package/dist/server/index.js.map +2 -2
- package/package.json +6 -6
- package/dist/client/assets/BlintzCanvas-ClOKWzws.js +0 -1141
- package/dist/client/assets/CanvasFileContent-B_8zsIas.js +0 -2
- package/dist/client/assets/HandlePage-BdRWgke2.js +0 -1
- package/dist/client/assets/NamePage-DyH8JAqT.js +0 -1
- package/dist/client/assets/PhotoPage-BHvRQnex.js +0 -1
- package/dist/client/assets/TopologyGraph-D3CxaLGX.js +0 -30
- package/dist/client/assets/_shell.marketplace-DGN_IdZY.js +0 -1
- package/dist/client/assets/_shell.marketplace_.sources-2YMpLInp.js +0 -1
- package/dist/client/assets/_shell.x._extensionId-D3-n5IRW.js +0 -1
- package/dist/client/assets/_shell.x._extensionId_._-D3-n5IRW.js +0 -1
- package/dist/client/assets/index-DCOOlbEt.js +0 -1
- package/dist/client/assets/index-Dain_3cO.js +0 -1
- package/dist/client/assets/index-_5Dn0bFm.js +0 -74
- package/dist/client/assets/registry-Ce1VRIS3.js +0 -1
- package/dist/client/assets/use-is-below-desktop-DmekpHAF.js +0 -1
- package/dist/client/assets/use-is-hub-el7LTkg3.js +0 -1
- package/dist/client/assets/use-pending-read-DBpte0GI.js +0 -1
- package/dist/client/assets/use-session-canvas-CJrfZrYG.js +0 -24
- package/dist/client/assets/use-update-config-DhlbZldm.js +0 -1
package/dist/bin/cli.js
CHANGED
|
@@ -23009,7 +23009,7 @@ var init_config_sections = __esm({
|
|
|
23009
23009
|
});
|
|
23010
23010
|
|
|
23011
23011
|
// ../shared/src/memory-provider.ts
|
|
23012
|
-
var AgentMemoryRefSchema, MemoryCapabilitiesSchema, BUILTIN_MEMORY_PROVIDER_ID, MemoryProviderInfoSchema, MemorySnapshotSchema, MemoryProvenanceSchema, MemoryWriteOpSchema, MemoryWriteResultSchema, MemoryQuerySchema, MemoryHitSchema, MemoryHitsSchema, MemorySelectorSchema;
|
|
23012
|
+
var AgentMemoryRefSchema, MemoryCapabilitiesSchema, BUILTIN_MEMORY_PROVIDER_ID, MemoryProviderInfoSchema, MemorySnapshotSchema, WINDOWS_RESERVED_NAME, MemoryNoteNameSchema, MemoryNoteDescriptionSchema, MemoryProvenanceSchema, MemoryWriteOpSchema, MemoryWriteResultSchema, MemoryQuerySchema, MemoryHitSchema, MemoryHitsSchema, MemorySelectorSchema, MemoryNoteListQuerySchema, MemoryNoteEntrySchema, MemoryNoteListSchema;
|
|
23013
23013
|
var init_memory_provider = __esm({
|
|
23014
23014
|
"../shared/src/memory-provider.ts"() {
|
|
23015
23015
|
"use strict";
|
|
@@ -23039,7 +23039,18 @@ var init_memory_provider = __esm({
|
|
|
23039
23039
|
* ({@link MemoryCapExceededError}), not a background rewrite of a file the
|
|
23040
23040
|
* operator can open in an editor.
|
|
23041
23041
|
*/
|
|
23042
|
-
consolidate: external_exports.boolean()
|
|
23042
|
+
consolidate: external_exports.boolean(),
|
|
23043
|
+
/**
|
|
23044
|
+
* Can this backend keep NOTES FILES beside the capped memory — the second
|
|
23045
|
+
* level, read on demand rather than carried in every prompt
|
|
23046
|
+
* ({@link MemoryProvider.listNotes}, {@link MemoryProvider.readNote}, and a
|
|
23047
|
+
* write or forget that names a `note`)?
|
|
23048
|
+
*
|
|
23049
|
+
* The builtin provider declares `true`: `<agentPath>/.dork/memory/<name>.md`.
|
|
23050
|
+
* A backend without it refuses all four loudly, so "this backend keeps no
|
|
23051
|
+
* notes" never arrives as "you have no notes".
|
|
23052
|
+
*/
|
|
23053
|
+
notes: external_exports.boolean()
|
|
23043
23054
|
});
|
|
23044
23055
|
BUILTIN_MEMORY_PROVIDER_ID = "builtin";
|
|
23045
23056
|
MemoryProviderInfoSchema = external_exports.object({
|
|
@@ -23135,6 +23146,12 @@ var init_memory_provider = __esm({
|
|
|
23135
23146
|
});
|
|
23136
23147
|
}
|
|
23137
23148
|
});
|
|
23149
|
+
WINDOWS_RESERVED_NAME = /^(?:con|prn|aux|nul|com\d|lpt\d)$/;
|
|
23150
|
+
MemoryNoteNameSchema = external_exports.string().regex(
|
|
23151
|
+
/^[a-z0-9][a-z0-9_-]{0,79}$/,
|
|
23152
|
+
"a note name is lowercase letters, digits, - and _, starting with a letter or digit, at most 80 characters, with no extension"
|
|
23153
|
+
).refine((name2) => !WINDOWS_RESERVED_NAME.test(name2), "that name is reserved on Windows");
|
|
23154
|
+
MemoryNoteDescriptionSchema = external_exports.string().trim().min(1).max(200).refine((value) => !/[\r\n\u0085\u2028\u2029]/.test(value), "a description is one line");
|
|
23138
23155
|
MemoryProvenanceSchema = external_exports.object({
|
|
23139
23156
|
/**
|
|
23140
23157
|
* The room this was learned in, as a person would name it (`'#general'`), or
|
|
@@ -23150,7 +23167,14 @@ var init_memory_provider = __esm({
|
|
|
23150
23167
|
* stamp then says so, wherever the note was written, so a later session
|
|
23151
23168
|
* never reads it as the operator's own.
|
|
23152
23169
|
*/
|
|
23153
|
-
outsider: external_exports.boolean().optional()
|
|
23170
|
+
outsider: external_exports.boolean().optional(),
|
|
23171
|
+
/**
|
|
23172
|
+
* True only for a note a migration copied in from Claude Code's own memory,
|
|
23173
|
+
* never for one an agent saved: the stamp then reads
|
|
23174
|
+
* `(migrated from Claude Code memory, <date>)` instead of naming a room.
|
|
23175
|
+
* Set by the migration script, which has no turn to derive a room from.
|
|
23176
|
+
*/
|
|
23177
|
+
migrated: external_exports.boolean().optional()
|
|
23154
23178
|
});
|
|
23155
23179
|
MemoryWriteOpSchema = external_exports.discriminatedUnion("action", [
|
|
23156
23180
|
external_exports.object({
|
|
@@ -23159,7 +23183,15 @@ var init_memory_provider = __esm({
|
|
|
23159
23183
|
/** What to remember, in the agent's own words. */
|
|
23160
23184
|
text: external_exports.string().min(1),
|
|
23161
23185
|
/** Where it was learned. Omitted only by a caller with no turn context, e.g. a migration. */
|
|
23162
|
-
provenance: MemoryProvenanceSchema.optional()
|
|
23186
|
+
provenance: MemoryProvenanceSchema.optional(),
|
|
23187
|
+
/** Which notes file to write, or omitted for the capped memory itself. Gated on `notes`. */
|
|
23188
|
+
note: MemoryNoteNameSchema.optional(),
|
|
23189
|
+
/**
|
|
23190
|
+
* What the notes file is about, in one line. REQUIRED when this `add`
|
|
23191
|
+
* creates the file and ignored otherwise: a list of bare names gives an
|
|
23192
|
+
* agent nothing to choose by.
|
|
23193
|
+
*/
|
|
23194
|
+
description: MemoryNoteDescriptionSchema.optional()
|
|
23163
23195
|
}),
|
|
23164
23196
|
external_exports.object({
|
|
23165
23197
|
/** Rewrite an existing note. */
|
|
@@ -23167,13 +23199,17 @@ var init_memory_provider = __esm({
|
|
|
23167
23199
|
/** Text that must appear EXACTLY ONCE in the current memory. */
|
|
23168
23200
|
oldText: external_exports.string().min(1),
|
|
23169
23201
|
/** What replaces it. */
|
|
23170
|
-
text: external_exports.string().min(1)
|
|
23202
|
+
text: external_exports.string().min(1),
|
|
23203
|
+
/** Which notes file to edit, or omitted for the capped memory itself. */
|
|
23204
|
+
note: MemoryNoteNameSchema.optional()
|
|
23171
23205
|
}),
|
|
23172
23206
|
external_exports.object({
|
|
23173
23207
|
/** Forget an existing note. */
|
|
23174
23208
|
action: external_exports.literal("remove"),
|
|
23175
23209
|
/** Text that must appear EXACTLY ONCE in the current memory. */
|
|
23176
|
-
oldText: external_exports.string().min(1)
|
|
23210
|
+
oldText: external_exports.string().min(1),
|
|
23211
|
+
/** Which notes file to edit, or omitted for the capped memory itself. */
|
|
23212
|
+
note: MemoryNoteNameSchema.optional()
|
|
23177
23213
|
})
|
|
23178
23214
|
]);
|
|
23179
23215
|
MemoryWriteResultSchema = external_exports.object({
|
|
@@ -23202,7 +23238,45 @@ var init_memory_provider = __esm({
|
|
|
23202
23238
|
});
|
|
23203
23239
|
MemorySelectorSchema = external_exports.object({
|
|
23204
23240
|
/** Text that must appear EXACTLY ONCE in the current memory. */
|
|
23205
|
-
text: external_exports.string().min(1)
|
|
23241
|
+
text: external_exports.string().min(1),
|
|
23242
|
+
/** Which notes file to forget from, or omitted for the capped memory itself. */
|
|
23243
|
+
note: MemoryNoteNameSchema.optional()
|
|
23244
|
+
});
|
|
23245
|
+
MemoryNoteListQuerySchema = external_exports.object({
|
|
23246
|
+
/** Only notes whose name or description contains this, case-insensitively. */
|
|
23247
|
+
query: external_exports.string().trim().min(1).max(200).optional(),
|
|
23248
|
+
/** Where the previous page stopped: the `nextCursor` it returned. */
|
|
23249
|
+
cursor: external_exports.string().min(1).max(200).optional(),
|
|
23250
|
+
/** How many notes at most. A backend may return fewer. */
|
|
23251
|
+
limit: external_exports.number().int().positive().max(200).optional()
|
|
23252
|
+
});
|
|
23253
|
+
MemoryNoteEntrySchema = external_exports.object({
|
|
23254
|
+
/** The file's name, which is what `readNote` and a write's `note` take. */
|
|
23255
|
+
name: MemoryNoteNameSchema,
|
|
23256
|
+
/**
|
|
23257
|
+
* What it is about: its `description:` frontmatter, or its first line of text
|
|
23258
|
+
* when it has none (a note written before descriptions were required).
|
|
23259
|
+
*/
|
|
23260
|
+
description: external_exports.string(),
|
|
23261
|
+
/** Size on disk, in bytes. */
|
|
23262
|
+
bytes: external_exports.number().int().min(0),
|
|
23263
|
+
/** When it last changed, ISO 8601. The list is newest first. */
|
|
23264
|
+
updatedAt: external_exports.string().min(1),
|
|
23265
|
+
/** When a migration copied it in from Claude Code's memory, ISO date. Absent for the agent's own. */
|
|
23266
|
+
migratedAt: external_exports.string().min(1).optional()
|
|
23267
|
+
});
|
|
23268
|
+
MemoryNoteListSchema = external_exports.object({
|
|
23269
|
+
status: external_exports.enum(["ok", "error"]),
|
|
23270
|
+
/** This page of notes, newest first. */
|
|
23271
|
+
notes: external_exports.array(MemoryNoteEntrySchema),
|
|
23272
|
+
/** How many notes match, across every page. */
|
|
23273
|
+
total: external_exports.number().int().min(0),
|
|
23274
|
+
/** How many of those a migration copied in within the last week, for the tidy nudge. */
|
|
23275
|
+
recentlyMigrated: external_exports.number().int().min(0),
|
|
23276
|
+
/** Pass back as `cursor` for the next page. Absent on the last page. */
|
|
23277
|
+
nextCursor: external_exports.string().min(1).optional(),
|
|
23278
|
+
/** Why the read failed. Present iff `status === 'error'`; for the server log. */
|
|
23279
|
+
error: external_exports.string().min(1).optional()
|
|
23206
23280
|
});
|
|
23207
23281
|
}
|
|
23208
23282
|
});
|
|
@@ -23615,6 +23689,20 @@ var init_config_schema = __esm({
|
|
|
23615
23689
|
sessionRelay: external_exports.object({
|
|
23616
23690
|
enabled: external_exports.boolean().default(false)
|
|
23617
23691
|
}).default(() => ({ enabled: false })),
|
|
23692
|
+
/**
|
|
23693
|
+
* Docs: markdown documents people and agents write together, with embeds,
|
|
23694
|
+
* wiki links, comments and live editing (DOR-2981 to DOR-2984).
|
|
23695
|
+
*
|
|
23696
|
+
* An experiment, OFF by default: while it is off the `/api/documents`
|
|
23697
|
+
* routes answer 404 and the canvas editor gets no embed components, wiki
|
|
23698
|
+
* link resolution, comments or live editing (the editor still parses the
|
|
23699
|
+
* `::name` and `[[link]]` syntax either way). Read on every request, so a
|
|
23700
|
+
* change takes effect at once. It joins Settings → Experiments with the
|
|
23701
|
+
* first Docs feature; graduation is DOR-2993.
|
|
23702
|
+
*/
|
|
23703
|
+
docs: external_exports.object({
|
|
23704
|
+
enabled: external_exports.boolean().default(false)
|
|
23705
|
+
}).default(() => ({ enabled: false })),
|
|
23618
23706
|
/**
|
|
23619
23707
|
* Letting agents on other systems talk to the agents on this one.
|
|
23620
23708
|
*
|
|
@@ -26673,7 +26761,7 @@ import path2 from "path";
|
|
|
26673
26761
|
import { fileURLToPath } from "url";
|
|
26674
26762
|
function resolveVersion() {
|
|
26675
26763
|
if (env2.DORKOS_VERSION_OVERRIDE) return env2.DORKOS_VERSION_OVERRIDE;
|
|
26676
|
-
if (true) return "0.
|
|
26764
|
+
if (true) return "0.121.0";
|
|
26677
26765
|
const pkgPath = path2.join(path2.dirname(fileURLToPath(import.meta.url)), "../../package.json");
|
|
26678
26766
|
return JSON.parse(readFileSync(pkgPath, "utf-8")).version;
|
|
26679
26767
|
}
|
|
@@ -28122,7 +28210,7 @@ var init_interceptor = __esm({
|
|
|
28122
28210
|
for (const callback of this.callbacks) {
|
|
28123
28211
|
callback();
|
|
28124
28212
|
}
|
|
28125
|
-
if (signal
|
|
28213
|
+
if (signal) {
|
|
28126
28214
|
if (IS_WINDOWS && (signal !== "SIGINT" && signal !== "SIGTERM" && signal !== "SIGKILL")) {
|
|
28127
28215
|
process6.kill(process6.pid, "SIGTERM");
|
|
28128
28216
|
} else {
|
|
@@ -45986,6 +46074,7 @@ var init_marketplace_schemas = __esm({
|
|
|
45986
46074
|
var SKILL_FILENAME, WIDGET_TEMPLATE_SUFFIX;
|
|
45987
46075
|
var init_constants7 = __esm({
|
|
45988
46076
|
"../skills/src/constants.ts"() {
|
|
46077
|
+
"use strict";
|
|
45989
46078
|
SKILL_FILENAME = "SKILL.md";
|
|
45990
46079
|
WIDGET_TEMPLATE_SUFFIX = ".widget.json";
|
|
45991
46080
|
}
|
|
@@ -49168,7 +49257,6 @@ function parseFrontmatter(content) {
|
|
|
49168
49257
|
var DATA_LANGUAGES, FRONTMATTER_LIMITS, UnsupportedFrontmatterError, OversizedFrontmatterError, NonMappingFrontmatterError, ALIAS_NODE, FRONTMATTER_PARSERS;
|
|
49169
49258
|
var init_frontmatter = __esm({
|
|
49170
49259
|
"../skills/src/frontmatter.ts"() {
|
|
49171
|
-
"use strict";
|
|
49172
49260
|
init_js_yaml();
|
|
49173
49261
|
DATA_LANGUAGES = /* @__PURE__ */ new Map([
|
|
49174
49262
|
["yaml", "yaml"],
|
|
@@ -53178,7 +53266,6 @@ var init_capabilities = __esm({
|
|
|
53178
53266
|
var PROJECT_NAME_PATTERN, ProjectRefSchema, ProjectInfoSchema, ProjectListResponseSchema, ProjectResolveQuerySchema, ProjectResolveResponseSchema, AccountEligibilityRowSchema, AccountEligibilityQuerySchema, AccountEligibilityResponseSchema, ProjectAccountsRequestSchema, ProjectWithoutCreditsRequestSchema, OnlyProjectsRequestSchema, OnlyProjectsResponseSchema;
|
|
53179
53267
|
var init_project_schemas = __esm({
|
|
53180
53268
|
"../shared/src/project-schemas.ts"() {
|
|
53181
|
-
"use strict";
|
|
53182
53269
|
init_zod();
|
|
53183
53270
|
init_zod_openapi();
|
|
53184
53271
|
extendZodWithOpenApiOnce();
|
|
@@ -58664,6 +58751,7 @@ function validateSlug(s2) {
|
|
|
58664
58751
|
}
|
|
58665
58752
|
var init_slug = __esm({
|
|
58666
58753
|
"../skills/src/slug.ts"() {
|
|
58754
|
+
"use strict";
|
|
58667
58755
|
}
|
|
58668
58756
|
});
|
|
58669
58757
|
|
|
@@ -129225,6 +129313,7 @@ function defuseSystemTags(text3, tagNames) {
|
|
|
129225
129313
|
var IDENTITY_MAX_LENGTH, INVISIBLE_FORMAT, CONTROL_CHARS, PATTERN_CACHE;
|
|
129226
129314
|
var init_untrusted_text = __esm({
|
|
129227
129315
|
"../shared/src/untrusted-text.ts"() {
|
|
129316
|
+
"use strict";
|
|
129228
129317
|
IDENTITY_MAX_LENGTH = 80;
|
|
129229
129318
|
INVISIBLE_FORMAT = /[\u00ad\u200b-\u200f\u202a-\u202e\u2060-\u2064\ufeff\ufff9-\ufffb]/g;
|
|
129230
129319
|
CONTROL_CHARS = /[\u0000-\u001f\u007f-\u009f]/g;
|
|
@@ -129407,6 +129496,8 @@ var init_config_disclosure = __esm({
|
|
|
129407
129496
|
// Whether chatting from the web is on (DOR-2946): a plain boolean. The hub's
|
|
129408
129497
|
// address and the relay secret live in the relay's own file, never in config.
|
|
129409
129498
|
"sessionRelay.enabled": "expose",
|
|
129499
|
+
// Whether the Docs experiment is on (DOR-2993): a plain boolean.
|
|
129500
|
+
"docs.enabled": "expose",
|
|
129410
129501
|
// Whether the spaces experiment is on (DOR-2740): a plain boolean, no host.
|
|
129411
129502
|
"spaces.enabled": "expose",
|
|
129412
129503
|
// The official space's public link (spec `official-community-space` D4): a
|
|
@@ -129994,6 +130085,9 @@ var init_config_write_policy = __esm({
|
|
|
129994
130085
|
// (DOR-2946). A "who can reach this computer" door, so a person opens it,
|
|
129995
130086
|
// never an agent.
|
|
129996
130087
|
"sessionRelay.enabled": "operator-only",
|
|
130088
|
+
// Whether the Docs experiment is on (DOR-2993). Like every experiment, a
|
|
130089
|
+
// person tries it, never an agent.
|
|
130090
|
+
"docs.enabled": "operator-only",
|
|
129997
130091
|
// Whether this DorkOS joins and talks to spaces on other servers (DOR-2740).
|
|
129998
130092
|
// Another "who can this instance reach" door, so a person opens it, never an
|
|
129999
130093
|
// agent.
|
|
@@ -130669,7 +130763,9 @@ var init_config_write_policy = __esm({
|
|
|
130669
130763
|
// setting that decides whether a model turn runs at all (DOR-1046).
|
|
130670
130764
|
"welcomeBack.offersEnabled",
|
|
130671
130765
|
// Whether agents wake on their own at all (spec `heartbeats` §3.6).
|
|
130672
|
-
"heartbeats.enabled"
|
|
130766
|
+
"heartbeats.enabled",
|
|
130767
|
+
// Docs: a mention in a doc comment wakes the agent it names (DOR-2983).
|
|
130768
|
+
"docs.enabled"
|
|
130673
130769
|
]
|
|
130674
130770
|
},
|
|
130675
130771
|
{
|
|
@@ -176581,7 +176677,7 @@ if (process.argv[2] === "community") {
|
|
|
176581
176677
|
);
|
|
176582
176678
|
Object.assign(childEnv, credentialEnv.pickCommunityCredentialEnv(rawProcessEnv));
|
|
176583
176679
|
const exitCode = await dispatcher.runCommunityDispatcher(process.argv.slice(3), {
|
|
176584
|
-
cliVersion: "0.
|
|
176680
|
+
cliVersion: "0.121.0",
|
|
176585
176681
|
dorkHome: DORK_HOME,
|
|
176586
176682
|
processEnv: childEnv,
|
|
176587
176683
|
parseRelease: (bytes) => releaseContract.parseCompatibleCommunityReleaseManifest(
|
|
@@ -176599,7 +176695,7 @@ if (process.argv[2] === "community") {
|
|
|
176599
176695
|
process.exit(1);
|
|
176600
176696
|
}
|
|
176601
176697
|
}
|
|
176602
|
-
var cliErrorReporter = initCliErrorReporting({ dorkHome: DORK_HOME, version: "0.
|
|
176698
|
+
var cliErrorReporter = initCliErrorReporting({ dorkHome: DORK_HOME, version: "0.121.0" });
|
|
176603
176699
|
var uninstallCliErrorHandlers = cliErrorReporter ? installCliErrorHandlers(cliErrorReporter) : void 0;
|
|
176604
176700
|
if (process.argv[2] === "doctor") {
|
|
176605
176701
|
process.env.DORK_HOME = DORK_HOME;
|
|
@@ -176609,7 +176705,7 @@ if (process.argv[2] === "doctor") {
|
|
|
176609
176705
|
if (process.argv[2] === "feedback") {
|
|
176610
176706
|
process.env.DORK_HOME = DORK_HOME;
|
|
176611
176707
|
const { runFeedback: runFeedback2 } = await Promise.resolve().then(() => (init_feedback2(), feedback_exports));
|
|
176612
|
-
process.exit(await runFeedback2(DORK_HOME, "0.
|
|
176708
|
+
process.exit(await runFeedback2(DORK_HOME, "0.121.0", process.argv.slice(3)));
|
|
176613
176709
|
}
|
|
176614
176710
|
if (process.argv[2] === "auth") {
|
|
176615
176711
|
process.env.DORK_HOME = DORK_HOME;
|
|
@@ -176708,7 +176804,7 @@ if (process.argv[2] === "agent" || process.argv[2] === "task" || process.argv[2]
|
|
|
176708
176804
|
}
|
|
176709
176805
|
}
|
|
176710
176806
|
const { runVersionDispatcher: runVersionDispatcher2 } = await Promise.resolve().then(() => (init_version5(), version_exports));
|
|
176711
|
-
process.exit(await runVersionDispatcher2("0.
|
|
176807
|
+
process.exit(await runVersionDispatcher2("0.121.0", DORK_HOME, subArgs));
|
|
176712
176808
|
}
|
|
176713
176809
|
var { values, positionals } = parseCliArgs();
|
|
176714
176810
|
if (positionals[0] && !knownCommands.has(positionals[0])) {
|
|
@@ -176802,14 +176898,14 @@ Examples:
|
|
|
176802
176898
|
process.exit(0);
|
|
176803
176899
|
}
|
|
176804
176900
|
if (values.version) {
|
|
176805
|
-
console.log("0.
|
|
176901
|
+
console.log("0.121.0");
|
|
176806
176902
|
process.exit(0);
|
|
176807
176903
|
}
|
|
176808
176904
|
if (values["post-install-check"]) {
|
|
176809
176905
|
const claudeFound = checkClaude();
|
|
176810
176906
|
const coreExtensionsFound = checkCoreExtensions();
|
|
176811
176907
|
const extensionsCompile = await checkExtensionCompilation();
|
|
176812
|
-
console.log(`dorkos ${"0.
|
|
176908
|
+
console.log(`dorkos ${"0.121.0"}`);
|
|
176813
176909
|
if (!coreExtensionsFound) {
|
|
176814
176910
|
console.log("Installation incomplete \u2014 bundled core extensions are missing.");
|
|
176815
176911
|
}
|
|
@@ -176957,7 +177053,7 @@ if (fs39.existsSync(envPath)) {
|
|
|
176957
177053
|
}
|
|
176958
177054
|
uninstallCliErrorHandlers?.();
|
|
176959
177055
|
process.env.DORKOS_CLI_ENTRYPOINT = fileURLToPath7(import.meta.url);
|
|
176960
|
-
process.env.DORKOS_CLI_VERSION = "0.
|
|
177056
|
+
process.env.DORKOS_CLI_VERSION = "0.121.0";
|
|
176961
177057
|
var server;
|
|
176962
177058
|
try {
|
|
176963
177059
|
server = await import("../server/index.js");
|
|
@@ -176982,7 +177078,7 @@ var ansiReset = "\x1B[0m";
|
|
|
176982
177078
|
console.log("");
|
|
176983
177079
|
console.log(`${purple}${logo}${ansiReset}`);
|
|
176984
177080
|
console.log("");
|
|
176985
|
-
console.log(` DorkOS v${"0.
|
|
177081
|
+
console.log(` DorkOS v${"0.121.0"}`);
|
|
176986
177082
|
console.log(` Local: ${link(localUrl, localUrl)}`);
|
|
176987
177083
|
var nets = networkInterfaces();
|
|
176988
177084
|
var networkUrl = null;
|
|
@@ -177008,9 +177104,9 @@ if (shouldOpenBrowser && process.stdin.isTTY) {
|
|
|
177008
177104
|
const openCmd = process.platform === "darwin" ? "open" : process.platform === "win32" ? "start" : "xdg-open";
|
|
177009
177105
|
exec(`${openCmd} ${localUrl}`);
|
|
177010
177106
|
}
|
|
177011
|
-
checkForUpdate("0.
|
|
177107
|
+
checkForUpdate("0.121.0").then((latestVersion) => {
|
|
177012
177108
|
if (latestVersion) {
|
|
177013
|
-
const msg = `Update available: ${"0.
|
|
177109
|
+
const msg = `Update available: ${"0.121.0"} \u2192 ${latestVersion}`;
|
|
177014
177110
|
const cmd = "Run npm install -g dorkos@latest to update";
|
|
177015
177111
|
const width = Math.max(msg.length, cmd.length) + 6;
|
|
177016
177112
|
const pad2 = (s2) => `\u2502 ${s2}${" ".repeat(width - s2.length - 6)} \u2502`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":1,"controllerSHA256":"
|
|
1
|
+
{"version":1,"controllerSHA256":"31ed5f61408bead56cdfb1a7b28dcbe4dd9f86dbc77e77b303dedc17cdd87693","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":"31ed5f61408bead56cdfb1a7b28dcbe4dd9f86dbc77e77b303dedc17cdd87693","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-DcZPWi_I.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-DlROxqde.js → ActivityErrorState-CHTXfBS7.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ep as x,a1 as o,av as u,eq as f,j as a,G as c,a0 as p,B as y}from"./index-DcZPWi_I.js";const g=["Today","Yesterday","This week","Earlier"];function A(e,s){const t=new Map;for(const r of e){const n=h(new Date(r.occurredAt),s),i=t.get(n)??[];i.push(r),t.set(n,i)}return g.filter(r=>t.has(r)).map(r=>({label:r,items:t.get(r)}))}function h(e,s){const t=new Date(s);t.setHours(0,0,0,0);const r=new Date(t);r.setDate(r.getDate()-1);const n=new Date(t);return n.setDate(n.getDate()-n.getDay()),e>=t?"Today":e>=r?"Yesterday":e>=n?"This week":"Earlier"}const T={person:"user",external:"user",agent:"agent",system:"system"};function k(e){return e.source.sessionId?x({session:e.source.sessionId}):null}function v(e){return{id:e.id,occurredAt:e.at,actorType:T[e.actor.kind],actorLabel:e.actor.name,summary:e.summary,linkPath:k(e)}}const d=["audit"],l=50;function m(e){return e.pages.flatMap(s=>s.events.map(v))}function E(e={}){const s=o();return u({queryKey:[...d,"list",e],queryFn:({pageParam:t})=>s.listAuditEvents({...e,limit:l,beforeSeq:t}),initialPageParam:void 0,getNextPageParam:t=>t.nextBeforeSeq,select:m,staleTime:3e4,refetchOnWindowFocus:!0})}function P(e){const s=o();return u({queryKey:[...d,"timeline",e],queryFn:e===null?f:({pageParam:t})=>s.getAccountTimeline(e,{limit:l,beforeSeq:t}),initialPageParam:void 0,getNextPageParam:t=>t.nextBeforeSeq,select:m,staleTime:3e4,refetchOnWindowFocus:!0})}function j({label:e,className:s}){return a.jsx("div",{"data-slot":"activity-group-header",className:c("sticky top-0 z-10 -mx-4 px-4 py-2 sm:-mx-6 sm:px-6","bg-background/95 backdrop-blur-sm",s),children:a.jsx("h3",{className:"text-muted-foreground text-xs font-medium tracking-wider uppercase",children:e})})}function D({onRetry:e,className:s}){return a.jsxs("div",{"data-slot":"activity-error-state",className:c("flex flex-col items-center justify-center gap-3 py-16 text-center",s),children:[a.jsx("div",{className:"bg-destructive/10 rounded-xl p-3",children:a.jsx(p,{className:"text-destructive size-6","aria-hidden":"true"})}),a.jsxs("div",{className:"space-y-1",children:[a.jsx("p",{className:"text-foreground text-sm font-medium",children:"Couldn’t load your activity"}),a.jsx("p",{className:"text-muted-foreground max-w-xs text-xs",children:"The DorkOS server didn’t answer. Check that it’s running."})]}),a.jsx(y,{variant:"outline",size:"sm",onClick:e,children:"Retry"})]})}export{D as A,j as a,E as b,A as g,P as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as c,j as e,e as d,A as u,B as j,x as v}from"./index-
|
|
1
|
+
import{r as c,j as e,e as d,A as u,B as j,x as v}from"./index-DcZPWi_I.js";import{E as g}from"./empty-state-DXWQsHMf.js";import{T as N,a as A}from"./table-L7FvN6Or.js";import{u as b,g as w,A as E,a as T}from"./ActivityErrorState-CHTXfBS7.js";import{A as B}from"./ActivityRow-CSuSz-92.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{b7 as d,d3 as x,j as e,_ as u,G as l,c4 as m,d4 as g,B as h}from"./index-
|
|
1
|
+
import{b7 as d,d3 as x,j as e,_ as u,G as l,c4 as m,d4 as g,B as h}from"./index-DcZPWi_I.js";import{b as f,c}from"./table-L7FvN6Or.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{bD as n,bE as r,j as c,bF as s,aS as A}from"./index-
|
|
1
|
+
import{bD as n,bE as r,j as c,bF as s,aS as A}from"./index-DcZPWi_I.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 S({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{S as A,g as a,E as b};
|
package/dist/client/assets/{AdapterSetupWizard-D9tqz7Hl.js → AdapterSetupWizard-BG8H-Lld.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a1 as be,a3 as Ne,a4 as ze,j as e,be as qe,bf as Ee,r as m,cR as ie,hd as Te,cS as oe,gY as le,$ as $e,O as ce,Q as de,he as ue,T as he,U as pe,bx as K,ar as J,hf as me,hg as Me,G as U,dU as X,dV as Z,dW as ee,dX as se,dY as te,I as re,e0 as xe,J as We,bw as Ve,B as k,hh as Se,e1 as De,d$ as ae,x as ke,bc as Pe,bb as Re,a0 as Oe,ak as ge,hi as Le,hj as _e,hk as Ge,hl as Ue,hm as Ie,ct as Qe,a7 as G,es as He,et as Ye,eu as Ke,ev as Je,ew as Xe,ex as Ze,hn as fe,ho as H}from"./index-Dc5cpBoO.js";import{B as es}from"./use-bindings-CsTavmf-.js";import{M as I}from"./markdown-content-DPc7aD1j.js";import{a as ss,b as ts,c as rs}from"./use-adapter-catalog-Z4MDWZAZ.js";import{u as as}from"./form-Blrb1xBU.js";import{a as ns}from"./BindingDialog-CSNjws3F.js";import"./relay-trace-schemas-DiZj_AFV.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(K,{children:d&&e.jsx(J.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.15},className:"overflow-hidden",children:e.jsx(me,{className:"mt-1.5",children:d})})})]});const b=()=>{var N,C;switch(s.type){case"text":case"url":return e.jsx(re,{id:o,type:s.type==="url"?"url":"text",value:h,onChange:c=>a(s.key,c.target.value),placeholder:s.placeholder,"aria-invalid":!!d||void 0,"aria-required":s.required||void 0});case"password":return x?e.jsx(xe,{id:o,value:h,showPassword:!1,onChange:c=>{a(s.key,c.target.value.trim()),i&&n("")},onFocus:()=>a(s.key,""),onBlur:y,placeholder:"Saved · type to replace"}):e.jsx(xe,{id:o,value:h,visibleByDefault:s.visibleByDefault??!1,onChange:c=>{a(s.key,c.target.value.trim()),i&&n("")},onBlur:y,onPaste:()=>setTimeout(y,0),placeholder:s.placeholder,"aria-invalid":!!d||void 0,"aria-required":s.required||void 0});case"number":return e.jsx(re,{id:o,type:"number",value:h,onChange:c=>a(s.key,c.target.value?Number(c.target.value):void 0),placeholder:s.placeholder,"aria-invalid":!!d||void 0,"aria-required":s.required||void 0});case"select":return s.displayAs==="radio-cards"?e.jsx("div",{className:"grid grid-cols-2 gap-3",role:"radiogroup","aria-labelledby":`${o}-label`,"aria-required":s.required||void 0,children:(N=s.options)==null?void 0:N.map(c=>e.jsxs("button",{type:"button",role:"radio","aria-checked":h===c.value,onClick:()=>a(s.key,c.value),className:U("hover:bg-accent/50 focus-visible:border-ring focus-visible:ring-ring flex flex-col items-start rounded-md border p-3 text-left transition outline-none focus-visible:ring-[3px]",h===c.value&&"border-primary ring-primary bg-accent/30 ring-1"),children:[e.jsx("span",{className:"text-sm font-medium",children:c.label}),c.description&&e.jsx("span",{className:"text-muted-foreground mt-1 text-xs",children:c.description})]},c.value))}):e.jsxs(X,{value:h,onValueChange:c=>a(s.key,c),children:[e.jsx(Z,{id:o,"aria-invalid":!!d||void 0,"aria-required":s.required||void 0,children:e.jsx(ee,{placeholder:s.placeholder??"Select…"})}),e.jsx(se,{children:(C=s.options)==null?void 0:C.map(c=>e.jsx(te,{value:c.value,children:c.label},c.value))})]});case"textarea":return e.jsx(Me,{id:o,value:h,onChange:c=>a(s.key,c.target.value),placeholder:s.placeholder,rows:3,"aria-invalid":!!d||void 0,"aria-required":s.required||void 0});default:return null}};return e.jsxs(ie,{children:[e.jsxs(oe,{id:`${o}-label`,htmlFor:v?void 0:o,children:[s.label,s.required&&!x&&e.jsx("span",{"aria-hidden":"true",className:"text-destructive ml-0.5",children:"*"})]}),b(),s.description&&e.jsx(le,{className:"text-xs",children:s.description}),s.helpMarkdown&&e.jsxs(ce,{children:[e.jsxs(de,{className:"text-muted-foreground hover:text-foreground mt-1 flex items-center gap-1 text-xs transition-colors",children:[e.jsx(ue,{className:"size-3"}),"Where do I find this?",e.jsx(he,{className:"size-3 transition-transform [[data-state=open]_&]:rotate-180"})]}),e.jsx(pe,{children:e.jsx("div",{className:"bg-muted/50 mt-2 rounded-md border p-3",children:e.jsx(I,{content:s.helpMarkdown,className:"text-xs"})})})]}),e.jsx(K,{children:d&&e.jsx(J.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.15},className:"overflow-hidden",children:e.jsx(me,{children:d})})})]})}function os(s,t){return s.showWhen?t[s.showWhen.field]===s.showWhen.equals:!0}function ls({fields:s,allValues:t,renderField:a}){const r=new Map;for(const l of s){const i=l.section;r.has(i)||r.set(i,[]),r.get(i).push(l)}return e.jsx("div",{className:"space-y-6",children:Array.from(r.entries()).map(([l,i])=>{const n=i.filter(o=>os(o,t));return n.length===0?null:e.jsxs("div",{className:"space-y-3",children:[l&&e.jsx("h4",{className:"text-sm font-semibold",children:l}),e.jsx(qe,{children:e.jsx(Ee,{children:n.map(o=>a(o))})})]},l??"__default")})})}const je=["agent","configure","test","confirm"],cs={agent:"Agent",configure:"Set up",test:"Check",confirm:"Review"};function ds({current:s,showAgentStep:t}){const a=t?je:je.filter(l=>l!=="agent"),r=a.indexOf(s);return e.jsx("div",{className:"flex items-start justify-between px-1",role:"navigation","aria-label":"Setup steps",children:a.map((l,i)=>{const n=i<r,o=i===r,v=i>r;return e.jsxs(m.Fragment,{children:[i>0&&e.jsx("div",{className:U("mt-3 h-px flex-1",n||o?"bg-primary":"border-muted-foreground/40 border-t border-dashed")}),e.jsxs("div",{className:"flex flex-col items-center gap-1",children:[e.jsx("div",{className:U("flex size-6 items-center justify-center rounded-full text-xs font-medium",n&&"bg-primary text-primary-foreground",o&&"bg-primary text-primary-foreground ring-primary/30 ring-2",v&&"border-muted-foreground text-muted-foreground border"),"aria-current":o?"step":void 0,children:n?e.jsx(We,{className:"size-3"}):i+1}),e.jsx("span",{className:U("text-3xs",o?"text-foreground font-medium":"text-muted-foreground"),children:cs[l]})]})]},l)})})}function us({manifest:s,label:t,onLabelChange:a,fields:r,form:l,currentSetupStep:i,hasSetupGuide:n,onOpenGuide:o}){const{Subscribe:v,AppField:h}=l;return e.jsxs("div",{className:"space-y-4",children:[s.setupInstructions&&e.jsxs("div",{className:"flex gap-2 rounded-md border border-blue-200 bg-blue-50 p-3 text-sm text-blue-800 dark:border-blue-800 dark:bg-blue-950 dark:text-blue-200",children:[e.jsx(Ve,{className:"mt-0.5 size-4 shrink-0"}),e.jsx(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,be as qe,bf as Ee,r as m,cR as ie,hf as Te,cS as oe,g_ as le,$ as $e,O as ce,Q as de,hg as ue,T as he,U as pe,bx as K,ar as J,hh as me,hi as Me,G as U,dU as X,dV as Z,dW as ee,dX as se,dY as te,I as re,e0 as xe,J as We,bw as Ve,B as k,hj as Se,e1 as De,d$ as ae,x as ke,bc as Pe,bb as Re,a0 as Oe,ak as ge,hk as Le,hl as _e,hm as Ge,hn as Ue,ho as Ie,ct as Qe,a7 as G,et as He,eu as Ye,ev as Ke,ew as Je,ex as Xe,ey as Ze,hp as fe,hq as H}from"./index-DcZPWi_I.js";import{B as es}from"./use-bindings-CpyT6kNu.js";import{M as I}from"./markdown-content-Cqq_QMXA.js";import{a as ss,b as ts,c as rs}from"./use-adapter-catalog-YTofdqDJ.js";import{u as as}from"./form-D7kF-U0d.js";import{a as ns}from"./BindingDialog-DqPDLYbF.js";import"./relay-trace-schemas-CcCqyOrA.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(K,{children:d&&e.jsx(J.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.15},className:"overflow-hidden",children:e.jsx(me,{className:"mt-1.5",children:d})})})]});const b=()=>{var N,C;switch(s.type){case"text":case"url":return e.jsx(re,{id:o,type:s.type==="url"?"url":"text",value:h,onChange:c=>a(s.key,c.target.value),placeholder:s.placeholder,"aria-invalid":!!d||void 0,"aria-required":s.required||void 0});case"password":return x?e.jsx(xe,{id:o,value:h,showPassword:!1,onChange:c=>{a(s.key,c.target.value.trim()),i&&n("")},onFocus:()=>a(s.key,""),onBlur:y,placeholder:"Saved · type to replace"}):e.jsx(xe,{id:o,value:h,visibleByDefault:s.visibleByDefault??!1,onChange:c=>{a(s.key,c.target.value.trim()),i&&n("")},onBlur:y,onPaste:()=>setTimeout(y,0),placeholder:s.placeholder,"aria-invalid":!!d||void 0,"aria-required":s.required||void 0});case"number":return e.jsx(re,{id:o,type:"number",value:h,onChange:c=>a(s.key,c.target.value?Number(c.target.value):void 0),placeholder:s.placeholder,"aria-invalid":!!d||void 0,"aria-required":s.required||void 0});case"select":return s.displayAs==="radio-cards"?e.jsx("div",{className:"grid grid-cols-2 gap-3",role:"radiogroup","aria-labelledby":`${o}-label`,"aria-required":s.required||void 0,children:(N=s.options)==null?void 0:N.map(c=>e.jsxs("button",{type:"button",role:"radio","aria-checked":h===c.value,onClick:()=>a(s.key,c.value),className:U("hover:bg-accent/50 focus-visible:border-ring focus-visible:ring-ring flex flex-col items-start rounded-md border p-3 text-left transition outline-none focus-visible:ring-[3px]",h===c.value&&"border-primary ring-primary bg-accent/30 ring-1"),children:[e.jsx("span",{className:"text-sm font-medium",children:c.label}),c.description&&e.jsx("span",{className:"text-muted-foreground mt-1 text-xs",children:c.description})]},c.value))}):e.jsxs(X,{value:h,onValueChange:c=>a(s.key,c),children:[e.jsx(Z,{id:o,"aria-invalid":!!d||void 0,"aria-required":s.required||void 0,children:e.jsx(ee,{placeholder:s.placeholder??"Select…"})}),e.jsx(se,{children:(C=s.options)==null?void 0:C.map(c=>e.jsx(te,{value:c.value,children:c.label},c.value))})]});case"textarea":return e.jsx(Me,{id:o,value:h,onChange:c=>a(s.key,c.target.value),placeholder:s.placeholder,rows:3,"aria-invalid":!!d||void 0,"aria-required":s.required||void 0});default:return null}};return e.jsxs(ie,{children:[e.jsxs(oe,{id:`${o}-label`,htmlFor:v?void 0:o,children:[s.label,s.required&&!x&&e.jsx("span",{"aria-hidden":"true",className:"text-destructive ml-0.5",children:"*"})]}),b(),s.description&&e.jsx(le,{className:"text-xs",children:s.description}),s.helpMarkdown&&e.jsxs(ce,{children:[e.jsxs(de,{className:"text-muted-foreground hover:text-foreground mt-1 flex items-center gap-1 text-xs transition-colors",children:[e.jsx(ue,{className:"size-3"}),"Where do I find this?",e.jsx(he,{className:"size-3 transition-transform [[data-state=open]_&]:rotate-180"})]}),e.jsx(pe,{children:e.jsx("div",{className:"bg-muted/50 mt-2 rounded-md border p-3",children:e.jsx(I,{content:s.helpMarkdown,className:"text-xs"})})})]}),e.jsx(K,{children:d&&e.jsx(J.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.15},className:"overflow-hidden",children:e.jsx(me,{children:d})})})]})}function os(s,t){return s.showWhen?t[s.showWhen.field]===s.showWhen.equals:!0}function ls({fields:s,allValues:t,renderField:a}){const r=new Map;for(const l of s){const i=l.section;r.has(i)||r.set(i,[]),r.get(i).push(l)}return e.jsx("div",{className:"space-y-6",children:Array.from(r.entries()).map(([l,i])=>{const n=i.filter(o=>os(o,t));return n.length===0?null:e.jsxs("div",{className:"space-y-3",children:[l&&e.jsx("h4",{className:"text-sm font-semibold",children:l}),e.jsx(qe,{children:e.jsx(Ee,{children:n.map(o=>a(o))})})]},l??"__default")})})}const je=["agent","configure","test","confirm"],cs={agent:"Agent",configure:"Set up",test:"Check",confirm:"Review"};function ds({current:s,showAgentStep:t}){const a=t?je:je.filter(l=>l!=="agent"),r=a.indexOf(s);return e.jsx("div",{className:"flex items-start justify-between px-1",role:"navigation","aria-label":"Setup steps",children:a.map((l,i)=>{const n=i<r,o=i===r,v=i>r;return e.jsxs(m.Fragment,{children:[i>0&&e.jsx("div",{className:U("mt-3 h-px flex-1",n||o?"bg-primary":"border-muted-foreground/40 border-t border-dashed")}),e.jsxs("div",{className:"flex flex-col items-center gap-1",children:[e.jsx("div",{className:U("flex size-6 items-center justify-center rounded-full text-xs font-medium",n&&"bg-primary text-primary-foreground",o&&"bg-primary text-primary-foreground ring-primary/30 ring-2",v&&"border-muted-foreground text-muted-foreground border"),"aria-current":o?"step":void 0,children:n?e.jsx(We,{className:"size-3"}):i+1}),e.jsx("span",{className:U("text-3xs",o?"text-foreground font-medium":"text-muted-foreground"),children:cs[l]})]})]},l)})})}function us({manifest:s,label:t,onLabelChange:a,fields:r,form:l,currentSetupStep:i,hasSetupGuide:n,onOpenGuide:o}){const{Subscribe:v,AppField:h}=l;return e.jsxs("div",{className:"space-y-4",children:[s.setupInstructions&&e.jsxs("div",{className:"flex gap-2 rounded-md border border-blue-200 bg-blue-50 p-3 text-sm text-blue-800 dark:border-blue-800 dark:bg-blue-950 dark:text-blue-200",children:[e.jsx(Ve,{className:"mt-0.5 size-4 shrink-0"}),e.jsx(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 Y(s){const t={};for(const[a,r]of Object.entries(s)){const l=a.split(".");let i=t;for(let n=0;n<l.length-1;n++){const o=l[n];(!(o in i)||typeof i[o]!="object"||i[o]===null)&&(i[o]={}),i=i[o]}i[l[l.length-1]]=r}return t}function ve(s,t){const a=t.split(".");let r=s;for(const l of a){if(r==null||typeof r!="object")return;r=r[l]}return r}function vs(s,t){const a={};for(const r of s.configFields){const l=t?ve(t,r.key):void 0;l!==void 0&&r.type!=="password"?a[r.key]=fs(r,l):r.type==="password"&&t&&ve(t,r.key)!==void 0?a[r.key]="***":r.default!==void 0?a[r.key]=r.default:a[r.key]=r.type==="boolean"?!1:""}return a}function bs(s,t=[]){const a=s.type;if(!t.includes(a))return a;let r=2;for(;t.includes(`${a}-${r}`);)r++;return`${a}-${r}`}function Ns({manifest:s,existingInstance:t,existingAdapterIds:a=[],onOpenChange:r}){const l=!!t,[i,n]=m.useState(t?"configure":"agent"),[o,v]=m.useState(!1),[h]=m.useState(()=>(t==null?void 0:t.id)??bs(s,a)),[x,y]=m.useState(()=>{var p;return((p=t==null?void 0:t.config)==null?void 0:p.label)??""}),[d,b]=m.useState(0),[N,C]=m.useState(""),[c,P]=m.useState(""),[$,R]=m.useState("per-chat"),E=ss(),z=ts(),S=rs(),M=ns(),{data:F}=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:Y(g)},{onSuccess:u=>{u.botUsername&&(C(u.botUsername),x||y(`@${u.botUsername}`))}})}else i==="test"&&n("confirm")},[i,c,B,s,d,O,j,S,x]),V=m.useCallback(()=>{i==="test"?(n("configure"),S.reset()):i==="confirm"?n("test"):i==="configure"&&(B&&d>0?b(p=>p-1):l||n("agent"))},[i,B,d,S,l]),D=m.useCallback(async p=>{try{return await w.removeRelayAdapter(p),!0}catch{return!1}finally{q.invalidateQueries({queryKey:["relay"]})}},[w,q]),Q=m.useCallback(()=>{const p=j.state.values,g=Y(p),u=x?{...g,label:x}:g;if(l&&t){z.mutate({id:t.id,config:u},{onSuccess:()=>r(!1)});return}if(!c){n("agent");return}E.mutate({type:s.type,id:h,config:u},{onSuccess:()=>{M.mutate({adapterId:h,agentId:c,sessionStrategy:$,label:""},{onSuccess:()=>{var A;const f=((A=T.find(_=>_.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:Y(j.state.values)})},[S,s.type,j]),Fe=E.isPending||z.isPending||M.isPending,Be=B&&s.setupSteps?s.setupSteps[d]:void 0;return{step:i,isEditMode:l,adapterId:h,label:x,setLabel:y,botUsername:N,guideOpen:o,setGuideOpen:v,form:j,visibleFields:W,bindAgentId:c,setBindAgentId:P,bindStrategy:$,setBindStrategy:R,agentOptions:T,isSaving:Fe,hasSetupSteps:B,setupStepIndex:d,currentSetupStep:Be,testConnection:S,handleContinue: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(Ye,{className:"flex max-h-[85vh] max-w-lg flex-col",children:[e.jsxs(Ke,{children:[e.jsx(Je,{children:o?`Edit ${a.displayName}`:`Add ${a.displayName}`}),e.jsx(Xe,{children:O})]}),e.jsxs("div",{className:"min-h-0 space-y-4 overflow-y-auto py-2",children:[e.jsx(ds,{current:n,showAgentStep:!o}),e.jsx(K,{mode:"wait",children:e.jsxs(J.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},children:[n==="agent"&&e.jsx(xs,{agentOptions:E,agentId:c,onAgentIdChange:P,strategy:$,onStrategyChange:R}),n==="configure"&&e.jsx(us,{manifest:a,label:h,onLabelChange:x,fields:C,form:N,currentSetupStep:F,hasSetupGuide:!!a.setupGuide,onOpenGuide:()=>b(!0)}),n==="test"&&e.jsx(hs,{isPending:w.isPending,isSuccess:w.isSuccess,isError:w.isError,errorMessage:(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-DcZPWi_I.js";function j({agent:e,name:t,secondary:a,trailing:n,selected:i,className:r}){const{color:o,emoji:l}=m(e);return s.jsxs("div",{className:d("flex w-full min-w-0 items-center gap-2",r),children:[s.jsx(c,{color:o,emoji:l,size:"xs",className:"shrink-0"}),s.jsx("span",{className:"min-w-[8ch] flex-auto truncate text-sm font-medium",children:t??x(e)}),a!=null&&s.jsx("span",{"data-slot":"agent-option-row-secondary",className:"text-muted-foreground min-w-0 shrink truncate text-xs",children:a}),n??(i&&s.jsx(u,{className:"size-4 shrink-0","aria-hidden":!0}))]})}export{j as A};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as l,ad as h,j as e,ae as j,af as g,ag as b,ah as v,ai as w,aj as N,ak as p,al as C,G as y,am as k}from"./index-
|
|
1
|
+
import{r as l,ad as h,j as e,ae as j,af as g,ag as b,ah as v,ai as w,aj as N,ak as p,al as C,G as y,am as k}from"./index-DcZPWi_I.js";import{C as A,a as S,b as D,c as E,d as P,e as L}from"./command-D4fLpJxA.js";import{A as R}from"./AgentOptionRow-BWFQFynn.js";function u({agents:n,value:t,onSelect:a}){return e.jsxs(A,{children:[e.jsx(S,{placeholder:"Search agents…"}),e.jsxs(D,{className:"!max-h-60 !overflow-y-auto",children:[e.jsx(E,{children:"No agents found."}),e.jsx(P,{children:n.map(s=>e.jsx(L,{value:`${p(s)} ${s.name} ${s.projectPath}`,onSelect:()=>a(s.id),children:e.jsx(R,{agent:s,secondary:k(s.projectPath),selected:s.id===t})},s.id))})]})]})}function x({selectedAgent:n,open:t,onClick:a}){const s=n?w(n):null;return e.jsxs("button",{type:"button","aria-expanded":t,"aria-haspopup":"listbox",className:y("border-input ring-offset-background flex h-9 w-full items-center justify-between rounded-md border bg-transparent px-3 py-2 text-sm shadow-xs transition-colors","focus-visible:ring-ring focus-visible:ring-1 focus-visible:outline-none","hover:bg-accent/50"),onClick:a,children:[n?e.jsxs("span",{className:"flex items-center gap-2 truncate",children:[e.jsx(N,{color:s.color,emoji:s.emoji,size:"xs"}),e.jsx("span",{className:"truncate",children:p(n)})]}):e.jsx("span",{className:"text-muted-foreground",children:"Select an agent…"}),e.jsx(C,{className:"ml-2 size-4 shrink-0 opacity-50"})]})}function $({agents:n,value:t,onValueChange:a}){const[s,o]=l.useState(!1),i=h(),c=l.useRef(null);l.useEffect(()=>{if(!s||i)return;function r(f){c.current&&!c.current.contains(f.target)&&o(!1)}return document.addEventListener("mousedown",r),()=>document.removeEventListener("mousedown",r)},[s,i]);const d=n.find(r=>r.id===t);function m(r){a(r===t?void 0:r),o(!1)}return n.length===0?e.jsxs("div",{className:"rounded-md border px-4 py-6 text-center",children:[e.jsx("p",{className:"text-muted-foreground text-sm",children:"No agents yet"}),e.jsx("p",{className:"text-muted-foreground mt-1 text-xs",children:"Add one from the Team page to give it tasks."})]}):i?e.jsxs(e.Fragment,{children:[e.jsx(x,{selectedAgent:d,open:s,onClick:()=>o(!0)}),e.jsx(j,{open:s,onOpenChange:o,children:e.jsxs(g,{children:[e.jsx(b,{children:e.jsx(v,{children:"Select an agent"})}),e.jsx("div",{className:"px-4 pb-4",children:e.jsx(u,{agents:n,value:t,onSelect:m})})]})})]}):e.jsxs("div",{ref:c,className:"relative w-full",children:[e.jsx(x,{selectedAgent:d,open:s,onClick:()=>o(r=>!r)}),s&&e.jsx("div",{className:"bg-popover text-popover-foreground absolute top-full left-0 z-50 mt-1 w-full rounded-md border shadow-md",children:e.jsx(u,{agents:n,value:t,onSelect:m})})]})}export{$ as A};
|