@qwen-code/qwen-code 0.19.2 → 0.19.3-nightly.20260701.a974594d7
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/extension-creator/SKILL.md +357 -0
- package/bundled/loop/SKILL.md +34 -10
- package/bundled/loop/SKILL.test.ts +52 -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 +864 -0
- package/bundled/loop/loop-tick-resolver.ts +416 -0
- package/bundled/qc-helper/SKILL.md +26 -19
- package/bundled/qc-helper/docs/configuration/auth.md +11 -11
- package/bundled/qc-helper/docs/configuration/model-providers.md +13 -13
- package/bundled/qc-helper/docs/configuration/settings.md +77 -75
- package/bundled/qc-helper/docs/features/channels/plugins.md +1 -1
- package/bundled/qc-helper/docs/features/commands.md +108 -77
- package/bundled/qc-helper/docs/features/hooks.md +6 -1
- package/bundled/qc-helper/docs/features/memory.md +53 -1
- 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 +24 -2
- package/bundled/qc-helper/docs/support/tos-privacy.md +16 -3
- package/bundled/qc-helper/docs/support/troubleshooting.md +6 -0
- package/chunks/{MaxSizedBox-7RERNLFK.js → MaxSizedBox-UZHJ73JB.js} +29 -27
- package/chunks/{StandaloneSessionPicker-S22XBSN6.js → StandaloneSessionPicker-GGUIZWCE.js} +42 -37
- package/chunks/{acpAgent-4MCETHF2.js → acpAgent-QYZFICEZ.js} +1292 -332
- package/chunks/{agent-K3ENVYSB.js → agent-2EN7YNSW.js} +24 -23
- package/chunks/{agent-headless-HO3V3A3A.js → agent-headless-SLTEZ5LV.js} +24 -23
- package/chunks/{anthropicContentGenerator-E3TQ5XJJ.js → anthropicContentGenerator-CA3JTAMO.js} +33 -12
- package/chunks/{artifact-tool-QA4KRO3B.js → artifact-tool-RM7WINJO.js} +3 -3
- package/chunks/{askUserQuestion-HMWXW6VN.js → askUserQuestion-J3P6QAJ7.js} +2 -2
- package/chunks/{bridge-4LV2HBH2.js → bridge-HZVAUTMX.js} +29 -28
- package/chunks/{ca-7WC7ELX6.js → ca-RYOETBUW.js} +10 -9
- package/chunks/{chunk-JXQ23SNT.js → chunk-2JKEQWDZ.js} +623 -78
- package/chunks/chunk-32MCHZQC.js +73 -0
- package/chunks/{chunk-PXFFKNCO.js → chunk-35FH347N.js} +5308 -2500
- package/chunks/{chunk-5JZLXFPD.js → chunk-3O2BJMFW.js} +11 -11
- package/chunks/{chunk-2JD55C6G.js → chunk-3TK7FSCP.js} +2 -2
- package/chunks/{chunk-USGMPVOY.js → chunk-4722VFFU.js} +19 -10
- package/chunks/chunk-6FIWYVN4.js +4932 -0
- package/chunks/{chunk-I2RFAW6Q.js → chunk-7SP275SH.js} +7 -5
- package/chunks/{chunk-5R4SBCX6.js → chunk-AIBPG5MB.js} +3 -3
- package/chunks/{chunk-C4K3FEQ2.js → chunk-AVQDCKNF.js} +124 -21
- package/chunks/{chunk-OTBK43JR.js → chunk-B236XPGF.js} +1 -1
- package/chunks/{chunk-WA5OJGFL.js → chunk-B5MPZI4K.js} +458 -125
- package/chunks/{chunk-5DWXLGOM.js → chunk-BJBWRCSK.js} +1 -1
- package/chunks/{chunk-4W4T77MO.js → chunk-BLAE2TCO.js} +109 -6
- package/chunks/chunk-BMFMJINR.js +45 -0
- package/chunks/{chunk-T2VDEFUU.js → chunk-BZHLWC6T.js} +2 -2
- package/chunks/{chunk-XU5P23GN.js → chunk-CA4ML3VH.js} +3 -3
- package/chunks/{chunk-WGAEWQTF.js → chunk-DBR7PF4B.js} +1 -2
- package/chunks/{chunk-S566HKUS.js → chunk-DHXWNSJA.js} +15 -1
- package/chunks/{chunk-LLFFKXZZ.js → chunk-DJ25MIU2.js} +167 -43
- package/chunks/{chunk-KBXLIVWQ.js → chunk-DX3TKXNT.js} +2 -2
- package/chunks/{chunk-OIC6S73E.js → chunk-E5I6YSNO.js} +1 -1
- package/chunks/{chunk-TXVGVZYR.js → chunk-ESVSWG6Z.js} +3 -3
- package/chunks/{chunk-EX4W6ZYG.js → chunk-EUURTJY7.js} +1 -1
- package/chunks/{chunk-QBZ22PQX.js → chunk-EWALXUAD.js} +3 -1
- package/chunks/{chunk-F6XNTYNE.js → chunk-FQDMX5IL.js} +30 -307
- package/chunks/{chunk-3QFE4OTE.js → chunk-FR3II765.js} +4 -4
- package/chunks/{chunk-VYFMN7C6.js → chunk-FV4SQ54H.js} +382 -55
- package/chunks/{chunk-ZD3NW5KL.js → chunk-FZY7NH37.js} +63 -9
- package/chunks/{chunk-CI5O6SQL.js → chunk-G525INVW.js} +4 -4
- package/chunks/{chunk-CGOMICBE.js → chunk-GDIG7TMG.js} +34 -1
- package/chunks/{chunk-R2BXK7SX.js → chunk-GHOTR7HL.js} +6 -1
- package/chunks/{chunk-TZM5JIAX.js → chunk-GZKQ36JS.js} +10 -7
- package/chunks/{chunk-BS64PXY3.js → chunk-HIYUAXBG.js} +1 -1
- package/chunks/{chunk-TMBPDHXD.js → chunk-HTWHAN44.js} +1 -1
- package/chunks/{chunk-EL5IHQON.js → chunk-HUGAEYZR.js} +6 -27
- package/chunks/{chunk-2BIF2NVV.js → chunk-HWG4XLD7.js} +2 -2
- package/chunks/{chunk-I5T6PIBQ.js → chunk-I4MXURND.js} +1076 -954
- package/chunks/{chunk-JTYRZODB.js → chunk-IBEM64M4.js} +39 -11
- package/chunks/{chunk-XKBP7M7A.js → chunk-IKO44NAT.js} +149 -31
- package/chunks/{chunk-2BAQ3ACS.js → chunk-JERW36RG.js} +404 -4
- package/chunks/{chunk-TOEGRAVX.js → chunk-JV7A66DR.js} +28 -16
- package/chunks/{chunk-3RJ3ZPPR.js → chunk-KKQWC6WS.js} +7 -7
- package/chunks/{chunk-EXMX5YHG.js → chunk-KXVVXAAC.js} +1 -1
- package/chunks/{chunk-Z7XXFPGP.js → chunk-LDWTYE33.js} +1 -1
- package/chunks/{chunk-X6EDWN44.js → chunk-LWGLBVWA.js} +1 -1
- package/chunks/{chunk-NYOHZYHM.js → chunk-LXEW6BHF.js} +45 -3
- package/chunks/{chunk-BGUDAULQ.js → chunk-LXGWLOCM.js} +5 -5
- package/chunks/{chunk-ZUAXI2OA.js → chunk-M2U5NM24.js} +188 -11366
- package/chunks/{chunk-BNXANYLH.js → chunk-MOUXUCXQ.js} +81 -1
- package/chunks/{chunk-FPACXT7T.js → chunk-MTJVHQDP.js} +534 -164
- package/chunks/{chunk-UAARJR2G.js → chunk-N4V4VBP6.js} +2 -2
- package/chunks/chunk-NIOPRZNN.js +27 -0
- package/chunks/{chunk-2TJ3YN6Q.js → chunk-NOYV2NXI.js} +517 -490
- package/chunks/{chunk-PRYMDRBV.js → chunk-NPQWQYU6.js} +1 -1
- package/chunks/{chunk-J6AW7O5D.js → chunk-NVTRORSK.js} +2 -2
- package/chunks/{chunk-PF523XJX.js → chunk-OE5J6UA7.js} +1 -1
- package/chunks/{chunk-RS4HRC75.js → chunk-OEY3YAL2.js} +99 -8
- package/chunks/{chunk-R36VMVEP.js → chunk-PLQTLKMR.js} +5 -5
- package/chunks/{chunk-UN3C6GOR.js → chunk-PPFWEV7G.js} +10 -108
- package/chunks/chunk-Q3JOGB4U.js +481 -0
- package/chunks/{chunk-HG6YKEBI.js → chunk-Q7TDHJ2G.js} +192 -30
- package/chunks/{chunk-EW6C27XX.js → chunk-QHHNFG22.js} +9 -3
- package/chunks/chunk-QYUE6W3T.js +123 -0
- package/chunks/{chunk-GZCJS5WH.js → chunk-SJBIFVD2.js} +2 -2
- package/chunks/{chunk-3UALQ56H.js → chunk-T42ACHFI.js} +1 -1
- package/chunks/chunk-T44AF4I6.js +690 -0
- package/chunks/{chunk-DBZUXSSV.js → chunk-TMILTLP3.js} +6 -6
- package/chunks/{chunk-EEEZIVFJ.js → chunk-TOAUDIS7.js} +1 -1
- package/chunks/chunk-UAKXW3DN.js +30 -0
- package/chunks/{chunk-VQRYPFCV.js → chunk-V5YJAUHW.js} +10 -460
- package/chunks/{chunk-D5E5TMYH.js → chunk-VHRREANT.js} +16 -2
- package/chunks/{chunk-5RVSM6NW.js → chunk-VN4CKYUW.js} +1 -1
- package/chunks/chunk-VXGPYF7U.js +37 -0
- package/chunks/{chunk-UAARVVBI.js → chunk-WGY3GIPP.js} +1 -1
- package/chunks/{chunk-GYZQA2FO.js → chunk-WJAY4WXR.js} +1 -1
- package/chunks/chunk-XKSCTXPK.js +167 -0
- package/chunks/chunk-YCEHOJZJ.js +840 -0
- package/chunks/{chunk-BG4BIP7F.js → chunk-YCRTJYSQ.js} +4 -2
- package/chunks/{chunk-CGEGHF2C.js → chunk-YPCPZSZB.js} +1 -1
- package/chunks/chunk-YTFBURQD.js +313 -0
- package/chunks/{chunk-HGNSRCRB.js → chunk-YXK4GPYO.js} +1 -1
- package/chunks/{chunk-OQHQHJRK.js → chunk-Z34RYLRO.js} +151 -4775
- package/chunks/chunk-ZGSV5ORL.js +11273 -0
- package/chunks/{computer-use-6BBRNT6S.js → computer-use-FCNWHVPW.js} +103 -49
- package/chunks/{contextCommand-UJAJ6N57.js → contextCommand-FVFMZZEU.js} +26 -25
- package/chunks/{cron-create-4KQE6YLH.js → cron-create-IY5NMIHQ.js} +4 -4
- package/chunks/{cron-delete-THME66UP.js → cron-delete-OLNEQWKO.js} +6 -6
- package/chunks/{cron-list-7A54SJ5N.js → cron-list-YAUAUV24.js} +5 -5
- package/chunks/{daemon-status-provider-CSL3BUOY.js → daemon-status-provider-42JEXENZ.js} +32 -32
- package/chunks/{de-ACHALDED.js → de-HB5NJXGB.js} +10 -9
- package/chunks/{dist-BD27IA3L.js → dist-4FCNM6KJ.js} +2 -2
- package/chunks/{dist-OD2FY543.js → dist-K4XZILIO.js} +1 -1
- package/chunks/{dist-BOOH5JWN.js → dist-SU6L7ZNJ.js} +114 -9
- package/chunks/{dist-QHJRBCMP.js → dist-UKPWQJCL.js} +44 -2
- package/chunks/{dist-QFFZWACU.js → dist-VD7HXTML.js} +20 -9
- package/chunks/{earlyInputCapture-X6KMCSHD.js → earlyInputCapture-FFFEC6P4.js} +25 -24
- package/chunks/{edit-7J6WXARF.js → edit-32ILSGZY.js} +72 -30
- package/chunks/{en-NCUBOJOY.js → en-U3LWGSFX.js} +19 -9
- package/chunks/{enter-worktree-KULCKJPJ.js → enter-worktree-XWZKIN6A.js} +24 -23
- package/chunks/{enterPlanMode-H2CIOLMH.js → enterPlanMode-LPFFY7BJ.js} +24 -23
- package/chunks/{errors-6G2JYR54.js → errors-UXBPYPI2.js} +26 -25
- package/chunks/{exit-worktree-ECBWBVC5.js → exit-worktree-IBS4UIU7.js} +24 -23
- package/chunks/{exitPlanMode-DQV56GTW.js → exitPlanMode-JA72YHII.js} +24 -23
- package/chunks/{fast-path-35JJFS3C.js → fast-path-7UU67Y2W.js} +30 -13
- package/chunks/{fast-path-settings-TSVI53EB.js → fast-path-settings-UQLRFDQP.js} +3 -2
- package/chunks/{fr-GVKZ27MF.js → fr-XY3NQFCM.js} +10 -9
- package/chunks/{gemini-NDTG7WAX.js → gemini-GMVKJNMX.js} +211 -105
- package/chunks/{geminiContentGenerator-XTG6SFLA.js → geminiContentGenerator-7NIFF2L4.js} +4 -4
- package/chunks/{glob-SJ2JBZK4.js → glob-4NJCW5HI.js} +24 -23
- package/chunks/{grep-BRMWFEWR.js → grep-PAIMLQEL.js} +24 -23
- package/chunks/{initializer-P5AXF7PV.js → initializer-R6KU4VYM.js} +31 -28
- package/chunks/{ja-FKZ2WZ4D.js → ja-J7YAG7SA.js} +10 -9
- package/chunks/{keychain-token-storage-CSYMNRPP.js → keychain-token-storage-GPAKRDKQ.js} +2 -2
- package/chunks/{list-6COK34BP.js → list-H7LXAO64.js} +32 -29
- package/chunks/{loadedSettingsAdapter-XIUTN245.js → loadedSettingsAdapter-H27JMTLU.js} +30 -27
- package/chunks/{loop-wakeup-33GPXJLA.js → loop-wakeup-Y3OIRQFM.js} +7 -7
- package/chunks/{ls-BYQY7RVV.js → ls-TVJEYS7O.js} +4 -4
- package/chunks/{lsp-X54RO4IV.js → lsp-JZSDVR3F.js} +2 -2
- package/chunks/{monitor-DH7KFSJV.js → monitor-JSIHDPXP.js} +24 -23
- package/chunks/nonInteractiveCli-Y4CHOETG.js +100 -0
- package/chunks/{notebook-edit-D4R4ZLMA.js → notebook-edit-SHRNL2UM.js} +52 -23
- package/chunks/{openaiContentGenerator-F74IPQ6E.js → openaiContentGenerator-ORZZ7VFO.js} +13 -12
- package/chunks/{pt-SY5NCFGR.js → pt-6RTAA6SS.js} +10 -9
- package/chunks/{qwenContentGenerator-ATTK5P4D.js → qwenContentGenerator-H643PL2G.js} +26 -25
- package/chunks/{qwenOAuth2-K4AASPCV.js → qwenOAuth2-OI2B7PES.js} +5 -4
- package/chunks/{read-file-767G23OY.js → read-file-5PRNPTTY.js} +8 -8
- package/chunks/{read-mcp-resource-I5HCZJ6X.js → read-mcp-resource-QTXGKTEV.js} +2 -2
- package/chunks/{ripGrep-4OMMGSWX.js → ripGrep-JIKZMABJ.js} +24 -23
- package/chunks/{ru-FWNXJG4F.js → ru-AUBGJ2C4.js} +10 -9
- package/chunks/{run-qwen-serve-REKSTYRA.js → run-qwen-serve-PQV7QOHZ.js} +284 -52
- package/chunks/{scheduler-UNTFDQLG.js → scheduler-OS3R5MGU.js} +24 -23
- package/chunks/{send-message-2DAFXEYP.js → send-message-DKGHWSTF.js} +2 -2
- package/chunks/{serve-KZ56QB5S.js → serve-LVYZDKCZ.js} +31 -29
- package/chunks/{server-BV5TZUMU.js → server-P4YIH35I.js} +11458 -8447
- package/chunks/{session-OIBXFSGD.js → session-DE4TZBKH.js} +195 -58
- package/chunks/{settings-WJTCBIRA.js → settings-DFTYMJYF.js} +30 -27
- package/chunks/{shell-WC52IBHW.js → shell-3GNQLNV7.js} +24 -23
- package/chunks/{skill-U7F7JR4M.js → skill-NCNG4KKZ.js} +38 -11
- package/chunks/{spawnChannel-EI2E5BCW.js → spawnChannel-DHRIMDVL.js} +26 -25
- package/chunks/{src-4F6FBZFI.js → src-PNZYGM3R.js} +104 -28
- package/chunks/{startInteractiveUI-SFRVB3CE.js → startInteractiveUI-P6GZBFQW.js} +2817 -2500
- package/chunks/{syntheticOutput-PPS3HDVA.js → syntheticOutput-X7L5HWLN.js} +3 -3
- package/chunks/{task-create-OUYCA553.js → task-create-AWEUI4GI.js} +6 -6
- package/chunks/{task-list-WAX7I2IA.js → task-list-KZ3VJLDU.js} +5 -5
- package/chunks/{task-stop-CAIL6FNH.js → task-stop-GUNOZKJ5.js} +2 -2
- package/chunks/{task-update-AHEO5OUT.js → task-update-Y56GP6DU.js} +6 -6
- package/chunks/{team-create-3WC7CIIW.js → team-create-6JMW3KQK.js} +24 -23
- package/chunks/{team-delete-HGHFG23B.js → team-delete-6AFRGDJY.js} +5 -5
- package/chunks/{theme-manager-DICFCT3P.js → theme-manager-FEHQO22G.js} +25 -24
- package/chunks/{todoWrite-IFBMN3FH.js → todoWrite-JRS6NOEU.js} +4 -4
- package/chunks/{tool-search-L5K7HLER.js → tool-search-IXAEKS7J.js} +101 -16
- package/chunks/trustedFolders-SJRXNHZE.js +76 -0
- package/chunks/types-QX5C3CHJ.js +12 -0
- package/chunks/{validateNonInterActiveAuth-GCH4Z6KI.js → validateNonInterActiveAuth-HCH7OBDH.js} +56 -51
- package/chunks/{web-fetch-B5IIQ5TT.js → web-fetch-RELNL37A.js} +29 -15
- package/chunks/{workflow-OB3AND7I.js → workflow-M2COBI7R.js} +38 -32
- package/chunks/{workspace-providers-status-ZIR5EPOO.js → workspace-providers-status-GOCWYDMK.js} +32 -29
- package/chunks/workspace-service-34C7SUBU.js +75 -0
- package/chunks/{write-file-SEXBNDZM.js → write-file-E52WRXZL.js} +67 -31
- package/chunks/{zh-RBEGQVQT.js → zh-F5T4WWZO.js} +19 -9
- package/chunks/{zh-TW-QGAVRXT3.js → zh-TW-LKLBTZHE.js} +19 -9
- package/cli-entry.js +20 -9
- package/cli.js +6 -6
- package/locales/ca.js +15 -13
- package/locales/de.js +15 -13
- package/locales/en.js +31 -13
- package/locales/fr.js +16 -14
- package/locales/ja.js +15 -14
- package/locales/pt.js +15 -13
- package/locales/ru.js +15 -13
- package/locales/zh-TW.js +28 -12
- package/locales/zh.js +28 -12
- package/node_modules/@qwen-code/audio-capture/dist/index.d.ts +35 -0
- package/node_modules/@qwen-code/audio-capture/dist/index.js +48 -0
- package/node_modules/@qwen-code/audio-capture/dist/index.js.map +1 -0
- package/node_modules/@qwen-code/audio-capture/dist/platform.d.ts +7 -0
- package/node_modules/@qwen-code/audio-capture/dist/platform.js +18 -0
- package/node_modules/@qwen-code/audio-capture/dist/platform.js.map +1 -0
- package/node_modules/@qwen-code/audio-capture/node_modules/node-gyp-build/LICENSE +21 -0
- package/node_modules/@qwen-code/audio-capture/node_modules/node-gyp-build/README.md +58 -0
- package/node_modules/@qwen-code/audio-capture/node_modules/node-gyp-build/SECURITY.md +5 -0
- package/node_modules/@qwen-code/audio-capture/node_modules/node-gyp-build/bin.js +84 -0
- package/node_modules/@qwen-code/audio-capture/node_modules/node-gyp-build/build-test.js +19 -0
- package/node_modules/@qwen-code/audio-capture/node_modules/node-gyp-build/index.js +6 -0
- package/node_modules/@qwen-code/audio-capture/node_modules/node-gyp-build/node-gyp-build.js +207 -0
- package/node_modules/@qwen-code/audio-capture/node_modules/node-gyp-build/optional.js +7 -0
- package/node_modules/@qwen-code/audio-capture/node_modules/node-gyp-build/package.json +43 -0
- package/node_modules/@qwen-code/audio-capture/package.json +30 -0
- 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/linux-arm64/@qwen-code+audio-capture.node +0 -0
- package/node_modules/@qwen-code/audio-capture/prebuilds/linux-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 +18 -6
- package/patches/chrome-devtools-mcp+1.4.0.patch +31 -0
- package/postinstall.js +50 -0
- package/web-shell/assets/{arc-D_ae_Y9k.js → arc-C2DILvUl.js} +1 -1
- package/web-shell/assets/{architectureDiagram-3BPJPVTR-BMLRjppa.js → architectureDiagram-3BPJPVTR-b8gZ2cNw.js} +1 -1
- package/web-shell/assets/{blockDiagram-GPEHLZMM-qVDQC8KL.js → blockDiagram-GPEHLZMM-BuRpghMj.js} +1 -1
- package/web-shell/assets/{c4Diagram-AAUBKEIU-CxWS6MBd.js → c4Diagram-AAUBKEIU-2ItdhFmE.js} +1 -1
- package/web-shell/assets/channel-eRvn2UA3.js +1 -0
- package/web-shell/assets/{chunk-2J33WTMH-BtNuY5Yp.js → chunk-2J33WTMH-B1QXa0q3.js} +1 -1
- package/web-shell/assets/{chunk-4BX2VUAB-BU-x368d.js → chunk-4BX2VUAB-DXfhKlNq.js} +1 -1
- package/web-shell/assets/{chunk-55IACEB6-DRgTLvBu.js → chunk-55IACEB6-ClSNjxLo.js} +1 -1
- package/web-shell/assets/{chunk-727SXJPM-D2aElv7q.js → chunk-727SXJPM-Dsh2wisB.js} +1 -1
- package/web-shell/assets/{chunk-AQP2D5EJ-BwHCMRQ0.js → chunk-AQP2D5EJ-C1TkY5AR.js} +1 -1
- package/web-shell/assets/{chunk-FMBD7UC4-BMyPH-ku.js → chunk-FMBD7UC4-CGtN9XR6.js} +1 -1
- package/web-shell/assets/{chunk-ND2GUHAM-BNKTstUf.js → chunk-ND2GUHAM-BHiPi1SS.js} +1 -1
- package/web-shell/assets/{chunk-QZHKN3VN-gD3vsFId.js → chunk-QZHKN3VN-CzG3I5o1.js} +1 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-YZNwy1rx.js +1 -0
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-YZNwy1rx.js +1 -0
- package/web-shell/assets/{cose-bilkent-S5V4N54A-BG9FAsXE.js → cose-bilkent-S5V4N54A-EgrIoH_K.js} +1 -1
- package/web-shell/assets/{dagre-BM42HDAG-Cy1sR7om.js → dagre-BM42HDAG-BUnpdX8S.js} +1 -1
- package/web-shell/assets/default-aEtf0G7-.svg +1 -0
- package/web-shell/assets/{diagram-2AECGRRQ-Bxi1I_Vu.js → diagram-2AECGRRQ-BlLUCVYu.js} +1 -1
- package/web-shell/assets/{diagram-5GNKFQAL-BGCJjO6y.js → diagram-5GNKFQAL-FG-enmjQ.js} +1 -1
- package/web-shell/assets/{diagram-KO2AKTUF-CMTeLXp7.js → diagram-KO2AKTUF-BlzmTONk.js} +1 -1
- package/web-shell/assets/{diagram-LMA3HP47-BN1wyAGh.js → diagram-LMA3HP47-CoBQ8mIx.js} +1 -1
- package/web-shell/assets/{diagram-OG6HWLK6-UYSG_zcp.js → diagram-OG6HWLK6-DvxV6sX8.js} +1 -1
- package/web-shell/assets/{erDiagram-TEJ5UH35-DqXL08lw.js → erDiagram-TEJ5UH35-Jq1tpAoj.js} +1 -1
- package/web-shell/assets/{flowDiagram-I6XJVG4X-BPJ9SFji.js → flowDiagram-I6XJVG4X-CbtYOry5.js} +1 -1
- package/web-shell/assets/{ganttDiagram-6RSMTGT7-BEd9Pnms.js → ganttDiagram-6RSMTGT7-ZEn2VEKR.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-PVQCEYII-DrNRH3oi.js → gitGraphDiagram-PVQCEYII-BZh-LkhJ.js} +1 -1
- package/web-shell/assets/index-5FhE0ORO.css +5 -0
- package/web-shell/assets/index-CDTGmqVm.js +720 -0
- package/web-shell/assets/{infoDiagram-5YYISTIA-CFYBrkVI.js → infoDiagram-5YYISTIA-B9HuZygK.js} +1 -1
- package/web-shell/assets/insert-DmRbh9Rv.svg +1 -0
- package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-Dxsddth7.js → ishikawaDiagram-YF4QCWOH-D76cNpYG.js} +1 -1
- package/web-shell/assets/{journeyDiagram-JHISSGLW-DxaDK80t.js → journeyDiagram-JHISSGLW-6bGo7P1t.js} +1 -1
- package/web-shell/assets/{kanban-definition-UN3LZRKU-Q0jQCOct.js → kanban-definition-UN3LZRKU-DuYyRBvB.js} +1 -1
- package/web-shell/assets/{linear-DGGM2kcP.js → linear-CpdSW1BC.js} +1 -1
- package/web-shell/assets/{mermaid.core-ByoxnWut.js → mermaid.core-s5xbZMMj.js} +5 -5
- package/web-shell/assets/{mindmap-definition-RKZ34NQL-C0ZseHsi.js → mindmap-definition-RKZ34NQL-go01fZ2y.js} +1 -1
- package/web-shell/assets/{pieDiagram-4H26LBE5-MQXNhl5A.js → pieDiagram-4H26LBE5-BfuZiEHO.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-W4KKPZXB-DIR4ee2A.js → quadrantDiagram-W4KKPZXB-DsoINqV6.js} +1 -1
- package/web-shell/assets/queue-DWpnpFgW.svg +1 -0
- package/web-shell/assets/{requirementDiagram-4Y6WPE33-BTR0UdYQ.js → requirementDiagram-4Y6WPE33-B7FU4LiU.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-5OEKKPKP-sfnhMELN.js → sankeyDiagram-5OEKKPKP-BEDjFnGB.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-3UESZ5HK-DXczHOHH.js → sequenceDiagram-3UESZ5HK-gzmmL5tK.js} +1 -1
- package/web-shell/assets/{stateDiagram-AJRCARHV-DdE_KQFH.js → stateDiagram-AJRCARHV-BtHD4IN_.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-DFy6gLDd.js +1 -0
- package/web-shell/assets/{timeline-definition-PNZ67QCA-DIc61uE8.js → timeline-definition-PNZ67QCA-T_8gmMCf.js} +1 -1
- package/web-shell/assets/{vennDiagram-CIIHVFJN-BF7ODmxB.js → vennDiagram-CIIHVFJN-DdjuqnjO.js} +1 -1
- package/web-shell/assets/{wardley-L42UT6IY-3pc1MEaw.js → wardley-L42UT6IY-Cgtrvb37.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-YWT4CUSO-9jnPcZuP.js → wardleyDiagram-YWT4CUSO-BW3f3-yW.js} +1 -1
- package/web-shell/assets/{xychartDiagram-2RQKCTM6-DcthaZK6.js → xychartDiagram-2RQKCTM6-BUS9IKkc.js} +1 -1
- package/web-shell/index.html +2 -2
- package/chunks/chunk-B6HQGTYR.js +0 -410
- package/chunks/chunk-RKIZXJMB.js +0 -13
- package/chunks/headlessSafetyWarnings-LJ6FJX77.js +0 -57
- package/chunks/nonInteractiveCli-7575LBXP.js +0 -91
- package/chunks/workspace-service-OM5D4OI2.js +0 -60
- package/web-shell/assets/channel-DYPNiTww.js +0 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-p_g25Tni.js +0 -1
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-p_g25Tni.js +0 -1
- package/web-shell/assets/index-CpOXWDPh.js +0 -714
- package/web-shell/assets/index-oVK7qhre.css +0 -5
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-BHUSEndU.js +0 -1
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
functionResponsePartsToString
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NOYV2NXI.js";
|
|
6
6
|
import {
|
|
7
7
|
parseAndFormatApiError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-35FH347N.js";
|
|
9
9
|
import {
|
|
10
10
|
init_esbuild_shims
|
|
11
11
|
} from "./chunk-A4BMJM77.js";
|
|
@@ -2,15 +2,16 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
resolveModelConfig,
|
|
5
|
+
resolveProviderProtocol,
|
|
5
6
|
stripRuntimeSnapshotPrefix
|
|
6
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-35FH347N.js";
|
|
7
8
|
import {
|
|
8
9
|
external_exports
|
|
9
10
|
} from "./chunk-K5PGHDBN.js";
|
|
10
11
|
import {
|
|
11
12
|
AuthType,
|
|
12
13
|
MODEL_GENERATION_CONFIG_FIELDS
|
|
13
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-B5MPZI4K.js";
|
|
14
15
|
import {
|
|
15
16
|
init_esbuild_shims
|
|
16
17
|
} from "./chunk-A4BMJM77.js";
|
|
@@ -102,6 +103,19 @@ function parseAcpModelOption(input) {
|
|
|
102
103
|
return { modelId: trimmed };
|
|
103
104
|
}
|
|
104
105
|
__name(parseAcpModelOption, "parseAcpModelOption");
|
|
106
|
+
function isInlineModelOverrideAllowed(config, modelId) {
|
|
107
|
+
const contentGeneratorConfig = config.getContentGeneratorConfig();
|
|
108
|
+
const authType = contentGeneratorConfig?.authType;
|
|
109
|
+
if (!authType) {
|
|
110
|
+
return false;
|
|
111
|
+
}
|
|
112
|
+
const activeBaseUrl = contentGeneratorConfig.baseUrl;
|
|
113
|
+
const activeEnvKey = contentGeneratorConfig.apiKeyEnvKey;
|
|
114
|
+
return config.getAvailableModelsForAuthType(authType).filter((m) => !m.fastOnly && !m.voiceOnly).some(
|
|
115
|
+
(m) => m.id === modelId && (m.baseUrl ?? void 0) === (activeBaseUrl ?? void 0) && (m.envKey ?? void 0) === (activeEnvKey ?? void 0)
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
__name(isInlineModelOverrideAllowed, "isInlineModelOverrideAllowed");
|
|
105
119
|
|
|
106
120
|
// packages/cli/src/utils/modelConfigUtils.ts
|
|
107
121
|
init_esbuild_shims();
|
|
@@ -112,6 +126,68 @@ var AUTH_ENV_MODEL_VARS = {
|
|
|
112
126
|
["anthropic" /* USE_ANTHROPIC */]: ["ANTHROPIC_MODEL"],
|
|
113
127
|
["qwen-oauth" /* QWEN_OAUTH */]: []
|
|
114
128
|
};
|
|
129
|
+
function collectProviderModelsForProtocol(modelProviders, providerProtocol, protocol) {
|
|
130
|
+
if (!modelProviders) {
|
|
131
|
+
return [];
|
|
132
|
+
}
|
|
133
|
+
const out = [];
|
|
134
|
+
for (const [providerId, models] of Object.entries(modelProviders)) {
|
|
135
|
+
if (!Array.isArray(models)) {
|
|
136
|
+
continue;
|
|
137
|
+
}
|
|
138
|
+
if (resolveProviderProtocol(providerId, providerProtocol) === protocol) {
|
|
139
|
+
out.push(...models);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
return out;
|
|
143
|
+
}
|
|
144
|
+
__name(collectProviderModelsForProtocol, "collectProviderModelsForProtocol");
|
|
145
|
+
function findProviderIdForModel(modelProviders, providerProtocol, protocol, modelProvider) {
|
|
146
|
+
if (!modelProviders || !modelProvider) {
|
|
147
|
+
return void 0;
|
|
148
|
+
}
|
|
149
|
+
for (const [providerId, models] of Object.entries(modelProviders)) {
|
|
150
|
+
if (!Array.isArray(models)) {
|
|
151
|
+
continue;
|
|
152
|
+
}
|
|
153
|
+
if (resolveProviderProtocol(providerId, providerProtocol) !== protocol) {
|
|
154
|
+
continue;
|
|
155
|
+
}
|
|
156
|
+
if (models.includes(modelProvider)) {
|
|
157
|
+
return providerId;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
return void 0;
|
|
161
|
+
}
|
|
162
|
+
__name(findProviderIdForModel, "findProviderIdForModel");
|
|
163
|
+
function buildSkippedProviderWarnings(modelProviders, providerProtocol) {
|
|
164
|
+
if (!modelProviders) {
|
|
165
|
+
return [];
|
|
166
|
+
}
|
|
167
|
+
const warnings = [];
|
|
168
|
+
const known = Object.values(AuthType).join(", ");
|
|
169
|
+
for (const [providerId, models] of Object.entries(modelProviders)) {
|
|
170
|
+
if (!Array.isArray(models) || models.length === 0) {
|
|
171
|
+
continue;
|
|
172
|
+
}
|
|
173
|
+
const protocol = resolveProviderProtocol(providerId, providerProtocol);
|
|
174
|
+
if (protocol === "qwen-oauth" /* QWEN_OAUTH */ && providerId !== "qwen-oauth" /* QWEN_OAUTH */) {
|
|
175
|
+
warnings.push(
|
|
176
|
+
`Warning: modelProviders provider "${providerId}" maps to "qwen-oauth" via providerProtocol, but qwen-oauth uses hard-coded models only; its ${models.length} model(s) are ignored.`
|
|
177
|
+
);
|
|
178
|
+
continue;
|
|
179
|
+
}
|
|
180
|
+
if (protocol !== void 0) {
|
|
181
|
+
continue;
|
|
182
|
+
}
|
|
183
|
+
const mapped = providerProtocol && Object.hasOwn(providerProtocol, providerId) ? providerProtocol[providerId] : void 0;
|
|
184
|
+
warnings.push(
|
|
185
|
+
mapped !== void 0 ? `Warning: providerProtocol["${providerId}"] = "${mapped}" is not a known protocol (expected one of: ${known}); its ${models.length} model(s) are ignored.` : `Warning: modelProviders provider "${providerId}" is not a built-in protocol (${known}) and has no providerProtocol mapping; its ${models.length} model(s) are ignored. Add providerProtocol["${providerId}"] (e.g. "openai") to enable them.`
|
|
186
|
+
);
|
|
187
|
+
}
|
|
188
|
+
return warnings;
|
|
189
|
+
}
|
|
190
|
+
__name(buildSkippedProviderWarnings, "buildSkippedProviderWarnings");
|
|
115
191
|
function getIgnoredTopLevelGenerationConfigFields(settingsGenerationConfig, modelProvider) {
|
|
116
192
|
if (!settingsGenerationConfig || !modelProvider) {
|
|
117
193
|
return [];
|
|
@@ -122,7 +198,7 @@ function getIgnoredTopLevelGenerationConfigFields(settingsGenerationConfig, mode
|
|
|
122
198
|
);
|
|
123
199
|
}
|
|
124
200
|
__name(getIgnoredTopLevelGenerationConfigFields, "getIgnoredTopLevelGenerationConfigFields");
|
|
125
|
-
function buildIgnoredTopLevelGenerationConfigWarning(
|
|
201
|
+
function buildIgnoredTopLevelGenerationConfigWarning(providerId, modelProvider, ignoredFields) {
|
|
126
202
|
if (ignoredFields.length === 0) {
|
|
127
203
|
return void 0;
|
|
128
204
|
}
|
|
@@ -131,7 +207,7 @@ function buildIgnoredTopLevelGenerationConfigWarning(authType, modelProvider, ig
|
|
|
131
207
|
const verb = isSingular ? "is" : "are";
|
|
132
208
|
const fieldReference = isSingular ? "this field" : "these fields";
|
|
133
209
|
const pronoun = isSingular ? "it" : "them";
|
|
134
|
-
return `Warning: ${fieldList} ${verb} ignored for provider model "${modelProvider.id}" from modelProviders.${
|
|
210
|
+
return `Warning: ${fieldList} ${verb} ignored for provider model "${modelProvider.id}" from modelProviders.${providerId}. Move ${fieldReference} to modelProviders.${providerId}[].generationConfig for that model if you want ${pronoun} to apply.`;
|
|
135
211
|
}
|
|
136
212
|
__name(buildIgnoredTopLevelGenerationConfigWarning, "buildIgnoredTopLevelGenerationConfigWarning");
|
|
137
213
|
function getAuthTypeFromEnv() {
|
|
@@ -177,8 +253,12 @@ function resolveCliGenerationConfig(inputs) {
|
|
|
177
253
|
let modelProvider;
|
|
178
254
|
let disambiguationWarning;
|
|
179
255
|
if (resolvedModel && authType && settings.modelProviders) {
|
|
180
|
-
const providers =
|
|
181
|
-
|
|
256
|
+
const providers = collectProviderModelsForProtocol(
|
|
257
|
+
settings.modelProviders,
|
|
258
|
+
settings.providerProtocol,
|
|
259
|
+
authType
|
|
260
|
+
);
|
|
261
|
+
if (providers.length > 0) {
|
|
182
262
|
const persistedBaseUrl = settings.model?.baseUrl;
|
|
183
263
|
if (resolvedFromSettings && persistedBaseUrl) {
|
|
184
264
|
const exactMatch = providers.find(
|
|
@@ -225,7 +305,12 @@ function resolveCliGenerationConfig(inputs) {
|
|
|
225
305
|
};
|
|
226
306
|
const resolved = resolveModelConfig(configSources);
|
|
227
307
|
const ignoredGenerationConfigWarning = authType && modelProvider ? buildIgnoredTopLevelGenerationConfigWarning(
|
|
228
|
-
|
|
308
|
+
findProviderIdForModel(
|
|
309
|
+
settings.modelProviders,
|
|
310
|
+
settings.providerProtocol,
|
|
311
|
+
authType,
|
|
312
|
+
modelProvider
|
|
313
|
+
) ?? authType,
|
|
229
314
|
modelProvider,
|
|
230
315
|
getIgnoredTopLevelGenerationConfigFields(
|
|
231
316
|
settings.model?.generationConfig,
|
|
@@ -248,7 +333,11 @@ function resolveCliGenerationConfig(inputs) {
|
|
|
248
333
|
warnings: [
|
|
249
334
|
...resolved.warnings,
|
|
250
335
|
...disambiguationWarning ? [disambiguationWarning] : [],
|
|
251
|
-
...ignoredGenerationConfigWarning ? [ignoredGenerationConfigWarning] : []
|
|
336
|
+
...ignoredGenerationConfigWarning ? [ignoredGenerationConfigWarning] : [],
|
|
337
|
+
...buildSkippedProviderWarnings(
|
|
338
|
+
settings.modelProviders,
|
|
339
|
+
settings.providerProtocol
|
|
340
|
+
)
|
|
252
341
|
]
|
|
253
342
|
};
|
|
254
343
|
}
|
|
@@ -259,6 +348,8 @@ export {
|
|
|
259
348
|
sanitizeProviderBaseUrl,
|
|
260
349
|
parseAcpBaseModelId,
|
|
261
350
|
parseAcpModelOption,
|
|
351
|
+
isInlineModelOverrideAllowed,
|
|
352
|
+
collectProviderModelsForProtocol,
|
|
262
353
|
getAuthTypeFromEnv,
|
|
263
354
|
resolveCliGenerationConfig
|
|
264
355
|
};
|
|
@@ -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-3O2BJMFW.js";
|
|
12
12
|
import {
|
|
13
13
|
IdeClient
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-35FH347N.js";
|
|
15
15
|
import {
|
|
16
16
|
AuthEvent,
|
|
17
17
|
IdeConnectionEvent,
|
|
18
18
|
logAuth,
|
|
19
19
|
logIdeConnection
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-B5MPZI4K.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";
|
|
@@ -4,83 +4,9 @@ import {
|
|
|
4
4
|
init_esbuild_shims
|
|
5
5
|
} from "./chunk-A4BMJM77.js";
|
|
6
6
|
import {
|
|
7
|
-
__commonJS,
|
|
8
7
|
__name
|
|
9
8
|
} from "./chunk-J2S4EL5Y.js";
|
|
10
9
|
|
|
11
|
-
// node_modules/strip-json-comments/index.js
|
|
12
|
-
var require_strip_json_comments = __commonJS({
|
|
13
|
-
"node_modules/strip-json-comments/index.js"(exports, module) {
|
|
14
|
-
"use strict";
|
|
15
|
-
init_esbuild_shims();
|
|
16
|
-
var singleComment = Symbol("singleComment");
|
|
17
|
-
var multiComment = Symbol("multiComment");
|
|
18
|
-
var stripWithoutWhitespace = /* @__PURE__ */ __name(() => "", "stripWithoutWhitespace");
|
|
19
|
-
var stripWithWhitespace = /* @__PURE__ */ __name((string, start, end) => string.slice(start, end).replace(/\S/g, " "), "stripWithWhitespace");
|
|
20
|
-
var isEscaped = /* @__PURE__ */ __name((jsonString, quotePosition) => {
|
|
21
|
-
let index = quotePosition - 1;
|
|
22
|
-
let backslashCount = 0;
|
|
23
|
-
while (jsonString[index] === "\\") {
|
|
24
|
-
index -= 1;
|
|
25
|
-
backslashCount += 1;
|
|
26
|
-
}
|
|
27
|
-
return Boolean(backslashCount % 2);
|
|
28
|
-
}, "isEscaped");
|
|
29
|
-
module.exports = (jsonString, options = {}) => {
|
|
30
|
-
if (typeof jsonString !== "string") {
|
|
31
|
-
throw new TypeError(`Expected argument \`jsonString\` to be a \`string\`, got \`${typeof jsonString}\``);
|
|
32
|
-
}
|
|
33
|
-
const strip = options.whitespace === false ? stripWithoutWhitespace : stripWithWhitespace;
|
|
34
|
-
let insideString = false;
|
|
35
|
-
let insideComment = false;
|
|
36
|
-
let offset = 0;
|
|
37
|
-
let result = "";
|
|
38
|
-
for (let i = 0; i < jsonString.length; i++) {
|
|
39
|
-
const currentCharacter = jsonString[i];
|
|
40
|
-
const nextCharacter = jsonString[i + 1];
|
|
41
|
-
if (!insideComment && currentCharacter === '"') {
|
|
42
|
-
const escaped = isEscaped(jsonString, i);
|
|
43
|
-
if (!escaped) {
|
|
44
|
-
insideString = !insideString;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
if (insideString) {
|
|
48
|
-
continue;
|
|
49
|
-
}
|
|
50
|
-
if (!insideComment && currentCharacter + nextCharacter === "//") {
|
|
51
|
-
result += jsonString.slice(offset, i);
|
|
52
|
-
offset = i;
|
|
53
|
-
insideComment = singleComment;
|
|
54
|
-
i++;
|
|
55
|
-
} else if (insideComment === singleComment && currentCharacter + nextCharacter === "\r\n") {
|
|
56
|
-
i++;
|
|
57
|
-
insideComment = false;
|
|
58
|
-
result += strip(jsonString, offset, i);
|
|
59
|
-
offset = i;
|
|
60
|
-
continue;
|
|
61
|
-
} else if (insideComment === singleComment && currentCharacter === "\n") {
|
|
62
|
-
insideComment = false;
|
|
63
|
-
result += strip(jsonString, offset, i);
|
|
64
|
-
offset = i;
|
|
65
|
-
} else if (!insideComment && currentCharacter + nextCharacter === "/*") {
|
|
66
|
-
result += jsonString.slice(offset, i);
|
|
67
|
-
offset = i;
|
|
68
|
-
insideComment = multiComment;
|
|
69
|
-
i++;
|
|
70
|
-
continue;
|
|
71
|
-
} else if (insideComment === multiComment && currentCharacter + nextCharacter === "*/") {
|
|
72
|
-
i++;
|
|
73
|
-
insideComment = false;
|
|
74
|
-
result += strip(jsonString, offset, i + 1);
|
|
75
|
-
offset = i + 1;
|
|
76
|
-
continue;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
return result + (insideComment ? strip(jsonString.slice(offset)) : jsonString.slice(offset));
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
|
|
84
10
|
// packages/cli/src/config/migration/versions/v1-to-v2-shared.ts
|
|
85
11
|
init_esbuild_shims();
|
|
86
12
|
var V1_TO_V2_MIGRATION_MAP = {
|
|
@@ -246,7 +172,16 @@ var PROJECT_ENV_HARDCODED_EXCLUSIONS = [
|
|
|
246
172
|
"QWEN_CODE_MCP_APPROVALS_PATH",
|
|
247
173
|
"QWEN_CODE_TRUSTED_FOLDERS_PATH",
|
|
248
174
|
ENV_CORRUPTED_PATH,
|
|
249
|
-
ENV_WAS_RECOVERED
|
|
175
|
+
ENV_WAS_RECOVERED,
|
|
176
|
+
// QWEN_TLS_INSECURE (and NODE_TLS_REJECT_UNAUTHORIZED, which it mirrors)
|
|
177
|
+
// disable TLS certificate verification for all outbound API connections. A
|
|
178
|
+
// project `.env` must never enable either — that would let an untrusted repo
|
|
179
|
+
// silently turn off MITM protection. Opt-in stays with the user via the
|
|
180
|
+
// `--insecure` flag, the shell environment, or a home `.env`. The initial
|
|
181
|
+
// `.env` load only consults this list, so both keys must be here (not just
|
|
182
|
+
// RELOAD_EXCLUDED_KEYS, which only applies on reload).
|
|
183
|
+
"QWEN_TLS_INSECURE",
|
|
184
|
+
"NODE_TLS_REJECT_UNAUTHORIZED"
|
|
250
185
|
];
|
|
251
186
|
var HOME_ENV_BOOTSTRAP_KEYS = [
|
|
252
187
|
"QWEN_HOME",
|
|
@@ -308,35 +243,6 @@ function getSystemDefaultsPath() {
|
|
|
308
243
|
}
|
|
309
244
|
__name(getSystemDefaultsPath, "getSystemDefaultsPath");
|
|
310
245
|
|
|
311
|
-
// packages/cli/src/config/path-comparison.ts
|
|
312
|
-
init_esbuild_shims();
|
|
313
|
-
import * as fs from "node:fs";
|
|
314
|
-
import * as path2 from "node:path";
|
|
315
|
-
function isWithinRoot(childPath, parentPath) {
|
|
316
|
-
const relativePath = path2.relative(parentPath, childPath);
|
|
317
|
-
return relativePath === "" || !relativePath.startsWith(`..${path2.sep}`) && relativePath !== ".." && !path2.isAbsolute(relativePath);
|
|
318
|
-
}
|
|
319
|
-
__name(isWithinRoot, "isWithinRoot");
|
|
320
|
-
function getPathComparisonVariants(rawPath) {
|
|
321
|
-
const variants = /* @__PURE__ */ new Set([path2.normalize(path2.resolve(rawPath))]);
|
|
322
|
-
try {
|
|
323
|
-
variants.add(path2.normalize(fs.realpathSync(rawPath)));
|
|
324
|
-
} catch {
|
|
325
|
-
}
|
|
326
|
-
return variants;
|
|
327
|
-
}
|
|
328
|
-
__name(getPathComparisonVariants, "getPathComparisonVariants");
|
|
329
|
-
function arePathsEquivalent(left, right) {
|
|
330
|
-
const rightVariants = getPathComparisonVariants(right);
|
|
331
|
-
for (const leftVariant of getPathComparisonVariants(left)) {
|
|
332
|
-
if (rightVariants.has(leftVariant)) {
|
|
333
|
-
return true;
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
return false;
|
|
337
|
-
}
|
|
338
|
-
__name(arePathsEquivalent, "arePathsEquivalent");
|
|
339
|
-
|
|
340
246
|
// packages/cli/src/utils/envVarResolver.ts
|
|
341
247
|
init_esbuild_shims();
|
|
342
248
|
function resolveEnvVarsInString(value, customEnv) {
|
|
@@ -398,7 +304,6 @@ function resolveEnvVarsInObjectInternal(obj, visited, customEnv) {
|
|
|
398
304
|
__name(resolveEnvVarsInObjectInternal, "resolveEnvVarsInObjectInternal");
|
|
399
305
|
|
|
400
306
|
export {
|
|
401
|
-
require_strip_json_comments,
|
|
402
307
|
V1_TO_V2_MIGRATION_MAP,
|
|
403
308
|
V2_CONTAINER_KEYS,
|
|
404
309
|
V1_TO_V2_PRESERVE_DISABLE_MAP,
|
|
@@ -414,9 +319,6 @@ export {
|
|
|
414
319
|
getGlobalQwenDirLite,
|
|
415
320
|
getSystemSettingsPath,
|
|
416
321
|
getSystemDefaultsPath,
|
|
417
|
-
isWithinRoot,
|
|
418
|
-
getPathComparisonVariants,
|
|
419
|
-
arePathsEquivalent,
|
|
420
322
|
resolveEnvVarsInObject
|
|
421
323
|
};
|
|
422
324
|
/**
|