@qwen-code/qwen-code 0.21.0 → 0.21.1
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/model-providers.md +2 -0
- package/bundled/qc-helper/docs/configuration/settings.md +38 -28
- package/bundled/qc-helper/docs/features/channels/_meta.ts +1 -0
- package/bundled/qc-helper/docs/features/channels/github.md +107 -0
- package/bundled/qc-helper/docs/features/channels/overview.md +61 -6
- package/bundled/qc-helper/docs/features/code-review.md +1 -1
- package/bundled/qc-helper/docs/features/hooks.md +52 -15
- package/bundled/qc-helper/docs/features/mcp.md +9 -1
- package/bundled/qc-helper/docs/features/scheduled-tasks.md +3 -1
- package/bundled/qc-helper/docs/features/sub-agents.md +20 -0
- package/bundled/qc-helper/docs/qwen-serve.md +4 -2
- package/bundled/qc-helper/docs/reference/keyboard-shortcuts.md +2 -2
- package/bundled/qc-helper/docs/support/troubleshooting.md +2 -1
- package/bundled/review/DESIGN.md +19 -0
- package/bundled/review/SKILL.md +120 -61
- package/chunks/MaxSizedBox-VI3ROJJA.js +84 -0
- package/chunks/{StandaloneSessionPicker-BIRMPLRD.js → StandaloneSessionPicker-LYXKD2EV.js} +67 -68
- package/chunks/{acp-startup-profiler-RV3IV562.js → acp-startup-profiler-DFVPFQ6C.js} +2 -2
- package/chunks/{acpAgent-6J2U72PQ.js → acpAgent-WN5SRDQO.js} +1373 -553
- package/chunks/agent-K6ECSM64.js +80 -0
- package/chunks/agent-headless-NO4Y2HOE.js +74 -0
- package/chunks/{anthropicContentGenerator-75BKLTSP.js → anthropicContentGenerator-V2QOGVYD.js} +79 -27
- package/chunks/{artifact-tool-Y5T7GG7F.js → artifact-tool-6K6U7XYJ.js} +4 -4
- package/chunks/{askUserQuestion-2H6747FR.js → askUserQuestion-GD2IJJ7I.js} +4 -4
- package/chunks/bridge-3KJEWDNE.js +90 -0
- package/chunks/{build-RV63TIRH.js → build-S6DO7LMM.js} +1 -1
- package/chunks/{ca-25EDXPFZ.js → ca-6W3SK7OQ.js} +6 -1
- package/chunks/channel-management-service-XR7GZSWF.js +403 -0
- package/chunks/channel-settings-store-HW4FXXUA.js +87 -0
- package/chunks/{channel-worker-group-2ZD7TVAT.js → channel-worker-group-XDPTDWTX.js} +11 -6
- package/chunks/{channel-worker-manager-4OA4BCGB.js → channel-worker-manager-YYEHVRRE.js} +11 -6
- package/chunks/{channel-worker-supervisor-V7KCFJTS.js → channel-worker-supervisor-74HTWA2G.js} +7 -5
- package/chunks/{chunk-M5JM7OSF.js → chunk-2DN4J57Y.js} +2 -3
- package/chunks/{chunk-ETSW4KLJ.js → chunk-2FAK6PNM.js} +2 -2
- package/chunks/{chunk-BPJSQIJX.js → chunk-2J3OJGTL.js} +0 -2
- package/chunks/{chunk-EPDRMGT4.js → chunk-2LKVPASC.js} +4 -28
- package/chunks/{chunk-PWTZEM3C.js → chunk-2LQTH543.js} +3 -37
- package/chunks/{chunk-LH2BYDQ5.js → chunk-2N7CODY5.js} +18 -12
- package/chunks/{chunk-4WIZGAH3.js → chunk-2XSLTRFZ.js} +6 -58
- package/chunks/{chunk-FSITMZJH.js → chunk-3EFXSQCM.js} +18 -9
- package/chunks/{chunk-HIJQF5B5.js → chunk-3L2SPEBH.js} +1 -1
- package/chunks/{chunk-BIQWWWJN.js → chunk-4G2BISNC.js} +1 -1
- package/chunks/{chunk-PWVFN2LF.js → chunk-52ZSWYEG.js} +1 -1
- package/chunks/{chunk-ZJHVAS7M.js → chunk-5KTQXHPY.js} +4 -5
- package/chunks/{chunk-PC6JANNU.js → chunk-5MKRTI4T.js} +4 -4
- package/chunks/{chunk-DHHOYAPR.js → chunk-5TBMQLGG.js} +7 -7
- package/chunks/{chunk-A4UCTEB5.js → chunk-5WV5S2GT.js} +0 -1
- package/chunks/chunk-5YKDXHUY.js +463 -0
- package/chunks/chunk-5ZF5XXTS.js +363 -0
- package/chunks/{chunk-K4XWPEWB.js → chunk-64LQLPL7.js} +4 -33
- package/chunks/{chunk-YPE6A4GC.js → chunk-657BH7VM.js} +2 -2
- package/chunks/{chunk-R5AFZNQW.js → chunk-65PQENQP.js} +14 -7
- package/chunks/{chunk-RIBKPMRP.js → chunk-6PE7N3A4.js} +18 -7
- package/chunks/{chunk-JZA3JUDJ.js → chunk-6QIGFD5W.js} +1 -1
- package/chunks/{chunk-JVPM2ULZ.js → chunk-6RPMI2AB.js} +6 -6
- package/chunks/{chunk-OHNBB4XR.js → chunk-75GFAX4R.js} +1 -1
- package/chunks/{chunk-NIBLUX3Y.js → chunk-75MIQ3LV.js} +148 -21
- package/chunks/{chunk-U7M2DMGW.js → chunk-7AEJDLRA.js} +130 -5
- package/chunks/{chunk-TPRQ7RZH.js → chunk-7BAU433D.js} +2293 -945
- package/chunks/{chunk-M4FMGVY4.js → chunk-7DXQIJID.js} +3 -3
- package/chunks/{chunk-RWTEFFPU.js → chunk-7I5GTCT4.js} +620 -383
- package/chunks/{chunk-A5L3JMUA.js → chunk-7XATOOE7.js} +18 -4
- package/chunks/{chunk-Y34KJKDC.js → chunk-A2D5BAVP.js} +1 -1
- package/chunks/{chunk-5I2IWRSH.js → chunk-A3NDJ5SB.js} +2 -2
- package/chunks/{chunk-OFDOK3VM.js → chunk-A4COXFB3.js} +8 -13
- package/chunks/{chunk-JLU636DO.js → chunk-ALMR3E6Q.js} +1 -0
- package/chunks/{chunk-Q4M4MDQ4.js → chunk-AQIDMUGU.js} +1 -1
- package/chunks/{chunk-PJIZUQVC.js → chunk-AZQ3DT76.js} +2 -2
- package/chunks/{chunk-UH3WSE5L.js → chunk-B4AJNNOL.js} +1 -6
- package/chunks/{chunk-BJX6ZSUK.js → chunk-BCZFQXWK.js} +2 -2
- package/chunks/{chunk-MB4MZHMJ.js → chunk-BGTQCTQW.js} +211 -522
- package/chunks/{chunk-MZAXJAUM.js → chunk-BMFALVGQ.js} +1 -1
- package/chunks/{chunk-PSOO6YXD.js → chunk-BNWB5CYE.js} +9 -7
- package/chunks/{chunk-BKHWX6I2.js → chunk-BPZKP57P.js} +11 -3
- package/chunks/{chunk-H4SBPHSA.js → chunk-CAPPWD3X.js} +3 -3
- package/chunks/{chunk-LQIW3YFY.js → chunk-CQL64ESB.js} +7 -7
- package/chunks/{chunk-TOFQCPDC.js → chunk-CVHIL5IG.js} +4 -5
- package/chunks/{chunk-XVNQMZ2I.js → chunk-DGEIYUC3.js} +0 -1
- package/chunks/{chunk-BPZALHVR.js → chunk-DI35ZN7T.js} +1 -1
- package/chunks/chunk-DZLYR4U3.js +1252 -0
- package/chunks/{chunk-TEHGS6UP.js → chunk-EIF3FXTB.js} +117 -24
- package/chunks/{chunk-2SCDWPXI.js → chunk-EJGJIBRS.js} +5 -5
- package/chunks/{chunk-7MVVZO4N.js → chunk-EVKE2FZL.js} +4 -4
- package/chunks/{chunk-OKY7HXPG.js → chunk-FNMZK765.js} +2 -2
- package/chunks/{chunk-VIA5XA4U.js → chunk-FTD6DP4T.js} +3 -1
- package/chunks/chunk-FYJ7W2PI.js +194 -0
- package/chunks/{chunk-L5UHQJTJ.js → chunk-GATT5TKW.js} +1 -1
- package/chunks/{chunk-X5XDDSSH.js → chunk-GEBV2JGB.js} +28 -5
- package/chunks/{chunk-VAK25FTU.js → chunk-GKX7E4CO.js} +1 -1
- package/chunks/{chunk-LS77BEZP.js → chunk-GLCZKT5V.js} +1 -5
- package/chunks/{chunk-5NBDS5S6.js → chunk-GNR2RNMP.js} +162 -7
- package/chunks/{chunk-YH6G52F2.js → chunk-GXIJHV66.js} +4 -4
- package/chunks/chunk-GZ3RCT54.js +76 -0
- package/chunks/{chunk-2X55UKQE.js → chunk-HMRM2A3U.js} +3 -3
- package/chunks/chunk-HV26XH34.js +319 -0
- package/chunks/{chunk-LB6DUZ26.js → chunk-J7OACQDE.js} +229 -172
- package/chunks/{chunk-K36B6G2O.js → chunk-JFMA7Y5M.js} +5 -5
- package/chunks/{chunk-55DJUCI2.js → chunk-JHNRZMHI.js} +53 -43
- package/chunks/{chunk-63P4EL5V.js → chunk-JMONIXMJ.js} +1 -1
- package/chunks/{chunk-L26JL52R.js → chunk-JSD33JG6.js} +47 -64
- package/chunks/{chunk-YBL3QUDD.js → chunk-JTV5K7NH.js} +1 -1
- package/chunks/{chunk-RZIX2G32.js → chunk-JX27F6QS.js} +1 -1
- package/chunks/chunk-JYBU6YUE.js +378 -0
- package/chunks/{chunk-7JURR4JT.js → chunk-KAMYKP7E.js} +167 -81
- package/chunks/{chunk-KMQ33DO4.js → chunk-KCO4FLFJ.js} +4 -4
- package/chunks/{chunk-2W3OOD4W.js → chunk-L55JWS76.js} +6 -3
- package/chunks/{chunk-RHLZR4E5.js → chunk-LGAOC3ZS.js} +1 -1
- package/chunks/{chunk-EBJQ6AXW.js → chunk-LO4ROVP4.js} +262 -16
- package/chunks/{chunk-NH6KE4JX.js → chunk-LW3RFMG7.js} +3 -3
- package/chunks/{chunk-J56UI34H.js → chunk-M7OONWYU.js} +2 -2
- package/chunks/{chunk-2NH6DYI4.js → chunk-MHAIJPTD.js} +12 -12
- package/chunks/{chunk-FODK6UMO.js → chunk-MPHPFVKK.js} +0 -2
- package/chunks/{chunk-VRYUBFMC.js → chunk-MR5EAQ5M.js} +1 -1
- package/chunks/{chunk-JESCGQM3.js → chunk-NAVJD2PQ.js} +8 -7
- package/chunks/{chunk-H5FFA6TH.js → chunk-NOKIVHOL.js} +16 -3
- package/chunks/{chunk-6OUGMXDC.js → chunk-NWNEANAT.js} +7 -7
- package/chunks/{chunk-SQCQ4KO2.js → chunk-OCESJA77.js} +393 -330
- package/chunks/chunk-OCPBI7J5.js +18 -0
- package/chunks/{chunk-E5TUC6CA.js → chunk-OKF7JF3R.js} +3 -3
- package/chunks/{chunk-TGILQ3YH.js → chunk-P4WOAOJW.js} +141 -64
- package/chunks/{chunk-ZFDTEDCF.js → chunk-PB3MBFKG.js} +6 -6
- package/chunks/{chunk-3RN6GBKS.js → chunk-PLDQBIO6.js} +1 -1
- package/chunks/{chunk-FNQ6T3CV.js → chunk-PONHVBRT.js} +10 -7
- package/chunks/{chunk-CIKQ7KKO.js → chunk-PT722TDT.js} +271 -376
- package/chunks/chunk-Q43KPN7X.js +2196 -0
- package/chunks/{chunk-VDDGDZMA.js → chunk-QHWCP53L.js} +14 -7
- package/chunks/{chunk-MVSUYZDT.js → chunk-QIZKCVM3.js} +4 -4
- package/chunks/{chunk-QAF7NMK7.js → chunk-RCUQIPTN.js} +1 -1
- package/chunks/{chunk-6FGBXPWM.js → chunk-RPLGZJV2.js} +38 -44
- package/chunks/{chunk-GSN55ZRI.js → chunk-S4WJVPZW.js} +19 -7
- package/chunks/{chunk-6AM5D4ME.js → chunk-S6LOFUVP.js} +0 -12
- package/chunks/{chunk-BULDBTYC.js → chunk-S7W2GKIO.js} +1 -28
- package/chunks/{chunk-MUP3T3AD.js → chunk-SGFT55XI.js} +1 -35
- package/chunks/{chunk-VYPFXUCB.js → chunk-SZ3KHTDR.js} +1 -1
- package/chunks/chunk-T26EAKDL.js +13 -0
- package/chunks/{chunk-UDX5OBWR.js → chunk-T2QMKU3R.js} +80 -2
- package/chunks/{chunk-IKYJHJNF.js → chunk-T3O2B4XO.js} +3 -3
- package/chunks/{chunk-RF3EXIHJ.js → chunk-T4TXDL7G.js} +32 -21
- package/chunks/{chunk-J24WCGIN.js → chunk-TBBV36Y4.js} +4 -4
- package/chunks/{chunk-LKEJ26GS.js → chunk-TCIFAA7K.js} +16 -11
- package/chunks/{chunk-JXJFVC6E.js → chunk-TDL6LB4K.js} +46 -11
- package/chunks/{chunk-7ZCNENPP.js → chunk-TFRMVU6R.js} +1 -1
- package/chunks/{chunk-VULLI6WQ.js → chunk-TV64SXKD.js} +6 -6
- package/chunks/{chunk-FQK6JAFG.js → chunk-U3E3UQAA.js} +4 -4
- package/chunks/{chunk-LK7CHLVP.js → chunk-U4VTUMMK.js} +0 -60
- package/chunks/{chunk-ACY3A37B.js → chunk-UBEPNVDI.js} +23 -18
- package/chunks/{chunk-NL7LTRLR.js → chunk-UHUSJ6X7.js} +29 -68
- package/chunks/{chunk-ZOIFNCKL.js → chunk-UPUG4GXM.js} +3 -23
- package/chunks/{chunk-6GMVPFB2.js → chunk-UWMLWVCA.js} +19 -6
- package/chunks/{chunk-IKCX4CCL.js → chunk-VCPIZRYH.js} +118 -95
- package/chunks/{chunk-ZNAUOR2I.js → chunk-VWOOBLTY.js} +2 -2
- package/chunks/{chunk-YX324OPW.js → chunk-VYOXCEPJ.js} +1 -1
- package/chunks/{chunk-USTWD7QV.js → chunk-W4MIWP6M.js} +26 -16
- package/chunks/{chunk-HTR4WV6U.js → chunk-W4RQUHY3.js} +31 -1
- package/chunks/{chunk-DLWL3Z7A.js → chunk-WBSMNTSV.js} +3 -3
- package/chunks/{chunk-IO3IX5Q4.js → chunk-WUZ7H6DP.js} +1 -1
- package/chunks/{chunk-2JZBVYTU.js → chunk-WZRWHXFE.js} +1 -8
- package/chunks/{chunk-PHOF65IG.js → chunk-X5WNMMIA.js} +23553 -34321
- package/chunks/chunk-XBYYDKAZ.js +80 -0
- package/chunks/{chunk-COH43MRJ.js → chunk-XCGIMOLN.js} +27 -1
- package/chunks/{chunk-WCXCRJYB.js → chunk-XFZYFU3I.js} +1 -1
- package/chunks/{chunk-3QMGYBFN.js → chunk-XWWKIXVD.js} +1 -80
- package/chunks/{chunk-3SJ43L4W.js → chunk-XZC5VLBZ.js} +2 -0
- package/chunks/{chunk-UUUTRMI2.js → chunk-Y4IHBGBP.js} +1 -1
- package/chunks/{chunk-PR75REBZ.js → chunk-Y6AXW2OG.js} +12 -82
- package/chunks/{chunk-IPUUTYMV.js → chunk-YDLJGZHL.js} +1 -1
- package/chunks/{chunk-IJTOWOD7.js → chunk-YGF33UXG.js} +82 -8
- package/chunks/chunk-Z4X5MTRT.js +133 -0
- package/chunks/{chunk-UW5EOVUN.js → chunk-ZBVS26BY.js} +4 -4
- package/chunks/{chunk-ZD6UTE4A.js → chunk-ZHBO7WVX.js} +1 -1
- package/chunks/{chunk-HTO4JFDZ.js → chunk-ZPJWUGCS.js} +0 -1
- package/chunks/{chunk-KIM5GUMA.js → chunk-ZURDMIDR.js} +368 -156
- package/chunks/{computer-use-SOQ4E3VX.js → computer-use-ZTIDHMMA.js} +49 -50
- package/chunks/{config-utils-7V7GGIW6.js → config-utils-NYSXDMEQ.js} +4 -3
- package/chunks/contextCommand-2PIEU37Z.js +79 -0
- package/chunks/core-runtime-3XEYLQFK.js +133 -0
- package/chunks/{create-sub-session-QRJLW5BV.js → create-sub-session-R76FVXCI.js} +46 -47
- package/chunks/{create-sub-session-IWW2IZ2T.js → create-sub-session-SBYUMSSS.js} +3 -3
- package/chunks/{cron-create-YIID5XAW.js → cron-create-2QK6TCEC.js} +6 -6
- package/chunks/{cron-delete-ZVHYCEP2.js → cron-delete-FDCDFYMG.js} +5 -5
- package/chunks/{cron-list-XEGS463Q.js → cron-list-XN3WVBTP.js} +6 -6
- package/chunks/{daemon-YO6433NF.js → daemon-Q2AB5Z23.js} +356 -15
- package/chunks/daemon-status-provider-3XJI6CAL.js +89 -0
- package/chunks/daemon-trust-policy-ILUDTLHD.js +84 -0
- package/chunks/daemon-trust-policy-monitor-HS3PKKRO.js +171 -0
- package/chunks/{de-HGRCYDEJ.js → de-SY6O76BF.js} +6 -1
- package/chunks/deferred-core-runtime-X4QV662U.js +88 -0
- package/chunks/dist-BSTVRPMT.js +4227 -0
- package/chunks/{dist-46NQKLTW.js → dist-DOLYHMXE.js} +2 -2
- package/chunks/{dist-AIKFMUKK.js → dist-HVRQ2CFL.js} +271 -11
- package/chunks/{dist-WEAHOXDM.js → dist-IXQEQWRG.js} +2 -1
- package/chunks/{dist-BBLXMS3N.js → dist-SSU66DM4.js} +3 -3
- package/chunks/{dist-F6IBUDR4.js → dist-SV7Q3AWJ.js} +1 -1
- package/chunks/{dist-YFNEUWSE.js → dist-YGBBMK3Z.js} +1 -1
- package/chunks/earlyInputCapture-XKLZT7ZD.js +81 -0
- package/chunks/{edit-OBDSQURM.js → edit-HHGIOTQ2.js} +47 -48
- package/chunks/{en-MTWBNGDO.js → en-NBK3JKCE.js} +9 -1
- package/chunks/{enter-worktree-U6MRPQ2P.js → enter-worktree-ZN7PUQ46.js} +47 -48
- package/chunks/{enterPlanMode-BC5QUZZ2.js → enterPlanMode-EIFIDSIV.js} +47 -48
- package/chunks/{environment-W5UFC2CH.js → environment-XXQ75D2Q.js} +48 -49
- package/chunks/errors-4GMVU7CK.js +87 -0
- package/chunks/esm-K5FARBNI.js +5548 -0
- package/chunks/{exit-worktree-DGNYMECB.js → exit-worktree-GXMI4ATY.js} +47 -48
- package/chunks/exitPlanMode-34UVY7M6.js +72 -0
- package/chunks/{fast-path-JJZFJANL.js → fast-path-VPIVA7L6.js} +16 -6
- package/chunks/{fr-45RLL55O.js → fr-4KG5V7UT.js} +6 -1
- package/chunks/{gemini-QS36EBZV.js → gemini-4BWIK4WD.js} +102 -99
- package/chunks/{geminiContentGenerator-AG4KB6CV.js → geminiContentGenerator-3XVV5MSS.js} +40 -11
- package/chunks/{getMachineId-bsd-V7W3GODC.js → getMachineId-bsd-FG7IUY6U.js} +1 -1
- package/chunks/{getMachineId-darwin-TDO75DQP.js → getMachineId-darwin-GLCJI2RA.js} +1 -1
- package/chunks/{getMachineId-linux-TF43WQT2.js → getMachineId-linux-O6OPPAKO.js} +1 -1
- package/chunks/{getMachineId-unsupported-ZGUO3TXT.js → getMachineId-unsupported-S6CKYVGC.js} +1 -1
- package/chunks/{getMachineId-win-ECFYZZFQ.js → getMachineId-win-X5SRNEH7.js} +1 -1
- package/chunks/{glob-V7R3PSK3.js → glob-TZ2ABCJG.js} +47 -48
- package/chunks/{grep-QYPSK7OP.js → grep-BEF463NA.js} +49 -49
- package/chunks/handleAutoUpdate-L6ERF36Y.js +80 -0
- package/chunks/i18n-FMM5FDXR.js +96 -0
- package/chunks/{image-gen-Z3VPGKRC.js → image-gen-HHVLF7HS.js} +12 -12
- package/chunks/initializer-625TIAIO.js +85 -0
- package/chunks/installationInfo-6AM4I2Y3.js +79 -0
- package/chunks/{ja-B7DF7DFG.js → ja-F3GSQXMF.js} +6 -1
- package/chunks/{keychain-token-storage-MDTG3WRM.js → keychain-token-storage-72IYCAZV.js} +3 -3
- package/chunks/lib-RUF3WZA6.js +9 -0
- package/chunks/list-L2GA674Y.js +88 -0
- package/chunks/{list-agents-5KJJHR6I.js → list-agents-R6KDXQR3.js} +3 -3
- package/chunks/loadedSettingsAdapter-SPUTNKAV.js +82 -0
- package/chunks/{loggingContentGenerator-HS3S5H3Q.js → loggingContentGenerator-LKOF7XI7.js} +78 -113
- package/chunks/{loop-wakeup-FXKNNYSY.js → loop-wakeup-3IQKCYAH.js} +7 -7
- package/chunks/{ls-NTK6VOQJ.js → ls-DKZ37A7N.js} +5 -5
- package/chunks/{lsp-2JI24STP.js → lsp-QNWN7KN3.js} +3 -3
- package/chunks/{managed-npm-update-JYEMMXA3.js → managed-npm-update-ACQGGIN5.js} +47 -48
- package/chunks/mcp-SZLHKFJW.js +82 -0
- package/chunks/{monitor-R3ODH5U6.js → monitor-DF52UVHI.js} +47 -48
- package/chunks/nonInteractiveCli-5T7KYKLK.js +144 -0
- package/chunks/{notebook-edit-BNOK452R.js → notebook-edit-FCWS4XVN.js} +47 -48
- package/chunks/{openaiContentGenerator-WMCU3O2H.js → openaiContentGenerator-7LDK3DCJ.js} +26 -27
- package/chunks/pidfile-6ERW3DF4.js +85 -0
- package/chunks/process-registry-2CHQBXH5.js +157 -0
- package/chunks/{processUtils-RT7UNCC2.js → processUtils-COKZAMUP.js} +2 -2
- package/chunks/{pt-22Q3FP73.js → pt-EQ33KWEN.js} +6 -1
- package/chunks/{qwenContentGenerator-HHCRK4SX.js → qwenContentGenerator-TKWUMR7N.js} +52 -53
- package/chunks/{qwenOAuth2-OWLB5AKH.js → qwenOAuth2-7HMU47SF.js} +10 -10
- package/chunks/read-file-X6DRC574.js +29 -0
- package/chunks/{read-mcp-resource-4DKQWGHD.js → read-mcp-resource-GFTWYXMK.js} +4 -4
- package/chunks/{record-artifact-RQKFYO5B.js → record-artifact-XAMSFSW4.js} +3 -3
- package/chunks/resumeHistoryUtils-PFPM2GWM.js +90 -0
- package/chunks/ripGrep-OWV2IVJC.js +72 -0
- package/chunks/{ru-FZCNZHDC.js → ru-7OZAUKGG.js} +6 -1
- package/chunks/{run-qwen-serve-FU6HEM4J.js → run-qwen-serve-TSTCO4XE.js} +953 -249
- package/chunks/{runtime-XXRRTNP6.js → runtime-DAUPSUKI.js} +56 -56
- package/chunks/{scheduler-G2ZS2Z7E.js → scheduler-KMADMT26.js} +46 -47
- package/chunks/{sdk-exporters-grpc-AK3LGHNO.js → sdk-exporters-grpc-54L4LS5L.js} +4 -4
- package/chunks/{sdk-exporters-http-FYBSUCPD.js → sdk-exporters-http-WO556XNU.js} +7 -7
- package/chunks/{sdk-impl-GMVPB7NB.js → sdk-impl-LPAVACSF.js} +14 -14
- package/chunks/{send-message-Q6OOR6BR.js → send-message-SAWK4DZX.js} +6 -6
- package/chunks/serve-NNRWS6F4.js +88 -0
- package/chunks/{server-4UMH7OIZ.js → server-WEH7DVCH.js} +3691 -823
- package/chunks/{session-K3O3Q2SV.js → session-WXC56V2I.js} +98 -95
- package/chunks/{settings-CR2EWTBA.js → settings-DJDXFDZ3.js} +55 -56
- package/chunks/shell-JN5VRQXD.js +82 -0
- package/chunks/{skill-I3SDA4MB.js → skill-SGXPKJCS.js} +20 -21
- package/chunks/skill-settings-VJ5PDMZI.js +90 -0
- package/chunks/spawnChannel-ETMJW7YX.js +81 -0
- package/chunks/standalone-update-MK3Z7KBI.js +91 -0
- package/chunks/{startInteractiveUI-SLZGHRPH.js → startInteractiveUI-ZCGIXPGT.js} +724 -383
- package/chunks/{syntheticOutput-I3757IWH.js → syntheticOutput-355CB6CJ.js} +4 -4
- package/chunks/{task-create-N7WQSGYA.js → task-create-INGWNUG4.js} +10 -10
- package/chunks/{task-list-FOPULZEP.js → task-list-5XNNGTF4.js} +7 -7
- package/chunks/{task-stop-H6RHXFVQ.js → task-stop-4ROAOBXH.js} +3 -3
- package/chunks/{task-update-M57TFZJT.js → task-update-CRK5VWWZ.js} +10 -10
- package/chunks/{team-create-YJALH5D2.js → team-create-QQGAJG7P.js} +49 -50
- package/chunks/{team-delete-QE2UXJL7.js → team-delete-S2RCXA4P.js} +7 -7
- package/chunks/{team-plan-approval-34QFYKGN.js → team-plan-approval-RT7Q5R6O.js} +47 -48
- package/chunks/theme-manager-EEWIQJ7J.js +76 -0
- package/chunks/{todoWrite-VQ7FKOHL.js → todoWrite-7WM3VDMY.js} +7 -7
- package/chunks/{tool-search-NF7GB6LE.js → tool-search-Z3Z4AYKP.js} +19 -21
- package/chunks/total-session-admission-44JKRWQD.js +84 -0
- package/chunks/trustedFolders-X2JEIO57.js +94 -0
- package/chunks/{update-relaunch-WBUZJC5O.js → update-relaunch-VWNPYDIP.js} +5 -5
- package/chunks/updateCheck-KAQH67DV.js +91 -0
- package/chunks/useAutoAcceptIndicator-JH6BCF7S.js +92 -0
- package/chunks/{validateNonInterActiveAuth-3R223G3R.js → validateNonInterActiveAuth-GIUJ2UFS.js} +93 -90
- package/chunks/{version-HS7YSFHV.js → version-BGLYIJUY.js} +1 -1
- package/chunks/{web-fetch-NKCSG7ZE.js → web-fetch-OTDU4VQF.js} +19 -21
- package/chunks/{web-search-S62WAP4S.js → web-search-FP6SIHPR.js} +13 -13
- package/chunks/{workflow-QAGU5RU4.js → workflow-YCIVBYSB.js} +48 -49
- package/chunks/workspace-providers-status-S35YAIUS.js +85 -0
- package/chunks/{workspace-registration-store-24JMHDGF.js → workspace-registration-store-OTMS3H4C.js} +1 -1
- package/chunks/workspace-registry-O63R6IZ4.js +92 -0
- package/chunks/workspace-service-M6LLHKJ5.js +99 -0
- package/chunks/workspace-skills-status-C2V7BAIS.js +85 -0
- package/chunks/workspace-trust-reconciler-IBUPOUJN.js +345 -0
- package/chunks/write-file-3BZC3EAE.js +72 -0
- package/chunks/xterm-headless-NTYVIBT3.js +3475 -0
- package/chunks/{zh-LUIGBD55.js → zh-H3YDK5QW.js} +9 -1
- package/chunks/{zh-TW-F5KG2IYD.js → zh-TW-JYCP7XUA.js} +9 -1
- package/chunks/zoom-image-TZ6S2O57.js +351 -0
- package/cli.js +13 -13
- package/locales/ca.js +7 -2
- package/locales/de.js +7 -2
- package/locales/en.js +10 -2
- package/locales/fr.js +7 -2
- package/locales/ja.js +7 -2
- package/locales/pt.js +7 -2
- package/locales/ru.js +7 -2
- package/locales/zh-TW.js +10 -2
- package/locales/zh.js +10 -2
- package/package.json +5 -4
- package/web-shell/assets/{arc-DcbWnB9T.js → arc-75-Wdeo3.js} +1 -1
- package/web-shell/assets/{architectureDiagram-3BPJPVTR-kMMF5sud.js → architectureDiagram-3BPJPVTR-FKeXQbyP.js} +1 -1
- package/web-shell/assets/{blockDiagram-GPEHLZMM-Htl9vTJS.js → blockDiagram-GPEHLZMM-CY0vc-A3.js} +1 -1
- package/web-shell/assets/{c4Diagram-AAUBKEIU-BnZnm0mQ.js → c4Diagram-AAUBKEIU-CNP-A-8u.js} +1 -1
- package/web-shell/assets/channel-DPYMT76A.js +1 -0
- package/web-shell/assets/{chunk-2J33WTMH-DziB7kDG.js → chunk-2J33WTMH-GybS4Gii.js} +1 -1
- package/web-shell/assets/{chunk-4BX2VUAB-CmkD8daw.js → chunk-4BX2VUAB-02H91V8v.js} +1 -1
- package/web-shell/assets/{chunk-55IACEB6-CHAd9A_U.js → chunk-55IACEB6-D3M-2VT6.js} +1 -1
- package/web-shell/assets/{chunk-727SXJPM-Dqaam3fE.js → chunk-727SXJPM-CCu29u4H.js} +1 -1
- package/web-shell/assets/{chunk-AQP2D5EJ-D_-saBYM.js → chunk-AQP2D5EJ-CaFKWgrn.js} +1 -1
- package/web-shell/assets/{chunk-FMBD7UC4-B9r_veWD.js → chunk-FMBD7UC4-ZZpPqIwQ.js} +1 -1
- package/web-shell/assets/{chunk-ND2GUHAM-B3EaCSpL.js → chunk-ND2GUHAM-D22DqGs8.js} +1 -1
- package/web-shell/assets/{chunk-QZHKN3VN-CYq8x9mn.js → chunk-QZHKN3VN-Bu85S0fw.js} +1 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK--JstsIgL.js +1 -0
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2--JstsIgL.js +1 -0
- package/web-shell/assets/{cose-bilkent-S5V4N54A-D0ng4uiB.js → cose-bilkent-S5V4N54A-f1CK1Gwe.js} +1 -1
- package/web-shell/assets/{dagre-BM42HDAG-DCZollQv.js → dagre-BM42HDAG-D0Ow8F_n.js} +1 -1
- package/web-shell/assets/{diagram-2AECGRRQ-Dfk2pWS0.js → diagram-2AECGRRQ-BPrmTWp8.js} +1 -1
- package/web-shell/assets/{diagram-5GNKFQAL-kX38ltWR.js → diagram-5GNKFQAL-HccuFAzy.js} +1 -1
- package/web-shell/assets/{diagram-KO2AKTUF-CJz2vsXh.js → diagram-KO2AKTUF-BrS76mbA.js} +1 -1
- package/web-shell/assets/{diagram-LMA3HP47-BvMLZm_7.js → diagram-LMA3HP47-V7T9lU-5.js} +1 -1
- package/web-shell/assets/{diagram-OG6HWLK6-l7kfStkO.js → diagram-OG6HWLK6-DKidyJMR.js} +1 -1
- package/web-shell/assets/{erDiagram-TEJ5UH35-BSVa8GGT.js → erDiagram-TEJ5UH35-DBadZIkp.js} +1 -1
- package/web-shell/assets/{flowDiagram-I6XJVG4X-CoawKIXH.js → flowDiagram-I6XJVG4X-BymfqdNJ.js} +1 -1
- package/web-shell/assets/{ganttDiagram-6RSMTGT7-DFUDH0zF.js → ganttDiagram-6RSMTGT7-DOw340jf.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-PVQCEYII-Y2pvpT4e.js → gitGraphDiagram-PVQCEYII-_8EiD8sl.js} +1 -1
- package/web-shell/assets/{index-D0GX0zZf.js → index-CKIadvET.js} +1 -1
- package/web-shell/assets/index-D1eXNRHe.js +1389 -0
- package/web-shell/assets/index-DVLD4CQq.css +5 -0
- package/web-shell/assets/{infoDiagram-5YYISTIA-CU8_zLiX.js → infoDiagram-5YYISTIA-D61KYQBu.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-AVQiV0DU.js → ishikawaDiagram-YF4QCWOH-CsiXSpNx.js} +1 -1
- package/web-shell/assets/{journeyDiagram-JHISSGLW-DQ0VSKa3.js → journeyDiagram-JHISSGLW-Sdfionyh.js} +1 -1
- package/web-shell/assets/{kanban-definition-UN3LZRKU-BqnWqsE_.js → kanban-definition-UN3LZRKU-C3WI3Cnl.js} +1 -1
- package/web-shell/assets/{linear-BkoihsaA.js → linear-Dpigcc62.js} +1 -1
- package/web-shell/assets/{mermaid.core-5RJs-31j.js → mermaid.core-Ct97pqgW.js} +5 -5
- package/web-shell/assets/{mindmap-definition-RKZ34NQL-D33Bxnpd.js → mindmap-definition-RKZ34NQL-BzeaN0rB.js} +1 -1
- package/web-shell/assets/{pieDiagram-4H26LBE5-BuEAw3BH.js → pieDiagram-4H26LBE5-CvjgcbVD.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-W4KKPZXB-Kox_usEq.js → quadrantDiagram-W4KKPZXB-BUzgTNdH.js} +1 -1
- package/web-shell/assets/{requirementDiagram-4Y6WPE33-CNjeUif0.js → requirementDiagram-4Y6WPE33-B7zKlgUQ.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-5OEKKPKP-BCd2OL_U.js → sankeyDiagram-5OEKKPKP-Bb9CQgrT.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-3UESZ5HK-CF2ZTsz0.js → sequenceDiagram-3UESZ5HK-DJ6V7itG.js} +1 -1
- package/web-shell/assets/{stateDiagram-AJRCARHV-qenSzHtm.js → stateDiagram-AJRCARHV-IImflERY.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-CYI_YoNR.js +1 -0
- package/web-shell/assets/{timeline-definition-PNZ67QCA-B5DyWdgs.js → timeline-definition-PNZ67QCA-6Q_uWHKh.js} +1 -1
- package/web-shell/assets/{vennDiagram-CIIHVFJN-DqP4I_o_.js → vennDiagram-CIIHVFJN-TmyKyjwv.js} +1 -1
- package/web-shell/assets/{wardley-L42UT6IY-CJe2e4mg.js → wardley-L42UT6IY-CRh9uiPv.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-YWT4CUSO-BMDSw-Rr.js → wardleyDiagram-YWT4CUSO-59TKAW8w.js} +1 -1
- package/web-shell/assets/{xychartDiagram-2RQKCTM6-BTVZYkxD.js → xychartDiagram-2RQKCTM6-GCSUIK2L.js} +1 -1
- package/web-shell/index.html +2 -2
- package/chunks/MaxSizedBox-5DPPWPGT.js +0 -85
- package/chunks/agent-6ODUANDO.js +0 -81
- package/chunks/agent-headless-7BYQTMHW.js +0 -75
- package/chunks/bridge-ZUB64FAE.js +0 -90
- package/chunks/chunk-LEH5C7FV.js +0 -232
- package/chunks/chunk-SZRN75WQ.js +0 -29
- package/chunks/chunk-UGYMA4EI.js +0 -219
- package/chunks/chunk-Z2BC6UJ5.js +0 -8575
- package/chunks/contextCommand-JLHYA34Z.js +0 -80
- package/chunks/daemon-status-provider-2233Q37D.js +0 -89
- package/chunks/earlyInputCapture-A7NDU3PF.js +0 -82
- package/chunks/errors-M7CLORXH.js +0 -88
- package/chunks/exitPlanMode-GXTBWQAR.js +0 -403
- package/chunks/handleAutoUpdate-6DBEZYPV.js +0 -81
- package/chunks/i18n-VUJJZIMU.js +0 -97
- package/chunks/initializer-UWAK5U5O.js +0 -86
- package/chunks/installationInfo-6O2YAA52.js +0 -80
- package/chunks/list-GB4ESM3T.js +0 -89
- package/chunks/loadedSettingsAdapter-OT6JVQ7U.js +0 -83
- package/chunks/mcp-6DBDJPFU.js +0 -83
- package/chunks/nonInteractiveCli-MOYCYBBU.js +0 -141
- package/chunks/pidfile-TFRZZZIO.js +0 -86
- package/chunks/read-file-APMO3PSX.js +0 -31
- package/chunks/resumeHistoryUtils-6KRYEAWZ.js +0 -91
- package/chunks/ripGrep-BEJDEDXW.js +0 -73
- package/chunks/serve-7BSTXJ4T.js +0 -89
- package/chunks/shell-HH3PF3A2.js +0 -83
- package/chunks/spawnChannel-RWNDBXGA.js +0 -82
- package/chunks/src-GE4TTTML.js +0 -3147
- package/chunks/standalone-update-Q6WFRZZQ.js +0 -92
- package/chunks/theme-manager-SWRILQHI.js +0 -77
- package/chunks/total-session-admission-DLHHHLD3.js +0 -84
- package/chunks/trustedFolders-KHXHY6PY.js +0 -93
- package/chunks/updateCheck-RKL6M5XN.js +0 -92
- package/chunks/useAutoAcceptIndicator-CFQ5BUJL.js +0 -93
- package/chunks/workspace-providers-status-QSVZUETE.js +0 -86
- package/chunks/workspace-registry-UT4RBNBM.js +0 -88
- package/chunks/workspace-service-JFWRUS4V.js +0 -98
- package/chunks/workspace-skills-status-ZBBKJOI2.js +0 -85
- package/chunks/write-file-VHIXW5M7.js +0 -73
- package/web-shell/assets/channel-Cq7YKtfC.js +0 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-CQ9aC1Tg.js +0 -1
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-CQ9aC1Tg.js +0 -1
- package/web-shell/assets/index-D9haPt0X.css +0 -5
- package/web-shell/assets/index-ckX9Pq5k.js +0 -1230
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-B7W4zlCr.js +0 -1
- package/chunks/{chunk-TARRHLLG.js → chunk-QUGAUQGJ.js} +25 -25
- package/chunks/{chunk-U7ZFW55U.js → chunk-VOQXFAY5.js} +977 -977
- /package/chunks/{chunk-LXXMOYPL.js → chunk-VXZBKKQR.js} +0 -0
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
init_esm,
|
|
5
5
|
isSpanContextValid,
|
|
6
6
|
trace
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QUGAUQGJ.js";
|
|
8
8
|
import {
|
|
9
9
|
init_esbuild_shims
|
|
10
10
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -110,7 +110,7 @@ function getErrorMessage(error) {
|
|
|
110
110
|
`${error.message} (cause: ${detail})`
|
|
111
111
|
);
|
|
112
112
|
}
|
|
113
|
-
return error.message;
|
|
113
|
+
return truncateStringifiedErrorMessage(error.message);
|
|
114
114
|
}
|
|
115
115
|
if (error !== null && typeof error === "object" && !Array.isArray(error)) {
|
|
116
116
|
const { message, cause } = error;
|
|
@@ -176,14 +176,6 @@ var FatalError = class extends Error {
|
|
|
176
176
|
__name(this, "FatalError");
|
|
177
177
|
}
|
|
178
178
|
};
|
|
179
|
-
var FatalAuthenticationError = class extends FatalError {
|
|
180
|
-
static {
|
|
181
|
-
__name(this, "FatalAuthenticationError");
|
|
182
|
-
}
|
|
183
|
-
constructor(message) {
|
|
184
|
-
super(message, 41);
|
|
185
|
-
}
|
|
186
|
-
};
|
|
187
179
|
var FatalInputError = class extends FatalError {
|
|
188
180
|
static {
|
|
189
181
|
__name(this, "FatalInputError");
|
|
@@ -216,14 +208,6 @@ var FatalTurnLimitedError = class extends FatalError {
|
|
|
216
208
|
super(message, 53);
|
|
217
209
|
}
|
|
218
210
|
};
|
|
219
|
-
var FatalToolExecutionError = class extends FatalError {
|
|
220
|
-
static {
|
|
221
|
-
__name(this, "FatalToolExecutionError");
|
|
222
|
-
}
|
|
223
|
-
constructor(message) {
|
|
224
|
-
super(message, 54);
|
|
225
|
-
}
|
|
226
|
-
};
|
|
227
211
|
var FatalBudgetExceededError = class extends FatalError {
|
|
228
212
|
static {
|
|
229
213
|
__name(this, "FatalBudgetExceededError");
|
|
@@ -289,13 +273,8 @@ import path from "node:path";
|
|
|
289
273
|
import os from "node:os";
|
|
290
274
|
import * as crypto from "node:crypto";
|
|
291
275
|
var QWEN_DIR = ".qwen";
|
|
292
|
-
var GOOGLE_ACCOUNTS_FILENAME = "google_accounts.json";
|
|
293
276
|
var isDirectoryCache = /* @__PURE__ */ new Map();
|
|
294
277
|
var VALIDATE_PATH_CACHE_MAX = 1024;
|
|
295
|
-
function _resetValidatePathCacheForTest() {
|
|
296
|
-
isDirectoryCache.clear();
|
|
297
|
-
}
|
|
298
|
-
__name(_resetValidatePathCacheForTest, "_resetValidatePathCacheForTest");
|
|
299
278
|
var SHELL_SPECIAL_CHARS = /[ \t()[\]{};|*?$`'"#&<>!~,]/;
|
|
300
279
|
var PATH_ARG_KEYS = [
|
|
301
280
|
"file_path",
|
|
@@ -554,7 +533,7 @@ import * as path2 from "node:path";
|
|
|
554
533
|
import * as os2 from "node:os";
|
|
555
534
|
import * as fs2 from "node:fs";
|
|
556
535
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
557
|
-
var
|
|
536
|
+
var GOOGLE_ACCOUNTS_FILENAME = "google_accounts.json";
|
|
558
537
|
var OAUTH_FILE = "oauth_creds.json";
|
|
559
538
|
var SKILL_PROVIDER_CONFIG_DIRS = [".qwen", ".agents"];
|
|
560
539
|
var TMP_DIR_NAME = "tmp";
|
|
@@ -681,7 +660,7 @@ var Storage = class _Storage {
|
|
|
681
660
|
return path2.join(_Storage.getGlobalQwenDir(), "installation_id");
|
|
682
661
|
}
|
|
683
662
|
static getGoogleAccountsPath() {
|
|
684
|
-
return path2.join(_Storage.getGlobalQwenDir(),
|
|
663
|
+
return path2.join(_Storage.getGlobalQwenDir(), GOOGLE_ACCOUNTS_FILENAME);
|
|
685
664
|
}
|
|
686
665
|
static getUserCommandsDir() {
|
|
687
666
|
return path2.join(_Storage.getGlobalQwenDir(), "commands");
|
|
@@ -886,6 +865,31 @@ var Storage = class _Storage {
|
|
|
886
865
|
}
|
|
887
866
|
};
|
|
888
867
|
|
|
868
|
+
// packages/core/src/telemetry/session-context.ts
|
|
869
|
+
init_esbuild_shims();
|
|
870
|
+
var sessionRootContext;
|
|
871
|
+
var currentSessionId;
|
|
872
|
+
function setSessionContext(ctx, sessionId) {
|
|
873
|
+
sessionRootContext = ctx;
|
|
874
|
+
currentSessionId = sessionId;
|
|
875
|
+
}
|
|
876
|
+
__name(setSessionContext, "setSessionContext");
|
|
877
|
+
function getSessionContext() {
|
|
878
|
+
return sessionRootContext;
|
|
879
|
+
}
|
|
880
|
+
__name(getSessionContext, "getSessionContext");
|
|
881
|
+
function getCurrentSessionId() {
|
|
882
|
+
return currentSessionId;
|
|
883
|
+
}
|
|
884
|
+
__name(getCurrentSessionId, "getCurrentSessionId");
|
|
885
|
+
|
|
886
|
+
// packages/core/src/utils/debugLogger.ts
|
|
887
|
+
init_esbuild_shims();
|
|
888
|
+
import { promises as fs4 } from "node:fs";
|
|
889
|
+
import path4 from "node:path";
|
|
890
|
+
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
891
|
+
import util from "node:util";
|
|
892
|
+
|
|
889
893
|
// packages/core/src/utils/symlink.ts
|
|
890
894
|
init_esbuild_shims();
|
|
891
895
|
import { promises as fs3 } from "node:fs";
|
|
@@ -912,24 +916,6 @@ async function updateSymlink(linkPath, targetPath, options) {
|
|
|
912
916
|
}
|
|
913
917
|
__name(updateSymlink, "updateSymlink");
|
|
914
918
|
|
|
915
|
-
// packages/core/src/telemetry/session-context.ts
|
|
916
|
-
init_esbuild_shims();
|
|
917
|
-
var sessionRootContext;
|
|
918
|
-
var currentSessionId;
|
|
919
|
-
function setSessionContext(ctx, sessionId) {
|
|
920
|
-
sessionRootContext = ctx;
|
|
921
|
-
currentSessionId = sessionId;
|
|
922
|
-
}
|
|
923
|
-
__name(setSessionContext, "setSessionContext");
|
|
924
|
-
function getSessionContext() {
|
|
925
|
-
return sessionRootContext;
|
|
926
|
-
}
|
|
927
|
-
__name(getSessionContext, "getSessionContext");
|
|
928
|
-
function getCurrentSessionId() {
|
|
929
|
-
return currentSessionId;
|
|
930
|
-
}
|
|
931
|
-
__name(getCurrentSessionId, "getCurrentSessionId");
|
|
932
|
-
|
|
933
919
|
// packages/core/src/telemetry/trace-context.ts
|
|
934
920
|
init_esbuild_shims();
|
|
935
921
|
init_esm();
|
|
@@ -984,11 +970,6 @@ function isShellTracePropagationEnabled() {
|
|
|
984
970
|
__name(isShellTracePropagationEnabled, "isShellTracePropagationEnabled");
|
|
985
971
|
|
|
986
972
|
// packages/core/src/utils/debugLogger.ts
|
|
987
|
-
init_esbuild_shims();
|
|
988
|
-
import { promises as fs4 } from "node:fs";
|
|
989
|
-
import path4 from "node:path";
|
|
990
|
-
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
991
|
-
import util from "node:util";
|
|
992
973
|
var ensureDebugDirPromise = null;
|
|
993
974
|
var ensuredDebugDirPath = null;
|
|
994
975
|
var hasWriteFailure = false;
|
|
@@ -1055,12 +1036,6 @@ function isDebugLoggingDegraded() {
|
|
|
1055
1036
|
return hasWriteFailure;
|
|
1056
1037
|
}
|
|
1057
1038
|
__name(isDebugLoggingDegraded, "isDebugLoggingDegraded");
|
|
1058
|
-
function resetDebugLoggingState() {
|
|
1059
|
-
hasWriteFailure = false;
|
|
1060
|
-
ensureDebugDirPromise = null;
|
|
1061
|
-
ensuredDebugDirPath = null;
|
|
1062
|
-
}
|
|
1063
|
-
__name(resetDebugLoggingState, "resetDebugLoggingState");
|
|
1064
1039
|
var DEBUG_LATEST_ALIAS = "latest";
|
|
1065
1040
|
var SESSION_ID_PATTERN = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
1066
1041
|
function updateLatestDebugLogAlias(sessionId) {
|
|
@@ -1083,10 +1058,6 @@ function setDebugLogSession(session) {
|
|
|
1083
1058
|
}
|
|
1084
1059
|
}
|
|
1085
1060
|
__name(setDebugLogSession, "setDebugLogSession");
|
|
1086
|
-
function runWithDebugLogSession(session, fn) {
|
|
1087
|
-
return sessionContext.run(session, fn);
|
|
1088
|
-
}
|
|
1089
|
-
__name(runWithDebugLogSession, "runWithDebugLogSession");
|
|
1090
1061
|
function runWithoutDebugLogSession(fn) {
|
|
1091
1062
|
return sessionContext.run(false, fn);
|
|
1092
1063
|
}
|
|
@@ -1125,22 +1096,15 @@ export {
|
|
|
1125
1096
|
getErrorStatus,
|
|
1126
1097
|
getErrorType,
|
|
1127
1098
|
FatalError,
|
|
1128
|
-
FatalAuthenticationError,
|
|
1129
1099
|
FatalInputError,
|
|
1130
1100
|
FatalSandboxError,
|
|
1131
1101
|
FatalConfigError,
|
|
1132
1102
|
FatalTurnLimitedError,
|
|
1133
|
-
FatalToolExecutionError,
|
|
1134
1103
|
FatalBudgetExceededError,
|
|
1135
1104
|
FatalCancellationError,
|
|
1136
|
-
ForbiddenError,
|
|
1137
1105
|
UnauthorizedError,
|
|
1138
|
-
BadRequestError,
|
|
1139
1106
|
toFriendlyError,
|
|
1140
1107
|
QWEN_DIR,
|
|
1141
|
-
GOOGLE_ACCOUNTS_FILENAME,
|
|
1142
|
-
_resetValidatePathCacheForTest,
|
|
1143
|
-
SHELL_SPECIAL_CHARS,
|
|
1144
1108
|
PATH_ARG_KEYS,
|
|
1145
1109
|
tildeifyPath,
|
|
1146
1110
|
expandHomeDir,
|
|
@@ -1154,7 +1118,6 @@ export {
|
|
|
1154
1118
|
isSubpath,
|
|
1155
1119
|
isSubpaths,
|
|
1156
1120
|
resolvePath,
|
|
1157
|
-
validatePath,
|
|
1158
1121
|
resolveAndValidatePath,
|
|
1159
1122
|
SKILL_PROVIDER_CONFIG_DIRS,
|
|
1160
1123
|
Storage,
|
|
@@ -1168,9 +1131,7 @@ export {
|
|
|
1168
1131
|
isShellTracePropagationEnabled,
|
|
1169
1132
|
isDebugLogFileEnabled,
|
|
1170
1133
|
isDebugLoggingDegraded,
|
|
1171
|
-
resetDebugLoggingState,
|
|
1172
1134
|
setDebugLogSession,
|
|
1173
|
-
runWithDebugLogSession,
|
|
1174
1135
|
runWithoutDebugLogSession,
|
|
1175
1136
|
createDebugLogger
|
|
1176
1137
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
getInboxesDir
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2LQTH543.js";
|
|
6
6
|
import {
|
|
7
7
|
require_proper_lockfile
|
|
8
8
|
} from "./chunk-KRXPRVGL.js";
|
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
} from "./chunk-VGC4I5JJ.js";
|
|
12
12
|
import {
|
|
13
13
|
atomicWriteJSON
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-7XATOOE7.js";
|
|
15
15
|
import {
|
|
16
16
|
createDebugLogger,
|
|
17
17
|
isNodeError
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-UHUSJ6X7.js";
|
|
19
19
|
import {
|
|
20
20
|
init_esbuild_shims
|
|
21
21
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -27,14 +27,6 @@ import {
|
|
|
27
27
|
// packages/core/src/agents/team/leaderPermissionBridge.ts
|
|
28
28
|
init_esbuild_shims();
|
|
29
29
|
var leaderCallbacks = null;
|
|
30
|
-
function registerLeader(callbacks) {
|
|
31
|
-
leaderCallbacks = callbacks;
|
|
32
|
-
}
|
|
33
|
-
__name(registerLeader, "registerLeader");
|
|
34
|
-
function getLeader() {
|
|
35
|
-
return leaderCallbacks;
|
|
36
|
-
}
|
|
37
|
-
__name(getLeader, "getLeader");
|
|
38
30
|
function unregisterLeader() {
|
|
39
31
|
leaderCallbacks = null;
|
|
40
32
|
}
|
|
@@ -167,15 +159,6 @@ async function consumeUnread(teamName, agentName, type) {
|
|
|
167
159
|
});
|
|
168
160
|
}
|
|
169
161
|
__name(consumeUnread, "consumeUnread");
|
|
170
|
-
async function clearInbox(teamName, agentName) {
|
|
171
|
-
const inboxPath = getInboxPath(teamName, agentName);
|
|
172
|
-
try {
|
|
173
|
-
await fs.unlink(inboxPath);
|
|
174
|
-
} catch (err) {
|
|
175
|
-
if (!isNodeError(err) || err.code !== "ENOENT") throw err;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
__name(clearInbox, "clearInbox");
|
|
179
162
|
async function clearAllInboxes(teamName) {
|
|
180
163
|
const dir = getInboxesDir(teamName);
|
|
181
164
|
await fs.rm(dir, { recursive: true, force: true });
|
|
@@ -224,8 +207,6 @@ async function readInboxRaw(inboxPath) {
|
|
|
224
207
|
__name(readInboxRaw, "readInboxRaw");
|
|
225
208
|
|
|
226
209
|
export {
|
|
227
|
-
registerLeader,
|
|
228
|
-
getLeader,
|
|
229
210
|
unregisterLeader,
|
|
230
211
|
forwardApproval,
|
|
231
212
|
wrapConfirmWithBadge,
|
|
@@ -234,7 +215,6 @@ export {
|
|
|
234
215
|
readInbox,
|
|
235
216
|
writeMessage,
|
|
236
217
|
consumeUnread,
|
|
237
|
-
clearInbox,
|
|
238
218
|
clearAllInboxes,
|
|
239
219
|
sendStructuredMessage
|
|
240
220
|
};
|
|
@@ -14440,6 +14440,20 @@ var cleanupYogaNode = /* @__PURE__ */ __name((node) => {
|
|
|
14440
14440
|
node?.unsetMeasureFunc();
|
|
14441
14441
|
node?.freeRecursive();
|
|
14442
14442
|
}, "cleanupYogaNode");
|
|
14443
|
+
var clearStaticNodeIfContained = /* @__PURE__ */ __name((removeNode) => {
|
|
14444
|
+
const staticNode = currentRootNode?.staticNode;
|
|
14445
|
+
if (!staticNode) {
|
|
14446
|
+
return;
|
|
14447
|
+
}
|
|
14448
|
+
let current = staticNode;
|
|
14449
|
+
while (current) {
|
|
14450
|
+
if (current === removeNode) {
|
|
14451
|
+
currentRootNode.staticNode = void 0;
|
|
14452
|
+
return;
|
|
14453
|
+
}
|
|
14454
|
+
current = current.parentNode;
|
|
14455
|
+
}
|
|
14456
|
+
}, "clearStaticNodeIfContained");
|
|
14443
14457
|
var currentUpdatePriority = import_constants.NoEventPriority;
|
|
14444
14458
|
var currentRootNode;
|
|
14445
14459
|
async function loadPackageJson() {
|
|
@@ -14594,11 +14608,10 @@ var reconciler_default = (0, import_react_reconciler.default)({
|
|
|
14594
14608
|
appendChildToContainer: appendChildNode,
|
|
14595
14609
|
insertInContainerBefore: insertBeforeNode,
|
|
14596
14610
|
removeChildFromContainer(node, removeNode) {
|
|
14611
|
+
clearStaticNodeIfContained(removeNode);
|
|
14597
14612
|
removeChildNode(node, removeNode);
|
|
14598
14613
|
cleanupYogaNode(removeNode.yogaNode);
|
|
14599
|
-
|
|
14600
|
-
currentRootNode.staticNode = void 0;
|
|
14601
|
-
}
|
|
14614
|
+
removeNode.yogaNode = void 0;
|
|
14602
14615
|
},
|
|
14603
14616
|
commitUpdate(node, _type, oldProps, newProps) {
|
|
14604
14617
|
if (currentRootNode && node.internal_static) {
|
|
@@ -14634,11 +14647,10 @@ var reconciler_default = (0, import_react_reconciler.default)({
|
|
|
14634
14647
|
setTextNodeValue(node, newText);
|
|
14635
14648
|
},
|
|
14636
14649
|
removeChild(node, removeNode) {
|
|
14650
|
+
clearStaticNodeIfContained(removeNode);
|
|
14637
14651
|
removeChildNode(node, removeNode);
|
|
14638
14652
|
cleanupYogaNode(removeNode.yogaNode);
|
|
14639
|
-
|
|
14640
|
-
currentRootNode.staticNode = void 0;
|
|
14641
|
-
}
|
|
14653
|
+
removeNode.yogaNode = void 0;
|
|
14642
14654
|
},
|
|
14643
14655
|
setCurrentUpdatePriority(newPriority) {
|
|
14644
14656
|
currentUpdatePriority = newPriority;
|
|
@@ -18485,6 +18497,7 @@ var Ink = class {
|
|
|
18485
18497
|
return this.nextRenderCommit.promise;
|
|
18486
18498
|
}
|
|
18487
18499
|
renderInteractiveFrame(output, outputHeight, staticOutput) {
|
|
18500
|
+
this.log.setCursorPosition(this.cursorPosition);
|
|
18488
18501
|
const hasStaticOutput = staticOutput !== "";
|
|
18489
18502
|
const isTty = this.options.stdout.isTTY;
|
|
18490
18503
|
const viewportRows = isTty ? getWindowSize(this.options.stdout).rows : 24;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
preloadRuntimeFetchModule
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WZRWHXFE.js";
|
|
6
6
|
import {
|
|
7
7
|
init_esbuild_shims
|
|
8
8
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -13,82 +13,9 @@ import {
|
|
|
13
13
|
// packages/core/src/config/models.ts
|
|
14
14
|
init_esbuild_shims();
|
|
15
15
|
var DEFAULT_QWEN_MODEL = "coder-model";
|
|
16
|
-
var DEFAULT_QWEN_FLASH_MODEL = "coder-model";
|
|
17
16
|
var DEFAULT_QWEN_EMBEDDING_MODEL = "text-embedding-v4";
|
|
18
17
|
var MAINLINE_CODER_MODEL = "qwen3.7-max";
|
|
19
18
|
|
|
20
|
-
// packages/core/src/models/constants.ts
|
|
21
|
-
init_esbuild_shims();
|
|
22
|
-
var MODEL_GENERATION_CONFIG_FIELDS = [
|
|
23
|
-
"samplingParams",
|
|
24
|
-
"timeout",
|
|
25
|
-
"maxRetries",
|
|
26
|
-
"retryErrorCodes",
|
|
27
|
-
"enableCacheControl",
|
|
28
|
-
"forceGlobalCacheScope",
|
|
29
|
-
"schemaCompliance",
|
|
30
|
-
"reasoning",
|
|
31
|
-
"contextWindowSize",
|
|
32
|
-
"customHeaders",
|
|
33
|
-
"extra_body",
|
|
34
|
-
"thinkingMandatory",
|
|
35
|
-
"modalities",
|
|
36
|
-
"splitToolMedia",
|
|
37
|
-
"toolResultContentFormat"
|
|
38
|
-
];
|
|
39
|
-
var CREDENTIAL_FIELDS = [
|
|
40
|
-
"model",
|
|
41
|
-
"apiKey",
|
|
42
|
-
"apiKeyEnvKey",
|
|
43
|
-
"baseUrl"
|
|
44
|
-
];
|
|
45
|
-
var PROVIDER_SOURCED_FIELDS = [
|
|
46
|
-
...CREDENTIAL_FIELDS,
|
|
47
|
-
...MODEL_GENERATION_CONFIG_FIELDS
|
|
48
|
-
];
|
|
49
|
-
var AUTH_ENV_MAPPINGS = {
|
|
50
|
-
openai: {
|
|
51
|
-
apiKey: ["OPENAI_API_KEY"],
|
|
52
|
-
baseUrl: ["OPENAI_BASE_URL"],
|
|
53
|
-
model: ["OPENAI_MODEL", "QWEN_MODEL"]
|
|
54
|
-
},
|
|
55
|
-
anthropic: {
|
|
56
|
-
apiKey: ["ANTHROPIC_API_KEY"],
|
|
57
|
-
baseUrl: ["ANTHROPIC_BASE_URL"],
|
|
58
|
-
model: ["ANTHROPIC_MODEL"]
|
|
59
|
-
},
|
|
60
|
-
gemini: {
|
|
61
|
-
apiKey: ["GEMINI_API_KEY"],
|
|
62
|
-
baseUrl: [],
|
|
63
|
-
model: ["GEMINI_MODEL"]
|
|
64
|
-
},
|
|
65
|
-
"vertex-ai": {
|
|
66
|
-
apiKey: ["GOOGLE_API_KEY"],
|
|
67
|
-
baseUrl: [],
|
|
68
|
-
model: ["GOOGLE_MODEL"]
|
|
69
|
-
},
|
|
70
|
-
"qwen-oauth": {
|
|
71
|
-
apiKey: [],
|
|
72
|
-
baseUrl: [],
|
|
73
|
-
model: []
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
var DEFAULT_MODELS = {
|
|
77
|
-
openai: MAINLINE_CODER_MODEL,
|
|
78
|
-
"qwen-oauth": DEFAULT_QWEN_MODEL
|
|
79
|
-
};
|
|
80
|
-
var QWEN_OAUTH_MODELS = [
|
|
81
|
-
{
|
|
82
|
-
id: "coder-model",
|
|
83
|
-
name: "coder-model",
|
|
84
|
-
description: "Qwen 3.7 Max \u2014 efficient hybrid model with leading coding performance",
|
|
85
|
-
capabilities: { vision: true }
|
|
86
|
-
}
|
|
87
|
-
];
|
|
88
|
-
var QWEN_OAUTH_ALLOWED_MODELS = QWEN_OAUTH_MODELS.map(
|
|
89
|
-
(model) => model.id
|
|
90
|
-
);
|
|
91
|
-
|
|
92
19
|
// packages/core/src/core/contentGenerator.ts
|
|
93
20
|
init_esbuild_shims();
|
|
94
21
|
|
|
@@ -201,6 +128,80 @@ var MissingAnthropicBaseUrlEnvError = class extends ModelConfigError {
|
|
|
201
128
|
}
|
|
202
129
|
};
|
|
203
130
|
|
|
131
|
+
// packages/core/src/models/constants.ts
|
|
132
|
+
init_esbuild_shims();
|
|
133
|
+
var MODEL_GENERATION_CONFIG_FIELDS = [
|
|
134
|
+
"samplingParams",
|
|
135
|
+
"timeout",
|
|
136
|
+
"maxRetries",
|
|
137
|
+
"retryInitialDelayMs",
|
|
138
|
+
"retryMaxDelayMs",
|
|
139
|
+
"retryErrorCodes",
|
|
140
|
+
"enableCacheControl",
|
|
141
|
+
"forceGlobalCacheScope",
|
|
142
|
+
"schemaCompliance",
|
|
143
|
+
"reasoning",
|
|
144
|
+
"contextWindowSize",
|
|
145
|
+
"customHeaders",
|
|
146
|
+
"extra_body",
|
|
147
|
+
"thinkingMandatory",
|
|
148
|
+
"modalities",
|
|
149
|
+
"splitToolMedia",
|
|
150
|
+
"toolResultContentFormat"
|
|
151
|
+
];
|
|
152
|
+
var CREDENTIAL_FIELDS = [
|
|
153
|
+
"model",
|
|
154
|
+
"apiKey",
|
|
155
|
+
"apiKeyEnvKey",
|
|
156
|
+
"baseUrl"
|
|
157
|
+
];
|
|
158
|
+
var PROVIDER_SOURCED_FIELDS = [
|
|
159
|
+
...CREDENTIAL_FIELDS,
|
|
160
|
+
...MODEL_GENERATION_CONFIG_FIELDS
|
|
161
|
+
];
|
|
162
|
+
var AUTH_ENV_MAPPINGS = {
|
|
163
|
+
openai: {
|
|
164
|
+
apiKey: ["OPENAI_API_KEY"],
|
|
165
|
+
baseUrl: ["OPENAI_BASE_URL"],
|
|
166
|
+
model: ["OPENAI_MODEL", "QWEN_MODEL"]
|
|
167
|
+
},
|
|
168
|
+
anthropic: {
|
|
169
|
+
apiKey: ["ANTHROPIC_API_KEY"],
|
|
170
|
+
baseUrl: ["ANTHROPIC_BASE_URL"],
|
|
171
|
+
model: ["ANTHROPIC_MODEL"]
|
|
172
|
+
},
|
|
173
|
+
gemini: {
|
|
174
|
+
apiKey: ["GEMINI_API_KEY"],
|
|
175
|
+
baseUrl: [],
|
|
176
|
+
model: ["GEMINI_MODEL"]
|
|
177
|
+
},
|
|
178
|
+
"vertex-ai": {
|
|
179
|
+
apiKey: ["GOOGLE_API_KEY"],
|
|
180
|
+
baseUrl: [],
|
|
181
|
+
model: ["GOOGLE_MODEL"]
|
|
182
|
+
},
|
|
183
|
+
"qwen-oauth": {
|
|
184
|
+
apiKey: [],
|
|
185
|
+
baseUrl: [],
|
|
186
|
+
model: []
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
var DEFAULT_MODELS = {
|
|
190
|
+
openai: MAINLINE_CODER_MODEL,
|
|
191
|
+
"qwen-oauth": DEFAULT_QWEN_MODEL
|
|
192
|
+
};
|
|
193
|
+
var QWEN_OAUTH_MODELS = [
|
|
194
|
+
{
|
|
195
|
+
id: "coder-model",
|
|
196
|
+
name: "coder-model",
|
|
197
|
+
description: "Qwen 3.7 Max \u2014 efficient hybrid model with leading coding performance",
|
|
198
|
+
capabilities: { vision: true }
|
|
199
|
+
}
|
|
200
|
+
];
|
|
201
|
+
var QWEN_OAUTH_ALLOWED_MODELS = QWEN_OAUTH_MODELS.map(
|
|
202
|
+
(model) => model.id
|
|
203
|
+
);
|
|
204
|
+
|
|
204
205
|
// packages/core/src/core/contentGenerator.ts
|
|
205
206
|
var AuthType = /* @__PURE__ */ ((AuthType2) => {
|
|
206
207
|
AuthType2["USE_OPENAI"] = "openai";
|
|
@@ -304,14 +305,6 @@ function validateModelConfig(config, isStrictModelProvider = false) {
|
|
|
304
305
|
return { valid: errors.length === 0, errors };
|
|
305
306
|
}
|
|
306
307
|
__name(validateModelConfig, "validateModelConfig");
|
|
307
|
-
function createContentGeneratorConfig(config, authType, generationConfig) {
|
|
308
|
-
return resolveContentGeneratorConfigWithSources(
|
|
309
|
-
config,
|
|
310
|
-
authType,
|
|
311
|
-
generationConfig
|
|
312
|
-
).config;
|
|
313
|
-
}
|
|
314
|
-
__name(createContentGeneratorConfig, "createContentGeneratorConfig");
|
|
315
308
|
function getModuleNotFoundError(error) {
|
|
316
309
|
let current = error;
|
|
317
310
|
while (current instanceof Error) {
|
|
@@ -344,29 +337,60 @@ var LazyContentGenerator = class {
|
|
|
344
337
|
__name(this, "LazyContentGenerator");
|
|
345
338
|
}
|
|
346
339
|
generatorPromise;
|
|
340
|
+
preloadedOnly = false;
|
|
347
341
|
getGenerator() {
|
|
348
342
|
this.generatorPromise ??= this.loader();
|
|
349
343
|
return this.generatorPromise;
|
|
350
344
|
}
|
|
345
|
+
getGeneratorForUse() {
|
|
346
|
+
this.preloadedOnly = false;
|
|
347
|
+
return this.getGenerator();
|
|
348
|
+
}
|
|
349
|
+
preload() {
|
|
350
|
+
if (!this.generatorPromise) {
|
|
351
|
+
this.preloadedOnly = true;
|
|
352
|
+
}
|
|
353
|
+
return this.getGenerator();
|
|
354
|
+
}
|
|
355
|
+
resetPreload() {
|
|
356
|
+
if (!this.preloadedOnly) return;
|
|
357
|
+
this.preloadedOnly = false;
|
|
358
|
+
this.generatorPromise = void 0;
|
|
359
|
+
}
|
|
351
360
|
async generateContent(request, userPromptId) {
|
|
352
|
-
return (await this.
|
|
361
|
+
return (await this.getGeneratorForUse()).generateContent(
|
|
362
|
+
request,
|
|
363
|
+
userPromptId
|
|
364
|
+
);
|
|
353
365
|
}
|
|
354
366
|
async generateContentStream(request, userPromptId) {
|
|
355
|
-
return (await this.
|
|
367
|
+
return (await this.getGeneratorForUse()).generateContentStream(
|
|
356
368
|
request,
|
|
357
369
|
userPromptId
|
|
358
370
|
);
|
|
359
371
|
}
|
|
360
372
|
async countTokens(request) {
|
|
361
|
-
return (await this.
|
|
373
|
+
return (await this.getGeneratorForUse()).countTokens(request);
|
|
362
374
|
}
|
|
363
375
|
async embedContent(request) {
|
|
364
|
-
return (await this.
|
|
376
|
+
return (await this.getGeneratorForUse()).embedContent(request);
|
|
365
377
|
}
|
|
366
378
|
useSummarizedThinking() {
|
|
367
379
|
return this.summarizedThinking;
|
|
368
380
|
}
|
|
369
381
|
};
|
|
382
|
+
async function preloadContentGenerator(generator) {
|
|
383
|
+
if (generator instanceof LazyContentGenerator) {
|
|
384
|
+
await generator.preload();
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
__name(preloadContentGenerator, "preloadContentGenerator");
|
|
388
|
+
function resetPreloadedContentGenerator(generator) {
|
|
389
|
+
if (generator instanceof LazyContentGenerator) {
|
|
390
|
+
generator.resetPreload();
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
__name(resetPreloadedContentGenerator, "resetPreloadedContentGenerator");
|
|
370
394
|
async function createContentGenerator(generatorConfig, config, isInitialAuth) {
|
|
371
395
|
const validation = validateModelConfig(generatorConfig, false);
|
|
372
396
|
if (!validation.valid) {
|
|
@@ -381,18 +405,18 @@ async function createContentGenerator(generatorConfig, config, isInitialAuth) {
|
|
|
381
405
|
try {
|
|
382
406
|
if (authType === "openai" /* USE_OPENAI */) {
|
|
383
407
|
loadBaseGenerator = /* @__PURE__ */ __name(async () => {
|
|
384
|
-
const { createOpenAIContentGenerator } = await import("./openaiContentGenerator-
|
|
408
|
+
const { createOpenAIContentGenerator } = await import("./openaiContentGenerator-7LDK3DCJ.js");
|
|
385
409
|
return createOpenAIContentGenerator(generatorConfig, config);
|
|
386
410
|
}, "loadBaseGenerator");
|
|
387
411
|
} else if (authType === "qwen-oauth" /* QWEN_OAUTH */) {
|
|
388
|
-
const { getQwenOAuthClient: getQwenOauthClient } = await import("./qwenOAuth2-
|
|
412
|
+
const { getQwenOAuthClient: getQwenOauthClient } = await import("./qwenOAuth2-7HMU47SF.js");
|
|
389
413
|
try {
|
|
390
414
|
const qwenClient = await getQwenOauthClient(
|
|
391
415
|
config,
|
|
392
416
|
isInitialAuth ? { requireCachedCredentials: true } : void 0
|
|
393
417
|
);
|
|
394
418
|
loadBaseGenerator = /* @__PURE__ */ __name(async () => {
|
|
395
|
-
const { QwenContentGenerator } = await import("./qwenContentGenerator-
|
|
419
|
+
const { QwenContentGenerator } = await import("./qwenContentGenerator-TKWUMR7N.js");
|
|
396
420
|
return new QwenContentGenerator(qwenClient, generatorConfig, config);
|
|
397
421
|
}, "loadBaseGenerator");
|
|
398
422
|
} catch (error) {
|
|
@@ -403,12 +427,12 @@ async function createContentGenerator(generatorConfig, config, isInitialAuth) {
|
|
|
403
427
|
}
|
|
404
428
|
} else if (authType === "anthropic" /* USE_ANTHROPIC */) {
|
|
405
429
|
loadBaseGenerator = /* @__PURE__ */ __name(async () => {
|
|
406
|
-
const { createAnthropicContentGenerator } = await import("./anthropicContentGenerator-
|
|
430
|
+
const { createAnthropicContentGenerator } = await import("./anthropicContentGenerator-V2QOGVYD.js");
|
|
407
431
|
return createAnthropicContentGenerator(generatorConfig, config);
|
|
408
432
|
}, "loadBaseGenerator");
|
|
409
433
|
} else if (authType === "gemini" /* USE_GEMINI */ || authType === "vertex-ai" /* USE_VERTEX_AI */) {
|
|
410
434
|
loadBaseGenerator = /* @__PURE__ */ __name(async () => {
|
|
411
|
-
const { createGeminiContentGenerator } = await import("./geminiContentGenerator-
|
|
435
|
+
const { createGeminiContentGenerator } = await import("./geminiContentGenerator-3XVV5MSS.js");
|
|
412
436
|
return createGeminiContentGenerator(generatorConfig, config);
|
|
413
437
|
}, "loadBaseGenerator");
|
|
414
438
|
} else {
|
|
@@ -424,7 +448,7 @@ async function createContentGenerator(generatorConfig, config, isInitialAuth) {
|
|
|
424
448
|
try {
|
|
425
449
|
const [baseGenerator, { LoggingContentGenerator }] = await Promise.all([
|
|
426
450
|
loadBaseGenerator(),
|
|
427
|
-
import("./loggingContentGenerator-
|
|
451
|
+
import("./loggingContentGenerator-LKOF7XI7.js")
|
|
428
452
|
]);
|
|
429
453
|
return new LoggingContentGenerator(
|
|
430
454
|
baseGenerator,
|
|
@@ -442,7 +466,6 @@ __name(createContentGenerator, "createContentGenerator");
|
|
|
442
466
|
|
|
443
467
|
export {
|
|
444
468
|
DEFAULT_QWEN_MODEL,
|
|
445
|
-
DEFAULT_QWEN_FLASH_MODEL,
|
|
446
469
|
DEFAULT_QWEN_EMBEDDING_MODEL,
|
|
447
470
|
MAINLINE_CODER_MODEL,
|
|
448
471
|
MODEL_GENERATION_CONFIG_FIELDS,
|
|
@@ -453,8 +476,8 @@ export {
|
|
|
453
476
|
QWEN_OAUTH_ALLOWED_MODELS,
|
|
454
477
|
AuthType,
|
|
455
478
|
resolveContentGeneratorConfigWithSources,
|
|
456
|
-
|
|
457
|
-
|
|
479
|
+
preloadContentGenerator,
|
|
480
|
+
resetPreloadedContentGenerator,
|
|
458
481
|
createContentGenerator
|
|
459
482
|
};
|
|
460
483
|
/**
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
isGitRepository
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-X5WNMMIA.js";
|
|
6
6
|
import {
|
|
7
7
|
createDebugLogger
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-UHUSJ6X7.js";
|
|
9
9
|
import {
|
|
10
10
|
init_esbuild_shims
|
|
11
11
|
} from "./chunk-5O2XNYP6.js";
|