@qwen-code/qwen-code 0.15.12-preview.2 → 0.16.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 (79) hide show
  1. package/bundled/qc-helper/docs/configuration/settings.md +30 -34
  2. package/bundled/qc-helper/docs/features/lsp.md +87 -10
  3. package/bundled/qc-helper/docs/qwen-serve.md +74 -24
  4. package/bundled/qc-helper/docs/reference/keyboard-shortcuts.md +11 -11
  5. package/bundled/stuck/SKILL.md +124 -0
  6. package/chunks/{agent-UQY6A6OS.js → agent-ZNQPH67I.js} +15 -15
  7. package/chunks/{anthropicContentGenerator-4QE6LTVV.js → anthropicContentGenerator-ICBDZ6R2.js} +4 -4
  8. package/chunks/{askUserQuestion-QFSCBTUO.js → askUserQuestion-WQILGUSQ.js} +2 -2
  9. package/chunks/{ca-VQSV6JHA.js → ca-S3XJMT6P.js} +26 -0
  10. package/chunks/{chunk-SQNQIOD5.js → chunk-2B7UBDY5.js} +2 -2
  11. package/chunks/chunk-3MBY4GKN.js +350 -0
  12. package/chunks/{chunk-FSYKVGER.js → chunk-7QXHXMC6.js} +23 -7
  13. package/chunks/{chunk-PCL3EJGY.js → chunk-C3LHPHN2.js} +3924 -3683
  14. package/chunks/{chunk-UXW7MYAW.js → chunk-CW44BRRA.js} +1 -1
  15. package/chunks/{chunk-G27O2LD2.js → chunk-D5NTAHYL.js} +1 -1
  16. package/chunks/{chunk-CBVB66WY.js → chunk-EDYSNFEM.js} +1 -1
  17. package/chunks/{chunk-OCC4MZRS.js → chunk-F23NCRJ2.js} +1 -1
  18. package/chunks/{chunk-FYMSCRHM.js → chunk-FZIUV27X.js} +1 -1
  19. package/chunks/{chunk-SOIEFHIK.js → chunk-G7YTSRES.js} +1 -100
  20. package/chunks/{chunk-MXBWOU2L.js → chunk-JHMX4QTD.js} +15 -15
  21. package/chunks/{chunk-TPGOGCWM.js → chunk-JYQUJ5DS.js} +1 -1
  22. package/chunks/{chunk-FKVKVE6N.js → chunk-KXZ4TJB4.js} +1 -1
  23. package/chunks/{chunk-2WFU3IUH.js → chunk-MNPZ2WO6.js} +4864 -2303
  24. package/chunks/{chunk-BXNCPI75.js → chunk-NAID3ZWF.js} +2 -2
  25. package/chunks/{chunk-JMZQICAL.js → chunk-PPHYLJSS.js} +1 -1
  26. package/chunks/{chunk-CM2IESUE.js → chunk-PR4T27R7.js} +1 -1
  27. package/chunks/{chunk-CAWKL3UC.js → chunk-VTPOO6GV.js} +1 -1
  28. package/chunks/{chunk-GJXIKCKL.js → chunk-XP27SJMH.js} +76 -5
  29. package/chunks/{chunk-B7ZL7HUA.js → chunk-XVHR7ATJ.js} +1 -1
  30. package/chunks/{contextCommand-MQRG6RMG.js → contextCommand-IGBCEXI4.js} +16 -16
  31. package/chunks/{cron-create-WUTD5ZTH.js → cron-create-AVI3Q267.js} +2 -2
  32. package/chunks/{cron-delete-N3UQYCRA.js → cron-delete-ZCEGDXXV.js} +2 -2
  33. package/chunks/{cron-list-Z6RJJ4YH.js → cron-list-VN653OK5.js} +2 -2
  34. package/chunks/{de-M2IPQRBS.js → de-MNR4SMAI.js} +26 -0
  35. package/chunks/{edit-3KCBTA25.js → edit-74Q4AFHQ.js} +20 -16
  36. package/chunks/{en-N5GMPCVT.js → en-FIUWJSZR.js} +28 -0
  37. package/chunks/{enter-worktree-VWS5QZTU.js → enter-worktree-H72HXC7D.js} +15 -15
  38. package/chunks/{exit-worktree-RVXFWAPD.js → exit-worktree-FGIQO3S3.js} +15 -15
  39. package/chunks/{exitPlanMode-UL5DILDG.js → exitPlanMode-NBR2PK2D.js} +15 -15
  40. package/chunks/{fr-BTHRYEXO.js → fr-OFJFHLCR.js} +26 -0
  41. package/chunks/{geminiContentGenerator-O2OPGHJG.js → geminiContentGenerator-33RP4WKD.js} +3 -3
  42. package/chunks/{glob-57BSREPN.js → glob-WEE3CJL6.js} +15 -15
  43. package/chunks/{grep-XO5JOC7T.js → grep-DZKSBFZK.js} +15 -15
  44. package/chunks/{ja-D63TAEBO.js → ja-V6OQ6VL7.js} +26 -0
  45. package/chunks/{keychain-token-storage-DMFP5IJM.js → keychain-token-storage-335UOLJ6.js} +2 -2
  46. package/chunks/{ls-SUILOZZB.js → ls-6F3VSP6S.js} +3 -3
  47. package/chunks/{lsp-6TQBWVMZ.js → lsp-67Y7DJN5.js} +2 -2
  48. package/chunks/{monitor-BECPGO3K.js → monitor-EDZWEZVS.js} +33 -24
  49. package/chunks/{openaiContentGenerator-KEZQHIRM.js → openaiContentGenerator-5NQG3W64.js} +10 -10
  50. package/chunks/{pt-XUV7FSKC.js → pt-ZLE6SA4A.js} +26 -0
  51. package/chunks/{qwenContentGenerator-RPMRXTNH.js → qwenContentGenerator-4DPUUS6R.js} +17 -17
  52. package/chunks/{qwenOAuth2-JSQ7EPR3.js → qwenOAuth2-JE7H47TE.js} +3 -3
  53. package/chunks/{read-file-LGHEIQNH.js → read-file-CQOF7BQ2.js} +7 -7
  54. package/chunks/{ripGrep-6SFSXZ2G.js → ripGrep-KR5LKGTI.js} +15 -15
  55. package/chunks/{ru-7KHWMN3A.js → ru-A4OHIUNN.js} +26 -0
  56. package/chunks/{send-message-Q2JRAC3J.js → send-message-GB4AQZNC.js} +2 -2
  57. package/chunks/{serve-27O2AFE3.js → serve-GAD2PEST.js} +1299 -408
  58. package/chunks/{shell-J7K5KYCH.js → shell-E2HMCBGR.js} +15 -15
  59. package/chunks/{skill-2R7P4ATS.js → skill-KDZH6UZ6.js} +9 -9
  60. package/chunks/{src-CGEDVW67.js → src-LY4RU5AI.js} +96 -24
  61. package/chunks/{syntheticOutput-S4DRGMQM.js → syntheticOutput-HFL3DE7R.js} +3 -3
  62. package/chunks/{task-stop-7THHVAQS.js → task-stop-ZQF26RXS.js} +2 -2
  63. package/chunks/{todoWrite-WKUGUTPX.js → todoWrite-U4SC643O.js} +3 -3
  64. package/chunks/{tool-search-XOH3ZWVS.js → tool-search-U4XQVLFU.js} +7 -7
  65. package/chunks/{web-fetch-OZE6ZQUF.js → web-fetch-BRWZ4WSE.js} +4 -4
  66. package/chunks/{write-file-74NQ27Q2.js → write-file-NBLRMNGB.js} +20 -16
  67. package/chunks/{zh-TW-O36Q4V7E.js → zh-TW-552S24LR.js} +28 -0
  68. package/chunks/{zh-VGHU6XBB.js → zh-V32QONGV.js} +28 -0
  69. package/cli.js +8027 -5104
  70. package/locales/ca.js +40 -0
  71. package/locales/de.js +40 -0
  72. package/locales/en.js +43 -0
  73. package/locales/fr.js +41 -0
  74. package/locales/ja.js +39 -0
  75. package/locales/pt.js +39 -0
  76. package/locales/ru.js +39 -0
  77. package/locales/zh-TW.js +41 -0
  78. package/locales/zh.js +41 -0
  79. package/package.json +2 -2
@@ -7,32 +7,32 @@ import {
7
7
  buildLongRunningForegroundHint,
8
8
  detectBlockedSleepPattern,
9
9
  parseNumstat
10
- } from "./chunk-2WFU3IUH.js";
10
+ } from "./chunk-MNPZ2WO6.js";
11
11
  import "./chunk-5P5XGNYH.js";
12
12
  import "./chunk-K5PGHDBN.js";
13
13
  import "./chunk-O4PICXES.js";
14
14
  import "./chunk-TW522KN6.js";
15
15
  import "./chunk-MLZQVCF3.js";
16
- import "./chunk-JMZQICAL.js";
17
- import "./chunk-SOIEFHIK.js";
18
- import "./chunk-B7ZL7HUA.js";
16
+ import "./chunk-PPHYLJSS.js";
17
+ import "./chunk-G7YTSRES.js";
18
+ import "./chunk-XVHR7ATJ.js";
19
19
  import "./chunk-77WXWU44.js";
20
- import "./chunk-OCC4MZRS.js";
21
- import "./chunk-CAWKL3UC.js";
22
- import "./chunk-PCL3EJGY.js";
20
+ import "./chunk-F23NCRJ2.js";
21
+ import "./chunk-VTPOO6GV.js";
22
+ import "./chunk-C3LHPHN2.js";
23
23
  import "./chunk-SYCJMSIJ.js";
24
24
  import "./chunk-UWCTAVOD.js";
25
25
  import "./chunk-OFEVLU4C.js";
26
- import "./chunk-CM2IESUE.js";
27
- import "./chunk-UXW7MYAW.js";
28
- import "./chunk-G27O2LD2.js";
26
+ import "./chunk-PR4T27R7.js";
27
+ import "./chunk-CW44BRRA.js";
28
+ import "./chunk-D5NTAHYL.js";
29
29
  import "./chunk-T4VD6OJ4.js";
30
30
  import "./chunk-RDYWTWEM.js";
31
- import "./chunk-TPGOGCWM.js";
32
- import "./chunk-FYMSCRHM.js";
33
- import "./chunk-SQNQIOD5.js";
34
- import "./chunk-FKVKVE6N.js";
35
- import "./chunk-GJXIKCKL.js";
31
+ import "./chunk-JYQUJ5DS.js";
32
+ import "./chunk-FZIUV27X.js";
33
+ import "./chunk-2B7UBDY5.js";
34
+ import "./chunk-KXZ4TJB4.js";
35
+ import "./chunk-XP27SJMH.js";
36
36
  import "./chunk-E7E2MFYM.js";
37
37
  import "./chunk-ZERZSAZL.js";
38
38
  import "./chunk-QN5NZ3UQ.js";
@@ -4,30 +4,30 @@ import {
4
4
  buildSkillLlmContent,
5
5
  escapeXml,
6
6
  registerSkillHooks
7
- } from "./chunk-SOIEFHIK.js";
8
- import "./chunk-B7ZL7HUA.js";
7
+ } from "./chunk-G7YTSRES.js";
8
+ import "./chunk-XVHR7ATJ.js";
9
9
  import {
10
10
  SkillLaunchEvent,
11
11
  logSkillLaunch
12
- } from "./chunk-PCL3EJGY.js";
12
+ } from "./chunk-C3LHPHN2.js";
13
13
  import "./chunk-SYCJMSIJ.js";
14
14
  import "./chunk-UWCTAVOD.js";
15
15
  import "./chunk-OFEVLU4C.js";
16
- import "./chunk-CM2IESUE.js";
17
- import "./chunk-UXW7MYAW.js";
18
- import "./chunk-G27O2LD2.js";
16
+ import "./chunk-PR4T27R7.js";
17
+ import "./chunk-CW44BRRA.js";
18
+ import "./chunk-D5NTAHYL.js";
19
19
  import "./chunk-T4VD6OJ4.js";
20
20
  import "./chunk-RDYWTWEM.js";
21
- import "./chunk-TPGOGCWM.js";
21
+ import "./chunk-JYQUJ5DS.js";
22
22
  import {
23
23
  BaseDeclarativeTool,
24
24
  BaseToolInvocation,
25
25
  ToolDisplayNames,
26
26
  ToolNames
27
- } from "./chunk-FYMSCRHM.js";
27
+ } from "./chunk-FZIUV27X.js";
28
28
  import {
29
29
  createDebugLogger
30
- } from "./chunk-GJXIKCKL.js";
30
+ } from "./chunk-XP27SJMH.js";
31
31
  import "./chunk-ZERZSAZL.js";
32
32
  import "./chunk-QN5NZ3UQ.js";
33
33
  import "./chunk-BR4QREVK.js";
@@ -56,6 +56,7 @@ import {
56
56
  DEFAULT_LSP_STARTUP_TIMEOUT_MS,
57
57
  DEFAULT_LSP_WARMUP_DELAY_MS,
58
58
  DEFAULT_LSP_WORKSPACE_SYMBOL_WARMUP_DELAY_MS,
59
+ DEFAULT_STOP_HOOK_BLOCK_CAP,
59
60
  DEFAULT_TRUNCATE_TOOL_OUTPUT_LINES,
60
61
  DEFAULT_TRUNCATE_TOOL_OUTPUT_THRESHOLD,
61
62
  DIAGNOSTIC_SEVERITY_LABELS,
@@ -73,9 +74,12 @@ import {
73
74
  ExtensionUpdateState,
74
75
  FileDiscoveryService,
75
76
  FileEncoding,
77
+ FileHistoryService,
76
78
  FileReadCache,
77
79
  FileSchema,
78
80
  FileSearchFactory,
81
+ GOAL_HOOK_TIMEOUT_MS,
82
+ GOAL_HOOK_TIMEOUT_SECONDS,
79
83
  GeminiChat,
80
84
  GeminiClient,
81
85
  GeminiEventType,
@@ -113,8 +117,11 @@ import {
113
117
  MAX_DIFF_SIZE_BYTES,
114
118
  MAX_FILES,
115
119
  MAX_FILES_FOR_DETAILS,
120
+ MAX_GOAL_ITERATIONS,
116
121
  MAX_LINES_PER_FILE,
122
+ MAX_RETAINED_TERMINAL_AGENTS,
117
123
  MAX_RETAINED_TERMINAL_MONITORS,
124
+ MAX_RETAINED_TERMINAL_SHELLS,
118
125
  MCPDiscoveryState,
119
126
  MCPOAuthProvider,
120
127
  MCPOAuthTokenStorage,
@@ -149,6 +156,7 @@ import {
149
156
  SHELL_TOOL_NAMES,
150
157
  SKILL_REVIEW_TASK_TYPE,
151
158
  STARTUP_CONTEXT_MODEL_ACK,
159
+ STOP_HOOK_BLOCK_CAP_ENV,
152
160
  SUGGESTION_PROMPT,
153
161
  SYMBOL_KIND_LABELS,
154
162
  SdkControlClientTransport,
@@ -177,10 +185,12 @@ import {
177
185
  WORKTREE_BRANCH_PREFIX,
178
186
  WORKTREE_SESSION_FILE,
179
187
  WorkspaceContext,
188
+ __resetActiveGoalStoreForTests,
180
189
  _recoverObjectsFromLine,
181
190
  _resetCachedIdeServerHost,
182
191
  _resetEnsuredDirsCacheForTest,
183
192
  _resetRipGrepCachesForTest,
193
+ abortGoalForStopHookCap,
184
194
  abortSpeculation,
185
195
  acceptSpeculation,
186
196
  addMCPStatusChangeListener,
@@ -201,11 +211,14 @@ import {
201
211
  checkNpmUpdate,
202
212
  cleanSummary,
203
213
  cleanupTmpDir,
214
+ clearActiveGoal,
204
215
  clearCacheSafeParams,
216
+ clearGoalTerminalObserver,
205
217
  clearRuntimeStatus,
206
218
  clearWelcomeBackState,
207
219
  cliSource,
208
220
  cloneFromGit,
221
+ collectMemoryDiagnostics,
209
222
  commandExists,
210
223
  computedSource,
211
224
  connectAndDiscover,
@@ -223,6 +236,7 @@ import {
223
236
  createDefaultAutoMemoryMetadata,
224
237
  createFollowupController,
225
238
  createForkedChat,
239
+ createGoalStopHookCallback,
226
240
  createTmpDir,
227
241
  createToolUseSummaryMessage,
228
242
  createTransport,
@@ -273,11 +287,13 @@ import {
273
287
  flatMapTextParts,
274
288
  formatLineStats,
275
289
  formatMemoryUsage,
290
+ formatStopHookBlockingCapWarning,
276
291
  generateAgentWorktreeSlug,
277
292
  generatePromptSuggestion,
278
293
  generateSessionRecap,
279
294
  generateToolUseId,
280
295
  generateToolUseSummary,
296
+ getActiveGoal,
281
297
  getAllMCPServerStatuses,
282
298
  getArenaSystemReminder,
283
299
  getBuiltinRipgrep,
@@ -305,9 +321,11 @@ import {
305
321
  getIdeServerHost,
306
322
  getInitialChatHistory,
307
323
  getInsightPrompt,
324
+ getLastGoalTerminal,
308
325
  getMCPDiscoveryState,
309
326
  getMCPServerPrompts,
310
327
  getMCPServerStatus,
328
+ getMonitorOutputPath,
311
329
  getPlanModeSystemReminder,
312
330
  getProjectSummaryInfo,
313
331
  getProjectSummaryPrompt,
@@ -367,6 +385,7 @@ import {
367
385
  isUnattendedMode,
368
386
  isValidNonThoughtTextPart,
369
387
  isWindows,
388
+ judgeGoal,
370
389
  layer,
371
390
  loadServerHierarchicalMemory,
372
391
  makeFakeConfig,
@@ -385,6 +404,8 @@ import {
385
404
  normalizeContent,
386
405
  normalizeMonitorCommand,
387
406
  normalizeProxyUrl,
407
+ normalizeStopHookBlockingCap,
408
+ notifyGoalTerminal,
388
409
  openDiff,
389
410
  parse,
390
411
  parseAndFormatApiError,
@@ -417,9 +438,11 @@ import {
417
438
  readPathFromWorkspace,
418
439
  readRuntimeStatus,
419
440
  readWorktreeSessionMarker,
441
+ recordGoalIteration,
420
442
  recordStartupEvent,
421
443
  recursivelyHydrateStrings,
422
444
  redactStructuredOutputArgsForRecording,
445
+ registerGoalHook,
423
446
  removeMCPServerStatus,
424
447
  removeMCPStatusChangeListener,
425
448
  replayUiTelemetryFromConversation,
@@ -435,6 +458,7 @@ import {
435
458
  resolvePathFromEnv,
436
459
  resolvePathPattern,
437
460
  resolveRipgrep,
461
+ resolveStopHookBlockingCap,
438
462
  resolveToolName,
439
463
  retryWithBackoff,
440
464
  rewritePathArgs,
@@ -448,6 +472,9 @@ import {
448
472
  saveWelcomeBackRestartChoice,
449
473
  serializeTerminalToObject,
450
474
  serializeTerminalToText,
475
+ setActiveGoal,
476
+ setGoalTerminalObserver,
477
+ setLastGoalTerminal,
451
478
  setStartupEventSink,
452
479
  settingsSource,
453
480
  shouldAttemptBrowserLaunch,
@@ -470,6 +497,7 @@ import {
470
497
  truncateJson,
471
498
  tryGenerateSessionTitle,
472
499
  unescapeJsonString,
500
+ unregisterGoalHook,
473
501
  updateMCPServerStatus,
474
502
  updateSetting,
475
503
  validateName,
@@ -480,7 +508,7 @@ import {
480
508
  writeLineSync,
481
509
  writeRuntimeStatus,
482
510
  writeWorktreeSessionMarker
483
- } from "./chunk-2WFU3IUH.js";
511
+ } from "./chunk-MNPZ2WO6.js";
484
512
  import "./chunk-5P5XGNYH.js";
485
513
  import "./chunk-K5PGHDBN.js";
486
514
  import "./chunk-O4PICXES.js";
@@ -491,16 +519,10 @@ import {
491
519
  } from "./chunk-MLZQVCF3.js";
492
520
  import {
493
521
  runSideQuery
494
- } from "./chunk-JMZQICAL.js";
522
+ } from "./chunk-PPHYLJSS.js";
495
523
  import {
496
- DEFAULT_OTLP_ENDPOINT,
497
- DEFAULT_TELEMETRY_TARGET,
498
- TelemetryTarget,
499
- buildSkillLlmContent,
500
- parseBooleanEnvFlag,
501
- parseTelemetryTargetValue,
502
- resolveTelemetrySettings
503
- } from "./chunk-SOIEFHIK.js";
524
+ buildSkillLlmContent
525
+ } from "./chunk-G7YTSRES.js";
504
526
  import {
505
527
  AgentType,
506
528
  DefaultHookOutput,
@@ -523,14 +545,14 @@ import {
523
545
  createHookOutput,
524
546
  detectTodoChanges,
525
547
  getHookKey
526
- } from "./chunk-B7ZL7HUA.js";
548
+ } from "./chunk-XVHR7ATJ.js";
527
549
  import {
528
550
  DEFAULT_FILE_FILTERING_OPTIONS,
529
551
  DEFAULT_MEMORY_FILE_FILTERING_OPTIONS
530
552
  } from "./chunk-77WXWU44.js";
531
553
  import {
532
554
  KeychainTokenStorage
533
- } from "./chunk-OCC4MZRS.js";
555
+ } from "./chunk-F23NCRJ2.js";
534
556
  import {
535
557
  SUPPORTED_IMAGE_MIME_TYPES,
536
558
  TextTokenizer,
@@ -540,7 +562,7 @@ import {
540
562
  getUnsupportedImageFormatWarning,
541
563
  isSupportedImageMimeType,
542
564
  redactProxyCredentials
543
- } from "./chunk-CAWKL3UC.js";
565
+ } from "./chunk-VTPOO6GV.js";
544
566
  import {
545
567
  AGENT_CONTEXT_FILENAME,
546
568
  ApiCancelEvent,
@@ -558,6 +580,8 @@ import {
558
580
  DEFAULT_CONTEXT_FILENAME,
559
581
  DEFAULT_ENCODING,
560
582
  DEFAULT_FILE_EXCLUDES,
583
+ DEFAULT_OTLP_ENDPOINT,
584
+ DEFAULT_TELEMETRY_TARGET,
561
585
  DiscoveredMCPTool,
562
586
  EVENT_API_ERROR,
563
587
  EVENT_API_RESPONSE,
@@ -600,6 +624,7 @@ import {
600
624
  SlashCommandStatus,
601
625
  SpeculationEvent,
602
626
  StartSessionEvent,
627
+ TelemetryTarget,
603
628
  ToolCallEvent,
604
629
  ToolExecutionPhase,
605
630
  ToolOutputTruncatedEvent,
@@ -608,7 +633,12 @@ import {
608
633
  UserFeedbackRating,
609
634
  UserPromptEvent,
610
635
  UserRetryEvent,
611
- clearSessionTracingForTesting,
636
+ addModelOutputAttributes,
637
+ addSystemPromptAttributes,
638
+ addToolInputAttributes,
639
+ addToolResultAttributes,
640
+ addToolSchemaAttributes,
641
+ addUserPromptAttributes,
612
642
  countFileLines,
613
643
  createContentGenerator,
614
644
  createContentGeneratorConfig,
@@ -623,6 +653,7 @@ import {
623
653
  extractExtensionsFromPatterns,
624
654
  fileExists,
625
655
  generateValidName,
656
+ getActiveInteractionSpan,
626
657
  getAllGeminiMdFilenames,
627
658
  getCachedEncodingForBuffer,
628
659
  getCurrentGeminiMdFilename,
@@ -674,6 +705,8 @@ import {
674
705
  makeSlashCommandEvent,
675
706
  modelRegistryKey,
676
707
  openaiLogger,
708
+ parseBooleanEnvFlag,
709
+ parseTelemetryTargetValue,
677
710
  processSingleFileContent,
678
711
  readFileWithEncoding,
679
712
  readFileWithEncodingInfo,
@@ -705,6 +738,8 @@ import {
705
738
  refreshSessionContext,
706
739
  resetEncodingCache,
707
740
  resolveContentGeneratorConfigWithSources,
741
+ resolveTelemetrySettings,
742
+ runInToolSpanContext,
708
743
  sanitizeHookName,
709
744
  setGeminiMdFilename,
710
745
  shutdownTelemetry,
@@ -712,10 +747,11 @@ import {
712
747
  startLLMRequestSpan,
713
748
  startToolExecutionSpan,
714
749
  startToolSpan,
750
+ truncateContent,
715
751
  uiTelemetryService,
716
752
  validateModelConfig,
717
753
  windowsCodePageToEncoding
718
- } from "./chunk-PCL3EJGY.js";
754
+ } from "./chunk-C3LHPHN2.js";
719
755
  import "./chunk-SYCJMSIJ.js";
720
756
  import "./chunk-UWCTAVOD.js";
721
757
  import {
@@ -742,7 +778,7 @@ import {
742
778
  getAutoMemoryTopicPath,
743
779
  getMemoryBaseDir,
744
780
  isAutoMemPath
745
- } from "./chunk-CM2IESUE.js";
781
+ } from "./chunk-PR4T27R7.js";
746
782
  import {
747
783
  CAPPED_DEFAULT_MAX_TOKENS,
748
784
  DEFAULT_OUTPUT_TOKEN_LIMIT,
@@ -752,11 +788,11 @@ import {
752
788
  knownTokenLimit,
753
789
  normalize,
754
790
  tokenLimit
755
- } from "./chunk-UXW7MYAW.js";
756
- import "./chunk-G27O2LD2.js";
791
+ } from "./chunk-CW44BRRA.js";
792
+ import "./chunk-D5NTAHYL.js";
757
793
  import "./chunk-T4VD6OJ4.js";
758
794
  import "./chunk-RDYWTWEM.js";
759
- import "./chunk-TPGOGCWM.js";
795
+ import "./chunk-JYQUJ5DS.js";
760
796
  import {
761
797
  AgentStatistics,
762
798
  BaseDeclarativeTool,
@@ -774,7 +810,7 @@ import {
774
810
  ToolNamesMigration,
775
811
  hasCycleInSchema,
776
812
  isTool
777
- } from "./chunk-FYMSCRHM.js";
813
+ } from "./chunk-FZIUV27X.js";
778
814
  import {
779
815
  CredentialsClearRequiredError,
780
816
  QwenOAuth2Client,
@@ -790,8 +826,8 @@ import {
790
826
  isDeviceTokenSuccess,
791
827
  isErrorResponse,
792
828
  qwenOAuth2Events
793
- } from "./chunk-SQNQIOD5.js";
794
- import "./chunk-FKVKVE6N.js";
829
+ } from "./chunk-2B7UBDY5.js";
830
+ import "./chunk-KXZ4TJB4.js";
795
831
  import {
796
832
  BadRequestError,
797
833
  FatalAuthenticationError,
@@ -835,7 +871,7 @@ import {
835
871
  unescapePath,
836
872
  updateSymlink,
837
873
  validatePath
838
- } from "./chunk-GJXIKCKL.js";
874
+ } from "./chunk-XP27SJMH.js";
839
875
  import "./chunk-E7E2MFYM.js";
840
876
  import "./chunk-ZERZSAZL.js";
841
877
  import "./chunk-QN5NZ3UQ.js";
@@ -938,6 +974,7 @@ export {
938
974
  DEFAULT_QWEN_EMBEDDING_MODEL,
939
975
  DEFAULT_QWEN_FLASH_MODEL,
940
976
  DEFAULT_QWEN_MODEL,
977
+ DEFAULT_STOP_HOOK_BLOCK_CAP,
941
978
  DEFAULT_TELEMETRY_TARGET,
942
979
  DEFAULT_TOKEN_LIMIT,
943
980
  DEFAULT_TRUNCATE_TOOL_OUTPUT_LINES,
@@ -978,12 +1015,15 @@ export {
978
1015
  FileDiscoveryService,
979
1016
  FileEncoding,
980
1017
  FileExclusions,
1018
+ FileHistoryService,
981
1019
  FileOperation,
982
1020
  FileReadCache,
983
1021
  FileSchema,
984
1022
  FileSearchFactory,
985
1023
  FlashFallbackEvent,
986
1024
  ForbiddenError,
1025
+ GOAL_HOOK_TIMEOUT_MS,
1026
+ GOAL_HOOK_TIMEOUT_SECONDS,
987
1027
  GOOGLE_ACCOUNTS_FILENAME,
988
1028
  GeminiChat,
989
1029
  GeminiClient,
@@ -1036,8 +1076,11 @@ export {
1036
1076
  MAX_DIFF_SIZE_BYTES,
1037
1077
  MAX_FILES,
1038
1078
  MAX_FILES_FOR_DETAILS,
1079
+ MAX_GOAL_ITERATIONS,
1039
1080
  MAX_LINES_PER_FILE,
1081
+ MAX_RETAINED_TERMINAL_AGENTS,
1040
1082
  MAX_RETAINED_TERMINAL_MONITORS,
1083
+ MAX_RETAINED_TERMINAL_SHELLS,
1041
1084
  MCPDiscoveryState,
1042
1085
  MCPOAuthProvider,
1043
1086
  MCPOAuthTokenStorage,
@@ -1106,6 +1149,7 @@ export {
1106
1149
  SHELL_TOOL_NAMES,
1107
1150
  SKILL_REVIEW_TASK_TYPE,
1108
1151
  STARTUP_CONTEXT_MODEL_ACK,
1152
+ STOP_HOOK_BLOCK_CAP_ENV,
1109
1153
  SUGGESTION_PROMPT,
1110
1154
  SUPPORTED_IMAGE_MIME_TYPES,
1111
1155
  SYMBOL_KIND_LABELS,
@@ -1165,14 +1209,22 @@ export {
1165
1209
  WORKTREE_BRANCH_PREFIX,
1166
1210
  WORKTREE_SESSION_FILE,
1167
1211
  WorkspaceContext,
1212
+ __resetActiveGoalStoreForTests,
1168
1213
  _recoverObjectsFromLine,
1169
1214
  _resetCachedIdeServerHost,
1170
1215
  _resetEnsuredDirsCacheForTest,
1171
1216
  _resetRipGrepCachesForTest,
1172
1217
  _resetValidatePathCacheForTest,
1218
+ abortGoalForStopHookCap,
1173
1219
  abortSpeculation,
1174
1220
  acceptSpeculation,
1175
1221
  addMCPStatusChangeListener,
1222
+ addModelOutputAttributes,
1223
+ addSystemPromptAttributes,
1224
+ addToolInputAttributes,
1225
+ addToolResultAttributes,
1226
+ addToolSchemaAttributes,
1227
+ addUserPromptAttributes,
1176
1228
  allowEditorTypeInSandbox,
1177
1229
  appendToLastTextPart,
1178
1230
  buildApiHistoryFromConversation,
@@ -1191,15 +1243,17 @@ export {
1191
1243
  checkNpmUpdate,
1192
1244
  cleanSummary,
1193
1245
  cleanupTmpDir,
1246
+ clearActiveGoal,
1194
1247
  clearAutoMemoryRootCache,
1195
1248
  clearCacheSafeParams,
1196
1249
  clearCachedCredentialFile,
1250
+ clearGoalTerminalObserver,
1197
1251
  clearQwenCredentials,
1198
1252
  clearRuntimeStatus,
1199
- clearSessionTracingForTesting,
1200
1253
  clearWelcomeBackState,
1201
1254
  cliSource,
1202
1255
  cloneFromGit,
1256
+ collectMemoryDiagnostics,
1203
1257
  commandExists,
1204
1258
  computedSource,
1205
1259
  connectAndDiscover,
@@ -1221,6 +1275,7 @@ export {
1221
1275
  createDefaultAutoMemoryMetadata,
1222
1276
  createFollowupController,
1223
1277
  createForkedChat,
1278
+ createGoalStopHookCallback,
1224
1279
  createHookOutput,
1225
1280
  createTmpDir,
1226
1281
  createToolUseSummaryMessage,
@@ -1286,6 +1341,7 @@ export {
1286
1341
  flatMapTextParts,
1287
1342
  formatLineStats,
1288
1343
  formatMemoryUsage,
1344
+ formatStopHookBlockingCapWarning,
1289
1345
  generateAgentWorktreeSlug,
1290
1346
  generateCodeChallenge,
1291
1347
  generateCodeVerifier,
@@ -1295,6 +1351,8 @@ export {
1295
1351
  generateToolUseId,
1296
1352
  generateToolUseSummary,
1297
1353
  generateValidName,
1354
+ getActiveGoal,
1355
+ getActiveInteractionSpan,
1298
1356
  getAllGeminiMdFilenames,
1299
1357
  getAllMCPServerStatuses,
1300
1358
  getArenaSystemReminder,
@@ -1338,10 +1396,12 @@ export {
1338
1396
  getIdeServerHost,
1339
1397
  getInitialChatHistory,
1340
1398
  getInsightPrompt,
1399
+ getLastGoalTerminal,
1341
1400
  getMCPDiscoveryState,
1342
1401
  getMCPServerPrompts,
1343
1402
  getMCPServerStatus,
1344
1403
  getMemoryBaseDir,
1404
+ getMonitorOutputPath,
1345
1405
  getOrCreateSharedDispatcher,
1346
1406
  getPlanModeSystemReminder,
1347
1407
  getProjectHash,
@@ -1427,6 +1487,7 @@ export {
1427
1487
  isValidNonThoughtTextPart,
1428
1488
  isWindows,
1429
1489
  isWithinRoot,
1490
+ judgeGoal,
1430
1491
  knownTokenLimit,
1431
1492
  layer,
1432
1493
  loadServerHierarchicalMemory,
@@ -1488,6 +1549,8 @@ export {
1488
1549
  normalizeContent,
1489
1550
  normalizeMonitorCommand,
1490
1551
  normalizeProxyUrl,
1552
+ normalizeStopHookBlockingCap,
1553
+ notifyGoalTerminal,
1491
1554
  openDiff,
1492
1555
  openaiLogger,
1493
1556
  parse,
@@ -1539,6 +1602,7 @@ export {
1539
1602
  recordContentRetryFailure,
1540
1603
  recordCpuUsage,
1541
1604
  recordFileOperationMetric,
1605
+ recordGoalIteration,
1542
1606
  recordInvalidChunk,
1543
1607
  recordMemoryDreamMetrics,
1544
1608
  recordMemoryExtractMetrics,
@@ -1557,6 +1621,7 @@ export {
1557
1621
  redactProxyCredentials,
1558
1622
  redactStructuredOutputArgsForRecording,
1559
1623
  refreshSessionContext,
1624
+ registerGoalHook,
1560
1625
  removeMCPServerStatus,
1561
1626
  removeMCPStatusChangeListener,
1562
1627
  replayUiTelemetryFromConversation,
@@ -1577,11 +1642,13 @@ export {
1577
1642
  resolvePathFromEnv,
1578
1643
  resolvePathPattern,
1579
1644
  resolveRipgrep,
1645
+ resolveStopHookBlockingCap,
1580
1646
  resolveTelemetrySettings,
1581
1647
  resolveToolName,
1582
1648
  retryWithBackoff,
1583
1649
  rewritePathArgs,
1584
1650
  runForkedAgent,
1651
+ runInToolSpanContext,
1585
1652
  runRipgrep,
1586
1653
  runSideQuery,
1587
1654
  runWithDebugLogSession,
@@ -1595,8 +1662,11 @@ export {
1595
1662
  saveWelcomeBackRestartChoice,
1596
1663
  serializeTerminalToObject,
1597
1664
  serializeTerminalToText,
1665
+ setActiveGoal,
1598
1666
  setDebugLogSession,
1599
1667
  setGeminiMdFilename,
1668
+ setGoalTerminalObserver,
1669
+ setLastGoalTerminal,
1600
1670
  setStartupEventSink,
1601
1671
  settingsSource,
1602
1672
  shortenPath,
@@ -1625,11 +1695,13 @@ export {
1625
1695
  toFriendlyError,
1626
1696
  tokenLimit,
1627
1697
  toolMatchesRuleToolName,
1698
+ truncateContent,
1628
1699
  truncateJson,
1629
1700
  tryGenerateSessionTitle,
1630
1701
  uiTelemetryService,
1631
1702
  unescapeJsonString,
1632
1703
  unescapePath,
1704
+ unregisterGoalHook,
1633
1705
  updateMCPServerStatus,
1634
1706
  updateSetting,
1635
1707
  updateSymlink,
@@ -3,9 +3,9 @@
3
3
  import {
4
4
  STRUCTURED_OUTPUT_REDACTED_ARGS,
5
5
  SyntheticOutputTool
6
- } from "./chunk-TPGOGCWM.js";
7
- import "./chunk-FYMSCRHM.js";
8
- import "./chunk-GJXIKCKL.js";
6
+ } from "./chunk-JYQUJ5DS.js";
7
+ import "./chunk-FZIUV27X.js";
8
+ import "./chunk-XP27SJMH.js";
9
9
  import "./chunk-QWSRH265.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-FYMSCRHM.js";
9
- import "./chunk-GJXIKCKL.js";
8
+ } from "./chunk-FZIUV27X.js";
9
+ import "./chunk-XP27SJMH.js";
10
10
  import "./chunk-QWSRH265.js";
11
11
  import {
12
12
  init_esbuild_shims
@@ -2,17 +2,17 @@
2
2
  "use strict";
3
3
  import {
4
4
  detectTodoChanges
5
- } from "./chunk-B7ZL7HUA.js";
5
+ } from "./chunk-XVHR7ATJ.js";
6
6
  import {
7
7
  BaseDeclarativeTool,
8
8
  BaseToolInvocation,
9
9
  ToolDisplayNames,
10
10
  ToolNames
11
- } from "./chunk-FYMSCRHM.js";
11
+ } from "./chunk-FZIUV27X.js";
12
12
  import {
13
13
  Storage,
14
14
  createDebugLogger
15
- } from "./chunk-GJXIKCKL.js";
15
+ } from "./chunk-XP27SJMH.js";
16
16
  import "./chunk-QWSRH265.js";
17
17
  import {
18
18
  init_esbuild_shims
@@ -2,25 +2,25 @@
2
2
  "use strict";
3
3
  import {
4
4
  DiscoveredMCPTool
5
- } from "./chunk-PCL3EJGY.js";
5
+ } from "./chunk-C3LHPHN2.js";
6
6
  import "./chunk-SYCJMSIJ.js";
7
7
  import "./chunk-UWCTAVOD.js";
8
8
  import "./chunk-OFEVLU4C.js";
9
- import "./chunk-CM2IESUE.js";
10
- import "./chunk-UXW7MYAW.js";
11
- import "./chunk-G27O2LD2.js";
9
+ import "./chunk-PR4T27R7.js";
10
+ import "./chunk-CW44BRRA.js";
11
+ import "./chunk-D5NTAHYL.js";
12
12
  import "./chunk-T4VD6OJ4.js";
13
13
  import "./chunk-RDYWTWEM.js";
14
- import "./chunk-TPGOGCWM.js";
14
+ import "./chunk-JYQUJ5DS.js";
15
15
  import {
16
16
  BaseDeclarativeTool,
17
17
  BaseToolInvocation,
18
18
  ToolDisplayNames,
19
19
  ToolNames
20
- } from "./chunk-FYMSCRHM.js";
20
+ } from "./chunk-FZIUV27X.js";
21
21
  import {
22
22
  createDebugLogger
23
- } from "./chunk-GJXIKCKL.js";
23
+ } from "./chunk-XP27SJMH.js";
24
24
  import "./chunk-ZERZSAZL.js";
25
25
  import "./chunk-QN5NZ3UQ.js";
26
26
  import "./chunk-BR4QREVK.js";