@qwen-code/qwen-code 0.17.1 → 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 (120) hide show
  1. package/README.md +4 -6
  2. package/bundled/qc-helper/SKILL.md +30 -24
  3. package/bundled/qc-helper/docs/features/auto-mode.md +54 -9
  4. package/bundled/qc-helper/docs/features/commands.md +11 -11
  5. package/bundled/qc-helper/docs/features/markdown-rendering.md +21 -1
  6. package/bundled/qc-helper/docs/overview.md +4 -4
  7. package/bundled/qc-helper/docs/quickstart.md +4 -4
  8. package/bundled/qc-helper/docs/support/Uninstall.md +19 -1
  9. package/bundled/qc-helper/docs/support/troubleshooting.md +2 -1
  10. package/chunks/{agent-ZJHHICAC.js → agent-6J2FFD7S.js} +18 -22
  11. package/chunks/{anthropicContentGenerator-M45RXZVS.js → anthropicContentGenerator-4QBVSFSJ.js} +5 -5
  12. package/chunks/{askUserQuestion-TGRD7FNQ.js → askUserQuestion-NOOLRWCJ.js} +5 -7
  13. package/chunks/{ca-6RSCDYUS.js → ca-WRHFBIDH.js} +38 -3
  14. package/chunks/{chunk-C5CUHYSM.js → chunk-3H7ENG2Q.js} +821 -461
  15. package/chunks/{chunk-SOGUPKP6.js → chunk-5RNZ2QKF.js} +3 -5
  16. package/chunks/{chunk-GVWPJCXU.js → chunk-6VFG3EUJ.js} +1 -1
  17. package/chunks/{chunk-NQ3E7YLD.js → chunk-AVLOK27J.js} +42 -8
  18. package/chunks/{chunk-JBSYXHJF.js → chunk-BBTV54KB.js} +2 -2
  19. package/chunks/{chunk-X2474BTT.js → chunk-BPZQVC2P.js} +142 -9
  20. package/chunks/{chunk-2KEXT6RB.js → chunk-BUOJN3MM.js} +91245 -78527
  21. package/chunks/{chunk-3BJBCG2K.js → chunk-C6WMLUNB.js} +1 -1
  22. package/chunks/{chunk-TDZCEIK6.js → chunk-D46KOV3C.js} +1 -1
  23. package/chunks/{chunk-HX3JRTWL.js → chunk-F5ORN4YO.js} +1 -1
  24. package/chunks/{chunk-JKUAX6UT.js → chunk-G763GDO6.js} +125 -12
  25. package/chunks/{chunk-OIL7KDWV.js → chunk-GBEPNWYB.js} +1 -1
  26. package/chunks/{chunk-5JBZM7FZ.js → chunk-IKOMHTCC.js} +6 -6
  27. package/chunks/{chunk-G4K6P5KN.js → chunk-JMLIPZUU.js} +3 -3
  28. package/chunks/{chunk-OJFMTECH.js → chunk-JSYEZAYV.js} +2 -2
  29. package/chunks/{chunk-AKBFRR6J.js → chunk-K5PGHDBN.js} +132 -112
  30. package/chunks/{chunk-QVJ33ZBG.js → chunk-MVX64PNU.js} +1 -1
  31. package/chunks/{chunk-EY6BDW7Y.js → chunk-PLYZAP4W.js} +45 -9
  32. package/chunks/{chunk-ACBGEKB7.js → chunk-R5PDRHEF.js} +2 -1
  33. package/chunks/{chunk-6O244QKR.js → chunk-SCHRFI7O.js} +1 -1
  34. package/chunks/{chunk-GJHMAWS7.js → chunk-SHUT5MQY.js} +1 -1
  35. package/chunks/{chunk-RQW7WUJR.js → chunk-UABFCMPA.js} +34 -6
  36. package/chunks/{chunk-33RDTIU6.js → chunk-UFC57OYT.js} +3 -5
  37. package/chunks/{chunk-PLYRQYKC.js → chunk-UQZQP5PA.js} +11 -11
  38. package/chunks/{chunk-NP3ICQCN.js → chunk-USE2VQ5P.js} +1 -1
  39. package/chunks/{chunk-NJJER6E2.js → chunk-UXBKX55L.js} +10 -6
  40. package/chunks/{chunk-QWSRH265.js → chunk-WFVXF3OM.js} +776 -776
  41. package/chunks/{computer-use-NAHQPV2L.js → computer-use-6LZXL3UW.js} +51 -18
  42. package/chunks/contextCommand-ZV5QQ2LA.js +46 -0
  43. package/chunks/{cron-create-V3UK2SJN.js → cron-create-PIPMXQN4.js} +5 -7
  44. package/chunks/{cron-delete-MANALPCP.js → cron-delete-6Y5XIDMS.js} +5 -7
  45. package/chunks/{cron-list-UDIYK3B3.js → cron-list-A4WNRUWZ.js} +5 -7
  46. package/chunks/{de-APURNJ3I.js → de-M5RPB2NB.js} +38 -3
  47. package/chunks/{dist-XTTPOFAH.js → dist-BXDUQ2QY.js} +3 -4
  48. package/chunks/{dist-AHZNZWRI.js → dist-R2SXPG74.js} +4 -5
  49. package/chunks/{dist-ATAKC63R.js → dist-TE5QKMGR.js} +3 -4
  50. package/chunks/{dist-6RUZ2JD6.js → dist-ZMQ4TXD5.js} +3 -4
  51. package/chunks/{edit-JWXCQ4KK.js → edit-J7D6VMPQ.js} +22 -27
  52. package/chunks/{en-FYO57HJW.js → en-UMYKQAZE.js} +46 -3
  53. package/chunks/{enter-worktree-G4CJXPT4.js → enter-worktree-NDJTVGYJ.js} +20 -25
  54. package/chunks/{exit-worktree-MYZ2FGU2.js → exit-worktree-UB6XYYAX.js} +20 -25
  55. package/chunks/{exitPlanMode-ELJ6FSMU.js → exitPlanMode-V6X2KL4X.js} +20 -25
  56. package/chunks/{fr-32YHQZIS.js → fr-MPYXXXPW.js} +38 -3
  57. package/chunks/{geminiContentGenerator-3LR7MKCQ.js → geminiContentGenerator-3AKHMB3P.js} +5 -5
  58. package/chunks/{getMachineId-bsd-GS3V2GK7.js → getMachineId-bsd-F7GNPTER.js} +1 -1
  59. package/chunks/{getMachineId-darwin-ZQB4Q7EW.js → getMachineId-darwin-T73DJL27.js} +1 -1
  60. package/chunks/{getMachineId-linux-JQ4NN4DN.js → getMachineId-linux-MKQTFPQM.js} +1 -1
  61. package/chunks/{getMachineId-unsupported-U7H4V4HJ.js → getMachineId-unsupported-MUR5KOQE.js} +1 -1
  62. package/chunks/{getMachineId-win-VHUZGBQ3.js → getMachineId-win-CDYFC6ZM.js} +1 -1
  63. package/chunks/{glob-CANUAUTC.js → glob-PBG5DRG4.js} +20 -25
  64. package/chunks/{grep-WZWNJRDX.js → grep-VQ56EWQ7.js} +20 -25
  65. package/chunks/{ja-PEUXN4XT.js → ja-NFZ32AB3.js} +38 -3
  66. package/chunks/{keychain-token-storage-3552ENXE.js → keychain-token-storage-UHGOCDD6.js} +3 -3
  67. package/chunks/{ls-T4SVZWR6.js → ls-34DLNYCD.js} +6 -8
  68. package/chunks/{lsp-U4ZQLNIS.js → lsp-NCDEHH3V.js} +5 -7
  69. package/chunks/{monitor-CCKNOUFG.js → monitor-J3YCSOEH.js} +20 -25
  70. package/chunks/{notebook-edit-XDUY5Q4I.js → notebook-edit-AL3CBYJ6.js} +21 -26
  71. package/chunks/{openaiContentGenerator-N3O3MYIT.js → openaiContentGenerator-3U6UARHS.js} +12 -14
  72. package/chunks/{pt-2INS7YVC.js → pt-BR43FRBA.js} +38 -3
  73. package/chunks/{qwenContentGenerator-DEOIWKVH.js → qwenContentGenerator-JRFHJRH6.js} +20 -24
  74. package/chunks/{qwenOAuth2-LKXG7XVO.js → qwenOAuth2-KRJT35QH.js} +5 -5
  75. package/chunks/{read-file-BRNXGILN.js → read-file-ZF6EIVE3.js} +9 -11
  76. package/chunks/ripGrep-N2ZT7M6Z.js +42 -0
  77. package/chunks/{ru-6CQ5HNHB.js → ru-DQCW2KHD.js} +38 -3
  78. package/chunks/{scheduler-SSFABMN5.js → scheduler-OS37FUFT.js} +18 -22
  79. package/chunks/{send-message-GFYV7WLL.js → send-message-YYF56TS7.js} +5 -7
  80. package/chunks/{serve-B5O72CRN.js → serve-ABOLLDNN.js} +21 -25
  81. package/chunks/{shell-SGYNBVMK.js → shell-XGN7IDUS.js} +18 -22
  82. package/chunks/{skill-V7Y6DOFB.js → skill-YQQ6CR4U.js} +88 -25
  83. package/chunks/{src-OKFFQGXB.js → src-LORPPHWB.js} +86 -33
  84. package/chunks/{syntheticOutput-DM43O6TY.js → syntheticOutput-T5SWX3YF.js} +4 -5
  85. package/chunks/{task-stop-WKP5OB3V.js → task-stop-3VHAQMYM.js} +5 -7
  86. package/chunks/{todoWrite-GHL6DCLP.js → todoWrite-EAGJGKO5.js} +7 -9
  87. package/chunks/{tool-search-7MHT3HGM.js → tool-search-PDOJPXJJ.js} +27 -15
  88. package/chunks/{web-fetch-SZIV74ZX.js → web-fetch-SS6IKK6N.js} +7 -9
  89. package/chunks/{write-file-ARS2Z6BJ.js → write-file-VWWCN7LI.js} +23 -28
  90. package/chunks/{zh-ZHZCMIRG.js → zh-6VFXOAR5.js} +49 -3
  91. package/chunks/{zh-TW-SSL3ATVZ.js → zh-TW-IQZ4AD5M.js} +45 -3
  92. package/cli.js +8143 -4150
  93. package/examples/agent/agents/diary.md +86 -0
  94. package/examples/agent/qwen-extension.json +4 -0
  95. package/examples/commands/commands/fs/grep-code.md +3 -0
  96. package/examples/commands/qwen-extension.json +4 -0
  97. package/examples/context/QWEN.md +8 -0
  98. package/examples/context/qwen-extension.json +4 -0
  99. package/examples/mcp-server/example.ts +60 -0
  100. package/examples/mcp-server/package.json +18 -0
  101. package/examples/mcp-server/qwen-extension.json +11 -0
  102. package/examples/mcp-server/tsconfig.json +13 -0
  103. package/examples/skills/qwen-extension.json +4 -0
  104. package/examples/skills/skills/synonyms/SKILL.md +48 -0
  105. package/locales/ca.js +64 -4
  106. package/locales/de.js +63 -4
  107. package/locales/en.js +75 -4
  108. package/locales/fr.js +65 -4
  109. package/locales/ja.js +61 -4
  110. package/locales/pt.js +64 -4
  111. package/locales/ru.js +62 -4
  112. package/locales/zh-TW.js +70 -4
  113. package/locales/zh.js +74 -4
  114. package/package.json +3 -2
  115. package/chunks/chunk-24YKA2DA.js +0 -233
  116. package/chunks/chunk-6RQTH7UQ.js +0 -115
  117. package/chunks/chunk-7TQVELRB.js +0 -10412
  118. package/chunks/chunk-W57YDFU5.js +0 -41
  119. package/chunks/contextCommand-7KJT3UJS.js +0 -50
  120. package/chunks/ripGrep-ZRY5PKUZ.js +0 -46
@@ -1,13 +1,11 @@
1
1
  // Force strict mode and setup for ESM
2
2
  "use strict";
3
3
  import {
4
+ BaseDeclarativeTool,
5
+ BaseToolInvocation,
4
6
  ToolDisplayNames,
5
7
  ToolNames
6
- } from "./chunk-6RQTH7UQ.js";
7
- import {
8
- BaseDeclarativeTool,
9
- BaseToolInvocation
10
- } from "./chunk-JKUAX6UT.js";
8
+ } from "./chunk-G763GDO6.js";
11
9
  import {
12
10
  init_esbuild_shims
13
11
  } from "./chunk-A4BMJM77.js";
@@ -2,7 +2,7 @@
2
2
  "use strict";
3
3
  import {
4
4
  createDebugLogger
5
- } from "./chunk-ACBGEKB7.js";
5
+ } from "./chunk-R5PDRHEF.js";
6
6
  import {
7
7
  init_esbuild_shims
8
8
  } from "./chunk-A4BMJM77.js";
@@ -3,8 +3,9 @@
3
3
  import {
4
4
  QWEN_DIR,
5
5
  Storage,
6
+ resolvePath,
6
7
  sanitizeCwd
7
- } from "./chunk-ACBGEKB7.js";
8
+ } from "./chunk-R5PDRHEF.js";
8
9
  import {
9
10
  init_esbuild_shims
10
11
  } from "./chunk-A4BMJM77.js";
@@ -21,6 +22,7 @@ var AUTO_MEMORY_INDEX_FILENAME = "MEMORY.md";
21
22
  var AUTO_MEMORY_METADATA_FILENAME = "meta.json";
22
23
  var AUTO_MEMORY_EXTRACT_CURSOR_FILENAME = "extract-cursor.json";
23
24
  var AUTO_MEMORY_CONSOLIDATION_LOCK_FILENAME = "consolidation.lock";
25
+ var USER_AUTO_MEMORY_DIRNAME = "memories";
24
26
  function findGitRoot(startPath) {
25
27
  let current = path.resolve(startPath);
26
28
  while (true) {
@@ -74,28 +76,31 @@ function findCanonicalGitRoot(startPath) {
74
76
  __name(findCanonicalGitRoot, "findCanonicalGitRoot");
75
77
  function getMemoryBaseDir() {
76
78
  if (process.env["QWEN_CODE_MEMORY_BASE_DIR"]) {
77
- return process.env["QWEN_CODE_MEMORY_BASE_DIR"];
79
+ return resolvePath(void 0, process.env["QWEN_CODE_MEMORY_BASE_DIR"]);
78
80
  }
79
- return Storage.getGlobalQwenDir();
81
+ return Storage.getRuntimeBaseDir();
80
82
  }
81
83
  __name(getMemoryBaseDir, "getMemoryBaseDir");
82
84
  var _autoMemoryRootCache = /* @__PURE__ */ new Map();
83
85
  function getAutoMemoryRoot(projectRoot) {
84
- const cached = _autoMemoryRootCache.get(projectRoot);
86
+ const useLocalMemory = process.env["QWEN_CODE_MEMORY_LOCAL"] === "1";
87
+ const memoryBaseDir = useLocalMemory ? "" : getMemoryBaseDir();
88
+ const cacheKey = `${useLocalMemory ? "local" : memoryBaseDir}\0${projectRoot}`;
89
+ const cached = _autoMemoryRootCache.get(cacheKey);
85
90
  if (cached !== void 0) return cached;
86
91
  let result;
87
- if (process.env["QWEN_CODE_MEMORY_LOCAL"] === "1") {
92
+ if (useLocalMemory) {
88
93
  result = path.join(projectRoot, QWEN_DIR, AUTO_MEMORY_DIRNAME);
89
94
  } else {
90
95
  const canonicalRoot = findCanonicalGitRoot(projectRoot) ?? path.resolve(projectRoot);
91
96
  result = path.join(
92
- getMemoryBaseDir(),
97
+ memoryBaseDir,
93
98
  "projects",
94
99
  sanitizeCwd(canonicalRoot),
95
100
  AUTO_MEMORY_DIRNAME
96
101
  );
97
102
  }
98
- _autoMemoryRootCache.set(projectRoot, result);
103
+ _autoMemoryRootCache.set(cacheKey, result);
99
104
  return result;
100
105
  }
101
106
  __name(getAutoMemoryRoot, "getAutoMemoryRoot");
@@ -154,6 +159,29 @@ function getAutoMemoryFilePath(projectRoot, relativePath) {
154
159
  return path.join(getAutoMemoryRoot(projectRoot), relativePath);
155
160
  }
156
161
  __name(getAutoMemoryFilePath, "getAutoMemoryFilePath");
162
+ function getUserAutoMemoryRoot() {
163
+ return path.join(getMemoryBaseDir(), USER_AUTO_MEMORY_DIRNAME);
164
+ }
165
+ __name(getUserAutoMemoryRoot, "getUserAutoMemoryRoot");
166
+ function getUserAutoMemoryIndexPath() {
167
+ return path.join(getUserAutoMemoryRoot(), AUTO_MEMORY_INDEX_FILENAME);
168
+ }
169
+ __name(getUserAutoMemoryIndexPath, "getUserAutoMemoryIndexPath");
170
+ function getUserAutoMemoryTopicPath(type) {
171
+ return path.join(getUserAutoMemoryRoot(), getAutoMemoryTopicFilename(type));
172
+ }
173
+ __name(getUserAutoMemoryTopicPath, "getUserAutoMemoryTopicPath");
174
+ function isUserAutoMemPath(absolutePath) {
175
+ const normalizedPath = path.normalize(absolutePath);
176
+ const memRoot = path.normalize(getUserAutoMemoryRoot());
177
+ const rel = path.relative(memRoot, normalizedPath);
178
+ return rel === "" || !rel.startsWith("..") && !path.isAbsolute(rel);
179
+ }
180
+ __name(isUserAutoMemPath, "isUserAutoMemPath");
181
+ function isAnyAutoMemPath(absolutePath, projectRoot) {
182
+ return isAutoMemPath(absolutePath, projectRoot) || isUserAutoMemPath(absolutePath);
183
+ }
184
+ __name(isAnyAutoMemPath, "isAnyAutoMemPath");
157
185
 
158
186
  export {
159
187
  AUTO_MEMORY_DIRNAME,
@@ -161,6 +189,7 @@ export {
161
189
  AUTO_MEMORY_METADATA_FILENAME,
162
190
  AUTO_MEMORY_EXTRACT_CURSOR_FILENAME,
163
191
  AUTO_MEMORY_CONSOLIDATION_LOCK_FILENAME,
192
+ USER_AUTO_MEMORY_DIRNAME,
164
193
  getMemoryBaseDir,
165
194
  getAutoMemoryRoot,
166
195
  clearAutoMemoryRootCache,
@@ -172,7 +201,12 @@ export {
172
201
  getAutoMemoryConsolidationLockPath,
173
202
  getAutoMemoryTopicFilename,
174
203
  getAutoMemoryTopicPath,
175
- getAutoMemoryFilePath
204
+ getAutoMemoryFilePath,
205
+ getUserAutoMemoryRoot,
206
+ getUserAutoMemoryIndexPath,
207
+ getUserAutoMemoryTopicPath,
208
+ isUserAutoMemPath,
209
+ isAnyAutoMemPath
176
210
  };
177
211
  /**
178
212
  * @license
@@ -3,10 +3,10 @@
3
3
  import {
4
4
  TextTokenizer,
5
5
  isSupportedImageMimeType
6
- } from "./chunk-QVJ33ZBG.js";
6
+ } from "./chunk-MVX64PNU.js";
7
7
  import {
8
8
  createDebugLogger
9
- } from "./chunk-ACBGEKB7.js";
9
+ } from "./chunk-R5PDRHEF.js";
10
10
  import {
11
11
  init_esbuild_shims
12
12
  } from "./chunk-A4BMJM77.js";
@@ -6,7 +6,7 @@ import {
6
6
  getLanguageSettingsOptions,
7
7
  t,
8
8
  writeStderrLine
9
- } from "./chunk-PLYRQYKC.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-2KEXT6RB.js";
18
+ } from "./chunk-BUOJN3MM.js";
19
19
  import {
20
20
  isWithinRoot
21
- } from "./chunk-C5CUHYSM.js";
21
+ } from "./chunk-3H7ENG2Q.js";
22
22
  import {
23
23
  atomicWriteFileSync
24
- } from "./chunk-HX3JRTWL.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-ACBGEKB7.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)",
@@ -15920,6 +15941,27 @@ var SETTINGS_SCHEMA = {
15920
15941
  }
15921
15942
  }
15922
15943
  },
15944
+ skills: {
15945
+ type: "object",
15946
+ label: "Skills",
15947
+ category: "Advanced",
15948
+ requiresRestart: false,
15949
+ default: {},
15950
+ description: "Configuration for skills (SKILL.md-based capabilities) exposed to the model.",
15951
+ showInDialog: false,
15952
+ properties: {
15953
+ disabled: {
15954
+ type: "array",
15955
+ label: "Disabled Skills",
15956
+ category: "Advanced",
15957
+ requiresRestart: false,
15958
+ default: void 0,
15959
+ description: "Skill names to hide. Matched case-insensitively against the skill name. Hidden skills do not appear in <available_skills> or as /<name> slash commands. UNION-merged across systemDefaults/user/workspace/system scopes \u2014 workspace cannot remove entries defined in higher scopes.",
15960
+ showInDialog: false,
15961
+ mergeStrategy: "union" /* UNION */
15962
+ }
15963
+ }
15964
+ },
15923
15965
  permissions: {
15924
15966
  type: "object",
15925
15967
  label: "Permissions",
@@ -15968,6 +16010,66 @@ var SETTINGS_SCHEMA = {
15968
16010
  description: "Settings consumed by the AUTO approval mode classifier.",
15969
16011
  showInDialog: false,
15970
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
+ },
15971
16073
  hints: {
15972
16074
  type: "object",
15973
16075
  label: "Classifier Hints",
@@ -15987,13 +16089,33 @@ var SETTINGS_SCHEMA = {
15987
16089
  showInDialog: false,
15988
16090
  mergeStrategy: "union" /* UNION */
15989
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
+ },
15990
16112
  deny: {
15991
16113
  type: "array",
15992
- label: "Auto Mode Deny Hints",
16114
+ label: "Auto Mode Deny Hints (legacy)",
15993
16115
  category: "Tools",
15994
16116
  requiresRestart: true,
15995
16117
  default: void 0,
15996
- 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.",
15997
16119
  showInDialog: false,
15998
16120
  mergeStrategy: "union" /* UNION */
15999
16121
  }
@@ -16567,6 +16689,17 @@ var SETTINGS_SCHEMA = {
16567
16689
  mergeStrategy: "concat" /* CONCAT */,
16568
16690
  items: HOOK_DEFINITION_ITEMS
16569
16691
  },
16692
+ UserPromptExpansion: {
16693
+ type: "array",
16694
+ label: "Prompt Expansion Hooks",
16695
+ category: "Advanced",
16696
+ requiresRestart: false,
16697
+ default: [],
16698
+ description: "Hooks that execute when a slash command expands into a prompt.",
16699
+ showInDialog: false,
16700
+ mergeStrategy: "concat" /* CONCAT */,
16701
+ items: HOOK_DEFINITION_ITEMS
16702
+ },
16570
16703
  Stop: {
16571
16704
  type: "array",
16572
16705
  label: "After Agent Hooks",
@@ -19012,7 +19145,7 @@ __name(getPackageJson, "getPackageJson");
19012
19145
  // packages/cli/src/utils/version.ts
19013
19146
  async function getCliVersion() {
19014
19147
  const pkgJson = await getPackageJson();
19015
- return "0.17.1";
19148
+ return "0.18.0-preview.0";
19016
19149
  }
19017
19150
  __name(getCliVersion, "getCliVersion");
19018
19151
 
@@ -19107,7 +19240,7 @@ var formatDuration = /* @__PURE__ */ __name((milliseconds, options) => {
19107
19240
 
19108
19241
  // packages/cli/src/generated/git-commit.ts
19109
19242
  init_esbuild_shims();
19110
- var GIT_COMMIT_INFO = "09d0faf6b";
19243
+ var GIT_COMMIT_INFO = "5f292dccd";
19111
19244
 
19112
19245
  // packages/cli/src/utils/systemInfo.ts
19113
19246
  var debugLogger4 = createDebugLogger("STATUS");