@qwen-code/qwen-code 0.17.0 → 0.17.1-nightly.20260605.715266537

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.
Files changed (96) hide show
  1. package/README.md +4 -6
  2. package/bundled/qc-helper/docs/configuration/_meta.ts +0 -3
  3. package/bundled/qc-helper/docs/configuration/settings.md +13 -12
  4. package/bundled/qc-helper/docs/configuration/themes.md +39 -0
  5. package/bundled/qc-helper/docs/features/approval-mode.md +26 -22
  6. package/bundled/qc-helper/docs/features/commands.md +68 -12
  7. package/bundled/qc-helper/docs/features/status-line.md +168 -32
  8. package/bundled/qc-helper/docs/overview.md +4 -4
  9. package/bundled/qc-helper/docs/quickstart.md +4 -4
  10. package/bundled/qc-helper/docs/reference/keyboard-shortcuts.md +16 -0
  11. package/bundled/qc-helper/docs/support/Uninstall.md +19 -1
  12. package/bundled/qc-helper/docs/support/troubleshooting.md +2 -1
  13. package/bundled/simplify/SKILL.md +123 -0
  14. package/chunks/{agent-KVXFGIOU.js → agent-4FVU4KTV.js} +14 -13
  15. package/chunks/{anthropicContentGenerator-L4HWAOIV.js → anthropicContentGenerator-M45RXZVS.js} +48 -5
  16. package/chunks/{askUserQuestion-DC6OWQIL.js → askUserQuestion-TGRD7FNQ.js} +1 -1
  17. package/chunks/{ca-NMZFEGAU.js → ca-KQG7FQ66.js} +3 -2
  18. package/chunks/{chunk-QEXSIXLX.js → chunk-2TYI54WV.js} +10 -10
  19. package/chunks/{chunk-J5VCSWPA.js → chunk-3PJXIDKI.js} +1153 -103
  20. package/chunks/{chunk-EMVEDSVZ.js → chunk-6O244QKR.js} +43 -3
  21. package/chunks/chunk-7TQVELRB.js +10412 -0
  22. package/chunks/{chunk-HCSJIOLR.js → chunk-BNESGOSJ.js} +7450 -3516
  23. package/chunks/{chunk-MEN6IEKX.js → chunk-FE63ZVOJ.js} +467 -1225
  24. package/chunks/{chunk-7YJIR2FX.js → chunk-G4K6P5KN.js} +8 -15
  25. package/chunks/{chunk-7NNBQRV7.js → chunk-G5O36LE7.js} +4 -4
  26. package/chunks/chunk-HX3JRTWL.js +393 -0
  27. package/chunks/{chunk-7EHPK6TK.js → chunk-HX6FMLTN.js} +4016 -2390
  28. package/chunks/{chunk-V7LMZR76.js → chunk-JBSYXHJF.js} +1 -1
  29. package/chunks/{chunk-R2B65CAN.js → chunk-JKUAX6UT.js} +0 -1
  30. package/chunks/chunk-MRO43B25.js +30 -0
  31. package/chunks/{chunk-ODPVJ6JJ.js → chunk-OJFMTECH.js} +6 -1
  32. package/chunks/{chunk-U2K6HDUJ.js → chunk-QVJ33ZBG.js} +23 -13
  33. package/chunks/{chunk-JI7FDD65.js → chunk-RMV5WBPJ.js} +9 -6
  34. package/chunks/{chunk-HAQCNXSG.js → chunk-RQW7WUJR.js} +15 -0
  35. package/chunks/{chunk-UQRYJQBE.js → chunk-SOGUPKP6.js} +1 -1
  36. package/chunks/{chunk-6NUSWV4M.js → chunk-TDZCEIK6.js} +2 -0
  37. package/chunks/{chunk-4O2TWJK4.js → chunk-VXRAB7OD.js} +183 -40
  38. package/chunks/{computer-use-2J5ZXEER.js → computer-use-NAHQPV2L.js} +24 -6
  39. package/chunks/{contextCommand-52NTEMCT.js → contextCommand-S2IYA435.js} +16 -15
  40. package/chunks/{cron-create-FXRORK2U.js → cron-create-V3UK2SJN.js} +1 -1
  41. package/chunks/{cron-delete-D24IN6CA.js → cron-delete-MANALPCP.js} +1 -1
  42. package/chunks/{cron-list-SMOX26SL.js → cron-list-UDIYK3B3.js} +1 -1
  43. package/chunks/{de-OIMT3OMI.js → de-M7DMOGRF.js} +3 -2
  44. package/chunks/{dist-GRQVFL3G.js → dist-ATAKC63R.js} +1 -1
  45. package/chunks/{edit-RLFUTT5F.js → edit-M2D5U2DH.js} +14 -13
  46. package/chunks/{en-2IFZ5THF.js → en-HQCTYKH3.js} +10 -2
  47. package/chunks/{enter-worktree-CYRAPQKJ.js → enter-worktree-BKGLU2VM.js} +14 -13
  48. package/chunks/{exit-worktree-WQZM72QD.js → exit-worktree-52DBQY3G.js} +14 -13
  49. package/chunks/{exitPlanMode-STFEBQZE.js → exitPlanMode-ABAAU2MJ.js} +14 -13
  50. package/chunks/{fr-PVELSHTV.js → fr-P6RNV2DM.js} +3 -2
  51. package/chunks/{geminiContentGenerator-DIV32SKO.js → geminiContentGenerator-DMFNFNR6.js} +4 -3
  52. package/chunks/{glob-N3XO4RVI.js → glob-WGPO6CFA.js} +14 -13
  53. package/chunks/{grep-AK5MP7P3.js → grep-ZFMRWZHA.js} +14 -13
  54. package/chunks/{ja-P5TK5GNN.js → ja-3LKTVQYI.js} +3 -2
  55. package/chunks/{ls-7FYQHPWF.js → ls-T4SVZWR6.js} +1 -1
  56. package/chunks/{lsp-DKG34USR.js → lsp-U4ZQLNIS.js} +1 -1
  57. package/chunks/{monitor-IVBWJZEZ.js → monitor-O7SAHYZP.js} +17 -14
  58. package/chunks/{multipart-parser-IXGBIOIN.js → multipart-parser-AJ4WASWR.js} +2 -2
  59. package/chunks/{notebook-edit-PM46AXFS.js → notebook-edit-RUK64SB7.js} +14 -13
  60. package/chunks/{openaiContentGenerator-4QXCH7L2.js → openaiContentGenerator-FVMI3JGH.js} +11 -10
  61. package/chunks/{pt-A5GHG66T.js → pt-NYLMFXLZ.js} +3 -2
  62. package/chunks/{qwenContentGenerator-BLXQIIMX.js → qwenContentGenerator-MSPTETYX.js} +16 -15
  63. package/chunks/{qwenOAuth2-BAN2EGSH.js → qwenOAuth2-LKXG7XVO.js} +2 -1
  64. package/chunks/{read-file-IEQAS3EZ.js → read-file-BGTNQULN.js} +8 -7
  65. package/chunks/{ripGrep-HQO7IE4C.js → ripGrep-KHJ3XVCN.js} +14 -13
  66. package/chunks/{ru-66XKB4QX.js → ru-DAPNZMKR.js} +3 -2
  67. package/chunks/scheduler-M4L7NUXP.js +306 -0
  68. package/chunks/{send-message-ZL7CDM7K.js → send-message-GFYV7WLL.js} +1 -1
  69. package/chunks/{serve-CYRAK4UM.js → serve-XEELTD3H.js} +43 -30
  70. package/chunks/{shell-UZBGNO2Q.js → shell-GOAFKYUF.js} +14 -13
  71. package/chunks/{skill-JVC34QYN.js → skill-NXAKYLN2.js} +9 -8
  72. package/chunks/{src-TMOD5X6F.js → src-7XL4G4DC.js} +88 -46
  73. package/chunks/{src-FOODLH7B.js → src-NNMCNSLM.js} +41 -15
  74. package/chunks/{syntheticOutput-U3YJ3GOO.js → syntheticOutput-DM43O6TY.js} +2 -2
  75. package/chunks/{task-stop-NPUI3YBA.js → task-stop-WKP5OB3V.js} +1 -1
  76. package/chunks/{todoWrite-Y6F7YEIM.js → todoWrite-GHL6DCLP.js} +14 -3
  77. package/chunks/{tool-search-P7PRPOW3.js → tool-search-SYJWV73G.js} +8 -7
  78. package/chunks/{web-fetch-XWEK4TFX.js → web-fetch-SZIV74ZX.js} +2 -2
  79. package/chunks/{write-file-SIIEUON5.js → write-file-P57D3GPL.js} +16 -15
  80. package/chunks/{zh-OB5P2ZDO.js → zh-POCNK2L6.js} +10 -2
  81. package/chunks/{zh-TW-3ND6DQRX.js → zh-TW-APM56ATJ.js} +10 -2
  82. package/cli.js +42686 -56906
  83. package/locales/ca.js +4 -2
  84. package/locales/de.js +4 -2
  85. package/locales/en.js +17 -2
  86. package/locales/fr.js +4 -2
  87. package/locales/ja.js +4 -2
  88. package/locales/pt.js +4 -2
  89. package/locales/ru.js +4 -2
  90. package/locales/zh-TW.js +16 -2
  91. package/locales/zh.js +16 -2
  92. package/package.json +2 -2
  93. package/chunks/chunk-EM6ETG2K.js +0 -60
  94. package/chunks/chunk-TI4GXJKO.js +0 -4277
  95. package/chunks/multipart-parser-3QWGTLK3.js +0 -384
  96. package/chunks/src-IPWIHNMI.js +0 -1406
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-OFEVLU4C.js";
6
6
  import {
7
7
  SchemaValidator
8
- } from "./chunk-R2B65CAN.js";
8
+ } from "./chunk-JKUAX6UT.js";
9
9
  import {
10
10
  init_esbuild_shims
11
11
  } from "./chunk-A4BMJM77.js";
@@ -15,6 +15,7 @@ import {
15
15
 
16
16
  // packages/core/src/utils/sideQuery.ts
17
17
  init_esbuild_shims();
18
+ import { readFile } from "node:fs/promises";
18
19
  function buildDefaultPromptId(purpose) {
19
20
  return purpose ? `side-query:${purpose}` : "side-query";
20
21
  }
@@ -31,6 +32,41 @@ function applyThinkingDefault(callerConfig) {
31
32
  };
32
33
  }
33
34
  __name(applyThinkingDefault, "applyThinkingDefault");
35
+ async function getOutputLanguageInstruction(config) {
36
+ const outputLanguageFilePath = config.getOutputLanguageFilePath?.();
37
+ if (!outputLanguageFilePath) return void 0;
38
+ try {
39
+ const preference = (await readFile(outputLanguageFilePath, "utf8")).trim();
40
+ if (!preference) return void 0;
41
+ return [
42
+ "Follow the user-visible output language preference below for this side query.",
43
+ preference
44
+ ].join("\n\n");
45
+ } catch {
46
+ return void 0;
47
+ }
48
+ }
49
+ __name(getOutputLanguageInstruction, "getOutputLanguageInstruction");
50
+ function appendSystemInstruction(systemInstruction, outputLanguageInstruction) {
51
+ if (!outputLanguageInstruction) return systemInstruction;
52
+ if (systemInstruction === void 0) return outputLanguageInstruction;
53
+ if (typeof systemInstruction === "string") {
54
+ return `${systemInstruction}
55
+
56
+ ${outputLanguageInstruction}`;
57
+ }
58
+ if (Array.isArray(systemInstruction)) {
59
+ return [...systemInstruction, { text: outputLanguageInstruction }];
60
+ }
61
+ if (typeof systemInstruction === "object" && "parts" in systemInstruction && Array.isArray(systemInstruction.parts)) {
62
+ return {
63
+ ...systemInstruction,
64
+ parts: [...systemInstruction.parts, { text: outputLanguageInstruction }]
65
+ };
66
+ }
67
+ return [systemInstruction, { text: outputLanguageInstruction }];
68
+ }
69
+ __name(appendSystemInstruction, "appendSystemInstruction");
34
70
  function isJsonOptions(options) {
35
71
  return options.schema !== void 0 && options.schema !== null;
36
72
  }
@@ -39,13 +75,17 @@ async function runSideQuery(config, options) {
39
75
  const model = resolveDefaultModel(config, options.model);
40
76
  const promptId = options.promptId ?? buildDefaultPromptId(options.purpose);
41
77
  const requestConfig = applyThinkingDefault(options.config);
78
+ const systemInstruction = appendSystemInstruction(
79
+ options.systemInstruction,
80
+ await getOutputLanguageInstruction(config)
81
+ );
42
82
  if (isJsonOptions(options)) {
43
83
  const response = await config.getBaseLlmClient().generateJson({
44
84
  contents: options.contents,
45
85
  schema: options.schema,
46
86
  abortSignal: options.abortSignal,
47
87
  model,
48
- systemInstruction: options.systemInstruction,
88
+ systemInstruction,
49
89
  promptId,
50
90
  config: requestConfig,
51
91
  ...options.maxAttempts !== void 0 && {
@@ -65,7 +105,7 @@ async function runSideQuery(config, options) {
65
105
  const result = await config.getBaseLlmClient().generateText({
66
106
  contents: options.contents,
67
107
  model,
68
- systemInstruction: options.systemInstruction,
108
+ systemInstruction,
69
109
  abortSignal: options.abortSignal,
70
110
  promptId,
71
111
  config: requestConfig,