@qwen-code/qwen-code 0.19.9 → 0.19.10-nightly.20260715.c538bd70d
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/bundled/qc-helper/docs/configuration/settings.md +8 -0
- package/bundled/qc-helper/docs/features/channels/dingtalk.md +3 -0
- package/bundled/qc-helper/docs/features/channels/overview.md +11 -3
- package/bundled/qc-helper/docs/features/code-review.md +88 -44
- package/bundled/qc-helper/docs/features/commands.md +6 -6
- package/bundled/qc-helper/docs/features/hooks.md +29 -0
- package/bundled/qc-helper/docs/features/sub-agents.md +21 -0
- package/bundled/qc-helper/docs/qwen-serve.md +46 -20
- package/bundled/qc-helper/docs/reference/keyboard-shortcuts.md +1 -1
- package/bundled/review/DESIGN.md +219 -33
- package/bundled/review/SKILL.md +449 -153
- package/chunks/{MaxSizedBox-6HYJ3ZPJ.js → MaxSizedBox-LOOBDOTZ.js} +31 -31
- package/chunks/{StandaloneSessionPicker-WS4GXYOG.js → StandaloneSessionPicker-76CLZSH2.js} +51 -49
- package/chunks/{acpAgent-5FWSOZL5.js → acpAgent-DFJOK7EB.js} +567 -482
- package/chunks/{agent-HOLHB3RT.js → agent-OJQWXNHP.js} +26 -26
- package/chunks/{agent-headless-SXL6H56A.js → agent-headless-ND7GOORY.js} +26 -26
- package/chunks/{anthropicContentGenerator-L73TO3DB.js → anthropicContentGenerator-56U3YCP2.js} +5 -5
- package/chunks/{artifact-tool-U7IRTLIV.js → artifact-tool-MIZLXBLF.js} +2 -2
- package/chunks/{askUserQuestion-2DLUUZZG.js → askUserQuestion-XMJVPNWM.js} +2 -2
- package/chunks/{bridge-BCJQ7BBB.js → bridge-SNJK2JLK.js} +32 -32
- package/chunks/{ca-UJ6HC4H2.js → ca-C2JTT2N5.js} +4 -1
- package/chunks/channel-worker-group-K7QKH6IG.js +13 -0
- package/chunks/channel-worker-manager-YSFB4HUU.js +418 -0
- package/chunks/channel-worker-supervisor-QCKIOYZD.js +20 -0
- package/chunks/{chunk-CCDMCZPP.js → chunk-26UABK2C.js} +1 -1
- package/chunks/{chunk-LXNEJD34.js → chunk-2FO5GFKZ.js} +1 -1
- package/chunks/{chunk-L36P3NBD.js → chunk-2W3OOD4W.js} +2 -0
- package/chunks/{chunk-7R3CZA3Q.js → chunk-2Z5UX4KI.js} +1 -1
- package/chunks/chunk-3MX7D6QN.js +516 -0
- package/chunks/{chunk-CLFKOZEK.js → chunk-3XULHBC7.js} +1 -1
- package/chunks/chunk-4QZADKJS.js +34 -0
- package/chunks/{chunk-E2IY465S.js → chunk-4UDHAJFV.js} +10 -10
- package/chunks/{chunk-5U27BZ72.js → chunk-55SAYASQ.js} +190 -77
- package/chunks/chunk-5HBA2Z7V.js +28 -0
- package/chunks/{chunk-ZJE7NSL3.js → chunk-5M6IDOMF.js} +34 -97
- package/chunks/{chunk-HVY356M2.js → chunk-5SQ55XJZ.js} +3 -3
- package/chunks/{chunk-EAXLGSFP.js → chunk-6GRAQNTY.js} +8 -8
- package/chunks/{chunk-K434OPES.js → chunk-6WPJRYLZ.js} +3 -3
- package/chunks/{chunk-VWPVHAMO.js → chunk-7DXHIMXL.js} +5 -1
- package/chunks/{chunk-J4TSQ5EQ.js → chunk-7NFB7LBQ.js} +8 -1
- package/chunks/{chunk-5SFOMFG4.js → chunk-7R4DPSRA.js} +36 -2
- package/chunks/{chunk-W2UIXQDL.js → chunk-7STBROEV.js} +1 -1
- package/chunks/{chunk-BMGVRZN4.js → chunk-AETEZU4U.js} +1 -1
- package/chunks/{chunk-HPDUL5MF.js → chunk-AGZWN4WV.js} +1 -1
- package/chunks/{chunk-RDJSGHZE.js → chunk-ALGGS7UH.js} +1 -38
- package/chunks/{chunk-GWHYEOV2.js → chunk-ARKANCNX.js} +2 -1
- package/chunks/{chunk-34Z3U5RQ.js → chunk-AU4R7ACM.js} +518 -114
- package/chunks/{channel-worker-supervisor-WSOAAYUO.js → chunk-B7MFJBKE.js} +67 -35
- package/chunks/{chunk-524RQP4Q.js → chunk-B7NUUEXC.js} +10 -4
- package/chunks/{chunk-MC23XKFE.js → chunk-BLPMRN4B.js} +3 -3
- package/chunks/{chunk-A3XKDTSH.js → chunk-BRRKAUGR.js} +4 -4
- package/chunks/{chunk-W3JHSWRP.js → chunk-BUPLOPUA.js} +4 -4
- package/chunks/{chunk-3VAGG5T5.js → chunk-BYOOK22F.js} +121 -16
- package/chunks/{chunk-EMDMPBJ4.js → chunk-C47ENMZJ.js} +3 -3
- package/chunks/{chunk-3AHXV67U.js → chunk-C5TVXLJZ.js} +1 -1
- package/chunks/{chunk-X6TJ3YZV.js → chunk-CGT5TQIZ.js} +159 -57
- package/chunks/{chunk-4C5BQ2D2.js → chunk-CQQD7MDG.js} +82 -12
- package/chunks/{chunk-KKNMOEZH.js → chunk-E2UVIFI2.js} +185 -398
- package/chunks/{chunk-P67PFTUT.js → chunk-EPY4ZEU6.js} +4 -4
- package/chunks/{chunk-6PESIEKJ.js → chunk-EZSRHWGS.js} +68 -6
- package/chunks/{chunk-4GORAUCN.js → chunk-F333XEAU.js} +1 -1
- package/chunks/{chunk-YLV3XXFB.js → chunk-FBU7WRZI.js} +17 -1
- package/chunks/{chunk-Q6I5QHMH.js → chunk-FGTCZJOD.js} +1 -1
- package/chunks/{chunk-LK7KUE55.js → chunk-FSA7ERJ2.js} +1 -1
- package/chunks/{chunk-B4G2WOFA.js → chunk-FTU55ZZ7.js} +3 -3
- package/chunks/{chunk-EGYZ275M.js → chunk-GCD7PEDZ.js} +4 -4
- package/chunks/{chunk-SJHDYNHF.js → chunk-GDQQRV43.js} +3 -3
- package/chunks/{chunk-3BTRNWWD.js → chunk-GOXKNSDZ.js} +1 -64
- package/chunks/{chunk-GZRTYZ2R.js → chunk-GQKWT45X.js} +154 -1
- package/chunks/chunk-GYTKQYDB.js +23 -0
- package/chunks/{chunk-YVEDCAUE.js → chunk-HGT6JR3U.js} +19 -0
- package/chunks/{chunk-N3EMS75V.js → chunk-HKM2TEF7.js} +1268 -1233
- package/chunks/chunk-IDS7MSUP.js +74 -0
- package/chunks/{chunk-PVZM22CK.js → chunk-INKAZNYC.js} +5 -5
- package/chunks/{chunk-3G7CIHVV.js → chunk-IOQ75R4R.js} +4 -4
- package/chunks/{chunk-AURZZYMD.js → chunk-IQOOJSPR.js} +4 -4
- package/chunks/{chunk-AKIVHSJR.js → chunk-J4UQXGVL.js} +111 -93
- package/chunks/{chunk-VTU57BWZ.js → chunk-JEKOCLRN.js} +1 -1
- package/chunks/{chunk-B5ORX3FG.js → chunk-JGUT3LWZ.js} +6 -1
- package/chunks/{chunk-PDZ7MBDG.js → chunk-JIQHT2O6.js} +27 -6
- package/chunks/{chunk-XUOOWUZS.js → chunk-JPAH76WA.js} +1 -1
- package/chunks/{chunk-BAPGSC7U.js → chunk-K4LG6TVJ.js} +23 -9
- package/chunks/chunk-KET3M4K4.js +493 -0
- package/chunks/{chunk-ORBGV7NJ.js → chunk-KKRTYONM.js} +6 -4
- package/chunks/{chunk-SCGXUJBT.js → chunk-KPA5QGN2.js} +3 -3
- package/chunks/{chunk-IAVB3HM3.js → chunk-KSO42X3Z.js} +13 -0
- package/chunks/{chunk-4QLQE5WJ.js → chunk-L5U3ELZX.js} +1 -1
- package/chunks/{chunk-77XJ3SWN.js → chunk-LIUEXYPL.js} +5 -5
- package/chunks/{chunk-4ZVWQHEQ.js → chunk-LQIDP6K5.js} +1 -1
- package/chunks/{chunk-34MW4KTI.js → chunk-LT5CRUA5.js} +2 -2
- package/chunks/{chunk-DC5Z3DU6.js → chunk-LXLTBIDP.js} +43 -6
- package/chunks/{chunk-VA4KQY6V.js → chunk-MEK7CQJR.js} +3 -3
- package/chunks/{chunk-KHUQZZJ6.js → chunk-MO7O5722.js} +370 -36
- package/chunks/chunk-MR3PXB6E.js +48 -0
- package/chunks/{chunk-PODM4SZ4.js → chunk-MV52C5MA.js} +5 -5
- package/chunks/{chunk-WL4L7EZH.js → chunk-OA4JVLSA.js} +27 -1
- package/chunks/{chunk-X4NKFGFJ.js → chunk-OJAMDVF5.js} +0 -15
- package/chunks/{chunk-BZIFY5TF.js → chunk-OKAIGAYW.js} +3 -3
- package/chunks/{chunk-ECNYL4AA.js → chunk-OPNPGO6D.js} +1 -1
- package/chunks/{chunk-3SJSQXNS.js → chunk-PEJWA3QQ.js} +12 -8
- package/chunks/{chunk-MXL5UP4X.js → chunk-Q6TUALBE.js} +1 -1
- package/chunks/{chunk-QYMQSECS.js → chunk-QAW7PIHT.js} +2 -2
- package/chunks/{chunk-5HOMWMCL.js → chunk-QEDYXCLG.js} +4167 -1338
- package/chunks/chunk-QNNTA7IX.js +91 -0
- package/chunks/{chunk-D2GFWEXB.js → chunk-QNT5T4Q2.js} +6 -6
- package/chunks/{chunk-CUMMSHH6.js → chunk-R5XLNDE2.js} +1 -1
- package/chunks/{chunk-LUODI7WD.js → chunk-RCEEXIOO.js} +6 -4
- package/chunks/{chunk-WQUQVGTF.js → chunk-RQWDLG6Z.js} +183 -96
- package/chunks/{chunk-XYQSMABS.js → chunk-SLCVZX6F.js} +4 -4
- package/chunks/{chunk-CEA3E3JB.js → chunk-SPJQO2CE.js} +2 -2
- package/chunks/{chunk-JSG7ZSBC.js → chunk-TQBODCFD.js} +1 -1
- package/chunks/chunk-TV6K2FB4.js +224 -0
- package/chunks/{chunk-5XUCZNSY.js → chunk-TYLOFD2U.js} +1 -1
- package/chunks/{chunk-CNEIYWSA.js → chunk-UKWAQ7AV.js} +5 -5
- package/chunks/{chunk-7PU4FYLG.js → chunk-US4YQT62.js} +4 -4
- package/chunks/{chunk-Q4YQW46J.js → chunk-UYPPCIJQ.js} +36 -18
- package/chunks/{chunk-YAUFFXDS.js → chunk-UZKG7HFG.js} +12 -11
- package/chunks/{chunk-GWLSNBG4.js → chunk-VQLRHJKL.js} +30 -26
- package/chunks/{chunk-L6P4KPHR.js → chunk-VRUHAVZS.js} +59 -39
- package/chunks/{chunk-HKMAENAO.js → chunk-W2U4RJJU.js} +8 -6
- package/chunks/{chunk-ATAKVRIF.js → chunk-WDSCTLAB.js} +7 -7
- package/chunks/{chunk-ZLXQN2QS.js → chunk-WIEO4CWB.js} +1 -1
- package/chunks/{chunk-OQ4DRIOA.js → chunk-WJOC24IW.js} +2 -2
- package/chunks/{chunk-J3JA76CF.js → chunk-WTNZ6DXB.js} +1 -1
- package/chunks/{chunk-NVYTCB5Z.js → chunk-XCR44EEA.js} +14589 -13980
- package/chunks/{chunk-TDEXZKMT.js → chunk-Y66VOBRP.js} +2 -2
- package/chunks/{chunk-CC2ITGCF.js → chunk-YHN5SUIJ.js} +49 -6
- package/chunks/{chunk-D5SKC4YG.js → chunk-ZBAROUR6.js} +41 -13
- package/chunks/{chunk-U2NNEY4R.js → chunk-ZEEVKDO7.js} +1 -1
- package/chunks/{chunk-5VXNZWGF.js → chunk-ZLOHB76C.js} +1 -1
- package/chunks/{chunk-JZETEN3Z.js → chunk-ZNCLTRNU.js} +3 -3
- package/chunks/{chunk-TO6QE22P.js → chunk-ZP4ZZJJG.js} +26 -22
- package/chunks/{chunk-UOZWKTQG.js → chunk-ZPAHLFZU.js} +2 -2
- package/chunks/{chunk-XLA62MYB.js → chunk-ZTXZ7FM4.js} +2 -2
- package/chunks/{computer-use-HM37RX6A.js → computer-use-DRETHEQF.js} +26 -26
- package/chunks/{config-utils-NV2SVGPB.js → config-utils-XSHOMMK4.js} +3 -2
- package/chunks/{contextCommand-OF5SFGH2.js → contextCommand-7YJUW23J.js} +28 -28
- package/chunks/{create-sub-session-INX7TXJI.js → create-sub-session-EAB2U5XW.js} +2 -2
- package/chunks/{create-sub-session-KPRT7ECJ.js → create-sub-session-L5HOZAEL.js} +26 -26
- package/chunks/{cron-create-AMBKGZX6.js → cron-create-GMVKSXZT.js} +4 -4
- package/chunks/{cron-delete-LRU4OJYG.js → cron-delete-VDZKUAVK.js} +4 -4
- package/chunks/{cron-list-WVP2JXER.js → cron-list-UG7C7RAR.js} +4 -4
- package/chunks/{daemon-ARHTSTXP.js → daemon-MI5HF26N.js} +603 -62
- package/chunks/{daemon-status-provider-B2UTZUJ2.js → daemon-status-provider-2D47GOJT.js} +36 -36
- package/chunks/{de-EBJN3OVN.js → de-2VCDRDGU.js} +4 -1
- package/chunks/{dist-WKPOYU7O.js → dist-IEXZC5ZR.js} +1 -1
- package/chunks/{dist-XKU3ABM5.js → dist-PQK4GCKA.js} +1 -1
- package/chunks/{dist-VHV4EVHG.js → dist-U75JK3PF.js} +1 -1
- package/chunks/{dist-R7LN5AZE.js → dist-VXO7QBON.js} +2 -2
- package/chunks/{dist-PNVLTKTL.js → dist-WH4TZSH3.js} +158 -4
- package/chunks/{dist-QYCAEZIT.js → dist-X2ABIW5R.js} +5 -1
- package/chunks/{earlyInputCapture-3VTHRC4C.js → earlyInputCapture-OJQPGCSX.js} +27 -27
- package/chunks/{edit-VNI4NJ73.js → edit-LZOAFLT2.js} +27 -27
- package/chunks/{en-5A6LA7RK.js → en-NJCA3TAA.js} +5 -1
- package/chunks/{enter-worktree-IYYBKPZT.js → enter-worktree-VL2TCGI5.js} +26 -26
- package/chunks/{enterPlanMode-GMC5FD5A.js → enterPlanMode-QGHBHZWI.js} +42 -27
- package/chunks/{environment-5HSSRMJ7.js → environment-2G5IC2EU.js} +30 -29
- package/chunks/{errors-HMFCJJ7P.js → errors-7QNQDNI2.js} +28 -28
- package/chunks/{exit-worktree-6BHCMP5G.js → exit-worktree-5V3X2MRH.js} +26 -26
- package/chunks/{exitPlanMode-CJW7G74W.js → exitPlanMode-XDPNQB4H.js} +26 -26
- package/chunks/{fast-path-FRDMDVHG.js → fast-path-NNSD4BVZ.js} +3 -3
- package/chunks/{fast-path-settings-5QZE64HR.js → fast-path-settings-DAOVFADC.js} +6 -4
- package/chunks/{fr-YXRABLYZ.js → fr-5F3E7WKD.js} +4 -1
- package/chunks/{gemini-QYSEGHAX.js → gemini-RKDUWGXJ.js} +139 -76
- package/chunks/{geminiContentGenerator-J7YNZDYP.js → geminiContentGenerator-V7QGHXVF.js} +4 -4
- package/chunks/{glob-BRCSGFOT.js → glob-ZNQUUOTS.js} +28 -27
- package/chunks/{grep-EE2DUOSY.js → grep-NYIGLM7R.js} +26 -26
- package/chunks/{handleAutoUpdate-5NWTLR67.js → handleAutoUpdate-UBQ4IQXY.js} +30 -30
- package/chunks/{i18n-BASPENNQ.js → i18n-5T3S6SGP.js} +27 -27
- package/chunks/initializer-TJED246Q.js +73 -0
- package/chunks/{installationInfo-W6V4DT7W.js → installationInfo-OTEU7FKR.js} +27 -27
- package/chunks/{ja-7VQOANVG.js → ja-66J6B53L.js} +5 -2
- package/chunks/{keychain-token-storage-VKUBNCP4.js → keychain-token-storage-AU22CQI6.js} +2 -2
- package/chunks/list-6OHS7MFJ.js +76 -0
- package/chunks/loadedSettingsAdapter-5456XIYG.js +70 -0
- package/chunks/{loop-wakeup-WX7BLWWP.js → loop-wakeup-C4EXLYVA.js} +5 -5
- package/chunks/{ls-ZB2BDP6T.js → ls-2OUTG3IZ.js} +4 -4
- package/chunks/{lsp-V5DN4YUJ.js → lsp-4VMNXZW6.js} +2 -2
- package/chunks/mcp-NOWRPFKY.js +70 -0
- package/chunks/{monitor-X5Z3H4FY.js → monitor-CVDZO3IZ.js} +26 -26
- package/chunks/nonInteractiveCli-UGI7Y43E.js +129 -0
- package/chunks/{notebook-edit-TRM2QIJK.js → notebook-edit-NWIA5TEJ.js} +27 -27
- package/chunks/{openaiContentGenerator-AAYONPMF.js → openaiContentGenerator-KJONBBJO.js} +12 -12
- package/chunks/{pidfile-D4I4FTVA.js → pidfile-L3TGXMTF.js} +27 -27
- package/chunks/{pt-2C6YCSHL.js → pt-TFZO5Y6T.js} +4 -1
- package/chunks/{qwenContentGenerator-K3HZ2H76.js → qwenContentGenerator-GXUZB5SJ.js} +28 -28
- package/chunks/{qwenOAuth2-PJQ27GSO.js → qwenOAuth2-LEYOU7RU.js} +5 -5
- package/chunks/{read-file-7SZSIZOL.js → read-file-I4OUZXTA.js} +8 -8
- package/chunks/{read-mcp-resource-SM5DA4RG.js → read-mcp-resource-JUFHCKSC.js} +2 -2
- package/chunks/{record-artifact-4XKZX3UW.js → record-artifact-DWSMBXYY.js} +2 -2
- package/chunks/{ripGrep-YNPFVCZP.js → ripGrep-XLCXANIO.js} +26 -26
- package/chunks/{ru-6BBHVZZV.js → ru-4L4LFHIT.js} +4 -1
- package/chunks/{run-qwen-serve-DMWV5N6L.js → run-qwen-serve-R6SBP6YS.js} +1232 -371
- package/chunks/{runtime-57WWRVHN.js → runtime-U3S33YUQ.js} +42 -37
- package/chunks/{scheduler-YBLGWSIL.js → scheduler-65QCIELP.js} +26 -26
- package/chunks/{send-message-F36YD6KQ.js → send-message-JZ752NWD.js} +3 -3
- package/chunks/{serve-R63NK3CV.js → serve-PSPOFCOD.js} +36 -34
- package/chunks/{server-Z22GCAXP.js → server-6P5ZB56O.js} +5561 -1377
- package/chunks/{session-HKAAI7BN.js → session-ILLOYW75.js} +298 -98
- package/chunks/{settings-3EYN66GK.js → settings-RMUJGYIK.js} +34 -32
- package/chunks/{shell-6YXINTWJ.js → shell-65GTAN5Q.js} +28 -26
- package/chunks/{skill-OO57P4X6.js → skill-L76U3YCX.js} +10 -10
- package/chunks/{spawnChannel-JD7G4VU6.js → spawnChannel-LXIGZ4EM.js} +28 -28
- package/chunks/{src-G5UPLZSZ.js → src-DWZT2X3Z.js} +87 -27
- package/chunks/{standalone-update-OB7F4JPZ.js → standalone-update-F6SRKPSD.js} +28 -28
- package/chunks/{startInteractiveUI-73EGLIIH.js → startInteractiveUI-UEJQP7S3.js} +730 -397
- package/chunks/{syntheticOutput-34H7LGA7.js → syntheticOutput-LELY6HAI.js} +3 -3
- package/chunks/{task-create-FRGOEIKY.js → task-create-QY3BIMNM.js} +8 -7
- package/chunks/{task-list-OW766BXZ.js → task-list-D2U47WBJ.js} +6 -5
- package/chunks/{task-stop-SIR5SNBN.js → task-stop-N6E5IYLH.js} +2 -2
- package/chunks/{task-update-YRA532MT.js → task-update-HJCQILLB.js} +8 -7
- package/chunks/{team-create-PECAAPXK.js → team-create-4QBZVOGN.js} +26 -26
- package/chunks/{team-delete-6OSECUZC.js → team-delete-RCWYDRF4.js} +6 -5
- package/chunks/{team-plan-approval-L6F434RY.js → team-plan-approval-BK4CIOFV.js} +26 -26
- package/chunks/{theme-manager-ZG4RY6GU.js → theme-manager-5F2IGW6E.js} +27 -27
- package/chunks/{todoWrite-YDMFEV4G.js → todoWrite-FKCGATPJ.js} +4 -4
- package/chunks/{tool-search-THVIWAPB.js → tool-search-J2ESO33H.js} +9 -9
- package/chunks/{total-session-admission-JOKNRIIA.js → total-session-admission-U4LZ5QTQ.js} +33 -33
- package/chunks/tree-sitter-YJVE2ZUK.js +2980 -0
- package/chunks/{trustedFolders-EOGT3UVS.js → trustedFolders-TIDOXCJA.js} +29 -28
- package/chunks/types-ML3TRJQ5.js +16 -0
- package/chunks/{updateCheck-2KYEYVSB.js → updateCheck-VRVR26FI.js} +29 -29
- package/chunks/{validateNonInterActiveAuth-EN6ZQSR2.js → validateNonInterActiveAuth-UGKYAVLG.js} +75 -71
- package/chunks/{version-3UEA6ZIR.js → version-7HR6VZAT.js} +1 -1
- package/chunks/{web-fetch-PAAEQKBW.js → web-fetch-QGODBB6S.js} +5 -5
- package/chunks/{workflow-QCCCMYP3.js → workflow-EDQAITEW.js} +27 -27
- package/chunks/workspace-providers-status-27UGAK77.js +73 -0
- package/chunks/workspace-registration-store-5H7577YQ.js +27 -0
- package/chunks/{workspace-registry-24QFLQYH.js → workspace-registry-F3THGAXC.js} +33 -33
- package/chunks/workspace-service-4JSAQAHP.js +86 -0
- package/chunks/workspace-skills-status-5JTWZHZU.js +72 -0
- package/chunks/{write-file-I3MUDRIE.js → write-file-UY6XCZZM.js} +27 -27
- package/chunks/{zh-RQE7I22T.js → zh-FSAH32JB.js} +6 -2
- package/chunks/{zh-TW-TBPQGHKH.js → zh-TW-D2YIE2LO.js} +6 -2
- package/cli.js +11 -11
- package/locales/ca.js +6 -0
- package/locales/de.js +6 -0
- package/locales/en.js +8 -0
- package/locales/fr.js +6 -0
- package/locales/ja.js +7 -1
- package/locales/pt.js +6 -0
- package/locales/ru.js +6 -0
- package/locales/zh-TW.js +9 -1
- package/locales/zh.js +9 -1
- package/package.json +3 -3
- package/web-shell/assets/{arc-C15hqnJe.js → arc-CObt_TK9.js} +1 -1
- package/web-shell/assets/{architectureDiagram-3BPJPVTR-B-At37J_.js → architectureDiagram-3BPJPVTR-B7aiJ6CK.js} +1 -1
- package/web-shell/assets/{blockDiagram-GPEHLZMM-B51wjcU7.js → blockDiagram-GPEHLZMM-BSK2CrID.js} +1 -1
- package/web-shell/assets/{c4Diagram-AAUBKEIU-xBK7BAwN.js → c4Diagram-AAUBKEIU-Bhx2p7T_.js} +1 -1
- package/web-shell/assets/channel-BBaLq8MV.js +1 -0
- package/web-shell/assets/{chunk-2J33WTMH-xKmLg7Yr.js → chunk-2J33WTMH-c3Hzv0Ni.js} +1 -1
- package/web-shell/assets/{chunk-4BX2VUAB-BfkdKZCM.js → chunk-4BX2VUAB-DNXaK7ZF.js} +1 -1
- package/web-shell/assets/{chunk-55IACEB6-DT713sZf.js → chunk-55IACEB6-BXjvDj_i.js} +1 -1
- package/web-shell/assets/{chunk-727SXJPM-CYEeAamv.js → chunk-727SXJPM-B6CaKFp-.js} +1 -1
- package/web-shell/assets/{chunk-AQP2D5EJ-DBN-5CFd.js → chunk-AQP2D5EJ-tij6Mz9B.js} +1 -1
- package/web-shell/assets/{chunk-FMBD7UC4-CGZKk4PH.js → chunk-FMBD7UC4-DdlsGk2h.js} +1 -1
- package/web-shell/assets/{chunk-ND2GUHAM-qQbC2O-y.js → chunk-ND2GUHAM-CdgGZSHE.js} +1 -1
- package/web-shell/assets/{chunk-QZHKN3VN-B3zeXwsX.js → chunk-QZHKN3VN-D8oJn1C0.js} +1 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-B2ZK6sWE.js +1 -0
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-B2ZK6sWE.js +1 -0
- package/web-shell/assets/{cose-bilkent-S5V4N54A-BKsl1Wvy.js → cose-bilkent-S5V4N54A-BUVmNp1Y.js} +1 -1
- package/web-shell/assets/{dagre-BM42HDAG-CuuuLiBK.js → dagre-BM42HDAG-CO4q310O.js} +1 -1
- package/web-shell/assets/{diagram-2AECGRRQ-CG4_eKiV.js → diagram-2AECGRRQ-C6gFvWkg.js} +1 -1
- package/web-shell/assets/{diagram-5GNKFQAL-DSFTmZB1.js → diagram-5GNKFQAL-NG2I_c0h.js} +1 -1
- package/web-shell/assets/{diagram-KO2AKTUF-BxwlEHn8.js → diagram-KO2AKTUF-DFKMS6I9.js} +1 -1
- package/web-shell/assets/{diagram-LMA3HP47-BUAg-jMG.js → diagram-LMA3HP47-BiElfsfP.js} +1 -1
- package/web-shell/assets/{diagram-OG6HWLK6-BFM2jlO5.js → diagram-OG6HWLK6-zLWDYUqu.js} +1 -1
- package/web-shell/assets/{erDiagram-TEJ5UH35-CerbFPa2.js → erDiagram-TEJ5UH35-DoVaazhK.js} +1 -1
- package/web-shell/assets/{flowDiagram-I6XJVG4X-BNeZz5Zz.js → flowDiagram-I6XJVG4X-0RLz-mXg.js} +1 -1
- package/web-shell/assets/{ganttDiagram-6RSMTGT7-CTOogLaM.js → ganttDiagram-6RSMTGT7-C-eX1A39.js} +3 -3
- package/web-shell/assets/{gitGraphDiagram-PVQCEYII-yxSFkXPj.js → gitGraphDiagram-PVQCEYII-BauQu1Bu.js} +1 -1
- package/web-shell/assets/index-3uAT3ehO.css +5 -0
- package/web-shell/assets/index-CVHa2QH7.js +3 -0
- package/web-shell/assets/index-D1KigWat.js +1128 -0
- package/web-shell/assets/{infoDiagram-5YYISTIA-DYdAUevm.js → infoDiagram-5YYISTIA-C800cFvZ.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-CNuijZ90.js → ishikawaDiagram-YF4QCWOH-CFK1Jk6e.js} +1 -1
- package/web-shell/assets/{journeyDiagram-JHISSGLW-BTyiuonf.js → journeyDiagram-JHISSGLW-Cjx0WAC4.js} +1 -1
- package/web-shell/assets/{kanban-definition-UN3LZRKU-DPJo0Uow.js → kanban-definition-UN3LZRKU-DWMDHbiv.js} +1 -1
- package/web-shell/assets/{linear-C8wKCbIC.js → linear-vpW4FrZs.js} +1 -1
- package/web-shell/assets/{mermaid.core-BV5o7nW5.js → mermaid.core-DsHRUnDd.js} +5 -5
- package/web-shell/assets/{mindmap-definition-RKZ34NQL-BtLcBmSt.js → mindmap-definition-RKZ34NQL-D3Eb1cAK.js} +1 -1
- package/web-shell/assets/{pieDiagram-4H26LBE5-C22J7A9Q.js → pieDiagram-4H26LBE5-Cr2-6sWt.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-W4KKPZXB-DSL10wiL.js → quadrantDiagram-W4KKPZXB-Yd7yUgVp.js} +1 -1
- package/web-shell/assets/{requirementDiagram-4Y6WPE33-feqh0UpX.js → requirementDiagram-4Y6WPE33-BE6SprL8.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-5OEKKPKP-Z4OVaWaZ.js → sankeyDiagram-5OEKKPKP-DzkuMK8d.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-3UESZ5HK-DIluIcb1.js → sequenceDiagram-3UESZ5HK-wD9A3Dhi.js} +1 -1
- package/web-shell/assets/{stateDiagram-AJRCARHV-hlhnuoYH.js → stateDiagram-AJRCARHV-BOp5q1Nm.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-BDsWUmPG.js +1 -0
- package/web-shell/assets/{timeline-definition-PNZ67QCA-Dqf_CqgL.js → timeline-definition-PNZ67QCA-Btc08sUA.js} +1 -1
- package/web-shell/assets/{vennDiagram-CIIHVFJN-DD2QhaTX.js → vennDiagram-CIIHVFJN-Bv6upsOA.js} +1 -1
- package/web-shell/assets/{wardley-L42UT6IY-B2uI85U_.js → wardley-L42UT6IY-D-XamnCK.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-YWT4CUSO-U1aJX71g.js → wardleyDiagram-YWT4CUSO-BbP_5Wfp.js} +1 -1
- package/web-shell/assets/{xychartDiagram-2RQKCTM6-C0ODHUee.js → xychartDiagram-2RQKCTM6-CO5Hh28b.js} +1 -1
- package/web-shell/index.html +2 -2
- package/chunks/chunk-CU3L64TP.js +0 -93
- package/chunks/initializer-UTQ7FB7G.js +0 -71
- package/chunks/list-DEICDL65.js +0 -74
- package/chunks/loadedSettingsAdapter-NOWEGDYJ.js +0 -68
- package/chunks/mcp-L5JXEEIA.js +0 -68
- package/chunks/nonInteractiveCli-LS2K4X6A.js +0 -124
- package/chunks/types-JNKGKUJT.js +0 -12
- package/chunks/workspace-providers-status-4KMGETOJ.js +0 -71
- package/chunks/workspace-service-RVLBMSMZ.js +0 -80
- package/chunks/workspace-skills-status-DS4ZVFTO.js +0 -70
- package/web-shell/assets/channel-CLiQD50f.js +0 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-D3sYqow5.js +0 -1
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-D3sYqow5.js +0 -1
- package/web-shell/assets/index-D5IWFVk1.css +0 -5
- package/web-shell/assets/index-KFJRDhX7.js +0 -783
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-BhQMwgpl.js +0 -1
|
@@ -1,20 +1,5 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
-
import {
|
|
4
|
-
INBOXES_DIR,
|
|
5
|
-
LEADER_NAME,
|
|
6
|
-
TASKS_DIR,
|
|
7
|
-
TEAMMATE_COLORS,
|
|
8
|
-
TEAMS_DIR,
|
|
9
|
-
TEAM_CONFIG_FILENAME
|
|
10
|
-
} from "./chunk-CPBF7KYF.js";
|
|
11
|
-
import {
|
|
12
|
-
atomicWriteJSON
|
|
13
|
-
} from "./chunk-ZLXQN2QS.js";
|
|
14
|
-
import {
|
|
15
|
-
Storage,
|
|
16
|
-
isNodeError
|
|
17
|
-
} from "./chunk-J4TSQ5EQ.js";
|
|
18
3
|
import {
|
|
19
4
|
init_esbuild_shims
|
|
20
5
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -51,54 +36,54 @@ var require_polyfills = __commonJS({
|
|
|
51
36
|
}
|
|
52
37
|
var chdir;
|
|
53
38
|
module.exports = patch;
|
|
54
|
-
function patch(
|
|
39
|
+
function patch(fs) {
|
|
55
40
|
if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
|
|
56
|
-
patchLchmod(
|
|
57
|
-
}
|
|
58
|
-
if (!
|
|
59
|
-
patchLutimes(
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
if (
|
|
80
|
-
|
|
41
|
+
patchLchmod(fs);
|
|
42
|
+
}
|
|
43
|
+
if (!fs.lutimes) {
|
|
44
|
+
patchLutimes(fs);
|
|
45
|
+
}
|
|
46
|
+
fs.chown = chownFix(fs.chown);
|
|
47
|
+
fs.fchown = chownFix(fs.fchown);
|
|
48
|
+
fs.lchown = chownFix(fs.lchown);
|
|
49
|
+
fs.chmod = chmodFix(fs.chmod);
|
|
50
|
+
fs.fchmod = chmodFix(fs.fchmod);
|
|
51
|
+
fs.lchmod = chmodFix(fs.lchmod);
|
|
52
|
+
fs.chownSync = chownFixSync(fs.chownSync);
|
|
53
|
+
fs.fchownSync = chownFixSync(fs.fchownSync);
|
|
54
|
+
fs.lchownSync = chownFixSync(fs.lchownSync);
|
|
55
|
+
fs.chmodSync = chmodFixSync(fs.chmodSync);
|
|
56
|
+
fs.fchmodSync = chmodFixSync(fs.fchmodSync);
|
|
57
|
+
fs.lchmodSync = chmodFixSync(fs.lchmodSync);
|
|
58
|
+
fs.stat = statFix(fs.stat);
|
|
59
|
+
fs.fstat = statFix(fs.fstat);
|
|
60
|
+
fs.lstat = statFix(fs.lstat);
|
|
61
|
+
fs.statSync = statFixSync(fs.statSync);
|
|
62
|
+
fs.fstatSync = statFixSync(fs.fstatSync);
|
|
63
|
+
fs.lstatSync = statFixSync(fs.lstatSync);
|
|
64
|
+
if (fs.chmod && !fs.lchmod) {
|
|
65
|
+
fs.lchmod = function(path, mode, cb) {
|
|
81
66
|
if (cb) process.nextTick(cb);
|
|
82
67
|
};
|
|
83
|
-
|
|
68
|
+
fs.lchmodSync = function() {
|
|
84
69
|
};
|
|
85
70
|
}
|
|
86
|
-
if (
|
|
87
|
-
|
|
71
|
+
if (fs.chown && !fs.lchown) {
|
|
72
|
+
fs.lchown = function(path, uid, gid, cb) {
|
|
88
73
|
if (cb) process.nextTick(cb);
|
|
89
74
|
};
|
|
90
|
-
|
|
75
|
+
fs.lchownSync = function() {
|
|
91
76
|
};
|
|
92
77
|
}
|
|
93
78
|
if (platform === "win32") {
|
|
94
|
-
|
|
79
|
+
fs.rename = typeof fs.rename !== "function" ? fs.rename : function(fs$rename) {
|
|
95
80
|
function rename(from, to, cb) {
|
|
96
81
|
var start = Date.now();
|
|
97
82
|
var backoff = 0;
|
|
98
83
|
fs$rename(from, to, /* @__PURE__ */ __name(function CB(er) {
|
|
99
84
|
if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
|
|
100
85
|
setTimeout(function() {
|
|
101
|
-
|
|
86
|
+
fs.stat(to, function(stater, st) {
|
|
102
87
|
if (stater && stater.code === "ENOENT")
|
|
103
88
|
fs$rename(from, to, CB);
|
|
104
89
|
else
|
|
@@ -115,9 +100,9 @@ var require_polyfills = __commonJS({
|
|
|
115
100
|
__name(rename, "rename");
|
|
116
101
|
if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
|
|
117
102
|
return rename;
|
|
118
|
-
}(
|
|
103
|
+
}(fs.rename);
|
|
119
104
|
}
|
|
120
|
-
|
|
105
|
+
fs.read = typeof fs.read !== "function" ? fs.read : function(fs$read) {
|
|
121
106
|
function read(fd, buffer, offset, length, position, callback_) {
|
|
122
107
|
var callback;
|
|
123
108
|
if (callback_ && typeof callback_ === "function") {
|
|
@@ -125,23 +110,23 @@ var require_polyfills = __commonJS({
|
|
|
125
110
|
callback = /* @__PURE__ */ __name(function(er, _, __) {
|
|
126
111
|
if (er && er.code === "EAGAIN" && eagCounter < 10) {
|
|
127
112
|
eagCounter++;
|
|
128
|
-
return fs$read.call(
|
|
113
|
+
return fs$read.call(fs, fd, buffer, offset, length, position, callback);
|
|
129
114
|
}
|
|
130
115
|
callback_.apply(this, arguments);
|
|
131
116
|
}, "callback");
|
|
132
117
|
}
|
|
133
|
-
return fs$read.call(
|
|
118
|
+
return fs$read.call(fs, fd, buffer, offset, length, position, callback);
|
|
134
119
|
}
|
|
135
120
|
__name(read, "read");
|
|
136
121
|
if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
|
|
137
122
|
return read;
|
|
138
|
-
}(
|
|
139
|
-
|
|
123
|
+
}(fs.read);
|
|
124
|
+
fs.readSync = typeof fs.readSync !== "function" ? fs.readSync : /* @__PURE__ */ function(fs$readSync) {
|
|
140
125
|
return function(fd, buffer, offset, length, position) {
|
|
141
126
|
var eagCounter = 0;
|
|
142
127
|
while (true) {
|
|
143
128
|
try {
|
|
144
|
-
return fs$readSync.call(
|
|
129
|
+
return fs$readSync.call(fs, fd, buffer, offset, length, position);
|
|
145
130
|
} catch (er) {
|
|
146
131
|
if (er.code === "EAGAIN" && eagCounter < 10) {
|
|
147
132
|
eagCounter++;
|
|
@@ -151,11 +136,11 @@ var require_polyfills = __commonJS({
|
|
|
151
136
|
}
|
|
152
137
|
}
|
|
153
138
|
};
|
|
154
|
-
}(
|
|
155
|
-
function patchLchmod(
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
139
|
+
}(fs.readSync);
|
|
140
|
+
function patchLchmod(fs2) {
|
|
141
|
+
fs2.lchmod = function(path, mode, callback) {
|
|
142
|
+
fs2.open(
|
|
143
|
+
path,
|
|
159
144
|
constants.O_WRONLY | constants.O_SYMLINK,
|
|
160
145
|
mode,
|
|
161
146
|
function(err, fd) {
|
|
@@ -163,74 +148,74 @@ var require_polyfills = __commonJS({
|
|
|
163
148
|
if (callback) callback(err);
|
|
164
149
|
return;
|
|
165
150
|
}
|
|
166
|
-
|
|
167
|
-
|
|
151
|
+
fs2.fchmod(fd, mode, function(err2) {
|
|
152
|
+
fs2.close(fd, function(err22) {
|
|
168
153
|
if (callback) callback(err2 || err22);
|
|
169
154
|
});
|
|
170
155
|
});
|
|
171
156
|
}
|
|
172
157
|
);
|
|
173
158
|
};
|
|
174
|
-
|
|
175
|
-
var fd =
|
|
159
|
+
fs2.lchmodSync = function(path, mode) {
|
|
160
|
+
var fd = fs2.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode);
|
|
176
161
|
var threw = true;
|
|
177
162
|
var ret;
|
|
178
163
|
try {
|
|
179
|
-
ret =
|
|
164
|
+
ret = fs2.fchmodSync(fd, mode);
|
|
180
165
|
threw = false;
|
|
181
166
|
} finally {
|
|
182
167
|
if (threw) {
|
|
183
168
|
try {
|
|
184
|
-
|
|
169
|
+
fs2.closeSync(fd);
|
|
185
170
|
} catch (er) {
|
|
186
171
|
}
|
|
187
172
|
} else {
|
|
188
|
-
|
|
173
|
+
fs2.closeSync(fd);
|
|
189
174
|
}
|
|
190
175
|
}
|
|
191
176
|
return ret;
|
|
192
177
|
};
|
|
193
178
|
}
|
|
194
179
|
__name(patchLchmod, "patchLchmod");
|
|
195
|
-
function patchLutimes(
|
|
196
|
-
if (constants.hasOwnProperty("O_SYMLINK") &&
|
|
197
|
-
|
|
198
|
-
|
|
180
|
+
function patchLutimes(fs2) {
|
|
181
|
+
if (constants.hasOwnProperty("O_SYMLINK") && fs2.futimes) {
|
|
182
|
+
fs2.lutimes = function(path, at, mt, cb) {
|
|
183
|
+
fs2.open(path, constants.O_SYMLINK, function(er, fd) {
|
|
199
184
|
if (er) {
|
|
200
185
|
if (cb) cb(er);
|
|
201
186
|
return;
|
|
202
187
|
}
|
|
203
|
-
|
|
204
|
-
|
|
188
|
+
fs2.futimes(fd, at, mt, function(er2) {
|
|
189
|
+
fs2.close(fd, function(er22) {
|
|
205
190
|
if (cb) cb(er2 || er22);
|
|
206
191
|
});
|
|
207
192
|
});
|
|
208
193
|
});
|
|
209
194
|
};
|
|
210
|
-
|
|
211
|
-
var fd =
|
|
195
|
+
fs2.lutimesSync = function(path, at, mt) {
|
|
196
|
+
var fd = fs2.openSync(path, constants.O_SYMLINK);
|
|
212
197
|
var ret;
|
|
213
198
|
var threw = true;
|
|
214
199
|
try {
|
|
215
|
-
ret =
|
|
200
|
+
ret = fs2.futimesSync(fd, at, mt);
|
|
216
201
|
threw = false;
|
|
217
202
|
} finally {
|
|
218
203
|
if (threw) {
|
|
219
204
|
try {
|
|
220
|
-
|
|
205
|
+
fs2.closeSync(fd);
|
|
221
206
|
} catch (er) {
|
|
222
207
|
}
|
|
223
208
|
} else {
|
|
224
|
-
|
|
209
|
+
fs2.closeSync(fd);
|
|
225
210
|
}
|
|
226
211
|
}
|
|
227
212
|
return ret;
|
|
228
213
|
};
|
|
229
|
-
} else if (
|
|
230
|
-
|
|
214
|
+
} else if (fs2.futimes) {
|
|
215
|
+
fs2.lutimes = function(_a, _b, _c, cb) {
|
|
231
216
|
if (cb) process.nextTick(cb);
|
|
232
217
|
};
|
|
233
|
-
|
|
218
|
+
fs2.lutimesSync = function() {
|
|
234
219
|
};
|
|
235
220
|
}
|
|
236
221
|
}
|
|
@@ -238,7 +223,7 @@ var require_polyfills = __commonJS({
|
|
|
238
223
|
function chmodFix(orig) {
|
|
239
224
|
if (!orig) return orig;
|
|
240
225
|
return function(target, mode, cb) {
|
|
241
|
-
return orig.call(
|
|
226
|
+
return orig.call(fs, target, mode, function(er) {
|
|
242
227
|
if (chownErOk(er)) er = null;
|
|
243
228
|
if (cb) cb.apply(this, arguments);
|
|
244
229
|
});
|
|
@@ -249,7 +234,7 @@ var require_polyfills = __commonJS({
|
|
|
249
234
|
if (!orig) return orig;
|
|
250
235
|
return function(target, mode) {
|
|
251
236
|
try {
|
|
252
|
-
return orig.call(
|
|
237
|
+
return orig.call(fs, target, mode);
|
|
253
238
|
} catch (er) {
|
|
254
239
|
if (!chownErOk(er)) throw er;
|
|
255
240
|
}
|
|
@@ -259,7 +244,7 @@ var require_polyfills = __commonJS({
|
|
|
259
244
|
function chownFix(orig) {
|
|
260
245
|
if (!orig) return orig;
|
|
261
246
|
return function(target, uid, gid, cb) {
|
|
262
|
-
return orig.call(
|
|
247
|
+
return orig.call(fs, target, uid, gid, function(er) {
|
|
263
248
|
if (chownErOk(er)) er = null;
|
|
264
249
|
if (cb) cb.apply(this, arguments);
|
|
265
250
|
});
|
|
@@ -270,7 +255,7 @@ var require_polyfills = __commonJS({
|
|
|
270
255
|
if (!orig) return orig;
|
|
271
256
|
return function(target, uid, gid) {
|
|
272
257
|
try {
|
|
273
|
-
return orig.call(
|
|
258
|
+
return orig.call(fs, target, uid, gid);
|
|
274
259
|
} catch (er) {
|
|
275
260
|
if (!chownErOk(er)) throw er;
|
|
276
261
|
}
|
|
@@ -292,14 +277,14 @@ var require_polyfills = __commonJS({
|
|
|
292
277
|
if (cb) cb.apply(this, arguments);
|
|
293
278
|
}
|
|
294
279
|
__name(callback, "callback");
|
|
295
|
-
return options ? orig.call(
|
|
280
|
+
return options ? orig.call(fs, target, options, callback) : orig.call(fs, target, callback);
|
|
296
281
|
};
|
|
297
282
|
}
|
|
298
283
|
__name(statFix, "statFix");
|
|
299
284
|
function statFixSync(orig) {
|
|
300
285
|
if (!orig) return orig;
|
|
301
286
|
return function(target, options) {
|
|
302
|
-
var stats = options ? orig.call(
|
|
287
|
+
var stats = options ? orig.call(fs, target, options) : orig.call(fs, target);
|
|
303
288
|
if (stats) {
|
|
304
289
|
if (stats.uid < 0) stats.uid += 4294967296;
|
|
305
290
|
if (stats.gid < 0) stats.gid += 4294967296;
|
|
@@ -332,16 +317,16 @@ var require_legacy_streams = __commonJS({
|
|
|
332
317
|
init_esbuild_shims();
|
|
333
318
|
var Stream = __require("stream").Stream;
|
|
334
319
|
module.exports = legacy;
|
|
335
|
-
function legacy(
|
|
320
|
+
function legacy(fs) {
|
|
336
321
|
return {
|
|
337
322
|
ReadStream,
|
|
338
323
|
WriteStream
|
|
339
324
|
};
|
|
340
|
-
function ReadStream(
|
|
341
|
-
if (!(this instanceof ReadStream)) return new ReadStream(
|
|
325
|
+
function ReadStream(path, options) {
|
|
326
|
+
if (!(this instanceof ReadStream)) return new ReadStream(path, options);
|
|
342
327
|
Stream.call(this);
|
|
343
328
|
var self = this;
|
|
344
|
-
this.path =
|
|
329
|
+
this.path = path;
|
|
345
330
|
this.fd = null;
|
|
346
331
|
this.readable = true;
|
|
347
332
|
this.paused = false;
|
|
@@ -375,7 +360,7 @@ var require_legacy_streams = __commonJS({
|
|
|
375
360
|
});
|
|
376
361
|
return;
|
|
377
362
|
}
|
|
378
|
-
|
|
363
|
+
fs.open(this.path, this.flags, this.mode, function(err, fd) {
|
|
379
364
|
if (err) {
|
|
380
365
|
self.emit("error", err);
|
|
381
366
|
self.readable = false;
|
|
@@ -387,10 +372,10 @@ var require_legacy_streams = __commonJS({
|
|
|
387
372
|
});
|
|
388
373
|
}
|
|
389
374
|
__name(ReadStream, "ReadStream");
|
|
390
|
-
function WriteStream(
|
|
391
|
-
if (!(this instanceof WriteStream)) return new WriteStream(
|
|
375
|
+
function WriteStream(path, options) {
|
|
376
|
+
if (!(this instanceof WriteStream)) return new WriteStream(path, options);
|
|
392
377
|
Stream.call(this);
|
|
393
|
-
this.path =
|
|
378
|
+
this.path = path;
|
|
394
379
|
this.fd = null;
|
|
395
380
|
this.writable = true;
|
|
396
381
|
this.flags = "w";
|
|
@@ -415,7 +400,7 @@ var require_legacy_streams = __commonJS({
|
|
|
415
400
|
this.busy = false;
|
|
416
401
|
this._queue = [];
|
|
417
402
|
if (this.fd === null) {
|
|
418
|
-
this._open =
|
|
403
|
+
this._open = fs.open;
|
|
419
404
|
this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
|
|
420
405
|
this.flush();
|
|
421
406
|
}
|
|
@@ -455,7 +440,7 @@ var require_clone = __commonJS({
|
|
|
455
440
|
var require_graceful_fs = __commonJS({
|
|
456
441
|
"node_modules/graceful-fs/graceful-fs.js"(exports, module) {
|
|
457
442
|
init_esbuild_shims();
|
|
458
|
-
var
|
|
443
|
+
var fs = __require("fs");
|
|
459
444
|
var polyfills = require_polyfills();
|
|
460
445
|
var legacy = require_legacy_streams();
|
|
461
446
|
var clone = require_clone();
|
|
@@ -489,12 +474,12 @@ var require_graceful_fs = __commonJS({
|
|
|
489
474
|
m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
|
|
490
475
|
console.error(m);
|
|
491
476
|
}, "debug");
|
|
492
|
-
if (!
|
|
477
|
+
if (!fs[gracefulQueue]) {
|
|
493
478
|
queue = globalThis[gracefulQueue] || [];
|
|
494
|
-
publishQueue(
|
|
495
|
-
|
|
479
|
+
publishQueue(fs, queue);
|
|
480
|
+
fs.close = function(fs$close) {
|
|
496
481
|
function close(fd, cb) {
|
|
497
|
-
return fs$close.call(
|
|
482
|
+
return fs$close.call(fs, fd, function(err) {
|
|
498
483
|
if (!err) {
|
|
499
484
|
resetQueue();
|
|
500
485
|
}
|
|
@@ -507,10 +492,10 @@ var require_graceful_fs = __commonJS({
|
|
|
507
492
|
value: fs$close
|
|
508
493
|
});
|
|
509
494
|
return close;
|
|
510
|
-
}(
|
|
511
|
-
|
|
495
|
+
}(fs.close);
|
|
496
|
+
fs.closeSync = function(fs$closeSync) {
|
|
512
497
|
function closeSync(fd) {
|
|
513
|
-
fs$closeSync.apply(
|
|
498
|
+
fs$closeSync.apply(fs, arguments);
|
|
514
499
|
resetQueue();
|
|
515
500
|
}
|
|
516
501
|
__name(closeSync, "closeSync");
|
|
@@ -518,38 +503,38 @@ var require_graceful_fs = __commonJS({
|
|
|
518
503
|
value: fs$closeSync
|
|
519
504
|
});
|
|
520
505
|
return closeSync;
|
|
521
|
-
}(
|
|
506
|
+
}(fs.closeSync);
|
|
522
507
|
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
|
|
523
508
|
process.on("exit", function() {
|
|
524
|
-
debug(
|
|
525
|
-
__require("assert").equal(
|
|
509
|
+
debug(fs[gracefulQueue]);
|
|
510
|
+
__require("assert").equal(fs[gracefulQueue].length, 0);
|
|
526
511
|
});
|
|
527
512
|
}
|
|
528
513
|
}
|
|
529
514
|
var queue;
|
|
530
515
|
if (!globalThis[gracefulQueue]) {
|
|
531
|
-
publishQueue(globalThis,
|
|
516
|
+
publishQueue(globalThis, fs[gracefulQueue]);
|
|
532
517
|
}
|
|
533
|
-
module.exports = patch(clone(
|
|
534
|
-
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !
|
|
535
|
-
module.exports = patch(
|
|
536
|
-
|
|
518
|
+
module.exports = patch(clone(fs));
|
|
519
|
+
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs.__patched) {
|
|
520
|
+
module.exports = patch(fs);
|
|
521
|
+
fs.__patched = true;
|
|
537
522
|
}
|
|
538
|
-
function patch(
|
|
539
|
-
polyfills(
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
var fs$readFile =
|
|
544
|
-
|
|
545
|
-
function
|
|
523
|
+
function patch(fs2) {
|
|
524
|
+
polyfills(fs2);
|
|
525
|
+
fs2.gracefulify = patch;
|
|
526
|
+
fs2.createReadStream = createReadStream;
|
|
527
|
+
fs2.createWriteStream = createWriteStream;
|
|
528
|
+
var fs$readFile = fs2.readFile;
|
|
529
|
+
fs2.readFile = readFile;
|
|
530
|
+
function readFile(path, options, cb) {
|
|
546
531
|
if (typeof options === "function")
|
|
547
532
|
cb = options, options = null;
|
|
548
|
-
return go$readFile(
|
|
549
|
-
function go$readFile(
|
|
550
|
-
return fs$readFile(
|
|
533
|
+
return go$readFile(path, options, cb);
|
|
534
|
+
function go$readFile(path2, options2, cb2, startTime) {
|
|
535
|
+
return fs$readFile(path2, options2, function(err) {
|
|
551
536
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
552
|
-
enqueue([go$readFile, [
|
|
537
|
+
enqueue([go$readFile, [path2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
553
538
|
else {
|
|
554
539
|
if (typeof cb2 === "function")
|
|
555
540
|
cb2.apply(this, arguments);
|
|
@@ -558,17 +543,17 @@ var require_graceful_fs = __commonJS({
|
|
|
558
543
|
}
|
|
559
544
|
__name(go$readFile, "go$readFile");
|
|
560
545
|
}
|
|
561
|
-
__name(
|
|
562
|
-
var fs$writeFile =
|
|
563
|
-
|
|
564
|
-
function
|
|
546
|
+
__name(readFile, "readFile");
|
|
547
|
+
var fs$writeFile = fs2.writeFile;
|
|
548
|
+
fs2.writeFile = writeFile;
|
|
549
|
+
function writeFile(path, data, options, cb) {
|
|
565
550
|
if (typeof options === "function")
|
|
566
551
|
cb = options, options = null;
|
|
567
|
-
return go$writeFile(
|
|
568
|
-
function go$writeFile(
|
|
569
|
-
return fs$writeFile(
|
|
552
|
+
return go$writeFile(path, data, options, cb);
|
|
553
|
+
function go$writeFile(path2, data2, options2, cb2, startTime) {
|
|
554
|
+
return fs$writeFile(path2, data2, options2, function(err) {
|
|
570
555
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
571
|
-
enqueue([go$writeFile, [
|
|
556
|
+
enqueue([go$writeFile, [path2, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
572
557
|
else {
|
|
573
558
|
if (typeof cb2 === "function")
|
|
574
559
|
cb2.apply(this, arguments);
|
|
@@ -577,18 +562,18 @@ var require_graceful_fs = __commonJS({
|
|
|
577
562
|
}
|
|
578
563
|
__name(go$writeFile, "go$writeFile");
|
|
579
564
|
}
|
|
580
|
-
__name(
|
|
581
|
-
var fs$appendFile =
|
|
565
|
+
__name(writeFile, "writeFile");
|
|
566
|
+
var fs$appendFile = fs2.appendFile;
|
|
582
567
|
if (fs$appendFile)
|
|
583
|
-
|
|
584
|
-
function appendFile(
|
|
568
|
+
fs2.appendFile = appendFile;
|
|
569
|
+
function appendFile(path, data, options, cb) {
|
|
585
570
|
if (typeof options === "function")
|
|
586
571
|
cb = options, options = null;
|
|
587
|
-
return go$appendFile(
|
|
588
|
-
function go$appendFile(
|
|
589
|
-
return fs$appendFile(
|
|
572
|
+
return go$appendFile(path, data, options, cb);
|
|
573
|
+
function go$appendFile(path2, data2, options2, cb2, startTime) {
|
|
574
|
+
return fs$appendFile(path2, data2, options2, function(err) {
|
|
590
575
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
591
|
-
enqueue([go$appendFile, [
|
|
576
|
+
enqueue([go$appendFile, [path2, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
592
577
|
else {
|
|
593
578
|
if (typeof cb2 === "function")
|
|
594
579
|
cb2.apply(this, arguments);
|
|
@@ -598,9 +583,9 @@ var require_graceful_fs = __commonJS({
|
|
|
598
583
|
__name(go$appendFile, "go$appendFile");
|
|
599
584
|
}
|
|
600
585
|
__name(appendFile, "appendFile");
|
|
601
|
-
var fs$copyFile =
|
|
586
|
+
var fs$copyFile = fs2.copyFile;
|
|
602
587
|
if (fs$copyFile)
|
|
603
|
-
|
|
588
|
+
fs2.copyFile = copyFile;
|
|
604
589
|
function copyFile(src, dest, flags, cb) {
|
|
605
590
|
if (typeof flags === "function") {
|
|
606
591
|
cb = flags;
|
|
@@ -620,34 +605,34 @@ var require_graceful_fs = __commonJS({
|
|
|
620
605
|
__name(go$copyFile, "go$copyFile");
|
|
621
606
|
}
|
|
622
607
|
__name(copyFile, "copyFile");
|
|
623
|
-
var fs$readdir =
|
|
624
|
-
|
|
608
|
+
var fs$readdir = fs2.readdir;
|
|
609
|
+
fs2.readdir = readdir;
|
|
625
610
|
var noReaddirOptionVersions = /^v[0-5]\./;
|
|
626
|
-
function
|
|
611
|
+
function readdir(path, options, cb) {
|
|
627
612
|
if (typeof options === "function")
|
|
628
613
|
cb = options, options = null;
|
|
629
|
-
var go$readdir = noReaddirOptionVersions.test(process.version) ? /* @__PURE__ */ __name(function go$readdir2(
|
|
630
|
-
return fs$readdir(
|
|
631
|
-
|
|
614
|
+
var go$readdir = noReaddirOptionVersions.test(process.version) ? /* @__PURE__ */ __name(function go$readdir2(path2, options2, cb2, startTime) {
|
|
615
|
+
return fs$readdir(path2, fs$readdirCallback(
|
|
616
|
+
path2,
|
|
632
617
|
options2,
|
|
633
618
|
cb2,
|
|
634
619
|
startTime
|
|
635
620
|
));
|
|
636
|
-
}, "go$readdir") : /* @__PURE__ */ __name(function go$readdir2(
|
|
637
|
-
return fs$readdir(
|
|
638
|
-
|
|
621
|
+
}, "go$readdir") : /* @__PURE__ */ __name(function go$readdir2(path2, options2, cb2, startTime) {
|
|
622
|
+
return fs$readdir(path2, options2, fs$readdirCallback(
|
|
623
|
+
path2,
|
|
639
624
|
options2,
|
|
640
625
|
cb2,
|
|
641
626
|
startTime
|
|
642
627
|
));
|
|
643
628
|
}, "go$readdir");
|
|
644
|
-
return go$readdir(
|
|
645
|
-
function fs$readdirCallback(
|
|
629
|
+
return go$readdir(path, options, cb);
|
|
630
|
+
function fs$readdirCallback(path2, options2, cb2, startTime) {
|
|
646
631
|
return function(err, files) {
|
|
647
632
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
648
633
|
enqueue([
|
|
649
634
|
go$readdir,
|
|
650
|
-
[
|
|
635
|
+
[path2, options2, cb2],
|
|
651
636
|
err,
|
|
652
637
|
startTime || Date.now(),
|
|
653
638
|
Date.now()
|
|
@@ -662,23 +647,23 @@ var require_graceful_fs = __commonJS({
|
|
|
662
647
|
}
|
|
663
648
|
__name(fs$readdirCallback, "fs$readdirCallback");
|
|
664
649
|
}
|
|
665
|
-
__name(
|
|
650
|
+
__name(readdir, "readdir");
|
|
666
651
|
if (process.version.substr(0, 4) === "v0.8") {
|
|
667
|
-
var legStreams = legacy(
|
|
652
|
+
var legStreams = legacy(fs2);
|
|
668
653
|
ReadStream = legStreams.ReadStream;
|
|
669
654
|
WriteStream = legStreams.WriteStream;
|
|
670
655
|
}
|
|
671
|
-
var fs$ReadStream =
|
|
656
|
+
var fs$ReadStream = fs2.ReadStream;
|
|
672
657
|
if (fs$ReadStream) {
|
|
673
658
|
ReadStream.prototype = Object.create(fs$ReadStream.prototype);
|
|
674
659
|
ReadStream.prototype.open = ReadStream$open;
|
|
675
660
|
}
|
|
676
|
-
var fs$WriteStream =
|
|
661
|
+
var fs$WriteStream = fs2.WriteStream;
|
|
677
662
|
if (fs$WriteStream) {
|
|
678
663
|
WriteStream.prototype = Object.create(fs$WriteStream.prototype);
|
|
679
664
|
WriteStream.prototype.open = WriteStream$open;
|
|
680
665
|
}
|
|
681
|
-
Object.defineProperty(
|
|
666
|
+
Object.defineProperty(fs2, "ReadStream", {
|
|
682
667
|
get: /* @__PURE__ */ __name(function() {
|
|
683
668
|
return ReadStream;
|
|
684
669
|
}, "get"),
|
|
@@ -688,7 +673,7 @@ var require_graceful_fs = __commonJS({
|
|
|
688
673
|
enumerable: true,
|
|
689
674
|
configurable: true
|
|
690
675
|
});
|
|
691
|
-
Object.defineProperty(
|
|
676
|
+
Object.defineProperty(fs2, "WriteStream", {
|
|
692
677
|
get: /* @__PURE__ */ __name(function() {
|
|
693
678
|
return WriteStream;
|
|
694
679
|
}, "get"),
|
|
@@ -699,7 +684,7 @@ var require_graceful_fs = __commonJS({
|
|
|
699
684
|
configurable: true
|
|
700
685
|
});
|
|
701
686
|
var FileReadStream = ReadStream;
|
|
702
|
-
Object.defineProperty(
|
|
687
|
+
Object.defineProperty(fs2, "FileReadStream", {
|
|
703
688
|
get: /* @__PURE__ */ __name(function() {
|
|
704
689
|
return FileReadStream;
|
|
705
690
|
}, "get"),
|
|
@@ -710,7 +695,7 @@ var require_graceful_fs = __commonJS({
|
|
|
710
695
|
configurable: true
|
|
711
696
|
});
|
|
712
697
|
var FileWriteStream = WriteStream;
|
|
713
|
-
Object.defineProperty(
|
|
698
|
+
Object.defineProperty(fs2, "FileWriteStream", {
|
|
714
699
|
get: /* @__PURE__ */ __name(function() {
|
|
715
700
|
return FileWriteStream;
|
|
716
701
|
}, "get"),
|
|
@@ -720,7 +705,7 @@ var require_graceful_fs = __commonJS({
|
|
|
720
705
|
enumerable: true,
|
|
721
706
|
configurable: true
|
|
722
707
|
});
|
|
723
|
-
function ReadStream(
|
|
708
|
+
function ReadStream(path, options) {
|
|
724
709
|
if (this instanceof ReadStream)
|
|
725
710
|
return fs$ReadStream.apply(this, arguments), this;
|
|
726
711
|
else
|
|
@@ -742,7 +727,7 @@ var require_graceful_fs = __commonJS({
|
|
|
742
727
|
});
|
|
743
728
|
}
|
|
744
729
|
__name(ReadStream$open, "ReadStream$open");
|
|
745
|
-
function WriteStream(
|
|
730
|
+
function WriteStream(path, options) {
|
|
746
731
|
if (this instanceof WriteStream)
|
|
747
732
|
return fs$WriteStream.apply(this, arguments), this;
|
|
748
733
|
else
|
|
@@ -762,24 +747,24 @@ var require_graceful_fs = __commonJS({
|
|
|
762
747
|
});
|
|
763
748
|
}
|
|
764
749
|
__name(WriteStream$open, "WriteStream$open");
|
|
765
|
-
function createReadStream(
|
|
766
|
-
return new
|
|
750
|
+
function createReadStream(path, options) {
|
|
751
|
+
return new fs2.ReadStream(path, options);
|
|
767
752
|
}
|
|
768
753
|
__name(createReadStream, "createReadStream");
|
|
769
|
-
function createWriteStream(
|
|
770
|
-
return new
|
|
754
|
+
function createWriteStream(path, options) {
|
|
755
|
+
return new fs2.WriteStream(path, options);
|
|
771
756
|
}
|
|
772
757
|
__name(createWriteStream, "createWriteStream");
|
|
773
|
-
var fs$open =
|
|
774
|
-
|
|
775
|
-
function open(
|
|
758
|
+
var fs$open = fs2.open;
|
|
759
|
+
fs2.open = open;
|
|
760
|
+
function open(path, flags, mode, cb) {
|
|
776
761
|
if (typeof mode === "function")
|
|
777
762
|
cb = mode, mode = null;
|
|
778
|
-
return go$open(
|
|
779
|
-
function go$open(
|
|
780
|
-
return fs$open(
|
|
763
|
+
return go$open(path, flags, mode, cb);
|
|
764
|
+
function go$open(path2, flags2, mode2, cb2, startTime) {
|
|
765
|
+
return fs$open(path2, flags2, mode2, function(err, fd) {
|
|
781
766
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
782
|
-
enqueue([go$open, [
|
|
767
|
+
enqueue([go$open, [path2, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
783
768
|
else {
|
|
784
769
|
if (typeof cb2 === "function")
|
|
785
770
|
cb2.apply(this, arguments);
|
|
@@ -789,22 +774,22 @@ var require_graceful_fs = __commonJS({
|
|
|
789
774
|
__name(go$open, "go$open");
|
|
790
775
|
}
|
|
791
776
|
__name(open, "open");
|
|
792
|
-
return
|
|
777
|
+
return fs2;
|
|
793
778
|
}
|
|
794
779
|
__name(patch, "patch");
|
|
795
780
|
function enqueue(elem) {
|
|
796
781
|
debug("ENQUEUE", elem[0].name, elem[1]);
|
|
797
|
-
|
|
782
|
+
fs[gracefulQueue].push(elem);
|
|
798
783
|
retry();
|
|
799
784
|
}
|
|
800
785
|
__name(enqueue, "enqueue");
|
|
801
786
|
var retryTimer;
|
|
802
787
|
function resetQueue() {
|
|
803
788
|
var now = Date.now();
|
|
804
|
-
for (var i = 0; i <
|
|
805
|
-
if (
|
|
806
|
-
|
|
807
|
-
|
|
789
|
+
for (var i = 0; i < fs[gracefulQueue].length; ++i) {
|
|
790
|
+
if (fs[gracefulQueue][i].length > 2) {
|
|
791
|
+
fs[gracefulQueue][i][3] = now;
|
|
792
|
+
fs[gracefulQueue][i][4] = now;
|
|
808
793
|
}
|
|
809
794
|
}
|
|
810
795
|
retry();
|
|
@@ -813,9 +798,9 @@ var require_graceful_fs = __commonJS({
|
|
|
813
798
|
function retry() {
|
|
814
799
|
clearTimeout(retryTimer);
|
|
815
800
|
retryTimer = void 0;
|
|
816
|
-
if (
|
|
801
|
+
if (fs[gracefulQueue].length === 0)
|
|
817
802
|
return;
|
|
818
|
-
var elem =
|
|
803
|
+
var elem = fs[gracefulQueue].shift();
|
|
819
804
|
var fn = elem[0];
|
|
820
805
|
var args = elem[1];
|
|
821
806
|
var err = elem[2];
|
|
@@ -837,7 +822,7 @@ var require_graceful_fs = __commonJS({
|
|
|
837
822
|
debug("RETRY", fn.name, args);
|
|
838
823
|
fn.apply(null, args.concat([startTime]));
|
|
839
824
|
} else {
|
|
840
|
-
|
|
825
|
+
fs[gracefulQueue].push(elem);
|
|
841
826
|
}
|
|
842
827
|
}
|
|
843
828
|
if (retryTimer === void 0) {
|
|
@@ -1280,10 +1265,10 @@ var require_mtime_precision = __commonJS({
|
|
|
1280
1265
|
"use strict";
|
|
1281
1266
|
init_esbuild_shims();
|
|
1282
1267
|
var cacheSymbol = Symbol();
|
|
1283
|
-
function probe(file,
|
|
1284
|
-
const cachedPrecision =
|
|
1268
|
+
function probe(file, fs, callback) {
|
|
1269
|
+
const cachedPrecision = fs[cacheSymbol];
|
|
1285
1270
|
if (cachedPrecision) {
|
|
1286
|
-
return
|
|
1271
|
+
return fs.stat(file, (err, stat) => {
|
|
1287
1272
|
if (err) {
|
|
1288
1273
|
return callback(err);
|
|
1289
1274
|
}
|
|
@@ -1291,16 +1276,16 @@ var require_mtime_precision = __commonJS({
|
|
|
1291
1276
|
});
|
|
1292
1277
|
}
|
|
1293
1278
|
const mtime = new Date(Math.ceil(Date.now() / 1e3) * 1e3 + 5);
|
|
1294
|
-
|
|
1279
|
+
fs.utimes(file, mtime, mtime, (err) => {
|
|
1295
1280
|
if (err) {
|
|
1296
1281
|
return callback(err);
|
|
1297
1282
|
}
|
|
1298
|
-
|
|
1283
|
+
fs.stat(file, (err2, stat) => {
|
|
1299
1284
|
if (err2) {
|
|
1300
1285
|
return callback(err2);
|
|
1301
1286
|
}
|
|
1302
1287
|
const precision = stat.mtime.getTime() % 1e3 === 0 ? "s" : "ms";
|
|
1303
|
-
Object.defineProperty(
|
|
1288
|
+
Object.defineProperty(fs, cacheSymbol, { value: precision });
|
|
1304
1289
|
callback(null, stat.mtime, precision);
|
|
1305
1290
|
});
|
|
1306
1291
|
});
|
|
@@ -1324,8 +1309,8 @@ var require_lockfile = __commonJS({
|
|
|
1324
1309
|
"node_modules/proper-lockfile/lib/lockfile.js"(exports, module) {
|
|
1325
1310
|
"use strict";
|
|
1326
1311
|
init_esbuild_shims();
|
|
1327
|
-
var
|
|
1328
|
-
var
|
|
1312
|
+
var path = __require("path");
|
|
1313
|
+
var fs = require_graceful_fs();
|
|
1329
1314
|
var retry = require_retry2();
|
|
1330
1315
|
var onExit = require_signal_exit();
|
|
1331
1316
|
var mtimePrecision = require_mtime_precision();
|
|
@@ -1336,7 +1321,7 @@ var require_lockfile = __commonJS({
|
|
|
1336
1321
|
__name(getLockFile, "getLockFile");
|
|
1337
1322
|
function resolveCanonicalPath(file, options, callback) {
|
|
1338
1323
|
if (!options.realpath) {
|
|
1339
|
-
return callback(null,
|
|
1324
|
+
return callback(null, path.resolve(file));
|
|
1340
1325
|
}
|
|
1341
1326
|
options.fs.realpath(file, callback);
|
|
1342
1327
|
}
|
|
@@ -1463,7 +1448,7 @@ var require_lockfile = __commonJS({
|
|
|
1463
1448
|
update: null,
|
|
1464
1449
|
realpath: true,
|
|
1465
1450
|
retries: 0,
|
|
1466
|
-
fs
|
|
1451
|
+
fs,
|
|
1467
1452
|
onCompromised: /* @__PURE__ */ __name((err) => {
|
|
1468
1453
|
throw err;
|
|
1469
1454
|
}, "onCompromised"),
|
|
@@ -1508,7 +1493,7 @@ var require_lockfile = __commonJS({
|
|
|
1508
1493
|
__name(lock, "lock");
|
|
1509
1494
|
function unlock(file, options, callback) {
|
|
1510
1495
|
options = {
|
|
1511
|
-
fs
|
|
1496
|
+
fs,
|
|
1512
1497
|
realpath: true,
|
|
1513
1498
|
...options
|
|
1514
1499
|
};
|
|
@@ -1531,7 +1516,7 @@ var require_lockfile = __commonJS({
|
|
|
1531
1516
|
options = {
|
|
1532
1517
|
stale: 1e4,
|
|
1533
1518
|
realpath: true,
|
|
1534
|
-
fs
|
|
1519
|
+
fs,
|
|
1535
1520
|
...options
|
|
1536
1521
|
};
|
|
1537
1522
|
options.stale = Math.max(options.stale || 0, 2e3);
|
|
@@ -1573,16 +1558,16 @@ var require_adapter = __commonJS({
|
|
|
1573
1558
|
"node_modules/proper-lockfile/lib/adapter.js"(exports, module) {
|
|
1574
1559
|
"use strict";
|
|
1575
1560
|
init_esbuild_shims();
|
|
1576
|
-
var
|
|
1577
|
-
function createSyncFs(
|
|
1561
|
+
var fs = require_graceful_fs();
|
|
1562
|
+
function createSyncFs(fs2) {
|
|
1578
1563
|
const methods = ["mkdir", "realpath", "stat", "rmdir", "utimes"];
|
|
1579
|
-
const newFs = { ...
|
|
1564
|
+
const newFs = { ...fs2 };
|
|
1580
1565
|
methods.forEach((method) => {
|
|
1581
1566
|
newFs[method] = (...args) => {
|
|
1582
1567
|
const callback = args.pop();
|
|
1583
1568
|
let ret;
|
|
1584
1569
|
try {
|
|
1585
|
-
ret =
|
|
1570
|
+
ret = fs2[`${method}Sync`](...args);
|
|
1586
1571
|
} catch (err) {
|
|
1587
1572
|
return callback(err);
|
|
1588
1573
|
}
|
|
@@ -1623,7 +1608,7 @@ var require_adapter = __commonJS({
|
|
|
1623
1608
|
__name(toSync, "toSync");
|
|
1624
1609
|
function toSyncOptions(options) {
|
|
1625
1610
|
options = { ...options };
|
|
1626
|
-
options.fs = createSyncFs(options.fs ||
|
|
1611
|
+
options.fs = createSyncFs(options.fs || fs);
|
|
1627
1612
|
if (typeof options.retries === "number" && options.retries > 0 || options.retries && typeof options.retries.retries === "number" && options.retries.retries > 0) {
|
|
1628
1613
|
throw Object.assign(new Error("Cannot use retries with the sync api"), { code: "ESYNC" });
|
|
1629
1614
|
}
|
|
@@ -1681,205 +1666,7 @@ var require_proper_lockfile = __commonJS({
|
|
|
1681
1666
|
}
|
|
1682
1667
|
});
|
|
1683
1668
|
|
|
1684
|
-
// packages/core/src/agents/team/teamHelpers.ts
|
|
1685
|
-
init_esbuild_shims();
|
|
1686
|
-
import * as fs from "node:fs/promises";
|
|
1687
|
-
import * as path from "node:path";
|
|
1688
|
-
function getTeamsRootDir() {
|
|
1689
|
-
return path.join(Storage.getGlobalQwenDir(), TEAMS_DIR);
|
|
1690
|
-
}
|
|
1691
|
-
__name(getTeamsRootDir, "getTeamsRootDir");
|
|
1692
|
-
function getTeamDir(teamName) {
|
|
1693
|
-
return path.join(getTeamsRootDir(), teamName);
|
|
1694
|
-
}
|
|
1695
|
-
__name(getTeamDir, "getTeamDir");
|
|
1696
|
-
function getTeamFilePath(teamName) {
|
|
1697
|
-
return path.join(getTeamDir(teamName), TEAM_CONFIG_FILENAME);
|
|
1698
|
-
}
|
|
1699
|
-
__name(getTeamFilePath, "getTeamFilePath");
|
|
1700
|
-
function getInboxesDir(teamName) {
|
|
1701
|
-
return path.join(getTeamDir(teamName), INBOXES_DIR);
|
|
1702
|
-
}
|
|
1703
|
-
__name(getInboxesDir, "getInboxesDir");
|
|
1704
|
-
function getTasksDir(teamName) {
|
|
1705
|
-
return path.join(Storage.getGlobalQwenDir(), TASKS_DIR, teamName);
|
|
1706
|
-
}
|
|
1707
|
-
__name(getTasksDir, "getTasksDir");
|
|
1708
|
-
function sanitizeName(name) {
|
|
1709
|
-
return name.toLowerCase().replace(/[^a-z0-9-]/g, "-").replace(/-+/g, "-").replace(/^-|-$/g, "");
|
|
1710
|
-
}
|
|
1711
|
-
__name(sanitizeName, "sanitizeName");
|
|
1712
|
-
function formatAgentId(name, teamName) {
|
|
1713
|
-
return `${sanitizeName(name)}@${sanitizeName(teamName)}`;
|
|
1714
|
-
}
|
|
1715
|
-
__name(formatAgentId, "formatAgentId");
|
|
1716
|
-
function generateUniqueTeammateName(baseName, existingMembers) {
|
|
1717
|
-
const sanitized = sanitizeName(baseName);
|
|
1718
|
-
if (!sanitized) {
|
|
1719
|
-
throw new Error(
|
|
1720
|
-
`Teammate name "${baseName}" sanitizes to an empty string. Choose a name with at least one alphanumeric character.`
|
|
1721
|
-
);
|
|
1722
|
-
}
|
|
1723
|
-
if (sanitized === LEADER_NAME) {
|
|
1724
|
-
throw new Error(
|
|
1725
|
-
`"${LEADER_NAME}" is reserved for the team leader. Choose a different teammate name.`
|
|
1726
|
-
);
|
|
1727
|
-
}
|
|
1728
|
-
const existingNames = new Set(existingMembers.map((m) => m.name));
|
|
1729
|
-
if (existingNames.has(sanitized)) {
|
|
1730
|
-
const existingList = [...existingNames].join(", ") || "<none>";
|
|
1731
|
-
throw new Error(
|
|
1732
|
-
`A teammate named "${sanitized}" already exists in this team (existing: ${existingList}). Choose a different name.`
|
|
1733
|
-
);
|
|
1734
|
-
}
|
|
1735
|
-
return sanitized;
|
|
1736
|
-
}
|
|
1737
|
-
__name(generateUniqueTeammateName, "generateUniqueTeammateName");
|
|
1738
|
-
function assignTeammateColor(existingMembers) {
|
|
1739
|
-
const usedColors = new Set(
|
|
1740
|
-
existingMembers.map((m) => m.color).filter((c) => c !== void 0)
|
|
1741
|
-
);
|
|
1742
|
-
for (const color of TEAMMATE_COLORS) {
|
|
1743
|
-
if (!usedColors.has(color)) {
|
|
1744
|
-
return color;
|
|
1745
|
-
}
|
|
1746
|
-
}
|
|
1747
|
-
return TEAMMATE_COLORS[existingMembers.length % TEAMMATE_COLORS.length];
|
|
1748
|
-
}
|
|
1749
|
-
__name(assignTeammateColor, "assignTeammateColor");
|
|
1750
|
-
function clearTeammateColors(members) {
|
|
1751
|
-
return members.map((m) => {
|
|
1752
|
-
const { color: _, ...rest } = m;
|
|
1753
|
-
return rest;
|
|
1754
|
-
});
|
|
1755
|
-
}
|
|
1756
|
-
__name(clearTeammateColors, "clearTeammateColors");
|
|
1757
|
-
function setMemberActive(members, agentId, isActive) {
|
|
1758
|
-
return members.map((m) => m.agentId === agentId ? { ...m, isActive } : m);
|
|
1759
|
-
}
|
|
1760
|
-
__name(setMemberActive, "setMemberActive");
|
|
1761
|
-
function findMemberById(members, agentId) {
|
|
1762
|
-
return members.find((m) => m.agentId === agentId);
|
|
1763
|
-
}
|
|
1764
|
-
__name(findMemberById, "findMemberById");
|
|
1765
|
-
function findMemberByName(members, name) {
|
|
1766
|
-
const sanitized = sanitizeName(name);
|
|
1767
|
-
return members.find((m) => m.name === sanitized);
|
|
1768
|
-
}
|
|
1769
|
-
__name(findMemberByName, "findMemberByName");
|
|
1770
|
-
function classifyShutdownResponse(message) {
|
|
1771
|
-
const trimmed = message.trimStart();
|
|
1772
|
-
if (/^shutdown_approved\b/i.test(trimmed)) return "shutdown_approved";
|
|
1773
|
-
if (/^shutdown_rejected\b/i.test(trimmed)) return "shutdown_rejected";
|
|
1774
|
-
return void 0;
|
|
1775
|
-
}
|
|
1776
|
-
__name(classifyShutdownResponse, "classifyShutdownResponse");
|
|
1777
|
-
async function readTeamFile(teamName) {
|
|
1778
|
-
const filePath = getTeamFilePath(teamName);
|
|
1779
|
-
try {
|
|
1780
|
-
const raw = await fs.readFile(filePath, "utf-8");
|
|
1781
|
-
return JSON.parse(raw);
|
|
1782
|
-
} catch (err) {
|
|
1783
|
-
if (isNodeError(err) && err.code === "ENOENT") {
|
|
1784
|
-
return void 0;
|
|
1785
|
-
}
|
|
1786
|
-
throw err;
|
|
1787
|
-
}
|
|
1788
|
-
}
|
|
1789
|
-
__name(readTeamFile, "readTeamFile");
|
|
1790
|
-
async function writeTeamFile(teamName, teamFile) {
|
|
1791
|
-
const filePath = getTeamFilePath(teamName);
|
|
1792
|
-
await fs.mkdir(path.dirname(filePath), { recursive: true });
|
|
1793
|
-
await atomicWriteJSON(filePath, teamFile);
|
|
1794
|
-
}
|
|
1795
|
-
__name(writeTeamFile, "writeTeamFile");
|
|
1796
|
-
async function createTeamFile(teamName, teamFile) {
|
|
1797
|
-
const filePath = getTeamFilePath(teamName);
|
|
1798
|
-
await fs.mkdir(path.dirname(filePath), { recursive: true });
|
|
1799
|
-
await fs.writeFile(filePath, JSON.stringify(teamFile, null, 2) + "\n", {
|
|
1800
|
-
encoding: "utf-8",
|
|
1801
|
-
flag: "wx"
|
|
1802
|
-
});
|
|
1803
|
-
}
|
|
1804
|
-
__name(createTeamFile, "createTeamFile");
|
|
1805
|
-
function isPidAlive(pid) {
|
|
1806
|
-
try {
|
|
1807
|
-
process.kill(pid, 0);
|
|
1808
|
-
return true;
|
|
1809
|
-
} catch (err) {
|
|
1810
|
-
return isNodeError(err) && err.code === "EPERM";
|
|
1811
|
-
}
|
|
1812
|
-
}
|
|
1813
|
-
__name(isPidAlive, "isPidAlive");
|
|
1814
|
-
async function tryReclaimStaleTeam(teamName) {
|
|
1815
|
-
let existing;
|
|
1816
|
-
try {
|
|
1817
|
-
existing = await readTeamFile(teamName);
|
|
1818
|
-
} catch {
|
|
1819
|
-
return false;
|
|
1820
|
-
}
|
|
1821
|
-
if (!existing) {
|
|
1822
|
-
await deleteTeamDirs(teamName);
|
|
1823
|
-
return true;
|
|
1824
|
-
}
|
|
1825
|
-
if (typeof existing.leadPid !== "number" || existing.leadPid <= 0) {
|
|
1826
|
-
return false;
|
|
1827
|
-
}
|
|
1828
|
-
if (existing.leadPid !== process.pid && isPidAlive(existing.leadPid)) {
|
|
1829
|
-
return false;
|
|
1830
|
-
}
|
|
1831
|
-
await deleteTeamDirs(teamName);
|
|
1832
|
-
return true;
|
|
1833
|
-
}
|
|
1834
|
-
__name(tryReclaimStaleTeam, "tryReclaimStaleTeam");
|
|
1835
|
-
async function deleteTeamDirs(teamName) {
|
|
1836
|
-
const teamDir = getTeamDir(teamName);
|
|
1837
|
-
const tasksDir = getTasksDir(teamName);
|
|
1838
|
-
await Promise.allSettled([
|
|
1839
|
-
fs.rm(teamDir, { recursive: true, force: true }),
|
|
1840
|
-
fs.rm(tasksDir, { recursive: true, force: true })
|
|
1841
|
-
]);
|
|
1842
|
-
}
|
|
1843
|
-
__name(deleteTeamDirs, "deleteTeamDirs");
|
|
1844
|
-
async function listTeamNames() {
|
|
1845
|
-
const teamsRoot = getTeamsRootDir();
|
|
1846
|
-
try {
|
|
1847
|
-
const entries = await fs.readdir(teamsRoot, {
|
|
1848
|
-
withFileTypes: true
|
|
1849
|
-
});
|
|
1850
|
-
return entries.filter((e) => e.isDirectory()).map((e) => e.name);
|
|
1851
|
-
} catch {
|
|
1852
|
-
return [];
|
|
1853
|
-
}
|
|
1854
|
-
}
|
|
1855
|
-
__name(listTeamNames, "listTeamNames");
|
|
1856
|
-
|
|
1857
1669
|
export {
|
|
1858
|
-
getTeamsRootDir,
|
|
1859
|
-
getTeamDir,
|
|
1860
|
-
getTeamFilePath,
|
|
1861
|
-
getInboxesDir,
|
|
1862
|
-
getTasksDir,
|
|
1863
|
-
sanitizeName,
|
|
1864
|
-
formatAgentId,
|
|
1865
|
-
generateUniqueTeammateName,
|
|
1866
|
-
assignTeammateColor,
|
|
1867
|
-
clearTeammateColors,
|
|
1868
|
-
setMemberActive,
|
|
1869
|
-
findMemberById,
|
|
1870
|
-
findMemberByName,
|
|
1871
|
-
classifyShutdownResponse,
|
|
1872
|
-
readTeamFile,
|
|
1873
|
-
writeTeamFile,
|
|
1874
|
-
createTeamFile,
|
|
1875
|
-
tryReclaimStaleTeam,
|
|
1876
|
-
deleteTeamDirs,
|
|
1877
|
-
listTeamNames,
|
|
1878
1670
|
require_graceful_fs,
|
|
1879
1671
|
require_proper_lockfile
|
|
1880
1672
|
};
|
|
1881
|
-
/**
|
|
1882
|
-
* @license
|
|
1883
|
-
* Copyright 2025 Qwen
|
|
1884
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
1885
|
-
*/
|