ummaya 0.2.14 → 0.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/npm-shrinkwrap.json +2 -2
- package/package.json +7 -4
- package/pyproject.toml +2 -2
- package/tui/package.json +1 -1
- package/tui/src/buddy/CompanionSprite.tsx +1 -2
- package/tui/src/buddy/useBuddyNotification.tsx +1 -2
- package/tui/src/cli/controlAuth.ts +20 -0
- package/tui/src/cli/handlers/auth.ts +7 -7
- package/tui/src/cli/handlers/mcp.tsx +0 -1
- package/tui/src/cli/handlers/util.tsx +2 -3
- package/tui/src/cli/print.ts +7 -4
- package/tui/src/commands/add-dir/add-dir.tsx +1 -2
- package/tui/src/commands/agents/agents.tsx +1 -2
- package/tui/src/commands/bridge/bridge.tsx +1 -2
- package/tui/src/commands/btw/btw.tsx +1 -2
- package/tui/src/commands/config/config.tsx +1 -2
- package/tui/src/commands/context/context.tsx +1 -2
- package/tui/src/commands/copy/copy.tsx +1 -2
- package/tui/src/commands/desktop/desktop.tsx +1 -2
- package/tui/src/commands/diff/diff.tsx +1 -2
- package/tui/src/commands/doctor/doctor.tsx +1 -2
- package/tui/src/commands/effort/effort.tsx +1 -2
- package/tui/src/commands/exit/exit.tsx +1 -2
- package/tui/src/commands/export/export.tsx +1 -2
- package/tui/src/commands/extra-usage/extra-usage.tsx +1 -2
- package/tui/src/commands/fast/fast.tsx +0 -1
- package/tui/src/commands/feedback/feedback.tsx +1 -2
- package/tui/src/commands/help/help.tsx +1 -2
- package/tui/src/commands/hooks/hooks.tsx +1 -2
- package/tui/src/commands/ide/ide.tsx +0 -1
- package/tui/src/commands/install.tsx +0 -1
- package/tui/src/commands/login/login.tsx +1 -2
- package/tui/src/commands/logout/logout.tsx +0 -1
- package/tui/src/commands/mcp/mcp.tsx +1 -2
- package/tui/src/commands/memory/memory.tsx +0 -1
- package/tui/src/commands/mobile/mobile.tsx +0 -1
- package/tui/src/commands/model/model.tsx +0 -1
- package/tui/src/commands/output-style/output-style.tsx +1 -2
- package/tui/src/commands/passes/passes.tsx +1 -2
- package/tui/src/commands/permissions/permissions.tsx +1 -2
- package/tui/src/commands/plan/plan.tsx +1 -2
- package/tui/src/commands/plugin/AddMarketplace.tsx +1 -2
- package/tui/src/commands/plugin/BrowseMarketplace.tsx +1 -2
- package/tui/src/commands/plugin/DiscoverPlugins.tsx +0 -1
- package/tui/src/commands/plugin/ManageMarketplaces.tsx +0 -1
- package/tui/src/commands/plugin/ManagePlugins.tsx +1 -2
- package/tui/src/commands/plugin/PluginErrors.tsx +1 -2
- package/tui/src/commands/plugin/PluginOptionsDialog.tsx +1 -2
- package/tui/src/commands/plugin/PluginOptionsFlow.tsx +1 -2
- package/tui/src/commands/plugin/PluginSettings.tsx +1 -2
- package/tui/src/commands/plugin/PluginTrustWarning.tsx +0 -1
- package/tui/src/commands/plugin/UnifiedInstalledCell.tsx +1 -2
- package/tui/src/commands/plugin/ValidatePlugin.tsx +1 -2
- package/tui/src/commands/plugin/index.tsx +0 -1
- package/tui/src/commands/plugin/plugin.tsx +1 -2
- package/tui/src/commands/plugin/pluginDetailsHelpers.tsx +1 -2
- package/tui/src/commands/privacy-settings/privacy-settings.tsx +0 -1
- package/tui/src/commands/rate-limit-options/rate-limit-options.tsx +1 -2
- package/tui/src/commands/remote-env/remote-env.tsx +1 -2
- package/tui/src/commands/remote-setup/remote-setup.tsx +0 -1
- package/tui/src/commands/resume/resume.tsx +1 -2
- package/tui/src/commands/review/UltrareviewOverageDialog.tsx +1 -2
- package/tui/src/commands/review/ultrareviewCommand.tsx +0 -1
- package/tui/src/commands/sandbox-toggle/sandbox-toggle.tsx +1 -2
- package/tui/src/commands/session/session.tsx +0 -1
- package/tui/src/commands/skills/skills.tsx +1 -2
- package/tui/src/commands/stats/stats.tsx +1 -2
- package/tui/src/commands/status/status.tsx +1 -2
- package/tui/src/commands/statusline.tsx +0 -1
- package/tui/src/commands/tag/tag.tsx +1 -2
- package/tui/src/commands/tasks/tasks.tsx +1 -2
- package/tui/src/commands/terminalSetup/terminalSetup.tsx +1 -2
- package/tui/src/commands/theme/theme.tsx +1 -2
- package/tui/src/commands/thinkback/thinkback.tsx +0 -1
- package/tui/src/commands/ultraplan.tsx +0 -1
- package/tui/src/commands/usage/usage.tsx +1 -2
- package/tui/src/commands/voice/voice.ts +2 -2
- package/tui/src/components/AgentProgressLine.tsx +1 -2
- package/tui/src/components/App.tsx +1 -2
- package/tui/src/components/ApproveApiKey.tsx +1 -2
- package/tui/src/components/AutoModeOptInDialog.tsx +0 -1
- package/tui/src/components/AutoUpdater.tsx +1 -2
- package/tui/src/components/AutoUpdaterWrapper.tsx +1 -2
- package/tui/src/components/AwsAuthStatusBox.tsx +1 -2
- package/tui/src/components/BaseTextInput.tsx +0 -1
- package/tui/src/components/BashModeProgress.tsx +1 -2
- package/tui/src/components/BridgeDialog.tsx +1 -2
- package/tui/src/components/BypassPermissionsModeDialog.tsx +0 -1
- package/tui/src/components/ChannelDowngradeDialog.tsx +1 -2
- package/tui/src/components/ClaudeCodeHint/PluginHintMenu.tsx +1 -2
- package/tui/src/components/ClaudeMdExternalIncludesDialog.tsx +0 -1
- package/tui/src/components/ClickableImageRef.tsx +1 -2
- package/tui/src/components/CompactSummary.tsx +1 -2
- package/tui/src/components/ConfigurableShortcutHint.tsx +1 -2
- package/tui/src/components/ContextSuggestions.tsx +1 -2
- package/tui/src/components/ContextVisualization.tsx +1 -2
- package/tui/src/components/CoordinatorAgentStatus.tsx +1 -2
- package/tui/src/components/CostThresholdDialog.tsx +0 -1
- package/tui/src/components/CtrlOToExpand.tsx +1 -2
- package/tui/src/components/CustomSelect/SelectMulti.tsx +1 -2
- package/tui/src/components/CustomSelect/select-input-option.tsx +1 -2
- package/tui/src/components/CustomSelect/select-option.tsx +1 -2
- package/tui/src/components/CustomSelect/select.tsx +1 -2
- package/tui/src/components/DesktopHandoff.tsx +0 -1
- package/tui/src/components/DesktopUpsell/DesktopUpsellStartup.tsx +0 -1
- package/tui/src/components/DevBar.tsx +1 -2
- package/tui/src/components/DevChannelsDialog.tsx +1 -2
- package/tui/src/components/DiagnosticsDisplay.tsx +1 -2
- package/tui/src/components/EffortCallout.tsx +1 -2
- package/tui/src/components/ExitFlow.tsx +1 -2
- package/tui/src/components/ExportDialog.tsx +1 -2
- package/tui/src/components/FallbackToolUseErrorMessage.tsx +0 -1
- package/tui/src/components/FallbackToolUseRejectedMessage.tsx +1 -2
- package/tui/src/components/FastIcon.tsx +1 -2
- package/tui/src/components/Feedback.tsx +0 -1
- package/tui/src/components/FeedbackSurvey/FeedbackSurvey.tsx +1 -2
- package/tui/src/components/FeedbackSurvey/FeedbackSurveyView.tsx +0 -1
- package/tui/src/components/FeedbackSurvey/TranscriptSharePrompt.tsx +0 -1
- package/tui/src/components/FeedbackSurvey/useFeedbackSurvey.tsx +0 -1
- package/tui/src/components/FeedbackSurvey/useMemorySurvey.tsx +0 -1
- package/tui/src/components/FeedbackSurvey/usePostCompactSurvey.tsx +0 -1
- package/tui/src/components/FeedbackSurvey/useSurveyState.tsx +1 -2
- package/tui/src/components/FileEditToolDiff.tsx +1 -2
- package/tui/src/components/FileEditToolUpdatedMessage.tsx +1 -2
- package/tui/src/components/FileEditToolUseRejectedMessage.tsx +1 -2
- package/tui/src/components/FilePathLink.tsx +1 -2
- package/tui/src/components/FullscreenLayout.tsx +1 -2
- package/tui/src/components/GlobalSearchDialog.tsx +1 -2
- package/tui/src/components/HelpV2/Commands.tsx +1 -2
- package/tui/src/components/HelpV2/General.tsx +0 -1
- package/tui/src/components/HelpV2/HelpV2.tsx +0 -1
- package/tui/src/components/HighlightedCode/Fallback.tsx +1 -2
- package/tui/src/components/HighlightedCode.tsx +1 -2
- package/tui/src/components/HistorySearchDialog.tsx +1 -2
- package/tui/src/components/IdeAutoConnectDialog.tsx +1 -2
- package/tui/src/components/IdeOnboardingDialog.tsx +0 -1
- package/tui/src/components/IdeStatusIndicator.tsx +1 -2
- package/tui/src/components/IdleReturnDialog.tsx +1 -2
- package/tui/src/components/InterruptedByUser.tsx +0 -1
- package/tui/src/components/InvalidConfigDialog.tsx +1 -2
- package/tui/src/components/InvalidSettingsDialog.tsx +1 -2
- package/tui/src/components/KeybindingWarnings.tsx +1 -2
- package/tui/src/components/LanguagePicker.tsx +1 -2
- package/tui/src/components/LogSelector.tsx +0 -1
- package/tui/src/components/LogoV2/AnimatedAsterisk.tsx +1 -2
- package/tui/src/components/LogoV2/AnimatedClawd.tsx +1 -2
- package/tui/src/components/LogoV2/ChannelsNotice.tsx +0 -1
- package/tui/src/components/LogoV2/Clawd.tsx +1 -2
- package/tui/src/components/LogoV2/CondensedLogo.tsx +0 -1
- package/tui/src/components/LogoV2/EmergencyTip.tsx +0 -1
- package/tui/src/components/LogoV2/Feed.tsx +1 -2
- package/tui/src/components/LogoV2/FeedColumn.tsx +1 -2
- package/tui/src/components/LogoV2/GuestPassesUpsell.tsx +0 -1
- package/tui/src/components/LogoV2/LogoV2.tsx +0 -1
- package/tui/src/components/LogoV2/Opus1mMergeNotice.tsx +1 -2
- package/tui/src/components/LogoV2/OverageCreditUpsell.tsx +1 -2
- package/tui/src/components/LogoV2/VoiceModeNotice.tsx +1 -2
- package/tui/src/components/LogoV2/feedConfigs.tsx +0 -1
- package/tui/src/components/LspRecommendation/LspRecommendationMenu.tsx +1 -2
- package/tui/src/components/MCPServerApprovalDialog.tsx +1 -2
- package/tui/src/components/MCPServerDesktopImportDialog.tsx +0 -1
- package/tui/src/components/MCPServerDialogCopy.tsx +0 -1
- package/tui/src/components/MCPServerMultiselectDialog.tsx +1 -2
- package/tui/src/components/ManagedSettingsSecurityDialog/ManagedSettingsSecurityDialog.tsx +0 -1
- package/tui/src/components/Markdown.tsx +1 -2
- package/tui/src/components/MarkdownTable.tsx +1 -2
- package/tui/src/components/MemoryUsageIndicator.tsx +1 -2
- package/tui/src/components/Message.tsx +1 -2
- package/tui/src/components/MessageModel.tsx +1 -2
- package/tui/src/components/MessageResponse.tsx +1 -2
- package/tui/src/components/MessageRow.tsx +1 -2
- package/tui/src/components/MessageSelector.tsx +1 -2
- package/tui/src/components/MessageTimestamp.tsx +1 -2
- package/tui/src/components/Messages.tsx +0 -1
- package/tui/src/components/ModelPicker.tsx +0 -1
- package/tui/src/components/NativeAutoUpdater.tsx +1 -2
- package/tui/src/components/NotebookEditToolUseRejectedMessage.tsx +1 -2
- package/tui/src/components/OffscreenFreeze.tsx +1 -2
- package/tui/src/components/Onboarding.tsx +2 -3
- package/tui/src/components/OutputStylePicker.tsx +0 -1
- package/tui/src/components/PackageManagerAutoUpdater.tsx +0 -1
- package/tui/src/components/Passes/Passes.tsx +0 -1
- package/tui/src/components/PrBadge.tsx +1 -2
- package/tui/src/components/PressEnterToContinue.tsx +1 -2
- package/tui/src/components/PromptInput/HistorySearchInput.tsx +1 -2
- package/tui/src/components/PromptInput/IssueFlagBanner.tsx +1 -2
- package/tui/src/components/PromptInput/Notifications.tsx +1 -2
- package/tui/src/components/PromptInput/PromptInput.tsx +0 -1
- package/tui/src/components/PromptInput/PromptInputFooter.tsx +1 -2
- package/tui/src/components/PromptInput/PromptInputFooterLeftSide.tsx +1 -2
- package/tui/src/components/PromptInput/PromptInputFooterSuggestions.tsx +1 -2
- package/tui/src/components/PromptInput/PromptInputHelpMenu.tsx +1 -2
- package/tui/src/components/PromptInput/PromptInputModeIndicator.tsx +1 -2
- package/tui/src/components/PromptInput/PromptInputQueuedCommands.tsx +1 -2
- package/tui/src/components/PromptInput/PromptInputStashNotice.tsx +1 -2
- package/tui/src/components/PromptInput/SandboxPromptFooterHint.tsx +1 -2
- package/tui/src/components/PromptInput/ShimmeredInput.tsx +1 -2
- package/tui/src/components/PromptInput/VoiceIndicator.tsx +1 -2
- package/tui/src/components/QuickOpenDialog.tsx +1 -2
- package/tui/src/components/RemoteCallout.tsx +0 -1
- package/tui/src/components/RemoteEnvironmentDialog.tsx +0 -1
- package/tui/src/components/ResumeTask.tsx +0 -1
- package/tui/src/components/SandboxViolationExpandedView.tsx +1 -2
- package/tui/src/components/ScrollKeybindingHandler.tsx +0 -1
- package/tui/src/components/SearchBox.tsx +1 -2
- package/tui/src/components/SessionBackgroundHint.tsx +1 -2
- package/tui/src/components/SessionPreview.tsx +1 -2
- package/tui/src/components/Settings/Config.tsx +0 -1
- package/tui/src/components/Settings/Settings.tsx +1 -2
- package/tui/src/components/Settings/Status.tsx +1 -2
- package/tui/src/components/Settings/Usage.tsx +1 -2
- package/tui/src/components/ShowInIDEPrompt.tsx +1 -2
- package/tui/src/components/SkillImprovementSurvey.tsx +1 -2
- package/tui/src/components/Spinner/FlashingChar.tsx +1 -2
- package/tui/src/components/Spinner/GlimmerMessage.tsx +1 -2
- package/tui/src/components/Spinner/ShimmerChar.tsx +1 -2
- package/tui/src/components/Spinner/SpinnerAnimationRow.tsx +1 -2
- package/tui/src/components/Spinner/SpinnerGlyph.tsx +1 -2
- package/tui/src/components/Spinner/TeammateSpinnerLine.tsx +1 -2
- package/tui/src/components/Spinner/TeammateSpinnerTree.tsx +1 -2
- package/tui/src/components/Spinner.tsx +0 -1
- package/tui/src/components/Stats.tsx +0 -1
- package/tui/src/components/StatusLine.tsx +1 -2
- package/tui/src/components/StatusNotices.tsx +1 -2
- package/tui/src/components/StructuredDiff/Fallback.tsx +1 -2
- package/tui/src/components/StructuredDiff.tsx +1 -2
- package/tui/src/components/StructuredDiffList.tsx +1 -2
- package/tui/src/components/TagTabs.tsx +1 -2
- package/tui/src/components/TaskListV2.tsx +1 -2
- package/tui/src/components/TeammateViewHeader.tsx +1 -2
- package/tui/src/components/TeleportError.tsx +0 -1
- package/tui/src/components/TeleportProgress.tsx +1 -2
- package/tui/src/components/TeleportRepoMismatchDialog.tsx +0 -1
- package/tui/src/components/TeleportStash.tsx +1 -2
- package/tui/src/components/TextInput.tsx +1 -2
- package/tui/src/components/ThemePicker.tsx +0 -1
- package/tui/src/components/ThinkingToggle.tsx +0 -1
- package/tui/src/components/TokenWarning.tsx +1 -2
- package/tui/src/components/ToolUseLoader.tsx +1 -2
- package/tui/src/components/TrustDialog/TrustDialog.tsx +0 -1
- package/tui/src/components/ValidationErrorsList.tsx +1 -2
- package/tui/src/components/VimTextInput.tsx +1 -2
- package/tui/src/components/VirtualMessageList.tsx +1 -2
- package/tui/src/components/WorktreeExitDialog.tsx +1 -2
- package/tui/src/components/agents/AgentDetail.tsx +0 -1
- package/tui/src/components/agents/AgentEditor.tsx +1 -2
- package/tui/src/components/agents/AgentNavigationFooter.tsx +1 -2
- package/tui/src/components/agents/AgentsList.tsx +0 -1
- package/tui/src/components/agents/AgentsMenu.tsx +1 -2
- package/tui/src/components/agents/ColorPicker.tsx +1 -2
- package/tui/src/components/agents/ModelSelector.tsx +1 -2
- package/tui/src/components/agents/ToolSelector.tsx +1 -2
- package/tui/src/components/agents/new-agent-creation/CreateAgentWizard.tsx +1 -2
- package/tui/src/components/agents/new-agent-creation/wizard-steps/ColorStep.tsx +1 -2
- package/tui/src/components/agents/new-agent-creation/wizard-steps/ConfirmStep.tsx +0 -1
- package/tui/src/components/agents/new-agent-creation/wizard-steps/ConfirmStepWrapper.tsx +1 -2
- package/tui/src/components/agents/new-agent-creation/wizard-steps/DescriptionStep.tsx +0 -1
- package/tui/src/components/agents/new-agent-creation/wizard-steps/GenerateStep.tsx +1 -2
- package/tui/src/components/agents/new-agent-creation/wizard-steps/LocationStep.tsx +1 -2
- package/tui/src/components/agents/new-agent-creation/wizard-steps/MemoryStep.tsx +1 -2
- package/tui/src/components/agents/new-agent-creation/wizard-steps/MethodStep.tsx +0 -1
- package/tui/src/components/agents/new-agent-creation/wizard-steps/ModelStep.tsx +1 -2
- package/tui/src/components/agents/new-agent-creation/wizard-steps/PromptStep.tsx +1 -2
- package/tui/src/components/agents/new-agent-creation/wizard-steps/ToolsStep.tsx +1 -2
- package/tui/src/components/agents/new-agent-creation/wizard-steps/TypeStep.tsx +1 -2
- package/tui/src/components/design-system/Byline.tsx +1 -2
- package/tui/src/components/design-system/Dialog.tsx +1 -2
- package/tui/src/components/design-system/Divider.tsx +1 -2
- package/tui/src/components/design-system/FuzzyPicker.tsx +1 -2
- package/tui/src/components/design-system/KeyboardShortcutHint.tsx +1 -2
- package/tui/src/components/design-system/ListItem.tsx +1 -2
- package/tui/src/components/design-system/LoadingState.tsx +0 -1
- package/tui/src/components/design-system/Pane.tsx +1 -2
- package/tui/src/components/design-system/ProgressBar.tsx +1 -2
- package/tui/src/components/design-system/Ratchet.tsx +1 -2
- package/tui/src/components/design-system/StatusIcon.tsx +1 -2
- package/tui/src/components/design-system/Tabs.tsx +1 -2
- package/tui/src/components/design-system/ThemeProvider.tsx +1 -2
- package/tui/src/components/design-system/ThemedBox.tsx +1 -2
- package/tui/src/components/design-system/ThemedText.tsx +1 -2
- package/tui/src/components/diff/DiffDetailView.tsx +1 -2
- package/tui/src/components/diff/DiffDialog.tsx +1 -2
- package/tui/src/components/diff/DiffFileList.tsx +1 -2
- package/tui/src/components/grove/Grove.tsx +0 -1
- package/tui/src/components/hooks/HooksConfigMenu.tsx +0 -1
- package/tui/src/components/hooks/PromptDialog.tsx +1 -2
- package/tui/src/components/hooks/SelectEventMode.tsx +0 -1
- package/tui/src/components/hooks/SelectHookMode.tsx +0 -1
- package/tui/src/components/hooks/SelectMatcherMode.tsx +0 -1
- package/tui/src/components/hooks/ViewHookMode.tsx +0 -1
- package/tui/src/components/mcp/CapabilitiesSection.tsx +1 -2
- package/tui/src/components/mcp/ElicitationDialog.tsx +0 -1
- package/tui/src/components/mcp/MCPAgentServerMenu.tsx +1 -2
- package/tui/src/components/mcp/MCPListPanel.tsx +0 -1
- package/tui/src/components/mcp/MCPReconnect.tsx +1 -2
- package/tui/src/components/mcp/MCPRemoteServerMenu.tsx +2 -3
- package/tui/src/components/mcp/MCPSettings.tsx +0 -1
- package/tui/src/components/mcp/MCPStdioServerMenu.tsx +1 -2
- package/tui/src/components/mcp/MCPToolDetailView.tsx +1 -2
- package/tui/src/components/mcp/MCPToolListView.tsx +1 -2
- package/tui/src/components/mcp/McpParsingWarnings.tsx +0 -1
- package/tui/src/components/mcp/utils/reconnectHelpers.tsx +1 -2
- package/tui/src/components/memory/MemoryFileSelector.tsx +1 -2
- package/tui/src/components/memory/MemoryUpdateNotification.tsx +1 -2
- package/tui/src/components/messageActions.tsx +1 -2
- package/tui/src/components/messages/AdvisorMessage.tsx +1 -2
- package/tui/src/components/messages/AssistantRedactedThinkingMessage.tsx +1 -2
- package/tui/src/components/messages/AssistantThinkingMessage.tsx +1 -2
- package/tui/src/components/messages/AssistantToolUseMessage.tsx +0 -1
- package/tui/src/components/messages/AttachmentMessage.tsx +1 -2
- package/tui/src/components/messages/CollapsedReadSearchContent.tsx +1 -2
- package/tui/src/components/messages/CompactBoundaryMessage.tsx +1 -2
- package/tui/src/components/messages/GroupedToolUseContent.tsx +1 -2
- package/tui/src/components/messages/HighlightedThinkingText.tsx +1 -2
- package/tui/src/components/messages/HookProgressMessage.tsx +1 -2
- package/tui/src/components/messages/PlanApprovalMessage.tsx +1 -2
- package/tui/src/components/messages/RateLimitMessage.tsx +1 -2
- package/tui/src/components/messages/ShutdownMessage.tsx +1 -2
- package/tui/src/components/messages/SystemAPIErrorMessage.tsx +1 -2
- package/tui/src/components/messages/SystemTextMessage.tsx +1 -2
- package/tui/src/components/messages/TaskAssignmentMessage.tsx +1 -2
- package/tui/src/components/messages/UserAgentNotificationMessage.tsx +1 -2
- package/tui/src/components/messages/UserBashInputMessage.tsx +1 -2
- package/tui/src/components/messages/UserBashOutputMessage.tsx +1 -2
- package/tui/src/components/messages/UserChannelMessage.tsx +1 -2
- package/tui/src/components/messages/UserCommandMessage.tsx +1 -2
- package/tui/src/components/messages/UserImageMessage.tsx +1 -2
- package/tui/src/components/messages/UserLocalCommandOutputMessage.tsx +1 -2
- package/tui/src/components/messages/UserMemoryInputMessage.tsx +1 -2
- package/tui/src/components/messages/UserPlanMessage.tsx +1 -2
- package/tui/src/components/messages/UserPromptMessage.tsx +1 -2
- package/tui/src/components/messages/UserResourceUpdateMessage.tsx +1 -2
- package/tui/src/components/messages/UserTeammateMessage.tsx +1 -2
- package/tui/src/components/messages/UserTextMessage.tsx +1 -2
- package/tui/src/components/messages/UserToolResultMessage/RejectedPlanMessage.tsx +0 -1
- package/tui/src/components/messages/UserToolResultMessage/RejectedToolUseMessage.tsx +1 -2
- package/tui/src/components/messages/UserToolResultMessage/UserToolCanceledMessage.tsx +1 -2
- package/tui/src/components/messages/UserToolResultMessage/UserToolErrorMessage.tsx +1 -2
- package/tui/src/components/messages/UserToolResultMessage/UserToolRejectMessage.tsx +1 -2
- package/tui/src/components/messages/UserToolResultMessage/UserToolResultMessage.tsx +1 -2
- package/tui/src/components/messages/UserToolResultMessage/UserToolSuccessMessage.tsx +1 -2
- package/tui/src/components/messages/UserToolResultMessage/utils.tsx +0 -1
- package/tui/src/components/messages/teamMemCollapsed.tsx +1 -2
- package/tui/src/components/permissions/AskUserQuestionPermissionRequest/AskUserQuestionPermissionRequest.tsx +1 -2
- package/tui/src/components/permissions/AskUserQuestionPermissionRequest/PreviewBox.tsx +1 -2
- package/tui/src/components/permissions/AskUserQuestionPermissionRequest/PreviewQuestionView.tsx +1 -2
- package/tui/src/components/permissions/AskUserQuestionPermissionRequest/QuestionNavigationBar.tsx +1 -2
- package/tui/src/components/permissions/AskUserQuestionPermissionRequest/QuestionView.tsx +1 -2
- package/tui/src/components/permissions/AskUserQuestionPermissionRequest/SubmitQuestionsView.tsx +1 -2
- package/tui/src/components/permissions/BashPermissionRequest/BashPermissionRequest.tsx +1 -2
- package/tui/src/components/permissions/BashPermissionRequest/bashToolUseOptions.tsx +0 -1
- package/tui/src/components/permissions/ComputerUseApproval/ComputerUseApproval.tsx +0 -1
- package/tui/src/components/permissions/EnterPlanModePermissionRequest/EnterPlanModePermissionRequest.tsx +0 -1
- package/tui/src/components/permissions/ExitPlanModePermissionRequest/ExitPlanModePermissionRequest.tsx +0 -1
- package/tui/src/components/permissions/FallbackPermissionRequest.tsx +1 -2
- package/tui/src/components/permissions/FileEditPermissionRequest/FileEditPermissionRequest.tsx +1 -2
- package/tui/src/components/permissions/FilePermissionDialog/FilePermissionDialog.tsx +1 -2
- package/tui/src/components/permissions/FilePermissionDialog/permissionOptions.tsx +0 -1
- package/tui/src/components/permissions/FileWritePermissionRequest/FileWritePermissionRequest.tsx +1 -2
- package/tui/src/components/permissions/FileWritePermissionRequest/FileWriteToolDiff.tsx +1 -2
- package/tui/src/components/permissions/FilesystemPermissionRequest/FilesystemPermissionRequest.tsx +1 -2
- package/tui/src/components/permissions/NotebookEditPermissionRequest/NotebookEditPermissionRequest.tsx +1 -2
- package/tui/src/components/permissions/NotebookEditPermissionRequest/NotebookEditToolDiff.tsx +1 -2
- package/tui/src/components/permissions/PermissionDecisionDebugInfo.tsx +1 -2
- package/tui/src/components/permissions/PermissionDialog.tsx +1 -2
- package/tui/src/components/permissions/PermissionExplanation.tsx +1 -2
- package/tui/src/components/permissions/PermissionPrompt.tsx +0 -1
- package/tui/src/components/permissions/PermissionRequest.tsx +0 -1
- package/tui/src/components/permissions/PermissionRequestTitle.tsx +1 -2
- package/tui/src/components/permissions/PermissionRuleExplanation.tsx +1 -2
- package/tui/src/components/permissions/PowerShellPermissionRequest/PowerShellPermissionRequest.tsx +1 -2
- package/tui/src/components/permissions/PowerShellPermissionRequest/powershellToolUseOptions.tsx +0 -1
- package/tui/src/components/permissions/SandboxPermissionRequest.tsx +0 -1
- package/tui/src/components/permissions/SedEditPermissionRequest/SedEditPermissionRequest.tsx +1 -2
- package/tui/src/components/permissions/SkillPermissionRequest/SkillPermissionRequest.tsx +0 -1
- package/tui/src/components/permissions/WebFetchPermissionRequest/WebFetchPermissionRequest.tsx +0 -1
- package/tui/src/components/permissions/WorkerBadge.tsx +1 -2
- package/tui/src/components/permissions/WorkerPendingPermission.tsx +1 -2
- package/tui/src/components/permissions/rules/AddPermissionRules.tsx +0 -1
- package/tui/src/components/permissions/rules/AddWorkspaceDirectory.tsx +0 -1
- package/tui/src/components/permissions/rules/PermissionRuleDescription.tsx +1 -2
- package/tui/src/components/permissions/rules/PermissionRuleInput.tsx +1 -2
- package/tui/src/components/permissions/rules/PermissionRuleList.tsx +0 -1
- package/tui/src/components/permissions/rules/RecentDenialsTab.tsx +1 -2
- package/tui/src/components/permissions/rules/RemoveWorkspaceDirectory.tsx +0 -1
- package/tui/src/components/permissions/rules/WorkspaceTab.tsx +1 -2
- package/tui/src/components/permissions/shellPermissionHelpers.tsx +1 -2
- package/tui/src/components/sandbox/SandboxConfigTab.tsx +1 -2
- package/tui/src/components/sandbox/SandboxDependenciesTab.tsx +1 -2
- package/tui/src/components/sandbox/SandboxDoctorSection.tsx +1 -2
- package/tui/src/components/sandbox/SandboxOverridesTab.tsx +0 -1
- package/tui/src/components/sandbox/SandboxSettings.tsx +0 -1
- package/tui/src/components/shell/ExpandShellOutputContext.tsx +1 -2
- package/tui/src/components/shell/OutputLine.tsx +1 -2
- package/tui/src/components/shell/ShellProgressMessage.tsx +1 -2
- package/tui/src/components/shell/ShellTimeDisplay.tsx +1 -2
- package/tui/src/components/skills/SkillsMenu.tsx +0 -1
- package/tui/src/components/tasks/AsyncAgentDetailDialog.tsx +1 -2
- package/tui/src/components/tasks/BackgroundTask.tsx +1 -2
- package/tui/src/components/tasks/BackgroundTaskStatus.tsx +1 -2
- package/tui/src/components/tasks/BackgroundTasksDialog.tsx +1 -2
- package/tui/src/components/tasks/DreamDetailDialog.tsx +1 -2
- package/tui/src/components/tasks/InProcessTeammateDetailDialog.tsx +1 -2
- package/tui/src/components/tasks/RemoteSessionDetailDialog.tsx +0 -1
- package/tui/src/components/tasks/RemoteSessionProgress.tsx +1 -2
- package/tui/src/components/tasks/ShellDetailDialog.tsx +1 -2
- package/tui/src/components/tasks/ShellProgress.tsx +1 -2
- package/tui/src/components/tasks/renderToolActivity.tsx +1 -2
- package/tui/src/components/tasks/taskStatusUtils.tsx +1 -2
- package/tui/src/components/teams/TeamStatus.tsx +1 -2
- package/tui/src/components/teams/TeamsDialog.tsx +1 -2
- package/tui/src/components/ui/OrderedList.tsx +1 -2
- package/tui/src/components/ui/OrderedListItem.tsx +1 -2
- package/tui/src/components/ui/TreeSelect.tsx +1 -2
- package/tui/src/components/wizard/WizardDialogLayout.tsx +1 -2
- package/tui/src/components/wizard/WizardNavigationFooter.tsx +1 -2
- package/tui/src/components/wizard/WizardProvider.tsx +1 -2
- package/tui/src/context/QueuedMessageContext.tsx +1 -2
- package/tui/src/context/fpsMetrics.tsx +1 -2
- package/tui/src/context/mailbox.tsx +1 -2
- package/tui/src/context/modalContext.tsx +1 -2
- package/tui/src/context/notifications.tsx +1 -2
- package/tui/src/context/overlayContext.tsx +1 -2
- package/tui/src/context/promptOverlayContext.tsx +1 -2
- package/tui/src/context/stats.tsx +1 -2
- package/tui/src/context/voice.tsx +1 -2
- package/tui/src/dialogLaunchers.tsx +0 -1
- package/tui/src/entrypoints/cli.tsx +0 -1
- package/tui/src/hooks/notifs/useCanSwitchToExistingSubscription.tsx +0 -1
- package/tui/src/hooks/notifs/useDeprecationWarningNotification.tsx +1 -2
- package/tui/src/hooks/notifs/useFastModeNotification.tsx +1 -2
- package/tui/src/hooks/notifs/useIDEStatusIndicator.tsx +1 -2
- package/tui/src/hooks/notifs/useInstallMessages.tsx +1 -2
- package/tui/src/hooks/notifs/useLspInitializationNotification.tsx +1 -2
- package/tui/src/hooks/notifs/useMcpConnectivityStatus.tsx +0 -1
- package/tui/src/hooks/notifs/useModelMigrationNotifications.tsx +1 -2
- package/tui/src/hooks/notifs/useNpmDeprecationNotification.tsx +1 -2
- package/tui/src/hooks/notifs/usePluginAutoupdateNotification.tsx +1 -2
- package/tui/src/hooks/notifs/usePluginInstallationStatus.tsx +1 -2
- package/tui/src/hooks/notifs/useRateLimitWarningNotification.tsx +1 -2
- package/tui/src/hooks/notifs/useSettingsErrors.tsx +1 -2
- package/tui/src/hooks/useApiKeyVerification.ts +7 -7
- package/tui/src/hooks/useArrowKeyHistory.tsx +1 -2
- package/tui/src/hooks/useCanUseTool.tsx +0 -1
- package/tui/src/hooks/useChromeExtensionNotification.tsx +0 -1
- package/tui/src/hooks/useClaudeCodeHintRecommendation.tsx +1 -2
- package/tui/src/hooks/useCommandKeybindings.tsx +1 -2
- package/tui/src/hooks/useGlobalKeybindings.tsx +1 -2
- package/tui/src/hooks/useIDEIntegration.tsx +1 -2
- package/tui/src/hooks/useLspPluginRecommendation.tsx +1 -2
- package/tui/src/hooks/useOfficialMarketplaceNotification.tsx +0 -1
- package/tui/src/hooks/usePluginRecommendationBase.tsx +1 -2
- package/tui/src/hooks/usePromptsFromClaudeInChrome.tsx +1 -2
- package/tui/src/hooks/useReplBridge.tsx +1 -2
- package/tui/src/hooks/useTypeahead.tsx +0 -1
- package/tui/src/hooks/useVoiceIntegration.tsx +1 -2
- package/tui/src/ink/Ansi.tsx +1 -2
- package/tui/src/ink/components/AlternateScreen.tsx +1 -2
- package/tui/src/ink/components/App.tsx +0 -1
- package/tui/src/ink/components/Box.tsx +1 -2
- package/tui/src/ink/components/Button.tsx +1 -2
- package/tui/src/ink/components/ClockContext.tsx +1 -2
- package/tui/src/ink/components/ErrorOverview.tsx +1 -2
- package/tui/src/ink/components/Link.tsx +1 -2
- package/tui/src/ink/components/Newline.tsx +1 -2
- package/tui/src/ink/components/NoSelect.tsx +1 -2
- package/tui/src/ink/components/RawAnsi.tsx +1 -2
- package/tui/src/ink/components/ScrollBox.tsx +1 -2
- package/tui/src/ink/components/Spacer.tsx +1 -2
- package/tui/src/ink/components/TerminalFocusContext.tsx +1 -2
- package/tui/src/ink/components/TerminalSizeContext.tsx +1 -2
- package/tui/src/ink/components/Text.tsx +1 -2
- package/tui/src/ink/ink.tsx +0 -1
- package/tui/src/interactiveHelpers.tsx +0 -1
- package/tui/src/keybindings/KeybindingContext.tsx +1 -2
- package/tui/src/keybindings/KeybindingProviderSetup.tsx +1 -2
- package/tui/src/main.tsx +0 -1
- package/tui/src/moreright/useMoreRight.tsx +1 -2
- package/tui/src/replLauncher.tsx +1 -2
- package/tui/src/screens/Doctor.tsx +0 -1
- package/tui/src/screens/REPL.tsx +0 -1
- package/tui/src/screens/ResumeConversation.tsx +0 -1
- package/tui/src/services/mcp/MCPConnectionManager.tsx +1 -2
- package/tui/src/services/mcp/claudeai.ts +1 -1
- package/tui/src/services/mcpServerApproval.tsx +1 -2
- package/tui/src/services/oauth/client.ts +15 -15
- package/tui/src/services/oauth/getOauthProfile.ts +2 -2
- package/tui/src/services/oauth/index.ts +12 -18
- package/tui/src/services/policyLimits/index.ts +3 -3
- package/tui/src/services/remoteManagedSettings/index.ts +3 -3
- package/tui/src/services/remoteManagedSettings/securityCheck.tsx +1 -2
- package/tui/src/services/remoteManagedSettings/syncCache.ts +3 -3
- package/tui/src/services/voiceStreamSTT.ts +2 -2
- package/tui/src/state/AppState.tsx +1 -2
- package/tui/src/tasks/InProcessTeammateTask/InProcessTeammateTask.tsx +1 -2
- package/tui/src/tasks/LocalAgentTask/LocalAgentTask.tsx +1 -2
- package/tui/src/tasks/LocalShellTask/LocalShellTask.tsx +1 -2
- package/tui/src/tasks/RemoteAgentTask/RemoteAgentTask.tsx +0 -1
- package/tui/src/tools/AgentTool/UI.tsx +1 -2
- package/tui/src/tools/BashTool/BashToolResultMessage.tsx +0 -1
- package/tui/src/tools/BashTool/UI.tsx +1 -2
- package/tui/src/tools/BriefTool/UI.tsx +0 -1
- package/tui/src/tools/ConfigTool/ConfigTool.ts +2 -2
- package/tui/src/tools/ConfigTool/UI.tsx +1 -2
- package/tui/src/tools/EnterPlanModeTool/UI.tsx +0 -1
- package/tui/src/tools/EnterWorktreeTool/UI.tsx +1 -2
- package/tui/src/tools/ExitPlanModeTool/UI.tsx +0 -1
- package/tui/src/tools/ExitWorktreeTool/UI.tsx +1 -2
- package/tui/src/tools/FileEditTool/UI.tsx +1 -2
- package/tui/src/tools/FileReadTool/UI.tsx +1 -2
- package/tui/src/tools/FileWriteTool/UI.tsx +1 -2
- package/tui/src/tools/GlobTool/UI.tsx +1 -2
- package/tui/src/tools/GrepTool/UI.tsx +1 -2
- package/tui/src/tools/LSPTool/UI.tsx +1 -2
- package/tui/src/tools/ListMcpResourcesTool/UI.tsx +1 -2
- package/tui/src/tools/MCPTool/UI.tsx +1 -2
- package/tui/src/tools/NotebookEditTool/UI.tsx +1 -2
- package/tui/src/tools/PowerShellTool/UI.tsx +0 -1
- package/tui/src/tools/ReadMcpResourceTool/UI.tsx +1 -2
- package/tui/src/tools/RemoteTriggerTool/UI.tsx +1 -2
- package/tui/src/tools/ScheduleCronTool/UI.tsx +1 -2
- package/tui/src/tools/SendMessageTool/UI.tsx +1 -2
- package/tui/src/tools/SkillTool/UI.tsx +1 -2
- package/tui/src/tools/TaskStopTool/UI.tsx +1 -2
- package/tui/src/tools/TeamCreateTool/UI.tsx +1 -2
- package/tui/src/tools/TeamDeleteTool/UI.tsx +1 -2
- package/tui/src/tools/WebFetchTool/UI.tsx +1 -2
- package/tui/src/tools/testing/TestingPermissionTool.tsx +1 -2
- package/tui/src/utils/auth.ts +6 -12
- package/tui/src/utils/autoRunIssue.tsx +1 -2
- package/tui/src/utils/billing.ts +2 -2
- package/tui/src/utils/computerUse/toolRendering.tsx +1 -2
- package/tui/src/utils/computerUse/wrapper.tsx +0 -1
- package/tui/src/utils/exportRenderer.tsx +1 -2
- package/tui/src/utils/fastMode.ts +2 -2
- package/tui/src/utils/highlightMatch.tsx +1 -2
- package/tui/src/utils/http.ts +2 -2
- package/tui/src/utils/managedEnv.ts +1 -1
- package/tui/src/utils/messages/systemInit.ts +2 -2
- package/tui/src/utils/plugins/performStartupChecks.tsx +1 -2
- package/tui/src/utils/preflightChecks.tsx +0 -1
- package/tui/src/utils/processUserInput/processBashCommand.tsx +1 -2
- package/tui/src/utils/processUserInput/processSlashCommand.tsx +0 -1
- package/tui/src/utils/staticRender.tsx +1 -2
- package/tui/src/utils/status.tsx +1 -2
- package/tui/src/utils/statusNoticeDefinitions.tsx +5 -6
- package/tui/src/utils/swarm/It2SetupPrompt.tsx +1 -2
- package/tui/src/utils/teleport.tsx +0 -1
- package/tui/src/voice/voiceModeEnabled.ts +3 -3
- package/uv.lock +1 -1
- package/src/ummaya/llm/_cc_reference/README.md +0 -104
- package/src/ummaya/llm/_cc_reference/api.ts +0 -721
- package/src/ummaya/llm/_cc_reference/claude.ts +0 -3422
- package/src/ummaya/llm/_cc_reference/client.ts +0 -392
- package/src/ummaya/llm/_cc_reference/emptyUsage.ts +0 -25
- package/src/ummaya/llm/_cc_reference/errors.ts +0 -1210
- package/src/ummaya/llm/_cc_reference/messages.ts +0 -5515
- package/src/ummaya/llm/_cc_reference/permissions.ts +0 -1489
- package/src/ummaya/llm/_cc_reference/prompts.ts +0 -917
- package/src/ummaya/llm/_cc_reference/query.ts +0 -1732
- package/src/ummaya/llm/_cc_reference/toolExecution.ts +0 -1748
- package/src/ummaya/llm/_cc_reference/toolOrchestration.ts +0 -191
- package/src/ummaya/llm/_cc_reference/toolResultStorage.ts +0 -1043
- package/src/ummaya/llm/_cc_reference/tools.ts +0 -392
|
@@ -1,392 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: Apache-2.0 (Anthropic upstream) — research-use mirror
|
|
2
|
-
// Source: .references/claude-code-sourcemap/restored-src/src/tools.ts (CC 2.1.88)
|
|
3
|
-
|
|
4
|
-
// biome-ignore-all assist/source/organizeImports: ANT-ONLY import markers must not be reordered
|
|
5
|
-
import { toolMatchesName, type Tool, type Tools } from './Tool.js'
|
|
6
|
-
import { AgentTool } from './tools/AgentTool/AgentTool.js'
|
|
7
|
-
import { SkillTool } from './tools/SkillTool/SkillTool.js'
|
|
8
|
-
import { BashTool } from './tools/BashTool/BashTool.js'
|
|
9
|
-
import { FileEditTool } from './tools/FileEditTool/FileEditTool.js'
|
|
10
|
-
import { FileReadTool } from './tools/FileReadTool/FileReadTool.js'
|
|
11
|
-
import { FileWriteTool } from './tools/FileWriteTool/FileWriteTool.js'
|
|
12
|
-
import { GlobTool } from './tools/GlobTool/GlobTool.js'
|
|
13
|
-
import { NotebookEditTool } from './tools/NotebookEditTool/NotebookEditTool.js'
|
|
14
|
-
import { WebFetchTool } from './tools/WebFetchTool/WebFetchTool.js'
|
|
15
|
-
import { TaskStopTool } from './tools/TaskStopTool/TaskStopTool.js'
|
|
16
|
-
import { BriefTool } from './tools/BriefTool/BriefTool.js'
|
|
17
|
-
// Dead code elimination: conditional import for ant-only tools
|
|
18
|
-
/* eslint-disable custom-rules/no-process-env-top-level, @typescript-eslint/no-require-imports */
|
|
19
|
-
const REPLTool =
|
|
20
|
-
process.env.USER_TYPE === 'ant'
|
|
21
|
-
? require('./tools/REPLTool/REPLTool.js').REPLTool
|
|
22
|
-
: null
|
|
23
|
-
const SuggestBackgroundPRTool =
|
|
24
|
-
process.env.USER_TYPE === 'ant'
|
|
25
|
-
? require('./tools/SuggestBackgroundPRTool/SuggestBackgroundPRTool.js')
|
|
26
|
-
.SuggestBackgroundPRTool
|
|
27
|
-
: null
|
|
28
|
-
const SleepTool =
|
|
29
|
-
feature('PROACTIVE') || feature('KAIROS')
|
|
30
|
-
? require('./tools/SleepTool/SleepTool.js').SleepTool
|
|
31
|
-
: null
|
|
32
|
-
const cronTools = feature('AGENT_TRIGGERS')
|
|
33
|
-
? [
|
|
34
|
-
require('./tools/ScheduleCronTool/CronCreateTool.js').CronCreateTool,
|
|
35
|
-
require('./tools/ScheduleCronTool/CronDeleteTool.js').CronDeleteTool,
|
|
36
|
-
require('./tools/ScheduleCronTool/CronListTool.js').CronListTool,
|
|
37
|
-
]
|
|
38
|
-
: []
|
|
39
|
-
const RemoteTriggerTool = feature('AGENT_TRIGGERS_REMOTE')
|
|
40
|
-
? require('./tools/RemoteTriggerTool/RemoteTriggerTool.js').RemoteTriggerTool
|
|
41
|
-
: null
|
|
42
|
-
const MonitorTool = feature('MONITOR_TOOL')
|
|
43
|
-
? require('./tools/MonitorTool/MonitorTool.js').MonitorTool
|
|
44
|
-
: null
|
|
45
|
-
const SendUserFileTool = feature('KAIROS')
|
|
46
|
-
? require('./tools/SendUserFileTool/SendUserFileTool.js').SendUserFileTool
|
|
47
|
-
: null
|
|
48
|
-
const PushNotificationTool =
|
|
49
|
-
feature('KAIROS') || feature('KAIROS_PUSH_NOTIFICATION')
|
|
50
|
-
? require('./tools/PushNotificationTool/PushNotificationTool.js')
|
|
51
|
-
.PushNotificationTool
|
|
52
|
-
: null
|
|
53
|
-
const SubscribePRTool = feature('KAIROS_GITHUB_WEBHOOKS')
|
|
54
|
-
? require('./tools/SubscribePRTool/SubscribePRTool.js').SubscribePRTool
|
|
55
|
-
: null
|
|
56
|
-
/* eslint-enable custom-rules/no-process-env-top-level, @typescript-eslint/no-require-imports */
|
|
57
|
-
import { TaskOutputTool } from './tools/TaskOutputTool/TaskOutputTool.js'
|
|
58
|
-
import { WebSearchTool } from './tools/WebSearchTool/WebSearchTool.js'
|
|
59
|
-
import { TodoWriteTool } from './tools/TodoWriteTool/TodoWriteTool.js'
|
|
60
|
-
import { ExitPlanModeV2Tool } from './tools/ExitPlanModeTool/ExitPlanModeV2Tool.js'
|
|
61
|
-
import { TestingPermissionTool } from './tools/testing/TestingPermissionTool.js'
|
|
62
|
-
import { GrepTool } from './tools/GrepTool/GrepTool.js'
|
|
63
|
-
import { TungstenTool } from './tools/TungstenTool/TungstenTool.js'
|
|
64
|
-
// Lazy require to break circular dependency: tools.ts -> TeamCreateTool/TeamDeleteTool -> ... -> tools.ts
|
|
65
|
-
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
66
|
-
const getTeamCreateTool = () =>
|
|
67
|
-
require('./tools/TeamCreateTool/TeamCreateTool.js')
|
|
68
|
-
.TeamCreateTool as typeof import('./tools/TeamCreateTool/TeamCreateTool.js').TeamCreateTool
|
|
69
|
-
const getTeamDeleteTool = () =>
|
|
70
|
-
require('./tools/TeamDeleteTool/TeamDeleteTool.js')
|
|
71
|
-
.TeamDeleteTool as typeof import('./tools/TeamDeleteTool/TeamDeleteTool.js').TeamDeleteTool
|
|
72
|
-
const getSendMessageTool = () =>
|
|
73
|
-
require('./tools/SendMessageTool/SendMessageTool.js')
|
|
74
|
-
.SendMessageTool as typeof import('./tools/SendMessageTool/SendMessageTool.js').SendMessageTool
|
|
75
|
-
/* eslint-enable @typescript-eslint/no-require-imports */
|
|
76
|
-
import { AskUserQuestionTool } from './tools/AskUserQuestionTool/AskUserQuestionTool.js'
|
|
77
|
-
import { LSPTool } from './tools/LSPTool/LSPTool.js'
|
|
78
|
-
import { ListMcpResourcesTool } from './tools/ListMcpResourcesTool/ListMcpResourcesTool.js'
|
|
79
|
-
import { ReadMcpResourceTool } from './tools/ReadMcpResourceTool/ReadMcpResourceTool.js'
|
|
80
|
-
import { ToolSearchTool } from './tools/ToolSearchTool/ToolSearchTool.js'
|
|
81
|
-
import { EnterPlanModeTool } from './tools/EnterPlanModeTool/EnterPlanModeTool.js'
|
|
82
|
-
import { EnterWorktreeTool } from './tools/EnterWorktreeTool/EnterWorktreeTool.js'
|
|
83
|
-
import { ExitWorktreeTool } from './tools/ExitWorktreeTool/ExitWorktreeTool.js'
|
|
84
|
-
import { ConfigTool } from './tools/ConfigTool/ConfigTool.js'
|
|
85
|
-
import { TaskCreateTool } from './tools/TaskCreateTool/TaskCreateTool.js'
|
|
86
|
-
import { TaskGetTool } from './tools/TaskGetTool/TaskGetTool.js'
|
|
87
|
-
import { TaskUpdateTool } from './tools/TaskUpdateTool/TaskUpdateTool.js'
|
|
88
|
-
import { TaskListTool } from './tools/TaskListTool/TaskListTool.js'
|
|
89
|
-
import uniqBy from 'lodash-es/uniqBy.js'
|
|
90
|
-
import { isToolSearchEnabledOptimistic } from './utils/toolSearch.js'
|
|
91
|
-
import { isTodoV2Enabled } from './utils/tasks.js'
|
|
92
|
-
// Dead code elimination: conditional import for CLAUDE_CODE_VERIFY_PLAN
|
|
93
|
-
/* eslint-disable custom-rules/no-process-env-top-level, @typescript-eslint/no-require-imports */
|
|
94
|
-
const VerifyPlanExecutionTool =
|
|
95
|
-
process.env.CLAUDE_CODE_VERIFY_PLAN === 'true'
|
|
96
|
-
? require('./tools/VerifyPlanExecutionTool/VerifyPlanExecutionTool.js')
|
|
97
|
-
.VerifyPlanExecutionTool
|
|
98
|
-
: null
|
|
99
|
-
/* eslint-enable custom-rules/no-process-env-top-level, @typescript-eslint/no-require-imports */
|
|
100
|
-
import { SYNTHETIC_OUTPUT_TOOL_NAME } from './tools/SyntheticOutputTool/SyntheticOutputTool.js'
|
|
101
|
-
export {
|
|
102
|
-
ALL_AGENT_DISALLOWED_TOOLS,
|
|
103
|
-
CUSTOM_AGENT_DISALLOWED_TOOLS,
|
|
104
|
-
ASYNC_AGENT_ALLOWED_TOOLS,
|
|
105
|
-
COORDINATOR_MODE_ALLOWED_TOOLS,
|
|
106
|
-
} from './constants/tools.js'
|
|
107
|
-
import { feature } from 'bun:bundle'
|
|
108
|
-
// Dead code elimination: conditional import for OVERFLOW_TEST_TOOL
|
|
109
|
-
/* eslint-disable custom-rules/no-process-env-top-level, @typescript-eslint/no-require-imports */
|
|
110
|
-
const OverflowTestTool = feature('OVERFLOW_TEST_TOOL')
|
|
111
|
-
? require('./tools/OverflowTestTool/OverflowTestTool.js').OverflowTestTool
|
|
112
|
-
: null
|
|
113
|
-
const CtxInspectTool = feature('CONTEXT_COLLAPSE')
|
|
114
|
-
? require('./tools/CtxInspectTool/CtxInspectTool.js').CtxInspectTool
|
|
115
|
-
: null
|
|
116
|
-
const TerminalCaptureTool = feature('TERMINAL_PANEL')
|
|
117
|
-
? require('./tools/TerminalCaptureTool/TerminalCaptureTool.js')
|
|
118
|
-
.TerminalCaptureTool
|
|
119
|
-
: null
|
|
120
|
-
const WebBrowserTool = feature('WEB_BROWSER_TOOL')
|
|
121
|
-
? require('./tools/WebBrowserTool/WebBrowserTool.js').WebBrowserTool
|
|
122
|
-
: null
|
|
123
|
-
const coordinatorModeModule = feature('COORDINATOR_MODE')
|
|
124
|
-
? (require('./coordinator/coordinatorMode.js') as typeof import('./coordinator/coordinatorMode.js'))
|
|
125
|
-
: null
|
|
126
|
-
const SnipTool = feature('HISTORY_SNIP')
|
|
127
|
-
? require('./tools/SnipTool/SnipTool.js').SnipTool
|
|
128
|
-
: null
|
|
129
|
-
const ListPeersTool = feature('UDS_INBOX')
|
|
130
|
-
? require('./tools/ListPeersTool/ListPeersTool.js').ListPeersTool
|
|
131
|
-
: null
|
|
132
|
-
const WorkflowTool = feature('WORKFLOW_SCRIPTS')
|
|
133
|
-
? (() => {
|
|
134
|
-
require('./tools/WorkflowTool/bundled/index.js').initBundledWorkflows()
|
|
135
|
-
return require('./tools/WorkflowTool/WorkflowTool.js').WorkflowTool
|
|
136
|
-
})()
|
|
137
|
-
: null
|
|
138
|
-
/* eslint-enable custom-rules/no-process-env-top-level, @typescript-eslint/no-require-imports */
|
|
139
|
-
import type { ToolPermissionContext } from './Tool.js'
|
|
140
|
-
import { getDenyRuleForTool } from './utils/permissions/permissions.js'
|
|
141
|
-
import { hasEmbeddedSearchTools } from './utils/embeddedTools.js'
|
|
142
|
-
import { isEnvTruthy } from './utils/envUtils.js'
|
|
143
|
-
import { isPowerShellToolEnabled } from './utils/shell/shellToolUtils.js'
|
|
144
|
-
import { isAgentSwarmsEnabled } from './utils/agentSwarmsEnabled.js'
|
|
145
|
-
import { isWorktreeModeEnabled } from './utils/worktreeModeEnabled.js'
|
|
146
|
-
import {
|
|
147
|
-
REPL_TOOL_NAME,
|
|
148
|
-
REPL_ONLY_TOOLS,
|
|
149
|
-
isReplModeEnabled,
|
|
150
|
-
} from './tools/REPLTool/constants.js'
|
|
151
|
-
export { REPL_ONLY_TOOLS }
|
|
152
|
-
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
153
|
-
const getPowerShellTool = () => {
|
|
154
|
-
if (!isPowerShellToolEnabled()) return null
|
|
155
|
-
return (
|
|
156
|
-
require('./tools/PowerShellTool/PowerShellTool.js') as typeof import('./tools/PowerShellTool/PowerShellTool.js')
|
|
157
|
-
).PowerShellTool
|
|
158
|
-
}
|
|
159
|
-
/* eslint-enable @typescript-eslint/no-require-imports */
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* Predefined tool presets that can be used with --tools flag
|
|
163
|
-
*/
|
|
164
|
-
export const TOOL_PRESETS = ['default'] as const
|
|
165
|
-
|
|
166
|
-
export type ToolPreset = (typeof TOOL_PRESETS)[number]
|
|
167
|
-
|
|
168
|
-
export function parseToolPreset(preset: string): ToolPreset | null {
|
|
169
|
-
const presetString = preset.toLowerCase()
|
|
170
|
-
if (!TOOL_PRESETS.includes(presetString as ToolPreset)) {
|
|
171
|
-
return null
|
|
172
|
-
}
|
|
173
|
-
return presetString as ToolPreset
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* Get the list of tool names for a given preset
|
|
178
|
-
* Filters out tools that are disabled via isEnabled() check
|
|
179
|
-
* @param preset The preset name
|
|
180
|
-
* @returns Array of tool names
|
|
181
|
-
*/
|
|
182
|
-
export function getToolsForDefaultPreset(): string[] {
|
|
183
|
-
const tools = getAllBaseTools()
|
|
184
|
-
const isEnabled = tools.map(tool => tool.isEnabled())
|
|
185
|
-
return tools.filter((_, i) => isEnabled[i]).map(tool => tool.name)
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* Get the complete exhaustive list of all tools that could be available
|
|
190
|
-
* in the current environment (respecting process.env flags).
|
|
191
|
-
* This is the source of truth for ALL tools.
|
|
192
|
-
*/
|
|
193
|
-
/**
|
|
194
|
-
* NOTE: This MUST stay in sync with https://console.statsig.com/4aF3Ewatb6xPVpCwxb5nA3/dynamic_configs/claude_code_global_system_caching, in order to cache the system prompt across users.
|
|
195
|
-
*/
|
|
196
|
-
export function getAllBaseTools(): Tools {
|
|
197
|
-
return [
|
|
198
|
-
AgentTool,
|
|
199
|
-
TaskOutputTool,
|
|
200
|
-
BashTool,
|
|
201
|
-
// Ant-native builds have bfs/ugrep embedded in the bun binary (same ARGV0
|
|
202
|
-
// trick as ripgrep). When available, find/grep in Claude's shell are aliased
|
|
203
|
-
// to these fast tools, so the dedicated Glob/Grep tools are unnecessary.
|
|
204
|
-
...(hasEmbeddedSearchTools() ? [] : [GlobTool, GrepTool]),
|
|
205
|
-
ExitPlanModeV2Tool,
|
|
206
|
-
FileReadTool,
|
|
207
|
-
FileEditTool,
|
|
208
|
-
FileWriteTool,
|
|
209
|
-
NotebookEditTool,
|
|
210
|
-
WebFetchTool,
|
|
211
|
-
TodoWriteTool,
|
|
212
|
-
WebSearchTool,
|
|
213
|
-
TaskStopTool,
|
|
214
|
-
AskUserQuestionTool,
|
|
215
|
-
SkillTool,
|
|
216
|
-
EnterPlanModeTool,
|
|
217
|
-
...(process.env.USER_TYPE === 'ant' ? [ConfigTool] : []),
|
|
218
|
-
...(process.env.USER_TYPE === 'ant' ? [TungstenTool] : []),
|
|
219
|
-
...(SuggestBackgroundPRTool ? [SuggestBackgroundPRTool] : []),
|
|
220
|
-
...(WebBrowserTool ? [WebBrowserTool] : []),
|
|
221
|
-
...(isTodoV2Enabled()
|
|
222
|
-
? [TaskCreateTool, TaskGetTool, TaskUpdateTool, TaskListTool]
|
|
223
|
-
: []),
|
|
224
|
-
...(OverflowTestTool ? [OverflowTestTool] : []),
|
|
225
|
-
...(CtxInspectTool ? [CtxInspectTool] : []),
|
|
226
|
-
...(TerminalCaptureTool ? [TerminalCaptureTool] : []),
|
|
227
|
-
...(isEnvTruthy(process.env.ENABLE_LSP_TOOL) ? [LSPTool] : []),
|
|
228
|
-
...(isWorktreeModeEnabled() ? [EnterWorktreeTool, ExitWorktreeTool] : []),
|
|
229
|
-
getSendMessageTool(),
|
|
230
|
-
...(ListPeersTool ? [ListPeersTool] : []),
|
|
231
|
-
...(isAgentSwarmsEnabled()
|
|
232
|
-
? [getTeamCreateTool(), getTeamDeleteTool()]
|
|
233
|
-
: []),
|
|
234
|
-
...(VerifyPlanExecutionTool ? [VerifyPlanExecutionTool] : []),
|
|
235
|
-
...(process.env.USER_TYPE === 'ant' && REPLTool ? [REPLTool] : []),
|
|
236
|
-
...(WorkflowTool ? [WorkflowTool] : []),
|
|
237
|
-
...(SleepTool ? [SleepTool] : []),
|
|
238
|
-
...cronTools,
|
|
239
|
-
...(RemoteTriggerTool ? [RemoteTriggerTool] : []),
|
|
240
|
-
...(MonitorTool ? [MonitorTool] : []),
|
|
241
|
-
BriefTool,
|
|
242
|
-
...(SendUserFileTool ? [SendUserFileTool] : []),
|
|
243
|
-
...(PushNotificationTool ? [PushNotificationTool] : []),
|
|
244
|
-
...(SubscribePRTool ? [SubscribePRTool] : []),
|
|
245
|
-
...(getPowerShellTool() ? [getPowerShellTool()] : []),
|
|
246
|
-
...(SnipTool ? [SnipTool] : []),
|
|
247
|
-
...(process.env.NODE_ENV === 'test' ? [TestingPermissionTool] : []),
|
|
248
|
-
ListMcpResourcesTool,
|
|
249
|
-
ReadMcpResourceTool,
|
|
250
|
-
// Include ToolSearchTool when tool search might be enabled (optimistic check)
|
|
251
|
-
// The actual decision to defer tools happens at request time in claude.ts
|
|
252
|
-
...(isToolSearchEnabledOptimistic() ? [ToolSearchTool] : []),
|
|
253
|
-
]
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* Filters out tools that are blanket-denied by the permission context.
|
|
258
|
-
* A tool is filtered out if there's a deny rule matching its name with no
|
|
259
|
-
* ruleContent (i.e., a blanket deny for that tool).
|
|
260
|
-
*
|
|
261
|
-
* Uses the same matcher as the runtime permission check (step 1a), so MCP
|
|
262
|
-
* server-prefix rules like `mcp__server` strip all tools from that server
|
|
263
|
-
* before the model sees them — not just at call time.
|
|
264
|
-
*/
|
|
265
|
-
export function filterToolsByDenyRules<
|
|
266
|
-
T extends {
|
|
267
|
-
name: string
|
|
268
|
-
mcpInfo?: { serverName: string; toolName: string }
|
|
269
|
-
},
|
|
270
|
-
>(tools: readonly T[], permissionContext: ToolPermissionContext): T[] {
|
|
271
|
-
return tools.filter(tool => !getDenyRuleForTool(permissionContext, tool))
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
export const getTools = (permissionContext: ToolPermissionContext): Tools => {
|
|
275
|
-
// Simple mode: only Bash, Read, and Edit tools
|
|
276
|
-
if (isEnvTruthy(process.env.CLAUDE_CODE_SIMPLE)) {
|
|
277
|
-
// --bare + REPL mode: REPL wraps Bash/Read/Edit/etc inside the VM, so
|
|
278
|
-
// return REPL instead of the raw primitives. Matches the non-bare path
|
|
279
|
-
// below which also hides REPL_ONLY_TOOLS when REPL is enabled.
|
|
280
|
-
if (isReplModeEnabled() && REPLTool) {
|
|
281
|
-
const replSimple: Tool[] = [REPLTool]
|
|
282
|
-
if (
|
|
283
|
-
feature('COORDINATOR_MODE') &&
|
|
284
|
-
coordinatorModeModule?.isCoordinatorMode()
|
|
285
|
-
) {
|
|
286
|
-
replSimple.push(TaskStopTool, getSendMessageTool())
|
|
287
|
-
}
|
|
288
|
-
return filterToolsByDenyRules(replSimple, permissionContext)
|
|
289
|
-
}
|
|
290
|
-
const simpleTools: Tool[] = [BashTool, FileReadTool, FileEditTool]
|
|
291
|
-
// When coordinator mode is also active, include AgentTool and TaskStopTool
|
|
292
|
-
// so the coordinator gets Task+TaskStop (via useMergedTools filtering) and
|
|
293
|
-
// workers get Bash/Read/Edit (via filterToolsForAgent filtering).
|
|
294
|
-
if (
|
|
295
|
-
feature('COORDINATOR_MODE') &&
|
|
296
|
-
coordinatorModeModule?.isCoordinatorMode()
|
|
297
|
-
) {
|
|
298
|
-
simpleTools.push(AgentTool, TaskStopTool, getSendMessageTool())
|
|
299
|
-
}
|
|
300
|
-
return filterToolsByDenyRules(simpleTools, permissionContext)
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
// Get all base tools and filter out special tools that get added conditionally
|
|
304
|
-
const specialTools = new Set([
|
|
305
|
-
ListMcpResourcesTool.name,
|
|
306
|
-
ReadMcpResourceTool.name,
|
|
307
|
-
SYNTHETIC_OUTPUT_TOOL_NAME,
|
|
308
|
-
])
|
|
309
|
-
|
|
310
|
-
const tools = getAllBaseTools().filter(tool => !specialTools.has(tool.name))
|
|
311
|
-
|
|
312
|
-
// Filter out tools that are denied by the deny rules
|
|
313
|
-
let allowedTools = filterToolsByDenyRules(tools, permissionContext)
|
|
314
|
-
|
|
315
|
-
// When REPL mode is enabled, hide primitive tools from direct use.
|
|
316
|
-
// They're still accessible inside REPL via the VM context.
|
|
317
|
-
if (isReplModeEnabled()) {
|
|
318
|
-
const replEnabled = allowedTools.some(tool =>
|
|
319
|
-
toolMatchesName(tool, REPL_TOOL_NAME),
|
|
320
|
-
)
|
|
321
|
-
if (replEnabled) {
|
|
322
|
-
allowedTools = allowedTools.filter(
|
|
323
|
-
tool => !REPL_ONLY_TOOLS.has(tool.name),
|
|
324
|
-
)
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
const isEnabled = allowedTools.map(_ => _.isEnabled())
|
|
329
|
-
return allowedTools.filter((_, i) => isEnabled[i])
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
/**
|
|
333
|
-
* Assemble the full tool pool for a given permission context and MCP tools.
|
|
334
|
-
*
|
|
335
|
-
* This is the single source of truth for combining built-in tools with MCP tools.
|
|
336
|
-
* Both REPL.tsx (via useMergedTools hook) and runAgent.ts (for coordinator workers)
|
|
337
|
-
* use this function to ensure consistent tool pool assembly.
|
|
338
|
-
*
|
|
339
|
-
* The function:
|
|
340
|
-
* 1. Gets built-in tools via getTools() (respects mode filtering)
|
|
341
|
-
* 2. Filters MCP tools by deny rules
|
|
342
|
-
* 3. Deduplicates by tool name (built-in tools take precedence)
|
|
343
|
-
*
|
|
344
|
-
* @param permissionContext - Permission context for filtering built-in tools
|
|
345
|
-
* @param mcpTools - MCP tools from appState.mcp.tools
|
|
346
|
-
* @returns Combined, deduplicated array of built-in and MCP tools
|
|
347
|
-
*/
|
|
348
|
-
export function assembleToolPool(
|
|
349
|
-
permissionContext: ToolPermissionContext,
|
|
350
|
-
mcpTools: Tools,
|
|
351
|
-
): Tools {
|
|
352
|
-
const builtInTools = getTools(permissionContext)
|
|
353
|
-
|
|
354
|
-
// Filter out MCP tools that are in the deny list
|
|
355
|
-
const allowedMcpTools = filterToolsByDenyRules(mcpTools, permissionContext)
|
|
356
|
-
|
|
357
|
-
// Sort each partition for prompt-cache stability, keeping built-ins as a
|
|
358
|
-
// contiguous prefix. The server's claude_code_system_cache_policy places a
|
|
359
|
-
// global cache breakpoint after the last prefix-matched built-in tool; a flat
|
|
360
|
-
// sort would interleave MCP tools into built-ins and invalidate all downstream
|
|
361
|
-
// cache keys whenever an MCP tool sorts between existing built-ins. uniqBy
|
|
362
|
-
// preserves insertion order, so built-ins win on name conflict.
|
|
363
|
-
// Avoid Array.toSorted (Node 20+) — we support Node 18. builtInTools is
|
|
364
|
-
// readonly so copy-then-sort; allowedMcpTools is a fresh .filter() result.
|
|
365
|
-
const byName = (a: Tool, b: Tool) => a.name.localeCompare(b.name)
|
|
366
|
-
return uniqBy(
|
|
367
|
-
[...builtInTools].sort(byName).concat(allowedMcpTools.sort(byName)),
|
|
368
|
-
'name',
|
|
369
|
-
)
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
/**
|
|
373
|
-
* Get all tools including both built-in tools and MCP tools.
|
|
374
|
-
*
|
|
375
|
-
* This is the preferred function when you need the complete tools list for:
|
|
376
|
-
* - Tool search threshold calculations (isToolSearchEnabled)
|
|
377
|
-
* - Token counting that includes MCP tools
|
|
378
|
-
* - Any context where MCP tools should be considered
|
|
379
|
-
*
|
|
380
|
-
* Use getTools() only when you specifically need just built-in tools.
|
|
381
|
-
*
|
|
382
|
-
* @param permissionContext - Permission context for filtering built-in tools
|
|
383
|
-
* @param mcpTools - MCP tools from appState.mcp.tools
|
|
384
|
-
* @returns Combined array of built-in and MCP tools
|
|
385
|
-
*/
|
|
386
|
-
export function getMergedTools(
|
|
387
|
-
permissionContext: ToolPermissionContext,
|
|
388
|
-
mcpTools: Tools,
|
|
389
|
-
): Tools {
|
|
390
|
-
const builtInTools = getTools(permissionContext)
|
|
391
|
-
return [...builtInTools, ...mcpTools]
|
|
392
|
-
}
|