@qwen-code/qwen-code 0.21.1-simplify-system-prompt.0 → 0.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundled/qc-helper/docs/configuration/model-providers.md +2 -0
- package/bundled/qc-helper/docs/configuration/settings.md +38 -28
- package/bundled/qc-helper/docs/features/channels/_meta.ts +1 -0
- package/bundled/qc-helper/docs/features/channels/github.md +107 -0
- package/bundled/qc-helper/docs/features/channels/overview.md +61 -6
- package/bundled/qc-helper/docs/features/code-review.md +1 -1
- package/bundled/qc-helper/docs/features/hooks.md +52 -15
- package/bundled/qc-helper/docs/features/mcp.md +9 -1
- package/bundled/qc-helper/docs/features/scheduled-tasks.md +3 -1
- package/bundled/qc-helper/docs/features/sub-agents.md +20 -0
- package/bundled/qc-helper/docs/qwen-serve.md +4 -2
- package/bundled/qc-helper/docs/reference/keyboard-shortcuts.md +2 -2
- package/bundled/qc-helper/docs/support/troubleshooting.md +2 -1
- package/bundled/review/DESIGN.md +19 -0
- package/bundled/review/SKILL.md +120 -61
- package/chunks/MaxSizedBox-VI3ROJJA.js +84 -0
- package/chunks/{StandaloneSessionPicker-O6RKBPU4.js → StandaloneSessionPicker-LYXKD2EV.js} +66 -68
- package/chunks/{acp-startup-profiler-RV3IV562.js → acp-startup-profiler-DFVPFQ6C.js} +2 -2
- package/chunks/{acpAgent-HYFVXVDR.js → acpAgent-WN5SRDQO.js} +1317 -542
- package/chunks/agent-K6ECSM64.js +80 -0
- package/chunks/agent-headless-NO4Y2HOE.js +74 -0
- package/chunks/{anthropicContentGenerator-LXUXMOE7.js → anthropicContentGenerator-V2QOGVYD.js} +61 -20
- package/chunks/{artifact-tool-Y5T7GG7F.js → artifact-tool-6K6U7XYJ.js} +4 -4
- package/chunks/{askUserQuestion-2H6747FR.js → askUserQuestion-GD2IJJ7I.js} +4 -4
- package/chunks/bridge-3KJEWDNE.js +90 -0
- package/chunks/{build-RV63TIRH.js → build-S6DO7LMM.js} +1 -1
- package/chunks/{ca-25EDXPFZ.js → ca-6W3SK7OQ.js} +6 -1
- package/chunks/{channel-management-service-G74LFADV.js → channel-management-service-XR7GZSWF.js} +4 -4
- package/chunks/channel-settings-store-HW4FXXUA.js +87 -0
- package/chunks/{channel-worker-group-PTJIJSKC.js → channel-worker-group-XDPTDWTX.js} +9 -5
- package/chunks/{channel-worker-manager-WIMGM2FD.js → channel-worker-manager-YYEHVRRE.js} +9 -5
- package/chunks/{channel-worker-supervisor-KUFTR6P5.js → channel-worker-supervisor-74HTWA2G.js} +5 -4
- package/chunks/{chunk-M5JM7OSF.js → chunk-2DN4J57Y.js} +2 -3
- package/chunks/{chunk-WDSWXQU3.js → chunk-2FAK6PNM.js} +2 -2
- package/chunks/{chunk-BPJSQIJX.js → chunk-2J3OJGTL.js} +0 -2
- package/chunks/{chunk-EPDRMGT4.js → chunk-2LKVPASC.js} +4 -28
- package/chunks/{chunk-PWTZEM3C.js → chunk-2LQTH543.js} +3 -37
- package/chunks/{chunk-PANH4R3B.js → chunk-2N7CODY5.js} +18 -12
- package/chunks/{chunk-ER5LWJR6.js → chunk-2XSLTRFZ.js} +3 -3
- package/chunks/{chunk-6PSLCFQ2.js → chunk-3EFXSQCM.js} +18 -9
- package/chunks/{chunk-HIJQF5B5.js → chunk-3L2SPEBH.js} +1 -1
- package/chunks/{chunk-BIQWWWJN.js → chunk-4G2BISNC.js} +1 -1
- package/chunks/{chunk-B4UMZKMU.js → chunk-52ZSWYEG.js} +1 -1
- package/chunks/{chunk-YAF5VNU7.js → chunk-5KTQXHPY.js} +4 -5
- package/chunks/{chunk-2YZJCM5T.js → chunk-5MKRTI4T.js} +4 -4
- package/chunks/{chunk-DHHOYAPR.js → chunk-5TBMQLGG.js} +7 -7
- package/chunks/{chunk-A4UCTEB5.js → chunk-5WV5S2GT.js} +0 -1
- package/chunks/{chunk-FY3M44RD.js → chunk-5YKDXHUY.js} +3 -3
- package/chunks/{chunk-TF2X2WCT.js → chunk-5ZF5XXTS.js} +2 -2
- package/chunks/{chunk-K4XWPEWB.js → chunk-64LQLPL7.js} +4 -33
- package/chunks/{chunk-B7QDM6Z7.js → chunk-657BH7VM.js} +2 -2
- package/chunks/{chunk-5THCYPLO.js → chunk-65PQENQP.js} +14 -7
- package/chunks/{chunk-J6D3VXCC.js → chunk-6PE7N3A4.js} +17 -6
- package/chunks/{chunk-JZA3JUDJ.js → chunk-6QIGFD5W.js} +1 -1
- package/chunks/{chunk-Z5BLYMZM.js → chunk-6RPMI2AB.js} +6 -6
- package/chunks/{chunk-OHNBB4XR.js → chunk-75GFAX4R.js} +1 -1
- package/chunks/{chunk-BO4XCS7P.js → chunk-75MIQ3LV.js} +20 -85
- package/chunks/{chunk-52O2CIUL.js → chunk-7AEJDLRA.js} +130 -5
- package/chunks/{chunk-BYFNTGKI.js → chunk-7BAU433D.js} +2287 -941
- package/chunks/{chunk-ZE5WPL4I.js → chunk-7DXQIJID.js} +3 -3
- package/chunks/{chunk-ML52PL6O.js → chunk-7I5GTCT4.js} +483 -248
- package/chunks/{chunk-A5L3JMUA.js → chunk-7XATOOE7.js} +18 -4
- package/chunks/{chunk-C3NS4F2Q.js → chunk-A2D5BAVP.js} +1 -1
- package/chunks/{chunk-5I2IWRSH.js → chunk-A3NDJ5SB.js} +2 -2
- package/chunks/{chunk-2JM6GZ5D.js → chunk-A4COXFB3.js} +8 -13
- package/chunks/{chunk-CC4N4M36.js → chunk-AQIDMUGU.js} +1 -1
- package/chunks/{chunk-PJIZUQVC.js → chunk-AZQ3DT76.js} +2 -2
- package/chunks/{chunk-UH3WSE5L.js → chunk-B4AJNNOL.js} +1 -6
- package/chunks/{chunk-BJX6ZSUK.js → chunk-BCZFQXWK.js} +2 -2
- package/chunks/{chunk-SRZ6DXVG.js → chunk-BGTQCTQW.js} +44 -136
- package/chunks/{chunk-PSWQZHEA.js → chunk-BMFALVGQ.js} +1 -1
- package/chunks/{chunk-XHRTVPG2.js → chunk-BNWB5CYE.js} +7 -7
- package/chunks/{chunk-P5V4T7NK.js → chunk-BPZKP57P.js} +11 -3
- package/chunks/{chunk-2OM7GEXO.js → chunk-CAPPWD3X.js} +3 -3
- package/chunks/{chunk-LNURQEMZ.js → chunk-CQL64ESB.js} +7 -7
- package/chunks/{chunk-TOFQCPDC.js → chunk-CVHIL5IG.js} +4 -5
- package/chunks/{chunk-XVNQMZ2I.js → chunk-DGEIYUC3.js} +0 -1
- package/chunks/{chunk-BPZALHVR.js → chunk-DI35ZN7T.js} +1 -1
- package/chunks/{chunk-SQBYH7PX.js → chunk-DZLYR4U3.js} +1 -1
- package/chunks/{chunk-JALU3ZDU.js → chunk-EIF3FXTB.js} +117 -24
- package/chunks/{chunk-TQCBGUHN.js → chunk-EJGJIBRS.js} +5 -5
- package/chunks/{chunk-5U4IPFBR.js → chunk-EVKE2FZL.js} +4 -4
- package/chunks/{chunk-OKY7HXPG.js → chunk-FNMZK765.js} +2 -2
- package/chunks/{chunk-KU5XMLDK.js → chunk-FTD6DP4T.js} +3 -1
- package/chunks/chunk-FYJ7W2PI.js +194 -0
- package/chunks/{chunk-L5UHQJTJ.js → chunk-GATT5TKW.js} +1 -1
- package/chunks/{chunk-MVS3NS2N.js → chunk-GEBV2JGB.js} +28 -5
- package/chunks/{chunk-VAK25FTU.js → chunk-GKX7E4CO.js} +1 -1
- package/chunks/{chunk-LS77BEZP.js → chunk-GLCZKT5V.js} +1 -5
- package/chunks/{chunk-N3FAY5CM.js → chunk-GNR2RNMP.js} +157 -4
- package/chunks/{chunk-YH6G52F2.js → chunk-GXIJHV66.js} +4 -4
- package/chunks/{chunk-HV3G62R6.js → chunk-GZ3RCT54.js} +1 -1
- package/chunks/{chunk-QY5MMZ6O.js → chunk-HMRM2A3U.js} +3 -3
- package/chunks/chunk-HV26XH34.js +319 -0
- package/chunks/{chunk-M4UKFCZ2.js → chunk-J7OACQDE.js} +193 -155
- package/chunks/{chunk-3HBZKBMQ.js → chunk-JFMA7Y5M.js} +5 -5
- package/chunks/{chunk-OJGCZBB7.js → chunk-JHNRZMHI.js} +41 -36
- package/chunks/{chunk-63P4EL5V.js → chunk-JMONIXMJ.js} +1 -1
- package/chunks/{chunk-L26JL52R.js → chunk-JSD33JG6.js} +47 -64
- package/chunks/{chunk-KIUFNBHR.js → chunk-JTV5K7NH.js} +1 -1
- package/chunks/{chunk-PHVR5UUY.js → chunk-JX27F6QS.js} +1 -1
- package/chunks/chunk-JYBU6YUE.js +378 -0
- package/chunks/{chunk-A6UO2C7C.js → chunk-KAMYKP7E.js} +167 -81
- package/chunks/{chunk-LG4GZIVV.js → chunk-KCO4FLFJ.js} +4 -4
- package/chunks/{chunk-2W3OOD4W.js → chunk-L55JWS76.js} +6 -3
- package/chunks/{chunk-RHLZR4E5.js → chunk-LGAOC3ZS.js} +1 -1
- package/chunks/{chunk-DM22XS4K.js → chunk-LO4ROVP4.js} +261 -15
- package/chunks/{chunk-NH6KE4JX.js → chunk-LW3RFMG7.js} +3 -3
- package/chunks/{chunk-J56UI34H.js → chunk-M7OONWYU.js} +2 -2
- package/chunks/{chunk-V6VRAM7B.js → chunk-MHAIJPTD.js} +12 -12
- package/chunks/{chunk-FODK6UMO.js → chunk-MPHPFVKK.js} +0 -2
- package/chunks/{chunk-LZEMEFKY.js → chunk-MR5EAQ5M.js} +1 -1
- package/chunks/{chunk-JESCGQM3.js → chunk-NAVJD2PQ.js} +8 -7
- package/chunks/{chunk-H5FFA6TH.js → chunk-NOKIVHOL.js} +16 -3
- package/chunks/{chunk-6OUGMXDC.js → chunk-NWNEANAT.js} +7 -7
- package/chunks/{chunk-B6ZJ7SI6.js → chunk-OCESJA77.js} +391 -328
- package/chunks/chunk-OCPBI7J5.js +18 -0
- package/chunks/{chunk-E5TUC6CA.js → chunk-OKF7JF3R.js} +3 -3
- package/chunks/{chunk-2Q3OT4OV.js → chunk-P4WOAOJW.js} +141 -64
- package/chunks/{chunk-4M377AZG.js → chunk-PB3MBFKG.js} +6 -6
- package/chunks/{chunk-QPDRAXDJ.js → chunk-PLDQBIO6.js} +1 -1
- package/chunks/{chunk-FNQ6T3CV.js → chunk-PONHVBRT.js} +10 -7
- package/chunks/{chunk-RWS5VYWC.js → chunk-PT722TDT.js} +267 -378
- package/chunks/chunk-Q43KPN7X.js +2196 -0
- package/chunks/{chunk-VDDGDZMA.js → chunk-QHWCP53L.js} +14 -7
- package/chunks/{chunk-SASBXAQL.js → chunk-QIZKCVM3.js} +4 -4
- package/chunks/{chunk-32MVHM4T.js → chunk-RCUQIPTN.js} +1 -1
- package/chunks/{chunk-6FGBXPWM.js → chunk-RPLGZJV2.js} +38 -44
- package/chunks/{chunk-3IXOIAKE.js → chunk-S4WJVPZW.js} +18 -6
- package/chunks/{chunk-6AM5D4ME.js → chunk-S6LOFUVP.js} +0 -12
- package/chunks/{chunk-INADJJGW.js → chunk-S7W2GKIO.js} +0 -2
- package/chunks/{chunk-MUP3T3AD.js → chunk-SGFT55XI.js} +1 -35
- package/chunks/{chunk-VYPFXUCB.js → chunk-SZ3KHTDR.js} +1 -1
- package/chunks/chunk-T26EAKDL.js +13 -0
- package/chunks/{chunk-3MSHSCSN.js → chunk-T2QMKU3R.js} +79 -1
- package/chunks/{chunk-VFSJ5VRH.js → chunk-T3O2B4XO.js} +3 -3
- package/chunks/{chunk-MSLKI6C2.js → chunk-T4TXDL7G.js} +32 -21
- package/chunks/{chunk-E5WH5O3C.js → chunk-TBBV36Y4.js} +4 -4
- package/chunks/{chunk-VV6XU5L7.js → chunk-TCIFAA7K.js} +16 -11
- package/chunks/{chunk-DN6ZX5AY.js → chunk-TDL6LB4K.js} +46 -11
- package/chunks/{chunk-W4CQXHT6.js → chunk-TFRMVU6R.js} +1 -1
- package/chunks/{chunk-GDIPH4JY.js → chunk-TV64SXKD.js} +6 -6
- package/chunks/{chunk-FQK6JAFG.js → chunk-U3E3UQAA.js} +4 -4
- package/chunks/{chunk-7FZEBPKS.js → chunk-UBEPNVDI.js} +23 -18
- package/chunks/{chunk-NL7LTRLR.js → chunk-UHUSJ6X7.js} +29 -68
- package/chunks/{chunk-ZOIFNCKL.js → chunk-UPUG4GXM.js} +3 -23
- package/chunks/{chunk-6GMVPFB2.js → chunk-UWMLWVCA.js} +19 -6
- package/chunks/{chunk-U7TXFVUN.js → chunk-VCPIZRYH.js} +118 -95
- package/chunks/{chunk-LNARWLZQ.js → chunk-VWOOBLTY.js} +2 -2
- package/chunks/{chunk-I7XZ3RY5.js → chunk-VYOXCEPJ.js} +1 -1
- package/chunks/{chunk-USTWD7QV.js → chunk-W4MIWP6M.js} +26 -16
- package/chunks/{chunk-DLWL3Z7A.js → chunk-WBSMNTSV.js} +3 -3
- package/chunks/{chunk-G4WFQUYQ.js → chunk-WUZ7H6DP.js} +1 -1
- package/chunks/{chunk-2JZBVYTU.js → chunk-WZRWHXFE.js} +1 -8
- package/chunks/{chunk-DM4Q4JJH.js → chunk-X5WNMMIA.js} +22506 -33611
- package/chunks/{chunk-MK7VQDN3.js → chunk-XBYYDKAZ.js} +7 -6
- package/chunks/{chunk-COH43MRJ.js → chunk-XCGIMOLN.js} +27 -1
- package/chunks/{chunk-BRRAJXPA.js → chunk-XFZYFU3I.js} +1 -1
- package/chunks/{chunk-3QMGYBFN.js → chunk-XWWKIXVD.js} +1 -80
- package/chunks/{chunk-3SJ43L4W.js → chunk-XZC5VLBZ.js} +2 -0
- package/chunks/{chunk-UUUTRMI2.js → chunk-Y4IHBGBP.js} +1 -1
- package/chunks/{chunk-PR75REBZ.js → chunk-Y6AXW2OG.js} +12 -82
- package/chunks/{chunk-IPUUTYMV.js → chunk-YDLJGZHL.js} +1 -1
- package/chunks/{chunk-3JAQDSXN.js → chunk-YGF33UXG.js} +70 -8
- package/chunks/chunk-Z4X5MTRT.js +133 -0
- package/chunks/{chunk-UW5EOVUN.js → chunk-ZBVS26BY.js} +4 -4
- package/chunks/{chunk-ZD6UTE4A.js → chunk-ZHBO7WVX.js} +1 -1
- package/chunks/{chunk-HTO4JFDZ.js → chunk-ZPJWUGCS.js} +0 -1
- package/chunks/{chunk-66RMLJHC.js → chunk-ZURDMIDR.js} +355 -143
- package/chunks/{computer-use-DOFAHZAB.js → computer-use-ZTIDHMMA.js} +48 -50
- package/chunks/{config-utils-VFQXVGNR.js → config-utils-NYSXDMEQ.js} +4 -4
- package/chunks/contextCommand-2PIEU37Z.js +79 -0
- package/chunks/core-runtime-3XEYLQFK.js +133 -0
- package/chunks/{create-sub-session-7543K2QA.js → create-sub-session-R76FVXCI.js} +45 -47
- package/chunks/{create-sub-session-IWW2IZ2T.js → create-sub-session-SBYUMSSS.js} +3 -3
- package/chunks/{cron-create-YIID5XAW.js → cron-create-2QK6TCEC.js} +6 -6
- package/chunks/{cron-delete-ZVHYCEP2.js → cron-delete-FDCDFYMG.js} +5 -5
- package/chunks/{cron-list-XEGS463Q.js → cron-list-XN3WVBTP.js} +6 -6
- package/chunks/{daemon-VOMQW7KZ.js → daemon-Q2AB5Z23.js} +167 -15
- package/chunks/daemon-status-provider-3XJI6CAL.js +89 -0
- package/chunks/daemon-trust-policy-ILUDTLHD.js +84 -0
- package/chunks/daemon-trust-policy-monitor-HS3PKKRO.js +171 -0
- package/chunks/{de-HGRCYDEJ.js → de-SY6O76BF.js} +6 -1
- package/chunks/deferred-core-runtime-X4QV662U.js +88 -0
- package/chunks/dist-BSTVRPMT.js +4227 -0
- package/chunks/{dist-NNVBBOGU.js → dist-DOLYHMXE.js} +2 -2
- package/chunks/{dist-RTJFMNEZ.js → dist-HVRQ2CFL.js} +271 -11
- package/chunks/{dist-ANLAT3GS.js → dist-IXQEQWRG.js} +2 -1
- package/chunks/{dist-BRB6EXK4.js → dist-SSU66DM4.js} +3 -3
- package/chunks/{dist-KTYYJ2C5.js → dist-SV7Q3AWJ.js} +1 -1
- package/chunks/{dist-K6Y4E7FX.js → dist-YGBBMK3Z.js} +1 -1
- package/chunks/earlyInputCapture-XKLZT7ZD.js +81 -0
- package/chunks/{edit-RIEOJWKB.js → edit-HHGIOTQ2.js} +47 -49
- package/chunks/{en-MTWBNGDO.js → en-NBK3JKCE.js} +9 -1
- package/chunks/{enter-worktree-OGK5FQ3R.js → enter-worktree-ZN7PUQ46.js} +47 -49
- package/chunks/{enterPlanMode-IWZYALIB.js → enterPlanMode-EIFIDSIV.js} +47 -49
- package/chunks/{environment-VZ7BRI4Q.js → environment-XXQ75D2Q.js} +47 -49
- package/chunks/errors-4GMVU7CK.js +87 -0
- package/chunks/esm-K5FARBNI.js +5548 -0
- package/chunks/{exit-worktree-4TEYVIVP.js → exit-worktree-GXMI4ATY.js} +47 -49
- package/chunks/exitPlanMode-34UVY7M6.js +72 -0
- package/chunks/{fast-path-HYE7IFEV.js → fast-path-VPIVA7L6.js} +13 -3
- package/chunks/{fr-45RLL55O.js → fr-4KG5V7UT.js} +6 -1
- package/chunks/{gemini-NGRQX3YJ.js → gemini-4BWIK4WD.js} +103 -103
- package/chunks/{geminiContentGenerator-FQHPFZSR.js → geminiContentGenerator-3XVV5MSS.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-TZ2ABCJG.js} +47 -49
- package/chunks/{grep-RKWVROCW.js → grep-BEF463NA.js} +49 -50
- package/chunks/handleAutoUpdate-L6ERF36Y.js +80 -0
- package/chunks/i18n-FMM5FDXR.js +96 -0
- package/chunks/{image-gen-WIEM7KZA.js → image-gen-HHVLF7HS.js} +12 -12
- package/chunks/initializer-625TIAIO.js +85 -0
- package/chunks/installationInfo-6AM4I2Y3.js +79 -0
- package/chunks/{ja-B7DF7DFG.js → ja-F3GSQXMF.js} +6 -1
- package/chunks/{keychain-token-storage-MDTG3WRM.js → keychain-token-storage-72IYCAZV.js} +3 -3
- package/chunks/lib-RUF3WZA6.js +9 -0
- package/chunks/list-L2GA674Y.js +88 -0
- package/chunks/{list-agents-5KJJHR6I.js → list-agents-R6KDXQR3.js} +3 -3
- package/chunks/loadedSettingsAdapter-SPUTNKAV.js +82 -0
- package/chunks/{loggingContentGenerator-WGM27QAW.js → loggingContentGenerator-LKOF7XI7.js} +31 -30
- package/chunks/{loop-wakeup-FXKNNYSY.js → loop-wakeup-3IQKCYAH.js} +7 -7
- package/chunks/{ls-NTK6VOQJ.js → ls-DKZ37A7N.js} +5 -5
- package/chunks/{lsp-2JI24STP.js → lsp-QNWN7KN3.js} +3 -3
- package/chunks/{managed-npm-update-JQ2CG3RH.js → managed-npm-update-ACQGGIN5.js} +46 -48
- package/chunks/mcp-SZLHKFJW.js +82 -0
- package/chunks/{monitor-7FEWXX5F.js → monitor-DF52UVHI.js} +47 -49
- package/chunks/nonInteractiveCli-5T7KYKLK.js +144 -0
- package/chunks/{notebook-edit-JGJV2K6J.js → notebook-edit-FCWS4XVN.js} +47 -49
- package/chunks/{openaiContentGenerator-JPVXDTAO.js → openaiContentGenerator-7LDK3DCJ.js} +25 -27
- package/chunks/pidfile-6ERW3DF4.js +85 -0
- package/chunks/process-registry-2CHQBXH5.js +157 -0
- package/chunks/{processUtils-V2LCK6T6.js → processUtils-COKZAMUP.js} +2 -2
- package/chunks/{pt-22Q3FP73.js → pt-EQ33KWEN.js} +6 -1
- package/chunks/{qwenContentGenerator-TICV2W2Z.js → qwenContentGenerator-TKWUMR7N.js} +51 -53
- package/chunks/{qwenOAuth2-XGFI5XJG.js → qwenOAuth2-7HMU47SF.js} +10 -10
- package/chunks/read-file-X6DRC574.js +29 -0
- package/chunks/{read-mcp-resource-4DKQWGHD.js → read-mcp-resource-GFTWYXMK.js} +4 -4
- package/chunks/{record-artifact-RQKFYO5B.js → record-artifact-XAMSFSW4.js} +3 -3
- package/chunks/resumeHistoryUtils-PFPM2GWM.js +90 -0
- package/chunks/ripGrep-OWV2IVJC.js +72 -0
- package/chunks/{ru-FZCNZHDC.js → ru-7OZAUKGG.js} +6 -1
- package/chunks/{run-qwen-serve-3VCV4I7E.js → run-qwen-serve-TSTCO4XE.js} +917 -249
- package/chunks/{runtime-AXJWIEDU.js → runtime-DAUPSUKI.js} +55 -57
- package/chunks/{scheduler-RS2I6RU5.js → scheduler-KMADMT26.js} +45 -47
- package/chunks/{sdk-exporters-grpc-AK3LGHNO.js → sdk-exporters-grpc-54L4LS5L.js} +4 -4
- package/chunks/{sdk-exporters-http-FS6ZV7MF.js → sdk-exporters-http-WO556XNU.js} +7 -7
- package/chunks/{sdk-impl-7FZSCSXB.js → sdk-impl-LPAVACSF.js} +10 -10
- package/chunks/{send-message-Q6OOR6BR.js → send-message-SAWK4DZX.js} +6 -6
- package/chunks/serve-NNRWS6F4.js +88 -0
- package/chunks/{server-HRZ23U7M.js → server-WEH7DVCH.js} +3304 -842
- package/chunks/{session-7XHZKTVV.js → session-WXC56V2I.js} +94 -94
- package/chunks/{settings-7ZGZDXAS.js → settings-DJDXFDZ3.js} +54 -56
- package/chunks/shell-JN5VRQXD.js +82 -0
- package/chunks/{skill-LIWXNLDW.js → skill-SGXPKJCS.js} +20 -22
- package/chunks/skill-settings-VJ5PDMZI.js +90 -0
- package/chunks/spawnChannel-ETMJW7YX.js +81 -0
- package/chunks/standalone-update-MK3Z7KBI.js +91 -0
- package/chunks/{startInteractiveUI-IW3CSKHA.js → startInteractiveUI-ZCGIXPGT.js} +715 -373
- package/chunks/{syntheticOutput-I3757IWH.js → syntheticOutput-355CB6CJ.js} +4 -4
- package/chunks/{task-create-N7WQSGYA.js → task-create-INGWNUG4.js} +10 -10
- package/chunks/{task-list-FOPULZEP.js → task-list-5XNNGTF4.js} +7 -7
- package/chunks/{task-stop-H6RHXFVQ.js → task-stop-4ROAOBXH.js} +3 -3
- package/chunks/{task-update-M57TFZJT.js → task-update-CRK5VWWZ.js} +10 -10
- package/chunks/{team-create-O2FROQ4R.js → team-create-QQGAJG7P.js} +49 -51
- package/chunks/{team-delete-QE2UXJL7.js → team-delete-S2RCXA4P.js} +7 -7
- package/chunks/{team-plan-approval-Q6WDBXTQ.js → team-plan-approval-RT7Q5R6O.js} +47 -49
- package/chunks/theme-manager-EEWIQJ7J.js +76 -0
- package/chunks/{todoWrite-VQ7FKOHL.js → todoWrite-7WM3VDMY.js} +7 -7
- package/chunks/{tool-search-APECNQ3Z.js → tool-search-Z3Z4AYKP.js} +19 -21
- package/chunks/total-session-admission-44JKRWQD.js +84 -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-X2JEIO57.js +94 -0
- package/chunks/{update-relaunch-ON5MDJQG.js → update-relaunch-VWNPYDIP.js} +5 -5
- package/chunks/updateCheck-KAQH67DV.js +91 -0
- package/chunks/useAutoAcceptIndicator-JH6BCF7S.js +92 -0
- package/chunks/{validateNonInterActiveAuth-JBLKBKRD.js → validateNonInterActiveAuth-GIUJ2UFS.js} +88 -88
- package/chunks/{version-LTNUBQJY.js → version-BGLYIJUY.js} +1 -1
- package/chunks/{web-fetch-L5UTI53V.js → web-fetch-OTDU4VQF.js} +19 -21
- package/chunks/{web-search-KM33JOS3.js → web-search-FP6SIHPR.js} +13 -13
- package/chunks/{workflow-K7FAWV77.js → workflow-YCIVBYSB.js} +48 -50
- package/chunks/workspace-providers-status-S35YAIUS.js +85 -0
- package/chunks/{workspace-registration-store-6TGVDJV5.js → workspace-registration-store-OTMS3H4C.js} +1 -1
- package/chunks/workspace-registry-O63R6IZ4.js +92 -0
- package/chunks/workspace-service-M6LLHKJ5.js +99 -0
- package/chunks/workspace-skills-status-C2V7BAIS.js +85 -0
- package/chunks/workspace-trust-reconciler-IBUPOUJN.js +345 -0
- package/chunks/write-file-3BZC3EAE.js +72 -0
- package/chunks/xterm-headless-NTYVIBT3.js +3475 -0
- package/chunks/{zh-LUIGBD55.js → zh-H3YDK5QW.js} +9 -1
- package/chunks/{zh-TW-F5KG2IYD.js → zh-TW-JYCP7XUA.js} +9 -1
- package/chunks/zoom-image-TZ6S2O57.js +351 -0
- package/cli.js +13 -13
- package/locales/ca.js +7 -2
- package/locales/de.js +7 -2
- package/locales/en.js +10 -2
- package/locales/fr.js +7 -2
- package/locales/ja.js +7 -2
- package/locales/pt.js +7 -2
- package/locales/ru.js +7 -2
- package/locales/zh-TW.js +10 -2
- package/locales/zh.js +10 -2
- package/package.json +5 -4
- package/web-shell/assets/{arc-BbHijhiN.js → arc-75-Wdeo3.js} +1 -1
- package/web-shell/assets/{architectureDiagram-3BPJPVTR-Cb4B_JD0.js → architectureDiagram-3BPJPVTR-FKeXQbyP.js} +1 -1
- package/web-shell/assets/{blockDiagram-GPEHLZMM-Dsjlh3H-.js → blockDiagram-GPEHLZMM-CY0vc-A3.js} +1 -1
- package/web-shell/assets/{c4Diagram-AAUBKEIU-Cp5AeR4U.js → c4Diagram-AAUBKEIU-CNP-A-8u.js} +1 -1
- package/web-shell/assets/channel-DPYMT76A.js +1 -0
- package/web-shell/assets/{chunk-2J33WTMH-CLcY7W2e.js → chunk-2J33WTMH-GybS4Gii.js} +1 -1
- package/web-shell/assets/{chunk-4BX2VUAB-BUhvY2LR.js → chunk-4BX2VUAB-02H91V8v.js} +1 -1
- package/web-shell/assets/{chunk-55IACEB6-kDIFC_71.js → chunk-55IACEB6-D3M-2VT6.js} +1 -1
- package/web-shell/assets/{chunk-727SXJPM-CIBO15f2.js → chunk-727SXJPM-CCu29u4H.js} +1 -1
- package/web-shell/assets/{chunk-AQP2D5EJ-BJ_T_slV.js → chunk-AQP2D5EJ-CaFKWgrn.js} +1 -1
- package/web-shell/assets/{chunk-FMBD7UC4-BEkW35J8.js → chunk-FMBD7UC4-ZZpPqIwQ.js} +1 -1
- package/web-shell/assets/{chunk-ND2GUHAM-GGPxofay.js → chunk-ND2GUHAM-D22DqGs8.js} +1 -1
- package/web-shell/assets/{chunk-QZHKN3VN-Bifllrb6.js → chunk-QZHKN3VN-Bu85S0fw.js} +1 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK--JstsIgL.js +1 -0
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2--JstsIgL.js +1 -0
- package/web-shell/assets/{cose-bilkent-S5V4N54A-C-Add_Dp.js → cose-bilkent-S5V4N54A-f1CK1Gwe.js} +1 -1
- package/web-shell/assets/{dagre-BM42HDAG-B7MfwNq2.js → dagre-BM42HDAG-D0Ow8F_n.js} +1 -1
- package/web-shell/assets/{diagram-2AECGRRQ-CY_0zuDz.js → diagram-2AECGRRQ-BPrmTWp8.js} +1 -1
- package/web-shell/assets/{diagram-5GNKFQAL-VyYSbCgA.js → diagram-5GNKFQAL-HccuFAzy.js} +1 -1
- package/web-shell/assets/{diagram-KO2AKTUF-CBiIZ2PL.js → diagram-KO2AKTUF-BrS76mbA.js} +1 -1
- package/web-shell/assets/{diagram-LMA3HP47-BL3CrVOx.js → diagram-LMA3HP47-V7T9lU-5.js} +1 -1
- package/web-shell/assets/{diagram-OG6HWLK6-CZUPx96P.js → diagram-OG6HWLK6-DKidyJMR.js} +1 -1
- package/web-shell/assets/{erDiagram-TEJ5UH35-B81xHr1-.js → erDiagram-TEJ5UH35-DBadZIkp.js} +1 -1
- package/web-shell/assets/{flowDiagram-I6XJVG4X-EZWhir-J.js → flowDiagram-I6XJVG4X-BymfqdNJ.js} +1 -1
- package/web-shell/assets/{ganttDiagram-6RSMTGT7-CVFSuIAg.js → ganttDiagram-6RSMTGT7-DOw340jf.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-PVQCEYII-C1H2uQDv.js → gitGraphDiagram-PVQCEYII-_8EiD8sl.js} +1 -1
- package/web-shell/assets/{index-BYo99NBH.js → index-CKIadvET.js} +1 -1
- package/web-shell/assets/index-D1eXNRHe.js +1389 -0
- package/web-shell/assets/index-DVLD4CQq.css +5 -0
- package/web-shell/assets/{infoDiagram-5YYISTIA-BwyFMlF8.js → infoDiagram-5YYISTIA-D61KYQBu.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-CQ7Yhn2Y.js → ishikawaDiagram-YF4QCWOH-CsiXSpNx.js} +1 -1
- package/web-shell/assets/{journeyDiagram-JHISSGLW-CJn2sf0l.js → journeyDiagram-JHISSGLW-Sdfionyh.js} +1 -1
- package/web-shell/assets/{kanban-definition-UN3LZRKU-DaNRqwVN.js → kanban-definition-UN3LZRKU-C3WI3Cnl.js} +1 -1
- package/web-shell/assets/{linear-DCKODZe2.js → linear-Dpigcc62.js} +1 -1
- package/web-shell/assets/{mermaid.core-CTGJOk27.js → mermaid.core-Ct97pqgW.js} +5 -5
- package/web-shell/assets/{mindmap-definition-RKZ34NQL-BKU3_3rg.js → mindmap-definition-RKZ34NQL-BzeaN0rB.js} +1 -1
- package/web-shell/assets/{pieDiagram-4H26LBE5-COcwBJ82.js → pieDiagram-4H26LBE5-CvjgcbVD.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-W4KKPZXB-CQnQ443x.js → quadrantDiagram-W4KKPZXB-BUzgTNdH.js} +1 -1
- package/web-shell/assets/{requirementDiagram-4Y6WPE33-CZ2oj5cD.js → requirementDiagram-4Y6WPE33-B7zKlgUQ.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-5OEKKPKP-BxAv5mNu.js → sankeyDiagram-5OEKKPKP-Bb9CQgrT.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-3UESZ5HK-CztaySPs.js → sequenceDiagram-3UESZ5HK-DJ6V7itG.js} +1 -1
- package/web-shell/assets/{stateDiagram-AJRCARHV-CTQT1oGD.js → stateDiagram-AJRCARHV-IImflERY.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-CYI_YoNR.js +1 -0
- package/web-shell/assets/{timeline-definition-PNZ67QCA-K9Mkex5A.js → timeline-definition-PNZ67QCA-6Q_uWHKh.js} +1 -1
- package/web-shell/assets/{vennDiagram-CIIHVFJN-B2rVIw76.js → vennDiagram-CIIHVFJN-TmyKyjwv.js} +1 -1
- package/web-shell/assets/{wardley-L42UT6IY-Z1w2JR4M.js → wardley-L42UT6IY-CRh9uiPv.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-YWT4CUSO-CIX9aKXf.js → wardleyDiagram-YWT4CUSO-59TKAW8w.js} +1 -1
- package/web-shell/assets/{xychartDiagram-2RQKCTM6-CI9DLIKB.js → xychartDiagram-2RQKCTM6-GCSUIK2L.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-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/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/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/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,25 +2,25 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
t
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TCIFAA7K.js";
|
|
6
6
|
import {
|
|
7
7
|
computeThresholds,
|
|
8
8
|
getCoreSystemPrompt,
|
|
9
9
|
resolveInteractionMode
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-X5WNMMIA.js";
|
|
11
11
|
import {
|
|
12
12
|
buildSkillLlmContent
|
|
13
13
|
} from "./chunk-JCW2R7WC.js";
|
|
14
14
|
import {
|
|
15
15
|
DiscoveredMCPTool,
|
|
16
16
|
uiTelemetryService
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import {
|
|
19
|
-
DEFAULT_TOKEN_LIMIT
|
|
20
|
-
} from "./chunk-UW5EOVUN.js";
|
|
17
|
+
} from "./chunk-PT722TDT.js";
|
|
21
18
|
import {
|
|
22
19
|
ToolNames
|
|
23
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-Y6AXW2OG.js";
|
|
21
|
+
import {
|
|
22
|
+
DEFAULT_TOKEN_LIMIT
|
|
23
|
+
} from "./chunk-ZBVS26BY.js";
|
|
24
24
|
import {
|
|
25
25
|
init_esbuild_shims
|
|
26
26
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -115,6 +115,13 @@ async function collectContextData(config, showDetails) {
|
|
|
115
115
|
}
|
|
116
116
|
const memoryContent = config.getUserMemory();
|
|
117
117
|
const memoryFiles = parseMemoryFiles(memoryContent);
|
|
118
|
+
const autoMemoryPrompt = config.getAutoMemoryPrompt();
|
|
119
|
+
if (autoMemoryPrompt) {
|
|
120
|
+
memoryFiles.push({
|
|
121
|
+
path: t("auto memory"),
|
|
122
|
+
tokens: estimateTokens(autoMemoryPrompt)
|
|
123
|
+
});
|
|
124
|
+
}
|
|
118
125
|
const memoryFilesTokens = memoryFiles.reduce((sum, f) => sum + f.tokens, 0);
|
|
119
126
|
const skillTool = allTools.find((tool) => tool.name === ToolNames.SKILL);
|
|
120
127
|
const skillToolDefinitionTokens = skillTool ? estimateTokens(JSON.stringify(skillTool.schema)) : 0;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
HistoryReplayer
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-LO4ROVP4.js";
|
|
6
6
|
import {
|
|
7
7
|
ChannelDeliveryError,
|
|
8
8
|
MAX_CHANNEL_DELIVERY_TEXT_LENGTH
|
|
@@ -11,12 +11,13 @@ import {
|
|
|
11
11
|
redactLogCredentials
|
|
12
12
|
} from "./chunk-M5GB774H.js";
|
|
13
13
|
import {
|
|
14
|
-
getResponseText
|
|
15
|
-
|
|
14
|
+
getResponseText,
|
|
15
|
+
parseGoalSnapshotV2
|
|
16
|
+
} from "./chunk-X5WNMMIA.js";
|
|
16
17
|
import {
|
|
17
18
|
MAX_CHANNEL_DELIVERY_NAME_LENGTH,
|
|
18
19
|
MAX_CHANNEL_DELIVERY_TARGET_ID_LENGTH
|
|
19
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-PONHVBRT.js";
|
|
20
21
|
import {
|
|
21
22
|
init_esbuild_shims
|
|
22
23
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -498,7 +499,16 @@ function parseTranscriptReplayState(replay, logger) {
|
|
|
498
499
|
);
|
|
499
500
|
}
|
|
500
501
|
const cumulativeUsage = isCumulativeUsage(replay["cumulativeUsage"]) ? { ...replay["cumulativeUsage"] } : createReplayCumulativeUsage();
|
|
501
|
-
|
|
502
|
+
const rawGoalState = replay["goalState"];
|
|
503
|
+
const goalState = rawGoalState === void 0 ? void 0 : parseGoalSnapshotV2(rawGoalState);
|
|
504
|
+
if (logger && rawGoalState !== void 0 && !goalState) {
|
|
505
|
+
logger.warn("[transcript] replay state dropped a malformed Goal state");
|
|
506
|
+
}
|
|
507
|
+
return {
|
|
508
|
+
pendingToolCalls,
|
|
509
|
+
cumulativeUsage,
|
|
510
|
+
...goalState ? { goalState } : {}
|
|
511
|
+
};
|
|
502
512
|
}
|
|
503
513
|
__name(parseTranscriptReplayState, "parseTranscriptReplayState");
|
|
504
514
|
function replayContext(sessionId, updates, cumulativeUsage, config) {
|
|
@@ -580,7 +590,8 @@ async function replayTranscriptRecordPage({
|
|
|
580
590
|
const replayPageState = await replayer.replayPage(page.records, {
|
|
581
591
|
pendingToolCalls: page.direction === "backward" ? [] : state.pendingToolCalls,
|
|
582
592
|
finalizeDangling: page.direction === "backward" || !page.hasMore,
|
|
583
|
-
gaps: page.gaps
|
|
593
|
+
gaps: page.gaps,
|
|
594
|
+
...state.goalState ? { goalState: state.goalState } : {}
|
|
584
595
|
});
|
|
585
596
|
replayState = replayPageState.replay;
|
|
586
597
|
} catch (error) {
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
loadSettings
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EIF3FXTB.js";
|
|
6
6
|
import {
|
|
7
7
|
getCurrentLanguage
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TCIFAA7K.js";
|
|
9
9
|
import {
|
|
10
10
|
isWorkspaceTrusted
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-Q43KPN7X.js";
|
|
12
12
|
import {
|
|
13
13
|
require_strip_json_comments
|
|
14
14
|
} from "./chunk-ALGGS7UH.js";
|
|
@@ -26,14 +26,14 @@ import {
|
|
|
26
26
|
hashMcpServerConfig,
|
|
27
27
|
isGatedMcpScope,
|
|
28
28
|
normalizeClaudeMcpServer
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-X5WNMMIA.js";
|
|
30
30
|
import {
|
|
31
31
|
atomicWriteFile
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-7XATOOE7.js";
|
|
33
33
|
import {
|
|
34
34
|
Storage,
|
|
35
35
|
getErrorMessage
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-UHUSJ6X7.js";
|
|
37
37
|
import {
|
|
38
38
|
init_esbuild_shims
|
|
39
39
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -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-DZLYR4U3.js";
|
|
7
6
|
import {
|
|
8
7
|
getMeter,
|
|
9
8
|
isTelemetrySdkInitialized,
|
|
10
9
|
truncateSpanError
|
|
11
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BGTQCTQW.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-S7W2GKIO.js";
|
|
24
20
|
import {
|
|
25
21
|
FatalConfigError,
|
|
26
22
|
createDebugLogger,
|
|
27
23
|
formatTraceparent,
|
|
28
24
|
getActiveSpanTraceContext
|
|
29
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-UHUSJ6X7.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();
|
|
@@ -741,63 +735,6 @@ function addUserPromptAttributes(config, span, promptText) {
|
|
|
741
735
|
});
|
|
742
736
|
}
|
|
743
737
|
__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
738
|
function addToolArgumentsAttributes(config, span, argumentsValue) {
|
|
802
739
|
if (!areSensitiveSpanAttributesEnabled(config)) return;
|
|
803
740
|
writeJsonAttribute(
|
|
@@ -836,11 +773,6 @@ function writeJsonAttribute(config, span, key, value, requireObject = false) {
|
|
|
836
773
|
__name(writeJsonAttribute, "writeJsonAttribute");
|
|
837
774
|
|
|
838
775
|
// 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
776
|
var DEFAULT_TELEMETRY_TARGET = "local" /* LOCAL */;
|
|
845
777
|
var DEFAULT_OTLP_ENDPOINT = "http://localhost:4317";
|
|
846
778
|
|
|
@@ -981,6 +913,16 @@ function parseSensitiveSpanAttributeMaxLengthSetting(settingName, value) {
|
|
|
981
913
|
return value;
|
|
982
914
|
}
|
|
983
915
|
__name(parseSensitiveSpanAttributeMaxLengthSetting, "parseSensitiveSpanAttributeMaxLengthSetting");
|
|
916
|
+
function parseTelemetryUserId(source, value) {
|
|
917
|
+
if (value === void 0) return void 0;
|
|
918
|
+
if (typeof value !== "string") {
|
|
919
|
+
throw new FatalConfigError(
|
|
920
|
+
`Invalid ${source}: must be a string, got ${typeof value}`
|
|
921
|
+
);
|
|
922
|
+
}
|
|
923
|
+
return value.trim() || void 0;
|
|
924
|
+
}
|
|
925
|
+
__name(parseTelemetryUserId, "parseTelemetryUserId");
|
|
984
926
|
async function resolveTelemetrySettings(options) {
|
|
985
927
|
const argv = options.argv ?? {};
|
|
986
928
|
const env = options.env ?? {};
|
|
@@ -1008,6 +950,10 @@ async function resolveTelemetrySettings(options) {
|
|
|
1008
950
|
);
|
|
1009
951
|
}
|
|
1010
952
|
const logPrompts = argv.telemetryLogPrompts ?? parseBooleanEnvFlag(env["QWEN_TELEMETRY_LOG_PROMPTS"]) ?? settings.logPrompts;
|
|
953
|
+
const userId = parseTelemetryUserId(
|
|
954
|
+
"QWEN_TELEMETRY_USER_ID",
|
|
955
|
+
env["QWEN_TELEMETRY_USER_ID"]
|
|
956
|
+
) ?? parseTelemetryUserId("telemetry.userId", settings.userId);
|
|
1011
957
|
const includeSensitiveSpanAttributes = parseBooleanEnvFlag(
|
|
1012
958
|
env["QWEN_TELEMETRY_INCLUDE_SENSITIVE_SPAN_ATTRIBUTES"]
|
|
1013
959
|
) ?? settings.includeSensitiveSpanAttributes ?? false;
|
|
@@ -1058,6 +1004,7 @@ async function resolveTelemetrySettings(options) {
|
|
|
1058
1004
|
otlpLogsEndpoint,
|
|
1059
1005
|
otlpMetricsEndpoint,
|
|
1060
1006
|
logPrompts,
|
|
1007
|
+
userId,
|
|
1061
1008
|
includeSensitiveSpanAttributes,
|
|
1062
1009
|
sensitiveSpanAttributeMaxLength,
|
|
1063
1010
|
outfile,
|
|
@@ -1070,21 +1017,16 @@ __name(resolveTelemetrySettings, "resolveTelemetrySettings");
|
|
|
1070
1017
|
|
|
1071
1018
|
export {
|
|
1072
1019
|
parseBooleanEnvFlag,
|
|
1073
|
-
parseTelemetryTargetValue,
|
|
1074
1020
|
resolveTelemetrySettings,
|
|
1075
1021
|
DAEMON_TRACEPARENT_META_KEY,
|
|
1076
1022
|
DAEMON_TRACESTATE_META_KEY,
|
|
1077
1023
|
hashDaemonWorkspace,
|
|
1078
1024
|
withDaemonSpan,
|
|
1079
1025
|
withDaemonRequestSpan,
|
|
1080
|
-
withDaemonBridgeSpan,
|
|
1081
1026
|
recordDaemonHttpResponse,
|
|
1082
1027
|
addDaemonRequestAttribute,
|
|
1083
1028
|
recordDaemonError,
|
|
1084
1029
|
emitDaemonLog,
|
|
1085
|
-
captureDaemonTelemetryContext,
|
|
1086
|
-
runWithDaemonTelemetryContext,
|
|
1087
|
-
injectDaemonTraceContext,
|
|
1088
1030
|
extractDaemonTraceContext,
|
|
1089
1031
|
createDaemonBridgeTelemetry,
|
|
1090
1032
|
initializeDaemonMetrics,
|
|
@@ -1101,16 +1043,9 @@ export {
|
|
|
1101
1043
|
registerDaemonEventLoopLagGauge,
|
|
1102
1044
|
registerAcpEventLoopLagGauge,
|
|
1103
1045
|
areSensitiveSpanAttributesEnabled,
|
|
1104
|
-
truncateContent,
|
|
1105
1046
|
addUserPromptAttributes,
|
|
1106
|
-
addSystemPromptAttributes,
|
|
1107
|
-
addToolSchemaAttributes,
|
|
1108
|
-
addModelOutputAttributes,
|
|
1109
|
-
addToolInputAttributes,
|
|
1110
|
-
addToolResultAttributes,
|
|
1111
1047
|
addToolArgumentsAttributes,
|
|
1112
1048
|
addToolCallResultAttributes,
|
|
1113
|
-
TelemetryTarget,
|
|
1114
1049
|
DEFAULT_TELEMETRY_TARGET,
|
|
1115
1050
|
DEFAULT_OTLP_ENDPOINT
|
|
1116
1051
|
};
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
sanitizeFilenameForDisplay
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YDLJGZHL.js";
|
|
6
6
|
import {
|
|
7
7
|
t
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TCIFAA7K.js";
|
|
9
9
|
import {
|
|
10
10
|
fetchGitDiff,
|
|
11
11
|
findProviderByCredentials,
|
|
12
12
|
resolveMetadataKey
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-X5WNMMIA.js";
|
|
14
14
|
import {
|
|
15
15
|
init_esbuild_shims
|
|
16
16
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -274,6 +274,115 @@ var diffCommand = {
|
|
|
274
274
|
action: diffAction
|
|
275
275
|
};
|
|
276
276
|
|
|
277
|
+
// packages/cli/src/ui/utils/inline-math.ts
|
|
278
|
+
init_esbuild_shims();
|
|
279
|
+
var INLINE_MATH_MAX_CHARS = 1024;
|
|
280
|
+
var INLINE_CODE_SPAN_PATTERN_SOURCE = String.raw`(?<!\`)(?<inlineCodeFence>\`+)(?!\`).+?(?<!\`)\k<inlineCodeFence>(?!\`)`;
|
|
281
|
+
var INLINE_CODE_SPAN_RE = new RegExp(INLINE_CODE_SPAN_PATTERN_SOURCE, "g");
|
|
282
|
+
function isEscapedAt(text, index) {
|
|
283
|
+
let slashCount = 0;
|
|
284
|
+
for (let cursor = index - 1; cursor >= 0 && text[cursor] === "\\"; cursor -= 1) {
|
|
285
|
+
slashCount += 1;
|
|
286
|
+
}
|
|
287
|
+
return slashCount % 2 === 1;
|
|
288
|
+
}
|
|
289
|
+
__name(isEscapedAt, "isEscapedAt");
|
|
290
|
+
function isUnescapedDollarAt(text, index) {
|
|
291
|
+
return text[index] === "$" && !isEscapedAt(text, index);
|
|
292
|
+
}
|
|
293
|
+
__name(isUnescapedDollarAt, "isUnescapedDollarAt");
|
|
294
|
+
function unescapeMarkdownDollars(text) {
|
|
295
|
+
return text.replace(
|
|
296
|
+
/(\\+)\$/g,
|
|
297
|
+
(_match, slashes) => `${"\\".repeat(Math.floor(slashes.length / 2))}$`
|
|
298
|
+
);
|
|
299
|
+
}
|
|
300
|
+
__name(unescapeMarkdownDollars, "unescapeMarkdownDollars");
|
|
301
|
+
function unescapeMarkdownBeforeMath(text) {
|
|
302
|
+
return unescapeMarkdownDollars(`${text}$`).slice(0, -1);
|
|
303
|
+
}
|
|
304
|
+
__name(unescapeMarkdownBeforeMath, "unescapeMarkdownBeforeMath");
|
|
305
|
+
function readInlineMathSpan(text, index) {
|
|
306
|
+
if (!isUnescapedDollarAt(text, index)) {
|
|
307
|
+
return null;
|
|
308
|
+
}
|
|
309
|
+
const previous = text[index - 1] ?? "";
|
|
310
|
+
const next = text[index + 1] ?? "";
|
|
311
|
+
if (/\w/.test(previous) || isUnescapedDollarAt(text, index - 1) || !next || /[\s\d$]/.test(next)) {
|
|
312
|
+
return null;
|
|
313
|
+
}
|
|
314
|
+
let closingIndex = index + 1;
|
|
315
|
+
while (closingIndex < text.length && text[closingIndex] !== "\n" && closingIndex - index - 1 <= INLINE_MATH_MAX_CHARS && !isUnescapedDollarAt(text, closingIndex)) {
|
|
316
|
+
closingIndex += 1;
|
|
317
|
+
}
|
|
318
|
+
if (!isUnescapedDollarAt(text, closingIndex)) {
|
|
319
|
+
return null;
|
|
320
|
+
}
|
|
321
|
+
const content = text.slice(index + 1, closingIndex);
|
|
322
|
+
const following = text[closingIndex + 1] ?? "";
|
|
323
|
+
if (content.length > INLINE_MATH_MAX_CHARS || /\s$/.test(content) || /[\w$]/.test(following)) {
|
|
324
|
+
return null;
|
|
325
|
+
}
|
|
326
|
+
return {
|
|
327
|
+
content,
|
|
328
|
+
index,
|
|
329
|
+
raw: text.slice(index, closingIndex + 1)
|
|
330
|
+
};
|
|
331
|
+
}
|
|
332
|
+
__name(readInlineMathSpan, "readInlineMathSpan");
|
|
333
|
+
function findNextInlineMath(text, fromIndex = 0) {
|
|
334
|
+
for (let index = fromIndex; index < text.length; index += 1) {
|
|
335
|
+
const span = readInlineMathSpan(text, index);
|
|
336
|
+
if (span) {
|
|
337
|
+
return span;
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
return null;
|
|
341
|
+
}
|
|
342
|
+
__name(findNextInlineMath, "findNextInlineMath");
|
|
343
|
+
function* mergeInlineMathMatches(text, markupRegex, enableInlineMath = true) {
|
|
344
|
+
markupRegex.lastIndex = 0;
|
|
345
|
+
const markupMatches = text.matchAll(markupRegex);
|
|
346
|
+
let nextMarkup = markupMatches.next();
|
|
347
|
+
let nextMath = enableInlineMath ? findNextInlineMath(text) : null;
|
|
348
|
+
let cursor = 0;
|
|
349
|
+
while (!nextMarkup.done || nextMath) {
|
|
350
|
+
while (!nextMarkup.done && (nextMarkup.value.index ?? 0) < cursor) {
|
|
351
|
+
nextMarkup = markupMatches.next();
|
|
352
|
+
}
|
|
353
|
+
if (nextMath && nextMath.index < cursor) {
|
|
354
|
+
nextMath = findNextInlineMath(text, cursor);
|
|
355
|
+
}
|
|
356
|
+
const markupIndex = nextMarkup.done ? Number.POSITIVE_INFINITY : nextMarkup.value.index ?? 0;
|
|
357
|
+
const mathIndex = nextMath?.index ?? Number.POSITIVE_INFINITY;
|
|
358
|
+
if (!nextMarkup.done && markupIndex <= mathIndex) {
|
|
359
|
+
const match = nextMarkup.value;
|
|
360
|
+
yield { kind: "markup", match };
|
|
361
|
+
cursor = markupIndex + match[0].length;
|
|
362
|
+
nextMarkup = markupMatches.next();
|
|
363
|
+
} else if (nextMath) {
|
|
364
|
+
yield { kind: "math", span: nextMath };
|
|
365
|
+
cursor = mathIndex + nextMath.raw.length;
|
|
366
|
+
nextMath = findNextInlineMath(text, cursor);
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
__name(mergeInlineMathMatches, "mergeInlineMathMatches");
|
|
371
|
+
function findInlineMathExpressions(text) {
|
|
372
|
+
const expressions = [];
|
|
373
|
+
for (const token of mergeInlineMathMatches(text, INLINE_CODE_SPAN_RE)) {
|
|
374
|
+
if (token.kind === "math") {
|
|
375
|
+
expressions.push(token.span.content);
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
return expressions;
|
|
379
|
+
}
|
|
380
|
+
__name(findInlineMathExpressions, "findInlineMathExpressions");
|
|
381
|
+
function readInlineMathSpanAt(text, index) {
|
|
382
|
+
return readInlineMathSpan(text, index)?.raw ?? null;
|
|
383
|
+
}
|
|
384
|
+
__name(readInlineMathSpanAt, "readInlineMathSpanAt");
|
|
385
|
+
|
|
277
386
|
// packages/cli/src/utils/systemInfoFields.ts
|
|
278
387
|
init_esbuild_shims();
|
|
279
388
|
function getSystemInfoFields(info) {
|
|
@@ -390,10 +499,15 @@ init_esbuild_shims();
|
|
|
390
499
|
function calculateCost(args) {
|
|
391
500
|
const { inputTokens, outputTokens, pricing } = args;
|
|
392
501
|
if (!pricing) return null;
|
|
502
|
+
if (pricing.inputPerMillionTokens == null && pricing.outputPerMillionTokens == null) {
|
|
503
|
+
return null;
|
|
504
|
+
}
|
|
505
|
+
if (inputTokens <= 0 && outputTokens <= 0) {
|
|
506
|
+
return null;
|
|
507
|
+
}
|
|
393
508
|
const inputCost = pricing.inputPerMillionTokens != null ? inputTokens / 1e6 * pricing.inputPerMillionTokens : 0;
|
|
394
509
|
const outputCost = pricing.outputPerMillionTokens != null ? outputTokens / 1e6 * pricing.outputPerMillionTokens : 0;
|
|
395
|
-
|
|
396
|
-
return total > 0 ? total : null;
|
|
510
|
+
return inputCost + outputCost;
|
|
397
511
|
}
|
|
398
512
|
__name(calculateCost, "calculateCost");
|
|
399
513
|
|
|
@@ -418,6 +532,12 @@ function levelLabel(level) {
|
|
|
418
532
|
__name(levelLabel, "levelLabel");
|
|
419
533
|
|
|
420
534
|
export {
|
|
535
|
+
INLINE_CODE_SPAN_PATTERN_SOURCE,
|
|
536
|
+
unescapeMarkdownDollars,
|
|
537
|
+
unescapeMarkdownBeforeMath,
|
|
538
|
+
mergeInlineMathMatches,
|
|
539
|
+
findInlineMathExpressions,
|
|
540
|
+
readInlineMathSpanAt,
|
|
421
541
|
getSystemInfoFields,
|
|
422
542
|
calculateErrorRate,
|
|
423
543
|
calculateAverageLatency,
|
|
@@ -435,6 +555,11 @@ export {
|
|
|
435
555
|
* Copyright 2025 Google LLC
|
|
436
556
|
* SPDX-License-Identifier: Apache-2.0
|
|
437
557
|
*/
|
|
558
|
+
/**
|
|
559
|
+
* @license
|
|
560
|
+
* Copyright 2026 Qwen Team
|
|
561
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
562
|
+
*/
|
|
438
563
|
/**
|
|
439
564
|
* @license
|
|
440
565
|
* Copyright 2025 Qwen
|