@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
@@ -1,384 +0,0 @@
1
- // Force strict mode and setup for ESM
2
- "use strict";
3
- import {
4
- FormData,
5
- file_default,
6
- init_esm_min,
7
- init_from
8
- } from "./chunk-4CGOWHKM.js";
9
- import "./chunk-2PSWA5ID.js";
10
- import {
11
- init_esbuild_shims
12
- } from "./chunk-A4BMJM77.js";
13
- import {
14
- __esm,
15
- __name
16
- } from "./chunk-J2S4EL5Y.js";
17
-
18
- // packages/core/node_modules/node-fetch/src/utils/multipart-parser.js
19
- function _fileName(headerValue) {
20
- const m = headerValue.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);
21
- if (!m) {
22
- return;
23
- }
24
- const match = m[2] || m[3] || "";
25
- let filename = match.slice(match.lastIndexOf("\\") + 1);
26
- filename = filename.replace(/%22/g, '"');
27
- filename = filename.replace(/&#(\d{4});/g, (m2, code) => {
28
- return String.fromCharCode(code);
29
- });
30
- return filename;
31
- }
32
- async function toFormData(Body, ct) {
33
- if (!/multipart/i.test(ct)) {
34
- throw new TypeError("Failed to fetch");
35
- }
36
- const m = ct.match(/boundary=(?:"([^"]+)"|([^;]+))/i);
37
- if (!m) {
38
- throw new TypeError("no or bad content-type header, no multipart boundary");
39
- }
40
- const parser = new MultipartParser(m[1] || m[2]);
41
- let headerField;
42
- let headerValue;
43
- let entryValue;
44
- let entryName;
45
- let contentType;
46
- let filename;
47
- const entryChunks = [];
48
- const formData = new FormData();
49
- const onPartData = /* @__PURE__ */ __name((ui8a) => {
50
- entryValue += decoder.decode(ui8a, { stream: true });
51
- }, "onPartData");
52
- const appendToFile = /* @__PURE__ */ __name((ui8a) => {
53
- entryChunks.push(ui8a);
54
- }, "appendToFile");
55
- const appendFileToFormData = /* @__PURE__ */ __name(() => {
56
- const file = new file_default(entryChunks, filename, { type: contentType });
57
- formData.append(entryName, file);
58
- }, "appendFileToFormData");
59
- const appendEntryToFormData = /* @__PURE__ */ __name(() => {
60
- formData.append(entryName, entryValue);
61
- }, "appendEntryToFormData");
62
- const decoder = new TextDecoder("utf-8");
63
- decoder.decode();
64
- parser.onPartBegin = function() {
65
- parser.onPartData = onPartData;
66
- parser.onPartEnd = appendEntryToFormData;
67
- headerField = "";
68
- headerValue = "";
69
- entryValue = "";
70
- entryName = "";
71
- contentType = "";
72
- filename = null;
73
- entryChunks.length = 0;
74
- };
75
- parser.onHeaderField = function(ui8a) {
76
- headerField += decoder.decode(ui8a, { stream: true });
77
- };
78
- parser.onHeaderValue = function(ui8a) {
79
- headerValue += decoder.decode(ui8a, { stream: true });
80
- };
81
- parser.onHeaderEnd = function() {
82
- headerValue += decoder.decode();
83
- headerField = headerField.toLowerCase();
84
- if (headerField === "content-disposition") {
85
- const m2 = headerValue.match(/\bname=("([^"]*)"|([^()<>@,;:\\"/[\]?={}\s\t]+))/i);
86
- if (m2) {
87
- entryName = m2[2] || m2[3] || "";
88
- }
89
- filename = _fileName(headerValue);
90
- if (filename) {
91
- parser.onPartData = appendToFile;
92
- parser.onPartEnd = appendFileToFormData;
93
- }
94
- } else if (headerField === "content-type") {
95
- contentType = headerValue;
96
- }
97
- headerValue = "";
98
- headerField = "";
99
- };
100
- for await (const chunk of Body) {
101
- parser.write(chunk);
102
- }
103
- parser.end();
104
- return formData;
105
- }
106
- var s, S, f, F, LF, CR, SPACE, HYPHEN, COLON, A, Z, lower, noop, MultipartParser;
107
- var init_multipart_parser = __esm({
108
- "packages/core/node_modules/node-fetch/src/utils/multipart-parser.js"() {
109
- init_esbuild_shims();
110
- init_from();
111
- init_esm_min();
112
- s = 0;
113
- S = {
114
- START_BOUNDARY: s++,
115
- HEADER_FIELD_START: s++,
116
- HEADER_FIELD: s++,
117
- HEADER_VALUE_START: s++,
118
- HEADER_VALUE: s++,
119
- HEADER_VALUE_ALMOST_DONE: s++,
120
- HEADERS_ALMOST_DONE: s++,
121
- PART_DATA_START: s++,
122
- PART_DATA: s++,
123
- END: s++
124
- };
125
- f = 1;
126
- F = {
127
- PART_BOUNDARY: f,
128
- LAST_BOUNDARY: f *= 2
129
- };
130
- LF = 10;
131
- CR = 13;
132
- SPACE = 32;
133
- HYPHEN = 45;
134
- COLON = 58;
135
- A = 97;
136
- Z = 122;
137
- lower = /* @__PURE__ */ __name((c) => c | 32, "lower");
138
- noop = /* @__PURE__ */ __name(() => {
139
- }, "noop");
140
- MultipartParser = class {
141
- static {
142
- __name(this, "MultipartParser");
143
- }
144
- /**
145
- * @param {string} boundary
146
- */
147
- constructor(boundary) {
148
- this.index = 0;
149
- this.flags = 0;
150
- this.onHeaderEnd = noop;
151
- this.onHeaderField = noop;
152
- this.onHeadersEnd = noop;
153
- this.onHeaderValue = noop;
154
- this.onPartBegin = noop;
155
- this.onPartData = noop;
156
- this.onPartEnd = noop;
157
- this.boundaryChars = {};
158
- boundary = "\r\n--" + boundary;
159
- const ui8a = new Uint8Array(boundary.length);
160
- for (let i = 0; i < boundary.length; i++) {
161
- ui8a[i] = boundary.charCodeAt(i);
162
- this.boundaryChars[ui8a[i]] = true;
163
- }
164
- this.boundary = ui8a;
165
- this.lookbehind = new Uint8Array(this.boundary.length + 8);
166
- this.state = S.START_BOUNDARY;
167
- }
168
- /**
169
- * @param {Uint8Array} data
170
- */
171
- write(data) {
172
- let i = 0;
173
- const length_ = data.length;
174
- let previousIndex = this.index;
175
- let { lookbehind, boundary, boundaryChars, index, state, flags } = this;
176
- const boundaryLength = this.boundary.length;
177
- const boundaryEnd = boundaryLength - 1;
178
- const bufferLength = data.length;
179
- let c;
180
- let cl;
181
- const mark = /* @__PURE__ */ __name((name) => {
182
- this[name + "Mark"] = i;
183
- }, "mark");
184
- const clear = /* @__PURE__ */ __name((name) => {
185
- delete this[name + "Mark"];
186
- }, "clear");
187
- const callback = /* @__PURE__ */ __name((callbackSymbol, start, end, ui8a) => {
188
- if (start === void 0 || start !== end) {
189
- this[callbackSymbol](ui8a && ui8a.subarray(start, end));
190
- }
191
- }, "callback");
192
- const dataCallback = /* @__PURE__ */ __name((name, clear2) => {
193
- const markSymbol = name + "Mark";
194
- if (!(markSymbol in this)) {
195
- return;
196
- }
197
- if (clear2) {
198
- callback(name, this[markSymbol], i, data);
199
- delete this[markSymbol];
200
- } else {
201
- callback(name, this[markSymbol], data.length, data);
202
- this[markSymbol] = 0;
203
- }
204
- }, "dataCallback");
205
- for (i = 0; i < length_; i++) {
206
- c = data[i];
207
- switch (state) {
208
- case S.START_BOUNDARY:
209
- if (index === boundary.length - 2) {
210
- if (c === HYPHEN) {
211
- flags |= F.LAST_BOUNDARY;
212
- } else if (c !== CR) {
213
- return;
214
- }
215
- index++;
216
- break;
217
- } else if (index - 1 === boundary.length - 2) {
218
- if (flags & F.LAST_BOUNDARY && c === HYPHEN) {
219
- state = S.END;
220
- flags = 0;
221
- } else if (!(flags & F.LAST_BOUNDARY) && c === LF) {
222
- index = 0;
223
- callback("onPartBegin");
224
- state = S.HEADER_FIELD_START;
225
- } else {
226
- return;
227
- }
228
- break;
229
- }
230
- if (c !== boundary[index + 2]) {
231
- index = -2;
232
- }
233
- if (c === boundary[index + 2]) {
234
- index++;
235
- }
236
- break;
237
- case S.HEADER_FIELD_START:
238
- state = S.HEADER_FIELD;
239
- mark("onHeaderField");
240
- index = 0;
241
- // falls through
242
- case S.HEADER_FIELD:
243
- if (c === CR) {
244
- clear("onHeaderField");
245
- state = S.HEADERS_ALMOST_DONE;
246
- break;
247
- }
248
- index++;
249
- if (c === HYPHEN) {
250
- break;
251
- }
252
- if (c === COLON) {
253
- if (index === 1) {
254
- return;
255
- }
256
- dataCallback("onHeaderField", true);
257
- state = S.HEADER_VALUE_START;
258
- break;
259
- }
260
- cl = lower(c);
261
- if (cl < A || cl > Z) {
262
- return;
263
- }
264
- break;
265
- case S.HEADER_VALUE_START:
266
- if (c === SPACE) {
267
- break;
268
- }
269
- mark("onHeaderValue");
270
- state = S.HEADER_VALUE;
271
- // falls through
272
- case S.HEADER_VALUE:
273
- if (c === CR) {
274
- dataCallback("onHeaderValue", true);
275
- callback("onHeaderEnd");
276
- state = S.HEADER_VALUE_ALMOST_DONE;
277
- }
278
- break;
279
- case S.HEADER_VALUE_ALMOST_DONE:
280
- if (c !== LF) {
281
- return;
282
- }
283
- state = S.HEADER_FIELD_START;
284
- break;
285
- case S.HEADERS_ALMOST_DONE:
286
- if (c !== LF) {
287
- return;
288
- }
289
- callback("onHeadersEnd");
290
- state = S.PART_DATA_START;
291
- break;
292
- case S.PART_DATA_START:
293
- state = S.PART_DATA;
294
- mark("onPartData");
295
- // falls through
296
- case S.PART_DATA:
297
- previousIndex = index;
298
- if (index === 0) {
299
- i += boundaryEnd;
300
- while (i < bufferLength && !(data[i] in boundaryChars)) {
301
- i += boundaryLength;
302
- }
303
- i -= boundaryEnd;
304
- c = data[i];
305
- }
306
- if (index < boundary.length) {
307
- if (boundary[index] === c) {
308
- if (index === 0) {
309
- dataCallback("onPartData", true);
310
- }
311
- index++;
312
- } else {
313
- index = 0;
314
- }
315
- } else if (index === boundary.length) {
316
- index++;
317
- if (c === CR) {
318
- flags |= F.PART_BOUNDARY;
319
- } else if (c === HYPHEN) {
320
- flags |= F.LAST_BOUNDARY;
321
- } else {
322
- index = 0;
323
- }
324
- } else if (index - 1 === boundary.length) {
325
- if (flags & F.PART_BOUNDARY) {
326
- index = 0;
327
- if (c === LF) {
328
- flags &= ~F.PART_BOUNDARY;
329
- callback("onPartEnd");
330
- callback("onPartBegin");
331
- state = S.HEADER_FIELD_START;
332
- break;
333
- }
334
- } else if (flags & F.LAST_BOUNDARY) {
335
- if (c === HYPHEN) {
336
- callback("onPartEnd");
337
- state = S.END;
338
- flags = 0;
339
- } else {
340
- index = 0;
341
- }
342
- } else {
343
- index = 0;
344
- }
345
- }
346
- if (index > 0) {
347
- lookbehind[index - 1] = c;
348
- } else if (previousIndex > 0) {
349
- const _lookbehind = new Uint8Array(lookbehind.buffer, lookbehind.byteOffset, lookbehind.byteLength);
350
- callback("onPartData", 0, previousIndex, _lookbehind);
351
- previousIndex = 0;
352
- mark("onPartData");
353
- i--;
354
- }
355
- break;
356
- case S.END:
357
- break;
358
- default:
359
- throw new Error(`Unexpected state entered: ${state}`);
360
- }
361
- }
362
- dataCallback("onHeaderField");
363
- dataCallback("onHeaderValue");
364
- dataCallback("onPartData");
365
- this.index = index;
366
- this.state = state;
367
- this.flags = flags;
368
- }
369
- end() {
370
- if (this.state === S.HEADER_FIELD_START && this.index === 0 || this.state === S.PART_DATA && this.index === this.boundary.length) {
371
- this.onPartEnd();
372
- } else if (this.state !== S.END) {
373
- throw new Error("MultipartParser.end(): stream ended unexpectedly");
374
- }
375
- }
376
- };
377
- __name(_fileName, "_fileName");
378
- __name(toFormData, "toFormData");
379
- }
380
- });
381
- init_multipart_parser();
382
- export {
383
- toFormData
384
- };