@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
package/chunks/chunk-RUGNCYNO.js
DELETED
|
@@ -1,699 +0,0 @@
|
|
|
1
|
-
// Force strict mode and setup for ESM
|
|
2
|
-
"use strict";
|
|
3
|
-
import {
|
|
4
|
-
NdJsonQueueLimitError,
|
|
5
|
-
ndJsonStream,
|
|
6
|
-
validateNdJsonStreamLimits
|
|
7
|
-
} from "./chunk-H72BQNM3.js";
|
|
8
|
-
import {
|
|
9
|
-
MissingCliEntryError
|
|
10
|
-
} from "./chunk-JHS74YAB.js";
|
|
11
|
-
import {
|
|
12
|
-
EXTERNAL_TOOL_GUARD_TOKEN_ENV
|
|
13
|
-
} from "./chunk-3VUENPWF.js";
|
|
14
|
-
import {
|
|
15
|
-
redactLogCredentials
|
|
16
|
-
} from "./chunk-M5GB774H.js";
|
|
17
|
-
import {
|
|
18
|
-
CLIENT_METHODS,
|
|
19
|
-
zCreateTerminalRequest,
|
|
20
|
-
zKillTerminalCommandRequest,
|
|
21
|
-
zReadTextFileRequest,
|
|
22
|
-
zReleaseTerminalRequest,
|
|
23
|
-
zRequestPermissionRequest,
|
|
24
|
-
zSessionNotification,
|
|
25
|
-
zTerminalOutputRequest,
|
|
26
|
-
zWaitForTerminalExitRequest,
|
|
27
|
-
zWriteTextFileRequest
|
|
28
|
-
} from "./chunk-IW6RQPQB.js";
|
|
29
|
-
import {
|
|
30
|
-
init_esbuild_shims
|
|
31
|
-
} from "./chunk-5O2XNYP6.js";
|
|
32
|
-
import {
|
|
33
|
-
__name
|
|
34
|
-
} from "./chunk-J2S4EL5Y.js";
|
|
35
|
-
|
|
36
|
-
// packages/acp-bridge/src/spawnChannel.ts
|
|
37
|
-
init_esbuild_shims();
|
|
38
|
-
import { spawn } from "node:child_process";
|
|
39
|
-
import * as os from "node:os";
|
|
40
|
-
import { Readable, Writable } from "node:stream";
|
|
41
|
-
import { getHeapStatistics } from "node:v8";
|
|
42
|
-
|
|
43
|
-
// packages/acp-bridge/src/process-registry.ts
|
|
44
|
-
init_esbuild_shims();
|
|
45
|
-
var TERM_GRACE_MS = 5e3;
|
|
46
|
-
var EXIT_DEADLINE_MS = 1e4;
|
|
47
|
-
var ProcessRegistry = class {
|
|
48
|
-
static {
|
|
49
|
-
__name(this, "ProcessRegistry");
|
|
50
|
-
}
|
|
51
|
-
reservations = /* @__PURE__ */ new Set();
|
|
52
|
-
children = /* @__PURE__ */ new Set();
|
|
53
|
-
draining = false;
|
|
54
|
-
shutdownPromise;
|
|
55
|
-
reserve() {
|
|
56
|
-
if (this.draining) {
|
|
57
|
-
throw new Error("ACP process registry is draining");
|
|
58
|
-
}
|
|
59
|
-
const token = Symbol("acp-child");
|
|
60
|
-
this.reservations.add(token);
|
|
61
|
-
let settled = false;
|
|
62
|
-
return {
|
|
63
|
-
attach: /* @__PURE__ */ __name((child) => {
|
|
64
|
-
if (settled || !this.reservations.delete(token)) {
|
|
65
|
-
throw new Error("ACP process reservation is no longer active");
|
|
66
|
-
}
|
|
67
|
-
settled = true;
|
|
68
|
-
const tracked = new TrackedChild(child, () => {
|
|
69
|
-
this.children.delete(tracked);
|
|
70
|
-
});
|
|
71
|
-
this.children.add(tracked);
|
|
72
|
-
if (this.draining) void tracked.terminate().catch(() => {
|
|
73
|
-
});
|
|
74
|
-
return tracked;
|
|
75
|
-
}, "attach"),
|
|
76
|
-
cancel: /* @__PURE__ */ __name(() => {
|
|
77
|
-
if (settled) return;
|
|
78
|
-
settled = true;
|
|
79
|
-
this.reservations.delete(token);
|
|
80
|
-
}, "cancel")
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
shutdown() {
|
|
84
|
-
if (this.shutdownPromise) return this.shutdownPromise;
|
|
85
|
-
this.draining = true;
|
|
86
|
-
this.shutdownPromise = Promise.allSettled(
|
|
87
|
-
[...this.children].map((child) => child.terminate())
|
|
88
|
-
).then((results) => {
|
|
89
|
-
const failures = results.flatMap(
|
|
90
|
-
(result) => result.status === "rejected" ? [result.reason] : []
|
|
91
|
-
);
|
|
92
|
-
if (failures.length > 0) {
|
|
93
|
-
throw new AggregateError(failures, "ACP child process shutdown failed");
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
return this.shutdownPromise;
|
|
97
|
-
}
|
|
98
|
-
killAllSync() {
|
|
99
|
-
this.draining = true;
|
|
100
|
-
for (const child of this.children) child.killSync();
|
|
101
|
-
}
|
|
102
|
-
get activeProcessCount() {
|
|
103
|
-
return this.children.size;
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* Children this registry has committed to: attached ones plus reservations
|
|
107
|
-
* that have not attached yet. Larger than {@link activeProcessCount}, and
|
|
108
|
-
* the right figure for admission — `reserve()` inserts its token
|
|
109
|
-
* synchronously before `spawn()`, so two racing spawns each see the other
|
|
110
|
-
* here, while neither is visible in `activeProcessCount` until its child is
|
|
111
|
-
* attached.
|
|
112
|
-
*
|
|
113
|
-
* A child leaves this count when it *exits*, not when `terminate()` starts,
|
|
114
|
-
* so a channel swap is counted twice while the old process is still winding
|
|
115
|
-
* down. That is deliberate: its memory is still resident.
|
|
116
|
-
*/
|
|
117
|
-
get committedProcessCount() {
|
|
118
|
-
return this.children.size + this.reservations.size;
|
|
119
|
-
}
|
|
120
|
-
};
|
|
121
|
-
var TrackedChild = class {
|
|
122
|
-
constructor(child, onExit) {
|
|
123
|
-
this.child = child;
|
|
124
|
-
this.onExit = onExit;
|
|
125
|
-
this.exited = new Promise((resolve) => {
|
|
126
|
-
const finish = /* @__PURE__ */ __name((info) => {
|
|
127
|
-
if (this.exitedSettled) return;
|
|
128
|
-
this.exitedSettled = true;
|
|
129
|
-
this.onExit();
|
|
130
|
-
resolve(info);
|
|
131
|
-
}, "finish");
|
|
132
|
-
child.once("exit", (exitCode, signalCode) => {
|
|
133
|
-
finish({ exitCode, signalCode });
|
|
134
|
-
});
|
|
135
|
-
child.once("spawn", () => {
|
|
136
|
-
this.spawnConfirmed = true;
|
|
137
|
-
});
|
|
138
|
-
child.once("error", () => {
|
|
139
|
-
if (!this.spawnConfirmed) finish(void 0);
|
|
140
|
-
});
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
static {
|
|
144
|
-
__name(this, "TrackedChild");
|
|
145
|
-
}
|
|
146
|
-
exited;
|
|
147
|
-
exitedSettled = false;
|
|
148
|
-
spawnConfirmed = false;
|
|
149
|
-
terminatePromise;
|
|
150
|
-
terminate() {
|
|
151
|
-
this.terminatePromise ??= this.terminateOnce();
|
|
152
|
-
return this.terminatePromise;
|
|
153
|
-
}
|
|
154
|
-
killSync() {
|
|
155
|
-
if (this.exitedSettled) return;
|
|
156
|
-
try {
|
|
157
|
-
this.child.kill("SIGKILL");
|
|
158
|
-
} catch {
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
async terminateOnce() {
|
|
162
|
-
if (this.exitedSettled) return;
|
|
163
|
-
try {
|
|
164
|
-
this.child.kill("SIGTERM");
|
|
165
|
-
} catch {
|
|
166
|
-
if (this.exitedSettled) return;
|
|
167
|
-
}
|
|
168
|
-
let hardKillTimer;
|
|
169
|
-
let deadlineTimer;
|
|
170
|
-
const deadline = new Promise((_, reject) => {
|
|
171
|
-
hardKillTimer = setTimeout(() => this.killSync(), TERM_GRACE_MS);
|
|
172
|
-
hardKillTimer.unref();
|
|
173
|
-
deadlineTimer = setTimeout(() => {
|
|
174
|
-
reject(
|
|
175
|
-
new Error(
|
|
176
|
-
`ACP child pid=${this.child.pid ?? "unknown"} did not exit within ${EXIT_DEADLINE_MS}ms`
|
|
177
|
-
)
|
|
178
|
-
);
|
|
179
|
-
}, EXIT_DEADLINE_MS);
|
|
180
|
-
deadlineTimer.unref();
|
|
181
|
-
});
|
|
182
|
-
try {
|
|
183
|
-
const exitInfo = await Promise.race([this.exited, deadline]);
|
|
184
|
-
if (exitInfo && (exitInfo.exitCode !== 0 || exitInfo.signalCode !== null)) {
|
|
185
|
-
throw new Error(
|
|
186
|
-
`ACP child pid=${this.child.pid ?? "unknown"} exited uncleanly during shutdown (code=${exitInfo.exitCode ?? "none"}, signal=${exitInfo.signalCode ?? "none"})`
|
|
187
|
-
);
|
|
188
|
-
}
|
|
189
|
-
} finally {
|
|
190
|
-
if (hardKillTimer) clearTimeout(hardKillTimer);
|
|
191
|
-
if (deadlineTimer) clearTimeout(deadlineTimer);
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
};
|
|
195
|
-
|
|
196
|
-
// packages/acp-bridge/src/json-string-bytes.ts
|
|
197
|
-
init_esbuild_shims();
|
|
198
|
-
function estimateJsonStringBytes(value, limitBytes) {
|
|
199
|
-
const unescapedBytes = Buffer.byteLength(value, "utf8") + 2;
|
|
200
|
-
if (unescapedBytes > limitBytes) return limitBytes + 1;
|
|
201
|
-
if (!/["\\]|[^ -\ud7ff\ue000-\uffff]/u.test(value)) {
|
|
202
|
-
return unescapedBytes;
|
|
203
|
-
}
|
|
204
|
-
let bytes = 2;
|
|
205
|
-
for (let index = 0; index < value.length; index++) {
|
|
206
|
-
const code = value.charCodeAt(index);
|
|
207
|
-
if (code === 34 || code === 92) {
|
|
208
|
-
bytes += 2;
|
|
209
|
-
} else if (code <= 31) {
|
|
210
|
-
bytes += code === 8 || code === 9 || code === 10 || code === 12 || code === 13 ? 2 : 6;
|
|
211
|
-
} else if (code >= 55296 && code <= 56319) {
|
|
212
|
-
const next = value.charCodeAt(index + 1);
|
|
213
|
-
if (next >= 56320 && next <= 57343) {
|
|
214
|
-
bytes += 4;
|
|
215
|
-
index++;
|
|
216
|
-
} else {
|
|
217
|
-
bytes += 6;
|
|
218
|
-
}
|
|
219
|
-
} else if (code >= 56320 && code <= 57343) {
|
|
220
|
-
bytes += 6;
|
|
221
|
-
} else if (code <= 127) {
|
|
222
|
-
bytes++;
|
|
223
|
-
} else if (code <= 2047) {
|
|
224
|
-
bytes += 2;
|
|
225
|
-
} else {
|
|
226
|
-
bytes += 3;
|
|
227
|
-
}
|
|
228
|
-
if (bytes > limitBytes) return limitBytes + 1;
|
|
229
|
-
}
|
|
230
|
-
return bytes;
|
|
231
|
-
}
|
|
232
|
-
__name(estimateJsonStringBytes, "estimateJsonStringBytes");
|
|
233
|
-
|
|
234
|
-
// packages/acp-bridge/src/spawnChannel.ts
|
|
235
|
-
var cachedMemoryArgs;
|
|
236
|
-
var DAEMON_ACP_NDJSON_LIMITS = Object.freeze({
|
|
237
|
-
maxFrameBytes: 64 * 1024 * 1024,
|
|
238
|
-
maxQueuedMessages: 256,
|
|
239
|
-
maxQueuedBytes: 64 * 1024 * 1024
|
|
240
|
-
});
|
|
241
|
-
var daemonClientParamValidators = /* @__PURE__ */ new Map([
|
|
242
|
-
[CLIENT_METHODS.fs_read_text_file, zReadTextFileRequest],
|
|
243
|
-
[CLIENT_METHODS.fs_write_text_file, zWriteTextFileRequest],
|
|
244
|
-
[CLIENT_METHODS.session_request_permission, zRequestPermissionRequest],
|
|
245
|
-
[CLIENT_METHODS.session_update, zSessionNotification],
|
|
246
|
-
[CLIENT_METHODS.terminal_create, zCreateTerminalRequest],
|
|
247
|
-
[CLIENT_METHODS.terminal_kill, zKillTerminalCommandRequest],
|
|
248
|
-
[CLIENT_METHODS.terminal_output, zTerminalOutputRequest],
|
|
249
|
-
[CLIENT_METHODS.terminal_release, zReleaseTerminalRequest],
|
|
250
|
-
[CLIENT_METHODS.terminal_wait_for_exit, zWaitForTerminalExitRequest]
|
|
251
|
-
]);
|
|
252
|
-
function validateDaemonInboundMessage(message) {
|
|
253
|
-
if (!("method" in message)) return true;
|
|
254
|
-
const validator = daemonClientParamValidators.get(message.method);
|
|
255
|
-
return !validator || validator.safeParse(message.params).success;
|
|
256
|
-
}
|
|
257
|
-
__name(validateDaemonInboundMessage, "validateDaemonInboundMessage");
|
|
258
|
-
var PreparedResponseBudget = class {
|
|
259
|
-
constructor(limits) {
|
|
260
|
-
this.limits = limits;
|
|
261
|
-
}
|
|
262
|
-
static {
|
|
263
|
-
__name(this, "PreparedResponseBudget");
|
|
264
|
-
}
|
|
265
|
-
objectCharges = /* @__PURE__ */ new WeakMap();
|
|
266
|
-
primitiveCharges = /* @__PURE__ */ new Map();
|
|
267
|
-
retainedCount = 0;
|
|
268
|
-
retainedBytes = 0;
|
|
269
|
-
closed = false;
|
|
270
|
-
reserve(value) {
|
|
271
|
-
if (this.closed) return;
|
|
272
|
-
const availableBytes = Math.max(
|
|
273
|
-
0,
|
|
274
|
-
this.limits.maxQueuedBytes - this.retainedBytes
|
|
275
|
-
);
|
|
276
|
-
const envelopeBytes = Math.min(2048, this.limits.maxQueuedBytes);
|
|
277
|
-
const charge = envelopeBytes + estimatePreparedResponseBytes(
|
|
278
|
-
value,
|
|
279
|
-
Math.max(0, availableBytes - envelopeBytes)
|
|
280
|
-
);
|
|
281
|
-
if (this.retainedCount >= this.limits.maxQueuedMessages || charge > availableBytes) {
|
|
282
|
-
throw new NdJsonQueueLimitError(
|
|
283
|
-
this.limits.maxQueuedMessages,
|
|
284
|
-
this.limits.maxQueuedBytes,
|
|
285
|
-
charge,
|
|
286
|
-
availableBytes
|
|
287
|
-
);
|
|
288
|
-
}
|
|
289
|
-
const charges = this.getCharges(value, true);
|
|
290
|
-
charges.push(charge);
|
|
291
|
-
this.retainedCount++;
|
|
292
|
-
this.retainedBytes += charge;
|
|
293
|
-
}
|
|
294
|
-
releaseMessage(message) {
|
|
295
|
-
if (!isPlainRecord(message) || Object.hasOwn(message, "method") || !Object.hasOwn(message, "id")) {
|
|
296
|
-
return;
|
|
297
|
-
}
|
|
298
|
-
const value = Object.hasOwn(message, "result") ? message["result"] : message["error"];
|
|
299
|
-
const charges = this.getCharges(value, false);
|
|
300
|
-
if (!charges) return;
|
|
301
|
-
const charge = charges.shift();
|
|
302
|
-
if (charge === void 0) return;
|
|
303
|
-
if (charges.length === 0 && !isObjectValue(value)) {
|
|
304
|
-
this.primitiveCharges.delete(value);
|
|
305
|
-
}
|
|
306
|
-
this.retainedCount--;
|
|
307
|
-
this.retainedBytes -= charge;
|
|
308
|
-
}
|
|
309
|
-
close() {
|
|
310
|
-
this.closed = true;
|
|
311
|
-
this.objectCharges = /* @__PURE__ */ new WeakMap();
|
|
312
|
-
this.primitiveCharges.clear();
|
|
313
|
-
this.retainedCount = 0;
|
|
314
|
-
this.retainedBytes = 0;
|
|
315
|
-
}
|
|
316
|
-
getCharges(value, create) {
|
|
317
|
-
const charges = isObjectValue(value) ? this.objectCharges.get(value) : this.primitiveCharges.get(value);
|
|
318
|
-
if (charges || !create) return charges;
|
|
319
|
-
const created = [];
|
|
320
|
-
if (isObjectValue(value)) {
|
|
321
|
-
this.objectCharges.set(value, created);
|
|
322
|
-
} else {
|
|
323
|
-
this.primitiveCharges.set(value, created);
|
|
324
|
-
}
|
|
325
|
-
return created;
|
|
326
|
-
}
|
|
327
|
-
};
|
|
328
|
-
var OutboundOperationBudget = class {
|
|
329
|
-
constructor(limits) {
|
|
330
|
-
this.limits = limits;
|
|
331
|
-
}
|
|
332
|
-
static {
|
|
333
|
-
__name(this, "OutboundOperationBudget");
|
|
334
|
-
}
|
|
335
|
-
retainedCount = 0;
|
|
336
|
-
retainedBytes = 0;
|
|
337
|
-
generation = 0;
|
|
338
|
-
closed = false;
|
|
339
|
-
reserve(value) {
|
|
340
|
-
if (this.closed) return () => {
|
|
341
|
-
};
|
|
342
|
-
const availableBytes = Math.max(
|
|
343
|
-
0,
|
|
344
|
-
this.limits.maxQueuedBytes - this.retainedBytes
|
|
345
|
-
);
|
|
346
|
-
const envelopeBytes = Math.min(2048, this.limits.maxQueuedBytes);
|
|
347
|
-
const charge = envelopeBytes + estimatePreparedResponseBytes(
|
|
348
|
-
value,
|
|
349
|
-
Math.max(0, availableBytes - envelopeBytes)
|
|
350
|
-
);
|
|
351
|
-
if (this.retainedCount >= this.limits.maxQueuedMessages || charge > availableBytes) {
|
|
352
|
-
throw new NdJsonQueueLimitError(
|
|
353
|
-
this.limits.maxQueuedMessages,
|
|
354
|
-
this.limits.maxQueuedBytes,
|
|
355
|
-
charge,
|
|
356
|
-
availableBytes
|
|
357
|
-
);
|
|
358
|
-
}
|
|
359
|
-
this.retainedCount++;
|
|
360
|
-
this.retainedBytes += charge;
|
|
361
|
-
const generation = this.generation;
|
|
362
|
-
let active = true;
|
|
363
|
-
return () => {
|
|
364
|
-
if (!active) return;
|
|
365
|
-
active = false;
|
|
366
|
-
if (this.closed || this.generation !== generation) return;
|
|
367
|
-
this.retainedCount--;
|
|
368
|
-
this.retainedBytes -= charge;
|
|
369
|
-
};
|
|
370
|
-
}
|
|
371
|
-
close() {
|
|
372
|
-
this.closed = true;
|
|
373
|
-
this.generation++;
|
|
374
|
-
this.retainedCount = 0;
|
|
375
|
-
this.retainedBytes = 0;
|
|
376
|
-
}
|
|
377
|
-
};
|
|
378
|
-
function* enumerableOwnKeys(value) {
|
|
379
|
-
for (const key in value) {
|
|
380
|
-
if (Object.hasOwn(value, key)) yield key;
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
__name(enumerableOwnKeys, "enumerableOwnKeys");
|
|
384
|
-
function estimatePreparedResponseBytes(value, limitBytes) {
|
|
385
|
-
let bytes = 0;
|
|
386
|
-
const stack = [{ kind: "value", value }];
|
|
387
|
-
const seen = /* @__PURE__ */ new WeakSet();
|
|
388
|
-
while (stack.length > 0) {
|
|
389
|
-
const frame = stack.pop();
|
|
390
|
-
if (frame.kind === "array") {
|
|
391
|
-
if (frame.index >= frame.value.length) continue;
|
|
392
|
-
if (frame.index > 0) bytes++;
|
|
393
|
-
if (bytes > limitBytes) return limitBytes + 1;
|
|
394
|
-
const descriptor = Object.getOwnPropertyDescriptor(
|
|
395
|
-
frame.value,
|
|
396
|
-
String(frame.index)
|
|
397
|
-
);
|
|
398
|
-
if (descriptor?.get || descriptor?.set) return limitBytes + 1;
|
|
399
|
-
stack.push({ ...frame, index: frame.index + 1 });
|
|
400
|
-
stack.push({ kind: "value", value: descriptor?.value });
|
|
401
|
-
continue;
|
|
402
|
-
}
|
|
403
|
-
if (frame.kind === "record") {
|
|
404
|
-
const next = frame.keys.next();
|
|
405
|
-
if (next.done) continue;
|
|
406
|
-
const descriptor = Object.getOwnPropertyDescriptor(
|
|
407
|
-
frame.value,
|
|
408
|
-
next.value
|
|
409
|
-
);
|
|
410
|
-
if (!descriptor || descriptor.get || descriptor.set) {
|
|
411
|
-
return limitBytes + 1;
|
|
412
|
-
}
|
|
413
|
-
bytes += (frame.first ? 0 : 1) + estimateJsonStringBytes(next.value, Math.max(0, limitBytes - bytes)) + 1;
|
|
414
|
-
if (bytes > limitBytes) return limitBytes + 1;
|
|
415
|
-
stack.push({ ...frame, first: false });
|
|
416
|
-
stack.push({ kind: "value", value: descriptor.value });
|
|
417
|
-
continue;
|
|
418
|
-
}
|
|
419
|
-
const current = frame.value;
|
|
420
|
-
if (current === null) {
|
|
421
|
-
bytes += 4;
|
|
422
|
-
} else if (current === void 0) {
|
|
423
|
-
bytes += 4;
|
|
424
|
-
} else if (typeof current === "string") {
|
|
425
|
-
bytes += estimateJsonStringBytes(
|
|
426
|
-
current,
|
|
427
|
-
Math.max(0, limitBytes - bytes)
|
|
428
|
-
);
|
|
429
|
-
} else if (typeof current === "number") {
|
|
430
|
-
bytes += 24;
|
|
431
|
-
} else if (typeof current === "boolean") {
|
|
432
|
-
bytes += 5;
|
|
433
|
-
} else if (Array.isArray(current)) {
|
|
434
|
-
if (seen.has(current) || Object.hasOwn(current, "toJSON")) {
|
|
435
|
-
return limitBytes + 1;
|
|
436
|
-
}
|
|
437
|
-
seen.add(current);
|
|
438
|
-
bytes += 2;
|
|
439
|
-
stack.push({ kind: "array", value: current, index: 0 });
|
|
440
|
-
} else if (isPlainRecord(current)) {
|
|
441
|
-
if (seen.has(current) || Object.hasOwn(current, "toJSON")) {
|
|
442
|
-
return limitBytes + 1;
|
|
443
|
-
}
|
|
444
|
-
seen.add(current);
|
|
445
|
-
bytes += 2;
|
|
446
|
-
stack.push({
|
|
447
|
-
kind: "record",
|
|
448
|
-
value: current,
|
|
449
|
-
keys: enumerableOwnKeys(current),
|
|
450
|
-
first: true
|
|
451
|
-
});
|
|
452
|
-
} else {
|
|
453
|
-
return limitBytes + 1;
|
|
454
|
-
}
|
|
455
|
-
if (bytes > limitBytes) return limitBytes + 1;
|
|
456
|
-
}
|
|
457
|
-
return Math.max(1, bytes);
|
|
458
|
-
}
|
|
459
|
-
__name(estimatePreparedResponseBytes, "estimatePreparedResponseBytes");
|
|
460
|
-
function isObjectValue(value) {
|
|
461
|
-
return typeof value === "object" && value !== null;
|
|
462
|
-
}
|
|
463
|
-
__name(isObjectValue, "isObjectValue");
|
|
464
|
-
function isPlainRecord(value) {
|
|
465
|
-
if (!isObjectValue(value) || Array.isArray(value)) return false;
|
|
466
|
-
const prototype = Object.getPrototypeOf(value);
|
|
467
|
-
return prototype === Object.prototype || prototype === null;
|
|
468
|
-
}
|
|
469
|
-
__name(isPlainRecord, "isPlainRecord");
|
|
470
|
-
function getAcpMemoryArgs() {
|
|
471
|
-
if (cachedMemoryArgs) return cachedMemoryArgs;
|
|
472
|
-
const constrainedMemory = process.constrainedMemory;
|
|
473
|
-
const constrained = typeof constrainedMemory === "function" ? constrainedMemory() : 0;
|
|
474
|
-
const totalBytes = constrained && constrained > 0 ? constrained : os.totalmem();
|
|
475
|
-
const totalMB = Math.floor(totalBytes / (1024 * 1024));
|
|
476
|
-
const targetMB = Math.min(Math.floor(totalMB * 0.5), 16384);
|
|
477
|
-
const currentLimitMB = Math.floor(
|
|
478
|
-
getHeapStatistics().heap_size_limit / (1024 * 1024)
|
|
479
|
-
);
|
|
480
|
-
cachedMemoryArgs = [
|
|
481
|
-
...targetMB > currentLimitMB ? [`--max-old-space-size=${targetMB}`] : [],
|
|
482
|
-
"--expose-gc"
|
|
483
|
-
];
|
|
484
|
-
return cachedMemoryArgs;
|
|
485
|
-
}
|
|
486
|
-
__name(getAcpMemoryArgs, "getAcpMemoryArgs");
|
|
487
|
-
function createStderrForwarder(opts) {
|
|
488
|
-
const { prefix, onDiagnosticLine } = opts;
|
|
489
|
-
const STDERR_LINE_CAP_CHARS = 64 * 1024;
|
|
490
|
-
let buf = "";
|
|
491
|
-
const flush = /* @__PURE__ */ __name((line) => {
|
|
492
|
-
if (line.length > 0) {
|
|
493
|
-
const safe = redactLogCredentials(line);
|
|
494
|
-
process.stderr.write(prefix + safe + "\n");
|
|
495
|
-
if (onDiagnosticLine) onDiagnosticLine(prefix + safe, "warn");
|
|
496
|
-
}
|
|
497
|
-
}, "flush");
|
|
498
|
-
return {
|
|
499
|
-
onData(chunk) {
|
|
500
|
-
buf += chunk;
|
|
501
|
-
let nl = buf.indexOf("\n");
|
|
502
|
-
while (nl !== -1) {
|
|
503
|
-
flush(buf.slice(0, nl));
|
|
504
|
-
buf = buf.slice(nl + 1);
|
|
505
|
-
nl = buf.indexOf("\n");
|
|
506
|
-
}
|
|
507
|
-
while (buf.length > STDERR_LINE_CAP_CHARS) {
|
|
508
|
-
const truncated = redactLogCredentials(buf.slice(0, STDERR_LINE_CAP_CHARS)) + " [truncated]";
|
|
509
|
-
process.stderr.write(prefix + truncated + "\n");
|
|
510
|
-
if (onDiagnosticLine) onDiagnosticLine(prefix + truncated, "warn");
|
|
511
|
-
buf = buf.slice(STDERR_LINE_CAP_CHARS);
|
|
512
|
-
}
|
|
513
|
-
},
|
|
514
|
-
onEnd() {
|
|
515
|
-
if (buf.length > 0) flush(buf);
|
|
516
|
-
}
|
|
517
|
-
};
|
|
518
|
-
}
|
|
519
|
-
__name(createStderrForwarder, "createStderrForwarder");
|
|
520
|
-
function createSpawnChannelFactory(options = {}) {
|
|
521
|
-
if (options.pipeLimits) validateNdJsonStreamLimits(options.pipeLimits);
|
|
522
|
-
const processRegistry = options.processRegistry ?? new ProcessRegistry();
|
|
523
|
-
return async (workspaceCwd, childEnvOverrides) => {
|
|
524
|
-
const sourceEnv = options.sourceEnv ?? process.env;
|
|
525
|
-
const cliEntry = sourceEnv["QWEN_CLI_ENTRY"] || process.argv[1];
|
|
526
|
-
if (!cliEntry) {
|
|
527
|
-
throw new MissingCliEntryError();
|
|
528
|
-
}
|
|
529
|
-
const childEnv = scrubChildEnv(
|
|
530
|
-
sourceEnv,
|
|
531
|
-
SCRUBBED_CHILD_ENV_KEYS,
|
|
532
|
-
childEnvOverrides
|
|
533
|
-
);
|
|
534
|
-
childEnv["QWEN_CODE_NO_RELAUNCH"] = "true";
|
|
535
|
-
childEnv["QWEN_CODE_SERVE"] = "1";
|
|
536
|
-
const execArgs = process.execArgv.filter(
|
|
537
|
-
(a) => !/^--inspect(-brk)?($|=)/.test(a)
|
|
538
|
-
);
|
|
539
|
-
const reservation = processRegistry.reserve();
|
|
540
|
-
let child;
|
|
541
|
-
try {
|
|
542
|
-
options.childHeapPolicy?.decide(processRegistry.committedProcessCount);
|
|
543
|
-
const memoryArgs = getAcpMemoryArgs();
|
|
544
|
-
child = spawn(
|
|
545
|
-
process.execPath,
|
|
546
|
-
[
|
|
547
|
-
...execArgs,
|
|
548
|
-
...memoryArgs,
|
|
549
|
-
cliEntry,
|
|
550
|
-
"--acp",
|
|
551
|
-
...options.extraArgs ?? []
|
|
552
|
-
],
|
|
553
|
-
{
|
|
554
|
-
cwd: workspaceCwd,
|
|
555
|
-
stdio: ["pipe", "pipe", "pipe"],
|
|
556
|
-
windowsHide: true,
|
|
557
|
-
env: childEnv
|
|
558
|
-
}
|
|
559
|
-
);
|
|
560
|
-
} catch (error) {
|
|
561
|
-
reservation.cancel();
|
|
562
|
-
throw error;
|
|
563
|
-
}
|
|
564
|
-
const trackedChild = reservation.attach(child);
|
|
565
|
-
if (child.stderr) {
|
|
566
|
-
const prefix = `[serve pid=${child.pid} cwd=${workspaceCwd}] `;
|
|
567
|
-
const forwarder = createStderrForwarder({
|
|
568
|
-
prefix,
|
|
569
|
-
onDiagnosticLine: options.onDiagnosticLine
|
|
570
|
-
});
|
|
571
|
-
child.stderr.setEncoding("utf8");
|
|
572
|
-
child.stderr.on("data", forwarder.onData);
|
|
573
|
-
child.stderr.on("end", forwarder.onEnd);
|
|
574
|
-
child.stderr.on("error", () => {
|
|
575
|
-
});
|
|
576
|
-
}
|
|
577
|
-
if (!child.stdin || !child.stdout) {
|
|
578
|
-
trackedChild.killSync();
|
|
579
|
-
throw new Error(
|
|
580
|
-
"Spawned ACP child has no stdin/stdout \u2014 cannot establish NDJSON channel."
|
|
581
|
-
);
|
|
582
|
-
}
|
|
583
|
-
const writable = Writable.toWeb(child.stdin);
|
|
584
|
-
const readable = Readable.toWeb(child.stdout);
|
|
585
|
-
const preparedResponses = options.pipeLimits ? new PreparedResponseBudget(options.pipeLimits) : void 0;
|
|
586
|
-
const outboundOperations = options.pipeLimits ? new OutboundOperationBudget(options.pipeLimits) : void 0;
|
|
587
|
-
let reportTransportFailure;
|
|
588
|
-
let transportFailureReported = false;
|
|
589
|
-
const transportFailed = options.pipeLimits ? new Promise((resolve) => {
|
|
590
|
-
reportTransportFailure = resolve;
|
|
591
|
-
}) : void 0;
|
|
592
|
-
const failTransport = options.pipeLimits ? (error) => {
|
|
593
|
-
if (transportFailureReported) return;
|
|
594
|
-
transportFailureReported = true;
|
|
595
|
-
reportTransportFailure?.(error);
|
|
596
|
-
reportTransportFailure = void 0;
|
|
597
|
-
preparedResponses?.close();
|
|
598
|
-
outboundOperations?.close();
|
|
599
|
-
child.stdout?.destroy();
|
|
600
|
-
child.stdin?.destroy();
|
|
601
|
-
void trackedChild.terminate().catch(() => {
|
|
602
|
-
});
|
|
603
|
-
options.pipeHooks?.onTransportError?.(error);
|
|
604
|
-
} : void 0;
|
|
605
|
-
const pipeHooks = options.pipeLimits ? {
|
|
606
|
-
...options.pipeHooks,
|
|
607
|
-
onMessageObserved: /* @__PURE__ */ __name((observation) => {
|
|
608
|
-
if (observation.direction === "sent") {
|
|
609
|
-
preparedResponses?.releaseMessage(observation.message);
|
|
610
|
-
}
|
|
611
|
-
options.pipeHooks?.onMessageObserved?.(observation);
|
|
612
|
-
}, "onMessageObserved"),
|
|
613
|
-
onTransportError: failTransport
|
|
614
|
-
} : options.pipeHooks;
|
|
615
|
-
const stream = ndJsonStream(
|
|
616
|
-
writable,
|
|
617
|
-
readable,
|
|
618
|
-
pipeHooks,
|
|
619
|
-
options.pipeLimits,
|
|
620
|
-
options.pipeLimits ? validateDaemonInboundMessage : void 0,
|
|
621
|
-
options.pipeLimits !== void 0
|
|
622
|
-
);
|
|
623
|
-
return {
|
|
624
|
-
stream,
|
|
625
|
-
...transportFailed ? { transportFailed } : {},
|
|
626
|
-
...failTransport && options.pipeLimits ? {
|
|
627
|
-
transportGuard: {
|
|
628
|
-
maxActiveHandlers: options.pipeLimits.maxQueuedMessages,
|
|
629
|
-
maxActiveHandlerBytes: options.pipeLimits.maxQueuedBytes,
|
|
630
|
-
reserveOutboundOperation: /* @__PURE__ */ __name((value) => {
|
|
631
|
-
try {
|
|
632
|
-
return outboundOperations?.reserve(value) ?? (() => {
|
|
633
|
-
});
|
|
634
|
-
} catch (error) {
|
|
635
|
-
failTransport(error);
|
|
636
|
-
throw error;
|
|
637
|
-
}
|
|
638
|
-
}, "reserveOutboundOperation"),
|
|
639
|
-
reservePreparedResponse: /* @__PURE__ */ __name((value) => {
|
|
640
|
-
try {
|
|
641
|
-
preparedResponses?.reserve(value);
|
|
642
|
-
} catch (error) {
|
|
643
|
-
failTransport(error);
|
|
644
|
-
throw error;
|
|
645
|
-
}
|
|
646
|
-
}, "reservePreparedResponse"),
|
|
647
|
-
fail: failTransport
|
|
648
|
-
}
|
|
649
|
-
} : {},
|
|
650
|
-
kill: /* @__PURE__ */ __name(() => trackedChild.terminate(), "kill"),
|
|
651
|
-
killSync: /* @__PURE__ */ __name(() => trackedChild.killSync(), "killSync"),
|
|
652
|
-
exited: trackedChild.exited
|
|
653
|
-
};
|
|
654
|
-
};
|
|
655
|
-
}
|
|
656
|
-
__name(createSpawnChannelFactory, "createSpawnChannelFactory");
|
|
657
|
-
var defaultSpawnChannelFactory = createSpawnChannelFactory();
|
|
658
|
-
var SCRUBBED_CHILD_ENV_KEYS = /* @__PURE__ */ new Set([
|
|
659
|
-
"QWEN_SERVER_TOKEN",
|
|
660
|
-
"QWEN_CODE_SIMPLE",
|
|
661
|
-
EXTERNAL_TOOL_GUARD_TOKEN_ENV
|
|
662
|
-
]);
|
|
663
|
-
function scrubChildEnv(source, scrubbed, overrides) {
|
|
664
|
-
const childEnv = { ...source };
|
|
665
|
-
for (const key of scrubbed) {
|
|
666
|
-
delete childEnv[key];
|
|
667
|
-
}
|
|
668
|
-
if (overrides) {
|
|
669
|
-
for (const [key, value] of Object.entries(overrides)) {
|
|
670
|
-
if (scrubbed.has(key)) continue;
|
|
671
|
-
if (value === void 0) {
|
|
672
|
-
delete childEnv[key];
|
|
673
|
-
} else {
|
|
674
|
-
childEnv[key] = value;
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
|
-
}
|
|
678
|
-
return childEnv;
|
|
679
|
-
}
|
|
680
|
-
__name(scrubChildEnv, "scrubChildEnv");
|
|
681
|
-
|
|
682
|
-
export {
|
|
683
|
-
DAEMON_ACP_NDJSON_LIMITS,
|
|
684
|
-
getAcpMemoryArgs,
|
|
685
|
-
createStderrForwarder,
|
|
686
|
-
createSpawnChannelFactory,
|
|
687
|
-
defaultSpawnChannelFactory,
|
|
688
|
-
scrubChildEnv
|
|
689
|
-
};
|
|
690
|
-
/**
|
|
691
|
-
* @license
|
|
692
|
-
* Copyright 2025 Qwen Team
|
|
693
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
694
|
-
*/
|
|
695
|
-
/**
|
|
696
|
-
* @license
|
|
697
|
-
* Copyright 2026 Qwen Team
|
|
698
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
699
|
-
*/
|
package/chunks/chunk-T26EAKDL.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// Force strict mode and setup for ESM
|
|
2
|
-
"use strict";
|
|
3
|
-
import {
|
|
4
|
-
init_esbuild_shims
|
|
5
|
-
} from "./chunk-5O2XNYP6.js";
|
|
6
|
-
|
|
7
|
-
// packages/core/src/output/types.ts
|
|
8
|
-
init_esbuild_shims();
|
|
9
|
-
/**
|
|
10
|
-
* @license
|
|
11
|
-
* Copyright 2025 Google LLC
|
|
12
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
13
|
-
*/
|