@qwen-code/qwen-code 0.17.1 → 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 (120) hide show
  1. package/README.md +4 -6
  2. package/bundled/qc-helper/SKILL.md +30 -24
  3. package/bundled/qc-helper/docs/features/auto-mode.md +54 -9
  4. package/bundled/qc-helper/docs/features/commands.md +11 -11
  5. package/bundled/qc-helper/docs/features/markdown-rendering.md +21 -1
  6. package/bundled/qc-helper/docs/overview.md +4 -4
  7. package/bundled/qc-helper/docs/quickstart.md +4 -4
  8. package/bundled/qc-helper/docs/support/Uninstall.md +19 -1
  9. package/bundled/qc-helper/docs/support/troubleshooting.md +2 -1
  10. package/chunks/{agent-ZJHHICAC.js → agent-6J2FFD7S.js} +18 -22
  11. package/chunks/{anthropicContentGenerator-M45RXZVS.js → anthropicContentGenerator-4QBVSFSJ.js} +5 -5
  12. package/chunks/{askUserQuestion-TGRD7FNQ.js → askUserQuestion-NOOLRWCJ.js} +5 -7
  13. package/chunks/{ca-6RSCDYUS.js → ca-WRHFBIDH.js} +38 -3
  14. package/chunks/{chunk-C5CUHYSM.js → chunk-3H7ENG2Q.js} +821 -461
  15. package/chunks/{chunk-SOGUPKP6.js → chunk-5RNZ2QKF.js} +3 -5
  16. package/chunks/{chunk-GVWPJCXU.js → chunk-6VFG3EUJ.js} +1 -1
  17. package/chunks/{chunk-NQ3E7YLD.js → chunk-AVLOK27J.js} +42 -8
  18. package/chunks/{chunk-JBSYXHJF.js → chunk-BBTV54KB.js} +2 -2
  19. package/chunks/{chunk-X2474BTT.js → chunk-BPZQVC2P.js} +142 -9
  20. package/chunks/{chunk-2KEXT6RB.js → chunk-BUOJN3MM.js} +91245 -78527
  21. package/chunks/{chunk-3BJBCG2K.js → chunk-C6WMLUNB.js} +1 -1
  22. package/chunks/{chunk-TDZCEIK6.js → chunk-D46KOV3C.js} +1 -1
  23. package/chunks/{chunk-HX3JRTWL.js → chunk-F5ORN4YO.js} +1 -1
  24. package/chunks/{chunk-JKUAX6UT.js → chunk-G763GDO6.js} +125 -12
  25. package/chunks/{chunk-OIL7KDWV.js → chunk-GBEPNWYB.js} +1 -1
  26. package/chunks/{chunk-5JBZM7FZ.js → chunk-IKOMHTCC.js} +6 -6
  27. package/chunks/{chunk-G4K6P5KN.js → chunk-JMLIPZUU.js} +3 -3
  28. package/chunks/{chunk-OJFMTECH.js → chunk-JSYEZAYV.js} +2 -2
  29. package/chunks/{chunk-AKBFRR6J.js → chunk-K5PGHDBN.js} +132 -112
  30. package/chunks/{chunk-QVJ33ZBG.js → chunk-MVX64PNU.js} +1 -1
  31. package/chunks/{chunk-EY6BDW7Y.js → chunk-PLYZAP4W.js} +45 -9
  32. package/chunks/{chunk-ACBGEKB7.js → chunk-R5PDRHEF.js} +2 -1
  33. package/chunks/{chunk-6O244QKR.js → chunk-SCHRFI7O.js} +1 -1
  34. package/chunks/{chunk-GJHMAWS7.js → chunk-SHUT5MQY.js} +1 -1
  35. package/chunks/{chunk-RQW7WUJR.js → chunk-UABFCMPA.js} +34 -6
  36. package/chunks/{chunk-33RDTIU6.js → chunk-UFC57OYT.js} +3 -5
  37. package/chunks/{chunk-PLYRQYKC.js → chunk-UQZQP5PA.js} +11 -11
  38. package/chunks/{chunk-NP3ICQCN.js → chunk-USE2VQ5P.js} +1 -1
  39. package/chunks/{chunk-NJJER6E2.js → chunk-UXBKX55L.js} +10 -6
  40. package/chunks/{chunk-QWSRH265.js → chunk-WFVXF3OM.js} +776 -776
  41. package/chunks/{computer-use-NAHQPV2L.js → computer-use-6LZXL3UW.js} +51 -18
  42. package/chunks/contextCommand-ZV5QQ2LA.js +46 -0
  43. package/chunks/{cron-create-V3UK2SJN.js → cron-create-PIPMXQN4.js} +5 -7
  44. package/chunks/{cron-delete-MANALPCP.js → cron-delete-6Y5XIDMS.js} +5 -7
  45. package/chunks/{cron-list-UDIYK3B3.js → cron-list-A4WNRUWZ.js} +5 -7
  46. package/chunks/{de-APURNJ3I.js → de-M5RPB2NB.js} +38 -3
  47. package/chunks/{dist-XTTPOFAH.js → dist-BXDUQ2QY.js} +3 -4
  48. package/chunks/{dist-AHZNZWRI.js → dist-R2SXPG74.js} +4 -5
  49. package/chunks/{dist-ATAKC63R.js → dist-TE5QKMGR.js} +3 -4
  50. package/chunks/{dist-6RUZ2JD6.js → dist-ZMQ4TXD5.js} +3 -4
  51. package/chunks/{edit-JWXCQ4KK.js → edit-J7D6VMPQ.js} +22 -27
  52. package/chunks/{en-FYO57HJW.js → en-UMYKQAZE.js} +46 -3
  53. package/chunks/{enter-worktree-G4CJXPT4.js → enter-worktree-NDJTVGYJ.js} +20 -25
  54. package/chunks/{exit-worktree-MYZ2FGU2.js → exit-worktree-UB6XYYAX.js} +20 -25
  55. package/chunks/{exitPlanMode-ELJ6FSMU.js → exitPlanMode-V6X2KL4X.js} +20 -25
  56. package/chunks/{fr-32YHQZIS.js → fr-MPYXXXPW.js} +38 -3
  57. package/chunks/{geminiContentGenerator-3LR7MKCQ.js → geminiContentGenerator-3AKHMB3P.js} +5 -5
  58. package/chunks/{getMachineId-bsd-GS3V2GK7.js → getMachineId-bsd-F7GNPTER.js} +1 -1
  59. package/chunks/{getMachineId-darwin-ZQB4Q7EW.js → getMachineId-darwin-T73DJL27.js} +1 -1
  60. package/chunks/{getMachineId-linux-JQ4NN4DN.js → getMachineId-linux-MKQTFPQM.js} +1 -1
  61. package/chunks/{getMachineId-unsupported-U7H4V4HJ.js → getMachineId-unsupported-MUR5KOQE.js} +1 -1
  62. package/chunks/{getMachineId-win-VHUZGBQ3.js → getMachineId-win-CDYFC6ZM.js} +1 -1
  63. package/chunks/{glob-CANUAUTC.js → glob-PBG5DRG4.js} +20 -25
  64. package/chunks/{grep-WZWNJRDX.js → grep-VQ56EWQ7.js} +20 -25
  65. package/chunks/{ja-PEUXN4XT.js → ja-NFZ32AB3.js} +38 -3
  66. package/chunks/{keychain-token-storage-3552ENXE.js → keychain-token-storage-UHGOCDD6.js} +3 -3
  67. package/chunks/{ls-T4SVZWR6.js → ls-34DLNYCD.js} +6 -8
  68. package/chunks/{lsp-U4ZQLNIS.js → lsp-NCDEHH3V.js} +5 -7
  69. package/chunks/{monitor-CCKNOUFG.js → monitor-J3YCSOEH.js} +20 -25
  70. package/chunks/{notebook-edit-XDUY5Q4I.js → notebook-edit-AL3CBYJ6.js} +21 -26
  71. package/chunks/{openaiContentGenerator-N3O3MYIT.js → openaiContentGenerator-3U6UARHS.js} +12 -14
  72. package/chunks/{pt-2INS7YVC.js → pt-BR43FRBA.js} +38 -3
  73. package/chunks/{qwenContentGenerator-DEOIWKVH.js → qwenContentGenerator-JRFHJRH6.js} +20 -24
  74. package/chunks/{qwenOAuth2-LKXG7XVO.js → qwenOAuth2-KRJT35QH.js} +5 -5
  75. package/chunks/{read-file-BRNXGILN.js → read-file-ZF6EIVE3.js} +9 -11
  76. package/chunks/ripGrep-N2ZT7M6Z.js +42 -0
  77. package/chunks/{ru-6CQ5HNHB.js → ru-DQCW2KHD.js} +38 -3
  78. package/chunks/{scheduler-SSFABMN5.js → scheduler-OS37FUFT.js} +18 -22
  79. package/chunks/{send-message-GFYV7WLL.js → send-message-YYF56TS7.js} +5 -7
  80. package/chunks/{serve-B5O72CRN.js → serve-ABOLLDNN.js} +21 -25
  81. package/chunks/{shell-SGYNBVMK.js → shell-XGN7IDUS.js} +18 -22
  82. package/chunks/{skill-V7Y6DOFB.js → skill-YQQ6CR4U.js} +88 -25
  83. package/chunks/{src-OKFFQGXB.js → src-LORPPHWB.js} +86 -33
  84. package/chunks/{syntheticOutput-DM43O6TY.js → syntheticOutput-T5SWX3YF.js} +4 -5
  85. package/chunks/{task-stop-WKP5OB3V.js → task-stop-3VHAQMYM.js} +5 -7
  86. package/chunks/{todoWrite-GHL6DCLP.js → todoWrite-EAGJGKO5.js} +7 -9
  87. package/chunks/{tool-search-7MHT3HGM.js → tool-search-PDOJPXJJ.js} +27 -15
  88. package/chunks/{web-fetch-SZIV74ZX.js → web-fetch-SS6IKK6N.js} +7 -9
  89. package/chunks/{write-file-ARS2Z6BJ.js → write-file-VWWCN7LI.js} +23 -28
  90. package/chunks/{zh-ZHZCMIRG.js → zh-6VFXOAR5.js} +49 -3
  91. package/chunks/{zh-TW-SSL3ATVZ.js → zh-TW-IQZ4AD5M.js} +45 -3
  92. package/cli.js +8143 -4150
  93. package/examples/agent/agents/diary.md +86 -0
  94. package/examples/agent/qwen-extension.json +4 -0
  95. package/examples/commands/commands/fs/grep-code.md +3 -0
  96. package/examples/commands/qwen-extension.json +4 -0
  97. package/examples/context/QWEN.md +8 -0
  98. package/examples/context/qwen-extension.json +4 -0
  99. package/examples/mcp-server/example.ts +60 -0
  100. package/examples/mcp-server/package.json +18 -0
  101. package/examples/mcp-server/qwen-extension.json +11 -0
  102. package/examples/mcp-server/tsconfig.json +13 -0
  103. package/examples/skills/qwen-extension.json +4 -0
  104. package/examples/skills/skills/synonyms/SKILL.md +48 -0
  105. package/locales/ca.js +64 -4
  106. package/locales/de.js +63 -4
  107. package/locales/en.js +75 -4
  108. package/locales/fr.js +65 -4
  109. package/locales/ja.js +61 -4
  110. package/locales/pt.js +64 -4
  111. package/locales/ru.js +62 -4
  112. package/locales/zh-TW.js +70 -4
  113. package/locales/zh.js +74 -4
  114. package/package.json +3 -2
  115. package/chunks/chunk-24YKA2DA.js +0 -233
  116. package/chunks/chunk-6RQTH7UQ.js +0 -115
  117. package/chunks/chunk-7TQVELRB.js +0 -10412
  118. package/chunks/chunk-W57YDFU5.js +0 -41
  119. package/chunks/contextCommand-7KJT3UJS.js +0 -50
  120. package/chunks/ripGrep-ZRY5PKUZ.js +0 -46
@@ -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,22 +621,21 @@ import {
606
621
  writeWorktreeSession,
607
622
  writeWorktreeSessionMarker,
608
623
  zaiProvider
609
- } from "./chunk-2KEXT6RB.js";
610
- import "./chunk-24YKA2DA.js";
624
+ } from "./chunk-BUOJN3MM.js";
625
+ import "./chunk-K5PGHDBN.js";
611
626
  import "./chunk-O4PICXES.js";
612
627
  import "./chunk-TW522KN6.js";
613
- import "./chunk-7TQVELRB.js";
614
- import "./chunk-AKBFRR6J.js";
615
628
  import {
616
629
  InputFormat,
617
630
  OutputFormat
618
631
  } from "./chunk-MLZQVCF3.js";
619
632
  import {
620
633
  runSideQuery
621
- } from "./chunk-6O244QKR.js";
634
+ } from "./chunk-SCHRFI7O.js";
622
635
  import {
636
+ applySkillAllowedTools,
623
637
  buildSkillLlmContent
624
- } from "./chunk-EY6BDW7Y.js";
638
+ } from "./chunk-PLYZAP4W.js";
625
639
  import {
626
640
  AgentType,
627
641
  DefaultHookOutput,
@@ -630,6 +644,7 @@ import {
630
644
  HookPhase,
631
645
  HookType,
632
646
  HooksConfigSource,
647
+ MAX_USER_PROMPT_EXPANSION_ADDITIONAL_CONTEXT_LENGTH,
633
648
  NotificationType,
634
649
  PermissionMode,
635
650
  PermissionRequestHookOutput,
@@ -642,17 +657,19 @@ import {
642
657
  SessionEndReason,
643
658
  SessionStartSource,
644
659
  StopHookOutput,
660
+ UserPromptExpansionHookOutput,
645
661
  createHookOutput,
646
662
  detectTodoChanges,
647
- getHookKey
648
- } from "./chunk-RQW7WUJR.js";
663
+ getHookKey,
664
+ sanitizeUserPromptExpansionAdditionalContext
665
+ } from "./chunk-UABFCMPA.js";
649
666
  import {
650
667
  DEFAULT_FILE_FILTERING_OPTIONS,
651
668
  DEFAULT_MEMORY_FILE_FILTERING_OPTIONS
652
669
  } from "./chunk-77WXWU44.js";
653
670
  import {
654
671
  KeychainTokenStorage
655
- } from "./chunk-GVWPJCXU.js";
672
+ } from "./chunk-6VFG3EUJ.js";
656
673
  import {
657
674
  AGENT_CONTEXT_FILENAME,
658
675
  ApiCancelEvent,
@@ -742,6 +759,7 @@ import {
742
759
  endHookSpan,
743
760
  endInteractionSpan,
744
761
  endLLMRequestSpan,
762
+ endSubagentSpan,
745
763
  endToolBlockedOnUserSpan,
746
764
  endToolExecutionSpan,
747
765
  endToolSpan,
@@ -809,6 +827,7 @@ import {
809
827
  recordApiErrorMetrics,
810
828
  recordApiRequestBreakdown,
811
829
  recordApiResponseMetrics,
830
+ recordApiRetry,
812
831
  recordArenaAgentCompletedMetrics,
813
832
  recordArenaSessionEndedMetrics,
814
833
  recordArenaSessionStartedMetrics,
@@ -835,6 +854,7 @@ import {
835
854
  resolveContentGeneratorConfigWithSources,
836
855
  resolveOpenAILogDir,
837
856
  resolveTelemetrySettings,
857
+ runInSubagentSpanContext,
838
858
  runInToolSpanContext,
839
859
  sanitizeHookName,
840
860
  setGeminiMdFilename,
@@ -842,6 +862,7 @@ import {
842
862
  startHookSpan,
843
863
  startInteractionSpan,
844
864
  startLLMRequestSpan,
865
+ startSubagentSpan,
845
866
  startToolBlockedOnUserSpan,
846
867
  startToolExecutionSpan,
847
868
  startToolSpan,
@@ -850,10 +871,9 @@ import {
850
871
  uiTelemetryService,
851
872
  validateModelConfig,
852
873
  windowsCodePageToEncoding
853
- } from "./chunk-C5CUHYSM.js";
874
+ } from "./chunk-3H7ENG2Q.js";
854
875
  import "./chunk-3PJXIDKI.js";
855
876
  import "./chunk-UWCTAVOD.js";
856
- import "./chunk-W57YDFU5.js";
857
877
  import {
858
878
  DEFAULT_QWEN_EMBEDDING_MODEL,
859
879
  DEFAULT_QWEN_FLASH_MODEL,
@@ -866,6 +886,7 @@ import {
866
886
  AUTO_MEMORY_EXTRACT_CURSOR_FILENAME,
867
887
  AUTO_MEMORY_INDEX_FILENAME,
868
888
  AUTO_MEMORY_METADATA_FILENAME,
889
+ USER_AUTO_MEMORY_DIRNAME,
869
890
  clearAutoMemoryRootCache,
870
891
  getAutoMemoryConsolidationLockPath,
871
892
  getAutoMemoryExtractCursorPath,
@@ -877,16 +898,15 @@ import {
877
898
  getAutoMemoryTopicFilename,
878
899
  getAutoMemoryTopicPath,
879
900
  getMemoryBaseDir,
880
- isAutoMemPath
881
- } from "./chunk-NQ3E7YLD.js";
882
- import "./chunk-OJFMTECH.js";
883
- import "./chunk-SOGUPKP6.js";
884
- import {
885
- ToolDisplayNames,
886
- ToolDisplayNamesMigration,
887
- ToolNames,
888
- ToolNamesMigration
889
- } from "./chunk-6RQTH7UQ.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";
890
910
  import {
891
911
  AgentStatistics,
892
912
  BaseDeclarativeTool,
@@ -897,10 +917,14 @@ import {
897
917
  MUTATOR_KINDS,
898
918
  SchemaValidator,
899
919
  ToolConfirmationOutcome,
920
+ ToolDisplayNames,
921
+ ToolDisplayNamesMigration,
900
922
  ToolErrorType,
923
+ ToolNames,
924
+ ToolNamesMigration,
901
925
  hasCycleInSchema,
902
926
  isTool
903
- } from "./chunk-JKUAX6UT.js";
927
+ } from "./chunk-G763GDO6.js";
904
928
  import {
905
929
  CredentialsClearRequiredError,
906
930
  QWEN_CREDENTIAL_FILE_MODE,
@@ -919,15 +943,15 @@ import {
919
943
  isDeviceTokenSuccess,
920
944
  isErrorResponse,
921
945
  qwenOAuth2Events
922
- } from "./chunk-G4K6P5KN.js";
923
- import "./chunk-OIL7KDWV.js";
946
+ } from "./chunk-JMLIPZUU.js";
947
+ import "./chunk-GBEPNWYB.js";
924
948
  import {
925
949
  atomicWriteFile,
926
950
  atomicWriteFileSync,
927
951
  atomicWriteJSON,
928
952
  renameWithRetry,
929
953
  renameWithRetrySync
930
- } from "./chunk-HX3JRTWL.js";
954
+ } from "./chunk-F5ORN4YO.js";
931
955
  import {
932
956
  SUPPORTED_IMAGE_MIME_TYPES,
933
957
  TextTokenizer,
@@ -937,7 +961,7 @@ import {
937
961
  getUnsupportedImageFormatWarning,
938
962
  isSupportedImageMimeType,
939
963
  redactProxyCredentials
940
- } from "./chunk-QVJ33ZBG.js";
964
+ } from "./chunk-MVX64PNU.js";
941
965
  import {
942
966
  CAPPED_DEFAULT_MAX_TOKENS,
943
967
  DEFAULT_OUTPUT_TOKEN_LIMIT,
@@ -952,7 +976,7 @@ import {
952
976
  summarizeAnthropicWireRequest,
953
977
  summarizeOpenAIWireRequest,
954
978
  tokenLimit
955
- } from "./chunk-TDZCEIK6.js";
979
+ } from "./chunk-D46KOV3C.js";
956
980
  import "./chunk-BNESGOSJ.js";
957
981
  import "./chunk-SZOEIL6S.js";
958
982
  import "./chunk-5IFG2VC4.js";
@@ -1000,14 +1024,14 @@ import {
1000
1024
  unescapePath,
1001
1025
  updateSymlink,
1002
1026
  validatePath
1003
- } from "./chunk-ACBGEKB7.js";
1027
+ } from "./chunk-R5PDRHEF.js";
1004
1028
  import "./chunk-ZERZSAZL.js";
1005
1029
  import "./chunk-QN5NZ3UQ.js";
1006
1030
  import "./chunk-BR4QREVK.js";
1007
1031
  import {
1008
1032
  SpanStatusCode,
1009
1033
  ValueType
1010
- } from "./chunk-QWSRH265.js";
1034
+ } from "./chunk-WFVXF3OM.js";
1011
1035
  import "./chunk-A4BMJM77.js";
1012
1036
  import "./chunk-J2S4EL5Y.js";
1013
1037
  export {
@@ -1227,6 +1251,7 @@ export {
1227
1251
  MAX_RETAINED_TERMINAL_MONITORS,
1228
1252
  MAX_RETAINED_TERMINAL_SHELLS,
1229
1253
  MAX_TRANSCRIPT_MESSAGES,
1254
+ MAX_USER_PROMPT_EXPANSION_ADDITIONAL_CONTEXT_LENGTH,
1230
1255
  MCPDiscoveryState,
1231
1256
  MCPOAuthProvider,
1232
1257
  MCPOAuthTokenStorage,
@@ -1306,12 +1331,13 @@ export {
1306
1331
  SHELL_SPECIAL_CHARS,
1307
1332
  SHELL_TOOL_NAMES,
1308
1333
  SKILL_REVIEW_TASK_TYPE,
1309
- STARTUP_CONTEXT_MODEL_ACK,
1310
1334
  STOP_HOOK_BLOCK_CAP_ENV,
1311
1335
  SUGGESTION_PROMPT,
1312
1336
  SUPPORTED_IMAGE_MIME_TYPES,
1313
1337
  SYMBOL_KIND_LABELS,
1314
1338
  SYSTEM_FILE_EXCLUDES,
1339
+ SYSTEM_REMINDER_CLOSE,
1340
+ SYSTEM_REMINDER_OPEN,
1315
1341
  SchemaValidator,
1316
1342
  SdkControlClientTransport,
1317
1343
  SemanticAttributes,
@@ -1326,6 +1352,7 @@ export {
1326
1352
  SkillLaunchEvent,
1327
1353
  SkillManager,
1328
1354
  SlashCommandStatus,
1355
+ SleepInhibitor,
1329
1356
  SpanStatusCode,
1330
1357
  SpeculationEvent,
1331
1358
  StandardFileSystemService,
@@ -1360,11 +1387,13 @@ export {
1360
1387
  ToolRegistry,
1361
1388
  TrustGateError,
1362
1389
  Turn,
1390
+ USER_AUTO_MEMORY_DIRNAME,
1363
1391
  UiTelemetryService,
1364
1392
  UnauthorizedError,
1365
1393
  UserFeedbackEvent,
1366
1394
  UserFeedbackRating,
1367
1395
  UserPromptEvent,
1396
+ UserPromptExpansionHookOutput,
1368
1397
  UserRetryEvent,
1369
1398
  ValueType,
1370
1399
  WORKTREES_DIR,
@@ -1382,6 +1411,7 @@ export {
1382
1411
  abortGoalForStopHookCap,
1383
1412
  abortSpeculation,
1384
1413
  acceptSpeculation,
1414
+ acquireSleepInhibitor,
1385
1415
  activeGoalEquals,
1386
1416
  addMCPStatusChangeListener,
1387
1417
  addModelOutputAttributes,
@@ -1395,21 +1425,25 @@ export {
1395
1425
  appendToLastTextPart,
1396
1426
  applyAutoModeDecision,
1397
1427
  applyProviderInstallPlan,
1428
+ applySkillAllowedTools,
1398
1429
  atomicWriteFile,
1399
1430
  atomicWriteFileSync,
1400
1431
  atomicWriteJSON,
1432
+ buildAddedMcpToolsReminder,
1401
1433
  buildApiHistoryFromConversation,
1402
1434
  buildBackgroundEntryLabel,
1403
- buildDeferredToolsSection,
1435
+ buildDeferredToolsReminder,
1404
1436
  buildFallbackApproachSummary,
1405
1437
  buildHumanReadableRuleLabel,
1406
1438
  buildInstallPlan,
1439
+ buildMcpServerInstructionsReminder,
1407
1440
  buildModelIdContext,
1408
1441
  buildPermissionCheckContext,
1409
1442
  buildPermissionRules,
1410
1443
  buildProviderTemplate,
1411
1444
  buildShellExecWarnings,
1412
1445
  buildSkillLlmContent,
1446
+ buildStartupContextReminder,
1413
1447
  cacheQwenCredentials,
1414
1448
  canUseRipgrep,
1415
1449
  checkArgumentSafety,
@@ -1460,6 +1494,7 @@ export {
1460
1494
  createForkedChat,
1461
1495
  createGoalStopHookCallback,
1462
1496
  createHookOutput,
1497
+ createInstructionsLoadedCallback,
1463
1498
  createStreamableHttpCompatibilityFetch,
1464
1499
  createTmpDir,
1465
1500
  createToolUseSummaryMessage,
@@ -1493,6 +1528,7 @@ export {
1493
1528
  endHookSpan,
1494
1529
  endInteractionSpan,
1495
1530
  endLLMRequestSpan,
1531
+ endSubagentSpan,
1496
1532
  endToolBlockedOnUserSpan,
1497
1533
  endToolExecutionSpan,
1498
1534
  endToolSpan,
@@ -1501,6 +1537,7 @@ export {
1501
1537
  ensureMacBinarySigned,
1502
1538
  ensureRipgrepHealthy,
1503
1539
  ensureToolResultPairing,
1540
+ ensureUserAutoMemoryScaffold,
1504
1541
  envLayer,
1505
1542
  escapePath,
1506
1543
  escapeShellArg,
@@ -1534,6 +1571,7 @@ export {
1534
1571
  firePreToolUseHook,
1535
1572
  flatMapTextParts,
1536
1573
  formatClassifierBlockMessage,
1574
+ formatDateForContext,
1537
1575
  formatDenialStateLog,
1538
1576
  formatLineStats,
1539
1577
  formatMemoryUsage,
@@ -1578,6 +1616,7 @@ export {
1578
1616
  getDiffCommand,
1579
1617
  getDirectoryContextString,
1580
1618
  getEditorExecutable,
1619
+ getEffectivePermissionForConfirmation,
1581
1620
  getEnvContents,
1582
1621
  getEnvironmentContext,
1583
1622
  getErrorMessage,
@@ -1622,12 +1661,16 @@ export {
1622
1661
  getShellConfiguration,
1623
1662
  getSpecificMimeType,
1624
1663
  getSpecifierKind,
1664
+ getStartupContextLength,
1625
1665
  getStructuredResponse,
1626
1666
  getStructuredResponseFromParts,
1627
1667
  getSupportedImageFormatsString,
1628
1668
  getSystemEncoding,
1629
1669
  getThoughtText,
1630
1670
  getUnsupportedImageFormatWarning,
1671
+ getUserAutoMemoryIndexPath,
1672
+ getUserAutoMemoryRoot,
1673
+ getUserAutoMemoryTopicPath,
1631
1674
  getWelcomeBackState,
1632
1675
  globalMemoryManager,
1633
1676
  hasCycleInSchema,
@@ -1645,6 +1688,7 @@ export {
1645
1688
  injectPermissionRulesIfMissing,
1646
1689
  invokeMcpPrompt,
1647
1690
  isAbortError,
1691
+ isAnyAutoMemPath,
1648
1692
  isApiError,
1649
1693
  isApproveOutcome,
1650
1694
  isAutoEditApproved,
@@ -1686,6 +1730,7 @@ export {
1686
1730
  isSubpaths,
1687
1731
  isSuccessStatus,
1688
1732
  isSupportedImageMimeType,
1733
+ isSystemReminderContent,
1689
1734
  isTelemetrySdkInitialized,
1690
1735
  isTerminalEditor,
1691
1736
  isTerminalStatus,
@@ -1694,6 +1739,7 @@ export {
1694
1739
  isToolEnabled,
1695
1740
  isTransientCapacityError,
1696
1741
  isUnattendedMode,
1742
+ isUserAutoMemPath,
1697
1743
  isValidEditorType,
1698
1744
  isValidNonThoughtTextPart,
1699
1745
  isWindows,
@@ -1809,12 +1855,14 @@ export {
1809
1855
  readManyFiles,
1810
1856
  readPathFromWorkspace,
1811
1857
  readRuntimeStatus,
1858
+ readUserAutoMemoryIndex,
1812
1859
  readWorktreeSession,
1813
1860
  readWorktreeSessionMarker,
1814
1861
  recordAllow,
1815
1862
  recordApiErrorMetrics,
1816
1863
  recordApiRequestBreakdown,
1817
1864
  recordApiResponseMetrics,
1865
+ recordApiRetry,
1818
1866
  recordArenaAgentCompletedMetrics,
1819
1867
  recordArenaSessionEndedMetrics,
1820
1868
  recordArenaSessionStartedMetrics,
@@ -1883,6 +1931,7 @@ export {
1883
1931
  retryWithBackoff,
1884
1932
  rewritePathArgs,
1885
1933
  runForkedAgent,
1934
+ runInSubagentSpanContext,
1886
1935
  runInToolSpanContext,
1887
1936
  runRipgrep,
1888
1937
  runSideQuery,
@@ -1895,6 +1944,7 @@ export {
1895
1944
  sanitizeHookName,
1896
1945
  sanitizeTitle,
1897
1946
  sanitizeToolCallResultForRecording,
1947
+ sanitizeUserPromptExpansionAdditionalContext,
1898
1948
  saveCacheSafeParams,
1899
1949
  saveWelcomeBackRestartChoice,
1900
1950
  serializeTerminalToObject,
@@ -1912,9 +1962,11 @@ export {
1912
1962
  shouldFallback,
1913
1963
  shouldFilterSuggestion,
1914
1964
  shouldFirePermissionDeniedForAutoMode,
1965
+ shouldForceAutoModeReviewForAllow,
1915
1966
  shouldRunAutoModeForCall,
1916
1967
  shouldShowStep,
1917
1968
  shutdownTelemetry,
1969
+ sleepInhibitor,
1918
1970
  splitCommands,
1919
1971
  splitCompoundCommand,
1920
1972
  splitConditionalSkills,
@@ -1922,6 +1974,7 @@ export {
1922
1974
  startInteractionSpan,
1923
1975
  startLLMRequestSpan,
1924
1976
  startSpeculation,
1977
+ startSubagentSpan,
1925
1978
  startToolBlockedOnUserSpan,
1926
1979
  startToolExecutionSpan,
1927
1980
  startToolSpan,
@@ -3,11 +3,10 @@
3
3
  import {
4
4
  STRUCTURED_OUTPUT_REDACTED_ARGS,
5
5
  SyntheticOutputTool
6
- } from "./chunk-SOGUPKP6.js";
7
- import "./chunk-6RQTH7UQ.js";
8
- import "./chunk-JKUAX6UT.js";
9
- import "./chunk-ACBGEKB7.js";
10
- import "./chunk-QWSRH265.js";
6
+ } from "./chunk-5RNZ2QKF.js";
7
+ import "./chunk-G763GDO6.js";
8
+ import "./chunk-R5PDRHEF.js";
9
+ import "./chunk-WFVXF3OM.js";
11
10
  import "./chunk-A4BMJM77.js";
12
11
  import "./chunk-J2S4EL5Y.js";
13
12
  export {
@@ -1,15 +1,13 @@
1
1
  // Force strict mode and setup for ESM
2
2
  "use strict";
3
3
  import {
4
+ BaseDeclarativeTool,
5
+ BaseToolInvocation,
4
6
  ToolDisplayNames,
5
7
  ToolNames
6
- } from "./chunk-6RQTH7UQ.js";
7
- import {
8
- BaseDeclarativeTool,
9
- BaseToolInvocation
10
- } from "./chunk-JKUAX6UT.js";
11
- import "./chunk-ACBGEKB7.js";
12
- import "./chunk-QWSRH265.js";
8
+ } from "./chunk-G763GDO6.js";
9
+ import "./chunk-R5PDRHEF.js";
10
+ import "./chunk-WFVXF3OM.js";
13
11
  import {
14
12
  init_esbuild_shims
15
13
  } from "./chunk-A4BMJM77.js";
@@ -2,23 +2,21 @@
2
2
  "use strict";
3
3
  import {
4
4
  detectTodoChanges
5
- } from "./chunk-RQW7WUJR.js";
5
+ } from "./chunk-UABFCMPA.js";
6
6
  import {
7
+ BaseDeclarativeTool,
8
+ BaseToolInvocation,
7
9
  ToolDisplayNames,
8
10
  ToolNames
9
- } from "./chunk-6RQTH7UQ.js";
10
- import {
11
- BaseDeclarativeTool,
12
- BaseToolInvocation
13
- } from "./chunk-JKUAX6UT.js";
11
+ } from "./chunk-G763GDO6.js";
14
12
  import {
15
13
  atomicWriteFile
16
- } from "./chunk-HX3JRTWL.js";
14
+ } from "./chunk-F5ORN4YO.js";
17
15
  import {
18
16
  Storage,
19
17
  createDebugLogger
20
- } from "./chunk-ACBGEKB7.js";
21
- import "./chunk-QWSRH265.js";
18
+ } from "./chunk-R5PDRHEF.js";
19
+ import "./chunk-WFVXF3OM.js";
22
20
  import {
23
21
  init_esbuild_shims
24
22
  } from "./chunk-A4BMJM77.js";
@@ -2,34 +2,31 @@
2
2
  "use strict";
3
3
  import {
4
4
  DiscoveredMCPTool
5
- } from "./chunk-C5CUHYSM.js";
5
+ } from "./chunk-3H7ENG2Q.js";
6
6
  import "./chunk-3PJXIDKI.js";
7
7
  import "./chunk-UWCTAVOD.js";
8
- import "./chunk-W57YDFU5.js";
9
8
  import "./chunk-OFEVLU4C.js";
10
- import "./chunk-NQ3E7YLD.js";
11
- import "./chunk-OJFMTECH.js";
12
- import "./chunk-SOGUPKP6.js";
9
+ import "./chunk-AVLOK27J.js";
10
+ import "./chunk-JSYEZAYV.js";
11
+ import "./chunk-5RNZ2QKF.js";
13
12
  import {
13
+ BaseDeclarativeTool,
14
+ BaseToolInvocation,
14
15
  ToolDisplayNames,
15
16
  ToolNames
16
- } from "./chunk-6RQTH7UQ.js";
17
- import {
18
- BaseDeclarativeTool,
19
- BaseToolInvocation
20
- } from "./chunk-JKUAX6UT.js";
21
- import "./chunk-HX3JRTWL.js";
22
- import "./chunk-TDZCEIK6.js";
17
+ } from "./chunk-G763GDO6.js";
18
+ import "./chunk-F5ORN4YO.js";
19
+ import "./chunk-D46KOV3C.js";
23
20
  import "./chunk-BNESGOSJ.js";
24
21
  import "./chunk-SZOEIL6S.js";
25
22
  import "./chunk-5IFG2VC4.js";
26
23
  import {
27
24
  createDebugLogger
28
- } from "./chunk-ACBGEKB7.js";
25
+ } from "./chunk-R5PDRHEF.js";
29
26
  import "./chunk-ZERZSAZL.js";
30
27
  import "./chunk-QN5NZ3UQ.js";
31
28
  import "./chunk-BR4QREVK.js";
32
- import "./chunk-QWSRH265.js";
29
+ import "./chunk-WFVXF3OM.js";
33
30
  import {
34
31
  init_esbuild_shims
35
32
  } from "./chunk-A4BMJM77.js";
@@ -50,7 +47,7 @@ var SCORE_NAME_EXACT_MCP = 12;
50
47
  var SCORE_NAME_SUBSTR_MCP = 6;
51
48
  var toolSearchDescription = `Fetches function declarations for deferred tools and registers them with the active session so subsequent turns can call them.
52
49
 
53
- 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.
54
51
 
55
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.
56
53
 
@@ -216,6 +213,21 @@ var ToolSearchInvocation = class extends BaseToolInvocation {
216
213
  `
217
214
  );
218
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
+ }
219
231
  }
220
232
  if (setToolsError) {
221
233
  for (const name of newlyRevealed) {
@@ -2,24 +2,22 @@
2
2
  "use strict";
3
3
  import {
4
4
  runSideQuery
5
- } from "./chunk-6O244QKR.js";
5
+ } from "./chunk-SCHRFI7O.js";
6
6
  import "./chunk-OFEVLU4C.js";
7
7
  import {
8
+ BaseDeclarativeTool,
9
+ BaseToolInvocation,
8
10
  ToolDisplayNames,
9
11
  ToolNames
10
- } from "./chunk-6RQTH7UQ.js";
11
- import {
12
- BaseDeclarativeTool,
13
- BaseToolInvocation
14
- } from "./chunk-JKUAX6UT.js";
12
+ } from "./chunk-G763GDO6.js";
15
13
  import {
16
14
  fetchWithTimeout,
17
15
  isPrivateIp
18
- } from "./chunk-OIL7KDWV.js";
16
+ } from "./chunk-GBEPNWYB.js";
19
17
  import {
20
18
  createDebugLogger
21
- } from "./chunk-ACBGEKB7.js";
22
- import "./chunk-QWSRH265.js";
19
+ } from "./chunk-R5PDRHEF.js";
20
+ import "./chunk-WFVXF3OM.js";
23
21
  import {
24
22
  init_esbuild_shims
25
23
  } from "./chunk-A4BMJM77.js";