@qwen-code/qwen-code 0.17.0 → 0.17.1-nightly.20260605.715266537

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 (96) hide show
  1. package/README.md +4 -6
  2. package/bundled/qc-helper/docs/configuration/_meta.ts +0 -3
  3. package/bundled/qc-helper/docs/configuration/settings.md +13 -12
  4. package/bundled/qc-helper/docs/configuration/themes.md +39 -0
  5. package/bundled/qc-helper/docs/features/approval-mode.md +26 -22
  6. package/bundled/qc-helper/docs/features/commands.md +68 -12
  7. package/bundled/qc-helper/docs/features/status-line.md +168 -32
  8. package/bundled/qc-helper/docs/overview.md +4 -4
  9. package/bundled/qc-helper/docs/quickstart.md +4 -4
  10. package/bundled/qc-helper/docs/reference/keyboard-shortcuts.md +16 -0
  11. package/bundled/qc-helper/docs/support/Uninstall.md +19 -1
  12. package/bundled/qc-helper/docs/support/troubleshooting.md +2 -1
  13. package/bundled/simplify/SKILL.md +123 -0
  14. package/chunks/{agent-KVXFGIOU.js → agent-4FVU4KTV.js} +14 -13
  15. package/chunks/{anthropicContentGenerator-L4HWAOIV.js → anthropicContentGenerator-M45RXZVS.js} +48 -5
  16. package/chunks/{askUserQuestion-DC6OWQIL.js → askUserQuestion-TGRD7FNQ.js} +1 -1
  17. package/chunks/{ca-NMZFEGAU.js → ca-KQG7FQ66.js} +3 -2
  18. package/chunks/{chunk-QEXSIXLX.js → chunk-2TYI54WV.js} +10 -10
  19. package/chunks/{chunk-J5VCSWPA.js → chunk-3PJXIDKI.js} +1153 -103
  20. package/chunks/{chunk-EMVEDSVZ.js → chunk-6O244QKR.js} +43 -3
  21. package/chunks/chunk-7TQVELRB.js +10412 -0
  22. package/chunks/{chunk-HCSJIOLR.js → chunk-BNESGOSJ.js} +7450 -3516
  23. package/chunks/{chunk-MEN6IEKX.js → chunk-FE63ZVOJ.js} +467 -1225
  24. package/chunks/{chunk-7YJIR2FX.js → chunk-G4K6P5KN.js} +8 -15
  25. package/chunks/{chunk-7NNBQRV7.js → chunk-G5O36LE7.js} +4 -4
  26. package/chunks/chunk-HX3JRTWL.js +393 -0
  27. package/chunks/{chunk-7EHPK6TK.js → chunk-HX6FMLTN.js} +4016 -2390
  28. package/chunks/{chunk-V7LMZR76.js → chunk-JBSYXHJF.js} +1 -1
  29. package/chunks/{chunk-R2B65CAN.js → chunk-JKUAX6UT.js} +0 -1
  30. package/chunks/chunk-MRO43B25.js +30 -0
  31. package/chunks/{chunk-ODPVJ6JJ.js → chunk-OJFMTECH.js} +6 -1
  32. package/chunks/{chunk-U2K6HDUJ.js → chunk-QVJ33ZBG.js} +23 -13
  33. package/chunks/{chunk-JI7FDD65.js → chunk-RMV5WBPJ.js} +9 -6
  34. package/chunks/{chunk-HAQCNXSG.js → chunk-RQW7WUJR.js} +15 -0
  35. package/chunks/{chunk-UQRYJQBE.js → chunk-SOGUPKP6.js} +1 -1
  36. package/chunks/{chunk-6NUSWV4M.js → chunk-TDZCEIK6.js} +2 -0
  37. package/chunks/{chunk-4O2TWJK4.js → chunk-VXRAB7OD.js} +183 -40
  38. package/chunks/{computer-use-2J5ZXEER.js → computer-use-NAHQPV2L.js} +24 -6
  39. package/chunks/{contextCommand-52NTEMCT.js → contextCommand-S2IYA435.js} +16 -15
  40. package/chunks/{cron-create-FXRORK2U.js → cron-create-V3UK2SJN.js} +1 -1
  41. package/chunks/{cron-delete-D24IN6CA.js → cron-delete-MANALPCP.js} +1 -1
  42. package/chunks/{cron-list-SMOX26SL.js → cron-list-UDIYK3B3.js} +1 -1
  43. package/chunks/{de-OIMT3OMI.js → de-M7DMOGRF.js} +3 -2
  44. package/chunks/{dist-GRQVFL3G.js → dist-ATAKC63R.js} +1 -1
  45. package/chunks/{edit-RLFUTT5F.js → edit-M2D5U2DH.js} +14 -13
  46. package/chunks/{en-2IFZ5THF.js → en-HQCTYKH3.js} +10 -2
  47. package/chunks/{enter-worktree-CYRAPQKJ.js → enter-worktree-BKGLU2VM.js} +14 -13
  48. package/chunks/{exit-worktree-WQZM72QD.js → exit-worktree-52DBQY3G.js} +14 -13
  49. package/chunks/{exitPlanMode-STFEBQZE.js → exitPlanMode-ABAAU2MJ.js} +14 -13
  50. package/chunks/{fr-PVELSHTV.js → fr-P6RNV2DM.js} +3 -2
  51. package/chunks/{geminiContentGenerator-DIV32SKO.js → geminiContentGenerator-DMFNFNR6.js} +4 -3
  52. package/chunks/{glob-N3XO4RVI.js → glob-WGPO6CFA.js} +14 -13
  53. package/chunks/{grep-AK5MP7P3.js → grep-ZFMRWZHA.js} +14 -13
  54. package/chunks/{ja-P5TK5GNN.js → ja-3LKTVQYI.js} +3 -2
  55. package/chunks/{ls-7FYQHPWF.js → ls-T4SVZWR6.js} +1 -1
  56. package/chunks/{lsp-DKG34USR.js → lsp-U4ZQLNIS.js} +1 -1
  57. package/chunks/{monitor-IVBWJZEZ.js → monitor-O7SAHYZP.js} +17 -14
  58. package/chunks/{multipart-parser-IXGBIOIN.js → multipart-parser-AJ4WASWR.js} +2 -2
  59. package/chunks/{notebook-edit-PM46AXFS.js → notebook-edit-RUK64SB7.js} +14 -13
  60. package/chunks/{openaiContentGenerator-4QXCH7L2.js → openaiContentGenerator-FVMI3JGH.js} +11 -10
  61. package/chunks/{pt-A5GHG66T.js → pt-NYLMFXLZ.js} +3 -2
  62. package/chunks/{qwenContentGenerator-BLXQIIMX.js → qwenContentGenerator-MSPTETYX.js} +16 -15
  63. package/chunks/{qwenOAuth2-BAN2EGSH.js → qwenOAuth2-LKXG7XVO.js} +2 -1
  64. package/chunks/{read-file-IEQAS3EZ.js → read-file-BGTNQULN.js} +8 -7
  65. package/chunks/{ripGrep-HQO7IE4C.js → ripGrep-KHJ3XVCN.js} +14 -13
  66. package/chunks/{ru-66XKB4QX.js → ru-DAPNZMKR.js} +3 -2
  67. package/chunks/scheduler-M4L7NUXP.js +306 -0
  68. package/chunks/{send-message-ZL7CDM7K.js → send-message-GFYV7WLL.js} +1 -1
  69. package/chunks/{serve-CYRAK4UM.js → serve-XEELTD3H.js} +43 -30
  70. package/chunks/{shell-UZBGNO2Q.js → shell-GOAFKYUF.js} +14 -13
  71. package/chunks/{skill-JVC34QYN.js → skill-NXAKYLN2.js} +9 -8
  72. package/chunks/{src-TMOD5X6F.js → src-7XL4G4DC.js} +88 -46
  73. package/chunks/{src-FOODLH7B.js → src-NNMCNSLM.js} +41 -15
  74. package/chunks/{syntheticOutput-U3YJ3GOO.js → syntheticOutput-DM43O6TY.js} +2 -2
  75. package/chunks/{task-stop-NPUI3YBA.js → task-stop-WKP5OB3V.js} +1 -1
  76. package/chunks/{todoWrite-Y6F7YEIM.js → todoWrite-GHL6DCLP.js} +14 -3
  77. package/chunks/{tool-search-P7PRPOW3.js → tool-search-SYJWV73G.js} +8 -7
  78. package/chunks/{web-fetch-XWEK4TFX.js → web-fetch-SZIV74ZX.js} +2 -2
  79. package/chunks/{write-file-SIIEUON5.js → write-file-P57D3GPL.js} +16 -15
  80. package/chunks/{zh-OB5P2ZDO.js → zh-POCNK2L6.js} +10 -2
  81. package/chunks/{zh-TW-3ND6DQRX.js → zh-TW-APM56ATJ.js} +10 -2
  82. package/cli.js +42686 -56906
  83. package/locales/ca.js +4 -2
  84. package/locales/de.js +4 -2
  85. package/locales/en.js +17 -2
  86. package/locales/fr.js +4 -2
  87. package/locales/ja.js +4 -2
  88. package/locales/pt.js +4 -2
  89. package/locales/ru.js +4 -2
  90. package/locales/zh-TW.js +16 -2
  91. package/locales/zh.js +16 -2
  92. package/package.json +2 -2
  93. package/chunks/chunk-EM6ETG2K.js +0 -60
  94. package/chunks/chunk-TI4GXJKO.js +0 -4277
  95. package/chunks/multipart-parser-3QWGTLK3.js +0 -384
  96. package/chunks/src-IPWIHNMI.js +0 -1406
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-KQIKOTQJ.js";
7
7
  import {
8
8
  RequestTokenizer
9
- } from "./chunk-V7LMZR76.js";
9
+ } from "./chunk-JBSYXHJF.js";
10
10
  import {
11
11
  Blob,
12
12
  File,
@@ -16,7 +16,7 @@ import {
16
16
  import {
17
17
  buildRuntimeFetchOptions,
18
18
  redactProxyError
19
- } from "./chunk-U2K6HDUJ.js";
19
+ } from "./chunk-QVJ33ZBG.js";
20
20
  import {
21
21
  CAPPED_DEFAULT_MAX_TOKENS,
22
22
  DEFAULT_TIMEOUT,
@@ -25,11 +25,11 @@ import {
25
25
  runtimeDiagnostics,
26
26
  safeJsonParse,
27
27
  tokenLimit
28
- } from "./chunk-6NUSWV4M.js";
28
+ } from "./chunk-TDZCEIK6.js";
29
29
  import {
30
30
  FinishReason,
31
31
  GenerateContentResponse
32
- } from "./chunk-HCSJIOLR.js";
32
+ } from "./chunk-BNESGOSJ.js";
33
33
  import "./chunk-SZOEIL6S.js";
34
34
  import "./chunk-5IFG2VC4.js";
35
35
  import {
@@ -4842,7 +4842,12 @@ var AnthropicContentGenerator = class {
4842
4842
  } catch (error) {
4843
4843
  throw redactProxyError(error);
4844
4844
  }
4845
- return this.processStream(this.redactStreamErrors(stream));
4845
+ return this.processStreamWithEmptyFallback(
4846
+ this.redactStreamErrors(stream),
4847
+ anthropicRequest,
4848
+ request.config?.abortSignal,
4849
+ headers
4850
+ );
4846
4851
  }
4847
4852
  async countTokens(request) {
4848
4853
  try {
@@ -5320,6 +5325,44 @@ var AnthropicContentGenerator = class {
5320
5325
  }
5321
5326
  }
5322
5327
  }
5328
+ // Some Anthropic-compatible gateways close the SSE stream with HTTP 200
5329
+ // but emit no assistant content or stop reason (e.g. billing / quota
5330
+ // limits hit mid-proxy). When that happens we probe once with the same
5331
+ // request in non-streaming mode so the real provider error surfaces
5332
+ // instead of the generic "stream ended without a finish reason".
5333
+ async *processStreamWithEmptyFallback(stream, fallbackRequest, abortSignal, headers) {
5334
+ let hasAssistantPayload = false;
5335
+ let hasFinishReason = false;
5336
+ for await (const chunk of this.processStream(stream)) {
5337
+ const candidates = chunk.candidates ?? [];
5338
+ hasFinishReason ||= candidates.some(
5339
+ (candidate) => candidate.finishReason !== void 0
5340
+ );
5341
+ hasAssistantPayload ||= candidates.some(
5342
+ (candidate) => candidate.content?.parts?.some(
5343
+ (part) => part.text || part.thought || part.thoughtSignature || part.functionCall
5344
+ )
5345
+ );
5346
+ yield chunk;
5347
+ }
5348
+ if (hasAssistantPayload || hasFinishReason) {
5349
+ return;
5350
+ }
5351
+ debugLogger.warn(
5352
+ "Anthropic stream ended without assistant payload or finish reason; probing once with a non-streaming request to surface provider errors."
5353
+ );
5354
+ let response;
5355
+ try {
5356
+ runtimeDiagnostics.recordAnthropicWireRequest(fallbackRequest);
5357
+ response = await this.client.messages.create(fallbackRequest, {
5358
+ signal: abortSignal,
5359
+ ...headers ? { headers } : {}
5360
+ });
5361
+ yield this.converter.convertAnthropicResponseToGemini(response);
5362
+ } catch (error) {
5363
+ throw redactProxyError(error);
5364
+ }
5365
+ }
5323
5366
  buildGeminiChunk(part, responseId, model, finishReason, usageMetadata) {
5324
5367
  const response = new GenerateContentResponse();
5325
5368
  response.responseId = responseId;
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BaseDeclarativeTool,
10
10
  BaseToolInvocation
11
- } from "./chunk-R2B65CAN.js";
11
+ } from "./chunk-JKUAX6UT.js";
12
12
  import {
13
13
  createDebugLogger
14
14
  } from "./chunk-ACBGEKB7.js";
@@ -21,6 +21,7 @@ var ca_default = {
21
21
  "@src/myFile.ts": "@src/myFile.ts",
22
22
  "Shell mode": "Mode shell",
23
23
  "YOLO mode": "Mode YOLO",
24
+ "Auto mode": "Mode auto",
24
25
  "plan mode": "mode de planificaci\xF3",
25
26
  "auto-accept edits": "acceptaci\xF3 autom\xE0tica de canvis",
26
27
  "Accepting edits": "Acceptant canvis",
@@ -359,7 +360,7 @@ var ca_default = {
359
360
  Text: "Text",
360
361
  JSON: "JSON",
361
362
  Plan: "Planificaci\xF3",
362
- Default: "Per defecte",
363
+ "Ask permissions": "Demanar permisos",
363
364
  "Auto Edit": "Edici\xF3 autom\xE0tica",
364
365
  YOLO: "YOLO",
365
366
  "toggle vim mode on/off": "activar/desactivar el mode Vim",
@@ -630,10 +631,10 @@ var ca_default = {
630
631
  // Ordres - Mode d'aprovació
631
632
  // ============================================================================
632
633
  "Tool Approval Mode": "Mode d'aprovaci\xF3 d'eines",
633
- "{{mode}} mode": "Mode {{mode}}",
634
634
  "Analyze only, do not modify files or execute commands": "Analitzar nom\xE9s, sense modificar fitxers ni executar ordres",
635
635
  "Require approval for file edits or shell commands": "Requerir aprovaci\xF3 per a edicions de fitxers o ordres shell",
636
636
  "Automatically approve file edits": "Aprovar autom\xE0ticament les edicions de fitxers",
637
+ "Use classifier to automatically approve safe tool calls": "Utilitzar el classificador per aprovar autom\xE0ticament les crides segures a eines",
637
638
  "Automatically approve all tools": "Aprovar autom\xE0ticament totes les eines",
638
639
  "Workspace approval mode exists and takes priority. User-level change will have no effect.": "Existeix un mode d'aprovaci\xF3 de l'espai de treball i t\xE9 prioritat. El canvi a nivell d'usuari no tindr\xE0 cap efecte.",
639
640
  "Apply To": "Aplicar a",
@@ -2,7 +2,7 @@
2
2
  "use strict";
3
3
  import {
4
4
  resolveBundleDir
5
- } from "./chunk-7EHPK6TK.js";
5
+ } from "./chunk-HX6FMLTN.js";
6
6
  import {
7
7
  Storage
8
8
  } from "./chunk-ACBGEKB7.js";
@@ -169,15 +169,15 @@ init_esbuild_shims();
169
169
 
170
170
  // import("./locales/**/*.js") in packages/cli/src/i18n/index.ts
171
171
  var globImport_locales_js = __glob({
172
- "./locales/ca.js": () => import("./ca-NMZFEGAU.js"),
173
- "./locales/de.js": () => import("./de-OIMT3OMI.js"),
174
- "./locales/en.js": () => import("./en-2IFZ5THF.js"),
175
- "./locales/fr.js": () => import("./fr-PVELSHTV.js"),
176
- "./locales/ja.js": () => import("./ja-P5TK5GNN.js"),
177
- "./locales/pt.js": () => import("./pt-A5GHG66T.js"),
178
- "./locales/ru.js": () => import("./ru-66XKB4QX.js"),
179
- "./locales/zh-TW.js": () => import("./zh-TW-3ND6DQRX.js"),
180
- "./locales/zh.js": () => import("./zh-OB5P2ZDO.js")
172
+ "./locales/ca.js": () => import("./ca-KQG7FQ66.js"),
173
+ "./locales/de.js": () => import("./de-M7DMOGRF.js"),
174
+ "./locales/en.js": () => import("./en-HQCTYKH3.js"),
175
+ "./locales/fr.js": () => import("./fr-P6RNV2DM.js"),
176
+ "./locales/ja.js": () => import("./ja-3LKTVQYI.js"),
177
+ "./locales/pt.js": () => import("./pt-NYLMFXLZ.js"),
178
+ "./locales/ru.js": () => import("./ru-DAPNZMKR.js"),
179
+ "./locales/zh-TW.js": () => import("./zh-TW-APM56ATJ.js"),
180
+ "./locales/zh.js": () => import("./zh-POCNK2L6.js")
181
181
  });
182
182
 
183
183
  // packages/cli/src/i18n/index.ts