dorkos 0.126.3 → 0.126.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/cli.js +138 -93
- package/dist/browser/native/package-manifest.json +1 -1
- package/dist/browser/source-manifest.json +1 -1
- package/dist/client/assets/{AboutPage-ycWTfXI8.js → AboutPage-CAt15a-r.js} +1 -1
- package/dist/client/assets/{ActivityErrorState-DBecAo4-.js → ActivityErrorState-s4xAcJQR.js} +1 -1
- package/dist/client/assets/{ActivityPage-CGuIeDGm.js → ActivityPage-BpSggjZV.js} +1 -1
- package/dist/client/assets/{ActivityRow-BRiUvjHA.js → ActivityRow-5PJBHIt2.js} +1 -1
- package/dist/client/assets/{AdapterIcon-z6z9LKwd.js → AdapterIcon-d8mZODCX.js} +1 -1
- package/dist/client/assets/AdapterSetupWizard-R-KxNMiM.js +2 -0
- package/dist/client/assets/{AgentOptionRow-BLuSwpNh.js → AgentOptionRow-hemBruhh.js} +1 -1
- package/dist/client/assets/{AgentPicker-DazquIgR.js → AgentPicker-DOba9a77.js} +1 -1
- package/dist/client/assets/{AgentRequestCard-BoRmxLKy.js → AgentRequestCard-RFQOrk-W.js} +1 -1
- package/dist/client/assets/{AppearancePage-BMiVpe48.js → AppearancePage-1m4bJ-Rg.js} +1 -1
- package/dist/client/assets/{ApplyToOverridesDialog-BHIrnfPf.js → ApplyToOverridesDialog-BxeMLhGv.js} +1 -1
- package/dist/client/assets/{AttentionSignalRow-CjN8lCWI.js → AttentionSignalRow-BoTonsR5.js} +1 -1
- package/dist/client/assets/{BaseTanStackRouterDevtoolsPanel-B-iktbLX-BMBnO0fv.js → BaseTanStackRouterDevtoolsPanel-B-iktbLX-Bz6XyZ6v.js} +3 -3
- package/dist/client/assets/BindingDialog-CILm91iU.js +1 -0
- package/dist/client/assets/{BlintzCanvas-Dd3bC9vw.js → BlintzCanvas-BFJXKo1L.js} +3 -3
- package/dist/client/assets/{CanvasCsvContent-B2S75f6B.js → CanvasCsvContent-DzkaHpEo.js} +3 -3
- package/dist/client/assets/{CanvasFileContent-CVSfg4MO.js → CanvasFileContent-DZf9SjJn.js} +2 -2
- package/dist/client/assets/{CanvasModel3dContent-CNmJsBTS.js → CanvasModel3dContent-Cd8hf6Ba.js} +2 -2
- package/dist/client/assets/{ChannelComposer-7KpffyFv.js → ChannelComposer-YXkkFcyY.js} +10 -10
- package/dist/client/assets/{ChatAppsOff-D7anOG3n.js → ChatAppsOff-X5Y8OHAz.js} +2 -2
- package/dist/client/assets/{CodeMirrorDiff-CfOmRCky.js → CodeMirrorDiff-BsQKbrls.js} +1 -1
- package/dist/client/assets/{CodeMirrorEditor-Cyz227_1.js → CodeMirrorEditor-DnkumDd3.js} +1 -1
- package/dist/client/assets/{CommitmentList-DKo1Fb1A.js → CommitmentList-BjI2jvMX.js} +1 -1
- package/dist/client/assets/{CommitmentsPage-DIcEZ2ka.js → CommitmentsPage-7g68FcGR.js} +1 -1
- package/dist/client/assets/{ComputerResourceView-Ck7rJ-SP.js → ComputerResourceView-Dcd0e_Oj.js} +1 -1
- package/dist/client/assets/{ComputerViewer-Dw_VpNjD.js → ComputerViewer-Dq3aQyZD.js} +1 -1
- package/dist/client/assets/{ConnectionAccessLists-CETLVH7o.js → ConnectionAccessLists-CXPn8ICQ.js} +1 -1
- package/dist/client/assets/{ConnectionsPage-ZVWDffcl.js → ConnectionsPage-DEc4JsR5.js} +2 -2
- package/dist/client/assets/{ConventionPage-DkJ91wrN.js → ConventionPage-B7cm4O1D.js} +1 -1
- package/dist/client/assets/{ExtensionPageRoute-FbJo1Qc0.js → ExtensionPageRoute-ba2uGsYs.js} +2 -2
- package/dist/client/assets/{FloatingTanStackRouterDevtools-CqogiFob-DCLR3iKw.js → FloatingTanStackRouterDevtools-CqogiFob-Dxk_rLHR.js} +1 -1
- package/dist/client/assets/{ForwardConsentHost-Buy5XlH7.js → ForwardConsentHost-CNuTTR3q.js} +1 -1
- package/dist/client/assets/HandlePage-WIwOCyJg.js +1 -0
- package/dist/client/assets/{HeartbeatPage-GXBEcZoJ.js → HeartbeatPage-CEb8SaAx.js} +1 -1
- package/dist/client/assets/{KeyEntry-g2VQ33KW.js → KeyEntry-CHJpgP6H.js} +1 -1
- package/dist/client/assets/{LexicalField-CLd77PuB.js → LexicalField-B0tWaDy5.js} +1 -1
- package/dist/client/assets/{ManagesPage-qCwzJ4Cx.js → ManagesPage-rcz--gCT.js} +1 -1
- package/dist/client/assets/{Marketplace-DdkdIVPQ.js → Marketplace-wjAUiULQ.js} +4 -4
- package/dist/client/assets/{MarketplaceSourcesView-D44G21ff.js → MarketplaceSourcesView-BMGnEy8T.js} +1 -1
- package/dist/client/assets/{McpAppFrame-DVNWJHrn.js → McpAppFrame-CmwiQHxf.js} +2 -2
- package/dist/client/assets/{McpSigninBody-BO0OkvOw.js → McpSigninBody-D99PCc0n.js} +1 -1
- package/dist/client/assets/{Model3dViewer-Cvcyx2yv.js → Model3dViewer-qUwwZnb2.js} +1 -1
- package/dist/client/assets/NamePage-B7VSrPmK.js +1 -0
- package/dist/client/assets/{NewDirectMessageMenu-C_hXtliM.js → NewDirectMessageMenu-DyMfEU7i.js} +1 -1
- package/dist/client/assets/{NotificationsPage-DP4HAVMA.js → NotificationsPage-BsOaV6Ei.js} +1 -1
- package/dist/client/assets/{OpenMeshSwitch-0Mkl8abo.js → OpenMeshSwitch-CjCPWZn0.js} +2 -2
- package/dist/client/assets/{OperatorIdentityForm-BRftJqRq.js → OperatorIdentityForm-Cd6B2hxb.js} +1 -1
- package/dist/client/assets/{PermissionHistory-Czl5PWN3.js → PermissionHistory-xp6vPQ20.js} +1 -1
- package/dist/client/assets/{PermissionsPage-DAsbrl6Q.js → PermissionsPage-DaAJew99.js} +1 -1
- package/dist/client/assets/{PersonalityPopover-liTJ0Lns.js → PersonalityPopover-BZaif5Fn.js} +1 -1
- package/dist/client/assets/PhotoPage-43WNaavk.js +1 -0
- package/dist/client/assets/{PreviewRefusedNotice-DcD1EY2c.js → PreviewRefusedNotice-CCpHgrea.js} +1 -1
- package/dist/client/assets/{ProfileFields-Bi_AfHOE.js → ProfileFields-DyVqmcPr.js} +1 -1
- package/dist/client/assets/{ProfilePanelContainer-BIbOulLu.js → ProfilePanelContainer-CMRG6AmB.js} +1 -1
- package/dist/client/assets/{ProfileRolePicker-BadkFi4V.js → ProfileRolePicker-Q_hY6ybO.js} +1 -1
- package/dist/client/assets/{PromptSuggestionChips-C653MlaU.js → PromptSuggestionChips-B5afjbD0.js} +1 -1
- package/dist/client/assets/{ReportsToPopover-dIbt6aes.js → ReportsToPopover-CVF7Rtzh.js} +1 -1
- package/dist/client/assets/{RoomSurface-CssMcozl.js → RoomSurface-Bz1DfoQD.js} +1 -1
- package/dist/client/assets/{RoomsPage-CxwTRRNu.js → RoomsPage-4u74yonc.js} +1 -1
- package/dist/client/assets/{RunsOnPopover-lp8n4lgI.js → RunsOnPopover-CnUm4LP2.js} +1 -1
- package/dist/client/assets/{RuntimeConnectFlow-BAqkzthF.js → RuntimeConnectFlow-B0TIITVq.js} +1 -1
- package/dist/client/assets/{RuntimeSetupDialog-E6f7Rd2W.js → RuntimeSetupDialog-CEUC7GrY.js} +1 -1
- package/dist/client/assets/{SeenDevices-xdR3YQNr.js → SeenDevices-CxhuIRp3.js} +2 -2
- package/dist/client/assets/{SessionsPage-BNZTufty.js → SessionsPage-l6_Qc7hz.js} +1 -1
- package/dist/client/assets/{SettingsDialog-d7SQTDNy.js → SettingsDialog-GEK8nhI8.js} +4 -4
- package/dist/client/assets/{SkillsPage-DiqUOZup.js → SkillsPage-PlVj6VdA.js} +1 -1
- package/dist/client/assets/{TaskDialogWrapper-5gb-f-Uo.js → TaskDialogWrapper-TspfYk9J.js} +1 -1
- package/dist/client/assets/{TasksEmptyState-g-CavcMv.js → TasksEmptyState-DsHh0blU.js} +2 -2
- package/dist/client/assets/{TasksPage-BexV_pxB.js → TasksPage-Va0dvkif.js} +1 -1
- package/dist/client/assets/{TeamComputerEntry-BFYqGL-G.js → TeamComputerEntry-C6juiObF.js} +1 -1
- package/dist/client/assets/{ToolsPage-Dxt6qOdF.js → ToolsPage-C0ESG42C.js} +2 -2
- package/dist/client/assets/{TopologyGraph-Cx_6gdbV.js → TopologyGraph-M24Edx-I.js} +3 -3
- package/dist/client/assets/TourHost-CcN4uCDR.js +1 -0
- package/dist/client/assets/{UnlinkDialog-fgubvOUd.js → UnlinkDialog-DlD1cmRZ.js} +1 -1
- package/dist/client/assets/{UnreadDivider-BoLcTO_Z.js → UnreadDivider-DPD9MQ8-.js} +1 -1
- package/dist/client/assets/{WidgetErrorCard-CgRMeAEO.js → WidgetErrorCard-Bte2obmw.js} +3 -3
- package/dist/client/assets/{WithheldExtensionsNotice-CFHBDyIh.js → WithheldExtensionsNotice-CZibLuKA.js} +1 -1
- package/dist/client/assets/{WorkView-5jzcnod5.js → WorkView-PsLjURld.js} +15 -15
- package/dist/client/assets/{_shell-DFfXd1ys.js → _shell-Ce_cSF7V.js} +2 -2
- package/dist/client/assets/{_shell._home-D2GJeGbi.js → _shell._home-DcZcTXu8.js} +1 -1
- package/dist/client/assets/{_shell._home.activity-DRXBBtAq.js → _shell._home.activity-BXw8iSC4.js} +1 -1
- package/dist/client/assets/_shell._home.index-BleaCq_y.js +3 -0
- package/dist/client/assets/{_shell._home.tasks-Cr4gak8T.js → _shell._home.tasks-gdbnkq3-.js} +1 -1
- package/dist/client/assets/{_shell._home.workspaces-DbWciI1g.js → _shell._home.workspaces-BCwJX783.js} +1 -1
- package/dist/client/assets/{_shell.channels-C31Txlqh.js → _shell.channels-D-lMqbSA.js} +1 -1
- package/dist/client/assets/_shell.connections-BFmTpceq.js +1 -0
- package/dist/client/assets/{_shell.feedback-requests-CQc7aVrV.js → _shell.feedback-requests-NKpm6Uhu.js} +1 -1
- package/dist/client/assets/_shell.marketplace-DB7NSxDU.js +1 -0
- package/dist/client/assets/_shell.marketplace_.sources-WU9ILkRM.js +1 -0
- package/dist/client/assets/_shell.session-CchZWYRA.js +1 -0
- package/dist/client/assets/{_shell.team-BlLU5BMC.js → _shell.team-DcCRbdAb.js} +4 -4
- package/dist/client/assets/{_shell.threads-YmF9dQnZ.js → _shell.threads-BLy6Cgqk.js} +1 -1
- package/dist/client/assets/_shell.x._extensionId-CVW0g7Rb.js +1 -0
- package/dist/client/assets/_shell.x._extensionId_._-CVW0g7Rb.js +1 -0
- package/dist/client/assets/{abnfDiagram-WEYOIA3C-DLiXaMmC.js → abnfDiagram-WEYOIA3C-DpkXbw1_.js} +1 -1
- package/dist/client/assets/{access-copy-xWnaUps1.js → access-copy-Y2_F9uAx.js} +1 -1
- package/dist/client/assets/{arc-AndXXvZc.js → arc-B3bZAGvi.js} +1 -1
- package/dist/client/assets/{architectureDiagram-ZHVYKT53-CM4tGveM.js → architectureDiagram-ZHVYKT53-BKR1sFvp.js} +1 -1
- package/dist/client/assets/{banner-BH1gXPTc.js → banner-CqhUGJmy.js} +2 -2
- package/dist/client/assets/{blockDiagram-RJAE7QA3-DenkdFXV.js → blockDiagram-RJAE7QA3-C2I50BMQ.js} +1 -1
- package/dist/client/assets/{c4Diagram-XDPPPE54-DMAlFuoX.js → c4Diagram-XDPPPE54-dhHi_wUH.js} +1 -1
- package/dist/client/assets/{card-TbpEl6EH.js → card-CM7-_8nD.js} +1 -1
- package/dist/client/assets/channel-NlrM9BR7.js +1 -0
- package/dist/client/assets/{chunk-2E7WHVMD-u0q5vCEc.js → chunk-2E7WHVMD-B0B27SHJ.js} +1 -1
- package/dist/client/assets/{chunk-2Q5K7J3B-DBTggfjR.js → chunk-2Q5K7J3B-dsUDjsr2.js} +1 -1
- package/dist/client/assets/{chunk-4EMNKR2T-zu55wq-c.js → chunk-4EMNKR2T-C3IdUlS9.js} +1 -1
- package/dist/client/assets/{chunk-55XCU76K-XLIA3Qss.js → chunk-55XCU76K-D6qgX8rY.js} +1 -1
- package/dist/client/assets/{chunk-5VM5RSS4-DmGjbtZg.js → chunk-5VM5RSS4-CWhRZZS1.js} +1 -1
- package/dist/client/assets/{chunk-JWPE2WC7-ikMrk6md.js → chunk-JWPE2WC7-Bd3RyNB2.js} +1 -1
- package/dist/client/assets/{chunk-VQ5W62QI-cfwin8SC.js → chunk-VQ5W62QI-HqUjzAO7.js} +1 -1
- package/dist/client/assets/{chunk-XXDRQBXY-Cn3e0QEQ.js → chunk-XXDRQBXY-CfeGRauy.js} +1 -1
- package/dist/client/assets/{chunk-ZCHMQSOR-7RkBP94K.js → chunk-ZCHMQSOR-D30UE34C.js} +2 -2
- package/dist/client/assets/{classDiagram-v2-4MYWR3UA-CqVol7t8.js → classDiagram-v2-4MYWR3UA-ClIZEeNx.js} +1 -1
- package/dist/client/assets/{command-2pl_Cn7b.js → command-DuhX52Bi.js} +1 -1
- package/dist/client/assets/{cose-bilkent-JH36ORCC-m0tmlDnx.js → cose-bilkent-JH36ORCC-C_MZbmxw.js} +1 -1
- package/dist/client/assets/{cpu-CdCfSlSR.js → cpu-BMUMZCWW.js} +1 -1
- package/dist/client/assets/{cynefin-EF2NZ3EQ-Cf7ajLou.js → cynefin-EF2NZ3EQ-DjzC1gsw.js} +1 -1
- package/dist/client/assets/{cynefinDiagram-WF24UDRP-Dl8GJr0l.js → cynefinDiagram-WF24UDRP-Dnu1pf_9.js} +1 -1
- package/dist/client/assets/{dagre-NK4GIZVX-2yAF6nW_.js → dagre-NK4GIZVX-Bruwoqfg.js} +1 -1
- package/dist/client/assets/{diagram-CBK3MWTC-DaBb9JFm.js → diagram-CBK3MWTC-Co7nk3xQ.js} +1 -1
- package/dist/client/assets/{diagram-I5XIIV2D-BMeCfhD1.js → diagram-I5XIIV2D-CDJY0Snc.js} +1 -1
- package/dist/client/assets/{diagram-ODIL2UCW-ClVKCieB.js → diagram-ODIL2UCW-CF0utpvI.js} +1 -1
- package/dist/client/assets/{diagram-PFBEJUXE-DFIKk-tB.js → diagram-PFBEJUXE-BrLRX5Ip.js} +1 -1
- package/dist/client/assets/{diagram-RJA3I4VV-DzC_xtYu.js → diagram-RJA3I4VV-BOo6-thr.js} +1 -1
- package/dist/client/assets/{diagram-TYUNFSNR-BroMVHm2.js → diagram-TYUNFSNR-B-206XZy.js} +1 -1
- package/dist/client/assets/{ebnfDiagram-V4P3TTPT-GMsyIh86.js → ebnfDiagram-V4P3TTPT-C6SZjvSQ.js} +1 -1
- package/dist/client/assets/{elk-QONTBCTQ-DIpw6SW5.js → elk-QONTBCTQ-B_QHOQ8G.js} +1 -1
- package/dist/client/assets/{empty-state-B7ufhAFk.js → empty-state-BzWMBBQZ.js} +1 -1
- package/dist/client/assets/{erDiagram-KYQIGQAA-CsezeWpx.js → erDiagram-KYQIGQAA-BTKJgVOK.js} +1 -1
- package/dist/client/assets/{execution-config-DRqIsff0.js → execution-config-D_PgYyCI.js} +1 -1
- package/dist/client/assets/{file-DHPgnMgj.js → file-DiYwTQdD.js} +1 -1
- package/dist/client/assets/{file-exclamation-point-DtjBa2XX.js → file-exclamation-point-CnQYdJiV.js} +1 -1
- package/dist/client/assets/{file-text-wmrSy3Io.js → file-text-DLPhIP0f.js} +1 -1
- package/dist/client/assets/{find-latest-widget-fence-Bv9D10ve.js → find-latest-widget-fence-BYtG5PzD.js} +3 -3
- package/dist/client/assets/{flowDiagram-IUGLLWBU-BGwNqglr.js → flowDiagram-IUGLLWBU-o2In4cGl.js} +1 -1
- package/dist/client/assets/{form-CA_eiUg-.js → form-DUFlQ-yL.js} +1 -1
- package/dist/client/assets/{format-cron-YPhIy57w.js → format-cron-D5dtMPdH.js} +1 -1
- package/dist/client/assets/{ganttDiagram-R7GPNTJY-4IlzTCzA.js → ganttDiagram-R7GPNTJY-WwrWLB2J.js} +1 -1
- package/dist/client/assets/{git-branch-BLIYLcM4.js → git-branch-uZFa3Tmr.js} +1 -1
- package/dist/client/assets/{gitGraphDiagram-PDYL7XHY-HeaC8vlP.js → gitGraphDiagram-PDYL7XHY-C1yG6xrf.js} +1 -1
- package/dist/client/assets/{graph-Ch9lnHSS.js → graph-C10tj8MW.js} +1 -1
- package/dist/client/assets/{heart-D4fTvM5q.js → heart--8btr31M.js} +1 -1
- package/dist/client/assets/{highlighted-body-KPVGNVTW-KPma22SA.js → highlighted-body-KPVGNVTW-DGp-Vg6c.js} +1 -1
- package/dist/client/assets/{image-lightbox-DI18fB2Q.js → image-lightbox-BfwZy_vF.js} +1 -1
- package/dist/client/assets/{image-off-DRgXXpgv.js → image-off-Bmtj2Xtq.js} +1 -1
- package/dist/client/assets/{index--2mMmier.js → index-8hXtJ0Xw.js} +1 -1
- package/dist/client/assets/{index-2J89pJxF.js → index-B5i5B8F0.js} +1 -1
- package/dist/client/assets/{index-mRMaqxu5.js → index-BBaFVr5z.js} +1 -1
- package/dist/client/assets/{index-B_56Srtt.js → index-BCZa5De0.js} +1 -1
- package/dist/client/assets/{index-COoO8dzi.js → index-BE8yM241.js} +1 -1
- package/dist/client/assets/{index-C3IsCAxA.js → index-BHXG7bNX.js} +1 -1
- package/dist/client/assets/{index-DHZS9Lod.js → index-BJ_fl1Gy.js} +1 -1
- package/dist/client/assets/{index-rPJ8b_DO.js → index-BbIFaQ9_.js} +1 -1
- package/dist/client/assets/{index-B-4XmK5Q.js → index-BlHuuCes.js} +1 -1
- package/dist/client/assets/{index-DpvGUFpV.js → index-BtrV6g02.js} +1 -1
- package/dist/client/assets/{index-3UGWygRZ.js → index-C-tNYOVV.js} +1 -1
- package/dist/client/assets/{index-C-X6jaVm.js → index-C3LZBxuM.js} +1 -1
- package/dist/client/assets/{index-D9w0FBQG.js → index-CO9QUYdl.js} +1 -1
- package/dist/client/assets/{index-CRCfkwyN.js → index-CP47qL8N.js} +1 -1
- package/dist/client/assets/{index-CTTaeOCw.js → index-CYM65t4i.js} +1 -1
- package/dist/client/assets/{index-bzM-k5lI.js → index-CaZ9yNIm.js} +1 -1
- package/dist/client/assets/index-CaxFHvSK.js +1 -0
- package/dist/client/assets/index-CdHuEKYh.js +1 -0
- package/dist/client/assets/{index-QSo53dH-.js → index-CoL3MmPh.js} +1 -1
- package/dist/client/assets/{index-BAd8jUzo.js → index-CtN6_QCQ.js} +2 -2
- package/dist/client/assets/{index-Dbujw1c2.js → index-CvIKejlx.js} +1 -1
- package/dist/client/assets/{index-Ix2nCAz0.js → index-CypEgDik.js} +1 -1
- package/dist/client/assets/index-Cz9N1NHd.js +1 -0
- package/dist/client/assets/{index-CucieFDK.js → index-D-ZRSiaH.js} +1 -1
- package/dist/client/assets/{index-D0cIffaH.js → index-D8ZcqMea.js} +1 -1
- package/dist/client/assets/{index-DuvW22xi.js → index-D97clHqL.js} +1 -1
- package/dist/client/assets/index-DAaYbj1s.js +1 -0
- package/dist/client/assets/{index-BY0SKYuc.js → index-DI9IsN-O.js} +1 -1
- package/dist/client/assets/{index-uy36h8lC.js → index-DLPkp7I9.js} +1 -1
- package/dist/client/assets/{index-DTRAR0KK.js → index-DMTfnznD.js} +1 -1
- package/dist/client/assets/{index-JoxvTUfo.js → index-DZQUx5pX.js} +3 -3
- package/dist/client/assets/{index-EDXuyCOT.js → index-DamNtsio.js} +1 -1
- package/dist/client/assets/{index-jk2K24il.js → index-DenTxAiI.js} +1 -1
- package/dist/client/assets/{index-uG06zgQo.js → index-DmG7yphM.js} +1 -1
- package/dist/client/assets/{index-zvAbU6ah.js → index-Dqouol3i.js} +1 -1
- package/dist/client/assets/{index-DSIdPh8G.js → index-Dsj1fDYU.js} +1 -1
- package/dist/client/assets/{index-BtRM2yox.js → index-E5KPj_ZX.js} +1 -1
- package/dist/client/assets/{index-ClbMjgcZ.js → index-LGTvsZzp.js} +1 -1
- package/dist/client/assets/{index-BmlBYrxT.js → index-Nr39AP-T.js} +1 -1
- package/dist/client/assets/{index-qEI7Rsr1.js → index-YrSNUw95.js} +1 -1
- package/dist/client/assets/index-fge85Gub.js +1053 -0
- package/dist/client/assets/{index-Dy9bWvna.js → index-mweR5xOP.js} +1 -1
- package/dist/client/assets/{index-DbV3-jog.js → index-ocZzSFoR.js} +1 -1
- package/dist/client/assets/{index.esm-CxXuMuQv.js → index.esm-BEGwgVfU.js} +1 -1
- package/dist/client/assets/{infoDiagram-MVDRKAX5-g9EeD2xH.js → infoDiagram-MVDRKAX5-oeBcoEBA.js} +1 -1
- package/dist/client/assets/{inline-code-14c1Gacs.js → inline-code-7dwi7wWG.js} +1 -1
- package/dist/client/assets/{ishikawaDiagram-HPEHV2GE-Zv5DrRnv.js → ishikawaDiagram-HPEHV2GE-CLIGz304.js} +1 -1
- package/dist/client/assets/{journeyDiagram-BOSHW7O7-COiWWTez.js → journeyDiagram-BOSHW7O7-Cg0HlPT5.js} +1 -1
- package/dist/client/assets/{kanban-definition-FNSA4HC5-DnQa8qXB.js → kanban-definition-FNSA4HC5-DXaqYXhm.js} +1 -1
- package/dist/client/assets/{layers-D_NEJsnH.js → layers-BhECZJWp.js} +1 -1
- package/dist/client/assets/{lightbulb-EadQi_Lr.js → lightbulb-DjMxuZnu.js} +1 -1
- package/dist/client/assets/{link-2-DugR2HHU.js → link-2-BY2WyWzK.js} +1 -1
- package/dist/client/assets/{list-runtime-types-iJaKcim4.js → list-runtime-types-hMouIGtG.js} +1 -1
- package/dist/client/assets/{markdown-content-BFHUHPgi.js → markdown-content-DV3AiG76.js} +1 -1
- package/dist/client/assets/{mention-pill-DXBno6EY.js → mention-pill-Db0XBC6Z.js} +1 -1
- package/dist/client/assets/{mermaid.core-C6ckWvkG.js → mermaid.core-_ZqWvaFB.js} +4 -4
- package/dist/client/assets/{message-square-off-BH8wbm2a.js → message-square-off-w0__0O5g.js} +1 -1
- package/dist/client/assets/{mindmap-definition-6OY57UG3-DV4PNLc-.js → mindmap-definition-6OY57UG3-BRVkHL68.js} +1 -1
- package/dist/client/assets/{more-details-DhdX4DGU.js → more-details-BUolHzrY.js} +1 -1
- package/dist/client/assets/{owner-notice-FMj3k7-f.js → owner-notice-Cn5EUxgh.js} +1 -1
- package/dist/client/assets/{package-0mI7-RiJ.js → package-BafFSryH.js} +1 -1
- package/dist/client/assets/{page-container-DRyYoDkA.js → page-container-BCdJ_DsH.js} +1 -1
- package/dist/client/assets/{pane-resize-handle-OBc3uYxQ.js → pane-resize-handle-Bar-FdkY.js} +1 -1
- package/dist/client/assets/{paperclip-BsTJpkyE.js → paperclip-DY4e-IlK.js} +1 -1
- package/dist/client/assets/{path-input-CFm1b1pk.js → path-input-SZl4NGTs.js} +1 -1
- package/dist/client/assets/{pegDiagram-ECIUJNBX-Cboo0f6B.js → pegDiagram-ECIUJNBX-D9J7XmXK.js} +1 -1
- package/dist/client/assets/{pieDiagram-GNMPY74T-CiihSor1.js → pieDiagram-GNMPY74T-myMGqtsR.js} +1 -1
- package/dist/client/assets/{plug-BdnJAo1j.js → plug-BdWCGVJg.js} +1 -1
- package/dist/client/assets/primer-trigger-r8N0YY5e.js +3 -0
- package/dist/client/assets/{profile-errors-B08zStmk.js → profile-errors-DymWFWiP.js} +1 -1
- package/dist/client/assets/{progress-CpiQE0rv.js → progress-es667_cM.js} +1 -1
- package/dist/client/assets/{quadrantDiagram-D57K4MC3-dF0oKeMn.js → quadrantDiagram-D57K4MC3-D5_2lcqK.js} +1 -1
- package/dist/client/assets/{query-error-state-B0RUeb10.js → query-error-state-BNPduDBN.js} +1 -1
- package/dist/client/assets/{radio-CAGXbJK_.js → radio-DpWUX1KL.js} +1 -1
- package/dist/client/assets/{railroadDiagram-Y72NRBL7-ClkFJVq1.js → railroadDiagram-Y72NRBL7-D15ELhSC.js} +1 -1
- package/dist/client/assets/{registry-Cog_2xvt.js → registry-5Qudcjd5.js} +4 -4
- package/dist/client/assets/registry-DvKu39S1.js +1 -0
- package/dist/client/assets/relay-trace-schemas-DURazPP9.js +6 -0
- package/dist/client/assets/{repeat-Dag80z5v.js → repeat-HOHWZc6L.js} +1 -1
- package/dist/client/assets/{requirementDiagram-EQYSW5RA-Cey6FmFd.js → requirementDiagram-EQYSW5RA-CHcEVlsR.js} +1 -1
- package/dist/client/assets/{room-files-source-BKUFMU_b.js → room-files-source-BO3E2ed0.js} +1 -1
- package/dist/client/assets/{rotate-ccw-clock-egrvXlKX.js → rotate-ccw-clock-Dniulnw5.js} +1 -1
- package/dist/client/assets/{rotate-cw-Po-L3HFe.js → rotate-cw-um9OzAM7.js} +1 -1
- package/dist/client/assets/{sankeyDiagram-SY24JHO5-BsIuHjbJ.js → sankeyDiagram-SY24JHO5-_R5087R3.js} +1 -1
- package/dist/client/assets/{scroll-area-C7vKp2H4.js → scroll-area-MdXbnM77.js} +1 -1
- package/dist/client/assets/search-x-CHNgYj0F.js +6 -0
- package/dist/client/assets/{sequenceDiagram-BLEHNHQU-BJZXJxwu.js → sequenceDiagram-BLEHNHQU-BzHmSHMF.js} +1 -1
- package/dist/client/assets/{shield-x-hHpT8rAA.js → shield-x-CDXAW9YF.js} +1 -1
- package/dist/client/assets/{signed-in-BhArfIJC.js → signed-in-JAMHtSjx.js} +1 -1
- package/dist/client/assets/{sizeCapture-INFHLROL-DYCQyn7S.js → sizeCapture-INFHLROL-CqA3cZcy.js} +1 -1
- package/dist/client/assets/{soul-file-Doekkv7n.js → soul-file-BcaDvIdL.js} +1 -1
- package/dist/client/assets/{stateDiagram-v2-A6IESKWZ-C6bUDAO7.js → stateDiagram-v2-A6IESKWZ-RAA8YyBW.js} +1 -1
- package/dist/client/assets/{swimlanes-B3ENRKFQ-DGyTrJBT.js → swimlanes-B3ENRKFQ-BQvgJIcj.js} +1 -1
- package/dist/client/assets/swimlanesDiagram-AYQRV4AK-iDgTYazX.js +8 -0
- package/dist/client/assets/{table-9KRGRv_s.js → table-BcJvj9rx.js} +1 -1
- package/dist/client/assets/{timeline-definition-JXYKGLGB-CHAJwSq6.js → timeline-definition-JXYKGLGB-DXi0saeN.js} +1 -1
- package/dist/client/assets/{trust-posture-BQE9NSf_.js → trust-posture-vH4plBRD.js} +1 -1
- package/dist/client/assets/{unplug-CklGWwz7.js → unplug-CK2bPGpg.js} +1 -1
- package/dist/client/assets/{unverified-catalog-notice-9mykZSlO.js → unverified-catalog-notice-WMkPDdUp.js} +1 -1
- package/dist/client/assets/{use-bindings-CPbqKyo6.js → use-bindings-h_mG9d64.js} +1 -1
- package/dist/client/assets/{use-composer-prefs-C7v03Xx_.js → use-composer-prefs-DhCnTsrF.js} +1 -1
- package/dist/client/assets/{use-connector-management-COqWo76Y.js → use-connector-management-CXVz2xe3.js} +1 -1
- package/dist/client/assets/{use-deep-link-scroll-BuYR3PaO.js → use-deep-link-scroll-DYOZ5k0G.js} +1 -1
- package/dist/client/assets/{use-delete-binding-Dfz8BlLn.js → use-delete-binding-CHAeTC_Q.js} +1 -1
- package/dist/client/assets/{use-dev-links-Cu2JmM-_.js → use-dev-links-CM2NIeqy.js} +1 -1
- package/dist/client/assets/{use-direct-message-panel-DobIp_O4.js → use-direct-message-panel-DXTH05Ym.js} +1 -1
- package/dist/client/assets/use-external-adapter-catalog-DKlBkkvF.js +1 -0
- package/dist/client/assets/use-full-activity-feed-QZAZ5vBJ.js +1 -0
- package/dist/client/assets/use-is-below-desktop-DS51QTwj.js +1 -0
- package/dist/client/assets/{use-local-browser-DPdkgs06.js → use-local-browser-43FpcgCM.js} +1 -1
- package/dist/client/assets/{use-mesh-topology-Ci7r-pAi.js → use-mesh-topology-Bw7MmKA9.js} +1 -1
- package/dist/client/assets/{use-mounted-ref-CWXhSyZ8.js → use-mounted-ref-Cuui7-gf.js} +1 -1
- package/dist/client/assets/{use-notification-prefs-GJ2coibL.js → use-notification-prefs-CJnF55Rv.js} +1 -1
- package/dist/client/assets/use-pending-read-DB25CO5E.js +1 -0
- package/dist/client/assets/{use-personality-commit-Da2BJ_58.js → use-personality-commit-p6Of1UxX.js} +1 -1
- package/dist/client/assets/{use-promo-activation-D4PAd7pd.js → use-promo-activation-CxG-kZJQ.js} +3 -3
- package/dist/client/assets/{use-promo-dismissals-BCBu0s3k.js → use-promo-dismissals-DeNbRWOh.js} +1 -1
- package/dist/client/assets/{use-pulse-freshness-CHLSUL-h.js → use-pulse-freshness-CdRkKThf.js} +1 -1
- package/dist/client/assets/{use-room-follow-claim-BSijPV3c.js → use-room-follow-claim-_B7HonZx.js} +1 -1
- package/dist/client/assets/{use-room-sessions-CNqHgLVa.js → use-room-sessions-CrFskgCJ.js} +1 -1
- package/dist/client/assets/{use-roving-tab-list-EsqX22Ik.js → use-roving-tab-list-DSjW4_wm.js} +1 -1
- package/dist/client/assets/{use-session-canvas-DAGOz8a6.js → use-session-canvas-KguPfnsc.js} +8 -8
- package/dist/client/assets/{use-status-budget-CHln-8aP.js → use-status-budget-CTereFSr.js} +3 -3
- package/dist/client/assets/{use-transform-BmyqpcvO.js → use-transform-YUDqOhoc.js} +1 -1
- package/dist/client/assets/{use-unclaimed-chats-9Clj_rwl.js → use-unclaimed-chats-B9ChucvA.js} +1 -1
- package/dist/client/assets/use-update-config-BH0agtZh.js +1 -0
- package/dist/client/assets/{useMutationState-B61VoWtY.js → useMutationState-TJGtJT5R.js} +1 -1
- package/dist/client/assets/{usecaseDiagram-WPOLBNNX-BUqj8rIH.js → usecaseDiagram-WPOLBNNX-Cjs1EpVL.js} +1 -1
- package/dist/client/assets/{vennDiagram-Q3Y3IDCW-B09oli-Z.js → vennDiagram-Q3Y3IDCW-BtgH-ZyN.js} +1 -1
- package/dist/client/assets/{wardleyDiagram-IVAIDKWA-BE7gzLdw.js → wardleyDiagram-IVAIDKWA-BCWHQ18G.js} +1 -1
- package/dist/client/assets/{xychartDiagram-4URNHDU4-CbGKfmuW.js → xychartDiagram-4URNHDU4-CUBPWq_V.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/index.js +4872 -3645
- package/dist/server/index.js.map +2 -2
- package/package.json +6 -6
- package/dist/client/assets/AdapterSetupWizard-Cp56Zx24.js +0 -2
- package/dist/client/assets/BindingDialog-Bw55sMTh.js +0 -1
- package/dist/client/assets/HandlePage-CByGC3B8.js +0 -1
- package/dist/client/assets/NamePage-5VUtswMH.js +0 -1
- package/dist/client/assets/PhotoPage-DDcbiGjb.js +0 -1
- package/dist/client/assets/TourHost-DvAjpsug.js +0 -1
- package/dist/client/assets/_shell._home.index-CA_GnaUK.js +0 -3
- package/dist/client/assets/_shell.connections-gfevZyC-.js +0 -1
- package/dist/client/assets/_shell.marketplace-BepG1fJe.js +0 -1
- package/dist/client/assets/_shell.marketplace_.sources-BBQESbqU.js +0 -1
- package/dist/client/assets/_shell.session-DzeI9YIK.js +0 -1
- package/dist/client/assets/_shell.x._extensionId-ByRocZjS.js +0 -1
- package/dist/client/assets/_shell.x._extensionId_._-ByRocZjS.js +0 -1
- package/dist/client/assets/channel-5-dQamNX.js +0 -1
- package/dist/client/assets/index-B9X2-pzp.js +0 -1
- package/dist/client/assets/index-BMYGo6Ki.js +0 -1
- package/dist/client/assets/index-ButY6gKr.js +0 -1
- package/dist/client/assets/index-CgpRBcA4.js +0 -1
- package/dist/client/assets/index-p3WivF1M.js +0 -1053
- package/dist/client/assets/primer-trigger-BV4xZfFz.js +0 -3
- package/dist/client/assets/registry-DLWJMbtY.js +0 -1
- package/dist/client/assets/relay-trace-schemas-CNDSmhcJ.js +0 -6
- package/dist/client/assets/search-x-C_BEqIuX.js +0 -6
- package/dist/client/assets/swimlanesDiagram-AYQRV4AK-DrZ99xGr.js +0 -8
- package/dist/client/assets/use-adapter-catalog-CDxy08u_.js +0 -1
- package/dist/client/assets/use-external-adapter-catalog-OLn4l20Q.js +0 -1
- package/dist/client/assets/use-full-activity-feed-DNrhQueu.js +0 -1
- package/dist/client/assets/use-is-below-desktop-7gY1n-47.js +0 -1
- package/dist/client/assets/use-pending-read-DcVJ8fZb.js +0 -1
- package/dist/client/assets/use-relay-config-C6rPlEud.js +0 -1
- package/dist/client/assets/use-update-config-T78vOnRy.js +0 -1
package/dist/bin/cli.js
CHANGED
|
@@ -26826,6 +26826,15 @@ var init_env = __esm({
|
|
|
26826
26826
|
// so the admin restart/reset endpoints refuse (409) rather than exit into a
|
|
26827
26827
|
// process nothing will bring back. See routes/admin.ts.
|
|
26828
26828
|
DORKOS_MANAGED_BY: external_exports.enum(["desktop"]).optional(),
|
|
26829
|
+
// Which kind of DorkOS this is, set by whatever launched the server: `desktop`
|
|
26830
|
+
// (the Electron shell), `npm` or `homebrew` (the CLI, from its own install
|
|
26831
|
+
// path), `docker` (the image), `dev` (a repo checkout). Free text on purpose:
|
|
26832
|
+
// a value this build does not know reads as `unknown` rather than refusing to
|
|
26833
|
+
// boot. See lib/distribution/, which is the only reader.
|
|
26834
|
+
DORKOS_DISTRIBUTION: external_exports.string().optional(),
|
|
26835
|
+
// The desktop app's own version, set by the Electron shell beside the above,
|
|
26836
|
+
// so a server bundle that drifted from the app it ships in says so.
|
|
26837
|
+
DORKOS_DESKTOP_VERSION: external_exports.string().optional(),
|
|
26829
26838
|
// Single-instance lock escape hatch (DOR-532) — when 'true', skip the
|
|
26830
26839
|
// per-data-directory lock that stops two servers from sharing one `~/.dork`.
|
|
26831
26840
|
// The lock is already inert under NODE_ENV=test.
|
|
@@ -27003,7 +27012,7 @@ import path2 from "path";
|
|
|
27003
27012
|
import { fileURLToPath } from "url";
|
|
27004
27013
|
function resolveVersion() {
|
|
27005
27014
|
if (env2.DORKOS_VERSION_OVERRIDE) return env2.DORKOS_VERSION_OVERRIDE;
|
|
27006
|
-
if (true) return "0.126.
|
|
27015
|
+
if (true) return "0.126.4";
|
|
27007
27016
|
const pkgPath = path2.join(path2.dirname(fileURLToPath(import.meta.url)), "../../package.json");
|
|
27008
27017
|
return JSON.parse(readFileSync(pkgPath, "utf-8")).version;
|
|
27009
27018
|
}
|
|
@@ -49044,8 +49053,8 @@ function requireDumper() {
|
|
|
49044
49053
|
function blockHeader(string4, indentPerLevel) {
|
|
49045
49054
|
const indentIndicator = needIndentIndicator(string4) ? String(indentPerLevel) : "";
|
|
49046
49055
|
const clip3 = string4[string4.length - 1] === "\n";
|
|
49047
|
-
const
|
|
49048
|
-
const chomp =
|
|
49056
|
+
const keep2 = clip3 && (string4[string4.length - 2] === "\n" || string4 === "\n");
|
|
49057
|
+
const chomp = keep2 ? "+" : clip3 ? "" : "-";
|
|
49049
49058
|
return indentIndicator + chomp + "\n";
|
|
49050
49059
|
}
|
|
49051
49060
|
function dropEndingNewline(string4) {
|
|
@@ -59403,6 +59412,7 @@ function validateSlug(s2) {
|
|
|
59403
59412
|
}
|
|
59404
59413
|
var init_slug = __esm({
|
|
59405
59414
|
"../skills/src/slug.ts"() {
|
|
59415
|
+
"use strict";
|
|
59406
59416
|
}
|
|
59407
59417
|
});
|
|
59408
59418
|
|
|
@@ -115470,76 +115480,22 @@ var init_event_fan_out = __esm({
|
|
|
115470
115480
|
get listenerCount() {
|
|
115471
115481
|
return this.listeners.size;
|
|
115472
115482
|
}
|
|
115473
|
-
/**
|
|
115474
|
-
* Broadcast an event to every connected client, and to every in-process
|
|
115475
|
-
* listener.
|
|
115476
|
-
*
|
|
115477
|
-
* Backpressure: a frame a client cannot take immediately still buffers in
|
|
115478
|
-
* process memory, so a slow consumer cannot lose frames mid-stream — but one
|
|
115479
|
-
* whose buffer grows past {@link SSE.MAX_BUFFERED_BYTES} is dropped instead of
|
|
115480
|
-
* accumulating unbounded memory. The client reconnects and re-baselines, which
|
|
115481
|
-
* is the honest recovery for a consumer that can't keep up with a fan-out that
|
|
115482
|
-
* cannot await any single client.
|
|
115483
|
-
*
|
|
115484
|
-
* The frame is encoded ONCE per wire format and the same strings sent to
|
|
115485
|
-
* every client — see {@link EncodedBroadcast}. That stays true of an
|
|
115486
|
-
* addressed broadcast: the audience decides who a frame is written to, never
|
|
115487
|
-
* how many times it is rendered.
|
|
115488
|
-
*
|
|
115489
|
-
* A client the audience skips is left exactly as it was — not measured for
|
|
115490
|
-
* backpressure, not dropped, not removed from the set. It is simply not this
|
|
115491
|
-
* frame's reader.
|
|
115492
|
-
*
|
|
115493
|
-
* @param eventName - The event name, e.g. `session_status`.
|
|
115494
|
-
* @param data - The payload, serialized once per wire format.
|
|
115495
|
-
* @param audience - Which connections this frame is for. Omitted means every
|
|
115496
|
-
* one of them, which is what all but one event on this bus mean — see
|
|
115497
|
-
* {@link BroadcastAudience}.
|
|
115498
|
-
*/
|
|
115499
115483
|
broadcast(eventName, data, audience) {
|
|
115500
115484
|
this.notifyListeners(eventName, data);
|
|
115485
|
+
if (eventName.startsWith("room_") && !audience) return;
|
|
115501
115486
|
this.writeToClients(() => encodeBroadcast(eventName, data), audience);
|
|
115502
115487
|
}
|
|
115503
|
-
|
|
115504
|
-
* Broadcast ONE event rendered two ways: in full to the connections entitled
|
|
115505
|
-
* to its detail, and redacted to the rest.
|
|
115506
|
-
*
|
|
115507
|
-
* `session_status` needs this and an audience alone cannot give it.
|
|
115508
|
-
* `SessionStatus.activity` carries the tool a session is on and the one
|
|
115509
|
-
* argument of it a person would recognize — for a `blocked` session that is
|
|
115510
|
-
* the very thing the Ask is asking about — while the same frame carries the
|
|
115511
|
-
* lifecycle every reader legitimately needs. Withholding the whole frame
|
|
115512
|
-
* would leave an unentitled reader's view of that session silently stuck on
|
|
115513
|
-
* its previous lifecycle, which is a worse property than the leak it closes;
|
|
115514
|
-
* sending it whole is the leak. So the detail is dropped and the lifecycle is
|
|
115515
|
-
* kept (spec `ask-entitlement`, review finding 1).
|
|
115516
|
-
*
|
|
115517
|
-
* Every property {@link broadcast} holds is held here:
|
|
115518
|
-
*
|
|
115519
|
-
* - **In-process listeners are notified ONCE**, with the FULL payload. They
|
|
115520
|
-
* are the server itself, not callers; a listener that received the same
|
|
115521
|
-
* event twice — or received a redacted one — would be a new bug.
|
|
115522
|
-
* - **Each rendering is encoded once**, whatever the split, and the redacted
|
|
115523
|
-
* one is not encoded at all when every connection is entitled.
|
|
115524
|
-
* - **Backpressure is unchanged**: each client is measured on the one frame
|
|
115525
|
-
* it actually received.
|
|
115526
|
-
*
|
|
115527
|
-
* @param eventName - The event name.
|
|
115528
|
-
* @param full - The payload for entitled connections.
|
|
115529
|
-
* @param redacted - The payload for everybody else.
|
|
115530
|
-
* @param entitled - Which connections may have the full one.
|
|
115531
|
-
* @param audience - Which connections get either rendering; omitted means
|
|
115532
|
-
* every one of them.
|
|
115533
|
-
*/
|
|
115534
|
-
broadcastRedacted(eventName, full, redacted, entitled, audience = () => true) {
|
|
115488
|
+
broadcastRedacted(eventName, full, redacted, entitled, audience) {
|
|
115535
115489
|
this.notifyListeners(eventName, full);
|
|
115490
|
+
if (eventName.startsWith("room_") && !audience) return;
|
|
115491
|
+
const receives = audience ?? (() => true);
|
|
115536
115492
|
this.writeToClients(
|
|
115537
115493
|
() => encodeBroadcast(eventName, full),
|
|
115538
|
-
(principal) =>
|
|
115494
|
+
(principal) => receives(principal) && entitled(principal)
|
|
115539
115495
|
);
|
|
115540
115496
|
this.writeToClients(
|
|
115541
115497
|
() => encodeBroadcast(eventName, redacted),
|
|
115542
|
-
(principal) =>
|
|
115498
|
+
(principal) => receives(principal) && !entitled(principal)
|
|
115543
115499
|
);
|
|
115544
115500
|
}
|
|
115545
115501
|
/**
|
|
@@ -118768,9 +118724,9 @@ function withMarks(level, marks) {
|
|
|
118768
118724
|
if (carriesAllMarks(own2, marks)) return level;
|
|
118769
118725
|
return { ...level, ...mergeMarks(own2, marks) };
|
|
118770
118726
|
}
|
|
118771
|
-
function withCarriedHold(runtimeType, opts) {
|
|
118727
|
+
function withCarriedHold(runtimeType, opts, setToFull = false) {
|
|
118772
118728
|
const ceiling = opts?.permissionCeiling;
|
|
118773
|
-
if (ceiling === void 0 || GATES_CARRIED_SHELL.has(runtimeType)) return opts;
|
|
118729
|
+
if (ceiling === void 0 || setToFull || GATES_CARRIED_SHELL.has(runtimeType)) return opts;
|
|
118774
118730
|
if (ceilingHoldsForOutsider(ceiling) || marksOfCeiling(ceiling).outsider !== true) return opts;
|
|
118775
118731
|
const bounds = Array.isArray(ceiling) ? [...ceiling] : [ceiling];
|
|
118776
118732
|
bounds.push("runtime-default");
|
|
@@ -118789,13 +118745,13 @@ function placeOf(runtime, sessionId, opts) {
|
|
|
118789
118745
|
}
|
|
118790
118746
|
return { cwd, forAgent: turnAgentOf(opts) };
|
|
118791
118747
|
}
|
|
118792
|
-
function applyTurnMarks(runtime, marksOfSession, recordRefused) {
|
|
118748
|
+
function applyTurnMarks(runtime, marksOfSession, recordRefused, setToFull) {
|
|
118793
118749
|
const places = /* @__PURE__ */ new Map();
|
|
118794
118750
|
function markedTurn(target, sessionId, opts, start) {
|
|
118795
118751
|
const marks = marksForTurn(opts);
|
|
118796
118752
|
if (!hasMarks(marks)) return start(opts);
|
|
118797
118753
|
if (marks.outsider === true) noteChatHeardOutsider(sessionId);
|
|
118798
|
-
let sent = withCarriedHold(target.type, opts);
|
|
118754
|
+
let sent = withCarriedHold(target.type, opts, setToFull?.(sessionId, opts) === true);
|
|
118799
118755
|
if (marks.teammate !== void 0) {
|
|
118800
118756
|
sent = teammateTurnOpts(opts);
|
|
118801
118757
|
const refusal2 = teammateTurnRefusal(target.type, marks.teammate);
|
|
@@ -118907,6 +118863,48 @@ var init_continuation_hold = __esm({
|
|
|
118907
118863
|
}
|
|
118908
118864
|
});
|
|
118909
118865
|
|
|
118866
|
+
// ../shared/src/session-link.ts
|
|
118867
|
+
var init_session_link = __esm({
|
|
118868
|
+
"../shared/src/session-link.ts"() {
|
|
118869
|
+
}
|
|
118870
|
+
});
|
|
118871
|
+
|
|
118872
|
+
// ../../apps/server/src/services/core/turn-power/full-autonomy.ts
|
|
118873
|
+
function keep(set3, key, on) {
|
|
118874
|
+
set3.delete(key);
|
|
118875
|
+
if (!on) return;
|
|
118876
|
+
set3.add(key);
|
|
118877
|
+
if (set3.size > MEMORY) set3.delete(set3.values().next().value);
|
|
118878
|
+
}
|
|
118879
|
+
function isFullLevel(level) {
|
|
118880
|
+
return level !== void 0 && level.asks === "never" && level.reach === "everything";
|
|
118881
|
+
}
|
|
118882
|
+
function ownLevelBounds(ceiling) {
|
|
118883
|
+
if (ceiling === void 0) return void 0;
|
|
118884
|
+
const bounds = Array.isArray(ceiling) ? ceiling : [ceiling];
|
|
118885
|
+
const kept = bounds.filter((bound) => {
|
|
118886
|
+
if (typeof bound !== "object" || bound === null) return false;
|
|
118887
|
+
const level = bound;
|
|
118888
|
+
return level.outsider !== true && level.teammate === void 0;
|
|
118889
|
+
});
|
|
118890
|
+
if (kept.length === 0) return void 0;
|
|
118891
|
+
return kept.length === 1 ? kept[0] : kept;
|
|
118892
|
+
}
|
|
118893
|
+
function noteChosenTurn(sessionId, chosen, nobodyToAsk) {
|
|
118894
|
+
keep(fullChats, sessionId, isFullLevel(chosen));
|
|
118895
|
+
keep(unattendedChats, sessionId, nobodyToAsk);
|
|
118896
|
+
}
|
|
118897
|
+
var MEMORY, fullChats, unattendedChats;
|
|
118898
|
+
var init_full_autonomy = __esm({
|
|
118899
|
+
"../../apps/server/src/services/core/turn-power/full-autonomy.ts"() {
|
|
118900
|
+
"use strict";
|
|
118901
|
+
init_session_link();
|
|
118902
|
+
MEMORY = 1e4;
|
|
118903
|
+
fullChats = /* @__PURE__ */ new Set();
|
|
118904
|
+
unattendedChats = /* @__PURE__ */ new Set();
|
|
118905
|
+
}
|
|
118906
|
+
});
|
|
118907
|
+
|
|
118910
118908
|
// ../../apps/server/src/services/core/turn-power/turn-levels.ts
|
|
118911
118909
|
function remember(map4, key, level) {
|
|
118912
118910
|
map4.delete(key);
|
|
@@ -118925,6 +118923,11 @@ function levelForTurn(runtime, stored, opts) {
|
|
|
118925
118923
|
function recordTurn(runtime, sessionId, stored, opts) {
|
|
118926
118924
|
const level = levelForTurn(runtime, stored, opts);
|
|
118927
118925
|
remember(turnLevels, sessionId, level);
|
|
118926
|
+
noteChosenTurn(
|
|
118927
|
+
sessionId,
|
|
118928
|
+
chosenLevelOf(runtime, stored, opts),
|
|
118929
|
+
opts?.unattended === true || opts?.unattendedApprovals === true
|
|
118930
|
+
);
|
|
118928
118931
|
const ceiling = opts?.continuationHold === true ? void 0 : opts?.permissionCeiling;
|
|
118929
118932
|
if (ceiling !== void 0 && ceilingHoldsForOutsider(ceiling)) {
|
|
118930
118933
|
strangerHeld.add(sessionId);
|
|
@@ -118944,6 +118947,12 @@ function recordTurn(runtime, sessionId, stored, opts) {
|
|
|
118944
118947
|
}
|
|
118945
118948
|
return level;
|
|
118946
118949
|
}
|
|
118950
|
+
function chosenLevelOf(runtime, stored, opts) {
|
|
118951
|
+
const { permissionCeiling, ...unbounded } = opts ?? {};
|
|
118952
|
+
const own2 = ownLevelBounds(permissionCeiling);
|
|
118953
|
+
const kept = own2 === void 0 ? unbounded : { ...unbounded, permissionCeiling: own2 };
|
|
118954
|
+
return powerForTurn(runtime, stored, kept);
|
|
118955
|
+
}
|
|
118947
118956
|
function withoutStrangerHold(ceiling) {
|
|
118948
118957
|
if (!Array.isArray(ceiling)) return ceiling === "runtime-default" ? void 0 : ceiling;
|
|
118949
118958
|
const kept = ceiling.filter(
|
|
@@ -118965,18 +118974,21 @@ function powerForTurn(runtime, stored, opts) {
|
|
|
118965
118974
|
return opts?.permissionCeiling !== void 0 ? stricterLevel(base, resolveCeilingLevel(declared, opts.permissionCeiling)) : base;
|
|
118966
118975
|
}
|
|
118967
118976
|
function recordTurnLevels(runtime, storedModeOf) {
|
|
118977
|
+
const storedOf2 = (sessionId) => {
|
|
118978
|
+
try {
|
|
118979
|
+
return storedModeOf(sessionId);
|
|
118980
|
+
} catch {
|
|
118981
|
+
return void 0;
|
|
118982
|
+
}
|
|
118983
|
+
};
|
|
118968
118984
|
return applyTurnMarks(
|
|
118969
118985
|
recordLevels(runtime, storedModeOf),
|
|
118970
118986
|
(sessionId) => marksOfLevel(turnLevels.get(sessionId)),
|
|
118971
118987
|
(sessionId, opts) => {
|
|
118972
|
-
|
|
118973
|
-
|
|
118974
|
-
|
|
118975
|
-
|
|
118976
|
-
stored = void 0;
|
|
118977
|
-
}
|
|
118978
|
-
recordTurn(runtime, sessionId, stored, opts);
|
|
118979
|
-
}
|
|
118988
|
+
recordTurn(runtime, sessionId, storedOf2(sessionId), opts);
|
|
118989
|
+
},
|
|
118990
|
+
// A chat set to Full is never held for a mark it carries (DOR-3394).
|
|
118991
|
+
(sessionId, opts) => isFullLevel(chosenLevelOf(runtime, storedOf2(sessionId), opts))
|
|
118980
118992
|
);
|
|
118981
118993
|
}
|
|
118982
118994
|
function recordLevels(runtime, storedModeOf) {
|
|
@@ -119022,6 +119034,7 @@ var init_turn_levels = __esm({
|
|
|
119022
119034
|
init_session_key_registry();
|
|
119023
119035
|
init_outsider_turns();
|
|
119024
119036
|
init_continuation_hold();
|
|
119037
|
+
init_full_autonomy();
|
|
119025
119038
|
init_permission_semantics();
|
|
119026
119039
|
TURN_LEVEL_MEMORY = 1e4;
|
|
119027
119040
|
AUTO_MODE_ID2 = "auto";
|
|
@@ -119034,6 +119047,21 @@ var init_turn_levels = __esm({
|
|
|
119034
119047
|
}
|
|
119035
119048
|
});
|
|
119036
119049
|
|
|
119050
|
+
// ../../apps/server/src/services/connectors/principal/server-principal.ts
|
|
119051
|
+
var init_server_principal = __esm({
|
|
119052
|
+
"../../apps/server/src/services/connectors/principal/server-principal.ts"() {
|
|
119053
|
+
"use strict";
|
|
119054
|
+
}
|
|
119055
|
+
});
|
|
119056
|
+
|
|
119057
|
+
// ../../apps/server/src/services/core/capabilities/marked-turn-holds.ts
|
|
119058
|
+
var init_marked_turn_holds = __esm({
|
|
119059
|
+
"../../apps/server/src/services/core/capabilities/marked-turn-holds.ts"() {
|
|
119060
|
+
"use strict";
|
|
119061
|
+
init_server_principal();
|
|
119062
|
+
}
|
|
119063
|
+
});
|
|
119064
|
+
|
|
119037
119065
|
// ../../apps/server/src/services/core/capabilities/permission-enforcement.ts
|
|
119038
119066
|
function permissionGateSources() {
|
|
119039
119067
|
return sources;
|
|
@@ -119047,6 +119075,8 @@ var init_permission_enforcement = __esm({
|
|
|
119047
119075
|
init_mesh_schemas();
|
|
119048
119076
|
init_permissions();
|
|
119049
119077
|
init_turn_levels();
|
|
119078
|
+
init_full_autonomy();
|
|
119079
|
+
init_marked_turn_holds();
|
|
119050
119080
|
init_logger();
|
|
119051
119081
|
UNCHOSEN = { preset: null, defaults: { areas: {}, actions: {} } };
|
|
119052
119082
|
DEFAULT_SOURCES = {
|
|
@@ -124025,7 +124055,7 @@ var init_project_registry = __esm({
|
|
|
124025
124055
|
* re-checks lookup-only in the delete itself, so a row another process
|
|
124026
124056
|
* upgraded meanwhile stays, and memory learns its new state.
|
|
124027
124057
|
*/
|
|
124028
|
-
forgetOldLookups(
|
|
124058
|
+
forgetOldLookups(keep2) {
|
|
124029
124059
|
let held2;
|
|
124030
124060
|
try {
|
|
124031
124061
|
held2 = new Set(this.protectedRoots());
|
|
@@ -124045,7 +124075,7 @@ var init_project_registry = __esm({
|
|
|
124045
124075
|
const over = excess;
|
|
124046
124076
|
for (const project2 of lookups) {
|
|
124047
124077
|
if (excess <= 0) break;
|
|
124048
|
-
if (project2.root ===
|
|
124078
|
+
if (project2.root === keep2) continue;
|
|
124049
124079
|
let removed;
|
|
124050
124080
|
try {
|
|
124051
124081
|
removed = this.store ? this.store.removeLookupOnly(project2.root) : true;
|
|
@@ -138289,10 +138319,10 @@ var init_marketplace_cache = __esm({
|
|
|
138289
138319
|
* @returns What was removed, the bytes freed, and any entry that could not be
|
|
138290
138320
|
* removed (the others still are).
|
|
138291
138321
|
*/
|
|
138292
|
-
async removeUnused(
|
|
138322
|
+
async removeUnused(keep2) {
|
|
138293
138323
|
const treesRoot = join51(this.cacheRoot, TREES_DIRNAME);
|
|
138294
138324
|
const entries = await this.listPackages();
|
|
138295
|
-
const kept =
|
|
138325
|
+
const kept = keep2(entries);
|
|
138296
138326
|
const result2 = { removed: [], freedBytes: 0, failed: [] };
|
|
138297
138327
|
for (const entry of entries) {
|
|
138298
138328
|
if (kept.has(entry.path)) continue;
|
|
@@ -142687,7 +142717,7 @@ function createInstallationJobs(configuration, options = { ownerKind: "controlle
|
|
|
142687
142717
|
);
|
|
142688
142718
|
requireFact2(!expected || sameFileIdentity(identity2(s2), expected), "ROOT_CHANGED");
|
|
142689
142719
|
}
|
|
142690
|
-
async function readPinned(slot, path71, digest2, cap, expected,
|
|
142720
|
+
async function readPinned(slot, path71, digest2, cap, expected, keep2 = false) {
|
|
142691
142721
|
const before = await lstat5(path71, { bigint: true });
|
|
142692
142722
|
requireFact2(
|
|
142693
142723
|
before.isFile() && !before.isSymbolicLink() && before.size <= BigInt(cap),
|
|
@@ -142723,7 +142753,7 @@ function createInstallationJobs(configuration, options = { ownerKind: "controlle
|
|
|
142723
142753
|
bytes += result3.bytesRead;
|
|
142724
142754
|
requireFact2(bytes <= cap, "RETENTION_EXCEEDED");
|
|
142725
142755
|
hash3.update(buffer.subarray(0, result3.bytesRead));
|
|
142726
|
-
if (
|
|
142756
|
+
if (keep2) chunks.push(buffer.slice(0, result3.bytesRead));
|
|
142727
142757
|
}
|
|
142728
142758
|
requireFact2(
|
|
142729
142759
|
sameFileIdentity(beforeIdentity, identity2(await original.stat({ bigint: true }))) && sameFileIdentity(beforeIdentity, identity2(await lstat5(path71, { bigint: true }))),
|
|
@@ -142746,7 +142776,7 @@ function createInstallationJobs(configuration, options = { ownerKind: "controlle
|
|
|
142746
142776
|
}
|
|
142747
142777
|
}
|
|
142748
142778
|
if (failed) throw primary;
|
|
142749
|
-
const result2 = new Uint8Array(
|
|
142779
|
+
const result2 = new Uint8Array(keep2 ? bytes : 0);
|
|
142750
142780
|
let offset = 0;
|
|
142751
142781
|
for (const chunk of chunks) {
|
|
142752
142782
|
result2.set(chunk, offset);
|
|
@@ -173274,6 +173304,7 @@ var init_connection_copy = __esm({
|
|
|
173274
173304
|
var CONNECTOR_OPERATION_SELECTION_LIMIT, CONNECTOR_AUTHENTICATION_FLOW_TTL_MS, CONNECTOR_EVENT_REVIEW_SCOPE_LIMIT, ConnectorJsonValueSchema, ConnectorJsonObjectSchema, ConnectorProviderInstanceIdSchema, ConnectionIdSchema, ConnectorExternalAccountRefSchema, ConnectorProviderModeSchema, ConnectorProviderHealthSchema, ConnectorGrantReconciliationStatusSchema, ConnectorOperationClassificationSchema, ConnectorAccessLevelSchema, ConnectorRetryPolicySchema, ConnectorOperationRevisionSchema, ConnectorOperationPageSchema, ConnectorCapabilityAvailabilitySchema, ConnectorUnsupportedResultSchema, ConnectorProviderCapabilitySetSchema, ConnectorToolkitVersionResultSchema, ConnectorProviderExecuteResultSchema, ConnectorAuthenticationFlowSchema, ConnectorExecutionTargetSchema, ConnectorProgramExecutionRequestSchema, ConnectorExecutionPublicResultSchema, ConnectorExecutionResponseSchema, ConnectionReadinessStateSchema, ConnectionReadinessReasonSchema, ConnectionFixActionSchema, ConnectionFixSchema, ConnectionReadinessSchema, AccessibleConnectorConnectionSchema, AccessibleConnectorOperationSchema, ConnectorAccessibleConnectionsResponseSchema, ConnectorAccessibleOperationsResponseSchema, ConnectorUsageItemSchema, ConnectorUsagePageSchema, ConnectorReconciliationPreviewRequestSchema, ConnectorReconciliationGrantSelectionSchema, ConnectorReconciliationEveryAgentSelectionSchema, ConnectorReconciliationEveryAgentStateSchema, ConnectorEveryAgentRevokeResponseSchema, ConnectorReconciliationAgentSchema, ConnectorReconciliationCandidateSchema, ConnectorReconciliationPreviewSchema, ConnectorReconciliationApplyRequestSchema, ConnectorReconciliationApplyResponseSchema, ReviewActionBaseSchema, ConnectionTargetSchema, ConnectorRequestAccessSchema, ConnectorReviewActionSchema, ConnectorAgentConnectionRequestInputSchema, ConnectorAgentRequestBaseSchema, ConnectorRequestNotGrantedSchema, ConnectorAgentRequestStatusSchema, ConnectorAgentRequestItemSchema, ConnectorAgentRequestListResponseSchema, ConnectorManagementConnectActionSchema, ConnectorManagementAppliedActionSchema, ConnectorManagementReviewActionSchema, ConnectorManagementReviewCreateRequestSchema, ConnectorManagementReviewOutcomeSchema, ConnectorManagementReviewOperationContextSchema, ConnectorManagementReviewConnectionContextSchema, ConnectorManagementReviewAgentContextSchema, ConnectorManagementReviewContextSchema, ManagementReviewItemBaseShape, ConnectorPendingManagementReviewItemSchema, ConnectorResolvingManagementReviewItemSchema, ConnectorExpiredManagementReviewItemSchema, ConnectorDeniedManagementReviewItemSchema, ConnectorApprovedAppliedManagementReviewItemSchema, ConnectorApprovedConnectManagementReviewItemSchema, ConnectorApprovedUnknownManagementReviewItemSchema, ConnectorManagementReviewItemSchema, ProgramReviewStatusBaseShape, ConnectorProgramReviewStatusSchema, ConnectorManagementReviewDecisionSchema, ConnectorManagementReviewDecisionResultSchema;
|
|
173275
173305
|
var init_connector_schemas = __esm({
|
|
173276
173306
|
"../connector-providers/src/connector-schemas.ts"() {
|
|
173307
|
+
"use strict";
|
|
173277
173308
|
init_zod();
|
|
173278
173309
|
init_connection_copy();
|
|
173279
173310
|
CONNECTOR_OPERATION_SELECTION_LIMIT = 1e5;
|
|
@@ -178985,6 +179016,21 @@ function installCliErrorHandlers(reporter) {
|
|
|
178985
179016
|
// src/cli.ts
|
|
178986
179017
|
init_dork_home2();
|
|
178987
179018
|
|
|
179019
|
+
// src/lib/distribution.ts
|
|
179020
|
+
function cliDistribution(entryPath, inherited) {
|
|
179021
|
+
if (inherited?.trim().toLowerCase() === "docker") return "docker";
|
|
179022
|
+
const normalized = entryPath.replace(/\\/g, "/");
|
|
179023
|
+
if (normalized.includes("/Cellar/")) return "homebrew";
|
|
179024
|
+
if (normalized.includes("/node_modules/")) return "npm";
|
|
179025
|
+
if (normalized.includes("/packages/cli/dist/")) return "dev";
|
|
179026
|
+
return "unknown";
|
|
179027
|
+
}
|
|
179028
|
+
function stampCliLaunch(env6, entryPath, version4) {
|
|
179029
|
+
env6.DORKOS_CLI_ENTRYPOINT = entryPath;
|
|
179030
|
+
env6.DORKOS_CLI_VERSION = version4;
|
|
179031
|
+
env6.DORKOS_DISTRIBUTION = cliDistribution(entryPath, env6.DORKOS_DISTRIBUTION);
|
|
179032
|
+
}
|
|
179033
|
+
|
|
178988
179034
|
// src/parse-cli-args.ts
|
|
178989
179035
|
import { parseArgs } from "node:util";
|
|
178990
179036
|
function parseCliArgs(args = process.argv.slice(2)) {
|
|
@@ -179476,7 +179522,7 @@ if (process.argv[2] === "community") {
|
|
|
179476
179522
|
);
|
|
179477
179523
|
Object.assign(childEnv, credentialEnv.pickCommunityCredentialEnv(rawProcessEnv));
|
|
179478
179524
|
const exitCode = await dispatcher.runCommunityDispatcher(process.argv.slice(3), {
|
|
179479
|
-
cliVersion: "0.126.
|
|
179525
|
+
cliVersion: "0.126.4",
|
|
179480
179526
|
dorkHome: DORK_HOME,
|
|
179481
179527
|
processEnv: childEnv,
|
|
179482
179528
|
parseRelease: (bytes) => releaseContract.parseCompatibleCommunityReleaseManifest(
|
|
@@ -179494,7 +179540,7 @@ if (process.argv[2] === "community") {
|
|
|
179494
179540
|
process.exit(1);
|
|
179495
179541
|
}
|
|
179496
179542
|
}
|
|
179497
|
-
var cliErrorReporter = initCliErrorReporting({ dorkHome: DORK_HOME, version: "0.126.
|
|
179543
|
+
var cliErrorReporter = initCliErrorReporting({ dorkHome: DORK_HOME, version: "0.126.4" });
|
|
179498
179544
|
var uninstallCliErrorHandlers = cliErrorReporter ? installCliErrorHandlers(cliErrorReporter) : void 0;
|
|
179499
179545
|
if (process.argv[2] === "doctor") {
|
|
179500
179546
|
process.env.DORK_HOME = DORK_HOME;
|
|
@@ -179504,7 +179550,7 @@ if (process.argv[2] === "doctor") {
|
|
|
179504
179550
|
if (process.argv[2] === "feedback") {
|
|
179505
179551
|
process.env.DORK_HOME = DORK_HOME;
|
|
179506
179552
|
const { runFeedback: runFeedback2 } = await Promise.resolve().then(() => (init_feedback2(), feedback_exports));
|
|
179507
|
-
process.exit(await runFeedback2(DORK_HOME, "0.126.
|
|
179553
|
+
process.exit(await runFeedback2(DORK_HOME, "0.126.4", process.argv.slice(3)));
|
|
179508
179554
|
}
|
|
179509
179555
|
if (process.argv[2] === "auth") {
|
|
179510
179556
|
process.env.DORK_HOME = DORK_HOME;
|
|
@@ -179603,7 +179649,7 @@ if (process.argv[2] === "agent" || process.argv[2] === "task" || process.argv[2]
|
|
|
179603
179649
|
}
|
|
179604
179650
|
}
|
|
179605
179651
|
const { runVersionDispatcher: runVersionDispatcher2 } = await Promise.resolve().then(() => (init_version5(), version_exports));
|
|
179606
|
-
process.exit(await runVersionDispatcher2("0.126.
|
|
179652
|
+
process.exit(await runVersionDispatcher2("0.126.4", DORK_HOME, subArgs));
|
|
179607
179653
|
}
|
|
179608
179654
|
var { values, positionals } = parseCliArgs();
|
|
179609
179655
|
if (positionals[0] && !knownCommands.has(positionals[0])) {
|
|
@@ -179697,14 +179743,14 @@ Examples:
|
|
|
179697
179743
|
process.exit(0);
|
|
179698
179744
|
}
|
|
179699
179745
|
if (values.version) {
|
|
179700
|
-
console.log("0.126.
|
|
179746
|
+
console.log("0.126.4");
|
|
179701
179747
|
process.exit(0);
|
|
179702
179748
|
}
|
|
179703
179749
|
if (values["post-install-check"]) {
|
|
179704
179750
|
const claudeFound = checkClaude();
|
|
179705
179751
|
const coreExtensionsFound = checkCoreExtensions();
|
|
179706
179752
|
const extensionsCompile = await checkExtensionCompilation();
|
|
179707
|
-
console.log(`dorkos ${"0.126.
|
|
179753
|
+
console.log(`dorkos ${"0.126.4"}`);
|
|
179708
179754
|
if (!coreExtensionsFound) {
|
|
179709
179755
|
console.log("Installation incomplete \u2014 bundled core extensions are missing.");
|
|
179710
179756
|
}
|
|
@@ -179851,8 +179897,7 @@ if (fs40.existsSync(envPath)) {
|
|
|
179851
179897
|
dotenv.config({ path: envPath, override: false });
|
|
179852
179898
|
}
|
|
179853
179899
|
uninstallCliErrorHandlers?.();
|
|
179854
|
-
process.env
|
|
179855
|
-
process.env.DORKOS_CLI_VERSION = "0.126.3";
|
|
179900
|
+
stampCliLaunch(process.env, fileURLToPath7(import.meta.url), "0.126.4");
|
|
179856
179901
|
var server;
|
|
179857
179902
|
try {
|
|
179858
179903
|
server = await import("../server/index.js");
|
|
@@ -179877,7 +179922,7 @@ var ansiReset = "\x1B[0m";
|
|
|
179877
179922
|
console.log("");
|
|
179878
179923
|
console.log(`${purple}${logo}${ansiReset}`);
|
|
179879
179924
|
console.log("");
|
|
179880
|
-
console.log(` DorkOS v${"0.126.
|
|
179925
|
+
console.log(` DorkOS v${"0.126.4"}`);
|
|
179881
179926
|
console.log(` Local: ${link(localUrl, localUrl)}`);
|
|
179882
179927
|
var nets = networkInterfaces();
|
|
179883
179928
|
var networkUrl = null;
|
|
@@ -179903,9 +179948,9 @@ if (shouldOpenBrowser && process.stdin.isTTY) {
|
|
|
179903
179948
|
const openCmd = process.platform === "darwin" ? "open" : process.platform === "win32" ? "start" : "xdg-open";
|
|
179904
179949
|
exec(`${openCmd} ${localUrl}`);
|
|
179905
179950
|
}
|
|
179906
|
-
checkForUpdate("0.126.
|
|
179951
|
+
checkForUpdate("0.126.4").then((latestVersion) => {
|
|
179907
179952
|
if (latestVersion) {
|
|
179908
|
-
const msg = `Update available: ${"0.126.
|
|
179953
|
+
const msg = `Update available: ${"0.126.4"} \u2192 ${latestVersion}`;
|
|
179909
179954
|
const cmd = "Run npm install -g dorkos@latest to update";
|
|
179910
179955
|
const width = Math.max(msg.length, cmd.length) + 6;
|
|
179911
179956
|
const pad2 = (s2) => `\u2502 ${s2}${" ".repeat(width - s2.length - 6)} \u2502`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":1,"controllerSHA256":"
|
|
1
|
+
{"version":1,"controllerSHA256":"fed78421e818818740dda77247df05cad45970d61134d5a29677c1c726482a5f","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":"fed78421e818818740dda77247df05cad45970d61134d5a29677c1c726482a5f","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-fge85Gub.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-DBecAo4-.js → ActivityErrorState-s4xAcJQR.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{fe as f,a1 as o,aq as u,ff as x,j as a,G as c,a0 as p,B as y}from"./index-fge85Gub.js";const g=["Today","Yesterday","This week","Earlier"];function A(e,s){const t=new Map;for(const r of e){const n=h(new Date(r.occurredAt),s),i=t.get(n)??[];i.push(r),t.set(n,i)}return g.filter(r=>t.has(r)).map(r=>({label:r,items:t.get(r)}))}function h(e,s){const t=new Date(s);t.setHours(0,0,0,0);const r=new Date(t);r.setDate(r.getDate()-1);const n=new Date(t);return n.setDate(n.getDate()-n.getDay()),e>=t?"Today":e>=r?"Yesterday":e>=n?"This week":"Earlier"}const T={person:"user",external:"user",agent:"agent",system:"system"};function k(e){return e.source.sessionId?f({session:e.source.sessionId}):null}function w(e){return{id:e.id,occurredAt:e.at,actorType:T[e.actor.kind],actorLabel:e.actor.name,summary:e.summary,linkPath:k(e)}}const d=["audit"],l=50;function m(e){return e.pages.flatMap(s=>s.events.map(w))}function E(e={}){const s=o();return u({queryKey:[...d,"list",e],queryFn:({pageParam:t})=>s.listAuditEvents({...e,limit:l,beforeSeq:t}),initialPageParam:void 0,getNextPageParam:t=>t.nextBeforeSeq,select:m,staleTime:3e4,refetchOnWindowFocus:!0})}function P(e){const s=o();return u({queryKey:[...d,"timeline",e],queryFn:e===null?x:({pageParam:t})=>s.getAccountTimeline(e,{limit:l,beforeSeq:t}),initialPageParam:void 0,getNextPageParam:t=>t.nextBeforeSeq,select:m,staleTime:3e4,refetchOnWindowFocus:!0})}function j({label:e,className:s}){return a.jsx("div",{"data-slot":"activity-group-header",className:c("sticky top-0 z-10 -mx-4 px-4 py-2 sm:-mx-6 sm:px-6","bg-background/95 backdrop-blur-sm",s),children:a.jsx("h3",{className:"text-muted-foreground text-xs font-medium tracking-wider uppercase",children:e})})}function D({onRetry:e,className:s}){return a.jsxs("div",{"data-slot":"activity-error-state",className:c("flex flex-col items-center justify-center gap-3 py-16 text-center",s),children:[a.jsx("div",{className:"bg-destructive/10 rounded-xl p-3",children:a.jsx(p,{className:"text-destructive size-6","aria-hidden":"true"})}),a.jsxs("div",{className:"space-y-1",children:[a.jsx("p",{className:"text-foreground text-sm font-medium",children:"Couldn’t load your activity"}),a.jsx("p",{className:"text-muted-foreground max-w-xs text-xs",children:"The DorkOS server didn’t answer. Check that it’s running."})]}),a.jsx(y,{variant:"outline",size:"sm",onClick:e,children:"Retry"})]})}export{D as A,j as a,E as b,A as g,P as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as c,j as e,e as d,A as u,B as j,x as v}from"./index-
|
|
1
|
+
import{r as c,j as e,e as d,A as u,B as j,x as v}from"./index-fge85Gub.js";import{E as g}from"./empty-state-BzWMBBQZ.js";import{T as N,a as A}from"./table-BcJvj9rx.js";import{u as b,g as w,A as E,a as T}from"./ActivityErrorState-s4xAcJQR.js";import{A as B}from"./ActivityRow-5PJBHIt2.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{
|
|
1
|
+
import{b7 as d,dE as x,j as e,_ as u,G as l,cs as m,dF as g,B as h}from"./index-fge85Gub.js";import{b as f,c}from"./table-BcJvj9rx.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{
|
|
1
|
+
import{bC as n,bD as r,j as c,bE as s,aT as T}from"./index-fge85Gub.js";const g={connected:n.success,disconnected:n.neutral,error:n.error,starting:`${n.warning} ${r}`,stopping:`${n.warning} ${r}`,reconnecting:`${n.warning} ${r}`},E={connected:"Connected",disconnected:"Ready",error:"Error",starting:"Connecting…",stopping:"Stopping…",reconnecting:"Reconnecting…"};function _({iconId:i,adapterType:a,size:t=16,className:o}){const e=s[i??""]??s[a??""];return e?c.jsx(e,{size:t,className:o}):c.jsx(T,{className:o,style:{width:t,height:t}})}export{_ as A,g as a,E as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a1 as be,a3 as Ne,a4 as qe,j as e,be as ze,bf as Ee,r as m,dp as ie,hZ as Te,dq as oe,h0 as le,$ as $e,Q as ce,T as de,au as ue,U as he,V as pe,bw as Y,ap as J,h_ as me,h$ as Me,G as U,eg as Z,eh as X,ei as ee,ej as se,ek as te,I as re,eo as xe,J as We,bv as Ve,B as k,i0 as Se,eq as De,en as ae,x as ke,bc as Pe,bb as Re,a0 as Oe,ai as ge,i1 as Le,i2 as _e,i3 as Ge,i4 as Ue,i5 as Ie,i6 as Qe,i7 as He,i8 as Ke,cZ as Ye,dD as G,fi as Je,fj as Ze,fk as Xe,fl as es,fm as ss,fn as ts,i9 as fe,ia as H}from"./index-fge85Gub.js";import{B as rs}from"./use-bindings-h_mG9d64.js";import{M as I}from"./markdown-content-DV3AiG76.js";import{u as as}from"./form-DUFlQ-yL.js";import{a as ns}from"./BindingDialog-CILm91iU.js";import"./relay-trace-schemas-DURazPP9.js";function Bs(s={}){const t=be(),a=Ne();return qe({mutationFn:({id:r,updates:l})=>t.updateBinding(r,l),onSuccess:()=>{a.invalidateQueries({queryKey:[...rs]})},meta:s.suppressErrorToast?{suppressErrorToast:!0}:{errorLabel:s.errorLabel??"Couldn’t update that connection"}})}function is({field:s,value:t,onChange:a,error:r,allValues:l}){const[i,n]=m.useState("");if(s.showWhen&&l[s.showWhen.field]!==s.showWhen.equals)return null;const o=`config-field-${s.key}`,v=s.type==="select"&&s.displayAs==="radio-cards",h=t!=null?String(t):"",x=h==="***",y=()=>{if(x){n("");return}if(s.pattern&&h&&!new RegExp(s.pattern).test(h)){n(s.patternMessage??"Check the format");return}n("")},d=r??i;if(s.type==="boolean")return e.jsxs("div",{children:[e.jsxs(ie,{orientation:"horizontal",className:"items-center justify-between gap-4",children:[e.jsxs(Te,{className:"min-w-0",children:[e.jsxs(oe,{htmlFor:o,className:"text-sm font-medium",children:[s.label,s.required&&e.jsx("span",{"aria-hidden":"true",className:"text-destructive ml-0.5",children:"*"})]}),s.description&&e.jsx(le,{className:"text-xs",children:s.description})]}),e.jsx($e,{id:o,checked:!!t,onCheckedChange:N=>a(s.key,N)})]}),s.helpMarkdown&&e.jsxs(ce,{children:[e.jsxs(de,{className:"text-muted-foreground hover:text-foreground mt-1 flex items-center gap-1 text-xs transition-colors",children:[e.jsx(ue,{className:"size-3"}),"Where do I find this?",e.jsx(he,{className:"size-3 transition-transform [[data-state=open]_&]:rotate-180"})]}),e.jsx(pe,{children:e.jsx("div",{className:"bg-muted/50 mt-2 rounded-md border p-3",children:e.jsx(I,{content:s.helpMarkdown,className:"text-xs"})})})]}),e.jsx(Y,{children:d&&e.jsx(J.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.15},className:"overflow-hidden",children:e.jsx(me,{className:"mt-1.5",children:d})})})]});const b=()=>{var N,C;switch(s.type){case"text":case"url":return e.jsx(re,{id:o,type:s.type==="url"?"url":"text",value:h,onChange:c=>a(s.key,c.target.value),placeholder:s.placeholder,"aria-invalid":!!d||void 0,"aria-required":s.required||void 0});case"password":return x?e.jsx(xe,{id:o,value:h,showPassword:!1,onChange:c=>{a(s.key,c.target.value.trim()),i&&n("")},onFocus:()=>a(s.key,""),onBlur:y,placeholder:"Saved · type to replace"}):e.jsx(xe,{id:o,value:h,visibleByDefault:s.visibleByDefault??!1,onChange:c=>{a(s.key,c.target.value.trim()),i&&n("")},onBlur:y,onPaste:()=>setTimeout(y,0),placeholder:s.placeholder,"aria-invalid":!!d||void 0,"aria-required":s.required||void 0});case"number":return e.jsx(re,{id:o,type:"number",value:h,onChange:c=>a(s.key,c.target.value?Number(c.target.value):void 0),placeholder:s.placeholder,"aria-invalid":!!d||void 0,"aria-required":s.required||void 0});case"select":return s.displayAs==="radio-cards"?e.jsx("div",{className:"grid grid-cols-2 gap-3",role:"radiogroup","aria-labelledby":`${o}-label`,"aria-required":s.required||void 0,children:(N=s.options)==null?void 0:N.map(c=>e.jsxs("button",{type:"button",role:"radio","aria-checked":h===c.value,onClick:()=>a(s.key,c.value),className:U("hover:bg-accent/50 focus-visible:border-ring focus-visible:ring-ring flex flex-col items-start rounded-md border p-3 text-left transition outline-none focus-visible:ring-[3px]",h===c.value&&"border-primary ring-primary bg-accent/30 ring-1"),children:[e.jsx("span",{className:"text-sm font-medium",children:c.label}),c.description&&e.jsx("span",{className:"text-muted-foreground mt-1 text-xs",children:c.description})]},c.value))}):e.jsxs(Z,{value:h,onValueChange:c=>a(s.key,c),children:[e.jsx(X,{id:o,"aria-invalid":!!d||void 0,"aria-required":s.required||void 0,children:e.jsx(ee,{placeholder:s.placeholder??"Select…"})}),e.jsx(se,{children:(C=s.options)==null?void 0:C.map(c=>e.jsx(te,{value:c.value,children:c.label},c.value))})]});case"textarea":return e.jsx(Me,{id:o,value:h,onChange:c=>a(s.key,c.target.value),placeholder:s.placeholder,rows:3,"aria-invalid":!!d||void 0,"aria-required":s.required||void 0});default:return null}};return e.jsxs(ie,{children:[e.jsxs(oe,{id:`${o}-label`,htmlFor:v?void 0:o,children:[s.label,s.required&&!x&&e.jsx("span",{"aria-hidden":"true",className:"text-destructive ml-0.5",children:"*"})]}),b(),s.description&&e.jsx(le,{className:"text-xs",children:s.description}),s.helpMarkdown&&e.jsxs(ce,{children:[e.jsxs(de,{className:"text-muted-foreground hover:text-foreground mt-1 flex items-center gap-1 text-xs transition-colors",children:[e.jsx(ue,{className:"size-3"}),"Where do I find this?",e.jsx(he,{className:"size-3 transition-transform [[data-state=open]_&]:rotate-180"})]}),e.jsx(pe,{children:e.jsx("div",{className:"bg-muted/50 mt-2 rounded-md border p-3",children:e.jsx(I,{content:s.helpMarkdown,className:"text-xs"})})})]}),e.jsx(Y,{children:d&&e.jsx(J.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.15},className:"overflow-hidden",children:e.jsx(me,{children:d})})})]})}function os(s,t){return s.showWhen?t[s.showWhen.field]===s.showWhen.equals:!0}function ls({fields:s,allValues:t,renderField:a}){const r=new Map;for(const l of s){const i=l.section;r.has(i)||r.set(i,[]),r.get(i).push(l)}return e.jsx("div",{className:"space-y-6",children:Array.from(r.entries()).map(([l,i])=>{const n=i.filter(o=>os(o,t));return n.length===0?null:e.jsxs("div",{className:"space-y-3",children:[l&&e.jsx("h4",{className:"text-sm font-semibold",children:l}),e.jsx(ze,{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(Z,{value:t,onValueChange:a,children:[e.jsx(X,{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(Z,{value:r,onValueChange:o=>l(o),children:[e.jsx(X,{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
|
+
`):t:s.valueShape==="json-object"&&typeof t=="object"?JSON.stringify(t,null,2):t}function js(s,t){const a=s.setupSteps;if(!a||a.length===0)return s.configFields;const r=a[t];if(!r)return s.configFields;const l=s.configFields.filter(i=>r.fields.includes(i.key));return t!==a.length-1?l:[...l,...we(s)]}const ys="Advanced";function K(s){const t={};for(const[a,r]of Object.entries(s)){const l=a.split(".");let i=t;for(let n=0;n<l.length-1;n++){const o=l[n];(!(o in i)||typeof i[o]!="object"||i[o]===null)&&(i[o]={}),i=i[o]}i[l[l.length-1]]=r}return t}function ve(s,t){const a=t.split(".");let r=s;for(const l of a){if(r==null||typeof r!="object")return;r=r[l]}return r}function vs(s,t){const a={};for(const r of s.configFields){const l=t?ve(t,r.key):void 0;l!==void 0&&r.type!=="password"?a[r.key]=fs(r,l):r.type==="password"&&t&&ve(t,r.key)!==void 0?a[r.key]="***":r.default!==void 0?a[r.key]=r.default:a[r.key]=r.type==="boolean"?!1:""}return a}function bs(s,t=[]){const a=s.type;if(!t.includes(a))return a;let r=2;for(;t.includes(`${a}-${r}`);)r++;return`${a}-${r}`}function Ns({manifest:s,existingInstance:t,existingAdapterIds:a=[],onOpenChange:r}){const l=!!t,[i,n]=m.useState(t?"configure":"agent"),[o,v]=m.useState(!1),[h]=m.useState(()=>(t==null?void 0:t.id)??bs(s,a)),[x,y]=m.useState(()=>{var p;return((p=t==null?void 0:t.config)==null?void 0:p.label)??""}),[d,b]=m.useState(0),[N,C]=m.useState(""),[c,P]=m.useState(""),[$,R]=m.useState("per-chat"),E=Qe(),q=He(),S=Ke(),M=ns(),{data:F}=Ye(),w=be(),z=Ne(),T=(F==null?void 0:F.agents)??[],B=s.setupSteps&&s.setupSteps.length>0,j=as({defaultValues:vs(s,t==null?void 0:t.config),validators:{onSubmit:({value:p})=>{const g={};for(const u of s.configFields)if(!(u.showWhen&&p[u.showWhen.field]!==u.showWhen.equals)&&u.required){const f=p[u.key];(f==null||f==="")&&(g[u.key]=`${u.label} is required`)}return Object.keys(g).length>0?{fields:g}:void 0}},onSubmit:async()=>{}}),W=m.useMemo(()=>{const p=new Set(we(s).map(g=>g.key));return js(s,d).map(g=>p.has(g.key)&&!g.section?{...g,section:ys}:g)},[s,d]),O=m.useCallback(()=>{const p=j.state.values;let g=!0;for(const u of W)if(!(u.showWhen&&p[u.showWhen.field]!==u.showWhen.equals)&&u.required){const f=p[u.key];(f==null||f==="")&&(j.setFieldMeta(u.key,A=>({...A,isTouched:!0,errors:[`${u.label} is required`],errorMap:{onSubmit:`${u.label} is required`}})),g=!1)}return g},[j,W]),L=m.useCallback(()=>{if(i==="agent"){if(!c)return;n("configure");return}if(i==="configure"){if(!O())return;if(B&&s.setupSteps&&d<s.setupSteps.length-1){b(u=>u+1);return}const g=j.state.values;n("test"),S.mutate({type:s.type,config:K(g)},{onSuccess:u=>{u.botUsername&&(C(u.botUsername),x||y(`@${u.botUsername}`))}})}else i==="test"&&n("confirm")},[i,c,B,s,d,O,j,S,x]),V=m.useCallback(()=>{i==="test"?(n("configure"),S.reset()):i==="confirm"?n("test"):i==="configure"&&(B&&d>0?b(p=>p-1):l||n("agent"))},[i,B,d,S,l]),D=m.useCallback(async p=>{try{return await w.removeRelayAdapter(p),!0}catch{return!1}finally{z.invalidateQueries({queryKey:["relay"]})}},[w,z]),Q=m.useCallback(()=>{const p=j.state.values,g=K(p),u=x?{...g,label:x}:g;if(l&&t){q.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,q,E,M,s,h,x,c,$,T,D,r]),Ce=m.useCallback(p=>{p||(n(l?"configure":"agent"),b(0),y(""),C(""),P(""),R("per-chat"),v(!1),j.reset(),S.reset()),r(p)},[r,j,S,l]),Ae=m.useCallback(()=>{S.mutate({type:s.type,config:K(j.state.values)})},[S,s.type,j]),Fe=E.isPending||q.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:q,hasSetupSteps:S,setupStepIndex:M,currentSetupStep:F,testConnection:w,handleContinue:z,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(Je,{open:s,onOpenChange:j,children:e.jsxs(Ze,{className:"flex max-h-[85vh] max-w-lg flex-col",children:[e.jsxs(Xe,{children:[e.jsx(es,{children:o?`Edit ${a.displayName}`:`Add ${a.displayName}`}),e.jsx(ss,{children:O})]}),e.jsxs("div",{className:"min-h-0 space-y-4 overflow-y-auto py-2",children:[e.jsx(ds,{current:n,showAgentStep:!o}),e.jsx(Y,{mode:"wait",children:e.jsxs(J.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},children:[n==="agent"&&e.jsx(xs,{agentOptions:E,agentId:c,onAgentIdChange:P,strategy:$,onStrategyChange:R}),n==="configure"&&e.jsx(us,{manifest:a,label:h,onLabelChange:x,fields:C,form:N,currentSetupStep:F,hasSetupGuide:!!a.setupGuide,onOpenGuide:()=>b(!0)}),n==="test"&&e.jsx(hs,{isPending:w.isPending,isSuccess:w.isSuccess,isError:w.isError,errorMessage:(L=w.error)==null?void 0:L.message,botUsername:y,onRetry:W}),n==="confirm"&&e.jsx(N.Subscribe,{selector:V=>V.values,children:V=>{var D;return e.jsx(ms,{manifest:a,adapterId:v,isEditMode:o,values:V,botUsername:y,agentName:((D=E.find(Q=>Q.id===c))==null?void 0:D.name)||c})}})]},n)})]}),e.jsxs(ts,{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:q,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:z,disabled:!c,children:["Continue",e.jsx(H,{className:"ml-1 size-4"})]}),n==="configure"&&e.jsxs(k,{onClick:z,children:["Continue",e.jsx(H,{className:"ml-1 size-4"})]}),n==="test"&&!w.isPending&&!w.isSuccess&&e.jsx(k,{variant:"ghost",onClick:z,children:"Skip"}),n==="test"&&w.isSuccess&&e.jsxs(k,{onClick:z,children:["Continue",e.jsx(H,{className:"ml-1 size-4"})]}),n==="confirm"&&e.jsxs(k,{onClick:B,disabled:q,children:[q&&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,Bs as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ag as m,j as s,ah as c,ai as x,J as u,G as d}from"./index-fge85Gub.js";function p({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{p as A};
|