@qwen-code/qwen-code 0.18.0-preview.1 → 0.18.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 (141) hide show
  1. package/bundled/qc-helper/SKILL.md +1 -2
  2. package/bundled/qc-helper/docs/_meta.ts +1 -0
  3. package/bundled/qc-helper/docs/configuration/settings.md +20 -24
  4. package/bundled/qc-helper/docs/features/_meta.ts +0 -3
  5. package/bundled/qc-helper/docs/features/approval-mode.md +10 -14
  6. package/bundled/qc-helper/docs/features/commands.md +47 -23
  7. package/bundled/qc-helper/docs/features/followup-suggestions.md +2 -2
  8. package/bundled/qc-helper/docs/features/scheduled-tasks.md +1 -1
  9. package/bundled/qc-helper/docs/features/sub-agents.md +60 -0
  10. package/bundled/qc-helper/docs/qwen-serve-deploy-local.md +221 -0
  11. package/bundled/qc-helper/docs/qwen-serve.md +234 -24
  12. package/chunks/{agent-SXS4NQWS.js → agent-LOTJK6AH.js} +25 -19
  13. package/chunks/agent-headless-TU3EPMYU.js +50 -0
  14. package/chunks/{anthropicContentGenerator-4QBVSFSJ.js → anthropicContentGenerator-2HBRNQ3B.js} +7 -7
  15. package/chunks/{askUserQuestion-NOOLRWCJ.js → askUserQuestion-OGCMIBQM.js} +45 -3
  16. package/chunks/{ca-WRHFBIDH.js → ca-BARBRL6N.js} +48 -1
  17. package/chunks/{chunk-JMLIPZUU.js → chunk-2Y5SYSD3.js} +361 -583
  18. package/chunks/chunk-3DHXZ6EV.js +241 -0
  19. package/chunks/{chunk-AVLOK27J.js → chunk-3HTIVKZE.js} +1 -1
  20. package/chunks/{chunk-BNESGOSJ.js → chunk-55ZMG67I.js} +1 -1
  21. package/chunks/chunk-64WXLC72.js +98 -0
  22. package/chunks/{chunk-F6FLCHCS.js → chunk-6YIUGZTC.js} +1069 -211
  23. package/chunks/{chunk-C6WMLUNB.js → chunk-72LDN5PP.js} +1 -1
  24. package/chunks/{chunk-ERREX2ES.js → chunk-7BCMOPIM.js} +64 -24
  25. package/chunks/{chunk-6VFG3EUJ.js → chunk-A7B4ISQP.js} +1 -1
  26. package/chunks/{chunk-F5ORN4YO.js → chunk-B7HXHOHU.js} +1 -1
  27. package/chunks/{chunk-5RNZ2QKF.js → chunk-BIVG75CP.js} +1 -1
  28. package/chunks/{chunk-MVX64PNU.js → chunk-EYENRK4D.js} +1 -1
  29. package/chunks/{chunk-SZOEIL6S.js → chunk-H6BD2ELD.js} +1 -0
  30. package/chunks/{chunk-SCHRFI7O.js → chunk-HLPLOD42.js} +1 -1
  31. package/chunks/{chunk-R5PDRHEF.js → chunk-HR7SV7AY.js} +68 -47
  32. package/chunks/{chunk-JSYEZAYV.js → chunk-IDX6COTE.js} +2 -2
  33. package/chunks/{chunk-6KH2Q7XN.js → chunk-IWAYOW5Q.js} +17482 -11669
  34. package/chunks/chunk-J5MDQKJL.js +2230 -0
  35. package/chunks/{chunk-USE2VQ5P.js → chunk-JTQAQBTV.js} +21 -0
  36. package/chunks/{chunk-ZW7GBCRE.js → chunk-LBP46COL.js} +1014 -163
  37. package/chunks/chunk-LD2XBG6Z.js +102 -0
  38. package/chunks/{chunk-KOA52UTF.js → chunk-LEJ42GNY.js} +14 -14
  39. package/chunks/{chunk-D46KOV3C.js → chunk-M6VTDSVR.js} +1 -1
  40. package/chunks/{chunk-SHUT5MQY.js → chunk-MFBBBTNY.js} +1 -1
  41. package/chunks/{chunk-PLYZAP4W.js → chunk-OHEGWO4L.js} +101 -23
  42. package/chunks/{chunk-NQZ33PWX.js → chunk-PL3MVCWD.js} +11 -11
  43. package/chunks/chunk-QQDPRDVW.js +25 -0
  44. package/chunks/chunk-R7ODSGTK.js +159 -0
  45. package/chunks/{chunk-GBEPNWYB.js → chunk-SEGYWKIH.js} +1 -1
  46. package/chunks/chunk-SKBPNJEW.js +45 -0
  47. package/chunks/{chunk-UABFCMPA.js → chunk-SNGELLWX.js} +3 -1
  48. package/chunks/chunk-XBY7E2FX.js +605 -0
  49. package/chunks/{chunk-G763GDO6.js → chunk-XV4HCEVI.js} +36 -3
  50. package/chunks/{chunk-WFVXF3OM.js → chunk-Z2Z3GUXZ.js} +1 -0
  51. package/chunks/{chunk-BBTV54KB.js → chunk-ZTZ4DDQE.js} +2 -2
  52. package/chunks/{computer-use-CT6MU6P3.js → computer-use-3RH2DOM6.js} +25 -19
  53. package/chunks/contextCommand-K347QT6O.js +52 -0
  54. package/chunks/{cron-create-PIPMXQN4.js → cron-create-YJL3KFWI.js} +3 -3
  55. package/chunks/{cron-delete-6Y5XIDMS.js → cron-delete-WKWSJZQA.js} +3 -3
  56. package/chunks/{cron-list-A4WNRUWZ.js → cron-list-B52XEXAZ.js} +3 -3
  57. package/chunks/{de-M5RPB2NB.js → de-YGKK2BC4.js} +48 -1
  58. package/chunks/{devtools-IXE4UP72.js → devtools-FM6GJPYG.js} +1 -1
  59. package/chunks/{dist-R2SXPG74.js → dist-4LXD6L6X.js} +2 -2
  60. package/chunks/{dist-TE5QKMGR.js → dist-H6ONXVLG.js} +1 -1
  61. package/chunks/{dist-ZMQ4TXD5.js → dist-KAZ3SEBX.js} +2 -2
  62. package/chunks/{dist-BXDUQ2QY.js → dist-PK7DFCAW.js} +1 -1
  63. package/chunks/{edit-A4YK7AIB.js → edit-KU4PJGEX.js} +26 -20
  64. package/chunks/{en-UMYKQAZE.js → en-DHGYHIHX.js} +77 -2
  65. package/chunks/{enter-worktree-VNEQINLC.js → enter-worktree-PPYIDCWI.js} +25 -19
  66. package/chunks/enterPlanMode-5CZDMCB4.js +158 -0
  67. package/chunks/{exit-worktree-AVSMXC33.js → exit-worktree-UY3CGHKC.js} +25 -19
  68. package/chunks/exitPlanMode-3DN4QNSG.js +703 -0
  69. package/chunks/{fr-MPYXXXPW.js → fr-JXBKPJKQ.js} +48 -1
  70. package/chunks/{geminiContentGenerator-CR2WGARL.js → geminiContentGenerator-7A6I2RWB.js} +7 -7
  71. package/chunks/{getMachineId-bsd-F7GNPTER.js → getMachineId-bsd-4CASPIU4.js} +1 -1
  72. package/chunks/{getMachineId-darwin-T73DJL27.js → getMachineId-darwin-HPQPEMZR.js} +1 -1
  73. package/chunks/{getMachineId-linux-MKQTFPQM.js → getMachineId-linux-AUARKYHL.js} +1 -1
  74. package/chunks/{getMachineId-unsupported-MUR5KOQE.js → getMachineId-unsupported-S32ZDA2T.js} +1 -1
  75. package/chunks/{getMachineId-win-CDYFC6ZM.js → getMachineId-win-4EFLHYIJ.js} +1 -1
  76. package/chunks/{glob-5V32KOG5.js → glob-OFNQSS52.js} +25 -19
  77. package/chunks/{grep-PUTEPBR4.js → grep-6J2MSUM5.js} +28 -19
  78. package/chunks/{ja-NFZ32AB3.js → ja-TGPZSP2B.js} +48 -1
  79. package/chunks/{keychain-token-storage-UHGOCDD6.js → keychain-token-storage-6IU6ORQN.js} +3 -3
  80. package/chunks/{ls-34DLNYCD.js → ls-V3O6A5PT.js} +4 -4
  81. package/chunks/{lsp-NCDEHH3V.js → lsp-G2OCIFUA.js} +3 -3
  82. package/chunks/{monitor-EJBR5VCR.js → monitor-FKLHV423.js} +25 -19
  83. package/chunks/{notebook-edit-DZHGPP2L.js → notebook-edit-KTBYFKWG.js} +26 -20
  84. package/chunks/{openaiContentGenerator-4QNV3CHM.js → openaiContentGenerator-L5KSWQY7.js} +15 -14
  85. package/chunks/{pt-BR43FRBA.js → pt-TIBG6BIO.js} +48 -1
  86. package/chunks/{qwenContentGenerator-3XOCEMQO.js → qwenContentGenerator-PYOXLMBW.js} +27 -21
  87. package/chunks/{qwenOAuth2-KRJT35QH.js → qwenOAuth2-2KCKWDCF.js} +6 -5
  88. package/chunks/{read-file-VZ2SQQIX.js → read-file-JQVRK4NU.js} +11 -11
  89. package/chunks/ripGrep-2L4LPNAJ.js +48 -0
  90. package/chunks/{ru-DQCW2KHD.js → ru-JBCHCK4L.js} +48 -1
  91. package/chunks/{scheduler-H32DZVDV.js → scheduler-FGNXY4JQ.js} +25 -19
  92. package/chunks/send-message-SZFWNOCL.js +244 -0
  93. package/chunks/{serve-56G4B5W6.js → serve-N2IBLA3G.js} +13592 -4979
  94. package/chunks/{shell-Q77KNP4N.js → shell-PTEG6UX4.js} +25 -19
  95. package/chunks/{skill-CLWFJYBG.js → skill-X4NTK4NH.js} +64 -113
  96. package/chunks/{src-47L2LUOU.js → src-GLLQ3R5W.js} +307 -32
  97. package/chunks/{syntheticOutput-T5SWX3YF.js → syntheticOutput-IKAY5F6X.js} +4 -4
  98. package/chunks/task-create-MQICOJFV.js +19 -0
  99. package/chunks/task-list-RIHJCH32.js +151 -0
  100. package/chunks/{task-stop-3VHAQMYM.js → task-stop-FWZRFANS.js} +3 -3
  101. package/chunks/task-update-2LHPXOYM.js +408 -0
  102. package/chunks/team-create-2E4PF4KN.js +314 -0
  103. package/chunks/team-delete-DAUDQS4J.js +116 -0
  104. package/chunks/{todoWrite-EAGJGKO5.js → todoWrite-HTUACZES.js} +5 -5
  105. package/chunks/{tool-search-Q75AYDTP.js → tool-search-KTVULRES.js} +11 -11
  106. package/chunks/{web-fetch-SS6IKK6N.js → web-fetch-CZ7LLKPE.js} +5 -5
  107. package/chunks/workflow-L2ZUUDT2.js +960 -0
  108. package/chunks/{write-file-RENGC25N.js → write-file-ZEB2JDYH.js} +26 -20
  109. package/chunks/{zh-6VFXOAR5.js → zh-7H5OQC4I.js} +82 -7
  110. package/chunks/{zh-TW-IQZ4AD5M.js → zh-TW-P4IDHD3M.js} +79 -7
  111. package/cli.js +11248 -5119
  112. package/examples/agent/qwen-extension.json +1 -0
  113. package/examples/commands/qwen-extension.json +1 -0
  114. package/examples/context/qwen-extension.json +1 -0
  115. package/examples/mcp-server/qwen-extension.json +1 -0
  116. package/examples/skills/qwen-extension.json +1 -0
  117. package/examples/starter/QWEN.md +30 -0
  118. package/examples/starter/README.md +59 -0
  119. package/examples/starter/agents/diary.md +86 -0
  120. package/examples/starter/commands/writing/polish.md +13 -0
  121. package/examples/starter/example.ts +64 -0
  122. package/examples/starter/package.json +18 -0
  123. package/examples/starter/qwen-extension.json +12 -0
  124. package/examples/starter/skills/synonyms/SKILL.md +48 -0
  125. package/examples/starter/tsconfig.json +13 -0
  126. package/fzfWorker.js +1083 -0
  127. package/locales/ca.js +51 -0
  128. package/locales/de.js +51 -0
  129. package/locales/en.js +89 -2
  130. package/locales/fr.js +53 -2
  131. package/locales/ja.js +52 -2
  132. package/locales/pt.js +52 -2
  133. package/locales/ru.js +53 -2
  134. package/locales/zh-TW.js +90 -11
  135. package/locales/zh.js +94 -11
  136. package/package.json +3 -2
  137. package/bundled/qc-helper/docs/features/checkpointing.md +0 -77
  138. package/chunks/contextCommand-YODJQYIV.js +0 -46
  139. package/chunks/exitPlanMode-5SQYVROD.js +0 -229
  140. package/chunks/ripGrep-SBIZCPOL.js +0 -42
  141. package/chunks/send-message-YYF56TS7.js +0 -151
@@ -0,0 +1,158 @@
1
+ // Force strict mode and setup for ESM
2
+ "use strict";
3
+ import "./chunk-IWAYOW5Q.js";
4
+ import "./chunk-K5PGHDBN.js";
5
+ import "./chunk-SKBPNJEW.js";
6
+ import "./chunk-HLPLOD42.js";
7
+ import "./chunk-O4PICXES.js";
8
+ import "./chunk-TW522KN6.js";
9
+ import "./chunk-3DHXZ6EV.js";
10
+ import "./chunk-XBY7E2FX.js";
11
+ import "./chunk-J5MDQKJL.js";
12
+ import "./chunk-MLZQVCF3.js";
13
+ import "./chunk-LD2XBG6Z.js";
14
+ import "./chunk-OHEGWO4L.js";
15
+ import "./chunk-SNGELLWX.js";
16
+ import "./chunk-77WXWU44.js";
17
+ import "./chunk-A7B4ISQP.js";
18
+ import "./chunk-6YIUGZTC.js";
19
+ import "./chunk-3PJXIDKI.js";
20
+ import "./chunk-UWCTAVOD.js";
21
+ import "./chunk-OFEVLU4C.js";
22
+ import "./chunk-3HTIVKZE.js";
23
+ import "./chunk-IDX6COTE.js";
24
+ import "./chunk-BIVG75CP.js";
25
+ import {
26
+ BaseDeclarativeTool,
27
+ BaseToolInvocation,
28
+ ToolDisplayNames,
29
+ ToolNames
30
+ } from "./chunk-XV4HCEVI.js";
31
+ import "./chunk-2Y5SYSD3.js";
32
+ import "./chunk-SEGYWKIH.js";
33
+ import "./chunk-64WXLC72.js";
34
+ import "./chunk-B7HXHOHU.js";
35
+ import "./chunk-EYENRK4D.js";
36
+ import "./chunk-M6VTDSVR.js";
37
+ import "./chunk-55ZMG67I.js";
38
+ import "./chunk-H6BD2ELD.js";
39
+ import "./chunk-5IFG2VC4.js";
40
+ import {
41
+ createDebugLogger
42
+ } from "./chunk-HR7SV7AY.js";
43
+ import "./chunk-ZERZSAZL.js";
44
+ import "./chunk-QN5NZ3UQ.js";
45
+ import "./chunk-BR4QREVK.js";
46
+ import "./chunk-Z2Z3GUXZ.js";
47
+ import {
48
+ init_esbuild_shims
49
+ } from "./chunk-A4BMJM77.js";
50
+ import {
51
+ __name
52
+ } from "./chunk-J2S4EL5Y.js";
53
+
54
+ // packages/core/src/tools/enterPlanMode.ts
55
+ init_esbuild_shims();
56
+ var debugLogger = createDebugLogger("ENTER_PLAN_MODE");
57
+ var enterPlanModeToolDescription = `Use this tool to lower into plan mode before doing uncertain or complex work. Entering plan mode is a privilege reduction, so it does not require user confirmation.
58
+
59
+ ## When to Use This Tool
60
+ Use this tool when the task is not yet clear enough to safely execute, for example when it requires multi-file changes, design choices, investigation before a plan can be summarized, or when requirements are ambiguous. While investigating, if complexity rises or you find yourself repeatedly needing to ask the user, enter plan mode and consolidate a plan.
61
+
62
+ ## When NOT to Use This Tool
63
+ If the request is already clear, small, and low-risk, you may execute directly without entering plan mode. Do not make speculative small edits before you have thought the change through.
64
+
65
+ ## Important
66
+ Do NOT use this tool if the user has explicitly asked you not to use plan mode.`;
67
+ var enterPlanModeToolSchemaData = {
68
+ name: "enter_plan_mode",
69
+ description: enterPlanModeToolDescription,
70
+ parametersJsonSchema: {
71
+ type: "object",
72
+ properties: {},
73
+ additionalProperties: false,
74
+ $schema: "http://json-schema.org/draft-07/schema#"
75
+ }
76
+ };
77
+ var EnterPlanModeToolInvocation = class extends BaseToolInvocation {
78
+ constructor(config, params) {
79
+ super(params);
80
+ this.config = config;
81
+ }
82
+ static {
83
+ __name(this, "EnterPlanModeToolInvocation");
84
+ }
85
+ getDescription() {
86
+ return "Enter plan mode";
87
+ }
88
+ /**
89
+ * Entering plan mode lowers privileges, so it is always allowed without a
90
+ * confirmation prompt.
91
+ */
92
+ async getDefaultPermission() {
93
+ return "allow";
94
+ }
95
+ async execute(_signal) {
96
+ const isAcpMode = this.config.getExperimentalZedIntegration?.() || this.config.getInputFormat?.() === "stream-json" /* STREAM_JSON */;
97
+ if (!this.config.isInteractive() && !isAcpMode) {
98
+ return {
99
+ llmContent: "Cannot enter plan mode in non-interactive mode without ACP support. The gate exit paths require user interaction.",
100
+ returnDisplay: "Plan mode unavailable in non-interactive mode."
101
+ };
102
+ }
103
+ try {
104
+ if (this.config.getApprovalMode() !== "plan" /* PLAN */) {
105
+ this.config.setApprovalMode("plan" /* PLAN */);
106
+ }
107
+ } catch (error) {
108
+ const errorMessage = error instanceof Error ? error.message : String(error);
109
+ debugLogger.error(
110
+ `[EnterPlanModeTool] Failed to set approval mode to plan: ${errorMessage}`
111
+ );
112
+ return {
113
+ llmContent: `Failed to enter plan mode: ${errorMessage}`,
114
+ returnDisplay: `Error entering plan mode: ${errorMessage}`
115
+ };
116
+ }
117
+ return {
118
+ llmContent: "Plan mode is now active. Continue with read-only investigation, ask the user when needed, and use exit_plan_mode when the plan is ready.",
119
+ returnDisplay: "Entered plan mode."
120
+ };
121
+ }
122
+ };
123
+ var EnterPlanModeTool = class _EnterPlanModeTool extends BaseDeclarativeTool {
124
+ constructor(config) {
125
+ super(
126
+ _EnterPlanModeTool.Name,
127
+ ToolDisplayNames.ENTER_PLAN_MODE,
128
+ enterPlanModeToolDescription,
129
+ "think" /* Think */,
130
+ enterPlanModeToolSchemaData.parametersJsonSchema,
131
+ true,
132
+ // isOutputMarkdown
133
+ false,
134
+ // canUpdateOutput
135
+ false,
136
+ // shouldDefer — always visible so the model can enter plan mode
137
+ false,
138
+ // alwaysLoad
139
+ "plan mode enter start"
140
+ );
141
+ this.config = config;
142
+ }
143
+ static {
144
+ __name(this, "EnterPlanModeTool");
145
+ }
146
+ static Name = ToolNames.ENTER_PLAN_MODE;
147
+ createInvocation(params) {
148
+ return new EnterPlanModeToolInvocation(this.config, params);
149
+ }
150
+ };
151
+ export {
152
+ EnterPlanModeTool
153
+ };
154
+ /**
155
+ * @license
156
+ * Copyright 2025 Qwen
157
+ * SPDX-License-Identifier: Apache-2.0
158
+ */
@@ -6,45 +6,51 @@ import {
6
6
  readWorktreeSession,
7
7
  readWorktreeSessionMarker,
8
8
  worktreeBranchForSlug
9
- } from "./chunk-6KH2Q7XN.js";
9
+ } from "./chunk-IWAYOW5Q.js";
10
10
  import "./chunk-K5PGHDBN.js";
11
+ import "./chunk-SKBPNJEW.js";
12
+ import "./chunk-HLPLOD42.js";
11
13
  import "./chunk-O4PICXES.js";
12
14
  import "./chunk-TW522KN6.js";
15
+ import "./chunk-3DHXZ6EV.js";
16
+ import "./chunk-XBY7E2FX.js";
17
+ import "./chunk-J5MDQKJL.js";
13
18
  import "./chunk-MLZQVCF3.js";
14
- import "./chunk-SCHRFI7O.js";
15
- import "./chunk-PLYZAP4W.js";
16
- import "./chunk-UABFCMPA.js";
19
+ import "./chunk-LD2XBG6Z.js";
20
+ import "./chunk-OHEGWO4L.js";
21
+ import "./chunk-SNGELLWX.js";
17
22
  import "./chunk-77WXWU44.js";
18
- import "./chunk-6VFG3EUJ.js";
19
- import "./chunk-F6FLCHCS.js";
23
+ import "./chunk-A7B4ISQP.js";
24
+ import "./chunk-6YIUGZTC.js";
20
25
  import "./chunk-3PJXIDKI.js";
21
26
  import "./chunk-UWCTAVOD.js";
22
27
  import "./chunk-OFEVLU4C.js";
23
- import "./chunk-AVLOK27J.js";
24
- import "./chunk-JSYEZAYV.js";
25
- import "./chunk-5RNZ2QKF.js";
28
+ import "./chunk-3HTIVKZE.js";
29
+ import "./chunk-IDX6COTE.js";
30
+ import "./chunk-BIVG75CP.js";
26
31
  import {
27
32
  BaseDeclarativeTool,
28
33
  BaseToolInvocation,
29
34
  ToolDisplayNames,
30
35
  ToolNames
31
- } from "./chunk-G763GDO6.js";
32
- import "./chunk-JMLIPZUU.js";
33
- import "./chunk-GBEPNWYB.js";
34
- import "./chunk-F5ORN4YO.js";
35
- import "./chunk-MVX64PNU.js";
36
- import "./chunk-D46KOV3C.js";
37
- import "./chunk-BNESGOSJ.js";
38
- import "./chunk-SZOEIL6S.js";
36
+ } from "./chunk-XV4HCEVI.js";
37
+ import "./chunk-2Y5SYSD3.js";
38
+ import "./chunk-SEGYWKIH.js";
39
+ import "./chunk-64WXLC72.js";
40
+ import "./chunk-B7HXHOHU.js";
41
+ import "./chunk-EYENRK4D.js";
42
+ import "./chunk-M6VTDSVR.js";
43
+ import "./chunk-55ZMG67I.js";
44
+ import "./chunk-H6BD2ELD.js";
39
45
  import "./chunk-5IFG2VC4.js";
40
46
  import {
41
47
  createDebugLogger,
42
48
  isNodeError
43
- } from "./chunk-R5PDRHEF.js";
49
+ } from "./chunk-HR7SV7AY.js";
44
50
  import "./chunk-ZERZSAZL.js";
45
51
  import "./chunk-QN5NZ3UQ.js";
46
52
  import "./chunk-BR4QREVK.js";
47
- import "./chunk-WFVXF3OM.js";
53
+ import "./chunk-Z2Z3GUXZ.js";
48
54
  import {
49
55
  init_esbuild_shims
50
56
  } from "./chunk-A4BMJM77.js";