@qwen-code/qwen-code 0.17.0-preview.0 → 0.17.1

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 (80) hide show
  1. package/bundled/qc-helper/docs/features/approval-mode.md +26 -22
  2. package/bundled/qc-helper/docs/features/commands.md +12 -10
  3. package/bundled/qc-helper/docs/features/status-line.md +161 -27
  4. package/chunks/{agent-Z7O3I6MY.js → agent-ZJHHICAC.js} +10 -10
  5. package/chunks/{anthropicContentGenerator-UCGOKLGC.js → anthropicContentGenerator-M45RXZVS.js} +3 -3
  6. package/chunks/{askUserQuestion-DC6OWQIL.js → askUserQuestion-TGRD7FNQ.js} +1 -1
  7. package/chunks/{ca-NMZFEGAU.js → ca-6RSCDYUS.js} +2 -1
  8. package/chunks/{chunk-7JHNICSJ.js → chunk-2KEXT6RB.js} +643 -136
  9. package/chunks/{chunk-J5VCSWPA.js → chunk-3PJXIDKI.js} +1153 -103
  10. package/chunks/{chunk-BF5WTWOH.js → chunk-5JBZM7FZ.js} +3 -3
  11. package/chunks/{chunk-FEENTAB2.js → chunk-6O244QKR.js} +1 -1
  12. package/chunks/chunk-7TQVELRB.js +10412 -0
  13. package/chunks/{chunk-HCSJIOLR.js → chunk-BNESGOSJ.js} +7450 -3516
  14. package/chunks/{chunk-OXXOAIGT.js → chunk-C5CUHYSM.js} +333 -1162
  15. package/chunks/{chunk-V7LMZR76.js → chunk-JBSYXHJF.js} +1 -1
  16. package/chunks/{chunk-R2B65CAN.js → chunk-JKUAX6UT.js} +0 -1
  17. package/chunks/{chunk-4Q4IDQE5.js → chunk-NJJER6E2.js} +4 -4
  18. package/chunks/{chunk-ZWH2TVVN.js → chunk-PLYRQYKC.js} +10 -10
  19. package/chunks/{chunk-U2K6HDUJ.js → chunk-QVJ33ZBG.js} +23 -13
  20. package/chunks/{chunk-HAQCNXSG.js → chunk-RQW7WUJR.js} +15 -0
  21. package/chunks/{chunk-UQRYJQBE.js → chunk-SOGUPKP6.js} +1 -1
  22. package/chunks/{chunk-MJCO2CPA.js → chunk-X2474BTT.js} +45 -6
  23. package/chunks/{computer-use-2J5ZXEER.js → computer-use-NAHQPV2L.js} +24 -6
  24. package/chunks/{contextCommand-FU55EUOH.js → contextCommand-7KJT3UJS.js} +12 -12
  25. package/chunks/{cron-create-FXRORK2U.js → cron-create-V3UK2SJN.js} +1 -1
  26. package/chunks/{cron-delete-D24IN6CA.js → cron-delete-MANALPCP.js} +1 -1
  27. package/chunks/{cron-list-SMOX26SL.js → cron-list-UDIYK3B3.js} +1 -1
  28. package/chunks/{de-OIMT3OMI.js → de-APURNJ3I.js} +2 -1
  29. package/chunks/{dist-GRQVFL3G.js → dist-ATAKC63R.js} +1 -1
  30. package/chunks/{edit-UQFK25NR.js → edit-JWXCQ4KK.js} +10 -10
  31. package/chunks/{en-2IFZ5THF.js → en-FYO57HJW.js} +3 -1
  32. package/chunks/{enter-worktree-VZT6JX45.js → enter-worktree-G4CJXPT4.js} +10 -10
  33. package/chunks/{exit-worktree-JETQQ26R.js → exit-worktree-MYZ2FGU2.js} +10 -10
  34. package/chunks/{exitPlanMode-SFNBASAU.js → exitPlanMode-ELJ6FSMU.js} +10 -10
  35. package/chunks/{fr-PVELSHTV.js → fr-32YHQZIS.js} +2 -1
  36. package/chunks/{geminiContentGenerator-XWUW7B7J.js → geminiContentGenerator-3LR7MKCQ.js} +2 -2
  37. package/chunks/{glob-34CPYA2M.js → glob-CANUAUTC.js} +10 -10
  38. package/chunks/{grep-4RXPZUYZ.js → grep-WZWNJRDX.js} +10 -10
  39. package/chunks/{ja-P5TK5GNN.js → ja-PEUXN4XT.js} +2 -1
  40. package/chunks/{ls-7FYQHPWF.js → ls-T4SVZWR6.js} +1 -1
  41. package/chunks/{lsp-DKG34USR.js → lsp-U4ZQLNIS.js} +1 -1
  42. package/chunks/{monitor-QCNAUO75.js → monitor-CCKNOUFG.js} +10 -10
  43. package/chunks/{multipart-parser-IXGBIOIN.js → multipart-parser-AJ4WASWR.js} +2 -2
  44. package/chunks/{notebook-edit-I2MBTWI6.js → notebook-edit-XDUY5Q4I.js} +10 -10
  45. package/chunks/{openaiContentGenerator-VNQUJIG5.js → openaiContentGenerator-N3O3MYIT.js} +8 -8
  46. package/chunks/{pt-A5GHG66T.js → pt-2INS7YVC.js} +2 -1
  47. package/chunks/{qwenContentGenerator-LICFK2K7.js → qwenContentGenerator-DEOIWKVH.js} +12 -12
  48. package/chunks/{read-file-N2YTOQ2U.js → read-file-BRNXGILN.js} +5 -5
  49. package/chunks/{ripGrep-NBWBOVPW.js → ripGrep-ZRY5PKUZ.js} +10 -10
  50. package/chunks/{ru-66XKB4QX.js → ru-6CQ5HNHB.js} +2 -1
  51. package/chunks/{scheduler-XHHMN7TA.js → scheduler-SSFABMN5.js} +10 -10
  52. package/chunks/{send-message-ZL7CDM7K.js → send-message-GFYV7WLL.js} +1 -1
  53. package/chunks/{serve-HESJL2FH.js → serve-B5O72CRN.js} +12 -12
  54. package/chunks/{shell-V7PVS7O7.js → shell-SGYNBVMK.js} +10 -10
  55. package/chunks/{skill-6LP5ANRL.js → skill-V7Y6DOFB.js} +6 -6
  56. package/chunks/{src-TMOD5X6F.js → src-7XL4G4DC.js} +88 -46
  57. package/chunks/{src-4TLZBCTV.js → src-OKFFQGXB.js} +14 -12
  58. package/chunks/{syntheticOutput-U3YJ3GOO.js → syntheticOutput-DM43O6TY.js} +2 -2
  59. package/chunks/{task-stop-NPUI3YBA.js → task-stop-WKP5OB3V.js} +1 -1
  60. package/chunks/{todoWrite-USWGQJ53.js → todoWrite-GHL6DCLP.js} +8 -2
  61. package/chunks/{tool-search-6CRPUSUB.js → tool-search-7MHT3HGM.js} +5 -5
  62. package/chunks/{web-fetch-LGLGFGGT.js → web-fetch-SZIV74ZX.js} +2 -2
  63. package/chunks/{write-file-CCMVL5Q7.js → write-file-ARS2Z6BJ.js} +12 -12
  64. package/chunks/{zh-TW-3ND6DQRX.js → zh-TW-SSL3ATVZ.js} +3 -1
  65. package/chunks/{zh-OB5P2ZDO.js → zh-ZHZCMIRG.js} +3 -1
  66. package/cli.js +32976 -50717
  67. package/locales/ca.js +2 -1
  68. package/locales/de.js +2 -1
  69. package/locales/en.js +4 -1
  70. package/locales/fr.js +2 -1
  71. package/locales/ja.js +2 -1
  72. package/locales/pt.js +2 -1
  73. package/locales/ru.js +2 -1
  74. package/locales/zh-TW.js +4 -1
  75. package/locales/zh.js +4 -1
  76. package/package.json +2 -2
  77. package/chunks/chunk-EM6ETG2K.js +0 -60
  78. package/chunks/chunk-TI4GXJKO.js +0 -4277
  79. package/chunks/multipart-parser-3QWGTLK3.js +0 -384
  80. package/chunks/src-IPWIHNMI.js +0 -1406
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  BaseDeclarativeTool,
9
9
  BaseToolInvocation
10
- } from "./chunk-R2B65CAN.js";
10
+ } from "./chunk-JKUAX6UT.js";
11
11
  import "./chunk-ACBGEKB7.js";
12
12
  import "./chunk-QWSRH265.js";
13
13
  import {
@@ -29,7 +29,7 @@ import {
29
29
  getNpmVersion,
30
30
  loadSettings,
31
31
  mapDomainErrorToErrorKind
32
- } from "./chunk-MJCO2CPA.js";
32
+ } from "./chunk-X2474BTT.js";
33
33
  import {
34
34
  ClientSideConnection,
35
35
  PROTOCOL_VERSION,
@@ -38,7 +38,7 @@ import {
38
38
  import {
39
39
  writeStderrLine,
40
40
  writeStdoutLine
41
- } from "./chunk-ZWH2TVVN.js";
41
+ } from "./chunk-PLYRQYKC.js";
42
42
  import {
43
43
  APPROVAL_MODES,
44
44
  BuiltinAgentRegistry,
@@ -56,16 +56,16 @@ import {
56
56
  loadIgnoreRules,
57
57
  require_once,
58
58
  writeWorkspaceContextFile
59
- } from "./chunk-7JHNICSJ.js";
59
+ } from "./chunk-2KEXT6RB.js";
60
60
  import "./chunk-24YKA2DA.js";
61
61
  import "./chunk-O4PICXES.js";
62
62
  import "./chunk-TW522KN6.js";
63
- import "./chunk-TI4GXJKO.js";
63
+ import "./chunk-7TQVELRB.js";
64
64
  import "./chunk-AKBFRR6J.js";
65
65
  import "./chunk-MLZQVCF3.js";
66
- import "./chunk-FEENTAB2.js";
66
+ import "./chunk-6O244QKR.js";
67
67
  import "./chunk-EY6BDW7Y.js";
68
- import "./chunk-HAQCNXSG.js";
68
+ import "./chunk-RQW7WUJR.js";
69
69
  import "./chunk-77WXWU44.js";
70
70
  import "./chunk-GVWPJCXU.js";
71
71
  import {
@@ -75,16 +75,16 @@ import {
75
75
  isBinaryFile,
76
76
  isWithinRoot,
77
77
  require_safer
78
- } from "./chunk-OXXOAIGT.js";
79
- import "./chunk-J5VCSWPA.js";
78
+ } from "./chunk-C5CUHYSM.js";
79
+ import "./chunk-3PJXIDKI.js";
80
80
  import "./chunk-UWCTAVOD.js";
81
81
  import "./chunk-W57YDFU5.js";
82
82
  import "./chunk-OFEVLU4C.js";
83
83
  import "./chunk-NQ3E7YLD.js";
84
84
  import "./chunk-OJFMTECH.js";
85
- import "./chunk-UQRYJQBE.js";
85
+ import "./chunk-SOGUPKP6.js";
86
86
  import "./chunk-6RQTH7UQ.js";
87
- import "./chunk-R2B65CAN.js";
87
+ import "./chunk-JKUAX6UT.js";
88
88
  import {
89
89
  QwenOAuth2Client,
90
90
  QwenOAuthPollError,
@@ -99,9 +99,9 @@ import "./chunk-HX3JRTWL.js";
99
99
  import {
100
100
  detectRuntime,
101
101
  redactProxyCredentials
102
- } from "./chunk-U2K6HDUJ.js";
102
+ } from "./chunk-QVJ33ZBG.js";
103
103
  import "./chunk-TDZCEIK6.js";
104
- import "./chunk-HCSJIOLR.js";
104
+ import "./chunk-BNESGOSJ.js";
105
105
  import "./chunk-SZOEIL6S.js";
106
106
  import "./chunk-5IFG2VC4.js";
107
107
  import {
@@ -7,34 +7,34 @@ import {
7
7
  buildLongRunningForegroundHint,
8
8
  detectBlockedSleepPattern,
9
9
  parseNumstat
10
- } from "./chunk-7JHNICSJ.js";
10
+ } from "./chunk-2KEXT6RB.js";
11
11
  import "./chunk-24YKA2DA.js";
12
12
  import "./chunk-O4PICXES.js";
13
13
  import "./chunk-TW522KN6.js";
14
- import "./chunk-TI4GXJKO.js";
14
+ import "./chunk-7TQVELRB.js";
15
15
  import "./chunk-AKBFRR6J.js";
16
16
  import "./chunk-MLZQVCF3.js";
17
- import "./chunk-FEENTAB2.js";
17
+ import "./chunk-6O244QKR.js";
18
18
  import "./chunk-EY6BDW7Y.js";
19
- import "./chunk-HAQCNXSG.js";
19
+ import "./chunk-RQW7WUJR.js";
20
20
  import "./chunk-77WXWU44.js";
21
21
  import "./chunk-GVWPJCXU.js";
22
- import "./chunk-OXXOAIGT.js";
23
- import "./chunk-J5VCSWPA.js";
22
+ import "./chunk-C5CUHYSM.js";
23
+ import "./chunk-3PJXIDKI.js";
24
24
  import "./chunk-UWCTAVOD.js";
25
25
  import "./chunk-W57YDFU5.js";
26
26
  import "./chunk-OFEVLU4C.js";
27
27
  import "./chunk-NQ3E7YLD.js";
28
28
  import "./chunk-OJFMTECH.js";
29
- import "./chunk-UQRYJQBE.js";
29
+ import "./chunk-SOGUPKP6.js";
30
30
  import "./chunk-6RQTH7UQ.js";
31
- import "./chunk-R2B65CAN.js";
31
+ import "./chunk-JKUAX6UT.js";
32
32
  import "./chunk-G4K6P5KN.js";
33
33
  import "./chunk-OIL7KDWV.js";
34
34
  import "./chunk-HX3JRTWL.js";
35
- import "./chunk-U2K6HDUJ.js";
35
+ import "./chunk-QVJ33ZBG.js";
36
36
  import "./chunk-TDZCEIK6.js";
37
- import "./chunk-HCSJIOLR.js";
37
+ import "./chunk-BNESGOSJ.js";
38
38
  import "./chunk-SZOEIL6S.js";
39
39
  import "./chunk-5IFG2VC4.js";
40
40
  import "./chunk-ACBGEKB7.js";
@@ -5,18 +5,18 @@ import {
5
5
  escapeXml,
6
6
  registerSkillHooks
7
7
  } from "./chunk-EY6BDW7Y.js";
8
- import "./chunk-HAQCNXSG.js";
8
+ import "./chunk-RQW7WUJR.js";
9
9
  import {
10
10
  SkillLaunchEvent,
11
11
  logSkillLaunch
12
- } from "./chunk-OXXOAIGT.js";
13
- import "./chunk-J5VCSWPA.js";
12
+ } from "./chunk-C5CUHYSM.js";
13
+ import "./chunk-3PJXIDKI.js";
14
14
  import "./chunk-UWCTAVOD.js";
15
15
  import "./chunk-W57YDFU5.js";
16
16
  import "./chunk-OFEVLU4C.js";
17
17
  import "./chunk-NQ3E7YLD.js";
18
18
  import "./chunk-OJFMTECH.js";
19
- import "./chunk-UQRYJQBE.js";
19
+ import "./chunk-SOGUPKP6.js";
20
20
  import {
21
21
  ToolDisplayNames,
22
22
  ToolNames
@@ -24,10 +24,10 @@ import {
24
24
  import {
25
25
  BaseDeclarativeTool,
26
26
  BaseToolInvocation
27
- } from "./chunk-R2B65CAN.js";
27
+ } from "./chunk-JKUAX6UT.js";
28
28
  import "./chunk-HX3JRTWL.js";
29
29
  import "./chunk-TDZCEIK6.js";
30
- import "./chunk-HCSJIOLR.js";
30
+ import "./chunk-BNESGOSJ.js";
31
31
  import "./chunk-SZOEIL6S.js";
32
32
  import "./chunk-5IFG2VC4.js";
33
33
  import {
@@ -1,9 +1,5 @@
1
1
  // Force strict mode and setup for ESM
2
2
  "use strict";
3
- import {
4
- dist_default,
5
- init_dist
6
- } from "./chunk-EM6ETG2K.js";
7
3
  import {
8
4
  FormData,
9
5
  blobFrom,
@@ -26,10 +22,56 @@ import {
26
22
  __name
27
23
  } from "./chunk-J2S4EL5Y.js";
28
24
 
29
- // packages/core/node_modules/node-fetch/src/errors/base.js
25
+ // node_modules/data-uri-to-buffer/dist/index.js
26
+ function dataUriToBuffer(uri) {
27
+ if (!/^data:/i.test(uri)) {
28
+ throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');
29
+ }
30
+ uri = uri.replace(/\r?\n/g, "");
31
+ const firstComma = uri.indexOf(",");
32
+ if (firstComma === -1 || firstComma <= 4) {
33
+ throw new TypeError("malformed data: URI");
34
+ }
35
+ const meta = uri.substring(5, firstComma).split(";");
36
+ let charset = "";
37
+ let base64 = false;
38
+ const type = meta[0] || "text/plain";
39
+ let typeFull = type;
40
+ for (let i = 1; i < meta.length; i++) {
41
+ if (meta[i] === "base64") {
42
+ base64 = true;
43
+ } else if (meta[i]) {
44
+ typeFull += `;${meta[i]}`;
45
+ if (meta[i].indexOf("charset=") === 0) {
46
+ charset = meta[i].substring(8);
47
+ }
48
+ }
49
+ }
50
+ if (!meta[0] && !charset.length) {
51
+ typeFull += ";charset=US-ASCII";
52
+ charset = "US-ASCII";
53
+ }
54
+ const encoding = base64 ? "base64" : "ascii";
55
+ const data = unescape(uri.substring(firstComma + 1));
56
+ const buffer = Buffer.from(data, encoding);
57
+ buffer.type = type;
58
+ buffer.typeFull = typeFull;
59
+ buffer.charset = charset;
60
+ return buffer;
61
+ }
62
+ var dist_default;
63
+ var init_dist = __esm({
64
+ "node_modules/data-uri-to-buffer/dist/index.js"() {
65
+ init_esbuild_shims();
66
+ __name(dataUriToBuffer, "dataUriToBuffer");
67
+ dist_default = dataUriToBuffer;
68
+ }
69
+ });
70
+
71
+ // node_modules/gaxios/node_modules/node-fetch/src/errors/base.js
30
72
  var FetchBaseError;
31
73
  var init_base = __esm({
32
- "packages/core/node_modules/node-fetch/src/errors/base.js"() {
74
+ "node_modules/gaxios/node_modules/node-fetch/src/errors/base.js"() {
33
75
  init_esbuild_shims();
34
76
  FetchBaseError = class extends Error {
35
77
  static {
@@ -50,10 +92,10 @@ var init_base = __esm({
50
92
  }
51
93
  });
52
94
 
53
- // packages/core/node_modules/node-fetch/src/errors/fetch-error.js
95
+ // node_modules/gaxios/node_modules/node-fetch/src/errors/fetch-error.js
54
96
  var FetchError;
55
97
  var init_fetch_error = __esm({
56
- "packages/core/node_modules/node-fetch/src/errors/fetch-error.js"() {
98
+ "node_modules/gaxios/node_modules/node-fetch/src/errors/fetch-error.js"() {
57
99
  init_esbuild_shims();
58
100
  init_base();
59
101
  FetchError = class extends FetchBaseError {
@@ -76,10 +118,10 @@ var init_fetch_error = __esm({
76
118
  }
77
119
  });
78
120
 
79
- // packages/core/node_modules/node-fetch/src/utils/is.js
121
+ // node_modules/gaxios/node_modules/node-fetch/src/utils/is.js
80
122
  var NAME, isURLSearchParameters, isBlob, isAbortSignal, isDomainOrSubdomain, isSameProtocol;
81
123
  var init_is = __esm({
82
- "packages/core/node_modules/node-fetch/src/utils/is.js"() {
124
+ "node_modules/gaxios/node_modules/node-fetch/src/utils/is.js"() {
83
125
  init_esbuild_shims();
84
126
  NAME = Symbol.toStringTag;
85
127
  isURLSearchParameters = /* @__PURE__ */ __name((object) => {
@@ -104,10 +146,10 @@ var init_is = __esm({
104
146
  }
105
147
  });
106
148
 
107
- // packages/core/node_modules/node-fetch/src/body.js
149
+ // node_modules/gaxios/node_modules/node-fetch/src/body.js
108
150
  import Stream, { PassThrough } from "node:stream";
109
151
  import { types, deprecate, promisify } from "node:util";
110
- import { Buffer } from "node:buffer";
152
+ import { Buffer as Buffer2 } from "node:buffer";
111
153
  async function consumeBody(data) {
112
154
  if (data[INTERNALS].disturbed) {
113
155
  throw new TypeError(`body used already for: ${data.url}`);
@@ -118,10 +160,10 @@ async function consumeBody(data) {
118
160
  }
119
161
  const { body } = data;
120
162
  if (body === null) {
121
- return Buffer.alloc(0);
163
+ return Buffer2.alloc(0);
122
164
  }
123
165
  if (!(body instanceof Stream)) {
124
- return Buffer.alloc(0);
166
+ return Buffer2.alloc(0);
125
167
  }
126
168
  const accum = [];
127
169
  let accumBytes = 0;
@@ -142,9 +184,9 @@ async function consumeBody(data) {
142
184
  if (body.readableEnded === true || body._readableState.ended === true) {
143
185
  try {
144
186
  if (accum.every((c) => typeof c === "string")) {
145
- return Buffer.from(accum.join(""));
187
+ return Buffer2.from(accum.join(""));
146
188
  }
147
- return Buffer.concat(accum, accumBytes);
189
+ return Buffer2.concat(accum, accumBytes);
148
190
  } catch (error) {
149
191
  throw new FetchError(`Could not create Buffer from response body for ${data.url}: ${error.message}`, "system", error);
150
192
  }
@@ -154,7 +196,7 @@ async function consumeBody(data) {
154
196
  }
155
197
  var pipeline, INTERNALS, Body, clone, getNonSpecFormDataBoundary, extractContentType, getTotalBytes, writeToStream;
156
198
  var init_body = __esm({
157
- "packages/core/node_modules/node-fetch/src/body.js"() {
199
+ "node_modules/gaxios/node_modules/node-fetch/src/body.js"() {
158
200
  init_esbuild_shims();
159
201
  init_fetch_blob();
160
202
  init_esm_min();
@@ -174,22 +216,22 @@ var init_body = __esm({
174
216
  if (body === null) {
175
217
  body = null;
176
218
  } else if (isURLSearchParameters(body)) {
177
- body = Buffer.from(body.toString());
219
+ body = Buffer2.from(body.toString());
178
220
  } else if (isBlob(body)) {
179
- } else if (Buffer.isBuffer(body)) {
221
+ } else if (Buffer2.isBuffer(body)) {
180
222
  } else if (types.isAnyArrayBuffer(body)) {
181
- body = Buffer.from(body);
223
+ body = Buffer2.from(body);
182
224
  } else if (ArrayBuffer.isView(body)) {
183
- body = Buffer.from(body.buffer, body.byteOffset, body.byteLength);
225
+ body = Buffer2.from(body.buffer, body.byteOffset, body.byteLength);
184
226
  } else if (body instanceof Stream) {
185
227
  } else if (body instanceof FormData) {
186
228
  body = formDataToBlob(body);
187
229
  boundary = body.type.split("=")[1];
188
230
  } else {
189
- body = Buffer.from(String(body));
231
+ body = Buffer2.from(String(body));
190
232
  }
191
233
  let stream = body;
192
- if (Buffer.isBuffer(body)) {
234
+ if (Buffer2.isBuffer(body)) {
193
235
  stream = Stream.Readable.from(body);
194
236
  } else if (isBlob(body)) {
195
237
  stream = Stream.Readable.from(body.stream());
@@ -234,7 +276,7 @@ var init_body = __esm({
234
276
  }
235
277
  return formData;
236
278
  }
237
- const { toFormData } = await import("./multipart-parser-3QWGTLK3.js");
279
+ const { toFormData } = await import("./multipart-parser-AJ4WASWR.js");
238
280
  return toFormData(this.body, ct);
239
281
  }
240
282
  /**
@@ -327,7 +369,7 @@ var init_body = __esm({
327
369
  if (isBlob(body)) {
328
370
  return body.type || null;
329
371
  }
330
- if (Buffer.isBuffer(body) || types.isAnyArrayBuffer(body) || ArrayBuffer.isView(body)) {
372
+ if (Buffer2.isBuffer(body) || types.isAnyArrayBuffer(body) || ArrayBuffer.isView(body)) {
331
373
  return null;
332
374
  }
333
375
  if (body instanceof FormData) {
@@ -349,7 +391,7 @@ var init_body = __esm({
349
391
  if (isBlob(body)) {
350
392
  return body.size;
351
393
  }
352
- if (Buffer.isBuffer(body)) {
394
+ if (Buffer2.isBuffer(body)) {
353
395
  return body.length;
354
396
  }
355
397
  if (body && typeof body.getLengthSync === "function") {
@@ -367,7 +409,7 @@ var init_body = __esm({
367
409
  }
368
410
  });
369
411
 
370
- // packages/core/node_modules/node-fetch/src/headers.js
412
+ // node_modules/gaxios/node_modules/node-fetch/src/headers.js
371
413
  import { types as types2 } from "node:util";
372
414
  import http from "node:http";
373
415
  function fromRawHeaders(headers = []) {
@@ -390,7 +432,7 @@ function fromRawHeaders(headers = []) {
390
432
  }
391
433
  var validateHeaderName, validateHeaderValue, Headers;
392
434
  var init_headers = __esm({
393
- "packages/core/node_modules/node-fetch/src/headers.js"() {
435
+ "node_modules/gaxios/node_modules/node-fetch/src/headers.js"() {
394
436
  init_esbuild_shims();
395
437
  validateHeaderName = typeof http.validateHeaderName === "function" ? http.validateHeaderName : (name) => {
396
438
  if (!/^[\^`\-\w!#$%&'*+.|~]+$/.test(name)) {
@@ -563,10 +605,10 @@ var init_headers = __esm({
563
605
  }
564
606
  });
565
607
 
566
- // packages/core/node_modules/node-fetch/src/utils/is-redirect.js
608
+ // node_modules/gaxios/node_modules/node-fetch/src/utils/is-redirect.js
567
609
  var redirectStatus, isRedirect;
568
610
  var init_is_redirect = __esm({
569
- "packages/core/node_modules/node-fetch/src/utils/is-redirect.js"() {
611
+ "node_modules/gaxios/node_modules/node-fetch/src/utils/is-redirect.js"() {
570
612
  init_esbuild_shims();
571
613
  redirectStatus = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]);
572
614
  isRedirect = /* @__PURE__ */ __name((code) => {
@@ -575,10 +617,10 @@ var init_is_redirect = __esm({
575
617
  }
576
618
  });
577
619
 
578
- // packages/core/node_modules/node-fetch/src/response.js
620
+ // node_modules/gaxios/node_modules/node-fetch/src/response.js
579
621
  var INTERNALS2, Response;
580
622
  var init_response = __esm({
581
- "packages/core/node_modules/node-fetch/src/response.js"() {
623
+ "node_modules/gaxios/node_modules/node-fetch/src/response.js"() {
582
624
  init_esbuild_shims();
583
625
  init_headers();
584
626
  init_body();
@@ -705,10 +747,10 @@ var init_response = __esm({
705
747
  }
706
748
  });
707
749
 
708
- // packages/core/node_modules/node-fetch/src/utils/get-search.js
750
+ // node_modules/gaxios/node_modules/node-fetch/src/utils/get-search.js
709
751
  var getSearch;
710
752
  var init_get_search = __esm({
711
- "packages/core/node_modules/node-fetch/src/utils/get-search.js"() {
753
+ "node_modules/gaxios/node_modules/node-fetch/src/utils/get-search.js"() {
712
754
  init_esbuild_shims();
713
755
  getSearch = /* @__PURE__ */ __name((parsedURL) => {
714
756
  if (parsedURL.search) {
@@ -721,7 +763,7 @@ var init_get_search = __esm({
721
763
  }
722
764
  });
723
765
 
724
- // packages/core/node_modules/node-fetch/src/utils/referrer.js
766
+ // node_modules/gaxios/node_modules/node-fetch/src/utils/referrer.js
725
767
  import { isIP } from "node:net";
726
768
  function stripURLForUseAsAReferrer(url, originOnly = false) {
727
769
  if (url == null) {
@@ -850,7 +892,7 @@ function parseReferrerPolicyFromHeader(headers) {
850
892
  }
851
893
  var ReferrerPolicy, DEFAULT_REFERRER_POLICY;
852
894
  var init_referrer = __esm({
853
- "packages/core/node_modules/node-fetch/src/utils/referrer.js"() {
895
+ "node_modules/gaxios/node_modules/node-fetch/src/utils/referrer.js"() {
854
896
  init_esbuild_shims();
855
897
  __name(stripURLForUseAsAReferrer, "stripURLForUseAsAReferrer");
856
898
  ReferrerPolicy = /* @__PURE__ */ new Set([
@@ -873,12 +915,12 @@ var init_referrer = __esm({
873
915
  }
874
916
  });
875
917
 
876
- // packages/core/node_modules/node-fetch/src/request.js
918
+ // node_modules/gaxios/node_modules/node-fetch/src/request.js
877
919
  import { format as formatUrl } from "node:url";
878
920
  import { deprecate as deprecate2 } from "node:util";
879
921
  var INTERNALS3, isRequest, doBadDataWarn, Request, getNodeRequestOptions;
880
922
  var init_request = __esm({
881
- "packages/core/node_modules/node-fetch/src/request.js"() {
923
+ "node_modules/gaxios/node_modules/node-fetch/src/request.js"() {
882
924
  init_esbuild_shims();
883
925
  init_headers();
884
926
  init_body();
@@ -1082,10 +1124,10 @@ var init_request = __esm({
1082
1124
  }
1083
1125
  });
1084
1126
 
1085
- // packages/core/node_modules/node-fetch/src/errors/abort-error.js
1127
+ // node_modules/gaxios/node_modules/node-fetch/src/errors/abort-error.js
1086
1128
  var AbortError;
1087
1129
  var init_abort_error = __esm({
1088
- "packages/core/node_modules/node-fetch/src/errors/abort-error.js"() {
1130
+ "node_modules/gaxios/node_modules/node-fetch/src/errors/abort-error.js"() {
1089
1131
  init_esbuild_shims();
1090
1132
  init_base();
1091
1133
  AbortError = class extends FetchBaseError {
@@ -1099,12 +1141,12 @@ var init_abort_error = __esm({
1099
1141
  }
1100
1142
  });
1101
1143
 
1102
- // packages/core/node_modules/node-fetch/src/index.js
1144
+ // node_modules/gaxios/node_modules/node-fetch/src/index.js
1103
1145
  import http2 from "node:http";
1104
1146
  import https from "node:https";
1105
1147
  import zlib from "node:zlib";
1106
1148
  import Stream2, { PassThrough as PassThrough2, pipeline as pump } from "node:stream";
1107
- import { Buffer as Buffer2 } from "node:buffer";
1149
+ import { Buffer as Buffer3 } from "node:buffer";
1108
1150
  async function fetch(url, options_) {
1109
1151
  return new Promise((resolve, reject) => {
1110
1152
  const request = new Request(url, options_);
@@ -1335,7 +1377,7 @@ async function fetch(url, options_) {
1335
1377
  });
1336
1378
  }
1337
1379
  function fixResponseChunkedTransferBadEnding(request, errorCallback) {
1338
- const LAST_CHUNK = Buffer2.from("0\r\n\r\n");
1380
+ const LAST_CHUNK = Buffer3.from("0\r\n\r\n");
1339
1381
  let isChunkedTransfer = false;
1340
1382
  let properLastChunkReceived = false;
1341
1383
  let previousChunk;
@@ -1352,9 +1394,9 @@ function fixResponseChunkedTransferBadEnding(request, errorCallback) {
1352
1394
  }
1353
1395
  }, "onSocketClose");
1354
1396
  const onData = /* @__PURE__ */ __name((buf) => {
1355
- properLastChunkReceived = Buffer2.compare(buf.slice(-5), LAST_CHUNK) === 0;
1397
+ properLastChunkReceived = Buffer3.compare(buf.slice(-5), LAST_CHUNK) === 0;
1356
1398
  if (!properLastChunkReceived && previousChunk) {
1357
- properLastChunkReceived = Buffer2.compare(previousChunk.slice(-3), LAST_CHUNK.slice(0, 3)) === 0 && Buffer2.compare(buf.slice(-2), LAST_CHUNK.slice(3)) === 0;
1399
+ properLastChunkReceived = Buffer3.compare(previousChunk.slice(-3), LAST_CHUNK.slice(0, 3)) === 0 && Buffer3.compare(buf.slice(-2), LAST_CHUNK.slice(3)) === 0;
1358
1400
  }
1359
1401
  previousChunk = buf;
1360
1402
  }, "onData");
@@ -1368,7 +1410,7 @@ function fixResponseChunkedTransferBadEnding(request, errorCallback) {
1368
1410
  }
1369
1411
  var supportedSchemas;
1370
1412
  var init_src = __esm({
1371
- "packages/core/node_modules/node-fetch/src/index.js"() {
1413
+ "node_modules/gaxios/node_modules/node-fetch/src/index.js"() {
1372
1414
  init_esbuild_shims();
1373
1415
  init_dist();
1374
1416
  init_body();
@@ -402,7 +402,6 @@ import {
402
402
  getSpecifierKind,
403
403
  getStructuredResponse,
404
404
  getStructuredResponseFromParts,
405
- getSubagentSystemReminder,
406
405
  getThoughtText,
407
406
  getWelcomeBackState,
408
407
  globalMemoryManager,
@@ -607,11 +606,11 @@ import {
607
606
  writeWorktreeSession,
608
607
  writeWorktreeSessionMarker,
609
608
  zaiProvider
610
- } from "./chunk-7JHNICSJ.js";
609
+ } from "./chunk-2KEXT6RB.js";
611
610
  import "./chunk-24YKA2DA.js";
612
611
  import "./chunk-O4PICXES.js";
613
612
  import "./chunk-TW522KN6.js";
614
- import "./chunk-TI4GXJKO.js";
613
+ import "./chunk-7TQVELRB.js";
615
614
  import "./chunk-AKBFRR6J.js";
616
615
  import {
617
616
  InputFormat,
@@ -619,7 +618,7 @@ import {
619
618
  } from "./chunk-MLZQVCF3.js";
620
619
  import {
621
620
  runSideQuery
622
- } from "./chunk-FEENTAB2.js";
621
+ } from "./chunk-6O244QKR.js";
623
622
  import {
624
623
  buildSkillLlmContent
625
624
  } from "./chunk-EY6BDW7Y.js";
@@ -635,6 +634,7 @@ import {
635
634
  PermissionMode,
636
635
  PermissionRequestHookOutput,
637
636
  PostCompactTrigger,
637
+ PostToolBatchHookOutput,
638
638
  PostToolUseFailureHookOutput,
639
639
  PostToolUseHookOutput,
640
640
  PreCompactTrigger,
@@ -645,7 +645,7 @@ import {
645
645
  createHookOutput,
646
646
  detectTodoChanges,
647
647
  getHookKey
648
- } from "./chunk-HAQCNXSG.js";
648
+ } from "./chunk-RQW7WUJR.js";
649
649
  import {
650
650
  DEFAULT_FILE_FILTERING_OPTIONS,
651
651
  DEFAULT_MEMORY_FILE_FILTERING_OPTIONS
@@ -730,6 +730,7 @@ import {
730
730
  addToolResultAttributes,
731
731
  addToolSchemaAttributes,
732
732
  addUserPromptAttributes,
733
+ clearDetailedSpanState,
733
734
  countFileLines,
734
735
  createContentGenerator,
735
736
  createContentGeneratorConfig,
@@ -849,8 +850,8 @@ import {
849
850
  uiTelemetryService,
850
851
  validateModelConfig,
851
852
  windowsCodePageToEncoding
852
- } from "./chunk-OXXOAIGT.js";
853
- import "./chunk-J5VCSWPA.js";
853
+ } from "./chunk-C5CUHYSM.js";
854
+ import "./chunk-3PJXIDKI.js";
854
855
  import "./chunk-UWCTAVOD.js";
855
856
  import "./chunk-W57YDFU5.js";
856
857
  import {
@@ -879,7 +880,7 @@ import {
879
880
  isAutoMemPath
880
881
  } from "./chunk-NQ3E7YLD.js";
881
882
  import "./chunk-OJFMTECH.js";
882
- import "./chunk-UQRYJQBE.js";
883
+ import "./chunk-SOGUPKP6.js";
883
884
  import {
884
885
  ToolDisplayNames,
885
886
  ToolDisplayNamesMigration,
@@ -899,7 +900,7 @@ import {
899
900
  ToolErrorType,
900
901
  hasCycleInSchema,
901
902
  isTool
902
- } from "./chunk-R2B65CAN.js";
903
+ } from "./chunk-JKUAX6UT.js";
903
904
  import {
904
905
  CredentialsClearRequiredError,
905
906
  QWEN_CREDENTIAL_FILE_MODE,
@@ -936,7 +937,7 @@ import {
936
937
  getUnsupportedImageFormatWarning,
937
938
  isSupportedImageMimeType,
938
939
  redactProxyCredentials
939
- } from "./chunk-U2K6HDUJ.js";
940
+ } from "./chunk-QVJ33ZBG.js";
940
941
  import {
941
942
  CAPPED_DEFAULT_MAX_TOKENS,
942
943
  DEFAULT_OUTPUT_TOKEN_LIMIT,
@@ -952,7 +953,7 @@ import {
952
953
  summarizeOpenAIWireRequest,
953
954
  tokenLimit
954
955
  } from "./chunk-TDZCEIK6.js";
955
- import "./chunk-HCSJIOLR.js";
956
+ import "./chunk-BNESGOSJ.js";
956
957
  import "./chunk-SZOEIL6S.js";
957
958
  import "./chunk-5IFG2VC4.js";
958
959
  import {
@@ -1278,6 +1279,7 @@ export {
1278
1279
  PermissionMode,
1279
1280
  PermissionRequestHookOutput,
1280
1281
  PostCompactTrigger,
1282
+ PostToolBatchHookOutput,
1281
1283
  PostToolUseFailureHookOutput,
1282
1284
  PostToolUseHookOutput,
1283
1285
  PreCompactTrigger,
@@ -1421,6 +1423,7 @@ export {
1421
1423
  clearAutoMemoryRootCache,
1422
1424
  clearCacheSafeParams,
1423
1425
  clearCachedCredentialFile,
1426
+ clearDetailedSpanState,
1424
1427
  clearGoalTerminalObserver,
1425
1428
  clearQwenCredentials,
1426
1429
  clearRuntimeStatus,
@@ -1621,7 +1624,6 @@ export {
1621
1624
  getSpecifierKind,
1622
1625
  getStructuredResponse,
1623
1626
  getStructuredResponseFromParts,
1624
- getSubagentSystemReminder,
1625
1627
  getSupportedImageFormatsString,
1626
1628
  getSystemEncoding,
1627
1629
  getThoughtText,
@@ -3,9 +3,9 @@
3
3
  import {
4
4
  STRUCTURED_OUTPUT_REDACTED_ARGS,
5
5
  SyntheticOutputTool
6
- } from "./chunk-UQRYJQBE.js";
6
+ } from "./chunk-SOGUPKP6.js";
7
7
  import "./chunk-6RQTH7UQ.js";
8
- import "./chunk-R2B65CAN.js";
8
+ import "./chunk-JKUAX6UT.js";
9
9
  import "./chunk-ACBGEKB7.js";
10
10
  import "./chunk-QWSRH265.js";
11
11
  import "./chunk-A4BMJM77.js";
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  BaseDeclarativeTool,
9
9
  BaseToolInvocation
10
- } from "./chunk-R2B65CAN.js";
10
+ } from "./chunk-JKUAX6UT.js";
11
11
  import "./chunk-ACBGEKB7.js";
12
12
  import "./chunk-QWSRH265.js";
13
13
  import {
@@ -2,7 +2,7 @@
2
2
  "use strict";
3
3
  import {
4
4
  detectTodoChanges
5
- } from "./chunk-HAQCNXSG.js";
5
+ } from "./chunk-RQW7WUJR.js";
6
6
  import {
7
7
  ToolDisplayNames,
8
8
  ToolNames
@@ -10,7 +10,7 @@ import {
10
10
  import {
11
11
  BaseDeclarativeTool,
12
12
  BaseToolInvocation
13
- } from "./chunk-R2B65CAN.js";
13
+ } from "./chunk-JKUAX6UT.js";
14
14
  import {
15
15
  atomicWriteFile
16
16
  } from "./chunk-HX3JRTWL.js";
@@ -211,6 +211,12 @@ The assistant did not use the todo list because this is a single command executi
211
211
  </reasoning>
212
212
  </example>
213
213
 
214
+ ## Planning with Todos
215
+
216
+ Before breaking work into low-level edits, use the todo list to reflect the overall approach at a meaningful level (for example: investigate, design, implement, verify). This helps maintain a global view of the task instead of jumping between isolated local changes.
217
+
218
+ When new information changes your understanding of the task, update the todo structure to reflect the revised plan rather than only appending isolated follow-up items. The todo list should continue to represent the current overall strategy.
219
+
214
220
  ## Task States and Management
215
221
 
216
222
  1. **Task States**: Use these states to track progress: