@qwen-code/qwen-code 0.19.5 → 0.19.6-nightly.20260705.015ee4248
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/dataviz/SKILL.md +50 -0
- package/bundled/dataviz/references/anti-patterns.md +12 -0
- package/bundled/dataviz/references/choosing-a-form.md +16 -0
- package/bundled/dataviz/references/palette.md +57 -0
- package/bundled/dataviz/scripts/validate_palette.js +328 -0
- package/bundled/loop/SKILL.md +1 -1
- package/bundled/qc-helper/docs/configuration/settings.md +14 -8
- package/bundled/qc-helper/docs/features/headless.md +2 -2
- package/bundled/qc-helper/docs/features/scheduled-tasks.md +4 -2
- package/bundled/qc-helper/docs/reference/keyboard-shortcuts.md +1 -1
- package/bundled/review/DESIGN.md +23 -0
- package/bundled/review/SKILL.md +65 -8
- package/chunks/{MaxSizedBox-5JV77KRA.js → MaxSizedBox-PRXTXIGC.js} +31 -30
- package/chunks/{StandaloneSessionPicker-MGUGB6PH.js → StandaloneSessionPicker-PV7BSC5D.js} +42 -41
- package/chunks/{acpAgent-4F36XM3X.js → acpAgent-F34HNAM3.js} +939 -424
- package/chunks/{agent-IWBUZI6A.js → agent-XSQDKLST.js} +26 -25
- package/chunks/{agent-headless-JUTICAYO.js → agent-headless-B63XCKWX.js} +26 -25
- package/chunks/{anthropicContentGenerator-WL3LJOUB.js → anthropicContentGenerator-INXXI4PW.js} +7 -7
- package/chunks/{artifact-tool-W76WC2JX.js → artifact-tool-H2TNPNP5.js} +16 -3
- package/chunks/{askUserQuestion-J3P6TH3V.js → askUserQuestion-MKL5ZTMC.js} +2 -2
- package/chunks/{bridge-DHZHQ4UV.js → bridge-NCZDJBRF.js} +34 -32
- package/chunks/{channel-worker-supervisor-EVPAYNZ5.js → channel-worker-supervisor-JUYQ5Z4R.js} +5 -5
- package/chunks/{chunk-AVQDCKNF.js → chunk-22MNNNXE.js} +4 -0
- package/chunks/chunk-3RW4AZJV.js +5063 -0
- package/chunks/chunk-3VJ7MT3N.js +111 -0
- package/chunks/{chunk-JKGCBO3O.js → chunk-3VRMGS3A.js} +4 -4
- package/chunks/{chunk-TN6RT6EJ.js → chunk-3WOJO5EJ.js} +16 -4
- package/chunks/{chunk-G7OQ3RFJ.js → chunk-42XGFRJS.js} +3 -3
- package/chunks/{chunk-MOUXUCXQ.js → chunk-4KJ2BPIT.js} +1 -1
- package/chunks/{chunk-PPFWEV7G.js → chunk-4RQIB5UZ.js} +62 -62
- package/chunks/{chunk-JJ6B3ZD3.js → chunk-544UZQBD.js} +3 -3
- package/chunks/{chunk-B236XPGF.js → chunk-5UDYETKK.js} +1 -1
- package/chunks/{chunk-7DMQRPC7.js → chunk-6BEOH4KK.js} +1 -1
- package/chunks/{chunk-CXBG27SF.js → chunk-6IAWPIQ6.js} +3 -2
- package/chunks/{chunk-MDBNFHIO.js → chunk-6MDY7FX3.js} +5 -5
- package/chunks/{chunk-RM3PGSGL.js → chunk-6SHO7WFF.js} +15 -2
- package/chunks/{chunk-YCU7QV7Q.js → chunk-73WGF3NW.js} +34 -1
- package/chunks/{chunk-T42ACHFI.js → chunk-7LTB54MK.js} +1 -1
- package/chunks/{chunk-SJVPSHXU.js → chunk-7U6J224Z.js} +132 -25
- package/chunks/{chunk-CSPSJU5R.js → chunk-7WLJPMWU.js} +17 -17
- package/chunks/{chunk-R6RI2HIC.js → chunk-ACD5DFUY.js} +41 -14
- package/chunks/{chunk-EWALXUAD.js → chunk-AGHU5VRK.js} +8 -0
- package/chunks/{chunk-GLPV75ES.js → chunk-AHNJGLFV.js} +2 -2
- package/chunks/{chunk-DRS2HTNT.js → chunk-AOAFX4PL.js} +5 -5
- package/chunks/{chunk-QHYITL6P.js → chunk-CK7IUFOB.js} +63 -22
- package/chunks/{chunk-RSBQS6M4.js → chunk-CODWJXQA.js} +1 -1
- package/chunks/{chunk-LWGLBVWA.js → chunk-CSOTA7KX.js} +1 -1
- package/chunks/{chunk-UJT42DB6.js → chunk-DFH4T5IQ.js} +6 -6
- package/chunks/{chunk-DX3TKXNT.js → chunk-DJACOX4C.js} +2 -2
- package/chunks/{chunk-KKQWC6WS.js → chunk-DNV4FSN5.js} +1 -1
- package/chunks/{chunk-YPCPZSZB.js → chunk-DT3B47QP.js} +1 -1
- package/chunks/{chunk-NIOPRZNN.js → chunk-E7KNELIZ.js} +1 -1
- package/chunks/{chunk-DG573EOO.js → chunk-FEJ2FZ3U.js} +1 -1
- package/chunks/{chunk-M5ITDKSM.js → chunk-FHGQFG2K.js} +1 -1
- package/chunks/{chunk-HISPEX42.js → chunk-FSXFNDTI.js} +7 -7
- package/chunks/{chunk-LHMZCIKL.js → chunk-FUW7YGJU.js} +3 -1
- package/chunks/{chunk-Y4UQT3PM.js → chunk-FV5SBNNC.js} +1 -1
- package/chunks/{chunk-YTFBURQD.js → chunk-GB6HDZIK.js} +10 -2
- package/chunks/{chunk-D5KISTLW.js → chunk-H6EMK6QK.js} +1 -1
- package/chunks/{chunk-2Z43HUXT.js → chunk-HLKG6CZN.js} +3 -2
- package/chunks/{chunk-VXGPYF7U.js → chunk-IFEWJXFS.js} +1 -1
- package/chunks/{chunk-TENOUWY2.js → chunk-IJRL2S3D.js} +3 -3
- package/chunks/{chunk-OQHLUA2Y.js → chunk-IL6ZEDZ2.js} +4 -4
- package/chunks/{chunk-2CAII5HD.js → chunk-J7XUJALJ.js} +1 -1
- package/chunks/chunk-JFFOH2XO.js +2472 -0
- package/chunks/{chunk-NNEJEBCF.js → chunk-K3FZXSTO.js} +95 -107
- package/chunks/{chunk-NDY7OENU.js → chunk-KB4ICCA5.js} +3 -3
- package/chunks/{chunk-MNOXKSM2.js → chunk-LFFF2SPV.js} +3 -3
- package/chunks/{chunk-J3ERRYYI.js → chunk-LTMDKOZC.js} +2 -2
- package/chunks/{chunk-R3UWLLRQ.js → chunk-M7AGQP5D.js} +1 -1
- package/chunks/{chunk-CBJE2PLG.js → chunk-MLB5AB2I.js} +4 -4
- package/chunks/{chunk-YHTNWGRR.js → chunk-MZ7BABX3.js} +1 -1
- package/chunks/{chunk-SJBIFVD2.js → chunk-NFE3DQ4R.js} +7 -3
- package/chunks/{chunk-BC4R5C5R.js → chunk-NLD2WKE3.js} +55 -12
- package/chunks/{chunk-ALX6BUYW.js → chunk-NUGPZXAZ.js} +35 -1
- package/chunks/{chunk-NSSVORTQ.js → chunk-NYKWPUAE.js} +17 -13
- package/chunks/{chunk-K4I4STSL.js → chunk-OGEJMKN5.js} +2 -2
- package/chunks/{chunk-HTWHAN44.js → chunk-PC4ZXHU2.js} +1 -1
- package/chunks/{chunk-2YH27UNF.js → chunk-QLBBV7C6.js} +1 -1
- package/chunks/chunk-QT7XKZT7.js +293 -0
- package/chunks/{chunk-NPQWQYU6.js → chunk-QYNNN7BK.js} +1 -1
- package/chunks/chunk-R4N3OALZ.js +5631 -0
- package/chunks/{chunk-G4M7FPNY.js → chunk-RB5GAQR6.js} +2 -2
- package/chunks/{chunk-SBMHB6N5.js → chunk-RPHMD5UC.js} +15 -15
- package/chunks/{chunk-CHY5C5T4.js → chunk-SJ2CTIYH.js} +185 -88
- package/chunks/chunk-SLQXGMYY.js +949 -0
- package/chunks/{chunk-BZHLWC6T.js → chunk-SUAKHHK7.js} +2 -2
- package/chunks/{chunk-IMAMNLY6.js → chunk-SWV4CVYG.js} +158 -3
- package/chunks/{chunk-XKSCTXPK.js → chunk-TDGF35EN.js} +4 -3
- package/chunks/{chunk-TOAUDIS7.js → chunk-TLWA7TPR.js} +6 -2
- package/chunks/{chunk-WALEWZ44.js → chunk-UVHL5TCO.js} +1 -1
- package/chunks/{chunk-ZISMVA6U.js → chunk-VDMM5LVR.js} +1566 -37
- package/chunks/{chunk-BPFJQGY7.js → chunk-VEB3NYSO.js} +164 -5
- package/chunks/{chunk-L7OJ3ZO3.js → chunk-VZ7HY3YU.js} +1 -1
- package/chunks/{chunk-6KPZJJ6U.js → chunk-W4I6PLEG.js} +131 -38
- package/chunks/{chunk-QOMAHFYI.js → chunk-W7EEOR7D.js} +3 -3
- package/chunks/{chunk-6QVQZAW6.js → chunk-WKP5QZOP.js} +1 -1
- package/chunks/{chunk-YXK4GPYO.js → chunk-WMPVYQ4P.js} +30 -1
- package/chunks/{chunk-DM4E337C.js → chunk-WNTS5A2R.js} +5 -5
- package/chunks/{chunk-6QTCOQX7.js → chunk-WOG7QWIT.js} +3086 -2635
- package/chunks/{chunk-UY2TCIZS.js → chunk-X265R5C6.js} +3 -3
- package/chunks/{chunk-LKWAVAB5.js → chunk-X2XNQQJI.js} +2 -2
- package/chunks/{chunk-MTNTVOJR.js → chunk-X3YGAX7V.js} +6 -3
- package/chunks/{chunk-EROWZQN7.js → chunk-XD3OLPII.js} +6 -6
- package/chunks/{chunk-RNGAT2Y2.js → chunk-YYL6HROQ.js} +1 -1
- package/chunks/{chunk-XKZXGIRM.js → chunk-YZ2LNTHO.js} +2 -2
- package/chunks/{chunk-Z7XNVNPM.js → chunk-YZ5ANQMR.js} +3 -3
- package/chunks/{chunk-4MCC4XHH.js → chunk-Z7EYROOJ.js} +3568 -5508
- package/chunks/{chunk-5B2WNM6V.js → chunk-ZI4MGBB5.js} +1 -1
- package/chunks/{chunk-WZ724G6K.js → chunk-ZPGE42V7.js} +6 -6
- package/chunks/{computer-use-ON3JQUHW.js → computer-use-5I2UHVNY.js} +26 -25
- package/chunks/{contextCommand-OGCG7W6N.js → contextCommand-3NWY7AJG.js} +28 -27
- package/chunks/{cron-create-6YTCOX6P.js → cron-create-O6ZHD3JN.js} +22 -7
- package/chunks/{cron-delete-E3NIFSUK.js → cron-delete-BFD5B2XX.js} +4 -4
- package/chunks/{cron-list-Q64MNQNE.js → cron-list-KI6FV4KN.js} +4 -4
- package/chunks/{daemon-EEB2RYOL.js → daemon-DRUMLVFP.js} +140 -0
- package/chunks/daemon-status-provider-A2DK3ZTO.js +74 -0
- package/chunks/{dist-AP5V4WYU.js → dist-AAO65DPC.js} +2 -2
- package/chunks/{dist-X4ZDE726.js → dist-ABQ7VWRR.js} +3 -3
- package/chunks/{dist-SNXOUPYS.js → dist-AW5ZYMUI.js} +2 -2
- package/chunks/{dist-Z57Q4YF5.js → dist-DN6M6TJ5.js} +525 -95
- package/chunks/{dist-IZP2VV4C.js → dist-JPSVN367.js} +2 -2
- package/chunks/{earlyInputCapture-DAFHSGVW.js → earlyInputCapture-5TMSSPQ5.js} +27 -26
- package/chunks/{edit-3QFNCSZH.js → edit-V4ITLSUD.js} +27 -26
- package/chunks/{en-M4EBUBNU.js → en-AXARKOWO.js} +2 -0
- package/chunks/{enter-worktree-62EQQMLD.js → enter-worktree-7ULPRMTJ.js} +26 -25
- package/chunks/{enterPlanMode-VUQSE4EG.js → enterPlanMode-YSHMLHJZ.js} +26 -25
- package/chunks/{errors-PW75PZXE.js → errors-TCUTD7NF.js} +28 -27
- package/chunks/{exit-worktree-VVNH7OVY.js → exit-worktree-JZDCKR6A.js} +26 -25
- package/chunks/{exitPlanMode-RUYRCYZW.js → exitPlanMode-GOQBN6SG.js} +26 -25
- package/chunks/{fast-path-TFRJRTTR.js → fast-path-F2HGAKO2.js} +3 -3
- package/chunks/{fast-path-settings-UQLRFDQP.js → fast-path-settings-RCRXH2JG.js} +2 -2
- package/chunks/{gemini-XW7ZDUVR.js → gemini-3M7ECKNW.js} +86 -80
- package/chunks/{geminiContentGenerator-MZDVHVZH.js → geminiContentGenerator-5EG3QEJM.js} +4 -4
- package/chunks/{glob-WAY2PUWA.js → glob-2DBDTLR4.js} +54 -29
- package/chunks/{grep-W6CBKSYC.js → grep-R27DLGWT.js} +26 -25
- package/chunks/{initializer-HK2XE6P2.js → initializer-OXB6BJZU.js} +32 -31
- package/chunks/{keychain-token-storage-GPAKRDKQ.js → keychain-token-storage-UJV5XP4Z.js} +2 -2
- package/chunks/{list-RVLIIKKL.js → list-HLCOEOSF.js} +33 -32
- package/chunks/{loadedSettingsAdapter-C63OUYZC.js → loadedSettingsAdapter-JHTVH3YO.js} +31 -30
- package/chunks/{loop-wakeup-G2EHBRGR.js → loop-wakeup-CUVIY2JY.js} +5 -5
- package/chunks/{ls-IDHUVSAG.js → ls-L654WOAT.js} +4 -4
- package/chunks/{lsp-FSRYXGFT.js → lsp-M35KE54Y.js} +2 -2
- package/chunks/mcp-2JWEFAIN.js +67 -0
- package/chunks/{monitor-FOG36ABM.js → monitor-5QKFZFDX.js} +26 -25
- package/chunks/nonInteractiveCli-W5W5PIHI.js +112 -0
- package/chunks/{notebook-edit-GC6NXRCX.js → notebook-edit-XAFBWORI.js} +27 -26
- package/chunks/{openaiContentGenerator-EXR3ZL3Z.js → openaiContentGenerator-NULJROYV.js} +13 -12
- package/chunks/{pidfile-FNZM2DDH.js → pidfile-3LT7PZSW.js} +27 -26
- package/chunks/{qwenContentGenerator-A7B6J4U7.js → qwenContentGenerator-KLSURVNH.js} +28 -27
- package/chunks/{qwenOAuth2-LWLA6MQG.js → qwenOAuth2-ZV7YLMND.js} +5 -5
- package/chunks/{read-file-6JL4ULMY.js → read-file-HDAM3RHJ.js} +8 -8
- package/chunks/{read-mcp-resource-PIJF24RO.js → read-mcp-resource-CNQHBSJM.js} +2 -2
- package/chunks/record-artifact-PP3LKHTS.js +343 -0
- package/chunks/{ripGrep-DIUGLJE5.js → ripGrep-W36NLR7M.js} +26 -25
- package/chunks/{run-qwen-serve-CME3AKM4.js → run-qwen-serve-IMI2CQB5.js} +72 -28
- package/chunks/{scheduler-L7F6GDDT.js → scheduler-I5NKE5UJ.js} +26 -25
- package/chunks/{send-message-33PYFMCT.js → send-message-OA6MV4EU.js} +3 -3
- package/chunks/{serve-SRCBOJGP.js → serve-JMHMOYBO.js} +33 -32
- package/chunks/{server-QSQ45QFR.js → server-QIYIN34N.js} +1358 -492
- package/chunks/{session-5DG6NXHZ.js → session-BLL6HB35.js} +68 -65
- package/chunks/{settings-3EEQI4MN.js → settings-ABECXCTY.js} +30 -29
- package/chunks/{shell-B7FNYF5S.js → shell-A2TQI3U4.js} +26 -25
- package/chunks/{skill-AAOGHD5O.js → skill-4GTWZZWR.js} +10 -10
- package/chunks/{spawnChannel-3CBN3ZLK.js → spawnChannel-DFUVGP53.js} +30 -29
- package/chunks/{src-T5A7P7FS.js → src-ZORBMUM7.js} +77 -43
- package/chunks/{startInteractiveUI-2FGEQ6AS.js → startInteractiveUI-FH5MVXUE.js} +449 -175
- package/chunks/{syntheticOutput-YOSWIHDJ.js → syntheticOutput-F7LSDCAR.js} +3 -3
- package/chunks/{task-create-NHS2NGB3.js → task-create-RPFZNB4B.js} +7 -7
- package/chunks/{task-list-5UIB564R.js → task-list-TGGJX7EA.js} +5 -5
- package/chunks/{task-stop-HGXZ2VZ3.js → task-stop-W7NGTMYQ.js} +2 -2
- package/chunks/{task-update-IYYWUILG.js → task-update-5WUG5MVQ.js} +7 -7
- package/chunks/{team-create-KDF6W6PV.js → team-create-F76QOR6H.js} +26 -25
- package/chunks/{team-delete-FEKJCU4P.js → team-delete-UHQQ2QQX.js} +5 -5
- package/chunks/{team-plan-approval-PSFKQX7M.js → team-plan-approval-OKM7YZC2.js} +26 -25
- package/chunks/{theme-manager-5XOA2AO7.js → theme-manager-6R7EVWHW.js} +27 -26
- package/chunks/{todoWrite-TKMVZ2HT.js → todoWrite-C4ZAMSR3.js} +4 -4
- package/chunks/{tool-search-LFRILZXC.js → tool-search-UWXDKI7D.js} +9 -9
- package/chunks/{trustedFolders-7HQY6T6X.js → trustedFolders-DHASVVUP.js} +27 -26
- package/chunks/{validateNonInterActiveAuth-UC27B7BA.js → validateNonInterActiveAuth-56J7MOOP.js} +62 -59
- package/chunks/version-NE2I4PBN.js +10 -0
- package/chunks/{web-fetch-J4PIW36Q.js → web-fetch-UYGMOHW4.js} +5 -5
- package/chunks/{workflow-KUTESS6L.js → workflow-HGF3URV3.js} +35 -27
- package/chunks/{workspace-providers-status-LJT5AQDS.js → workspace-providers-status-KXB2OZFQ.js} +33 -32
- package/chunks/{workspace-service-YOBYVDXH.js → workspace-service-NSTI55BC.js} +39 -38
- package/chunks/workspace-skills-status-X5S6JGQZ.js +69 -0
- package/chunks/{write-file-FJYBZUHP.js → write-file-HVKT5VTX.js} +27 -26
- package/chunks/yargs-B64EYTCF.js +10 -0
- package/chunks/{zh-SLZNSSZB.js → zh-RS3HZHFH.js} +2 -0
- package/chunks/{zh-TW-P53C2SL5.js → zh-TW-L5GRQ4S4.js} +2 -0
- package/cli-entry.js +81 -8
- package/cli.js +348 -55
- package/locales/en.js +2 -0
- package/locales/zh-TW.js +2 -0
- package/locales/zh.js +2 -0
- package/node_modules/@qwen-code/audio-capture/package.json +1 -1
- package/node_modules/@qwen-code/audio-capture/prebuilds/darwin-arm64/@qwen-code+audio-capture.node +0 -0
- package/node_modules/@qwen-code/audio-capture/prebuilds/darwin-x64/@qwen-code+audio-capture.node +0 -0
- package/node_modules/@qwen-code/audio-capture/prebuilds/win32-x64/@qwen-code+audio-capture.node +0 -0
- package/package.json +3 -3
- package/web-shell/assets/{arc-D_rAuMDd.js → arc-Csx4m4N0.js} +1 -1
- package/web-shell/assets/{architectureDiagram-3BPJPVTR-DUCzbHVo.js → architectureDiagram-3BPJPVTR-BEa0vCM7.js} +1 -1
- package/web-shell/assets/{blockDiagram-GPEHLZMM-BEEBt1LL.js → blockDiagram-GPEHLZMM-BPzbKnn3.js} +1 -1
- package/web-shell/assets/{c4Diagram-AAUBKEIU-5ZJ_DeFL.js → c4Diagram-AAUBKEIU-B8YO71yP.js} +1 -1
- package/web-shell/assets/channel-QU1XUuVe.js +1 -0
- package/web-shell/assets/{chunk-2J33WTMH-Cfw7EiLn.js → chunk-2J33WTMH-32XhwSHt.js} +1 -1
- package/web-shell/assets/{chunk-4BX2VUAB-FGuZNCZY.js → chunk-4BX2VUAB-Bmoyo6PS.js} +1 -1
- package/web-shell/assets/{chunk-55IACEB6-CaBwYPBF.js → chunk-55IACEB6-TwH6PFhs.js} +1 -1
- package/web-shell/assets/{chunk-727SXJPM-BlR04OFz.js → chunk-727SXJPM-RI_IVUtZ.js} +1 -1
- package/web-shell/assets/{chunk-AQP2D5EJ-D3_mYJH5.js → chunk-AQP2D5EJ-DH6GIAZD.js} +1 -1
- package/web-shell/assets/{chunk-FMBD7UC4-7D4q4SbB.js → chunk-FMBD7UC4-DeD3k3D5.js} +1 -1
- package/web-shell/assets/{chunk-ND2GUHAM-BjX_Iwmr.js → chunk-ND2GUHAM-BLPb8nv3.js} +1 -1
- package/web-shell/assets/{chunk-QZHKN3VN-C3Hz_ZQh.js → chunk-QZHKN3VN-PZpyglW1.js} +1 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-fv1EWO-L.js +1 -0
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-fv1EWO-L.js +1 -0
- package/web-shell/assets/{cose-bilkent-S5V4N54A-Ax4UycaT.js → cose-bilkent-S5V4N54A-Jsd0yKfz.js} +1 -1
- package/web-shell/assets/{dagre-BM42HDAG-C6hmPtGt.js → dagre-BM42HDAG-B-zADciZ.js} +1 -1
- package/web-shell/assets/{diagram-2AECGRRQ-tXZnxjmw.js → diagram-2AECGRRQ-Cn6GDxoo.js} +1 -1
- package/web-shell/assets/{diagram-5GNKFQAL-99dwIzQG.js → diagram-5GNKFQAL-udLgyJxO.js} +1 -1
- package/web-shell/assets/{diagram-KO2AKTUF-Bqhn0-2s.js → diagram-KO2AKTUF-EcLpfzy3.js} +1 -1
- package/web-shell/assets/{diagram-LMA3HP47-DzThVSvo.js → diagram-LMA3HP47-D-YFbYsJ.js} +1 -1
- package/web-shell/assets/{diagram-OG6HWLK6-DPE8vjln.js → diagram-OG6HWLK6-C8oRUATa.js} +1 -1
- package/web-shell/assets/{erDiagram-TEJ5UH35-KzUKgQCV.js → erDiagram-TEJ5UH35-DPH5nStc.js} +1 -1
- package/web-shell/assets/{flowDiagram-I6XJVG4X-DBN-DXw5.js → flowDiagram-I6XJVG4X-CSOTwkAt.js} +1 -1
- package/web-shell/assets/{ganttDiagram-6RSMTGT7-DuBsP9u8.js → ganttDiagram-6RSMTGT7-D0L988t0.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-PVQCEYII-BjWHMyKR.js → gitGraphDiagram-PVQCEYII-B9Oo7gxS.js} +1 -1
- package/web-shell/assets/index-BYZZL5N7.css +5 -0
- package/web-shell/assets/index-C_oTyz0s.js +753 -0
- package/web-shell/assets/{infoDiagram-5YYISTIA-BVux0vP6.js → infoDiagram-5YYISTIA-Ddj4YN2P.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-2qzw7f--.js → ishikawaDiagram-YF4QCWOH-CBjafcl7.js} +1 -1
- package/web-shell/assets/{journeyDiagram-JHISSGLW-Dnl65sxL.js → journeyDiagram-JHISSGLW-Bn3XD99u.js} +1 -1
- package/web-shell/assets/{kanban-definition-UN3LZRKU-BElSQYtY.js → kanban-definition-UN3LZRKU-D7PBPJmE.js} +1 -1
- package/web-shell/assets/{linear-BjoycSSY.js → linear-Bmfo22rZ.js} +1 -1
- package/web-shell/assets/{mermaid.core-xe6bvMRz.js → mermaid.core-xRkAI-EI.js} +5 -5
- package/web-shell/assets/{mindmap-definition-RKZ34NQL-D8DQgI4U.js → mindmap-definition-RKZ34NQL-B30zRinm.js} +1 -1
- package/web-shell/assets/{pieDiagram-4H26LBE5-Dwh7Gp7c.js → pieDiagram-4H26LBE5-DblnKR9Z.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-W4KKPZXB-BXKNBln2.js → quadrantDiagram-W4KKPZXB-COkHFKjF.js} +1 -1
- package/web-shell/assets/{requirementDiagram-4Y6WPE33-BzaC3cIA.js → requirementDiagram-4Y6WPE33-DDU3MMyn.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-5OEKKPKP-DP2t7eZk.js → sankeyDiagram-5OEKKPKP-Dt4lqEYv.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-3UESZ5HK-XlFiWEYv.js → sequenceDiagram-3UESZ5HK-BRzby5gN.js} +1 -1
- package/web-shell/assets/{stateDiagram-AJRCARHV-CupgUMJO.js → stateDiagram-AJRCARHV-CylzByc3.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-BKWZIKkM.js +1 -0
- package/web-shell/assets/{timeline-definition-PNZ67QCA-DstuGywa.js → timeline-definition-PNZ67QCA-BSzaNx6w.js} +1 -1
- package/web-shell/assets/{vennDiagram-CIIHVFJN-CnbNp6zu.js → vennDiagram-CIIHVFJN-BbzeKzCo.js} +1 -1
- package/web-shell/assets/{wardley-L42UT6IY-DnvoHq6R.js → wardley-L42UT6IY-BRJwCgE_.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-YWT4CUSO-Cz0xHEWB.js → wardleyDiagram-YWT4CUSO-BmAs0mJ-.js} +1 -1
- package/web-shell/assets/{xychartDiagram-2RQKCTM6-p36gfo88.js → xychartDiagram-2RQKCTM6-DqywSqVW.js} +1 -1
- package/web-shell/index.html +2 -2
- package/bundled/loop/SKILL.test.ts +0 -119
- package/bundled/loop/autonomous-loop.test.ts +0 -59
- package/bundled/loop/loop-task-file.test.ts +0 -1064
- package/bundled/loop/loop-tick-resolver.test.ts +0 -906
- package/chunks/chunk-EJ7BN3EN.js +0 -11396
- package/chunks/chunk-L7QPM2YD.js +0 -481
- package/chunks/daemon-status-provider-P72STMLB.js +0 -72
- package/chunks/nonInteractiveCli-6BYQSJTB.js +0 -109
- package/chunks/workspace-skills-status-ONEPXJV6.js +0 -62
- package/web-shell/assets/channel-B5ynH0q8.js +0 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-CK3ibywp.js +0 -1
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-CK3ibywp.js +0 -1
- package/web-shell/assets/index-9qfvU0_r.css +0 -5
- package/web-shell/assets/index-CWzDaQT5.js +0 -717
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-By3E4QwN.js +0 -1
- package/chunks/{chunk-UFC57OYT.js → chunk-VRDMOSQS.js} +54 -54
package/chunks/chunk-L7QPM2YD.js
DELETED
|
@@ -1,481 +0,0 @@
|
|
|
1
|
-
// Force strict mode and setup for ESM
|
|
2
|
-
"use strict";
|
|
3
|
-
import {
|
|
4
|
-
require_undici
|
|
5
|
-
} from "./chunk-54YZOP7P.js";
|
|
6
|
-
import {
|
|
7
|
-
writeStderrLine
|
|
8
|
-
} from "./chunk-Y6Z2O3WR.js";
|
|
9
|
-
import {
|
|
10
|
-
createDebugLogger
|
|
11
|
-
} from "./chunk-AVQDCKNF.js";
|
|
12
|
-
import {
|
|
13
|
-
init_esbuild_shims
|
|
14
|
-
} from "./chunk-A4BMJM77.js";
|
|
15
|
-
import {
|
|
16
|
-
__name,
|
|
17
|
-
__toESM
|
|
18
|
-
} from "./chunk-J2S4EL5Y.js";
|
|
19
|
-
|
|
20
|
-
// packages/cli/src/services/setup-github.ts
|
|
21
|
-
init_esbuild_shims();
|
|
22
|
-
var import_undici2 = __toESM(require_undici(), 1);
|
|
23
|
-
import { promises as fsp } from "node:fs";
|
|
24
|
-
import * as path from "node:path";
|
|
25
|
-
|
|
26
|
-
// packages/cli/src/utils/gitUtils.ts
|
|
27
|
-
init_esbuild_shims();
|
|
28
|
-
var import_undici = __toESM(require_undici(), 1);
|
|
29
|
-
import * as childProcess from "node:child_process";
|
|
30
|
-
var debugLogger = createDebugLogger("GIT");
|
|
31
|
-
async function runGit(args, opts = {}) {
|
|
32
|
-
return await new Promise((resolve2, reject) => {
|
|
33
|
-
childProcess.execFile(
|
|
34
|
-
"git",
|
|
35
|
-
args,
|
|
36
|
-
{
|
|
37
|
-
encoding: "utf-8",
|
|
38
|
-
...opts.cwd ? { cwd: opts.cwd } : {}
|
|
39
|
-
},
|
|
40
|
-
(err, stdout) => {
|
|
41
|
-
if (err) {
|
|
42
|
-
reject(err);
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
resolve2(String(stdout ?? "").trim());
|
|
46
|
-
}
|
|
47
|
-
);
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
__name(runGit, "runGit");
|
|
51
|
-
var isGitHubRepositoryAsync = /* @__PURE__ */ __name(async (opts = {}) => {
|
|
52
|
-
try {
|
|
53
|
-
const remotes = await runGit(["remote", "-v"], opts);
|
|
54
|
-
return remotes.split("\n").some((line) => {
|
|
55
|
-
const remoteUrl = line.trim().split(/\s+/)[1];
|
|
56
|
-
return remoteUrl ? isGitHubRemoteUrl(remoteUrl) : false;
|
|
57
|
-
});
|
|
58
|
-
} catch (_error) {
|
|
59
|
-
debugLogger.debug(`Failed to get git remote:`, _error);
|
|
60
|
-
return false;
|
|
61
|
-
}
|
|
62
|
-
}, "isGitHubRepositoryAsync");
|
|
63
|
-
function isGitHubRemoteUrl(remoteUrl) {
|
|
64
|
-
if (remoteUrl.startsWith("git@github.com:")) {
|
|
65
|
-
return true;
|
|
66
|
-
}
|
|
67
|
-
if (remoteUrl.startsWith("git@")) {
|
|
68
|
-
return false;
|
|
69
|
-
}
|
|
70
|
-
try {
|
|
71
|
-
return new URL(remoteUrl).hostname === "github.com";
|
|
72
|
-
} catch {
|
|
73
|
-
return false;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
__name(isGitHubRemoteUrl, "isGitHubRemoteUrl");
|
|
77
|
-
var getGitRepoRootAsync = /* @__PURE__ */ __name(async (opts = {}) => {
|
|
78
|
-
const gitRepoRoot = await runGit(["rev-parse", "--show-toplevel"], opts);
|
|
79
|
-
if (!gitRepoRoot) {
|
|
80
|
-
throw new Error(`Git repo returned empty value`);
|
|
81
|
-
}
|
|
82
|
-
return gitRepoRoot;
|
|
83
|
-
}, "getGitRepoRootAsync");
|
|
84
|
-
var getLatestGitHubRelease = /* @__PURE__ */ __name(async (proxy) => {
|
|
85
|
-
try {
|
|
86
|
-
const controller = new AbortController();
|
|
87
|
-
const endpoint = `https://api.github.com/repos/QwenLM/qwen-code-action/releases/latest`;
|
|
88
|
-
const response = await fetch(endpoint, {
|
|
89
|
-
method: "GET",
|
|
90
|
-
headers: {
|
|
91
|
-
Accept: "application/vnd.github+json",
|
|
92
|
-
"Content-Type": "application/json",
|
|
93
|
-
"X-GitHub-Api-Version": "2022-11-28"
|
|
94
|
-
},
|
|
95
|
-
dispatcher: proxy ? new import_undici.ProxyAgent(proxy) : void 0,
|
|
96
|
-
signal: AbortSignal.any([AbortSignal.timeout(3e4), controller.signal])
|
|
97
|
-
});
|
|
98
|
-
if (!response.ok) {
|
|
99
|
-
throw new Error(
|
|
100
|
-
`Invalid response code: ${response.status} - ${response.statusText}`
|
|
101
|
-
);
|
|
102
|
-
}
|
|
103
|
-
const releaseTag = (await response.json()).tag_name;
|
|
104
|
-
if (!releaseTag) {
|
|
105
|
-
throw new Error(`Response did not include tag_name field`);
|
|
106
|
-
}
|
|
107
|
-
return releaseTag;
|
|
108
|
-
} catch (_error) {
|
|
109
|
-
debugLogger.debug(
|
|
110
|
-
`Failed to determine latest qwen-code-action release:`,
|
|
111
|
-
_error
|
|
112
|
-
);
|
|
113
|
-
throw new Error(
|
|
114
|
-
`Unable to determine the latest qwen-code-action release on GitHub.`
|
|
115
|
-
);
|
|
116
|
-
}
|
|
117
|
-
}, "getLatestGitHubRelease");
|
|
118
|
-
async function getGitHubRepoInfoAsync(opts = {}) {
|
|
119
|
-
return parseGitHubRepoInfo(
|
|
120
|
-
await runGit(["remote", "get-url", "origin"], opts)
|
|
121
|
-
);
|
|
122
|
-
}
|
|
123
|
-
__name(getGitHubRepoInfoAsync, "getGitHubRepoInfoAsync");
|
|
124
|
-
function parseGitHubRepoInfo(remoteUrl) {
|
|
125
|
-
let urlToParse = remoteUrl;
|
|
126
|
-
if (remoteUrl.startsWith("git@github.com:")) {
|
|
127
|
-
urlToParse = remoteUrl.replace("git@github.com:", "");
|
|
128
|
-
} else if (remoteUrl.startsWith("git@")) {
|
|
129
|
-
throw new Error(
|
|
130
|
-
`Owner & repo could not be extracted from remote URL: ${remoteUrl}`
|
|
131
|
-
);
|
|
132
|
-
}
|
|
133
|
-
let parsedUrl;
|
|
134
|
-
try {
|
|
135
|
-
parsedUrl = new URL(urlToParse, "https://github.com");
|
|
136
|
-
} catch {
|
|
137
|
-
throw new Error(
|
|
138
|
-
`Owner & repo could not be extracted from remote URL: ${remoteUrl}`
|
|
139
|
-
);
|
|
140
|
-
}
|
|
141
|
-
if (parsedUrl.hostname !== "github.com") {
|
|
142
|
-
throw new Error(
|
|
143
|
-
`Owner & repo could not be extracted from remote URL: ${remoteUrl}`
|
|
144
|
-
);
|
|
145
|
-
}
|
|
146
|
-
const parts = parsedUrl.pathname.split("/").filter((part) => part !== "");
|
|
147
|
-
if (parts.length !== 2 || !parts[0] || !parts[1]) {
|
|
148
|
-
throw new Error(
|
|
149
|
-
`Owner & repo could not be extracted from remote URL: ${remoteUrl}`
|
|
150
|
-
);
|
|
151
|
-
}
|
|
152
|
-
return { owner: parts[0], repo: parts[1].replace(/\.git$/, "") };
|
|
153
|
-
}
|
|
154
|
-
__name(parseGitHubRepoInfo, "parseGitHubRepoInfo");
|
|
155
|
-
|
|
156
|
-
// packages/cli/src/services/setup-github.ts
|
|
157
|
-
var debugLogger2 = createDebugLogger("SETUP_GITHUB");
|
|
158
|
-
var GITHUB_WORKFLOW_PATHS = [
|
|
159
|
-
"qwen-dispatch/qwen-dispatch.yml",
|
|
160
|
-
"qwen-assistant/qwen-invoke.yml",
|
|
161
|
-
"issue-triage/qwen-triage.yml",
|
|
162
|
-
"issue-triage/qwen-scheduled-triage.yml",
|
|
163
|
-
"pr-review/qwen-review.yml"
|
|
164
|
-
];
|
|
165
|
-
var GITIGNORE_ENTRIES = [".qwen/", "gha-creds-*.json"];
|
|
166
|
-
var MAX_WORKFLOW_DOWNLOAD_BYTES = 5 * 1024 * 1024;
|
|
167
|
-
var SetupGithubError = class extends Error {
|
|
168
|
-
static {
|
|
169
|
-
__name(this, "SetupGithubError");
|
|
170
|
-
}
|
|
171
|
-
code;
|
|
172
|
-
status;
|
|
173
|
-
partial;
|
|
174
|
-
partialResult;
|
|
175
|
-
constructor(code, message, status, partialResult) {
|
|
176
|
-
super(message);
|
|
177
|
-
this.name = "SetupGithubError";
|
|
178
|
-
this.code = code;
|
|
179
|
-
this.status = status;
|
|
180
|
-
this.partial = partialResult !== void 0;
|
|
181
|
-
this.partialResult = partialResult;
|
|
182
|
-
}
|
|
183
|
-
};
|
|
184
|
-
var nodeFileOps = {
|
|
185
|
-
assertCanWrite() {
|
|
186
|
-
},
|
|
187
|
-
async ensureWorkflowDirectory(gitRepoRoot) {
|
|
188
|
-
await fsp.mkdir(path.join(gitRepoRoot, ".github", "workflows"), {
|
|
189
|
-
recursive: true
|
|
190
|
-
});
|
|
191
|
-
},
|
|
192
|
-
async writeTextFile(gitRepoRoot, relativePath, content) {
|
|
193
|
-
const target = path.join(gitRepoRoot, relativePath);
|
|
194
|
-
await fsp.writeFile(target, content, { mode: 420 });
|
|
195
|
-
return { sizeBytes: Buffer.byteLength(content, "utf8") };
|
|
196
|
-
},
|
|
197
|
-
async readTextFile(gitRepoRoot, relativePath) {
|
|
198
|
-
try {
|
|
199
|
-
return await fsp.readFile(path.join(gitRepoRoot, relativePath), "utf8");
|
|
200
|
-
} catch (error) {
|
|
201
|
-
if (error.code === "ENOENT") {
|
|
202
|
-
return void 0;
|
|
203
|
-
}
|
|
204
|
-
throw error;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
};
|
|
208
|
-
async function setupGithub(options = {}) {
|
|
209
|
-
const cwd = options.cwd ?? process.cwd();
|
|
210
|
-
const fileOps = options.fileOps ?? nodeFileOps;
|
|
211
|
-
if (!await isGitHubRepositoryAsync({ cwd })) {
|
|
212
|
-
throw new SetupGithubError(
|
|
213
|
-
"github_repository_not_found",
|
|
214
|
-
"Unable to determine the GitHub repository. /setup-github must be run from a git repository.",
|
|
215
|
-
400
|
|
216
|
-
);
|
|
217
|
-
}
|
|
218
|
-
let gitRepoRoot;
|
|
219
|
-
try {
|
|
220
|
-
gitRepoRoot = await getGitRepoRootAsync({ cwd });
|
|
221
|
-
} catch (error) {
|
|
222
|
-
debugLogger2.debug("Failed to get git repo root:", error);
|
|
223
|
-
throw new SetupGithubError(
|
|
224
|
-
"github_repository_not_found",
|
|
225
|
-
"Unable to determine the GitHub repository. /setup-github must be run from a git repository.",
|
|
226
|
-
400
|
|
227
|
-
);
|
|
228
|
-
}
|
|
229
|
-
if (options.workspaceRoot) {
|
|
230
|
-
const [gitRootReal, workspaceReal] = await Promise.all([
|
|
231
|
-
realpathOrResolve(gitRepoRoot),
|
|
232
|
-
realpathOrResolve(options.workspaceRoot)
|
|
233
|
-
]);
|
|
234
|
-
if (gitRootReal !== workspaceReal) {
|
|
235
|
-
throw new SetupGithubError(
|
|
236
|
-
"github_git_root_mismatch",
|
|
237
|
-
"The Git repository root must match the daemon workspace root.",
|
|
238
|
-
400
|
|
239
|
-
);
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
fileOps.assertCanWrite?.();
|
|
243
|
-
let releaseTag;
|
|
244
|
-
try {
|
|
245
|
-
releaseTag = await getLatestGitHubRelease(options.proxy);
|
|
246
|
-
} catch (error) {
|
|
247
|
-
writeStderrLine(
|
|
248
|
-
`qwen setup-github: failed to determine latest qwen-code-action release: ${error instanceof Error ? error.message : String(error)}`
|
|
249
|
-
);
|
|
250
|
-
debugLogger2.debug(
|
|
251
|
-
"Failed to determine latest qwen-code-action release:",
|
|
252
|
-
error
|
|
253
|
-
);
|
|
254
|
-
throw new SetupGithubError(
|
|
255
|
-
"github_release_lookup_failed",
|
|
256
|
-
"Unable to determine the latest qwen-code-action release on GitHub.",
|
|
257
|
-
502
|
|
258
|
-
);
|
|
259
|
-
}
|
|
260
|
-
const readmeUrl = `https://github.com/QwenLM/qwen-code-action/blob/${releaseTag}/README.md#quick-start`;
|
|
261
|
-
const secretsUrl = await resolveSecretsUrl(cwd);
|
|
262
|
-
const downloads = await downloadWorkflows({
|
|
263
|
-
releaseTag,
|
|
264
|
-
proxy: options.proxy,
|
|
265
|
-
abortSignal: options.abortSignal,
|
|
266
|
-
fetchImpl: options.fetchImpl ?? fetch
|
|
267
|
-
});
|
|
268
|
-
const result = {
|
|
269
|
-
kind: "github_setup",
|
|
270
|
-
workspaceCwd: options.workspaceRoot ?? gitRepoRoot,
|
|
271
|
-
gitRepoRoot,
|
|
272
|
-
releaseTag,
|
|
273
|
-
readmeUrl,
|
|
274
|
-
...secretsUrl ? { secretsUrl } : {},
|
|
275
|
-
workflows: [],
|
|
276
|
-
gitignore: { path: ".gitignore", status: "skipped" },
|
|
277
|
-
warnings: []
|
|
278
|
-
};
|
|
279
|
-
result.gitignore = await updateGitignore(gitRepoRoot, fileOps);
|
|
280
|
-
if (result.gitignore.status === "failed") {
|
|
281
|
-
result.warnings.push("Failed to update .gitignore.");
|
|
282
|
-
}
|
|
283
|
-
try {
|
|
284
|
-
await fileOps.ensureWorkflowDirectory(gitRepoRoot);
|
|
285
|
-
for (const workflow of downloads) {
|
|
286
|
-
const relativePath = path.posix.join(
|
|
287
|
-
".github",
|
|
288
|
-
"workflows",
|
|
289
|
-
path.posix.basename(workflow.sourcePath)
|
|
290
|
-
);
|
|
291
|
-
try {
|
|
292
|
-
const write = await fileOps.writeTextFile(
|
|
293
|
-
gitRepoRoot,
|
|
294
|
-
relativePath,
|
|
295
|
-
workflow.content
|
|
296
|
-
);
|
|
297
|
-
result.workflows.push({
|
|
298
|
-
sourcePath: workflow.sourcePath,
|
|
299
|
-
path: relativePath,
|
|
300
|
-
status: "written",
|
|
301
|
-
sizeBytes: write.sizeBytes
|
|
302
|
-
});
|
|
303
|
-
} catch (error) {
|
|
304
|
-
result.partial = true;
|
|
305
|
-
result.workflows.push({
|
|
306
|
-
sourcePath: workflow.sourcePath,
|
|
307
|
-
path: relativePath,
|
|
308
|
-
status: "failed",
|
|
309
|
-
error: error instanceof Error ? error.message : String(error)
|
|
310
|
-
});
|
|
311
|
-
throw new SetupGithubError(
|
|
312
|
-
"github_workflow_write_failed",
|
|
313
|
-
`Unable to write ${relativePath}.`,
|
|
314
|
-
500,
|
|
315
|
-
result
|
|
316
|
-
);
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
} catch (error) {
|
|
320
|
-
if (error instanceof SetupGithubError) throw error;
|
|
321
|
-
throw new SetupGithubError(
|
|
322
|
-
"github_workflow_write_failed",
|
|
323
|
-
"Unable to create .github/workflows.",
|
|
324
|
-
500,
|
|
325
|
-
result
|
|
326
|
-
);
|
|
327
|
-
}
|
|
328
|
-
return result;
|
|
329
|
-
}
|
|
330
|
-
__name(setupGithub, "setupGithub");
|
|
331
|
-
async function updateGitignore(gitRepoRoot, fileOps = nodeFileOps) {
|
|
332
|
-
try {
|
|
333
|
-
const existingContent = await fileOps.readTextFile(
|
|
334
|
-
gitRepoRoot,
|
|
335
|
-
".gitignore"
|
|
336
|
-
);
|
|
337
|
-
if (existingContent === void 0) {
|
|
338
|
-
const content = GITIGNORE_ENTRIES.join("\n") + "\n";
|
|
339
|
-
await fileOps.writeTextFile(gitRepoRoot, ".gitignore", content);
|
|
340
|
-
return {
|
|
341
|
-
path: ".gitignore",
|
|
342
|
-
status: "created",
|
|
343
|
-
added: [...GITIGNORE_ENTRIES]
|
|
344
|
-
};
|
|
345
|
-
}
|
|
346
|
-
const missingEntries = GITIGNORE_ENTRIES.filter(
|
|
347
|
-
(entry) => !existingContent.split(/\r?\n/).some((line) => line.split("#")[0].trim() === entry)
|
|
348
|
-
);
|
|
349
|
-
if (missingEntries.length === 0) {
|
|
350
|
-
return { path: ".gitignore", status: "unchanged" };
|
|
351
|
-
}
|
|
352
|
-
const nextContent = existingContent + "\n" + missingEntries.join("\n") + "\n";
|
|
353
|
-
await fileOps.writeTextFile(gitRepoRoot, ".gitignore", nextContent);
|
|
354
|
-
return {
|
|
355
|
-
path: ".gitignore",
|
|
356
|
-
status: "updated",
|
|
357
|
-
added: missingEntries
|
|
358
|
-
};
|
|
359
|
-
} catch (error) {
|
|
360
|
-
debugLogger2.debug("Failed to update .gitignore:", error);
|
|
361
|
-
return {
|
|
362
|
-
path: ".gitignore",
|
|
363
|
-
status: "failed",
|
|
364
|
-
error: error instanceof Error ? error.message : String(error)
|
|
365
|
-
};
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
__name(updateGitignore, "updateGitignore");
|
|
369
|
-
async function downloadWorkflows(options) {
|
|
370
|
-
const internalAbort = new AbortController();
|
|
371
|
-
try {
|
|
372
|
-
const dispatcher = options.proxy ? new import_undici2.ProxyAgent(options.proxy) : void 0;
|
|
373
|
-
return await Promise.all(
|
|
374
|
-
GITHUB_WORKFLOW_PATHS.map(async (workflow) => {
|
|
375
|
-
const endpoint = `https://raw.githubusercontent.com/QwenLM/qwen-code-action/refs/tags/${options.releaseTag}/examples/workflows/${workflow}`;
|
|
376
|
-
const response = await options.fetchImpl(endpoint, {
|
|
377
|
-
method: "GET",
|
|
378
|
-
dispatcher,
|
|
379
|
-
signal: AbortSignal.any([
|
|
380
|
-
AbortSignal.timeout(3e4),
|
|
381
|
-
internalAbort.signal,
|
|
382
|
-
...options.abortSignal ? [options.abortSignal] : []
|
|
383
|
-
])
|
|
384
|
-
});
|
|
385
|
-
if (!response.ok) {
|
|
386
|
-
throw new Error(
|
|
387
|
-
`Invalid response code downloading ${endpoint}: ${response.status} - ${response.statusText}`
|
|
388
|
-
);
|
|
389
|
-
}
|
|
390
|
-
return {
|
|
391
|
-
sourcePath: workflow,
|
|
392
|
-
content: await readResponseTextWithLimit(response, workflow)
|
|
393
|
-
};
|
|
394
|
-
})
|
|
395
|
-
);
|
|
396
|
-
} catch (error) {
|
|
397
|
-
internalAbort.abort();
|
|
398
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
399
|
-
debugLogger2.debug("Failed to download qwen-code-action workflows:", error);
|
|
400
|
-
throw new SetupGithubError(
|
|
401
|
-
"github_workflow_download_failed",
|
|
402
|
-
`Unable to download qwen-code-action workflows from GitHub. ${message}`,
|
|
403
|
-
502
|
|
404
|
-
);
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
__name(downloadWorkflows, "downloadWorkflows");
|
|
408
|
-
async function readResponseTextWithLimit(response, sourcePath) {
|
|
409
|
-
const contentLength = response.headers.get("content-length");
|
|
410
|
-
if (contentLength !== null) {
|
|
411
|
-
const parsedLength = Number(contentLength);
|
|
412
|
-
if (Number.isFinite(parsedLength) && parsedLength > MAX_WORKFLOW_DOWNLOAD_BYTES) {
|
|
413
|
-
throw new Error(
|
|
414
|
-
`${sourcePath} exceeds download limit of ${MAX_WORKFLOW_DOWNLOAD_BYTES} bytes`
|
|
415
|
-
);
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
if (!response.body) return "";
|
|
419
|
-
const reader = response.body.getReader();
|
|
420
|
-
const chunks = [];
|
|
421
|
-
let totalBytes = 0;
|
|
422
|
-
try {
|
|
423
|
-
while (true) {
|
|
424
|
-
const { done, value } = await reader.read();
|
|
425
|
-
if (done) break;
|
|
426
|
-
if (!value) continue;
|
|
427
|
-
totalBytes += value.byteLength;
|
|
428
|
-
if (totalBytes > MAX_WORKFLOW_DOWNLOAD_BYTES) {
|
|
429
|
-
await reader.cancel().catch(() => {
|
|
430
|
-
});
|
|
431
|
-
throw new Error(
|
|
432
|
-
`${sourcePath} exceeds download limit of ${MAX_WORKFLOW_DOWNLOAD_BYTES} bytes`
|
|
433
|
-
);
|
|
434
|
-
}
|
|
435
|
-
chunks.push(value);
|
|
436
|
-
}
|
|
437
|
-
} finally {
|
|
438
|
-
reader.releaseLock();
|
|
439
|
-
}
|
|
440
|
-
const body = new Uint8Array(totalBytes);
|
|
441
|
-
let offset = 0;
|
|
442
|
-
for (const chunk of chunks) {
|
|
443
|
-
body.set(chunk, offset);
|
|
444
|
-
offset += chunk.byteLength;
|
|
445
|
-
}
|
|
446
|
-
return new TextDecoder().decode(body);
|
|
447
|
-
}
|
|
448
|
-
__name(readResponseTextWithLimit, "readResponseTextWithLimit");
|
|
449
|
-
async function resolveSecretsUrl(cwd) {
|
|
450
|
-
try {
|
|
451
|
-
const repoInfo = await getGitHubRepoInfoAsync({ cwd });
|
|
452
|
-
return `https://github.com/${repoInfo.owner}/${repoInfo.repo}/settings/secrets/actions`;
|
|
453
|
-
} catch {
|
|
454
|
-
return void 0;
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
__name(resolveSecretsUrl, "resolveSecretsUrl");
|
|
458
|
-
async function realpathOrResolve(input) {
|
|
459
|
-
try {
|
|
460
|
-
return await fsp.realpath(input);
|
|
461
|
-
} catch {
|
|
462
|
-
return path.resolve(input);
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
__name(realpathOrResolve, "realpathOrResolve");
|
|
466
|
-
|
|
467
|
-
export {
|
|
468
|
-
GITHUB_WORKFLOW_PATHS,
|
|
469
|
-
SetupGithubError,
|
|
470
|
-
setupGithub
|
|
471
|
-
};
|
|
472
|
-
/**
|
|
473
|
-
* @license
|
|
474
|
-
* Copyright 2025 Google LLC
|
|
475
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
476
|
-
*/
|
|
477
|
-
/**
|
|
478
|
-
* @license
|
|
479
|
-
* Copyright 2025 Qwen Team
|
|
480
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
481
|
-
*/
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
// Force strict mode and setup for ESM
|
|
2
|
-
"use strict";
|
|
3
|
-
import {
|
|
4
|
-
createDaemonStatusProvider
|
|
5
|
-
} from "./chunk-OQHLUA2Y.js";
|
|
6
|
-
import "./chunk-JKGCBO3O.js";
|
|
7
|
-
import "./chunk-KHDZHZMH.js";
|
|
8
|
-
import "./chunk-RSBQS6M4.js";
|
|
9
|
-
import "./chunk-ZISMVA6U.js";
|
|
10
|
-
import "./chunk-P7M4GA57.js";
|
|
11
|
-
import "./chunk-T22H4V4R.js";
|
|
12
|
-
import "./chunk-EWALXUAD.js";
|
|
13
|
-
import "./chunk-SEZC2725.js";
|
|
14
|
-
import "./chunk-ALX6BUYW.js";
|
|
15
|
-
import "./chunk-EROWZQN7.js";
|
|
16
|
-
import "./chunk-LHMZCIKL.js";
|
|
17
|
-
import "./chunk-2Z43HUXT.js";
|
|
18
|
-
import "./chunk-UFC57OYT.js";
|
|
19
|
-
import "./chunk-6QTCOQX7.js";
|
|
20
|
-
import "./chunk-5P5XGNYH.js";
|
|
21
|
-
import "./chunk-K5PGHDBN.js";
|
|
22
|
-
import "./chunk-SKAZWEV5.js";
|
|
23
|
-
import "./chunk-QOMAHFYI.js";
|
|
24
|
-
import "./chunk-G7OQ3RFJ.js";
|
|
25
|
-
import "./chunk-LKWAVAB5.js";
|
|
26
|
-
import "./chunk-L7OJ3ZO3.js";
|
|
27
|
-
import "./chunk-R6RI2HIC.js";
|
|
28
|
-
import "./chunk-2MPVVENX.js";
|
|
29
|
-
import "./chunk-ZTQ26VBE.js";
|
|
30
|
-
import "./chunk-SJBIFVD2.js";
|
|
31
|
-
import "./chunk-MLZQVCF3.js";
|
|
32
|
-
import "./chunk-LQ7TMOCE.js";
|
|
33
|
-
import "./chunk-E5A7LHNN.js";
|
|
34
|
-
import "./chunk-BPFJQGY7.js";
|
|
35
|
-
import "./chunk-GO6LNQXT.js";
|
|
36
|
-
import "./chunk-B236XPGF.js";
|
|
37
|
-
import "./chunk-YXK4GPYO.js";
|
|
38
|
-
import "./chunk-TOAUDIS7.js";
|
|
39
|
-
import "./chunk-NPQWQYU6.js";
|
|
40
|
-
import "./chunk-CHY5C5T4.js";
|
|
41
|
-
import "./chunk-E6US47KI.js";
|
|
42
|
-
import "./chunk-UWCTAVOD.js";
|
|
43
|
-
import "./chunk-OFEVLU4C.js";
|
|
44
|
-
import "./chunk-OMX7CUOE.js";
|
|
45
|
-
import "./chunk-MOUXUCXQ.js";
|
|
46
|
-
import "./chunk-BZHLWC6T.js";
|
|
47
|
-
import "./chunk-DG573EOO.js";
|
|
48
|
-
import "./chunk-MTNTVOJR.js";
|
|
49
|
-
import "./chunk-TENOUWY2.js";
|
|
50
|
-
import "./chunk-GLPV75ES.js";
|
|
51
|
-
import "./chunk-22IFUCVR.js";
|
|
52
|
-
import "./chunk-T42ACHFI.js";
|
|
53
|
-
import "./chunk-SIUQ3YYX.js";
|
|
54
|
-
import "./chunk-YTFBURQD.js";
|
|
55
|
-
import "./chunk-YPCPZSZB.js";
|
|
56
|
-
import "./chunk-IRJWHZWU.js";
|
|
57
|
-
import "./chunk-SYCJMSIJ.js";
|
|
58
|
-
import "./chunk-55ZMG67I.js";
|
|
59
|
-
import "./chunk-H6BD2ELD.js";
|
|
60
|
-
import "./chunk-5IFG2VC4.js";
|
|
61
|
-
import "./chunk-64WXLC72.js";
|
|
62
|
-
import "./chunk-D5KISTLW.js";
|
|
63
|
-
import "./chunk-AVQDCKNF.js";
|
|
64
|
-
import "./chunk-ZERZSAZL.js";
|
|
65
|
-
import "./chunk-QN5NZ3UQ.js";
|
|
66
|
-
import "./chunk-BR4QREVK.js";
|
|
67
|
-
import "./chunk-Z2Z3GUXZ.js";
|
|
68
|
-
import "./chunk-A4BMJM77.js";
|
|
69
|
-
import "./chunk-J2S4EL5Y.js";
|
|
70
|
-
export {
|
|
71
|
-
createDaemonStatusProvider
|
|
72
|
-
};
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
// Force strict mode and setup for ESM
|
|
2
|
-
"use strict";
|
|
3
|
-
import {
|
|
4
|
-
runNonInteractive,
|
|
5
|
-
skipHeadlessLoopSentinel
|
|
6
|
-
} from "./chunk-SBMHB6N5.js";
|
|
7
|
-
import "./chunk-RNGAT2Y2.js";
|
|
8
|
-
import "./chunk-J3ERRYYI.js";
|
|
9
|
-
import "./chunk-SJVPSHXU.js";
|
|
10
|
-
import "./chunk-4MCC4XHH.js";
|
|
11
|
-
import "./chunk-EJ7BN3EN.js";
|
|
12
|
-
import "./chunk-NDY7OENU.js";
|
|
13
|
-
import "./chunk-UJT42DB6.js";
|
|
14
|
-
import "./chunk-JZSY4WP3.js";
|
|
15
|
-
import "./chunk-WZ724G6K.js";
|
|
16
|
-
import "./chunk-KSPVDFE4.js";
|
|
17
|
-
import "./chunk-MRO43B25.js";
|
|
18
|
-
import "./chunk-5B2WNM6V.js";
|
|
19
|
-
import "./chunk-VXGPYF7U.js";
|
|
20
|
-
import "./chunk-XKZXGIRM.js";
|
|
21
|
-
import "./chunk-KYMBIKIW.js";
|
|
22
|
-
import "./chunk-HTWHAN44.js";
|
|
23
|
-
import "./chunk-L7QPM2YD.js";
|
|
24
|
-
import "./chunk-54YZOP7P.js";
|
|
25
|
-
import "./chunk-2CAII5HD.js";
|
|
26
|
-
import "./chunk-Y4UQT3PM.js";
|
|
27
|
-
import "./chunk-NIOPRZNN.js";
|
|
28
|
-
import "./chunk-AHNXYU4O.js";
|
|
29
|
-
import "./chunk-RNBYOUGV.js";
|
|
30
|
-
import "./chunk-HISPEX42.js";
|
|
31
|
-
import "./chunk-BJBWRCSK.js";
|
|
32
|
-
import "./chunk-DRS2HTNT.js";
|
|
33
|
-
import "./chunk-3GONHQOA.js";
|
|
34
|
-
import "./chunk-JJ6B3ZD3.js";
|
|
35
|
-
import "./chunk-YHTNWGRR.js";
|
|
36
|
-
import "./chunk-JKGCBO3O.js";
|
|
37
|
-
import "./chunk-KHDZHZMH.js";
|
|
38
|
-
import "./chunk-RSBQS6M4.js";
|
|
39
|
-
import "./chunk-SEZC2725.js";
|
|
40
|
-
import "./chunk-ALX6BUYW.js";
|
|
41
|
-
import "./chunk-K4I4STSL.js";
|
|
42
|
-
import "./chunk-BC4R5C5R.js";
|
|
43
|
-
import "./chunk-DM4E337C.js";
|
|
44
|
-
import "./chunk-TLRYABYP.js";
|
|
45
|
-
import "./chunk-S6RLAIUR.js";
|
|
46
|
-
import "./chunk-MX2YXRER.js";
|
|
47
|
-
import "./chunk-7DMQRPC7.js";
|
|
48
|
-
import "./chunk-UFC57OYT.js";
|
|
49
|
-
import "./chunk-PPFWEV7G.js";
|
|
50
|
-
import "./chunk-Z7XNVNPM.js";
|
|
51
|
-
import "./chunk-Y6Z2O3WR.js";
|
|
52
|
-
import "./chunk-QYUE6W3T.js";
|
|
53
|
-
import "./chunk-6QTCOQX7.js";
|
|
54
|
-
import "./chunk-5P5XGNYH.js";
|
|
55
|
-
import "./chunk-K5PGHDBN.js";
|
|
56
|
-
import "./chunk-SKAZWEV5.js";
|
|
57
|
-
import "./chunk-QOMAHFYI.js";
|
|
58
|
-
import "./chunk-G7OQ3RFJ.js";
|
|
59
|
-
import "./chunk-LKWAVAB5.js";
|
|
60
|
-
import "./chunk-L7OJ3ZO3.js";
|
|
61
|
-
import "./chunk-R6RI2HIC.js";
|
|
62
|
-
import "./chunk-2MPVVENX.js";
|
|
63
|
-
import "./chunk-ZTQ26VBE.js";
|
|
64
|
-
import "./chunk-SJBIFVD2.js";
|
|
65
|
-
import "./chunk-MLZQVCF3.js";
|
|
66
|
-
import "./chunk-LQ7TMOCE.js";
|
|
67
|
-
import "./chunk-E5A7LHNN.js";
|
|
68
|
-
import "./chunk-BPFJQGY7.js";
|
|
69
|
-
import "./chunk-GO6LNQXT.js";
|
|
70
|
-
import "./chunk-B236XPGF.js";
|
|
71
|
-
import "./chunk-YXK4GPYO.js";
|
|
72
|
-
import "./chunk-TOAUDIS7.js";
|
|
73
|
-
import "./chunk-NPQWQYU6.js";
|
|
74
|
-
import "./chunk-CHY5C5T4.js";
|
|
75
|
-
import "./chunk-E6US47KI.js";
|
|
76
|
-
import "./chunk-UWCTAVOD.js";
|
|
77
|
-
import "./chunk-OFEVLU4C.js";
|
|
78
|
-
import "./chunk-OMX7CUOE.js";
|
|
79
|
-
import "./chunk-MOUXUCXQ.js";
|
|
80
|
-
import "./chunk-BZHLWC6T.js";
|
|
81
|
-
import "./chunk-DG573EOO.js";
|
|
82
|
-
import "./chunk-MTNTVOJR.js";
|
|
83
|
-
import "./chunk-TENOUWY2.js";
|
|
84
|
-
import "./chunk-GLPV75ES.js";
|
|
85
|
-
import "./chunk-22IFUCVR.js";
|
|
86
|
-
import "./chunk-T42ACHFI.js";
|
|
87
|
-
import "./chunk-SIUQ3YYX.js";
|
|
88
|
-
import "./chunk-YTFBURQD.js";
|
|
89
|
-
import "./chunk-YPCPZSZB.js";
|
|
90
|
-
import "./chunk-IRJWHZWU.js";
|
|
91
|
-
import "./chunk-SYCJMSIJ.js";
|
|
92
|
-
import "./chunk-55ZMG67I.js";
|
|
93
|
-
import "./chunk-H6BD2ELD.js";
|
|
94
|
-
import "./chunk-5IFG2VC4.js";
|
|
95
|
-
import "./chunk-64WXLC72.js";
|
|
96
|
-
import "./chunk-D5KISTLW.js";
|
|
97
|
-
import "./chunk-AVQDCKNF.js";
|
|
98
|
-
import "./chunk-M5ITDKSM.js";
|
|
99
|
-
import "./chunk-2YH27UNF.js";
|
|
100
|
-
import "./chunk-ZERZSAZL.js";
|
|
101
|
-
import "./chunk-QN5NZ3UQ.js";
|
|
102
|
-
import "./chunk-BR4QREVK.js";
|
|
103
|
-
import "./chunk-Z2Z3GUXZ.js";
|
|
104
|
-
import "./chunk-A4BMJM77.js";
|
|
105
|
-
import "./chunk-J2S4EL5Y.js";
|
|
106
|
-
export {
|
|
107
|
-
runNonInteractive,
|
|
108
|
-
skipHeadlessLoopSentinel
|
|
109
|
-
};
|