yzcode-cli 1.0.3 → 1.0.5

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 (1669) hide show
  1. package/QueryEngine.ts +46 -46
  2. package/README.md +39 -0
  3. package/Task.ts +3 -3
  4. package/Tool.ts +25 -25
  5. package/assistant/gate.ts +2 -0
  6. package/assistant/index.ts +2 -0
  7. package/assistant/sessionHistory.ts +4 -4
  8. package/bin/yzcode.js +10 -11
  9. package/bootstrap/state.ts +11 -11
  10. package/bridge/bridgeApi.ts +2 -2
  11. package/bridge/bridgeConfig.ts +2 -2
  12. package/bridge/bridgeDebug.ts +3 -3
  13. package/bridge/bridgeEnabled.ts +4 -4
  14. package/bridge/bridgeMain.ts +26 -26
  15. package/bridge/bridgeMessaging.ts +13 -13
  16. package/bridge/bridgePermissionCallbacks.ts +1 -1
  17. package/bridge/bridgePointer.ts +6 -6
  18. package/bridge/bridgeStatusUtil.ts +4 -4
  19. package/bridge/bridgeUI.ts +5 -5
  20. package/bridge/codeSessionApi.ts +4 -4
  21. package/bridge/createSession.ts +5 -5
  22. package/bridge/debugUtils.ts +4 -4
  23. package/bridge/envLessBridgeConfig.ts +4 -4
  24. package/bridge/inboundAttachments.ts +5 -5
  25. package/bridge/inboundMessages.ts +2 -2
  26. package/bridge/initReplBridge.ts +29 -29
  27. package/bridge/jwtUtils.ts +5 -5
  28. package/bridge/pollConfig.ts +3 -3
  29. package/bridge/remoteBridgeCore.ts +24 -24
  30. package/bridge/replBridge.ts +27 -27
  31. package/bridge/replBridgeHandle.ts +3 -3
  32. package/bridge/replBridgeTransport.ts +9 -9
  33. package/bridge/sessionRunner.ts +3 -3
  34. package/bridge/trustedDevice.ts +7 -7
  35. package/bridge/workSecret.ts +2 -2
  36. package/buddy/CompanionSprite.tsx +11 -11
  37. package/buddy/companion.ts +2 -2
  38. package/buddy/prompt.ts +4 -4
  39. package/buddy/sprites.ts +2 -2
  40. package/buddy/useBuddyNotification.tsx +4 -4
  41. package/cli/handlers/agents.ts +3 -3
  42. package/cli/handlers/auth.ts +18 -18
  43. package/cli/handlers/autoMode.ts +6 -6
  44. package/cli/handlers/mcp.tsx +16 -16
  45. package/cli/handlers/plugins.ts +20 -20
  46. package/cli/handlers/util.tsx +10 -10
  47. package/cli/ndjsonSafeStringify.ts +1 -1
  48. package/cli/print.ts +137 -137
  49. package/cli/remoteIO.ts +21 -21
  50. package/cli/structuredIO.ts +24 -24
  51. package/cli/transports/HybridTransport.ts +6 -6
  52. package/cli/transports/SSETransport.ts +9 -9
  53. package/cli/transports/SerialBatchEventUploader.ts +1 -1
  54. package/cli/transports/WebSocketTransport.ts +11 -11
  55. package/cli/transports/WorkerStateUploader.ts +1 -1
  56. package/cli/transports/ccrClient.ts +14 -14
  57. package/cli/transports/transportUtils.ts +5 -5
  58. package/cli/update.ts +13 -13
  59. package/commands/add-dir/add-dir.tsx +10 -10
  60. package/commands/add-dir/index.ts +1 -1
  61. package/commands/add-dir/validation.ts +4 -4
  62. package/commands/advisor.ts +6 -6
  63. package/commands/agents/agents.tsx +4 -4
  64. package/commands/agents/index.ts +1 -1
  65. package/commands/branch/branch.ts +9 -9
  66. package/commands/branch/index.ts +1 -1
  67. package/commands/bridge/bridge.tsx +15 -15
  68. package/commands/bridge/index.ts +2 -2
  69. package/commands/bridge-kick.ts +3 -3
  70. package/commands/brief.ts +8 -8
  71. package/commands/btw/btw.tsx +21 -21
  72. package/commands/btw/index.ts +1 -1
  73. package/commands/chrome/chrome.tsx +11 -11
  74. package/commands/chrome/index.ts +2 -2
  75. package/commands/clear/caches.ts +20 -20
  76. package/commands/clear/clear.ts +2 -2
  77. package/commands/clear/conversation.ts +19 -19
  78. package/commands/clear/index.ts +3 -3
  79. package/commands/color/color.ts +6 -6
  80. package/commands/color/index.ts +1 -1
  81. package/commands/commit-push-pr.ts +5 -5
  82. package/commands/commit.ts +4 -4
  83. package/commands/compact/compact.ts +20 -20
  84. package/commands/compact/index.ts +2 -2
  85. package/commands/config/config.tsx +2 -2
  86. package/commands/config/index.ts +1 -1
  87. package/commands/context/context-noninteractive.ts +10 -10
  88. package/commands/context/context.tsx +8 -8
  89. package/commands/context/index.ts +2 -2
  90. package/commands/copy/copy.tsx +16 -16
  91. package/commands/copy/index.ts +1 -1
  92. package/commands/cost/cost.ts +4 -4
  93. package/commands/cost/index.ts +2 -2
  94. package/commands/createMovedToPluginCommand.ts +3 -3
  95. package/commands/desktop/desktop.tsx +2 -2
  96. package/commands/desktop/index.ts +1 -1
  97. package/commands/diff/diff.tsx +1 -1
  98. package/commands/diff/index.ts +1 -1
  99. package/commands/doctor/doctor.tsx +2 -2
  100. package/commands/doctor/index.ts +2 -2
  101. package/commands/effort/effort.tsx +6 -6
  102. package/commands/effort/index.ts +2 -2
  103. package/commands/exit/exit.tsx +5 -5
  104. package/commands/exit/index.ts +1 -1
  105. package/commands/export/export.tsx +7 -7
  106. package/commands/export/index.ts +1 -1
  107. package/commands/extra-usage/extra-usage-core.ts +8 -8
  108. package/commands/extra-usage/extra-usage-noninteractive.ts +1 -1
  109. package/commands/extra-usage/extra-usage.tsx +4 -4
  110. package/commands/extra-usage/index.ts +4 -4
  111. package/commands/fast/fast.tsx +12 -12
  112. package/commands/fast/index.ts +3 -3
  113. package/commands/feedback/feedback.tsx +4 -4
  114. package/commands/feedback/index.ts +4 -4
  115. package/commands/files/files.ts +4 -4
  116. package/commands/files/index.ts +1 -1
  117. package/commands/heapdump/heapdump.ts +1 -1
  118. package/commands/heapdump/index.ts +1 -1
  119. package/commands/help/help.tsx +2 -2
  120. package/commands/help/index.ts +1 -1
  121. package/commands/hooks/hooks.tsx +4 -4
  122. package/commands/hooks/index.ts +1 -1
  123. package/commands/ide/ide.tsx +13 -13
  124. package/commands/ide/index.ts +1 -1
  125. package/commands/init-verifiers.ts +2 -2
  126. package/commands/init.ts +3 -3
  127. package/commands/insights.ts +15 -15
  128. package/commands/install-github-app/ApiKeyStep.tsx +4 -4
  129. package/commands/install-github-app/CheckExistingSecretStep.tsx +4 -4
  130. package/commands/install-github-app/CheckGitHubStep.tsx +1 -1
  131. package/commands/install-github-app/ChooseRepoStep.tsx +4 -4
  132. package/commands/install-github-app/CreatingStep.tsx +2 -2
  133. package/commands/install-github-app/ErrorStep.tsx +2 -2
  134. package/commands/install-github-app/ExistingWorkflowStep.tsx +2 -2
  135. package/commands/install-github-app/InstallAppStep.tsx +3 -3
  136. package/commands/install-github-app/OAuthFlowStep.tsx +11 -11
  137. package/commands/install-github-app/SuccessStep.tsx +1 -1
  138. package/commands/install-github-app/WarningsStep.tsx +4 -4
  139. package/commands/install-github-app/index.ts +2 -2
  140. package/commands/install-github-app/install-github-app.tsx +25 -25
  141. package/commands/install-github-app/setupGitHubActions.ts +7 -7
  142. package/commands/install-slack-app/index.ts +1 -1
  143. package/commands/install-slack-app/install-slack-app.ts +4 -4
  144. package/commands/install.tsx +9 -9
  145. package/commands/keybindings/index.ts +2 -2
  146. package/commands/keybindings/keybindings.ts +4 -4
  147. package/commands/login/index.ts +3 -3
  148. package/commands/login/login.tsx +15 -15
  149. package/commands/logout/index.ts +2 -2
  150. package/commands/logout/logout.tsx +13 -13
  151. package/commands/mcp/addCommand.ts +8 -8
  152. package/commands/mcp/index.ts +1 -1
  153. package/commands/mcp/mcp.tsx +6 -6
  154. package/commands/mcp/xaaIdpCommand.ts +4 -4
  155. package/commands/memory/index.ts +1 -1
  156. package/commands/memory/memory.tsx +11 -11
  157. package/commands/mobile/index.ts +1 -1
  158. package/commands/mobile/mobile.tsx +5 -5
  159. package/commands/model/index.ts +3 -3
  160. package/commands/model/model.tsx +14 -14
  161. package/commands/output-style/index.ts +1 -1
  162. package/commands/output-style/output-style.tsx +1 -1
  163. package/commands/passes/index.ts +2 -2
  164. package/commands/passes/passes.tsx +5 -5
  165. package/commands/permissions/index.ts +1 -1
  166. package/commands/permissions/permissions.tsx +3 -3
  167. package/commands/plan/index.ts +1 -1
  168. package/commands/plan/plan.tsx +11 -11
  169. package/commands/plugin/AddMarketplace.tsx +13 -13
  170. package/commands/plugin/BrowseMarketplace.tsx +24 -24
  171. package/commands/plugin/DiscoverPlugins.tsx +27 -27
  172. package/commands/plugin/ManageMarketplaces.tsx +19 -19
  173. package/commands/plugin/ManagePlugins.tsx +46 -46
  174. package/commands/plugin/PluginErrors.tsx +1 -1
  175. package/commands/plugin/PluginOptionsDialog.tsx +6 -6
  176. package/commands/plugin/PluginOptionsFlow.tsx +7 -7
  177. package/commands/plugin/PluginSettings.tsx +25 -25
  178. package/commands/plugin/PluginTrustWarning.tsx +2 -2
  179. package/commands/plugin/UnifiedInstalledCell.tsx +3 -3
  180. package/commands/plugin/ValidatePlugin.tsx +5 -5
  181. package/commands/plugin/index.tsx +1 -1
  182. package/commands/plugin/plugin.tsx +2 -2
  183. package/commands/plugin/pluginDetailsHelpers.tsx +4 -4
  184. package/commands/pr_comments/index.ts +1 -1
  185. package/commands/privacy-settings/index.ts +2 -2
  186. package/commands/privacy-settings/privacy-settings.tsx +4 -4
  187. package/commands/rate-limit-options/index.ts +2 -2
  188. package/commands/rate-limit-options/rate-limit-options.tsx +14 -14
  189. package/commands/release-notes/index.ts +1 -1
  190. package/commands/release-notes/release-notes.ts +2 -2
  191. package/commands/reload-plugins/index.ts +1 -1
  192. package/commands/reload-plugins/reload-plugins.ts +7 -7
  193. package/commands/remote-env/index.ts +3 -3
  194. package/commands/remote-env/remote-env.tsx +2 -2
  195. package/commands/remote-setup/api.ts +4 -4
  196. package/commands/remote-setup/index.ts +3 -3
  197. package/commands/remote-setup/remote-setup.tsx +9 -9
  198. package/commands/rename/generateSessionName.ts +8 -8
  199. package/commands/rename/index.ts +1 -1
  200. package/commands/rename/rename.ts +8 -8
  201. package/commands/resume/index.ts +1 -1
  202. package/commands/resume/resume.tsx +17 -17
  203. package/commands/review/UltrareviewOverageDialog.tsx +3 -3
  204. package/commands/review/reviewRemote.ts +12 -12
  205. package/commands/review/ultrareviewCommand.tsx +4 -4
  206. package/commands/review/ultrareviewEnabled.ts +1 -1
  207. package/commands/review.ts +3 -3
  208. package/commands/rewind/index.ts +1 -1
  209. package/commands/rewind/rewind.ts +2 -2
  210. package/commands/sandbox-toggle/index.ts +2 -2
  211. package/commands/sandbox-toggle/sandbox-toggle.tsx +7 -7
  212. package/commands/security-review.ts +4 -4
  213. package/commands/session/index.ts +2 -2
  214. package/commands/session/session.tsx +6 -6
  215. package/commands/skills/index.ts +1 -1
  216. package/commands/skills/skills.tsx +3 -3
  217. package/commands/stats/index.ts +1 -1
  218. package/commands/stats/stats.tsx +2 -2
  219. package/commands/status/index.ts +1 -1
  220. package/commands/status/status.tsx +3 -3
  221. package/commands/statusline.tsx +2 -2
  222. package/commands/stickers/index.ts +1 -1
  223. package/commands/stickers/stickers.ts +2 -2
  224. package/commands/tag/index.ts +1 -1
  225. package/commands/tag/tag.tsx +10 -10
  226. package/commands/tasks/index.ts +1 -1
  227. package/commands/tasks/tasks.tsx +3 -3
  228. package/commands/terminalSetup/index.ts +2 -2
  229. package/commands/terminalSetup/terminalSetup.tsx +16 -16
  230. package/commands/theme/index.ts +1 -1
  231. package/commands/theme/theme.tsx +5 -5
  232. package/commands/thinkback/index.ts +2 -2
  233. package/commands/thinkback/thinkback.tsx +20 -20
  234. package/commands/thinkback-play/index.ts +2 -2
  235. package/commands/thinkback-play/thinkback-play.ts +4 -4
  236. package/commands/ultraplan.tsx +17 -17
  237. package/commands/upgrade/index.ts +3 -3
  238. package/commands/upgrade/upgrade.tsx +7 -7
  239. package/commands/usage/index.ts +1 -1
  240. package/commands/usage/usage.tsx +2 -2
  241. package/commands/version.ts +1 -1
  242. package/commands/vim/index.ts +1 -1
  243. package/commands/vim/vim.ts +3 -3
  244. package/commands/voice/index.ts +2 -2
  245. package/commands/voice/voice.ts +9 -9
  246. package/commands.ts +105 -105
  247. package/components/AgentProgressLine.tsx +3 -3
  248. package/components/App.tsx +5 -5
  249. package/components/ApproveApiKey.tsx +4 -4
  250. package/components/AutoModeOptInDialog.tsx +5 -5
  251. package/components/AutoUpdater.tsx +11 -11
  252. package/components/AutoUpdaterWrapper.tsx +7 -7
  253. package/components/AwsAuthStatusBox.tsx +2 -2
  254. package/components/BaseTextInput.tsx +7 -7
  255. package/components/BashModeProgress.tsx +5 -5
  256. package/components/BridgeDialog.tsx +10 -10
  257. package/components/BypassPermissionsModeDialog.tsx +6 -6
  258. package/components/ChannelDowngradeDialog.tsx +3 -3
  259. package/components/ClaudeCodeHint/PluginHintMenu.tsx +3 -3
  260. package/components/ClaudeInChromeOnboarding.tsx +5 -5
  261. package/components/ClaudeMdExternalIncludesDialog.tsx +6 -6
  262. package/components/ClickableImageRef.tsx +5 -5
  263. package/components/CompactSummary.tsx +7 -7
  264. package/components/ConfigurableShortcutHint.tsx +3 -3
  265. package/components/ConsoleOAuthFlow.tsx +17 -17
  266. package/components/ContextSuggestions.tsx +4 -4
  267. package/components/ContextVisualization.tsx +9 -9
  268. package/components/CoordinatorAgentStatus.tsx +10 -10
  269. package/components/CostThresholdDialog.tsx +3 -3
  270. package/components/CtrlOToExpand.tsx +5 -5
  271. package/components/CustomSelect/SelectMulti.tsx +7 -7
  272. package/components/CustomSelect/index.ts +3 -3
  273. package/components/CustomSelect/option-map.ts +1 -1
  274. package/components/CustomSelect/select-input-option.tsx +11 -11
  275. package/components/CustomSelect/select-option.tsx +1 -1
  276. package/components/CustomSelect/select.tsx +10 -10
  277. package/components/CustomSelect/use-multi-select-state.ts +6 -6
  278. package/components/CustomSelect/use-select-input.ts +7 -7
  279. package/components/CustomSelect/use-select-navigation.ts +2 -2
  280. package/components/CustomSelect/use-select-state.ts +2 -2
  281. package/components/DesktopHandoff.tsx +8 -8
  282. package/components/DesktopUpsell/DesktopUpsellStartup.tsx +7 -7
  283. package/components/DevBar.tsx +2 -2
  284. package/components/DevChannelsDialog.tsx +5 -5
  285. package/components/DiagnosticsDisplay.tsx +6 -6
  286. package/components/EffortCallout.tsx +11 -11
  287. package/components/EffortIndicator.ts +2 -2
  288. package/components/ExitFlow.tsx +2 -2
  289. package/components/ExportDialog.tsx +13 -13
  290. package/components/FallbackToolUseErrorMessage.tsx +7 -7
  291. package/components/FallbackToolUseRejectedMessage.tsx +2 -2
  292. package/components/FastIcon.tsx +5 -5
  293. package/components/Feedback.tsx +27 -27
  294. package/components/FeedbackSurvey/FeedbackSurvey.tsx +7 -7
  295. package/components/FeedbackSurvey/FeedbackSurveyView.tsx +3 -3
  296. package/components/FeedbackSurvey/TranscriptSharePrompt.tsx +3 -3
  297. package/components/FeedbackSurvey/submitTranscriptShare.ts +9 -9
  298. package/components/FeedbackSurvey/useDebouncedDigitInput.ts +1 -1
  299. package/components/FeedbackSurvey/useFeedbackSurvey.tsx +15 -15
  300. package/components/FeedbackSurvey/useMemorySurvey.tsx +16 -16
  301. package/components/FeedbackSurvey/usePostCompactSurvey.tsx +10 -10
  302. package/components/FeedbackSurvey/useSurveyState.tsx +2 -2
  303. package/components/FileEditToolDiff.tsx +9 -9
  304. package/components/FileEditToolUpdatedMessage.tsx +5 -5
  305. package/components/FileEditToolUseRejectedMessage.tsx +6 -6
  306. package/components/FilePathLink.tsx +1 -1
  307. package/components/FullscreenLayout.tsx +13 -13
  308. package/components/GlobalSearchDialog.tsx +13 -13
  309. package/components/HelpV2/Commands.tsx +5 -5
  310. package/components/HelpV2/General.tsx +2 -2
  311. package/components/HelpV2/HelpV2.tsx +11 -11
  312. package/components/HighlightedCode/Fallback.tsx +5 -5
  313. package/components/HighlightedCode.tsx +7 -7
  314. package/components/HistorySearchDialog.tsx +10 -10
  315. package/components/IdeAutoConnectDialog.tsx +5 -5
  316. package/components/IdeOnboardingDialog.tsx +7 -7
  317. package/components/IdeStatusIndicator.tsx +4 -4
  318. package/components/IdleReturnDialog.tsx +4 -4
  319. package/components/InterruptedByUser.tsx +1 -1
  320. package/components/InvalidConfigDialog.tsx +9 -9
  321. package/components/InvalidSettingsDialog.tsx +5 -5
  322. package/components/KeybindingWarnings.tsx +2 -2
  323. package/components/LanguagePicker.tsx +3 -3
  324. package/components/LogSelector.tsx +28 -28
  325. package/components/LogoV2/AnimatedAsterisk.tsx +4 -4
  326. package/components/LogoV2/AnimatedClawd.tsx +3 -3
  327. package/components/LogoV2/ChannelsNotice.tsx +8 -8
  328. package/components/LogoV2/Clawd.tsx +2 -2
  329. package/components/LogoV2/CondensedLogo.tsx +15 -15
  330. package/components/LogoV2/EmergencyTip.tsx +3 -3
  331. package/components/LogoV2/Feed.tsx +3 -3
  332. package/components/LogoV2/FeedColumn.tsx +4 -4
  333. package/components/LogoV2/GuestPassesUpsell.tsx +4 -4
  334. package/components/LogoV2/LogoV2.tsx +31 -31
  335. package/components/LogoV2/Opus1mMergeNotice.tsx +5 -5
  336. package/components/LogoV2/OverageCreditUpsell.tsx +6 -6
  337. package/components/LogoV2/VoiceModeNotice.tsx +6 -6
  338. package/components/LogoV2/WelcomeV2.tsx +2 -2
  339. package/components/LogoV2/feedConfigs.tsx +7 -7
  340. package/components/LspRecommendation/LspRecommendationMenu.tsx +3 -3
  341. package/components/MCPServerApprovalDialog.tsx +5 -5
  342. package/components/MCPServerDesktopImportDialog.tsx +11 -11
  343. package/components/MCPServerDialogCopy.tsx +1 -1
  344. package/components/MCPServerMultiselectDialog.tsx +9 -9
  345. package/components/ManagedSettingsSecurityDialog/ManagedSettingsSecurityDialog.tsx +7 -7
  346. package/components/ManagedSettingsSecurityDialog/utils.ts +3 -3
  347. package/components/Markdown.tsx +7 -7
  348. package/components/MarkdownTable.tsx +6 -6
  349. package/components/MemoryUsageIndicator.tsx +3 -3
  350. package/components/Message.tsx +29 -29
  351. package/components/MessageModel.tsx +3 -3
  352. package/components/MessageResponse.tsx +2 -2
  353. package/components/MessageRow.tsx +12 -12
  354. package/components/MessageSelector.tsx +20 -20
  355. package/components/MessageTimestamp.tsx +3 -3
  356. package/components/Messages.tsx +39 -39
  357. package/components/ModelPicker.tsx +16 -16
  358. package/components/NativeAutoUpdater.tsx +11 -11
  359. package/components/NotebookEditToolUseRejectedMessage.tsx +4 -4
  360. package/components/OffscreenFreeze.tsx +3 -3
  361. package/components/Onboarding.tsx +19 -19
  362. package/components/OutputStylePicker.tsx +7 -7
  363. package/components/PackageManagerAutoUpdater.tsx +7 -7
  364. package/components/Passes/Passes.tsx +12 -12
  365. package/components/PrBadge.tsx +2 -2
  366. package/components/PressEnterToContinue.tsx +1 -1
  367. package/components/PromptInput/HistorySearchInput.tsx +3 -3
  368. package/components/PromptInput/IssueFlagBanner.tsx +2 -2
  369. package/components/PromptInput/Notifications.tsx +30 -30
  370. package/components/PromptInput/PromptInput.tsx +117 -117
  371. package/components/PromptInput/PromptInputFooter.tsx +22 -22
  372. package/components/PromptInput/PromptInputFooterLeftSide.tsx +33 -33
  373. package/components/PromptInput/PromptInputFooterSuggestions.tsx +5 -5
  374. package/components/PromptInput/PromptInputHelpMenu.tsx +7 -7
  375. package/components/PromptInput/PromptInputModeIndicator.tsx +6 -6
  376. package/components/PromptInput/PromptInputQueuedCommands.tsx +10 -10
  377. package/components/PromptInput/PromptInputStashNotice.tsx +1 -1
  378. package/components/PromptInput/SandboxPromptFooterHint.tsx +3 -3
  379. package/components/PromptInput/ShimmeredInput.tsx +3 -3
  380. package/components/PromptInput/VoiceIndicator.tsx +3 -3
  381. package/components/PromptInput/inputModes.ts +2 -2
  382. package/components/PromptInput/inputPaste.ts +2 -2
  383. package/components/PromptInput/useMaybeTruncateInput.ts +2 -2
  384. package/components/PromptInput/usePromptInputPlaceholder.ts +5 -5
  385. package/components/PromptInput/useSwarmBanner.ts +10 -10
  386. package/components/PromptInput/utils.ts +4 -4
  387. package/components/QuickOpenDialog.tsx +12 -12
  388. package/components/RemoteCallout.tsx +7 -7
  389. package/components/RemoteEnvironmentDialog.tsx +14 -14
  390. package/components/ResumeTask.tsx +14 -14
  391. package/components/SandboxViolationExpandedView.tsx +4 -4
  392. package/components/ScrollKeybindingHandler.tsx +10 -10
  393. package/components/SearchBox.tsx +1 -1
  394. package/components/SessionBackgroundHint.tsx +10 -10
  395. package/components/SessionPreview.tsx +11 -11
  396. package/components/Settings/Config.tsx +43 -43
  397. package/components/Settings/Settings.tsx +10 -10
  398. package/components/Settings/Status.tsx +10 -10
  399. package/components/Settings/Usage.tsx +14 -14
  400. package/components/ShowInIDEPrompt.tsx +6 -6
  401. package/components/SkillImprovementSurvey.tsx +6 -6
  402. package/components/Spinner/FlashingChar.tsx +3 -3
  403. package/components/Spinner/GlimmerMessage.tsx +6 -6
  404. package/components/Spinner/ShimmerChar.tsx +2 -2
  405. package/components/Spinner/SpinnerAnimationRow.tsx +12 -12
  406. package/components/Spinner/SpinnerGlyph.tsx +3 -3
  407. package/components/Spinner/TeammateSpinnerLine.tsx +11 -11
  408. package/components/Spinner/TeammateSpinnerTree.tsx +6 -6
  409. package/components/Spinner/index.ts +8 -8
  410. package/components/Spinner/useShimmerAnimation.ts +3 -3
  411. package/components/Spinner/utils.ts +2 -2
  412. package/components/Spinner.tsx +32 -32
  413. package/components/Stats.tsx +18 -18
  414. package/components/StatusLine.tsx +26 -26
  415. package/components/StatusNotices.tsx +5 -5
  416. package/components/StructuredDiff/Fallback.tsx +3 -3
  417. package/components/StructuredDiff/colorDiff.ts +1 -1
  418. package/components/StructuredDiff.tsx +6 -6
  419. package/components/StructuredDiffList.tsx +3 -3
  420. package/components/TagTabs.tsx +3 -3
  421. package/components/TaskListV2.tsx +13 -13
  422. package/components/TeammateViewHeader.tsx +6 -6
  423. package/components/TeleportError.tsx +7 -7
  424. package/components/TeleportProgress.tsx +4 -4
  425. package/components/TeleportRepoMismatchDialog.tsx +6 -6
  426. package/components/TeleportResumeWrapper.tsx +8 -8
  427. package/components/TeleportStash.tsx +7 -7
  428. package/components/TextInput.tsx +10 -10
  429. package/components/ThemePicker.tsx +16 -16
  430. package/components/ThinkingToggle.tsx +8 -8
  431. package/components/TokenWarning.tsx +7 -7
  432. package/components/ToolUseLoader.tsx +3 -3
  433. package/components/TrustDialog/TrustDialog.tsx +15 -15
  434. package/components/TrustDialog/utils.ts +6 -6
  435. package/components/ValidationErrorsList.tsx +3 -3
  436. package/components/VimTextInput.tsx +6 -6
  437. package/components/VirtualMessageList.tsx +12 -12
  438. package/components/WorkflowMultiselectDialog.tsx +8 -8
  439. package/components/WorktreeExitDialog.tsx +11 -11
  440. package/components/agents/AgentDetail.tsx +11 -11
  441. package/components/agents/AgentEditor.tsx +13 -13
  442. package/components/agents/AgentNavigationFooter.tsx +2 -2
  443. package/components/agents/AgentsList.tsx +10 -10
  444. package/components/agents/AgentsMenu.tsx +20 -20
  445. package/components/agents/ColorPicker.tsx +4 -4
  446. package/components/agents/ModelSelector.tsx +3 -3
  447. package/components/agents/ToolSelector.tsx +27 -27
  448. package/components/agents/agentFileUtils.ts +9 -9
  449. package/components/agents/generateAgent.ts +11 -11
  450. package/components/agents/new-agent-creation/CreateAgentWizard.tsx +17 -17
  451. package/components/agents/new-agent-creation/wizard-steps/ColorStep.tsx +10 -10
  452. package/components/agents/new-agent-creation/wizard-steps/ConfirmStep.tsx +17 -17
  453. package/components/agents/new-agent-creation/wizard-steps/ConfirmStepWrapper.tsx +10 -10
  454. package/components/agents/new-agent-creation/wizard-steps/DescriptionStep.tsx +10 -10
  455. package/components/agents/new-agent-creation/wizard-steps/GenerateStep.tsx +13 -13
  456. package/components/agents/new-agent-creation/wizard-steps/LocationStep.tsx +9 -9
  457. package/components/agents/new-agent-creation/wizard-steps/MemoryStep.tsx +11 -11
  458. package/components/agents/new-agent-creation/wizard-steps/MethodStep.tsx +8 -8
  459. package/components/agents/new-agent-creation/wizard-steps/ModelStep.tsx +7 -7
  460. package/components/agents/new-agent-creation/wizard-steps/PromptStep.tsx +10 -10
  461. package/components/agents/new-agent-creation/wizard-steps/ToolsStep.tsx +8 -8
  462. package/components/agents/new-agent-creation/wizard-steps/TypeStep.tsx +11 -11
  463. package/components/agents/types.ts +2 -2
  464. package/components/agents/utils.ts +2 -2
  465. package/components/agents/validateAgent.ts +4 -4
  466. package/components/design-system/Byline.tsx +1 -1
  467. package/components/design-system/Dialog.tsx +8 -8
  468. package/components/design-system/Divider.tsx +4 -4
  469. package/components/design-system/FuzzyPicker.tsx +10 -10
  470. package/components/design-system/KeyboardShortcutHint.tsx +1 -1
  471. package/components/design-system/ListItem.tsx +2 -2
  472. package/components/design-system/LoadingState.tsx +2 -2
  473. package/components/design-system/Pane.tsx +4 -4
  474. package/components/design-system/ProgressBar.tsx +2 -2
  475. package/components/design-system/Ratchet.tsx +3 -3
  476. package/components/design-system/StatusIcon.tsx +1 -1
  477. package/components/design-system/Tabs.tsx +8 -8
  478. package/components/design-system/ThemeProvider.tsx +4 -4
  479. package/components/design-system/ThemedBox.tsx +8 -8
  480. package/components/design-system/ThemedText.tsx +4 -4
  481. package/components/design-system/color.ts +3 -3
  482. package/components/diff/DiffDetailView.tsx +6 -6
  483. package/components/diff/DiffDialog.tsx +13 -13
  484. package/components/diff/DiffFileList.tsx +5 -5
  485. package/components/grove/Grove.tsx +7 -7
  486. package/components/hooks/HooksConfigMenu.tsx +15 -15
  487. package/components/hooks/PromptDialog.tsx +5 -5
  488. package/components/hooks/SelectEventMode.tsx +6 -6
  489. package/components/hooks/SelectHookMode.tsx +6 -6
  490. package/components/hooks/SelectMatcherMode.tsx +6 -6
  491. package/components/hooks/ViewHookMode.tsx +3 -3
  492. package/components/mcp/CapabilitiesSection.tsx +2 -2
  493. package/components/mcp/ElicitationDialog.tsx +15 -15
  494. package/components/mcp/MCPAgentServerMenu.tsx +12 -12
  495. package/components/mcp/MCPListPanel.tsx +13 -13
  496. package/components/mcp/MCPReconnect.tsx +5 -5
  497. package/components/mcp/MCPRemoteServerMenu.tsx +27 -27
  498. package/components/mcp/MCPSettings.tsx +13 -13
  499. package/components/mcp/MCPStdioServerMenu.tsx +17 -17
  500. package/components/mcp/MCPToolDetailView.tsx +6 -6
  501. package/components/mcp/MCPToolListView.tsx +12 -12
  502. package/components/mcp/McpParsingWarnings.tsx +5 -5
  503. package/components/mcp/index.ts +9 -9
  504. package/components/mcp/utils/reconnectHelpers.tsx +3 -3
  505. package/components/memory/MemoryFileSelector.tsx +19 -19
  506. package/components/memory/MemoryUpdateNotification.tsx +2 -2
  507. package/components/messageActions.tsx +5 -5
  508. package/components/messages/AdvisorMessage.tsx +7 -7
  509. package/components/messages/AssistantRedactedThinkingMessage.tsx +1 -1
  510. package/components/messages/AssistantTextMessage.tsx +15 -15
  511. package/components/messages/AssistantThinkingMessage.tsx +3 -3
  512. package/components/messages/AssistantToolUseMessage.tsx +17 -17
  513. package/components/messages/AttachmentMessage.tsx +24 -24
  514. package/components/messages/CollapsedReadSearchContent.tsx +16 -16
  515. package/components/messages/CompactBoundaryMessage.tsx +2 -2
  516. package/components/messages/GroupedToolUseContent.tsx +3 -3
  517. package/components/messages/HighlightedThinkingText.tsx +5 -5
  518. package/components/messages/HookProgressMessage.tsx +4 -4
  519. package/components/messages/PlanApprovalMessage.tsx +6 -6
  520. package/components/messages/RateLimitMessage.tsx +7 -7
  521. package/components/messages/ShutdownMessage.tsx +2 -2
  522. package/components/messages/SystemAPIErrorMessage.tsx +5 -5
  523. package/components/messages/SystemTextMessage.tsx +18 -18
  524. package/components/messages/TaskAssignmentMessage.tsx +2 -2
  525. package/components/messages/UserAgentNotificationMessage.tsx +3 -3
  526. package/components/messages/UserBashInputMessage.tsx +2 -2
  527. package/components/messages/UserBashOutputMessage.tsx +2 -2
  528. package/components/messages/UserChannelMessage.tsx +4 -4
  529. package/components/messages/UserCommandMessage.tsx +3 -3
  530. package/components/messages/UserImageMessage.tsx +5 -5
  531. package/components/messages/UserLocalCommandOutputMessage.tsx +6 -6
  532. package/components/messages/UserMemoryInputMessage.tsx +3 -3
  533. package/components/messages/UserPlanMessage.tsx +2 -2
  534. package/components/messages/UserPromptMessage.tsx +9 -9
  535. package/components/messages/UserResourceUpdateMessage.tsx +2 -2
  536. package/components/messages/UserTeammateMessage.tsx +9 -9
  537. package/components/messages/UserTextMessage.tsx +20 -20
  538. package/components/messages/UserToolResultMessage/RejectedPlanMessage.tsx +3 -3
  539. package/components/messages/UserToolResultMessage/RejectedToolUseMessage.tsx +2 -2
  540. package/components/messages/UserToolResultMessage/UserToolCanceledMessage.tsx +2 -2
  541. package/components/messages/UserToolResultMessage/UserToolErrorMessage.tsx +10 -10
  542. package/components/messages/UserToolResultMessage/UserToolRejectMessage.tsx +6 -6
  543. package/components/messages/UserToolResultMessage/UserToolResultMessage.tsx +8 -8
  544. package/components/messages/UserToolResultMessage/UserToolSuccessMessage.tsx +9 -9
  545. package/components/messages/UserToolResultMessage/utils.tsx +2 -2
  546. package/components/messages/nullRenderingAttachments.ts +2 -2
  547. package/components/messages/teamMemCollapsed.tsx +2 -2
  548. package/components/messages/teamMemSaved.ts +1 -1
  549. package/components/permissions/AskUserQuestionPermissionRequest/AskUserQuestionPermissionRequest.tsx +22 -22
  550. package/components/permissions/AskUserQuestionPermissionRequest/PreviewBox.tsx +7 -7
  551. package/components/permissions/AskUserQuestionPermissionRequest/PreviewQuestionView.tsx +15 -15
  552. package/components/permissions/AskUserQuestionPermissionRequest/QuestionNavigationBar.tsx +5 -5
  553. package/components/permissions/AskUserQuestionPermissionRequest/QuestionView.tsx +16 -16
  554. package/components/permissions/AskUserQuestionPermissionRequest/SubmitQuestionsView.tsx +8 -8
  555. package/components/permissions/BashPermissionRequest/BashPermissionRequest.tsx +29 -29
  556. package/components/permissions/BashPermissionRequest/bashToolUseOptions.tsx +8 -8
  557. package/components/permissions/ComputerUseApproval/ComputerUseApproval.tsx +6 -6
  558. package/components/permissions/EnterPlanModePermissionRequest/EnterPlanModePermissionRequest.tsx +8 -8
  559. package/components/permissions/ExitPlanModePermissionRequest/ExitPlanModePermissionRequest.tsx +40 -40
  560. package/components/permissions/FallbackPermissionRequest.tsx +12 -12
  561. package/components/permissions/FileEditPermissionRequest/FileEditPermissionRequest.tsx +7 -7
  562. package/components/permissions/FilePermissionDialog/FilePermissionDialog.tsx +17 -17
  563. package/components/permissions/FilePermissionDialog/ideDiffConfig.ts +1 -1
  564. package/components/permissions/FilePermissionDialog/permissionOptions.tsx +7 -7
  565. package/components/permissions/FilePermissionDialog/useFilePermissionDialog.ts +9 -9
  566. package/components/permissions/FilePermissionDialog/usePermissionHandler.ts +10 -10
  567. package/components/permissions/FileWritePermissionRequest/FileWritePermissionRequest.tsx +9 -9
  568. package/components/permissions/FileWritePermissionRequest/FileWriteToolDiff.tsx +6 -6
  569. package/components/permissions/FilesystemPermissionRequest/FilesystemPermissionRequest.tsx +5 -5
  570. package/components/permissions/NotebookEditPermissionRequest/NotebookEditPermissionRequest.tsx +6 -6
  571. package/components/permissions/NotebookEditPermissionRequest/NotebookEditToolDiff.tsx +10 -10
  572. package/components/permissions/PermissionDecisionDebugInfo.tsx +11 -11
  573. package/components/permissions/PermissionDialog.tsx +4 -4
  574. package/components/permissions/PermissionExplanation.tsx +7 -7
  575. package/components/permissions/PermissionPrompt.tsx +6 -6
  576. package/components/permissions/PermissionRequest.tsx +32 -32
  577. package/components/permissions/PermissionRequestTitle.tsx +3 -3
  578. package/components/permissions/PermissionRuleExplanation.tsx +6 -6
  579. package/components/permissions/PowerShellPermissionRequest/PowerShellPermissionRequest.tsx +20 -20
  580. package/components/permissions/PowerShellPermissionRequest/powershellToolUseOptions.tsx +5 -5
  581. package/components/permissions/SandboxPermissionRequest.tsx +5 -5
  582. package/components/permissions/SedEditPermissionRequest/SedEditPermissionRequest.tsx +10 -10
  583. package/components/permissions/SkillPermissionRequest/SkillPermissionRequest.tsx +14 -14
  584. package/components/permissions/WebFetchPermissionRequest/WebFetchPermissionRequest.tsx +9 -9
  585. package/components/permissions/WorkerBadge.tsx +3 -3
  586. package/components/permissions/WorkerPendingPermission.tsx +4 -4
  587. package/components/permissions/hooks.ts +13 -13
  588. package/components/permissions/rules/AddPermissionRules.tsx +14 -14
  589. package/components/permissions/rules/AddWorkspaceDirectory.tsx +13 -13
  590. package/components/permissions/rules/PermissionRuleDescription.tsx +3 -3
  591. package/components/permissions/rules/PermissionRuleInput.tsx +9 -9
  592. package/components/permissions/rules/PermissionRuleList.tsx +27 -27
  593. package/components/permissions/rules/RecentDenialsTab.tsx +5 -5
  594. package/components/permissions/rules/RemoveWorkspaceDirectory.tsx +5 -5
  595. package/components/permissions/rules/WorkspaceTab.tsx +6 -6
  596. package/components/permissions/shellPermissionHelpers.tsx +4 -4
  597. package/components/permissions/useShellPermissionFeedback.ts +5 -5
  598. package/components/permissions/utils.ts +3 -3
  599. package/components/sandbox/SandboxConfigTab.tsx +2 -2
  600. package/components/sandbox/SandboxDependenciesTab.tsx +3 -3
  601. package/components/sandbox/SandboxDoctorSection.tsx +2 -2
  602. package/components/sandbox/SandboxOverridesTab.tsx +5 -5
  603. package/components/sandbox/SandboxSettings.tsx +12 -12
  604. package/components/shell/OutputLine.tsx +8 -8
  605. package/components/shell/ShellProgressMessage.tsx +5 -5
  606. package/components/shell/ShellTimeDisplay.tsx +2 -2
  607. package/components/skills/SkillsMenu.tsx +9 -9
  608. package/components/tasks/AsyncAgentDetailDialog.tsx +16 -16
  609. package/components/tasks/BackgroundTask.tsx +10 -10
  610. package/components/tasks/BackgroundTaskStatus.tsx +13 -13
  611. package/components/tasks/BackgroundTasksDialog.tsx +37 -37
  612. package/components/tasks/DreamDetailDialog.tsx +10 -10
  613. package/components/tasks/InProcessTeammateDetailDialog.tsx +15 -15
  614. package/components/tasks/RemoteSessionDetailDialog.tsx +26 -26
  615. package/components/tasks/RemoteSessionProgress.tsx +7 -7
  616. package/components/tasks/ShellDetailDialog.tsx +13 -13
  617. package/components/tasks/ShellProgress.tsx +4 -4
  618. package/components/tasks/renderToolActivity.tsx +5 -5
  619. package/components/tasks/taskStatusUtils.tsx +6 -6
  620. package/components/teams/TeamStatus.tsx +2 -2
  621. package/components/teams/TeamsDialog.tsx +24 -24
  622. package/components/ui/OrderedList.tsx +2 -2
  623. package/components/ui/OrderedListItem.tsx +1 -1
  624. package/components/ui/TreeSelect.tsx +3 -3
  625. package/components/wizard/WizardDialogLayout.tsx +4 -4
  626. package/components/wizard/WizardNavigationFooter.tsx +5 -5
  627. package/components/wizard/WizardProvider.tsx +2 -2
  628. package/components/wizard/index.ts +5 -5
  629. package/components/wizard/useWizard.ts +2 -2
  630. package/constants/figures.ts +1 -1
  631. package/constants/github-app.ts +1 -1
  632. package/constants/keys.ts +1 -1
  633. package/constants/oauth.ts +1 -1
  634. package/constants/outputStyles.ts +7 -7
  635. package/constants/prompts.ts +42 -42
  636. package/constants/spinnerVerbs.ts +1 -1
  637. package/constants/system.ts +5 -5
  638. package/constants/systemPromptSections.ts +1 -1
  639. package/constants/tools.ts +28 -28
  640. package/context/QueuedMessageContext.tsx +1 -1
  641. package/context/fpsMetrics.tsx +1 -1
  642. package/context/mailbox.tsx +1 -1
  643. package/context/modalContext.tsx +1 -1
  644. package/context/notifications.tsx +2 -2
  645. package/context/overlayContext.tsx +2 -2
  646. package/context/promptOverlayContext.tsx +1 -1
  647. package/context/stats.tsx +1 -1
  648. package/context/voice.tsx +1 -1
  649. package/context.ts +9 -9
  650. package/coordinator/coordinatorMode.ts +13 -13
  651. package/cost-tracker.ts +11 -11
  652. package/costHook.ts +3 -3
  653. package/dialogLaunchers.tsx +10 -10
  654. package/entrypoints/agentSdkTypes.ts +8 -8
  655. package/entrypoints/init.ts +26 -26
  656. package/entrypoints/mcp.ts +18 -18
  657. package/entrypoints/sandboxTypes.ts +1 -1
  658. package/entrypoints/sdk/controlSchemas.ts +2 -2
  659. package/entrypoints/sdk/coreSchemas.ts +1 -1
  660. package/entrypoints/sdk/coreTypes.ts +3 -3
  661. package/entrypoints/sdk/toolTypes.ts +1 -1
  662. package/history.ts +11 -11
  663. package/hooks/fileSuggestions.ts +18 -18
  664. package/hooks/notifs/useAutoModeUnavailableNotification.ts +6 -6
  665. package/hooks/notifs/useCanSwitchToExistingSubscription.tsx +6 -6
  666. package/hooks/notifs/useDeprecationWarningNotification.tsx +3 -3
  667. package/hooks/notifs/useFastModeNotification.tsx +5 -5
  668. package/hooks/notifs/useIDEStatusIndicator.tsx +8 -8
  669. package/hooks/notifs/useInstallMessages.tsx +2 -2
  670. package/hooks/notifs/useLspInitializationNotification.tsx +7 -7
  671. package/hooks/notifs/useMcpConnectivityStatus.tsx +5 -5
  672. package/hooks/notifs/useModelMigrationNotifications.tsx +3 -3
  673. package/hooks/notifs/useNpmDeprecationNotification.tsx +4 -4
  674. package/hooks/notifs/usePluginAutoupdateNotification.tsx +5 -5
  675. package/hooks/notifs/usePluginInstallationStatus.tsx +6 -6
  676. package/hooks/notifs/useRateLimitWarningNotification.tsx +7 -7
  677. package/hooks/notifs/useSettingsErrors.tsx +5 -5
  678. package/hooks/notifs/useStartupNotification.ts +3 -3
  679. package/hooks/notifs/useTeammateShutdownNotification.ts +4 -4
  680. package/hooks/toolPermission/PermissionContext.ts +16 -16
  681. package/hooks/toolPermission/handlers/coordinatorHandler.ts +5 -5
  682. package/hooks/toolPermission/handlers/interactiveHandler.ts +16 -16
  683. package/hooks/toolPermission/handlers/swarmWorkerHandler.ts +10 -10
  684. package/hooks/toolPermission/permissionLogging.ts +8 -8
  685. package/hooks/unifiedSuggestions.ts +9 -9
  686. package/hooks/useAfterFirstRender.ts +1 -1
  687. package/hooks/useApiKeyVerification.ts +3 -3
  688. package/hooks/useArrowKeyHistory.tsx +8 -8
  689. package/hooks/useAssistantHistory.ts +6 -6
  690. package/hooks/useAwaySummary.ts +5 -5
  691. package/hooks/useBackgroundTaskNavigation.ts +7 -7
  692. package/hooks/useBlink.ts +1 -1
  693. package/hooks/useCanUseTool.tsx +21 -21
  694. package/hooks/useCancelRequest.ts +17 -17
  695. package/hooks/useChromeExtensionNotification.tsx +5 -5
  696. package/hooks/useClaudeCodeHintRecommendation.tsx +7 -7
  697. package/hooks/useClipboardImageHint.ts +3 -3
  698. package/hooks/useCommandKeybindings.tsx +4 -4
  699. package/hooks/useCommandQueue.ts +2 -2
  700. package/hooks/useCopyOnSelect.ts +4 -4
  701. package/hooks/useDeferredHookMessages.ts +1 -1
  702. package/hooks/useDiffData.ts +1 -1
  703. package/hooks/useDiffInIDE.ts +15 -15
  704. package/hooks/useDirectConnect.ts +12 -12
  705. package/hooks/useDynamicConfig.ts +1 -1
  706. package/hooks/useElapsedTime.ts +1 -1
  707. package/hooks/useExitOnCtrlCD.ts +3 -3
  708. package/hooks/useExitOnCtrlCDWithKeybindings.ts +2 -2
  709. package/hooks/useFileHistorySnapshotInit.ts +1 -1
  710. package/hooks/useGlobalKeybindings.tsx +8 -8
  711. package/hooks/useHistorySearch.ts +7 -7
  712. package/hooks/useIDEIntegration.tsx +5 -5
  713. package/hooks/useIdeAtMentioned.ts +4 -4
  714. package/hooks/useIdeConnectionStatus.ts +1 -1
  715. package/hooks/useIdeLogging.ts +4 -4
  716. package/hooks/useIdeSelection.ts +4 -4
  717. package/hooks/useInboxPoller.ts +27 -27
  718. package/hooks/useInputBuffer.ts +1 -1
  719. package/hooks/useIssueFlagBanner.ts +3 -3
  720. package/hooks/useLogMessages.ts +4 -4
  721. package/hooks/useLspPluginRecommendation.tsx +10 -10
  722. package/hooks/useMailboxBridge.ts +1 -1
  723. package/hooks/useMainLoopModel.ts +3 -3
  724. package/hooks/useManagePlugins.ts +19 -19
  725. package/hooks/useMergedClients.ts +1 -1
  726. package/hooks/useMergedCommands.ts +1 -1
  727. package/hooks/useMergedTools.ts +4 -4
  728. package/hooks/useNotifyAfterTimeout.ts +3 -3
  729. package/hooks/useOfficialMarketplaceNotification.tsx +5 -5
  730. package/hooks/usePasteHandler.ts +5 -5
  731. package/hooks/usePluginRecommendationBase.tsx +5 -5
  732. package/hooks/usePrStatus.ts +2 -2
  733. package/hooks/usePromptSuggestion.ts +4 -4
  734. package/hooks/usePromptsFromClaudeInChrome.tsx +7 -7
  735. package/hooks/useQueueProcessor.ts +4 -4
  736. package/hooks/useRemoteSession.ts +18 -18
  737. package/hooks/useReplBridge.tsx +24 -24
  738. package/hooks/useSSHSession.ts +12 -12
  739. package/hooks/useScheduledTasks.ts +12 -12
  740. package/hooks/useSearchInput.ts +4 -4
  741. package/hooks/useSessionBackgrounding.ts +2 -2
  742. package/hooks/useSettings.ts +1 -1
  743. package/hooks/useSettingsChange.ts +4 -4
  744. package/hooks/useSkillImprovementSurvey.ts +7 -7
  745. package/hooks/useSkillsChange.ts +5 -5
  746. package/hooks/useSwarmInitialization.ts +8 -8
  747. package/hooks/useSwarmPermissionPoller.ts +5 -5
  748. package/hooks/useTaskListWatcher.ts +2 -2
  749. package/hooks/useTasksV2.ts +5 -5
  750. package/hooks/useTeammateViewAutoExit.ts +3 -3
  751. package/hooks/useTeleportResume.tsx +6 -6
  752. package/hooks/useTerminalSize.ts +1 -1
  753. package/hooks/useTextInput.ts +12 -12
  754. package/hooks/useTurnDiffs.ts +3 -3
  755. package/hooks/useTypeahead.tsx +27 -27
  756. package/hooks/useVimInput.ts +8 -8
  757. package/hooks/useVirtualScroll.ts +2 -2
  758. package/hooks/useVoice.ts +11 -11
  759. package/hooks/useVoiceEnabled.ts +2 -2
  760. package/hooks/useVoiceIntegration.tsx +10 -10
  761. package/ink/Ansi.tsx +4 -4
  762. package/ink/clearTerminal.ts +1 -1
  763. package/ink/colorize.ts +1 -1
  764. package/ink/components/AlternateScreen.tsx +5 -5
  765. package/ink/components/App.tsx +24 -24
  766. package/ink/components/Box.tsx +6 -6
  767. package/ink/components/Button.tsx +6 -6
  768. package/ink/components/ClockContext.tsx +2 -2
  769. package/ink/components/CursorDeclarationContext.ts +1 -1
  770. package/ink/components/ErrorOverview.tsx +2 -2
  771. package/ink/components/Link.tsx +2 -2
  772. package/ink/components/NoSelect.tsx +1 -1
  773. package/ink/components/ScrollBox.tsx +6 -6
  774. package/ink/components/Spacer.tsx +1 -1
  775. package/ink/components/StdinContext.ts +2 -2
  776. package/ink/components/TerminalFocusContext.tsx +1 -1
  777. package/ink/components/Text.tsx +1 -1
  778. package/ink/dom.ts +10 -10
  779. package/ink/events/click-event.ts +1 -1
  780. package/ink/events/dispatcher.ts +3 -3
  781. package/ink/events/emitter.ts +1 -1
  782. package/ink/events/event-handlers.ts +5 -5
  783. package/ink/events/focus-event.ts +1 -1
  784. package/ink/events/input-event.ts +2 -2
  785. package/ink/events/keyboard-event.ts +2 -2
  786. package/ink/events/terminal-event.ts +1 -1
  787. package/ink/events/terminal-focus-event.ts +1 -1
  788. package/ink/focus.ts +2 -2
  789. package/ink/frame.ts +4 -4
  790. package/ink/get-max-width.ts +1 -1
  791. package/ink/hit-test.ts +4 -4
  792. package/ink/hooks/use-animation-frame.ts +3 -3
  793. package/ink/hooks/use-app.ts +1 -1
  794. package/ink/hooks/use-declared-cursor.ts +2 -2
  795. package/ink/hooks/use-input.ts +2 -2
  796. package/ink/hooks/use-interval.ts +1 -1
  797. package/ink/hooks/use-search-highlight.ts +4 -4
  798. package/ink/hooks/use-selection.ts +3 -3
  799. package/ink/hooks/use-stdin.ts +1 -1
  800. package/ink/hooks/use-tab-status.ts +3 -3
  801. package/ink/hooks/use-terminal-focus.ts +1 -1
  802. package/ink/hooks/use-terminal-title.ts +2 -2
  803. package/ink/hooks/use-terminal-viewport.ts +2 -2
  804. package/ink/ink.tsx +32 -32
  805. package/ink/instances.ts +1 -1
  806. package/ink/layout/engine.ts +2 -2
  807. package/ink/layout/yoga.ts +2 -2
  808. package/ink/line-width-cache.ts +1 -1
  809. package/ink/log-update.ts +6 -6
  810. package/ink/measure-element.ts +1 -1
  811. package/ink/measure-text.ts +1 -1
  812. package/ink/node-cache.ts +2 -2
  813. package/ink/optimizer.ts +1 -1
  814. package/ink/output.ts +8 -8
  815. package/ink/parse-keypress.ts +2 -2
  816. package/ink/reconciler.ts +8 -8
  817. package/ink/render-border.ts +5 -5
  818. package/ink/render-node-to-output.ts +14 -14
  819. package/ink/render-to-screen.ts +8 -8
  820. package/ink/renderer.ts +7 -7
  821. package/ink/root.ts +4 -4
  822. package/ink/screen.ts +3 -3
  823. package/ink/searchHighlight.ts +1 -1
  824. package/ink/selection.ts +3 -3
  825. package/ink/squash-text-nodes.ts +2 -2
  826. package/ink/stringWidth.ts +1 -1
  827. package/ink/styles.ts +2 -2
  828. package/ink/tabstops.ts +2 -2
  829. package/ink/terminal-querier.ts +3 -3
  830. package/ink/terminal.ts +7 -7
  831. package/ink/termio/csi.ts +1 -1
  832. package/ink/termio/dec.ts +1 -1
  833. package/ink/termio/esc.ts +1 -1
  834. package/ink/termio/osc.ts +4 -4
  835. package/ink/termio/parser.ts +10 -10
  836. package/ink/termio/sgr.ts +2 -2
  837. package/ink/termio/tokenize.ts +2 -2
  838. package/ink/termio.ts +4 -4
  839. package/ink/useTerminalNotification.ts +3 -3
  840. package/ink/warn.ts +1 -1
  841. package/ink/widest-line.ts +1 -1
  842. package/ink/wrap-text.ts +4 -4
  843. package/ink.ts +47 -47
  844. package/interactiveHelpers.tsx +28 -28
  845. package/main.tsx +155 -155
  846. package/memdir/findRelevantMemories.ts +6 -6
  847. package/memdir/memdir.ts +14 -14
  848. package/memdir/memoryScan.ts +3 -3
  849. package/memdir/paths.ts +6 -6
  850. package/memdir/teamMemPaths.ts +3 -3
  851. package/memdir/teamMemPrompts.ts +4 -4
  852. package/migrations/migrateAutoUpdatesToSettings.ts +4 -4
  853. package/migrations/migrateBypassPermissionsAcceptedToSettings.ts +4 -4
  854. package/migrations/migrateEnableAllProjectMcpServersToSettings.ts +4 -4
  855. package/migrations/migrateFennecToOpus.ts +1 -1
  856. package/migrations/migrateLegacyOpusToCurrent.ts +5 -5
  857. package/migrations/migrateOpusToOpus1m.ts +3 -3
  858. package/migrations/migrateReplBridgeEnabledToRemoteControlAtStartup.ts +1 -1
  859. package/migrations/migrateSonnet1mToSonnet45.ts +3 -3
  860. package/migrations/migrateSonnet45ToSonnet46.ts +5 -5
  861. package/migrations/resetAutoModeOptInForDefaultOffer.ts +5 -5
  862. package/migrations/resetProToOpusDefault.ts +5 -5
  863. package/native-ts/color-diff/index.ts +3 -3
  864. package/native-ts/yoga-layout/index.ts +1 -1
  865. package/outputStyles/loadOutputStylesDir.ts +6 -6
  866. package/package.json +3 -4
  867. package/plugins/builtinPlugins.ts +4 -4
  868. package/plugins/bundled/index.ts +1 -1
  869. package/projectOnboardingState.ts +4 -4
  870. package/query/config.ts +4 -4
  871. package/query/deps.ts +3 -3
  872. package/query/stopHooks.ts +20 -20
  873. package/query/tokenBudget.ts +1 -1
  874. package/query.ts +41 -41
  875. package/replLauncher.tsx +5 -5
  876. package/schemas/hooks.ts +3 -3
  877. package/screens/Doctor.tsx +27 -27
  878. package/screens/REPL.tsx +233 -233
  879. package/screens/ResumeConversation.tsx +31 -31
  880. package/server/createDirectConnectSession.ts +4 -4
  881. package/server/directConnectManager.ts +6 -6
  882. package/server/types.ts +1 -1
  883. package/services/AgentSummary/agentSummary.ts +9 -9
  884. package/services/MagicDocs/magicDocs.ts +11 -11
  885. package/services/MagicDocs/prompts.ts +2 -2
  886. package/services/PromptSuggestion/promptSuggestion.ts +17 -17
  887. package/services/PromptSuggestion/speculation.ts +25 -25
  888. package/services/SessionMemory/prompts.ts +4 -4
  889. package/services/SessionMemory/sessionMemory.ts +23 -23
  890. package/services/SessionMemory/sessionMemoryUtils.ts +5 -5
  891. package/services/analytics/config.ts +2 -2
  892. package/services/analytics/datadog.ts +7 -7
  893. package/services/analytics/firstPartyEventLogger.ts +13 -13
  894. package/services/analytics/firstPartyEventLoggingExporter.ts +18 -18
  895. package/services/analytics/growthbook.ts +11 -11
  896. package/services/analytics/metadata.ts +16 -16
  897. package/services/analytics/sink.ts +5 -5
  898. package/services/analytics/sinkKillswitch.ts +1 -1
  899. package/services/api/adminRequests.ts +2 -2
  900. package/services/api/bootstrap.ts +10 -10
  901. package/services/api/claude.ts +70 -70
  902. package/services/api/client.ts +9 -9
  903. package/services/api/dumpPrompts.ts +3 -3
  904. package/services/api/emptyUsage.ts +1 -1
  905. package/services/api/errors.ts +18 -18
  906. package/services/api/filesApi.ts +7 -7
  907. package/services/api/firstTokenDate.ts +5 -5
  908. package/services/api/grove.ts +11 -11
  909. package/services/api/logging.ts +19 -19
  910. package/services/api/metricsOptOut.ts +9 -9
  911. package/services/api/overageCreditGrant.ts +6 -6
  912. package/services/api/promptCacheBreakDetection.ts +9 -9
  913. package/services/api/referral.ts +8 -8
  914. package/services/api/sessionIngress.ts +11 -11
  915. package/services/api/ultrareviewQuota.ts +4 -4
  916. package/services/api/usage.ts +5 -5
  917. package/services/api/withRetry.ts +20 -20
  918. package/services/autoDream/autoDream.ts +18 -18
  919. package/services/autoDream/config.ts +2 -2
  920. package/services/autoDream/consolidationLock.ts +6 -6
  921. package/services/autoDream/consolidationPrompt.ts +1 -1
  922. package/services/awaySummary.ts +8 -8
  923. package/services/claudeAiLimits.ts +13 -13
  924. package/services/claudeAiLimitsHook.ts +1 -1
  925. package/services/compact/apiMicrocompact.ts +10 -10
  926. package/services/compact/autoCompact.ts +20 -20
  927. package/services/compact/compact.ts +44 -44
  928. package/services/compact/compactWarningHook.ts +1 -1
  929. package/services/compact/compactWarningState.ts +1 -1
  930. package/services/compact/grouping.ts +1 -1
  931. package/services/compact/microCompact.ts +19 -19
  932. package/services/compact/postCompactCleanup.ts +9 -9
  933. package/services/compact/prompt.ts +1 -1
  934. package/services/compact/sessionMemoryCompact.ts +19 -19
  935. package/services/compact/timeBasedMCConfig.ts +1 -1
  936. package/services/diagnosticTracking.ts +7 -7
  937. package/services/extractMemories/extractMemories.ts +24 -24
  938. package/services/extractMemories/prompts.ts +7 -7
  939. package/services/internalLogging.ts +3 -3
  940. package/services/lsp/LSPClient.ts +5 -5
  941. package/services/lsp/LSPDiagnosticRegistry.ts +5 -5
  942. package/services/lsp/LSPServerInstance.ts +7 -7
  943. package/services/lsp/LSPServerManager.ts +6 -6
  944. package/services/lsp/config.ts +7 -7
  945. package/services/lsp/manager.ts +6 -6
  946. package/services/lsp/passiveFeedback.ts +7 -7
  947. package/services/mcp/InProcessTransport.ts +2 -2
  948. package/services/mcp/MCPConnectionManager.tsx +4 -4
  949. package/services/mcp/SdkControlTransport.ts +2 -2
  950. package/services/mcp/auth.ts +23 -23
  951. package/services/mcp/channelAllowlist.ts +3 -3
  952. package/services/mcp/channelNotification.ts +9 -9
  953. package/services/mcp/channelPermissions.ts +2 -2
  954. package/services/mcp/claudeai.ts +9 -9
  955. package/services/mcp/client.ts +57 -57
  956. package/services/mcp/config.ts +25 -25
  957. package/services/mcp/elicitationHandler.ts +7 -7
  958. package/services/mcp/headersHelper.ts +9 -9
  959. package/services/mcp/mcpStringUtils.ts +1 -1
  960. package/services/mcp/oauthPort.ts +1 -1
  961. package/services/mcp/officialRegistry.ts +2 -2
  962. package/services/mcp/types.ts +3 -3
  963. package/services/mcp/useManageMCPConnections.ts +23 -23
  964. package/services/mcp/utils.ts +14 -14
  965. package/services/mcp/vscodeSdkMcp.ts +5 -5
  966. package/services/mcp/xaa.ts +5 -5
  967. package/services/mcp/xaaIdpLogin.ts +11 -11
  968. package/services/mcpServerApproval.tsx +7 -7
  969. package/services/mockRateLimits.ts +3 -3
  970. package/services/notifier.ts +7 -7
  971. package/services/oauth/auth-code-listener.ts +4 -4
  972. package/services/oauth/client.ts +8 -8
  973. package/services/oauth/getOauthProfile.ts +5 -5
  974. package/services/oauth/index.ts +6 -6
  975. package/services/plugins/PluginInstallationManager.ts +9 -9
  976. package/services/plugins/pluginCliCommands.ts +10 -10
  977. package/services/plugins/pluginOperations.ts +21 -21
  978. package/services/policyLimits/index.ts +14 -14
  979. package/services/policyLimits/types.ts +1 -1
  980. package/services/preventSleep.ts +2 -2
  981. package/services/rateLimitMessages.ts +4 -4
  982. package/services/rateLimitMocking.ts +1 -1
  983. package/services/remoteManagedSettings/index.ts +14 -14
  984. package/services/remoteManagedSettings/securityCheck.tsx +10 -10
  985. package/services/remoteManagedSettings/syncCache.ts +4 -4
  986. package/services/remoteManagedSettings/syncCacheState.ts +6 -6
  987. package/services/remoteManagedSettings/types.ts +2 -2
  988. package/services/settingsSync/index.ts +18 -18
  989. package/services/settingsSync/types.ts +1 -1
  990. package/services/teamMemorySync/index.ts +16 -16
  991. package/services/teamMemorySync/secretScanner.ts +1 -1
  992. package/services/teamMemorySync/types.ts +1 -1
  993. package/services/teamMemorySync/watcher.ts +8 -8
  994. package/services/tips/tipHistory.ts +1 -1
  995. package/services/tips/tipRegistry.ts +28 -28
  996. package/services/tips/tipScheduler.ts +5 -5
  997. package/services/tokenEstimation.ts +14 -14
  998. package/services/toolUseSummary/toolUseSummaryGenerator.ts +6 -6
  999. package/services/tools/StreamingToolExecutor.ts +7 -7
  1000. package/services/tools/toolExecution.ts +41 -41
  1001. package/services/tools/toolHooks.ts +16 -16
  1002. package/services/tools/toolOrchestration.ts +5 -5
  1003. package/services/vcr.ts +9 -9
  1004. package/services/voice.ts +4 -4
  1005. package/services/voiceKeyterms.ts +2 -2
  1006. package/services/voiceStreamSTT.ts +9 -9
  1007. package/setup.ts +32 -32
  1008. package/skills/bundled/batch.ts +7 -7
  1009. package/skills/bundled/claudeApi.ts +2 -2
  1010. package/skills/bundled/claudeApiContent.ts +1 -28
  1011. package/skills/bundled/claudeInChrome.ts +3 -3
  1012. package/skills/bundled/debug.ts +6 -6
  1013. package/skills/bundled/index.ts +12 -12
  1014. package/skills/bundled/keybindings.ts +7 -7
  1015. package/skills/bundled/loop.ts +2 -2
  1016. package/skills/bundled/loremIpsum.ts +1 -1
  1017. package/skills/bundled/remember.ts +2 -2
  1018. package/skills/bundled/scheduleRemoteAgents.ts +14 -14
  1019. package/skills/bundled/simplify.ts +2 -2
  1020. package/skills/bundled/skillify.ts +4 -4
  1021. package/skills/bundled/stuck.ts +1 -1
  1022. package/skills/bundled/updateConfig.ts +3 -3
  1023. package/skills/bundled/verify.ts +3 -3
  1024. package/skills/bundled/verifyContent.ts +1 -5
  1025. package/skills/bundledSkills.ts +5 -5
  1026. package/skills/loadSkillsDir.ts +23 -23
  1027. package/skills/mcpSkillBuilders.ts +1 -1
  1028. package/state/AppState.tsx +9 -9
  1029. package/state/AppStateStore.ts +29 -29
  1030. package/state/onChangeAppState.ts +10 -10
  1031. package/state/selectors.ts +4 -4
  1032. package/state/teammateViewHelpers.ts +4 -4
  1033. package/tasks/DreamTask/DreamTask.ts +4 -4
  1034. package/tasks/InProcessTeammateTask/InProcessTeammateTask.tsx +8 -8
  1035. package/tasks/InProcessTeammateTask/types.ts +6 -6
  1036. package/tasks/LocalAgentTask/LocalAgentTask.tsx +22 -22
  1037. package/tasks/LocalMainSessionTask.ts +19 -19
  1038. package/tasks/LocalShellTask/LocalShellTask.tsx +18 -18
  1039. package/tasks/LocalShellTask/guards.ts +3 -3
  1040. package/tasks/LocalShellTask/killShellTasks.ts +8 -8
  1041. package/tasks/RemoteAgentTask/RemoteAgentTask.tsx +20 -20
  1042. package/tasks/pillLabel.ts +3 -3
  1043. package/tasks/stopTask.ts +5 -5
  1044. package/tasks/types.ts +7 -7
  1045. package/tasks.ts +5 -5
  1046. package/tools/AgentTool/AgentTool.tsx +54 -54
  1047. package/tools/AgentTool/UI.tsx +28 -28
  1048. package/tools/AgentTool/agentColorManager.ts +2 -2
  1049. package/tools/AgentTool/agentDisplay.ts +3 -3
  1050. package/tools/AgentTool/agentMemory.ts +6 -6
  1051. package/tools/AgentTool/agentMemorySnapshot.ts +5 -5
  1052. package/tools/AgentTool/agentToolUtils.ts +27 -27
  1053. package/tools/AgentTool/built-in/claudeCodeGuideAgent.ts +12 -12
  1054. package/tools/AgentTool/built-in/exploreAgent.ts +11 -11
  1055. package/tools/AgentTool/built-in/generalPurposeAgent.ts +1 -1
  1056. package/tools/AgentTool/built-in/planAgent.ts +12 -12
  1057. package/tools/AgentTool/built-in/statuslineSetup.ts +1 -1
  1058. package/tools/AgentTool/built-in/verificationAgent.ts +8 -8
  1059. package/tools/AgentTool/builtInAgents.ts +10 -10
  1060. package/tools/AgentTool/forkSubagent.ts +7 -7
  1061. package/tools/AgentTool/loadAgentsDir.ts +23 -23
  1062. package/tools/AgentTool/prompt.ts +13 -13
  1063. package/tools/AgentTool/resumeAgent.ts +26 -26
  1064. package/tools/AgentTool/runAgent.ts +38 -38
  1065. package/tools/AskUserQuestionTool/AskUserQuestionTool.tsx +9 -9
  1066. package/tools/AskUserQuestionTool/prompt.ts +1 -1
  1067. package/tools/BashTool/BashTool.tsx +48 -48
  1068. package/tools/BashTool/BashToolResultMessage.tsx +7 -7
  1069. package/tools/BashTool/UI.tsx +20 -20
  1070. package/tools/BashTool/bashCommandHelpers.ts +8 -8
  1071. package/tools/BashTool/bashPermissions.ts +33 -33
  1072. package/tools/BashTool/bashSecurity.ts +6 -6
  1073. package/tools/BashTool/commandSemantics.ts +1 -1
  1074. package/tools/BashTool/modeValidation.ts +4 -4
  1075. package/tools/BashTool/pathValidation.ts +13 -13
  1076. package/tools/BashTool/prompt.ts +18 -18
  1077. package/tools/BashTool/readOnlyValidation.ts +14 -14
  1078. package/tools/BashTool/sedEditParser.ts +1 -1
  1079. package/tools/BashTool/sedValidation.ts +4 -4
  1080. package/tools/BashTool/shouldUseSandbox.ts +5 -5
  1081. package/tools/BashTool/utils.ts +10 -10
  1082. package/tools/BriefTool/BriefTool.ts +11 -11
  1083. package/tools/BriefTool/UI.tsx +8 -8
  1084. package/tools/BriefTool/attachments.ts +6 -6
  1085. package/tools/BriefTool/upload.ts +5 -5
  1086. package/tools/ConfigTool/ConfigTool.ts +12 -12
  1087. package/tools/ConfigTool/UI.tsx +4 -4
  1088. package/tools/ConfigTool/prompt.ts +3 -3
  1089. package/tools/ConfigTool/supportedSettings.ts +5 -5
  1090. package/tools/EnterPlanModeTool/EnterPlanModeTool.ts +10 -10
  1091. package/tools/EnterPlanModeTool/UI.tsx +7 -7
  1092. package/tools/EnterPlanModeTool/prompt.ts +2 -2
  1093. package/tools/EnterWorktreeTool/EnterWorktreeTool.ts +16 -16
  1094. package/tools/EnterWorktreeTool/UI.tsx +5 -5
  1095. package/tools/ExitPlanModeTool/ExitPlanModeV2Tool.ts +19 -19
  1096. package/tools/ExitPlanModeTool/UI.tsx +12 -12
  1097. package/tools/ExitWorktreeTool/ExitWorktreeTool.ts +17 -17
  1098. package/tools/ExitWorktreeTool/UI.tsx +5 -5
  1099. package/tools/FileEditTool/FileEditTool.ts +34 -34
  1100. package/tools/FileEditTool/UI.tsx +18 -18
  1101. package/tools/FileEditTool/prompt.ts +2 -2
  1102. package/tools/FileEditTool/types.ts +2 -2
  1103. package/tools/FileEditTool/utils.ts +7 -7
  1104. package/tools/FileReadTool/FileReadTool.ts +37 -37
  1105. package/tools/FileReadTool/UI.tsx +10 -10
  1106. package/tools/FileReadTool/imageProcessor.ts +1 -1
  1107. package/tools/FileReadTool/limits.ts +2 -2
  1108. package/tools/FileReadTool/prompt.ts +2 -2
  1109. package/tools/FileWriteTool/FileWriteTool.ts +31 -31
  1110. package/tools/FileWriteTool/UI.tsx +19 -19
  1111. package/tools/FileWriteTool/prompt.ts +1 -1
  1112. package/tools/GlobTool/GlobTool.ts +14 -14
  1113. package/tools/GlobTool/UI.tsx +8 -8
  1114. package/tools/GlobTool/prompt.ts +1 -1
  1115. package/tools/GrepTool/GrepTool.ts +19 -19
  1116. package/tools/GrepTool/UI.tsx +10 -10
  1117. package/tools/GrepTool/prompt.ts +3 -3
  1118. package/tools/LSPTool/LSPTool.ts +18 -18
  1119. package/tools/LSPTool/UI.tsx +8 -8
  1120. package/tools/LSPTool/formatters.ts +3 -3
  1121. package/tools/LSPTool/schemas.ts +1 -1
  1122. package/tools/LSPTool/symbolContext.ts +4 -4
  1123. package/tools/ListMcpResourcesTool/ListMcpResourcesTool.ts +9 -9
  1124. package/tools/ListMcpResourcesTool/UI.tsx +7 -7
  1125. package/tools/MCPTool/MCPTool.ts +7 -7
  1126. package/tools/MCPTool/UI.tsx +13 -13
  1127. package/tools/McpAuthTool/McpAuthTool.ts +9 -9
  1128. package/tools/NotebookEditTool/NotebookEditTool.ts +16 -16
  1129. package/tools/NotebookEditTool/UI.tsx +12 -12
  1130. package/tools/PowerShellTool/PowerShellTool.tsx +42 -42
  1131. package/tools/PowerShellTool/UI.tsx +12 -12
  1132. package/tools/PowerShellTool/gitSafety.ts +2 -2
  1133. package/tools/PowerShellTool/modeValidation.ts +5 -5
  1134. package/tools/PowerShellTool/pathValidation.ts +15 -15
  1135. package/tools/PowerShellTool/powershellPermissions.ts +16 -16
  1136. package/tools/PowerShellTool/powershellSecurity.ts +4 -4
  1137. package/tools/PowerShellTool/prompt.ts +10 -10
  1138. package/tools/PowerShellTool/readOnlyValidation.ts +6 -6
  1139. package/tools/REPLTool/constants.ts +9 -9
  1140. package/tools/REPLTool/primitiveTools.ts +9 -9
  1141. package/tools/ReadMcpResourceTool/ReadMcpResourceTool.ts +9 -9
  1142. package/tools/ReadMcpResourceTool/UI.tsx +7 -7
  1143. package/tools/RemoteTriggerTool/RemoteTriggerTool.ts +11 -11
  1144. package/tools/RemoteTriggerTool/UI.tsx +4 -4
  1145. package/tools/ScheduleCronTool/CronCreateTool.ts +10 -10
  1146. package/tools/ScheduleCronTool/CronDeleteTool.ts +7 -7
  1147. package/tools/ScheduleCronTool/CronListTool.ts +8 -8
  1148. package/tools/ScheduleCronTool/UI.tsx +6 -6
  1149. package/tools/ScheduleCronTool/prompt.ts +3 -3
  1150. package/tools/SendMessageTool/SendMessageTool.ts +27 -27
  1151. package/tools/SendMessageTool/UI.tsx +4 -4
  1152. package/tools/SkillTool/SkillTool.ts +32 -32
  1153. package/tools/SkillTool/UI.tsx +13 -13
  1154. package/tools/SkillTool/prompt.ts +10 -10
  1155. package/tools/SleepTool/prompt.ts +1 -1
  1156. package/tools/SyntheticOutputTool/SyntheticOutputTool.ts +6 -6
  1157. package/tools/TaskCreateTool/TaskCreateTool.ts +7 -7
  1158. package/tools/TaskCreateTool/prompt.ts +1 -1
  1159. package/tools/TaskGetTool/TaskGetTool.ts +5 -5
  1160. package/tools/TaskListTool/TaskListTool.ts +5 -5
  1161. package/tools/TaskListTool/prompt.ts +1 -1
  1162. package/tools/TaskOutputTool/TaskOutputTool.tsx +27 -27
  1163. package/tools/TaskStopTool/TaskStopTool.ts +7 -7
  1164. package/tools/TaskStopTool/UI.tsx +5 -5
  1165. package/tools/TaskUpdateTool/TaskUpdateTool.ts +11 -11
  1166. package/tools/TeamCreateTool/TeamCreateTool.ts +21 -21
  1167. package/tools/TeamCreateTool/UI.tsx +1 -1
  1168. package/tools/TeamDeleteTool/TeamDeleteTool.ts +14 -14
  1169. package/tools/TeamDeleteTool/UI.tsx +2 -2
  1170. package/tools/TodoWriteTool/TodoWriteTool.ts +9 -9
  1171. package/tools/TodoWriteTool/prompt.ts +1 -1
  1172. package/tools/ToolSearchTool/ToolSearchTool.ts +7 -7
  1173. package/tools/ToolSearchTool/prompt.ts +6 -6
  1174. package/tools/WebFetchTool/UI.tsx +7 -7
  1175. package/tools/WebFetchTool/WebFetchTool.ts +10 -10
  1176. package/tools/WebFetchTool/utils.ts +10 -10
  1177. package/tools/WebSearchTool/UI.tsx +6 -6
  1178. package/tools/WebSearchTool/WebSearchTool.ts +15 -15
  1179. package/tools/WebSearchTool/prompt.ts +1 -1
  1180. package/tools/shared/gitOperationTracking.ts +2 -2
  1181. package/tools/shared/spawnMultiAgent.ts +32 -32
  1182. package/tools/testing/TestingPermissionTool.tsx +3 -3
  1183. package/tools/utils.ts +1 -1
  1184. package/tools.ts +43 -43
  1185. package/types/command.ts +12 -12
  1186. package/types/generated/events_mono/claude_code/v1/claude_code_internal_event.ts +2 -2
  1187. package/types/generated/events_mono/growthbook/v1/growthbook_experiment_event.ts +2 -2
  1188. package/types/hooks.ts +9 -9
  1189. package/types/logs.ts +5 -5
  1190. package/types/plugin.ts +5 -5
  1191. package/types/textInputTypes.ts +7 -7
  1192. package/upstreamproxy/relay.ts +3 -3
  1193. package/upstreamproxy/upstreamproxy.ts +5 -5
  1194. package/utils/Cursor.ts +3 -3
  1195. package/utils/QueryGuard.ts +1 -1
  1196. package/utils/Shell.ts +24 -24
  1197. package/utils/ShellCommand.ts +4 -4
  1198. package/utils/activityManager.ts +1 -1
  1199. package/utils/advisor.ts +4 -4
  1200. package/utils/agentContext.ts +2 -2
  1201. package/utils/agentSwarmsEnabled.ts +2 -2
  1202. package/utils/agenticSessionSearch.ts +8 -8
  1203. package/utils/analyzeContext.ts +29 -29
  1204. package/utils/ansiToPng.ts +2 -2
  1205. package/utils/ansiToSvg.ts +1 -1
  1206. package/utils/api.ts +37 -37
  1207. package/utils/apiPreconnect.ts +2 -2
  1208. package/utils/appleTerminalBackup.ts +3 -3
  1209. package/utils/argumentSubstitution.ts +1 -1
  1210. package/utils/asciicast.ts +8 -8
  1211. package/utils/attachments.ts +94 -94
  1212. package/utils/attribution.ts +20 -20
  1213. package/utils/auth.ts +29 -29
  1214. package/utils/authFileDescriptor.ts +5 -5
  1215. package/utils/authPortable.ts +1 -1
  1216. package/utils/autoRunIssue.tsx +3 -3
  1217. package/utils/autoUpdater.ts +15 -15
  1218. package/utils/aws.ts +1 -1
  1219. package/utils/awsAuthStatusManager.ts +1 -1
  1220. package/utils/background/remote/preconditions.ts +11 -11
  1221. package/utils/background/remote/remoteSession.ts +7 -7
  1222. package/utils/backgroundHousekeeping.ts +7 -7
  1223. package/utils/bash/ParsedCommand.ts +3 -3
  1224. package/utils/bash/ShellSnapshot.ts +13 -13
  1225. package/utils/bash/ast.ts +3 -3
  1226. package/utils/bash/bashPipeCommand.ts +1 -1
  1227. package/utils/bash/commands.ts +3 -3
  1228. package/utils/bash/parser.ts +3 -3
  1229. package/utils/bash/prefix.ts +4 -4
  1230. package/utils/bash/registry.ts +2 -2
  1231. package/utils/bash/shellCompletion.ts +5 -5
  1232. package/utils/bash/shellPrefix.ts +1 -1
  1233. package/utils/bash/shellQuote.ts +2 -2
  1234. package/utils/bash/shellQuoting.ts +1 -1
  1235. package/utils/bash/specs/alias.ts +1 -1
  1236. package/utils/bash/specs/index.ts +8 -8
  1237. package/utils/bash/specs/nohup.ts +1 -1
  1238. package/utils/bash/specs/pyright.ts +1 -1
  1239. package/utils/bash/specs/sleep.ts +1 -1
  1240. package/utils/bash/specs/srun.ts +1 -1
  1241. package/utils/bash/specs/time.ts +1 -1
  1242. package/utils/bash/specs/timeout.ts +1 -1
  1243. package/utils/betas.ts +11 -11
  1244. package/utils/billing.ts +3 -3
  1245. package/utils/binaryCheck.ts +2 -2
  1246. package/utils/browser.ts +1 -1
  1247. package/utils/caCerts.ts +3 -3
  1248. package/utils/caCertsConfig.ts +3 -3
  1249. package/utils/cachePaths.ts +2 -2
  1250. package/utils/classifierApprovals.ts +1 -1
  1251. package/utils/classifierApprovalsHook.ts +1 -1
  1252. package/utils/claudeCodeHints.ts +2 -2
  1253. package/utils/claudeDesktop.ts +5 -5
  1254. package/utils/claudeInChrome/chromeNativeHost.ts +3 -3
  1255. package/utils/claudeInChrome/common.ts +8 -8
  1256. package/utils/claudeInChrome/mcpServer.ts +12 -12
  1257. package/utils/claudeInChrome/setup.ts +13 -13
  1258. package/utils/claudeInChrome/setupPortable.ts +1 -1
  1259. package/utils/claudeInChrome/toolRendering.tsx +8 -8
  1260. package/utils/claudemd.ts +21 -21
  1261. package/utils/cleanup.ts +15 -15
  1262. package/utils/collapseBackgroundBashNotifications.ts +5 -5
  1263. package/utils/collapseHookSummaries.ts +1 -1
  1264. package/utils/collapseReadSearch.ts +13 -13
  1265. package/utils/collapseTeammateShutdowns.ts +1 -1
  1266. package/utils/combinedAbortSignal.ts +1 -1
  1267. package/utils/commitAttribution.ts +12 -12
  1268. package/utils/completionCache.ts +7 -7
  1269. package/utils/computerUse/cleanup.ts +6 -6
  1270. package/utils/computerUse/common.ts +2 -2
  1271. package/utils/computerUse/computerUseLock.ts +6 -6
  1272. package/utils/computerUse/drainRunLoop.ts +3 -3
  1273. package/utils/computerUse/escHotkey.ts +3 -3
  1274. package/utils/computerUse/executor.ts +9 -9
  1275. package/utils/computerUse/gates.ts +3 -3
  1276. package/utils/computerUse/hostAdapter.ts +5 -5
  1277. package/utils/computerUse/mcpServer.ts +10 -10
  1278. package/utils/computerUse/setup.ts +5 -5
  1279. package/utils/computerUse/toolRendering.tsx +4 -4
  1280. package/utils/computerUse/wrapper.tsx +9 -9
  1281. package/utils/concurrentSessions.ts +9 -9
  1282. package/utils/config.ts +29 -29
  1283. package/utils/context.ts +5 -5
  1284. package/utils/contextAnalysis.ts +4 -4
  1285. package/utils/contextSuggestions.ts +7 -7
  1286. package/utils/conversationRecovery.ts +14 -14
  1287. package/utils/cronJitterConfig.ts +3 -3
  1288. package/utils/cronScheduler.ts +6 -6
  1289. package/utils/cronTasks.ts +8 -8
  1290. package/utils/cronTasksLock.ts +8 -8
  1291. package/utils/crossProjectResume.ts +4 -4
  1292. package/utils/cwd.ts +1 -1
  1293. package/utils/debug.ts +8 -8
  1294. package/utils/deepLink/banner.ts +3 -3
  1295. package/utils/deepLink/parseDeepLink.ts +1 -1
  1296. package/utils/deepLink/protocolHandler.ts +7 -7
  1297. package/utils/deepLink/registerProtocol.ts +10 -10
  1298. package/utils/deepLink/terminalLauncher.ts +4 -4
  1299. package/utils/deepLink/terminalPreference.ts +2 -2
  1300. package/utils/desktopDeepLink.ts +6 -6
  1301. package/utils/detectRepository.ts +3 -3
  1302. package/utils/diagLogs.ts +2 -2
  1303. package/utils/diff.ts +6 -6
  1304. package/utils/directMemberMessage.ts +1 -1
  1305. package/utils/doctorContextWarnings.ts +11 -11
  1306. package/utils/doctorDiagnostic.ts +17 -17
  1307. package/utils/dxt/helpers.ts +2 -2
  1308. package/utils/dxt/zip.ts +4 -4
  1309. package/utils/earlyInput.ts +1 -1
  1310. package/utils/editor.ts +3 -3
  1311. package/utils/effort.ts +8 -8
  1312. package/utils/embeddedTools.ts +1 -1
  1313. package/utils/env.ts +6 -6
  1314. package/utils/envDynamic.ts +4 -4
  1315. package/utils/envValidation.ts +1 -1
  1316. package/utils/errorLogSink.ts +8 -8
  1317. package/utils/exampleCommands.ts +7 -7
  1318. package/utils/execFileNoThrow.ts +3 -3
  1319. package/utils/execFileNoThrowPortable.ts +2 -2
  1320. package/utils/execSyncWrapper.ts +2 -2
  1321. package/utils/exportRenderer.tsx +8 -8
  1322. package/utils/extraUsage.ts +2 -2
  1323. package/utils/fastMode.ts +14 -14
  1324. package/utils/file.ts +11 -11
  1325. package/utils/fileHistory.ts +11 -11
  1326. package/utils/fileOperationAnalytics.ts +2 -2
  1327. package/utils/filePersistence/filePersistence.ts +7 -7
  1328. package/utils/filePersistence/outputsScanner.ts +2 -2
  1329. package/utils/filePersistence/types.ts +1 -1
  1330. package/utils/fileRead.ts +2 -2
  1331. package/utils/fileReadCache.ts +2 -2
  1332. package/utils/findExecutable.ts +1 -1
  1333. package/utils/fingerprint.ts +1 -1
  1334. package/utils/forkedAgent.ts +22 -22
  1335. package/utils/format.ts +2 -2
  1336. package/utils/frontmatterParser.ts +3 -3
  1337. package/utils/fsOperations.ts +2 -2
  1338. package/utils/fullscreen.ts +4 -4
  1339. package/utils/genericProcessUtils.ts +1 -1
  1340. package/utils/getWorktreePaths.ts +3 -3
  1341. package/utils/ghPrStatus.ts +3 -3
  1342. package/utils/git/gitFilesystem.ts +5 -5
  1343. package/utils/git/gitignore.ts +5 -5
  1344. package/utils/git.ts +10 -10
  1345. package/utils/gitDiff.ts +5 -5
  1346. package/utils/gitSettings.ts +2 -2
  1347. package/utils/github/ghAuthStatus.ts +1 -1
  1348. package/utils/githubRepoPathMapping.ts +7 -7
  1349. package/utils/glob.ts +6 -6
  1350. package/utils/gracefulShutdown.ts +17 -17
  1351. package/utils/groupToolUses.ts +2 -2
  1352. package/utils/handlePromptSubmit.ts +28 -28
  1353. package/utils/headlessProfiler.ts +6 -6
  1354. package/utils/heapDumpService.ts +8 -8
  1355. package/utils/heatmap.ts +2 -2
  1356. package/utils/highlightMatch.tsx +1 -1
  1357. package/utils/hooks/AsyncHookRegistry.ts +6 -6
  1358. package/utils/hooks/apiQueryHookHelper.ts +9 -9
  1359. package/utils/hooks/execAgentHook.ts +25 -25
  1360. package/utils/hooks/execHttpHook.ts +8 -8
  1361. package/utils/hooks/execPromptHook.ts +15 -15
  1362. package/utils/hooks/fileChangedWatcher.ts +6 -6
  1363. package/utils/hooks/hookEvents.ts +2 -2
  1364. package/utils/hooks/hookHelpers.ts +7 -7
  1365. package/utils/hooks/hooksConfigManager.ts +4 -4
  1366. package/utils/hooks/hooksConfigSnapshot.ts +5 -5
  1367. package/utils/hooks/hooksSettings.ts +9 -9
  1368. package/utils/hooks/postSamplingHooks.ts +6 -6
  1369. package/utils/hooks/registerFrontmatterHooks.ts +5 -5
  1370. package/utils/hooks/registerSkillHooks.ts +5 -5
  1371. package/utils/hooks/sessionHooks.ts +7 -7
  1372. package/utils/hooks/skillImprovement.ts +17 -17
  1373. package/utils/hooks.ts +56 -56
  1374. package/utils/http.ts +4 -4
  1375. package/utils/hyperlink.ts +1 -1
  1376. package/utils/iTermBackup.ts +2 -2
  1377. package/utils/ide.ts +22 -22
  1378. package/utils/idleTimeout.ts +2 -2
  1379. package/utils/imagePaste.ts +8 -8
  1380. package/utils/imageResizer.ts +7 -7
  1381. package/utils/imageStore.ts +5 -5
  1382. package/utils/imageValidation.ts +3 -3
  1383. package/utils/immediateCommand.ts +1 -1
  1384. package/utils/inProcessTeammateHelpers.ts +4 -4
  1385. package/utils/ink.ts +2 -2
  1386. package/utils/jetbrains.ts +2 -2
  1387. package/utils/json.ts +5 -5
  1388. package/utils/listSessionsImpl.ts +3 -3
  1389. package/utils/localInstaller.ts +7 -7
  1390. package/utils/log.ts +10 -10
  1391. package/utils/logoV2Utils.ts +11 -11
  1392. package/utils/mailbox.ts +1 -1
  1393. package/utils/managedEnv.ts +9 -9
  1394. package/utils/markdown.ts +9 -9
  1395. package/utils/markdownConfigLoader.ts +14 -14
  1396. package/utils/mcp/dateTimeParser.ts +4 -4
  1397. package/utils/mcp/elicitationValidation.ts +4 -4
  1398. package/utils/mcpInstructionsDelta.ts +5 -5
  1399. package/utils/mcpOutputStorage.ts +6 -6
  1400. package/utils/mcpValidation.ts +4 -4
  1401. package/utils/mcpWebSocketTransport.ts +5 -5
  1402. package/utils/memoize.ts +2 -2
  1403. package/utils/memory/versions.ts +1 -1
  1404. package/utils/memoryFileDetection.ts +4 -4
  1405. package/utils/messagePredicates.ts +1 -1
  1406. package/utils/messageQueueManager.ts +10 -10
  1407. package/utils/messages/mappers.ts +9 -9
  1408. package/utils/messages/systemInit.ts +8 -8
  1409. package/utils/messages.ts +59 -59
  1410. package/utils/model/agent.ts +6 -6
  1411. package/utils/model/antModels.ts +2 -2
  1412. package/utils/model/bedrock.ts +4 -4
  1413. package/utils/model/check1mAccess.ts +4 -4
  1414. package/utils/model/configs.ts +2 -2
  1415. package/utils/model/contextWindowUpgradeCheck.ts +2 -2
  1416. package/utils/model/deprecation.ts +1 -1
  1417. package/utils/model/model.ts +13 -13
  1418. package/utils/model/modelAllowlist.ts +4 -4
  1419. package/utils/model/modelCapabilities.ts +10 -10
  1420. package/utils/model/modelOptions.ts +11 -11
  1421. package/utils/model/modelStrings.ts +7 -7
  1422. package/utils/model/modelSupportOverrides.ts +1 -1
  1423. package/utils/model/providers.ts +2 -2
  1424. package/utils/model/validateModel.ts +5 -5
  1425. package/utils/modelCost.ts +6 -6
  1426. package/utils/mtls.ts +3 -3
  1427. package/utils/nativeInstaller/download.ts +10 -10
  1428. package/utils/nativeInstaller/index.ts +1 -1
  1429. package/utils/nativeInstaller/installer.ts +20 -20
  1430. package/utils/nativeInstaller/packageManagers.ts +3 -3
  1431. package/utils/nativeInstaller/pidLock.ts +8 -8
  1432. package/utils/notebook.ts +6 -6
  1433. package/utils/pasteStore.ts +3 -3
  1434. package/utils/path.ts +5 -5
  1435. package/utils/pdf.ts +6 -6
  1436. package/utils/pdfUtils.ts +1 -1
  1437. package/utils/permissions/PermissionMode.ts +3 -3
  1438. package/utils/permissions/PermissionPromptToolResultSchema.ts +6 -6
  1439. package/utils/permissions/PermissionResult.ts +1 -1
  1440. package/utils/permissions/PermissionRule.ts +2 -2
  1441. package/utils/permissions/PermissionUpdate.ts +11 -11
  1442. package/utils/permissions/PermissionUpdateSchema.ts +4 -4
  1443. package/utils/permissions/bypassPermissionsKillswitch.ts +4 -4
  1444. package/utils/permissions/classifierDecision.ts +21 -21
  1445. package/utils/permissions/classifierShared.ts +1 -1
  1446. package/utils/permissions/filesystem.ts +24 -24
  1447. package/utils/permissions/getNextPermissionMode.ts +4 -4
  1448. package/utils/permissions/pathValidation.ts +8 -8
  1449. package/utils/permissions/permissionExplainer.ts +11 -11
  1450. package/utils/permissions/permissionRuleParser.ts +4 -4
  1451. package/utils/permissions/permissionSetup.ts +27 -27
  1452. package/utils/permissions/permissions.ts +35 -35
  1453. package/utils/permissions/permissionsLoader.ts +9 -9
  1454. package/utils/permissions/shadowedRuleDetection.ts +4 -4
  1455. package/utils/permissions/shellRuleMatching.ts +1 -1
  1456. package/utils/permissions/yoloClassifier.ts +25 -25
  1457. package/utils/planModeV2.ts +3 -3
  1458. package/utils/plans.ts +14 -14
  1459. package/utils/platform.ts +2 -2
  1460. package/utils/plugins/addDirPluginSettings.ts +3 -3
  1461. package/utils/plugins/cacheUtils.ts +16 -16
  1462. package/utils/plugins/dependencyResolver.ts +5 -5
  1463. package/utils/plugins/fetchTelemetry.ts +2 -2
  1464. package/utils/plugins/gitAvailability.ts +1 -1
  1465. package/utils/plugins/headlessPluginInstall.ts +12 -12
  1466. package/utils/plugins/hintRecommendation.ts +9 -9
  1467. package/utils/plugins/installCounts.ts +7 -7
  1468. package/utils/plugins/installedPluginsManager.ts +15 -15
  1469. package/utils/plugins/loadPluginAgents.ts +17 -17
  1470. package/utils/plugins/loadPluginCommands.ts +17 -17
  1471. package/utils/plugins/loadPluginHooks.ts +9 -9
  1472. package/utils/plugins/loadPluginOutputStyles.ts +8 -8
  1473. package/utils/plugins/lspPluginIntegration.ts +10 -10
  1474. package/utils/plugins/lspRecommendation.ts +6 -6
  1475. package/utils/plugins/managedPlugins.ts +1 -1
  1476. package/utils/plugins/marketplaceHelpers.ts +7 -7
  1477. package/utils/plugins/marketplaceManager.ts +22 -22
  1478. package/utils/plugins/mcpPluginIntegration.ts +10 -10
  1479. package/utils/plugins/mcpbHandler.ts +12 -12
  1480. package/utils/plugins/officialMarketplace.ts +1 -1
  1481. package/utils/plugins/officialMarketplaceGcs.ts +6 -6
  1482. package/utils/plugins/officialMarketplaceStartupCheck.ts +12 -12
  1483. package/utils/plugins/orphanedPluginFilter.ts +2 -2
  1484. package/utils/plugins/parseMarketplaceInput.ts +3 -3
  1485. package/utils/plugins/performStartupChecks.tsx +6 -6
  1486. package/utils/plugins/pluginAutoupdate.ts +9 -9
  1487. package/utils/plugins/pluginBlocklist.ts +7 -7
  1488. package/utils/plugins/pluginDirectories.ts +6 -6
  1489. package/utils/plugins/pluginFlagging.ts +5 -5
  1490. package/utils/plugins/pluginIdentifier.ts +2 -2
  1491. package/utils/plugins/pluginInstallationHelpers.ts +18 -18
  1492. package/utils/plugins/pluginLoader.ts +31 -31
  1493. package/utils/plugins/pluginOptionsStorage.ts +7 -7
  1494. package/utils/plugins/pluginPolicy.ts +1 -1
  1495. package/utils/plugins/pluginStartupCheck.ts +11 -11
  1496. package/utils/plugins/pluginVersioning.ts +3 -3
  1497. package/utils/plugins/reconciler.ts +8 -8
  1498. package/utils/plugins/refresh.ts +17 -17
  1499. package/utils/plugins/schemas.ts +3 -3
  1500. package/utils/plugins/validatePlugin.ts +5 -5
  1501. package/utils/plugins/walkPluginMarkdown.ts +2 -2
  1502. package/utils/plugins/zipCache.ts +6 -6
  1503. package/utils/plugins/zipCacheAdapters.ts +5 -5
  1504. package/utils/powershell/dangerousCmdlets.ts +2 -2
  1505. package/utils/powershell/parser.ts +4 -4
  1506. package/utils/powershell/staticPrefix.ts +5 -5
  1507. package/utils/preflightChecks.tsx +8 -8
  1508. package/utils/processUserInput/processBashCommand.tsx +13 -13
  1509. package/utils/processUserInput/processSlashCommand.tsx +45 -45
  1510. package/utils/processUserInput/processTextPrompt.ts +8 -8
  1511. package/utils/processUserInput/processUserInput.ts +22 -22
  1512. package/utils/profilerBase.ts +1 -1
  1513. package/utils/promptCategory.ts +3 -3
  1514. package/utils/promptEditor.ts +9 -9
  1515. package/utils/promptShellExecution.ts +9 -9
  1516. package/utils/proxy.ts +4 -4
  1517. package/utils/queryContext.ts +14 -14
  1518. package/utils/queryHelpers.ts +23 -23
  1519. package/utils/queryProfiler.ts +3 -3
  1520. package/utils/queueProcessor.ts +2 -2
  1521. package/utils/readEditContext.ts +1 -1
  1522. package/utils/readFileInRange.ts +1 -1
  1523. package/utils/releaseNotes.ts +7 -7
  1524. package/utils/renderOptions.ts +3 -3
  1525. package/utils/ripgrep.ts +9 -9
  1526. package/utils/sandbox/sandbox-adapter.ts +17 -17
  1527. package/utils/screenshotClipboard.ts +4 -4
  1528. package/utils/sdkEventQueue.ts +2 -2
  1529. package/utils/secureStorage/fallbackStorage.ts +1 -1
  1530. package/utils/secureStorage/index.ts +4 -4
  1531. package/utils/secureStorage/keychainPrefetch.ts +2 -2
  1532. package/utils/secureStorage/macOsKeychainHelpers.ts +3 -3
  1533. package/utils/secureStorage/macOsKeychainStorage.ts +6 -6
  1534. package/utils/secureStorage/plainTextStorage.ts +5 -5
  1535. package/utils/sessionActivity.ts +3 -3
  1536. package/utils/sessionEnvironment.ts +5 -5
  1537. package/utils/sessionFileAccessHooks.ts +16 -16
  1538. package/utils/sessionIngressAuth.ts +5 -5
  1539. package/utils/sessionRestore.ts +28 -28
  1540. package/utils/sessionStart.ts +11 -11
  1541. package/utils/sessionState.ts +3 -3
  1542. package/utils/sessionStorage.ts +35 -35
  1543. package/utils/sessionStoragePortable.ts +3 -3
  1544. package/utils/sessionTitle.ts +9 -9
  1545. package/utils/sessionUrl.ts +1 -1
  1546. package/utils/settings/allErrors.ts +3 -3
  1547. package/utils/settings/applySettingsChange.ts +8 -8
  1548. package/utils/settings/changeDetector.ts +13 -13
  1549. package/utils/settings/constants.ts +1 -1
  1550. package/utils/settings/managedPath.ts +1 -1
  1551. package/utils/settings/mdm/rawRead.ts +1 -1
  1552. package/utils/settings/mdm/settings.ts +11 -11
  1553. package/utils/settings/permissionValidation.ts +5 -5
  1554. package/utils/settings/pluginOnlyPolicy.ts +2 -2
  1555. package/utils/settings/schemaOutput.ts +2 -2
  1556. package/utils/settings/settings.ts +23 -23
  1557. package/utils/settings/settingsCache.ts +3 -3
  1558. package/utils/settings/types.ts +10 -10
  1559. package/utils/settings/validateEditTool.ts +3 -3
  1560. package/utils/settings/validation.ts +8 -8
  1561. package/utils/shell/bashProvider.ts +12 -12
  1562. package/utils/shell/outputLimits.ts +1 -1
  1563. package/utils/shell/powershellDetection.ts +2 -2
  1564. package/utils/shell/powershellProvider.ts +2 -2
  1565. package/utils/shell/prefix.ts +8 -8
  1566. package/utils/shell/readOnlyCommandValidation.ts +1 -1
  1567. package/utils/shell/resolveDefaultShell.ts +1 -1
  1568. package/utils/shell/shellToolUtils.ts +4 -4
  1569. package/utils/shell/specPrefix.ts +1 -1
  1570. package/utils/shellConfig.ts +2 -2
  1571. package/utils/sideQuery.ts +12 -12
  1572. package/utils/sideQuestion.ts +5 -5
  1573. package/utils/sinks.ts +2 -2
  1574. package/utils/skills/skillChangeDetector.ts +10 -10
  1575. package/utils/sliceAnsi.ts +1 -1
  1576. package/utils/slowOperations.ts +6 -6
  1577. package/utils/standaloneAgent.ts +2 -2
  1578. package/utils/startupProfiler.ts +7 -7
  1579. package/utils/staticRender.tsx +1 -1
  1580. package/utils/stats.ts +11 -11
  1581. package/utils/statsCache.ts +8 -8
  1582. package/utils/status.tsx +19 -19
  1583. package/utils/statusNoticeDefinitions.tsx +10 -10
  1584. package/utils/statusNoticeHelpers.ts +2 -2
  1585. package/utils/streamJsonStdoutGuard.ts +2 -2
  1586. package/utils/streamlinedTransform.ts +15 -15
  1587. package/utils/subprocessEnv.ts +1 -1
  1588. package/utils/suggestions/commandSuggestions.ts +4 -4
  1589. package/utils/suggestions/directoryCompletion.ts +5 -5
  1590. package/utils/suggestions/shellHistoryCompletion.ts +2 -2
  1591. package/utils/suggestions/skillUsageTracking.ts +1 -1
  1592. package/utils/suggestions/slackChannelSuggestions.ts +6 -6
  1593. package/utils/swarm/It2SetupPrompt.tsx +7 -7
  1594. package/utils/swarm/backends/ITermBackend.ts +6 -6
  1595. package/utils/swarm/backends/InProcessBackend.ts +9 -9
  1596. package/utils/swarm/backends/PaneBackendExecutor.ts +12 -12
  1597. package/utils/swarm/backends/TmuxBackend.ts +10 -10
  1598. package/utils/swarm/backends/detection.ts +3 -3
  1599. package/utils/swarm/backends/it2Setup.ts +4 -4
  1600. package/utils/swarm/backends/registry.ts +9 -9
  1601. package/utils/swarm/backends/teammateModeSnapshot.ts +3 -3
  1602. package/utils/swarm/backends/types.ts +1 -1
  1603. package/utils/swarm/inProcessRunner.ts +55 -55
  1604. package/utils/swarm/leaderPermissionBridge.ts +2 -2
  1605. package/utils/swarm/permissionSync.ts +10 -10
  1606. package/utils/swarm/reconnection.ts +5 -5
  1607. package/utils/swarm/spawnInProcess.ts +16 -16
  1608. package/utils/swarm/spawnUtils.ts +6 -6
  1609. package/utils/swarm/teamHelpers.ts +13 -13
  1610. package/utils/swarm/teammateInit.ts +8 -8
  1611. package/utils/swarm/teammateLayoutManager.ts +4 -4
  1612. package/utils/swarm/teammateModel.ts +2 -2
  1613. package/utils/systemDirectories.ts +2 -2
  1614. package/utils/systemPrompt.ts +7 -7
  1615. package/utils/systemTheme.ts +1 -1
  1616. package/utils/task/TaskOutput.ts +6 -6
  1617. package/utils/task/diskOutput.ts +5 -5
  1618. package/utils/task/framework.ts +7 -7
  1619. package/utils/task/outputFormatting.ts +2 -2
  1620. package/utils/task/sdkProgress.ts +2 -2
  1621. package/utils/tasks.ts +12 -12
  1622. package/utils/teamDiscovery.ts +3 -3
  1623. package/utils/teamMemoryOps.ts +3 -3
  1624. package/utils/teammate.ts +4 -4
  1625. package/utils/teammateMailbox.ts +17 -17
  1626. package/utils/telemetry/betaSessionTracing.ts +7 -7
  1627. package/utils/telemetry/bigqueryExporter.ts +10 -10
  1628. package/utils/telemetry/events.ts +4 -4
  1629. package/utils/telemetry/instrumentation.ts +19 -19
  1630. package/utils/telemetry/logger.ts +2 -2
  1631. package/utils/telemetry/perfettoTracing.ts +8 -8
  1632. package/utils/telemetry/pluginTelemetry.ts +3 -3
  1633. package/utils/telemetry/sessionTracing.ts +6 -6
  1634. package/utils/telemetry/skillLoadedEvent.ts +3 -3
  1635. package/utils/telemetryAttributes.ts +6 -6
  1636. package/utils/teleport/api.ts +10 -10
  1637. package/utils/teleport/environmentSelection.ts +3 -3
  1638. package/utils/teleport/environments.ts +6 -6
  1639. package/utils/teleport/gitBundle.ts +8 -8
  1640. package/utils/teleport.tsx +37 -37
  1641. package/utils/terminal.ts +3 -3
  1642. package/utils/terminalPanel.ts +5 -5
  1643. package/utils/textHighlighting.ts +1 -1
  1644. package/utils/theme.ts +1 -1
  1645. package/utils/thinking.ts +6 -6
  1646. package/utils/tmuxSocket.ts +6 -6
  1647. package/utils/todo/types.ts +1 -1
  1648. package/utils/tokens.ts +4 -4
  1649. package/utils/toolErrors.ts +2 -2
  1650. package/utils/toolPool.ts +3 -3
  1651. package/utils/toolResultStorage.ts +12 -12
  1652. package/utils/toolSearch.ts +16 -16
  1653. package/utils/transcriptSearch.ts +2 -2
  1654. package/utils/treeify.ts +2 -2
  1655. package/utils/truncate.ts +2 -2
  1656. package/utils/ultraplan/ccrSession.ts +6 -6
  1657. package/utils/unaryLogging.ts +1 -1
  1658. package/utils/undercover.ts +3 -3
  1659. package/utils/user.ts +6 -6
  1660. package/utils/uuid.ts +1 -1
  1661. package/utils/warningHandler.ts +4 -4
  1662. package/utils/which.ts +1 -1
  1663. package/utils/windowsPaths.ts +5 -5
  1664. package/utils/worktree.ts +14 -14
  1665. package/vim/motions.ts +1 -1
  1666. package/vim/operators.ts +6 -6
  1667. package/vim/textObjects.ts +2 -2
  1668. package/vim/transitions.ts +3 -3
  1669. package/voice/voiceModeEnabled.ts +2 -2
package/utils/betas.ts CHANGED
@@ -3,8 +3,8 @@ import memoize from 'lodash-es/memoize.js'
3
3
  import {
4
4
  checkStatsigFeatureGate_CACHED_MAY_BE_STALE,
5
5
  getFeatureValue_CACHED_MAY_BE_STALE,
6
- } from 'src/services/analytics/growthbook.js'
7
- import { getIsNonInteractiveSession, getSdkBetas } from '../bootstrap/state.js'
6
+ } from '../services/analytics/growthbook.ts'
7
+ import { getIsNonInteractiveSession, getSdkBetas } from '../bootstrap/state.ts'
8
8
  import {
9
9
  BEDROCK_EXTRA_PARAMS_HEADERS,
10
10
  CLAUDE_CODE_20250219_BETA_HEADER,
@@ -20,15 +20,15 @@ import {
20
20
  TOOL_SEARCH_BETA_HEADER_1P,
21
21
  TOOL_SEARCH_BETA_HEADER_3P,
22
22
  WEB_SEARCH_BETA_HEADER,
23
- } from '../constants/betas.js'
24
- import { OAUTH_BETA_HEADER } from '../constants/oauth.js'
25
- import { isClaudeAISubscriber } from './auth.js'
26
- import { has1mContext } from './context.js'
27
- import { isEnvDefinedFalsy, isEnvTruthy } from './envUtils.js'
28
- import { getCanonicalName } from './model/model.js'
29
- import { get3PModelCapabilityOverride } from './model/modelSupportOverrides.js'
30
- import { getAPIProvider } from './model/providers.js'
31
- import { getInitialSettings } from './settings/settings.js'
23
+ } from '../constants/betas.ts'
24
+ import { OAUTH_BETA_HEADER } from '../constants/oauth.ts'
25
+ import { isClaudeAISubscriber } from './auth.ts'
26
+ import { has1mContext } from './context.ts'
27
+ import { isEnvDefinedFalsy, isEnvTruthy } from './envUtils.ts'
28
+ import { getCanonicalName } from './model/model.ts'
29
+ import { get3PModelCapabilityOverride } from './model/modelSupportOverrides.ts'
30
+ import { getAPIProvider } from './model/providers.ts'
31
+ import { getInitialSettings } from './settings/settings.ts'
32
32
 
33
33
  /**
34
34
  * SDK-provided betas that are allowed for API key users.
package/utils/billing.ts CHANGED
@@ -3,9 +3,9 @@ import {
3
3
  getAuthTokenSource,
4
4
  getSubscriptionType,
5
5
  isClaudeAISubscriber,
6
- } from './auth.js'
7
- import { getGlobalConfig } from './config.js'
8
- import { isEnvTruthy } from './envUtils.js'
6
+ } from './auth.ts'
7
+ import { getGlobalConfig } from './config.ts'
8
+ import { isEnvTruthy } from './envUtils.ts'
9
9
 
10
10
  export function hasConsoleBillingAccess(): boolean {
11
11
  // Check if cost reporting is disabled via environment variable
@@ -1,5 +1,5 @@
1
- import { logForDebugging } from './debug.js'
2
- import { which } from './which.js'
1
+ import { logForDebugging } from './debug.ts'
2
+ import { which } from './which.ts'
3
3
 
4
4
  // Session cache to avoid repeated checks
5
5
  const binaryCache = new Map<string, boolean>()
package/utils/browser.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { execFileNoThrow } from './execFileNoThrow.js'
1
+ import { execFileNoThrow } from './execFileNoThrow.ts'
2
2
 
3
3
  function validateUrl(url: string): void {
4
4
  let parsedUrl: URL
package/utils/caCerts.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import memoize from 'lodash-es/memoize.js'
2
- import { logForDebugging } from './debug.js'
3
- import { hasNodeOption } from './envUtils.js'
4
- import { getFsImplementation } from './fsOperations.js'
2
+ import { logForDebugging } from './debug.ts'
3
+ import { hasNodeOption } from './envUtils.ts'
4
+ import { getFsImplementation } from './fsOperations.ts'
5
5
 
6
6
  /**
7
7
  * Load CA certificates for TLS connections.
@@ -13,9 +13,9 @@
13
13
  * env var at CLI startup. Only `init.ts` imports this file.
14
14
  */
15
15
 
16
- import { getGlobalConfig } from './config.js'
17
- import { logForDebugging } from './debug.js'
18
- import { getSettingsForSource } from './settings/settings.js'
16
+ import { getGlobalConfig } from './config.ts'
17
+ import { logForDebugging } from './debug.ts'
18
+ import { getSettingsForSource } from './settings/settings.ts'
19
19
 
20
20
  /**
21
21
  * Apply NODE_EXTRA_CA_CERTS from settings.json to process.env early in init,
@@ -1,7 +1,7 @@
1
1
  import envPaths from 'env-paths'
2
2
  import { join } from 'path'
3
- import { getFsImplementation } from './fsOperations.js'
4
- import { djb2Hash } from './hash.js'
3
+ import { getFsImplementation } from './fsOperations.ts'
4
+ import { djb2Hash } from './hash.ts'
5
5
 
6
6
  const paths = envPaths('claude-cli')
7
7
 
@@ -4,7 +4,7 @@
4
4
  */
5
5
 
6
6
  import { feature } from 'bun:bundle'
7
- import { createSignal } from './signal.js'
7
+ import { createSignal } from './signal.ts'
8
8
 
9
9
  type ClassifierApproval = {
10
10
  classifier: 'bash' | 'auto-mode'
@@ -8,7 +8,7 @@ import { useSyncExternalStore } from 'react'
8
8
  import {
9
9
  isClassifierChecking,
10
10
  subscribeClassifierChecking,
11
- } from './classifierApprovals.js'
11
+ } from './classifierApprovals.ts'
12
12
 
13
13
  export function useIsClassifierChecking(toolUseID: string): boolean {
14
14
  return useSyncExternalStore(subscribeClassifierChecking, () =>
@@ -15,8 +15,8 @@
15
15
  * See docs/claude-code-hints.md for the vendor-facing spec.
16
16
  */
17
17
 
18
- import { logForDebugging } from './debug.js'
19
- import { createSignal } from './signal.js'
18
+ import { logForDebugging } from './debug.ts'
19
+ import { createSignal } from './signal.ts'
20
20
 
21
21
  export type ClaudeCodeHintType = 'plugin'
22
22
 
@@ -4,11 +4,11 @@ import { join } from 'path'
4
4
  import {
5
5
  type McpServerConfig,
6
6
  McpStdioServerConfigSchema,
7
- } from '../services/mcp/types.js'
8
- import { getErrnoCode } from './errors.js'
9
- import { safeParseJSON } from './json.js'
10
- import { logError } from './log.js'
11
- import { getPlatform, SUPPORTED_PLATFORMS } from './platform.js'
7
+ } from '../services/mcp/types.ts'
8
+ import { getErrnoCode } from './errors.ts'
9
+ import { safeParseJSON } from './json.ts'
10
+ import { logError } from './log.ts'
11
+ import { getPlatform, SUPPORTED_PLATFORMS } from './platform.ts'
12
12
 
13
13
  export async function getClaudeDesktopConfigPath(): Promise<string> {
14
14
  const platform = getPlatform()
@@ -19,9 +19,9 @@ import { createServer, type Server, type Socket } from 'net'
19
19
  import { homedir, platform } from 'os'
20
20
  import { join } from 'path'
21
21
  import { z } from 'zod'
22
- import { lazySchema } from '../lazySchema.js'
23
- import { jsonParse, jsonStringify } from '../slowOperations.js'
24
- import { getSecureSocketPath, getSocketDir } from './common.js'
22
+ import { lazySchema } from '../lazySchema.ts'
23
+ import { jsonParse, jsonStringify } from '../slowOperations.ts'
24
+ import { getSecureSocketPath, getSocketDir } from './common.ts'
25
25
 
26
26
  const VERSION = '1.0.0'
27
27
  const MAX_MESSAGE_SIZE = 1024 * 1024 // 1MB - Max message size that can be sent to Chrome
@@ -2,20 +2,20 @@ import { readdirSync } from 'fs'
2
2
  import { stat } from 'fs/promises'
3
3
  import { homedir, platform, tmpdir, userInfo } from 'os'
4
4
  import { join } from 'path'
5
- import { normalizeNameForMCP } from '../../services/mcp/normalization.js'
6
- import { logForDebugging } from '../debug.js'
7
- import { isFsInaccessible } from '../errors.js'
8
- import { execFileNoThrow } from '../execFileNoThrow.js'
9
- import { getPlatform } from '../platform.js'
10
- import { which } from '../which.js'
5
+ import { normalizeNameForMCP } from '../../services/mcp/normalization.ts'
6
+ import { logForDebugging } from '../debug.ts'
7
+ import { isFsInaccessible } from '../errors.ts'
8
+ import { execFileNoThrow } from '../execFileNoThrow.ts'
9
+ import { getPlatform } from '../platform.ts'
10
+ import { which } from '../which.ts'
11
11
 
12
12
  export const CLAUDE_IN_CHROME_MCP_SERVER_NAME = 'claude-in-chrome'
13
13
 
14
14
  // Re-export ChromiumBrowser type for setup.ts
15
- export type { ChromiumBrowser } from './setupPortable.js'
15
+ export type { ChromiumBrowser } from './setupPortable.ts'
16
16
 
17
17
  // Import for local use
18
- import type { ChromiumBrowser } from './setupPortable.js'
18
+ import type { ChromiumBrowser } from './setupPortable.ts'
19
19
 
20
20
  type BrowserConfig = {
21
21
  name: string
@@ -4,22 +4,22 @@ import {
4
4
  type Logger,
5
5
  type PermissionMode,
6
6
  } from '@ant/claude-for-chrome-mcp'
7
- import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'
7
+ import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.ts'
8
8
  import { format } from 'util'
9
- import { shutdownDatadog } from '../../services/analytics/datadog.js'
10
- import { shutdown1PEventLogging } from '../../services/analytics/firstPartyEventLogger.js'
11
- import { getFeatureValue_CACHED_MAY_BE_STALE } from '../../services/analytics/growthbook.js'
9
+ import { shutdownDatadog } from '../../services/analytics/datadog.ts'
10
+ import { shutdown1PEventLogging } from '../../services/analytics/firstPartyEventLogger.ts'
11
+ import { getFeatureValue_CACHED_MAY_BE_STALE } from '../../services/analytics/growthbook.ts'
12
12
  import {
13
13
  type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS,
14
14
  logEvent,
15
- } from '../../services/analytics/index.js'
16
- import { initializeAnalyticsSink } from '../../services/analytics/sink.js'
17
- import { getClaudeAIOAuthTokens } from '../auth.js'
18
- import { enableConfigs, getGlobalConfig, saveGlobalConfig } from '../config.js'
19
- import { logForDebugging } from '../debug.js'
20
- import { isEnvTruthy } from '../envUtils.js'
21
- import { sideQuery } from '../sideQuery.js'
22
- import { getAllSocketPaths, getSecureSocketPath } from './common.js'
15
+ } from '../../services/analytics/index.ts'
16
+ import { initializeAnalyticsSink } from '../../services/analytics/sink.ts'
17
+ import { getClaudeAIOAuthTokens } from '../auth.ts'
18
+ import { enableConfigs, getGlobalConfig, saveGlobalConfig } from '../config.ts'
19
+ import { logForDebugging } from '../debug.ts'
20
+ import { isEnvTruthy } from '../envUtils.ts'
21
+ import { sideQuery } from '../sideQuery.ts'
22
+ import { getAllSocketPaths, getSecureSocketPath } from './common.ts'
23
23
 
24
24
  const EXTENSION_DOWNLOAD_URL = 'https://claude.ai/chrome'
25
25
  const BUG_REPORT_URL =
@@ -7,29 +7,29 @@ import {
7
7
  getIsInteractive,
8
8
  getIsNonInteractiveSession,
9
9
  getSessionBypassPermissionsMode,
10
- } from '../../bootstrap/state.js'
11
- import { getFeatureValue_CACHED_MAY_BE_STALE } from '../../services/analytics/growthbook.js'
12
- import type { ScopedMcpServerConfig } from '../../services/mcp/types.js'
13
- import { isInBundledMode } from '../bundledMode.js'
14
- import { getGlobalConfig, saveGlobalConfig } from '../config.js'
15
- import { logForDebugging } from '../debug.js'
10
+ } from '../../bootstrap/state.ts'
11
+ import { getFeatureValue_CACHED_MAY_BE_STALE } from '../../services/analytics/growthbook.ts'
12
+ import type { ScopedMcpServerConfig } from '../../services/mcp/types.ts'
13
+ import { isInBundledMode } from '../bundledMode.ts'
14
+ import { getGlobalConfig, saveGlobalConfig } from '../config.ts'
15
+ import { logForDebugging } from '../debug.ts'
16
16
  import {
17
17
  getClaudeConfigHomeDir,
18
18
  isEnvDefinedFalsy,
19
19
  isEnvTruthy,
20
- } from '../envUtils.js'
21
- import { execFileNoThrowWithCwd } from '../execFileNoThrow.js'
22
- import { getPlatform } from '../platform.js'
23
- import { jsonStringify } from '../slowOperations.js'
20
+ } from '../envUtils.ts'
21
+ import { execFileNoThrowWithCwd } from '../execFileNoThrow.ts'
22
+ import { getPlatform } from '../platform.ts'
23
+ import { jsonStringify } from '../slowOperations.ts'
24
24
  import {
25
25
  CLAUDE_IN_CHROME_MCP_SERVER_NAME,
26
26
  getAllBrowserDataPaths,
27
27
  getAllNativeMessagingHostsDirs,
28
28
  getAllWindowsRegistryKeys,
29
29
  openInChrome,
30
- } from './common.js'
31
- import { getChromeSystemPrompt } from './prompt.js'
32
- import { isChromeExtensionInstalledPortable } from './setupPortable.js'
30
+ } from './common.ts'
31
+ import { getChromeSystemPrompt } from './prompt.ts'
32
+ import { isChromeExtensionInstalledPortable } from './setupPortable.ts'
33
33
 
34
34
  const CHROME_EXTENSION_RECONNECT_URL = 'https://clau.de/chrome/reconnect'
35
35
 
@@ -1,7 +1,7 @@
1
1
  import { readdir } from 'fs/promises'
2
2
  import { homedir } from 'os'
3
3
  import { join } from 'path'
4
- import { isFsInaccessible } from '../errors.js'
4
+ import { isFsInaccessible } from '../errors.ts'
5
5
 
6
6
  export const CHROME_EXTENSION_URL = 'https://claude.ai/chrome'
7
7
 
@@ -1,12 +1,12 @@
1
1
  import * as React from 'react';
2
- import { MessageResponse } from '../../components/MessageResponse.js';
3
- import { supportsHyperlinks } from '../../ink/supports-hyperlinks.js';
4
- import { Link, Text } from '../../ink.js';
5
- import { renderToolResultMessage as renderDefaultMCPToolResultMessage } from '../../tools/MCPTool/UI.js';
6
- import type { MCPToolResult } from '../../utils/mcpValidation.js';
7
- import { truncateToWidth } from '../format.js';
8
- import { trackClaudeInChromeTabId } from './common.js';
9
- export type { Tool } from '@modelcontextprotocol/sdk/types.js';
2
+ import { MessageResponse } from '../../components/MessageResponse.ts';
3
+ import { supportsHyperlinks } from '../../ink/supports-hyperlinks.ts';
4
+ import { Link, Text } from '../../ink.ts';
5
+ import { renderToolResultMessage as renderDefaultMCPToolResultMessage } from '../../tools/MCPTool/UI.ts';
6
+ import type { MCPToolResult } from '../../utils/mcpValidation.ts';
7
+ import { truncateToWidth } from '../format.ts';
8
+ import { trackClaudeInChromeTabId } from './common.ts';
9
+ export type { Tool } from '@modelcontextprotocol/sdk/types.ts';
10
10
 
11
11
  /**
12
12
  * All tool names from BROWSER_TOOLS in @ant/claude-for-chrome-mcp.
package/utils/claudemd.ts CHANGED
@@ -40,43 +40,43 @@ import {
40
40
  sep,
41
41
  } from 'path'
42
42
  import picomatch from 'picomatch'
43
- import { logEvent } from 'src/services/analytics/index.js'
43
+ import { logEvent } from '../services/analytics/index.ts'
44
44
  import {
45
45
  getAdditionalDirectoriesForClaudeMd,
46
46
  getOriginalCwd,
47
- } from '../bootstrap/state.js'
48
- import { truncateEntrypointContent } from '../memdir/memdir.js'
49
- import { getAutoMemEntrypoint, isAutoMemoryEnabled } from '../memdir/paths.js'
50
- import { getFeatureValue_CACHED_MAY_BE_STALE } from '../services/analytics/growthbook.js'
47
+ } from '../bootstrap/state.ts'
48
+ import { truncateEntrypointContent } from '../memdir/memdir.ts'
49
+ import { getAutoMemEntrypoint, isAutoMemoryEnabled } from '../memdir/paths.ts'
50
+ import { getFeatureValue_CACHED_MAY_BE_STALE } from '../services/analytics/growthbook.ts'
51
51
  import {
52
52
  getCurrentProjectConfig,
53
53
  getManagedClaudeRulesDir,
54
54
  getMemoryPath,
55
55
  getUserClaudeRulesDir,
56
- } from './config.js'
57
- import { logForDebugging } from './debug.js'
58
- import { logForDiagnosticsNoPII } from './diagLogs.js'
59
- import { getClaudeConfigHomeDir, isEnvTruthy } from './envUtils.js'
60
- import { getErrnoCode } from './errors.js'
61
- import { normalizePathForComparison } from './file.js'
62
- import { cacheKeys, type FileStateCache } from './fileStateCache.js'
56
+ } from './config.ts'
57
+ import { logForDebugging } from './debug.ts'
58
+ import { logForDiagnosticsNoPII } from './diagLogs.ts'
59
+ import { getClaudeConfigHomeDir, isEnvTruthy } from './envUtils.ts'
60
+ import { getErrnoCode } from './errors.ts'
61
+ import { normalizePathForComparison } from './file.ts'
62
+ import { cacheKeys, type FileStateCache } from './fileStateCache.ts'
63
63
  import {
64
64
  parseFrontmatter,
65
65
  splitPathInFrontmatter,
66
- } from './frontmatterParser.js'
67
- import { getFsImplementation, safeResolvePath } from './fsOperations.js'
68
- import { findCanonicalGitRoot, findGitRoot } from './git.js'
66
+ } from './frontmatterParser.ts'
67
+ import { getFsImplementation, safeResolvePath } from './fsOperations.ts'
68
+ import { findCanonicalGitRoot, findGitRoot } from './git.ts'
69
69
  import {
70
70
  executeInstructionsLoadedHooks,
71
71
  hasInstructionsLoadedHook,
72
72
  type InstructionsLoadReason,
73
73
  type InstructionsMemoryType,
74
- } from './hooks.js'
75
- import type { MemoryType } from './memory/types.js'
76
- import { expandPath } from './path.js'
77
- import { pathInWorkingPath } from './permissions/filesystem.js'
78
- import { isSettingSourceEnabled } from './settings/constants.js'
79
- import { getInitialSettings } from './settings/settings.js'
74
+ } from './hooks.ts'
75
+ import type { MemoryType } from './memory/types.ts'
76
+ import { expandPath } from './path.ts'
77
+ import { pathInWorkingPath } from './permissions/filesystem.ts'
78
+ import { isSettingSourceEnabled } from './settings/constants.ts'
79
+ import { getInitialSettings } from './settings/settings.ts'
80
80
 
81
81
  /* eslint-disable @typescript-eslint/no-require-imports */
82
82
  const teamMemPaths = feature('TEAMMEM')
package/utils/cleanup.ts CHANGED
@@ -1,24 +1,24 @@
1
1
  import * as fs from 'fs/promises'
2
2
  import { homedir } from 'os'
3
3
  import { join } from 'path'
4
- import { logEvent } from '../services/analytics/index.js'
5
- import { CACHE_PATHS } from './cachePaths.js'
6
- import { logForDebugging } from './debug.js'
7
- import { getClaudeConfigHomeDir } from './envUtils.js'
8
- import { type FsOperations, getFsImplementation } from './fsOperations.js'
9
- import { cleanupOldImageCaches } from './imageStore.js'
10
- import * as lockfile from './lockfile.js'
11
- import { logError } from './log.js'
12
- import { cleanupOldVersions } from './nativeInstaller/index.js'
13
- import { cleanupOldPastes } from './pasteStore.js'
14
- import { getProjectsDir } from './sessionStorage.js'
15
- import { getSettingsWithAllErrors } from './settings/allErrors.js'
4
+ import { logEvent } from '../services/analytics/index.ts'
5
+ import { CACHE_PATHS } from './cachePaths.ts'
6
+ import { logForDebugging } from './debug.ts'
7
+ import { getClaudeConfigHomeDir } from './envUtils.ts'
8
+ import { type FsOperations, getFsImplementation } from './fsOperations.ts'
9
+ import { cleanupOldImageCaches } from './imageStore.ts'
10
+ import * as lockfile from './lockfile.ts'
11
+ import { logError } from './log.ts'
12
+ import { cleanupOldVersions } from './nativeInstaller/index.ts'
13
+ import { cleanupOldPastes } from './pasteStore.ts'
14
+ import { getProjectsDir } from './sessionStorage.ts'
15
+ import { getSettingsWithAllErrors } from './settings/allErrors.ts'
16
16
  import {
17
17
  getSettings_DEPRECATED,
18
18
  rawSettingsContainsKey,
19
- } from './settings/settings.js'
20
- import { TOOL_RESULTS_SUBDIR } from './toolResultStorage.js'
21
- import { cleanupStaleAgentWorktrees } from './worktree.js'
19
+ } from './settings/settings.ts'
20
+ import { TOOL_RESULTS_SUBDIR } from './toolResultStorage.ts'
21
+ import { cleanupStaleAgentWorktrees } from './worktree.ts'
22
22
 
23
23
  const DEFAULT_CLEANUP_PERIOD_DAYS = 30
24
24
 
@@ -2,14 +2,14 @@ import {
2
2
  STATUS_TAG,
3
3
  SUMMARY_TAG,
4
4
  TASK_NOTIFICATION_TAG,
5
- } from '../constants/xml.js'
6
- import { BACKGROUND_BASH_SUMMARY_PREFIX } from '../tasks/LocalShellTask/LocalShellTask.js'
5
+ } from '../constants/xml.ts'
6
+ import { BACKGROUND_BASH_SUMMARY_PREFIX } from '../tasks/LocalShellTask/LocalShellTask.ts'
7
7
  import type {
8
8
  NormalizedUserMessage,
9
9
  RenderableMessage,
10
- } from '../types/message.js'
11
- import { isFullscreenEnvEnabled } from './fullscreen.js'
12
- import { extractTag } from './messages.js'
10
+ } from '../types/message.ts'
11
+ import { isFullscreenEnvEnabled } from './fullscreen.ts'
12
+ import { extractTag } from './messages.ts'
13
13
 
14
14
  function isCompletedBackgroundBash(
15
15
  msg: RenderableMessage,
@@ -1,7 +1,7 @@
1
1
  import type {
2
2
  RenderableMessage,
3
3
  SystemStopHookSummaryMessage,
4
- } from '../types/message.js'
4
+ } from '../types/message.ts'
5
5
 
6
6
  function isLabeledHookSummary(
7
7
  msg: RenderableMessage,
@@ -1,34 +1,34 @@
1
1
  import { feature } from 'bun:bundle'
2
2
  import type { UUID } from 'crypto'
3
- import { findToolByName, type Tools } from '../Tool.js'
4
- import { extractBashCommentLabel } from '../tools/BashTool/commentLabel.js'
5
- import { BASH_TOOL_NAME } from '../tools/BashTool/toolName.js'
6
- import { FILE_EDIT_TOOL_NAME } from '../tools/FileEditTool/constants.js'
7
- import { FILE_WRITE_TOOL_NAME } from '../tools/FileWriteTool/prompt.js'
8
- import { REPL_TOOL_NAME } from '../tools/REPLTool/constants.js'
9
- import { getReplPrimitiveTools } from '../tools/REPLTool/primitiveTools.js'
3
+ import { findToolByName, type Tools } from '../Tool.ts'
4
+ import { extractBashCommentLabel } from '../tools/BashTool/commentLabel.ts'
5
+ import { BASH_TOOL_NAME } from '../tools/BashTool/toolName.ts'
6
+ import { FILE_EDIT_TOOL_NAME } from '../tools/FileEditTool/constants.ts'
7
+ import { FILE_WRITE_TOOL_NAME } from '../tools/FileWriteTool/prompt.ts'
8
+ import { REPL_TOOL_NAME } from '../tools/REPLTool/constants.ts'
9
+ import { getReplPrimitiveTools } from '../tools/REPLTool/primitiveTools.ts'
10
10
  import {
11
11
  type BranchAction,
12
12
  type CommitKind,
13
13
  detectGitOperation,
14
14
  type PrAction,
15
- } from '../tools/shared/gitOperationTracking.js'
16
- import { TOOL_SEARCH_TOOL_NAME } from '../tools/ToolSearchTool/prompt.js'
15
+ } from '../tools/shared/gitOperationTracking.ts'
16
+ import { TOOL_SEARCH_TOOL_NAME } from '../tools/ToolSearchTool/prompt.ts'
17
17
  import type {
18
18
  CollapsedReadSearchGroup,
19
19
  CollapsibleMessage,
20
20
  RenderableMessage,
21
21
  StopHookInfo,
22
22
  SystemStopHookSummaryMessage,
23
- } from '../types/message.js'
24
- import { getDisplayPath } from './file.js'
25
- import { isFullscreenEnvEnabled } from './fullscreen.js'
23
+ } from '../types/message.ts'
24
+ import { getDisplayPath } from './file.ts'
25
+ import { isFullscreenEnvEnabled } from './fullscreen.ts'
26
26
  import {
27
27
  isAutoManagedMemoryFile,
28
28
  isAutoManagedMemoryPattern,
29
29
  isMemoryDirectory,
30
30
  isShellCommandTargetingMemory,
31
- } from './memoryFileDetection.js'
31
+ } from './memoryFileDetection.ts'
32
32
 
33
33
  /* eslint-disable @typescript-eslint/no-require-imports */
34
34
  const teamMemOps = feature('TEAMMEM')
@@ -1,4 +1,4 @@
1
- import type { AttachmentMessage, RenderableMessage } from '../types/message.js'
1
+ import type { AttachmentMessage, RenderableMessage } from '../types/message.ts'
2
2
 
3
3
  function isTeammateShutdownAttachment(
4
4
  msg: RenderableMessage,
@@ -1,4 +1,4 @@
1
- import { createAbortController } from './abortController.js'
1
+ import { createAbortController } from './abortController.ts'
2
2
 
3
3
  /**
4
4
  * Creates a combined AbortSignal that aborts when the input signal aborts,
@@ -1,21 +1,21 @@
1
1
  import { createHash, randomUUID, type UUID } from 'crypto'
2
2
  import { stat } from 'fs/promises'
3
3
  import { isAbsolute, join, relative, sep } from 'path'
4
- import { getOriginalCwd, getSessionId } from '../bootstrap/state.js'
4
+ import { getOriginalCwd, getSessionId } from '../bootstrap/state.ts'
5
5
  import type {
6
6
  AttributionSnapshotMessage,
7
7
  FileAttributionState,
8
- } from '../types/logs.js'
9
- import { getCwd } from './cwd.js'
10
- import { logForDebugging } from './debug.js'
11
- import { execFileNoThrowWithCwd } from './execFileNoThrow.js'
12
- import { getFsImplementation } from './fsOperations.js'
13
- import { isGeneratedFile } from './generatedFiles.js'
14
- import { getRemoteUrlForDir, resolveGitDir } from './git/gitFilesystem.js'
15
- import { findGitRoot, gitExe } from './git.js'
16
- import { logError } from './log.js'
17
- import { getCanonicalName, type ModelName } from './model/model.js'
18
- import { sequential } from './sequential.js'
8
+ } from '../types/logs.ts'
9
+ import { getCwd } from './cwd.ts'
10
+ import { logForDebugging } from './debug.ts'
11
+ import { execFileNoThrowWithCwd } from './execFileNoThrow.ts'
12
+ import { getFsImplementation } from './fsOperations.ts'
13
+ import { isGeneratedFile } from './generatedFiles.ts'
14
+ import { getRemoteUrlForDir, resolveGitDir } from './git/gitFilesystem.ts'
15
+ import { findGitRoot, gitExe } from './git.ts'
16
+ import { logError } from './log.ts'
17
+ import { getCanonicalName, type ModelName } from './model/model.ts'
18
+ import { sequential } from './sequential.ts'
19
19
 
20
20
  /**
21
21
  * List of repos where internal model names are allowed in trailers.
@@ -3,13 +3,13 @@ import { mkdir, readFile, writeFile } from 'fs/promises'
3
3
  import { homedir } from 'os'
4
4
  import { dirname, join } from 'path'
5
5
  import { pathToFileURL } from 'url'
6
- import { color } from '../components/design-system/color.js'
7
- import { supportsHyperlinks } from '../ink/supports-hyperlinks.js'
8
- import { logForDebugging } from './debug.js'
9
- import { isENOENT } from './errors.js'
10
- import { execFileNoThrow } from './execFileNoThrow.js'
11
- import { logError } from './log.js'
12
- import type { ThemeName } from './theme.js'
6
+ import { color } from '../components/design-system/color.ts'
7
+ import { supportsHyperlinks } from '../ink/supports-hyperlinks.ts'
8
+ import { logForDebugging } from './debug.ts'
9
+ import { isENOENT } from './errors.ts'
10
+ import { execFileNoThrow } from './execFileNoThrow.ts'
11
+ import { logError } from './log.ts'
12
+ import type { ThemeName } from './theme.ts'
13
13
 
14
14
  const EOL = '\n'
15
15
 
@@ -1,10 +1,10 @@
1
- import type { ToolUseContext } from '../../Tool.js'
1
+ import type { ToolUseContext } from '../../Tool.ts'
2
2
 
3
- import { logForDebugging } from '../debug.js'
4
- import { errorMessage } from '../errors.js'
5
- import { withResolvers } from '../withResolvers.js'
6
- import { isLockHeldLocally, releaseComputerUseLock } from './computerUseLock.js'
7
- import { unregisterEscHotkey } from './escHotkey.js'
3
+ import { logForDebugging } from '../debug.ts'
4
+ import { errorMessage } from '../errors.ts'
5
+ import { withResolvers } from '../withResolvers.ts'
6
+ import { isLockHeldLocally, releaseComputerUseLock } from './computerUseLock.ts'
7
+ import { unregisterEscHotkey } from './escHotkey.ts'
8
8
 
9
9
  // cu.apps.unhide is NOT one of the four @MainActor methods wrapped by
10
10
  // drainRunLoop's 30s backstop. On abort paths (where the user hit Ctrl+C
@@ -1,5 +1,5 @@
1
- import { normalizeNameForMCP } from '../../services/mcp/normalization.js'
2
- import { env } from '../env.js'
1
+ import { normalizeNameForMCP } from '../../services/mcp/normalization.ts'
2
+ import { env } from '../env.ts'
3
3
 
4
4
  export const COMPUTER_USE_MCP_SERVER_NAME = 'computer-use'
5
5
 
@@ -1,11 +1,11 @@
1
1
  import { mkdir, readFile, unlink, writeFile } from 'fs/promises'
2
2
  import { join } from 'path'
3
- import { getSessionId } from '../../bootstrap/state.js'
4
- import { registerCleanup } from '../../utils/cleanupRegistry.js'
5
- import { logForDebugging } from '../../utils/debug.js'
6
- import { getClaudeConfigHomeDir } from '../../utils/envUtils.js'
7
- import { jsonParse, jsonStringify } from '../../utils/slowOperations.js'
8
- import { getErrnoCode } from '../errors.js'
3
+ import { getSessionId } from '../../bootstrap/state.ts'
4
+ import { registerCleanup } from '../../utils/cleanupRegistry.ts'
5
+ import { logForDebugging } from '../../utils/debug.ts'
6
+ import { getClaudeConfigHomeDir } from '../../utils/envUtils.ts'
7
+ import { jsonParse, jsonStringify } from '../../utils/slowOperations.ts'
8
+ import { getErrnoCode } from '../errors.ts'
9
9
 
10
10
  const LOCK_FILENAME = 'computer-use.lock'
11
11