@qwen-code/qwen-code 0.19.3 → 0.19.4
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/loop/SKILL.md +22 -3
- package/bundled/loop/SKILL.test.ts +20 -0
- package/bundled/loop/autonomous-loop.test.ts +59 -0
- package/bundled/loop/autonomous-loop.ts +102 -0
- package/bundled/loop/loop-task-file.test.ts +1064 -0
- package/bundled/loop/loop-task-file.ts +404 -0
- package/bundled/loop/loop-tick-resolver.test.ts +906 -0
- package/bundled/loop/loop-tick-resolver.ts +416 -0
- package/bundled/qc-helper/SKILL.md +12 -5
- package/bundled/qc-helper/docs/configuration/auth.md +1 -1
- package/bundled/qc-helper/docs/configuration/settings.md +40 -26
- package/bundled/qc-helper/docs/features/approval-mode.md +3 -0
- package/bundled/qc-helper/docs/features/auto-mode.md +40 -0
- package/bundled/qc-helper/docs/features/channels/overview.md +81 -18
- package/bundled/qc-helper/docs/features/channels/plugins.md +1 -1
- package/bundled/qc-helper/docs/features/code-review.md +17 -61
- package/bundled/qc-helper/docs/features/commands.md +6 -6
- package/bundled/qc-helper/docs/features/hooks.md +6 -1
- package/bundled/qc-helper/docs/features/mcp.md +3 -1
- package/bundled/qc-helper/docs/features/memory.md +1 -1
- package/bundled/qc-helper/docs/features/scheduled-tasks.md +10 -0
- package/bundled/qc-helper/docs/features/status-line.md +3 -3
- package/bundled/qc-helper/docs/ide-integration/ide-integration.md +4 -4
- package/bundled/qc-helper/docs/qwen-serve.md +19 -0
- package/bundled/qc-helper/docs/support/troubleshooting.md +6 -0
- package/bundled/review/DESIGN.md +21 -26
- package/bundled/review/SKILL.md +45 -129
- package/chunks/MaxSizedBox-ERTNFI22.js +68 -0
- package/chunks/{StandaloneSessionPicker-Z52JTYST.js → StandaloneSessionPicker-Y5NGRLRY.js} +48 -42
- package/chunks/{acpAgent-7RZUOWOM.js → acpAgent-UMN6OYTR.js} +1319 -361
- package/chunks/{agent-4FG7WTHJ.js → agent-56DZU4ZU.js} +30 -25
- package/chunks/agent-headless-SR7N2IJG.js +61 -0
- package/chunks/{anthropicContentGenerator-PFITVL7Y.js → anthropicContentGenerator-5OZFO6WQ.js} +11 -8
- package/chunks/{artifact-tool-D2X7G3C3.js → artifact-tool-JVZMHA4B.js} +3 -3
- package/chunks/{askUserQuestion-UGETICJQ.js → askUserQuestion-CMJZ2F3D.js} +2 -2
- package/chunks/bridge-AUHNFOUS.js +72 -0
- package/chunks/{ca-IUFWESZL.js → ca-RYOETBUW.js} +9 -9
- package/chunks/channel-worker-supervisor-A74FV522.js +308 -0
- package/chunks/{chunk-T4T2FNV4.js → chunk-2X2JUE47.js} +2 -2
- package/chunks/{chunk-BX5YO7UW.js → chunk-4VZH35PN.js} +540 -370
- package/chunks/{chunk-M2U5NM24.js → chunk-54YZOP7P.js} +309 -72
- package/chunks/chunk-5P5XGNYH.js +93 -0
- package/chunks/{chunk-QWFNTRH4.js → chunk-6AQR7732.js} +1 -1
- package/chunks/{chunk-HZT4UCFB.js → chunk-6CIIP6OE.js} +4 -4
- package/chunks/{chunk-ADCIHOQZ.js → chunk-6TLY5W3B.js} +16 -8
- package/chunks/{chunk-BXSHL2SF.js → chunk-73H73ASU.js} +1 -1
- package/chunks/{chunk-3TV3HUWZ.js → chunk-75X2VLSH.js} +60 -30
- package/chunks/{chunk-6V4NZFUS.js → chunk-7KPI4LAI.js} +5 -5
- package/chunks/{chunk-PDE7CSDS.js → chunk-7VPC7D7O.js} +2 -2
- package/chunks/chunk-AHNXYU4O.js +24 -0
- package/chunks/{chunk-UX4SGCGN.js → chunk-AVQDCKNF.js} +96 -22
- package/chunks/{chunk-HYCC3XM3.js → chunk-B236XPGF.js} +1 -1
- package/chunks/{chunk-N4EJFBN5.js → chunk-B7KGXIPZ.js} +419 -262
- package/chunks/{chunk-YAINVQ3Q.js → chunk-BFG6OZN7.js} +17392 -16335
- package/chunks/{chunk-5DWXLGOM.js → chunk-BJBWRCSK.js} +1 -1
- package/chunks/{chunk-BTLJ2MF5.js → chunk-BNJLLAQ7.js} +3 -3
- package/chunks/{chunk-UYT3MWEB.js → chunk-BQNJBEUA.js} +16 -2
- package/chunks/{chunk-SKQZZVAV.js → chunk-BZHLWC6T.js} +2 -2
- package/chunks/{chunk-HPZTOP4I.js → chunk-C2IHHGBZ.js} +131 -21
- package/chunks/chunk-CG7SVARK.js +367 -0
- package/chunks/{chunk-CNLEDYE3.js → chunk-CS5XYDBO.js} +5 -5
- package/chunks/{chunk-O75BHFQW.js → chunk-CUGEBAKG.js} +2 -2
- package/chunks/{chunk-U3KSMM7G.js → chunk-D5KISTLW.js} +339 -383
- package/chunks/{chunk-STUWFKGD.js → chunk-DQ74W65K.js} +431 -535
- package/chunks/{chunk-VVLOGDB6.js → chunk-DX3TKXNT.js} +2 -2
- package/chunks/chunk-E5A7LHNN.js +51 -0
- package/chunks/{chunk-3PJXIDKI.js → chunk-E6US47KI.js} +3 -27
- package/chunks/chunk-EDAGQADF.js +21 -0
- package/chunks/{chunk-QBZ22PQX.js → chunk-EWALXUAD.js} +3 -1
- package/chunks/{chunk-4QK3O43S.js → chunk-FNLXLI4I.js} +4 -4
- package/chunks/{chunk-I2LYBGNI.js → chunk-FYKX6XOT.js} +1 -1
- package/chunks/{chunk-QLDPRILK.js → chunk-G7OQ3RFJ.js} +3 -3
- package/chunks/{chunk-R2BXK7SX.js → chunk-GHOTR7HL.js} +6 -1
- package/chunks/{chunk-L7OKCI7T.js → chunk-GICCHL2Q.js} +15 -1
- package/chunks/{chunk-KMGMKW5Q.js → chunk-GLPV75ES.js} +9 -3
- package/chunks/{chunk-LD2XBG6Z.js → chunk-GO6LNQXT.js} +1 -39
- package/chunks/chunk-HI55Z6PR.js +3523 -0
- package/chunks/{chunk-QNKBEJO2.js → chunk-HJDF3ZVU.js} +2776 -1289
- package/chunks/{chunk-JJXWTVSK.js → chunk-HRZB5CSC.js} +34 -1
- package/chunks/{chunk-I4H7PRWQ.js → chunk-HTWHAN44.js} +1 -1
- package/chunks/{chunk-EJYJYJZ2.js → chunk-IRJWHZWU.js} +3 -70
- package/chunks/{chunk-CKQA6AWF.js → chunk-J3F7X3LW.js} +1 -1
- package/chunks/{chunk-QI7GOGJR.js → chunk-KKQWC6WS.js} +1 -1
- package/chunks/{chunk-VBZ452JT.js → chunk-KVPFPC4J.js} +494 -114
- package/chunks/{chunk-NDOC6M5S.js → chunk-L7QPM2YD.js} +2 -2
- package/chunks/{chunk-SLNKLLEO.js → chunk-L7VH7HQA.js} +12 -8
- package/chunks/{chunk-BVSVIN45.js → chunk-LKWAVAB5.js} +3 -3
- package/chunks/{chunk-ZP6UKOPB.js → chunk-LWGLBVWA.js} +1 -1
- package/chunks/{chunk-SBBN4BWR.js → chunk-MEQWZGK5.js} +1 -1
- package/chunks/{chunk-FKAVULLM.js → chunk-MKHC4BYZ.js} +58 -10
- package/chunks/{chunk-UFLGERMB.js → chunk-MNDTD5E5.js} +178 -124
- package/chunks/{chunk-RD6YJJJ6.js → chunk-MOUXUCXQ.js} +1 -1
- package/chunks/{chunk-EDMZZFDU.js → chunk-MVZXZWGT.js} +905 -795
- package/chunks/chunk-MX2YXRER.js +44 -0
- package/chunks/{chunk-JVHEVCAU.js → chunk-ND25GXEU.js} +23 -6
- package/chunks/chunk-NIOPRZNN.js +27 -0
- package/chunks/{chunk-DDMOU62Q.js → chunk-NPQWQYU6.js} +1 -1
- package/chunks/{chunk-PR32FRT6.js → chunk-OAFUMTWW.js} +3 -3
- package/chunks/chunk-OJCECIJA.js +238 -0
- package/chunks/{chunk-GGBIN5K7.js → chunk-PIYV6COW.js} +1 -1
- package/chunks/{chunk-CF6BB3LT.js → chunk-PPFWEV7G.js} +10 -1
- package/chunks/{chunk-4LUZAKMK.js → chunk-Q7VHIRDD.js} +1 -1
- package/chunks/{chunk-ODLIHNOY.js → chunk-QAFQLTXG.js} +1 -1
- package/chunks/{chunk-Y6YMRS3U.js → chunk-QMIND2AS.js} +3 -3
- package/chunks/{chunk-XJYUPHRC.js → chunk-QOMAHFYI.js} +3 -3
- package/chunks/{chunk-J37FGIOA.js → chunk-QXPI7FEC.js} +38 -4
- package/chunks/chunk-RM3PGSGL.js +66 -0
- package/chunks/chunk-RNBYOUGV.js +42 -0
- package/chunks/chunk-S5EQPDTM.js +91 -0
- package/chunks/chunk-SEZC2725.js +36 -0
- package/chunks/{chunk-FNJ7BDPH.js → chunk-SFN4TEHY.js} +10 -7
- package/chunks/{chunk-O2VBQ3Y2.js → chunk-SJBIFVD2.js} +2 -2
- package/chunks/chunk-SYCJMSIJ.js +82 -0
- package/chunks/{chunk-JE5FVRPC.js → chunk-T22H4V4R.js} +48 -23
- package/chunks/{chunk-3227DZO4.js → chunk-T42ACHFI.js} +1 -1
- package/chunks/{chunk-UO5GVXQE.js → chunk-TENOUWY2.js} +3 -3
- package/chunks/{chunk-JOLIREYR.js → chunk-TOAUDIS7.js} +1 -1
- package/chunks/{chunk-J7FA27RO.js → chunk-TTFNVEO5.js} +3 -3
- package/chunks/{chunk-S7AKE7HL.js → chunk-UANCYOOQ.js} +63 -9
- package/chunks/{chunk-BUUQ5HPX.js → chunk-UQFP2FEF.js} +1 -1
- package/chunks/{chunk-R5OP2ATH.js → chunk-UQYOMM6J.js} +11 -11
- package/chunks/{chunk-J33ZR6OJ.js → chunk-UT5JU5DJ.js} +16 -16
- package/chunks/{chunk-QE6KJYLT.js → chunk-VKGG724L.js} +122 -25
- package/chunks/{chunk-SMXULRAN.js → chunk-VXGPYF7U.js} +1 -1
- package/chunks/{chunk-MNF6S5PR.js → chunk-W2ZOAX7F.js} +4 -4
- package/chunks/{chunk-GT2FGICD.js → chunk-W6X4FGWX.js} +1 -1
- package/chunks/{chunk-SMYQZVZ3.js → chunk-XCUFHOAD.js} +1 -1
- package/chunks/{chunk-K5XU6E4T.js → chunk-XKSCTXPK.js} +2 -2
- package/chunks/{chunk-FXKVLFFY.js → chunk-YBDZ63KI.js} +3 -3
- package/chunks/{chunk-BKXBARJZ.js → chunk-YPCPZSZB.js} +1 -1
- package/chunks/chunk-YTFBURQD.js +313 -0
- package/chunks/{chunk-NL4C3H6C.js → chunk-YXK4GPYO.js} +1 -1
- package/chunks/{chunk-F3ZYSEY6.js → chunk-ZJP5T7IA.js} +3 -3
- package/chunks/{chunk-RYLJU2DY.js → chunk-ZN5T4BHI.js} +1 -1
- package/chunks/{chunk-RRFZXMYP.js → chunk-ZXCVPMIK.js} +553 -138
- package/chunks/{computer-use-JGB36FDW.js → computer-use-VWN5HH6A.js} +33 -28
- package/chunks/contextCommand-DFFG5KDJ.js +66 -0
- package/chunks/{cron-create-SKEY55RG.js → cron-create-CSSWJ67I.js} +4 -4
- package/chunks/{cron-delete-I3NAT32Z.js → cron-delete-E56CFQ7A.js} +4 -4
- package/chunks/{cron-list-6XRRL6TH.js → cron-list-BKSINY6Y.js} +4 -4
- package/chunks/daemon-5T6IHWJV.js +8430 -0
- package/chunks/daemon-status-provider-V5UY7O7J.js +70 -0
- package/chunks/{de-EOW5PVHF.js → de-HB5NJXGB.js} +9 -9
- package/chunks/{dist-NHEYYB2B.js → dist-2HDL5SHQ.js} +2 -2
- package/chunks/{dist-663NZ6MI.js → dist-B7SSDVWT.js} +116 -11
- package/chunks/{dist-PQPZ5Q4N.js → dist-BL3SL665.js} +20 -9
- package/chunks/{dist-J37VXPLD.js → dist-TAVAGZU6.js} +40 -15
- package/chunks/{dist-LB6OGPVM.js → dist-XBOVZ3R5.js} +26 -5
- package/chunks/{earlyInputCapture-44RISVVJ.js → earlyInputCapture-VVYU4FDO.js} +31 -26
- package/chunks/{edit-NN6GM5DT.js → edit-F35PTMBA.js} +35 -29
- package/chunks/{en-HPWEJBTR.js → en-FZREZFPO.js} +30 -10
- package/chunks/{enter-worktree-PB3O2C7D.js → enter-worktree-3DIW7EGJ.js} +30 -25
- package/chunks/{enterPlanMode-YQFNNSUA.js → enterPlanMode-QNXT77KP.js} +40 -25
- package/chunks/{errors-LS7XU5DZ.js → errors-M53YG76R.js} +32 -27
- package/chunks/{exit-worktree-E2FTNSBK.js → exit-worktree-BSDWNWHZ.js} +30 -25
- package/chunks/{exitPlanMode-GLYK2BUB.js → exitPlanMode-EL7AY327.js} +54 -33
- package/chunks/{fast-path-WQ6M7LI7.js → fast-path-DUCSMUFW.js} +30 -13
- package/chunks/{fast-path-settings-OAGU3X5H.js → fast-path-settings-UQLRFDQP.js} +2 -2
- package/chunks/{fr-BN5NKSAC.js → fr-XY3NQFCM.js} +9 -9
- package/chunks/{gemini-2YFLVA2M.js → gemini-F3IERB37.js} +80 -67
- package/chunks/{geminiContentGenerator-XV6SV6CD.js → geminiContentGenerator-6OULAKFQ.js} +4 -4
- package/chunks/{glob-2H6CDDMK.js → glob-ZMLFTD4T.js} +30 -25
- package/chunks/{grep-VXIUXM3C.js → grep-H5X66EI7.js} +30 -25
- package/chunks/initializer-LEOT2OLH.js +66 -0
- package/chunks/{ja-7DEUB2TS.js → ja-J7YAG7SA.js} +9 -9
- package/chunks/{keychain-token-storage-YLMDLKXT.js → keychain-token-storage-GPAKRDKQ.js} +2 -2
- package/chunks/list-M3DKXML6.js +70 -0
- package/chunks/loadedSettingsAdapter-OKMQFGGG.js +65 -0
- package/chunks/{loop-wakeup-CITGGQHA.js → loop-wakeup-FPBAVVPR.js} +5 -5
- package/chunks/{ls-R5WP4BGZ.js → ls-UGWQXPTY.js} +4 -4
- package/chunks/{lsp-GSICJMMW.js → lsp-24WV7NXB.js} +2 -2
- package/chunks/{monitor-HKLRS2HQ.js → monitor-ARL5P45R.js} +32 -26
- package/chunks/nonInteractiveCli-NUVLF3YR.js +108 -0
- package/chunks/{notebook-edit-Y6SKSGTT.js → notebook-edit-ANTZ2DDY.js} +31 -26
- package/chunks/{openaiContentGenerator-J7G2FYJT.js → openaiContentGenerator-TFGMKGHN.js} +15 -13
- package/chunks/pidfile-AWTL4C63.js +72 -0
- package/chunks/{pt-TNZRNLQB.js → pt-6RTAA6SS.js} +9 -9
- package/chunks/{qwenContentGenerator-5XIEM5GV.js → qwenContentGenerator-6QWAYTWS.js} +32 -27
- package/chunks/{qwenOAuth2-AG3PFFLZ.js → qwenOAuth2-LWLA6MQG.js} +5 -4
- package/chunks/{read-file-J7D552ZJ.js → read-file-EJY73XQ3.js} +11 -10
- package/chunks/{read-mcp-resource-DQQW7H7T.js → read-mcp-resource-NCBTPP7X.js} +2 -2
- package/chunks/ripGrep-HC4SA6CQ.js +59 -0
- package/chunks/{ru-NIAUBKCN.js → ru-AUBGJ2C4.js} +9 -9
- package/chunks/{run-qwen-serve-SGEEVMXD.js → run-qwen-serve-AGLZ642J.js} +454 -94
- package/chunks/{scheduler-7CQI3S4Q.js → scheduler-TURO7NGY.js} +30 -25
- package/chunks/{send-message-EE4TWKVU.js → send-message-3S2NYS3O.js} +6 -4
- package/chunks/serve-5DAMOIDW.js +70 -0
- package/chunks/{server-4QMUWXPW.js → server-4AGEK2HC.js} +4098 -1173
- package/chunks/{session-NRO7UFOY.js → session-7ZOQUC4Y.js} +204 -64
- package/chunks/{settings-SGWRDQSC.js → settings-DR4V6L5Y.js} +34 -29
- package/chunks/{shell-62ANGIHL.js → shell-H5WFKUXH.js} +30 -25
- package/chunks/{skill-VWAQAWW6.js → skill-ANHU5ZCR.js} +13 -12
- package/chunks/spawnChannel-VN5LJV7Z.js +68 -0
- package/chunks/{src-KUV5J5Q2.js → src-OVZLTVVM.js} +114 -30
- package/chunks/{startInteractiveUI-6EYJN3JV.js → startInteractiveUI-OA22V32P.js} +15970 -15430
- package/chunks/{syntheticOutput-T5YHQ6S2.js → syntheticOutput-SV7GBHZ5.js} +3 -3
- package/chunks/{task-create-BLY7RHXX.js → task-create-W2H2UJCH.js} +8 -7
- package/chunks/{task-list-3QUYNVYR.js → task-list-THBOPV4G.js} +7 -6
- package/chunks/{task-stop-U4RATK2V.js → task-stop-33FVCNCJ.js} +2 -2
- package/chunks/{task-update-U54O7KJX.js → task-update-LVFQLXEI.js} +8 -7
- package/chunks/{team-create-LPOGCPM7.js → team-create-OYL5CAQO.js} +30 -25
- package/chunks/{team-delete-LKBYPASD.js → team-delete-NTUQ25UY.js} +7 -6
- package/chunks/theme-manager-XCMPF2SI.js +63 -0
- package/chunks/{todoWrite-OYXKTVYN.js → todoWrite-SEPO2RI3.js} +4 -4
- package/chunks/{tool-search-YPUFJ3ZQ.js → tool-search-YXW55X6Z.js} +36 -11
- package/chunks/{trustedFolders-5B24TMEA.js → trustedFolders-TEPGM5YL.js} +31 -26
- package/chunks/{validateNonInterActiveAuth-BTDTYOVT.js → validateNonInterActiveAuth-OQIS7WUE.js} +65 -55
- package/chunks/{web-fetch-EEB5LZYU.js → web-fetch-OE7LHURA.js} +5 -4
- package/chunks/{workflow-LAWIW5LI.js → workflow-RTUWORAP.js} +67 -39
- package/chunks/workspace-providers-status-DM2XANVB.js +67 -0
- package/chunks/workspace-service-VKBI2KZD.js +77 -0
- package/chunks/{write-file-PCV226DJ.js → write-file-WGALQ53L.js} +35 -30
- package/chunks/{zh-TW-TR3XYGE5.js → zh-TW-6GIKXEAN.js} +30 -10
- package/chunks/{zh-5EUYXASN.js → zh-V3B4TFWL.js} +30 -10
- package/cli.js +6 -6
- package/locales/ca.js +13 -13
- package/locales/de.js +13 -13
- package/locales/en.js +49 -15
- package/locales/fr.js +13 -14
- package/locales/ja.js +13 -14
- package/locales/pt.js +13 -13
- package/locales/ru.js +13 -13
- package/locales/zh-TW.js +47 -14
- package/locales/zh.js +47 -14
- 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 +15 -6
- package/patches/chrome-devtools-mcp+1.4.0.patch +31 -0
- package/postinstall.js +50 -0
- package/web-shell/assets/{arc-DA7r8Ueo.js → arc-Det5Ccum.js} +1 -1
- package/web-shell/assets/{architectureDiagram-3BPJPVTR-ZDUxPtZ2.js → architectureDiagram-3BPJPVTR-DqNWVFpl.js} +1 -1
- package/web-shell/assets/{blockDiagram-GPEHLZMM-vrtOf1kJ.js → blockDiagram-GPEHLZMM-CYl7tYBi.js} +1 -1
- package/web-shell/assets/{c4Diagram-AAUBKEIU-BHFjzIi4.js → c4Diagram-AAUBKEIU-DaAEi0NQ.js} +1 -1
- package/web-shell/assets/channel-Bm0bFauD.js +1 -0
- package/web-shell/assets/{chunk-2J33WTMH-mdeQVz59.js → chunk-2J33WTMH-Df2CDEE2.js} +1 -1
- package/web-shell/assets/{chunk-4BX2VUAB-BkKMlwBX.js → chunk-4BX2VUAB-DNBFcyL2.js} +1 -1
- package/web-shell/assets/{chunk-55IACEB6-B7bnXNfu.js → chunk-55IACEB6-BKjF-0HI.js} +1 -1
- package/web-shell/assets/{chunk-727SXJPM-DGz8Mm6i.js → chunk-727SXJPM-DYwAwfIM.js} +1 -1
- package/web-shell/assets/{chunk-AQP2D5EJ-BQAydUNk.js → chunk-AQP2D5EJ-C6FswLqy.js} +1 -1
- package/web-shell/assets/{chunk-FMBD7UC4-GHr2LN_p.js → chunk-FMBD7UC4-DRWAcZSY.js} +1 -1
- package/web-shell/assets/{chunk-ND2GUHAM-7R91lnUx.js → chunk-ND2GUHAM-AoL16mNR.js} +1 -1
- package/web-shell/assets/{chunk-QZHKN3VN-aTJD3lSQ.js → chunk-QZHKN3VN-a8PtLMck.js} +1 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK--NgUfb55.js +1 -0
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2--NgUfb55.js +1 -0
- package/web-shell/assets/{cose-bilkent-S5V4N54A-BTf8t1RL.js → cose-bilkent-S5V4N54A-C4Aeu5qf.js} +1 -1
- package/web-shell/assets/{dagre-BM42HDAG-_sgp3WuA.js → dagre-BM42HDAG-BOulamjo.js} +1 -1
- package/web-shell/assets/{diagram-2AECGRRQ-CROtRy1w.js → diagram-2AECGRRQ-D1wt2ykO.js} +1 -1
- package/web-shell/assets/{diagram-5GNKFQAL-BqGRzwSc.js → diagram-5GNKFQAL-BRseus-O.js} +1 -1
- package/web-shell/assets/{diagram-KO2AKTUF-CMrcEtA7.js → diagram-KO2AKTUF-XSMkNzpZ.js} +1 -1
- package/web-shell/assets/{diagram-LMA3HP47-BRydGNW5.js → diagram-LMA3HP47-21KNLqoi.js} +1 -1
- package/web-shell/assets/{diagram-OG6HWLK6-D0ilgNjV.js → diagram-OG6HWLK6-DnUI8F5G.js} +1 -1
- package/web-shell/assets/{erDiagram-TEJ5UH35-2lnQeJUM.js → erDiagram-TEJ5UH35-BVSOMuM2.js} +1 -1
- package/web-shell/assets/{flowDiagram-I6XJVG4X-C_ZMdQiC.js → flowDiagram-I6XJVG4X-fYtDPJsW.js} +1 -1
- package/web-shell/assets/{ganttDiagram-6RSMTGT7-Dw9V_Ny0.js → ganttDiagram-6RSMTGT7-CmRXosW_.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-PVQCEYII-HDXI-F1B.js → gitGraphDiagram-PVQCEYII-DPrmySxO.js} +1 -1
- package/web-shell/assets/index-BpKnmyFV.js +717 -0
- package/web-shell/assets/index-fLrtxpOG.css +5 -0
- package/web-shell/assets/{infoDiagram-5YYISTIA-CuB8Ebua.js → infoDiagram-5YYISTIA-x3VbEuCV.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-D_tyhVwh.js → ishikawaDiagram-YF4QCWOH-SmitHRMC.js} +1 -1
- package/web-shell/assets/{journeyDiagram-JHISSGLW-CgCwJQNU.js → journeyDiagram-JHISSGLW-BxvA551S.js} +1 -1
- package/web-shell/assets/{kanban-definition-UN3LZRKU-PZUtcbPx.js → kanban-definition-UN3LZRKU-DNHC16jY.js} +1 -1
- package/web-shell/assets/{linear-CZqRdJIU.js → linear-CQ6irBL9.js} +1 -1
- package/web-shell/assets/{mermaid.core-CPW_4UEF.js → mermaid.core-DtB6NO1e.js} +72 -72
- package/web-shell/assets/{mindmap-definition-RKZ34NQL-D_Y75ID7.js → mindmap-definition-RKZ34NQL-QKMAgV2v.js} +1 -1
- package/web-shell/assets/{pieDiagram-4H26LBE5-Q4dTyLeF.js → pieDiagram-4H26LBE5-bvb6dGn6.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-W4KKPZXB-ckw329Ft.js → quadrantDiagram-W4KKPZXB-DLgdlG4D.js} +1 -1
- package/web-shell/assets/{requirementDiagram-4Y6WPE33-DbVDm4It.js → requirementDiagram-4Y6WPE33-2M9YH4GF.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-5OEKKPKP-CHuZ_ecH.js → sankeyDiagram-5OEKKPKP-DzwfclTH.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-3UESZ5HK-DU2YSpq-.js → sequenceDiagram-3UESZ5HK-BvPmTuy2.js} +1 -1
- package/web-shell/assets/{stateDiagram-AJRCARHV-CA9PEBUo.js → stateDiagram-AJRCARHV-BjwUmrJF.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-C4L8zXeL.js +1 -0
- package/web-shell/assets/{timeline-definition-PNZ67QCA-Bhlo4WVc.js → timeline-definition-PNZ67QCA-CXzS6qqz.js} +1 -1
- package/web-shell/assets/{vennDiagram-CIIHVFJN-6xtPLsyl.js → vennDiagram-CIIHVFJN-yRSolF5B.js} +1 -1
- package/web-shell/assets/{wardley-L42UT6IY-3eozmXPf.js → wardley-L42UT6IY-ClLJjHPG.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-YWT4CUSO-BOn6hKss.js → wardleyDiagram-YWT4CUSO-VIa6t2p2.js} +1 -1
- package/web-shell/assets/{xychartDiagram-2RQKCTM6-BsP4-I_y.js → xychartDiagram-2RQKCTM6-CtmrkezW.js} +1 -1
- package/web-shell/index.html +18 -2
- package/chunks/MaxSizedBox-QNF3EIGU.js +0 -63
- package/chunks/agent-headless-RQ5BTX3G.js +0 -56
- package/chunks/bridge-JL2PMCIW.js +0 -66
- package/chunks/chunk-5GOVVXEV.js +0 -73
- package/chunks/chunk-BC3C4F3Q.js +0 -40
- package/chunks/chunk-BW4KCQFD.js +0 -1103
- package/chunks/chunk-RKIZXJMB.js +0 -13
- package/chunks/contextCommand-WYU6OQ2F.js +0 -61
- package/chunks/daemon-status-provider-HH2EC5FI.js +0 -65
- package/chunks/headlessSafetyWarnings-TBE35GJ4.js +0 -55
- package/chunks/initializer-2Y7SLOKV.js +0 -61
- package/chunks/list-ZAFHZ7OS.js +0 -65
- package/chunks/loadedSettingsAdapter-6KJXD6M3.js +0 -60
- package/chunks/nonInteractiveCli-5W4GIZQM.js +0 -96
- package/chunks/ripGrep-IEIFIWP4.js +0 -54
- package/chunks/serve-V6GVZR6U.js +0 -65
- package/chunks/spawnChannel-3VHW5EPY.js +0 -63
- package/chunks/theme-manager-LYLGAERF.js +0 -58
- package/chunks/workspace-providers-status-PIAFVYHA.js +0 -62
- package/chunks/workspace-service-YAIOD4HG.js +0 -71
- package/web-shell/assets/channel-iRo68q4Q.js +0 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-iHF24a8X.js +0 -1
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-iHF24a8X.js +0 -1
- package/web-shell/assets/index-CHmzAWys.css +0 -5
- package/web-shell/assets/index-w6GTOHh1.js +0 -713
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-t1LRI0oY.js +0 -1
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import {
|
|
4
|
+
init_esbuild_shims
|
|
5
|
+
} from "./chunk-A4BMJM77.js";
|
|
6
|
+
import {
|
|
7
|
+
__commonJS,
|
|
8
|
+
__name
|
|
9
|
+
} from "./chunk-J2S4EL5Y.js";
|
|
10
|
+
|
|
11
|
+
// node_modules/wrappy/wrappy.js
|
|
12
|
+
var require_wrappy = __commonJS({
|
|
13
|
+
"node_modules/wrappy/wrappy.js"(exports, module) {
|
|
14
|
+
init_esbuild_shims();
|
|
15
|
+
module.exports = wrappy;
|
|
16
|
+
function wrappy(fn, cb) {
|
|
17
|
+
if (fn && cb) return wrappy(fn)(cb);
|
|
18
|
+
if (typeof fn !== "function")
|
|
19
|
+
throw new TypeError("need wrapper function");
|
|
20
|
+
Object.keys(fn).forEach(function(k) {
|
|
21
|
+
wrapper[k] = fn[k];
|
|
22
|
+
});
|
|
23
|
+
return wrapper;
|
|
24
|
+
function wrapper() {
|
|
25
|
+
var args = new Array(arguments.length);
|
|
26
|
+
for (var i = 0; i < args.length; i++) {
|
|
27
|
+
args[i] = arguments[i];
|
|
28
|
+
}
|
|
29
|
+
var ret = fn.apply(this, args);
|
|
30
|
+
var cb2 = args[args.length - 1];
|
|
31
|
+
if (typeof ret === "function" && ret !== cb2) {
|
|
32
|
+
Object.keys(cb2).forEach(function(k) {
|
|
33
|
+
ret[k] = cb2[k];
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
return ret;
|
|
37
|
+
}
|
|
38
|
+
__name(wrapper, "wrapper");
|
|
39
|
+
}
|
|
40
|
+
__name(wrappy, "wrappy");
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
// node_modules/once/once.js
|
|
45
|
+
var require_once = __commonJS({
|
|
46
|
+
"node_modules/once/once.js"(exports, module) {
|
|
47
|
+
init_esbuild_shims();
|
|
48
|
+
var wrappy = require_wrappy();
|
|
49
|
+
module.exports = wrappy(once);
|
|
50
|
+
module.exports.strict = wrappy(onceStrict);
|
|
51
|
+
once.proto = once(function() {
|
|
52
|
+
Object.defineProperty(Function.prototype, "once", {
|
|
53
|
+
value: /* @__PURE__ */ __name(function() {
|
|
54
|
+
return once(this);
|
|
55
|
+
}, "value"),
|
|
56
|
+
configurable: true
|
|
57
|
+
});
|
|
58
|
+
Object.defineProperty(Function.prototype, "onceStrict", {
|
|
59
|
+
value: /* @__PURE__ */ __name(function() {
|
|
60
|
+
return onceStrict(this);
|
|
61
|
+
}, "value"),
|
|
62
|
+
configurable: true
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
function once(fn) {
|
|
66
|
+
var f = /* @__PURE__ */ __name(function() {
|
|
67
|
+
if (f.called) return f.value;
|
|
68
|
+
f.called = true;
|
|
69
|
+
return f.value = fn.apply(this, arguments);
|
|
70
|
+
}, "f");
|
|
71
|
+
f.called = false;
|
|
72
|
+
return f;
|
|
73
|
+
}
|
|
74
|
+
__name(once, "once");
|
|
75
|
+
function onceStrict(fn) {
|
|
76
|
+
var f = /* @__PURE__ */ __name(function() {
|
|
77
|
+
if (f.called)
|
|
78
|
+
throw new Error(f.onceError);
|
|
79
|
+
f.called = true;
|
|
80
|
+
return f.value = fn.apply(this, arguments);
|
|
81
|
+
}, "f");
|
|
82
|
+
var name = fn.name || "Function wrapped with `once`";
|
|
83
|
+
f.onceError = name + " shouldn't be called more than once";
|
|
84
|
+
f.called = false;
|
|
85
|
+
return f;
|
|
86
|
+
}
|
|
87
|
+
__name(onceStrict, "onceStrict");
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
export {
|
|
92
|
+
require_once
|
|
93
|
+
};
|
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
import {
|
|
4
4
|
getGitVersion,
|
|
5
5
|
getNpmVersion
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-W2ZOAX7F.js";
|
|
7
7
|
import {
|
|
8
8
|
STATUS_SCHEMA_VERSION,
|
|
9
9
|
mapDomainErrorToErrorKind
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GICCHL2Q.js";
|
|
11
11
|
import {
|
|
12
12
|
canUseRipgrep
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-BFG6OZN7.js";
|
|
14
14
|
import {
|
|
15
15
|
detectRuntime,
|
|
16
16
|
redactProxyCredentials
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-D5KISTLW.js";
|
|
18
18
|
import {
|
|
19
19
|
init_esbuild_shims
|
|
20
20
|
} from "./chunk-A4BMJM77.js";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
OpenAIContentConverter,
|
|
5
5
|
TaggedThinkingParser,
|
|
6
6
|
openaiRequestCaptureContext
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HJDF3ZVU.js";
|
|
8
8
|
import {
|
|
9
9
|
RequestTokenizer
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-DX3TKXNT.js";
|
|
11
11
|
import {
|
|
12
12
|
DASHSCOPE_PROXY_BASE_URL,
|
|
13
13
|
DEFAULT_DASHSCOPE_BASE_URL,
|
|
@@ -16,26 +16,28 @@ import {
|
|
|
16
16
|
DEFAULT_TIMEOUT,
|
|
17
17
|
MAX_STREAM_IDLE_TIMEOUT_MS,
|
|
18
18
|
QWEN_STREAM_IDLE_TIMEOUT_MS_ENV,
|
|
19
|
-
buildRuntimeFetchOptions,
|
|
20
19
|
hasExplicitOutputLimit,
|
|
21
20
|
parsePositiveIntegerEnvValue,
|
|
22
|
-
redactProxyError,
|
|
23
21
|
tokenLimit
|
|
24
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-YTFBURQD.js";
|
|
25
23
|
import {
|
|
26
24
|
runtimeDiagnostics,
|
|
27
25
|
safeJsonParse
|
|
28
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-YPCPZSZB.js";
|
|
29
27
|
import {
|
|
30
28
|
GenerateContentResponse
|
|
31
29
|
} from "./chunk-55ZMG67I.js";
|
|
32
30
|
import {
|
|
33
31
|
createChildAbortController
|
|
34
32
|
} from "./chunk-64WXLC72.js";
|
|
33
|
+
import {
|
|
34
|
+
buildRuntimeFetchOptions,
|
|
35
|
+
redactProxyError
|
|
36
|
+
} from "./chunk-D5KISTLW.js";
|
|
35
37
|
import {
|
|
36
38
|
createDebugLogger,
|
|
37
39
|
isAbortError
|
|
38
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-AVQDCKNF.js";
|
|
39
41
|
import {
|
|
40
42
|
init_esbuild_shims
|
|
41
43
|
} from "./chunk-A4BMJM77.js";
|
|
@@ -7230,6 +7232,12 @@ var DashScopeOpenAICompatibleProvider = class _DashScopeOpenAICompatibleProvider
|
|
|
7230
7232
|
getDefaultGenerationConfig() {
|
|
7231
7233
|
return {};
|
|
7232
7234
|
}
|
|
7235
|
+
getResponseParsingOptions(model) {
|
|
7236
|
+
if (this.isGlmModel(model ?? this.contentGeneratorConfig.model)) {
|
|
7237
|
+
return { taggedThinkingTags: true };
|
|
7238
|
+
}
|
|
7239
|
+
return {};
|
|
7240
|
+
}
|
|
7233
7241
|
/**
|
|
7234
7242
|
* Add cache control flag to specified message(s) for DashScope providers
|
|
7235
7243
|
*/
|
|
@@ -8430,7 +8438,7 @@ var ContentGenerationPipeline = class {
|
|
|
8430
8438
|
const effectiveModel = request.model || this.contentGeneratorConfig.model;
|
|
8431
8439
|
const providerOverrides = this.config.provider.getRequestContextOverrides?.() ?? {};
|
|
8432
8440
|
const toolCallParser = isStreaming ? new StreamingToolCallParser() : void 0;
|
|
8433
|
-
const responseParsingOptions = this.config.provider.getResponseParsingOptions?.();
|
|
8441
|
+
const responseParsingOptions = this.config.provider.getResponseParsingOptions?.(effectiveModel);
|
|
8434
8442
|
const taggedThinkingParser = isStreaming && responseParsingOptions?.taggedThinkingTags ? new TaggedThinkingParser() : void 0;
|
|
8435
8443
|
return {
|
|
8436
8444
|
model: effectiveModel,
|
|
@@ -7,28 +7,28 @@ import {
|
|
|
7
7
|
require_jsx_runtime,
|
|
8
8
|
use_stdin_default,
|
|
9
9
|
use_stdout_default
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2X2JUE47.js";
|
|
11
11
|
import {
|
|
12
12
|
require_react
|
|
13
13
|
} from "./chunk-KYMBIKIW.js";
|
|
14
14
|
import {
|
|
15
15
|
sanitizeFilenameForDisplay
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-HRZB5CSC.js";
|
|
17
17
|
import {
|
|
18
18
|
t
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-UQYOMM6J.js";
|
|
20
20
|
import {
|
|
21
21
|
fetchGitDiff,
|
|
22
22
|
findProviderByCredentials,
|
|
23
23
|
resolveMetadataKey
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-BFG6OZN7.js";
|
|
25
25
|
import {
|
|
26
26
|
KittySequenceOverflowEvent,
|
|
27
27
|
logKittySequenceOverflow
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-HJDF3ZVU.js";
|
|
29
29
|
import {
|
|
30
30
|
createDebugLogger
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-AVQDCKNF.js";
|
|
32
32
|
import {
|
|
33
33
|
init_esbuild_shims
|
|
34
34
|
} from "./chunk-A4BMJM77.js";
|
|
@@ -48,6 +48,7 @@ init_esbuild_shims();
|
|
|
48
48
|
var ESC = "\x1B";
|
|
49
49
|
var SGR_EVENT_PREFIX = `${ESC}[<`;
|
|
50
50
|
var X11_EVENT_PREFIX = `${ESC}[M`;
|
|
51
|
+
var MAX_SGR_MOUSE_SEQUENCE_LENGTH = 50;
|
|
51
52
|
var SGR_MOUSE_REGEX = /^\x1b\[<(\d+);(\d+);(\d+)([mM])/;
|
|
52
53
|
function getEventName(buttonCode, isRelease) {
|
|
53
54
|
const isMove = (buttonCode & 32) !== 0;
|
|
@@ -107,14 +108,20 @@ function parseSGRMouseEvent(buffer) {
|
|
|
107
108
|
};
|
|
108
109
|
}
|
|
109
110
|
__name(parseSGRMouseEvent, "parseSGRMouseEvent");
|
|
110
|
-
var ENABLE_SGR_MOUSE =
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
111
|
+
var ENABLE_SGR_MOUSE = {
|
|
112
|
+
button: "\x1B[?1002h\x1B[?1006h",
|
|
113
|
+
any: "\x1B[?1003h\x1B[?1006h"
|
|
114
|
+
};
|
|
115
|
+
var DISABLE_SGR_MOUSE = {
|
|
116
|
+
button: "\x1B[?1006l\x1B[?1002l",
|
|
117
|
+
any: "\x1B[?1006l\x1B[?1003l"
|
|
118
|
+
};
|
|
119
|
+
function enableMouseEvents(stdout, tracking = "button") {
|
|
120
|
+
stdout.write(ENABLE_SGR_MOUSE[tracking]);
|
|
114
121
|
}
|
|
115
122
|
__name(enableMouseEvents, "enableMouseEvents");
|
|
116
|
-
function disableMouseEvents(stdout) {
|
|
117
|
-
stdout.write(DISABLE_SGR_MOUSE);
|
|
123
|
+
function disableMouseEvents(stdout, tracking = "button") {
|
|
124
|
+
stdout.write(DISABLE_SGR_MOUSE[tracking]);
|
|
118
125
|
}
|
|
119
126
|
__name(disableMouseEvents, "disableMouseEvents");
|
|
120
127
|
|
|
@@ -866,6 +873,14 @@ function KeypressProvider({
|
|
|
866
873
|
let swallowingSgrMouse = false;
|
|
867
874
|
let sgrMouseBuffer = "";
|
|
868
875
|
let sgrMouseTimeout = null;
|
|
876
|
+
const resetSgrMouse = /* @__PURE__ */ __name(() => {
|
|
877
|
+
swallowingSgrMouse = false;
|
|
878
|
+
sgrMouseBuffer = "";
|
|
879
|
+
if (sgrMouseTimeout) {
|
|
880
|
+
clearTimeout(sgrMouseTimeout);
|
|
881
|
+
sgrMouseTimeout = null;
|
|
882
|
+
}
|
|
883
|
+
}, "resetSgrMouse");
|
|
869
884
|
const updateKittyBuffer = /* @__PURE__ */ __name((value) => {
|
|
870
885
|
kittySequenceBufferRef.current = value;
|
|
871
886
|
}, "updateKittyBuffer");
|
|
@@ -1237,14 +1252,13 @@ function KeypressProvider({
|
|
|
1237
1252
|
if (key.sequence === FOCUS_IN || key.sequence === FOCUS_OUT) {
|
|
1238
1253
|
return;
|
|
1239
1254
|
}
|
|
1240
|
-
if (
|
|
1255
|
+
if (isPaste) {
|
|
1256
|
+
resetSgrMouse();
|
|
1257
|
+
} else if (swallowingSgrMouse) {
|
|
1241
1258
|
if (key.ctrl && key.name === "c") {
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
clearTimeout(sgrMouseTimeout);
|
|
1246
|
-
sgrMouseTimeout = null;
|
|
1247
|
-
}
|
|
1259
|
+
resetSgrMouse();
|
|
1260
|
+
} else if (key.name === "paste-start") {
|
|
1261
|
+
resetSgrMouse();
|
|
1248
1262
|
} else {
|
|
1249
1263
|
sgrMouseBuffer += key.sequence;
|
|
1250
1264
|
if (key.name === "m" || key.sequence === "M") {
|
|
@@ -1260,11 +1274,13 @@ function KeypressProvider({
|
|
|
1260
1274
|
}
|
|
1261
1275
|
}
|
|
1262
1276
|
sgrMouseBuffer = "";
|
|
1277
|
+
} else if (sgrMouseBuffer.length >= MAX_SGR_MOUSE_SEQUENCE_LENGTH) {
|
|
1278
|
+
resetSgrMouse();
|
|
1263
1279
|
}
|
|
1264
1280
|
return;
|
|
1265
1281
|
}
|
|
1266
1282
|
}
|
|
1267
|
-
if (key.sequence === `${ESC3}[<`) {
|
|
1283
|
+
if (!isPaste && key.sequence === `${ESC3}[<`) {
|
|
1268
1284
|
swallowingSgrMouse = true;
|
|
1269
1285
|
sgrMouseBuffer = `${ESC3}[<`;
|
|
1270
1286
|
if (sgrMouseTimeout) {
|
|
@@ -1665,12 +1681,7 @@ function KeypressProvider({
|
|
|
1665
1681
|
}
|
|
1666
1682
|
clearKittyBufferAndTimeout();
|
|
1667
1683
|
clearPasteIdleTimeout();
|
|
1668
|
-
|
|
1669
|
-
clearTimeout(sgrMouseTimeout);
|
|
1670
|
-
sgrMouseTimeout = null;
|
|
1671
|
-
}
|
|
1672
|
-
swallowingSgrMouse = false;
|
|
1673
|
-
sgrMouseBuffer = "";
|
|
1684
|
+
resetSgrMouse();
|
|
1674
1685
|
if (rawFlushTimeout) {
|
|
1675
1686
|
clearTimeout(rawFlushTimeout);
|
|
1676
1687
|
rawFlushTimeout = null;
|
|
@@ -2157,14 +2168,33 @@ function expandCollapsedHistory(items) {
|
|
|
2157
2168
|
return items.filter((item) => item.display?.kind !== "collapse-summary").map(stripSuppressOnRestore);
|
|
2158
2169
|
}
|
|
2159
2170
|
__name(expandCollapsedHistory, "expandCollapsedHistory");
|
|
2160
|
-
function applyCollapsePolicyAndSummary(rawItems, collapseOnResume) {
|
|
2171
|
+
function applyCollapsePolicyAndSummary(rawItems, collapseOnResume, collapsePreviewCount = 0) {
|
|
2161
2172
|
if (!collapseOnResume) return rawItems;
|
|
2162
|
-
|
|
2163
|
-
|
|
2173
|
+
if (collapsePreviewCount === -1) return rawItems;
|
|
2174
|
+
let boundary = rawItems.length;
|
|
2175
|
+
if (collapsePreviewCount > 0) {
|
|
2176
|
+
let userTurnCount = 0;
|
|
2177
|
+
for (let i = rawItems.length - 1; i >= 0; i--) {
|
|
2178
|
+
if (rawItems[i].type === "user" /* USER */) {
|
|
2179
|
+
userTurnCount++;
|
|
2180
|
+
if (userTurnCount === collapsePreviewCount) {
|
|
2181
|
+
boundary = i;
|
|
2182
|
+
break;
|
|
2183
|
+
}
|
|
2184
|
+
}
|
|
2185
|
+
}
|
|
2186
|
+
if (userTurnCount < collapsePreviewCount) {
|
|
2187
|
+
boundary = 0;
|
|
2188
|
+
}
|
|
2189
|
+
}
|
|
2190
|
+
const hiddenItems = applyResumeDisplayPolicy(rawItems.slice(0, boundary));
|
|
2191
|
+
const visibleItems = rawItems.slice(boundary);
|
|
2192
|
+
const uiHistoryItems = [...hiddenItems, ...visibleItems];
|
|
2193
|
+
if (boundary > 0) {
|
|
2164
2194
|
const nextId = rawItems[rawItems.length - 1].id + 1;
|
|
2165
2195
|
return [
|
|
2166
2196
|
...uiHistoryItems,
|
|
2167
|
-
{ id: nextId, ...createHistoryCollapseSummaryItem(
|
|
2197
|
+
{ id: nextId, ...createHistoryCollapseSummaryItem(boundary) }
|
|
2168
2198
|
];
|
|
2169
2199
|
}
|
|
2170
2200
|
return uiHistoryItems;
|
|
@@ -3,24 +3,24 @@
|
|
|
3
3
|
import {
|
|
4
4
|
AUTO_THEME_NAME,
|
|
5
5
|
themeManager
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HTWHAN44.js";
|
|
7
7
|
import {
|
|
8
8
|
initializeI18n,
|
|
9
9
|
resolveLanguageSetting,
|
|
10
10
|
t
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-UQYOMM6J.js";
|
|
12
12
|
import {
|
|
13
13
|
IdeClient
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-BFG6OZN7.js";
|
|
15
15
|
import {
|
|
16
16
|
AuthEvent,
|
|
17
17
|
IdeConnectionEvent,
|
|
18
18
|
logAuth,
|
|
19
19
|
logIdeConnection
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-HJDF3ZVU.js";
|
|
21
21
|
import {
|
|
22
22
|
getErrorMessage
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-AVQDCKNF.js";
|
|
24
24
|
import {
|
|
25
25
|
init_esbuild_shims
|
|
26
26
|
} from "./chunk-A4BMJM77.js";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
functionResponsePartsToString
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZXCVPMIK.js";
|
|
6
6
|
import {
|
|
7
7
|
parseAndFormatApiError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BFG6OZN7.js";
|
|
9
9
|
import {
|
|
10
10
|
init_esbuild_shims
|
|
11
11
|
} from "./chunk-A4BMJM77.js";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import {
|
|
4
|
+
init_esbuild_shims
|
|
5
|
+
} from "./chunk-A4BMJM77.js";
|
|
6
|
+
import {
|
|
7
|
+
__name
|
|
8
|
+
} from "./chunk-J2S4EL5Y.js";
|
|
9
|
+
|
|
10
|
+
// packages/cli/src/commands/channel/cli-entry-path.ts
|
|
11
|
+
init_esbuild_shims();
|
|
12
|
+
import * as path from "node:path";
|
|
13
|
+
function findCliEntryPath() {
|
|
14
|
+
const mainModule = process.argv[1];
|
|
15
|
+
if (mainModule) {
|
|
16
|
+
return path.resolve(mainModule);
|
|
17
|
+
}
|
|
18
|
+
throw new Error("Cannot determine CLI entry path");
|
|
19
|
+
}
|
|
20
|
+
__name(findCliEntryPath, "findCliEntryPath");
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
findCliEntryPath
|
|
24
|
+
};
|
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
|
|
15
15
|
// packages/core/src/utils/errors.ts
|
|
16
16
|
init_esbuild_shims();
|
|
17
|
+
var MAX_STRINGIFIED_ERROR_MESSAGE_LENGTH = 1e3;
|
|
17
18
|
function isNodeError(error) {
|
|
18
19
|
return error instanceof Error && "code" in error;
|
|
19
20
|
}
|
|
@@ -52,22 +53,53 @@ function describeSingleError(err) {
|
|
|
52
53
|
}
|
|
53
54
|
return msg || codeStr || (err.name !== "Error" ? err.name : void 0);
|
|
54
55
|
}
|
|
55
|
-
if (err && typeof err === "object" &&
|
|
56
|
-
const
|
|
57
|
-
|
|
56
|
+
if (err && typeof err === "object" && !Array.isArray(err)) {
|
|
57
|
+
const rec = err;
|
|
58
|
+
const code = rec["code"];
|
|
59
|
+
const codeStr = typeof code === "string" && code ? code : typeof code === "number" ? String(code) : void 0;
|
|
60
|
+
const message = rec["message"];
|
|
61
|
+
const msg = typeof message === "string" && message.trim() ? message.trim() : void 0;
|
|
62
|
+
if (msg && codeStr && !msg.includes(codeStr)) {
|
|
63
|
+
return `${codeStr}: ${msg}`;
|
|
64
|
+
}
|
|
65
|
+
return msg || codeStr;
|
|
58
66
|
}
|
|
59
67
|
const str = String(err);
|
|
60
68
|
return str && str !== "[object Object]" ? str : void 0;
|
|
61
69
|
}
|
|
62
70
|
__name(describeSingleError, "describeSingleError");
|
|
71
|
+
function truncateStringifiedErrorMessage(message) {
|
|
72
|
+
if (message.length <= MAX_STRINGIFIED_ERROR_MESSAGE_LENGTH) {
|
|
73
|
+
return message;
|
|
74
|
+
}
|
|
75
|
+
return `${message.slice(0, MAX_STRINGIFIED_ERROR_MESSAGE_LENGTH - 3)}...`;
|
|
76
|
+
}
|
|
77
|
+
__name(truncateStringifiedErrorMessage, "truncateStringifiedErrorMessage");
|
|
63
78
|
function getErrorMessage(error) {
|
|
64
79
|
if (error instanceof Error) {
|
|
65
80
|
const detail = describeErrorCause(error.cause);
|
|
66
81
|
if (detail && detail !== error.message) {
|
|
67
|
-
return
|
|
82
|
+
return truncateStringifiedErrorMessage(
|
|
83
|
+
`${error.message} (cause: ${detail})`
|
|
84
|
+
);
|
|
68
85
|
}
|
|
69
86
|
return error.message;
|
|
70
87
|
}
|
|
88
|
+
if (error !== null && typeof error === "object" && !Array.isArray(error)) {
|
|
89
|
+
const { message, cause } = error;
|
|
90
|
+
if (typeof message === "string" && message.trim()) {
|
|
91
|
+
const detail = describeErrorCause(cause);
|
|
92
|
+
const result = detail && detail !== message ? `${message} (cause: ${detail})` : message;
|
|
93
|
+
return truncateStringifiedErrorMessage(result);
|
|
94
|
+
}
|
|
95
|
+
try {
|
|
96
|
+
const serialized = JSON.stringify(error);
|
|
97
|
+
return serialized ? truncateStringifiedErrorMessage(serialized) : String(error);
|
|
98
|
+
} catch {
|
|
99
|
+
const detail = describeSingleError(error);
|
|
100
|
+
return detail ? truncateStringifiedErrorMessage(detail) : String(error);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
71
103
|
try {
|
|
72
104
|
return String(error);
|
|
73
105
|
} catch {
|
|
@@ -249,27 +281,73 @@ var UNESCAPE_REGEX = (() => {
|
|
|
249
281
|
return new RegExp(`\\\\([${inner}])`, "g");
|
|
250
282
|
})();
|
|
251
283
|
function tildeifyPath(filePath) {
|
|
252
|
-
const
|
|
253
|
-
if (
|
|
284
|
+
const rawHomeDir = os.homedir();
|
|
285
|
+
if (!rawHomeDir) {
|
|
286
|
+
return filePath;
|
|
287
|
+
}
|
|
288
|
+
const homeDir = path.normalize(rawHomeDir);
|
|
289
|
+
const normalizedPath = path.normalize(filePath);
|
|
290
|
+
if (normalizedPath === homeDir) {
|
|
254
291
|
return "~";
|
|
255
292
|
}
|
|
256
|
-
if (
|
|
257
|
-
return
|
|
293
|
+
if (normalizedPath.startsWith(`${homeDir}${path.sep}`)) {
|
|
294
|
+
return normalizedPath.replace(homeDir, "~");
|
|
258
295
|
}
|
|
259
296
|
return filePath;
|
|
260
297
|
}
|
|
261
298
|
__name(tildeifyPath, "tildeifyPath");
|
|
299
|
+
function expandTilde(p) {
|
|
300
|
+
if (!p) {
|
|
301
|
+
return "";
|
|
302
|
+
}
|
|
303
|
+
if (p === "~") {
|
|
304
|
+
return os.homedir();
|
|
305
|
+
}
|
|
306
|
+
if (p === "~/" || p === "~\\") {
|
|
307
|
+
return os.homedir() + path.sep;
|
|
308
|
+
}
|
|
309
|
+
if (p.startsWith("~/")) {
|
|
310
|
+
return path.join(os.homedir(), p.substring(2));
|
|
311
|
+
}
|
|
312
|
+
if (p.startsWith("~\\")) {
|
|
313
|
+
const rest = p.substring(2);
|
|
314
|
+
const hasTrailingSep = rest.endsWith("/") || rest.endsWith("\\");
|
|
315
|
+
const expandedPath = path.join(
|
|
316
|
+
os.homedir(),
|
|
317
|
+
...rest.split(/[/\\]+/).filter(Boolean)
|
|
318
|
+
);
|
|
319
|
+
return hasTrailingSep ? expandedPath + path.sep : expandedPath;
|
|
320
|
+
}
|
|
321
|
+
return p;
|
|
322
|
+
}
|
|
323
|
+
__name(expandTilde, "expandTilde");
|
|
262
324
|
function expandHomeDir(p) {
|
|
263
325
|
if (!p) {
|
|
264
326
|
return "";
|
|
265
327
|
}
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
328
|
+
const userProfilePrefix = "%userprofile%";
|
|
329
|
+
const lowerPath = p.toLowerCase();
|
|
330
|
+
if (lowerPath === userProfilePrefix) {
|
|
331
|
+
return path.normalize(os.homedir());
|
|
332
|
+
}
|
|
333
|
+
if (lowerPath === `${userProfilePrefix}/` || lowerPath === `${userProfilePrefix}\\`) {
|
|
334
|
+
return path.normalize(os.homedir() + path.sep);
|
|
335
|
+
}
|
|
336
|
+
if (lowerPath.startsWith(`${userProfilePrefix}/`) || lowerPath.startsWith(`${userProfilePrefix}\\`)) {
|
|
337
|
+
const rest = p.substring(userProfilePrefix.length + 1);
|
|
338
|
+
const hasTrailingSep = rest.endsWith("/") || rest.endsWith("\\");
|
|
339
|
+
const expandedPath = path.join(
|
|
340
|
+
os.homedir(),
|
|
341
|
+
...rest.split(/[/\\]+/).filter(Boolean)
|
|
342
|
+
);
|
|
343
|
+
return path.normalize(
|
|
344
|
+
hasTrailingSep ? expandedPath + path.sep : expandedPath
|
|
345
|
+
);
|
|
346
|
+
}
|
|
347
|
+
if (lowerPath.startsWith(userProfilePrefix)) {
|
|
348
|
+
return path.normalize(os.homedir() + p.substring(userProfilePrefix.length));
|
|
271
349
|
}
|
|
272
|
-
return path.normalize(
|
|
350
|
+
return path.normalize(expandTilde(p));
|
|
273
351
|
}
|
|
274
352
|
__name(expandHomeDir, "expandHomeDir");
|
|
275
353
|
function shortenPath(filePath, maxLen = 80) {
|
|
@@ -386,15 +464,11 @@ function isSubpaths(parentPath, childPath) {
|
|
|
386
464
|
}
|
|
387
465
|
__name(isSubpaths, "isSubpaths");
|
|
388
466
|
function resolvePath(baseDir = process.cwd(), relativePath) {
|
|
389
|
-
const
|
|
390
|
-
if (
|
|
391
|
-
return
|
|
392
|
-
} else if (relativePath.startsWith("~/")) {
|
|
393
|
-
return path.join(homeDir, relativePath.slice(2));
|
|
394
|
-
} else if (path.isAbsolute(relativePath)) {
|
|
395
|
-
return relativePath;
|
|
467
|
+
const expandedPath = expandTilde(relativePath);
|
|
468
|
+
if (path.isAbsolute(expandedPath)) {
|
|
469
|
+
return expandedPath;
|
|
396
470
|
} else {
|
|
397
|
-
return path.resolve(baseDir,
|
|
471
|
+
return path.resolve(baseDir, expandedPath);
|
|
398
472
|
}
|
|
399
473
|
}
|
|
400
474
|
__name(resolvePath, "resolvePath");
|