@qwen-code/qwen-code 0.19.6 → 0.19.7
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 +5 -1
- package/bundled/qc-helper/docs/configuration/settings.md +33 -1
- package/bundled/qc-helper/docs/features/channels/_meta.ts +1 -0
- package/bundled/qc-helper/docs/features/channels/overview.md +37 -31
- package/bundled/qc-helper/docs/features/channels/wecom.md +111 -0
- package/bundled/qc-helper/docs/features/code-review.md +16 -6
- package/bundled/qc-helper/docs/features/commands.md +1 -1
- package/bundled/qc-helper/docs/features/hooks.md +6 -0
- package/bundled/qc-helper/docs/features/skills.md +5 -3
- package/bundled/qc-helper/docs/integration-github-action.md +1 -1
- package/bundled/review/DESIGN.md +50 -18
- package/bundled/review/SKILL.md +102 -12
- package/chunks/{MaxSizedBox-SK7CUWZQ.js → MaxSizedBox-XY5LIO5O.js} +31 -29
- package/chunks/{StandaloneSessionPicker-G44HGSAP.js → StandaloneSessionPicker-APISIRJZ.js} +44 -41
- package/chunks/{acpAgent-PKCTYWJV.js → acpAgent-MMOSC2YA.js} +769 -366
- package/chunks/{agent-IYMHUXWB.js → agent-TKIBLLQT.js} +24 -24
- package/chunks/{agent-headless-L2DAW6I5.js → agent-headless-VLX4C7KX.js} +24 -24
- package/chunks/{anthropicContentGenerator-H5ZOEENQ.js → anthropicContentGenerator-AKYPSZIV.js} +7 -7
- package/chunks/{artifact-tool-SLYPWG3C.js → artifact-tool-D233YJFH.js} +27 -8
- package/chunks/{askUserQuestion-OKPTECON.js → askUserQuestion-MKL5ZTMC.js} +2 -2
- package/chunks/{bridge-DF3IJQ5V.js → bridge-BCU73DZO.js} +34 -32
- package/chunks/{channel-worker-supervisor-JUYQ5Z4R.js → channel-worker-supervisor-CRCVYQIE.js} +1 -1
- package/chunks/{chunk-AVQDCKNF.js → chunk-22MNNNXE.js} +4 -0
- package/chunks/{chunk-OAYOHSGP.js → chunk-24XYI5EI.js} +4 -4
- package/chunks/{chunk-6BEOH4KK.js → chunk-2NPS2UDH.js} +767 -122
- package/chunks/chunk-332PWN27.js +19 -0
- package/chunks/{chunk-CLQPBI4H.js → chunk-3B26UVCX.js} +132 -26
- package/chunks/{chunk-G7OQ3RFJ.js → chunk-42XGFRJS.js} +3 -3
- package/chunks/{chunk-SL2P3JUA.js → chunk-43W4YSO6.js} +1 -12
- package/chunks/{chunk-JA5KWZTJ.js → chunk-44NROQYV.js} +5 -3
- package/chunks/{chunk-MOUXUCXQ.js → chunk-4KJ2BPIT.js} +1 -1
- package/chunks/chunk-4O344UEE.js +167 -0
- package/chunks/{chunk-ZO5EA3XJ.js → chunk-4UCTWSTP.js} +1 -1
- package/chunks/{chunk-SOT7OMGL.js → chunk-4ZJIPVPB.js} +2 -2
- package/chunks/{chunk-FPHA7WIZ.js → chunk-65CFHNSE.js} +3 -3
- package/chunks/{chunk-FDY3XOTM.js → chunk-6BN7NZ5Z.js} +4 -4
- package/chunks/{chunk-DBF3HTLT.js → chunk-7JGISHHZ.js} +4 -4
- package/chunks/{chunk-T42ACHFI.js → chunk-7LTB54MK.js} +1 -1
- package/chunks/chunk-A2X3KLC3.js +3807 -0
- package/chunks/{chunk-HCFSKO6K.js → chunk-ADZG46HR.js} +1 -1
- package/chunks/{chunk-MX7CTJHR.js → chunk-AFOLR6YL.js} +9 -9
- package/chunks/{chunk-EWALXUAD.js → chunk-AGHU5VRK.js} +8 -0
- package/chunks/{chunk-GLPV75ES.js → chunk-AHNJGLFV.js} +2 -2
- package/chunks/{chunk-QOKV6AO4.js → chunk-AIY5UTFI.js} +184 -147
- package/chunks/{chunk-57NRQM3P.js → chunk-AJBEAUIS.js} +2 -2
- package/chunks/chunk-ALZ75L2X.js +949 -0
- package/chunks/{chunk-T22H4V4R.js → chunk-B34OV7K2.js} +1 -1
- package/chunks/{chunk-GQBRGBLS.js → chunk-B4U2M63D.js} +9 -9
- package/chunks/{chunk-UTL7KABL.js → chunk-BWVQN2HV.js} +7 -7
- package/chunks/{chunk-YPCPZSZB.js → chunk-CCGOFQV3.js} +56 -4
- package/chunks/{chunk-BOAWGUY6.js → chunk-CISB3IQF.js} +121 -49
- package/chunks/{chunk-SRNPMG7J.js → chunk-CNSF3WO5.js} +16 -10
- package/chunks/{chunk-LWGLBVWA.js → chunk-CSOTA7KX.js} +1 -1
- package/chunks/{chunk-YSU33ACT.js → chunk-DGHJTO2K.js} +5 -13
- package/chunks/{chunk-NIOPRZNN.js → chunk-E7KNELIZ.js} +1 -1
- package/chunks/{chunk-SEZC2725.js → chunk-ER3BKOLB.js} +13 -0
- package/chunks/{chunk-3VJ7MT3N.js → chunk-EXPMGZZV.js} +14 -3
- package/chunks/{chunk-RZORUN6X.js → chunk-FEJ2FZ3U.js} +1 -1
- package/chunks/{chunk-OIFSBXSP.js → chunk-FRFFNYUY.js} +3 -3
- package/chunks/{chunk-MHQKYQDS.js → chunk-FTFXDZYI.js} +158 -3
- package/chunks/{chunk-DMSNJDWG.js → chunk-FV7425LN.js} +38 -3
- package/chunks/{chunk-ALX6BUYW.js → chunk-G7ZG7CA6.js} +186 -27
- package/chunks/chunk-GD236YPV.js +28 -0
- package/chunks/{chunk-XH7H6YG4.js → chunk-GL5TV7B5.js} +4 -107
- package/chunks/{chunk-JN2VJ33O.js → chunk-GMOWQOQQ.js} +966 -121
- package/chunks/{chunk-D5KISTLW.js → chunk-H6EMK6QK.js} +1 -1
- package/chunks/{chunk-MBWLP5OT.js → chunk-HJ3GX3Y3.js} +162 -40
- package/chunks/{chunk-KYTQOCDE.js → chunk-HW4N45EE.js} +17 -46
- package/chunks/{chunk-DXXNMPJH.js → chunk-I4A4K72C.js} +460 -93
- package/chunks/{chunk-VXGPYF7U.js → chunk-IFEWJXFS.js} +1 -1
- package/chunks/chunk-II73RK2S.js +158 -0
- package/chunks/{chunk-TENOUWY2.js → chunk-IJRL2S3D.js} +3 -3
- package/chunks/{chunk-C2QKQZEQ.js → chunk-IUE7YWC3.js} +3 -3
- package/chunks/{chunk-3UC7ZC43.js → chunk-JD33UY7E.js} +7 -7
- package/chunks/{chunk-7Z6UEJA4.js → chunk-JF7DFPQ5.js} +5 -2
- package/chunks/{chunk-IUSKVKH5.js → chunk-LEIJKM7Q.js} +1 -1
- package/chunks/chunk-LGFAYIKX.js +115 -0
- package/chunks/{chunk-N2IJLN2L.js → chunk-ME3YSROJ.js} +13 -5
- package/chunks/{chunk-V6NH3CUC.js → chunk-MIG5SQNL.js} +3 -3
- package/chunks/{chunk-MJKEQSZI.js → chunk-MJI36HER.js} +1 -1
- package/chunks/{chunk-YHTNWGRR.js → chunk-MZ7BABX3.js} +1 -1
- package/chunks/{chunk-B236XPGF.js → chunk-NQKLOAVJ.js} +29 -2
- package/chunks/{chunk-3X76L4UF.js → chunk-NZEGNV4V.js} +5 -5
- package/chunks/{chunk-O2RJARYU.js → chunk-OWVIH4HY.js} +1409 -4088
- package/chunks/{chunk-YTWX5TT2.js → chunk-P7I3D7FM.js} +1 -1
- package/chunks/{chunk-HTWHAN44.js → chunk-PC4ZXHU2.js} +1 -1
- package/chunks/chunk-PRDFOIZF.js +2477 -0
- package/chunks/{chunk-UNXGEDX2.js → chunk-PUQLHSQ2.js} +133 -25
- package/chunks/{chunk-5WQF27GW.js → chunk-Q6OEPOOC.js} +1 -1
- package/chunks/{chunk-6QVRLKTZ.js → chunk-QAKFYMJI.js} +7 -7
- package/chunks/{chunk-NPQWQYU6.js → chunk-QYNNN7BK.js} +1 -1
- package/chunks/{chunk-2INJBYLJ.js → chunk-QZF5U5KA.js} +6 -6
- package/chunks/{chunk-N4YJQTRL.js → chunk-RFIL6REB.js} +71 -2
- package/chunks/{chunk-FZ5NVRVK.js → chunk-RYFZCUJO.js} +3 -3
- package/chunks/{chunk-KSPVDFE4.js → chunk-SAIILPQ3.js} +0 -3
- package/chunks/chunk-SD4N3QJ2.js +262 -0
- package/chunks/{chunk-CEYA7K7C.js → chunk-STAZRKOT.js} +62 -12
- package/chunks/{chunk-BZHLWC6T.js → chunk-SUAKHHK7.js} +2 -2
- package/chunks/{chunk-ZI4MGBB5.js → chunk-TBAZMRW3.js} +1 -1
- package/chunks/{chunk-J6ABRKAB.js → chunk-TDGF35EN.js} +2 -2
- package/chunks/{chunk-TOAUDIS7.js → chunk-TLWA7TPR.js} +6 -2
- package/chunks/{chunk-LXFCHX4X.js → chunk-U4FRHCLA.js} +312 -25
- package/chunks/chunk-UIDXQNMV.js +13 -0
- package/chunks/{chunk-LM3YCCZJ.js → chunk-VEB3NYSO.js} +1 -1
- package/chunks/chunk-VQWAZSXN.js +8223 -0
- package/chunks/{chunk-5ES5YPED.js → chunk-VZ7HY3YU.js} +1 -1
- package/chunks/{chunk-QOMAHFYI.js → chunk-W7EEOR7D.js} +3 -3
- package/chunks/{chunk-NVFJSIAX.js → chunk-WMPVYQ4P.js} +1 -1
- package/chunks/{chunk-V5VTULL5.js → chunk-X265R5C6.js} +3 -3
- package/chunks/{chunk-LKWAVAB5.js → chunk-X2XNQQJI.js} +2 -2
- package/chunks/{chunk-MJKMIQMK.js → chunk-X3YGAX7V.js} +1 -1
- package/chunks/{chunk-OBVBTAX5.js → chunk-XISQIIT7.js} +2 -2
- package/chunks/{chunk-NUK2PFSU.js → chunk-XPJH4PKR.js} +1 -1
- package/chunks/{chunk-A34EPIUV.js → chunk-XSAFNANZ.js} +18 -15
- package/chunks/{chunk-WXUDZHOJ.js → chunk-YDSYD7UI.js} +10 -2
- package/chunks/{chunk-AGZF43UV.js → chunk-YEGT55NW.js} +7153 -4406
- package/chunks/{computer-use-5S3NVXRA.js → computer-use-X4KUU3NM.js} +24 -24
- package/chunks/{contextCommand-DPBALZFK.js → contextCommand-LAYJZF7H.js} +28 -27
- package/chunks/{cron-create-7JYUDTUY.js → cron-create-JSXEIPVS.js} +4 -4
- package/chunks/{cron-delete-YPULQQAK.js → cron-delete-OIFVEPGU.js} +4 -4
- package/chunks/{cron-list-HJIW5MHP.js → cron-list-D4ZX4IOE.js} +11 -7
- package/chunks/{daemon-7XYW4BC3.js → daemon-F3I2RXP6.js} +208 -63
- package/chunks/daemon-status-provider-XSAFKVDS.js +74 -0
- package/chunks/dist-573HNSVO.js +3217 -0
- package/chunks/{dist-ABQ7VWRR.js → dist-FQ5WRJPL.js} +2 -2
- package/chunks/{dist-JPSVN367.js → dist-IMFFBMAT.js} +6 -3792
- package/chunks/{dist-BV56HW3W.js → dist-OT7G2WNM.js} +250 -1
- package/chunks/{dist-AW5ZYMUI.js → dist-PKFTNUHO.js} +10 -11
- package/chunks/{dist-AAO65DPC.js → dist-YTRKAVUB.js} +1 -1
- package/chunks/{earlyInputCapture-GGPV4IFT.js → earlyInputCapture-AERYYGXE.js} +25 -25
- package/chunks/{edit-HJ7ISN4C.js → edit-WZTZDGCI.js} +25 -25
- package/chunks/{en-XR3S5VWY.js → en-GA2RMXY5.js} +6 -1
- package/chunks/{enter-worktree-2BQT675D.js → enter-worktree-DEPXBJEL.js} +24 -24
- package/chunks/{enterPlanMode-SJXHJ3WD.js → enterPlanMode-JFGXZHHJ.js} +24 -24
- package/chunks/{errors-EVGER4AZ.js → errors-GMZL4QV7.js} +26 -26
- package/chunks/{exit-worktree-RPDDOSPM.js → exit-worktree-Y7XBK3VV.js} +24 -24
- package/chunks/{exitPlanMode-BQEROAJ7.js → exitPlanMode-WQQER65F.js} +24 -24
- package/chunks/{fast-path-FX2ICJ2O.js → fast-path-W2U6XDNO.js} +5 -2
- package/chunks/{fr-MBMNQSQ6.js → fr-GWNQG4XH.js} +4 -0
- package/chunks/{gemini-EHUXCOUI.js → gemini-T4WX6SRW.js} +444 -256
- package/chunks/{geminiContentGenerator-YDUUKAM2.js → geminiContentGenerator-MKQACXEJ.js} +4 -4
- package/chunks/{glob-3VIGV2DL.js → glob-4KKSHZDF.js} +52 -28
- package/chunks/{grep-4D3S4NUC.js → grep-GHRYXSLZ.js} +24 -24
- package/chunks/handleAutoUpdate-HN7ZOSXY.js +65 -0
- package/chunks/{initializer-QZTZSSLW.js → initializer-SRN3IM42.js} +31 -29
- package/chunks/{ja-HFV5QCHR.js → ja-2HOTA47X.js} +4 -0
- package/chunks/{keychain-token-storage-GPAKRDKQ.js → keychain-token-storage-UJV5XP4Z.js} +2 -2
- package/chunks/{list-WQ24EAMK.js → list-INTVXUPA.js} +30 -30
- package/chunks/{loadedSettingsAdapter-XV74KOSR.js → loadedSettingsAdapter-QVHHQPGM.js} +28 -28
- package/chunks/{loop-wakeup-34YK7T7O.js → loop-wakeup-OHWEMFP5.js} +5 -5
- package/chunks/{ls-MPD5OJUX.js → ls-L654WOAT.js} +4 -4
- package/chunks/{lsp-72PWTDW7.js → lsp-M35KE54Y.js} +2 -2
- package/chunks/{mcp-CO3MKM7N.js → mcp-7V4T46RG.js} +28 -28
- package/chunks/{monitor-GB56T65A.js → monitor-464OY2UE.js} +32 -27
- package/chunks/nonInteractiveCli-LJEEODU2.js +116 -0
- package/chunks/{notebook-edit-VMXAAE3R.js → notebook-edit-BLJYCNDO.js} +25 -25
- package/chunks/{openaiContentGenerator-GM77FLII.js → openaiContentGenerator-PFF6HYB2.js} +12 -12
- package/chunks/{pidfile-HFXSHR64.js → pidfile-LIBUENIV.js} +25 -25
- package/chunks/{qwenContentGenerator-QSCXQIKJ.js → qwenContentGenerator-SUUHZ6CR.js} +26 -26
- package/chunks/{qwenOAuth2-LWLA6MQG.js → qwenOAuth2-ZV7YLMND.js} +5 -5
- package/chunks/{read-file-SVH6CGQY.js → read-file-L7TBQVX7.js} +8 -8
- package/chunks/{read-mcp-resource-OWOBJY72.js → read-mcp-resource-CNQHBSJM.js} +2 -2
- package/chunks/{record-artifact-URK3YUDJ.js → record-artifact-PP3LKHTS.js} +2 -2
- package/chunks/{ripGrep-JD5O2FLX.js → ripGrep-CKKX3GRB.js} +24 -24
- package/chunks/{run-qwen-serve-FADLRJUN.js → run-qwen-serve-5OKADVLE.js} +785 -35
- package/chunks/{scheduler-Q65SB7DJ.js → scheduler-ZRW3AIDU.js} +24 -24
- package/chunks/{send-message-L7OLQEKH.js → send-message-OA6MV4EU.js} +3 -3
- package/chunks/{serve-6ZXAMQ4M.js → serve-36WS32W6.js} +29 -29
- package/chunks/{server-WKDQA6XR.js → server-M372UENX.js} +2504 -439
- package/chunks/{session-STWOX7RA.js → session-F5KSNP2N.js} +66 -61
- package/chunks/{settings-LC4CCWQQ.js → settings-WFLNS3WT.js} +27 -27
- package/chunks/{shell-FEG3RLPW.js → shell-DEDSWN56.js} +24 -24
- package/chunks/{skill-XTXAMDAP.js → skill-A2TL2NPC.js} +24 -12
- package/chunks/{spawnChannel-B6JJPBPV.js → spawnChannel-RQHUWTCL.js} +27 -27
- package/chunks/{src-HITDGVRM.js → src-XKZMNHXS.js} +91 -36
- package/chunks/{startInteractiveUI-IT423PW4.js → startInteractiveUI-REKSTOHU.js} +6213 -14273
- package/chunks/{syntheticOutput-J3MLCQAR.js → syntheticOutput-F7LSDCAR.js} +3 -3
- package/chunks/{task-create-ELEBZ7H2.js → task-create-RPFZNB4B.js} +7 -7
- package/chunks/{task-list-IEUZLF3Y.js → task-list-TGGJX7EA.js} +5 -5
- package/chunks/{task-stop-QEZW3UDY.js → task-stop-W7NGTMYQ.js} +2 -2
- package/chunks/{task-update-DW36J5P5.js → task-update-5WUG5MVQ.js} +7 -7
- package/chunks/{team-create-DAG6SNHZ.js → team-create-TBQVWAG7.js} +24 -24
- package/chunks/{team-delete-SVITIMBO.js → team-delete-UHQQ2QQX.js} +5 -5
- package/chunks/{team-plan-approval-DRDY5OPC.js → team-plan-approval-FZPGUSHJ.js} +24 -24
- package/chunks/{theme-manager-N67EZC6B.js → theme-manager-DQZVNSOC.js} +25 -25
- package/chunks/{todoWrite-SFFQHZYY.js → todoWrite-C4ZAMSR3.js} +4 -4
- package/chunks/{tool-search-CMDJ5HGM.js → tool-search-FDQ3SLNJ.js} +11 -28
- package/chunks/{trustedFolders-JD4QX6UJ.js → trustedFolders-Z475EIHL.js} +25 -25
- package/chunks/updateCheck-E2ZX7RL7.js +65 -0
- package/chunks/{validateNonInterActiveAuth-ADDCGZ6A.js → validateNonInterActiveAuth-O4ECBHQL.js} +61 -56
- package/chunks/{version-VAONYVE5.js → version-CEDD6ZZR.js} +2 -1
- package/chunks/{web-fetch-SXAXJHIO.js → web-fetch-UYGMOHW4.js} +5 -5
- package/chunks/{workflow-DG2BR42M.js → workflow-CQQ4J4I6.js} +25 -25
- package/chunks/{workspace-providers-status-XGW5OZTD.js → workspace-providers-status-MVYXMYDG.js} +30 -30
- package/chunks/{workspace-service-GX3GGZLU.js → workspace-service-OMBR6ZLG.js} +35 -35
- package/chunks/{workspace-skills-status-LFK5WV2V.js → workspace-skills-status-IMMQ7CAY.js} +29 -29
- package/chunks/{write-file-UR7FXWOU.js → write-file-VWGY7AJP.js} +25 -25
- package/chunks/{zh-FSVJTXA4.js → zh-7XVVRTDH.js} +6 -1
- package/chunks/{zh-TW-66MG4LWL.js → zh-TW-DPH554OG.js} +6 -1
- package/cli.js +19 -11
- package/locales/en.js +9 -2
- package/locales/fr.js +6 -0
- package/locales/ja.js +6 -0
- package/locales/zh-TW.js +9 -2
- package/locales/zh.js +9 -2
- package/node_modules/@qwen-code/audio-capture/package.json +1 -1
- package/node_modules/@qwen-code/audio-capture/prebuilds/darwin-arm64/@qwen-code+audio-capture.node +0 -0
- package/node_modules/@qwen-code/audio-capture/prebuilds/darwin-x64/@qwen-code+audio-capture.node +0 -0
- package/node_modules/@qwen-code/audio-capture/prebuilds/win32-x64/@qwen-code+audio-capture.node +0 -0
- package/package.json +3 -3
- package/web-shell/assets/{arc-CUpe0ibu.js → arc-C7hjaa7g.js} +1 -1
- package/web-shell/assets/{architectureDiagram-3BPJPVTR-JvyrY_mK.js → architectureDiagram-3BPJPVTR-pm9KtMZY.js} +1 -1
- package/web-shell/assets/{blockDiagram-GPEHLZMM-CK3Y_vom.js → blockDiagram-GPEHLZMM-CApElKsU.js} +1 -1
- package/web-shell/assets/{c4Diagram-AAUBKEIU-DprSnyrf.js → c4Diagram-AAUBKEIU-BeDe0-9N.js} +1 -1
- package/web-shell/assets/channel-BNf1dW-j.js +1 -0
- package/web-shell/assets/{chunk-2J33WTMH-DJtRJPmu.js → chunk-2J33WTMH-DJEkmLdl.js} +1 -1
- package/web-shell/assets/{chunk-4BX2VUAB-ON6Q2-BG.js → chunk-4BX2VUAB-DXX8gdpe.js} +1 -1
- package/web-shell/assets/{chunk-55IACEB6-c60ou5HZ.js → chunk-55IACEB6-DORmk1kQ.js} +1 -1
- package/web-shell/assets/{chunk-727SXJPM-BamtPKxx.js → chunk-727SXJPM-DWmO4mCZ.js} +1 -1
- package/web-shell/assets/{chunk-AQP2D5EJ-CsVgpu-T.js → chunk-AQP2D5EJ-C7LRaYw2.js} +1 -1
- package/web-shell/assets/{chunk-FMBD7UC4-vZrpjAx4.js → chunk-FMBD7UC4-CCdXgyC5.js} +1 -1
- package/web-shell/assets/{chunk-ND2GUHAM-qxyNOd5t.js → chunk-ND2GUHAM-SyL_xvWc.js} +1 -1
- package/web-shell/assets/{chunk-QZHKN3VN-BvTJSM_S.js → chunk-QZHKN3VN-BzOuCKxa.js} +1 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-uOIGlzgi.js +1 -0
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-uOIGlzgi.js +1 -0
- package/web-shell/assets/{cose-bilkent-S5V4N54A-1tXB4pju.js → cose-bilkent-S5V4N54A-BMPWyDKc.js} +1 -1
- package/web-shell/assets/{dagre-BM42HDAG-DglBzme8.js → dagre-BM42HDAG-B_GnPWik.js} +1 -1
- package/web-shell/assets/{diagram-2AECGRRQ-DEJpqsWz.js → diagram-2AECGRRQ-fJqMc3S_.js} +1 -1
- package/web-shell/assets/{diagram-5GNKFQAL-CsQ1NrMG.js → diagram-5GNKFQAL-ximV3O9D.js} +1 -1
- package/web-shell/assets/{diagram-KO2AKTUF-Z-3codAi.js → diagram-KO2AKTUF-2vVyjzqw.js} +1 -1
- package/web-shell/assets/{diagram-LMA3HP47-mBuPTA2i.js → diagram-LMA3HP47-Dckcx1sT.js} +1 -1
- package/web-shell/assets/{diagram-OG6HWLK6-tcA3K3s9.js → diagram-OG6HWLK6-BAVv47ga.js} +1 -1
- package/web-shell/assets/{erDiagram-TEJ5UH35-D9bXFRyZ.js → erDiagram-TEJ5UH35-Bn3nf5J0.js} +1 -1
- package/web-shell/assets/{flowDiagram-I6XJVG4X-Ck0Py04s.js → flowDiagram-I6XJVG4X-BIbGF9JT.js} +1 -1
- package/web-shell/assets/{ganttDiagram-6RSMTGT7-rOevCekE.js → ganttDiagram-6RSMTGT7-CDbhb3AH.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-PVQCEYII-CoPQaLj0.js → gitGraphDiagram-PVQCEYII-CbKG1a_w.js} +1 -1
- package/web-shell/assets/index-CnE2ur2L.js +779 -0
- package/web-shell/assets/index-hSKXrlSE.css +5 -0
- package/web-shell/assets/{infoDiagram-5YYISTIA-a77CUKoI.js → infoDiagram-5YYISTIA-DUFxTy8m.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-DlLgUAO-.js → ishikawaDiagram-YF4QCWOH-D69hrBG8.js} +1 -1
- package/web-shell/assets/{journeyDiagram-JHISSGLW-BXR5kVAZ.js → journeyDiagram-JHISSGLW-DsvEw51Y.js} +1 -1
- package/web-shell/assets/{kanban-definition-UN3LZRKU-h5CoHZg7.js → kanban-definition-UN3LZRKU-lFFjZEYd.js} +1 -1
- package/web-shell/assets/{linear-BkaREbyD.js → linear-Bo5bWzvo.js} +1 -1
- package/web-shell/assets/{mermaid.core-Bkagz0ng.js → mermaid.core-C_HKMJx5.js} +5 -5
- package/web-shell/assets/{mindmap-definition-RKZ34NQL-D7EMKR_5.js → mindmap-definition-RKZ34NQL-DlV-NUTs.js} +1 -1
- package/web-shell/assets/{pieDiagram-4H26LBE5-DAmPOjsL.js → pieDiagram-4H26LBE5-B2e6FH2a.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-W4KKPZXB-e4WFQkQu.js → quadrantDiagram-W4KKPZXB-D75kSk-b.js} +1 -1
- package/web-shell/assets/{requirementDiagram-4Y6WPE33-v1zo7OiV.js → requirementDiagram-4Y6WPE33-CQ6xakhM.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-5OEKKPKP-Bstm4aW_.js → sankeyDiagram-5OEKKPKP-J_XTKrcY.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-3UESZ5HK-DzcZy6xN.js → sequenceDiagram-3UESZ5HK-D7jTcBtf.js} +1 -1
- package/web-shell/assets/{stateDiagram-AJRCARHV-BEJH6YbH.js → stateDiagram-AJRCARHV-CrlM_OT3.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-Bs4TK_84.js +1 -0
- package/web-shell/assets/{timeline-definition-PNZ67QCA-TI1wH-Pm.js → timeline-definition-PNZ67QCA-5oZi76Ef.js} +1 -1
- package/web-shell/assets/{vennDiagram-CIIHVFJN-YaH8VDMS.js → vennDiagram-CIIHVFJN-DO5YptPK.js} +1 -1
- package/web-shell/assets/{wardley-L42UT6IY-B80co7OP.js → wardley-L42UT6IY-4t1eJDvM.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-YWT4CUSO-4fHNDEMl.js → wardleyDiagram-YWT4CUSO-DKZc661S.js} +1 -1
- package/web-shell/assets/{xychartDiagram-2RQKCTM6-DT3q4Z3J.js → xychartDiagram-2RQKCTM6-su9hp08G.js} +1 -1
- package/web-shell/index.html +2 -2
- package/chunks/chunk-L7QPM2YD.js +0 -481
- package/chunks/daemon-status-provider-2EWTHT7Y.js +0 -73
- package/chunks/nonInteractiveCli-HNZRIM5I.js +0 -111
- package/web-shell/assets/channel-BAxQ2-aZ.js +0 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-Cvd_xhZI.js +0 -1
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-Cvd_xhZI.js +0 -1
- package/web-shell/assets/index-Cr7MYW6T.css +0 -5
- package/web-shell/assets/index-DCHPAUp3.js +0 -730
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-BopifCBI.js +0 -1
|
@@ -3,26 +3,26 @@
|
|
|
3
3
|
import {
|
|
4
4
|
Colors,
|
|
5
5
|
RowMouseController
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-65CFHNSE.js";
|
|
7
7
|
import {
|
|
8
8
|
theme
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IFEWJXFS.js";
|
|
10
10
|
import {
|
|
11
11
|
Box_default,
|
|
12
12
|
Text,
|
|
13
13
|
require_jsx_runtime
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-DGHJTO2K.js";
|
|
15
15
|
import {
|
|
16
16
|
require_react
|
|
17
17
|
} from "./chunk-KYMBIKIW.js";
|
|
18
18
|
import {
|
|
19
19
|
t
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-QAKFYMJI.js";
|
|
21
21
|
import {
|
|
22
22
|
readManyFiles,
|
|
23
23
|
shouldRunVisionBridge,
|
|
24
24
|
stripTerminalControlSequences
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-YEGT55NW.js";
|
|
26
26
|
import {
|
|
27
27
|
emptyMcpResourceText,
|
|
28
28
|
formatMcpResourceContents,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
isNodeError,
|
|
35
35
|
isSubpath,
|
|
36
36
|
unescapePath
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-22MNNNXE.js";
|
|
38
38
|
import {
|
|
39
39
|
init_esbuild_shims
|
|
40
40
|
} from "./chunk-A4BMJM77.js";
|
|
@@ -435,6 +435,52 @@ function getExtensionSuggestions(config, pattern) {
|
|
|
435
435
|
}
|
|
436
436
|
__name(getExtensionSuggestions, "getExtensionSuggestions");
|
|
437
437
|
|
|
438
|
+
// packages/cli/src/utils/mcp-server-mention.ts
|
|
439
|
+
init_esbuild_shims();
|
|
440
|
+
var MCP_SERVER_REF_PREFIX = "mcp:";
|
|
441
|
+
function parseMcpServerRef(pathName) {
|
|
442
|
+
if (!pathName.startsWith(MCP_SERVER_REF_PREFIX)) return null;
|
|
443
|
+
const name = pathName.slice(MCP_SERVER_REF_PREFIX.length);
|
|
444
|
+
if (!name) return null;
|
|
445
|
+
return { name };
|
|
446
|
+
}
|
|
447
|
+
__name(parseMcpServerRef, "parseMcpServerRef");
|
|
448
|
+
function buildMcpServerRef(serverName) {
|
|
449
|
+
return `${MCP_SERVER_REF_PREFIX}${serverName}`;
|
|
450
|
+
}
|
|
451
|
+
__name(buildMcpServerRef, "buildMcpServerRef");
|
|
452
|
+
function matchMcpServerByRef(name, servers) {
|
|
453
|
+
const lower = name.toLowerCase();
|
|
454
|
+
const matchedName = Object.keys(servers).find(
|
|
455
|
+
(serverName) => serverName.toLowerCase() === lower
|
|
456
|
+
);
|
|
457
|
+
if (!matchedName) return void 0;
|
|
458
|
+
return { serverName: matchedName, server: servers[matchedName] };
|
|
459
|
+
}
|
|
460
|
+
__name(matchMcpServerByRef, "matchMcpServerByRef");
|
|
461
|
+
function buildMcpServerContextText(config, serverName) {
|
|
462
|
+
const lines = [
|
|
463
|
+
`--- MCP Server: ${serverName} ---`,
|
|
464
|
+
`The user explicitly mentioned this MCP server. Prefer using tools and resources from this server when relevant for this turn. This is advisory context, not a hard restriction.`
|
|
465
|
+
];
|
|
466
|
+
const prompts = config.getPromptRegistry?.()?.getPromptsByServer(serverName) ?? [];
|
|
467
|
+
const resources = config.getResourceRegistry?.()?.getResourcesByServer(serverName) ?? [];
|
|
468
|
+
const details = [];
|
|
469
|
+
if (resources.length > 0) {
|
|
470
|
+
details.push(`- Resources: ${resources.length}`);
|
|
471
|
+
}
|
|
472
|
+
if (prompts.length > 0) {
|
|
473
|
+
details.push(`- Prompts: ${prompts.length}`);
|
|
474
|
+
}
|
|
475
|
+
if (details.length > 0) {
|
|
476
|
+
lines.push("Available capabilities from this MCP server:");
|
|
477
|
+
lines.push(...details);
|
|
478
|
+
}
|
|
479
|
+
lines.push(`--- End MCP Server: ${serverName} ---`);
|
|
480
|
+
return lines.join("\n");
|
|
481
|
+
}
|
|
482
|
+
__name(buildMcpServerContextText, "buildMcpServerContextText");
|
|
483
|
+
|
|
438
484
|
// packages/cli/src/ui/hooks/atCommandProcessor.ts
|
|
439
485
|
function parseAllAtCommands(query) {
|
|
440
486
|
const parts = [];
|
|
@@ -521,6 +567,7 @@ async function resolveAtCommandQuery({
|
|
|
521
567
|
};
|
|
522
568
|
const mcpServerNames = new Set(Object.keys(config.getMcpServers() || {}));
|
|
523
569
|
const mcpResourceRefs = [];
|
|
570
|
+
const mcpServerMentions = [];
|
|
524
571
|
const activeExtensions = config.getActiveExtensions?.() ?? [];
|
|
525
572
|
const extensionMentions = [];
|
|
526
573
|
for (const atPathPart of atPathCommandParts) {
|
|
@@ -553,6 +600,30 @@ async function resolveAtCommandQuery({
|
|
|
553
600
|
atPathToResolvedSpecMap.set(originalAtPath, pathName);
|
|
554
601
|
continue;
|
|
555
602
|
}
|
|
603
|
+
const mcpServerRef = parseMcpServerRef(pathName);
|
|
604
|
+
if (mcpServerRef) {
|
|
605
|
+
const matched = matchMcpServerByRef(
|
|
606
|
+
mcpServerRef.name,
|
|
607
|
+
config.getMcpServers() || {}
|
|
608
|
+
);
|
|
609
|
+
if (matched) {
|
|
610
|
+
if (!mcpServerMentions.some((m) => m.serverName === matched.serverName)) {
|
|
611
|
+
mcpServerMentions.push({
|
|
612
|
+
originalAtPath,
|
|
613
|
+
serverName: matched.serverName
|
|
614
|
+
});
|
|
615
|
+
}
|
|
616
|
+
atPathToResolvedSpecMap.set(
|
|
617
|
+
originalAtPath,
|
|
618
|
+
buildMcpServerRef(matched.serverName)
|
|
619
|
+
);
|
|
620
|
+
continue;
|
|
621
|
+
}
|
|
622
|
+
onDebugMessage(
|
|
623
|
+
`MCP server "${mcpServerRef.name}" not found among configured MCP servers. Available: ${Object.keys(config.getMcpServers() || {}).join(", ") || "(none)"}`
|
|
624
|
+
);
|
|
625
|
+
continue;
|
|
626
|
+
}
|
|
556
627
|
const workspaceContext = config.getWorkspaceContext();
|
|
557
628
|
const projectTempDir = Storage.getGlobalTempDir();
|
|
558
629
|
const absolutePathName = path.isAbsolute(pathName) ? pathName : path.resolve(workspaceContext.getDirectories()[0] || "", pathName);
|
|
@@ -697,7 +768,7 @@ ${messages.join("\n")}`;
|
|
|
697
768
|
confirmationDetails: void 0
|
|
698
769
|
});
|
|
699
770
|
}
|
|
700
|
-
if (pathSpecsToRead.length === 0 && mcpResourceRefs.length === 0 && extensionMentions.length === 0) {
|
|
771
|
+
if (pathSpecsToRead.length === 0 && mcpResourceRefs.length === 0 && mcpServerMentions.length === 0 && extensionMentions.length === 0) {
|
|
701
772
|
onDebugMessage("No valid file paths found in @ commands to read.");
|
|
702
773
|
if (initialQueryText === "@" && query.trim() === "@") {
|
|
703
774
|
return { processedQuery: [{ text: query }], shouldProceed: true };
|
|
@@ -710,11 +781,9 @@ ${messages.join("\n")}`;
|
|
|
710
781
|
};
|
|
711
782
|
}
|
|
712
783
|
let extensionContextBudgetRemaining = EXTENSION_CONTEXT_BUDGET;
|
|
713
|
-
const
|
|
714
|
-
const extensionDisplays = [];
|
|
715
|
-
const extensionLabels = [];
|
|
784
|
+
const scopedMentionEntries = [];
|
|
716
785
|
for (let i = 0; i < extensionMentions.length; i++) {
|
|
717
|
-
const { extension } = extensionMentions[i];
|
|
786
|
+
const { originalAtPath, extension } = extensionMentions[i];
|
|
718
787
|
const displayName = getExtensionDisplayName(extension);
|
|
719
788
|
const callId = `client-extension-${userMessageTimestamp}-${i}`;
|
|
720
789
|
const context = await buildExtensionMentionContext(extension, {
|
|
@@ -723,17 +792,47 @@ ${messages.join("\n")}`;
|
|
|
723
792
|
onDebugMessage
|
|
724
793
|
});
|
|
725
794
|
extensionContextBudgetRemaining = context.remainingBudget;
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
795
|
+
scopedMentionEntries.push({
|
|
796
|
+
originalAtPath,
|
|
797
|
+
part: { text: context.text },
|
|
798
|
+
label: buildExtensionRef(extension.name),
|
|
799
|
+
display: {
|
|
800
|
+
callId,
|
|
801
|
+
name: "Activate Extension",
|
|
802
|
+
description: `Activated extension ${displayName}`,
|
|
803
|
+
status: "Success" /* Success */,
|
|
804
|
+
resultDisplay: void 0,
|
|
805
|
+
confirmationDetails: void 0
|
|
806
|
+
}
|
|
735
807
|
});
|
|
736
808
|
}
|
|
809
|
+
for (let i = 0; i < mcpServerMentions.length; i++) {
|
|
810
|
+
const { originalAtPath, serverName } = mcpServerMentions[i];
|
|
811
|
+
scopedMentionEntries.push({
|
|
812
|
+
originalAtPath,
|
|
813
|
+
part: { text: buildMcpServerContextText(config, serverName) },
|
|
814
|
+
label: buildMcpServerRef(serverName),
|
|
815
|
+
display: {
|
|
816
|
+
callId: `client-mcp-server-${userMessageTimestamp}-${i}`,
|
|
817
|
+
name: "Activate MCP Server",
|
|
818
|
+
description: `Activated MCP server ${serverName}`,
|
|
819
|
+
status: "Success" /* Success */,
|
|
820
|
+
resultDisplay: void 0,
|
|
821
|
+
confirmationDetails: void 0
|
|
822
|
+
}
|
|
823
|
+
});
|
|
824
|
+
}
|
|
825
|
+
const scopedMentionOrder = new Map(
|
|
826
|
+
atPathCommandParts.map((part, index) => [part.content, index])
|
|
827
|
+
);
|
|
828
|
+
scopedMentionEntries.sort(
|
|
829
|
+
(a, b) => (scopedMentionOrder.get(a.originalAtPath) ?? Number.MAX_SAFE_INTEGER) - (scopedMentionOrder.get(b.originalAtPath) ?? Number.MAX_SAFE_INTEGER)
|
|
830
|
+
);
|
|
831
|
+
const scopedMentionParts = scopedMentionEntries.map((entry) => entry.part);
|
|
832
|
+
const scopedMentionLabels = scopedMentionEntries.map((entry) => entry.label);
|
|
833
|
+
const scopedMentionDisplays = scopedMentionEntries.map(
|
|
834
|
+
(entry) => entry.display
|
|
835
|
+
);
|
|
737
836
|
const fileParts = [];
|
|
738
837
|
let fileDisplays = [];
|
|
739
838
|
if (pathSpecsToRead.length > 0) {
|
|
@@ -770,7 +869,7 @@ ${messages.join("\n")}`;
|
|
|
770
869
|
};
|
|
771
870
|
const errorMessage = typeof errorToolCallDisplay.resultDisplay === "string" ? errorToolCallDisplay.resultDisplay : void 0;
|
|
772
871
|
const labelsOnError = [
|
|
773
|
-
...
|
|
872
|
+
...scopedMentionLabels,
|
|
774
873
|
...contentLabelsForDisplay,
|
|
775
874
|
...resourceLabels
|
|
776
875
|
];
|
|
@@ -778,7 +877,7 @@ ${messages.join("\n")}`;
|
|
|
778
877
|
processedQuery: null,
|
|
779
878
|
shouldProceed: false,
|
|
780
879
|
toolDisplays: [
|
|
781
|
-
...
|
|
880
|
+
...scopedMentionDisplays,
|
|
782
881
|
...resourceDisplays,
|
|
783
882
|
errorToolCallDisplay
|
|
784
883
|
],
|
|
@@ -793,19 +892,23 @@ ${messages.join("\n")}`;
|
|
|
793
892
|
}
|
|
794
893
|
const processedQueryParts = [
|
|
795
894
|
{ text: initialQueryText },
|
|
796
|
-
...
|
|
895
|
+
...scopedMentionParts,
|
|
797
896
|
...fileParts,
|
|
798
897
|
...resourceParts
|
|
799
898
|
];
|
|
800
899
|
const allLabels = [
|
|
801
|
-
...
|
|
900
|
+
...scopedMentionLabels,
|
|
802
901
|
...contentLabelsForDisplay,
|
|
803
902
|
...resourceLabels
|
|
804
903
|
];
|
|
805
904
|
return {
|
|
806
905
|
processedQuery: processedQueryParts,
|
|
807
906
|
shouldProceed: true,
|
|
808
|
-
toolDisplays: [
|
|
907
|
+
toolDisplays: [
|
|
908
|
+
...scopedMentionDisplays,
|
|
909
|
+
...fileDisplays,
|
|
910
|
+
...resourceDisplays
|
|
911
|
+
],
|
|
809
912
|
filesRead: allLabels,
|
|
810
913
|
recording: {
|
|
811
914
|
filesRead: allLabels,
|
|
@@ -850,8 +953,13 @@ export {
|
|
|
850
953
|
EXTENSION_CONTEXT_BUDGET,
|
|
851
954
|
parseExtensionRef,
|
|
852
955
|
matchExtensionByRef,
|
|
956
|
+
sanitizeDisplayText,
|
|
853
957
|
buildExtensionMentionContext,
|
|
854
958
|
getExtensionSuggestions,
|
|
959
|
+
parseMcpServerRef,
|
|
960
|
+
buildMcpServerRef,
|
|
961
|
+
matchMcpServerByRef,
|
|
962
|
+
buildMcpServerContextText,
|
|
855
963
|
resolveAtCommandQuery,
|
|
856
964
|
handleAtCommand
|
|
857
965
|
};
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
} from "./chunk-Y6Z2O3WR.js";
|
|
6
6
|
import {
|
|
7
7
|
resolveBundleDir
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-YEGT55NW.js";
|
|
9
9
|
import {
|
|
10
10
|
Storage
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-22MNNNXE.js";
|
|
12
12
|
import {
|
|
13
13
|
init_esbuild_shims
|
|
14
14
|
} from "./chunk-A4BMJM77.js";
|
|
@@ -160,13 +160,13 @@ init_esbuild_shims();
|
|
|
160
160
|
var globImport_locales_js = __glob({
|
|
161
161
|
"./locales/ca.js": () => import("./ca-HCMB2I54.js"),
|
|
162
162
|
"./locales/de.js": () => import("./de-PLLFDERI.js"),
|
|
163
|
-
"./locales/en.js": () => import("./en-
|
|
164
|
-
"./locales/fr.js": () => import("./fr-
|
|
165
|
-
"./locales/ja.js": () => import("./ja-
|
|
163
|
+
"./locales/en.js": () => import("./en-GA2RMXY5.js"),
|
|
164
|
+
"./locales/fr.js": () => import("./fr-GWNQG4XH.js"),
|
|
165
|
+
"./locales/ja.js": () => import("./ja-2HOTA47X.js"),
|
|
166
166
|
"./locales/pt.js": () => import("./pt-2THT3YHA.js"),
|
|
167
167
|
"./locales/ru.js": () => import("./ru-Z67YJHBG.js"),
|
|
168
|
-
"./locales/zh-TW.js": () => import("./zh-TW-
|
|
169
|
-
"./locales/zh.js": () => import("./zh-
|
|
168
|
+
"./locales/zh-TW.js": () => import("./zh-TW-DPH554OG.js"),
|
|
169
|
+
"./locales/zh.js": () => import("./zh-7XVVRTDH.js")
|
|
170
170
|
});
|
|
171
171
|
|
|
172
172
|
// packages/cli/src/i18n/index.ts
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
loadSettings
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-STAZRKOT.js";
|
|
6
6
|
import {
|
|
7
7
|
getCurrentLanguage
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-QAKFYMJI.js";
|
|
9
9
|
import {
|
|
10
10
|
isWorkspaceTrusted
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MIG5SQNL.js";
|
|
12
12
|
import {
|
|
13
13
|
writeStderrLine,
|
|
14
14
|
writeStdoutLine
|
|
@@ -26,14 +26,14 @@ import {
|
|
|
26
26
|
hashMcpServerConfig,
|
|
27
27
|
isGatedMcpScope,
|
|
28
28
|
normalizeClaudeMcpServer
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-YEGT55NW.js";
|
|
30
30
|
import {
|
|
31
31
|
atomicWriteFile
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-7LTB54MK.js";
|
|
33
33
|
import {
|
|
34
34
|
Storage,
|
|
35
35
|
getErrorMessage
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-22MNNNXE.js";
|
|
37
37
|
import {
|
|
38
38
|
init_esbuild_shims
|
|
39
39
|
} from "./chunk-A4BMJM77.js";
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
} from "./chunk-7RYW5LQV.js";
|
|
12
12
|
import {
|
|
13
13
|
CLIENT_MCP_OVER_WS_CONFIG_FLAG
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-AGHU5VRK.js";
|
|
15
15
|
import {
|
|
16
16
|
MAX_WORKSPACE_PATH_LENGTH
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ER3BKOLB.js";
|
|
18
18
|
import {
|
|
19
19
|
writeStderrLine
|
|
20
20
|
} from "./chunk-Y6Z2O3WR.js";
|
|
@@ -16111,6 +16111,31 @@ function createBridgeFileSystemAdapter(factory) {
|
|
|
16111
16111
|
}
|
|
16112
16112
|
__name(createBridgeFileSystemAdapter, "createBridgeFileSystemAdapter");
|
|
16113
16113
|
|
|
16114
|
+
// packages/cli/src/serve/fs/path-mutex-registry.ts
|
|
16115
|
+
init_esbuild_shims();
|
|
16116
|
+
var PathMutexRegistry = class {
|
|
16117
|
+
static {
|
|
16118
|
+
__name(this, "PathMutexRegistry");
|
|
16119
|
+
}
|
|
16120
|
+
tails = /* @__PURE__ */ new Map();
|
|
16121
|
+
async runExclusive(key, fn) {
|
|
16122
|
+
const previous = this.tails.get(key) ?? Promise.resolve();
|
|
16123
|
+
let release;
|
|
16124
|
+
const current = new Promise((resolve) => {
|
|
16125
|
+
release = resolve;
|
|
16126
|
+
});
|
|
16127
|
+
const tail = previous.catch(() => void 0).then(() => current);
|
|
16128
|
+
this.tails.set(key, tail);
|
|
16129
|
+
await previous.catch(() => void 0);
|
|
16130
|
+
try {
|
|
16131
|
+
return await fn();
|
|
16132
|
+
} finally {
|
|
16133
|
+
release();
|
|
16134
|
+
if (this.tails.get(key) === tail) this.tails.delete(key);
|
|
16135
|
+
}
|
|
16136
|
+
}
|
|
16137
|
+
};
|
|
16138
|
+
|
|
16114
16139
|
// packages/cli/src/serve/web-shell-resolver.ts
|
|
16115
16140
|
init_esbuild_shims();
|
|
16116
16141
|
import { existsSync } from "node:fs";
|
|
@@ -16478,6 +16503,8 @@ var SERVE_CAPABILITY_REGISTRY = {
|
|
|
16478
16503
|
session_close: { since: "v1" },
|
|
16479
16504
|
session_archive: { since: "v1" },
|
|
16480
16505
|
session_metadata: { since: "v1" },
|
|
16506
|
+
session_organization: { since: "v1" },
|
|
16507
|
+
session_export: { since: "v1" },
|
|
16481
16508
|
// Daemon supports the MCP client guardrail surface: an in-process
|
|
16482
16509
|
// counter exposed on `GET /workspace/mcp`, a `--mcp-client-budget=N`
|
|
16483
16510
|
// flag with `--mcp-budget-mode={enforce, warn, off}`, and a
|
|
@@ -17203,8 +17230,19 @@ function parseDaemonStatusDetail(raw) {
|
|
|
17203
17230
|
__name(parseDaemonStatusDetail, "parseDaemonStatusDetail");
|
|
17204
17231
|
async function buildDaemonStatusResponse(detail, input) {
|
|
17205
17232
|
const bridgeSnapshot = input.bridge.getDaemonStatusSnapshot();
|
|
17233
|
+
const lastActivity = input.bridge.lastActivityAt ?? null;
|
|
17206
17234
|
const acpSnapshot = input.acpHandle?.registry.getSnapshot();
|
|
17207
17235
|
const rateLimitHits = input.rateLimiter?.getHitCounts() ?? zeroRateHits();
|
|
17236
|
+
let pendingPrompts = 0;
|
|
17237
|
+
let derivedQueuedPrompts = 0;
|
|
17238
|
+
for (const session of bridgeSnapshot.sessions) {
|
|
17239
|
+
pendingPrompts += session.pendingPromptCount;
|
|
17240
|
+
derivedQueuedPrompts += Math.max(
|
|
17241
|
+
0,
|
|
17242
|
+
session.pendingPromptCount - (session.hasActivePrompt ? 1 : 0)
|
|
17243
|
+
);
|
|
17244
|
+
}
|
|
17245
|
+
const queuedPrompts = input.bridge.pendingPromptTotal ?? derivedQueuedPrompts;
|
|
17208
17246
|
const channelWorker = input.getChannelWorkerSnapshot?.() ?? {
|
|
17209
17247
|
enabled: false,
|
|
17210
17248
|
state: "disabled",
|
|
@@ -17288,6 +17326,14 @@ async function buildDaemonStatusResponse(detail, input) {
|
|
|
17288
17326
|
rejectedSinceStart: rateLimitHits
|
|
17289
17327
|
},
|
|
17290
17328
|
...input.getPerfSnapshot ? { perf: input.getPerfSnapshot() } : {},
|
|
17329
|
+
...input.getMetricsSeries ? { metrics: { series: input.getMetricsSeries() } } : {},
|
|
17330
|
+
activity: {
|
|
17331
|
+
activePrompts: input.bridge.activePromptCount ?? 0,
|
|
17332
|
+
pendingPrompts,
|
|
17333
|
+
queuedPrompts,
|
|
17334
|
+
lastActivityAt: lastActivity !== null ? new Date(lastActivity).toISOString() : null,
|
|
17335
|
+
idleSinceMs: lastActivity !== null ? Date.now() - lastActivity : null
|
|
17336
|
+
},
|
|
17291
17337
|
process: process.memoryUsage()
|
|
17292
17338
|
},
|
|
17293
17339
|
...full ? { full } : {}
|
|
@@ -17551,9 +17597,31 @@ function summarizeStatusData(data) {
|
|
|
17551
17597
|
summary[`${key}Count`] = value.length;
|
|
17552
17598
|
}
|
|
17553
17599
|
}
|
|
17600
|
+
summarizeMcpServers(data, summary);
|
|
17554
17601
|
return summary;
|
|
17555
17602
|
}
|
|
17556
17603
|
__name(summarizeStatusData, "summarizeStatusData");
|
|
17604
|
+
function summarizeMcpServers(data, summary) {
|
|
17605
|
+
const servers = data["servers"];
|
|
17606
|
+
if (!Array.isArray(servers)) return;
|
|
17607
|
+
let connected = 0;
|
|
17608
|
+
let errored = 0;
|
|
17609
|
+
let disabled = 0;
|
|
17610
|
+
for (const server of servers) {
|
|
17611
|
+
if (!isRecord(server)) continue;
|
|
17612
|
+
if (server["disabled"] === true) {
|
|
17613
|
+
disabled++;
|
|
17614
|
+
} else if (server["status"] === "error") {
|
|
17615
|
+
errored++;
|
|
17616
|
+
} else if (server["mcpStatus"] === "connected") {
|
|
17617
|
+
connected++;
|
|
17618
|
+
}
|
|
17619
|
+
}
|
|
17620
|
+
summary["serversConnected"] = connected;
|
|
17621
|
+
summary["serversErrored"] = errored;
|
|
17622
|
+
summary["serversDisabled"] = disabled;
|
|
17623
|
+
}
|
|
17624
|
+
__name(summarizeMcpServers, "summarizeMcpServers");
|
|
17557
17625
|
function collectStatuses(data) {
|
|
17558
17626
|
const statuses = [];
|
|
17559
17627
|
visitStatusContainers(data, (record) => {
|
|
@@ -17687,6 +17755,7 @@ export {
|
|
|
17687
17755
|
getDeviceFlowRegistry,
|
|
17688
17756
|
DeviceFlowRegistry,
|
|
17689
17757
|
createBridgeFileSystemAdapter,
|
|
17758
|
+
PathMutexRegistry,
|
|
17690
17759
|
resolveWebShellDir,
|
|
17691
17760
|
denyBrowserOriginCors,
|
|
17692
17761
|
parseAllowOriginPatterns,
|
|
@@ -5,14 +5,14 @@ import {
|
|
|
5
5
|
isTranscribableVoiceModel,
|
|
6
6
|
readVoiceLanguage,
|
|
7
7
|
resolveVoiceTransport
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ADZG46HR.js";
|
|
9
9
|
import {
|
|
10
10
|
resolvePath
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-E7KNELIZ.js";
|
|
12
12
|
import {
|
|
13
13
|
createDebugLogger,
|
|
14
14
|
isSubpath
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-22MNNNXE.js";
|
|
16
16
|
import {
|
|
17
17
|
init_esbuild_shims
|
|
18
18
|
} from "./chunk-A4BMJM77.js";
|