dorkos 0.125.3 → 0.125.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 +246 -215
- package/dist/browser/native/package-manifest.json +1 -1
- package/dist/browser/source-manifest.json +1 -1
- package/dist/client/assets/{AboutPage-DSSx1Gzx.js → AboutPage-CTG5VvGg.js} +1 -1
- package/dist/client/assets/{ActivityErrorState-C-mLOmJm.js → ActivityErrorState-BSuvlEdx.js} +1 -1
- package/dist/client/assets/{ActivityPage-DsOjjulF.js → ActivityPage-BoiN89nn.js} +1 -1
- package/dist/client/assets/{ActivityRow-ylgCMe7Y.js → ActivityRow-Bj0V45d7.js} +1 -1
- package/dist/client/assets/{AdapterIcon-DT5OdFbe.js → AdapterIcon-LFpWySMg.js} +1 -1
- package/dist/client/assets/{AdapterSetupWizard-C6jxF55P.js → AdapterSetupWizard-D9V6g6ha.js} +1 -1
- package/dist/client/assets/{AgentOptionRow-CtdBmX9G.js → AgentOptionRow-nGR6PdC6.js} +1 -1
- package/dist/client/assets/{AgentPicker--wr93sVO.js → AgentPicker-BhsmtQgu.js} +1 -1
- package/dist/client/assets/{AgentRequestCard-DVoE2cnk.js → AgentRequestCard-DBVuClMO.js} +1 -1
- package/dist/client/assets/{AppearancePage-DR_g6BJO.js → AppearancePage-DoDVD6OA.js} +1 -1
- package/dist/client/assets/{ApplyToOverridesDialog-BqaoB6AS.js → ApplyToOverridesDialog-56HrIRuZ.js} +1 -1
- package/dist/client/assets/{AttentionSignalRow-CM0TrrbJ.js → AttentionSignalRow-x8vRACw-.js} +1 -1
- package/dist/client/assets/{BaseTanStackRouterDevtoolsPanel-B-iktbLX-DJ54CELa.js → BaseTanStackRouterDevtoolsPanel-B-iktbLX-Bxeb6ihh.js} +1 -1
- package/dist/client/assets/{BindingDialog-JAPULq7H.js → BindingDialog-D6HqDfnK.js} +1 -1
- package/dist/client/assets/{BlintzCanvas-B3-FjszN.js → BlintzCanvas-DFsdE-hF.js} +3 -3
- package/dist/client/assets/{CanvasCsvContent-Cmqry1BS.js → CanvasCsvContent-BsRV_kUK.js} +1 -1
- package/dist/client/assets/{CanvasFileContent-BMkxUF1r.js → CanvasFileContent-BzGYGFSi.js} +2 -2
- package/dist/client/assets/{CanvasModel3dContent-DBhuNbFD.js → CanvasModel3dContent-dA90prow.js} +2 -2
- package/dist/client/assets/{ChannelComposer-WR3_Vvta.js → ChannelComposer-MROo35vI.js} +3 -3
- package/dist/client/assets/{ChatAppsOff-CY5_0lQH.js → ChatAppsOff-4xIVwDUJ.js} +1 -1
- package/dist/client/assets/{CodeMirrorDiff-_EI44zW6.js → CodeMirrorDiff-Cexj7RYA.js} +1 -1
- package/dist/client/assets/{CodeMirrorEditor-x1lTuDQH.js → CodeMirrorEditor-D1-q0hSM.js} +1 -1
- package/dist/client/assets/{CommitmentList-D-CvccnF.js → CommitmentList-Bn7E15MO.js} +1 -1
- package/dist/client/assets/{CommitmentsPage-CLw1FRLv.js → CommitmentsPage-Ch-y0wr0.js} +1 -1
- package/dist/client/assets/{ComputerResourceView-QJnXivV4.js → ComputerResourceView-Bbqh7e8R.js} +1 -1
- package/dist/client/assets/{ComputerViewer-DbTGz3OL.js → ComputerViewer-XqZtg4O4.js} +1 -1
- package/dist/client/assets/{ConnectionAccessLists-CB5UY0f0.js → ConnectionAccessLists-D324Hahi.js} +1 -1
- package/dist/client/assets/{ConnectionsPage-SpEJxCeF.js → ConnectionsPage-5nIQrmtW.js} +1 -1
- package/dist/client/assets/{ConventionPage-C2NIZjG3.js → ConventionPage-PFy9ASYy.js} +1 -1
- package/dist/client/assets/{ExtensionPageRoute-Drr5uceG.js → ExtensionPageRoute-ClLEO5sJ.js} +1 -1
- package/dist/client/assets/{FloatingTanStackRouterDevtools-CqogiFob-kKteNmsx.js → FloatingTanStackRouterDevtools-CqogiFob-D007PSSL.js} +1 -1
- package/dist/client/assets/HandlePage-DW4b2avU.js +1 -0
- package/dist/client/assets/{HeartbeatPage-BLGTx_57.js → HeartbeatPage-IqTdsHR6.js} +1 -1
- package/dist/client/assets/{KeyEntry-DgN8iewR.js → KeyEntry-ZYnZcVmM.js} +1 -1
- package/dist/client/assets/{LexicalField-Bfj72GvX.js → LexicalField-PdcZjVov.js} +1 -1
- package/dist/client/assets/{ManagesPage-C3G1-Mep.js → ManagesPage-doVOC8Dk.js} +1 -1
- package/dist/client/assets/{Marketplace-Dg0bIo7_.js → Marketplace-B9X8IIWI.js} +1 -1
- package/dist/client/assets/{MarketplaceSourcesView-KPw8YYXi.js → MarketplaceSourcesView-BZCnUvqP.js} +1 -1
- package/dist/client/assets/{McpAppFrame-DjJ4EM39.js → McpAppFrame-BXdeDoQB.js} +1 -1
- package/dist/client/assets/{McpSigninBody-V6RSsDqe.js → McpSigninBody-CI-gwQuU.js} +1 -1
- package/dist/client/assets/{Model3dViewer-woNPO5OC.js → Model3dViewer-ws_p2e-Q.js} +1 -1
- package/dist/client/assets/NamePage-Cv95tb4E.js +1 -0
- package/dist/client/assets/{NewDirectMessageMenu-CmCOFmXQ.js → NewDirectMessageMenu-PuW-lVGF.js} +1 -1
- package/dist/client/assets/{NotificationsPage-kUtiVsFS.js → NotificationsPage-D_qHMJYR.js} +1 -1
- package/dist/client/assets/{OpenMeshSwitch-r6HJBjR6.js → OpenMeshSwitch-DiuAcyMj.js} +1 -1
- package/dist/client/assets/{OperatorIdentityForm-B29T-N9x.js → OperatorIdentityForm-DBbsUGPX.js} +1 -1
- package/dist/client/assets/{PermissionHistory-CV8cFJr3.js → PermissionHistory-DNBswqms.js} +1 -1
- package/dist/client/assets/{PermissionsPage-_PKlbWde.js → PermissionsPage-D6cAIUTe.js} +1 -1
- package/dist/client/assets/{PersonalityPopover-BOXTCA6E.js → PersonalityPopover-d_PR1nuF.js} +1 -1
- package/dist/client/assets/PhotoPage-D8f25EFY.js +1 -0
- package/dist/client/assets/{PreviewRefusedNotice-CdHja8fU.js → PreviewRefusedNotice-p-KIYJVf.js} +1 -1
- package/dist/client/assets/{ProfileFields-C48alR3i.js → ProfileFields-D_e9XQav.js} +1 -1
- package/dist/client/assets/{ProfilePanelContainer-BpJVbdUL.js → ProfilePanelContainer-DxSkglaS.js} +1 -1
- package/dist/client/assets/{ProfileRolePicker-DtuSZNaw.js → ProfileRolePicker-kNJMfzUF.js} +1 -1
- package/dist/client/assets/{PromptSuggestionChips-DT-JdGeO.js → PromptSuggestionChips-Dpie7Ut6.js} +1 -1
- package/dist/client/assets/{ReportsToPopover-BP2nxz2E.js → ReportsToPopover-kZWnpINs.js} +1 -1
- package/dist/client/assets/{RoomSurface-C_mTmn8g.js → RoomSurface-DyubmENi.js} +1 -1
- package/dist/client/assets/{RoomsPage-gDIy73MQ.js → RoomsPage-B88d-F2r.js} +1 -1
- package/dist/client/assets/{RunsOnPopover-DhXG88Uj.js → RunsOnPopover-C51USCpv.js} +1 -1
- package/dist/client/assets/RuntimeConnectFlow-DJMtgkZF.js +1 -0
- package/dist/client/assets/{RuntimeSetupDialog-BSb5iK2A.js → RuntimeSetupDialog-DQss2qqJ.js} +1 -1
- package/dist/client/assets/SeenDevices-DQnrqn19.js +19 -0
- package/dist/client/assets/{SessionsPage-C6nmCWVM.js → SessionsPage-BxT6HETG.js} +1 -1
- package/dist/client/assets/SettingsDialog-BriAKBHz.js +12 -0
- package/dist/client/assets/{SkillsPage-DSIKEsHr.js → SkillsPage-QfxMaHeF.js} +1 -1
- package/dist/client/assets/{TaskDialogWrapper-Cst7UxoY.js → TaskDialogWrapper-D54Nqlkr.js} +1 -1
- package/dist/client/assets/{TasksEmptyState-DityFi7P.js → TasksEmptyState-rCcan38Y.js} +1 -1
- package/dist/client/assets/{TasksPage-BZx_Ku0k.js → TasksPage-rIqxyB15.js} +1 -1
- package/dist/client/assets/{TeamComputerEntry-uj1GcPP_.js → TeamComputerEntry-BtSsE94x.js} +1 -1
- package/dist/client/assets/{ToolsPage-Qm6x37SO.js → ToolsPage-CfM2Cdtm.js} +1 -1
- package/dist/client/assets/{TopologyGraph-2C3Ij6tO.js → TopologyGraph-BMvLKLwd.js} +1 -1
- package/dist/client/assets/{TourHost-BsV8lcXT.js → TourHost-XxcgkZcj.js} +1 -1
- package/dist/client/assets/{UnlinkDialog-ClNn0nv6.js → UnlinkDialog-D1tIChdU.js} +1 -1
- package/dist/client/assets/{UnreadDivider-CGKnJcx7.js → UnreadDivider-mAlJ1Ci7.js} +1 -1
- package/dist/client/assets/{WidgetErrorCard-oq5MKUX_.js → WidgetErrorCard-DQWpqcbG.js} +3 -3
- package/dist/client/assets/{WorkView-wVnGvWAz.js → WorkView-D1V2vzFd.js} +15 -15
- package/dist/client/assets/{_shell-D4V8GQqV.js → _shell-C5LhHVEU.js} +22 -22
- package/dist/client/assets/{_shell._home-DoaHLKk8.js → _shell._home-BhaXi3EI.js} +1 -1
- package/dist/client/assets/{_shell._home.activity-BP1byb8g.js → _shell._home.activity-Bd8jIlgC.js} +1 -1
- package/dist/client/assets/{_shell._home.index-BB5pgiqt.js → _shell._home.index-zoh1Ij4R.js} +2 -2
- package/dist/client/assets/{_shell._home.tasks-B3w6mqyb.js → _shell._home.tasks-CnfbD4z-.js} +1 -1
- package/dist/client/assets/{_shell._home.workspaces-BcOiklL5.js → _shell._home.workspaces-Cew8PET2.js} +1 -1
- package/dist/client/assets/{_shell.channels-DxSDnd-3.js → _shell.channels-efUOy5uH.js} +1 -1
- package/dist/client/assets/{_shell.connections-YKOm7ap5.js → _shell.connections-DS8BI_M6.js} +1 -1
- package/dist/client/assets/{_shell.feedback-requests-DC2Jw1EF.js → _shell.feedback-requests-C9nwY8FH.js} +1 -1
- package/dist/client/assets/_shell.marketplace-BxOR_qkR.js +1 -0
- package/dist/client/assets/_shell.marketplace_.sources-BdVMq5Gt.js +1 -0
- package/dist/client/assets/_shell.session-DxIjWGPk.js +1 -0
- package/dist/client/assets/{_shell.team-C9QJNwaK.js → _shell.team-DejtvgcD.js} +3 -3
- package/dist/client/assets/{_shell.threads-gs_o48eZ.js → _shell.threads-BiIjml5t.js} +1 -1
- package/dist/client/assets/_shell.x._extensionId-VrXvDnpj.js +1 -0
- package/dist/client/assets/_shell.x._extensionId_._-VrXvDnpj.js +1 -0
- package/dist/client/assets/{abnfDiagram-WEYOIA3C-sjxf16g2.js → abnfDiagram-WEYOIA3C-CAQusbaN.js} +1 -1
- package/dist/client/assets/{access-copy-_81ChCG3.js → access-copy-DzgVmhna.js} +1 -1
- package/dist/client/assets/{arc-B-c5OGeX.js → arc-Dx6GrexJ.js} +1 -1
- package/dist/client/assets/{architectureDiagram-ZHVYKT53-CExq4B1X.js → architectureDiagram-ZHVYKT53-wFr3hleP.js} +1 -1
- package/dist/client/assets/{banner-BhzLIs7u.js → banner-C0yzCrO7.js} +1 -1
- package/dist/client/assets/{blockDiagram-RJAE7QA3-C1D5MR7Z.js → blockDiagram-RJAE7QA3-CnuvSqM0.js} +1 -1
- package/dist/client/assets/{c4Diagram-XDPPPE54-DMtF_wcg.js → c4Diagram-XDPPPE54-DzLijAHt.js} +1 -1
- package/dist/client/assets/{card-Dsy8PPN6.js → card-ZF4yWM1Y.js} +1 -1
- package/dist/client/assets/channel-BhigWC_Q.js +1 -0
- package/dist/client/assets/{chunk-2E7WHVMD-DCmxZwyD.js → chunk-2E7WHVMD-SN1xBBT1.js} +1 -1
- package/dist/client/assets/{chunk-2Q5K7J3B-BXvjhtJ3.js → chunk-2Q5K7J3B-DbW-InNL.js} +1 -1
- package/dist/client/assets/{chunk-4EMNKR2T-CR6qWjas.js → chunk-4EMNKR2T-DxMZsEVE.js} +1 -1
- package/dist/client/assets/{chunk-55XCU76K-Bny7RY06.js → chunk-55XCU76K-9dknyxgR.js} +1 -1
- package/dist/client/assets/{chunk-5VM5RSS4-B9aD4Uib.js → chunk-5VM5RSS4-CeL_dp1K.js} +1 -1
- package/dist/client/assets/{chunk-JWPE2WC7-D28Xa5gr.js → chunk-JWPE2WC7-H-uQEL4m.js} +1 -1
- package/dist/client/assets/{chunk-VQ5W62QI-CLgnUSgl.js → chunk-VQ5W62QI-YZCtp46Q.js} +1 -1
- package/dist/client/assets/{chunk-XXDRQBXY-vMTRVR5A.js → chunk-XXDRQBXY-CTsuviQ9.js} +1 -1
- package/dist/client/assets/{chunk-ZCHMQSOR-Ck0VFEtd.js → chunk-ZCHMQSOR-Dymmj4ca.js} +2 -2
- package/dist/client/assets/{classDiagram-v2-4MYWR3UA-Dh4gPh4M.js → classDiagram-v2-4MYWR3UA-AZrXuO6n.js} +1 -1
- package/dist/client/assets/{command-CxjTPW0z.js → command-D2uvj-5S.js} +1 -1
- package/dist/client/assets/{cose-bilkent-JH36ORCC-BA-tF0x7.js → cose-bilkent-JH36ORCC-DH6uyH8n.js} +1 -1
- package/dist/client/assets/{cpu-SRODWAA1.js → cpu-CxkuIIZ9.js} +1 -1
- package/dist/client/assets/{cynefin-EF2NZ3EQ-B_kxrTf4.js → cynefin-EF2NZ3EQ-CPF1WTGP.js} +1 -1
- package/dist/client/assets/{cynefinDiagram-WF24UDRP-Be0brpVq.js → cynefinDiagram-WF24UDRP-BvgLB9D2.js} +1 -1
- package/dist/client/assets/{dagre-NK4GIZVX-zI9I0fUC.js → dagre-NK4GIZVX-Dbgki4TG.js} +1 -1
- package/dist/client/assets/{diagram-CBK3MWTC-jN0pUEKR.js → diagram-CBK3MWTC-C84DYVUU.js} +1 -1
- package/dist/client/assets/{diagram-I5XIIV2D-BjRZmmQf.js → diagram-I5XIIV2D-DKFohwHa.js} +1 -1
- package/dist/client/assets/{diagram-ODIL2UCW-BtnkiX3a.js → diagram-ODIL2UCW-C80JpCDz.js} +1 -1
- package/dist/client/assets/{diagram-PFBEJUXE-Bteh9wpL.js → diagram-PFBEJUXE-I7bZPRJw.js} +1 -1
- package/dist/client/assets/{diagram-RJA3I4VV-hRmqKbOC.js → diagram-RJA3I4VV-Gqdnf6A3.js} +1 -1
- package/dist/client/assets/{diagram-TYUNFSNR-NKdthGes.js → diagram-TYUNFSNR-CCzmXB0d.js} +1 -1
- package/dist/client/assets/{ebnfDiagram-V4P3TTPT-CpkD13ID.js → ebnfDiagram-V4P3TTPT-DWKMGbp5.js} +1 -1
- package/dist/client/assets/{elk-QONTBCTQ-Dw4bdkn4.js → elk-QONTBCTQ-BH9-VsJv.js} +1 -1
- package/dist/client/assets/{empty-state-Xw8KQdod.js → empty-state-CQVHyP7G.js} +1 -1
- package/dist/client/assets/{erDiagram-KYQIGQAA-fiThyiH_.js → erDiagram-KYQIGQAA-Dw7o0PKQ.js} +1 -1
- package/dist/client/assets/{execution-config-ryHuiBdx.js → execution-config-B0Ip8o1B.js} +1 -1
- package/dist/client/assets/{file-CbZILJJL.js → file-aWVIKIhu.js} +1 -1
- package/dist/client/assets/{file-exclamation-point-rCHuN_aY.js → file-exclamation-point-VqrEIkK2.js} +1 -1
- package/dist/client/assets/{file-text-DGtefNvG.js → file-text-BcDT6eqO.js} +1 -1
- package/dist/client/assets/{find-latest-widget-fence-DJDfJAaN.js → find-latest-widget-fence-BBx2mbzG.js} +1 -1
- package/dist/client/assets/{flowDiagram-IUGLLWBU-ORyRd0wW.js → flowDiagram-IUGLLWBU-DUap_2VM.js} +1 -1
- package/dist/client/assets/{form-USBlP2n_.js → form-Bq-P02ub.js} +1 -1
- package/dist/client/assets/{format-cron-u8efK62G.js → format-cron-CoTCXmQp.js} +1 -1
- package/dist/client/assets/{ganttDiagram-R7GPNTJY-BC-M9_Wi.js → ganttDiagram-R7GPNTJY-GAxFxszj.js} +1 -1
- package/dist/client/assets/{git-branch-jQqbJAvp.js → git-branch-Cvc-Sr6q.js} +1 -1
- package/dist/client/assets/{gitGraphDiagram-PDYL7XHY-NIdjLN38.js → gitGraphDiagram-PDYL7XHY-CNXDdCW9.js} +1 -1
- package/dist/client/assets/{graph-CBIOKOiw.js → graph-CtCYTWZj.js} +1 -1
- package/dist/client/assets/{heart-CSbB9K4Q.js → heart-yvX6jsem.js} +1 -1
- package/dist/client/assets/{highlighted-body-KPVGNVTW-OC8sqXXy.js → highlighted-body-KPVGNVTW-B6iFwydl.js} +1 -1
- package/dist/client/assets/{image-lightbox-DgWS2xlv.js → image-lightbox-COo7DKXH.js} +1 -1
- package/dist/client/assets/{image-off-DziiNcIl.js → image-off-BPRcQBvJ.js} +1 -1
- package/dist/client/assets/{index-CP7hD01s.js → index-7EayMDlv.js} +1 -1
- package/dist/client/assets/{index-CCohVfmo.js → index-B1UgkD5d.js} +1 -1
- package/dist/client/assets/{index-jJbbnV9q.js → index-B36G1Wt7.js} +3 -3
- package/dist/client/assets/{index-DJlq_kd_.js → index-B7M2ny5y.js} +1 -1
- package/dist/client/assets/{index-B5eM1_q1.js → index-B8YnzTmr.js} +1 -1
- package/dist/client/assets/{index-BU_bmsP2.js → index-BI7mYC3q.js} +1 -1
- package/dist/client/assets/{index-DgnJZ7RZ.js → index-BIoO-kFF.js} +1 -1
- package/dist/client/assets/{index-BAaqQW-m.js → index-BJKRrppi.js} +1 -1
- package/dist/client/assets/{index-CWhDGAYM.js → index-BSGg8ud2.js} +1 -1
- package/dist/client/assets/{index-DSYz85aL.js → index-BSNB2iOV.js} +9 -9
- package/dist/client/assets/{index-B9utW3HE.js → index-Bcv5Znqx.js} +1 -1
- package/dist/client/assets/{index-CiAb-mD4.js → index-BsmQ2VMC.js} +1 -1
- package/dist/client/assets/{index-DkcRrH0O.js → index-BzlepYwD.js} +1 -1
- package/dist/client/assets/{index-CRTzTiNF.js → index-CCo77KAN.js} +1 -1
- package/dist/client/assets/{index-CeJVF9AD.js → index-CIIAns2d.js} +1 -1
- package/dist/client/assets/{index-DYF1ER90.js → index-CNlIRtiQ.js} +3 -3
- package/dist/client/assets/{index-n6f9pLtt.js → index-COenrxg6.js} +1 -1
- package/dist/client/assets/{index-fAHI5hei.js → index-CXCoNv1T.js} +1 -1
- package/dist/client/assets/{index-DfYJ-zxk.js → index-CYPbNdgY.js} +1 -1
- package/dist/client/assets/{index-Bz9CgPjs.js → index-CYl4FhO7.js} +1 -1
- package/dist/client/assets/{index-DJyLZL6w.js → index-CZA2uFZQ.js} +1 -1
- package/dist/client/assets/{index-BGGnQdij.js → index-CaOL5rt9.js} +1 -1
- package/dist/client/assets/{index-YtJ82pkp.js → index-Cbu89CsC.js} +1 -1
- package/dist/client/assets/{index-BYxDsLTQ.js → index-Cdzlu1-P.js} +1 -1
- package/dist/client/assets/{index-CuT_aCM-.js → index-D1e3aPAe.js} +2 -2
- package/dist/client/assets/{index-CRPh-508.js → index-D9pvn-mm.js} +1 -1
- package/dist/client/assets/{index-C49AWTah.js → index-DRao3lV4.js} +1 -1
- package/dist/client/assets/{index-Dk33a8Wz.js → index-DefXQdQA.js} +1 -1
- package/dist/client/assets/{index-BOaou3k5.js → index-Dqq2lV9x.js} +1 -1
- package/dist/client/assets/{index-B-KhOLHd.js → index-Drg391kA.js} +1 -1
- package/dist/client/assets/{index-DnyoNFRt.js → index-DuEmhl4K.js} +1 -1
- package/dist/client/assets/{index-LFeqJL-v.js → index-FCztjyrm.js} +1 -1
- package/dist/client/assets/{index-DeDh_2c1.js → index-GEDh_fwN.js} +1 -1
- package/dist/client/assets/{index-C5gtuueN.js → index-KLtoKDvx.js} +1 -1
- package/dist/client/assets/{index-C9UgTEuh.js → index-N3JAoXse.js} +1 -1
- package/dist/client/assets/{index-RXFhiamo.js → index-NbnKjhyZ.js} +1 -1
- package/dist/client/assets/index-ZRwRzKll.js +1 -0
- package/dist/client/assets/index-bgXdb4vP.js +1 -0
- package/dist/client/assets/{index-w4wyJU8q.js → index-io81RE8o.js} +1 -1
- package/dist/client/assets/{index-Yr72qWri.js → index-p7yYM6Iz.js} +1 -1
- package/dist/client/assets/{index-CDslENFz.js → index-sTYFlBEJ.js} +1 -1
- package/dist/client/assets/{index-D9Ej8fsx.js → index-thNMHUmT.js} +1 -1
- package/dist/client/assets/{index-BN02EVKP.js → index-vWi6pOlY.js} +1 -1
- package/dist/client/assets/{index-j5szQcqb.js → index-xKvoBO92.js} +1 -1
- package/dist/client/assets/{index.esm-Dyd3JXuK.js → index.esm-BYS3OpKb.js} +1 -1
- package/dist/client/assets/{infoDiagram-MVDRKAX5-CPcm-36U.js → infoDiagram-MVDRKAX5-BB5v9AOj.js} +1 -1
- package/dist/client/assets/{inline-code-BjkmgK0M.js → inline-code-Df1J1tQV.js} +1 -1
- package/dist/client/assets/{ishikawaDiagram-HPEHV2GE-B8eVNEDQ.js → ishikawaDiagram-HPEHV2GE-D8Zw0Wka.js} +1 -1
- package/dist/client/assets/{journeyDiagram-BOSHW7O7-CGkIGaMV.js → journeyDiagram-BOSHW7O7-CIaVEmcq.js} +1 -1
- package/dist/client/assets/{kanban-definition-FNSA4HC5-BTDbT6UJ.js → kanban-definition-FNSA4HC5-D0jxBQB1.js} +1 -1
- package/dist/client/assets/{layers-DyShcAgn.js → layers-Byywl2sz.js} +1 -1
- package/dist/client/assets/{lightbulb-QljDqLq7.js → lightbulb-Cu6PlV7n.js} +1 -1
- package/dist/client/assets/{link-2-7SoeCkEs.js → link-2-D2LX2bAn.js} +1 -1
- package/dist/client/assets/{list-runtime-types-DvfLx6v2.js → list-runtime-types-C4Ik3n5A.js} +1 -1
- package/dist/client/assets/{markdown-content-D7t62wwm.js → markdown-content-BbH7L0YO.js} +1 -1
- package/dist/client/assets/{mention-pill-DNQ2ICCW.js → mention-pill-DxRP9Bkp.js} +1 -1
- package/dist/client/assets/{mermaid.core-NAyHAvFm.js → mermaid.core-D9Vc69mt.js} +4 -4
- package/dist/client/assets/{message-square-off-D6K1M95g.js → message-square-off-BP01X_ck.js} +1 -1
- package/dist/client/assets/{mindmap-definition-6OY57UG3-26dEepZx.js → mindmap-definition-6OY57UG3-DNd2V0AH.js} +1 -1
- package/dist/client/assets/{more-details-BJ_2FYn8.js → more-details-7psgoF8x.js} +1 -1
- package/dist/client/assets/{owner-notice-CIfb2Yr7.js → owner-notice-83ejBJ3g.js} +1 -1
- package/dist/client/assets/{package-CeRLwc1u.js → package-DSJyi_sq.js} +1 -1
- package/dist/client/assets/{page-container-D2J6eon9.js → page-container-D7q7ISl1.js} +1 -1
- package/dist/client/assets/{pane-resize-handle-CXxva43c.js → pane-resize-handle-BnQ8IKj6.js} +1 -1
- package/dist/client/assets/{paperclip-DFuuQSWM.js → paperclip-CeOJ8Nwp.js} +1 -1
- package/dist/client/assets/{path-input-DhGxbEsh.js → path-input-BToXn1c2.js} +1 -1
- package/dist/client/assets/{pegDiagram-ECIUJNBX-BJu6g9eg.js → pegDiagram-ECIUJNBX-sCkH1RIT.js} +1 -1
- package/dist/client/assets/{pieDiagram-GNMPY74T-CMf8TQF7.js → pieDiagram-GNMPY74T-B4V9xf2z.js} +1 -1
- package/dist/client/assets/{plug-Bqwk5g66.js → plug-CMcqk2p3.js} +1 -1
- package/dist/client/assets/{primer-trigger-NAz78FSN.js → primer-trigger-DtyY4fpx.js} +1 -1
- package/dist/client/assets/{profile-errors--0_JG2R0.js → profile-errors-DSKechEz.js} +1 -1
- package/dist/client/assets/{progress-cQRXQehb.js → progress-8CDPI0xL.js} +1 -1
- package/dist/client/assets/{quadrantDiagram-D57K4MC3-Bb92PcA9.js → quadrantDiagram-D57K4MC3-DkcmqAD-.js} +1 -1
- package/dist/client/assets/{query-error-state-C2QLFCgp.js → query-error-state-jrioxcrf.js} +1 -1
- package/dist/client/assets/{radio-CBD2fSSB.js → radio-D3k0l1vj.js} +1 -1
- package/dist/client/assets/{railroadDiagram-Y72NRBL7-YN2siyto.js → railroadDiagram-Y72NRBL7-T9Qbdks1.js} +1 -1
- package/dist/client/assets/registry-B0s0gwF4.js +1 -0
- package/dist/client/assets/{relay-trace-schemas-yWn__06J.js → relay-trace-schemas-epyobQGg.js} +1 -1
- package/dist/client/assets/{repeat-CtIEyxm4.js → repeat-Cbe4MVvF.js} +1 -1
- package/dist/client/assets/{requirementDiagram-EQYSW5RA-DJBQviv-.js → requirementDiagram-EQYSW5RA-BKrsOvZR.js} +1 -1
- package/dist/client/assets/{room-files-source-nnbGMKus.js → room-files-source-wUgOb12j.js} +1 -1
- package/dist/client/assets/{rotate-ccw-clock-C2jXtg-P.js → rotate-ccw-clock-CI-xhvb_.js} +1 -1
- package/dist/client/assets/{rotate-cw-34X3Kx8Z.js → rotate-cw-BGDIfrKN.js} +1 -1
- package/dist/client/assets/{sankeyDiagram-SY24JHO5-DH2qnwVI.js → sankeyDiagram-SY24JHO5-SVj2Csf7.js} +1 -1
- package/dist/client/assets/{scroll-area-DYTbXWMY.js → scroll-area-D3x48cAw.js} +1 -1
- package/dist/client/assets/{search-x-DeFOvp_5.js → search-x-Dz-ryi0D.js} +1 -1
- package/dist/client/assets/{sequenceDiagram-BLEHNHQU-CkHcuOw2.js → sequenceDiagram-BLEHNHQU-CSliXD3t.js} +1 -1
- package/dist/client/assets/{shield-x-bloGLifl.js → shield-x-FVhBth4G.js} +1 -1
- package/dist/client/assets/{signed-in-DD2qV0PJ.js → signed-in-BQcV7AMx.js} +1 -1
- package/dist/client/assets/{sizeCapture-INFHLROL-BXK-Cxjs.js → sizeCapture-INFHLROL-4lP-N234.js} +1 -1
- package/dist/client/assets/{soul-file-DFPctfHR.js → soul-file-CS-EETV8.js} +1 -1
- package/dist/client/assets/{stateDiagram-v2-A6IESKWZ-DP_cqXJO.js → stateDiagram-v2-A6IESKWZ-Cij5yf9S.js} +1 -1
- package/dist/client/assets/{swimlanes-B3ENRKFQ-BZxkK7Fr.js → swimlanes-B3ENRKFQ-iSf_hOim.js} +1 -1
- package/dist/client/assets/swimlanesDiagram-AYQRV4AK-C8oY0fep.js +8 -0
- package/dist/client/assets/{table-B8zvHC0J.js → table-Cg_1lfh0.js} +1 -1
- package/dist/client/assets/{timeline-definition-JXYKGLGB-BPZ64ADa.js → timeline-definition-JXYKGLGB-DVZj2yY_.js} +1 -1
- package/dist/client/assets/{trust-posture-C9r0jGhc.js → trust-posture-CkEXRlxW.js} +1 -1
- package/dist/client/assets/{unplug-DYZEcvkR.js → unplug-CASvw-Yn.js} +1 -1
- package/dist/client/assets/{unverified-catalog-notice-DAhwNpy_.js → unverified-catalog-notice-CMDo7sp5.js} +1 -1
- package/dist/client/assets/{use-adapter-catalog-DrDMqxhZ.js → use-adapter-catalog-BVeUe0tR.js} +1 -1
- package/dist/client/assets/{use-bindings-Ci7hpEO4.js → use-bindings-Clux6PJ0.js} +1 -1
- package/dist/client/assets/{use-composer-prefs-FpUdi_wE.js → use-composer-prefs-D0poHQqk.js} +1 -1
- package/dist/client/assets/{use-connector-management-CinfkPZI.js → use-connector-management-CQQGCFaL.js} +1 -1
- package/dist/client/assets/{use-deep-link-scroll-DZnA4iYZ.js → use-deep-link-scroll-BdGMaupf.js} +1 -1
- package/dist/client/assets/{use-delete-binding-DDtaCc3v.js → use-delete-binding-CSpocSwM.js} +1 -1
- package/dist/client/assets/{use-dev-links-CtHwhTBj.js → use-dev-links-c6K0en5G.js} +1 -1
- package/dist/client/assets/{use-direct-message-panel-Da9rkfA3.js → use-direct-message-panel-sq9_ehHu.js} +1 -1
- package/dist/client/assets/{use-external-adapter-catalog-CikM-LiV.js → use-external-adapter-catalog-C3T1MGxz.js} +1 -1
- package/dist/client/assets/{use-full-activity-feed-B6TQc-xB.js → use-full-activity-feed-Bmmagy2q.js} +1 -1
- package/dist/client/assets/use-is-below-desktop-CGj5vT8N.js +1 -0
- package/dist/client/assets/{use-local-browser-ABoWOGv1.js → use-local-browser-Di54G1yg.js} +1 -1
- package/dist/client/assets/{use-mesh-topology-C5njB0KY.js → use-mesh-topology-C_bdAJfy.js} +1 -1
- package/dist/client/assets/{use-mounted-ref-Bp9Wp7zY.js → use-mounted-ref-C_ChQ0xs.js} +1 -1
- package/dist/client/assets/{use-notification-prefs-DXww4pVV.js → use-notification-prefs-BjGauolP.js} +1 -1
- package/dist/client/assets/{use-panel-tab-placements-DLQeHI7w.js → use-panel-tab-placements-Bn-CIS6M.js} +1 -1
- package/dist/client/assets/use-pending-read-CIp204qI.js +1 -0
- package/dist/client/assets/{use-personality-commit-DYQ3KVxd.js → use-personality-commit-WeCQulwl.js} +1 -1
- package/dist/client/assets/{use-promo-activation-nURLgFxH.js → use-promo-activation-C9I5YwBo.js} +1 -1
- package/dist/client/assets/{use-promo-dismissals-BQkeHMCS.js → use-promo-dismissals-BhTNS7LX.js} +1 -1
- package/dist/client/assets/{use-pulse-freshness-B8VeNnHj.js → use-pulse-freshness-DDo5a3nh.js} +1 -1
- package/dist/client/assets/{use-relay-config-D0BknsXK.js → use-relay-config-Bfjxr2lE.js} +1 -1
- package/dist/client/assets/{use-room-follow-claim-BruRRf3z.js → use-room-follow-claim-D_HTjK2r.js} +1 -1
- package/dist/client/assets/{use-room-sessions-DGcrmZvE.js → use-room-sessions-UwyzNxeo.js} +1 -1
- package/dist/client/assets/{use-roving-tab-list-YQ4MgIBO.js → use-roving-tab-list-CXAJxnx0.js} +1 -1
- package/dist/client/assets/{use-session-canvas-BaGypLR6.js → use-session-canvas-CTDXU27z.js} +3 -3
- package/dist/client/assets/{use-status-budget-Q1ltHI80.js → use-status-budget-CFS9gmSZ.js} +1 -1
- package/dist/client/assets/{use-unclaimed-chats-Bext8Aim.js → use-unclaimed-chats-BlUFVbnm.js} +1 -1
- package/dist/client/assets/use-update-config-BwjEWlgj.js +1 -0
- package/dist/client/assets/{useMutationState-C3WVn0hu.js → useMutationState-CUuSnqrc.js} +1 -1
- package/dist/client/assets/{usecaseDiagram-WPOLBNNX-Dg4P8nSr.js → usecaseDiagram-WPOLBNNX-BTdq_YOC.js} +1 -1
- package/dist/client/assets/{vennDiagram-Q3Y3IDCW-B8Txoqsz.js → vennDiagram-Q3Y3IDCW-BLQwiECh.js} +1 -1
- package/dist/client/assets/{wardleyDiagram-IVAIDKWA-lgQBspKc.js → wardleyDiagram-IVAIDKWA-Cp8QrBQm.js} +1 -1
- package/dist/client/assets/{xychartDiagram-4URNHDU4-Ct9-Lgo9.js → xychartDiagram-4URNHDU4-CrrAKTa0.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/index.js +2384 -2338
- package/dist/server/index.js.map +2 -2
- package/package.json +5 -5
- package/dist/client/assets/HandlePage-A1OCw0nr.js +0 -1
- package/dist/client/assets/NamePage-Du9m4rGe.js +0 -1
- package/dist/client/assets/PhotoPage-Dx-3Lhm5.js +0 -1
- package/dist/client/assets/RuntimeConnectFlow-BsZsQZS9.js +0 -1
- package/dist/client/assets/SeenDevices-dzzlSeB2.js +0 -19
- package/dist/client/assets/SettingsDialog-5aEZ-DG6.js +0 -12
- package/dist/client/assets/_shell.marketplace-BUh4boaf.js +0 -1
- package/dist/client/assets/_shell.marketplace_.sources-CnOFcGv1.js +0 -1
- package/dist/client/assets/_shell.session-BUP7x_Ra.js +0 -1
- package/dist/client/assets/_shell.x._extensionId-B-X7HuaQ.js +0 -1
- package/dist/client/assets/_shell.x._extensionId_._-B-X7HuaQ.js +0 -1
- package/dist/client/assets/channel-C6IoQ0kc.js +0 -1
- package/dist/client/assets/index-BpsATTKn.js +0 -1
- package/dist/client/assets/index-CUKvspHB.js +0 -1
- package/dist/client/assets/registry-CsiY3fnM.js +0 -1
- package/dist/client/assets/swimlanesDiagram-AYQRV4AK-DXRZtHKX.js +0 -8
- package/dist/client/assets/use-is-below-desktop-DJQVU5CF.js +0 -1
- package/dist/client/assets/use-pending-read-CgR0BnSW.js +0 -1
- package/dist/client/assets/use-update-config-BJEw2LjV.js +0 -1
package/dist/bin/cli.js
CHANGED
|
@@ -26412,7 +26412,6 @@ function repoUrl(path68 = "") {
|
|
|
26412
26412
|
var GITHUB_ORG, links;
|
|
26413
26413
|
var init_links = __esm({
|
|
26414
26414
|
"../shared/src/links.ts"() {
|
|
26415
|
-
"use strict";
|
|
26416
26415
|
GITHUB_ORG = "dork-labs";
|
|
26417
26416
|
links = {
|
|
26418
26417
|
/** The public origin of the marketing site, the docs and DorkOS Cloud. */
|
|
@@ -26827,7 +26826,7 @@ import path2 from "path";
|
|
|
26827
26826
|
import { fileURLToPath } from "url";
|
|
26828
26827
|
function resolveVersion() {
|
|
26829
26828
|
if (env2.DORKOS_VERSION_OVERRIDE) return env2.DORKOS_VERSION_OVERRIDE;
|
|
26830
|
-
if (true) return "0.125.
|
|
26829
|
+
if (true) return "0.125.4";
|
|
26831
26830
|
const pkgPath = path2.join(path2.dirname(fileURLToPath(import.meta.url)), "../../package.json");
|
|
26832
26831
|
return JSON.parse(readFileSync(pkgPath, "utf-8")).version;
|
|
26833
26832
|
}
|
|
@@ -36443,12 +36442,12 @@ var require_dist = __commonJS({
|
|
|
36443
36442
|
throw new Error(`Unknown format "${name2}"`);
|
|
36444
36443
|
return f3;
|
|
36445
36444
|
};
|
|
36446
|
-
function addFormats(ajv, list,
|
|
36445
|
+
function addFormats(ajv, list, fs41, exportName) {
|
|
36447
36446
|
var _a7;
|
|
36448
36447
|
var _b;
|
|
36449
36448
|
(_a7 = (_b = ajv.opts.code).formats) !== null && _a7 !== void 0 ? _a7 : _b.formats = (0, codegen_1._)`require("ajv-formats/dist/formats").${exportName}`;
|
|
36450
36449
|
for (const f3 of list)
|
|
36451
|
-
ajv.addFormat(f3,
|
|
36450
|
+
ajv.addFormat(f3, fs41[f3]);
|
|
36452
36451
|
}
|
|
36453
36452
|
module.exports = exports = formatsPlugin;
|
|
36454
36453
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -49545,7 +49544,6 @@ function parseSkillFile(filePath, content, schema3, options) {
|
|
|
49545
49544
|
}
|
|
49546
49545
|
var init_parser = __esm({
|
|
49547
49546
|
"../skills/src/parser.ts"() {
|
|
49548
|
-
"use strict";
|
|
49549
49547
|
init_constants7();
|
|
49550
49548
|
init_frontmatter();
|
|
49551
49549
|
}
|
|
@@ -54003,6 +54001,8 @@ var init_account_usage = __esm({
|
|
|
54003
54001
|
SEVEN_DAY_MS = 7 * 24 * HOUR_MS;
|
|
54004
54002
|
MAX_FUTURE_SKEW_MS = 5 * MINUTE_MS;
|
|
54005
54003
|
AccountUsageSchema = external_exports.object({
|
|
54004
|
+
/** Last sign-in proof observed by this server; absence means not checked. */
|
|
54005
|
+
signInState: external_exports.enum(["signed-in", "signed-out", "unknown"]).optional(),
|
|
54006
54006
|
/** The runtime the account belongs to. */
|
|
54007
54007
|
runtime: external_exports.enum(LEDGER_RUNTIMES),
|
|
54008
54008
|
/**
|
|
@@ -136222,6 +136222,55 @@ var init_runtime_error_classification = __esm({
|
|
|
136222
136222
|
}
|
|
136223
136223
|
});
|
|
136224
136224
|
|
|
136225
|
+
// ../../apps/server/src/services/core/usage/runtime-accounts.ts
|
|
136226
|
+
import fs21 from "node:fs";
|
|
136227
|
+
import path37 from "node:path";
|
|
136228
|
+
function systemRealpath(dir) {
|
|
136229
|
+
try {
|
|
136230
|
+
return fs21.realpathSync.native(dir);
|
|
136231
|
+
} catch {
|
|
136232
|
+
return null;
|
|
136233
|
+
}
|
|
136234
|
+
}
|
|
136235
|
+
function expandAccountPath(dir, home2) {
|
|
136236
|
+
let expanded = dir;
|
|
136237
|
+
if (home2 !== void 0) {
|
|
136238
|
+
if (expanded === "~") expanded = home2;
|
|
136239
|
+
else if (expanded.startsWith("~/")) expanded = path37.join(home2, expanded.slice(2));
|
|
136240
|
+
}
|
|
136241
|
+
return path37.resolve(expanded);
|
|
136242
|
+
}
|
|
136243
|
+
function canonicalAccountPath(dir, home2, realpath6 = systemRealpath) {
|
|
136244
|
+
const expanded = expandAccountPath(dir, home2);
|
|
136245
|
+
return realpath6(expanded) ?? expanded;
|
|
136246
|
+
}
|
|
136247
|
+
var init_runtime_accounts = __esm({
|
|
136248
|
+
"../../apps/server/src/services/core/usage/runtime-accounts.ts"() {
|
|
136249
|
+
"use strict";
|
|
136250
|
+
init_account_usage();
|
|
136251
|
+
init_config_schema();
|
|
136252
|
+
}
|
|
136253
|
+
});
|
|
136254
|
+
|
|
136255
|
+
// ../../apps/server/src/services/observability/account-signin-state.ts
|
|
136256
|
+
function recordAccountSignin(runtime, accountRoot, state) {
|
|
136257
|
+
states.set(
|
|
136258
|
+
JSON.stringify([
|
|
136259
|
+
runtime,
|
|
136260
|
+
accountRoot === void 0 ? null : canonicalAccountPath(accountRoot, void 0)
|
|
136261
|
+
]),
|
|
136262
|
+
state
|
|
136263
|
+
);
|
|
136264
|
+
}
|
|
136265
|
+
var states;
|
|
136266
|
+
var init_account_signin_state = __esm({
|
|
136267
|
+
"../../apps/server/src/services/observability/account-signin-state.ts"() {
|
|
136268
|
+
"use strict";
|
|
136269
|
+
init_runtime_accounts();
|
|
136270
|
+
states = /* @__PURE__ */ new Map();
|
|
136271
|
+
}
|
|
136272
|
+
});
|
|
136273
|
+
|
|
136225
136274
|
// ../../apps/server/src/services/observability/runtime-signin-watch.ts
|
|
136226
136275
|
function creditsRefusalOf(event) {
|
|
136227
136276
|
if (event.type !== "error") return null;
|
|
@@ -136236,43 +136285,42 @@ function noteCreditsRefused(runtime, sessionId, message2) {
|
|
|
136236
136285
|
}
|
|
136237
136286
|
}
|
|
136238
136287
|
function noteSigninFailure(runtimeType, account2) {
|
|
136288
|
+
recordAccountSignin(runtimeType, account2, "signed-out");
|
|
136239
136289
|
if (!sink) return;
|
|
136240
136290
|
const key = account2 ?? null;
|
|
136241
|
-
const
|
|
136242
|
-
if (
|
|
136243
|
-
if (!standing.accounts.has(key)) standing.accounts.set(key, Date.now());
|
|
136244
|
-
return;
|
|
136245
|
-
}
|
|
136291
|
+
const episode = failingSince.get(runtimeType) ?? { accounts: /* @__PURE__ */ new Map() };
|
|
136292
|
+
if (episode.accounts.has(key)) return;
|
|
136246
136293
|
const since = Date.now();
|
|
136247
|
-
|
|
136248
|
-
|
|
136249
|
-
if (!report({
|
|
136250
|
-
|
|
136294
|
+
episode.accounts.set(key, since);
|
|
136295
|
+
failingSince.set(runtimeType, episode);
|
|
136296
|
+
if (!report({
|
|
136297
|
+
runtime: runtimeType,
|
|
136298
|
+
...account2 ? { accountRoot: account2 } : {},
|
|
136299
|
+
edge: "failing",
|
|
136300
|
+
since: new Date(since).toISOString()
|
|
136301
|
+
})) {
|
|
136302
|
+
episode.accounts.delete(key);
|
|
136303
|
+
if (episode.accounts.size === 0) failingSince.delete(runtimeType);
|
|
136251
136304
|
}
|
|
136252
136305
|
}
|
|
136253
136306
|
function noteSigninRecovery(runtimeType, account2, turnStartedAt) {
|
|
136254
|
-
const
|
|
136255
|
-
if (
|
|
136256
|
-
|
|
136257
|
-
const noticedAt = episode.accounts.get(key);
|
|
136258
|
-
if (noticedAt !== void 0 && noticedAt < turnStartedAt) episode.accounts.delete(key);
|
|
136259
|
-
}
|
|
136260
|
-
reportIfEveryAccountProved(runtimeType, episode, {
|
|
136261
|
-
account: account2,
|
|
136262
|
-
proof: "A turn went through on a sign-in that had failed"
|
|
136263
|
-
});
|
|
136307
|
+
const noticedAt = failingSince.get(runtimeType)?.accounts.get(account2 ?? null);
|
|
136308
|
+
if (noticedAt !== void 0 && noticedAt >= turnStartedAt) return;
|
|
136309
|
+
noteSigninRepaired(runtimeType, account2);
|
|
136264
136310
|
}
|
|
136265
|
-
function
|
|
136266
|
-
|
|
136267
|
-
failingSince.
|
|
136268
|
-
|
|
136269
|
-
|
|
136270
|
-
|
|
136271
|
-
|
|
136311
|
+
function noteSigninRepaired(runtimeType, account2) {
|
|
136312
|
+
recordAccountSignin(runtimeType, account2, "signed-in");
|
|
136313
|
+
const episode = failingSince.get(runtimeType);
|
|
136314
|
+
const key = account2 ?? null;
|
|
136315
|
+
const since = episode?.accounts.get(key);
|
|
136316
|
+
if (since === void 0 || !episode) return;
|
|
136317
|
+
episode.accounts.delete(key);
|
|
136318
|
+
if (episode.accounts.size === 0) failingSince.delete(runtimeType);
|
|
136272
136319
|
report({
|
|
136273
136320
|
runtime: runtimeType,
|
|
136321
|
+
...account2 ? { accountRoot: account2 } : {},
|
|
136274
136322
|
edge: "recovered",
|
|
136275
|
-
since: new Date(
|
|
136323
|
+
since: new Date(since).toISOString()
|
|
136276
136324
|
});
|
|
136277
136325
|
}
|
|
136278
136326
|
function report(event) {
|
|
@@ -136348,6 +136396,7 @@ var init_runtime_signin_watch = __esm({
|
|
|
136348
136396
|
"use strict";
|
|
136349
136397
|
init_runtime_error_classification();
|
|
136350
136398
|
init_logger();
|
|
136399
|
+
init_account_signin_state();
|
|
136351
136400
|
sink = null;
|
|
136352
136401
|
creditsRefusedSink = null;
|
|
136353
136402
|
CREDITS_UNAVAILABLE_CODE = "credits_unavailable";
|
|
@@ -137280,9 +137329,9 @@ var init_permission_history = __esm({
|
|
|
137280
137329
|
});
|
|
137281
137330
|
|
|
137282
137331
|
// ../../apps/server/src/services/core/permissions/existing-chats-raise.ts
|
|
137283
|
-
import
|
|
137332
|
+
import path38 from "node:path";
|
|
137284
137333
|
function isKept(agent) {
|
|
137285
|
-
const names = [
|
|
137334
|
+
const names = [path38.basename(agent.projectPath), agent.name, agent.displayName ?? ""];
|
|
137286
137335
|
return names.some((n2) => KEPT_AS_THEY_ARE.has(n2.trim().toLowerCase().replace(/\s+/g, "-")));
|
|
137287
137336
|
}
|
|
137288
137337
|
function isChosenMode(declared, modeId) {
|
|
@@ -137331,7 +137380,7 @@ var init_chat_rise_facts = __esm({
|
|
|
137331
137380
|
});
|
|
137332
137381
|
|
|
137333
137382
|
// ../../apps/server/src/services/core/turn-power/agent-level-bound.ts
|
|
137334
|
-
import
|
|
137383
|
+
import path39 from "node:path";
|
|
137335
137384
|
function withBound(ceiling, bound) {
|
|
137336
137385
|
if (ceiling === void 0) return bound;
|
|
137337
137386
|
const existing = Array.isArray(ceiling) ? ceiling : [ceiling];
|
|
@@ -137347,11 +137396,11 @@ function levelBinds(declared, level, stored, opts) {
|
|
|
137347
137396
|
});
|
|
137348
137397
|
}
|
|
137349
137398
|
function enclosingAgentHome(dir) {
|
|
137350
|
-
let current3 =
|
|
137399
|
+
let current3 = path39.resolve(dir);
|
|
137351
137400
|
for (; ; ) {
|
|
137352
137401
|
const home2 = homeOf(resolveAgentHome(current3));
|
|
137353
137402
|
if (home2) return home2;
|
|
137354
|
-
const parent =
|
|
137403
|
+
const parent = path39.dirname(current3);
|
|
137355
137404
|
if (parent === current3) return void 0;
|
|
137356
137405
|
current3 = parent;
|
|
137357
137406
|
}
|
|
@@ -138191,7 +138240,7 @@ var init_audit_redaction = __esm({
|
|
|
138191
138240
|
});
|
|
138192
138241
|
|
|
138193
138242
|
// ../../apps/server/src/services/audit/record-tool-use.ts
|
|
138194
|
-
import
|
|
138243
|
+
import path40 from "node:path";
|
|
138195
138244
|
function isDorkosTool(runtime, name2) {
|
|
138196
138245
|
if (runtime === "doe") return Object.hasOwn(MCP_TOOL_TIERS, name2);
|
|
138197
138246
|
const prefix = DORKOS_PREFIX[runtime];
|
|
@@ -138238,7 +138287,7 @@ function toolTarget(name2, input4) {
|
|
|
138238
138287
|
if (files.length === 0) return null;
|
|
138239
138288
|
const first = clip2(files[0]);
|
|
138240
138289
|
const more = files.length > 1 ? ` and ${files.length - 1} more` : "";
|
|
138241
|
-
return { type: "file", id: first, name: `${clip2(
|
|
138290
|
+
return { type: "file", id: first, name: `${clip2(path40.basename(first))}${more}` };
|
|
138242
138291
|
}
|
|
138243
138292
|
if (!parsed) return null;
|
|
138244
138293
|
const command = firstString(parsed, ["command", "cmd"]);
|
|
@@ -138251,7 +138300,7 @@ function toolTarget(name2, input4) {
|
|
|
138251
138300
|
return { type: "url", id: address, name: address };
|
|
138252
138301
|
}
|
|
138253
138302
|
const file2 = firstString(parsed, ["file_path", "filePath", "path", "notebook_path"]);
|
|
138254
|
-
if (file2) return { type: "file", id: clip2(file2), name: clip2(
|
|
138303
|
+
if (file2) return { type: "file", id: clip2(file2), name: clip2(path40.basename(file2)) };
|
|
138255
138304
|
const query = firstString(parsed, ["query", "pattern"]);
|
|
138256
138305
|
if (query) return { type: "search", id: clip2(query), name: clip2(query) };
|
|
138257
138306
|
if (command) return { type: "command", id: clip2(command), name: clip2(command) };
|
|
@@ -140054,26 +140103,26 @@ var init_git = __esm({
|
|
|
140054
140103
|
});
|
|
140055
140104
|
|
|
140056
140105
|
// ../../apps/server/src/services/projects/extension-copy.ts
|
|
140057
|
-
import { promises as
|
|
140058
|
-
import
|
|
140106
|
+
import { promises as fs22 } from "node:fs";
|
|
140107
|
+
import path41 from "node:path";
|
|
140059
140108
|
async function folderExists(dir) {
|
|
140060
140109
|
try {
|
|
140061
|
-
return (await
|
|
140110
|
+
return (await fs22.stat(dir)).isDirectory();
|
|
140062
140111
|
} catch {
|
|
140063
140112
|
return false;
|
|
140064
140113
|
}
|
|
140065
140114
|
}
|
|
140066
140115
|
async function holdsExtensionCopy(root, extensionId) {
|
|
140067
|
-
if (await folderExists(
|
|
140116
|
+
if (await folderExists(path41.join(root, ".dork", "extensions", extensionId))) return true;
|
|
140068
140117
|
let plugins;
|
|
140069
140118
|
try {
|
|
140070
|
-
plugins = await
|
|
140119
|
+
plugins = await fs22.readdir(path41.join(root, ".dork", "plugins"));
|
|
140071
140120
|
} catch {
|
|
140072
140121
|
return false;
|
|
140073
140122
|
}
|
|
140074
140123
|
for (const plugin of plugins) {
|
|
140075
140124
|
if (isInstallSiblingName(plugin)) continue;
|
|
140076
|
-
const copy2 =
|
|
140125
|
+
const copy2 = path41.join(root, ".dork", "plugins", plugin, ".dork", "extensions", extensionId);
|
|
140077
140126
|
if (await folderExists(copy2)) return true;
|
|
140078
140127
|
}
|
|
140079
140128
|
return false;
|
|
@@ -140107,14 +140156,14 @@ var init_origin_repo = __esm({
|
|
|
140107
140156
|
});
|
|
140108
140157
|
|
|
140109
140158
|
// ../../apps/server/src/services/projects/project-names.ts
|
|
140110
|
-
import
|
|
140159
|
+
import path42 from "node:path";
|
|
140111
140160
|
function sanitizeNameSegment(segment) {
|
|
140112
140161
|
return segment.replace(/[^A-Za-z0-9._-]/g, "-");
|
|
140113
140162
|
}
|
|
140114
140163
|
function assignProjectName(root, isTaken) {
|
|
140115
|
-
const base = sanitizeNameSegment(
|
|
140164
|
+
const base = sanitizeNameSegment(path42.basename(root)) || "project";
|
|
140116
140165
|
if (!isTaken(base)) return base;
|
|
140117
|
-
const parent = sanitizeNameSegment(
|
|
140166
|
+
const parent = sanitizeNameSegment(path42.basename(path42.dirname(root))) || "root";
|
|
140118
140167
|
const withParent = `${base}~${parent}`;
|
|
140119
140168
|
if (!isTaken(withParent)) return withParent;
|
|
140120
140169
|
for (let n2 = 2; ; n2++) {
|
|
@@ -140166,11 +140215,11 @@ var init_slots = __esm({
|
|
|
140166
140215
|
});
|
|
140167
140216
|
|
|
140168
140217
|
// ../../apps/server/src/services/projects/resolve-project-root.ts
|
|
140169
|
-
import
|
|
140218
|
+
import path43 from "node:path";
|
|
140170
140219
|
function projectRootFromCommonDir(commonDir) {
|
|
140171
140220
|
const trimmed = commonDir.trim();
|
|
140172
140221
|
if (trimmed.length === 0) return null;
|
|
140173
|
-
return
|
|
140222
|
+
return path43.basename(trimmed) === ".git" ? path43.dirname(trimmed) : trimmed;
|
|
140174
140223
|
}
|
|
140175
140224
|
function isNotARepository(err) {
|
|
140176
140225
|
if (typeof err !== "object" || err === null) return false;
|
|
@@ -140187,7 +140236,7 @@ function createProjectRootResolver(overrides = {}) {
|
|
|
140187
140236
|
const byCwd = /* @__PURE__ */ new Map();
|
|
140188
140237
|
async function lookUp(cwd) {
|
|
140189
140238
|
const dir = deps.canonical(cwd);
|
|
140190
|
-
if (!
|
|
140239
|
+
if (!path43.isAbsolute(dir)) return { root: null, answered: true };
|
|
140191
140240
|
try {
|
|
140192
140241
|
const commonDir = await deps.runGit(
|
|
140193
140242
|
["rev-parse", "--path-format=absolute", "--git-common-dir"],
|
|
@@ -140261,7 +140310,7 @@ var init_resolve_project_root = __esm({
|
|
|
140261
140310
|
});
|
|
140262
140311
|
|
|
140263
140312
|
// ../../apps/server/src/services/projects/project-registry.ts
|
|
140264
|
-
import
|
|
140313
|
+
import path44 from "node:path";
|
|
140265
140314
|
async function readOriginRepoFromGit(root) {
|
|
140266
140315
|
try {
|
|
140267
140316
|
return parseOriginRepo(
|
|
@@ -140733,7 +140782,7 @@ var init_project_registry = __esm({
|
|
|
140733
140782
|
this.sourcesReadAt = now3;
|
|
140734
140783
|
this.sourcesRead = (async () => {
|
|
140735
140784
|
try {
|
|
140736
|
-
const folders = [...new Set(await sources2())].filter((dir) =>
|
|
140785
|
+
const folders = [...new Set(await sources2())].filter((dir) => path44.isAbsolute(dir));
|
|
140737
140786
|
await this.seedBatch(folders);
|
|
140738
140787
|
} catch (err) {
|
|
140739
140788
|
this.warn("could not read the folders to seed projects from", err);
|
|
@@ -141409,24 +141458,6 @@ var init_account_switch = __esm({
|
|
|
141409
141458
|
}
|
|
141410
141459
|
});
|
|
141411
141460
|
|
|
141412
|
-
// ../../apps/server/src/services/core/usage/runtime-accounts.ts
|
|
141413
|
-
import path44 from "node:path";
|
|
141414
|
-
function expandAccountPath(dir, home2) {
|
|
141415
|
-
let expanded = dir;
|
|
141416
|
-
if (home2 !== void 0) {
|
|
141417
|
-
if (expanded === "~") expanded = home2;
|
|
141418
|
-
else if (expanded.startsWith("~/")) expanded = path44.join(home2, expanded.slice(2));
|
|
141419
|
-
}
|
|
141420
|
-
return path44.resolve(expanded);
|
|
141421
|
-
}
|
|
141422
|
-
var init_runtime_accounts = __esm({
|
|
141423
|
-
"../../apps/server/src/services/core/usage/runtime-accounts.ts"() {
|
|
141424
|
-
"use strict";
|
|
141425
|
-
init_account_usage();
|
|
141426
|
-
init_config_schema();
|
|
141427
|
-
}
|
|
141428
|
-
});
|
|
141429
|
-
|
|
141430
141461
|
// ../../apps/server/src/services/runtimes/claude-code/credits-root.ts
|
|
141431
141462
|
var init_credits_root = __esm({
|
|
141432
141463
|
"../../apps/server/src/services/runtimes/claude-code/credits-root.ts"() {
|
|
@@ -155989,7 +156020,7 @@ Examples:
|
|
|
155989
156020
|
});
|
|
155990
156021
|
|
|
155991
156022
|
// src/lib/api-client.ts
|
|
155992
|
-
import
|
|
156023
|
+
import fs23 from "node:fs";
|
|
155993
156024
|
import path49 from "node:path";
|
|
155994
156025
|
function getServerBaseUrl() {
|
|
155995
156026
|
const envPort = process.env.DORKOS_PORT;
|
|
@@ -156002,7 +156033,7 @@ function getServerBaseUrl() {
|
|
|
156002
156033
|
function readConfigPort() {
|
|
156003
156034
|
const dorkHome = resolveDorkHome2();
|
|
156004
156035
|
try {
|
|
156005
|
-
const raw =
|
|
156036
|
+
const raw = fs23.readFileSync(path49.join(dorkHome, "config.json"), "utf-8");
|
|
156006
156037
|
const config3 = JSON.parse(raw);
|
|
156007
156038
|
const port2 = config3?.server?.port;
|
|
156008
156039
|
if (typeof port2 === "number" && port2 > 0) return port2;
|
|
@@ -156021,7 +156052,7 @@ function resolveApiKey() {
|
|
|
156021
156052
|
const fromEnv = process.env[API_KEY_ENV_VAR]?.trim();
|
|
156022
156053
|
if (fromEnv) return fromEnv;
|
|
156023
156054
|
try {
|
|
156024
|
-
const fromFile =
|
|
156055
|
+
const fromFile = fs23.readFileSync(apiKeyFilePath(), "utf-8").trim();
|
|
156025
156056
|
if (fromFile) return fromFile;
|
|
156026
156057
|
} catch {
|
|
156027
156058
|
}
|
|
@@ -157009,7 +157040,7 @@ var init_contracts = __esm({
|
|
|
157009
157040
|
// ../browser/src/runtime/installation/filesystem.ts
|
|
157010
157041
|
import { createHash as createHash6, randomUUID as randomUUID5 } from "node:crypto";
|
|
157011
157042
|
import { constants as constants5 } from "node:fs";
|
|
157012
|
-
import * as
|
|
157043
|
+
import * as fs24 from "node:fs/promises";
|
|
157013
157044
|
import path50 from "node:path";
|
|
157014
157045
|
function requireFact(value, code) {
|
|
157015
157046
|
if (!value) throw new InstallationFailure(code);
|
|
@@ -157140,7 +157171,7 @@ var init_filesystem = __esm({
|
|
|
157140
157171
|
for (const part of ["", ...parts]) {
|
|
157141
157172
|
if (part) current3 = path50.join(current3, part);
|
|
157142
157173
|
try {
|
|
157143
|
-
const stat5 = await
|
|
157174
|
+
const stat5 = await fs24.lstat(current3, { bigint: true });
|
|
157144
157175
|
this.directorySecure(stat5);
|
|
157145
157176
|
result2.push({ path: current3, identity: identity(stat5) });
|
|
157146
157177
|
} catch (error63) {
|
|
@@ -157152,7 +157183,7 @@ var init_filesystem = __esm({
|
|
|
157152
157183
|
}
|
|
157153
157184
|
async recheckParents(parents) {
|
|
157154
157185
|
for (const parent of parents) {
|
|
157155
|
-
const stat5 = await
|
|
157186
|
+
const stat5 = await fs24.lstat(parent.path, { bigint: true });
|
|
157156
157187
|
this.directorySecure(stat5);
|
|
157157
157188
|
requireFact(directoryIdentity(parent.identity, identity(stat5)), "ROOT_CHANGED");
|
|
157158
157189
|
}
|
|
@@ -157161,7 +157192,7 @@ var init_filesystem = __esm({
|
|
|
157161
157192
|
const duty = { path: name2, original: null, state: "acquiring", lease };
|
|
157162
157193
|
this.duties.add(duty);
|
|
157163
157194
|
try {
|
|
157164
|
-
duty.original = await
|
|
157195
|
+
duty.original = await fs24.open(name2, flags, mode);
|
|
157165
157196
|
duty.state = "open";
|
|
157166
157197
|
return duty;
|
|
157167
157198
|
} catch (error63) {
|
|
@@ -157229,7 +157260,7 @@ var init_filesystem = __esm({
|
|
|
157229
157260
|
}
|
|
157230
157261
|
}
|
|
157231
157262
|
async checkDirectory(directory) {
|
|
157232
|
-
const named3 = identity(await
|
|
157263
|
+
const named3 = identity(await fs24.lstat(directory.path, { bigint: true }));
|
|
157233
157264
|
const held2 = identity(await directory.handle.stat({ bigint: true }));
|
|
157234
157265
|
requireFact(
|
|
157235
157266
|
directoryIdentity(directory.identity, named3) && directoryIdentity(named3, held2),
|
|
@@ -157250,16 +157281,16 @@ var init_filesystem = __esm({
|
|
|
157250
157281
|
const parent = current3;
|
|
157251
157282
|
current3 = path50.join(current3, part);
|
|
157252
157283
|
try {
|
|
157253
|
-
this.directorySecure(await
|
|
157284
|
+
this.directorySecure(await fs24.lstat(current3, { bigint: true }));
|
|
157254
157285
|
} catch (error63) {
|
|
157255
157286
|
if (!isMissing(error63)) throw error63;
|
|
157256
157287
|
await this.ancestors(parent);
|
|
157257
157288
|
try {
|
|
157258
|
-
await
|
|
157289
|
+
await fs24.mkdir(current3, { mode: 448 });
|
|
157259
157290
|
} catch (mkdirError) {
|
|
157260
157291
|
if (!isExists(mkdirError)) throw mkdirError;
|
|
157261
157292
|
}
|
|
157262
|
-
this.directorySecure(await
|
|
157293
|
+
this.directorySecure(await fs24.lstat(current3, { bigint: true }));
|
|
157263
157294
|
await this.syncDirectory(current3);
|
|
157264
157295
|
await this.syncDirectory(parent);
|
|
157265
157296
|
}
|
|
@@ -157267,8 +157298,8 @@ var init_filesystem = __esm({
|
|
|
157267
157298
|
}
|
|
157268
157299
|
async exclusiveDirectory(name2) {
|
|
157269
157300
|
await this.ancestors(path50.dirname(name2));
|
|
157270
|
-
await
|
|
157271
|
-
const stat5 = await
|
|
157301
|
+
await fs24.mkdir(name2, { mode: 448 });
|
|
157302
|
+
const stat5 = await fs24.lstat(name2, { bigint: true });
|
|
157272
157303
|
this.directorySecure(stat5);
|
|
157273
157304
|
requireFact(
|
|
157274
157305
|
Number(stat5.uid) === process.getuid?.() && (Number(stat5.mode) & 63) === 0,
|
|
@@ -157279,7 +157310,7 @@ var init_filesystem = __esm({
|
|
|
157279
157310
|
}
|
|
157280
157311
|
async read(name2, cap, retain = 0) {
|
|
157281
157312
|
const parents = await this.ancestors(path50.dirname(name2));
|
|
157282
|
-
const named3 = identity(await
|
|
157313
|
+
const named3 = identity(await fs24.lstat(name2, { bigint: true }));
|
|
157283
157314
|
requireFact(named3.type === "file" && BigInt(named3.size) <= BigInt(cap), "INSTALLATION_INVALID");
|
|
157284
157315
|
const duty = await this.acquire(
|
|
157285
157316
|
name2,
|
|
@@ -157309,7 +157340,7 @@ var init_filesystem = __esm({
|
|
|
157309
157340
|
}
|
|
157310
157341
|
}
|
|
157311
157342
|
requireFact(
|
|
157312
|
-
bytes === Number(acquired.size) && sameFileIdentity(acquired, identity(await handle.stat({ bigint: true }))) && sameFileIdentity(acquired, identity(await
|
|
157343
|
+
bytes === Number(acquired.size) && sameFileIdentity(acquired, identity(await handle.stat({ bigint: true }))) && sameFileIdentity(acquired, identity(await fs24.lstat(name2, { bigint: true }))),
|
|
157313
157344
|
"ROOT_CHANGED"
|
|
157314
157345
|
);
|
|
157315
157346
|
await this.recheckParents(parents);
|
|
@@ -157325,7 +157356,7 @@ var init_filesystem = __esm({
|
|
|
157325
157356
|
this.duties.add(duty);
|
|
157326
157357
|
return this.closeAfter([duty, directory.duty], async () => {
|
|
157327
157358
|
try {
|
|
157328
|
-
duty.original = await
|
|
157359
|
+
duty.original = await fs24.opendir(name2, { bufferSize: 1 });
|
|
157329
157360
|
duty.state = "open";
|
|
157330
157361
|
} catch (error63) {
|
|
157331
157362
|
duty.state = "uncertain";
|
|
@@ -157348,26 +157379,26 @@ var init_filesystem = __esm({
|
|
|
157348
157379
|
}
|
|
157349
157380
|
async libraryBinMetadata(root, directory) {
|
|
157350
157381
|
const parents = await this.ancestors(directory), bins = path50.join(directory, ".bin");
|
|
157351
|
-
const before = identity(await
|
|
157382
|
+
const before = identity(await fs24.lstat(directory, { bigint: true }));
|
|
157352
157383
|
requireFact(
|
|
157353
157384
|
(await this.names(directory, INSTALLATION_LIMITS.libraryEntries)).join(",") === ".bin",
|
|
157354
157385
|
"LIBRARY_MISMATCH"
|
|
157355
157386
|
);
|
|
157356
|
-
const binParents = await this.ancestors(bins), binBefore = identity(await
|
|
157387
|
+
const binParents = await this.ancestors(bins), binBefore = identity(await fs24.lstat(bins, { bigint: true }));
|
|
157357
157388
|
requireFact(
|
|
157358
157389
|
(await this.names(bins, INSTALLATION_LIMITS.libraryEntries)).join(",") === "playwright-core",
|
|
157359
157390
|
"LIBRARY_MISMATCH"
|
|
157360
157391
|
);
|
|
157361
|
-
const shim = path50.join(bins, "playwright-core"), stat5 = await
|
|
157392
|
+
const shim = path50.join(bins, "playwright-core"), stat5 = await fs24.lstat(shim, { bigint: true });
|
|
157362
157393
|
if (stat5.isSymbolicLink()) {
|
|
157363
|
-
const link3 = await
|
|
157394
|
+
const link3 = await fs24.readlink(shim);
|
|
157364
157395
|
requireFact(
|
|
157365
|
-
Buffer.byteLength(link3) <= INSTALLATION_LIMITS.bufferBytes && await
|
|
157396
|
+
Buffer.byteLength(link3) <= INSTALLATION_LIMITS.bufferBytes && await fs24.realpath(shim) === path50.join(root, "cli.js"),
|
|
157366
157397
|
"LIBRARY_MISMATCH"
|
|
157367
157398
|
);
|
|
157368
|
-
const after = await
|
|
157399
|
+
const after = await fs24.lstat(shim, { bigint: true });
|
|
157369
157400
|
requireFact(
|
|
157370
|
-
after.isSymbolicLink() && stat5.dev === after.dev && stat5.ino === after.ino && stat5.size === after.size && stat5.mode === after.mode && stat5.uid === after.uid && stat5.mtimeNs === after.mtimeNs && stat5.ctimeNs === after.ctimeNs && link3 === await
|
|
157401
|
+
after.isSymbolicLink() && stat5.dev === after.dev && stat5.ino === after.ino && stat5.size === after.size && stat5.mode === after.mode && stat5.uid === after.uid && stat5.mtimeNs === after.mtimeNs && stat5.ctimeNs === after.ctimeNs && link3 === await fs24.readlink(shim),
|
|
157371
157402
|
"ROOT_CHANGED"
|
|
157372
157403
|
);
|
|
157373
157404
|
} else {
|
|
@@ -157376,7 +157407,7 @@ var init_filesystem = __esm({
|
|
|
157376
157407
|
requireFact(sameFileIdentity(identity(stat5), read.file.identity), "ROOT_CHANGED");
|
|
157377
157408
|
}
|
|
157378
157409
|
requireFact(
|
|
157379
|
-
sameFileIdentity(before, identity(await
|
|
157410
|
+
sameFileIdentity(before, identity(await fs24.lstat(directory, { bigint: true }))) && sameFileIdentity(binBefore, identity(await fs24.lstat(bins, { bigint: true }))),
|
|
157380
157411
|
"ROOT_CHANGED"
|
|
157381
157412
|
);
|
|
157382
157413
|
await this.recheckParents(binParents);
|
|
@@ -157389,7 +157420,7 @@ var init_filesystem = __esm({
|
|
|
157389
157420
|
const totalLimit = library ? INSTALLATION_LIMITS.libraryBytes : INSTALLATION_LIMITS.payloadBytes;
|
|
157390
157421
|
const visit2 = async (directory, depth) => {
|
|
157391
157422
|
requireFact(depth <= INSTALLATION_LIMITS.payloadDepth, "RETENTION_EXCEEDED");
|
|
157392
|
-
const dirIdentity = identity(await
|
|
157423
|
+
const dirIdentity = identity(await fs24.lstat(directory, { bigint: true }));
|
|
157393
157424
|
requireFact(dirIdentity.type === "directory", "ROOT_CHANGED");
|
|
157394
157425
|
result2.directories.push({ path: directory, identity: dirIdentity });
|
|
157395
157426
|
result2.rows.push({
|
|
@@ -157401,7 +157432,7 @@ var init_filesystem = __esm({
|
|
|
157401
157432
|
requireFact(++result2.entries <= entryLimit, "RETENTION_EXCEEDED");
|
|
157402
157433
|
const absolute = path50.join(directory, name2), relative12 = path50.relative(root, absolute).split(path50.sep).join("/");
|
|
157403
157434
|
requireFact(relativePath.safeParse(relative12).success, "INSTALLATION_INVALID");
|
|
157404
|
-
const stat5 = await
|
|
157435
|
+
const stat5 = await fs24.lstat(absolute, { bigint: true });
|
|
157405
157436
|
if (library && relative12 === "node_modules") {
|
|
157406
157437
|
requireFact(stat5.isDirectory() && !stat5.isSymbolicLink(), "LIBRARY_MISMATCH");
|
|
157407
157438
|
await this.libraryBinMetadata(root, absolute);
|
|
@@ -157409,13 +157440,13 @@ var init_filesystem = __esm({
|
|
|
157409
157440
|
}
|
|
157410
157441
|
if (stat5.isSymbolicLink()) {
|
|
157411
157442
|
requireFact(!library, "LIBRARY_MISMATCH");
|
|
157412
|
-
const link3 = await
|
|
157443
|
+
const link3 = await fs24.readlink(absolute), resolved = await fs24.realpath(absolute);
|
|
157413
157444
|
requireFact(resolved.startsWith(root + path50.sep), "ROOT_CHANGED");
|
|
157414
|
-
const target = await
|
|
157445
|
+
const target = await fs24.stat(resolved, { bigint: true });
|
|
157415
157446
|
requireFact(target.isFile() || target.isDirectory(), "ROOT_CHANGED");
|
|
157416
|
-
const after = await
|
|
157447
|
+
const after = await fs24.lstat(absolute, { bigint: true });
|
|
157417
157448
|
requireFact(
|
|
157418
|
-
stat5.dev === after.dev && stat5.ino === after.ino && stat5.mtimeNs === after.mtimeNs && stat5.ctimeNs === after.ctimeNs && link3 === await
|
|
157449
|
+
stat5.dev === after.dev && stat5.ino === after.ino && stat5.mtimeNs === after.mtimeNs && stat5.ctimeNs === after.ctimeNs && link3 === await fs24.readlink(absolute),
|
|
157419
157450
|
"ROOT_CHANGED"
|
|
157420
157451
|
);
|
|
157421
157452
|
result2.rows.push({
|
|
@@ -157448,7 +157479,7 @@ var init_filesystem = __esm({
|
|
|
157448
157479
|
}
|
|
157449
157480
|
}
|
|
157450
157481
|
requireFact(
|
|
157451
|
-
sameFileIdentity(dirIdentity, identity(await
|
|
157482
|
+
sameFileIdentity(dirIdentity, identity(await fs24.lstat(directory, { bigint: true }))),
|
|
157452
157483
|
"ROOT_CHANGED"
|
|
157453
157484
|
);
|
|
157454
157485
|
};
|
|
@@ -157652,7 +157683,7 @@ var init_filesystem = __esm({
|
|
|
157652
157683
|
await this.exclusiveDirectory(path50.join(root, child));
|
|
157653
157684
|
await this.syncDirectory(root);
|
|
157654
157685
|
await this.syncDirectory(parent);
|
|
157655
|
-
const stat5 = identity(await
|
|
157686
|
+
const stat5 = identity(await fs24.lstat(root, { bigint: true }));
|
|
157656
157687
|
const attempt = Object.freeze({
|
|
157657
157688
|
kind: "installation-attempt",
|
|
157658
157689
|
binding: handle.binding,
|
|
@@ -157674,7 +157705,7 @@ var init_filesystem = __esm({
|
|
|
157674
157705
|
const bytes = recordBytes(record2, cap), parent = path50.dirname(name2), parents = await this.ancestors(parent);
|
|
157675
157706
|
if (!replace) {
|
|
157676
157707
|
try {
|
|
157677
|
-
await
|
|
157708
|
+
await fs24.lstat(name2);
|
|
157678
157709
|
throw new InstallationFailure("RECORD_FAILED");
|
|
157679
157710
|
} catch (error63) {
|
|
157680
157711
|
if (!isMissing(error63)) throw error63;
|
|
@@ -157699,7 +157730,7 @@ var init_filesystem = __esm({
|
|
|
157699
157730
|
requireFact(
|
|
157700
157731
|
sameFileIdentity(
|
|
157701
157732
|
identity(await handle.stat({ bigint: true })),
|
|
157702
|
-
identity(await
|
|
157733
|
+
identity(await fs24.lstat(temporary, { bigint: true }))
|
|
157703
157734
|
),
|
|
157704
157735
|
"ROOT_CHANGED"
|
|
157705
157736
|
);
|
|
@@ -157707,14 +157738,14 @@ var init_filesystem = __esm({
|
|
|
157707
157738
|
});
|
|
157708
157739
|
if (!replace) {
|
|
157709
157740
|
try {
|
|
157710
|
-
await
|
|
157741
|
+
await fs24.lstat(name2);
|
|
157711
157742
|
throw new InstallationFailure("RECORD_FAILED");
|
|
157712
157743
|
} catch (error63) {
|
|
157713
157744
|
if (!isMissing(error63)) throw error63;
|
|
157714
157745
|
}
|
|
157715
157746
|
}
|
|
157716
157747
|
await this.recheckParents(parents);
|
|
157717
|
-
await
|
|
157748
|
+
await fs24.rename(temporary, name2);
|
|
157718
157749
|
await this.syncDirectory(parent);
|
|
157719
157750
|
const result2 = await this.read(name2, cap, cap);
|
|
157720
157751
|
requireFact(result2.file.sha256 === sha2562(bytes), "RECORD_FAILED");
|
|
@@ -157983,7 +158014,7 @@ var init_filesystem = __esm({
|
|
|
157983
158014
|
requireFact(
|
|
157984
158015
|
sameFileIdentity(file2.identity, identity(await original.stat({ bigint: true }))) && sameFileIdentity(
|
|
157985
158016
|
file2.identity,
|
|
157986
|
-
identity(await
|
|
158017
|
+
identity(await fs24.lstat(file2.path, { bigint: true }))
|
|
157987
158018
|
),
|
|
157988
158019
|
"ROOT_CHANGED"
|
|
157989
158020
|
);
|
|
@@ -158097,7 +158128,7 @@ var init_filesystem = __esm({
|
|
|
158097
158128
|
requireFact(compareCurrent(before, await this.current()), "ROOT_CHANGED");
|
|
158098
158129
|
this.checkEnd(reservation);
|
|
158099
158130
|
replacementAttempted = true;
|
|
158100
|
-
await
|
|
158131
|
+
await fs24.rename(temporary, path50.join(this.configuration.cacheRoot, "current.json"));
|
|
158101
158132
|
pointerReplaced = true;
|
|
158102
158133
|
await this.syncDirectory(this.configuration.cacheRoot);
|
|
158103
158134
|
after = await this.current();
|
|
@@ -158199,7 +158230,7 @@ var init_filesystem = __esm({
|
|
|
158199
158230
|
let expected;
|
|
158200
158231
|
let hash3;
|
|
158201
158232
|
const observe = async (size, growth = false) => {
|
|
158202
|
-
const held2 = identity(await original.stat({ bigint: true })), named3 = identity(await
|
|
158233
|
+
const held2 = identity(await original.stat({ bigint: true })), named3 = identity(await fs24.lstat(name2, { bigint: true }));
|
|
158203
158234
|
requireFact(
|
|
158204
158235
|
held2.type === "file" && held2.size === String(size) && sameFileIdentity(held2, named3),
|
|
158205
158236
|
"ROOT_CHANGED"
|
|
@@ -158362,7 +158393,7 @@ var init_filesystem = __esm({
|
|
|
158362
158393
|
requireFact(
|
|
158363
158394
|
sameFileIdentity(
|
|
158364
158395
|
attempt.identity,
|
|
158365
|
-
identity(await
|
|
158396
|
+
identity(await fs24.lstat(attempt.attemptRoot, { bigint: true }))
|
|
158366
158397
|
),
|
|
158367
158398
|
"ROOT_CHANGED"
|
|
158368
158399
|
);
|
|
@@ -158475,7 +158506,7 @@ var init_filesystem = __esm({
|
|
|
158475
158506
|
parsed.attemptRoot === path50.join(c3.cacheRoot, "attempts", parsed.binding.attemptId) && parsed.candidateRoot === path50.join(c3.cacheRoot, "candidates", parsed.binding.installationId) && parsed.executablePath === INSTALLATION_TARGET.executablePath,
|
|
158476
158507
|
"BINDING_MISMATCH"
|
|
158477
158508
|
);
|
|
158478
|
-
const attempt = identity(await
|
|
158509
|
+
const attempt = identity(await fs24.lstat(parsed.attemptRoot, { bigint: true }));
|
|
158479
158510
|
requireFact(sameFileIdentity(attempt, parsed.attemptIdentity), "ROOT_CHANGED");
|
|
158480
158511
|
await this.ancestors(parsed.attemptRoot);
|
|
158481
158512
|
const ownerRead = await this.read(
|
|
@@ -158521,7 +158552,7 @@ var init_filesystem = __esm({
|
|
|
158521
158552
|
"HASH_MISMATCH"
|
|
158522
158553
|
);
|
|
158523
158554
|
requireFact(
|
|
158524
|
-
sameFileIdentity(attempt, identity(await
|
|
158555
|
+
sameFileIdentity(attempt, identity(await fs24.lstat(parsed.attemptRoot, { bigint: true }))),
|
|
158525
158556
|
"ROOT_CHANGED"
|
|
158526
158557
|
);
|
|
158527
158558
|
this.fresh.set(request, {
|
|
@@ -158570,11 +158601,11 @@ var init_filesystem = __esm({
|
|
|
158570
158601
|
"OWNERSHIP_UNCERTAIN"
|
|
158571
158602
|
);
|
|
158572
158603
|
try {
|
|
158573
|
-
await
|
|
158604
|
+
await fs24.unlink(owner.file.path);
|
|
158574
158605
|
await reservation.directory.handle.sync();
|
|
158575
158606
|
await this.checkDirectory(reservation.directory);
|
|
158576
158607
|
await this.close(reservation.directory.duty);
|
|
158577
|
-
await
|
|
158608
|
+
await fs24.rmdir(reservation.directory.path);
|
|
158578
158609
|
await reservation.root.handle.sync();
|
|
158579
158610
|
await this.checkDirectory(reservation.root);
|
|
158580
158611
|
await this.close(reservation.root.duty);
|
|
@@ -159363,7 +159394,7 @@ function createInstallationTransaction(configuration, dependencies, generation3)
|
|
|
159363
159394
|
...parsed.data,
|
|
159364
159395
|
sourceVintage: Object.freeze(parsed.data.sourceVintage)
|
|
159365
159396
|
});
|
|
159366
|
-
const { filesystem:
|
|
159397
|
+
const { filesystem: fs41, jobs } = dependencies;
|
|
159367
159398
|
const now3 = dependencies.now;
|
|
159368
159399
|
const createId = dependencies.createId;
|
|
159369
159400
|
let active3 = null;
|
|
@@ -159396,7 +159427,7 @@ function createInstallationTransaction(configuration, dependencies, generation3)
|
|
|
159396
159427
|
};
|
|
159397
159428
|
const id = () => IdSchema2.parse(Reflect.apply(createId, dependencies, []));
|
|
159398
159429
|
const fsReturned = () => {
|
|
159399
|
-
const custody =
|
|
159430
|
+
const custody = fs41.custody(reservation);
|
|
159400
159431
|
require2(custody.pendingOperations === 0 && custody.unresolvedHandles === 0, "CUSTODY_UNCERTAIN");
|
|
159401
159432
|
require2(custody.firstCause === null, custody.firstCause ?? "CUSTODY_UNCERTAIN");
|
|
159402
159433
|
require2(custody.reservation === "held", "OWNERSHIP_UNCERTAIN");
|
|
@@ -159452,7 +159483,7 @@ function createInstallationTransaction(configuration, dependencies, generation3)
|
|
|
159452
159483
|
finalEnd: origin + config3.finalMilliseconds
|
|
159453
159484
|
})
|
|
159454
159485
|
);
|
|
159455
|
-
const before = await
|
|
159486
|
+
const before = await fs41.inspectExisting({ signal: options.signal });
|
|
159456
159487
|
check4(bounds, options.signal);
|
|
159457
159488
|
require2(before.current.state !== "unknown" && before.status.state !== "unverified", "OWNERSHIP_UNCERTAIN");
|
|
159458
159489
|
const existing = before.installation;
|
|
@@ -159474,18 +159505,18 @@ function createInstallationTransaction(configuration, dependencies, generation3)
|
|
|
159474
159505
|
binding.nonce,
|
|
159475
159506
|
...reuse ? [] : [binding.installationId]
|
|
159476
159507
|
])).size === (reuse ? 3 : 4), "BINDING_MISMATCH");
|
|
159477
|
-
reservation = await
|
|
159508
|
+
reservation = await fs41.acquireReservation(binding, bounds);
|
|
159478
159509
|
check4(bounds, options.signal);
|
|
159479
|
-
const reserved = await
|
|
159510
|
+
const reserved = await fs41.inspectExisting({ signal: options.signal });
|
|
159480
159511
|
require2(canonicalDigest(reserved.current) === canonicalDigest(before.current), "ROOT_CHANGED");
|
|
159481
159512
|
require2(reserved.status.state !== "unverified", "OWNERSHIP_UNCERTAIN");
|
|
159482
159513
|
if (reuse)
|
|
159483
159514
|
require2(reserved.installation && canonicalDigest(reserved.installation) === canonicalDigest(existing), "ROOT_CHANGED");
|
|
159484
159515
|
check4(bounds, options.signal);
|
|
159485
|
-
const attempt = await
|
|
159516
|
+
const attempt = await fs41.createAttempt(reservation);
|
|
159486
159517
|
require2(sameBinding(attempt.binding, binding), "BINDING_MISMATCH");
|
|
159487
159518
|
const owner = async (phase) => {
|
|
159488
|
-
await
|
|
159519
|
+
await fs41.writeOwner(
|
|
159489
159520
|
reservation,
|
|
159490
159521
|
attempt,
|
|
159491
159522
|
Object.freeze({
|
|
@@ -159500,12 +159531,12 @@ function createInstallationTransaction(configuration, dependencies, generation3)
|
|
|
159500
159531
|
};
|
|
159501
159532
|
await owner("reserved");
|
|
159502
159533
|
check4(bounds, options.signal);
|
|
159503
|
-
const library = await
|
|
159534
|
+
const library = await fs41.validateLibrary();
|
|
159504
159535
|
validateLibrary(library);
|
|
159505
159536
|
check4(bounds, options.signal);
|
|
159506
|
-
const candidate = reuse ? await
|
|
159537
|
+
const candidate = reuse ? await fs41.bindExistingCandidate(reservation, attempt, reserved.installation) : await fs41.stageCandidate(reservation, attempt);
|
|
159507
159538
|
require2(sameBinding(candidate.binding, binding) && candidate.reuse === reuse, "BINDING_MISMATCH");
|
|
159508
|
-
const sink3 =
|
|
159539
|
+
const sink3 = fs41.createJobSink(reservation, attempt);
|
|
159509
159540
|
let installer = {
|
|
159510
159541
|
kind: "not-invoked"
|
|
159511
159542
|
};
|
|
@@ -159531,7 +159562,7 @@ function createInstallationTransaction(configuration, dependencies, generation3)
|
|
|
159531
159562
|
installer = { kind: "invoked", jobId: facts2.jobId, receiptDigest: canonicalDigest(facts2) };
|
|
159532
159563
|
check4(bounds, options.signal);
|
|
159533
159564
|
}
|
|
159534
|
-
const snapshot = await
|
|
159565
|
+
const snapshot = await fs41.observeCandidate(candidate);
|
|
159535
159566
|
validateCandidate(snapshot, binding);
|
|
159536
159567
|
check4(bounds, options.signal);
|
|
159537
159568
|
await owner("verifying");
|
|
@@ -159585,7 +159616,7 @@ function createInstallationTransaction(configuration, dependencies, generation3)
|
|
|
159585
159616
|
require2(reply.libraryDistributionSHA256 === library.distributionSHA256, "LIBRARY_MISMATCH");
|
|
159586
159617
|
require2(reply.sourceManifestSHA256 === config3.sourceVintage.sourceManifestSHA256, "SOURCE_MISMATCH");
|
|
159587
159618
|
require2(reply.machOCPU === snapshot.machOCPU, "INSTALLATION_INVALID");
|
|
159588
|
-
await
|
|
159619
|
+
await fs41.revalidateCandidate(candidate, snapshot);
|
|
159589
159620
|
check4(bounds, options.signal);
|
|
159590
159621
|
allJobsReturned();
|
|
159591
159622
|
fsReturned();
|
|
@@ -159619,17 +159650,17 @@ function createInstallationTransaction(configuration, dependencies, generation3)
|
|
|
159619
159650
|
});
|
|
159620
159651
|
recordBytes(journal, INSTALLATION_LIMITS.journalBytes);
|
|
159621
159652
|
check4(bounds, options.signal);
|
|
159622
|
-
const written2 = await
|
|
159653
|
+
const written2 = await fs41.writeReuseJournal(reservation, attempt, journal);
|
|
159623
159654
|
require2(written2.path === join56(attempt.attemptRoot, "reuse.json") && written2.sha256 === sha2562(recordBytes(journal, INSTALLATION_LIMITS.journalBytes)), "OWNERSHIP_UNCERTAIN");
|
|
159624
|
-
const unchanged = await
|
|
159655
|
+
const unchanged = await fs41.inspectExisting({ signal: options.signal });
|
|
159625
159656
|
require2(canonicalDigest(unchanged.current) === canonicalDigest(reserved.current) && canonicalDigest(unchanged.installation) === canonicalDigest(reserved.installation), "ROOT_CHANGED");
|
|
159626
159657
|
journalDigest = written2.sha256;
|
|
159627
159658
|
currentManifestDigest = reserved.installation.current.pointer.manifestDigest;
|
|
159628
159659
|
} else {
|
|
159629
159660
|
await owner("publishing");
|
|
159630
159661
|
check4(bounds, options.signal);
|
|
159631
|
-
await
|
|
159632
|
-
await
|
|
159662
|
+
await fs41.makeCandidateDurable(candidate, snapshot);
|
|
159663
|
+
await fs41.revalidateCandidate(candidate, snapshot);
|
|
159633
159664
|
check4(bounds, options.signal);
|
|
159634
159665
|
allJobsReturned();
|
|
159635
159666
|
fsReturned();
|
|
@@ -159652,7 +159683,7 @@ function createInstallationTransaction(configuration, dependencies, generation3)
|
|
|
159652
159683
|
}
|
|
159653
159684
|
});
|
|
159654
159685
|
recordBytes(manifest, INSTALLATION_LIMITS.manifestBytes);
|
|
159655
|
-
const published = await
|
|
159686
|
+
const published = await fs41.publish(
|
|
159656
159687
|
reservation,
|
|
159657
159688
|
candidate,
|
|
159658
159689
|
manifest,
|
|
@@ -159672,9 +159703,9 @@ function createInstallationTransaction(configuration, dependencies, generation3)
|
|
|
159672
159703
|
check4(bounds, options.signal, true);
|
|
159673
159704
|
allJobsReturned();
|
|
159674
159705
|
fsReturned();
|
|
159675
|
-
await
|
|
159706
|
+
await fs41.releaseReservation(reservation);
|
|
159676
159707
|
check4(bounds, options.signal, true);
|
|
159677
|
-
const final =
|
|
159708
|
+
const final = fs41.custody(reservation);
|
|
159678
159709
|
require2(final.reservation === "released" && final.pendingOperations === 0 && final.unresolvedHandles === 0 && final.firstCause === null, "CUSTODY_UNCERTAIN");
|
|
159679
159710
|
return Object.freeze({
|
|
159680
159711
|
state: reuse ? "verified-reused" : "verified-installed",
|
|
@@ -159694,7 +159725,7 @@ function createInstallationTransaction(configuration, dependencies, generation3)
|
|
|
159694
159725
|
fail(error63);
|
|
159695
159726
|
let uncertain = !!reservation || publicationMayHaveChanged;
|
|
159696
159727
|
try {
|
|
159697
|
-
const files =
|
|
159728
|
+
const files = fs41.custody(reservation);
|
|
159698
159729
|
const processes = jobs.custody();
|
|
159699
159730
|
uncertain ||= files.reservation !== "released" || files.pendingOperations !== 0 || files.unresolvedHandles !== 0 || files.firstCause !== null || processes.pending !== 0 || processes.firstCause !== null;
|
|
159700
159731
|
} catch {
|
|
@@ -160566,7 +160597,7 @@ var init_process_liveness = __esm({
|
|
|
160566
160597
|
});
|
|
160567
160598
|
|
|
160568
160599
|
// src/lib/agent-browser/profile.ts
|
|
160569
|
-
import
|
|
160600
|
+
import fs25 from "node:fs";
|
|
160570
160601
|
import path52 from "node:path";
|
|
160571
160602
|
function themePreferences() {
|
|
160572
160603
|
const color = AGENT_BROWSER_THEME_COLOR;
|
|
@@ -160611,7 +160642,7 @@ function deepMerge2(base, patch) {
|
|
|
160611
160642
|
}
|
|
160612
160643
|
function readJsonObject(file2) {
|
|
160613
160644
|
try {
|
|
160614
|
-
const parsed = JSON.parse(
|
|
160645
|
+
const parsed = JSON.parse(fs25.readFileSync(file2, "utf8"));
|
|
160615
160646
|
return isObject6(parsed) ? parsed : {};
|
|
160616
160647
|
} catch {
|
|
160617
160648
|
return {};
|
|
@@ -160626,26 +160657,26 @@ function hasOwnThemeColor(prefs) {
|
|
|
160626
160657
|
return isObject6(extensions) && typeof extensions.id === "string" && extensions.id !== "";
|
|
160627
160658
|
}
|
|
160628
160659
|
function ensureAgentProfile(profileDir, now3 = /* @__PURE__ */ new Date()) {
|
|
160629
|
-
const created = !
|
|
160630
|
-
|
|
160631
|
-
|
|
160632
|
-
|
|
160660
|
+
const created = !fs25.existsSync(profileDir);
|
|
160661
|
+
fs25.mkdirSync(path52.dirname(profileDir), { recursive: true, mode: 448 });
|
|
160662
|
+
fs25.chmodSync(path52.dirname(profileDir), 448);
|
|
160663
|
+
fs25.mkdirSync(profileDir, { recursive: true, mode: 448 });
|
|
160633
160664
|
const marker = path52.join(profileDir, THEME_MARKER_FILE);
|
|
160634
|
-
if (
|
|
160665
|
+
if (fs25.existsSync(marker)) return { created, themed: false };
|
|
160635
160666
|
const prefsFile = path52.join(profileDir, "Default", "Preferences");
|
|
160636
160667
|
const prefs = readJsonObject(prefsFile);
|
|
160637
160668
|
const themed = !hasOwnThemeColor(prefs);
|
|
160638
160669
|
if (themed) {
|
|
160639
|
-
|
|
160640
|
-
|
|
160670
|
+
fs25.mkdirSync(path52.dirname(prefsFile), { recursive: true, mode: 448 });
|
|
160671
|
+
fs25.writeFileSync(prefsFile, JSON.stringify(deepMerge2(prefs, themePreferences())));
|
|
160641
160672
|
const localStateFile = path52.join(profileDir, "Local State");
|
|
160642
160673
|
const localState = readJsonObject(localStateFile);
|
|
160643
|
-
|
|
160674
|
+
fs25.writeFileSync(
|
|
160644
160675
|
localStateFile,
|
|
160645
160676
|
JSON.stringify(deepMerge2(localState, localStateProfileInfo()))
|
|
160646
160677
|
);
|
|
160647
160678
|
}
|
|
160648
|
-
|
|
160679
|
+
fs25.writeFileSync(
|
|
160649
160680
|
marker,
|
|
160650
160681
|
`${JSON.stringify({ themeAppliedAt: now3.toISOString(), themed }, null, 2)}
|
|
160651
160682
|
`
|
|
@@ -160655,9 +160686,9 @@ function ensureAgentProfile(profileDir, now3 = /* @__PURE__ */ new Date()) {
|
|
|
160655
160686
|
function profileLock(profileDir, platform3 = process.platform) {
|
|
160656
160687
|
if (platform3 === "win32") {
|
|
160657
160688
|
const lockfile = path52.join(profileDir, "lockfile");
|
|
160658
|
-
if (!
|
|
160689
|
+
if (!fs25.existsSync(lockfile)) return { inUse: false };
|
|
160659
160690
|
try {
|
|
160660
|
-
|
|
160691
|
+
fs25.rmSync(lockfile);
|
|
160661
160692
|
return { inUse: false };
|
|
160662
160693
|
} catch {
|
|
160663
160694
|
return { inUse: true };
|
|
@@ -160665,7 +160696,7 @@ function profileLock(profileDir, platform3 = process.platform) {
|
|
|
160665
160696
|
}
|
|
160666
160697
|
let target;
|
|
160667
160698
|
try {
|
|
160668
|
-
target =
|
|
160699
|
+
target = fs25.readlinkSync(path52.join(profileDir, "SingletonLock"));
|
|
160669
160700
|
} catch {
|
|
160670
160701
|
return { inUse: false };
|
|
160671
160702
|
}
|
|
@@ -160767,7 +160798,7 @@ var init_cloud_origin = __esm({
|
|
|
160767
160798
|
});
|
|
160768
160799
|
|
|
160769
160800
|
// src/lib/agent-browser/storage-state.ts
|
|
160770
|
-
import
|
|
160801
|
+
import fs26 from "node:fs";
|
|
160771
160802
|
import path53 from "node:path";
|
|
160772
160803
|
function toStorageStateCookie(cookie) {
|
|
160773
160804
|
const copy2 = {
|
|
@@ -160839,7 +160870,7 @@ function cliCloudOrigins() {
|
|
|
160839
160870
|
}
|
|
160840
160871
|
async function writeStorageState(file2, state) {
|
|
160841
160872
|
const saved = withoutCloudOrigin(state, cliCloudOrigins()).state;
|
|
160842
|
-
|
|
160873
|
+
fs26.mkdirSync(path53.dirname(file2), { recursive: true, mode: 448 });
|
|
160843
160874
|
await writeFileAtomic2(file2, `${JSON.stringify(saved, null, 2)}
|
|
160844
160875
|
`, { mode: 384 });
|
|
160845
160876
|
return saved;
|
|
@@ -160847,7 +160878,7 @@ async function writeStorageState(file2, state) {
|
|
|
160847
160878
|
function readStorageState(file2) {
|
|
160848
160879
|
let raw;
|
|
160849
160880
|
try {
|
|
160850
|
-
raw =
|
|
160881
|
+
raw = fs26.readFileSync(file2, "utf8");
|
|
160851
160882
|
} catch (err) {
|
|
160852
160883
|
if (err.code === "ENOENT") return null;
|
|
160853
160884
|
throw err;
|
|
@@ -160957,7 +160988,7 @@ __export(browser_commands_exports, {
|
|
|
160957
160988
|
runBrowserLogin: () => runBrowserLogin,
|
|
160958
160989
|
runBrowserStatus: () => runBrowserStatus
|
|
160959
160990
|
});
|
|
160960
|
-
import
|
|
160991
|
+
import fs27 from "node:fs";
|
|
160961
160992
|
import path54 from "node:path";
|
|
160962
160993
|
import { parseArgs as parseArgs8 } from "node:util";
|
|
160963
160994
|
function agentBrowserPaths(dorkHome) {
|
|
@@ -161153,7 +161184,7 @@ function parseBrowserStatusArgs(rawArgs) {
|
|
|
161153
161184
|
async function runBrowserStatus(args, deps) {
|
|
161154
161185
|
const { stateFile } = agentBrowserPaths(deps.dorkHome);
|
|
161155
161186
|
const state = readStorageState(stateFile);
|
|
161156
|
-
const savedAt = state ?
|
|
161187
|
+
const savedAt = state ? fs27.statSync(stateFile).mtime : null;
|
|
161157
161188
|
const sites = state ? summarizeStorageState(state, deps.now().getTime() / 1e3) : [];
|
|
161158
161189
|
if (args.json) {
|
|
161159
161190
|
printJson({
|
|
@@ -161230,7 +161261,7 @@ ${FORGET_USAGE}`);
|
|
|
161230
161261
|
};
|
|
161231
161262
|
}
|
|
161232
161263
|
async function cleanProfile(deps, profileDir, target, knownOrigins, chromeFlag) {
|
|
161233
|
-
if (!
|
|
161264
|
+
if (!fs27.existsSync(profileDir)) return null;
|
|
161234
161265
|
const what = target === "all" ? "those sites are" : `${target.site} is`;
|
|
161235
161266
|
const nextSave = "the next `dorkos browser login` will save it again";
|
|
161236
161267
|
if (deps.profileLock(profileDir).inUse) {
|
|
@@ -161326,7 +161357,7 @@ var browser_deps_exports = {};
|
|
|
161326
161357
|
__export(browser_deps_exports, {
|
|
161327
161358
|
defaultBrowserDeps: () => defaultBrowserDeps
|
|
161328
161359
|
});
|
|
161329
|
-
import
|
|
161360
|
+
import fs28 from "node:fs";
|
|
161330
161361
|
import { homedir as homedir3 } from "node:os";
|
|
161331
161362
|
import { spawn as spawn3, spawnSync } from "node:child_process";
|
|
161332
161363
|
import { createInterface as createInterface2 } from "node:readline";
|
|
@@ -161382,7 +161413,7 @@ function defaultBrowserDeps() {
|
|
|
161382
161413
|
programFilesX86: env4["PROGRAMFILES(X86)"],
|
|
161383
161414
|
exists: (file2) => {
|
|
161384
161415
|
try {
|
|
161385
|
-
return
|
|
161416
|
+
return fs28.statSync(file2).isFile();
|
|
161386
161417
|
} catch {
|
|
161387
161418
|
return false;
|
|
161388
161419
|
}
|
|
@@ -162888,7 +162919,7 @@ __export(marketplace_link_exports, {
|
|
|
162888
162919
|
parseMarketplaceLinkArgs: () => parseMarketplaceLinkArgs,
|
|
162889
162920
|
runMarketplaceLink: () => runMarketplaceLink
|
|
162890
162921
|
});
|
|
162891
|
-
import
|
|
162922
|
+
import fs29 from "node:fs";
|
|
162892
162923
|
import path56 from "node:path";
|
|
162893
162924
|
import { parseArgs as parseArgs17 } from "node:util";
|
|
162894
162925
|
function parseMarketplaceLinkArgs(rawArgs) {
|
|
@@ -162950,7 +162981,7 @@ function describeLinkPreview(preview) {
|
|
|
162950
162981
|
async function runMarketplaceLink(args) {
|
|
162951
162982
|
let folder;
|
|
162952
162983
|
try {
|
|
162953
|
-
folder =
|
|
162984
|
+
folder = fs29.realpathSync(args.folder);
|
|
162954
162985
|
} catch (err) {
|
|
162955
162986
|
console.error(describeUnreadableFolder(args.folder, err));
|
|
162956
162987
|
return 1;
|
|
@@ -170749,7 +170780,7 @@ There is no --yes mode. Before the first write, type the generated app name in a
|
|
|
170749
170780
|
// src/commands/doctor-checks.ts
|
|
170750
170781
|
import { execFileSync as execFileSync3 } from "node:child_process";
|
|
170751
170782
|
import net from "node:net";
|
|
170752
|
-
import
|
|
170783
|
+
import fs30 from "node:fs";
|
|
170753
170784
|
import path57 from "node:path";
|
|
170754
170785
|
function checkNode() {
|
|
170755
170786
|
const issue2 = checkNodeVersion();
|
|
@@ -170761,9 +170792,9 @@ function checkNode() {
|
|
|
170761
170792
|
function checkDorkHomeWritable(dorkHome) {
|
|
170762
170793
|
const probe2 = path57.join(dorkHome, `.doctor-write-${process.pid}`);
|
|
170763
170794
|
try {
|
|
170764
|
-
|
|
170765
|
-
|
|
170766
|
-
|
|
170795
|
+
fs30.mkdirSync(dorkHome, { recursive: true });
|
|
170796
|
+
fs30.writeFileSync(probe2, "ok");
|
|
170797
|
+
fs30.rmSync(probe2, { force: true });
|
|
170767
170798
|
return { label: `Data directory is writable`, status: "pass", detail: dorkHome };
|
|
170768
170799
|
} catch (err) {
|
|
170769
170800
|
return {
|
|
@@ -170813,7 +170844,7 @@ function readGitVersion() {
|
|
|
170813
170844
|
}
|
|
170814
170845
|
function checkClaudeAuth(homeDir) {
|
|
170815
170846
|
const claudeDir = path57.join(homeDir, ".claude");
|
|
170816
|
-
if (
|
|
170847
|
+
if (fs30.existsSync(claudeDir)) {
|
|
170817
170848
|
return { label: "Claude looks configured", status: "info", detail: claudeDir };
|
|
170818
170849
|
}
|
|
170819
170850
|
return {
|
|
@@ -170906,7 +170937,7 @@ function checkDevLinks(dorkHome) {
|
|
|
170906
170937
|
const file2 = path57.join(dorkHome, DEV_LINKS_FILE);
|
|
170907
170938
|
let text3;
|
|
170908
170939
|
try {
|
|
170909
|
-
text3 =
|
|
170940
|
+
text3 = fs30.readFileSync(file2, "utf-8");
|
|
170910
170941
|
} catch (err) {
|
|
170911
170942
|
if (err.code === "ENOENT") {
|
|
170912
170943
|
return judgeDevLinks({ entries: [] }, { paths: true });
|
|
@@ -170932,7 +170963,7 @@ function devLinkStateSync(record2) {
|
|
|
170932
170963
|
let lstatIsLink = false;
|
|
170933
170964
|
let present = false;
|
|
170934
170965
|
try {
|
|
170935
|
-
lstatIsLink =
|
|
170966
|
+
lstatIsLink = fs30.lstatSync(record2.slot).isSymbolicLink();
|
|
170936
170967
|
present = true;
|
|
170937
170968
|
} catch (err) {
|
|
170938
170969
|
const code = err.code;
|
|
@@ -170940,14 +170971,14 @@ function devLinkStateSync(record2) {
|
|
|
170940
170971
|
}
|
|
170941
170972
|
let realpathOfSlot = null;
|
|
170942
170973
|
try {
|
|
170943
|
-
realpathOfSlot =
|
|
170974
|
+
realpathOfSlot = fs30.realpathSync(record2.slot);
|
|
170944
170975
|
} catch {
|
|
170945
170976
|
}
|
|
170946
170977
|
if (isActiveDevLink(record2, { lstatIsLink, realpathOfSlot })) return "active";
|
|
170947
170978
|
if (!present) return "link-missing";
|
|
170948
170979
|
if (lstatIsLink && realpathOfSlot === null) {
|
|
170949
170980
|
try {
|
|
170950
|
-
const text3 =
|
|
170981
|
+
const text3 = fs30.readlinkSync(record2.slot);
|
|
170951
170982
|
if (path57.resolve(path57.dirname(record2.slot), text3) === record2.target) return "folder-missing";
|
|
170952
170983
|
} catch {
|
|
170953
170984
|
}
|
|
@@ -171068,7 +171099,7 @@ __export(doctor_exports, {
|
|
|
171068
171099
|
runDoctor: () => runDoctor,
|
|
171069
171100
|
withCleanStdout: () => withCleanStdout
|
|
171070
171101
|
});
|
|
171071
|
-
import
|
|
171102
|
+
import fs31 from "node:fs";
|
|
171072
171103
|
import os9 from "node:os";
|
|
171073
171104
|
import path58 from "node:path";
|
|
171074
171105
|
function parseDoctorArgs(rawArgs) {
|
|
@@ -171173,7 +171204,7 @@ async function gatherResults(dorkHome, store) {
|
|
|
171173
171204
|
checkDevLinks(dorkHome),
|
|
171174
171205
|
checkAuthConfig({
|
|
171175
171206
|
authEnabled: readBool(store, "auth.enabled", false),
|
|
171176
|
-
secretFileExists:
|
|
171207
|
+
secretFileExists: fs31.existsSync(path58.join(dorkHome, SECRET_FILE_NAME2)),
|
|
171177
171208
|
// eslint-disable-next-line no-restricted-syntax -- reading an operator env override, matching secret.ts
|
|
171178
171209
|
secretEnvSet: Boolean(process.env.BETTER_AUTH_SECRET?.trim())
|
|
171179
171210
|
}),
|
|
@@ -171580,7 +171611,7 @@ __export(ended_standing_grants_exports, {
|
|
|
171580
171611
|
readStandingGrantLicence: () => readStandingGrantLicence,
|
|
171581
171612
|
recordEndedStandingGrants: () => recordEndedStandingGrants
|
|
171582
171613
|
});
|
|
171583
|
-
import
|
|
171614
|
+
import fs32 from "node:fs/promises";
|
|
171584
171615
|
import { readFileSync as readFileSync22, writeFileSync as writeFileSync4, renameSync as renameSync4 } from "node:fs";
|
|
171585
171616
|
import path59 from "node:path";
|
|
171586
171617
|
function readStandingGrantLicence(dorkHome) {
|
|
@@ -171664,7 +171695,7 @@ async function recordEndedStandingGrants(deps) {
|
|
|
171664
171695
|
const file2 = path59.join(deps.dorkHome, ENDED_STANDING_GRANTS_FILE);
|
|
171665
171696
|
const grants = readCaptured(file2);
|
|
171666
171697
|
if (grants.length === 0) {
|
|
171667
|
-
await
|
|
171698
|
+
await fs32.rm(file2, { force: true });
|
|
171668
171699
|
return 0;
|
|
171669
171700
|
}
|
|
171670
171701
|
const agents2 = new Map(deps.agents().map((agent) => [agent.projectPath, agent]));
|
|
@@ -171694,7 +171725,7 @@ async function recordEndedStandingGrants(deps) {
|
|
|
171694
171725
|
});
|
|
171695
171726
|
}
|
|
171696
171727
|
try {
|
|
171697
|
-
await
|
|
171728
|
+
await fs32.rm(file2, { force: true });
|
|
171698
171729
|
} catch (err) {
|
|
171699
171730
|
deps.logger.warn("[Permissions] could not remove the ended standing permissions file", {
|
|
171700
171731
|
err: err instanceof Error ? err.message : String(err)
|
|
@@ -173767,19 +173798,19 @@ var init_cloud_link_client = __esm({
|
|
|
173767
173798
|
|
|
173768
173799
|
// ../../apps/server/src/lib/instance-id.ts
|
|
173769
173800
|
import { randomUUID as randomUUID8 } from "node:crypto";
|
|
173770
|
-
import
|
|
173801
|
+
import fs33 from "node:fs/promises";
|
|
173771
173802
|
import path61 from "node:path";
|
|
173772
173803
|
async function getOrCreateInstanceId(dorkHome) {
|
|
173773
173804
|
const filePath = path61.join(dorkHome, INSTANCE_ID_FILENAME2);
|
|
173774
173805
|
try {
|
|
173775
|
-
const existing = await
|
|
173806
|
+
const existing = await fs33.readFile(filePath, "utf8");
|
|
173776
173807
|
const trimmed = existing.trim();
|
|
173777
173808
|
if (trimmed) return trimmed;
|
|
173778
173809
|
} catch {
|
|
173779
173810
|
}
|
|
173780
173811
|
const id = randomUUID8();
|
|
173781
|
-
await
|
|
173782
|
-
await
|
|
173812
|
+
await fs33.mkdir(dorkHome, { recursive: true });
|
|
173813
|
+
await fs33.writeFile(filePath, id, "utf8");
|
|
173783
173814
|
return id;
|
|
173784
173815
|
}
|
|
173785
173816
|
var INSTANCE_ID_FILENAME2;
|
|
@@ -175286,7 +175317,7 @@ __export(room_exports, {
|
|
|
175286
175317
|
runRoomExport: () => runRoomExport
|
|
175287
175318
|
});
|
|
175288
175319
|
import { parseArgs as parseArgs30 } from "node:util";
|
|
175289
|
-
import
|
|
175320
|
+
import fs34 from "node:fs";
|
|
175290
175321
|
import path62 from "node:path";
|
|
175291
175322
|
import { Readable } from "node:stream";
|
|
175292
175323
|
import { finished as finished2, pipeline } from "node:stream/promises";
|
|
@@ -175373,18 +175404,18 @@ async function streamExport(body, destination, closeDestination) {
|
|
|
175373
175404
|
return { entryCount: null, reason };
|
|
175374
175405
|
}
|
|
175375
175406
|
async function writeExportFile(body, target) {
|
|
175376
|
-
const staging =
|
|
175407
|
+
const staging = fs34.mkdtempSync(path62.join(path62.dirname(target), ".dorkos-export-"));
|
|
175377
175408
|
const scratch = path62.join(staging, path62.basename(target));
|
|
175378
175409
|
let file2;
|
|
175379
175410
|
try {
|
|
175380
|
-
file2 =
|
|
175411
|
+
file2 = fs34.createWriteStream(scratch);
|
|
175381
175412
|
const outcome = await streamExport(body, file2, true);
|
|
175382
|
-
if (outcome.entryCount !== null)
|
|
175413
|
+
if (outcome.entryCount !== null) fs34.renameSync(scratch, target);
|
|
175383
175414
|
return outcome;
|
|
175384
175415
|
} finally {
|
|
175385
175416
|
if (file2) await finished2(file2).catch(() => {
|
|
175386
175417
|
});
|
|
175387
|
-
|
|
175418
|
+
fs34.rmSync(staging, { recursive: true, force: true });
|
|
175388
175419
|
}
|
|
175389
175420
|
}
|
|
175390
175421
|
async function runRoomExport(args) {
|
|
@@ -175398,7 +175429,7 @@ async function runRoomExport(args) {
|
|
|
175398
175429
|
target = path62.resolve(
|
|
175399
175430
|
args.out ?? suggestedFilename(res.headers.get("content-disposition"), roomId)
|
|
175400
175431
|
);
|
|
175401
|
-
if (!args.force &&
|
|
175432
|
+
if (!args.force && fs34.existsSync(target)) {
|
|
175402
175433
|
console.error(`Error: ${target} already exists. Pass --force to replace it.`);
|
|
175403
175434
|
return 1;
|
|
175404
175435
|
}
|
|
@@ -175592,7 +175623,7 @@ var init_connector_schemas2 = __esm({
|
|
|
175592
175623
|
});
|
|
175593
175624
|
|
|
175594
175625
|
// src/commands/connections-args.ts
|
|
175595
|
-
import
|
|
175626
|
+
import fs35 from "node:fs";
|
|
175596
175627
|
function requireNonblank(value, flag, usage) {
|
|
175597
175628
|
if (typeof value !== "string" || value.trim().length === 0) {
|
|
175598
175629
|
throw new Error(`Missing required ${flag} value.
|
|
@@ -175615,7 +175646,7 @@ ${usage}`);
|
|
|
175615
175646
|
if (typeof inline === "string") raw = inline;
|
|
175616
175647
|
if (typeof file2 === "string") {
|
|
175617
175648
|
try {
|
|
175618
|
-
raw =
|
|
175649
|
+
raw = fs35.readFileSync(file2 === "-" ? 0 : file2, "utf8");
|
|
175619
175650
|
} catch (error63) {
|
|
175620
175651
|
throw new Error(
|
|
175621
175652
|
`Cannot read ${fileFlag} '${file2}': ${error63 instanceof Error ? error63.message : String(error63)}`,
|
|
@@ -176577,7 +176608,7 @@ __export(call_exports, {
|
|
|
176577
176608
|
parseCallArgs: () => parseCallArgs2,
|
|
176578
176609
|
runCall: () => runCall2
|
|
176579
176610
|
});
|
|
176580
|
-
import
|
|
176611
|
+
import fs36 from "node:fs";
|
|
176581
176612
|
import { parseArgs as parseArgs34 } from "node:util";
|
|
176582
176613
|
function parseCallArgs2(rawArgs) {
|
|
176583
176614
|
const usage = "Usage: dorkos call <capability-id> [--input <json> | --input-file <path>]";
|
|
@@ -176614,7 +176645,7 @@ ${usage}`);
|
|
|
176614
176645
|
rawInput = inline;
|
|
176615
176646
|
} else if (file2 !== void 0) {
|
|
176616
176647
|
try {
|
|
176617
|
-
rawInput =
|
|
176648
|
+
rawInput = fs36.readFileSync(file2 === "-" ? 0 : file2, "utf-8");
|
|
176618
176649
|
} catch (err) {
|
|
176619
176650
|
throw new Error(
|
|
176620
176651
|
`Cannot read --input-file '${file2}': ${err instanceof Error ? err.message : String(err)}`,
|
|
@@ -176718,7 +176749,7 @@ __export(version_exports, {
|
|
|
176718
176749
|
runVersionCheck: () => runVersionCheck,
|
|
176719
176750
|
runVersionDispatcher: () => runVersionDispatcher
|
|
176720
176751
|
});
|
|
176721
|
-
import
|
|
176752
|
+
import fs37 from "node:fs";
|
|
176722
176753
|
import path63 from "node:path";
|
|
176723
176754
|
import { parseArgs as parseArgs35 } from "node:util";
|
|
176724
176755
|
function parseVersionArgs(rawArgs) {
|
|
@@ -176741,7 +176772,7 @@ function parseVersionArgs(rawArgs) {
|
|
|
176741
176772
|
}
|
|
176742
176773
|
function readCachedLatest(dorkHome) {
|
|
176743
176774
|
try {
|
|
176744
|
-
const raw =
|
|
176775
|
+
const raw = fs37.readFileSync(path63.join(dorkHome, "cache", "update-check.json"), "utf-8");
|
|
176745
176776
|
const cache3 = JSON.parse(raw);
|
|
176746
176777
|
return typeof cache3.latestVersion === "string" ? cache3.latestVersion : null;
|
|
176747
176778
|
} catch {
|
|
@@ -176835,12 +176866,12 @@ __export(cleanup_command_exports, {
|
|
|
176835
176866
|
runCleanup: () => runCleanup
|
|
176836
176867
|
});
|
|
176837
176868
|
import { confirm as confirm2 } from "@inquirer/prompts";
|
|
176838
|
-
import
|
|
176869
|
+
import fs38 from "fs";
|
|
176839
176870
|
import path64 from "path";
|
|
176840
176871
|
import http from "node:http";
|
|
176841
176872
|
function readPort(dorkHome) {
|
|
176842
176873
|
try {
|
|
176843
|
-
const raw =
|
|
176874
|
+
const raw = fs38.readFileSync(path64.join(dorkHome, "config.json"), "utf-8");
|
|
176844
176875
|
const config3 = JSON.parse(raw);
|
|
176845
176876
|
const port2 = config3?.server?.port;
|
|
176846
176877
|
if (typeof port2 === "number" && port2 > 0) return port2;
|
|
@@ -176867,7 +176898,7 @@ async function findProjectPaths(dbPath) {
|
|
|
176867
176898
|
const db2 = new Database3(dbPath, { readonly: true });
|
|
176868
176899
|
try {
|
|
176869
176900
|
const rows = db2.prepare("SELECT DISTINCT project_path FROM agents").all();
|
|
176870
|
-
return rows.map((r3) => r3.project_path).filter((p) =>
|
|
176901
|
+
return rows.map((r3) => r3.project_path).filter((p) => fs38.existsSync(path64.join(p, ".dork")));
|
|
176871
176902
|
} finally {
|
|
176872
176903
|
db2.close();
|
|
176873
176904
|
}
|
|
@@ -176877,7 +176908,7 @@ async function findProjectPaths(dbPath) {
|
|
|
176877
176908
|
}
|
|
176878
176909
|
async function runCleanup(options) {
|
|
176879
176910
|
const { dorkHome } = options;
|
|
176880
|
-
if (!
|
|
176911
|
+
if (!fs38.existsSync(dorkHome)) {
|
|
176881
176912
|
console.log("\nNo DorkOS data found. Nothing to clean up.\n");
|
|
176882
176913
|
return;
|
|
176883
176914
|
}
|
|
@@ -176890,7 +176921,7 @@ DorkOS server is running on port ${port2}. Stop it before running cleanup.
|
|
|
176890
176921
|
return;
|
|
176891
176922
|
}
|
|
176892
176923
|
console.log("\nDorkOS Cleanup\n");
|
|
176893
|
-
const entries =
|
|
176924
|
+
const entries = fs38.readdirSync(dorkHome);
|
|
176894
176925
|
if (entries.length === 0) {
|
|
176895
176926
|
console.log("No DorkOS data found. Nothing to clean up.\n");
|
|
176896
176927
|
return;
|
|
@@ -176902,7 +176933,7 @@ DorkOS server is running on port ${port2}. Stop it before running cleanup.
|
|
|
176902
176933
|
}
|
|
176903
176934
|
console.log("");
|
|
176904
176935
|
const dbPath = path64.join(dorkHome, "dork.db");
|
|
176905
|
-
const projectPaths =
|
|
176936
|
+
const projectPaths = fs38.existsSync(dbPath) ? await findProjectPaths(dbPath) : [];
|
|
176906
176937
|
const removeGlobal = await confirm2({
|
|
176907
176938
|
message: `Remove global DorkOS data (${dorkHome})?`,
|
|
176908
176939
|
default: false
|
|
@@ -176911,7 +176942,7 @@ DorkOS server is running on port ${port2}. Stop it before running cleanup.
|
|
|
176911
176942
|
console.log("\n Aborted.\n");
|
|
176912
176943
|
return;
|
|
176913
176944
|
}
|
|
176914
|
-
|
|
176945
|
+
fs38.rmSync(dorkHome, { recursive: true, force: true });
|
|
176915
176946
|
console.log(`
|
|
176916
176947
|
Removed ${dorkHome}
|
|
176917
176948
|
`);
|
|
@@ -176928,7 +176959,7 @@ DorkOS server is running on port ${port2}. Stop it before running cleanup.
|
|
|
176928
176959
|
if (removeProjects) {
|
|
176929
176960
|
for (const p of projectPaths) {
|
|
176930
176961
|
const dorkDir = path64.join(p, ".dork");
|
|
176931
|
-
|
|
176962
|
+
fs38.rmSync(dorkDir, { recursive: true, force: true });
|
|
176932
176963
|
console.log(` Removed ${dorkDir}`);
|
|
176933
176964
|
}
|
|
176934
176965
|
console.log("");
|
|
@@ -177254,7 +177285,7 @@ __export(init_wizard_exports, {
|
|
|
177254
177285
|
runInitWizard: () => runInitWizard
|
|
177255
177286
|
});
|
|
177256
177287
|
import { input as input3, select, confirm as confirm3 } from "@inquirer/prompts";
|
|
177257
|
-
import
|
|
177288
|
+
import fs39 from "fs";
|
|
177258
177289
|
import path66 from "path";
|
|
177259
177290
|
async function runInitWizard(options) {
|
|
177260
177291
|
const { yes, dorkHome, store } = options;
|
|
@@ -177264,7 +177295,7 @@ async function runInitWizard(options) {
|
|
|
177264
177295
|
console.log(`Config initialized with defaults at ${configPath}`);
|
|
177265
177296
|
return;
|
|
177266
177297
|
}
|
|
177267
|
-
if (
|
|
177298
|
+
if (fs39.existsSync(configPath)) {
|
|
177268
177299
|
const overwrite = await confirm3({
|
|
177269
177300
|
message: "Config already exists. Overwrite with new settings?",
|
|
177270
177301
|
default: false
|
|
@@ -177327,7 +177358,7 @@ init_check_extension_compilation();
|
|
|
177327
177358
|
import os11, { networkInterfaces } from "os";
|
|
177328
177359
|
import path67 from "path";
|
|
177329
177360
|
import { fileURLToPath as fileURLToPath7 } from "url";
|
|
177330
|
-
import
|
|
177361
|
+
import fs40 from "fs";
|
|
177331
177362
|
|
|
177332
177363
|
// src/update-check.ts
|
|
177333
177364
|
init_dork_home2();
|
|
@@ -178256,7 +178287,7 @@ if (process.argv[2] === "community") {
|
|
|
178256
178287
|
);
|
|
178257
178288
|
Object.assign(childEnv, credentialEnv.pickCommunityCredentialEnv(rawProcessEnv));
|
|
178258
178289
|
const exitCode = await dispatcher.runCommunityDispatcher(process.argv.slice(3), {
|
|
178259
|
-
cliVersion: "0.125.
|
|
178290
|
+
cliVersion: "0.125.4",
|
|
178260
178291
|
dorkHome: DORK_HOME,
|
|
178261
178292
|
processEnv: childEnv,
|
|
178262
178293
|
parseRelease: (bytes) => releaseContract.parseCompatibleCommunityReleaseManifest(
|
|
@@ -178274,7 +178305,7 @@ if (process.argv[2] === "community") {
|
|
|
178274
178305
|
process.exit(1);
|
|
178275
178306
|
}
|
|
178276
178307
|
}
|
|
178277
|
-
var cliErrorReporter = initCliErrorReporting({ dorkHome: DORK_HOME, version: "0.125.
|
|
178308
|
+
var cliErrorReporter = initCliErrorReporting({ dorkHome: DORK_HOME, version: "0.125.4" });
|
|
178278
178309
|
var uninstallCliErrorHandlers = cliErrorReporter ? installCliErrorHandlers(cliErrorReporter) : void 0;
|
|
178279
178310
|
if (process.argv[2] === "doctor") {
|
|
178280
178311
|
process.env.DORK_HOME = DORK_HOME;
|
|
@@ -178284,7 +178315,7 @@ if (process.argv[2] === "doctor") {
|
|
|
178284
178315
|
if (process.argv[2] === "feedback") {
|
|
178285
178316
|
process.env.DORK_HOME = DORK_HOME;
|
|
178286
178317
|
const { runFeedback: runFeedback2 } = await Promise.resolve().then(() => (init_feedback2(), feedback_exports));
|
|
178287
|
-
process.exit(await runFeedback2(DORK_HOME, "0.125.
|
|
178318
|
+
process.exit(await runFeedback2(DORK_HOME, "0.125.4", process.argv.slice(3)));
|
|
178288
178319
|
}
|
|
178289
178320
|
if (process.argv[2] === "auth") {
|
|
178290
178321
|
process.env.DORK_HOME = DORK_HOME;
|
|
@@ -178293,13 +178324,13 @@ if (process.argv[2] === "auth") {
|
|
|
178293
178324
|
}
|
|
178294
178325
|
if (process.argv[2] === "cloud") {
|
|
178295
178326
|
process.env.DORK_HOME = DORK_HOME;
|
|
178296
|
-
|
|
178327
|
+
fs40.mkdirSync(DORK_HOME, { recursive: true });
|
|
178297
178328
|
const { runCloudDispatcher: runCloudDispatcher2 } = await Promise.resolve().then(() => (init_cloud_dispatcher(), cloud_dispatcher_exports));
|
|
178298
178329
|
process.exit(await runCloudDispatcher2(DORK_HOME, process.argv[3], process.argv.slice(4)));
|
|
178299
178330
|
}
|
|
178300
178331
|
if (process.argv[2] === "telemetry") {
|
|
178301
178332
|
process.env.DORK_HOME = DORK_HOME;
|
|
178302
|
-
|
|
178333
|
+
fs40.mkdirSync(DORK_HOME, { recursive: true });
|
|
178303
178334
|
const { runTelemetryDispatcher: runTelemetryDispatcher2 } = await Promise.resolve().then(() => (init_telemetry(), telemetry_exports));
|
|
178304
178335
|
process.exit(await runTelemetryDispatcher2(DORK_HOME, process.argv[3], process.argv.slice(4)));
|
|
178305
178336
|
}
|
|
@@ -178383,7 +178414,7 @@ if (process.argv[2] === "agent" || process.argv[2] === "task" || process.argv[2]
|
|
|
178383
178414
|
}
|
|
178384
178415
|
}
|
|
178385
178416
|
const { runVersionDispatcher: runVersionDispatcher2 } = await Promise.resolve().then(() => (init_version5(), version_exports));
|
|
178386
|
-
process.exit(await runVersionDispatcher2("0.125.
|
|
178417
|
+
process.exit(await runVersionDispatcher2("0.125.4", DORK_HOME, subArgs));
|
|
178387
178418
|
}
|
|
178388
178419
|
var { values, positionals } = parseCliArgs();
|
|
178389
178420
|
if (positionals[0] && !knownCommands.has(positionals[0])) {
|
|
@@ -178477,14 +178508,14 @@ Examples:
|
|
|
178477
178508
|
process.exit(0);
|
|
178478
178509
|
}
|
|
178479
178510
|
if (values.version) {
|
|
178480
|
-
console.log("0.125.
|
|
178511
|
+
console.log("0.125.4");
|
|
178481
178512
|
process.exit(0);
|
|
178482
178513
|
}
|
|
178483
178514
|
if (values["post-install-check"]) {
|
|
178484
178515
|
const claudeFound = checkClaude();
|
|
178485
178516
|
const coreExtensionsFound = checkCoreExtensions();
|
|
178486
178517
|
const extensionsCompile = await checkExtensionCompilation();
|
|
178487
|
-
console.log(`dorkos ${"0.125.
|
|
178518
|
+
console.log(`dorkos ${"0.125.4"}`);
|
|
178488
178519
|
if (!coreExtensionsFound) {
|
|
178489
178520
|
console.log("Installation incomplete \u2014 bundled core extensions are missing.");
|
|
178490
178521
|
}
|
|
@@ -178507,7 +178538,7 @@ if (subcommand === "cleanup") {
|
|
|
178507
178538
|
process.exit(process.exitCode ?? 0);
|
|
178508
178539
|
}
|
|
178509
178540
|
try {
|
|
178510
|
-
|
|
178541
|
+
fs40.mkdirSync(DORK_HOME, { recursive: true });
|
|
178511
178542
|
} catch (err) {
|
|
178512
178543
|
const reason = err instanceof Error ? err.message : String(err);
|
|
178513
178544
|
console.error(`\u26A0 DorkOS could not set up ${DORK_HOME}: ${reason}`);
|
|
@@ -178626,13 +178657,13 @@ if (resolvedDir !== effectiveBoundary && !resolvedDir.startsWith(effectiveBounda
|
|
|
178626
178657
|
var logLevelName = values["log-level"] || env4.LOG_LEVEL || cfgMgr.getDot("logging.level") || (env4.NODE_ENV === "production" ? "info" : "debug");
|
|
178627
178658
|
process.env.DORKOS_LOG_LEVEL = String(LOG_LEVEL_MAP[logLevelName] ?? 3);
|
|
178628
178659
|
var envPath = path67.join(process.env.DORKOS_DEFAULT_CWD, ".env");
|
|
178629
|
-
if (
|
|
178660
|
+
if (fs40.existsSync(envPath)) {
|
|
178630
178661
|
const dotenv = await import("dotenv");
|
|
178631
178662
|
dotenv.config({ path: envPath, override: false });
|
|
178632
178663
|
}
|
|
178633
178664
|
uninstallCliErrorHandlers?.();
|
|
178634
178665
|
process.env.DORKOS_CLI_ENTRYPOINT = fileURLToPath7(import.meta.url);
|
|
178635
|
-
process.env.DORKOS_CLI_VERSION = "0.125.
|
|
178666
|
+
process.env.DORKOS_CLI_VERSION = "0.125.4";
|
|
178636
178667
|
var server;
|
|
178637
178668
|
try {
|
|
178638
178669
|
server = await import("../server/index.js");
|
|
@@ -178657,7 +178688,7 @@ var ansiReset = "\x1B[0m";
|
|
|
178657
178688
|
console.log("");
|
|
178658
178689
|
console.log(`${purple}${logo}${ansiReset}`);
|
|
178659
178690
|
console.log("");
|
|
178660
|
-
console.log(` DorkOS v${"0.125.
|
|
178691
|
+
console.log(` DorkOS v${"0.125.4"}`);
|
|
178661
178692
|
console.log(` Local: ${link(localUrl, localUrl)}`);
|
|
178662
178693
|
var nets = networkInterfaces();
|
|
178663
178694
|
var networkUrl = null;
|
|
@@ -178683,9 +178714,9 @@ if (shouldOpenBrowser && process.stdin.isTTY) {
|
|
|
178683
178714
|
const openCmd = process.platform === "darwin" ? "open" : process.platform === "win32" ? "start" : "xdg-open";
|
|
178684
178715
|
exec(`${openCmd} ${localUrl}`);
|
|
178685
178716
|
}
|
|
178686
|
-
checkForUpdate("0.125.
|
|
178717
|
+
checkForUpdate("0.125.4").then((latestVersion) => {
|
|
178687
178718
|
if (latestVersion) {
|
|
178688
|
-
const msg = `Update available: ${"0.125.
|
|
178719
|
+
const msg = `Update available: ${"0.125.4"} \u2192 ${latestVersion}`;
|
|
178689
178720
|
const cmd = "Run npm install -g dorkos@latest to update";
|
|
178690
178721
|
const width = Math.max(msg.length, cmd.length) + 6;
|
|
178691
178722
|
const pad2 = (s2) => `\u2502 ${s2}${" ".repeat(width - s2.length - 6)} \u2502`;
|