@qwen-code/qwen-code 0.21.1-simplify-system-prompt.0 → 0.21.2-nightly.20260801.bc382c3ff
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundled/qc-helper/docs/configuration/model-providers.md +2 -0
- package/bundled/qc-helper/docs/configuration/settings.md +42 -30
- package/bundled/qc-helper/docs/features/channels/_meta.ts +2 -0
- package/bundled/qc-helper/docs/features/channels/github.md +146 -0
- package/bundled/qc-helper/docs/features/channels/gitlab.md +177 -0
- package/bundled/qc-helper/docs/features/channels/overview.md +61 -6
- package/bundled/qc-helper/docs/features/code-review.md +21 -1
- package/bundled/qc-helper/docs/features/commands.md +1 -0
- package/bundled/qc-helper/docs/features/hooks.md +186 -32
- package/bundled/qc-helper/docs/features/mcp.md +9 -1
- package/bundled/qc-helper/docs/features/memory.md +27 -0
- package/bundled/qc-helper/docs/features/scheduled-tasks.md +3 -1
- package/bundled/qc-helper/docs/features/skills.md +14 -0
- package/bundled/qc-helper/docs/features/sub-agents.md +75 -8
- package/bundled/qc-helper/docs/features/tool-use-summaries.md +7 -7
- package/bundled/qc-helper/docs/qwen-serve.md +32 -8
- package/bundled/qc-helper/docs/reference/keyboard-shortcuts.md +4 -4
- package/bundled/qc-helper/docs/support/troubleshooting.md +2 -1
- package/bundled/review/DESIGN.md +19 -0
- package/bundled/review/SKILL.md +120 -61
- package/chunks/MaxSizedBox-CDHTDITS.js +89 -0
- package/chunks/{StandaloneSessionPicker-O6RKBPU4.js → StandaloneSessionPicker-L63HUAHP.js} +76 -73
- package/chunks/{acp-startup-profiler-RV3IV562.js → acp-startup-profiler-3RICG2YW.js} +2 -2
- package/chunks/{acpAgent-HYFVXVDR.js → acpAgent-6WVVT2P3.js} +2147 -1009
- package/chunks/agent-KDM4CBOU.js +85 -0
- package/chunks/agent-headless-AS7K2K57.js +79 -0
- package/chunks/{anthropicContentGenerator-LXUXMOE7.js → anthropicContentGenerator-WCBYB6JG.js} +388 -37
- package/chunks/{artifact-tool-Y5T7GG7F.js → artifact-tool-ANV4CFCR.js} +4 -4
- package/chunks/{askUserQuestion-2H6747FR.js → askUserQuestion-MALEB47H.js} +4 -4
- package/chunks/bridge-JNEW6FES.js +95 -0
- package/chunks/{build-RV63TIRH.js → build-GDBLPA24.js} +1 -1
- package/chunks/{ca-25EDXPFZ.js → ca-4OJN75WT.js} +52 -6
- package/chunks/{channel-management-service-G74LFADV.js → channel-management-service-QOO7TD3T.js} +21 -6
- package/chunks/channel-settings-store-4CSMTR4L.js +92 -0
- package/chunks/{channel-worker-group-PTJIJSKC.js → channel-worker-group-ERSUOPIR.js} +10 -6
- package/chunks/{channel-worker-manager-WIMGM2FD.js → channel-worker-manager-X247YDQ7.js} +10 -6
- package/chunks/{channel-worker-supervisor-KUFTR6P5.js → channel-worker-supervisor-ORJIEEPP.js} +6 -5
- package/chunks/{chunk-LNARWLZQ.js → chunk-25QQVOCG.js} +5 -5
- package/chunks/{chunk-2OM7GEXO.js → chunk-2A6MHYIA.js} +3 -3
- package/chunks/{chunk-ER5LWJR6.js → chunk-2CTKGIFR.js} +3 -3
- package/chunks/{chunk-SQBYH7PX.js → chunk-2DNKEBXY.js} +1 -1
- package/chunks/{chunk-6GMVPFB2.js → chunk-2IIJTXYF.js} +45 -16
- package/chunks/{chunk-BPJSQIJX.js → chunk-2J3OJGTL.js} +0 -2
- package/chunks/chunk-2M5N3DHY.js +378 -0
- package/chunks/{chunk-CC4N4M36.js → chunk-2PNQQ4UR.js} +2 -2
- package/chunks/{chunk-E5TUC6CA.js → chunk-2UISUFHQ.js} +3 -3
- package/chunks/{chunk-PWTZEM3C.js → chunk-33FNCQSY.js} +3 -37
- package/chunks/{chunk-J56UI34H.js → chunk-3LGZEYOF.js} +4 -2
- package/chunks/{chunk-66RMLJHC.js → chunk-3MHPWQ2M.js} +590 -212
- package/chunks/{chunk-NL7LTRLR.js → chunk-3RXUYQJI.js} +54 -74
- package/chunks/{chunk-E5Z2AVNV.js → chunk-3SH53ANB.js} +0 -11
- package/chunks/{chunk-XHRTVPG2.js → chunk-3WXMXT7C.js} +22 -11
- package/chunks/{chunk-C3NS4F2Q.js → chunk-42IKVPST.js} +1 -1
- package/chunks/{chunk-M5JM7OSF.js → chunk-432XCUHF.js} +2 -3
- package/chunks/{chunk-5U4IPFBR.js → chunk-433VD3HX.js} +4 -4
- package/chunks/chunk-434YCHSV.js +2196 -0
- package/chunks/{chunk-DHHOYAPR.js → chunk-4LKVQFHM.js} +7 -7
- package/chunks/{chunk-IPUUTYMV.js → chunk-4NFY2S7N.js} +0 -33
- package/chunks/{chunk-J6D3VXCC.js → chunk-5UJ6A3CH.js} +158 -12
- package/chunks/{chunk-N3FAY5CM.js → chunk-5UZITEHA.js} +158 -5
- package/chunks/{chunk-A4UCTEB5.js → chunk-5WV5S2GT.js} +0 -1
- package/chunks/chunk-6FMJLI5M.js +1591 -0
- package/chunks/{chunk-6FGBXPWM.js → chunk-6O5DVH27.js} +38 -44
- package/chunks/{chunk-2RFKHEXL.js → chunk-6PLDPT2C.js} +1 -1
- package/chunks/{chunk-52O2CIUL.js → chunk-7IYLHTTM.js} +130 -5
- package/chunks/{chunk-5THCYPLO.js → chunk-7K2WTPQO.js} +15 -8
- package/chunks/{chunk-2Q3OT4OV.js → chunk-7MY2AR5A.js} +204 -81
- package/chunks/{chunk-YH6G52F2.js → chunk-A2A34TSB.js} +4 -4
- package/chunks/{chunk-3QMGYBFN.js → chunk-A5YZ3FA2.js} +2 -80
- package/chunks/{chunk-K4XWPEWB.js → chunk-A6SX5TAH.js} +4 -33
- package/chunks/{chunk-VYPFXUCB.js → chunk-AKA24BGO.js} +1 -1
- package/chunks/chunk-AQ37AY7B.js +93 -0
- package/chunks/{chunk-PANH4R3B.js → chunk-AQEWCKX4.js} +18 -12
- package/chunks/{chunk-LG4GZIVV.js → chunk-AYB4HSBI.js} +4 -4
- package/chunks/{chunk-PJIZUQVC.js → chunk-AZQ3DT76.js} +2 -2
- package/chunks/{chunk-2JZBVYTU.js → chunk-BFHXDAR7.js} +1 -8
- package/chunks/{chunk-2W3OOD4W.js → chunk-BGXZBI5B.js} +7 -4
- package/chunks/{chunk-2YZJCM5T.js → chunk-BKUN5QHP.js} +7 -7
- package/chunks/{chunk-UUUTRMI2.js → chunk-BV4QX43X.js} +1 -1
- package/chunks/{chunk-4M377AZG.js → chunk-C4L2MEIT.js} +6 -6
- package/chunks/{chunk-VV6XU5L7.js → chunk-CHCLO3M7.js} +19 -14
- package/chunks/{chunk-TOFQCPDC.js → chunk-CWEIMFFW.js} +14 -8
- package/chunks/{chunk-XVNQMZ2I.js → chunk-DGEIYUC3.js} +0 -1
- package/chunks/{chunk-BPZALHVR.js → chunk-DI35ZN7T.js} +1 -1
- package/chunks/{chunk-WDSWXQU3.js → chunk-DUIJ2IXG.js} +5 -13
- package/chunks/{chunk-3MSHSCSN.js → chunk-DVGTU5TC.js} +94 -4
- package/chunks/{chunk-RHLZR4E5.js → chunk-DYA25Y7U.js} +1 -1
- package/chunks/{chunk-MUP3T3AD.js → chunk-E4WHKETF.js} +32 -38
- package/chunks/{chunk-WBL3FJEU.js → chunk-FC4KQFCS.js} +1 -1
- package/chunks/{chunk-V6VRAM7B.js → chunk-FJHA23GM.js} +12 -12
- package/chunks/chunk-FYJ7W2PI.js +194 -0
- package/chunks/{chunk-INADJJGW.js → chunk-G7XXKQYS.js} +2 -2
- package/chunks/{chunk-LZEMEFKY.js → chunk-GALUTA2C.js} +1 -1
- package/chunks/{chunk-ML52PL6O.js → chunk-GB3AB7TR.js} +4374 -3779
- package/chunks/{chunk-SASBXAQL.js → chunk-GHJM2C2T.js} +6 -8
- package/chunks/{chunk-LS77BEZP.js → chunk-GLCZKT5V.js} +1 -5
- package/chunks/chunk-GOFAQQZA.js +132 -0
- package/chunks/{chunk-BJX6ZSUK.js → chunk-GTM6IHBB.js} +2 -2
- package/chunks/{chunk-TF2X2WCT.js → chunk-GVISB2OH.js} +2 -2
- package/chunks/{chunk-OKY7HXPG.js → chunk-H36SETQS.js} +2 -2
- package/chunks/{chunk-7FZEBPKS.js → chunk-H4346YW5.js} +39 -22
- package/chunks/{chunk-LNURQEMZ.js → chunk-H4DSRWAS.js} +24 -13
- package/chunks/{chunk-3JAQDSXN.js → chunk-H6MC6VQX.js} +290 -179
- package/chunks/{chunk-GZXCZHCT.js → chunk-I3G5JWBV.js} +1 -1
- package/chunks/{chunk-PR75REBZ.js → chunk-I5GNT6ZS.js} +18 -82
- package/chunks/{chunk-MVS3NS2N.js → chunk-I6FAHB4N.js} +28 -5
- package/chunks/{chunk-ZOIFNCKL.js → chunk-I7JDGNG6.js} +3 -23
- package/chunks/{chunk-OJGCZBB7.js → chunk-II6WPWHY.js} +41 -36
- package/chunks/{chunk-UH3WSE5L.js → chunk-J26HHFI5.js} +2 -7
- package/chunks/{chunk-S3TWXGKA.js → chunk-JE7KQ2UP.js} +4 -2
- package/chunks/{chunk-ZD6UTE4A.js → chunk-JELIWHXD.js} +1 -1
- package/chunks/{chunk-6PSLCFQ2.js → chunk-JRIDA5HF.js} +18 -9
- package/chunks/{chunk-W4CQXHT6.js → chunk-K4CGQN4Q.js} +1 -1
- package/chunks/{chunk-G4WFQUYQ.js → chunk-K5Q62CGR.js} +1 -1
- package/chunks/{chunk-JCW2R7WC.js → chunk-K623ENWT.js} +3 -79
- package/chunks/{chunk-T2NCM2ET.js → chunk-K6KS3LTN.js} +2 -749
- package/chunks/{chunk-DN6ZX5AY.js → chunk-KG22G46Y.js} +62 -15
- package/chunks/{chunk-L5UHQJTJ.js → chunk-KKN2IE7Q.js} +1 -1
- package/chunks/{chunk-63P4EL5V.js → chunk-KVUBYJDM.js} +2 -2
- package/chunks/{chunk-E5WH5O3C.js → chunk-KXSYDCP2.js} +4 -4
- package/chunks/{chunk-JALU3ZDU.js → chunk-LAPK3GLC.js} +212 -16
- package/chunks/chunk-LBOVL47Y.js +29 -0
- package/chunks/{chunk-FQK6JAFG.js → chunk-LBWNSLJK.js} +4 -4
- package/chunks/{chunk-3IXOIAKE.js → chunk-LL4U3BSH.js} +30 -10
- package/chunks/{chunk-B7QDM6Z7.js → chunk-LRJWFR6L.js} +4 -4
- package/chunks/{chunk-RWS5VYWC.js → chunk-M2F5PLOW.js} +1018 -484
- package/chunks/{chunk-HIJQF5B5.js → chunk-M744OFVE.js} +1 -1
- package/chunks/{chunk-I7XZ3RY5.js → chunk-MBKPUM5Y.js} +1 -1
- package/chunks/chunk-MISUEWB4.js +8749 -0
- package/chunks/{chunk-FNQ6T3CV.js → chunk-MOHAWIAW.js} +10 -7
- package/chunks/{chunk-FODK6UMO.js → chunk-MPHPFVKK.js} +0 -2
- package/chunks/{chunk-QY5MMZ6O.js → chunk-MSIVKDRC.js} +4 -4
- package/chunks/{record-artifact-RQKFYO5B.js → chunk-MYT7N6QH.js} +22 -7
- package/chunks/{chunk-JESCGQM3.js → chunk-NAVJD2PQ.js} +8 -7
- package/chunks/{chunk-DM4Q4JJH.js → chunk-NGWYUZZO.js} +68794 -83526
- package/chunks/{chunk-6OUGMXDC.js → chunk-NWNEANAT.js} +7 -7
- package/chunks/{chunk-PQNHRFJC.js → chunk-NYX53SV4.js} +0 -2
- package/chunks/{chunk-Z5BLYMZM.js → chunk-NZB4NDJL.js} +10 -10
- package/chunks/{chunk-SRZ6DXVG.js → chunk-O2ZYHG33.js} +47 -138
- package/chunks/chunk-O6GEWCJA.js +21 -0
- package/chunks/{chunk-PHVR5UUY.js → chunk-OBAIHYFT.js} +1 -1
- package/chunks/chunk-OCPBI7J5.js +18 -0
- package/chunks/{chunk-P5V4T7NK.js → chunk-OCRM53TT.js} +11 -3
- package/chunks/{chunk-V7RNNPGC.js → chunk-P5Y23G2L.js} +18 -1
- package/chunks/{chunk-KU5XMLDK.js → chunk-PDDYAXL2.js} +7 -1
- package/chunks/{chunk-L26JL52R.js → chunk-PGEGUNH5.js} +108 -68
- package/chunks/{chunk-2JM6GZ5D.js → chunk-PGP7Y3RQ.js} +8 -13
- package/chunks/{chunk-VFSJ5VRH.js → chunk-PHODQP2V.js} +6 -6
- package/chunks/{chunk-PSWQZHEA.js → chunk-PXA5AWHY.js} +1 -1
- package/chunks/{chunk-VDDGDZMA.js → chunk-QHWCP53L.js} +14 -7
- package/chunks/chunk-QL4TN4HS.js +59 -0
- package/chunks/{chunk-USTWD7QV.js → chunk-QMBEW7EW.js} +26 -16
- package/chunks/{chunk-U4VTUMMK.js → chunk-QONSRAEV.js} +1 -1
- package/chunks/{chunk-NH6KE4JX.js → chunk-QYPT3QUD.js} +3 -3
- package/chunks/{chunk-GDIPH4JY.js → chunk-RGJ4JWSU.js} +133 -50
- package/chunks/{chunk-BO4XCS7P.js → chunk-RPYYTL7E.js} +77 -94
- package/chunks/{chunk-6AM5D4ME.js → chunk-S6LOFUVP.js} +0 -12
- package/chunks/{chunk-B4UMZKMU.js → chunk-SK2UKB45.js} +1 -1
- package/chunks/{chunk-QPDRAXDJ.js → chunk-SWEBEXPI.js} +1 -1
- package/chunks/chunk-T26EAKDL.js +13 -0
- package/chunks/chunk-T3CHYWJZ.js +758 -0
- package/chunks/{chunk-U7TXFVUN.js → chunk-TFFMATHX.js} +120 -95
- package/chunks/{chunk-M4UKFCZ2.js → chunk-TNVKFQXQ.js} +616 -217
- package/chunks/{chunk-5I2IWRSH.js → chunk-TYERNYH4.js} +2 -2
- package/chunks/{chunk-VAK25FTU.js → chunk-U25CMJYY.js} +1 -1
- package/chunks/{chunk-A5L3JMUA.js → chunk-UH7Z7Y45.js} +18 -4
- package/chunks/{chunk-BRRAJXPA.js → chunk-UHQ3L6GC.js} +1 -1
- package/chunks/{chunk-HV3G62R6.js → chunk-UHTJC7O3.js} +1 -1
- package/chunks/{chunk-3SJ43L4W.js → chunk-UKZEXS6K.js} +8 -0
- package/chunks/{chunk-DM22XS4K.js → chunk-UOFFZNXV.js} +361 -17
- package/chunks/{chunk-FY3M44RD.js → chunk-URN76TKR.js} +3 -3
- package/chunks/{chunk-MSLKI6C2.js → chunk-UWLG4UCE.js} +139 -31
- package/chunks/{chunk-A6UO2C7C.js → chunk-UWSXFI6E.js} +167 -81
- package/chunks/{chunk-BYFNTGKI.js → chunk-VS3GXRNZ.js} +3703 -1399
- package/chunks/{chunk-TQCBGUHN.js → chunk-VWF42XC6.js} +5 -5
- package/chunks/{chunk-32MVHM4T.js → chunk-W7XZ3KP5.js} +1 -1
- package/chunks/{chunk-B6ZJ7SI6.js → chunk-WISQLM4Q.js} +1526 -1420
- package/chunks/{chunk-H5FFA6TH.js → chunk-WK4TJUEA.js} +16 -3
- package/chunks/{chunk-3HBZKBMQ.js → chunk-WP4HGHFG.js} +5 -5
- package/chunks/{chunk-BIQWWWJN.js → chunk-XC2VAFVZ.js} +1 -1
- package/chunks/{chunk-EPDRMGT4.js → chunk-XC656O42.js} +4 -28
- package/chunks/{chunk-COH43MRJ.js → chunk-XCGIMOLN.js} +27 -1
- package/chunks/{chunk-YAF5VNU7.js → chunk-XCLLRKY5.js} +4 -5
- package/chunks/chunk-XFDPIC4P.js +319 -0
- package/chunks/{chunk-KIUFNBHR.js → chunk-XSA5EKTJ.js} +1 -1
- package/chunks/{chunk-OHNBB4XR.js → chunk-YAVY33G4.js} +1 -1
- package/chunks/{chunk-DLWL3Z7A.js → chunk-YXEVDA66.js} +3 -3
- package/chunks/chunk-Z4X5MTRT.js +133 -0
- package/chunks/{chunk-UW5EOVUN.js → chunk-ZBVS26BY.js} +4 -4
- package/chunks/{chunk-HTO4JFDZ.js → chunk-ZPJWUGCS.js} +0 -1
- package/chunks/{chunk-ZE5WPL4I.js → chunk-ZRFJ75D7.js} +3 -3
- package/chunks/{chunk-MK7VQDN3.js → chunk-ZTN6OA5J.js} +8 -6
- package/chunks/{computer-use-DOFAHZAB.js → computer-use-Z4NCIIJN.js} +54 -51
- package/chunks/{config-utils-VFQXVGNR.js → config-utils-64LM6OEQ.js} +4 -4
- package/chunks/contextCommand-HVM7XFCB.js +84 -0
- package/chunks/core-runtime-NL3ZBHBU.js +138 -0
- package/chunks/{create-sub-session-IWW2IZ2T.js → create-sub-session-AM32K2HD.js} +3 -3
- package/chunks/{create-sub-session-7543K2QA.js → create-sub-session-XHSCDYFU.js} +54 -51
- package/chunks/{cron-create-YIID5XAW.js → cron-create-HPXYE6C5.js} +6 -6
- package/chunks/{cron-delete-ZVHYCEP2.js → cron-delete-FPVNTKPK.js} +5 -5
- package/chunks/{cron-list-XEGS463Q.js → cron-list-ZEI6PAAV.js} +6 -6
- package/chunks/{daemon-VOMQW7KZ.js → daemon-PCNCI5YU.js} +239 -18
- package/chunks/daemon-status-provider-XD23SNAM.js +94 -0
- package/chunks/daemon-trust-policy-NOHK7IW5.js +89 -0
- package/chunks/daemon-trust-policy-monitor-ZBTSR333.js +176 -0
- package/chunks/{de-HGRCYDEJ.js → de-A6TI4LBB.js} +52 -6
- package/chunks/deferred-core-runtime-JJBHKM2C.js +93 -0
- package/chunks/{dist-RTJFMNEZ.js → dist-4LAMY2SK.js} +1449 -14
- package/chunks/{dist-NNVBBOGU.js → dist-4T4NCJFL.js} +2 -2
- package/chunks/dist-7KOL6OMD.js +13467 -0
- package/chunks/{dist-BRB6EXK4.js → dist-BH76AT7N.js} +3 -3
- package/chunks/dist-BXA3JXVQ.js +4749 -0
- package/chunks/{dist-KTYYJ2C5.js → dist-OEEFI6UU.js} +12 -9
- package/chunks/{dist-K6Y4E7FX.js → dist-SMLVOWKV.js} +5 -4
- package/chunks/{dist-ANLAT3GS.js → dist-V2RK6S6Q.js} +2 -1
- package/chunks/earlyInputCapture-KLAZDAIP.js +86 -0
- package/chunks/{edit-RIEOJWKB.js → edit-YQZWCISX.js} +53 -50
- package/chunks/{en-MTWBNGDO.js → en-RESOFG55.js} +55 -6
- package/chunks/{enter-worktree-OGK5FQ3R.js → enter-worktree-WLVWI3FP.js} +53 -50
- package/chunks/{enterPlanMode-IWZYALIB.js → enterPlanMode-6RYXFQUD.js} +53 -50
- package/chunks/environment-DXJTXSVT.js +106 -0
- package/chunks/errors-XGAGG2S2.js +92 -0
- package/chunks/esm-K5FARBNI.js +5548 -0
- package/chunks/{exit-worktree-4TEYVIVP.js → exit-worktree-C4276VPP.js} +53 -50
- package/chunks/exitPlanMode-MM5HIRUF.js +77 -0
- package/chunks/{fast-path-HYE7IFEV.js → fast-path-PIXYOHCH.js} +17 -3
- package/chunks/{fr-45RLL55O.js → fr-QF7RI5ZE.js} +52 -6
- package/chunks/{gemini-NGRQX3YJ.js → gemini-43RLVUNP.js} +171 -109
- package/chunks/{geminiContentGenerator-FQHPFZSR.js → geminiContentGenerator-PNQ4TSID.js} +7 -7
- package/chunks/{getMachineId-bsd-V7W3GODC.js → getMachineId-bsd-FG7IUY6U.js} +1 -1
- package/chunks/{getMachineId-darwin-TDO75DQP.js → getMachineId-darwin-GLCJI2RA.js} +1 -1
- package/chunks/{getMachineId-linux-TF43WQT2.js → getMachineId-linux-O6OPPAKO.js} +1 -1
- package/chunks/{getMachineId-unsupported-ZGUO3TXT.js → getMachineId-unsupported-S6CKYVGC.js} +1 -1
- package/chunks/{getMachineId-win-ECFYZZFQ.js → getMachineId-win-X5SRNEH7.js} +1 -1
- package/chunks/{glob-FRTM3X2E.js → glob-ZMBQKAU5.js} +53 -50
- package/chunks/goal-tools-Y767F7LZ.js +335 -0
- package/chunks/{grep-RKWVROCW.js → grep-HSV37W2Q.js} +55 -51
- package/chunks/handleAutoUpdate-QDHZPBAY.js +85 -0
- package/chunks/i18n-ME22A6RN.js +101 -0
- package/chunks/{image-gen-WIEM7KZA.js → image-gen-IFC7ZWSB.js} +12 -12
- package/chunks/initializer-J7H2CHVB.js +90 -0
- package/chunks/installationInfo-R7FXPQN5.js +84 -0
- package/chunks/{ja-B7DF7DFG.js → ja-URQESVGW.js} +52 -6
- package/chunks/{keychain-token-storage-MDTG3WRM.js → keychain-token-storage-7BT4TQ2A.js} +3 -3
- package/chunks/{kittyProtocolDetector-MBRTDRBK.js → kittyProtocolDetector-BFLAKYXH.js} +1 -1
- package/chunks/lib-RUF3WZA6.js +9 -0
- package/chunks/list-OYDIBA4N.js +93 -0
- package/chunks/{list-agents-5KJJHR6I.js → list-agents-GATIBBQQ.js} +3 -3
- package/chunks/loadedSettingsAdapter-OK6GK2GE.js +87 -0
- package/chunks/{loggingContentGenerator-WGM27QAW.js → loggingContentGenerator-U4ZEG4GL.js} +66 -50
- package/chunks/{loop-wakeup-FXKNNYSY.js → loop-wakeup-3DZMQQQQ.js} +15 -8
- package/chunks/{ls-NTK6VOQJ.js → ls-7F4GHXIH.js} +5 -5
- package/chunks/{lsp-2JI24STP.js → lsp-6FEHVBWI.js} +3 -3
- package/chunks/{managed-npm-update-JQ2CG3RH.js → managed-npm-update-PGKAJLLO.js} +52 -49
- package/chunks/mcp-S4DXJD2G.js +87 -0
- package/chunks/{monitor-7FEWXX5F.js → monitor-E5ZFMT74.js} +53 -50
- package/chunks/nonInteractiveCli-HNOHKEPE.js +149 -0
- package/chunks/{notebook-edit-JGJV2K6J.js → notebook-edit-6QDN6VZJ.js} +53 -50
- package/chunks/{openaiContentGenerator-JPVXDTAO.js → openaiContentGenerator-3NLB2C5O.js} +25 -27
- package/chunks/pidfile-ZMOIUGG6.js +90 -0
- package/chunks/process-registry-2CHQBXH5.js +157 -0
- package/chunks/{processUtils-V2LCK6T6.js → processUtils-E4QGQVWW.js} +2 -2
- package/chunks/{pt-22Q3FP73.js → pt-EEEQXRUI.js} +52 -6
- package/chunks/{qwenContentGenerator-TICV2W2Z.js → qwenContentGenerator-2LFRWJTM.js} +57 -54
- package/chunks/{qwenOAuth2-XGFI5XJG.js → qwenOAuth2-N32BUQDC.js} +10 -10
- package/chunks/read-file-GLDCWZBG.js +29 -0
- package/chunks/{read-mcp-resource-4DKQWGHD.js → read-mcp-resource-AFS3UKZO.js} +4 -4
- package/chunks/record-artifact-ECZSCEG5.js +21 -0
- package/chunks/resumeHistoryUtils-F5BE5QDW.js +95 -0
- package/chunks/ripGrep-T23Y4AGY.js +77 -0
- package/chunks/{ru-FZCNZHDC.js → ru-WGZDYQAB.js} +52 -6
- package/chunks/{run-qwen-serve-3VCV4I7E.js → run-qwen-serve-TI2HGLLU.js} +1155 -272
- package/chunks/runtime-WCWM3DO7.js +125 -0
- package/chunks/{scheduler-RS2I6RU5.js → scheduler-2QZO5AV5.js} +51 -48
- package/chunks/{sdk-exporters-grpc-AK3LGHNO.js → sdk-exporters-grpc-54L4LS5L.js} +4 -4
- package/chunks/{sdk-exporters-http-FS6ZV7MF.js → sdk-exporters-http-IKNWQJNV.js} +7 -7
- package/chunks/{sdk-impl-7FZSCSXB.js → sdk-impl-7CUUMQDB.js} +10 -10
- package/chunks/{send-message-Q6OOR6BR.js → send-message-X7G2JSII.js} +8 -13
- package/chunks/serve-DZOMYUFU.js +93 -0
- package/chunks/{server-HRZ23U7M.js → server-N4AJRKIQ.js} +5299 -1584
- package/chunks/{session-7XHZKTVV.js → session-GS6AKMN7.js} +167 -102
- package/chunks/{settings-7ZGZDXAS.js → settings-CUN3SELH.js} +56 -53
- package/chunks/shell-NGBFVXC5.js +87 -0
- package/chunks/{skill-LIWXNLDW.js → skill-SC2BSO75.js} +35 -23
- package/chunks/skill-settings-XVPCPW5K.js +95 -0
- package/chunks/spawnChannel-RILO4YY3.js +86 -0
- package/chunks/standalone-update-TMLT6LVJ.js +96 -0
- package/chunks/{startInteractiveUI-IW3CSKHA.js → startInteractiveUI-J45WOEOU.js} +1343 -1230
- package/chunks/{syntheticOutput-I3757IWH.js → syntheticOutput-FHRY3BPQ.js} +4 -4
- package/chunks/task-create-LAQXBIHC.js +26 -0
- package/chunks/{task-list-FOPULZEP.js → task-list-V6K5DRDH.js} +8 -8
- package/chunks/{task-stop-H6RHXFVQ.js → task-stop-LQXE52L6.js} +3 -3
- package/chunks/{task-update-M57TFZJT.js → task-update-NXRCXSPB.js} +13 -12
- package/chunks/{team-create-O2FROQ4R.js → team-create-W3EVWCTA.js} +55 -52
- package/chunks/{team-delete-QE2UXJL7.js → team-delete-Z4KGO7RC.js} +8 -8
- package/chunks/{team-plan-approval-Q6WDBXTQ.js → team-plan-approval-URYVKJF4.js} +53 -50
- package/chunks/theme-manager-CUAMS2NI.js +81 -0
- package/chunks/{todoWrite-VQ7FKOHL.js → todoWrite-OFIZDI7P.js} +34 -6
- package/chunks/{tool-search-APECNQ3Z.js → tool-search-DCICFL32.js} +21 -22
- package/chunks/total-session-admission-3ZTAXVUK.js +89 -0
- package/chunks/{tree-sitter-FS4VPMZA.js → tree-sitter-4D7QS7F6.js} +1 -1
- package/chunks/{tree-sitter-bash-6B46JJCV.js → tree-sitter-bash-VEJGF5XF.js} +1 -1
- package/chunks/trustedFolders-EVCN36O5.js +99 -0
- package/chunks/{update-relaunch-ON5MDJQG.js → update-relaunch-XLW46RHQ.js} +5 -5
- package/chunks/updateCheck-ZHVXDAIH.js +96 -0
- package/chunks/useAutoAcceptIndicator-ZGD6BJSP.js +97 -0
- package/chunks/{validateNonInterActiveAuth-JBLKBKRD.js → validateNonInterActiveAuth-R3BAQFDY.js} +102 -97
- package/chunks/{version-LTNUBQJY.js → version-PMWREGCG.js} +1 -1
- package/chunks/{web-fetch-L5UTI53V.js → web-fetch-PGN27SGF.js} +19 -21
- package/chunks/{web-search-KM33JOS3.js → web-search-KW4UNMRE.js} +13 -13
- package/chunks/{workflow-K7FAWV77.js → workflow-SN3TJBTJ.js} +374 -323
- package/chunks/workspace-providers-status-O3HUZGGR.js +90 -0
- package/chunks/{workspace-registration-store-6TGVDJV5.js → workspace-registration-store-M3FJ74RS.js} +2 -2
- package/chunks/workspace-registry-U7ISW23N.js +97 -0
- package/chunks/workspace-service-VH6IWADT.js +104 -0
- package/chunks/workspace-skills-status-XANARSZS.js +90 -0
- package/chunks/workspace-trust-reconciler-35EFR4GC.js +350 -0
- package/chunks/write-file-NCRSGUDT.js +79 -0
- package/chunks/xterm-headless-NTYVIBT3.js +3475 -0
- package/chunks/{zh-LUIGBD55.js → zh-OHX23Q44.js} +52 -6
- package/chunks/{zh-TW-F5KG2IYD.js → zh-TW-4G7YKDAQ.js} +52 -6
- package/chunks/zoom-image-X7CIADYC.js +224 -0
- package/cli.js +55 -48
- package/locales/ca.js +67 -6
- package/locales/de.js +69 -6
- package/locales/en.js +69 -6
- package/locales/fr.js +71 -6
- package/locales/ja.js +68 -6
- package/locales/pt.js +67 -6
- package/locales/ru.js +70 -6
- package/locales/zh-TW.js +62 -6
- package/locales/zh.js +62 -6
- package/package.json +5 -4
- package/web-shell/assets/{arc-BbHijhiN.js → arc-CaMTqKio.js} +1 -1
- package/web-shell/assets/{architectureDiagram-3BPJPVTR-Cb4B_JD0.js → architectureDiagram-3BPJPVTR-Bjxztij2.js} +1 -1
- package/web-shell/assets/{blockDiagram-GPEHLZMM-Dsjlh3H-.js → blockDiagram-GPEHLZMM-BYJzeHi9.js} +1 -1
- package/web-shell/assets/{c4Diagram-AAUBKEIU-Cp5AeR4U.js → c4Diagram-AAUBKEIU-fYAa-Eil.js} +1 -1
- package/web-shell/assets/channel-LEZei0-5.js +1 -0
- package/web-shell/assets/{chunk-2J33WTMH-CLcY7W2e.js → chunk-2J33WTMH-B1OTlTml.js} +1 -1
- package/web-shell/assets/{chunk-4BX2VUAB-BUhvY2LR.js → chunk-4BX2VUAB-DNj4uy6k.js} +1 -1
- package/web-shell/assets/{chunk-55IACEB6-kDIFC_71.js → chunk-55IACEB6-DAqNmg3c.js} +1 -1
- package/web-shell/assets/{chunk-727SXJPM-CIBO15f2.js → chunk-727SXJPM-BwB4ddxE.js} +1 -1
- package/web-shell/assets/{chunk-AQP2D5EJ-BJ_T_slV.js → chunk-AQP2D5EJ-DmHR_UZs.js} +1 -1
- package/web-shell/assets/{chunk-FMBD7UC4-BEkW35J8.js → chunk-FMBD7UC4-BlfOXumo.js} +1 -1
- package/web-shell/assets/{chunk-ND2GUHAM-GGPxofay.js → chunk-ND2GUHAM-BKogiSy7.js} +1 -1
- package/web-shell/assets/{chunk-QZHKN3VN-Bifllrb6.js → chunk-QZHKN3VN-DEclVrOF.js} +1 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-BiaRhfvf.js +1 -0
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-BiaRhfvf.js +1 -0
- package/web-shell/assets/{cose-bilkent-S5V4N54A-C-Add_Dp.js → cose-bilkent-S5V4N54A-CwtS21WT.js} +1 -1
- package/web-shell/assets/{dagre-BM42HDAG-B7MfwNq2.js → dagre-BM42HDAG-BAAIlB4p.js} +1 -1
- package/web-shell/assets/{diagram-2AECGRRQ-CY_0zuDz.js → diagram-2AECGRRQ-ChljtF_V.js} +1 -1
- package/web-shell/assets/{diagram-5GNKFQAL-VyYSbCgA.js → diagram-5GNKFQAL-BIXVd31-.js} +1 -1
- package/web-shell/assets/{diagram-KO2AKTUF-CBiIZ2PL.js → diagram-KO2AKTUF-BEiBaS15.js} +1 -1
- package/web-shell/assets/{diagram-LMA3HP47-BL3CrVOx.js → diagram-LMA3HP47-C-g4tWKM.js} +1 -1
- package/web-shell/assets/{diagram-OG6HWLK6-CZUPx96P.js → diagram-OG6HWLK6-CNCCbNQG.js} +1 -1
- package/web-shell/assets/{erDiagram-TEJ5UH35-B81xHr1-.js → erDiagram-TEJ5UH35-v8ysnsdI.js} +1 -1
- package/web-shell/assets/{flowDiagram-I6XJVG4X-EZWhir-J.js → flowDiagram-I6XJVG4X-LKVlLjwA.js} +1 -1
- package/web-shell/assets/{ganttDiagram-6RSMTGT7-CVFSuIAg.js → ganttDiagram-6RSMTGT7-DA5MrKYG.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-PVQCEYII-C1H2uQDv.js → gitGraphDiagram-PVQCEYII-Cyg5fe6d.js} +1 -1
- package/web-shell/assets/index-BgOcEaVt.js +1756 -0
- package/web-shell/assets/index-C2GE3DAF.js +74 -0
- package/web-shell/assets/{index-BYo99NBH.js → index-CKdUkVVS.js} +1 -1
- package/web-shell/assets/index-DA5Lvscv.css +5 -0
- package/web-shell/assets/{infoDiagram-5YYISTIA-BwyFMlF8.js → infoDiagram-5YYISTIA-SLsfu3Qd.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-CQ7Yhn2Y.js → ishikawaDiagram-YF4QCWOH-CmHOmTNx.js} +1 -1
- package/web-shell/assets/{journeyDiagram-JHISSGLW-CJn2sf0l.js → journeyDiagram-JHISSGLW-C3gM_HFQ.js} +1 -1
- package/web-shell/assets/{kanban-definition-UN3LZRKU-DaNRqwVN.js → kanban-definition-UN3LZRKU-BbHD7duM.js} +1 -1
- package/web-shell/assets/{linear-DCKODZe2.js → linear-CSBvm435.js} +1 -1
- package/web-shell/assets/{mermaid.core-CTGJOk27.js → mermaid.core-CPMw15lU.js} +5 -5
- package/web-shell/assets/{mindmap-definition-RKZ34NQL-BKU3_3rg.js → mindmap-definition-RKZ34NQL-C_tNqXQW.js} +1 -1
- package/web-shell/assets/{pieDiagram-4H26LBE5-COcwBJ82.js → pieDiagram-4H26LBE5-DH_N-8yY.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-W4KKPZXB-CQnQ443x.js → quadrantDiagram-W4KKPZXB-CRbS8UkN.js} +1 -1
- package/web-shell/assets/{requirementDiagram-4Y6WPE33-CZ2oj5cD.js → requirementDiagram-4Y6WPE33-DJgdZPZn.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-5OEKKPKP-BxAv5mNu.js → sankeyDiagram-5OEKKPKP-vhL1y5zx.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-3UESZ5HK-CztaySPs.js → sequenceDiagram-3UESZ5HK-UQthhFwd.js} +1 -1
- package/web-shell/assets/{stateDiagram-AJRCARHV-CTQT1oGD.js → stateDiagram-AJRCARHV-CAywEm20.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-lfJQHw-7.js +1 -0
- package/web-shell/assets/{timeline-definition-PNZ67QCA-K9Mkex5A.js → timeline-definition-PNZ67QCA-CLO8b3FD.js} +1 -1
- package/web-shell/assets/{vennDiagram-CIIHVFJN-B2rVIw76.js → vennDiagram-CIIHVFJN-BNAAh0Mu.js} +1 -1
- package/web-shell/assets/{wardley-L42UT6IY-Z1w2JR4M.js → wardley-L42UT6IY-CUY7bLpN.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-YWT4CUSO-CIX9aKXf.js → wardleyDiagram-YWT4CUSO-CSg_ORdW.js} +1 -1
- package/web-shell/assets/{xychartDiagram-2RQKCTM6-CI9DLIKB.js → xychartDiagram-2RQKCTM6-BjffV208.js} +1 -1
- package/web-shell/index.html +2 -2
- package/chunks/MaxSizedBox-INHRH72H.js +0 -86
- package/chunks/agent-VXDAN5JK.js +0 -82
- package/chunks/agent-headless-K4ZMMNBD.js +0 -76
- package/chunks/bridge-LGPZCFHO.js +0 -91
- package/chunks/channel-settings-store-CHCDRTPY.js +0 -89
- package/chunks/chunk-HGT6JR3U.js +0 -177
- package/chunks/chunk-JZA3JUDJ.js +0 -82
- package/chunks/chunk-SZRN75WQ.js +0 -29
- package/chunks/chunk-UGYMA4EI.js +0 -219
- package/chunks/chunk-VCBZUOSI.js +0 -8575
- package/chunks/contextCommand-QIZYHDR5.js +0 -81
- package/chunks/daemon-status-provider-OS5UWBHV.js +0 -90
- package/chunks/earlyInputCapture-WQT24RWD.js +0 -83
- package/chunks/environment-VZ7BRI4Q.js +0 -103
- package/chunks/errors-PCX25DVP.js +0 -89
- package/chunks/exitPlanMode-GHPUHBZJ.js +0 -423
- package/chunks/handleAutoUpdate-2CZQRJ66.js +0 -82
- package/chunks/i18n-XEQVMRKN.js +0 -98
- package/chunks/initializer-OVGZ4FLY.js +0 -87
- package/chunks/installationInfo-5UUQJI6Y.js +0 -81
- package/chunks/list-HODU6RXD.js +0 -90
- package/chunks/loadedSettingsAdapter-TYNLBALY.js +0 -84
- package/chunks/mcp-J3DFWX4A.js +0 -84
- package/chunks/nonInteractiveCli-F4GYSMHT.js +0 -144
- package/chunks/pidfile-4VNAR3EP.js +0 -87
- package/chunks/read-file-LZXUR4TO.js +0 -31
- package/chunks/resumeHistoryUtils-65OX3SGJ.js +0 -92
- package/chunks/ripGrep-2U2FRGMV.js +0 -74
- package/chunks/runtime-AXJWIEDU.js +0 -120
- package/chunks/serve-W2GC47CM.js +0 -90
- package/chunks/shell-45IPBDP5.js +0 -84
- package/chunks/spawnChannel-PVXQ5AGV.js +0 -83
- package/chunks/src-AY65BYR7.js +0 -3166
- package/chunks/standalone-update-ZMFNKAEY.js +0 -93
- package/chunks/task-create-N7WQSGYA.js +0 -25
- package/chunks/theme-manager-YYPZFBAH.js +0 -78
- package/chunks/total-session-admission-JXES723M.js +0 -85
- package/chunks/trustedFolders-HVI7IXUH.js +0 -94
- package/chunks/updateCheck-WUJGHWZZ.js +0 -93
- package/chunks/useAutoAcceptIndicator-CHSTZLZD.js +0 -94
- package/chunks/workspace-providers-status-GAKSF4LL.js +0 -87
- package/chunks/workspace-registry-A7NQUONG.js +0 -89
- package/chunks/workspace-service-STGVSO4N.js +0 -99
- package/chunks/workspace-skills-status-66AK3DUA.js +0 -86
- package/chunks/write-file-HUUCEG4P.js +0 -74
- package/web-shell/assets/channel-Bzdx6E8P.js +0 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-Cd6wbiuK.js +0 -1
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-Cd6wbiuK.js +0 -1
- package/web-shell/assets/index-B2bXx96W.js +0 -1249
- package/web-shell/assets/index-_8mKjx8q.css +0 -5
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-BjMdT6E_.js +0 -1
- package/chunks/{chunk-TARRHLLG.js → chunk-QUGAUQGJ.js} +25 -25
- package/chunks/{chunk-U7ZFW55U.js → chunk-VOQXFAY5.js} +977 -977
- /package/chunks/{chunk-LXXMOYPL.js → chunk-VXZBKKQR.js} +0 -0
|
@@ -2,28 +2,29 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
t
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-CHCLO3M7.js";
|
|
6
6
|
import {
|
|
7
7
|
SessionReferenceService,
|
|
8
8
|
SessionService,
|
|
9
9
|
readManyFiles,
|
|
10
10
|
stripTerminalControlSequences
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NGWYUZZO.js";
|
|
12
12
|
import {
|
|
13
13
|
emptyMcpResourceText,
|
|
14
14
|
formatMcpResourceContents,
|
|
15
15
|
summarizeMcpResource
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ZPJWUGCS.js";
|
|
17
17
|
import {
|
|
18
18
|
shouldRunVisionBridge
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-M2F5PLOW.js";
|
|
20
20
|
import {
|
|
21
21
|
Storage,
|
|
22
22
|
getErrorMessage,
|
|
23
23
|
isNodeError,
|
|
24
24
|
isSubpath,
|
|
25
|
-
unescapePath
|
|
26
|
-
|
|
25
|
+
unescapePath,
|
|
26
|
+
unescapeShellSpecials
|
|
27
|
+
} from "./chunk-3RXUYQJI.js";
|
|
27
28
|
import {
|
|
28
29
|
init_esbuild_shims
|
|
29
30
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -230,7 +231,8 @@ function isSessionId(value) {
|
|
|
230
231
|
__name(isSessionId, "isSessionId");
|
|
231
232
|
function parseSessionRef(pathName) {
|
|
232
233
|
if (!pathName.startsWith(SESSION_MENTION_PREFIX)) return null;
|
|
233
|
-
const
|
|
234
|
+
const rawRemainder = pathName.slice(SESSION_MENTION_PREFIX.length).trim();
|
|
235
|
+
const remainder = process.platform === "win32" ? unescapeShellSpecials(rawRemainder) : rawRemainder;
|
|
234
236
|
if (remainder.length === 0) return null;
|
|
235
237
|
return isSessionId(remainder) ? { id: remainder } : { title: remainder };
|
|
236
238
|
}
|
|
@@ -368,14 +370,29 @@ async function resolveAtCommandQuery({
|
|
|
368
370
|
}
|
|
369
371
|
const fileDiscovery = config.getFileService();
|
|
370
372
|
const respectFileIgnore = config.getFileFilteringOptions();
|
|
373
|
+
const configuredProjectTempDir = Storage.getGlobalTempDir();
|
|
374
|
+
const projectTempDir = await fs2.realpath(configuredProjectTempDir).catch(() => path.resolve(configuredProjectTempDir));
|
|
371
375
|
const pathSpecsToRead = [];
|
|
372
376
|
const atPathToResolvedSpecMap = /* @__PURE__ */ new Map();
|
|
373
377
|
const contentLabelsForDisplay = [];
|
|
378
|
+
const displayPaths = /* @__PURE__ */ new Map();
|
|
379
|
+
const displayPathsByCanonicalPath = /* @__PURE__ */ new Map();
|
|
374
380
|
const ignoredByReason = {
|
|
375
381
|
git: [],
|
|
376
382
|
qwen: [],
|
|
377
383
|
both: []
|
|
378
384
|
};
|
|
385
|
+
const getIgnoreReason = /* @__PURE__ */ __name((candidate) => {
|
|
386
|
+
const gitIgnored = respectFileIgnore.respectGitIgnore && fileDiscovery.shouldIgnoreFile(candidate, {
|
|
387
|
+
respectGitIgnore: true,
|
|
388
|
+
respectQwenIgnore: false
|
|
389
|
+
});
|
|
390
|
+
const qwenIgnored = respectFileIgnore.respectQwenIgnore && fileDiscovery.shouldIgnoreFile(candidate, {
|
|
391
|
+
respectGitIgnore: false,
|
|
392
|
+
respectQwenIgnore: true
|
|
393
|
+
});
|
|
394
|
+
return gitIgnored && qwenIgnored ? "both" : gitIgnored ? "git" : qwenIgnored ? "qwen" : void 0;
|
|
395
|
+
}, "getIgnoreReason");
|
|
379
396
|
const mcpServerNames = new Set(Object.keys(config.getMcpServers() || {}));
|
|
380
397
|
const mcpResourceRefs = [];
|
|
381
398
|
const mcpServerMentions = [];
|
|
@@ -413,7 +430,10 @@ async function resolveAtCommandQuery({
|
|
|
413
430
|
)) {
|
|
414
431
|
sessionMentions.push({ originalAtPath, ref: sessionRef });
|
|
415
432
|
}
|
|
416
|
-
atPathToResolvedSpecMap.set(
|
|
433
|
+
atPathToResolvedSpecMap.set(
|
|
434
|
+
originalAtPath,
|
|
435
|
+
buildSessionRef(sessionRef.id ?? sessionRef.title)
|
|
436
|
+
);
|
|
417
437
|
continue;
|
|
418
438
|
}
|
|
419
439
|
const resourceRef = parseMcpResourceRef(pathName, mcpServerNames);
|
|
@@ -447,24 +467,16 @@ async function resolveAtCommandQuery({
|
|
|
447
467
|
continue;
|
|
448
468
|
}
|
|
449
469
|
const workspaceContext = config.getWorkspaceContext();
|
|
450
|
-
const projectTempDir = Storage.getGlobalTempDir();
|
|
451
470
|
const absolutePathName = path.isAbsolute(pathName) ? pathName : path.resolve(workspaceContext.getDirectories()[0] || "", pathName);
|
|
452
|
-
if (!isSubpath(projectTempDir, absolutePathName) && !workspaceContext.isPathWithinWorkspace(pathName)) {
|
|
471
|
+
if (!isSubpath(configuredProjectTempDir, absolutePathName) && !isSubpath(projectTempDir, absolutePathName) && !workspaceContext.isPathWithinWorkspace(pathName)) {
|
|
453
472
|
onDebugMessage(
|
|
454
473
|
`Path ${pathName} is not in the workspace and will be skipped.`
|
|
455
474
|
);
|
|
456
475
|
continue;
|
|
457
476
|
}
|
|
458
|
-
const
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
});
|
|
462
|
-
const qwenIgnored = respectFileIgnore.respectQwenIgnore && fileDiscovery.shouldIgnoreFile(pathName, {
|
|
463
|
-
respectGitIgnore: false,
|
|
464
|
-
respectQwenIgnore: true
|
|
465
|
-
});
|
|
466
|
-
if (gitIgnored || qwenIgnored) {
|
|
467
|
-
const reason = gitIgnored && qwenIgnored ? "both" : gitIgnored ? "git" : "qwen";
|
|
477
|
+
const ignoredReason = getIgnoreReason(pathName);
|
|
478
|
+
if (ignoredReason) {
|
|
479
|
+
const reason = ignoredReason;
|
|
468
480
|
ignoredByReason[reason].push(pathName);
|
|
469
481
|
const reasonText = reason === "both" ? "ignored by both git and qwen" : reason === "git" ? "git-ignored" : "qwen-ignored";
|
|
470
482
|
onDebugMessage(`Path ${pathName} is ${reasonText} and will be skipped.`);
|
|
@@ -472,17 +484,39 @@ async function resolveAtCommandQuery({
|
|
|
472
484
|
}
|
|
473
485
|
let resolvedSuccessfully = false;
|
|
474
486
|
let sawNotFound = false;
|
|
487
|
+
let deferredIgnoreReason;
|
|
475
488
|
for (const dir of config.getWorkspaceContext().getDirectories()) {
|
|
476
|
-
let currentPathSpec = pathName;
|
|
477
489
|
try {
|
|
478
490
|
const absolutePath = path.resolve(dir, pathName);
|
|
479
|
-
const
|
|
491
|
+
const canonicalPath = await fs2.realpath(absolutePath);
|
|
492
|
+
const stats = await fs2.stat(canonicalPath);
|
|
493
|
+
if (!isSubpath(configuredProjectTempDir, canonicalPath) && !isSubpath(projectTempDir, canonicalPath) && !workspaceContext.isPathWithinWorkspace(canonicalPath)) {
|
|
494
|
+
onDebugMessage(
|
|
495
|
+
`Path ${pathName} is not in the workspace and will be skipped.`
|
|
496
|
+
);
|
|
497
|
+
continue;
|
|
498
|
+
}
|
|
499
|
+
const canonicalIgnoreReason = getIgnoreReason(canonicalPath);
|
|
500
|
+
if (canonicalIgnoreReason) {
|
|
501
|
+
deferredIgnoreReason = canonicalIgnoreReason;
|
|
502
|
+
const reasonText = canonicalIgnoreReason === "both" ? "ignored by both git and qwen" : canonicalIgnoreReason === "git" ? "git-ignored" : "qwen-ignored";
|
|
503
|
+
onDebugMessage(
|
|
504
|
+
`Path ${pathName} is ${reasonText} and will be skipped.`
|
|
505
|
+
);
|
|
506
|
+
continue;
|
|
507
|
+
}
|
|
480
508
|
if (stats.isDirectory()) {
|
|
481
|
-
currentPathSpec = pathName;
|
|
482
509
|
onDebugMessage(`Path ${pathName} resolved to directory.`);
|
|
483
510
|
} else {
|
|
484
511
|
onDebugMessage(`Path ${pathName} resolved to file: ${absolutePath}`);
|
|
485
512
|
}
|
|
513
|
+
pathSpecsToRead.push(canonicalPath);
|
|
514
|
+
atPathToResolvedSpecMap.set(originalAtPath, pathName);
|
|
515
|
+
contentLabelsForDisplay.push(pathName);
|
|
516
|
+
displayPaths.set(canonicalPath, pathName);
|
|
517
|
+
const canonicalDisplays = displayPathsByCanonicalPath.get(canonicalPath) ?? /* @__PURE__ */ new Set();
|
|
518
|
+
canonicalDisplays.add(pathName);
|
|
519
|
+
displayPathsByCanonicalPath.set(canonicalPath, canonicalDisplays);
|
|
486
520
|
resolvedSuccessfully = true;
|
|
487
521
|
} catch (error) {
|
|
488
522
|
if (isNodeError(error) && error.code === "ENOENT") {
|
|
@@ -495,9 +529,6 @@ async function resolveAtCommandQuery({
|
|
|
495
529
|
}
|
|
496
530
|
}
|
|
497
531
|
if (resolvedSuccessfully) {
|
|
498
|
-
pathSpecsToRead.push(currentPathSpec);
|
|
499
|
-
atPathToResolvedSpecMap.set(originalAtPath, currentPathSpec);
|
|
500
|
-
contentLabelsForDisplay.push(pathName);
|
|
501
532
|
break;
|
|
502
533
|
}
|
|
503
534
|
}
|
|
@@ -506,31 +537,37 @@ async function resolveAtCommandQuery({
|
|
|
506
537
|
`Path ${pathName} not found. Path ${pathName} will be skipped.`
|
|
507
538
|
);
|
|
508
539
|
}
|
|
540
|
+
if (!resolvedSuccessfully && deferredIgnoreReason) {
|
|
541
|
+
ignoredByReason[deferredIgnoreReason].push(pathName);
|
|
542
|
+
}
|
|
509
543
|
}
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
const resolvedSpec = atPathToResolvedSpecMap.get(part.content);
|
|
517
|
-
if (i > 0 && initialQueryText.length > 0 && !initialQueryText.endsWith(" ")) {
|
|
518
|
-
const prevPart = commandParts[i - 1];
|
|
519
|
-
if (prevPart.type === "text" || prevPart.type === "atPath" && atPathToResolvedSpecMap.has(prevPart.content)) {
|
|
520
|
-
initialQueryText += " ";
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
if (resolvedSpec) {
|
|
524
|
-
initialQueryText += `@${resolvedSpec}`;
|
|
544
|
+
const buildInitialQueryText = /* @__PURE__ */ __name(() => {
|
|
545
|
+
let text = "";
|
|
546
|
+
for (let i = 0; i < commandParts.length; i++) {
|
|
547
|
+
const part = commandParts[i];
|
|
548
|
+
if (part.type === "text") {
|
|
549
|
+
text += part.content;
|
|
525
550
|
} else {
|
|
526
|
-
|
|
527
|
-
|
|
551
|
+
const resolvedSpec = atPathToResolvedSpecMap.get(part.content);
|
|
552
|
+
if (i > 0 && text.length > 0 && !text.endsWith(" ")) {
|
|
553
|
+
const prevPart = commandParts[i - 1];
|
|
554
|
+
if (prevPart.type === "text" || prevPart.type === "atPath") {
|
|
555
|
+
text += " ";
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
if (resolvedSpec) {
|
|
559
|
+
text += `@${resolvedSpec}`;
|
|
560
|
+
} else {
|
|
561
|
+
if (i > 0 && text.length > 0 && !text.endsWith(" ") && !part.content.startsWith(" ")) {
|
|
562
|
+
text += " ";
|
|
563
|
+
}
|
|
564
|
+
text += part.content;
|
|
528
565
|
}
|
|
529
|
-
initialQueryText += part.content;
|
|
530
566
|
}
|
|
531
567
|
}
|
|
532
|
-
|
|
533
|
-
|
|
568
|
+
return text.trim();
|
|
569
|
+
}, "buildInitialQueryText");
|
|
570
|
+
let initialQueryText = buildInitialQueryText();
|
|
534
571
|
const totalIgnored = ignoredByReason["git"].length + ignoredByReason["qwen"].length + ignoredByReason["both"].length;
|
|
535
572
|
if (totalIgnored > 0) {
|
|
536
573
|
const messages = [];
|
|
@@ -787,18 +824,64 @@ ${messages.join("\n")}`;
|
|
|
787
824
|
);
|
|
788
825
|
const fileParts = [];
|
|
789
826
|
let fileDisplays = [];
|
|
790
|
-
|
|
827
|
+
const revalidatedPathSpecs = [];
|
|
828
|
+
const revalidatedDisplayPaths = /* @__PURE__ */ new Map();
|
|
829
|
+
const validatedPathIdentities = /* @__PURE__ */ new Map();
|
|
830
|
+
const pruneSkippedPath = /* @__PURE__ */ __name((approvedPath) => {
|
|
831
|
+
const displayPath = displayPaths.get(approvedPath);
|
|
832
|
+
const displayLabels = displayPathsByCanonicalPath.get(approvedPath) ?? new Set(displayPath ? [displayPath] : []);
|
|
833
|
+
for (const [originalAtPath, resolvedSpec] of atPathToResolvedSpecMap) {
|
|
834
|
+
if (resolvedSpec === approvedPath || displayLabels.has(resolvedSpec)) {
|
|
835
|
+
atPathToResolvedSpecMap.delete(originalAtPath);
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
for (let index = contentLabelsForDisplay.length - 1; index >= 0; index--) {
|
|
839
|
+
const label = contentLabelsForDisplay[index];
|
|
840
|
+
if (label === approvedPath || displayLabels.has(label)) {
|
|
841
|
+
contentLabelsForDisplay.splice(index, 1);
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
}, "pruneSkippedPath");
|
|
845
|
+
for (const approvedPath of pathSpecsToRead) {
|
|
846
|
+
try {
|
|
847
|
+
const currentPath = await fs2.realpath(approvedPath);
|
|
848
|
+
const stats = await fs2.stat(currentPath);
|
|
849
|
+
if (currentPath === approvedPath && (stats.isFile() || stats.isDirectory()) && (isSubpath(configuredProjectTempDir, currentPath) || isSubpath(projectTempDir, currentPath) || config.getWorkspaceContext().isPathWithinWorkspace(currentPath)) && getIgnoreReason(currentPath) === void 0) {
|
|
850
|
+
revalidatedPathSpecs.push(currentPath);
|
|
851
|
+
const displayPath = displayPaths.get(approvedPath);
|
|
852
|
+
if (displayPath) revalidatedDisplayPaths.set(currentPath, displayPath);
|
|
853
|
+
validatedPathIdentities.set(currentPath, {
|
|
854
|
+
dev: stats.dev,
|
|
855
|
+
ino: stats.ino
|
|
856
|
+
});
|
|
857
|
+
} else {
|
|
858
|
+
pruneSkippedPath(approvedPath);
|
|
859
|
+
onDebugMessage(
|
|
860
|
+
`Path ${approvedPath} failed revalidation and will be skipped.`
|
|
861
|
+
);
|
|
862
|
+
}
|
|
863
|
+
} catch {
|
|
864
|
+
pruneSkippedPath(approvedPath);
|
|
865
|
+
onDebugMessage(
|
|
866
|
+
`Path ${approvedPath} changed before it could be read and will be skipped.`
|
|
867
|
+
);
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
initialQueryText = buildInitialQueryText();
|
|
871
|
+
if (revalidatedPathSpecs.length > 0) {
|
|
791
872
|
try {
|
|
792
873
|
const result = await readManyFiles(config, {
|
|
793
|
-
paths:
|
|
874
|
+
paths: revalidatedPathSpecs,
|
|
794
875
|
signal,
|
|
795
|
-
preserveUnsupportedImageForBridge: shouldRunVisionBridge(config)
|
|
876
|
+
preserveUnsupportedImageForBridge: shouldRunVisionBridge(config),
|
|
877
|
+
validatedPathIdentities,
|
|
878
|
+
displayPaths: revalidatedDisplayPaths
|
|
796
879
|
});
|
|
797
880
|
const parts = Array.isArray(result.contentParts) ? result.contentParts : [result.contentParts];
|
|
798
881
|
fileDisplays = result.files.map((file, index) => ({
|
|
799
882
|
callId: `client-read-${userMessageTimestamp}-${index}`,
|
|
800
883
|
name: file.isDirectory ? "Read Directory" : "Read File",
|
|
801
|
-
description:
|
|
884
|
+
description: `@${path.basename(file.filePath)}`,
|
|
802
885
|
status: file.error ? "Error" /* Error */ : "Success" /* Success */,
|
|
803
886
|
resultDisplay: file.error ? `Failed to read ${path.basename(file.filePath)}: ${file.error}` : void 0,
|
|
804
887
|
confirmationDetails: void 0
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
|
-
extractGeminiContent,
|
|
5
4
|
stringifyGenAiJson
|
|
6
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2DNKEBXY.js";
|
|
7
6
|
import {
|
|
8
7
|
getMeter,
|
|
9
8
|
isTelemetrySdkInitialized,
|
|
10
9
|
truncateSpanError
|
|
11
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-O2ZYHG33.js";
|
|
12
11
|
import {
|
|
13
12
|
require_src
|
|
14
13
|
} from "./chunk-W4RQUHY3.js";
|
|
@@ -17,16 +16,13 @@ import {
|
|
|
17
16
|
SENSITIVE_SPAN_ATTRIBUTE_MAX_LENGTH_LIMIT,
|
|
18
17
|
SERVICE_NAME,
|
|
19
18
|
isValidSensitiveSpanAttributeMaxLength
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import {
|
|
22
|
-
init_esm as init_esm2
|
|
23
|
-
} from "./chunk-U7ZFW55U.js";
|
|
19
|
+
} from "./chunk-G7XXKQYS.js";
|
|
24
20
|
import {
|
|
25
21
|
FatalConfigError,
|
|
26
22
|
createDebugLogger,
|
|
27
23
|
formatTraceparent,
|
|
28
24
|
getActiveSpanTraceContext
|
|
29
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-3RXUYQJI.js";
|
|
30
26
|
import {
|
|
31
27
|
ROOT_CONTEXT,
|
|
32
28
|
SpanKind,
|
|
@@ -37,7 +33,7 @@ import {
|
|
|
37
33
|
init_esm,
|
|
38
34
|
propagation,
|
|
39
35
|
trace
|
|
40
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-QUGAUQGJ.js";
|
|
41
37
|
import {
|
|
42
38
|
init_esbuild_shims
|
|
43
39
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -51,8 +47,6 @@ init_esbuild_shims();
|
|
|
51
47
|
|
|
52
48
|
// packages/core/src/telemetry/index.ts
|
|
53
49
|
init_esbuild_shims();
|
|
54
|
-
init_esm();
|
|
55
|
-
init_esm2();
|
|
56
50
|
|
|
57
51
|
// packages/core/src/telemetry/daemon-tracing.ts
|
|
58
52
|
init_esbuild_shims();
|
|
@@ -560,6 +554,8 @@ init_esbuild_shims();
|
|
|
560
554
|
import { monitorEventLoopDelay } from "node:perf_hooks";
|
|
561
555
|
var DEFAULT_RESOLUTION_MS = 20;
|
|
562
556
|
var DEFAULT_STALL_THRESHOLD_MS = 1e3;
|
|
557
|
+
var DEFAULT_EVENT_LOOP_SUSPEND_THRESHOLD_MS = 5 * 60 * 1e3;
|
|
558
|
+
var DEFAULT_SUSPEND_CPU_RATIO = 0.01;
|
|
563
559
|
var NS_PER_MS = 1e6;
|
|
564
560
|
function startEventLoopLagMonitor(options = {}) {
|
|
565
561
|
const resolutionMs = positiveFiniteOrDefault(
|
|
@@ -570,24 +566,54 @@ function startEventLoopLagMonitor(options = {}) {
|
|
|
570
566
|
options.stallThresholdMs,
|
|
571
567
|
DEFAULT_STALL_THRESHOLD_MS
|
|
572
568
|
);
|
|
569
|
+
const suspendThresholdMs = positiveFiniteOrDefault(
|
|
570
|
+
options.suspendThresholdMs,
|
|
571
|
+
DEFAULT_EVENT_LOOP_SUSPEND_THRESHOLD_MS
|
|
572
|
+
);
|
|
573
|
+
const suspendCpuRatio = fractionOrDefault(
|
|
574
|
+
options.suspendCpuRatio,
|
|
575
|
+
DEFAULT_SUSPEND_CPU_RATIO
|
|
576
|
+
);
|
|
573
577
|
const histogram = monitorEventLoopDelay({ resolution: resolutionMs });
|
|
574
578
|
histogram.enable();
|
|
575
579
|
let disposed = false;
|
|
576
580
|
let lastReportedMaxMs = 0;
|
|
581
|
+
let lastObservedMaxMs = 0;
|
|
582
|
+
let lastCheckTimeMs = Date.now();
|
|
583
|
+
let lastCpuUsage = safeCpuUsage();
|
|
584
|
+
let pendingSuspendGapMs = 0;
|
|
577
585
|
const readMaxMs = /* @__PURE__ */ __name(() => nsToMs(histogram.max), "readMaxMs");
|
|
578
|
-
const
|
|
579
|
-
if (disposed
|
|
586
|
+
const checkHistogram = /* @__PURE__ */ __name(() => {
|
|
587
|
+
if (disposed) return;
|
|
588
|
+
const nowMs = Date.now();
|
|
589
|
+
const cpuUsage = safeCpuUsage();
|
|
590
|
+
const elapsedMs = Math.max(0, nowMs - lastCheckTimeMs);
|
|
580
591
|
const maxMs = readMaxMs();
|
|
581
|
-
|
|
592
|
+
const newMaxMs = maxMs > lastObservedMaxMs ? maxMs : 0;
|
|
593
|
+
const cpuRatio = calculateCpuRatio(lastCpuUsage, cpuUsage, elapsedMs);
|
|
594
|
+
lastCheckTimeMs = nowMs;
|
|
595
|
+
if (cpuUsage) lastCpuUsage = cpuUsage;
|
|
596
|
+
lastObservedMaxMs = maxMs;
|
|
597
|
+
const isLowCpuGap = elapsedMs >= suspendThresholdMs && cpuRatio !== void 0 && cpuRatio <= suspendCpuRatio;
|
|
598
|
+
const suspendGapMs = isLowCpuGap ? elapsedMs : pendingSuspendGapMs;
|
|
599
|
+
pendingSuspendGapMs = isLowCpuGap ? elapsedMs : 0;
|
|
600
|
+
if (newMaxMs >= suspendThresholdMs && suspendGapMs >= suspendThresholdMs && newMaxMs <= suspendGapMs * 1.5) {
|
|
601
|
+
histogram.reset();
|
|
602
|
+
lastObservedMaxMs = 0;
|
|
603
|
+
lastReportedMaxMs = 0;
|
|
604
|
+
pendingSuspendGapMs = 0;
|
|
605
|
+
return;
|
|
606
|
+
}
|
|
607
|
+
if (options.onNewMaxStall && maxMs >= stallThresholdMs && maxMs > lastReportedMaxMs) {
|
|
582
608
|
lastReportedMaxMs = maxMs;
|
|
583
609
|
try {
|
|
584
610
|
options.onNewMaxStall(maxMs);
|
|
585
611
|
} catch {
|
|
586
612
|
}
|
|
587
613
|
}
|
|
588
|
-
}, "
|
|
589
|
-
const interval =
|
|
590
|
-
interval
|
|
614
|
+
}, "checkHistogram");
|
|
615
|
+
const interval = setInterval(checkHistogram, resolutionMs);
|
|
616
|
+
interval.unref();
|
|
591
617
|
return {
|
|
592
618
|
snapshot() {
|
|
593
619
|
return {
|
|
@@ -600,14 +626,26 @@ function startEventLoopLagMonitor(options = {}) {
|
|
|
600
626
|
dispose() {
|
|
601
627
|
if (disposed) return;
|
|
602
628
|
disposed = true;
|
|
603
|
-
|
|
604
|
-
clearInterval(interval);
|
|
605
|
-
}
|
|
629
|
+
clearInterval(interval);
|
|
606
630
|
histogram.disable();
|
|
607
631
|
}
|
|
608
632
|
};
|
|
609
633
|
}
|
|
610
634
|
__name(startEventLoopLagMonitor, "startEventLoopLagMonitor");
|
|
635
|
+
function safeCpuUsage() {
|
|
636
|
+
try {
|
|
637
|
+
return process.cpuUsage();
|
|
638
|
+
} catch {
|
|
639
|
+
return void 0;
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
__name(safeCpuUsage, "safeCpuUsage");
|
|
643
|
+
function calculateCpuRatio(previous, current, elapsedMs) {
|
|
644
|
+
if (!previous || !current || elapsedMs <= 0) return void 0;
|
|
645
|
+
const cpuMicroseconds = current.user - previous.user + (current.system - previous.system);
|
|
646
|
+
return Math.max(0, cpuMicroseconds / (elapsedMs * 1e3));
|
|
647
|
+
}
|
|
648
|
+
__name(calculateCpuRatio, "calculateCpuRatio");
|
|
611
649
|
function nsToMs(value) {
|
|
612
650
|
return Number.isFinite(value) ? value / NS_PER_MS : 0;
|
|
613
651
|
}
|
|
@@ -616,6 +654,10 @@ function positiveFiniteOrDefault(value, fallback) {
|
|
|
616
654
|
return value !== void 0 && Number.isFinite(value) && value > 0 ? value : fallback;
|
|
617
655
|
}
|
|
618
656
|
__name(positiveFiniteOrDefault, "positiveFiniteOrDefault");
|
|
657
|
+
function fractionOrDefault(value, fallback) {
|
|
658
|
+
return value !== void 0 && Number.isFinite(value) && value >= 0 && value <= 1 ? value : fallback;
|
|
659
|
+
}
|
|
660
|
+
__name(fractionOrDefault, "fractionOrDefault");
|
|
619
661
|
|
|
620
662
|
// packages/core/src/telemetry/event-loop-lag-metrics.ts
|
|
621
663
|
init_esbuild_shims();
|
|
@@ -741,63 +783,6 @@ function addUserPromptAttributes(config, span, promptText) {
|
|
|
741
783
|
});
|
|
742
784
|
}
|
|
743
785
|
__name(addUserPromptAttributes, "addUserPromptAttributes");
|
|
744
|
-
function addSystemPromptAttributes(config, span, systemInstruction) {
|
|
745
|
-
if (!areSensitiveSpanAttributesEnabled(config)) return;
|
|
746
|
-
const parts = extractGeminiContent({
|
|
747
|
-
config: { systemInstruction }
|
|
748
|
-
}).systemInstructions;
|
|
749
|
-
if (parts !== void 0) {
|
|
750
|
-
writeJsonAttribute(config, span, "gen_ai.system_instructions", parts);
|
|
751
|
-
}
|
|
752
|
-
}
|
|
753
|
-
__name(addSystemPromptAttributes, "addSystemPromptAttributes");
|
|
754
|
-
function addToolSchemaAttributes(config, span, tools) {
|
|
755
|
-
if (!areSensitiveSpanAttributesEnabled(config) || tools === void 0) return;
|
|
756
|
-
const providerTools = tools.every(
|
|
757
|
-
(tool) => typeof tool === "object" && tool !== null && Object.hasOwn(tool, "functionDeclarations")
|
|
758
|
-
) ? tools : [{ functionDeclarations: tools }];
|
|
759
|
-
const definitions = extractGeminiContent({
|
|
760
|
-
config: { tools: providerTools }
|
|
761
|
-
}).toolDefinitions;
|
|
762
|
-
if (definitions !== void 0) {
|
|
763
|
-
writeJsonAttribute(config, span, "gen_ai.tool.definitions", definitions);
|
|
764
|
-
}
|
|
765
|
-
}
|
|
766
|
-
__name(addToolSchemaAttributes, "addToolSchemaAttributes");
|
|
767
|
-
function addModelOutputAttributes(config, span, responseText, originalLengthOrFinishReason, finishReason) {
|
|
768
|
-
if (!areSensitiveSpanAttributesEnabled(config) || responseText === void 0)
|
|
769
|
-
return;
|
|
770
|
-
const reason = typeof originalLengthOrFinishReason === "string" ? originalLengthOrFinishReason : finishReason;
|
|
771
|
-
if (!reason) return;
|
|
772
|
-
writeJsonAttribute(config, span, "gen_ai.output.messages", [
|
|
773
|
-
{
|
|
774
|
-
role: "assistant",
|
|
775
|
-
parts: [{ type: "text", content: responseText }],
|
|
776
|
-
finish_reason: reason
|
|
777
|
-
}
|
|
778
|
-
]);
|
|
779
|
-
}
|
|
780
|
-
__name(addModelOutputAttributes, "addModelOutputAttributes");
|
|
781
|
-
function addToolInputAttributes(config, span, _toolName, toolInput) {
|
|
782
|
-
let value;
|
|
783
|
-
try {
|
|
784
|
-
value = JSON.parse(toolInput);
|
|
785
|
-
} catch {
|
|
786
|
-
return;
|
|
787
|
-
}
|
|
788
|
-
addToolArgumentsAttributes(config, span, value);
|
|
789
|
-
}
|
|
790
|
-
__name(addToolInputAttributes, "addToolInputAttributes");
|
|
791
|
-
function addToolResultAttributes(config, span, _toolName, toolResult) {
|
|
792
|
-
let value;
|
|
793
|
-
try {
|
|
794
|
-
value = JSON.parse(toolResult);
|
|
795
|
-
} catch {
|
|
796
|
-
return;
|
|
797
|
-
}
|
|
798
|
-
addToolCallResultAttributes(config, span, value);
|
|
799
|
-
}
|
|
800
|
-
__name(addToolResultAttributes, "addToolResultAttributes");
|
|
801
786
|
function addToolArgumentsAttributes(config, span, argumentsValue) {
|
|
802
787
|
if (!areSensitiveSpanAttributesEnabled(config)) return;
|
|
803
788
|
writeJsonAttribute(
|
|
@@ -836,11 +821,6 @@ function writeJsonAttribute(config, span, key, value, requireObject = false) {
|
|
|
836
821
|
__name(writeJsonAttribute, "writeJsonAttribute");
|
|
837
822
|
|
|
838
823
|
// packages/core/src/telemetry/index.ts
|
|
839
|
-
var TelemetryTarget = /* @__PURE__ */ ((TelemetryTarget2) => {
|
|
840
|
-
TelemetryTarget2["GCP"] = "gcp";
|
|
841
|
-
TelemetryTarget2["LOCAL"] = "local";
|
|
842
|
-
return TelemetryTarget2;
|
|
843
|
-
})(TelemetryTarget || {});
|
|
844
824
|
var DEFAULT_TELEMETRY_TARGET = "local" /* LOCAL */;
|
|
845
825
|
var DEFAULT_OTLP_ENDPOINT = "http://localhost:4317";
|
|
846
826
|
|
|
@@ -981,6 +961,16 @@ function parseSensitiveSpanAttributeMaxLengthSetting(settingName, value) {
|
|
|
981
961
|
return value;
|
|
982
962
|
}
|
|
983
963
|
__name(parseSensitiveSpanAttributeMaxLengthSetting, "parseSensitiveSpanAttributeMaxLengthSetting");
|
|
964
|
+
function parseTelemetryUserId(source, value) {
|
|
965
|
+
if (value === void 0) return void 0;
|
|
966
|
+
if (typeof value !== "string") {
|
|
967
|
+
throw new FatalConfigError(
|
|
968
|
+
`Invalid ${source}: must be a string, got ${typeof value}`
|
|
969
|
+
);
|
|
970
|
+
}
|
|
971
|
+
return value.trim() || void 0;
|
|
972
|
+
}
|
|
973
|
+
__name(parseTelemetryUserId, "parseTelemetryUserId");
|
|
984
974
|
async function resolveTelemetrySettings(options) {
|
|
985
975
|
const argv = options.argv ?? {};
|
|
986
976
|
const env = options.env ?? {};
|
|
@@ -1008,6 +998,10 @@ async function resolveTelemetrySettings(options) {
|
|
|
1008
998
|
);
|
|
1009
999
|
}
|
|
1010
1000
|
const logPrompts = argv.telemetryLogPrompts ?? parseBooleanEnvFlag(env["QWEN_TELEMETRY_LOG_PROMPTS"]) ?? settings.logPrompts;
|
|
1001
|
+
const userId = parseTelemetryUserId(
|
|
1002
|
+
"QWEN_TELEMETRY_USER_ID",
|
|
1003
|
+
env["QWEN_TELEMETRY_USER_ID"]
|
|
1004
|
+
) ?? parseTelemetryUserId("telemetry.userId", settings.userId);
|
|
1011
1005
|
const includeSensitiveSpanAttributes = parseBooleanEnvFlag(
|
|
1012
1006
|
env["QWEN_TELEMETRY_INCLUDE_SENSITIVE_SPAN_ATTRIBUTES"]
|
|
1013
1007
|
) ?? settings.includeSensitiveSpanAttributes ?? false;
|
|
@@ -1058,6 +1052,7 @@ async function resolveTelemetrySettings(options) {
|
|
|
1058
1052
|
otlpLogsEndpoint,
|
|
1059
1053
|
otlpMetricsEndpoint,
|
|
1060
1054
|
logPrompts,
|
|
1055
|
+
userId,
|
|
1061
1056
|
includeSensitiveSpanAttributes,
|
|
1062
1057
|
sensitiveSpanAttributeMaxLength,
|
|
1063
1058
|
outfile,
|
|
@@ -1070,21 +1065,16 @@ __name(resolveTelemetrySettings, "resolveTelemetrySettings");
|
|
|
1070
1065
|
|
|
1071
1066
|
export {
|
|
1072
1067
|
parseBooleanEnvFlag,
|
|
1073
|
-
parseTelemetryTargetValue,
|
|
1074
1068
|
resolveTelemetrySettings,
|
|
1075
1069
|
DAEMON_TRACEPARENT_META_KEY,
|
|
1076
1070
|
DAEMON_TRACESTATE_META_KEY,
|
|
1077
1071
|
hashDaemonWorkspace,
|
|
1078
1072
|
withDaemonSpan,
|
|
1079
1073
|
withDaemonRequestSpan,
|
|
1080
|
-
withDaemonBridgeSpan,
|
|
1081
1074
|
recordDaemonHttpResponse,
|
|
1082
1075
|
addDaemonRequestAttribute,
|
|
1083
1076
|
recordDaemonError,
|
|
1084
1077
|
emitDaemonLog,
|
|
1085
|
-
captureDaemonTelemetryContext,
|
|
1086
|
-
runWithDaemonTelemetryContext,
|
|
1087
|
-
injectDaemonTraceContext,
|
|
1088
1078
|
extractDaemonTraceContext,
|
|
1089
1079
|
createDaemonBridgeTelemetry,
|
|
1090
1080
|
initializeDaemonMetrics,
|
|
@@ -1101,16 +1091,9 @@ export {
|
|
|
1101
1091
|
registerDaemonEventLoopLagGauge,
|
|
1102
1092
|
registerAcpEventLoopLagGauge,
|
|
1103
1093
|
areSensitiveSpanAttributesEnabled,
|
|
1104
|
-
truncateContent,
|
|
1105
1094
|
addUserPromptAttributes,
|
|
1106
|
-
addSystemPromptAttributes,
|
|
1107
|
-
addToolSchemaAttributes,
|
|
1108
|
-
addModelOutputAttributes,
|
|
1109
|
-
addToolInputAttributes,
|
|
1110
|
-
addToolResultAttributes,
|
|
1111
1095
|
addToolArgumentsAttributes,
|
|
1112
1096
|
addToolCallResultAttributes,
|
|
1113
|
-
TelemetryTarget,
|
|
1114
1097
|
DEFAULT_TELEMETRY_TARGET,
|
|
1115
1098
|
DEFAULT_OTLP_ENDPOINT
|
|
1116
1099
|
};
|
|
@@ -32,29 +32,17 @@ function resolveActiveTeamName(fallback) {
|
|
|
32
32
|
}
|
|
33
33
|
__name(resolveActiveTeamName, "resolveActiveTeamName");
|
|
34
34
|
var isTeammate = isInProcessTeammate;
|
|
35
|
-
function isTeamLead() {
|
|
36
|
-
return teammateIdentityStore.getStore()?.isTeamLead ?? false;
|
|
37
|
-
}
|
|
38
|
-
__name(isTeamLead, "isTeamLead");
|
|
39
|
-
function getTeammateColor() {
|
|
40
|
-
return teammateIdentityStore.getStore()?.color;
|
|
41
|
-
}
|
|
42
|
-
__name(getTeammateColor, "getTeammateColor");
|
|
43
35
|
function runWithTeammateIdentity(identity, fn) {
|
|
44
36
|
return teammateIdentityStore.run(identity, fn);
|
|
45
37
|
}
|
|
46
38
|
__name(runWithTeammateIdentity, "runWithTeammateIdentity");
|
|
47
39
|
|
|
48
40
|
export {
|
|
49
|
-
teammateIdentityStore,
|
|
50
41
|
getTeammateContext,
|
|
51
|
-
isInProcessTeammate,
|
|
52
42
|
getAgentName,
|
|
53
43
|
getTeamName,
|
|
54
44
|
resolveActiveTeamName,
|
|
55
45
|
isTeammate,
|
|
56
|
-
isTeamLead,
|
|
57
|
-
getTeammateColor,
|
|
58
46
|
runWithTeammateIdentity
|
|
59
47
|
};
|
|
60
48
|
/**
|
|
@@ -64,7 +64,7 @@ async function runExitCleanup(options = {}) {
|
|
|
64
64
|
}
|
|
65
65
|
__name(runExitCleanup, "runExitCleanup");
|
|
66
66
|
async function cleanupCheckpoints() {
|
|
67
|
-
const { Storage } = await import("./
|
|
67
|
+
const { Storage } = await import("./deferred-core-runtime-JJBHKM2C.js");
|
|
68
68
|
const storage = new Storage(process.cwd());
|
|
69
69
|
const tempDir = storage.getProjectTempDir();
|
|
70
70
|
const checkpointsDir = join(tempDir, "checkpoints");
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
*/
|