@qwen-code/qwen-code 0.19.6 → 0.19.7-nightly.20260708.394c1a289
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 +41 -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-XS37LWTD.js} +31 -29
- package/chunks/{StandaloneSessionPicker-G44HGSAP.js → StandaloneSessionPicker-LPALJTKN.js} +44 -41
- package/chunks/{acpAgent-PKCTYWJV.js → acpAgent-4VE3FGJX.js} +769 -366
- package/chunks/{agent-IYMHUXWB.js → agent-CCHERW6L.js} +24 -24
- package/chunks/{agent-headless-L2DAW6I5.js → agent-headless-55N6UBUU.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-U6HXOHE7.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-2DYY5XUZ.js +8223 -0
- package/chunks/chunk-2FHWCKWA.js +262 -0
- package/chunks/{chunk-6BEOH4KK.js → chunk-2NPS2UDH.js} +767 -122
- package/chunks/{chunk-N2IJLN2L.js → chunk-2SWMCXVR.js} +13 -5
- package/chunks/{chunk-OBVBTAX5.js → chunk-2YELHTUE.js} +2 -2
- package/chunks/chunk-332PWN27.js +19 -0
- package/chunks/{chunk-CLQPBI4H.js → chunk-3B26UVCX.js} +132 -26
- package/chunks/{chunk-HCFSKO6K.js → chunk-3QDZDAJG.js} +1 -1
- 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-BOAWGUY6.js → chunk-4AFOWB47.js} +121 -49
- package/chunks/{chunk-MOUXUCXQ.js → chunk-4KJ2BPIT.js} +1 -1
- package/chunks/{chunk-YTWX5TT2.js → chunk-5FL2K3ZB.js} +1 -1
- package/chunks/{chunk-UNXGEDX2.js → chunk-5OSSOBZC.js} +133 -25
- package/chunks/{chunk-JN2VJ33O.js → chunk-7I4MGFBN.js} +966 -121
- package/chunks/{chunk-T42ACHFI.js → chunk-7LTB54MK.js} +1 -1
- package/chunks/chunk-A2X3KLC3.js +3807 -0
- package/chunks/{chunk-EWALXUAD.js → chunk-AGHU5VRK.js} +8 -0
- package/chunks/{chunk-GLPV75ES.js → chunk-AHNJGLFV.js} +2 -2
- package/chunks/{chunk-IUSKVKH5.js → chunk-AXTPFMRS.js} +1 -1
- package/chunks/{chunk-T22H4V4R.js → chunk-B34OV7K2.js} +1 -1
- package/chunks/{chunk-FZ5NVRVK.js → chunk-B5FOCTEZ.js} +3 -3
- package/chunks/{chunk-3UC7ZC43.js → chunk-B6WUEODT.js} +7 -7
- package/chunks/{chunk-MJKEQSZI.js → chunk-BGL43SJ3.js} +1 -1
- package/chunks/{chunk-OAYOHSGP.js → chunk-BHRU4SDF.js} +4 -4
- package/chunks/{chunk-YPCPZSZB.js → chunk-CCGOFQV3.js} +56 -4
- package/chunks/{chunk-FDY3XOTM.js → chunk-CR5IU2RX.js} +4 -4
- package/chunks/{chunk-LWGLBVWA.js → chunk-CSOTA7KX.js} +1 -1
- package/chunks/{chunk-AGZF43UV.js → chunk-E7HM76PR.js} +7153 -4406
- package/chunks/{chunk-NIOPRZNN.js → chunk-E7KNELIZ.js} +1 -1
- package/chunks/{chunk-YSU33ACT.js → chunk-ELMPRVCB.js} +5 -13
- package/chunks/{chunk-SEZC2725.js → chunk-ER3BKOLB.js} +13 -0
- package/chunks/{chunk-3VJ7MT3N.js → chunk-EXPMGZZV.js} +14 -3
- package/chunks/{chunk-DBF3HTLT.js → chunk-FB2ULV4M.js} +4 -4
- package/chunks/{chunk-RZORUN6X.js → chunk-FEJ2FZ3U.js} +1 -1
- package/chunks/chunk-FK77ILF5.js +2477 -0
- package/chunks/{chunk-DMSNJDWG.js → chunk-FV7425LN.js} +38 -3
- package/chunks/{chunk-ALX6BUYW.js → chunk-G7ZG7CA6.js} +186 -27
- package/chunks/{chunk-2INJBYLJ.js → chunk-GIY6JTTC.js} +6 -6
- package/chunks/{chunk-D5KISTLW.js → chunk-H6EMK6QK.js} +1 -1
- package/chunks/{chunk-KYTQOCDE.js → chunk-HW4N45EE.js} +17 -46
- 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-GQBRGBLS.js → chunk-J43WPR6U.js} +9 -9
- package/chunks/{chunk-SRNPMG7J.js → chunk-JYOWO2F7.js} +16 -10
- package/chunks/{chunk-57NRQM3P.js → chunk-K34DD7FH.js} +2 -2
- package/chunks/{chunk-O2RJARYU.js → chunk-KKWO4IX2.js} +1409 -4088
- package/chunks/{chunk-SOT7OMGL.js → chunk-KT3SI3CQ.js} +2 -2
- package/chunks/{chunk-NUK2PFSU.js → chunk-L7IWK7JY.js} +1 -1
- package/chunks/{chunk-MHQKYQDS.js → chunk-LC4SMGYY.js} +158 -3
- package/chunks/chunk-LGFAYIKX.js +115 -0
- package/chunks/{chunk-MBWLP5OT.js → chunk-LKXDC3AW.js} +162 -40
- package/chunks/{chunk-7Z6UEJA4.js → chunk-ME344634.js} +5 -2
- package/chunks/{chunk-V6NH3CUC.js → chunk-MOQOAH7N.js} +3 -3
- package/chunks/{chunk-FPHA7WIZ.js → chunk-MYZWWRVW.js} +3 -3
- package/chunks/{chunk-YHTNWGRR.js → chunk-MZ7BABX3.js} +1 -1
- package/chunks/chunk-N74BA4VP.js +949 -0
- package/chunks/{chunk-B236XPGF.js → chunk-NQKLOAVJ.js} +29 -2
- package/chunks/{chunk-LXFCHX4X.js → chunk-OU6FPTJZ.js} +312 -25
- package/chunks/{chunk-HTWHAN44.js → chunk-PC4ZXHU2.js} +1 -1
- package/chunks/{chunk-3X76L4UF.js → chunk-PLGONYEL.js} +5 -5
- package/chunks/{chunk-WXUDZHOJ.js → chunk-PVXPDMGP.js} +10 -2
- package/chunks/{chunk-ZO5EA3XJ.js → chunk-QCSLZO6J.js} +1 -1
- package/chunks/{chunk-CEYA7K7C.js → chunk-QHT5USLK.js} +62 -12
- package/chunks/{chunk-NPQWQYU6.js → chunk-QYNNN7BK.js} +1 -1
- package/chunks/{chunk-N4YJQTRL.js → chunk-RFIL6REB.js} +71 -2
- package/chunks/{chunk-KSPVDFE4.js → chunk-SAIILPQ3.js} +0 -3
- package/chunks/{chunk-OIFSBXSP.js → chunk-SJHAUELE.js} +3 -3
- package/chunks/{chunk-BZHLWC6T.js → chunk-SUAKHHK7.js} +2 -2
- package/chunks/{chunk-QOKV6AO4.js → chunk-T2EJHSE3.js} +184 -147
- package/chunks/{chunk-ZI4MGBB5.js → chunk-TBAZMRW3.js} +1 -1
- package/chunks/{chunk-6QVRLKTZ.js → chunk-TBLJNMI7.js} +7 -7
- package/chunks/{chunk-J6ABRKAB.js → chunk-TDGF35EN.js} +2 -2
- package/chunks/chunk-TEYGKLIZ.js +167 -0
- package/chunks/{chunk-TOAUDIS7.js → chunk-TLWA7TPR.js} +6 -2
- package/chunks/chunk-UIDXQNMV.js +13 -0
- package/chunks/{chunk-MX7CTJHR.js → chunk-UZCT5OLN.js} +9 -9
- package/chunks/{chunk-LM3YCCZJ.js → chunk-VEB3NYSO.js} +1 -1
- package/chunks/{chunk-UTL7KABL.js → chunk-VQJ64BIQ.js} +7 -7
- package/chunks/{chunk-C2QKQZEQ.js → chunk-VTCPREC7.js} +3 -3
- 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-5WQF27GW.js → chunk-XQ2GVLNJ.js} +1 -1
- package/chunks/chunk-XUSONNJ4.js +28 -0
- package/chunks/{chunk-DXXNMPJH.js → chunk-YMWIKAEE.js} +460 -93
- package/chunks/{chunk-A34EPIUV.js → chunk-YYU6H66M.js} +18 -15
- package/chunks/{chunk-XH7H6YG4.js → chunk-ZK5EI6NR.js} +4 -107
- package/chunks/{computer-use-5S3NVXRA.js → computer-use-4CTF6WS3.js} +24 -24
- package/chunks/{contextCommand-DPBALZFK.js → contextCommand-Z3XWQCY6.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-6A4QCG6Q.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-7O47HW62.js} +25 -25
- package/chunks/{edit-HJ7ISN4C.js → edit-E32KWLF2.js} +25 -25
- package/chunks/{en-XR3S5VWY.js → en-GA2RMXY5.js} +6 -1
- package/chunks/{enter-worktree-2BQT675D.js → enter-worktree-ZKFFMHUD.js} +24 -24
- package/chunks/{enterPlanMode-SJXHJ3WD.js → enterPlanMode-HLDC6NGX.js} +24 -24
- package/chunks/{errors-EVGER4AZ.js → errors-MTIDDXX7.js} +26 -26
- package/chunks/{exit-worktree-RPDDOSPM.js → exit-worktree-YHY72XA2.js} +24 -24
- package/chunks/{exitPlanMode-BQEROAJ7.js → exitPlanMode-JNXKBZ2C.js} +24 -24
- package/chunks/{fast-path-FX2ICJ2O.js → fast-path-DVAGBROV.js} +5 -2
- package/chunks/{fr-MBMNQSQ6.js → fr-GWNQG4XH.js} +4 -0
- package/chunks/{gemini-EHUXCOUI.js → gemini-2TMHJVRC.js} +444 -256
- package/chunks/{geminiContentGenerator-YDUUKAM2.js → geminiContentGenerator-WCH4GWD3.js} +4 -4
- package/chunks/{glob-3VIGV2DL.js → glob-I6Y4AGKO.js} +52 -28
- package/chunks/{grep-4D3S4NUC.js → grep-3P2J3LU5.js} +24 -24
- package/chunks/handleAutoUpdate-4IVRMRG4.js +65 -0
- package/chunks/{initializer-QZTZSSLW.js → initializer-DVNCPVTC.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-4D6QK2KZ.js} +30 -30
- package/chunks/{loadedSettingsAdapter-XV74KOSR.js → loadedSettingsAdapter-GNGELH6Q.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-2IL72YJP.js} +28 -28
- package/chunks/{monitor-GB56T65A.js → monitor-BLVCZAVX.js} +32 -27
- package/chunks/nonInteractiveCli-UD3V7UOO.js +116 -0
- package/chunks/{notebook-edit-VMXAAE3R.js → notebook-edit-5TVMWIWY.js} +25 -25
- package/chunks/{openaiContentGenerator-GM77FLII.js → openaiContentGenerator-5LJ5A7YY.js} +12 -12
- package/chunks/{pidfile-HFXSHR64.js → pidfile-AN5JQJ2T.js} +25 -25
- package/chunks/{qwenContentGenerator-QSCXQIKJ.js → qwenContentGenerator-E2JSB4FJ.js} +26 -26
- package/chunks/{qwenOAuth2-LWLA6MQG.js → qwenOAuth2-ZV7YLMND.js} +5 -5
- package/chunks/{read-file-SVH6CGQY.js → read-file-N5DEFUDU.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-BLJHTHKE.js} +24 -24
- package/chunks/{run-qwen-serve-FADLRJUN.js → run-qwen-serve-4JDO64RN.js} +785 -35
- package/chunks/{scheduler-Q65SB7DJ.js → scheduler-FQR4XA7J.js} +24 -24
- package/chunks/{send-message-L7OLQEKH.js → send-message-OA6MV4EU.js} +3 -3
- package/chunks/{serve-6ZXAMQ4M.js → serve-ZOCFC7YM.js} +29 -29
- package/chunks/{server-WKDQA6XR.js → server-GEOYEPYT.js} +2504 -439
- package/chunks/{session-STWOX7RA.js → session-NJCONHGX.js} +66 -61
- package/chunks/{settings-LC4CCWQQ.js → settings-QBGGXANI.js} +27 -27
- package/chunks/{shell-FEG3RLPW.js → shell-2DVPSEKT.js} +24 -24
- package/chunks/{skill-XTXAMDAP.js → skill-HIPXUHV7.js} +24 -12
- package/chunks/{spawnChannel-B6JJPBPV.js → spawnChannel-3JYXY52G.js} +27 -27
- package/chunks/{src-HITDGVRM.js → src-NLEX4CUC.js} +91 -36
- package/chunks/{startInteractiveUI-IT423PW4.js → startInteractiveUI-TYGZIU27.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-MGX57SZJ.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-BO2N7J3E.js} +24 -24
- package/chunks/{theme-manager-N67EZC6B.js → theme-manager-WU7LOA64.js} +25 -25
- package/chunks/{todoWrite-SFFQHZYY.js → todoWrite-C4ZAMSR3.js} +4 -4
- package/chunks/{tool-search-CMDJ5HGM.js → tool-search-CLBKVEVK.js} +11 -28
- package/chunks/{trustedFolders-JD4QX6UJ.js → trustedFolders-GAQM2GHB.js} +25 -25
- package/chunks/updateCheck-RIK2YIQE.js +65 -0
- package/chunks/{validateNonInterActiveAuth-ADDCGZ6A.js → validateNonInterActiveAuth-NS3GBIJZ.js} +61 -56
- package/chunks/{version-VAONYVE5.js → version-B3RSLP54.js} +2 -1
- package/chunks/{web-fetch-SXAXJHIO.js → web-fetch-UYGMOHW4.js} +5 -5
- package/chunks/{workflow-DG2BR42M.js → workflow-7APPIGND.js} +25 -25
- package/chunks/{workspace-providers-status-XGW5OZTD.js → workspace-providers-status-SC67GLMY.js} +30 -30
- package/chunks/{workspace-service-GX3GGZLU.js → workspace-service-ZJHF22WA.js} +35 -35
- package/chunks/{workspace-skills-status-LFK5WV2V.js → workspace-skills-status-NJEK6P6Y.js} +29 -29
- package/chunks/{write-file-UR7FXWOU.js → write-file-R6Z3VLRY.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
|
@@ -2,18 +2,27 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
relaunchApp
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-AXTPFMRS.js";
|
|
6
6
|
import {
|
|
7
|
+
MINIMUM_MAX_HEIGHT,
|
|
8
|
+
MaxSizedBox
|
|
9
|
+
} from "./chunk-CR5IU2RX.js";
|
|
10
|
+
import {
|
|
11
|
+
CODE_FENCE_RE,
|
|
7
12
|
SHELL_COMMAND_NAME,
|
|
8
13
|
SHELL_NAME,
|
|
14
|
+
TABLE_ROW_RE,
|
|
15
|
+
TABLE_SEPARATOR_RE,
|
|
9
16
|
TOOL_STATUS,
|
|
17
|
+
fitPendingSlice,
|
|
10
18
|
formatSupportedModes,
|
|
11
19
|
getCommandDisplayName,
|
|
12
20
|
getCommandSourceBadge,
|
|
13
21
|
getCommandSourceGroup,
|
|
14
22
|
getCommandSubcommandNames,
|
|
23
|
+
splitMarkdownTableRow,
|
|
15
24
|
useSessionStats
|
|
16
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-LC4SMGYY.js";
|
|
17
26
|
import {
|
|
18
27
|
Colors,
|
|
19
28
|
RowMouseController,
|
|
@@ -22,7 +31,7 @@ import {
|
|
|
22
31
|
useMouseEvents,
|
|
23
32
|
useSettings,
|
|
24
33
|
useTerminalSize
|
|
25
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-MYZWWRVW.js";
|
|
26
35
|
import {
|
|
27
36
|
buildResumedHistoryItems,
|
|
28
37
|
calculateAverageLatency,
|
|
@@ -35,17 +44,10 @@ import {
|
|
|
35
44
|
levelLabel,
|
|
36
45
|
useKeypress,
|
|
37
46
|
wrapForMultiplexer
|
|
38
|
-
} from "./chunk-
|
|
39
|
-
import {
|
|
40
|
-
isTerminalGoalStatusKind
|
|
41
|
-
} from "./chunk-KSPVDFE4.js";
|
|
42
|
-
import {
|
|
43
|
-
MINIMUM_MAX_HEIGHT,
|
|
44
|
-
MaxSizedBox
|
|
45
|
-
} from "./chunk-FDY3XOTM.js";
|
|
47
|
+
} from "./chunk-J43WPR6U.js";
|
|
46
48
|
import {
|
|
47
49
|
theme
|
|
48
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-IFEWJXFS.js";
|
|
49
51
|
import {
|
|
50
52
|
Box_default,
|
|
51
53
|
Static,
|
|
@@ -54,14 +56,17 @@ import {
|
|
|
54
56
|
require_jsx_runtime,
|
|
55
57
|
use_is_screen_reader_enabled_default,
|
|
56
58
|
use_stdin_default
|
|
57
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-ELMPRVCB.js";
|
|
60
|
+
import {
|
|
61
|
+
isTerminalGoalStatusKind
|
|
62
|
+
} from "./chunk-SAIILPQ3.js";
|
|
58
63
|
import {
|
|
59
64
|
require_react
|
|
60
65
|
} from "./chunk-KYMBIKIW.js";
|
|
61
66
|
import {
|
|
62
67
|
resolveColor,
|
|
63
68
|
themeManager
|
|
64
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-PC4ZXHU2.js";
|
|
65
70
|
import {
|
|
66
71
|
require_has_flag,
|
|
67
72
|
require_source
|
|
@@ -69,7 +74,6 @@ import {
|
|
|
69
74
|
import {
|
|
70
75
|
cpLen,
|
|
71
76
|
cpSlice,
|
|
72
|
-
eastAsianWidth,
|
|
73
77
|
escapeAnsiCtrlCodes,
|
|
74
78
|
getCachedStringWidth,
|
|
75
79
|
sanitizeSensitiveText,
|
|
@@ -77,7 +81,10 @@ import {
|
|
|
77
81
|
stripUnsafeCharacters,
|
|
78
82
|
toCodePoints,
|
|
79
83
|
wrapToVisualLines
|
|
80
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-ZK5EI6NR.js";
|
|
85
|
+
import {
|
|
86
|
+
eastAsianWidth
|
|
87
|
+
} from "./chunk-LGFAYIKX.js";
|
|
81
88
|
import {
|
|
82
89
|
formatDuration,
|
|
83
90
|
formatMemoryUsage,
|
|
@@ -86,18 +93,18 @@ import {
|
|
|
86
93
|
} from "./chunk-KHDZHZMH.js";
|
|
87
94
|
import {
|
|
88
95
|
createLoadedSettingsAdapter
|
|
89
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-L7IWK7JY.js";
|
|
90
97
|
import {
|
|
91
98
|
getPersistScopeForModelSelection
|
|
92
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-QHT5USLK.js";
|
|
93
100
|
import {
|
|
94
101
|
getCurrentLanguage,
|
|
95
102
|
localizeToolDisplayName,
|
|
96
103
|
t
|
|
97
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-TBLJNMI7.js";
|
|
98
105
|
import {
|
|
99
106
|
isWorkspaceTrusted
|
|
100
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-MOQOAH7N.js";
|
|
101
108
|
import {
|
|
102
109
|
ALL_PROVIDERS,
|
|
103
110
|
IdeClient,
|
|
@@ -118,21 +125,21 @@ import {
|
|
|
118
125
|
resolveMetadataKey,
|
|
119
126
|
resolveOwnsModel,
|
|
120
127
|
stripAnsi
|
|
121
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-E7HM76PR.js";
|
|
122
129
|
import {
|
|
123
130
|
MAIN_SOURCE,
|
|
124
131
|
getMCPServerStatus
|
|
125
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-7I4MGFBN.js";
|
|
126
133
|
import {
|
|
127
134
|
ToolDisplayNames,
|
|
128
135
|
ToolNames,
|
|
129
136
|
ToolNamesMigration
|
|
130
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-X3YGAX7V.js";
|
|
131
138
|
import {
|
|
132
139
|
createDebugLogger,
|
|
133
140
|
escapePath,
|
|
134
141
|
unescapePath
|
|
135
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-22MNNNXE.js";
|
|
136
143
|
import {
|
|
137
144
|
init_esbuild_shims
|
|
138
145
|
} from "./chunk-A4BMJM77.js";
|
|
@@ -5490,12 +5497,22 @@ var TableRenderer = /* @__PURE__ */ __name(({
|
|
|
5490
5497
|
rows,
|
|
5491
5498
|
contentWidth,
|
|
5492
5499
|
aligns,
|
|
5493
|
-
enableInlineMath = false
|
|
5500
|
+
enableInlineMath = false,
|
|
5501
|
+
isStreaming = false,
|
|
5502
|
+
maxHeight
|
|
5494
5503
|
}) => {
|
|
5495
5504
|
const colCount = headers.length;
|
|
5496
5505
|
if (colCount === 0) {
|
|
5497
5506
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Box_default, {});
|
|
5498
5507
|
}
|
|
5508
|
+
const clampToMaxHeight = /* @__PURE__ */ __name((text) => {
|
|
5509
|
+
if (maxHeight === void 0) return text;
|
|
5510
|
+
const all = text.split("\n");
|
|
5511
|
+
if (all.length <= maxHeight) return text;
|
|
5512
|
+
const kept = all.slice(0, Math.max(1, maxHeight - 1));
|
|
5513
|
+
kept.push(applyColor("\u2026 more rows streaming \u2026", theme.text.secondary));
|
|
5514
|
+
return kept.join("\n");
|
|
5515
|
+
}, "clampToMaxHeight");
|
|
5499
5516
|
const computeMetrics = /* @__PURE__ */ __name((text) => {
|
|
5500
5517
|
const rendered = renderMarkdownToAnsi(text, enableInlineMath);
|
|
5501
5518
|
const visible = stripAnsi(rendered);
|
|
@@ -5570,18 +5587,23 @@ var TableRenderer = /* @__PURE__ */ __name(({
|
|
|
5570
5587
|
}
|
|
5571
5588
|
function calculateMaxRowLines() {
|
|
5572
5589
|
let maxLines = 1;
|
|
5590
|
+
const rowsToMeasure = isStreaming ? rowMetrics.slice(0, 1) : rowMetrics;
|
|
5573
5591
|
for (let i = 0; i < colCount; i++) {
|
|
5574
|
-
const
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
|
|
5592
|
+
const headerWrapped = wrapText(
|
|
5593
|
+
headerMetrics[i].rendered,
|
|
5594
|
+
columnWidths[i],
|
|
5595
|
+
{
|
|
5596
|
+
hard: needsHardWrap
|
|
5597
|
+
}
|
|
5598
|
+
);
|
|
5599
|
+
maxLines = Math.max(maxLines, headerWrapped.length);
|
|
5578
5600
|
}
|
|
5579
|
-
for (const row of
|
|
5601
|
+
for (const row of rowsToMeasure) {
|
|
5580
5602
|
for (let i = 0; i < colCount; i++) {
|
|
5581
|
-
const
|
|
5603
|
+
const cellWrapped = wrapText(row[i].rendered, columnWidths[i], {
|
|
5582
5604
|
hard: needsHardWrap
|
|
5583
5605
|
});
|
|
5584
|
-
maxLines = Math.max(maxLines,
|
|
5606
|
+
maxLines = Math.max(maxLines, cellWrapped.length);
|
|
5585
5607
|
}
|
|
5586
5608
|
}
|
|
5587
5609
|
return maxLines;
|
|
@@ -5592,7 +5614,7 @@ var TableRenderer = /* @__PURE__ */ __name(({
|
|
|
5592
5614
|
ABSOLUTE_MIN_HORIZONTAL_TABLE_WIDTH,
|
|
5593
5615
|
colCount * MIN_COLUMN_WIDTH + borderOverhead + SAFETY_MARGIN
|
|
5594
5616
|
);
|
|
5595
|
-
const useVerticalFormat = contentWidth < minHorizontalTableWidth || maxRowLines > MAX_ROW_LINES;
|
|
5617
|
+
const useVerticalFormat = rowMetrics.length > 0 && (contentWidth < minHorizontalTableWidth || maxRowLines > MAX_ROW_LINES);
|
|
5596
5618
|
const getAlign = /* @__PURE__ */ __name((colIndex) => aligns?.[colIndex] ?? "left", "getAlign");
|
|
5597
5619
|
function renderBorderLine(type) {
|
|
5598
5620
|
const [left, mid, cross, right] = {
|
|
@@ -5675,32 +5697,34 @@ var TableRenderer = /* @__PURE__ */ __name(({
|
|
|
5675
5697
|
}
|
|
5676
5698
|
__name(renderVerticalFormat, "renderVerticalFormat");
|
|
5677
5699
|
if (useVerticalFormat) {
|
|
5678
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Box_default, { marginY: 1, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, { children: renderVerticalFormat() }) });
|
|
5700
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Box_default, { marginY: 1, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, { children: clampToMaxHeight(renderVerticalFormat()) }) });
|
|
5679
5701
|
}
|
|
5680
5702
|
const headerRendered = headerMetrics.map((m) => m.rendered);
|
|
5681
5703
|
const tableLines = [];
|
|
5682
5704
|
tableLines.push(renderBorderLine("top"));
|
|
5683
5705
|
tableLines.push(...renderRowLines(headerRendered, true));
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
|
|
5695
|
-
|
|
5706
|
+
if (rowMetrics.length > 0) {
|
|
5707
|
+
tableLines.push(renderBorderLine("middle"));
|
|
5708
|
+
rowMetrics.forEach((row, rowIndex) => {
|
|
5709
|
+
tableLines.push(
|
|
5710
|
+
...renderRowLines(
|
|
5711
|
+
row.map((m) => m.rendered),
|
|
5712
|
+
false
|
|
5713
|
+
)
|
|
5714
|
+
);
|
|
5715
|
+
if (rowIndex < rows.length - 1) {
|
|
5716
|
+
tableLines.push(renderBorderLine("middle"));
|
|
5717
|
+
}
|
|
5718
|
+
});
|
|
5719
|
+
}
|
|
5696
5720
|
tableLines.push(renderBorderLine("bottom"));
|
|
5697
5721
|
const maxLineWidth = Math.max(
|
|
5698
5722
|
...tableLines.map((line) => getCachedStringWidth(stripAnsi(line)))
|
|
5699
5723
|
);
|
|
5700
|
-
if (maxLineWidth > contentWidth - SAFETY_MARGIN) {
|
|
5701
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Box_default, { marginY: 1, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, { children: renderVerticalFormat() }) });
|
|
5724
|
+
if (rowMetrics.length > 0 && maxLineWidth > contentWidth - SAFETY_MARGIN) {
|
|
5725
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Box_default, { marginY: 1, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, { children: clampToMaxHeight(renderVerticalFormat()) }) });
|
|
5702
5726
|
}
|
|
5703
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Box_default, { flexDirection: "column", marginY: 1, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, { children: tableLines.join("\n") }) });
|
|
5727
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Box_default, { flexDirection: "column", marginY: 1, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text, { children: clampToMaxHeight(tableLines.join("\n")) }) });
|
|
5704
5728
|
}, "TableRenderer");
|
|
5705
5729
|
|
|
5706
5730
|
// packages/cli/src/ui/utils/InlineMarkdownRenderer.tsx
|
|
@@ -8041,10 +8065,11 @@ __name(useRenderMode, "useRenderMode");
|
|
|
8041
8065
|
// packages/cli/src/ui/utils/MarkdownDisplay.tsx
|
|
8042
8066
|
var import_jsx_runtime6 = __toESM(require_jsx_runtime(), 1);
|
|
8043
8067
|
var MIN_PENDING_CONTENT_LINES = 1;
|
|
8068
|
+
var TABLE_PENDING_RESERVED_ROWS = 3;
|
|
8044
8069
|
function countMarkdownSourceBlocks(text) {
|
|
8045
8070
|
const codeBlockLanguageCounts = /* @__PURE__ */ new Map();
|
|
8046
8071
|
const lines = text.split(/\r?\n/);
|
|
8047
|
-
const codeFenceRegex =
|
|
8072
|
+
const codeFenceRegex = CODE_FENCE_RE;
|
|
8048
8073
|
const mathFenceRegex = /^ *\$\$ *$/;
|
|
8049
8074
|
let activeCodeFence = null;
|
|
8050
8075
|
let inMathBlock = false;
|
|
@@ -8088,65 +8113,6 @@ var LIST_ITEM_PREFIX_PADDING = 1;
|
|
|
8088
8113
|
var LIST_ITEM_TEXT_FLEX_GROW = 1;
|
|
8089
8114
|
var BLOCKQUOTE_PREFIX_PADDING = 1;
|
|
8090
8115
|
var MATH_BLOCK_PREFIX_PADDING = 1;
|
|
8091
|
-
var INLINE_MATH_MAX_CHARS3 = 1024;
|
|
8092
|
-
var TABLE_INLINE_MATH_SPAN_RE = new RegExp(
|
|
8093
|
-
String.raw`(?<![\w$])\$(?![\s\d$])(?=[^$\n]{1,${INLINE_MATH_MAX_CHARS3}}\S\$)[^$\n]{1,${INLINE_MATH_MAX_CHARS3}}\$(?![\w$])`,
|
|
8094
|
-
"y"
|
|
8095
|
-
);
|
|
8096
|
-
function readTableInlineMathSpan(row, index) {
|
|
8097
|
-
TABLE_INLINE_MATH_SPAN_RE.lastIndex = index;
|
|
8098
|
-
return TABLE_INLINE_MATH_SPAN_RE.exec(row)?.[0] ?? null;
|
|
8099
|
-
}
|
|
8100
|
-
__name(readTableInlineMathSpan, "readTableInlineMathSpan");
|
|
8101
|
-
function splitMarkdownTableRow(row) {
|
|
8102
|
-
const cells = [];
|
|
8103
|
-
let current = "";
|
|
8104
|
-
let activeCodeFenceLength = 0;
|
|
8105
|
-
for (let index = 0; index < row.length; index++) {
|
|
8106
|
-
const char = row[index];
|
|
8107
|
-
if (char === "\\") {
|
|
8108
|
-
const next = row[index + 1];
|
|
8109
|
-
if (next === "|") {
|
|
8110
|
-
current += "|";
|
|
8111
|
-
index += 1;
|
|
8112
|
-
continue;
|
|
8113
|
-
}
|
|
8114
|
-
current += char;
|
|
8115
|
-
continue;
|
|
8116
|
-
}
|
|
8117
|
-
if (char === "`") {
|
|
8118
|
-
let runLength = 1;
|
|
8119
|
-
while (row[index + runLength] === "`") {
|
|
8120
|
-
runLength += 1;
|
|
8121
|
-
}
|
|
8122
|
-
if (activeCodeFenceLength === 0) {
|
|
8123
|
-
activeCodeFenceLength = runLength;
|
|
8124
|
-
} else if (runLength === activeCodeFenceLength) {
|
|
8125
|
-
activeCodeFenceLength = 0;
|
|
8126
|
-
}
|
|
8127
|
-
current += "`".repeat(runLength);
|
|
8128
|
-
index += runLength - 1;
|
|
8129
|
-
continue;
|
|
8130
|
-
}
|
|
8131
|
-
if (char === "$" && activeCodeFenceLength === 0) {
|
|
8132
|
-
const mathSpan = readTableInlineMathSpan(row, index);
|
|
8133
|
-
if (mathSpan) {
|
|
8134
|
-
current += mathSpan;
|
|
8135
|
-
index += mathSpan.length - 1;
|
|
8136
|
-
continue;
|
|
8137
|
-
}
|
|
8138
|
-
}
|
|
8139
|
-
if (char === "|" && activeCodeFenceLength === 0) {
|
|
8140
|
-
cells.push(current.trim());
|
|
8141
|
-
current = "";
|
|
8142
|
-
continue;
|
|
8143
|
-
}
|
|
8144
|
-
current += char;
|
|
8145
|
-
}
|
|
8146
|
-
cells.push(current.trim());
|
|
8147
|
-
return cells;
|
|
8148
|
-
}
|
|
8149
|
-
__name(splitMarkdownTableRow, "splitMarkdownTableRow");
|
|
8150
8116
|
var MarkdownDisplayInternal = /* @__PURE__ */ __name(({
|
|
8151
8117
|
text,
|
|
8152
8118
|
isPending,
|
|
@@ -8160,18 +8126,85 @@ var MarkdownDisplayInternal = /* @__PURE__ */ __name(({
|
|
|
8160
8126
|
const renderVisualBlocks = renderMode === "render";
|
|
8161
8127
|
const displayText = isPending ? text.trimEnd() : text;
|
|
8162
8128
|
const allLines = displayText.split(/\r?\n/);
|
|
8163
|
-
const
|
|
8164
|
-
const pendingClipped = pendingLineBudget !== void 0 && allLines.length > pendingLineBudget;
|
|
8165
|
-
const lines = pendingClipped ? allLines.slice(0, pendingLineBudget) : allLines;
|
|
8129
|
+
const pendingRenderedBudget = isPending && availableTerminalHeight !== void 0 ? Math.max(MIN_PENDING_CONTENT_LINES, availableTerminalHeight - 2) : void 0;
|
|
8166
8130
|
const headerRegex = /^ *(#{1,4}) +(.*)/;
|
|
8167
|
-
const codeFenceRegex =
|
|
8131
|
+
const codeFenceRegex = CODE_FENCE_RE;
|
|
8168
8132
|
const ulItemRegex = /^([ \t]*)([-*+]) +(.*)/;
|
|
8169
8133
|
const olItemRegex = /^([ \t]*)(\d+)\. +(.*)/;
|
|
8170
8134
|
const hrRegex = /^ *([-*_] *){3,} *$/;
|
|
8171
8135
|
const blockquoteRegex = /^ *> ?(.*)$/;
|
|
8172
8136
|
const mathFenceRegex = /^ *\$\$ *$/;
|
|
8173
|
-
const tableRowRegex =
|
|
8174
|
-
const tableSeparatorRegex =
|
|
8137
|
+
const tableRowRegex = TABLE_ROW_RE;
|
|
8138
|
+
const tableSeparatorRegex = TABLE_SEPARATOR_RE;
|
|
8139
|
+
let lines = allLines;
|
|
8140
|
+
if (pendingRenderedBudget !== void 0) {
|
|
8141
|
+
const tableClampRows = availableTerminalHeight !== void 0 ? Math.max(2, availableTerminalHeight - TABLE_PENDING_RESERVED_ROWS) : Number.MAX_SAFE_INTEGER;
|
|
8142
|
+
const { keptLines } = fitPendingSlice(
|
|
8143
|
+
allLines,
|
|
8144
|
+
contentWidth,
|
|
8145
|
+
pendingRenderedBudget,
|
|
8146
|
+
tableClampRows
|
|
8147
|
+
);
|
|
8148
|
+
if (keptLines < allLines.length) {
|
|
8149
|
+
lines = allLines.slice(0, keptLines);
|
|
8150
|
+
}
|
|
8151
|
+
}
|
|
8152
|
+
if (isPending && renderVisualBlocks && lines.length > 0) {
|
|
8153
|
+
let start = lines.length;
|
|
8154
|
+
while (start > 0 && /^\s*\|/.test(lines[start - 1])) start--;
|
|
8155
|
+
if (start < lines.length) {
|
|
8156
|
+
let activeCodeFence = "";
|
|
8157
|
+
let insideMathBlock = false;
|
|
8158
|
+
for (let i = 0; i < start; i++) {
|
|
8159
|
+
const line = lines[i];
|
|
8160
|
+
if (activeCodeFence) {
|
|
8161
|
+
const fenceMatch2 = line.match(codeFenceRegex);
|
|
8162
|
+
if (fenceMatch2 && fenceMatch2[1].startsWith(activeCodeFence[0]) && fenceMatch2[1].length >= activeCodeFence.length) {
|
|
8163
|
+
activeCodeFence = "";
|
|
8164
|
+
}
|
|
8165
|
+
continue;
|
|
8166
|
+
}
|
|
8167
|
+
if (insideMathBlock) {
|
|
8168
|
+
if (mathFenceRegex.test(line)) insideMathBlock = false;
|
|
8169
|
+
continue;
|
|
8170
|
+
}
|
|
8171
|
+
const fenceMatch = line.match(codeFenceRegex);
|
|
8172
|
+
if (fenceMatch) {
|
|
8173
|
+
activeCodeFence = fenceMatch[1];
|
|
8174
|
+
} else if (mathFenceRegex.test(line)) {
|
|
8175
|
+
insideMathBlock = true;
|
|
8176
|
+
}
|
|
8177
|
+
}
|
|
8178
|
+
const insideCodeFence = activeCodeFence !== "";
|
|
8179
|
+
let headerCells = 0;
|
|
8180
|
+
if (!insideCodeFence && !insideMathBlock) {
|
|
8181
|
+
let hdr = lines[start].replace(/^\s*\|/, "");
|
|
8182
|
+
if (/\|\s*$/.test(hdr)) hdr = hdr.replace(/\|\s*$/, "");
|
|
8183
|
+
headerCells = splitMarkdownTableRow(hdr).length;
|
|
8184
|
+
}
|
|
8185
|
+
if (headerCells >= 2) {
|
|
8186
|
+
const rest = lines.slice(start + 1);
|
|
8187
|
+
const hasMatchingSeparator = rest.some((l) => {
|
|
8188
|
+
if (!tableSeparatorRegex.test(l)) return false;
|
|
8189
|
+
const cols = splitMarkdownTableRow(l).filter(
|
|
8190
|
+
(c) => c.length > 0
|
|
8191
|
+
).length;
|
|
8192
|
+
return cols === headerCells;
|
|
8193
|
+
});
|
|
8194
|
+
const lineAfterHeader = rest[0];
|
|
8195
|
+
let couldStillBeTable = lineAfterHeader === void 0 || tableSeparatorRegex.test(lineAfterHeader);
|
|
8196
|
+
if (couldStillBeTable && lineAfterHeader !== void 0 && /\|\s*$/.test(lineAfterHeader)) {
|
|
8197
|
+
const sepCols = splitMarkdownTableRow(lineAfterHeader).filter(
|
|
8198
|
+
(c) => c.length > 0
|
|
8199
|
+
).length;
|
|
8200
|
+
if (sepCols !== headerCells) couldStillBeTable = false;
|
|
8201
|
+
}
|
|
8202
|
+
if (!hasMatchingSeparator && couldStillBeTable) {
|
|
8203
|
+
lines = lines.slice(0, start);
|
|
8204
|
+
}
|
|
8205
|
+
}
|
|
8206
|
+
}
|
|
8207
|
+
}
|
|
8175
8208
|
const parseTableAligns = /* @__PURE__ */ __name((line) => splitMarkdownTableRow(line).filter((cell) => cell.length > 0).map((cell) => {
|
|
8176
8209
|
const startsWithColon = cell.startsWith(":");
|
|
8177
8210
|
const endsWithColon = cell.endsWith(":");
|
|
@@ -8311,6 +8344,7 @@ var MarkdownDisplayInternal = /* @__PURE__ */ __name(({
|
|
|
8311
8344
|
}
|
|
8312
8345
|
} else if (inTable && tableSeparatorMatch) {
|
|
8313
8346
|
tableAligns = parseTableAligns(line);
|
|
8347
|
+
} else if (isPending && inTable && index === lines.length - 1 && tableHeaders.length > 0 && /^\s*\|/.test(line) && (!tableRowMatch || splitMarkdownTableRow(tableRowMatch[1]).length < tableHeaders.length)) {
|
|
8314
8348
|
} else if (inTable && tableRowMatch) {
|
|
8315
8349
|
const cells = splitMarkdownTableRow(tableRowMatch[1]);
|
|
8316
8350
|
while (cells.length < tableHeaders.length) {
|
|
@@ -8330,7 +8364,10 @@ var MarkdownDisplayInternal = /* @__PURE__ */ __name(({
|
|
|
8330
8364
|
rows: tableRows,
|
|
8331
8365
|
contentWidth,
|
|
8332
8366
|
aligns: tableAligns,
|
|
8333
|
-
enableInlineMath: renderVisualBlocks
|
|
8367
|
+
enableInlineMath: renderVisualBlocks,
|
|
8368
|
+
isPending,
|
|
8369
|
+
isFrontier: false,
|
|
8370
|
+
availableTerminalHeight
|
|
8334
8371
|
},
|
|
8335
8372
|
`table-${contentBlocks.length}`
|
|
8336
8373
|
)
|
|
@@ -8524,18 +8561,15 @@ var MarkdownDisplayInternal = /* @__PURE__ */ __name(({
|
|
|
8524
8561
|
rows: tableRows,
|
|
8525
8562
|
contentWidth,
|
|
8526
8563
|
aligns: tableAligns,
|
|
8527
|
-
enableInlineMath: renderVisualBlocks
|
|
8564
|
+
enableInlineMath: renderVisualBlocks,
|
|
8565
|
+
isPending,
|
|
8566
|
+
isFrontier: true,
|
|
8567
|
+
availableTerminalHeight
|
|
8528
8568
|
},
|
|
8529
8569
|
`table-${contentBlocks.length}`
|
|
8530
8570
|
)
|
|
8531
8571
|
);
|
|
8532
8572
|
}
|
|
8533
|
-
if (pendingClipped) {
|
|
8534
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(Box_default, { flexDirection: "column", children: [
|
|
8535
|
-
contentBlocks,
|
|
8536
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Text, { color: theme.text.secondary, wrap: "truncate", children: "... generating more ..." })
|
|
8537
|
-
] });
|
|
8538
|
-
}
|
|
8539
8573
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, { children: contentBlocks });
|
|
8540
8574
|
}, "MarkdownDisplayInternal");
|
|
8541
8575
|
var RenderCodeBlockInternal = /* @__PURE__ */ __name(({
|
|
@@ -8549,8 +8583,8 @@ var RenderCodeBlockInternal = /* @__PURE__ */ __name(({
|
|
|
8549
8583
|
}) => {
|
|
8550
8584
|
const settings = useSettings();
|
|
8551
8585
|
const { renderMode } = useRenderMode();
|
|
8552
|
-
const
|
|
8553
|
-
const RESERVED_LINES =
|
|
8586
|
+
const MIN_PREVIEW_LINES = 1;
|
|
8587
|
+
const RESERVED_LINES = 1;
|
|
8554
8588
|
if (lang?.toLowerCase() === "mermaid" && renderMode === "render") {
|
|
8555
8589
|
if (isPending) {
|
|
8556
8590
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
@@ -8580,7 +8614,7 @@ var RenderCodeBlockInternal = /* @__PURE__ */ __name(({
|
|
|
8580
8614
|
availableTerminalHeight - RESERVED_LINES
|
|
8581
8615
|
);
|
|
8582
8616
|
if (content.length > MAX_CODE_LINES_WHEN_PENDING) {
|
|
8583
|
-
if (MAX_CODE_LINES_WHEN_PENDING <
|
|
8617
|
+
if (MAX_CODE_LINES_WHEN_PENDING < MIN_PREVIEW_LINES) {
|
|
8584
8618
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Box_default, { paddingLeft: CODE_BLOCK_PREFIX_PADDING, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Text, { color: theme.text.secondary, children: "... code is being written ..." }) });
|
|
8585
8619
|
}
|
|
8586
8620
|
const truncatedContent = content.slice(0, MAX_CODE_LINES_WHEN_PENDING);
|
|
@@ -8592,10 +8626,7 @@ var RenderCodeBlockInternal = /* @__PURE__ */ __name(({
|
|
|
8592
8626
|
void 0,
|
|
8593
8627
|
settings
|
|
8594
8628
|
);
|
|
8595
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.
|
|
8596
|
-
colorizedTruncatedCode,
|
|
8597
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Text, { color: theme.text.secondary, children: "... generating more ..." })
|
|
8598
|
-
] });
|
|
8629
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Box_default, { paddingLeft: CODE_BLOCK_PREFIX_PADDING, flexDirection: "column", children: colorizedTruncatedCode });
|
|
8599
8630
|
}
|
|
8600
8631
|
}
|
|
8601
8632
|
const colorizedCode = colorizeCode(
|
|
@@ -8619,7 +8650,7 @@ var RenderCodeBlockInternal = /* @__PURE__ */ __name(({
|
|
|
8619
8650
|
}, "RenderCodeBlockInternal");
|
|
8620
8651
|
var RenderCodeBlock = import_react9.default.memo(RenderCodeBlockInternal);
|
|
8621
8652
|
var RenderPendingMermaidBlockInternal = /* @__PURE__ */ __name(({ content, availableTerminalHeight, contentWidth }) => {
|
|
8622
|
-
const maxPreviewLines = availableTerminalHeight === void 0 ? 6 : Math.max(0, availableTerminalHeight -
|
|
8653
|
+
const maxPreviewLines = availableTerminalHeight === void 0 ? 6 : Math.max(0, availableTerminalHeight - 1);
|
|
8623
8654
|
const previewLines = content.slice(0, maxPreviewLines);
|
|
8624
8655
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
8625
8656
|
Box_default,
|
|
@@ -8630,8 +8661,7 @@ var RenderPendingMermaidBlockInternal = /* @__PURE__ */ __name(({ content, avail
|
|
|
8630
8661
|
flexShrink: 0,
|
|
8631
8662
|
children: [
|
|
8632
8663
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Text, { color: theme.text.accent, children: "Mermaid diagram is being written..." }),
|
|
8633
|
-
previewLines.map((line, index) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Text, { color: theme.text.secondary, wrap: "truncate-end", children: line || " " }, index))
|
|
8634
|
-
content.length > previewLines.length && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Text, { color: theme.text.secondary, children: "... generating more ..." })
|
|
8664
|
+
previewLines.map((line, index) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Text, { color: theme.text.secondary, wrap: "truncate-end", children: line || " " }, index))
|
|
8635
8665
|
]
|
|
8636
8666
|
}
|
|
8637
8667
|
);
|
|
@@ -8644,7 +8674,7 @@ var RenderMathBlockInternal = /* @__PURE__ */ __name(({
|
|
|
8644
8674
|
isPending,
|
|
8645
8675
|
availableTerminalHeight
|
|
8646
8676
|
}) => {
|
|
8647
|
-
const RESERVED_LINES =
|
|
8677
|
+
const RESERVED_LINES = 2;
|
|
8648
8678
|
if (isPending && availableTerminalHeight !== void 0) {
|
|
8649
8679
|
const maxPreviewLines = Math.max(
|
|
8650
8680
|
0,
|
|
@@ -8664,8 +8694,7 @@ var RenderMathBlockInternal = /* @__PURE__ */ __name(({
|
|
|
8664
8694
|
"LaTeX block \xB7 source: ",
|
|
8665
8695
|
sourceCopyCommand
|
|
8666
8696
|
] }),
|
|
8667
|
-
previewLines.map((line, index) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Text, { color: theme.text.secondary, wrap: "truncate-end", children: line || " " }, index))
|
|
8668
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Text, { color: theme.text.secondary, children: "... generating more ..." })
|
|
8697
|
+
previewLines.map((line, index) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Text, { color: theme.text.secondary, wrap: "truncate-end", children: line || " " }, index))
|
|
8669
8698
|
]
|
|
8670
8699
|
}
|
|
8671
8700
|
);
|
|
@@ -8746,17 +8775,25 @@ var RenderTableInternal = /* @__PURE__ */ __name(({
|
|
|
8746
8775
|
rows,
|
|
8747
8776
|
contentWidth,
|
|
8748
8777
|
aligns,
|
|
8749
|
-
enableInlineMath = false
|
|
8750
|
-
|
|
8751
|
-
|
|
8752
|
-
|
|
8753
|
-
|
|
8754
|
-
|
|
8755
|
-
|
|
8756
|
-
|
|
8757
|
-
|
|
8758
|
-
|
|
8759
|
-
|
|
8778
|
+
enableInlineMath = false,
|
|
8779
|
+
isPending = false,
|
|
8780
|
+
isFrontier = true,
|
|
8781
|
+
availableTerminalHeight
|
|
8782
|
+
}) => {
|
|
8783
|
+
const maxHeight = isPending && availableTerminalHeight !== void 0 ? Math.max(2, availableTerminalHeight - TABLE_PENDING_RESERVED_ROWS) : void 0;
|
|
8784
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
8785
|
+
TableRenderer,
|
|
8786
|
+
{
|
|
8787
|
+
headers,
|
|
8788
|
+
rows,
|
|
8789
|
+
contentWidth,
|
|
8790
|
+
aligns,
|
|
8791
|
+
enableInlineMath,
|
|
8792
|
+
isStreaming: isPending && isFrontier,
|
|
8793
|
+
maxHeight
|
|
8794
|
+
}
|
|
8795
|
+
);
|
|
8796
|
+
}, "RenderTableInternal");
|
|
8760
8797
|
var RenderTable = import_react9.default.memo(RenderTableInternal);
|
|
8761
8798
|
var MarkdownDisplay = import_react9.default.memo(MarkdownDisplayInternal);
|
|
8762
8799
|
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
} from "./chunk-Y6Z2O3WR.js";
|
|
6
6
|
import {
|
|
7
7
|
resolveBundleDir
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-E7HM76PR.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,10 +2,10 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
isTeamAutoMemPath
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-4KJ2BPIT.js";
|
|
6
6
|
import {
|
|
7
7
|
createDebugLogger
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-22MNNNXE.js";
|
|
9
9
|
import {
|
|
10
10
|
init_esbuild_shims
|
|
11
11
|
} from "./chunk-A4BMJM77.js";
|