@qwen-code/qwen-code 0.17.1 → 0.18.0-preview.1
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.
- package/README.md +4 -6
- package/bundled/qc-helper/SKILL.md +30 -24
- package/bundled/qc-helper/docs/features/auto-mode.md +54 -9
- package/bundled/qc-helper/docs/features/commands.md +11 -11
- package/bundled/qc-helper/docs/features/markdown-rendering.md +21 -1
- package/bundled/qc-helper/docs/overview.md +4 -4
- package/bundled/qc-helper/docs/quickstart.md +4 -4
- package/bundled/qc-helper/docs/support/Uninstall.md +19 -1
- package/bundled/qc-helper/docs/support/troubleshooting.md +2 -1
- package/chunks/{agent-ZJHHICAC.js → agent-SXS4NQWS.js} +18 -22
- package/chunks/{anthropicContentGenerator-M45RXZVS.js → anthropicContentGenerator-4QBVSFSJ.js} +5 -5
- package/chunks/{askUserQuestion-TGRD7FNQ.js → askUserQuestion-NOOLRWCJ.js} +5 -7
- package/chunks/{ca-6RSCDYUS.js → ca-WRHFBIDH.js} +38 -3
- package/chunks/{chunk-SOGUPKP6.js → chunk-5RNZ2QKF.js} +3 -5
- package/chunks/{chunk-2KEXT6RB.js → chunk-6KH2Q7XN.js} +91245 -78527
- package/chunks/{chunk-GVWPJCXU.js → chunk-6VFG3EUJ.js} +1 -1
- package/chunks/{chunk-NQ3E7YLD.js → chunk-AVLOK27J.js} +42 -8
- package/chunks/{chunk-JBSYXHJF.js → chunk-BBTV54KB.js} +2 -2
- package/chunks/{chunk-3BJBCG2K.js → chunk-C6WMLUNB.js} +1 -1
- package/chunks/{chunk-TDZCEIK6.js → chunk-D46KOV3C.js} +1 -1
- package/chunks/{chunk-NJJER6E2.js → chunk-ERREX2ES.js} +10 -6
- package/chunks/{chunk-HX3JRTWL.js → chunk-F5ORN4YO.js} +1 -1
- package/chunks/{chunk-C5CUHYSM.js → chunk-F6FLCHCS.js} +895 -490
- package/chunks/{chunk-JKUAX6UT.js → chunk-G763GDO6.js} +125 -12
- package/chunks/{chunk-OIL7KDWV.js → chunk-GBEPNWYB.js} +1 -1
- package/chunks/{chunk-G4K6P5KN.js → chunk-JMLIPZUU.js} +3 -3
- package/chunks/{chunk-OJFMTECH.js → chunk-JSYEZAYV.js} +2 -2
- package/chunks/{chunk-AKBFRR6J.js → chunk-K5PGHDBN.js} +132 -112
- package/chunks/{chunk-5JBZM7FZ.js → chunk-KOA52UTF.js} +6 -6
- package/chunks/{chunk-QVJ33ZBG.js → chunk-MVX64PNU.js} +1 -1
- package/chunks/{chunk-PLYRQYKC.js → chunk-NQZ33PWX.js} +11 -11
- package/chunks/{chunk-EY6BDW7Y.js → chunk-PLYZAP4W.js} +45 -9
- package/chunks/{chunk-ACBGEKB7.js → chunk-R5PDRHEF.js} +2 -1
- package/chunks/{chunk-6O244QKR.js → chunk-SCHRFI7O.js} +1 -1
- package/chunks/{chunk-GJHMAWS7.js → chunk-SHUT5MQY.js} +1 -1
- package/chunks/{chunk-RQW7WUJR.js → chunk-UABFCMPA.js} +34 -6
- package/chunks/{chunk-33RDTIU6.js → chunk-UFC57OYT.js} +3 -5
- package/chunks/{chunk-NP3ICQCN.js → chunk-USE2VQ5P.js} +1 -1
- package/chunks/{chunk-QWSRH265.js → chunk-WFVXF3OM.js} +776 -776
- package/chunks/{chunk-X2474BTT.js → chunk-ZW7GBCRE.js} +147 -10
- package/chunks/{computer-use-NAHQPV2L.js → computer-use-CT6MU6P3.js} +51 -18
- package/chunks/contextCommand-YODJQYIV.js +46 -0
- package/chunks/{cron-create-V3UK2SJN.js → cron-create-PIPMXQN4.js} +5 -7
- package/chunks/{cron-delete-MANALPCP.js → cron-delete-6Y5XIDMS.js} +5 -7
- package/chunks/{cron-list-UDIYK3B3.js → cron-list-A4WNRUWZ.js} +5 -7
- package/chunks/{de-APURNJ3I.js → de-M5RPB2NB.js} +38 -3
- package/chunks/{dist-XTTPOFAH.js → dist-BXDUQ2QY.js} +3 -4
- package/chunks/{dist-AHZNZWRI.js → dist-R2SXPG74.js} +4 -5
- package/chunks/{dist-ATAKC63R.js → dist-TE5QKMGR.js} +3 -4
- package/chunks/{dist-6RUZ2JD6.js → dist-ZMQ4TXD5.js} +3 -4
- package/chunks/{edit-JWXCQ4KK.js → edit-A4YK7AIB.js} +22 -27
- package/chunks/{en-FYO57HJW.js → en-UMYKQAZE.js} +46 -3
- package/chunks/{enter-worktree-G4CJXPT4.js → enter-worktree-VNEQINLC.js} +20 -25
- package/chunks/{exit-worktree-MYZ2FGU2.js → exit-worktree-AVSMXC33.js} +20 -25
- package/chunks/{exitPlanMode-ELJ6FSMU.js → exitPlanMode-5SQYVROD.js} +20 -25
- package/chunks/{fr-32YHQZIS.js → fr-MPYXXXPW.js} +38 -3
- package/chunks/{geminiContentGenerator-3LR7MKCQ.js → geminiContentGenerator-CR2WGARL.js} +5 -5
- package/chunks/{getMachineId-bsd-GS3V2GK7.js → getMachineId-bsd-F7GNPTER.js} +1 -1
- package/chunks/{getMachineId-darwin-ZQB4Q7EW.js → getMachineId-darwin-T73DJL27.js} +1 -1
- package/chunks/{getMachineId-linux-JQ4NN4DN.js → getMachineId-linux-MKQTFPQM.js} +1 -1
- package/chunks/{getMachineId-unsupported-U7H4V4HJ.js → getMachineId-unsupported-MUR5KOQE.js} +1 -1
- package/chunks/{getMachineId-win-VHUZGBQ3.js → getMachineId-win-CDYFC6ZM.js} +1 -1
- package/chunks/{glob-CANUAUTC.js → glob-5V32KOG5.js} +20 -25
- package/chunks/{grep-WZWNJRDX.js → grep-PUTEPBR4.js} +20 -25
- package/chunks/{ja-PEUXN4XT.js → ja-NFZ32AB3.js} +38 -3
- package/chunks/{keychain-token-storage-3552ENXE.js → keychain-token-storage-UHGOCDD6.js} +3 -3
- package/chunks/{ls-T4SVZWR6.js → ls-34DLNYCD.js} +6 -8
- package/chunks/{lsp-U4ZQLNIS.js → lsp-NCDEHH3V.js} +5 -7
- package/chunks/{monitor-CCKNOUFG.js → monitor-EJBR5VCR.js} +20 -25
- package/chunks/{notebook-edit-XDUY5Q4I.js → notebook-edit-DZHGPP2L.js} +21 -26
- package/chunks/{openaiContentGenerator-N3O3MYIT.js → openaiContentGenerator-4QNV3CHM.js} +12 -14
- package/chunks/{pt-2INS7YVC.js → pt-BR43FRBA.js} +38 -3
- package/chunks/{qwenContentGenerator-DEOIWKVH.js → qwenContentGenerator-3XOCEMQO.js} +20 -24
- package/chunks/{qwenOAuth2-LKXG7XVO.js → qwenOAuth2-KRJT35QH.js} +5 -5
- package/chunks/{read-file-BRNXGILN.js → read-file-VZ2SQQIX.js} +9 -11
- package/chunks/ripGrep-SBIZCPOL.js +42 -0
- package/chunks/{ru-6CQ5HNHB.js → ru-DQCW2KHD.js} +38 -3
- package/chunks/{scheduler-SSFABMN5.js → scheduler-H32DZVDV.js} +18 -22
- package/chunks/{send-message-GFYV7WLL.js → send-message-YYF56TS7.js} +5 -7
- package/chunks/{serve-B5O72CRN.js → serve-56G4B5W6.js} +21 -25
- package/chunks/{shell-SGYNBVMK.js → shell-Q77KNP4N.js} +18 -22
- package/chunks/{skill-V7Y6DOFB.js → skill-CLWFJYBG.js} +88 -25
- package/chunks/{src-OKFFQGXB.js → src-47L2LUOU.js} +90 -33
- package/chunks/{syntheticOutput-DM43O6TY.js → syntheticOutput-T5SWX3YF.js} +4 -5
- package/chunks/{task-stop-WKP5OB3V.js → task-stop-3VHAQMYM.js} +5 -7
- package/chunks/{todoWrite-GHL6DCLP.js → todoWrite-EAGJGKO5.js} +7 -9
- package/chunks/{tool-search-7MHT3HGM.js → tool-search-Q75AYDTP.js} +27 -15
- package/chunks/{web-fetch-SZIV74ZX.js → web-fetch-SS6IKK6N.js} +7 -9
- package/chunks/{write-file-ARS2Z6BJ.js → write-file-RENGC25N.js} +23 -28
- package/chunks/{zh-ZHZCMIRG.js → zh-6VFXOAR5.js} +49 -3
- package/chunks/{zh-TW-SSL3ATVZ.js → zh-TW-IQZ4AD5M.js} +45 -3
- package/cli.js +8153 -4156
- package/examples/agent/agents/diary.md +86 -0
- package/examples/agent/qwen-extension.json +4 -0
- package/examples/commands/commands/fs/grep-code.md +3 -0
- package/examples/commands/qwen-extension.json +4 -0
- package/examples/context/QWEN.md +8 -0
- package/examples/context/qwen-extension.json +4 -0
- package/examples/mcp-server/example.ts +60 -0
- package/examples/mcp-server/package.json +18 -0
- package/examples/mcp-server/qwen-extension.json +11 -0
- package/examples/mcp-server/tsconfig.json +13 -0
- package/examples/skills/qwen-extension.json +4 -0
- package/examples/skills/skills/synonyms/SKILL.md +48 -0
- package/locales/ca.js +64 -4
- package/locales/de.js +63 -4
- package/locales/en.js +75 -4
- package/locales/fr.js +65 -4
- package/locales/ja.js +61 -4
- package/locales/pt.js +64 -4
- package/locales/ru.js +62 -4
- package/locales/zh-TW.js +70 -4
- package/locales/zh.js +74 -4
- package/package.json +3 -2
- package/chunks/chunk-24YKA2DA.js +0 -233
- package/chunks/chunk-6RQTH7UQ.js +0 -115
- package/chunks/chunk-7TQVELRB.js +0 -10412
- package/chunks/chunk-W57YDFU5.js +0 -41
- package/chunks/contextCommand-7KJT3UJS.js +0 -50
- 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
|
-
|
|
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-
|
|
610
|
-
import "./chunk-
|
|
624
|
+
} from "./chunk-6KH2Q7XN.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-
|
|
634
|
+
} from "./chunk-SCHRFI7O.js";
|
|
622
635
|
import {
|
|
636
|
+
applySkillAllowedTools,
|
|
623
637
|
buildSkillLlmContent
|
|
624
|
-
} from "./chunk-
|
|
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
|
-
|
|
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-
|
|
672
|
+
} from "./chunk-6VFG3EUJ.js";
|
|
656
673
|
import {
|
|
657
674
|
AGENT_CONTEXT_FILENAME,
|
|
658
675
|
ApiCancelEvent,
|
|
@@ -707,6 +724,7 @@ import {
|
|
|
707
724
|
PromptSuggestionEvent,
|
|
708
725
|
QWEN_OAUTH_MODELS,
|
|
709
726
|
QwenLogger,
|
|
727
|
+
RUNTIME_SNAPSHOT_PREFIX,
|
|
710
728
|
ReadFileTool,
|
|
711
729
|
RipgrepFallbackEvent,
|
|
712
730
|
SYSTEM_FILE_EXCLUDES,
|
|
@@ -742,6 +760,7 @@ import {
|
|
|
742
760
|
endHookSpan,
|
|
743
761
|
endInteractionSpan,
|
|
744
762
|
endLLMRequestSpan,
|
|
763
|
+
endSubagentSpan,
|
|
745
764
|
endToolBlockedOnUserSpan,
|
|
746
765
|
endToolExecutionSpan,
|
|
747
766
|
endToolSpan,
|
|
@@ -809,6 +828,7 @@ import {
|
|
|
809
828
|
recordApiErrorMetrics,
|
|
810
829
|
recordApiRequestBreakdown,
|
|
811
830
|
recordApiResponseMetrics,
|
|
831
|
+
recordApiRetry,
|
|
812
832
|
recordArenaAgentCompletedMetrics,
|
|
813
833
|
recordArenaSessionEndedMetrics,
|
|
814
834
|
recordArenaSessionStartedMetrics,
|
|
@@ -835,6 +855,7 @@ import {
|
|
|
835
855
|
resolveContentGeneratorConfigWithSources,
|
|
836
856
|
resolveOpenAILogDir,
|
|
837
857
|
resolveTelemetrySettings,
|
|
858
|
+
runInSubagentSpanContext,
|
|
838
859
|
runInToolSpanContext,
|
|
839
860
|
sanitizeHookName,
|
|
840
861
|
setGeminiMdFilename,
|
|
@@ -842,18 +863,19 @@ import {
|
|
|
842
863
|
startHookSpan,
|
|
843
864
|
startInteractionSpan,
|
|
844
865
|
startLLMRequestSpan,
|
|
866
|
+
startSubagentSpan,
|
|
845
867
|
startToolBlockedOnUserSpan,
|
|
846
868
|
startToolExecutionSpan,
|
|
847
869
|
startToolSpan,
|
|
870
|
+
stripRuntimeSnapshotPrefix,
|
|
848
871
|
truncateContent,
|
|
849
872
|
truncateSpanError,
|
|
850
873
|
uiTelemetryService,
|
|
851
874
|
validateModelConfig,
|
|
852
875
|
windowsCodePageToEncoding
|
|
853
|
-
} from "./chunk-
|
|
876
|
+
} from "./chunk-F6FLCHCS.js";
|
|
854
877
|
import "./chunk-3PJXIDKI.js";
|
|
855
878
|
import "./chunk-UWCTAVOD.js";
|
|
856
|
-
import "./chunk-W57YDFU5.js";
|
|
857
879
|
import {
|
|
858
880
|
DEFAULT_QWEN_EMBEDDING_MODEL,
|
|
859
881
|
DEFAULT_QWEN_FLASH_MODEL,
|
|
@@ -866,6 +888,7 @@ import {
|
|
|
866
888
|
AUTO_MEMORY_EXTRACT_CURSOR_FILENAME,
|
|
867
889
|
AUTO_MEMORY_INDEX_FILENAME,
|
|
868
890
|
AUTO_MEMORY_METADATA_FILENAME,
|
|
891
|
+
USER_AUTO_MEMORY_DIRNAME,
|
|
869
892
|
clearAutoMemoryRootCache,
|
|
870
893
|
getAutoMemoryConsolidationLockPath,
|
|
871
894
|
getAutoMemoryExtractCursorPath,
|
|
@@ -877,16 +900,15 @@ import {
|
|
|
877
900
|
getAutoMemoryTopicFilename,
|
|
878
901
|
getAutoMemoryTopicPath,
|
|
879
902
|
getMemoryBaseDir,
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
} from "./chunk-6RQTH7UQ.js";
|
|
903
|
+
getUserAutoMemoryIndexPath,
|
|
904
|
+
getUserAutoMemoryRoot,
|
|
905
|
+
getUserAutoMemoryTopicPath,
|
|
906
|
+
isAnyAutoMemPath,
|
|
907
|
+
isAutoMemPath,
|
|
908
|
+
isUserAutoMemPath
|
|
909
|
+
} from "./chunk-AVLOK27J.js";
|
|
910
|
+
import "./chunk-JSYEZAYV.js";
|
|
911
|
+
import "./chunk-5RNZ2QKF.js";
|
|
890
912
|
import {
|
|
891
913
|
AgentStatistics,
|
|
892
914
|
BaseDeclarativeTool,
|
|
@@ -897,10 +919,14 @@ import {
|
|
|
897
919
|
MUTATOR_KINDS,
|
|
898
920
|
SchemaValidator,
|
|
899
921
|
ToolConfirmationOutcome,
|
|
922
|
+
ToolDisplayNames,
|
|
923
|
+
ToolDisplayNamesMigration,
|
|
900
924
|
ToolErrorType,
|
|
925
|
+
ToolNames,
|
|
926
|
+
ToolNamesMigration,
|
|
901
927
|
hasCycleInSchema,
|
|
902
928
|
isTool
|
|
903
|
-
} from "./chunk-
|
|
929
|
+
} from "./chunk-G763GDO6.js";
|
|
904
930
|
import {
|
|
905
931
|
CredentialsClearRequiredError,
|
|
906
932
|
QWEN_CREDENTIAL_FILE_MODE,
|
|
@@ -919,15 +945,15 @@ import {
|
|
|
919
945
|
isDeviceTokenSuccess,
|
|
920
946
|
isErrorResponse,
|
|
921
947
|
qwenOAuth2Events
|
|
922
|
-
} from "./chunk-
|
|
923
|
-
import "./chunk-
|
|
948
|
+
} from "./chunk-JMLIPZUU.js";
|
|
949
|
+
import "./chunk-GBEPNWYB.js";
|
|
924
950
|
import {
|
|
925
951
|
atomicWriteFile,
|
|
926
952
|
atomicWriteFileSync,
|
|
927
953
|
atomicWriteJSON,
|
|
928
954
|
renameWithRetry,
|
|
929
955
|
renameWithRetrySync
|
|
930
|
-
} from "./chunk-
|
|
956
|
+
} from "./chunk-F5ORN4YO.js";
|
|
931
957
|
import {
|
|
932
958
|
SUPPORTED_IMAGE_MIME_TYPES,
|
|
933
959
|
TextTokenizer,
|
|
@@ -937,7 +963,7 @@ import {
|
|
|
937
963
|
getUnsupportedImageFormatWarning,
|
|
938
964
|
isSupportedImageMimeType,
|
|
939
965
|
redactProxyCredentials
|
|
940
|
-
} from "./chunk-
|
|
966
|
+
} from "./chunk-MVX64PNU.js";
|
|
941
967
|
import {
|
|
942
968
|
CAPPED_DEFAULT_MAX_TOKENS,
|
|
943
969
|
DEFAULT_OUTPUT_TOKEN_LIMIT,
|
|
@@ -952,7 +978,7 @@ import {
|
|
|
952
978
|
summarizeAnthropicWireRequest,
|
|
953
979
|
summarizeOpenAIWireRequest,
|
|
954
980
|
tokenLimit
|
|
955
|
-
} from "./chunk-
|
|
981
|
+
} from "./chunk-D46KOV3C.js";
|
|
956
982
|
import "./chunk-BNESGOSJ.js";
|
|
957
983
|
import "./chunk-SZOEIL6S.js";
|
|
958
984
|
import "./chunk-5IFG2VC4.js";
|
|
@@ -1000,14 +1026,14 @@ import {
|
|
|
1000
1026
|
unescapePath,
|
|
1001
1027
|
updateSymlink,
|
|
1002
1028
|
validatePath
|
|
1003
|
-
} from "./chunk-
|
|
1029
|
+
} from "./chunk-R5PDRHEF.js";
|
|
1004
1030
|
import "./chunk-ZERZSAZL.js";
|
|
1005
1031
|
import "./chunk-QN5NZ3UQ.js";
|
|
1006
1032
|
import "./chunk-BR4QREVK.js";
|
|
1007
1033
|
import {
|
|
1008
1034
|
SpanStatusCode,
|
|
1009
1035
|
ValueType
|
|
1010
|
-
} from "./chunk-
|
|
1036
|
+
} from "./chunk-WFVXF3OM.js";
|
|
1011
1037
|
import "./chunk-A4BMJM77.js";
|
|
1012
1038
|
import "./chunk-J2S4EL5Y.js";
|
|
1013
1039
|
export {
|
|
@@ -1227,6 +1253,7 @@ export {
|
|
|
1227
1253
|
MAX_RETAINED_TERMINAL_MONITORS,
|
|
1228
1254
|
MAX_RETAINED_TERMINAL_SHELLS,
|
|
1229
1255
|
MAX_TRANSCRIPT_MESSAGES,
|
|
1256
|
+
MAX_USER_PROMPT_EXPANSION_ADDITIONAL_CONTEXT_LENGTH,
|
|
1230
1257
|
MCPDiscoveryState,
|
|
1231
1258
|
MCPOAuthProvider,
|
|
1232
1259
|
MCPOAuthTokenStorage,
|
|
@@ -1296,6 +1323,7 @@ export {
|
|
|
1296
1323
|
QwenOAuth2Event,
|
|
1297
1324
|
QwenOAuthPollError,
|
|
1298
1325
|
REDACTED_URL_CREDENTIAL,
|
|
1326
|
+
RUNTIME_SNAPSHOT_PREFIX,
|
|
1299
1327
|
RUNTIME_STATUS_SCHEMA_VERSION,
|
|
1300
1328
|
ReadFileTool,
|
|
1301
1329
|
RipGrepTool,
|
|
@@ -1306,12 +1334,13 @@ export {
|
|
|
1306
1334
|
SHELL_SPECIAL_CHARS,
|
|
1307
1335
|
SHELL_TOOL_NAMES,
|
|
1308
1336
|
SKILL_REVIEW_TASK_TYPE,
|
|
1309
|
-
STARTUP_CONTEXT_MODEL_ACK,
|
|
1310
1337
|
STOP_HOOK_BLOCK_CAP_ENV,
|
|
1311
1338
|
SUGGESTION_PROMPT,
|
|
1312
1339
|
SUPPORTED_IMAGE_MIME_TYPES,
|
|
1313
1340
|
SYMBOL_KIND_LABELS,
|
|
1314
1341
|
SYSTEM_FILE_EXCLUDES,
|
|
1342
|
+
SYSTEM_REMINDER_CLOSE,
|
|
1343
|
+
SYSTEM_REMINDER_OPEN,
|
|
1315
1344
|
SchemaValidator,
|
|
1316
1345
|
SdkControlClientTransport,
|
|
1317
1346
|
SemanticAttributes,
|
|
@@ -1326,6 +1355,7 @@ export {
|
|
|
1326
1355
|
SkillLaunchEvent,
|
|
1327
1356
|
SkillManager,
|
|
1328
1357
|
SlashCommandStatus,
|
|
1358
|
+
SleepInhibitor,
|
|
1329
1359
|
SpanStatusCode,
|
|
1330
1360
|
SpeculationEvent,
|
|
1331
1361
|
StandardFileSystemService,
|
|
@@ -1360,11 +1390,13 @@ export {
|
|
|
1360
1390
|
ToolRegistry,
|
|
1361
1391
|
TrustGateError,
|
|
1362
1392
|
Turn,
|
|
1393
|
+
USER_AUTO_MEMORY_DIRNAME,
|
|
1363
1394
|
UiTelemetryService,
|
|
1364
1395
|
UnauthorizedError,
|
|
1365
1396
|
UserFeedbackEvent,
|
|
1366
1397
|
UserFeedbackRating,
|
|
1367
1398
|
UserPromptEvent,
|
|
1399
|
+
UserPromptExpansionHookOutput,
|
|
1368
1400
|
UserRetryEvent,
|
|
1369
1401
|
ValueType,
|
|
1370
1402
|
WORKTREES_DIR,
|
|
@@ -1382,6 +1414,7 @@ export {
|
|
|
1382
1414
|
abortGoalForStopHookCap,
|
|
1383
1415
|
abortSpeculation,
|
|
1384
1416
|
acceptSpeculation,
|
|
1417
|
+
acquireSleepInhibitor,
|
|
1385
1418
|
activeGoalEquals,
|
|
1386
1419
|
addMCPStatusChangeListener,
|
|
1387
1420
|
addModelOutputAttributes,
|
|
@@ -1395,21 +1428,25 @@ export {
|
|
|
1395
1428
|
appendToLastTextPart,
|
|
1396
1429
|
applyAutoModeDecision,
|
|
1397
1430
|
applyProviderInstallPlan,
|
|
1431
|
+
applySkillAllowedTools,
|
|
1398
1432
|
atomicWriteFile,
|
|
1399
1433
|
atomicWriteFileSync,
|
|
1400
1434
|
atomicWriteJSON,
|
|
1435
|
+
buildAddedMcpToolsReminder,
|
|
1401
1436
|
buildApiHistoryFromConversation,
|
|
1402
1437
|
buildBackgroundEntryLabel,
|
|
1403
|
-
|
|
1438
|
+
buildDeferredToolsReminder,
|
|
1404
1439
|
buildFallbackApproachSummary,
|
|
1405
1440
|
buildHumanReadableRuleLabel,
|
|
1406
1441
|
buildInstallPlan,
|
|
1442
|
+
buildMcpServerInstructionsReminder,
|
|
1407
1443
|
buildModelIdContext,
|
|
1408
1444
|
buildPermissionCheckContext,
|
|
1409
1445
|
buildPermissionRules,
|
|
1410
1446
|
buildProviderTemplate,
|
|
1411
1447
|
buildShellExecWarnings,
|
|
1412
1448
|
buildSkillLlmContent,
|
|
1449
|
+
buildStartupContextReminder,
|
|
1413
1450
|
cacheQwenCredentials,
|
|
1414
1451
|
canUseRipgrep,
|
|
1415
1452
|
checkArgumentSafety,
|
|
@@ -1460,6 +1497,7 @@ export {
|
|
|
1460
1497
|
createForkedChat,
|
|
1461
1498
|
createGoalStopHookCallback,
|
|
1462
1499
|
createHookOutput,
|
|
1500
|
+
createInstructionsLoadedCallback,
|
|
1463
1501
|
createStreamableHttpCompatibilityFetch,
|
|
1464
1502
|
createTmpDir,
|
|
1465
1503
|
createToolUseSummaryMessage,
|
|
@@ -1493,6 +1531,7 @@ export {
|
|
|
1493
1531
|
endHookSpan,
|
|
1494
1532
|
endInteractionSpan,
|
|
1495
1533
|
endLLMRequestSpan,
|
|
1534
|
+
endSubagentSpan,
|
|
1496
1535
|
endToolBlockedOnUserSpan,
|
|
1497
1536
|
endToolExecutionSpan,
|
|
1498
1537
|
endToolSpan,
|
|
@@ -1501,6 +1540,7 @@ export {
|
|
|
1501
1540
|
ensureMacBinarySigned,
|
|
1502
1541
|
ensureRipgrepHealthy,
|
|
1503
1542
|
ensureToolResultPairing,
|
|
1543
|
+
ensureUserAutoMemoryScaffold,
|
|
1504
1544
|
envLayer,
|
|
1505
1545
|
escapePath,
|
|
1506
1546
|
escapeShellArg,
|
|
@@ -1534,6 +1574,7 @@ export {
|
|
|
1534
1574
|
firePreToolUseHook,
|
|
1535
1575
|
flatMapTextParts,
|
|
1536
1576
|
formatClassifierBlockMessage,
|
|
1577
|
+
formatDateForContext,
|
|
1537
1578
|
formatDenialStateLog,
|
|
1538
1579
|
formatLineStats,
|
|
1539
1580
|
formatMemoryUsage,
|
|
@@ -1578,6 +1619,7 @@ export {
|
|
|
1578
1619
|
getDiffCommand,
|
|
1579
1620
|
getDirectoryContextString,
|
|
1580
1621
|
getEditorExecutable,
|
|
1622
|
+
getEffectivePermissionForConfirmation,
|
|
1581
1623
|
getEnvContents,
|
|
1582
1624
|
getEnvironmentContext,
|
|
1583
1625
|
getErrorMessage,
|
|
@@ -1622,12 +1664,16 @@ export {
|
|
|
1622
1664
|
getShellConfiguration,
|
|
1623
1665
|
getSpecificMimeType,
|
|
1624
1666
|
getSpecifierKind,
|
|
1667
|
+
getStartupContextLength,
|
|
1625
1668
|
getStructuredResponse,
|
|
1626
1669
|
getStructuredResponseFromParts,
|
|
1627
1670
|
getSupportedImageFormatsString,
|
|
1628
1671
|
getSystemEncoding,
|
|
1629
1672
|
getThoughtText,
|
|
1630
1673
|
getUnsupportedImageFormatWarning,
|
|
1674
|
+
getUserAutoMemoryIndexPath,
|
|
1675
|
+
getUserAutoMemoryRoot,
|
|
1676
|
+
getUserAutoMemoryTopicPath,
|
|
1631
1677
|
getWelcomeBackState,
|
|
1632
1678
|
globalMemoryManager,
|
|
1633
1679
|
hasCycleInSchema,
|
|
@@ -1645,6 +1691,7 @@ export {
|
|
|
1645
1691
|
injectPermissionRulesIfMissing,
|
|
1646
1692
|
invokeMcpPrompt,
|
|
1647
1693
|
isAbortError,
|
|
1694
|
+
isAnyAutoMemPath,
|
|
1648
1695
|
isApiError,
|
|
1649
1696
|
isApproveOutcome,
|
|
1650
1697
|
isAutoEditApproved,
|
|
@@ -1686,6 +1733,7 @@ export {
|
|
|
1686
1733
|
isSubpaths,
|
|
1687
1734
|
isSuccessStatus,
|
|
1688
1735
|
isSupportedImageMimeType,
|
|
1736
|
+
isSystemReminderContent,
|
|
1689
1737
|
isTelemetrySdkInitialized,
|
|
1690
1738
|
isTerminalEditor,
|
|
1691
1739
|
isTerminalStatus,
|
|
@@ -1694,6 +1742,7 @@ export {
|
|
|
1694
1742
|
isToolEnabled,
|
|
1695
1743
|
isTransientCapacityError,
|
|
1696
1744
|
isUnattendedMode,
|
|
1745
|
+
isUserAutoMemPath,
|
|
1697
1746
|
isValidEditorType,
|
|
1698
1747
|
isValidNonThoughtTextPart,
|
|
1699
1748
|
isWindows,
|
|
@@ -1809,12 +1858,14 @@ export {
|
|
|
1809
1858
|
readManyFiles,
|
|
1810
1859
|
readPathFromWorkspace,
|
|
1811
1860
|
readRuntimeStatus,
|
|
1861
|
+
readUserAutoMemoryIndex,
|
|
1812
1862
|
readWorktreeSession,
|
|
1813
1863
|
readWorktreeSessionMarker,
|
|
1814
1864
|
recordAllow,
|
|
1815
1865
|
recordApiErrorMetrics,
|
|
1816
1866
|
recordApiRequestBreakdown,
|
|
1817
1867
|
recordApiResponseMetrics,
|
|
1868
|
+
recordApiRetry,
|
|
1818
1869
|
recordArenaAgentCompletedMetrics,
|
|
1819
1870
|
recordArenaSessionEndedMetrics,
|
|
1820
1871
|
recordArenaSessionStartedMetrics,
|
|
@@ -1883,6 +1934,7 @@ export {
|
|
|
1883
1934
|
retryWithBackoff,
|
|
1884
1935
|
rewritePathArgs,
|
|
1885
1936
|
runForkedAgent,
|
|
1937
|
+
runInSubagentSpanContext,
|
|
1886
1938
|
runInToolSpanContext,
|
|
1887
1939
|
runRipgrep,
|
|
1888
1940
|
runSideQuery,
|
|
@@ -1895,6 +1947,7 @@ export {
|
|
|
1895
1947
|
sanitizeHookName,
|
|
1896
1948
|
sanitizeTitle,
|
|
1897
1949
|
sanitizeToolCallResultForRecording,
|
|
1950
|
+
sanitizeUserPromptExpansionAdditionalContext,
|
|
1898
1951
|
saveCacheSafeParams,
|
|
1899
1952
|
saveWelcomeBackRestartChoice,
|
|
1900
1953
|
serializeTerminalToObject,
|
|
@@ -1912,9 +1965,11 @@ export {
|
|
|
1912
1965
|
shouldFallback,
|
|
1913
1966
|
shouldFilterSuggestion,
|
|
1914
1967
|
shouldFirePermissionDeniedForAutoMode,
|
|
1968
|
+
shouldForceAutoModeReviewForAllow,
|
|
1915
1969
|
shouldRunAutoModeForCall,
|
|
1916
1970
|
shouldShowStep,
|
|
1917
1971
|
shutdownTelemetry,
|
|
1972
|
+
sleepInhibitor,
|
|
1918
1973
|
splitCommands,
|
|
1919
1974
|
splitCompoundCommand,
|
|
1920
1975
|
splitConditionalSkills,
|
|
@@ -1922,10 +1977,12 @@ export {
|
|
|
1922
1977
|
startInteractionSpan,
|
|
1923
1978
|
startLLMRequestSpan,
|
|
1924
1979
|
startSpeculation,
|
|
1980
|
+
startSubagentSpan,
|
|
1925
1981
|
startToolBlockedOnUserSpan,
|
|
1926
1982
|
startToolExecutionSpan,
|
|
1927
1983
|
startToolSpan,
|
|
1928
1984
|
stringify,
|
|
1985
|
+
stripRuntimeSnapshotPrefix,
|
|
1929
1986
|
stripShellWrapper,
|
|
1930
1987
|
stripStartupContext,
|
|
1931
1988
|
stripTerminalControlSequences,
|
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
import {
|
|
4
4
|
STRUCTURED_OUTPUT_REDACTED_ARGS,
|
|
5
5
|
SyntheticOutputTool
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
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-
|
|
7
|
-
import
|
|
8
|
-
|
|
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-
|
|
5
|
+
} from "./chunk-UABFCMPA.js";
|
|
6
6
|
import {
|
|
7
|
+
BaseDeclarativeTool,
|
|
8
|
+
BaseToolInvocation,
|
|
7
9
|
ToolDisplayNames,
|
|
8
10
|
ToolNames
|
|
9
|
-
} from "./chunk-
|
|
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-
|
|
14
|
+
} from "./chunk-F5ORN4YO.js";
|
|
17
15
|
import {
|
|
18
16
|
Storage,
|
|
19
17
|
createDebugLogger
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
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-
|
|
5
|
+
} from "./chunk-F6FLCHCS.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-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
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-
|
|
17
|
-
import
|
|
18
|
-
|
|
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-
|
|
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-
|
|
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
|
|
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) {
|