@qwen-code/qwen-code 0.18.1 → 0.18.3-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 (74) hide show
  1. package/README.md +2 -1
  2. package/bundled/qc-helper/docs/common-workflow.md +4 -4
  3. package/bundled/qc-helper/docs/configuration/model-providers.md +1 -1
  4. package/bundled/qc-helper/docs/configuration/settings.md +77 -77
  5. package/bundled/qc-helper/docs/features/channels/feishu.md +16 -0
  6. package/bundled/qc-helper/docs/features/mcp.md +1 -1
  7. package/bundled/qc-helper/docs/features/sub-agents.md +3 -3
  8. package/bundled/qc-helper/docs/qwen-serve.md +24 -12
  9. package/bundled/qc-helper/docs/reference/keyboard-shortcuts.md +30 -30
  10. package/bundled/review/SKILL.md +10 -4
  11. package/bundled/simplify/SKILL.md +1 -1
  12. package/chunks/{agent-XT7NHZ5H.js → agent-X42UKL4M.js} +5 -5
  13. package/chunks/{agent-headless-LNRE63ZL.js → agent-headless-7FQ7NX6G.js} +5 -5
  14. package/chunks/{anthropicContentGenerator-DCI26OQF.js → anthropicContentGenerator-KLBHYGH6.js} +1 -1
  15. package/chunks/{askUserQuestion-ITYUTWLR.js → askUserQuestion-QPZXR3UO.js} +1 -1
  16. package/chunks/{chunk-BXYRCW2C.js → chunk-3U2ZIZDP.js} +10 -5
  17. package/chunks/{chunk-XZTNBSMW.js → chunk-6X6PTTH3.js} +1 -1
  18. package/chunks/{chunk-7KPZFE5A.js → chunk-C64WAJOC.js} +1 -1
  19. package/chunks/{chunk-WJ3SND6W.js → chunk-JHSQY3J5.js} +2 -2
  20. package/chunks/{chunk-3NRO6NHX.js → chunk-MN5RAXVB.js} +3 -3
  21. package/chunks/{chunk-RON7LFNH.js → chunk-P5CE42XM.js} +6 -6
  22. package/chunks/{chunk-Y7KMDUEP.js → chunk-QP4R5FTG.js} +1 -1
  23. package/chunks/{chunk-QILTEBWS.js → chunk-RTTAC5VW.js} +1 -1
  24. package/chunks/{chunk-IS7UA4W3.js → chunk-U62OHNQR.js} +4 -4
  25. package/chunks/{chunk-6T7Y7USE.js → chunk-VFW7VM7A.js} +1354 -1028
  26. package/chunks/{chunk-HQUWWSSP.js → chunk-VIEIRAK3.js} +1 -1
  27. package/chunks/{chunk-HED55F43.js → chunk-VU6A2OBJ.js} +15 -5
  28. package/chunks/{chunk-DHZREJTG.js → chunk-YJDVHAGL.js} +1 -1
  29. package/chunks/{chunk-A2ZIEEGJ.js → chunk-ZNUMXPNK.js} +592 -43
  30. package/chunks/{computer-use-4YX3JGBV.js → computer-use-WHPP33BI.js} +5 -5
  31. package/chunks/{contextCommand-KS2H7MW5.js → contextCommand-WP7BU7IY.js} +7 -7
  32. package/chunks/{cron-create-CAPUKK7I.js → cron-create-DQKRQMCP.js} +1 -1
  33. package/chunks/{cron-delete-G3KAR26Q.js → cron-delete-DOFPHFTI.js} +1 -1
  34. package/chunks/{cron-list-ZA4ZIUS5.js → cron-list-RCVOO3CB.js} +1 -1
  35. package/chunks/{dist-VEGFONCF.js → dist-2UCAYOX7.js} +2 -2
  36. package/chunks/{dist-X4EXN7W6.js → dist-33LHH26D.js} +1 -1
  37. package/chunks/{dist-YLS6NI7H.js → dist-KF43SZZV.js} +1 -1
  38. package/chunks/{dist-7YWFWOCJ.js → dist-UH7CYT7F.js} +2 -2
  39. package/chunks/{edit-2ARPEO4B.js → edit-V22UFE4F.js} +7 -9
  40. package/chunks/{enter-worktree-IXNXNAW5.js → enter-worktree-HYS5U3QO.js} +5 -5
  41. package/chunks/{enterPlanMode-TAKAGAYP.js → enterPlanMode-UR2KPB4Y.js} +5 -5
  42. package/chunks/{exit-worktree-LHTRV7ML.js → exit-worktree-JNIUZIZ3.js} +5 -5
  43. package/chunks/{exitPlanMode-MK5UAITL.js → exitPlanMode-NJY3Y6XQ.js} +11 -9
  44. package/chunks/{geminiContentGenerator-HFJIGO77.js → geminiContentGenerator-SDUMCYHD.js} +1 -1
  45. package/chunks/{glob-I2USLUSC.js → glob-Z6UYFZCH.js} +5 -5
  46. package/chunks/{grep-WBIF7THR.js → grep-WHWDB2HD.js} +5 -5
  47. package/chunks/{ls-2R5RHLX5.js → ls-TRD77UTS.js} +1 -1
  48. package/chunks/{lsp-XKH6ZIAN.js → lsp-2VFWQPZS.js} +1 -1
  49. package/chunks/{monitor-WU7UFATU.js → monitor-F4V4YEE4.js} +5 -5
  50. package/chunks/{notebook-edit-KUHYPXEM.js → notebook-edit-P45433KC.js} +6 -6
  51. package/chunks/{openaiContentGenerator-5PLHYJQL.js → openaiContentGenerator-DRXB5MSN.js} +5 -5
  52. package/chunks/{qwenContentGenerator-TSKW73KY.js → qwenContentGenerator-3XZMXLHX.js} +7 -7
  53. package/chunks/{read-file-VIPF2PS6.js → read-file-WQPROSSJ.js} +3 -3
  54. package/chunks/{ripGrep-XLIZTYE7.js → ripGrep-EAE7GW6T.js} +5 -5
  55. package/chunks/{scheduler-O66SLJGU.js → scheduler-WCMRRLYM.js} +5 -5
  56. package/chunks/{send-message-CTME7DXD.js → send-message-QZOC5GA2.js} +1 -1
  57. package/chunks/{serve-BWOLYT62.js → serve-BVDNMP5D.js} +709 -26
  58. package/chunks/{shell-XE7UYKOO.js → shell-W4LWEOQL.js} +5 -5
  59. package/chunks/{skill-RZWM6XMC.js → skill-VTJI4OPM.js} +3 -3
  60. package/chunks/{src-L5P7K4MH.js → src-E42UOH5I.js} +11 -5
  61. package/chunks/{syntheticOutput-ZJGSU7OQ.js → syntheticOutput-WJSUK4SZ.js} +2 -2
  62. package/chunks/{task-create-EE6JEM7G.js → task-create-GGSC27HO.js} +2 -2
  63. package/chunks/{task-list-EESYAC65.js → task-list-EDHHHSK4.js} +1 -1
  64. package/chunks/{task-stop-XZVCFFYY.js → task-stop-WR5PDVZY.js} +1 -1
  65. package/chunks/{task-update-EIO4HNE3.js → task-update-UR7NUHBV.js} +2 -2
  66. package/chunks/{team-create-R2H7Y3SG.js → team-create-OAGMFFDJ.js} +5 -5
  67. package/chunks/{team-delete-A7LXPGV7.js → team-delete-FC33URJK.js} +1 -1
  68. package/chunks/{todoWrite-VRKSGAWM.js → todoWrite-GO2ME7ZV.js} +1 -1
  69. package/chunks/{tool-search-USSQMTMS.js → tool-search-XZPD5EPI.js} +3 -3
  70. package/chunks/{web-fetch-GHAZUA54.js → web-fetch-NLLATYIL.js} +2 -2
  71. package/chunks/{workflow-5LNNLNUR.js → workflow-AIC3XOX5.js} +249 -24
  72. package/chunks/{write-file-2I7HP24C.js → write-file-6GIRRW43.js} +6 -6
  73. package/cli.js +1320 -536
  74. package/package.json +2 -2
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-OFEVLU4C.js";
6
6
  import {
7
7
  SchemaValidator
8
- } from "./chunk-A2ZIEEGJ.js";
8
+ } from "./chunk-ZNUMXPNK.js";
9
9
  import {
10
10
  init_esbuild_shims
11
11
  } from "./chunk-A4BMJM77.js";
@@ -380,6 +380,15 @@ var SessionRouter = class {
380
380
  return `${channelName}:${senderId}:${chatId}`;
381
381
  }
382
382
  }
383
+ /**
384
+ * Sender-scoped key prefix for by-sender (no chatId) scans. The trailing
385
+ * ':' delimiter ensures a sender id matches as a whole segment — without it
386
+ * sender "bob" would also match another sender "bobby"
387
+ * (key `${channelName}:bobby:${chatId}`).
388
+ */
389
+ senderPrefix(channelName, senderId) {
390
+ return `${channelName}:${senderId}:`;
391
+ }
383
392
  async resolve(channelName, senderId, chatId, threadId, cwd) {
384
393
  const key = this.routingKey(channelName, senderId, chatId, threadId);
385
394
  const existing = this.toSession.get(key);
@@ -398,11 +407,12 @@ var SessionRouter = class {
398
407
  return this.toTarget.get(sessionId);
399
408
  }
400
409
  hasSession(channelName, senderId, chatId) {
401
- const key = chatId ? this.routingKey(channelName, senderId, chatId) : `${channelName}:${senderId}`;
402
- if (chatId)
403
- return this.toSession.has(key);
410
+ if (chatId) {
411
+ return this.toSession.has(this.routingKey(channelName, senderId, chatId));
412
+ }
413
+ const prefix = this.senderPrefix(channelName, senderId);
404
414
  for (const k of this.toSession.keys()) {
405
- if (k.startsWith(`${channelName}:${senderId}`))
415
+ if (k.startsWith(prefix))
406
416
  return true;
407
417
  }
408
418
  return false;
@@ -418,7 +428,7 @@ var SessionRouter = class {
418
428
  if (sessionId)
419
429
  removedIds.push(sessionId);
420
430
  } else {
421
- const prefix = `${channelName}:${senderId}`;
431
+ const prefix = this.senderPrefix(channelName, senderId);
422
432
  for (const k of [...this.toSession.keys()]) {
423
433
  if (k.startsWith(prefix)) {
424
434
  const sessionId = this.deleteByKey(k);
@@ -11,7 +11,7 @@ import {
11
11
  BaseToolInvocation,
12
12
  ToolDisplayNames,
13
13
  ToolNames
14
- } from "./chunk-A2ZIEEGJ.js";
14
+ } from "./chunk-ZNUMXPNK.js";
15
15
  import {
16
16
  init_esbuild_shims
17
17
  } from "./chunk-A4BMJM77.js";