@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
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
MAX_INLINE_IMAGE_ENCODED_LENGTH
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7DDTI7Q3.js";
|
|
6
6
|
import {
|
|
7
7
|
MAX_TERMINAL_IMAGE_BYTES
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-LYSZVCCD.js";
|
|
9
9
|
import {
|
|
10
10
|
init_esbuild_shims
|
|
11
11
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -859,6 +859,8 @@ var renderCache = /* @__PURE__ */ new Map();
|
|
|
859
859
|
var renderCacheBytes = 0;
|
|
860
860
|
var INLINE_DECODE_CACHE_LIMIT = 4;
|
|
861
861
|
var inlineDecodeCache = /* @__PURE__ */ new Map();
|
|
862
|
+
var INLINE_DECODE_NEGATIVE_CACHE_LIMIT = 64;
|
|
863
|
+
var invalidInlineImageCache = /* @__PURE__ */ new Set();
|
|
862
864
|
var TRANSMITTED_KEY_LIMIT = 256;
|
|
863
865
|
var transmittedKeys = /* @__PURE__ */ new Set();
|
|
864
866
|
function wasKittyImageWritten(key) {
|
|
@@ -1080,10 +1082,22 @@ function getDecodedInlinePng(data) {
|
|
|
1080
1082
|
inlineDecodeCache.set(data, cached);
|
|
1081
1083
|
return cached;
|
|
1082
1084
|
}
|
|
1085
|
+
const negativeKey = crypto2.createHash("sha256").update(data).digest("hex");
|
|
1086
|
+
if (invalidInlineImageCache.has(negativeKey)) {
|
|
1087
|
+
invalidInlineImageCache.delete(negativeKey);
|
|
1088
|
+
invalidInlineImageCache.add(negativeKey);
|
|
1089
|
+
return null;
|
|
1090
|
+
}
|
|
1083
1091
|
const png = decodeInlineImage(data);
|
|
1084
|
-
if (!png)
|
|
1092
|
+
if (!png) {
|
|
1093
|
+
cacheInvalidInlineImage(negativeKey);
|
|
1094
|
+
return null;
|
|
1095
|
+
}
|
|
1085
1096
|
const size = readValidatedInlinePngSize(png);
|
|
1086
|
-
if (!size)
|
|
1097
|
+
if (!size) {
|
|
1098
|
+
cacheInvalidInlineImage(negativeKey);
|
|
1099
|
+
return null;
|
|
1100
|
+
}
|
|
1087
1101
|
const decoded = { png, size };
|
|
1088
1102
|
inlineDecodeCache.set(data, decoded);
|
|
1089
1103
|
while (inlineDecodeCache.size > INLINE_DECODE_CACHE_LIMIT) {
|
|
@@ -1094,6 +1108,15 @@ function getDecodedInlinePng(data) {
|
|
|
1094
1108
|
return decoded;
|
|
1095
1109
|
}
|
|
1096
1110
|
__name(getDecodedInlinePng, "getDecodedInlinePng");
|
|
1111
|
+
function cacheInvalidInlineImage(key) {
|
|
1112
|
+
invalidInlineImageCache.add(key);
|
|
1113
|
+
while (invalidInlineImageCache.size > INLINE_DECODE_NEGATIVE_CACHE_LIMIT) {
|
|
1114
|
+
const oldest = invalidInlineImageCache.values().next().value;
|
|
1115
|
+
if (oldest === void 0) break;
|
|
1116
|
+
invalidInlineImageCache.delete(oldest);
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
__name(cacheInvalidInlineImage, "cacheInvalidInlineImage");
|
|
1097
1120
|
function readValidatedInlinePngSize(png) {
|
|
1098
1121
|
if (png.length < 24 || png.readUInt32BE(8) !== 13 || png.subarray(12, 16).toString("ascii") !== "IHDR") {
|
|
1099
1122
|
return null;
|
|
@@ -1261,6 +1284,7 @@ __name(firstLineBounded, "firstLineBounded");
|
|
|
1261
1284
|
export {
|
|
1262
1285
|
renderMermaidImageAsync,
|
|
1263
1286
|
MAX_INLINE_IMAGE_PIXELS,
|
|
1287
|
+
INLINE_DECODE_NEGATIVE_CACHE_LIMIT,
|
|
1264
1288
|
TRANSMITTED_KEY_LIMIT,
|
|
1265
1289
|
wasKittyImageWritten,
|
|
1266
1290
|
markKittyImageWritten,
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import {
|
|
4
|
+
normalizeSessionIdForLookup
|
|
5
|
+
} from "./chunk-ZEZKIS2K.js";
|
|
6
|
+
import {
|
|
7
|
+
MAX_WORKSPACE_PATH_LENGTH,
|
|
8
|
+
translateAndCheckAbsoluteWorkspacePath
|
|
9
|
+
} from "./chunk-6PLDPT2C.js";
|
|
10
|
+
import {
|
|
11
|
+
writeStderrLine
|
|
12
|
+
} from "./chunk-7FA2II6K.js";
|
|
13
|
+
import {
|
|
14
|
+
init_esbuild_shims
|
|
15
|
+
} from "./chunk-5O2XNYP6.js";
|
|
16
|
+
import {
|
|
17
|
+
__name
|
|
18
|
+
} from "./chunk-J2S4EL5Y.js";
|
|
19
|
+
|
|
20
|
+
// packages/cli/src/serve/server/request-helpers.ts
|
|
21
|
+
init_esbuild_shims();
|
|
22
|
+
function sendJsonBodyParserError(res, err) {
|
|
23
|
+
if (err instanceof SyntaxError && "status" in err && err.status === 400) {
|
|
24
|
+
res.status(400).json({ error: "Invalid JSON in request body" });
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
if (err && typeof err === "object" && "status" in err && err.status === 413) {
|
|
28
|
+
res.status(413).json({ error: "Request body too large (max 10 MB)" });
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
__name(sendJsonBodyParserError, "sendJsonBodyParserError");
|
|
34
|
+
var PROTOTYPE_POLLUTION_KEYS = /* @__PURE__ */ new Set([
|
|
35
|
+
"__proto__",
|
|
36
|
+
"constructor",
|
|
37
|
+
"prototype"
|
|
38
|
+
]);
|
|
39
|
+
var CLIENT_ID_HEADER = "x-qwen-client-id";
|
|
40
|
+
var MAX_CLIENT_ID_LENGTH = 128;
|
|
41
|
+
var MAX_TOOL_NAME_LENGTH = 256;
|
|
42
|
+
var MAX_SKILL_NAME_LENGTH = 256;
|
|
43
|
+
var MAX_SERVER_NAME_LENGTH = 256;
|
|
44
|
+
var CLIENT_ID_RE = /^[A-Za-z0-9._:-]+$/;
|
|
45
|
+
var INVALID_PERMISSION_OUTCOME_ERROR = '`outcome` must be `{ outcome: "cancelled" }` or `{ outcome: "selected", optionId: string }`';
|
|
46
|
+
var deferredRuntimeTimingKey = Symbol(
|
|
47
|
+
"deferredRuntimeRequestTiming"
|
|
48
|
+
);
|
|
49
|
+
function setDeferredRuntimeRequestTiming(req, timing) {
|
|
50
|
+
req[deferredRuntimeTimingKey] = timing;
|
|
51
|
+
}
|
|
52
|
+
__name(setDeferredRuntimeRequestTiming, "setDeferredRuntimeRequestTiming");
|
|
53
|
+
function getDeferredRuntimeRequestTiming(req) {
|
|
54
|
+
return req[deferredRuntimeTimingKey];
|
|
55
|
+
}
|
|
56
|
+
__name(getDeferredRuntimeRequestTiming, "getDeferredRuntimeRequestTiming");
|
|
57
|
+
function safeBody(req) {
|
|
58
|
+
const raw = req.body;
|
|
59
|
+
if (typeof raw !== "object" || raw === null || Array.isArray(raw)) {
|
|
60
|
+
return /* @__PURE__ */ Object.create(null);
|
|
61
|
+
}
|
|
62
|
+
const out = /* @__PURE__ */ Object.create(null);
|
|
63
|
+
for (const [key, value] of Object.entries(raw)) {
|
|
64
|
+
if (PROTOTYPE_POLLUTION_KEYS.has(key)) continue;
|
|
65
|
+
out[key] = value;
|
|
66
|
+
}
|
|
67
|
+
return out;
|
|
68
|
+
}
|
|
69
|
+
__name(safeBody, "safeBody");
|
|
70
|
+
function parseOptionalWorkspaceCwd(body, boundWorkspace, res) {
|
|
71
|
+
const hasCwd = "cwd" in body;
|
|
72
|
+
if (hasCwd && typeof body["cwd"] !== "string") {
|
|
73
|
+
res.status(400).json({ error: "`cwd` must be a string absolute path when provided" });
|
|
74
|
+
return void 0;
|
|
75
|
+
}
|
|
76
|
+
if (hasCwd && body["cwd"].length > MAX_WORKSPACE_PATH_LENGTH) {
|
|
77
|
+
res.status(400).json({
|
|
78
|
+
error: `\`cwd\` exceeds the ${MAX_WORKSPACE_PATH_LENGTH}-character limit`
|
|
79
|
+
});
|
|
80
|
+
return void 0;
|
|
81
|
+
}
|
|
82
|
+
const cwd = translateAndCheckAbsoluteWorkspacePath(
|
|
83
|
+
hasCwd ? body["cwd"] : boundWorkspace
|
|
84
|
+
);
|
|
85
|
+
if (cwd === null) {
|
|
86
|
+
res.status(400).json({ error: "`cwd` must be an absolute path when provided" });
|
|
87
|
+
return void 0;
|
|
88
|
+
}
|
|
89
|
+
return cwd;
|
|
90
|
+
}
|
|
91
|
+
__name(parseOptionalWorkspaceCwd, "parseOptionalWorkspaceCwd");
|
|
92
|
+
function requireSessionId(req, res) {
|
|
93
|
+
const sessionId = req.params["id"];
|
|
94
|
+
if (!sessionId) {
|
|
95
|
+
res.status(400).json({ error: "`sessionId` route parameter is required" });
|
|
96
|
+
return null;
|
|
97
|
+
}
|
|
98
|
+
return normalizeSessionIdForLookup(sessionId);
|
|
99
|
+
}
|
|
100
|
+
__name(requireSessionId, "requireSessionId");
|
|
101
|
+
function parseClientIdHeader(req, res) {
|
|
102
|
+
const raw = req.get(CLIENT_ID_HEADER);
|
|
103
|
+
if (raw === void 0 || raw === "") return void 0;
|
|
104
|
+
if (raw.length > MAX_CLIENT_ID_LENGTH || !CLIENT_ID_RE.test(raw)) {
|
|
105
|
+
res.status(400).json({
|
|
106
|
+
error: "`X-Qwen-Client-Id` must be a non-empty token of 128 characters or fewer",
|
|
107
|
+
code: "invalid_client_id"
|
|
108
|
+
});
|
|
109
|
+
return null;
|
|
110
|
+
}
|
|
111
|
+
return raw;
|
|
112
|
+
}
|
|
113
|
+
__name(parseClientIdHeader, "parseClientIdHeader");
|
|
114
|
+
function detectFromLoopback(req) {
|
|
115
|
+
const addr = req.socket?.remoteAddress;
|
|
116
|
+
if (typeof addr !== "string") return false;
|
|
117
|
+
if (addr === "::1") return true;
|
|
118
|
+
if (addr.startsWith("127.")) return true;
|
|
119
|
+
if (addr.startsWith("::ffff:127.")) return true;
|
|
120
|
+
return false;
|
|
121
|
+
}
|
|
122
|
+
__name(detectFromLoopback, "detectFromLoopback");
|
|
123
|
+
function validateMcpRuntimeServerName(name, res) {
|
|
124
|
+
if (typeof name !== "string" || name.length === 0) {
|
|
125
|
+
res.status(400).json({
|
|
126
|
+
error: "Server name is required and must be a non-empty string",
|
|
127
|
+
code: "invalid_server_name"
|
|
128
|
+
});
|
|
129
|
+
return false;
|
|
130
|
+
}
|
|
131
|
+
if (name.length > MAX_SERVER_NAME_LENGTH) {
|
|
132
|
+
res.status(400).json({
|
|
133
|
+
error: `Server name exceeds ${MAX_SERVER_NAME_LENGTH}-character limit`,
|
|
134
|
+
code: "invalid_server_name"
|
|
135
|
+
});
|
|
136
|
+
return false;
|
|
137
|
+
}
|
|
138
|
+
if (!/^[A-Za-z0-9_-]+$/.test(name)) {
|
|
139
|
+
res.status(400).json({
|
|
140
|
+
error: "Server name must contain only alphanumeric characters, underscores, and hyphens",
|
|
141
|
+
code: "invalid_server_name"
|
|
142
|
+
});
|
|
143
|
+
return false;
|
|
144
|
+
}
|
|
145
|
+
if (name === "__proto__" || name === "constructor" || name === "prototype") {
|
|
146
|
+
res.status(400).json({
|
|
147
|
+
error: "Server name must not be a reserved JS property name",
|
|
148
|
+
code: "invalid_server_name"
|
|
149
|
+
});
|
|
150
|
+
return false;
|
|
151
|
+
}
|
|
152
|
+
return true;
|
|
153
|
+
}
|
|
154
|
+
__name(validateMcpRuntimeServerName, "validateMcpRuntimeServerName");
|
|
155
|
+
function parseAndValidateWorkspaceClientId(req, res, bridge) {
|
|
156
|
+
const raw = parseClientIdHeader(req, res);
|
|
157
|
+
if (raw === null || raw === void 0) return raw;
|
|
158
|
+
const bridges = Array.isArray(bridge) ? bridge : [bridge];
|
|
159
|
+
if (!bridges.some((candidate) => candidate.knownClientIds().has(raw))) {
|
|
160
|
+
res.status(400).json({
|
|
161
|
+
error: `Client id "${raw}" is not registered for this workspace`,
|
|
162
|
+
code: "invalid_client_id",
|
|
163
|
+
clientId: raw
|
|
164
|
+
});
|
|
165
|
+
return null;
|
|
166
|
+
}
|
|
167
|
+
return raw;
|
|
168
|
+
}
|
|
169
|
+
__name(parseAndValidateWorkspaceClientId, "parseAndValidateWorkspaceClientId");
|
|
170
|
+
function createBuildWorkspaceCtx(boundWorkspace) {
|
|
171
|
+
return (route, clientId) => ({
|
|
172
|
+
originatorClientId: clientId,
|
|
173
|
+
route,
|
|
174
|
+
workspaceCwd: boundWorkspace
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
__name(createBuildWorkspaceCtx, "createBuildWorkspaceCtx");
|
|
178
|
+
function parsePermissionVoteBody(req, res) {
|
|
179
|
+
const body = safeBody(req);
|
|
180
|
+
const outcome = body["outcome"];
|
|
181
|
+
if (!isValidOutcome(outcome)) {
|
|
182
|
+
res.status(400).json({ error: INVALID_PERMISSION_OUTCOME_ERROR });
|
|
183
|
+
return void 0;
|
|
184
|
+
}
|
|
185
|
+
return {
|
|
186
|
+
...body,
|
|
187
|
+
outcome
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
__name(parsePermissionVoteBody, "parsePermissionVoteBody");
|
|
191
|
+
function isValidOutcome(raw) {
|
|
192
|
+
if (typeof raw !== "object" || raw === null) return false;
|
|
193
|
+
const obj = raw;
|
|
194
|
+
if (obj["outcome"] === "cancelled") return true;
|
|
195
|
+
return obj["outcome"] === "selected" && typeof obj["optionId"] === "string" && obj["optionId"].length > 0;
|
|
196
|
+
}
|
|
197
|
+
__name(isValidOutcome, "isValidOutcome");
|
|
198
|
+
var MIN_QUERY_MAX_QUEUED = 16;
|
|
199
|
+
var MAX_QUERY_MAX_QUEUED = 2048;
|
|
200
|
+
function parseMaxQueuedQuery(raw, res) {
|
|
201
|
+
if (raw === void 0) return void 0;
|
|
202
|
+
if (typeof raw !== "string" || !/^\d+$/.test(raw)) {
|
|
203
|
+
writeStderrLine(
|
|
204
|
+
`qwen serve: rejected ?maxQueued ${safeLogValue(raw)} (not a decimal integer)`
|
|
205
|
+
);
|
|
206
|
+
res.status(400).json({
|
|
207
|
+
error: "`maxQueued` must be a decimal integer",
|
|
208
|
+
code: "invalid_max_queued"
|
|
209
|
+
});
|
|
210
|
+
return null;
|
|
211
|
+
}
|
|
212
|
+
const n = Number.parseInt(raw, 10);
|
|
213
|
+
if (!Number.isFinite(n) || n < MIN_QUERY_MAX_QUEUED || n > MAX_QUERY_MAX_QUEUED) {
|
|
214
|
+
writeStderrLine(
|
|
215
|
+
`qwen serve: rejected ?maxQueued ${safeLogValue(raw)} (outside [${MIN_QUERY_MAX_QUEUED}, ${MAX_QUERY_MAX_QUEUED}])`
|
|
216
|
+
);
|
|
217
|
+
res.status(400).json({
|
|
218
|
+
error: `\`maxQueued\` must be in [${MIN_QUERY_MAX_QUEUED}, ${MAX_QUERY_MAX_QUEUED}]`,
|
|
219
|
+
code: "invalid_max_queued"
|
|
220
|
+
});
|
|
221
|
+
return null;
|
|
222
|
+
}
|
|
223
|
+
return n;
|
|
224
|
+
}
|
|
225
|
+
__name(parseMaxQueuedQuery, "parseMaxQueuedQuery");
|
|
226
|
+
function safeLogValue(raw) {
|
|
227
|
+
return JSON.stringify(String(raw)).slice(0, 82);
|
|
228
|
+
}
|
|
229
|
+
__name(safeLogValue, "safeLogValue");
|
|
230
|
+
function parseLastEventId(raw) {
|
|
231
|
+
if (typeof raw !== "string" || !/^\d+$/.test(raw)) {
|
|
232
|
+
if (typeof raw === "string" && raw.length > 0) {
|
|
233
|
+
writeStderrLine(
|
|
234
|
+
`qwen serve: rejected Last-Event-ID ${safeLogValue(raw)} (not a decimal integer)`
|
|
235
|
+
);
|
|
236
|
+
}
|
|
237
|
+
return void 0;
|
|
238
|
+
}
|
|
239
|
+
const n = Number.parseInt(raw, 10);
|
|
240
|
+
if (!Number.isFinite(n) || n > Number.MAX_SAFE_INTEGER) {
|
|
241
|
+
writeStderrLine(
|
|
242
|
+
`qwen serve: rejected Last-Event-ID ${safeLogValue(raw)} (exceeds Number.MAX_SAFE_INTEGER)`
|
|
243
|
+
);
|
|
244
|
+
return void 0;
|
|
245
|
+
}
|
|
246
|
+
return n;
|
|
247
|
+
}
|
|
248
|
+
__name(parseLastEventId, "parseLastEventId");
|
|
249
|
+
|
|
250
|
+
export {
|
|
251
|
+
sendJsonBodyParserError,
|
|
252
|
+
CLIENT_ID_HEADER,
|
|
253
|
+
MAX_CLIENT_ID_LENGTH,
|
|
254
|
+
MAX_TOOL_NAME_LENGTH,
|
|
255
|
+
MAX_SKILL_NAME_LENGTH,
|
|
256
|
+
MAX_SERVER_NAME_LENGTH,
|
|
257
|
+
CLIENT_ID_RE,
|
|
258
|
+
setDeferredRuntimeRequestTiming,
|
|
259
|
+
getDeferredRuntimeRequestTiming,
|
|
260
|
+
safeBody,
|
|
261
|
+
parseOptionalWorkspaceCwd,
|
|
262
|
+
requireSessionId,
|
|
263
|
+
parseClientIdHeader,
|
|
264
|
+
detectFromLoopback,
|
|
265
|
+
validateMcpRuntimeServerName,
|
|
266
|
+
parseAndValidateWorkspaceClientId,
|
|
267
|
+
createBuildWorkspaceCtx,
|
|
268
|
+
parsePermissionVoteBody,
|
|
269
|
+
parseMaxQueuedQuery,
|
|
270
|
+
safeLogValue,
|
|
271
|
+
parseLastEventId
|
|
272
|
+
};
|
|
273
|
+
/**
|
|
274
|
+
* @license
|
|
275
|
+
* Copyright 2025 Qwen Team
|
|
276
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
277
|
+
*/
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
import {
|
|
4
4
|
settleChatRecording,
|
|
5
5
|
subscribeToHeadlessChatRecordingFailures
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JOWQD4LO.js";
|
|
7
7
|
import {
|
|
8
8
|
handleAtCommand,
|
|
9
9
|
normalizePartList
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AKNQMSL2.js";
|
|
11
11
|
import {
|
|
12
12
|
JsonOutputAdapter
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-XLENZQXH.js";
|
|
14
14
|
import {
|
|
15
15
|
StreamJsonOutputAdapter
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-MZ5A5PQW.js";
|
|
17
17
|
import {
|
|
18
18
|
buildInitialSystemReminders,
|
|
19
19
|
buildSystemMessage,
|
|
@@ -24,11 +24,11 @@ import {
|
|
|
24
24
|
handleSlashCommand,
|
|
25
25
|
insertAfterFunctionResponses,
|
|
26
26
|
isSlashCommand
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-BBYTY46C.js";
|
|
28
28
|
import {
|
|
29
29
|
RunBudgetEnforcer,
|
|
30
30
|
cleanupReviewWorktreeLeases
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-YOMKOM7E.js";
|
|
32
32
|
import {
|
|
33
33
|
AlreadyReportedError,
|
|
34
34
|
handleBudgetExceededError,
|
|
@@ -36,20 +36,20 @@ import {
|
|
|
36
36
|
handleError,
|
|
37
37
|
handleMaxTurnsExceededError,
|
|
38
38
|
handleToolError
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-MJBHSZEJ.js";
|
|
40
40
|
import {
|
|
41
41
|
isInlineModelOverrideAllowed
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-W7KWB6AH.js";
|
|
43
43
|
import {
|
|
44
44
|
buildGoalContinuationParts,
|
|
45
45
|
buildSessionRecoveryPlanFromApiHistory,
|
|
46
46
|
detectAutonomousSentinel,
|
|
47
47
|
detectLoopSentinel,
|
|
48
48
|
executeToolCall
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-NT7LXVV5.js";
|
|
50
50
|
import {
|
|
51
51
|
restoreWorktreeContext
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-ED7DD7MV.js";
|
|
53
53
|
import {
|
|
54
54
|
PLAN_MODE_ENTRY_SIBLING_SKIP_MESSAGE,
|
|
55
55
|
clampInlineMediaPart,
|
|
@@ -58,25 +58,26 @@ import {
|
|
|
58
58
|
findPlanModeEntryBatchBoundaryIndex,
|
|
59
59
|
findRepeatedDuplicateProviderToolCall,
|
|
60
60
|
getCachedToolCallFingerprint,
|
|
61
|
+
goalToolResultProvenance,
|
|
61
62
|
isReplayOfHandledToolCall,
|
|
62
63
|
isToolCallConcurrencySafe,
|
|
63
64
|
markDuplicateProviderToolCallResponseSent,
|
|
64
65
|
parseAndFormatApiError,
|
|
65
66
|
partitionByConcurrencySafety,
|
|
66
67
|
recordHandledToolCall
|
|
67
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-ZBDYI7VM.js";
|
|
68
69
|
import {
|
|
69
70
|
parsePositiveIntegerEnv
|
|
70
71
|
} from "./chunk-6PVPNMXU.js";
|
|
71
72
|
import {
|
|
72
73
|
promptIdContext
|
|
73
74
|
} from "./chunk-O6GEWCJA.js";
|
|
74
|
-
import {
|
|
75
|
-
GoalPersistenceUnavailableError
|
|
76
|
-
} from "./chunk-WKK5BQNP.js";
|
|
77
75
|
import {
|
|
78
76
|
addAgentOutputMessageAttributes
|
|
79
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-OSTQZIOY.js";
|
|
78
|
+
import {
|
|
79
|
+
GoalPersistenceUnavailableError
|
|
80
|
+
} from "./chunk-4P7PPAHN.js";
|
|
80
81
|
import {
|
|
81
82
|
formatFullTurnVisionNotice,
|
|
82
83
|
formatVisionBridgeNotice,
|
|
@@ -86,28 +87,28 @@ import {
|
|
|
86
87
|
shouldRunVisionBridge,
|
|
87
88
|
splitImageParts,
|
|
88
89
|
uiTelemetryService
|
|
89
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-FXUSWLBF.js";
|
|
90
91
|
import {
|
|
91
92
|
endInteractionSpan,
|
|
92
93
|
getActiveInteractionSpan,
|
|
93
94
|
isTelemetrySdkInitialized,
|
|
94
95
|
shutdownTelemetry
|
|
95
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-TBJ3SNS3.js";
|
|
96
97
|
import {
|
|
97
98
|
isSystemReminderContent
|
|
98
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-D7D3HSYQ.js";
|
|
99
100
|
import {
|
|
100
101
|
ToolNames,
|
|
101
102
|
canonicalToolName
|
|
102
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-LYSZVCCD.js";
|
|
103
104
|
import {
|
|
104
105
|
FatalInputError,
|
|
105
106
|
createDebugLogger,
|
|
106
107
|
getErrorType
|
|
107
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-EAHOJF6V.js";
|
|
108
109
|
import {
|
|
109
110
|
registerCleanup
|
|
110
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-TV7BJ7TX.js";
|
|
111
112
|
import {
|
|
112
113
|
init_esbuild_shims
|
|
113
114
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -356,7 +357,7 @@ async function runNonInteractive(config, settings, input, prompt_id, options = {
|
|
|
356
357
|
...metadata
|
|
357
358
|
});
|
|
358
359
|
}, "endActiveInteraction");
|
|
359
|
-
const
|
|
360
|
+
const llmClient = config.getLlmClient();
|
|
360
361
|
const abortController = options.abortController ?? new AbortController();
|
|
361
362
|
const queuedGoalTurns = [];
|
|
362
363
|
let activeGoalTurn;
|
|
@@ -400,6 +401,7 @@ async function runNonInteractive(config, settings, input, prompt_id, options = {
|
|
|
400
401
|
controller: new AbortController(),
|
|
401
402
|
origin: "runtime",
|
|
402
403
|
continuationContext: input2.continuationContext,
|
|
404
|
+
...input2.objectiveUpdated ? { objectiveUpdated: input2.objectiveUpdated } : {},
|
|
403
405
|
...input2.windDown ? { windDown: true } : {},
|
|
404
406
|
...input2.verifierFeedback ? { verifierFeedback: input2.verifierFeedback } : {}
|
|
405
407
|
});
|
|
@@ -414,6 +416,12 @@ async function runNonInteractive(config, settings, input, prompt_id, options = {
|
|
|
414
416
|
const bindGoalHost = /* @__PURE__ */ __name(() => {
|
|
415
417
|
goalHostUnbind ??= config.bindGoalTurnHost(goalHost);
|
|
416
418
|
}, "bindGoalHost");
|
|
419
|
+
const markGoalTurnDelivered = /* @__PURE__ */ __name((turn) => {
|
|
420
|
+
try {
|
|
421
|
+
config.getGoalRuntime().markTurnDelivered(turn.turnKey);
|
|
422
|
+
} catch {
|
|
423
|
+
}
|
|
424
|
+
}, "markGoalTurnDelivered");
|
|
417
425
|
let settlingGoalTurn;
|
|
418
426
|
let goalTurnSettlement;
|
|
419
427
|
const failClosedActiveGoalTurn = /* @__PURE__ */ __name((reason) => {
|
|
@@ -679,7 +687,7 @@ ${reason}
|
|
|
679
687
|
if (options.continueInterrupted) {
|
|
680
688
|
const recoveryPlan = buildSessionRecoveryPlanFromApiHistory({
|
|
681
689
|
sessionId,
|
|
682
|
-
apiHistory:
|
|
690
|
+
apiHistory: llmClient.getChat().getHistory()
|
|
683
691
|
});
|
|
684
692
|
debugLogger.info("[runNonInteractive] continueInterrupted recovery", {
|
|
685
693
|
kind: recoveryPlan.kind,
|
|
@@ -784,6 +792,7 @@ ${reason}
|
|
|
784
792
|
"The Goal runtime did not schedule a continuation."
|
|
785
793
|
);
|
|
786
794
|
}
|
|
795
|
+
markGoalTurnDelivered(activeGoalTurn);
|
|
787
796
|
initialPartList = buildGoalContinuationParts(activeGoalTurn);
|
|
788
797
|
slashHandled = true;
|
|
789
798
|
break;
|
|
@@ -1129,7 +1138,7 @@ ${text}
|
|
|
1129
1138
|
return 1;
|
|
1130
1139
|
}, "emitLoopDetectedResult");
|
|
1131
1140
|
const handledToolCallFingerprints = new Map(
|
|
1132
|
-
|
|
1141
|
+
llmClient.getHistoryToolCallFingerprints()
|
|
1133
1142
|
);
|
|
1134
1143
|
const duplicateProviderToolCallResponseIds = /* @__PURE__ */ new Set();
|
|
1135
1144
|
const processToolCallBatch = /* @__PURE__ */ __name(async (batchRequests, setModelOverride, runtimeView) => {
|
|
@@ -1291,7 +1300,7 @@ ${text}
|
|
|
1291
1300
|
adapter.emitToolResult(requestInfo, toolResponse);
|
|
1292
1301
|
responseByRequest.set(requestInfo, toolResponse);
|
|
1293
1302
|
terminateTurn ||= toolResponse.terminateTurn === true;
|
|
1294
|
-
config.
|
|
1303
|
+
config.getLlmClient().recordCompletedToolCall(
|
|
1295
1304
|
requestInfo.name,
|
|
1296
1305
|
requestInfo.args
|
|
1297
1306
|
);
|
|
@@ -1469,16 +1478,21 @@ ${text}
|
|
|
1469
1478
|
const { request, response } = orderedResponses[index];
|
|
1470
1479
|
const finalizedParts = finalized[index].responseParts;
|
|
1471
1480
|
toolResponseParts.push(...finalizedParts);
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1481
|
+
const goalProvenance = goalToolResultProvenance(request);
|
|
1482
|
+
chatRecordingService?.recordToolResult?.(
|
|
1483
|
+
finalizedParts,
|
|
1484
|
+
{
|
|
1485
|
+
callId: request.callId,
|
|
1486
|
+
status: statusByResponse.get(response) ?? (response.error ? "error" : "success"),
|
|
1487
|
+
resultDisplay: response.resultDisplay,
|
|
1488
|
+
persistedOutputFiles: finalized[index].persistedOutputFiles,
|
|
1489
|
+
artifacts: finalized[index].artifacts,
|
|
1490
|
+
error: response.error,
|
|
1491
|
+
errorType: response.errorType,
|
|
1492
|
+
executionStatus: response.executionStatus
|
|
1493
|
+
},
|
|
1494
|
+
...goalProvenance ? [goalProvenance] : []
|
|
1495
|
+
);
|
|
1482
1496
|
}
|
|
1483
1497
|
return {
|
|
1484
1498
|
responseParts: toolResponseParts,
|
|
@@ -1529,7 +1543,7 @@ ${text}
|
|
|
1529
1543
|
);
|
|
1530
1544
|
const toolCallRequests = [];
|
|
1531
1545
|
const apiStartTime = Date.now();
|
|
1532
|
-
const responseStream =
|
|
1546
|
+
const responseStream = llmClient.sendMessageStream(
|
|
1533
1547
|
currentMessages[0]?.parts || [],
|
|
1534
1548
|
abortController.signal,
|
|
1535
1549
|
currentPromptId,
|
|
@@ -1625,7 +1639,7 @@ ${text}
|
|
|
1625
1639
|
return emitLoopDetectedResult();
|
|
1626
1640
|
}
|
|
1627
1641
|
if (terminateTurn && activeGoalTurn) {
|
|
1628
|
-
|
|
1642
|
+
llmClient.addHistory({
|
|
1629
1643
|
role: "user",
|
|
1630
1644
|
parts: toolResponseParts
|
|
1631
1645
|
});
|
|
@@ -1637,6 +1651,7 @@ ${text}
|
|
|
1637
1651
|
const nextGoalTurn = queuedGoalTurns.shift();
|
|
1638
1652
|
if (nextGoalTurn) {
|
|
1639
1653
|
activeGoalTurn = nextGoalTurn;
|
|
1654
|
+
markGoalTurnDelivered(nextGoalTurn);
|
|
1640
1655
|
isFirstGoalSegment = true;
|
|
1641
1656
|
currentMessages = [
|
|
1642
1657
|
{
|
|
@@ -1667,6 +1682,7 @@ ${text}
|
|
|
1667
1682
|
const nextGoalTurn = queuedGoalTurns.shift();
|
|
1668
1683
|
if (nextGoalTurn) {
|
|
1669
1684
|
activeGoalTurn = nextGoalTurn;
|
|
1685
|
+
markGoalTurnDelivered(nextGoalTurn);
|
|
1670
1686
|
isFirstGoalSegment = true;
|
|
1671
1687
|
currentMessages = [
|
|
1672
1688
|
{
|
|
@@ -1751,7 +1767,7 @@ ${text}
|
|
|
1751
1767
|
const itemToolCallRequests = [];
|
|
1752
1768
|
const itemApiStartTime = Date.now();
|
|
1753
1769
|
selectActiveInteraction(itemPromptId, itemIsFirstTurn);
|
|
1754
|
-
const itemStream =
|
|
1770
|
+
const itemStream = llmClient.sendMessageStream(
|
|
1755
1771
|
itemMessages[0]?.parts || [],
|
|
1756
1772
|
abortController.signal,
|
|
1757
1773
|
itemPromptId,
|
|
@@ -1928,7 +1944,7 @@ ${text}
|
|
|
1928
1944
|
break;
|
|
1929
1945
|
await new Promise((r) => setTimeout(r, 100));
|
|
1930
1946
|
}
|
|
1931
|
-
const memoryTaskPromises = config.
|
|
1947
|
+
const memoryTaskPromises = config.getLlmClient().consumePendingMemoryTaskPromises();
|
|
1932
1948
|
if (memoryTaskPromises.length > 0) {
|
|
1933
1949
|
await Promise.allSettled(memoryTaskPromises);
|
|
1934
1950
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
createDebugLogger
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EAHOJF6V.js";
|
|
6
6
|
import {
|
|
7
7
|
init_esbuild_shims
|
|
8
8
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -716,7 +716,7 @@ function anthropicTools(value) {
|
|
|
716
716
|
return result;
|
|
717
717
|
}
|
|
718
718
|
__name(anthropicTools, "anthropicTools");
|
|
719
|
-
function
|
|
719
|
+
function llmTools(value) {
|
|
720
720
|
if (!Array.isArray(value)) return void 0;
|
|
721
721
|
const result = [];
|
|
722
722
|
for (const wrapper of value) {
|
|
@@ -734,7 +734,7 @@ function geminiTools(value) {
|
|
|
734
734
|
}
|
|
735
735
|
return result;
|
|
736
736
|
}
|
|
737
|
-
__name(
|
|
737
|
+
__name(llmTools, "llmTools");
|
|
738
738
|
function extractOpenAiContent(request) {
|
|
739
739
|
const value = request;
|
|
740
740
|
return {
|
|
@@ -756,7 +756,7 @@ function extractAnthropicContent(request) {
|
|
|
756
756
|
};
|
|
757
757
|
}
|
|
758
758
|
__name(extractAnthropicContent, "extractAnthropicContent");
|
|
759
|
-
function
|
|
759
|
+
function extractLlmContent(request) {
|
|
760
760
|
const value = request;
|
|
761
761
|
const config = record(value["config"]);
|
|
762
762
|
return {
|
|
@@ -766,10 +766,10 @@ function extractGeminiContent(request) {
|
|
|
766
766
|
(role) => role === "model" ? "assistant" : role
|
|
767
767
|
) : void 0,
|
|
768
768
|
systemInstructions: config && Object.hasOwn(config, "systemInstruction") ? systemParts(config["systemInstruction"], geminiPart) : void 0,
|
|
769
|
-
toolDefinitions: config && Object.hasOwn(config, "tools") ?
|
|
769
|
+
toolDefinitions: config && Object.hasOwn(config, "tools") ? llmTools(config["tools"]) : void 0
|
|
770
770
|
};
|
|
771
771
|
}
|
|
772
|
-
__name(
|
|
772
|
+
__name(extractLlmContent, "extractLlmContent");
|
|
773
773
|
function stringifyGenAiJson(value, maxLength, requireObject = false) {
|
|
774
774
|
const converted = jsonValue(value);
|
|
775
775
|
if (converted === void 0 || requireObject && (converted === null || Array.isArray(converted) || typeof converted !== "object")) {
|
|
@@ -1032,7 +1032,7 @@ var GenAiOutputAccumulator = class {
|
|
|
1032
1032
|
if (finishReason) candidate.finishReason = finishReason;
|
|
1033
1033
|
}
|
|
1034
1034
|
}
|
|
1035
|
-
|
|
1035
|
+
recordLlmResponse(response) {
|
|
1036
1036
|
const candidates = response["candidates"];
|
|
1037
1037
|
if (!Array.isArray(candidates)) return;
|
|
1038
1038
|
this.observedResponse = true;
|
|
@@ -1061,7 +1061,7 @@ var GenAiOutputAccumulator = class {
|
|
|
1061
1061
|
if (finishReason) outputCandidate.finishReason = finishReason;
|
|
1062
1062
|
}
|
|
1063
1063
|
}
|
|
1064
|
-
|
|
1064
|
+
recordLlmChunk(chunk) {
|
|
1065
1065
|
const candidates = chunk["candidates"];
|
|
1066
1066
|
if (!Array.isArray(candidates)) return;
|
|
1067
1067
|
this.observedResponse = true;
|
|
@@ -1241,7 +1241,7 @@ var GenAiOutputAccumulator = class {
|
|
|
1241
1241
|
export {
|
|
1242
1242
|
extractOpenAiContent,
|
|
1243
1243
|
extractAnthropicContent,
|
|
1244
|
-
|
|
1244
|
+
extractLlmContent,
|
|
1245
1245
|
stringifyGenAiJson,
|
|
1246
1246
|
GenAiOutputAccumulator
|
|
1247
1247
|
};
|