@qwen-code/qwen-code 0.17.1-nightly.20260608.aea34fa2c → 0.18.0-preview.0

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 (95) hide show
  1. package/bundled/qc-helper/SKILL.md +30 -24
  2. package/bundled/qc-helper/docs/features/auto-mode.md +54 -9
  3. package/bundled/qc-helper/docs/features/commands.md +11 -11
  4. package/bundled/qc-helper/docs/features/markdown-rendering.md +21 -1
  5. package/chunks/{agent-CRCEWDXY.js → agent-6J2FFD7S.js} +16 -16
  6. package/chunks/{anthropicContentGenerator-CORCIHMT.js → anthropicContentGenerator-4QBVSFSJ.js} +4 -4
  7. package/chunks/{askUserQuestion-LXMRMFII.js → askUserQuestion-NOOLRWCJ.js} +2 -2
  8. package/chunks/{ca-AD47AV3M.js → ca-WRHFBIDH.js} +10 -1
  9. package/chunks/{chunk-MW6Z7JDT.js → chunk-3H7ENG2Q.js} +20 -18
  10. package/chunks/{chunk-UKQJ7G3U.js → chunk-5RNZ2QKF.js} +1 -1
  11. package/chunks/{chunk-LESSBSSE.js → chunk-6VFG3EUJ.js} +1 -1
  12. package/chunks/{chunk-2T34DNYQ.js → chunk-AVLOK27J.js} +42 -8
  13. package/chunks/{chunk-ZAHZV7IR.js → chunk-BBTV54KB.js} +2 -2
  14. package/chunks/{chunk-4XIYRIZ6.js → chunk-BPZQVC2P.js} +110 -9
  15. package/chunks/{chunk-MUMLIB4J.js → chunk-BUOJN3MM.js} +10481 -8589
  16. package/chunks/{chunk-OV5SE5JD.js → chunk-D46KOV3C.js} +1 -1
  17. package/chunks/{chunk-DU2ZAFA7.js → chunk-F5ORN4YO.js} +1 -1
  18. package/chunks/{chunk-UB3HGW3I.js → chunk-G763GDO6.js} +22 -11
  19. package/chunks/{chunk-7R5J5HSJ.js → chunk-GBEPNWYB.js} +1 -1
  20. package/chunks/{chunk-EYEDXJ2Z.js → chunk-IKOMHTCC.js} +6 -6
  21. package/chunks/{chunk-JAF4PLE7.js → chunk-JMLIPZUU.js} +3 -3
  22. package/chunks/{chunk-KSX2FIAZ.js → chunk-JSYEZAYV.js} +2 -2
  23. package/chunks/{chunk-R7WIF3BU.js → chunk-MVX64PNU.js} +1 -1
  24. package/chunks/{chunk-UEW42CYE.js → chunk-PLYZAP4W.js} +45 -9
  25. package/chunks/{chunk-S2HZQ4RC.js → chunk-R5PDRHEF.js} +1 -0
  26. package/chunks/{chunk-77UV3M62.js → chunk-SCHRFI7O.js} +1 -1
  27. package/chunks/{chunk-OCR7PXOA.js → chunk-SHUT5MQY.js} +1 -1
  28. package/chunks/{chunk-OPFJCRUK.js → chunk-UABFCMPA.js} +2 -1
  29. package/chunks/{chunk-DIO32KR5.js → chunk-UQZQP5PA.js} +11 -11
  30. package/chunks/{chunk-FCY4DV3R.js → chunk-UXBKX55L.js} +10 -6
  31. package/chunks/{computer-use-C5ZJRSKF.js → computer-use-6LZXL3UW.js} +16 -16
  32. package/chunks/{contextCommand-G54AJMCX.js → contextCommand-ZV5QQ2LA.js} +18 -18
  33. package/chunks/{cron-create-PJOVYSIF.js → cron-create-PIPMXQN4.js} +2 -2
  34. package/chunks/{cron-delete-7EYEJ44X.js → cron-delete-6Y5XIDMS.js} +2 -2
  35. package/chunks/{cron-list-LMUJOUDI.js → cron-list-A4WNRUWZ.js} +2 -2
  36. package/chunks/{de-GYJ2LJ32.js → de-M5RPB2NB.js} +10 -1
  37. package/chunks/{edit-JVUXZ6WE.js → edit-J7D6VMPQ.js} +19 -19
  38. package/chunks/{en-QEV466ZF.js → en-UMYKQAZE.js} +11 -1
  39. package/chunks/{enter-worktree-GOVBTJZR.js → enter-worktree-NDJTVGYJ.js} +16 -16
  40. package/chunks/{exit-worktree-YZAGLIWA.js → exit-worktree-UB6XYYAX.js} +16 -16
  41. package/chunks/{exitPlanMode-RY6DM3LO.js → exitPlanMode-V6X2KL4X.js} +16 -16
  42. package/chunks/{fr-GH7C66F4.js → fr-MPYXXXPW.js} +10 -1
  43. package/chunks/{geminiContentGenerator-BB4RL4HR.js → geminiContentGenerator-3AKHMB3P.js} +4 -4
  44. package/chunks/{glob-UZHZN5GU.js → glob-PBG5DRG4.js} +16 -16
  45. package/chunks/{grep-7N5SXCM2.js → grep-VQ56EWQ7.js} +16 -16
  46. package/chunks/{ja-ZXM3KE24.js → ja-NFZ32AB3.js} +10 -1
  47. package/chunks/{keychain-token-storage-25D5QXMC.js → keychain-token-storage-UHGOCDD6.js} +2 -2
  48. package/chunks/{ls-PPWEULT2.js → ls-34DLNYCD.js} +3 -3
  49. package/chunks/{lsp-2BY4ZXDL.js → lsp-NCDEHH3V.js} +2 -2
  50. package/chunks/{monitor-RUX4WCW6.js → monitor-J3YCSOEH.js} +16 -16
  51. package/chunks/{notebook-edit-QSHYIM2C.js → notebook-edit-AL3CBYJ6.js} +17 -17
  52. package/chunks/{openaiContentGenerator-557UCKMQ.js → openaiContentGenerator-3U6UARHS.js} +11 -11
  53. package/chunks/{pt-NHIAQIDQ.js → pt-BR43FRBA.js} +10 -1
  54. package/chunks/{qwenContentGenerator-QG4JMJH5.js → qwenContentGenerator-JRFHJRH6.js} +18 -18
  55. package/chunks/{qwenOAuth2-FUBP4U5T.js → qwenOAuth2-KRJT35QH.js} +4 -4
  56. package/chunks/{read-file-ROG4RM65.js → read-file-ZF6EIVE3.js} +8 -8
  57. package/chunks/{ripGrep-ADC4YGZN.js → ripGrep-N2ZT7M6Z.js} +16 -16
  58. package/chunks/{ru-PWPUZWMR.js → ru-DQCW2KHD.js} +10 -1
  59. package/chunks/{scheduler-SJAUHFQT.js → scheduler-OS37FUFT.js} +16 -16
  60. package/chunks/{send-message-OGMOM5PZ.js → send-message-YYF56TS7.js} +2 -2
  61. package/chunks/{serve-TDCSIUAA.js → serve-ABOLLDNN.js} +18 -18
  62. package/chunks/{shell-CHR54FUA.js → shell-XGN7IDUS.js} +16 -16
  63. package/chunks/{skill-XJVA5TG4.js → skill-YQQ6CR4U.js} +26 -18
  64. package/chunks/{src-7ACBXZIS.js → src-LORPPHWB.js} +65 -21
  65. package/chunks/{syntheticOutput-MS737GGZ.js → syntheticOutput-T5SWX3YF.js} +3 -3
  66. package/chunks/{task-stop-FBGBLI2N.js → task-stop-3VHAQMYM.js} +2 -2
  67. package/chunks/{todoWrite-4NAE33MV.js → todoWrite-EAGJGKO5.js} +4 -4
  68. package/chunks/{tool-search-TVX3HXW5.js → tool-search-PDOJPXJJ.js} +24 -9
  69. package/chunks/{web-fetch-YM7HKIWL.js → web-fetch-SS6IKK6N.js} +4 -4
  70. package/chunks/{write-file-FUPILDLW.js → write-file-VWWCN7LI.js} +19 -19
  71. package/chunks/{zh-CFLG2MJ5.js → zh-6VFXOAR5.js} +11 -1
  72. package/chunks/{zh-TW-7D4PSECL.js → zh-TW-IQZ4AD5M.js} +11 -1
  73. package/cli.js +3391 -959
  74. package/examples/agent/agents/diary.md +86 -0
  75. package/examples/agent/qwen-extension.json +4 -0
  76. package/examples/commands/commands/fs/grep-code.md +3 -0
  77. package/examples/commands/qwen-extension.json +4 -0
  78. package/examples/context/QWEN.md +8 -0
  79. package/examples/context/qwen-extension.json +4 -0
  80. package/examples/mcp-server/example.ts +60 -0
  81. package/examples/mcp-server/package.json +18 -0
  82. package/examples/mcp-server/qwen-extension.json +11 -0
  83. package/examples/mcp-server/tsconfig.json +13 -0
  84. package/examples/skills/qwen-extension.json +4 -0
  85. package/examples/skills/skills/synonyms/SKILL.md +48 -0
  86. package/locales/ca.js +20 -2
  87. package/locales/de.js +20 -2
  88. package/locales/en.js +21 -2
  89. package/locales/fr.js +20 -2
  90. package/locales/ja.js +20 -2
  91. package/locales/pt.js +20 -2
  92. package/locales/ru.js +20 -2
  93. package/locales/zh-TW.js +20 -2
  94. package/locales/zh.js +20 -2
  95. package/package.json +3 -2
@@ -6,7 +6,7 @@ import {
6
6
  getLanguageSettingsOptions,
7
7
  t,
8
8
  writeStderrLine
9
- } from "./chunk-DIO32KR5.js";
9
+ } from "./chunk-UQZQP5PA.js";
10
10
  import {
11
11
  DEFAULT_STOP_HOOK_BLOCK_CAP,
12
12
  DEFAULT_TRUNCATE_TOOL_OUTPUT_LINES,
@@ -15,20 +15,20 @@ import {
15
15
  SkillError,
16
16
  ideContextStore,
17
17
  require_main
18
- } from "./chunk-MUMLIB4J.js";
18
+ } from "./chunk-BUOJN3MM.js";
19
19
  import {
20
20
  isWithinRoot
21
- } from "./chunk-MW6Z7JDT.js";
21
+ } from "./chunk-3H7ENG2Q.js";
22
22
  import {
23
23
  atomicWriteFileSync
24
- } from "./chunk-DU2ZAFA7.js";
24
+ } from "./chunk-F5ORN4YO.js";
25
25
  import {
26
26
  FatalConfigError,
27
27
  QWEN_DIR,
28
28
  Storage,
29
29
  createDebugLogger,
30
30
  getErrorMessage
31
- } from "./chunk-S2HZQ4RC.js";
31
+ } from "./chunk-R5PDRHEF.js";
32
32
  import {
33
33
  init_esbuild_shims
34
34
  } from "./chunk-A4BMJM77.js";
@@ -15029,6 +15029,18 @@ var SETTINGS_SCHEMA = {
15029
15029
  description: "Play terminal bell sound when response completes or needs approval.",
15030
15030
  showInDialog: true
15031
15031
  },
15032
+ preventSystemSleep: {
15033
+ type: "boolean",
15034
+ label: "Prevent System Sleep While Running",
15035
+ category: "General",
15036
+ // Read once at startup via Config.preventSystemSleep (a readonly field
15037
+ // captured in loadCliConfig), so a runtime toggle only takes effect
15038
+ // after restart.
15039
+ requiresRestart: true,
15040
+ default: true,
15041
+ description: "Prevent the system from sleeping while Qwen Code is streaming a model response or executing tools. Idle prompt time and permission prompts do not inhibit sleep.",
15042
+ showInDialog: true
15043
+ },
15032
15044
  chatRecording: {
15033
15045
  type: "boolean",
15034
15046
  label: "Chat Recording",
@@ -15319,6 +15331,15 @@ var SETTINGS_SCHEMA = {
15319
15331
  description: "Hide tool output and thinking for a cleaner view (toggle with Ctrl+O).",
15320
15332
  showInDialog: true
15321
15333
  },
15334
+ compactInline: {
15335
+ type: "boolean",
15336
+ label: "Compact Inline",
15337
+ category: "UI",
15338
+ requiresRestart: true,
15339
+ default: false,
15340
+ description: "Compact tool display within each group instead of merging across groups. Requires compactMode to be enabled.",
15341
+ showInDialog: true
15342
+ },
15322
15343
  useTerminalBuffer: {
15323
15344
  type: "boolean",
15324
15345
  label: "Virtualized History (reduces flicker on long sessions)",
@@ -15989,6 +16010,66 @@ var SETTINGS_SCHEMA = {
15989
16010
  description: "Settings consumed by the AUTO approval mode classifier.",
15990
16011
  showInDialog: false,
15991
16012
  properties: {
16013
+ classifier: {
16014
+ type: "object",
16015
+ label: "Auto Mode Classifier",
16016
+ category: "Tools",
16017
+ requiresRestart: true,
16018
+ default: {},
16019
+ description: "Runtime controls for the AUTO approval mode classifier.",
16020
+ showInDialog: false,
16021
+ properties: {
16022
+ timeouts: {
16023
+ type: "object",
16024
+ label: "Auto Mode Classifier Timeouts",
16025
+ category: "Tools",
16026
+ requiresRestart: true,
16027
+ default: {},
16028
+ description: "Timeouts for the two AUTO classifier stages, in milliseconds.",
16029
+ showInDialog: false,
16030
+ properties: {
16031
+ stage1Ms: {
16032
+ type: "number",
16033
+ label: "Auto Mode Stage 1 Timeout",
16034
+ category: "Tools",
16035
+ requiresRestart: true,
16036
+ default: void 0,
16037
+ description: "Timeout in milliseconds for the fast stage-1 AUTO classifier.",
16038
+ showInDialog: false
16039
+ },
16040
+ stage2Ms: {
16041
+ type: "number",
16042
+ label: "Auto Mode Stage 2 Timeout",
16043
+ category: "Tools",
16044
+ requiresRestart: true,
16045
+ default: void 0,
16046
+ description: "Timeout in milliseconds for the stage-2 AUTO classifier review.",
16047
+ showInDialog: false
16048
+ }
16049
+ }
16050
+ },
16051
+ thinking: {
16052
+ type: "object",
16053
+ label: "Auto Mode Classifier Thinking",
16054
+ category: "Tools",
16055
+ requiresRestart: true,
16056
+ default: {},
16057
+ description: "Provider/API-level thinking controls for the AUTO classifier.",
16058
+ showInDialog: false,
16059
+ properties: {
16060
+ stage2Enabled: {
16061
+ type: "boolean",
16062
+ label: "Auto Mode Stage 2 Thinking",
16063
+ category: "Tools",
16064
+ requiresRestart: true,
16065
+ default: false,
16066
+ description: "Whether stage 2 may use provider/API-level thinking. Stage 1 always keeps thinking disabled.",
16067
+ showInDialog: false
16068
+ }
16069
+ }
16070
+ }
16071
+ }
16072
+ },
15992
16073
  hints: {
15993
16074
  type: "object",
15994
16075
  label: "Classifier Hints",
@@ -16008,13 +16089,33 @@ var SETTINGS_SCHEMA = {
16008
16089
  showInDialog: false,
16009
16090
  mergeStrategy: "union" /* UNION */
16010
16091
  },
16092
+ softDeny: {
16093
+ type: "array",
16094
+ label: "Auto Mode Soft-Deny Hints",
16095
+ category: "Tools",
16096
+ requiresRestart: true,
16097
+ default: void 0,
16098
+ description: "Natural-language descriptions of destructive / irreversible actions AUTO mode should block unless the user explicitly authorised that exact action and scope.",
16099
+ showInDialog: false,
16100
+ mergeStrategy: "union" /* UNION */
16101
+ },
16102
+ hardDeny: {
16103
+ type: "array",
16104
+ label: "Auto Mode Hard-Deny Hints",
16105
+ category: "Tools",
16106
+ requiresRestart: true,
16107
+ default: void 0,
16108
+ description: "Natural-language descriptions of security-boundary actions the AUTO classifier must block even when an autoMode allow hint or recent user request would normally authorise them. Does not override permissions.allow; use permissions.deny for deterministic hard permission rules.",
16109
+ showInDialog: false,
16110
+ mergeStrategy: "union" /* UNION */
16111
+ },
16011
16112
  deny: {
16012
16113
  type: "array",
16013
- label: "Auto Mode Deny Hints",
16114
+ label: "Auto Mode Deny Hints (legacy)",
16014
16115
  category: "Tools",
16015
16116
  requiresRestart: true,
16016
16117
  default: void 0,
16017
- description: "Natural-language descriptions of actions AUTO mode should block.",
16118
+ description: "Deprecated alias for `softDeny`. Entries here are merged into the SOFT BLOCK user section so existing settings keep working; new configurations should use `softDeny` or `hardDeny` instead.",
16018
16119
  showInDialog: false,
16019
16120
  mergeStrategy: "union" /* UNION */
16020
16121
  }
@@ -19044,7 +19145,7 @@ __name(getPackageJson, "getPackageJson");
19044
19145
  // packages/cli/src/utils/version.ts
19045
19146
  async function getCliVersion() {
19046
19147
  const pkgJson = await getPackageJson();
19047
- return "0.17.1-nightly.20260608.aea34fa2c";
19148
+ return "0.18.0-preview.0";
19048
19149
  }
19049
19150
  __name(getCliVersion, "getCliVersion");
19050
19151
 
@@ -19139,7 +19240,7 @@ var formatDuration = /* @__PURE__ */ __name((milliseconds, options) => {
19139
19240
 
19140
19241
  // packages/cli/src/generated/git-commit.ts
19141
19242
  init_esbuild_shims();
19142
- var GIT_COMMIT_INFO = "b3a6d40d1";
19243
+ var GIT_COMMIT_INFO = "5f292dccd";
19143
19244
 
19144
19245
  // packages/cli/src/utils/systemInfo.ts
19145
19246
  var debugLogger4 = createDebugLogger("STATUS");