@qwen-code/qwen-code 0.17.1-nightly.20260608.aea34fa2c → 0.18.0-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 (95) hide show
  1. package/bundled/qc-helper/SKILL.md +30 -24
  2. package/bundled/qc-helper/docs/features/auto-mode.md +54 -9
  3. package/bundled/qc-helper/docs/features/commands.md +11 -11
  4. package/bundled/qc-helper/docs/features/markdown-rendering.md +21 -1
  5. package/chunks/{agent-CRCEWDXY.js → agent-6J2FFD7S.js} +16 -16
  6. package/chunks/{anthropicContentGenerator-CORCIHMT.js → anthropicContentGenerator-4QBVSFSJ.js} +4 -4
  7. package/chunks/{askUserQuestion-LXMRMFII.js → askUserQuestion-NOOLRWCJ.js} +2 -2
  8. package/chunks/{ca-AD47AV3M.js → ca-WRHFBIDH.js} +10 -1
  9. package/chunks/{chunk-MW6Z7JDT.js → chunk-3H7ENG2Q.js} +20 -18
  10. package/chunks/{chunk-UKQJ7G3U.js → chunk-5RNZ2QKF.js} +1 -1
  11. package/chunks/{chunk-LESSBSSE.js → chunk-6VFG3EUJ.js} +1 -1
  12. package/chunks/{chunk-2T34DNYQ.js → chunk-AVLOK27J.js} +42 -8
  13. package/chunks/{chunk-ZAHZV7IR.js → chunk-BBTV54KB.js} +2 -2
  14. package/chunks/{chunk-4XIYRIZ6.js → chunk-BPZQVC2P.js} +110 -9
  15. package/chunks/{chunk-MUMLIB4J.js → chunk-BUOJN3MM.js} +10481 -8589
  16. package/chunks/{chunk-OV5SE5JD.js → chunk-D46KOV3C.js} +1 -1
  17. package/chunks/{chunk-DU2ZAFA7.js → chunk-F5ORN4YO.js} +1 -1
  18. package/chunks/{chunk-UB3HGW3I.js → chunk-G763GDO6.js} +22 -11
  19. package/chunks/{chunk-7R5J5HSJ.js → chunk-GBEPNWYB.js} +1 -1
  20. package/chunks/{chunk-EYEDXJ2Z.js → chunk-IKOMHTCC.js} +6 -6
  21. package/chunks/{chunk-JAF4PLE7.js → chunk-JMLIPZUU.js} +3 -3
  22. package/chunks/{chunk-KSX2FIAZ.js → chunk-JSYEZAYV.js} +2 -2
  23. package/chunks/{chunk-R7WIF3BU.js → chunk-MVX64PNU.js} +1 -1
  24. package/chunks/{chunk-UEW42CYE.js → chunk-PLYZAP4W.js} +45 -9
  25. package/chunks/{chunk-S2HZQ4RC.js → chunk-R5PDRHEF.js} +1 -0
  26. package/chunks/{chunk-77UV3M62.js → chunk-SCHRFI7O.js} +1 -1
  27. package/chunks/{chunk-OCR7PXOA.js → chunk-SHUT5MQY.js} +1 -1
  28. package/chunks/{chunk-OPFJCRUK.js → chunk-UABFCMPA.js} +2 -1
  29. package/chunks/{chunk-DIO32KR5.js → chunk-UQZQP5PA.js} +11 -11
  30. package/chunks/{chunk-FCY4DV3R.js → chunk-UXBKX55L.js} +10 -6
  31. package/chunks/{computer-use-C5ZJRSKF.js → computer-use-6LZXL3UW.js} +16 -16
  32. package/chunks/{contextCommand-G54AJMCX.js → contextCommand-ZV5QQ2LA.js} +18 -18
  33. package/chunks/{cron-create-PJOVYSIF.js → cron-create-PIPMXQN4.js} +2 -2
  34. package/chunks/{cron-delete-7EYEJ44X.js → cron-delete-6Y5XIDMS.js} +2 -2
  35. package/chunks/{cron-list-LMUJOUDI.js → cron-list-A4WNRUWZ.js} +2 -2
  36. package/chunks/{de-GYJ2LJ32.js → de-M5RPB2NB.js} +10 -1
  37. package/chunks/{edit-JVUXZ6WE.js → edit-J7D6VMPQ.js} +19 -19
  38. package/chunks/{en-QEV466ZF.js → en-UMYKQAZE.js} +11 -1
  39. package/chunks/{enter-worktree-GOVBTJZR.js → enter-worktree-NDJTVGYJ.js} +16 -16
  40. package/chunks/{exit-worktree-YZAGLIWA.js → exit-worktree-UB6XYYAX.js} +16 -16
  41. package/chunks/{exitPlanMode-RY6DM3LO.js → exitPlanMode-V6X2KL4X.js} +16 -16
  42. package/chunks/{fr-GH7C66F4.js → fr-MPYXXXPW.js} +10 -1
  43. package/chunks/{geminiContentGenerator-BB4RL4HR.js → geminiContentGenerator-3AKHMB3P.js} +4 -4
  44. package/chunks/{glob-UZHZN5GU.js → glob-PBG5DRG4.js} +16 -16
  45. package/chunks/{grep-7N5SXCM2.js → grep-VQ56EWQ7.js} +16 -16
  46. package/chunks/{ja-ZXM3KE24.js → ja-NFZ32AB3.js} +10 -1
  47. package/chunks/{keychain-token-storage-25D5QXMC.js → keychain-token-storage-UHGOCDD6.js} +2 -2
  48. package/chunks/{ls-PPWEULT2.js → ls-34DLNYCD.js} +3 -3
  49. package/chunks/{lsp-2BY4ZXDL.js → lsp-NCDEHH3V.js} +2 -2
  50. package/chunks/{monitor-RUX4WCW6.js → monitor-J3YCSOEH.js} +16 -16
  51. package/chunks/{notebook-edit-QSHYIM2C.js → notebook-edit-AL3CBYJ6.js} +17 -17
  52. package/chunks/{openaiContentGenerator-557UCKMQ.js → openaiContentGenerator-3U6UARHS.js} +11 -11
  53. package/chunks/{pt-NHIAQIDQ.js → pt-BR43FRBA.js} +10 -1
  54. package/chunks/{qwenContentGenerator-QG4JMJH5.js → qwenContentGenerator-JRFHJRH6.js} +18 -18
  55. package/chunks/{qwenOAuth2-FUBP4U5T.js → qwenOAuth2-KRJT35QH.js} +4 -4
  56. package/chunks/{read-file-ROG4RM65.js → read-file-ZF6EIVE3.js} +8 -8
  57. package/chunks/{ripGrep-ADC4YGZN.js → ripGrep-N2ZT7M6Z.js} +16 -16
  58. package/chunks/{ru-PWPUZWMR.js → ru-DQCW2KHD.js} +10 -1
  59. package/chunks/{scheduler-SJAUHFQT.js → scheduler-OS37FUFT.js} +16 -16
  60. package/chunks/{send-message-OGMOM5PZ.js → send-message-YYF56TS7.js} +2 -2
  61. package/chunks/{serve-TDCSIUAA.js → serve-ABOLLDNN.js} +18 -18
  62. package/chunks/{shell-CHR54FUA.js → shell-XGN7IDUS.js} +16 -16
  63. package/chunks/{skill-XJVA5TG4.js → skill-YQQ6CR4U.js} +26 -18
  64. package/chunks/{src-7ACBXZIS.js → src-LORPPHWB.js} +65 -21
  65. package/chunks/{syntheticOutput-MS737GGZ.js → syntheticOutput-T5SWX3YF.js} +3 -3
  66. package/chunks/{task-stop-FBGBLI2N.js → task-stop-3VHAQMYM.js} +2 -2
  67. package/chunks/{todoWrite-4NAE33MV.js → todoWrite-EAGJGKO5.js} +4 -4
  68. package/chunks/{tool-search-TVX3HXW5.js → tool-search-PDOJPXJJ.js} +24 -9
  69. package/chunks/{web-fetch-YM7HKIWL.js → web-fetch-SS6IKK6N.js} +4 -4
  70. package/chunks/{write-file-FUPILDLW.js → write-file-VWWCN7LI.js} +19 -19
  71. package/chunks/{zh-CFLG2MJ5.js → zh-6VFXOAR5.js} +11 -1
  72. package/chunks/{zh-TW-7D4PSECL.js → zh-TW-IQZ4AD5M.js} +11 -1
  73. package/cli.js +3391 -959
  74. package/examples/agent/agents/diary.md +86 -0
  75. package/examples/agent/qwen-extension.json +4 -0
  76. package/examples/commands/commands/fs/grep-code.md +3 -0
  77. package/examples/commands/qwen-extension.json +4 -0
  78. package/examples/context/QWEN.md +8 -0
  79. package/examples/context/qwen-extension.json +4 -0
  80. package/examples/mcp-server/example.ts +60 -0
  81. package/examples/mcp-server/package.json +18 -0
  82. package/examples/mcp-server/qwen-extension.json +11 -0
  83. package/examples/mcp-server/tsconfig.json +13 -0
  84. package/examples/skills/qwen-extension.json +4 -0
  85. package/examples/skills/skills/synonyms/SKILL.md +48 -0
  86. package/locales/ca.js +20 -2
  87. package/locales/de.js +20 -2
  88. package/locales/en.js +21 -2
  89. package/locales/fr.js +20 -2
  90. package/locales/ja.js +20 -2
  91. package/locales/pt.js +20 -2
  92. package/locales/ru.js +20 -2
  93. package/locales/zh-TW.js +20 -2
  94. package/locales/zh.js +20 -2
  95. package/package.json +3 -2
@@ -179,10 +179,11 @@ import {
179
179
  SESSION_TITLE_MAX_LENGTH,
180
180
  SHELL_TOOL_NAMES,
181
181
  SKILL_REVIEW_TASK_TYPE,
182
- STARTUP_CONTEXT_MODEL_ACK,
183
182
  STOP_HOOK_BLOCK_CAP_ENV,
184
183
  SUGGESTION_PROMPT,
185
184
  SYMBOL_KIND_LABELS,
185
+ SYSTEM_REMINDER_CLOSE,
186
+ SYSTEM_REMINDER_OPEN,
186
187
  SdkControlClientTransport,
187
188
  SendMessageType,
188
189
  SessionService,
@@ -191,6 +192,7 @@ import {
191
192
  SkillActivationRegistry,
192
193
  SkillError,
193
194
  SkillManager,
195
+ SleepInhibitor,
194
196
  StandardFileSystemService,
195
197
  StreamEventType,
196
198
  SubagentError,
@@ -223,6 +225,7 @@ import {
223
225
  abortGoalForStopHookCap,
224
226
  abortSpeculation,
225
227
  acceptSpeculation,
228
+ acquireSleepInhibitor,
226
229
  activeGoalEquals,
227
230
  addMCPStatusChangeListener,
228
231
  alibabaStandardProvider,
@@ -230,17 +233,20 @@ import {
230
233
  appendToLastTextPart,
231
234
  applyAutoModeDecision,
232
235
  applyProviderInstallPlan,
236
+ buildAddedMcpToolsReminder,
233
237
  buildApiHistoryFromConversation,
234
238
  buildBackgroundEntryLabel,
235
- buildDeferredToolsSection,
239
+ buildDeferredToolsReminder,
236
240
  buildFallbackApproachSummary,
237
241
  buildHumanReadableRuleLabel,
238
242
  buildInstallPlan,
243
+ buildMcpServerInstructionsReminder,
239
244
  buildModelIdContext,
240
245
  buildPermissionCheckContext,
241
246
  buildPermissionRules,
242
247
  buildProviderTemplate,
243
248
  buildShellExecWarnings,
249
+ buildStartupContextReminder,
244
250
  canUseRipgrep,
245
251
  checkArgumentSafety,
246
252
  checkCommandPermissions,
@@ -281,6 +287,7 @@ import {
281
287
  createFollowupController,
282
288
  createForkedChat,
283
289
  createGoalStopHookCallback,
290
+ createInstructionsLoadedCallback,
284
291
  createStreamableHttpCompatibilityFetch,
285
292
  createTmpDir,
286
293
  createToolUseSummaryMessage,
@@ -309,6 +316,7 @@ import {
309
316
  ensureMacBinarySigned,
310
317
  ensureRipgrepHealthy,
311
318
  ensureToolResultPairing,
319
+ ensureUserAutoMemoryScaffold,
312
320
  envLayer,
313
321
  escapeShellArg,
314
322
  evaluateAutoMode,
@@ -338,6 +346,7 @@ import {
338
346
  firePreToolUseHook,
339
347
  flatMapTextParts,
340
348
  formatClassifierBlockMessage,
349
+ formatDateForContext,
341
350
  formatDenialStateLog,
342
351
  formatLineStats,
343
352
  formatMemoryUsage,
@@ -365,6 +374,7 @@ import {
365
374
  getDiffCommand,
366
375
  getDirectoryContextString,
367
376
  getEditorExecutable,
377
+ getEffectivePermissionForConfirmation,
368
378
  getEnvContents,
369
379
  getEnvironmentContext,
370
380
  getExtensionId,
@@ -400,6 +410,7 @@ import {
400
410
  getShellAbortReasonKind,
401
411
  getShellConfiguration,
402
412
  getSpecifierKind,
413
+ getStartupContextLength,
403
414
  getStructuredResponse,
404
415
  getStructuredResponseFromParts,
405
416
  getThoughtText,
@@ -444,6 +455,7 @@ import {
444
455
  isSettledStatus,
445
456
  isStructuredError,
446
457
  isSuccessStatus,
458
+ isSystemReminderContent,
447
459
  isTerminalEditor,
448
460
  isTerminalStatus,
449
461
  isTomlFormat,
@@ -513,6 +525,7 @@ import {
513
525
  readManyFiles,
514
526
  readPathFromWorkspace,
515
527
  readRuntimeStatus,
528
+ readUserAutoMemoryIndex,
516
529
  readWorktreeSession,
517
530
  readWorktreeSessionMarker,
518
531
  recordAllow,
@@ -572,8 +585,10 @@ import {
572
585
  shouldFallback,
573
586
  shouldFilterSuggestion,
574
587
  shouldFirePermissionDeniedForAutoMode,
588
+ shouldForceAutoModeReviewForAllow,
575
589
  shouldRunAutoModeForCall,
576
590
  shouldShowStep,
591
+ sleepInhibitor,
577
592
  splitCommands,
578
593
  splitCompoundCommand,
579
594
  splitConditionalSkills,
@@ -606,7 +621,7 @@ import {
606
621
  writeWorktreeSession,
607
622
  writeWorktreeSessionMarker,
608
623
  zaiProvider
609
- } from "./chunk-MUMLIB4J.js";
624
+ } from "./chunk-BUOJN3MM.js";
610
625
  import "./chunk-K5PGHDBN.js";
611
626
  import "./chunk-O4PICXES.js";
612
627
  import "./chunk-TW522KN6.js";
@@ -616,10 +631,11 @@ import {
616
631
  } from "./chunk-MLZQVCF3.js";
617
632
  import {
618
633
  runSideQuery
619
- } from "./chunk-77UV3M62.js";
634
+ } from "./chunk-SCHRFI7O.js";
620
635
  import {
636
+ applySkillAllowedTools,
621
637
  buildSkillLlmContent
622
- } from "./chunk-UEW42CYE.js";
638
+ } from "./chunk-PLYZAP4W.js";
623
639
  import {
624
640
  AgentType,
625
641
  DefaultHookOutput,
@@ -646,14 +662,14 @@ import {
646
662
  detectTodoChanges,
647
663
  getHookKey,
648
664
  sanitizeUserPromptExpansionAdditionalContext
649
- } from "./chunk-OPFJCRUK.js";
665
+ } from "./chunk-UABFCMPA.js";
650
666
  import {
651
667
  DEFAULT_FILE_FILTERING_OPTIONS,
652
668
  DEFAULT_MEMORY_FILE_FILTERING_OPTIONS
653
669
  } from "./chunk-77WXWU44.js";
654
670
  import {
655
671
  KeychainTokenStorage
656
- } from "./chunk-LESSBSSE.js";
672
+ } from "./chunk-6VFG3EUJ.js";
657
673
  import {
658
674
  AGENT_CONTEXT_FILENAME,
659
675
  ApiCancelEvent,
@@ -855,7 +871,7 @@ import {
855
871
  uiTelemetryService,
856
872
  validateModelConfig,
857
873
  windowsCodePageToEncoding
858
- } from "./chunk-MW6Z7JDT.js";
874
+ } from "./chunk-3H7ENG2Q.js";
859
875
  import "./chunk-3PJXIDKI.js";
860
876
  import "./chunk-UWCTAVOD.js";
861
877
  import {
@@ -870,6 +886,7 @@ import {
870
886
  AUTO_MEMORY_EXTRACT_CURSOR_FILENAME,
871
887
  AUTO_MEMORY_INDEX_FILENAME,
872
888
  AUTO_MEMORY_METADATA_FILENAME,
889
+ USER_AUTO_MEMORY_DIRNAME,
873
890
  clearAutoMemoryRootCache,
874
891
  getAutoMemoryConsolidationLockPath,
875
892
  getAutoMemoryExtractCursorPath,
@@ -881,10 +898,15 @@ import {
881
898
  getAutoMemoryTopicFilename,
882
899
  getAutoMemoryTopicPath,
883
900
  getMemoryBaseDir,
884
- isAutoMemPath
885
- } from "./chunk-2T34DNYQ.js";
886
- import "./chunk-KSX2FIAZ.js";
887
- import "./chunk-UKQJ7G3U.js";
901
+ getUserAutoMemoryIndexPath,
902
+ getUserAutoMemoryRoot,
903
+ getUserAutoMemoryTopicPath,
904
+ isAnyAutoMemPath,
905
+ isAutoMemPath,
906
+ isUserAutoMemPath
907
+ } from "./chunk-AVLOK27J.js";
908
+ import "./chunk-JSYEZAYV.js";
909
+ import "./chunk-5RNZ2QKF.js";
888
910
  import {
889
911
  AgentStatistics,
890
912
  BaseDeclarativeTool,
@@ -902,7 +924,7 @@ import {
902
924
  ToolNamesMigration,
903
925
  hasCycleInSchema,
904
926
  isTool
905
- } from "./chunk-UB3HGW3I.js";
927
+ } from "./chunk-G763GDO6.js";
906
928
  import {
907
929
  CredentialsClearRequiredError,
908
930
  QWEN_CREDENTIAL_FILE_MODE,
@@ -921,15 +943,15 @@ import {
921
943
  isDeviceTokenSuccess,
922
944
  isErrorResponse,
923
945
  qwenOAuth2Events
924
- } from "./chunk-JAF4PLE7.js";
925
- import "./chunk-7R5J5HSJ.js";
946
+ } from "./chunk-JMLIPZUU.js";
947
+ import "./chunk-GBEPNWYB.js";
926
948
  import {
927
949
  atomicWriteFile,
928
950
  atomicWriteFileSync,
929
951
  atomicWriteJSON,
930
952
  renameWithRetry,
931
953
  renameWithRetrySync
932
- } from "./chunk-DU2ZAFA7.js";
954
+ } from "./chunk-F5ORN4YO.js";
933
955
  import {
934
956
  SUPPORTED_IMAGE_MIME_TYPES,
935
957
  TextTokenizer,
@@ -939,7 +961,7 @@ import {
939
961
  getUnsupportedImageFormatWarning,
940
962
  isSupportedImageMimeType,
941
963
  redactProxyCredentials
942
- } from "./chunk-R7WIF3BU.js";
964
+ } from "./chunk-MVX64PNU.js";
943
965
  import {
944
966
  CAPPED_DEFAULT_MAX_TOKENS,
945
967
  DEFAULT_OUTPUT_TOKEN_LIMIT,
@@ -954,7 +976,7 @@ import {
954
976
  summarizeAnthropicWireRequest,
955
977
  summarizeOpenAIWireRequest,
956
978
  tokenLimit
957
- } from "./chunk-OV5SE5JD.js";
979
+ } from "./chunk-D46KOV3C.js";
958
980
  import "./chunk-BNESGOSJ.js";
959
981
  import "./chunk-SZOEIL6S.js";
960
982
  import "./chunk-5IFG2VC4.js";
@@ -1002,7 +1024,7 @@ import {
1002
1024
  unescapePath,
1003
1025
  updateSymlink,
1004
1026
  validatePath
1005
- } from "./chunk-S2HZQ4RC.js";
1027
+ } from "./chunk-R5PDRHEF.js";
1006
1028
  import "./chunk-ZERZSAZL.js";
1007
1029
  import "./chunk-QN5NZ3UQ.js";
1008
1030
  import "./chunk-BR4QREVK.js";
@@ -1309,12 +1331,13 @@ export {
1309
1331
  SHELL_SPECIAL_CHARS,
1310
1332
  SHELL_TOOL_NAMES,
1311
1333
  SKILL_REVIEW_TASK_TYPE,
1312
- STARTUP_CONTEXT_MODEL_ACK,
1313
1334
  STOP_HOOK_BLOCK_CAP_ENV,
1314
1335
  SUGGESTION_PROMPT,
1315
1336
  SUPPORTED_IMAGE_MIME_TYPES,
1316
1337
  SYMBOL_KIND_LABELS,
1317
1338
  SYSTEM_FILE_EXCLUDES,
1339
+ SYSTEM_REMINDER_CLOSE,
1340
+ SYSTEM_REMINDER_OPEN,
1318
1341
  SchemaValidator,
1319
1342
  SdkControlClientTransport,
1320
1343
  SemanticAttributes,
@@ -1329,6 +1352,7 @@ export {
1329
1352
  SkillLaunchEvent,
1330
1353
  SkillManager,
1331
1354
  SlashCommandStatus,
1355
+ SleepInhibitor,
1332
1356
  SpanStatusCode,
1333
1357
  SpeculationEvent,
1334
1358
  StandardFileSystemService,
@@ -1363,6 +1387,7 @@ export {
1363
1387
  ToolRegistry,
1364
1388
  TrustGateError,
1365
1389
  Turn,
1390
+ USER_AUTO_MEMORY_DIRNAME,
1366
1391
  UiTelemetryService,
1367
1392
  UnauthorizedError,
1368
1393
  UserFeedbackEvent,
@@ -1386,6 +1411,7 @@ export {
1386
1411
  abortGoalForStopHookCap,
1387
1412
  abortSpeculation,
1388
1413
  acceptSpeculation,
1414
+ acquireSleepInhibitor,
1389
1415
  activeGoalEquals,
1390
1416
  addMCPStatusChangeListener,
1391
1417
  addModelOutputAttributes,
@@ -1399,21 +1425,25 @@ export {
1399
1425
  appendToLastTextPart,
1400
1426
  applyAutoModeDecision,
1401
1427
  applyProviderInstallPlan,
1428
+ applySkillAllowedTools,
1402
1429
  atomicWriteFile,
1403
1430
  atomicWriteFileSync,
1404
1431
  atomicWriteJSON,
1432
+ buildAddedMcpToolsReminder,
1405
1433
  buildApiHistoryFromConversation,
1406
1434
  buildBackgroundEntryLabel,
1407
- buildDeferredToolsSection,
1435
+ buildDeferredToolsReminder,
1408
1436
  buildFallbackApproachSummary,
1409
1437
  buildHumanReadableRuleLabel,
1410
1438
  buildInstallPlan,
1439
+ buildMcpServerInstructionsReminder,
1411
1440
  buildModelIdContext,
1412
1441
  buildPermissionCheckContext,
1413
1442
  buildPermissionRules,
1414
1443
  buildProviderTemplate,
1415
1444
  buildShellExecWarnings,
1416
1445
  buildSkillLlmContent,
1446
+ buildStartupContextReminder,
1417
1447
  cacheQwenCredentials,
1418
1448
  canUseRipgrep,
1419
1449
  checkArgumentSafety,
@@ -1464,6 +1494,7 @@ export {
1464
1494
  createForkedChat,
1465
1495
  createGoalStopHookCallback,
1466
1496
  createHookOutput,
1497
+ createInstructionsLoadedCallback,
1467
1498
  createStreamableHttpCompatibilityFetch,
1468
1499
  createTmpDir,
1469
1500
  createToolUseSummaryMessage,
@@ -1506,6 +1537,7 @@ export {
1506
1537
  ensureMacBinarySigned,
1507
1538
  ensureRipgrepHealthy,
1508
1539
  ensureToolResultPairing,
1540
+ ensureUserAutoMemoryScaffold,
1509
1541
  envLayer,
1510
1542
  escapePath,
1511
1543
  escapeShellArg,
@@ -1539,6 +1571,7 @@ export {
1539
1571
  firePreToolUseHook,
1540
1572
  flatMapTextParts,
1541
1573
  formatClassifierBlockMessage,
1574
+ formatDateForContext,
1542
1575
  formatDenialStateLog,
1543
1576
  formatLineStats,
1544
1577
  formatMemoryUsage,
@@ -1583,6 +1616,7 @@ export {
1583
1616
  getDiffCommand,
1584
1617
  getDirectoryContextString,
1585
1618
  getEditorExecutable,
1619
+ getEffectivePermissionForConfirmation,
1586
1620
  getEnvContents,
1587
1621
  getEnvironmentContext,
1588
1622
  getErrorMessage,
@@ -1627,12 +1661,16 @@ export {
1627
1661
  getShellConfiguration,
1628
1662
  getSpecificMimeType,
1629
1663
  getSpecifierKind,
1664
+ getStartupContextLength,
1630
1665
  getStructuredResponse,
1631
1666
  getStructuredResponseFromParts,
1632
1667
  getSupportedImageFormatsString,
1633
1668
  getSystemEncoding,
1634
1669
  getThoughtText,
1635
1670
  getUnsupportedImageFormatWarning,
1671
+ getUserAutoMemoryIndexPath,
1672
+ getUserAutoMemoryRoot,
1673
+ getUserAutoMemoryTopicPath,
1636
1674
  getWelcomeBackState,
1637
1675
  globalMemoryManager,
1638
1676
  hasCycleInSchema,
@@ -1650,6 +1688,7 @@ export {
1650
1688
  injectPermissionRulesIfMissing,
1651
1689
  invokeMcpPrompt,
1652
1690
  isAbortError,
1691
+ isAnyAutoMemPath,
1653
1692
  isApiError,
1654
1693
  isApproveOutcome,
1655
1694
  isAutoEditApproved,
@@ -1691,6 +1730,7 @@ export {
1691
1730
  isSubpaths,
1692
1731
  isSuccessStatus,
1693
1732
  isSupportedImageMimeType,
1733
+ isSystemReminderContent,
1694
1734
  isTelemetrySdkInitialized,
1695
1735
  isTerminalEditor,
1696
1736
  isTerminalStatus,
@@ -1699,6 +1739,7 @@ export {
1699
1739
  isToolEnabled,
1700
1740
  isTransientCapacityError,
1701
1741
  isUnattendedMode,
1742
+ isUserAutoMemPath,
1702
1743
  isValidEditorType,
1703
1744
  isValidNonThoughtTextPart,
1704
1745
  isWindows,
@@ -1814,6 +1855,7 @@ export {
1814
1855
  readManyFiles,
1815
1856
  readPathFromWorkspace,
1816
1857
  readRuntimeStatus,
1858
+ readUserAutoMemoryIndex,
1817
1859
  readWorktreeSession,
1818
1860
  readWorktreeSessionMarker,
1819
1861
  recordAllow,
@@ -1920,9 +1962,11 @@ export {
1920
1962
  shouldFallback,
1921
1963
  shouldFilterSuggestion,
1922
1964
  shouldFirePermissionDeniedForAutoMode,
1965
+ shouldForceAutoModeReviewForAllow,
1923
1966
  shouldRunAutoModeForCall,
1924
1967
  shouldShowStep,
1925
1968
  shutdownTelemetry,
1969
+ sleepInhibitor,
1926
1970
  splitCommands,
1927
1971
  splitCompoundCommand,
1928
1972
  splitConditionalSkills,
@@ -3,9 +3,9 @@
3
3
  import {
4
4
  STRUCTURED_OUTPUT_REDACTED_ARGS,
5
5
  SyntheticOutputTool
6
- } from "./chunk-UKQJ7G3U.js";
7
- import "./chunk-UB3HGW3I.js";
8
- import "./chunk-S2HZQ4RC.js";
6
+ } from "./chunk-5RNZ2QKF.js";
7
+ import "./chunk-G763GDO6.js";
8
+ import "./chunk-R5PDRHEF.js";
9
9
  import "./chunk-WFVXF3OM.js";
10
10
  import "./chunk-A4BMJM77.js";
11
11
  import "./chunk-J2S4EL5Y.js";
@@ -5,8 +5,8 @@ import {
5
5
  BaseToolInvocation,
6
6
  ToolDisplayNames,
7
7
  ToolNames
8
- } from "./chunk-UB3HGW3I.js";
9
- import "./chunk-S2HZQ4RC.js";
8
+ } from "./chunk-G763GDO6.js";
9
+ import "./chunk-R5PDRHEF.js";
10
10
  import "./chunk-WFVXF3OM.js";
11
11
  import {
12
12
  init_esbuild_shims
@@ -2,20 +2,20 @@
2
2
  "use strict";
3
3
  import {
4
4
  detectTodoChanges
5
- } from "./chunk-OPFJCRUK.js";
5
+ } from "./chunk-UABFCMPA.js";
6
6
  import {
7
7
  BaseDeclarativeTool,
8
8
  BaseToolInvocation,
9
9
  ToolDisplayNames,
10
10
  ToolNames
11
- } from "./chunk-UB3HGW3I.js";
11
+ } from "./chunk-G763GDO6.js";
12
12
  import {
13
13
  atomicWriteFile
14
- } from "./chunk-DU2ZAFA7.js";
14
+ } from "./chunk-F5ORN4YO.js";
15
15
  import {
16
16
  Storage,
17
17
  createDebugLogger
18
- } from "./chunk-S2HZQ4RC.js";
18
+ } from "./chunk-R5PDRHEF.js";
19
19
  import "./chunk-WFVXF3OM.js";
20
20
  import {
21
21
  init_esbuild_shims
@@ -2,27 +2,27 @@
2
2
  "use strict";
3
3
  import {
4
4
  DiscoveredMCPTool
5
- } from "./chunk-MW6Z7JDT.js";
5
+ } from "./chunk-3H7ENG2Q.js";
6
6
  import "./chunk-3PJXIDKI.js";
7
7
  import "./chunk-UWCTAVOD.js";
8
8
  import "./chunk-OFEVLU4C.js";
9
- import "./chunk-2T34DNYQ.js";
10
- import "./chunk-KSX2FIAZ.js";
11
- import "./chunk-UKQJ7G3U.js";
9
+ import "./chunk-AVLOK27J.js";
10
+ import "./chunk-JSYEZAYV.js";
11
+ import "./chunk-5RNZ2QKF.js";
12
12
  import {
13
13
  BaseDeclarativeTool,
14
14
  BaseToolInvocation,
15
15
  ToolDisplayNames,
16
16
  ToolNames
17
- } from "./chunk-UB3HGW3I.js";
18
- import "./chunk-DU2ZAFA7.js";
19
- import "./chunk-OV5SE5JD.js";
17
+ } from "./chunk-G763GDO6.js";
18
+ import "./chunk-F5ORN4YO.js";
19
+ import "./chunk-D46KOV3C.js";
20
20
  import "./chunk-BNESGOSJ.js";
21
21
  import "./chunk-SZOEIL6S.js";
22
22
  import "./chunk-5IFG2VC4.js";
23
23
  import {
24
24
  createDebugLogger
25
- } from "./chunk-S2HZQ4RC.js";
25
+ } from "./chunk-R5PDRHEF.js";
26
26
  import "./chunk-ZERZSAZL.js";
27
27
  import "./chunk-QN5NZ3UQ.js";
28
28
  import "./chunk-BR4QREVK.js";
@@ -47,7 +47,7 @@ var SCORE_NAME_EXACT_MCP = 12;
47
47
  var SCORE_NAME_SUBSTR_MCP = 6;
48
48
  var toolSearchDescription = `Fetches function declarations for deferred tools and registers them with the active session so subsequent turns can call them.
49
49
 
50
- Deferred tools appear by name in the "Deferred Tools" section of the system prompt. Until fetched, only the name is known \u2014 there is no parameter schema, so the tool cannot be invoked. This tool takes a query, matches it against the deferred tool list, and returns the matched tools' function declarations (name + description + parameter schema) inside a <functions> block.
50
+ Deferred tools appear by name in the deferred-tools startup reminder. Until fetched, only the name is known \u2014 there is no parameter schema, so the tool cannot be invoked. This tool takes a query, matches it against the deferred tool list, and returns the matched tools' function declarations (name + description + parameter schema) inside a <functions> block.
51
51
 
52
52
  The returned <functions> block is informational \u2014 it shows what the schema looks like. Calling the tool itself happens via the model's normal function-call mechanism on the NEXT turn, after the active session's declaration list has been updated. Tools fetched here remain available for the rest of the session.
53
53
 
@@ -213,6 +213,21 @@ var ToolSearchInvocation = class extends BaseToolInvocation {
213
213
  `
214
214
  );
215
215
  }
216
+ if (!setToolsError) {
217
+ try {
218
+ await geminiClient.refreshStartupContextReminder();
219
+ } catch (err) {
220
+ const refreshError = err instanceof Error ? err.message : String(err);
221
+ debugLogger.warn(
222
+ "refreshStartupContextReminder() failed after revealing deferred tools:",
223
+ err
224
+ );
225
+ process.stderr.write(
226
+ `[ToolSearch] refreshStartupContextReminder() failed after revealing deferred tools: ${refreshError}
227
+ `
228
+ );
229
+ }
230
+ }
216
231
  }
217
232
  if (setToolsError) {
218
233
  for (const name of newlyRevealed) {
@@ -2,21 +2,21 @@
2
2
  "use strict";
3
3
  import {
4
4
  runSideQuery
5
- } from "./chunk-77UV3M62.js";
5
+ } from "./chunk-SCHRFI7O.js";
6
6
  import "./chunk-OFEVLU4C.js";
7
7
  import {
8
8
  BaseDeclarativeTool,
9
9
  BaseToolInvocation,
10
10
  ToolDisplayNames,
11
11
  ToolNames
12
- } from "./chunk-UB3HGW3I.js";
12
+ } from "./chunk-G763GDO6.js";
13
13
  import {
14
14
  fetchWithTimeout,
15
15
  isPrivateIp
16
- } from "./chunk-7R5J5HSJ.js";
16
+ } from "./chunk-GBEPNWYB.js";
17
17
  import {
18
18
  createDebugLogger
19
- } from "./chunk-S2HZQ4RC.js";
19
+ } from "./chunk-R5PDRHEF.js";
20
20
  import "./chunk-WFVXF3OM.js";
21
21
  import {
22
22
  init_esbuild_shims
@@ -3,7 +3,7 @@
3
3
  import {
4
4
  StructuredToolError,
5
5
  checkPriorRead
6
- } from "./chunk-OCR7PXOA.js";
6
+ } from "./chunk-SHUT5MQY.js";
7
7
  import {
8
8
  CommitAttributionService,
9
9
  DEFAULT_DIFF_OPTIONS,
@@ -12,42 +12,42 @@ import {
12
12
  detectLineEnding,
13
13
  getDiffStat,
14
14
  needsUtf8Bom
15
- } from "./chunk-MUMLIB4J.js";
15
+ } from "./chunk-BUOJN3MM.js";
16
16
  import "./chunk-K5PGHDBN.js";
17
17
  import "./chunk-O4PICXES.js";
18
18
  import "./chunk-TW522KN6.js";
19
19
  import "./chunk-MLZQVCF3.js";
20
- import "./chunk-77UV3M62.js";
21
- import "./chunk-UEW42CYE.js";
22
- import "./chunk-OPFJCRUK.js";
20
+ import "./chunk-SCHRFI7O.js";
21
+ import "./chunk-PLYZAP4W.js";
22
+ import "./chunk-UABFCMPA.js";
23
23
  import "./chunk-77WXWU44.js";
24
- import "./chunk-LESSBSSE.js";
24
+ import "./chunk-6VFG3EUJ.js";
25
25
  import {
26
26
  FileOperationEvent,
27
27
  fileExists,
28
28
  getLanguageFromFilePath,
29
29
  getSpecificMimeType,
30
30
  logFileOperation
31
- } from "./chunk-MW6Z7JDT.js";
31
+ } from "./chunk-3H7ENG2Q.js";
32
32
  import "./chunk-3PJXIDKI.js";
33
33
  import "./chunk-UWCTAVOD.js";
34
34
  import "./chunk-OFEVLU4C.js";
35
35
  import {
36
- isAutoMemPath
37
- } from "./chunk-2T34DNYQ.js";
38
- import "./chunk-KSX2FIAZ.js";
39
- import "./chunk-UKQJ7G3U.js";
36
+ isAnyAutoMemPath
37
+ } from "./chunk-AVLOK27J.js";
38
+ import "./chunk-JSYEZAYV.js";
39
+ import "./chunk-5RNZ2QKF.js";
40
40
  import {
41
41
  BaseDeclarativeTool,
42
42
  BaseToolInvocation,
43
43
  ToolDisplayNames,
44
44
  ToolNames
45
- } from "./chunk-UB3HGW3I.js";
46
- import "./chunk-JAF4PLE7.js";
47
- import "./chunk-7R5J5HSJ.js";
48
- import "./chunk-DU2ZAFA7.js";
49
- import "./chunk-R7WIF3BU.js";
50
- import "./chunk-OV5SE5JD.js";
45
+ } from "./chunk-G763GDO6.js";
46
+ import "./chunk-JMLIPZUU.js";
47
+ import "./chunk-GBEPNWYB.js";
48
+ import "./chunk-F5ORN4YO.js";
49
+ import "./chunk-MVX64PNU.js";
50
+ import "./chunk-D46KOV3C.js";
51
51
  import "./chunk-BNESGOSJ.js";
52
52
  import "./chunk-SZOEIL6S.js";
53
53
  import "./chunk-5IFG2VC4.js";
@@ -58,7 +58,7 @@ import {
58
58
  makeRelative,
59
59
  shortenPath,
60
60
  unescapePath
61
- } from "./chunk-S2HZQ4RC.js";
61
+ } from "./chunk-R5PDRHEF.js";
62
62
  import "./chunk-ZERZSAZL.js";
63
63
  import "./chunk-QN5NZ3UQ.js";
64
64
  import "./chunk-BR4QREVK.js";
@@ -99,7 +99,7 @@ var WriteFileToolInvocation = class extends BaseToolInvocation {
99
99
  */
100
100
  async getDefaultPermission() {
101
101
  const projectRoot = this.config.getProjectRoot();
102
- if (isAutoMemPath(path.resolve(this.params.file_path), projectRoot)) {
102
+ if (isAnyAutoMemPath(path.resolve(this.params.file_path), projectRoot)) {
103
103
  return "allow";
104
104
  }
105
105
  return "ask";
@@ -177,7 +177,7 @@ var zh_default = {
177
177
  "open full Qwen Code documentation in your browser": "\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00\u5B8C\u6574\u7684 Qwen Code \u6587\u6863",
178
178
  "Configuration not available.": "\u914D\u7F6E\u4E0D\u53EF\u7528",
179
179
  "Connect an LLM provider": "\u8FDE\u63A5 LLM \u63D0\u4F9B\u5546",
180
- "Copy the last result or code snippet to clipboard": "\u5C06\u6700\u540E\u7684\u7ED3\u679C\u6216\u4EE3\u7801\u7247\u6BB5\u590D\u5236\u5230\u526A\u8D34\u677F",
180
+ "Copy the last AI response to clipboard (/copy N for Nth-latest)": "\u5C06\u6700\u8FD1\u7684 AI \u56DE\u590D\u590D\u5236\u5230\u526A\u8D34\u677F\uFF08/copy N \u590D\u5236\u5012\u6570\u7B2C N \u6761\uFF09",
181
181
  "Show working-tree change stats versus HEAD": "\u663E\u793A\u5DE5\u4F5C\u533A\u76F8\u5BF9 HEAD \u7684\u53D8\u66F4\u7EDF\u8BA1",
182
182
  "Could not determine current working directory.": "\u65E0\u6CD5\u786E\u5B9A\u5F53\u524D\u5DE5\u4F5C\u76EE\u5F55\u3002",
183
183
  "Failed to compute git diff stats": "\u8BA1\u7B97 git diff \u7EDF\u8BA1\u5931\u8D25",
@@ -671,6 +671,16 @@ var zh_default = {
671
671
  // ============================================================================
672
672
  "Resume a previous session": "\u6062\u590D\u5148\u524D\u4F1A\u8BDD",
673
673
  "Fork the current conversation into a new session": "\u5C06\u5F53\u524D\u5BF9\u8BDD\u5206\u652F\u5230\u65B0\u4F1A\u8BDD",
674
+ "Spawn a background agent that inherits the full conversation": "\u542F\u52A8\u7EE7\u627F\u5B8C\u6574\u5BF9\u8BDD\u7684\u540E\u53F0\u667A\u80FD\u4F53",
675
+ "Please provide a directive. Usage: /fork <directive>": "\u8BF7\u63D0\u4F9B\u6307\u4EE4\u3002\u7528\u6CD5\uFF1A/fork <\u6307\u4EE4>",
676
+ "Cannot fork while a response or tool call is in progress. Wait for it to finish or resolve the pending tool call.": "\u54CD\u5E94\u6216\u5DE5\u5177\u8C03\u7528\u6B63\u5728\u8FDB\u884C\u65F6\u65E0\u6CD5\u5206\u652F\u3002\u8BF7\u7B49\u5F85\u5176\u5B8C\u6210\u6216\u5904\u7406\u5F85\u786E\u8BA4\u7684\u5DE5\u5177\u8C03\u7528\u3002",
677
+ "Cannot fork before the first conversation turn.": "\u9996\u6B21\u5BF9\u8BDD\u8F6E\u6B21\u524D\u65E0\u6CD5\u5206\u652F\u3002",
678
+ "The /fork command requires the fork feature gate. Set QWEN_CODE_ENABLE_FORK_SUBAGENT=1 to enable it.": "/fork \u547D\u4EE4\u9700\u8981\u542F\u7528 fork \u529F\u80FD\u5F00\u5173\u3002\u8BBE\u7F6E QWEN_CODE_ENABLE_FORK_SUBAGENT=1 \u4EE5\u542F\u7528\u3002",
679
+ "The agent tool is unavailable; cannot fork.": "Agent \u5DE5\u5177\u4E0D\u53EF\u7528\uFF1B\u65E0\u6CD5\u5206\u652F\u3002",
680
+ "Failed to launch fork: {{error}}": "\u542F\u52A8\u5206\u652F\u5931\u8D25\uFF1A{{error}}",
681
+ "the background agent could not be started.": "\u540E\u53F0\u667A\u80FD\u4F53\u65E0\u6CD5\u542F\u52A8\u3002",
682
+ "User launched a background fork via /fork: {{directive}}": "\u7528\u6237\u901A\u8FC7 /fork \u542F\u52A8\u4E86\u540E\u53F0\u5206\u652F\uFF1A{{directive}}",
683
+ "Forked into a background agent. It inherits this conversation and runs without blocking \u2014 track it in the background tasks panel; it reports back when done.": "\u5DF2\u5206\u652F\u5230\u540E\u53F0\u667A\u80FD\u4F53\u3002\u5B83\u4F1A\u7EE7\u627F\u6B64\u5BF9\u8BDD\u5E76\u4EE5\u975E\u963B\u585E\u65B9\u5F0F\u8FD0\u884C\uFF0C\u53EF\u5728\u540E\u53F0\u4EFB\u52A1\u9762\u677F\u4E2D\u8DDF\u8E2A\uFF1B\u5B8C\u6210\u540E\u4F1A\u56DE\u62A5\u7ED3\u679C\u3002",
674
684
  "Cannot branch while a response or tool call is in progress. Wait for it to finish or resolve the pending tool call.": "\u54CD\u5E94\u6216\u5DE5\u5177\u8C03\u7528\u6B63\u5728\u8FDB\u884C\u65F6\u65E0\u6CD5\u5206\u652F\u3002\u8BF7\u7B49\u5F85\u5176\u5B8C\u6210\u6216\u5904\u7406\u5F85\u786E\u8BA4\u7684\u5DE5\u5177\u8C03\u7528\u3002",
675
685
  "No conversation to branch.": "\u6CA1\u6709\u53EF\u5206\u652F\u7684\u5BF9\u8BDD\u3002",
676
686
  "Restore a tool call. This will reset the conversation and file history to the state it was in when the tool call was suggested": "\u6062\u590D\u67D0\u6B21\u5DE5\u5177\u8C03\u7528\u3002\u8FD9\u5C06\u628A\u5BF9\u8BDD\u4E0E\u6587\u4EF6\u5386\u53F2\u91CD\u7F6E\u5230\u63D0\u51FA\u8BE5\u5DE5\u5177\u8C03\u7528\u5EFA\u8BAE\u65F6\u7684\u72B6\u6001",