@qwen-code/qwen-code 0.18.0-preview.2 → 0.18.1-nightly.20260616.a68b2e1e7

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 (145) hide show
  1. package/bundled/loop/SKILL.md +2 -1
  2. package/bundled/qc-helper/docs/_meta.ts +1 -0
  3. package/bundled/qc-helper/docs/common-workflow.md +4 -4
  4. package/bundled/qc-helper/docs/configuration/auth.md +1 -1
  5. package/bundled/qc-helper/docs/configuration/model-providers.md +13 -6
  6. package/bundled/qc-helper/docs/configuration/settings.md +90 -89
  7. package/bundled/qc-helper/docs/features/approval-mode.md +10 -14
  8. package/bundled/qc-helper/docs/features/commands.md +33 -11
  9. package/bundled/qc-helper/docs/features/dual-output.md +37 -3
  10. package/bundled/qc-helper/docs/features/followup-suggestions.md +2 -2
  11. package/bundled/qc-helper/docs/features/skills.md +29 -3
  12. package/bundled/qc-helper/docs/features/sub-agents.md +34 -12
  13. package/bundled/qc-helper/docs/qwen-serve-deploy-local.md +221 -0
  14. package/bundled/qc-helper/docs/qwen-serve.md +250 -31
  15. package/bundled/qc-helper/docs/reference/keyboard-shortcuts.md +30 -30
  16. package/chunks/{agent-QB7TZ4HW.js → agent-PXMT2XR5.js} +25 -24
  17. package/chunks/agent-headless-SY7VJUHV.js +51 -0
  18. package/chunks/{anthropicContentGenerator-M45EVVRM.js → anthropicContentGenerator-DCI26OQF.js} +7 -7
  19. package/chunks/{askUserQuestion-WM2KHM3K.js → askUserQuestion-NDNFGC35.js} +45 -3
  20. package/chunks/{ca-BARBRL6N.js → ca-RK4QPLIX.js} +18 -1
  21. package/chunks/{chunk-CNSMKPK6.js → chunk-26QELEL2.js} +1 -1
  22. package/chunks/{chunk-CWV3SJZS.js → chunk-3NRO6NHX.js} +2 -2
  23. package/chunks/{chunk-BNESGOSJ.js → chunk-55ZMG67I.js} +1 -1
  24. package/chunks/{chunk-2ZTWI7KH.js → chunk-6WPY6ES3.js} +62 -22
  25. package/chunks/{chunk-ZK4AMNIU.js → chunk-A3OEZT2F.js} +1294 -314
  26. package/chunks/{chunk-HXJE7VOG.js → chunk-ABRZC6FA.js} +1074 -144
  27. package/chunks/{chunk-JUGRPQAB.js → chunk-B4ZF2KSI.js} +1 -1
  28. package/chunks/chunk-BJ5HQ23U.js +178 -0
  29. package/chunks/{chunk-ICOI4E4S.js → chunk-CPVI5J2L.js} +101 -23
  30. package/chunks/{chunk-GX7VH5JQ.js → chunk-FIQECJTQ.js} +1 -1
  31. package/chunks/{chunk-QCG6KPNM.js → chunk-H4ZDM3N6.js} +18039 -11622
  32. package/chunks/{chunk-SZOEIL6S.js → chunk-H6BD2ELD.js} +1 -0
  33. package/chunks/{chunk-JXAZUMDW.js → chunk-HA2UEYZP.js} +7 -4
  34. package/chunks/{chunk-MVIVIPCU.js → chunk-IDYDPBBN.js} +361 -583
  35. package/chunks/{chunk-JVQOQ3OU.js → chunk-IQHSD7K5.js} +1 -1
  36. package/chunks/{chunk-CNHFPN7T.js → chunk-JZFEL3RB.js} +1 -1
  37. package/chunks/{chunk-UAMOBVVW.js → chunk-LXYWINWF.js} +1 -1
  38. package/chunks/{chunk-P4J26VDS.js → chunk-LYRSMKLS.js} +2 -2
  39. package/chunks/{chunk-Y7R6H6FT.js → chunk-LYSND7KR.js} +9 -4
  40. package/chunks/{chunk-AVW55ZCO.js → chunk-M5PJ5QAF.js} +37 -16
  41. package/chunks/{chunk-LR62TEET.js → chunk-NNIYWQIS.js} +1 -1
  42. package/chunks/chunk-OMX7CUOE.js +356 -0
  43. package/chunks/{chunk-HV3ZZ7G4.js → chunk-OT6JA3KQ.js} +2 -2
  44. package/chunks/{chunk-C6WMLUNB.js → chunk-QP4R5FTG.js} +1 -1
  45. package/chunks/chunk-QQDPRDVW.js +25 -0
  46. package/chunks/chunk-SFRV6BGY.js +243 -0
  47. package/chunks/{chunk-NW5QBUYO.js → chunk-TSBXGR73.js} +14 -14
  48. package/chunks/{chunk-7YKXFA3D.js → chunk-UOB6KPGG.js} +11 -11
  49. package/chunks/{chunk-USE2VQ5P.js → chunk-VU6A2OBJ.js} +41 -6
  50. package/chunks/{chunk-PAEBHDIO.js → chunk-VXHYMZXW.js} +1 -1
  51. package/chunks/{chunk-HGJPQK33.js → chunk-WPTCDQN6.js} +188 -534
  52. package/chunks/{chunk-WFVXF3OM.js → chunk-Z2Z3GUXZ.js} +1 -0
  53. package/chunks/{chunk-KC6ZMJ5X.js → chunk-ZMIBJS45.js} +1 -1
  54. package/chunks/chunk-ZOFNJQNJ.js +607 -0
  55. package/chunks/computer-use-7SEQDSHB.js +2052 -0
  56. package/chunks/contextCommand-KM5OWV65.js +53 -0
  57. package/chunks/cron-create-7CXEAJ2K.js +184 -0
  58. package/chunks/{cron-delete-ZGUXWBTG.js → cron-delete-2FQYYNQ6.js} +28 -5
  59. package/chunks/{cron-list-QNNZGMN3.js → cron-list-QCAJ73XE.js} +40 -7
  60. package/chunks/{de-YGKK2BC4.js → de-FGPM4KW5.js} +18 -1
  61. package/chunks/{devtools-IXE4UP72.js → devtools-FM6GJPYG.js} +1 -1
  62. package/chunks/{dist-R2SXPG74.js → dist-2UCAYOX7.js} +2 -2
  63. package/chunks/{dist-TE5QKMGR.js → dist-33LHH26D.js} +1 -1
  64. package/chunks/{dist-BXDUQ2QY.js → dist-KF43SZZV.js} +1 -1
  65. package/chunks/{dist-ZMQ4TXD5.js → dist-PF2IYSMD.js} +2 -2
  66. package/chunks/{edit-6UBTS2J5.js → edit-BMUKPLA7.js} +27 -28
  67. package/chunks/{en-HSQQNQUB.js → en-VP6XPGEC.js} +9 -2
  68. package/chunks/{enter-worktree-NN7LIXCM.js → enter-worktree-LXJ5WJ5A.js} +25 -24
  69. package/chunks/enterPlanMode-QWRZ54ZF.js +159 -0
  70. package/chunks/{exit-worktree-GGSS5KIE.js → exit-worktree-5HTQPNZO.js} +25 -24
  71. package/chunks/exitPlanMode-5WQAXNDA.js +743 -0
  72. package/chunks/{fr-JXBKPJKQ.js → fr-ATYBVCLT.js} +18 -1
  73. package/chunks/{geminiContentGenerator-I4H2NLJG.js → geminiContentGenerator-CAKHT5YE.js} +7 -7
  74. package/chunks/{getMachineId-bsd-F7GNPTER.js → getMachineId-bsd-4CASPIU4.js} +1 -1
  75. package/chunks/{getMachineId-darwin-T73DJL27.js → getMachineId-darwin-HPQPEMZR.js} +1 -1
  76. package/chunks/{getMachineId-linux-MKQTFPQM.js → getMachineId-linux-AUARKYHL.js} +1 -1
  77. package/chunks/{getMachineId-unsupported-MUR5KOQE.js → getMachineId-unsupported-S32ZDA2T.js} +1 -1
  78. package/chunks/{getMachineId-win-CDYFC6ZM.js → getMachineId-win-4EFLHYIJ.js} +1 -1
  79. package/chunks/{glob-OLCX57MD.js → glob-5DN6NSCD.js} +25 -24
  80. package/chunks/{grep-7HXIMDOW.js → grep-BJILOLCD.js} +37 -30
  81. package/chunks/{ja-TGPZSP2B.js → ja-W2QEA2OI.js} +18 -1
  82. package/chunks/{keychain-token-storage-LB46DAEK.js → keychain-token-storage-QSTRHKKL.js} +3 -3
  83. package/chunks/{ls-6PEZUK6O.js → ls-XVGXRYWD.js} +4 -4
  84. package/chunks/{lsp-JZSJOVT7.js → lsp-S6SHPULC.js} +3 -3
  85. package/chunks/{monitor-SQO7MVAV.js → monitor-SUEMSRN3.js} +25 -24
  86. package/chunks/{notebook-edit-72L3EBAL.js → notebook-edit-6F6Z5P6U.js} +26 -25
  87. package/chunks/{openaiContentGenerator-FTR7CDWF.js → openaiContentGenerator-DO27LL6O.js} +15 -15
  88. package/chunks/{pt-TIBG6BIO.js → pt-ZKEWJFBW.js} +18 -1
  89. package/chunks/{qwenContentGenerator-U5UFQ566.js → qwenContentGenerator-DQLGLQSH.js} +27 -26
  90. package/chunks/{qwenOAuth2-EFSECGHF.js → qwenOAuth2-KK433U33.js} +6 -5
  91. package/chunks/{read-file-UA64EEQC.js → read-file-3TBLYTOQ.js} +11 -11
  92. package/chunks/ripGrep-3INYT3QV.js +49 -0
  93. package/chunks/{ru-JBCHCK4L.js → ru-VEKTPJ74.js} +18 -1
  94. package/chunks/{scheduler-VBASHOCA.js → scheduler-23KQW6CX.js} +25 -24
  95. package/chunks/{send-message-OYJZ5TPG.js → send-message-SMNR5DBG.js} +3 -3
  96. package/chunks/{serve-A7E2OJDR.js → serve-Y5E4LKUI.js} +13164 -3840
  97. package/chunks/{shell-3NFOT6F5.js → shell-4H6XQXVY.js} +25 -24
  98. package/chunks/{skill-RA5YUREY.js → skill-SE6FECZR.js} +64 -113
  99. package/chunks/{src-NFCMARMT.js → src-76DUBH3A.js} +176 -44
  100. package/chunks/{syntheticOutput-DETQ2YM6.js → syntheticOutput-KMNF7YG6.js} +4 -4
  101. package/chunks/{task-create-Y3ZKTJIG.js → task-create-LIJHK75G.js} +8 -7
  102. package/chunks/{task-list-ONXJ3I3A.js → task-list-S4GNSILM.js} +7 -6
  103. package/chunks/{task-stop-UHDC4N5B.js → task-stop-3GBRYJHM.js} +3 -3
  104. package/chunks/{task-update-TCNOU3P5.js → task-update-F3UTVJMS.js} +21 -9
  105. package/chunks/{team-create-6SR4OVRG.js → team-create-Q5DTDDH4.js} +28 -26
  106. package/chunks/{team-delete-EJ4U4DDP.js → team-delete-54434EB7.js} +9 -6
  107. package/chunks/{todoWrite-TEYDRS5L.js → todoWrite-4ENGSBUX.js} +5 -5
  108. package/chunks/{tool-search-OD435A3X.js → tool-search-ABZMSDTU.js} +11 -11
  109. package/chunks/{web-fetch-6W67H5PO.js → web-fetch-RHZMF3MP.js} +5 -5
  110. package/chunks/workflow-NEMDQB75.js +1414 -0
  111. package/chunks/{write-file-475L5OPP.js → write-file-VAEHZPSL.js} +26 -25
  112. package/chunks/{zh-VCLWO26Y.js → zh-OIXDDQHB.js} +10 -3
  113. package/chunks/{zh-TW-G3HFHVVT.js → zh-TW-6YFNCKTA.js} +10 -3
  114. package/cli-entry.js +19 -0
  115. package/cli.js +11155 -6656
  116. package/examples/starter/QWEN.md +30 -0
  117. package/examples/starter/README.md +59 -0
  118. package/examples/starter/agents/diary.md +86 -0
  119. package/examples/starter/commands/writing/polish.md +13 -0
  120. package/examples/starter/example.ts +64 -0
  121. package/examples/starter/package.json +18 -0
  122. package/examples/starter/qwen-extension.json +12 -0
  123. package/examples/starter/skills/synonyms/SKILL.md +48 -0
  124. package/examples/starter/tsconfig.json +13 -0
  125. package/fzfWorker.js +1083 -0
  126. package/locales/ca.js +20 -2
  127. package/locales/de.js +21 -2
  128. package/locales/en.js +13 -4
  129. package/locales/fr.js +22 -2
  130. package/locales/ja.js +22 -2
  131. package/locales/pt.js +21 -2
  132. package/locales/ru.js +20 -2
  133. package/locales/zh-TW.js +11 -4
  134. package/locales/zh.js +11 -4
  135. package/package.json +5 -3
  136. package/chunks/agent-headless-APVHH7QM.js +0 -50
  137. package/chunks/chunk-AJIR24J2.js +0 -59
  138. package/chunks/chunk-SKBPNJEW.js +0 -45
  139. package/chunks/chunk-XBFVXFB2.js +0 -216
  140. package/chunks/computer-use-B7VIUI7F.js +0 -825
  141. package/chunks/contextCommand-63RZ3O5R.js +0 -52
  142. package/chunks/cron-create-FI5LJVUS.js +0 -140
  143. package/chunks/exitPlanMode-H323NHB2.js +0 -235
  144. package/chunks/ripGrep-WSYCWZVK.js +0 -48
  145. package/chunks/workflow-62DHH4EO.js +0 -708
package/locales/ca.js CHANGED
@@ -847,8 +847,6 @@ export default {
847
847
  "No es pot crear una bifurcació mentre hi ha una resposta o una crida a una eina en curs. Espereu que acabi o resolgueu la crida a l'eina pendent.",
848
848
  'Cannot fork before the first conversation turn.':
849
849
  'No es pot crear una bifurcació abans del primer torn de conversa.',
850
- 'The /fork command requires the fork feature gate. Set QWEN_CODE_ENABLE_FORK_SUBAGENT=1 to enable it.':
851
- 'L’ordre /fork requereix el feature gate de fork. Definiu QWEN_CODE_ENABLE_FORK_SUBAGENT=1 per activar-lo.',
852
850
  'The agent tool is unavailable; cannot fork.':
853
851
  "L'eina d'agent no està disponible; no es pot crear una bifurcació.",
854
852
  'Failed to launch fork: {{error}}':
@@ -1496,6 +1494,26 @@ export default {
1496
1494
  'Found {{count}} TOML command files:':
1497
1495
  "S'han trobat {{count}} fitxers d'ordres TOML:",
1498
1496
  'Current tasks': 'Tasques actuals',
1497
+ 'Background tasks': 'Tasques en segon pla',
1498
+ 'No tasks currently running': 'No hi ha cap tasca en execució',
1499
+ 'No entry to show.': 'No hi ha cap entrada per mostrar.',
1500
+ 'needs approval': 'necessita aprovació',
1501
+ 'Background agent needs approval': "L'agent en segon pla necessita aprovació",
1502
+ 'Approve or deny the request above': 'Aprova o denega la sol·licitud de dalt',
1503
+ Running: 'En execució',
1504
+ Paused: 'En pausa',
1505
+ Completed: 'Completada',
1506
+ Failed: 'Fallida',
1507
+ Stopped: 'Aturada',
1508
+ Shell: 'Shell',
1509
+ Monitor: 'Monitor',
1510
+ Command: 'Ordre',
1511
+ Dream: 'Dream',
1512
+ '[dream] memory consolidation': '[dream] consolidació de memòria',
1513
+ '[dream] memory consolidation (reviewing {{count}} session)':
1514
+ '[dream] consolidació de memòria (revisant {{count}} sessió)',
1515
+ '[dream] memory consolidation (reviewing {{count}} sessions)':
1516
+ '[dream] consolidació de memòria (revisant {{count}} sessions)',
1499
1517
  '... and {{count}} more': '... i {{count}} més',
1500
1518
  'The TOML format is deprecated. Would you like to migrate them to Markdown format?':
1501
1519
  'El format TOML és obsolet. Voleu migrar-los al format Markdown?',
package/locales/de.js CHANGED
@@ -804,8 +804,6 @@ export default {
804
804
  'Während eine Antwort oder ein Tool-Aufruf läuft, kann kein Hintergrund-Fork erstellt werden. Warten Sie, bis der Vorgang abgeschlossen ist, oder bearbeiten Sie den ausstehenden Tool-Aufruf.',
805
805
  'Cannot fork before the first conversation turn.':
806
806
  'Vor der ersten Gesprächsrunde kann kein Fork erstellt werden.',
807
- 'The /fork command requires the fork feature gate. Set QWEN_CODE_ENABLE_FORK_SUBAGENT=1 to enable it.':
808
- 'Der Befehl /fork erfordert das Fork-Feature-Gate. Setzen Sie QWEN_CODE_ENABLE_FORK_SUBAGENT=1, um es zu aktivieren.',
809
807
  'The agent tool is unavailable; cannot fork.':
810
808
  'Das Agent-Tool ist nicht verfügbar; Fork kann nicht gestartet werden.',
811
809
  'Failed to launch fork: {{error}}':
@@ -1429,6 +1427,27 @@ export default {
1429
1427
  'Found {{count}} TOML command files:':
1430
1428
  '{{count}} TOML-Befehlsdateien gefunden:',
1431
1429
  'Current tasks': 'Aktuelle Aufgaben',
1430
+ 'Background tasks': 'Hintergrundaufgaben',
1431
+ 'No tasks currently running': 'Derzeit laufen keine Aufgaben',
1432
+ 'No entry to show.': 'Kein Eintrag zum Anzeigen.',
1433
+ 'needs approval': 'wartet auf Genehmigung',
1434
+ 'Background agent needs approval': 'Hintergrund-Agent wartet auf Genehmigung',
1435
+ 'Approve or deny the request above':
1436
+ 'Genehmigen oder lehnen Sie die obige Anfrage ab',
1437
+ Running: 'Läuft',
1438
+ Paused: 'Pausiert',
1439
+ Completed: 'Abgeschlossen',
1440
+ Failed: 'Fehlgeschlagen',
1441
+ Stopped: 'Gestoppt',
1442
+ Shell: 'Shell',
1443
+ Monitor: 'Monitor',
1444
+ Command: 'Befehl',
1445
+ Dream: 'Dream',
1446
+ '[dream] memory consolidation': '[dream] Speicher-Konsolidierung',
1447
+ '[dream] memory consolidation (reviewing {{count}} session)':
1448
+ '[dream] Speicher-Konsolidierung (prüft {{count}} Sitzung)',
1449
+ '[dream] memory consolidation (reviewing {{count}} sessions)':
1450
+ '[dream] Speicher-Konsolidierung (prüft {{count}} Sitzungen)',
1432
1451
  '... and {{count}} more': '... und {{count}} weitere',
1433
1452
  'The TOML format is deprecated. Would you like to migrate them to Markdown format?':
1434
1453
  'Das TOML-Format ist veraltet. Möchten Sie sie ins Markdown-Format migrieren?',
package/locales/en.js CHANGED
@@ -115,6 +115,8 @@ export default {
115
115
  'List available Qwen Code tools. Usage: /tools [desc]',
116
116
  'Open the skills panel (browse, search, toggle, pick).':
117
117
  'Open the skills panel (browse, search, toggle, pick).',
118
+ 'Move this session to a new working directory':
119
+ 'Move this session to a new working directory',
118
120
  // SkillsManagerDialog (the panel `/skills` opens)
119
121
  'Manage Skills': 'Manage Skills',
120
122
  'Skills configuration saved.': 'Skills configuration saved.',
@@ -224,12 +226,14 @@ export default {
224
226
  'Clear conversation history and free up context',
225
227
  'Compresses the context by replacing it with a summary.':
226
228
  'Compresses the context by replacing it with a summary.',
229
+ 'Fast context compression without AI. Strips old tool outputs and thinking parts.':
230
+ 'Fast context compression without AI. Strips old tool outputs and thinking parts.',
227
231
  'open full Qwen Code documentation in your browser':
228
232
  'open full Qwen Code documentation in your browser',
229
233
  'Configuration not available.': 'Configuration not available.',
230
234
  'Connect an LLM provider': 'Connect an LLM provider',
231
- 'Copy the last AI response to clipboard (/copy N for Nth-latest)':
232
- 'Copy the last AI response to clipboard (/copy N for Nth-latest)',
235
+ 'Copy to clipboard: reply, code (by lang), LaTeX, or Mermaid. N = Nth-latest message, index = block number':
236
+ 'Copy to clipboard: reply, code (by lang), LaTeX, or Mermaid. N = Nth-latest message, index = block number',
233
237
  'Show working-tree change stats versus HEAD':
234
238
  'Show working-tree change stats versus HEAD',
235
239
  'Could not determine current working directory.':
@@ -620,6 +624,7 @@ export default {
620
624
  'The name of the extension to update.',
621
625
  'Either an extension name or --all must be provided':
622
626
  'Either an extension name or --all must be provided',
627
+ 'List installed extensions': 'List installed extensions',
623
628
  'Lists installed extensions.': 'Lists installed extensions.',
624
629
  'Path:': 'Path:',
625
630
  'Source:': 'Source:',
@@ -889,8 +894,6 @@ export default {
889
894
  'Cannot fork while a response or tool call is in progress. Wait for it to finish or resolve the pending tool call.',
890
895
  'Cannot fork before the first conversation turn.':
891
896
  'Cannot fork before the first conversation turn.',
892
- 'The /fork command requires the fork feature gate. Set QWEN_CODE_ENABLE_FORK_SUBAGENT=1 to enable it.':
893
- 'The /fork command requires the fork feature gate. Set QWEN_CODE_ENABLE_FORK_SUBAGENT=1 to enable it.',
894
897
  'The agent tool is unavailable; cannot fork.':
895
898
  'The agent tool is unavailable; cannot fork.',
896
899
  'Failed to launch fork: {{error}}': 'Failed to launch fork: {{error}}',
@@ -973,6 +976,8 @@ export default {
973
976
  'No managed auto-memory entries matched: {{query}}',
974
977
  'Consolidate managed auto-memory topic files.':
975
978
  'Consolidate managed auto-memory topic files.',
979
+ 'Import MCP servers from Claude configs':
980
+ 'Import MCP servers from Claude configs',
976
981
  'Open MCP management dialog': 'Open MCP management dialog',
977
982
  'Could not retrieve tool registry.': 'Could not retrieve tool registry.',
978
983
  "Successfully authenticated and refreshed tools for '{{name}}'.":
@@ -1538,6 +1543,9 @@ export default {
1538
1543
  'Background tasks': 'Background tasks',
1539
1544
  'No tasks currently running': 'No tasks currently running',
1540
1545
  'No entry to show.': 'No entry to show.',
1546
+ 'needs approval': 'needs approval',
1547
+ 'Background agent needs approval': 'Background agent needs approval',
1548
+ 'Approve or deny the request above': 'Approve or deny the request above',
1541
1549
  Running: 'Running',
1542
1550
  Paused: 'Paused',
1543
1551
  Completed: 'Completed',
@@ -2025,6 +2033,7 @@ export default {
2025
2033
  'Loading suggestions...': 'Loading suggestions...',
2026
2034
  'Show per-item context usage breakdown.':
2027
2035
  'Show per-item context usage breakdown.',
2036
+ 'No compression needed.': 'No compression needed.',
2028
2037
 
2029
2038
  // ============================================================================
2030
2039
  // Stats
package/locales/fr.js CHANGED
@@ -868,8 +868,6 @@ export default {
868
868
  "Impossible de créer un fork pendant qu'une réponse ou un appel d'outil est en cours. Attendez la fin ou traitez l'appel d'outil en attente.",
869
869
  'Cannot fork before the first conversation turn.':
870
870
  'Impossible de créer un fork avant le premier tour de conversation.',
871
- 'The /fork command requires the fork feature gate. Set QWEN_CODE_ENABLE_FORK_SUBAGENT=1 to enable it.':
872
- 'La commande /fork nécessite le feature gate fork. Définissez QWEN_CODE_ENABLE_FORK_SUBAGENT=1 pour l’activer.',
873
871
  'The agent tool is unavailable; cannot fork.':
874
872
  "L'outil agent est indisponible ; impossible de créer un fork.",
875
873
  'Failed to launch fork: {{error}}': 'Échec du lancement du fork : {{error}}',
@@ -1491,6 +1489,28 @@ export default {
1491
1489
  'Found {{count}} TOML command files:':
1492
1490
  'Trouvé {{count}} fichiers de commande TOML :',
1493
1491
  'Current tasks': 'Tâches actuelles',
1492
+ 'Background tasks': 'Tâches en arrière-plan',
1493
+ 'No tasks currently running': 'Aucune tâche en cours',
1494
+ 'No entry to show.': 'Aucune entrée à afficher.',
1495
+ 'needs approval': 'nécessite une approbation',
1496
+ 'Background agent needs approval':
1497
+ "L'agent en arrière-plan nécessite une approbation",
1498
+ 'Approve or deny the request above':
1499
+ 'Approuvez ou refusez la demande ci-dessus',
1500
+ Running: 'En cours',
1501
+ Paused: 'En pause',
1502
+ Completed: 'Terminé',
1503
+ Failed: 'Échec',
1504
+ Stopped: 'Arrêté',
1505
+ Shell: 'Shell',
1506
+ Monitor: 'Moniteur',
1507
+ Command: 'Commande',
1508
+ Dream: 'Dream',
1509
+ '[dream] memory consolidation': '[dream] consolidation de la mémoire',
1510
+ '[dream] memory consolidation (reviewing {{count}} session)':
1511
+ '[dream] consolidation de la mémoire (analyse de {{count}} session)',
1512
+ '[dream] memory consolidation (reviewing {{count}} sessions)':
1513
+ '[dream] consolidation de la mémoire (analyse de {{count}} sessions)',
1494
1514
  '... and {{count}} more': '... et {{count}} de plus',
1495
1515
  'The TOML format is deprecated. Would you like to migrate them to Markdown format?':
1496
1516
  'Le format TOML est obsolète. Souhaitez-vous les migrer vers le format Markdown ?',
package/locales/ja.js CHANGED
@@ -591,8 +591,6 @@ export default {
591
591
  '応答またはツール呼び出しの処理中はフォークできません。完了するか、保留中のツール呼び出しを解決してください。',
592
592
  'Cannot fork before the first conversation turn.':
593
593
  '最初の会話ターンの前にはフォークできません。',
594
- 'The /fork command requires the fork feature gate. Set QWEN_CODE_ENABLE_FORK_SUBAGENT=1 to enable it.':
595
- '/fork コマンドには fork フィーチャーゲートが必要です。有効にするには QWEN_CODE_ENABLE_FORK_SUBAGENT=1 を設定してください。',
596
594
  'The agent tool is unavailable; cannot fork.':
597
595
  'エージェントツールを利用できないため、フォークできません。',
598
596
  'Failed to launch fork: {{error}}': 'フォークの起動に失敗しました: {{error}}',
@@ -878,6 +876,28 @@ export default {
878
876
  ', {{inProgress}} in progress': '、{{inProgress}} 進行中',
879
877
  'Pending Tasks:': '保留中のタスク:',
880
878
  'Current tasks': '現在のタスク',
879
+ 'Background tasks': 'バックグラウンドタスク',
880
+ 'No tasks currently running': '現在実行中のタスクはありません',
881
+ 'No entry to show.': '表示するエントリはありません。',
882
+ 'needs approval': '承認待ち',
883
+ 'Background agent needs approval':
884
+ 'バックグラウンドエージェントが承認待ちです',
885
+ 'Approve or deny the request above':
886
+ '上のリクエストを承認または拒否してください',
887
+ Running: '実行中',
888
+ Paused: '一時停止中',
889
+ Completed: '完了',
890
+ Failed: '失敗',
891
+ Stopped: '停止済み',
892
+ Shell: 'シェル',
893
+ Monitor: 'モニター',
894
+ Command: 'コマンド',
895
+ Dream: 'Dream',
896
+ '[dream] memory consolidation': '[dream] メモリ統合',
897
+ '[dream] memory consolidation (reviewing {{count}} session)':
898
+ '[dream] メモリ統合 ({{count}} セッションを確認中)',
899
+ '[dream] memory consolidation (reviewing {{count}} sessions)':
900
+ '[dream] メモリ統合 ({{count}} セッションを確認中)',
881
901
  '... and {{count}} more': '... 他 {{count}} 件',
882
902
  'What would you like to do?': '何をしますか?',
883
903
  'Choose how to proceed with your session:':
package/locales/pt.js CHANGED
@@ -809,8 +809,6 @@ export default {
809
809
  'Não é possível criar um fork enquanto uma resposta ou chamada de ferramenta está em andamento. Aguarde a conclusão ou resolva a chamada de ferramenta pendente.',
810
810
  'Cannot fork before the first conversation turn.':
811
811
  'Não é possível criar um fork antes da primeira rodada da conversa.',
812
- 'The /fork command requires the fork feature gate. Set QWEN_CODE_ENABLE_FORK_SUBAGENT=1 to enable it.':
813
- 'O comando /fork requer o feature gate de fork. Defina QWEN_CODE_ENABLE_FORK_SUBAGENT=1 para ativá-lo.',
814
812
  'The agent tool is unavailable; cannot fork.':
815
813
  'A ferramenta de agente está indisponível; não é possível criar um fork.',
816
814
  'Failed to launch fork: {{error}}': 'Falha ao iniciar o fork: {{error}}',
@@ -1462,6 +1460,27 @@ export default {
1462
1460
  'Found {{count}} TOML command files:':
1463
1461
  'Encontrados {{count}} arquivos de comando TOML:',
1464
1462
  'Current tasks': 'Tarefas atuais',
1463
+ 'Background tasks': 'Tarefas em segundo plano',
1464
+ 'No tasks currently running': 'Nenhuma tarefa em execução',
1465
+ 'No entry to show.': 'Nenhuma entrada para mostrar.',
1466
+ 'needs approval': 'precisa de aprovação',
1467
+ 'Background agent needs approval':
1468
+ 'Agente em segundo plano precisa de aprovação',
1469
+ 'Approve or deny the request above': 'Aprove ou negue a solicitação acima',
1470
+ Running: 'Em execução',
1471
+ Paused: 'Pausado',
1472
+ Completed: 'Concluído',
1473
+ Failed: 'Falhou',
1474
+ Stopped: 'Parado',
1475
+ Shell: 'Shell',
1476
+ Monitor: 'Monitor',
1477
+ Command: 'Comando',
1478
+ Dream: 'Dream',
1479
+ '[dream] memory consolidation': '[dream] consolidação de memória',
1480
+ '[dream] memory consolidation (reviewing {{count}} session)':
1481
+ '[dream] consolidação de memória (revisando {{count}} sessão)',
1482
+ '[dream] memory consolidation (reviewing {{count}} sessions)':
1483
+ '[dream] consolidação de memória (revisando {{count}} sessões)',
1465
1484
  '... and {{count}} more': '... e mais {{count}}',
1466
1485
  'The TOML format is deprecated. Would you like to migrate them to Markdown format?':
1467
1486
  'O formato TOML está obsoleto. Você gostaria de migrá-los para o formato Markdown?',
package/locales/ru.js CHANGED
@@ -816,8 +816,6 @@ export default {
816
816
  'Нельзя создать fork, пока выполняется ответ или вызов инструмента. Дождитесь завершения или обработайте ожидающий вызов инструмента.',
817
817
  'Cannot fork before the first conversation turn.':
818
818
  'Нельзя создать fork до первого сообщения в разговоре.',
819
- 'The /fork command requires the fork feature gate. Set QWEN_CODE_ENABLE_FORK_SUBAGENT=1 to enable it.':
820
- 'Команде /fork требуется feature gate fork. Установите QWEN_CODE_ENABLE_FORK_SUBAGENT=1, чтобы включить его.',
821
819
  'The agent tool is unavailable; cannot fork.':
822
820
  'Инструмент агента недоступен; fork создать нельзя.',
823
821
  'Failed to launch fork: {{error}}': 'Не удалось запустить fork: {{error}}',
@@ -1376,6 +1374,26 @@ export default {
1376
1374
  'Found {{count}} TOML command files:':
1377
1375
  'Найдено {{count}} файлов команд TOML:',
1378
1376
  'Current tasks': 'Текущие задачи',
1377
+ 'Background tasks': 'Фоновые задачи',
1378
+ 'No tasks currently running': 'Нет запущенных задач',
1379
+ 'No entry to show.': 'Нет записи для отображения.',
1380
+ 'needs approval': 'требует подтверждения',
1381
+ 'Background agent needs approval': 'Фоновый агент требует подтверждения',
1382
+ 'Approve or deny the request above': 'Подтвердите или отклоните запрос выше',
1383
+ Running: 'Выполняется',
1384
+ Paused: 'Приостановлено',
1385
+ Completed: 'Завершено',
1386
+ Failed: 'Ошибка',
1387
+ Stopped: 'Остановлено',
1388
+ Shell: 'Оболочка',
1389
+ Monitor: 'Монитор',
1390
+ Command: 'Команда',
1391
+ Dream: 'Dream',
1392
+ '[dream] memory consolidation': '[dream] консолидация памяти',
1393
+ '[dream] memory consolidation (reviewing {{count}} session)':
1394
+ '[dream] консолидация памяти (проверка {{count}} сессии)',
1395
+ '[dream] memory consolidation (reviewing {{count}} sessions)':
1396
+ '[dream] консолидация памяти (проверка {{count}} сессий)',
1379
1397
  '... and {{count}} more': '... и ещё {{count}}',
1380
1398
  'The TOML format is deprecated. Would you like to migrate them to Markdown format?':
1381
1399
  'Формат TOML устарел. Хотите перенести их в формат Markdown?',
package/locales/zh-TW.js CHANGED
@@ -100,6 +100,7 @@ export default {
100
100
  '列出可用的 Qwen Code 工具。用法:/tools [desc]',
101
101
  'Open the skills panel (browse, search, toggle, pick).':
102
102
  '開啟技能面板(瀏覽、搜尋、啟停、選擇)。',
103
+ 'Move this session to a new working directory': '將此會話移動到新的工作目錄',
103
104
  'Manage Skills': '管理技能',
104
105
  'Skills configuration saved.': '技能設定已儲存。',
105
106
  'Skills configuration saved, but refresh failed: {{error}}. Restart to ensure the new state is applied.':
@@ -202,12 +203,14 @@ export default {
202
203
  'Clear conversation history and free up context': '清除對話歷史並釋放上下文',
203
204
  'Compresses the context by replacing it with a summary.':
204
205
  '通過摘要替換來壓縮上下文',
206
+ 'Fast context compression without AI. Strips old tool outputs and thinking parts.':
207
+ '無需 AI 的快速上下文壓縮。清理舊工具輸出並剝離思考過程。',
205
208
  'open full Qwen Code documentation in your browser':
206
209
  '在瀏覽器中打開完整的 Qwen Code 文檔',
207
210
  'Configuration not available.': '配置不可用',
208
211
  'Connect an LLM provider': '連接 LLM 提供商',
209
- 'Copy the last AI response to clipboard (/copy N for Nth-latest)':
210
- '將最近的 AI 回應複製到剪貼簿(/copy N 複製倒數第 N 則)',
212
+ 'Copy to clipboard: reply, code (by lang), LaTeX, or Mermaid. N = Nth-latest message, index = block number':
213
+ '複製到剪貼簿:AI 回應、程式碼區塊(可依語言篩選)、LaTeX 或 Mermaid。N 為倒數第 N 則訊息,index 為程式碼區塊序號',
211
214
  'Show working-tree change stats versus HEAD':
212
215
  '顯示工作區相對 HEAD 的變更統計',
213
216
  'Could not determine current working directory.': '無法確定當前工作目錄。',
@@ -545,6 +548,7 @@ export default {
545
548
  'The name of the extension to update.': '要更新的擴展名稱。',
546
549
  'Either an extension name or --all must be provided':
547
550
  '必須提供擴展名稱或 --all',
551
+ 'List installed extensions': '列出已安裝的擴展',
548
552
  'Lists installed extensions.': '列出已安裝的擴展。',
549
553
  'Path:': '路徑:',
550
554
  'Source:': '來源:',
@@ -761,8 +765,6 @@ export default {
761
765
  'Cannot fork while a response or tool call is in progress. Wait for it to finish or resolve the pending tool call.':
762
766
  '回應或工具呼叫正在進行時無法分支。請等待其完成或處理待確認的工具呼叫。',
763
767
  'Cannot fork before the first conversation turn.': '首次對話輪次前無法分支。',
764
- 'The /fork command requires the fork feature gate. Set QWEN_CODE_ENABLE_FORK_SUBAGENT=1 to enable it.':
765
- '/fork 命令需要啟用 fork 功能開關。設定 QWEN_CODE_ENABLE_FORK_SUBAGENT=1 以啟用。',
766
768
  'The agent tool is unavailable; cannot fork.': 'Agent 工具不可用;無法分支。',
767
769
  'Failed to launch fork: {{error}}': '啟動分支失敗:{{error}}',
768
770
  'the background agent could not be started.': '背景智能體無法啟動。',
@@ -831,6 +833,7 @@ export default {
831
833
  'No managed auto-memory entries matched: {{query}}':
832
834
  '沒有匹配的託管自動記憶條目:{{query}}',
833
835
  'Consolidate managed auto-memory topic files.': '整理託管自動記憶主題檔案',
836
+ 'Import MCP servers from Claude configs': '從 Claude 設定匯入 MCP 伺服器',
834
837
  'Open MCP management dialog': '打開 MCP 管理對話框',
835
838
  'Could not retrieve tool registry.': '無法檢索工具註冊表',
836
839
  "Successfully authenticated and refreshed tools for '{{name}}'.":
@@ -1623,6 +1626,9 @@ export default {
1623
1626
  'Background tasks': '背景任務',
1624
1627
  'No tasks currently running': '目前沒有正在執行的任務',
1625
1628
  'No entry to show.': '沒有可顯示的項目。',
1629
+ 'needs approval': '待審批',
1630
+ 'Background agent needs approval': '背景 agent 等待審批',
1631
+ 'Approve or deny the request above': '請核准或拒絕上方的請求',
1626
1632
  Running: '執行中',
1627
1633
  Paused: '已暫停',
1628
1634
  Completed: '已完成',
@@ -1726,4 +1732,5 @@ export default {
1726
1732
  // === Same-as-English optimization ===
1727
1733
  ' (not in model registry)': '(不在模型註冊表中)',
1728
1734
  'start server': '啟動伺服器',
1735
+ 'No compression needed.': '無需壓縮。',
1729
1736
  };
package/locales/zh.js CHANGED
@@ -111,6 +111,7 @@ export default {
111
111
  '列出可用的 Qwen Code 工具。用法:/tools [desc]',
112
112
  'Open the skills panel (browse, search, toggle, pick).':
113
113
  '打开技能面板(浏览、搜索、启停、选择)。',
114
+ 'Move this session to a new working directory': '将此会话移动到新的工作目录',
114
115
  // SkillsManagerDialog (`/skills` 弹出的面板)
115
116
  'Manage Skills': '管理技能',
116
117
  'Skills configuration saved.': '技能配置已保存。',
@@ -217,12 +218,14 @@ export default {
217
218
  'Clear conversation history and free up context': '清除对话历史并释放上下文',
218
219
  'Compresses the context by replacing it with a summary.':
219
220
  '通过摘要替换来压缩上下文',
221
+ 'Fast context compression without AI. Strips old tool outputs and thinking parts.':
222
+ '无需 AI 的快速上下文压缩。清理旧工具输出并剥离思考过程。',
220
223
  'open full Qwen Code documentation in your browser':
221
224
  '在浏览器中打开完整的 Qwen Code 文档',
222
225
  'Configuration not available.': '配置不可用',
223
226
  'Connect an LLM provider': '连接 LLM 提供商',
224
- 'Copy the last AI response to clipboard (/copy N for Nth-latest)':
225
- '将最近的 AI 回复复制到剪贴板(/copy N 复制倒数第 N 条)',
227
+ 'Copy to clipboard: reply, code (by lang), LaTeX, or Mermaid. N = Nth-latest message, index = block number':
228
+ '复制到剪贴板:AI 回复、代码块(可按语言筛选)、LaTeX 或 Mermaid。N 为倒数第 N 条消息,index 为代码块序号',
226
229
  'Show working-tree change stats versus HEAD':
227
230
  '显示工作区相对 HEAD 的变更统计',
228
231
  'Could not determine current working directory.': '无法确定当前工作目录。',
@@ -587,6 +590,7 @@ export default {
587
590
  'The name of the extension to update.': '要更新的扩展名称。',
588
591
  'Either an extension name or --all must be provided':
589
592
  '必须提供扩展名称或 --all',
593
+ 'List installed extensions': '列出已安装的扩展',
590
594
  'Lists installed extensions.': '列出已安装的扩展。',
591
595
  'Path:': '路径:',
592
596
  'Source:': '来源:',
@@ -842,8 +846,6 @@ export default {
842
846
  'Cannot fork while a response or tool call is in progress. Wait for it to finish or resolve the pending tool call.':
843
847
  '响应或工具调用正在进行时无法分支。请等待其完成或处理待确认的工具调用。',
844
848
  'Cannot fork before the first conversation turn.': '首次对话轮次前无法分支。',
845
- 'The /fork command requires the fork feature gate. Set QWEN_CODE_ENABLE_FORK_SUBAGENT=1 to enable it.':
846
- '/fork 命令需要启用 fork 功能开关。设置 QWEN_CODE_ENABLE_FORK_SUBAGENT=1 以启用。',
847
849
  'The agent tool is unavailable; cannot fork.': 'Agent 工具不可用;无法分支。',
848
850
  'Failed to launch fork: {{error}}': '启动分支失败:{{error}}',
849
851
  'the background agent could not be started.': '后台智能体无法启动。',
@@ -920,6 +922,7 @@ export default {
920
922
  'No managed auto-memory entries matched: {{query}}':
921
923
  '没有匹配的托管自动记忆条目:{{query}}',
922
924
  'Consolidate managed auto-memory topic files.': '整理托管自动记忆主题文件',
925
+ 'Import MCP servers from Claude configs': '从 Claude 配置导入 MCP 服务器',
923
926
  'Open MCP management dialog': '打开 MCP 管理对话框',
924
927
  'Could not retrieve tool registry.': '无法检索工具注册表',
925
928
  "Successfully authenticated and refreshed tools for '{{name}}'.":
@@ -1817,6 +1820,9 @@ export default {
1817
1820
  'Background tasks': '后台任务',
1818
1821
  'No tasks currently running': '当前没有正在运行的任务',
1819
1822
  'No entry to show.': '没有可显示的条目。',
1823
+ 'needs approval': '待审批',
1824
+ 'Background agent needs approval': '后台 agent 等待审批',
1825
+ 'Approve or deny the request above': '请批准或拒绝上方的请求',
1820
1826
  Running: '运行中',
1821
1827
  Paused: '已暂停',
1822
1828
  Completed: '已完成',
@@ -1926,4 +1932,5 @@ export default {
1926
1932
  '中国 (China)': '中国',
1927
1933
  '中国 (China) - 阿里云百炼': '中国 - 阿里云百炼',
1928
1934
  '阿里云百炼 (aliyun.com)': '阿里云百炼(aliyun.com)',
1935
+ 'No compression needed.': '无需压缩。',
1929
1936
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qwen-code/qwen-code",
3
- "version": "0.18.0-preview.2",
3
+ "version": "0.18.1-nightly.20260616.a68b2e1e7",
4
4
  "description": "Qwen Code - AI-powered coding assistant",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,10 +9,12 @@
9
9
  "type": "module",
10
10
  "main": "cli.js",
11
11
  "bin": {
12
- "qwen": "cli.js"
12
+ "qwen": "cli-entry.js"
13
13
  },
14
14
  "files": [
15
+ "cli-entry.js",
15
16
  "cli.js",
17
+ "fzfWorker.js",
16
18
  "chunks",
17
19
  "vendor",
18
20
  "*.sb",
@@ -23,7 +25,7 @@
23
25
  "bundled"
24
26
  ],
25
27
  "config": {
26
- "sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.18.0-preview.2"
28
+ "sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.18.1-nightly.20260616.a68b2e1e7"
27
29
  },
28
30
  "dependencies": {},
29
31
  "optionalDependencies": {
@@ -1,50 +0,0 @@
1
- // Force strict mode and setup for ESM
2
- "use strict";
3
- import {
4
- AgentHeadless,
5
- ContextState,
6
- templateString
7
- } from "./chunk-QCG6KPNM.js";
8
- import "./chunk-K5PGHDBN.js";
9
- import "./chunk-SKBPNJEW.js";
10
- import "./chunk-O4PICXES.js";
11
- import "./chunk-TW522KN6.js";
12
- import "./chunk-AJIR24J2.js";
13
- import "./chunk-HGJPQK33.js";
14
- import "./chunk-XBFVXFB2.js";
15
- import "./chunk-MLZQVCF3.js";
16
- import "./chunk-PAEBHDIO.js";
17
- import "./chunk-LD2XBG6Z.js";
18
- import "./chunk-ICOI4E4S.js";
19
- import "./chunk-KC6ZMJ5X.js";
20
- import "./chunk-77WXWU44.js";
21
- import "./chunk-JUGRPQAB.js";
22
- import "./chunk-64WXLC72.js";
23
- import "./chunk-ZK4AMNIU.js";
24
- import "./chunk-3PJXIDKI.js";
25
- import "./chunk-UWCTAVOD.js";
26
- import "./chunk-OFEVLU4C.js";
27
- import "./chunk-JVQOQ3OU.js";
28
- import "./chunk-P4J26VDS.js";
29
- import "./chunk-CNSMKPK6.js";
30
- import "./chunk-2ZTWI7KH.js";
31
- import "./chunk-MVIVIPCU.js";
32
- import "./chunk-GX7VH5JQ.js";
33
- import "./chunk-UAMOBVVW.js";
34
- import "./chunk-LR62TEET.js";
35
- import "./chunk-Y7R6H6FT.js";
36
- import "./chunk-BNESGOSJ.js";
37
- import "./chunk-SZOEIL6S.js";
38
- import "./chunk-5IFG2VC4.js";
39
- import "./chunk-JXAZUMDW.js";
40
- import "./chunk-ZERZSAZL.js";
41
- import "./chunk-QN5NZ3UQ.js";
42
- import "./chunk-BR4QREVK.js";
43
- import "./chunk-WFVXF3OM.js";
44
- import "./chunk-A4BMJM77.js";
45
- import "./chunk-J2S4EL5Y.js";
46
- export {
47
- AgentHeadless,
48
- ContextState,
49
- templateString
50
- };
@@ -1,59 +0,0 @@
1
- // Force strict mode and setup for ESM
2
- "use strict";
3
- import {
4
- init_esbuild_shims
5
- } from "./chunk-A4BMJM77.js";
6
- import {
7
- __name
8
- } from "./chunk-J2S4EL5Y.js";
9
-
10
- // packages/core/src/agents/team/leaderPermissionBridge.ts
11
- init_esbuild_shims();
12
- var leaderCallbacks = null;
13
- function registerLeader(callbacks) {
14
- leaderCallbacks = callbacks;
15
- }
16
- __name(registerLeader, "registerLeader");
17
- function getLeader() {
18
- return leaderCallbacks;
19
- }
20
- __name(getLeader, "getLeader");
21
- function unregisterLeader() {
22
- leaderCallbacks = null;
23
- }
24
- __name(unregisterLeader, "unregisterLeader");
25
- function forwardApproval(teammateName, teammateColor, details) {
26
- if (!leaderCallbacks) {
27
- return false;
28
- }
29
- leaderCallbacks.enqueueApproval({
30
- teammateName,
31
- teammateColor,
32
- details
33
- });
34
- return true;
35
- }
36
- __name(forwardApproval, "forwardApproval");
37
- function wrapConfirmWithBadge(original, teammateName, respond, _teammateColor) {
38
- return {
39
- ...original,
40
- title: `[${teammateName}] ${original.title}`,
41
- onConfirm: /* @__PURE__ */ __name(async (outcome, payload) => {
42
- await respond(outcome, payload);
43
- }, "onConfirm")
44
- };
45
- }
46
- __name(wrapConfirmWithBadge, "wrapConfirmWithBadge");
47
-
48
- export {
49
- registerLeader,
50
- getLeader,
51
- unregisterLeader,
52
- forwardApproval,
53
- wrapConfirmWithBadge
54
- };
55
- /**
56
- * @license
57
- * Copyright 2025 Qwen
58
- * SPDX-License-Identifier: Apache-2.0
59
- */
@@ -1,45 +0,0 @@
1
- // Force strict mode and setup for ESM
2
- "use strict";
3
- import {
4
- init_esbuild_shims
5
- } from "./chunk-A4BMJM77.js";
6
- import {
7
- __name
8
- } from "./chunk-J2S4EL5Y.js";
9
-
10
- // packages/core/src/agents/runtime/agent-types.ts
11
- init_esbuild_shims();
12
- var AgentTerminateMode = /* @__PURE__ */ ((AgentTerminateMode2) => {
13
- AgentTerminateMode2["ERROR"] = "ERROR";
14
- AgentTerminateMode2["TIMEOUT"] = "TIMEOUT";
15
- AgentTerminateMode2["GOAL"] = "GOAL";
16
- AgentTerminateMode2["MAX_TURNS"] = "MAX_TURNS";
17
- AgentTerminateMode2["CANCELLED"] = "CANCELLED";
18
- AgentTerminateMode2["SHUTDOWN"] = "SHUTDOWN";
19
- return AgentTerminateMode2;
20
- })(AgentTerminateMode || {});
21
- var AgentStatus = /* @__PURE__ */ ((AgentStatus2) => {
22
- AgentStatus2["INITIALIZING"] = "initializing";
23
- AgentStatus2["RUNNING"] = "running";
24
- AgentStatus2["IDLE"] = "idle";
25
- AgentStatus2["COMPLETED"] = "completed";
26
- AgentStatus2["FAILED"] = "failed";
27
- AgentStatus2["CANCELLED"] = "cancelled";
28
- return AgentStatus2;
29
- })(AgentStatus || {});
30
- var isTerminalStatus = /* @__PURE__ */ __name((s) => s === "completed" /* COMPLETED */ || s === "failed" /* FAILED */ || s === "cancelled" /* CANCELLED */, "isTerminalStatus");
31
- var isSuccessStatus = /* @__PURE__ */ __name((s) => s === "idle" /* IDLE */ || s === "completed" /* COMPLETED */, "isSuccessStatus");
32
- var isSettledStatus = /* @__PURE__ */ __name((s) => s === "idle" /* IDLE */ || isTerminalStatus(s), "isSettledStatus");
33
-
34
- export {
35
- AgentTerminateMode,
36
- AgentStatus,
37
- isTerminalStatus,
38
- isSuccessStatus,
39
- isSettledStatus
40
- };
41
- /**
42
- * @license
43
- * Copyright 2025 Qwen
44
- * SPDX-License-Identifier: Apache-2.0
45
- */