@qwen-code/qwen-code 0.22.2 → 0.22.3-nightly.20260831.3a0c4c6108
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/computer-use/SKILL.md +3 -3
- package/bundled/qc-helper/docs/common-workflow.md +32 -0
- package/bundled/qc-helper/docs/configuration/auth.md +6 -6
- package/bundled/qc-helper/docs/configuration/model-providers.md +4 -2
- package/bundled/qc-helper/docs/configuration/settings.md +47 -44
- package/bundled/qc-helper/docs/extension/introduction.md +1 -1
- package/bundled/qc-helper/docs/features/approval-mode.md +3 -0
- package/bundled/qc-helper/docs/features/auto-mode.md +34 -17
- package/bundled/qc-helper/docs/features/channels/dws.md +2 -0
- package/bundled/qc-helper/docs/features/channels/overview.md +36 -3
- package/bundled/qc-helper/docs/features/code-review.md +5 -5
- package/bundled/qc-helper/docs/features/commands.md +41 -0
- package/bundled/qc-helper/docs/features/computer-use.md +2 -2
- package/bundled/qc-helper/docs/features/hooks.md +6 -2
- package/bundled/qc-helper/docs/features/memory.md +1 -0
- package/bundled/qc-helper/docs/features/tool-use-summaries.md +1 -1
- package/bundled/qc-helper/docs/qwen-serve-deploy-local.md +17 -7
- package/bundled/qc-helper/docs/qwen-serve.md +59 -55
- package/bundled/review/SKILL.md +90 -31
- package/bundled/review/references/persistence.md +7 -3
- package/bundled/review/references/posting.md +11 -5
- package/chunks/MaxSizedBox-IHRTWGSY.js +115 -0
- package/chunks/{StandaloneSessionPicker-AVLI6VJP.js → StandaloneSessionPicker-TLVWVTJ7.js} +88 -85
- package/chunks/{acp-startup-profiler-GNYAL6LI.js → acp-startup-profiler-M4X5F3VK.js} +2 -2
- package/chunks/{acpAgent-MXEAN54C.js → acpAgent-7I5LLPP3.js} +1563 -407
- package/chunks/agent-4Z4NTJXD.js +99 -0
- package/chunks/agent-headless-TVUJXQWU.js +89 -0
- package/chunks/{anthropicContentGenerator-HGMBACVE.js → anthropicContentGenerator-VSSPG7XV.js} +84 -55
- package/chunks/{artifact-tool-5YT4QF7Y.js → artifact-tool-TEYW6I4A.js} +11 -3
- package/chunks/{askUserQuestion-4SWJY65V.js → askUserQuestion-PYNBWV63.js} +45 -7
- package/chunks/bridge-EVURP4NO.js +122 -0
- package/chunks/{ca-7HPYOYSZ.js → ca-BNU7YNDE.js} +3 -0
- package/chunks/{channel-management-service-X4AZ6IXX.js → channel-management-service-IDBNYSFW.js} +6 -6
- package/chunks/channel-settings-store-MZNXRKVI.js +125 -0
- package/chunks/{channel-worker-group-27HMGD5S.js → channel-worker-group-ZLP5SJHT.js} +7 -7
- package/chunks/{channel-worker-manager-QEGX646Z.js → channel-worker-manager-FG5377T2.js} +7 -7
- package/chunks/{channel-worker-supervisor-UEW2WWCC.js → channel-worker-supervisor-HDVE4ADS.js} +4 -4
- package/chunks/{chunk-PPKZ7JOE.js → chunk-22UH7VTP.js} +1 -1
- package/chunks/chunk-24FVUD5P.js +49 -0
- package/chunks/{chunk-CMHFCLBU.js → chunk-26SIKQIC.js} +1 -1
- package/chunks/{chunk-5PA6UEYA.js → chunk-3452WXOK.js} +4 -1
- package/chunks/{chunk-SFPGAQUL.js → chunk-373DQUVA.js} +72 -31
- package/chunks/{chunk-H2WDGQ6D.js → chunk-3AKCBZVW.js} +3 -3
- package/chunks/{chunk-LXIBMVRN.js → chunk-3CZGSTZX.js} +15 -9
- package/chunks/{chunk-JVPFTDBK.js → chunk-3EGEBDTW.js} +1 -1
- package/chunks/{chunk-K2NQPH5D.js → chunk-3NQCZMUB.js} +79 -5
- package/chunks/{chunk-E7REAOTN.js → chunk-47ECGEJC.js} +4 -0
- package/chunks/{chunk-WKK5BQNP.js → chunk-4P7PPAHN.js} +45 -421
- package/chunks/chunk-4VQBQLIZ.js +293 -0
- package/chunks/{chunk-4JWNNLPT.js → chunk-5FGWVPCM.js} +4 -4
- package/chunks/{chunk-ZFKOCECU.js → chunk-5ICKESC3.js} +2 -2
- package/chunks/{chunk-3I6UTTDX.js → chunk-67AY5D3M.js} +20 -20
- package/chunks/chunk-6HUXPLB5.js +110 -0
- package/chunks/{chunk-BRVWYMKV.js → chunk-6MBXY6WM.js} +1 -1
- package/chunks/{chunk-6LFTG244.js → chunk-6NWPR2EB.js} +19 -9
- package/chunks/chunk-6OO7QEWV.js +2581 -0
- package/chunks/{chunk-TWSKM647.js → chunk-6VHIWUJP.js} +1 -1
- package/chunks/{chunk-RJC5EIKY.js → chunk-6YXNJXQW.js} +7 -5
- package/chunks/{chunk-TPI7O7HR.js → chunk-7DDTI7Q3.js} +1 -1
- package/chunks/{chunk-KGJGEEVR.js → chunk-7FA2II6K.js} +10 -1
- package/chunks/chunk-7J6OTNGO.js +424 -0
- package/chunks/{chunk-NIFYWDYN.js → chunk-7TBU7PU2.js} +1 -1
- package/chunks/{chunk-3FDFA4MZ.js → chunk-7XICSE62.js} +3 -3
- package/chunks/{chunk-V2NDP3I4.js → chunk-7XL4WRXM.js} +2 -2
- package/chunks/{chunk-F7TNAPZ4.js → chunk-AAX236AR.js} +45 -11
- package/chunks/{chunk-T32W2JHI.js → chunk-ACZ4YRYK.js} +6 -6
- package/chunks/chunk-ADJD4LZF.js +210 -0
- package/chunks/{chunk-JWALNCLT.js → chunk-AF3QB6OL.js} +1 -1
- package/chunks/{chunk-P2SU6ZTI.js → chunk-AI35S34R.js} +3 -3
- package/chunks/{chunk-OIP7C4FE.js → chunk-AKNQMSL2.js} +5 -5
- package/chunks/{chunk-6CGL7E7G.js → chunk-AN3KFCNH.js} +2 -2
- package/chunks/{chunk-ABS25QER.js → chunk-ANVG3BVV.js} +1 -1
- package/chunks/chunk-AYYKUUKP.js +972 -0
- package/chunks/chunk-B2RIIK3K.js +346 -0
- package/chunks/{chunk-F5SZP77N.js → chunk-BBYTY46C.js} +153 -112
- package/chunks/{chunk-XRSOI3DL.js → chunk-BE5FGT5Z.js} +1 -1
- package/chunks/{chunk-BGXZBI5B.js → chunk-BHTYRHJF.js} +3 -2
- package/chunks/{chunk-CSMI4FP5.js → chunk-BSJOBW4U.js} +1 -1
- package/chunks/{chunk-Z7TGYN5F.js → chunk-BXNKREX7.js} +3 -3
- package/chunks/{chunk-4MQEPP3Y.js → chunk-BY24DZ4J.js} +5 -119
- package/chunks/{chunk-5XBFCMWD.js → chunk-CAZADEU7.js} +17 -9
- package/chunks/chunk-CHEIIBT3.js +40 -0
- package/chunks/{chunk-BBWV7ONL.js → chunk-CM4F4JBB.js} +6 -6
- package/chunks/{chunk-CAJTKR6W.js → chunk-D7D3HSYQ.js} +6 -5
- package/chunks/{chunk-3DXFGHAJ.js → chunk-DBTMP3P4.js} +213 -185
- package/chunks/chunk-DJBQCO2E.js +842 -0
- package/chunks/{chunk-RXFQM6FQ.js → chunk-DMEUXLSS.js} +16 -1
- package/chunks/{chunk-3AFMQUTI.js → chunk-E4JNFXNI.js} +3 -3
- package/chunks/{chunk-UHQFIS7N.js → chunk-EAHOJF6V.js} +28 -4
- package/chunks/{chunk-OIVXBW3W.js → chunk-ED7DD7MV.js} +3 -3
- package/chunks/{chunk-6DIGWMGT.js → chunk-EIJT2PQ6.js} +2 -2
- package/chunks/{chunk-XQFT3QUF.js → chunk-ENYUKMFK.js} +1 -1
- package/chunks/{chunk-CQH5KTKC.js → chunk-ERHAMGAA.js} +1 -1
- package/chunks/{chunk-IOPCFOTF.js → chunk-ERRJA23L.js} +3 -3
- package/chunks/{chunk-LDP5OD6N.js → chunk-EU2B4P3D.js} +12 -12
- package/chunks/{chunk-W5MJJ2V7.js → chunk-FHPYRXRH.js} +1 -1
- package/chunks/{chunk-IZIVM7LZ.js → chunk-FIWZOMBF.js} +3 -3
- package/chunks/{chunk-4HV6HH33.js → chunk-FPMQT2YY.js} +9 -9
- package/chunks/{chunk-Z7VOMGDC.js → chunk-FTJMWDND.js} +0 -24
- package/chunks/{chunk-L2M46FP5.js → chunk-FXUSWLBF.js} +225 -12
- package/chunks/{chunk-VVW4ZNFY.js → chunk-GB4UKWY5.js} +16 -8
- package/chunks/{chunk-PKAYJDB3.js → chunk-GCUR24KK.js} +22 -4
- package/chunks/{chunk-DIMEPKCW.js → chunk-GDXSXL3H.js} +11 -1
- package/chunks/{chunk-7JPW6IYH.js → chunk-GN422P4J.js} +1 -1
- package/chunks/{chunk-66KDY3LV.js → chunk-GS7XT345.js} +3 -3
- package/chunks/{chunk-PFCQ62V4.js → chunk-H2A2GJGL.js} +6 -6
- package/chunks/{chunk-Z7FLBQPR.js → chunk-H5GPPDGY.js} +8 -8
- package/chunks/{chunk-CPGJJJLU.js → chunk-HDMKCJHI.js} +1 -1
- package/chunks/{chunk-6PJOTWAN.js → chunk-HT5S5TRQ.js} +1 -1
- package/chunks/{chunk-Z4X5MTRT.js → chunk-HWVUSYSN.js} +5 -12
- package/chunks/{chunk-V4QXXQJ2.js → chunk-I75VKFCJ.js} +4 -4
- package/chunks/{chunk-NU7RKEZR.js → chunk-IBMUI5EV.js} +3 -3
- package/chunks/{chunk-4J657AJR.js → chunk-ID33ZRWH.js} +42 -42
- package/chunks/{chunk-R4PMVSR5.js → chunk-IIFL7QDN.js} +30 -192
- package/chunks/{chunk-MQM5PJML.js → chunk-IVUWTA2D.js} +1 -1
- package/chunks/{chunk-E55H6BZ7.js → chunk-IXEZHTDR.js} +1616 -151
- package/chunks/{chunk-XF63PKEN.js → chunk-IXHV5MIC.js} +1 -1
- package/chunks/{chunk-JHS74YAB.js → chunk-J4Y3QJHF.js} +3 -1
- package/chunks/{chunk-MIIVI25Q.js → chunk-JDIO45X7.js} +3 -3
- package/chunks/{chunk-QFCDF5PL.js → chunk-JHN7UIDW.js} +1 -1
- package/chunks/{chunk-FDY5RMGH.js → chunk-JLSZT354.js} +2 -2
- package/chunks/chunk-JMRE4WJQ.js +1849 -0
- package/chunks/{chunk-FY76G3G5.js → chunk-JOTYTYYW.js} +6 -6
- package/chunks/{chunk-TRZTNIQ6.js → chunk-JOWQD4LO.js} +3 -3
- package/chunks/{chunk-KEKZFOL6.js → chunk-JPKTAQS3.js} +1 -1
- package/chunks/chunk-JS73NNWF.js +30 -0
- package/chunks/chunk-JX6XHPTX.js +26 -0
- package/chunks/{chunk-5JTIYALA.js → chunk-JZWOCUZ3.js} +1 -1
- package/chunks/{chunk-3JGZSIDA.js → chunk-KFN2IZYR.js} +3 -3
- package/chunks/{chunk-23RFD54N.js → chunk-KHP66DFN.js} +1 -1
- package/chunks/{chunk-AGR5UROZ.js → chunk-KUDI54QQ.js} +23 -33
- package/chunks/{chunk-3SGB2UHX.js → chunk-L2OKAIUK.js} +28 -16
- package/chunks/{chunk-BXDAPVQU.js → chunk-L6CUJZDG.js} +28 -4
- package/chunks/chunk-LAUEEBDL.js +277 -0
- package/chunks/{chunk-BNMF3K5X.js → chunk-LFAR7CPW.js} +55 -39
- package/chunks/{chunk-Y3QL45LS.js → chunk-LKODFJRD.js} +9 -9
- package/chunks/{chunk-BWORX6FA.js → chunk-LMMHS3RS.js} +1 -1
- package/chunks/{chunk-UTLCH2FK.js → chunk-LYSZVCCD.js} +10 -7
- package/chunks/{chunk-F6FV3C5K.js → chunk-MBZ5ORJB.js} +264 -283
- package/chunks/{chunk-L6YT5H34.js → chunk-MJBHSZEJ.js} +5 -5
- package/chunks/{chunk-B7CDU2SL.js → chunk-MOF6VZN2.js} +18 -21
- package/chunks/{chunk-6LFJEACX.js → chunk-MZ5A5PQW.js} +7 -7
- package/chunks/chunk-MZYWNU66.js +149 -0
- package/chunks/{chunk-2TNL5KPM.js → chunk-N4QWUPDM.js} +7 -0
- package/chunks/{chunk-5O72BNDD.js → chunk-ND7TQQPE.js} +9 -9
- package/chunks/{chunk-QP4C6WCE.js → chunk-NGKLMNWN.js} +3 -3
- package/chunks/{chunk-JSC3H3TD.js → chunk-NT5XIL5H.js} +46 -18
- package/chunks/{chunk-KUX5D6DK.js → chunk-NT7LXVV5.js} +11010 -11138
- package/chunks/{chunk-PDQGMSZK.js → chunk-ODZF64DM.js} +1 -1
- package/chunks/{chunk-FBSSIAAQ.js → chunk-OE5AQVNB.js} +8 -8
- package/chunks/chunk-OHU2H5CS.js +130 -0
- package/chunks/{chunk-2K6ORIHJ.js → chunk-OKMDOATP.js} +13 -13
- package/chunks/{chunk-JB4JIVTJ.js → chunk-OKTNXDVO.js} +1 -1
- package/chunks/{chunk-XDLEZ5HX.js → chunk-OQYXJK2V.js} +1 -1
- package/chunks/{chunk-EFUM7RVY.js → chunk-OSTQZIOY.js} +944 -18
- package/chunks/{chunk-VQUGEVGR.js → chunk-OTTNXUT5.js} +1 -1
- package/chunks/{chunk-T3WXYEZ4.js → chunk-PB7JBAHF.js} +53 -54
- package/chunks/{chunk-WAOIHTJS.js → chunk-PDAKFU7M.js} +1 -1
- package/chunks/{chunk-43GGFFLY.js → chunk-PDXYZBBQ.js} +3 -3
- package/chunks/{chunk-4CMJKUND.js → chunk-PNIGAVY6.js} +67 -2
- package/chunks/{chunk-SAH4BD2J.js → chunk-PQEISIKS.js} +67 -0
- package/chunks/{chunk-4CDSK5AZ.js → chunk-PWR2NQBS.js} +6 -6
- package/chunks/{chunk-YTDVNSUQ.js → chunk-QAK5475D.js} +1 -1
- package/chunks/{chunk-IJKTMLBE.js → chunk-QE7DTCLX.js} +1 -1
- package/chunks/{chunk-SMPR7SPO.js → chunk-QJNDUTOL.js} +45 -239
- package/chunks/{chunk-C6K43ZDE.js → chunk-QTMPM6RC.js} +16 -10
- package/chunks/{chunk-P5GGM4KS.js → chunk-RAEEQEC5.js} +5 -5
- package/chunks/{chunk-XDFHY4R3.js → chunk-RGEV5AUD.js} +242 -14
- package/chunks/{chunk-M6FOJXW3.js → chunk-RKW36UWC.js} +1 -1
- package/chunks/{chunk-RIEFGNTP.js → chunk-RLSPPTWH.js} +5119 -683
- package/chunks/{chunk-PDMJ3KGS.js → chunk-RT4QNQ5P.js} +3 -3
- package/chunks/{chunk-SJ3ZUWFK.js → chunk-RVCGAHC7.js} +4 -26
- package/chunks/{chunk-77RG5SFQ.js → chunk-RY7DL5IF.js} +11 -6
- package/chunks/{chunk-4FTKQNWJ.js → chunk-S2T7H5MI.js} +182 -3
- package/chunks/{chunk-EOGELB3H.js → chunk-SDCHI64N.js} +4 -4
- package/chunks/{chunk-EKSCLBBF.js → chunk-SMJYTKTB.js} +23 -5
- package/chunks/{chunk-MZS7GEC7.js → chunk-SMRDCANI.js} +1 -1
- package/chunks/{chunk-43UYNAWX.js → chunk-T3TL6S3B.js} +4 -4
- package/chunks/{chunk-4K7NQDCG.js → chunk-T4EFG2P5.js} +18 -9
- package/chunks/{chunk-IK5BW3CS.js → chunk-T4RMUTTT.js} +16 -5
- package/chunks/{chunk-L6BZRIUL.js → chunk-TBJ3SNS3.js} +183 -5
- package/chunks/{chunk-CCBZDVUA.js → chunk-TNMOFNT4.js} +133 -122
- package/chunks/{chunk-Y6LSMB6J.js → chunk-TV7BJ7TX.js} +1 -1
- package/chunks/{chunk-G34IR3D6.js → chunk-U5RTYI7D.js} +102 -146
- package/chunks/{chunk-TTX2JUE6.js → chunk-U6D2PPMN.js} +1 -1
- package/chunks/{chunk-D5LUXLUH.js → chunk-UJ4DUYIH.js} +18 -4
- package/chunks/{chunk-A7YP63XN.js → chunk-UKB2TZAO.js} +5 -5
- package/chunks/{chunk-VTHREBQM.js → chunk-UKYXYWI2.js} +2 -2
- package/chunks/{chunk-2NYCN6F2.js → chunk-UVYKCRJZ.js} +46 -29
- package/chunks/{chunk-HVEYF6VT.js → chunk-UXEW7TQS.js} +2 -2
- package/chunks/{chunk-HVQ3B7FF.js → chunk-V4HN35IF.js} +44 -7
- package/chunks/chunk-VGHZT6JR.js +51 -0
- package/chunks/{chunk-V5J4J5TP.js → chunk-VYSZUQGU.js} +2 -20
- package/chunks/{chunk-6IUNAPLR.js → chunk-W4BDHLRT.js} +3 -3
- package/chunks/{chunk-Q26AYA62.js → chunk-W7KWB6AH.js} +7 -4
- package/chunks/chunk-WLEYH7CD.js +332 -0
- package/chunks/{chunk-RU7BK6B3.js → chunk-X7C7KFWA.js} +2 -2
- package/chunks/{chunk-YRLW2MSX.js → chunk-XBVNNDPK.js} +11 -4
- package/chunks/{chunk-BFPESSTR.js → chunk-XEAAO654.js} +1 -1
- package/chunks/{chunk-JU4EEXC7.js → chunk-XLENZQXH.js} +2 -2
- package/chunks/{chunk-JSHHYW6T.js → chunk-XPDKSOVW.js} +69 -64
- package/chunks/chunk-YDQ4OCDK.js +1222 -0
- package/chunks/{chunk-ZU4UDIWX.js → chunk-YKADANK6.js} +6 -7
- package/chunks/{chunk-JCQD3INC.js → chunk-YNG7XAJU.js} +3 -3
- package/chunks/{chunk-O2UN57NX.js → chunk-YOFULAHO.js} +19 -2
- package/chunks/{chunk-BAJKAAOY.js → chunk-YOMKOM7E.js} +4892 -1504
- package/chunks/{chunk-ERFDKH32.js → chunk-YPISTYEI.js} +8 -7
- package/chunks/{chunk-TGWAQ5RB.js → chunk-ZBDYI7VM.js} +6900 -6882
- package/chunks/{chunk-OZ6KS6KW.js → chunk-ZGCKTAL5.js} +6 -1
- package/chunks/chunk-ZHO2CW6D.js +205 -0
- package/chunks/{chunk-DZWPESIF.js → chunk-ZQ3FKEWA.js} +3 -3
- package/chunks/{chunk-7EQQR46F.js → chunk-ZVP4PWBU.js} +1 -1
- package/chunks/{chunk-7UYV53BC.js → chunk-ZYPJ7HVZ.js} +1 -1
- package/chunks/config-utils-NNUPVGEC.js +118 -0
- package/chunks/contextCommand-S3TPCDM5.js +111 -0
- package/chunks/{core-runtime-677KFX6Q.js → core-runtime-NASPCSQX.js} +66 -63
- package/chunks/{create-sub-session-23ITIELI.js → create-sub-session-36TNCHCP.js} +3 -3
- package/chunks/{create-sub-session-JKZAYZX7.js → create-sub-session-DS4BJLYZ.js} +97 -68
- package/chunks/{cron-create-KJ4IY6PP.js → cron-create-QXHTYUTO.js} +4 -4
- package/chunks/{cron-delete-MBLQCAYY.js → cron-delete-WV2BM42M.js} +4 -4
- package/chunks/{cron-list-DWH2PQ47.js → cron-list-7KVNBLZ7.js} +4 -4
- package/chunks/{daemon-MJQUO7RA.js → daemon-UCVUHPJD.js} +723 -90
- package/chunks/{daemon-git-worktree-guard-6MVAAZZZ.js → daemon-git-worktree-guard-ATXVQPS3.js} +63 -60
- package/chunks/daemon-status-provider-UI3GBTMO.js +121 -0
- package/chunks/daemon-trust-policy-SUCBJ2CA.js +117 -0
- package/chunks/{daemon-trust-policy-monitor-B5U6TQX5.js → daemon-trust-policy-monitor-3LM5RQNS.js} +71 -68
- package/chunks/{de-X6HLSIFE.js → de-T4BLOKEC.js} +3 -0
- package/chunks/deferred-core-runtime-SCOJLVYG.js +119 -0
- package/chunks/{display-image-BE7I6ZB6.js → display-image-Z4VBQDEJ.js} +5 -5
- package/chunks/{dist-TJUDJTCB.js → dist-5423MG3D.js} +411 -91
- package/chunks/{dist-ILDBUWDB.js → dist-7WDZYMWV.js} +43 -25
- package/chunks/{dist-ZBVOXSKF.js → dist-FLJLHASF.js} +219 -121
- package/chunks/{dist-QODVOVWI.js → dist-GPSRNVVP.js} +43 -35
- package/chunks/{dist-DJBNNPLN.js → dist-LY66XNUL.js} +10 -3
- package/chunks/{dist-7CKN54NL.js → dist-S3BKCTWF.js} +205 -89
- package/chunks/{dist-UQUFZDIY.js → dist-SDKHGH5O.js} +41 -20
- package/chunks/{dist-4Q7NTUNB.js → dist-WAUO5OMN.js} +46 -22
- package/chunks/{dist-SATKXKUR.js → dist-WIVVPE7M.js} +28 -14
- package/chunks/earlyInputCapture-INWJ2STR.js +112 -0
- package/chunks/{edit-BSV6YRVW.js → edit-B7ZRRGAE.js} +51 -49
- package/chunks/{en-YLXBXM4Z.js → en-E4AYTX6H.js} +3 -0
- package/chunks/{enter-worktree-MQXFFPKM.js → enter-worktree-SPZHEETQ.js} +7 -7
- package/chunks/{enterPlanMode-PKNF35FE.js → enterPlanMode-S554IKJ2.js} +55 -53
- package/chunks/environment-25ADH4Y6.js +134 -0
- package/chunks/errors-G2I6LFTW.js +118 -0
- package/chunks/{exit-worktree-L344UY7K.js → exit-worktree-AWUXAMAM.js} +7 -7
- package/chunks/exitPlanMode-ZFH4OYPM.js +87 -0
- package/chunks/{fast-path-773PV7PU.js → fast-path-WZHVZ2ER.js} +8 -7
- package/chunks/{fast-path-settings-XMFBYFUH.js → fast-path-settings-NILM6QZL.js} +3 -3
- package/chunks/{fr-FTZWF462.js → fr-BGHGYX6A.js} +3 -0
- package/chunks/{glob-CZHOWUEA.js → glob-UOVDMBUP.js} +50 -48
- package/chunks/{goal-tools-YZQJXTGH.js → goal-tools-7TNK5ZHC.js} +5 -4
- package/chunks/{grep-5GPICQBU.js → grep-LHYJ5V2N.js} +9 -7
- package/chunks/handleAutoUpdate-4MZ45DZY.js +114 -0
- package/chunks/i18n-KWUEI4DS.js +129 -0
- package/chunks/{image-gen-HAYOEQ4O.js → image-gen-YZDVO5YS.js} +8 -10
- package/chunks/initializer-2NBROGMG.js +118 -0
- package/chunks/installationInfo-YKUSY3ZB.js +112 -0
- package/chunks/{ja-2GL5FKYJ.js → ja-G3FTD5XE.js} +3 -0
- package/chunks/{keychain-token-storage-37XPR34V.js → keychain-token-storage-REZVMJA6.js} +2 -2
- package/chunks/list-W2WV3COM.js +121 -0
- package/chunks/list-agents-PMVMHNY7.js +128 -0
- package/chunks/{gemini-IP4FJAP5.js → llm-NPPHLIJI.js} +162 -133
- package/chunks/{geminiContentGenerator-PUNEBWJW.js → llm-content-generator-YK3WN6XW.js} +29 -29
- package/chunks/loadedSettingsAdapter-2P7DFWUR.js +115 -0
- package/chunks/{loggingContentGenerator-2GGZNGLG.js → loggingContentGenerator-QYYYGU6V.js} +318 -35
- package/chunks/{loop-wakeup-XJFONSQ7.js → loop-wakeup-EBM4F5MZ.js} +5 -5
- package/chunks/{ls-3VAT2J7A.js → ls-F6TRX3DD.js} +4 -4
- package/chunks/{lsp-5W7IRUBH.js → lsp-QYTOS2FI.js} +2 -2
- package/chunks/{managed-npm-update-5TEV2E3J.js → managed-npm-update-UMC4NBWW.js} +64 -61
- package/chunks/mcp-OFI6XDP2.js +115 -0
- package/chunks/{monitor-FI7PY36Z.js → monitor-QX3BM3JY.js} +50 -48
- package/chunks/nonInteractiveCli-NVRMD5MN.js +193 -0
- package/chunks/{notebook-edit-TPGMGBST.js → notebook-edit-AAILDPSV.js} +51 -49
- package/chunks/{open-with-auth-4UI3KHUR.js → open-with-auth-D6JD6LDS.js} +4 -4
- package/chunks/{openaiContentGenerator-SUCYANUZ.js → openaiContentGenerator-53PB3CMN.js} +27 -29
- package/chunks/pidfile-5ACKG2LI.js +116 -0
- package/chunks/process-registry-OAEG6WGC.js +662 -0
- package/chunks/{processUtils-IQZBYWSB.js → processUtils-2BCDO3DZ.js} +2 -2
- package/chunks/prompt-terminal-ledger-3RKW73A2.js +110 -0
- package/chunks/{pt-XN2YWJVM.js → pt-D73IFYT7.js} +3 -0
- package/chunks/{qwenContentGenerator-J4TXFGJT.js → qwenContentGenerator-N4LLWDPH.js} +56 -54
- package/chunks/{qwenOAuth2-RF33DNZW.js → qwenOAuth2-7AOCKSOQ.js} +7 -9
- package/chunks/{read-file-QE2B5FTX.js → read-file-DPAKXHYE.js} +13 -13
- package/chunks/{read-mcp-resource-XD257PGJ.js → read-mcp-resource-R4NO75DW.js} +2 -2
- package/chunks/{record-artifact-RZGZBENU.js → record-artifact-2EAYLAL5.js} +4 -4
- package/chunks/{report-findings-Q3SYKKW5.js → report-findings-Y4MSHDS3.js} +9 -5
- package/chunks/{request-shutdown-BCLA3JV2.js → request-shutdown-DWRMGTMB.js} +8 -7
- package/chunks/resumeHistoryUtils-3JQORXAK.js +123 -0
- package/chunks/ripGrep-AHF5QCI7.js +39 -0
- package/chunks/{ru-OLTMFJEW.js → ru-QMISLKRH.js} +3 -0
- package/chunks/{run-qwen-serve-TPHZMSXJ.js → run-qwen-serve-3LKV7KDC.js} +728 -256
- package/chunks/runtime-66F4W3IA.js +153 -0
- package/chunks/scheduled-tasks-2NVKS5Q2.js +132 -0
- package/chunks/scheduler-JNV7T3ZO.js +127 -0
- package/chunks/{sdk-exporters-http-KCJ4ZFG7.js → sdk-exporters-http-MFIWD23D.js} +2 -2
- package/chunks/{sdk-impl-HLSEDAEP.js → sdk-impl-2RXJ4Q6X.js} +11 -5
- package/chunks/send-message-WPZRCJOB.js +442 -0
- package/chunks/serve-GP2UNRP7.js +123 -0
- package/chunks/{server-DFUSSSHI.js → server-7W6C3SOW.js} +5233 -3623
- package/chunks/{session-3TEHNENZ.js → session-PZLBAQGG.js} +125 -118
- package/chunks/session-pr-refresh-OIVL3U3Z.js +367 -0
- package/chunks/{settings-VOZYKLTT.js → settings-ZOHIQWYK.js} +70 -67
- package/chunks/shell-FWZT6IUR.js +97 -0
- package/chunks/{skill-FEOKFX26.js → skill-RTQC2YGA.js} +121 -65
- package/chunks/skill-settings-AKMIXFSJ.js +123 -0
- package/chunks/spawnChannel-ZP23JL6O.js +116 -0
- package/chunks/standalone-update-P2Q5H4ZU.js +123 -0
- package/chunks/{startInteractiveUI-WHJPFOGH.js → startInteractiveUI-NSA6QPQZ.js} +2018 -1526
- package/chunks/{stdioHelpers-7A2EE64Z.js → stdioHelpers-AY6XCDY2.js} +3 -1
- package/chunks/{syntheticOutput-ML43GEFN.js → syntheticOutput-5URSQLIS.js} +3 -3
- package/chunks/{task-create-TMSV7RD5.js → task-create-3EXVDG3G.js} +12 -12
- package/chunks/{task-list-W55RBFRX.js → task-list-PIBYNSE7.js} +5 -6
- package/chunks/{task-stop-CXEH5L2D.js → task-stop-IV3BYWJC.js} +2 -2
- package/chunks/{task-update-N536I4GQ.js → task-update-H5BPDS5Y.js} +13 -14
- package/chunks/{team-create-QYSWCYCL.js → team-create-53T42W37.js} +56 -55
- package/chunks/{team-delete-FJRFX33M.js → team-delete-X3WPELS6.js} +25 -8
- package/chunks/{team-plan-approval-P7DAD644.js → team-plan-approval-D45ZC5OE.js} +50 -48
- package/chunks/terminal-image-renderer-FCRUWT6C.js +121 -0
- package/chunks/theme-manager-MHNPEDP7.js +107 -0
- package/chunks/{todoWrite-WDJNQEMW.js → todoWrite-A5IOZZ3P.js} +4 -4
- package/chunks/{tool-search-F2EMIAPV.js → tool-search-6RPBGGUX.js} +27 -23
- package/chunks/total-session-admission-MGV56XDK.js +117 -0
- package/chunks/trustedFolders-QJYEFMTU.js +127 -0
- package/chunks/{types-WYCFCEHR.js → types-HKLPXZB3.js} +1 -3
- package/chunks/{update-relaunch-4GF3OXMB.js → update-relaunch-ZDMQX63C.js} +6 -6
- package/chunks/updateCheck-4QZWCGP6.js +123 -0
- package/chunks/useAutoAcceptIndicator-DLIQN256.js +125 -0
- package/chunks/{validateNonInterActiveAuth-BPPA563H.js → validateNonInterActiveAuth-HGTG7AEK.js} +114 -107
- package/chunks/{version-ANP4TS6O.js → version-CPAZMC4B.js} +1 -1
- package/chunks/{web-fetch-QJADSAH3.js → web-fetch-N4K5M3M4.js} +16 -18
- package/chunks/{web-search-7TTQKEKM.js → web-search-4VZKM5SF.js} +9 -11
- package/chunks/{web-shell-static-A6QMUNNV.js → web-shell-static-PW7OEDQO.js} +3 -2
- package/chunks/{workflow-5XN6XSOT.js → workflow-2ALQKTHG.js} +229 -146
- package/chunks/workspace-providers-status-5JM4CB6R.js +119 -0
- package/chunks/{workspace-registration-store-XKVW2YVH.js → workspace-registration-store-RNMFVCH7.js} +2 -1
- package/chunks/workspace-registry-6EULAPZC.js +126 -0
- package/chunks/workspace-runtime-coordinator-IRI2DRCJ.js +127 -0
- package/chunks/workspace-service-SETHN4WE.js +131 -0
- package/chunks/workspace-skills-status-4D4EUEQU.js +118 -0
- package/chunks/{workspace-trust-reconciler-KLGOB53D.js → workspace-trust-reconciler-4LR3CDL4.js} +77 -76
- package/chunks/write-file-45GWPSOI.js +92 -0
- package/chunks/{zh-UNY63FR3.js → zh-2BQ7P6OD.js} +3 -0
- package/chunks/{zh-TW-RPTMRTHG.js → zh-TW-UFXRZTXX.js} +3 -0
- package/chunks/{zoom-image-6ASG6J4C.js → zoom-image-K6IQUKRC.js} +13 -13
- package/cli.js +129 -92
- package/locales/ca.js +6 -0
- package/locales/de.js +6 -0
- package/locales/en.js +6 -0
- package/locales/fr.js +6 -0
- package/locales/ja.js +6 -0
- package/locales/pt.js +6 -0
- package/locales/ru.js +6 -0
- package/locales/zh-TW.js +6 -0
- package/locales/zh.js +6 -0
- package/package.json +3 -3
- package/web-shell/assets/{abnfDiagram-VCTEODGH-uS-vtfs3.js → abnfDiagram-VCTEODGH-C80OZcPP.js} +1 -1
- package/web-shell/assets/{arc-BSTnk5pu.js → arc-AUqStYgf.js} +1 -1
- package/web-shell/assets/{architectureDiagram-5GKGNRK7-DCMyiqzy.js → architectureDiagram-5GKGNRK7-CQYOdYla.js} +1 -1
- package/web-shell/assets/{blockDiagram-NRAW4CY4-C7_gt0r1.js → blockDiagram-NRAW4CY4-lYKlFysy.js} +1 -1
- package/web-shell/assets/{c4Diagram-UCG6FXSJ-BeQg2L8B.js → c4Diagram-UCG6FXSJ-BoS23iIp.js} +1 -1
- package/web-shell/assets/channel-B0ovOJeK.js +1 -0
- package/web-shell/assets/{chunk-2Q5K7J3B-DnV9bKBe.js → chunk-2Q5K7J3B-DLLooL1E.js} +1 -1
- package/web-shell/assets/{chunk-5VM5RSS4-rT1GAcT7.js → chunk-5VM5RSS4-kPfJxScY.js} +1 -1
- package/web-shell/assets/{chunk-F27PBJKO-BcgSxqGA.js → chunk-F27PBJKO-CVGFBqkD.js} +1 -1
- package/web-shell/assets/{chunk-G27WJ6UU-Bw1ZhyZq.js → chunk-G27WJ6UU-CnM_kOVV.js} +1 -1
- package/web-shell/assets/{chunk-JWPE2WC7-D4iDw-96.js → chunk-JWPE2WC7-Cj-ajOkT.js} +1 -1
- package/web-shell/assets/{chunk-LCL6LL3I-D3MB3GTZ.js → chunk-LCL6LL3I-8L5c-wFo.js} +1 -1
- package/web-shell/assets/{chunk-POPQ4Y6H-Cep2ndrS.js → chunk-POPQ4Y6H-DsXTxpvL.js} +1 -1
- package/web-shell/assets/{chunk-SVP7TREG-BuahMHJc.js → chunk-SVP7TREG-DU5GE1_z.js} +1 -1
- package/web-shell/assets/{chunk-XXDRQBXY-BdujIvJY.js → chunk-XXDRQBXY-D2IIWZKt.js} +1 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-DMll2-6_.js +1 -0
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-DMll2-6_.js +1 -0
- package/web-shell/assets/{cose-bilkent-JH36ORCC-CGLLUbF8.js → cose-bilkent-JH36ORCC-CF_txUJr.js} +1 -1
- package/web-shell/assets/{cynefin-OW5HDTMX-D6kDsRSh.js → cynefin-OW5HDTMX-DEZ-My-Z.js} +1 -1
- package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-CCy78qZx.js → cynefinDiagram-5FMLGOSQ-BV7EKUS6.js} +1 -1
- package/web-shell/assets/{dagre-3AP2YEHR-D5gJuJsf.js → dagre-3AP2YEHR-JGIX0G4H.js} +1 -1
- package/web-shell/assets/{diagram-S7CK7UJ4-ZwEZ5W__.js → diagram-S7CK7UJ4-DdUY7q6A.js} +1 -1
- package/web-shell/assets/{diagram-UQ7AKVKN-B036APjv.js → diagram-UQ7AKVKN-fhzRZ19v.js} +1 -1
- package/web-shell/assets/{diagram-VSXAHHWV-BfDJ57Fq.js → diagram-VSXAHHWV-BOgOex6q.js} +1 -1
- package/web-shell/assets/{diagram-VX7I27RA-Wha0p5rT.js → diagram-VX7I27RA-C0NknIz6.js} +1 -1
- package/web-shell/assets/{diagram-Z3DM3KII-L20bz2K1.js → diagram-Z3DM3KII-C__3mUBX.js} +1 -1
- package/web-shell/assets/{ebnfDiagram-PWID7BFC-D1ZM0Cp7.js → ebnfDiagram-PWID7BFC-BvPhqycH.js} +1 -1
- package/web-shell/assets/{erDiagram-SSCWMZ5O-CMtA19v8.js → erDiagram-SSCWMZ5O-BqzoNoL9.js} +1 -1
- package/web-shell/assets/{flowDiagram-A5DVABFB-D96m326S.js → flowDiagram-A5DVABFB-CJKOre47.js} +1 -1
- package/web-shell/assets/{ganttDiagram-EL5Y4UJY-BuHiYG2o.js → ganttDiagram-EL5Y4UJY-C5xZjrp0.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-Ck3NmkSw.js → gitGraphDiagram-WWUBYQGX-C0EjwuPK.js} +1 -1
- package/web-shell/assets/index-B_IPzA0h.js +2020 -0
- package/web-shell/assets/{index-CBGz4Qjl.js → index-C5M93syE.js} +1 -1
- package/web-shell/assets/index-D1OKGQlM.css +36 -0
- package/web-shell/assets/{infoDiagram-RXCK75RN-B6DAOyXe.js → infoDiagram-RXCK75RN-BUwzsYOs.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-5VMMS53U-Bpg-joFo.js → ishikawaDiagram-5VMMS53U-EDJ_DH3V.js} +1 -1
- package/web-shell/assets/{journeyDiagram-EYS64GPL-BclrHzGa.js → journeyDiagram-EYS64GPL-BnfcOsS0.js} +1 -1
- package/web-shell/assets/{kanban-definition-3QL26DDD-5gJzNTYG.js → kanban-definition-3QL26DDD-D_ofTVGu.js} +1 -1
- package/web-shell/assets/{layout-CEz_1L8z.js → layout-CBuQFdfZ.js} +1 -1
- package/web-shell/assets/{linear-CBjTq9Hc.js → linear-DRIHtmGv.js} +1 -1
- package/web-shell/assets/{mermaid.core-Dzhbxx_I.js → mermaid.core-CmR5wZH6.js} +6 -6
- package/web-shell/assets/{mindmap-definition-FBJOCRG2-DQdVqlBF.js → mindmap-definition-FBJOCRG2-BV374olC.js} +1 -1
- package/web-shell/assets/{pegDiagram-XKGWAZYB-D1JZlYXL.js → pegDiagram-XKGWAZYB-Bpy1SplK.js} +1 -1
- package/web-shell/assets/{pieDiagram-E7YTZNPT-BmkpYL0w.js → pieDiagram-E7YTZNPT-CeZx4hR2.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-AXDQQJYC-DRvD6co5.js → quadrantDiagram-AXDQQJYC-COYKs14h.js} +1 -1
- package/web-shell/assets/{railroadDiagram-O6MQD6OU-CEdjDuoo.js → railroadDiagram-O6MQD6OU-5g2pOeTs.js} +1 -1
- package/web-shell/assets/{requirementDiagram-EFPCY7ZU-BCHG-ie8.js → requirementDiagram-EFPCY7ZU-Yn8uPGtF.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-P5KCCOFB-C9cZMnye.js → sankeyDiagram-P5KCCOFB-CTayAGq6.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-DYHRV4zL.js → sequenceDiagram-WJ2MYXX4-BFWDKzUU.js} +1 -1
- package/web-shell/assets/{sizeCapture-X5ZJPWSS-DlK21aye.js → sizeCapture-X5ZJPWSS-CtErUbj4.js} +1 -1
- package/web-shell/assets/{stateDiagram-HBIQ2CUA-BrmZssvk.js → stateDiagram-HBIQ2CUA-Co3HFzOd.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-C3gdRjPm.js +1 -0
- package/web-shell/assets/{swimlanes-XN3QIQJK-D9xfcayR.js → swimlanes-XN3QIQJK-CDZuxzOj.js} +1 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-C34TGCPZ.js +8 -0
- package/web-shell/assets/{timeline-definition-24CTP7MA-D4gdDL_d.js → timeline-definition-24CTP7MA-UcNHj8At.js} +1 -1
- package/web-shell/assets/{vennDiagram-4TSXK5OY-DdhIExjI.js → vennDiagram-4TSXK5OY-JKR9pVFG.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-VM6X3IG4-C9RS_Zof.js → wardleyDiagram-VM6X3IG4-C4SU-yIW.js} +1 -1
- package/web-shell/assets/{xychartDiagram-S5SC5T6Z-orRgmxWk.js → xychartDiagram-S5SC5T6Z-D_yoWGZ4.js} +1 -1
- package/web-shell/index.html +197 -3
- package/chunks/MaxSizedBox-X5FZSNAJ.js +0 -112
- package/chunks/agent-PJIPDWHB.js +0 -97
- package/chunks/agent-headless-B4JVD7UK.js +0 -87
- package/chunks/bridge-FKZTVIS3.js +0 -121
- package/chunks/channel-settings-store-4UFCLBBG.js +0 -117
- package/chunks/chunk-7DJCPZE3.js +0 -945
- package/chunks/chunk-CPBF7KYF.js +0 -51
- package/chunks/chunk-H72BQNM3.js +0 -645
- package/chunks/chunk-J2OSJFP3.js +0 -202
- package/chunks/chunk-K2OJUPOE.js +0 -78
- package/chunks/chunk-P3QQPMQA.js +0 -19
- package/chunks/chunk-RUGNCYNO.js +0 -699
- package/chunks/chunk-T26EAKDL.js +0 -13
- package/chunks/chunk-ZGXYO7DY.js +0 -3416
- package/chunks/chunk-ZYNTSXWK.js +0 -32
- package/chunks/config-utils-BBOCOGZW.js +0 -113
- package/chunks/contextCommand-EET67MQ2.js +0 -108
- package/chunks/daemon-status-provider-RFKZOK3S.js +0 -119
- package/chunks/daemon-trust-policy-DRZPFB4Q.js +0 -114
- package/chunks/deferred-core-runtime-BBVIOP24.js +0 -116
- package/chunks/earlyInputCapture-2JOMMNQ4.js +0 -109
- package/chunks/environment-MOZMPUHR.js +0 -131
- package/chunks/errors-DMPQVYJL.js +0 -115
- package/chunks/exitPlanMode-UE4FGCY4.js +0 -85
- package/chunks/handleAutoUpdate-SGXKTQM6.js +0 -111
- package/chunks/i18n-B42HKHKH.js +0 -126
- package/chunks/initializer-FB66WYR3.js +0 -115
- package/chunks/installationInfo-Y7AULNMX.js +0 -109
- package/chunks/list-2HWGSVRA.js +0 -118
- package/chunks/list-agents-DI3YFTDT.js +0 -80
- package/chunks/loadedSettingsAdapter-7Y7IEI6T.js +0 -112
- package/chunks/mcp-QGG5NMJJ.js +0 -112
- package/chunks/nonInteractiveCli-4LO2TL72.js +0 -186
- package/chunks/pidfile-JMF2CLMY.js +0 -113
- package/chunks/process-registry-PMJOA5CO.js +0 -172
- package/chunks/prompt-terminal-ledger-DCZO6S7C.js +0 -107
- package/chunks/resumeHistoryUtils-CZ4JRDVW.js +0 -120
- package/chunks/ripGrep-R6B6HWPX.js +0 -39
- package/chunks/runtime-TTIGSBM4.js +0 -150
- package/chunks/scheduled-tasks-QB4ZVUQS.js +0 -129
- package/chunks/scheduler-YRUG22M7.js +0 -124
- package/chunks/send-message-Y5I6NYAM.js +0 -295
- package/chunks/serve-MXXCDAQN.js +0 -120
- package/chunks/shell-6RTKZVMI.js +0 -95
- package/chunks/skill-settings-VA4XVYVL.js +0 -120
- package/chunks/spawnChannel-F6WVP723.js +0 -114
- package/chunks/standalone-update-RGILUQVK.js +0 -120
- package/chunks/terminal-image-renderer-SMQE46UJ.js +0 -116
- package/chunks/theme-manager-RFO5WWFF.js +0 -104
- package/chunks/total-session-admission-HTVTP4BS.js +0 -116
- package/chunks/trustedFolders-7OCNMUQE.js +0 -124
- package/chunks/updateCheck-7QBDXZRT.js +0 -120
- package/chunks/useAutoAcceptIndicator-UI4SNL2O.js +0 -122
- package/chunks/workspace-providers-status-PDFZWL5Q.js +0 -116
- package/chunks/workspace-registry-23R7XRB5.js +0 -125
- package/chunks/workspace-service-MUYO2QIC.js +0 -131
- package/chunks/workspace-skills-status-IKECTOOQ.js +0 -115
- package/chunks/write-file-GGRBB5TZ.js +0 -90
- package/web-shell/assets/channel-CENAhErJ.js +0 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-CM6FArGH.js +0 -1
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-CM6FArGH.js +0 -1
- package/web-shell/assets/index-8hXIpvo4.js +0 -1865
- package/web-shell/assets/index-DclEv91i.css +0 -5
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-B2Q7XDaE.js +0 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-DpZPOSbX.js +0 -8
|
@@ -1,23 +1,18 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
|
-
|
|
5
|
-
} from "./chunk-P3QQPMQA.js";
|
|
6
|
-
import {
|
|
7
|
-
classifyRetryError
|
|
8
|
-
} from "./chunk-J2OSJFP3.js";
|
|
9
|
-
import {
|
|
4
|
+
classifyRetryError,
|
|
10
5
|
formatQuotaExhaustedMessage,
|
|
11
6
|
getRetryAfterDelayMs,
|
|
12
7
|
getRetryDelayMs,
|
|
13
8
|
isQuotaExhaustedError,
|
|
14
9
|
isQwenQuotaExceededError,
|
|
15
10
|
isRateLimitError
|
|
16
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-S2T7H5MI.js";
|
|
17
12
|
import {
|
|
18
13
|
createDebugLogger,
|
|
19
14
|
getErrorStatus
|
|
20
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-EAHOJF6V.js";
|
|
21
16
|
import {
|
|
22
17
|
init_esbuild_shims
|
|
23
18
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -27,6 +22,13 @@ import {
|
|
|
27
22
|
|
|
28
23
|
// packages/core/src/utils/retry.ts
|
|
29
24
|
init_esbuild_shims();
|
|
25
|
+
|
|
26
|
+
// packages/core/src/utils/retryContext.ts
|
|
27
|
+
init_esbuild_shims();
|
|
28
|
+
import { AsyncLocalStorage } from "node:async_hooks";
|
|
29
|
+
var retryContext = new AsyncLocalStorage();
|
|
30
|
+
|
|
31
|
+
// packages/core/src/utils/retry.ts
|
|
30
32
|
var debugLogger = createDebugLogger("RETRY");
|
|
31
33
|
var PERSISTENT_MAX_BACKOFF_MS = 5 * 60 * 1e3;
|
|
32
34
|
var PERSISTENT_CAP_MS = 6 * 60 * 60 * 1e3;
|
|
@@ -331,10 +333,16 @@ function logRetryAtStatusLevel(message, retryDiagnostics, error, errorStatus) {
|
|
|
331
333
|
__name(logRetryAtStatusLevel, "logRetryAtStatusLevel");
|
|
332
334
|
|
|
333
335
|
export {
|
|
336
|
+
retryContext,
|
|
334
337
|
isUnattendedMode,
|
|
335
338
|
delay,
|
|
336
339
|
retryWithBackoff
|
|
337
340
|
};
|
|
341
|
+
/**
|
|
342
|
+
* @license
|
|
343
|
+
* Copyright 2026 Qwen Team
|
|
344
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
345
|
+
*/
|
|
338
346
|
/**
|
|
339
347
|
* @license
|
|
340
348
|
* Copyright 2025 Google LLC
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
hasControlCharacter
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-W4BDHLRT.js";
|
|
6
6
|
import {
|
|
7
7
|
BaseDeclarativeTool,
|
|
8
8
|
BaseToolInvocation,
|
|
9
9
|
ToolDisplayNames,
|
|
10
10
|
ToolNames
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-LYSZVCCD.js";
|
|
12
12
|
import {
|
|
13
13
|
init_esbuild_shims
|
|
14
14
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -36,6 +36,11 @@ var FINDING_SOURCES = [
|
|
|
36
36
|
"probe",
|
|
37
37
|
"lint"
|
|
38
38
|
];
|
|
39
|
+
var FINDING_DIRECTIONS = [
|
|
40
|
+
"certifies-falsely",
|
|
41
|
+
"fails-closed"
|
|
42
|
+
];
|
|
43
|
+
var FINDING_BASELINES = ["regression", "new-surface"];
|
|
39
44
|
var REPORT_FINDINGS_LEVELS = ["low", "medium", "high"];
|
|
40
45
|
var REPORT_FINDINGS_MAX = 50;
|
|
41
46
|
var SHORT_SUMMARY_MAX = 60;
|
|
@@ -53,7 +58,7 @@ function compressFindingSummary(summary, max = SHORT_SUMMARY_MAX) {
|
|
|
53
58
|
return `${cut.trimEnd()}\u2026`;
|
|
54
59
|
}
|
|
55
60
|
__name(compressFindingSummary, "compressFindingSummary");
|
|
56
|
-
var DESCRIPTION = `Reports code-review findings as typed data so clients (the terminal UI, the Web Shell, ACP hosts) can render a per-finding list. Use it only when an active review flow (such as the bundled review skill) instructs you to report findings with it; otherwise present findings as ordinary text. Call it once per report with the complete list, most severe first \u2014 a later call replaces the whole list, it never appends. When the review wrote a findings artifact, copy each field verbatim from it (id, severity, confidence, source, file/line, summary, shortSummary, failureScenario, category); do not re-derive or re-word values \u2014 the artifact is the oracle.
|
|
61
|
+
var DESCRIPTION = `Reports code-review findings as typed data so clients (the terminal UI, the Web Shell, ACP hosts) can render a per-finding list. Use it only when an active review flow (such as the bundled review skill) instructs you to report findings with it; otherwise present findings as ordinary text. Call it once per report with the complete list, most severe first \u2014 a later call replaces the whole list, it never appends. When the review wrote a findings artifact, copy each field verbatim from it (id, severity, confidence, source, file/line, summary, shortSummary, failureScenario, category, direction, baseline); do not re-derive or re-word values \u2014 the artifact is the oracle.
|
|
57
62
|
|
|
58
63
|
After fixes are applied \u2014 at the review's own fix step, or ANY later time in the session a reported finding's disposition changes \u2014 call it again with the same findings, each carrying "outcome" ("fixed", "skipped", or "no_change_needed"; "outcomeNote" for the reason). Client per-finding status trusts only a call that carries outcomes, and a call where some findings carry an outcome and others do not is refused: account for every finding.
|
|
59
64
|
|
|
@@ -92,7 +97,6 @@ var FINDING_ITEM_SCHEMA = {
|
|
|
92
97
|
},
|
|
93
98
|
summary: {
|
|
94
99
|
type: "string",
|
|
95
|
-
maxLength: 2e3,
|
|
96
100
|
description: "One sentence stating the defect."
|
|
97
101
|
},
|
|
98
102
|
shortSummary: {
|
|
@@ -109,6 +113,16 @@ var FINDING_ITEM_SCHEMA = {
|
|
|
109
113
|
maxLength: 64,
|
|
110
114
|
description: 'Free-form kebab-case tag ("correctness", "security", "test-coverage", \u2026).'
|
|
111
115
|
},
|
|
116
|
+
direction: {
|
|
117
|
+
type: "string",
|
|
118
|
+
enum: [...FINDING_DIRECTIONS],
|
|
119
|
+
description: 'Which way a Critical fails, from the artifact: "certifies-falsely" (a wrong result presented as correct) or "fails-closed" (refuses, wedges or degrades without a wrong result). Omit when the artifact carries none.'
|
|
120
|
+
},
|
|
121
|
+
baseline: {
|
|
122
|
+
type: "string",
|
|
123
|
+
enum: [...FINDING_BASELINES],
|
|
124
|
+
description: 'What a Critical is measured against, from the artifact: "regression" (the merge base handled the trigger correctly) or "new-surface" (the failing path does not exist at the merge base). Omit when the artifact carries none.'
|
|
125
|
+
},
|
|
112
126
|
outcome: {
|
|
113
127
|
type: "string",
|
|
114
128
|
enum: [...FINDING_OUTCOMES],
|
|
@@ -172,6 +186,8 @@ function normalizeFinding(raw) {
|
|
|
172
186
|
shortSummary: compressFindingSummary(shortSource),
|
|
173
187
|
failureScenario: raw.failureScenario.trim(),
|
|
174
188
|
...raw.category?.trim() ? { category: raw.category.trim() } : {},
|
|
189
|
+
...raw.direction ? { direction: raw.direction } : {},
|
|
190
|
+
...raw.baseline ? { baseline: raw.baseline } : {},
|
|
175
191
|
...raw.outcome ? { outcome: raw.outcome } : {},
|
|
176
192
|
...raw.outcomeNote?.trim() ? { outcomeNote: raw.outcomeNote.trim() } : {}
|
|
177
193
|
};
|
|
@@ -332,6 +348,8 @@ export {
|
|
|
332
348
|
FINDING_CONFIDENCES,
|
|
333
349
|
FINDING_OUTCOMES,
|
|
334
350
|
FINDING_SOURCES,
|
|
351
|
+
FINDING_DIRECTIONS,
|
|
352
|
+
FINDING_BASELINES,
|
|
335
353
|
REPORT_FINDINGS_LEVELS,
|
|
336
354
|
REPORT_FINDINGS_MAX,
|
|
337
355
|
SHORT_SUMMARY_MAX,
|
|
@@ -3,9 +3,12 @@
|
|
|
3
3
|
import {
|
|
4
4
|
require_express
|
|
5
5
|
} from "./chunk-AYHQZBJ4.js";
|
|
6
|
+
import {
|
|
7
|
+
isLoopbackAddress
|
|
8
|
+
} from "./chunk-DMEUXLSS.js";
|
|
6
9
|
import {
|
|
7
10
|
writeStderrLine
|
|
8
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-7FA2II6K.js";
|
|
9
12
|
import {
|
|
10
13
|
init_esbuild_shims
|
|
11
14
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -46,6 +49,13 @@ function loopbackSandboxOrigins(hostHeader) {
|
|
|
46
49
|
const port = portFromHostHeader(hostHeader);
|
|
47
50
|
const suffix = port ? `:${port}` : "";
|
|
48
51
|
const hosts = ["localhost", "127.0.0.1"];
|
|
52
|
+
try {
|
|
53
|
+
const requestHostname = new URL(`http://${hostHeader}`).hostname;
|
|
54
|
+
if (isLoopbackAddress(requestHostname) && !requestHostname.includes(":") && !hosts.includes(requestHostname)) {
|
|
55
|
+
hosts.push(requestHostname);
|
|
56
|
+
}
|
|
57
|
+
} catch {
|
|
58
|
+
}
|
|
49
59
|
return ["http", "https"].flatMap(
|
|
50
60
|
(scheme) => hosts.map((host) => `${scheme}://${host}${suffix}`)
|
|
51
61
|
);
|
|
@@ -5,16 +5,16 @@ import {
|
|
|
5
5
|
} from "./chunk-2AUM35J5.js";
|
|
6
6
|
import {
|
|
7
7
|
t
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EU2B4P3D.js";
|
|
9
9
|
import {
|
|
10
10
|
getNpmCliPath
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-7XL4WRXM.js";
|
|
12
12
|
import {
|
|
13
13
|
getPackageJson
|
|
14
14
|
} from "./chunk-W3N5XAZ6.js";
|
|
15
15
|
import {
|
|
16
16
|
createDebugLogger
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-EAHOJF6V.js";
|
|
18
18
|
import {
|
|
19
19
|
init_esbuild_shims
|
|
20
20
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -5,29 +5,29 @@ import {
|
|
|
5
5
|
} from "./chunk-57OAHC2Y.js";
|
|
6
6
|
import {
|
|
7
7
|
loadSettings
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-AAX236AR.js";
|
|
9
9
|
import {
|
|
10
10
|
getCurrentLanguage,
|
|
11
11
|
t
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-EU2B4P3D.js";
|
|
13
13
|
import {
|
|
14
14
|
isWorkspaceTrusted
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-I75VKFCJ.js";
|
|
16
16
|
import {
|
|
17
17
|
ExtensionManager,
|
|
18
18
|
getExtensionDescription,
|
|
19
19
|
getExtensionDisplayName,
|
|
20
20
|
require_prompts
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-ZBDYI7VM.js";
|
|
22
22
|
import {
|
|
23
23
|
stripAnsi
|
|
24
24
|
} from "./chunk-TWPJO254.js";
|
|
25
25
|
import {
|
|
26
26
|
redactUrlCredentials
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-TBJ3SNS3.js";
|
|
28
28
|
import {
|
|
29
29
|
writeStdoutLine
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-7FA2II6K.js";
|
|
31
31
|
import {
|
|
32
32
|
init_esbuild_shims
|
|
33
33
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-XZA32HII.js";
|
|
6
6
|
import {
|
|
7
7
|
preloadRuntimeFetchModule
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-22UH7VTP.js";
|
|
9
9
|
import {
|
|
10
10
|
init_esbuild_shims
|
|
11
11
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -410,18 +410,18 @@ async function createContentGenerator(generatorConfig, config, isInitialAuth) {
|
|
|
410
410
|
try {
|
|
411
411
|
if (authType === "openai" /* USE_OPENAI */) {
|
|
412
412
|
loadBaseGenerator = /* @__PURE__ */ __name(async () => {
|
|
413
|
-
const { createOpenAIContentGenerator } = await import("./openaiContentGenerator-
|
|
413
|
+
const { createOpenAIContentGenerator } = await import("./openaiContentGenerator-53PB3CMN.js");
|
|
414
414
|
return createOpenAIContentGenerator(generatorConfig, config);
|
|
415
415
|
}, "loadBaseGenerator");
|
|
416
416
|
} else if (authType === "qwen-oauth" /* QWEN_OAUTH */) {
|
|
417
|
-
const { getQwenOAuthClient: getQwenOauthClient } = await import("./qwenOAuth2-
|
|
417
|
+
const { getQwenOAuthClient: getQwenOauthClient } = await import("./qwenOAuth2-7AOCKSOQ.js");
|
|
418
418
|
try {
|
|
419
419
|
const qwenClient = await getQwenOauthClient(
|
|
420
420
|
config,
|
|
421
421
|
isInitialAuth ? { requireCachedCredentials: true } : void 0
|
|
422
422
|
);
|
|
423
423
|
loadBaseGenerator = /* @__PURE__ */ __name(async () => {
|
|
424
|
-
const { QwenContentGenerator } = await import("./qwenContentGenerator-
|
|
424
|
+
const { QwenContentGenerator } = await import("./qwenContentGenerator-N4LLWDPH.js");
|
|
425
425
|
return new QwenContentGenerator(qwenClient, generatorConfig, config);
|
|
426
426
|
}, "loadBaseGenerator");
|
|
427
427
|
} catch (error) {
|
|
@@ -432,13 +432,13 @@ async function createContentGenerator(generatorConfig, config, isInitialAuth) {
|
|
|
432
432
|
}
|
|
433
433
|
} else if (authType === "anthropic" /* USE_ANTHROPIC */) {
|
|
434
434
|
loadBaseGenerator = /* @__PURE__ */ __name(async () => {
|
|
435
|
-
const { createAnthropicContentGenerator } = await import("./anthropicContentGenerator-
|
|
435
|
+
const { createAnthropicContentGenerator } = await import("./anthropicContentGenerator-VSSPG7XV.js");
|
|
436
436
|
return createAnthropicContentGenerator(generatorConfig, config);
|
|
437
437
|
}, "loadBaseGenerator");
|
|
438
438
|
} else if (authType === "gemini" /* USE_GEMINI */ || authType === "vertex-ai" /* USE_VERTEX_AI */) {
|
|
439
439
|
loadBaseGenerator = /* @__PURE__ */ __name(async () => {
|
|
440
|
-
const {
|
|
441
|
-
return
|
|
440
|
+
const { createLlmContentGenerator } = await import("./llm-content-generator-YK3WN6XW.js");
|
|
441
|
+
return createLlmContentGenerator(generatorConfig, config);
|
|
442
442
|
}, "loadBaseGenerator");
|
|
443
443
|
} else {
|
|
444
444
|
throw new Error(
|
|
@@ -452,7 +452,7 @@ async function createContentGenerator(generatorConfig, config, isInitialAuth) {
|
|
|
452
452
|
try {
|
|
453
453
|
const [baseGenerator, { LoggingContentGenerator }] = await Promise.all([
|
|
454
454
|
loadBaseGenerator(),
|
|
455
|
-
import("./loggingContentGenerator-
|
|
455
|
+
import("./loggingContentGenerator-QYYYGU6V.js")
|
|
456
456
|
]);
|
|
457
457
|
return new LoggingContentGenerator(
|
|
458
458
|
baseGenerator,
|
|
@@ -75,15 +75,11 @@ function updateTarget(names, skillName, include) {
|
|
|
75
75
|
return next;
|
|
76
76
|
}
|
|
77
77
|
__name(updateTarget, "updateTarget");
|
|
78
|
-
function updateWorkspaceSkillSettingLists(lists, skillName, enabled
|
|
79
|
-
const normalizedName = skillName.trim().toLowerCase();
|
|
80
|
-
const hadExplicitEnable = lists.enabled.some(
|
|
81
|
-
(name) => name.trim().toLowerCase() === normalizedName
|
|
82
|
-
);
|
|
78
|
+
function updateWorkspaceSkillSettingLists(lists, skillName, enabled) {
|
|
83
79
|
if (enabled) {
|
|
84
80
|
return {
|
|
85
81
|
disabled: updateTarget(lists.disabled, skillName, false),
|
|
86
|
-
enabled:
|
|
82
|
+
enabled: updateTarget(lists.enabled, skillName, true)
|
|
87
83
|
};
|
|
88
84
|
}
|
|
89
85
|
return {
|
|
@@ -92,10 +88,8 @@ function updateWorkspaceSkillSettingLists(lists, skillName, enabled, defaultDisa
|
|
|
92
88
|
};
|
|
93
89
|
}
|
|
94
90
|
__name(updateWorkspaceSkillSettingLists, "updateWorkspaceSkillSettingLists");
|
|
95
|
-
function computeWorkspaceSkillListUpdates(workspaceDisabled,
|
|
96
|
-
const previousDisabled = workspaceDisabled
|
|
97
|
-
(name) => !lockedNames.has(name.trim().toLowerCase())
|
|
98
|
-
);
|
|
91
|
+
function computeWorkspaceSkillListUpdates(workspaceDisabled, workspaceEnabled, toggles) {
|
|
92
|
+
const previousDisabled = [...workspaceDisabled];
|
|
99
93
|
const previousEnabled = [...workspaceEnabled];
|
|
100
94
|
let next = {
|
|
101
95
|
disabled: previousDisabled,
|
|
@@ -106,8 +100,7 @@ function computeWorkspaceSkillListUpdates(workspaceDisabled, lockedNames, worksp
|
|
|
106
100
|
next = updateWorkspaceSkillSettingLists(
|
|
107
101
|
next,
|
|
108
102
|
toggle.name,
|
|
109
|
-
toggle.isEnabled
|
|
110
|
-
toggle.defaultDisabled
|
|
103
|
+
toggle.isEnabled
|
|
111
104
|
);
|
|
112
105
|
}
|
|
113
106
|
return {
|
|
@@ -12,22 +12,22 @@ import {
|
|
|
12
12
|
} from "./chunk-MR3PXB6E.js";
|
|
13
13
|
import {
|
|
14
14
|
ideContextStore
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ZBDYI7VM.js";
|
|
16
16
|
import {
|
|
17
17
|
require_proper_lockfile
|
|
18
18
|
} from "./chunk-MLXTMF7H.js";
|
|
19
19
|
import {
|
|
20
20
|
atomicWriteFileSync
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-KHP66DFN.js";
|
|
22
22
|
import {
|
|
23
23
|
FatalConfigError,
|
|
24
24
|
Storage,
|
|
25
25
|
createDebugLogger,
|
|
26
26
|
getErrorMessage
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-EAHOJF6V.js";
|
|
28
28
|
import {
|
|
29
29
|
writeStderrLine
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-7FA2II6K.js";
|
|
31
31
|
import {
|
|
32
32
|
init_esbuild_shims
|
|
33
33
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
theme
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-PDAKFU7M.js";
|
|
6
6
|
import {
|
|
7
7
|
require_jsx_runtime
|
|
8
8
|
} from "./chunk-SV5PQVQE.js";
|
|
@@ -15,13 +15,13 @@ import {
|
|
|
15
15
|
} from "./chunk-5QWWOFGG.js";
|
|
16
16
|
import {
|
|
17
17
|
toCodePoints
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-47ECGEJC.js";
|
|
19
19
|
import {
|
|
20
20
|
stringWidth
|
|
21
21
|
} from "./chunk-2MIN6GRR.js";
|
|
22
22
|
import {
|
|
23
23
|
createDebugLogger
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-EAHOJF6V.js";
|
|
25
25
|
import {
|
|
26
26
|
init_esbuild_shims
|
|
27
27
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
relaxSchemaForFunctionCalling,
|
|
6
6
|
safeJsonParse,
|
|
7
7
|
setGenAiUsageProvenance
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ANVG3BVV.js";
|
|
9
9
|
import {
|
|
10
10
|
createOpenAIReasoningThoughtPart
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-PQEISIKS.js";
|
|
12
12
|
import {
|
|
13
13
|
InvalidStreamError,
|
|
14
14
|
setToolCallPreparations
|
|
@@ -17,13 +17,13 @@ import {
|
|
|
17
17
|
TOKEN_ESTIMATE_UNITS_PER_TOKEN,
|
|
18
18
|
estimateTextTokenUnits,
|
|
19
19
|
estimateTextTokens
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-67AY5D3M.js";
|
|
21
21
|
import {
|
|
22
22
|
normalizeMcpToolName
|
|
23
23
|
} from "./chunk-WZAD4ZNJ.js";
|
|
24
24
|
import {
|
|
25
25
|
createDebugLogger
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-EAHOJF6V.js";
|
|
27
27
|
import {
|
|
28
28
|
FinishReason,
|
|
29
29
|
GenerateContentResponse
|
|
@@ -190,7 +190,7 @@ function normalizeStreamingTextDelta(rawDelta, state) {
|
|
|
190
190
|
return rawDelta;
|
|
191
191
|
}
|
|
192
192
|
__name(normalizeStreamingTextDelta, "normalizeStreamingTextDelta");
|
|
193
|
-
function
|
|
193
|
+
function convertLlmToolParametersToOpenAI(parameters) {
|
|
194
194
|
if (!parameters || typeof parameters !== "object") {
|
|
195
195
|
return parameters;
|
|
196
196
|
}
|
|
@@ -236,10 +236,10 @@ function convertGeminiToolParametersToOpenAI(parameters) {
|
|
|
236
236
|
}, "convertTypes");
|
|
237
237
|
return convertTypes(converted);
|
|
238
238
|
}
|
|
239
|
-
__name(
|
|
240
|
-
async function
|
|
239
|
+
__name(convertLlmToolParametersToOpenAI, "convertLlmToolParametersToOpenAI");
|
|
240
|
+
async function convertLlmToolsToOpenAI(llmTools, schemaCompliance = "auto") {
|
|
241
241
|
const openAITools = [];
|
|
242
|
-
for (const tool of
|
|
242
|
+
for (const tool of llmTools) {
|
|
243
243
|
let actualTool;
|
|
244
244
|
if ("tool" in tool) {
|
|
245
245
|
actualTool = await tool.tool();
|
|
@@ -256,7 +256,7 @@ async function convertGeminiToolsToOpenAI(geminiTools, schemaCompliance = "auto"
|
|
|
256
256
|
};
|
|
257
257
|
parameters = paramsCopy;
|
|
258
258
|
} else if (func.parameters) {
|
|
259
|
-
parameters =
|
|
259
|
+
parameters = convertLlmToolParametersToOpenAI(
|
|
260
260
|
func.parameters
|
|
261
261
|
);
|
|
262
262
|
}
|
|
@@ -278,8 +278,8 @@ async function convertGeminiToolsToOpenAI(geminiTools, schemaCompliance = "auto"
|
|
|
278
278
|
}
|
|
279
279
|
return openAITools;
|
|
280
280
|
}
|
|
281
|
-
__name(
|
|
282
|
-
function
|
|
281
|
+
__name(convertLlmToolsToOpenAI, "convertLlmToolsToOpenAI");
|
|
282
|
+
function convertLlmRequestToOpenAI(request, requestContext, options = { cleanOrphanToolCalls: true }) {
|
|
283
283
|
let messages = [];
|
|
284
284
|
addSystemInstructionMessage(request, messages);
|
|
285
285
|
processContents(request.contents, messages, requestContext);
|
|
@@ -290,8 +290,8 @@ function convertGeminiRequestToOpenAI(request, requestContext, options = { clean
|
|
|
290
290
|
}
|
|
291
291
|
return messages;
|
|
292
292
|
}
|
|
293
|
-
__name(
|
|
294
|
-
function
|
|
293
|
+
__name(convertLlmRequestToOpenAI, "convertLlmRequestToOpenAI");
|
|
294
|
+
function convertLlmResponseToOpenAI(response, requestContext) {
|
|
295
295
|
const candidate = response.candidates?.[0];
|
|
296
296
|
const parts = candidate?.content?.parts || [];
|
|
297
297
|
const thoughtParts = [];
|
|
@@ -331,7 +331,7 @@ function convertGeminiResponseToOpenAI(response, requestContext) {
|
|
|
331
331
|
if (toolCalls.length > 0) {
|
|
332
332
|
message.tool_calls = toolCalls;
|
|
333
333
|
}
|
|
334
|
-
const finishReason =
|
|
334
|
+
const finishReason = mapLlmFinishReasonToOpenAI(candidate?.finishReason);
|
|
335
335
|
const usageMetadata = response.usageMetadata;
|
|
336
336
|
const usage = {
|
|
337
337
|
prompt_tokens: usageMetadata?.promptTokenCount || 0,
|
|
@@ -361,7 +361,7 @@ function convertGeminiResponseToOpenAI(response, requestContext) {
|
|
|
361
361
|
usage
|
|
362
362
|
};
|
|
363
363
|
}
|
|
364
|
-
__name(
|
|
364
|
+
__name(convertLlmResponseToOpenAI, "convertLlmResponseToOpenAI");
|
|
365
365
|
function addSystemInstructionMessage(request, messages) {
|
|
366
366
|
if (!request.config?.systemInstruction) return;
|
|
367
367
|
const systemText = extractTextFromContentUnion(
|
|
@@ -846,7 +846,7 @@ function throwProtocolTagLeak(requestContext) {
|
|
|
846
846
|
);
|
|
847
847
|
}
|
|
848
848
|
__name(throwProtocolTagLeak, "throwProtocolTagLeak");
|
|
849
|
-
function
|
|
849
|
+
function convertOpenAIResponseToLlm(openaiResponse, requestContext) {
|
|
850
850
|
const choice = openaiResponse.choices?.[0];
|
|
851
851
|
const message = choice?.message;
|
|
852
852
|
const reasoningText = message?.reasoning_content ?? message?.reasoning;
|
|
@@ -881,7 +881,7 @@ function convertOpenAIResponseToGemini(openaiResponse, requestContext) {
|
|
|
881
881
|
parts,
|
|
882
882
|
role: "model"
|
|
883
883
|
},
|
|
884
|
-
finishReason:
|
|
884
|
+
finishReason: mapOpenAIFinishReasonToLlm(
|
|
885
885
|
choice.finish_reason || "stop"
|
|
886
886
|
),
|
|
887
887
|
index: 0,
|
|
@@ -910,7 +910,7 @@ function convertOpenAIResponseToGemini(openaiResponse, requestContext) {
|
|
|
910
910
|
thinkingTokens = completionTokens > 0 ? Math.min(estimatedThinkingTokens, completionTokens) : estimatedThinkingTokens;
|
|
911
911
|
if (thinkingTokens > 0) {
|
|
912
912
|
debugLogger2.debug(
|
|
913
|
-
`
|
|
913
|
+
`convertOpenAIResponseToLlm: reasoning_tokens absent; estimated ${thinkingTokens} from text`
|
|
914
914
|
);
|
|
915
915
|
}
|
|
916
916
|
}
|
|
@@ -930,15 +930,15 @@ function convertOpenAIResponseToGemini(openaiResponse, requestContext) {
|
|
|
930
930
|
}
|
|
931
931
|
return response;
|
|
932
932
|
}
|
|
933
|
-
__name(
|
|
934
|
-
function
|
|
933
|
+
__name(convertOpenAIResponseToLlm, "convertOpenAIResponseToLlm");
|
|
934
|
+
function convertOpenAIChunkToLlm(chunk, requestContext) {
|
|
935
935
|
const choice = chunk.choices?.[0];
|
|
936
936
|
const response = new GenerateContentResponse();
|
|
937
937
|
const preparations = [];
|
|
938
938
|
const toolCallParser = requestContext.toolCallParser;
|
|
939
939
|
if (!toolCallParser) {
|
|
940
940
|
throw new Error(
|
|
941
|
-
"
|
|
941
|
+
"convertOpenAIChunkToLlm requires requestContext.toolCallParser \u2014 attach a fresh StreamingToolCallParser at stream start."
|
|
942
942
|
);
|
|
943
943
|
}
|
|
944
944
|
if (choice) {
|
|
@@ -968,11 +968,11 @@ function convertOpenAIChunkToGemini(chunk, requestContext) {
|
|
|
968
968
|
requestContext.hasTaggedThinkingThought = true;
|
|
969
969
|
requestContext.pendingReasoningText = void 0;
|
|
970
970
|
debugLogger2.debug(
|
|
971
|
-
"
|
|
971
|
+
"convertOpenAIChunkToLlm: tagged thinking content emitted a thought; dropping buffered reasoning"
|
|
972
972
|
);
|
|
973
973
|
if (requestContext.pendingContentParts?.length) {
|
|
974
974
|
debugLogger2.debug(
|
|
975
|
-
`
|
|
975
|
+
`convertOpenAIChunkToLlm: flushing ${requestContext.pendingContentParts.length} buffered content part(s) before tagged content`
|
|
976
976
|
);
|
|
977
977
|
parts.push(...requestContext.pendingContentParts);
|
|
978
978
|
requestContext.pendingContentParts = void 0;
|
|
@@ -1000,7 +1000,7 @@ function convertOpenAIChunkToGemini(chunk, requestContext) {
|
|
|
1000
1000
|
} else if (normalizedReasoningText && !requestContext.hasTaggedThinkingThought) {
|
|
1001
1001
|
requestContext.pendingReasoningText = (requestContext.pendingReasoningText ?? "") + normalizedReasoningText;
|
|
1002
1002
|
debugLogger2.debug(
|
|
1003
|
-
`
|
|
1003
|
+
`convertOpenAIChunkToLlm: buffered reasoning text (${requestContext.pendingReasoningText.length} chars) for tagged stream`
|
|
1004
1004
|
);
|
|
1005
1005
|
}
|
|
1006
1006
|
}
|
|
@@ -1010,13 +1010,13 @@ function convertOpenAIChunkToGemini(chunk, requestContext) {
|
|
|
1010
1010
|
...contentParts
|
|
1011
1011
|
];
|
|
1012
1012
|
debugLogger2.debug(
|
|
1013
|
-
`
|
|
1013
|
+
`convertOpenAIChunkToLlm: buffered ${contentParts.length} content part(s) behind pending reasoning`
|
|
1014
1014
|
);
|
|
1015
1015
|
contentParts = [];
|
|
1016
1016
|
}
|
|
1017
1017
|
if (choice.finish_reason && requestContext.responseParsingOptions?.taggedThinkingTags && !requestContext.hasTaggedThinkingThought && requestContext.pendingReasoningText) {
|
|
1018
1018
|
debugLogger2.debug(
|
|
1019
|
-
"
|
|
1019
|
+
"convertOpenAIChunkToLlm: flushing buffered reasoning for tagged stream with no tagged thought"
|
|
1020
1020
|
);
|
|
1021
1021
|
parts.push(
|
|
1022
1022
|
createOpenAIReasoningThoughtPart(requestContext.pendingReasoningText)
|
|
@@ -1025,7 +1025,7 @@ function convertOpenAIChunkToGemini(chunk, requestContext) {
|
|
|
1025
1025
|
}
|
|
1026
1026
|
if (choice.finish_reason && requestContext.pendingContentParts?.length) {
|
|
1027
1027
|
debugLogger2.debug(
|
|
1028
|
-
`
|
|
1028
|
+
`convertOpenAIChunkToLlm: flushing ${requestContext.pendingContentParts.length} buffered content part(s) on stream finish`
|
|
1029
1029
|
);
|
|
1030
1030
|
parts.push(...requestContext.pendingContentParts);
|
|
1031
1031
|
requestContext.pendingContentParts = void 0;
|
|
@@ -1185,7 +1185,7 @@ function convertOpenAIChunkToGemini(chunk, requestContext) {
|
|
|
1185
1185
|
safetyRatings: []
|
|
1186
1186
|
};
|
|
1187
1187
|
if (effectiveFinishReason) {
|
|
1188
|
-
candidate.finishReason =
|
|
1188
|
+
candidate.finishReason = mapOpenAIFinishReasonToLlm(
|
|
1189
1189
|
effectiveFinishReason
|
|
1190
1190
|
);
|
|
1191
1191
|
}
|
|
@@ -1209,7 +1209,7 @@ function convertOpenAIChunkToGemini(chunk, requestContext) {
|
|
|
1209
1209
|
const thinkingTokens = providerReasoningTokens ?? (completionTokens > 0 ? Math.min(estimatedThinkingTokens, completionTokens) : estimatedThinkingTokens);
|
|
1210
1210
|
if (providerReasoningTokens == null && estimatedThinkingTokens > 0) {
|
|
1211
1211
|
debugLogger2.debug(
|
|
1212
|
-
`
|
|
1212
|
+
`convertOpenAIChunkToLlm: reasoning_tokens absent; estimated ${thinkingTokens} from streamed text`
|
|
1213
1213
|
);
|
|
1214
1214
|
}
|
|
1215
1215
|
const extendedUsage = usage;
|
|
@@ -1234,8 +1234,8 @@ function convertOpenAIChunkToGemini(chunk, requestContext) {
|
|
|
1234
1234
|
}
|
|
1235
1235
|
return response;
|
|
1236
1236
|
}
|
|
1237
|
-
__name(
|
|
1238
|
-
function
|
|
1237
|
+
__name(convertOpenAIChunkToLlm, "convertOpenAIChunkToLlm");
|
|
1238
|
+
function mapOpenAIFinishReasonToLlm(openaiReason) {
|
|
1239
1239
|
if (typeof openaiReason !== "string") {
|
|
1240
1240
|
return FinishReason.FINISH_REASON_UNSPECIFIED;
|
|
1241
1241
|
}
|
|
@@ -1249,12 +1249,12 @@ function mapOpenAIFinishReasonToGemini(openaiReason) {
|
|
|
1249
1249
|
};
|
|
1250
1250
|
return mapping[openaiReason.toLowerCase()] || FinishReason.FINISH_REASON_UNSPECIFIED;
|
|
1251
1251
|
}
|
|
1252
|
-
__name(
|
|
1253
|
-
function
|
|
1254
|
-
if (!
|
|
1252
|
+
__name(mapOpenAIFinishReasonToLlm, "mapOpenAIFinishReasonToLlm");
|
|
1253
|
+
function mapLlmFinishReasonToOpenAI(llmReason) {
|
|
1254
|
+
if (!llmReason) {
|
|
1255
1255
|
return "stop";
|
|
1256
1256
|
}
|
|
1257
|
-
switch (
|
|
1257
|
+
switch (llmReason) {
|
|
1258
1258
|
case FinishReason.STOP:
|
|
1259
1259
|
return "stop";
|
|
1260
1260
|
case FinishReason.MAX_TOKENS:
|
|
@@ -1275,7 +1275,7 @@ function mapGeminiFinishReasonToOpenAI(geminiReason) {
|
|
|
1275
1275
|
return "stop";
|
|
1276
1276
|
}
|
|
1277
1277
|
}
|
|
1278
|
-
__name(
|
|
1278
|
+
__name(mapLlmFinishReasonToOpenAI, "mapLlmFinishReasonToOpenAI");
|
|
1279
1279
|
function hasToolCalls(message) {
|
|
1280
1280
|
return message.role === "assistant" && "tool_calls" in message && Array.isArray(message.tool_calls) && message.tool_calls.length > 0;
|
|
1281
1281
|
}
|
|
@@ -1450,12 +1450,12 @@ function mergeConsecutiveAssistantMessages(messages) {
|
|
|
1450
1450
|
}
|
|
1451
1451
|
__name(mergeConsecutiveAssistantMessages, "mergeConsecutiveAssistantMessages");
|
|
1452
1452
|
var OpenAIContentConverter = {
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1453
|
+
convertLlmToolParametersToOpenAI,
|
|
1454
|
+
convertLlmToolsToOpenAI,
|
|
1455
|
+
convertLlmRequestToOpenAI,
|
|
1456
|
+
convertLlmResponseToOpenAI,
|
|
1457
|
+
convertOpenAIResponseToLlm,
|
|
1458
|
+
convertOpenAIChunkToLlm
|
|
1459
1459
|
};
|
|
1460
1460
|
|
|
1461
1461
|
// packages/core/src/core/openaiContentGenerator/requestCaptureContext.ts
|