From 009c29d31859f456e455c33575500aadbfab1a9e Mon Sep 17 00:00:00 2001 From: Reservieren Date: Tue, 31 Mar 2026 22:09:56 -0300 Subject: [PATCH] refactor: update import paths for react/compiler-runtime to react-compiler-runtime feat: add OpenClaude local agent playbook for setup and usage instructions chore: implement provider bootstrap script for profile initialization chore: create provider launch script to manage provider execution chore: add system check script for runtime diagnostics and validation feat: implement useEffectEventCompat hook for React 18 compatibility --- .gitignore | 2 + PLAYBOOK.md | 294 ++++++++++++++++++ README.md | 57 ++++ bun.lock | 40 ++- package.json | 29 +- scripts/provider-bootstrap.ts | 99 ++++++ scripts/provider-launch.ts | 138 ++++++++ scripts/system-check.ts | 288 +++++++++++++++++ src/buddy/CompanionSprite.tsx | 2 +- src/buddy/useBuddyNotification.tsx | 2 +- src/cli/handlers/util.tsx | 2 +- src/commands/add-dir/add-dir.tsx | 2 +- src/commands/bridge/bridge.tsx | 2 +- src/commands/btw/btw.tsx | 2 +- src/commands/chrome/chrome.tsx | 2 +- src/commands/copy/copy.tsx | 2 +- src/commands/effort/effort.tsx | 2 +- src/commands/fast/fast.tsx | 2 +- src/commands/ide/ide.tsx | 2 +- .../install-github-app/ApiKeyStep.tsx | 2 +- .../CheckExistingSecretStep.tsx | 2 +- .../install-github-app/CheckGitHubStep.tsx | 2 +- .../install-github-app/ChooseRepoStep.tsx | 2 +- .../install-github-app/CreatingStep.tsx | 2 +- src/commands/install-github-app/ErrorStep.tsx | 2 +- .../ExistingWorkflowStep.tsx | 2 +- .../install-github-app/InstallAppStep.tsx | 2 +- .../install-github-app/SuccessStep.tsx | 2 +- .../install-github-app/WarningsStep.tsx | 2 +- src/commands/install.tsx | 2 +- src/commands/login/login.tsx | 2 +- src/commands/mcp/mcp.tsx | 2 +- src/commands/mobile/mobile.tsx | 2 +- src/commands/model/model.tsx | 2 +- src/commands/plan/plan.tsx | 2 +- src/commands/plugin/DiscoverPlugins.tsx | 2 +- src/commands/plugin/ManageMarketplaces.tsx | 2 +- src/commands/plugin/PluginOptionsDialog.tsx | 2 +- src/commands/plugin/PluginSettings.tsx | 2 +- src/commands/plugin/PluginTrustWarning.tsx | 2 +- src/commands/plugin/UnifiedInstalledCell.tsx | 2 +- src/commands/plugin/ValidatePlugin.tsx | 2 +- src/commands/plugin/pluginDetailsHelpers.tsx | 2 +- .../rate-limit-options/rate-limit-options.tsx | 2 +- src/commands/resume/resume.tsx | 2 +- .../review/UltrareviewOverageDialog.tsx | 2 +- src/commands/session/session.tsx | 2 +- src/commands/tag/tag.tsx | 2 +- src/commands/theme/theme.tsx | 2 +- src/commands/thinkback/thinkback.tsx | 2 +- src/components/AgentProgressLine.tsx | 2 +- src/components/App.tsx | 2 +- src/components/ApproveApiKey.tsx | 2 +- src/components/AutoModeOptInDialog.tsx | 2 +- src/components/AutoUpdaterWrapper.tsx | 2 +- src/components/AwsAuthStatusBox.tsx | 2 +- src/components/BaseTextInput.tsx | 2 +- src/components/BashModeProgress.tsx | 2 +- src/components/BridgeDialog.tsx | 2 +- .../BypassPermissionsModeDialog.tsx | 2 +- src/components/ChannelDowngradeDialog.tsx | 2 +- src/components/ClaudeInChromeOnboarding.tsx | 2 +- .../ClaudeMdExternalIncludesDialog.tsx | 2 +- src/components/ClickableImageRef.tsx | 2 +- src/components/CompactSummary.tsx | 2 +- src/components/ConfigurableShortcutHint.tsx | 2 +- src/components/ConsoleOAuthFlow.tsx | 2 +- src/components/ContextSuggestions.tsx | 2 +- src/components/ContextVisualization.tsx | 2 +- src/components/CoordinatorAgentStatus.tsx | 2 +- src/components/CostThresholdDialog.tsx | 2 +- src/components/CtrlOToExpand.tsx | 2 +- src/components/CustomSelect/SelectMulti.tsx | 2 +- .../CustomSelect/select-input-option.tsx | 2 +- src/components/CustomSelect/select-option.tsx | 2 +- src/components/CustomSelect/select.tsx | 2 +- src/components/DesktopHandoff.tsx | 2 +- .../DesktopUpsell/DesktopUpsellStartup.tsx | 2 +- src/components/DevBar.tsx | 2 +- src/components/DevChannelsDialog.tsx | 2 +- src/components/DiagnosticsDisplay.tsx | 2 +- src/components/EffortCallout.tsx | 2 +- src/components/ExitFlow.tsx | 2 +- .../FallbackToolUseErrorMessage.tsx | 2 +- .../FallbackToolUseRejectedMessage.tsx | 2 +- src/components/FastIcon.tsx | 2 +- .../FeedbackSurvey/FeedbackSurvey.tsx | 2 +- .../FeedbackSurvey/FeedbackSurveyView.tsx | 2 +- .../FeedbackSurvey/TranscriptSharePrompt.tsx | 2 +- .../FeedbackSurvey/usePostCompactSurvey.tsx | 2 +- src/components/FileEditToolDiff.tsx | 2 +- src/components/FileEditToolUpdatedMessage.tsx | 2 +- .../FileEditToolUseRejectedMessage.tsx | 2 +- src/components/FilePathLink.tsx | 2 +- src/components/FullscreenLayout.tsx | 2 +- src/components/GlobalSearchDialog.tsx | 2 +- src/components/HelpV2/Commands.tsx | 2 +- src/components/HelpV2/General.tsx | 2 +- src/components/HelpV2/HelpV2.tsx | 2 +- src/components/HighlightedCode.tsx | 2 +- src/components/HighlightedCode/Fallback.tsx | 2 +- src/components/IdeAutoConnectDialog.tsx | 2 +- src/components/IdeOnboardingDialog.tsx | 2 +- src/components/IdeStatusIndicator.tsx | 2 +- src/components/IdleReturnDialog.tsx | 2 +- src/components/InterruptedByUser.tsx | 2 +- src/components/InvalidConfigDialog.tsx | 2 +- src/components/InvalidSettingsDialog.tsx | 2 +- src/components/KeybindingWarnings.tsx | 2 +- src/components/LanguagePicker.tsx | 2 +- src/components/LogSelector.tsx | 2 +- src/components/LogoV2/AnimatedClawd.tsx | 2 +- src/components/LogoV2/ChannelsNotice.tsx | 2 +- src/components/LogoV2/Clawd.tsx | 2 +- src/components/LogoV2/CondensedLogo.tsx | 2 +- src/components/LogoV2/Feed.tsx | 2 +- src/components/LogoV2/FeedColumn.tsx | 2 +- src/components/LogoV2/GuestPassesUpsell.tsx | 2 +- src/components/LogoV2/LogoV2.tsx | 2 +- src/components/LogoV2/Opus1mMergeNotice.tsx | 2 +- src/components/LogoV2/OverageCreditUpsell.tsx | 2 +- src/components/LogoV2/VoiceModeNotice.tsx | 2 +- src/components/LogoV2/WelcomeV2.tsx | 2 +- src/components/MCPServerApprovalDialog.tsx | 2 +- .../MCPServerDesktopImportDialog.tsx | 2 +- src/components/MCPServerDialogCopy.tsx | 2 +- src/components/MCPServerMultiselectDialog.tsx | 2 +- .../ManagedSettingsSecurityDialog.tsx | 2 +- src/components/Markdown.tsx | 2 +- src/components/Message.tsx | 2 +- src/components/MessageModel.tsx | 2 +- src/components/MessageResponse.tsx | 2 +- src/components/MessageRow.tsx | 2 +- src/components/MessageSelector.tsx | 2 +- src/components/MessageTimestamp.tsx | 2 +- src/components/Messages.tsx | 2 +- src/components/ModelPicker.tsx | 2 +- .../NotebookEditToolUseRejectedMessage.tsx | 2 +- src/components/Onboarding.tsx | 2 +- src/components/OutputStylePicker.tsx | 2 +- src/components/PackageManagerAutoUpdater.tsx | 2 +- src/components/PrBadge.tsx | 2 +- src/components/PressEnterToContinue.tsx | 2 +- .../PromptInput/HistorySearchInput.tsx | 2 +- src/components/PromptInput/Notifications.tsx | 2 +- .../PromptInput/PromptInputFooterLeftSide.tsx | 2 +- .../PromptInputFooterSuggestions.tsx | 2 +- .../PromptInput/PromptInputHelpMenu.tsx | 2 +- .../PromptInput/PromptInputModeIndicator.tsx | 2 +- .../PromptInput/PromptInputStashNotice.tsx | 2 +- .../PromptInput/SandboxPromptFooterHint.tsx | 2 +- src/components/PromptInput/ShimmeredInput.tsx | 2 +- src/components/PromptInput/VoiceIndicator.tsx | 2 +- src/components/QuickOpenDialog.tsx | 2 +- src/components/RemoteEnvironmentDialog.tsx | 2 +- .../SandboxViolationExpandedView.tsx | 2 +- src/components/SearchBox.tsx | 2 +- src/components/SessionBackgroundHint.tsx | 2 +- src/components/SessionPreview.tsx | 2 +- src/components/Settings/Config.tsx | 2 +- src/components/Settings/Settings.tsx | 2 +- src/components/Settings/Status.tsx | 2 +- src/components/Settings/Usage.tsx | 2 +- src/components/ShowInIDEPrompt.tsx | 2 +- src/components/SkillImprovementSurvey.tsx | 2 +- src/components/Spinner.tsx | 2 +- src/components/Spinner/FlashingChar.tsx | 2 +- src/components/Spinner/GlimmerMessage.tsx | 2 +- src/components/Spinner/ShimmerChar.tsx | 2 +- .../Spinner/SpinnerAnimationRow.tsx | 2 +- src/components/Spinner/SpinnerGlyph.tsx | 2 +- .../Spinner/TeammateSpinnerTree.tsx | 2 +- src/components/Stats.tsx | 2 +- src/components/StatusNotices.tsx | 2 +- src/components/StructuredDiff.tsx | 2 +- src/components/StructuredDiff/Fallback.tsx | 2 +- src/components/StructuredDiff/colorDiff.ts | 2 +- src/components/TaskListV2.tsx | 2 +- src/components/TeammateViewHeader.tsx | 2 +- src/components/TeleportError.tsx | 2 +- src/components/TeleportProgress.tsx | 2 +- src/components/TeleportRepoMismatchDialog.tsx | 2 +- src/components/TeleportResumeWrapper.tsx | 2 +- src/components/ThemePicker.tsx | 2 +- src/components/ThinkingToggle.tsx | 2 +- src/components/TokenWarning.tsx | 2 +- src/components/ToolUseLoader.tsx | 2 +- src/components/TrustDialog/TrustDialog.tsx | 2 +- src/components/ValidationErrorsList.tsx | 2 +- src/components/VimTextInput.tsx | 2 +- src/components/VirtualMessageList.tsx | 2 +- src/components/WorkflowMultiselectDialog.tsx | 2 +- src/components/agents/AgentDetail.tsx | 2 +- .../agents/AgentNavigationFooter.tsx | 2 +- src/components/agents/AgentsList.tsx | 2 +- src/components/agents/AgentsMenu.tsx | 2 +- src/components/agents/ColorPicker.tsx | 2 +- src/components/agents/ModelSelector.tsx | 2 +- src/components/agents/ToolSelector.tsx | 2 +- .../new-agent-creation/CreateAgentWizard.tsx | 2 +- .../wizard-steps/ColorStep.tsx | 2 +- .../wizard-steps/ConfirmStep.tsx | 2 +- .../wizard-steps/DescriptionStep.tsx | 2 +- .../wizard-steps/LocationStep.tsx | 2 +- .../wizard-steps/MemoryStep.tsx | 2 +- .../wizard-steps/MethodStep.tsx | 2 +- .../wizard-steps/ModelStep.tsx | 2 +- .../wizard-steps/PromptStep.tsx | 2 +- .../wizard-steps/ToolsStep.tsx | 2 +- .../wizard-steps/TypeStep.tsx | 2 +- src/components/design-system/Byline.tsx | 2 +- src/components/design-system/Dialog.tsx | 2 +- src/components/design-system/Divider.tsx | 2 +- src/components/design-system/FuzzyPicker.tsx | 2 +- .../design-system/KeyboardShortcutHint.tsx | 2 +- src/components/design-system/ListItem.tsx | 2 +- src/components/design-system/LoadingState.tsx | 2 +- src/components/design-system/Pane.tsx | 2 +- src/components/design-system/ProgressBar.tsx | 2 +- src/components/design-system/Ratchet.tsx | 2 +- src/components/design-system/StatusIcon.tsx | 2 +- src/components/design-system/Tabs.tsx | 2 +- .../design-system/ThemeProvider.tsx | 2 +- src/components/design-system/ThemedBox.tsx | 2 +- src/components/design-system/ThemedText.tsx | 2 +- src/components/diff/DiffDetailView.tsx | 2 +- src/components/diff/DiffDialog.tsx | 2 +- src/components/diff/DiffFileList.tsx | 2 +- src/components/grove/Grove.tsx | 2 +- src/components/hooks/HooksConfigMenu.tsx | 2 +- src/components/hooks/PromptDialog.tsx | 2 +- src/components/hooks/SelectEventMode.tsx | 2 +- src/components/hooks/SelectHookMode.tsx | 2 +- src/components/hooks/SelectMatcherMode.tsx | 2 +- src/components/hooks/ViewHookMode.tsx | 2 +- src/components/mcp/CapabilitiesSection.tsx | 2 +- src/components/mcp/ElicitationDialog.tsx | 2 +- src/components/mcp/MCPListPanel.tsx | 2 +- src/components/mcp/MCPReconnect.tsx | 2 +- src/components/mcp/MCPSettings.tsx | 2 +- src/components/mcp/MCPToolDetailView.tsx | 2 +- src/components/mcp/MCPToolListView.tsx | 2 +- src/components/mcp/McpParsingWarnings.tsx | 2 +- src/components/memory/MemoryFileSelector.tsx | 2 +- .../memory/MemoryUpdateNotification.tsx | 2 +- src/components/messageActions.tsx | 2 +- src/components/messages/AdvisorMessage.tsx | 2 +- .../AssistantRedactedThinkingMessage.tsx | 2 +- .../messages/AssistantTextMessage.tsx | 2 +- .../messages/AssistantThinkingMessage.tsx | 2 +- .../messages/AssistantToolUseMessage.tsx | 2 +- src/components/messages/AttachmentMessage.tsx | 2 +- .../messages/CollapsedReadSearchContent.tsx | 2 +- .../messages/CompactBoundaryMessage.tsx | 2 +- .../messages/HighlightedThinkingText.tsx | 2 +- .../messages/HookProgressMessage.tsx | 2 +- .../messages/PlanApprovalMessage.tsx | 2 +- src/components/messages/RateLimitMessage.tsx | 2 +- src/components/messages/ShutdownMessage.tsx | 2 +- .../messages/SystemAPIErrorMessage.tsx | 2 +- src/components/messages/SystemTextMessage.tsx | 2 +- .../messages/TaskAssignmentMessage.tsx | 2 +- .../messages/UserAgentNotificationMessage.tsx | 2 +- .../messages/UserBashInputMessage.tsx | 2 +- .../messages/UserBashOutputMessage.tsx | 2 +- .../messages/UserChannelMessage.tsx | 2 +- .../messages/UserCommandMessage.tsx | 2 +- src/components/messages/UserImageMessage.tsx | 2 +- .../UserLocalCommandOutputMessage.tsx | 2 +- .../messages/UserMemoryInputMessage.tsx | 2 +- src/components/messages/UserPlanMessage.tsx | 2 +- .../messages/UserResourceUpdateMessage.tsx | 2 +- .../messages/UserTeammateMessage.tsx | 2 +- src/components/messages/UserTextMessage.tsx | 2 +- .../RejectedPlanMessage.tsx | 2 +- .../RejectedToolUseMessage.tsx | 2 +- .../UserToolCanceledMessage.tsx | 2 +- .../UserToolErrorMessage.tsx | 2 +- .../UserToolRejectMessage.tsx | 2 +- .../UserToolResultMessage.tsx | 2 +- .../messages/UserToolResultMessage/utils.tsx | 2 +- src/components/messages/teamMemCollapsed.tsx | 2 +- .../AskUserQuestionPermissionRequest.tsx | 2 +- .../PreviewBox.tsx | 2 +- .../QuestionNavigationBar.tsx | 2 +- .../QuestionView.tsx | 2 +- .../SubmitQuestionsView.tsx | 2 +- .../BashPermissionRequest.tsx | 2 +- .../ComputerUseApproval.tsx | 2 +- .../EnterPlanModePermissionRequest.tsx | 2 +- .../permissions/FallbackPermissionRequest.tsx | 2 +- .../FileEditPermissionRequest.tsx | 2 +- .../FileWritePermissionRequest.tsx | 2 +- .../FileWriteToolDiff.tsx | 2 +- .../FilesystemPermissionRequest.tsx | 2 +- .../NotebookEditPermissionRequest.tsx | 2 +- .../NotebookEditToolDiff.tsx | 2 +- .../PermissionDecisionDebugInfo.tsx | 2 +- .../permissions/PermissionDialog.tsx | 2 +- .../permissions/PermissionExplanation.tsx | 2 +- .../permissions/PermissionPrompt.tsx | 2 +- .../permissions/PermissionRequest.tsx | 2 +- .../permissions/PermissionRequestTitle.tsx | 2 +- .../permissions/PermissionRuleExplanation.tsx | 2 +- .../permissions/SandboxPermissionRequest.tsx | 2 +- .../SedEditPermissionRequest.tsx | 2 +- .../SkillPermissionRequest.tsx | 2 +- .../WebFetchPermissionRequest.tsx | 2 +- src/components/permissions/WorkerBadge.tsx | 2 +- .../permissions/WorkerPendingPermission.tsx | 2 +- .../permissions/rules/AddPermissionRules.tsx | 2 +- .../rules/AddWorkspaceDirectory.tsx | 2 +- .../rules/PermissionRuleDescription.tsx | 2 +- .../permissions/rules/PermissionRuleInput.tsx | 2 +- .../permissions/rules/PermissionRuleList.tsx | 2 +- .../permissions/rules/RecentDenialsTab.tsx | 2 +- .../rules/RemoveWorkspaceDirectory.tsx | 2 +- .../permissions/rules/WorkspaceTab.tsx | 2 +- src/components/sandbox/SandboxConfigTab.tsx | 2 +- .../sandbox/SandboxDependenciesTab.tsx | 2 +- .../sandbox/SandboxDoctorSection.tsx | 2 +- .../sandbox/SandboxOverridesTab.tsx | 2 +- src/components/sandbox/SandboxSettings.tsx | 2 +- .../shell/ExpandShellOutputContext.tsx | 2 +- src/components/shell/OutputLine.tsx | 2 +- src/components/shell/ShellProgressMessage.tsx | 2 +- src/components/shell/ShellTimeDisplay.tsx | 2 +- src/components/skills/SkillsMenu.tsx | 2 +- .../tasks/AsyncAgentDetailDialog.tsx | 2 +- src/components/tasks/BackgroundTask.tsx | 2 +- src/components/tasks/BackgroundTaskStatus.tsx | 2 +- .../tasks/BackgroundTasksDialog.tsx | 7 +- src/components/tasks/DreamDetailDialog.tsx | 2 +- .../tasks/InProcessTeammateDetailDialog.tsx | 2 +- .../tasks/RemoteSessionDetailDialog.tsx | 2 +- .../tasks/RemoteSessionProgress.tsx | 2 +- src/components/tasks/ShellDetailDialog.tsx | 2 +- src/components/tasks/ShellProgress.tsx | 2 +- src/components/teams/TeamStatus.tsx | 2 +- src/components/teams/TeamsDialog.tsx | 2 +- src/components/ui/OrderedList.tsx | 2 +- src/components/ui/OrderedListItem.tsx | 2 +- src/components/ui/TreeSelect.tsx | 2 +- src/components/wizard/WizardDialogLayout.tsx | 2 +- src/components/wizard/WizardProvider.tsx | 2 +- src/context/QueuedMessageContext.tsx | 2 +- src/context/fpsMetrics.tsx | 2 +- src/context/mailbox.tsx | 2 +- src/context/modalContext.tsx | 2 +- src/context/overlayContext.tsx | 2 +- src/context/promptOverlayContext.tsx | 2 +- src/context/stats.tsx | 2 +- src/context/voice.tsx | 2 +- src/entrypoints/cli.tsx | 37 +++ .../useDeprecationWarningNotification.tsx | 2 +- src/hooks/notifs/useFastModeNotification.tsx | 2 +- src/hooks/notifs/useIDEStatusIndicator.tsx | 2 +- .../useLspInitializationNotification.tsx | 2 +- src/hooks/notifs/useMcpConnectivityStatus.tsx | 2 +- .../usePluginAutoupdateNotification.tsx | 2 +- .../notifs/usePluginInstallationStatus.tsx | 2 +- .../useRateLimitWarningNotification.tsx | 2 +- src/hooks/notifs/useSettingsErrors.tsx | 2 +- src/hooks/useCanUseTool.tsx | 2 +- src/hooks/useClaudeCodeHintRecommendation.tsx | 2 +- src/hooks/useCommandKeybindings.tsx | 2 +- src/hooks/useEffectEventCompat.ts | 16 + src/hooks/useIDEIntegration.tsx | 2 +- src/hooks/useLspPluginRecommendation.tsx | 2 +- src/hooks/usePluginRecommendationBase.tsx | 2 +- src/hooks/usePromptsFromClaudeInChrome.tsx | 2 +- src/hooks/useTeleportResume.tsx | 2 +- src/ink/Ansi.tsx | 2 +- src/ink/components/AlternateScreen.tsx | 2 +- src/ink/components/Box.tsx | 2 +- src/ink/components/Button.tsx | 2 +- src/ink/components/ClockContext.tsx | 2 +- src/ink/components/Link.tsx | 2 +- src/ink/components/Newline.tsx | 2 +- src/ink/components/NoSelect.tsx | 2 +- src/ink/components/RawAnsi.tsx | 2 +- src/ink/components/Spacer.tsx | 2 +- src/ink/components/TerminalFocusContext.tsx | 2 +- src/ink/components/Text.tsx | 2 +- src/ink/events/dispatcher.ts | 7 +- src/keybindings/KeybindingContext.tsx | 2 +- src/keybindings/KeybindingProviderSetup.tsx | 2 +- src/screens/Doctor.tsx | 2 +- src/screens/REPL.tsx | 2 +- src/screens/ResumeConversation.tsx | 2 +- src/services/mcp/MCPConnectionManager.tsx | 2 +- src/skills/bundled/verify.ts | 38 ++- src/state/AppState.tsx | 7 +- src/tools/AgentTool/UI.tsx | 2 +- .../AskUserQuestionTool.tsx | 2 +- src/tools/BashTool/BashToolResultMessage.tsx | 2 +- src/tools/BashTool/UI.tsx | 2 +- src/tools/BriefTool/UI.tsx | 2 +- src/tools/FileEditTool/UI.tsx | 2 +- src/tools/FileWriteTool/UI.tsx | 2 +- src/tools/GrepTool/UI.tsx | 2 +- src/tools/LSPTool/UI.tsx | 2 +- src/tools/MCPTool/UI.tsx | 2 +- src/tools/TaskOutputTool/TaskOutputTool.tsx | 2 +- src/utils/autoRunIssue.tsx | 2 +- src/utils/preflightChecks.tsx | 2 +- src/utils/staticRender.tsx | 2 +- src/utils/swarm/It2SetupPrompt.tsx | 2 +- 408 files changed, 1416 insertions(+), 431 deletions(-) create mode 100644 PLAYBOOK.md create mode 100644 scripts/provider-bootstrap.ts create mode 100644 scripts/provider-launch.ts create mode 100644 scripts/system-check.ts create mode 100644 src/hooks/useEffectEventCompat.ts diff --git a/.gitignore b/.gitignore index a8fdd940..757934ef 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,5 @@ dist/ *.tsbuildinfo .env .env.* +.openclaude-profile.json +reports/ diff --git a/PLAYBOOK.md b/PLAYBOOK.md new file mode 100644 index 00000000..662ee4dc --- /dev/null +++ b/PLAYBOOK.md @@ -0,0 +1,294 @@ +# OpenClaude Local Agent Playbook + +This playbook is a practical guide to run OpenClaude with a local model (Ollama), work safely, and get strong day-to-day results. + +## 1. What You Have + +- A CLI agent loop that can read/write files, run terminal commands, and help with coding workflows. +- A local provider profile system (`profile:init` and `dev:profile`). +- Runtime checks (`doctor:runtime`) and reporting (`doctor:report`). +- A local model profile currently set to `llama3.1:8b`. + +## 2. Daily Start (Fast Path) + +Run this in your project root: + +```powershell +bun run dev:profile +``` + +For quick switches: + +```powershell +# low latency preset +bun run dev:fast + +# better coding quality preset +bun run dev:code +``` + +If everything is healthy, OpenClaude starts directly. + +## 3. One-Time Setup (If Needed) + +### 3.1 Initialize a local profile + +```powershell +bun run profile:init -- --provider ollama --model llama3.1:8b +``` + +### 3.2 Confirm profile file + +```powershell +Get-Content .\.openclaude-profile.json +``` + +### 3.3 Validate environment + +```powershell +bun run doctor:runtime +``` + +## 4. Health and Diagnostics + +### 4.1 Human-readable checks + +```powershell +bun run doctor:runtime +``` + +### 4.2 JSON diagnostics (automation/logging) + +```powershell +bun run doctor:runtime:json +``` + +### 4.3 Persist runtime report + +```powershell +bun run doctor:report +``` + +Report output: + +- `reports/doctor-runtime.json` + +### 4.4 Hardening checks + +```powershell +# practical checks (smoke + runtime doctor) +bun run hardening:check + +# strict checks (includes typecheck) +bun run hardening:strict +``` + +## 5. Provider Modes + +## 5.1 Local mode (Ollama) + +```powershell +bun run profile:init -- --provider ollama --model llama3.1:8b +bun run dev:profile +``` + +Expected behavior: + +- No API key required. +- `OPENAI_BASE_URL` should be `http://localhost:11434/v1`. + +## 5.2 OpenAI mode + +```powershell +bun run profile:init -- --provider openai --api-key sk-... --model gpt-4o +bun run dev:profile +``` + +Expected behavior: + +- Real API key required. +- Placeholder values fail fast. + +## 6. Troubleshooting Matrix + +## 6.1 `Script not found "dev"` + +Cause: + +- You ran command in the wrong folder. + +Fix: + +```powershell +cd C:\Users\Lucas Pedry\Documents\openclaude\openclaude +bun run dev:profile +``` + +## 6.2 `ollama: term not recognized` + +Cause: + +- Ollama not installed or PATH not loaded in this terminal. + +Fix: + +- Install Ollama from https://ollama.com/download/windows or `winget install Ollama.Ollama`. +- Open a new terminal and run: + +```powershell +ollama --version +``` + +## 6.3 `Provider reachability failed` for localhost + +Cause: + +- Ollama service not running. + +Fix: + +```powershell +ollama serve +``` + +Then, in another terminal: + +```powershell +bun run doctor:runtime +``` + +## 6.4 `Missing key for non-local provider URL` + +Cause: + +- `OPENAI_BASE_URL` points to remote endpoint without key. + +Fix: + +- Re-initialize profile for ollama: + +```powershell +bun run profile:init -- --provider ollama --model llama3.1:8b +``` + +## 6.5 Placeholder key (`SUA_CHAVE`) error + +Cause: + +- Placeholder was used instead of real key. + +Fix: + +- For OpenAI: use a real key. +- For Ollama: no key needed; keep localhost base URL. + +## 7. Recommended Local Models + +- Fast/general: `llama3.1:8b` +- Better coding quality (if hardware supports): `qwen2.5-coder:14b` +- Low-resource fallback: smaller instruct model + +Switch model quickly: + +```powershell +bun run profile:init -- --provider ollama --model qwen2.5-coder:14b +bun run dev:profile +``` + +Preset shortcuts already configured: + +```powershell +bun run profile:fast # llama3.2:3b +bun run profile:code # qwen2.5-coder:7b +``` + +## 8. Practical Prompt Playbook (Copy/Paste) + +## 8.1 Code understanding + +- "Map this repository architecture and explain the execution flow from entrypoint to tool invocation." +- "Find the top 5 risky modules and explain why." + +## 8.2 Refactoring + +- "Refactor this module for clarity without behavior change, then run checks and summarize diff impact." +- "Extract shared logic from duplicated functions and add minimal tests." + +## 8.3 Debugging + +- "Reproduce the failure, identify root cause, implement fix, and validate with commands." +- "Trace this error path and list likely failure points with confidence levels." + +## 8.4 Reliability + +- "Add runtime guardrails and fail-fast messages for invalid provider env vars." +- "Create a diagnostic command that outputs JSON report for CI artifacts." + +## 8.5 Review mode + +- "Do a code review of unstaged changes, prioritize bugs/regressions, and suggest concrete patches." + +## 9. Safe Working Rules + +- Run `doctor:runtime` before debugging provider issues. +- Prefer `dev:profile` over manual env edits. +- Keep `.openclaude-profile.json` local (already gitignored). +- Use `doctor:report` before asking for help so you have a reproducible snapshot. + +## 10. Quick Recovery Checklist + +When something breaks, run in order: + +```powershell +bun run doctor:runtime +bun run doctor:report +bun run smoke +``` + +If answers are very slow, check processor mode: + +```powershell +ollama ps +``` + +If `PROCESSOR` shows `CPU`, your setup is valid but latency will be higher for large models. + +If local model mode is failing: + +```powershell +ollama --version +ollama serve +bun run doctor:runtime +bun run dev:profile +``` + +## 11. Command Reference + +```powershell +# profile +bun run profile:init -- --provider ollama --model llama3.1:8b +bun run profile:init -- --provider openai --api-key sk-... --model gpt-4o + +# launch +bun run dev:profile +bun run dev:ollama +bun run dev:openai + +# diagnostics +bun run doctor:runtime +bun run doctor:runtime:json +bun run doctor:report + +# quality +bun run smoke +bun run hardening:check +bun run hardening:strict +``` + +## 12. Success Criteria + +Your setup is healthy when: + +- `bun run doctor:runtime` passes provider and reachability checks. +- `bun run dev:profile` opens the CLI normally. +- Model shown in the UI matches your selected profile model. diff --git a/README.md b/README.md index b86904a9..28171555 100644 --- a/README.md +++ b/README.md @@ -168,6 +168,63 @@ You can also use `ANTHROPIC_MODEL` to override the model name. `OPENAI_MODEL` ta --- +## Runtime Hardening + +Use these commands to keep the CLI stable and catch environment mistakes early: + +```bash +# quick startup sanity check +bun run smoke + +# validate provider env + reachability +bun run doctor:runtime + +# print machine-readable runtime diagnostics +bun run doctor:runtime:json + +# persist a diagnostics report to reports/doctor-runtime.json +bun run doctor:report + +# full local hardening check (typecheck + smoke + runtime doctor) +bun run hardening:check + +# strict hardening (includes project-wide typecheck) +bun run hardening:strict +``` + +Notes: +- `doctor:runtime` fails fast if `CLAUDE_CODE_USE_OPENAI=1` with a placeholder key (`SUA_CHAVE`) or a missing key for non-local providers. +- Local providers (for example `http://localhost:11434/v1`) can run without `OPENAI_API_KEY`. + +### Provider Launch Profiles + +Use profile launchers to avoid repeated environment setup: + +```bash +# one-time profile bootstrap (auto-detect ollama, otherwise openai) +bun run profile:init + +# openai bootstrap with explicit key +bun run profile:init -- --provider openai --api-key sk-... + +# ollama bootstrap with custom model +bun run profile:init -- --provider ollama --model llama3.1:8b + +# launch using persisted profile (.openclaude-profile.json) +bun run dev:profile + +# OpenAI profile (requires OPENAI_API_KEY in your shell) +bun run dev:openai + +# Ollama profile (defaults: localhost:11434, llama3.1:8b) +bun run dev:ollama +``` + +`dev:openai` and `dev:ollama` run `doctor:runtime` first and only launch the app if checks pass. +For `dev:ollama`, make sure Ollama is running locally before launch. + +--- + ## What Works - **All tools**: Bash, FileRead, FileWrite, FileEdit, Glob, Grep, WebFetch, WebSearch, Agent, MCP, LSP, NotebookEdit, Tasks diff --git a/bun.lock b/bun.lock index bf322b52..7051fc49 100644 --- a/bun.lock +++ b/bun.lock @@ -8,6 +8,7 @@ "@alcalzone/ansi-tokenize": "^0.3.0", "@anthropic-ai/bedrock-sdk": "^0.26.0", "@anthropic-ai/foundry-sdk": "^0.2.0", + "@anthropic-ai/sandbox-runtime": "^0.0.46", "@anthropic-ai/sdk": "^0.81.0", "@anthropic-ai/vertex-sdk": "^0.14.0", "@commander-js/extra-typings": "^12.0.0", @@ -32,6 +33,7 @@ "chokidar": "^4.0.0", "cli-boxes": "^3.0.0", "cli-highlight": "^2.1.0", + "code-excerpt": "^4.0.0", "commander": "^12.0.0", "diff": "^7.0.0", "emoji-regex": "^10.4.0", @@ -53,12 +55,13 @@ "picomatch": "^4.0.0", "proper-lockfile": "^4.1.2", "qrcode": "^1.5.4", - "react": "^18.3.1", + "react": "^19.2.4", "react-compiler-runtime": "^1.0.0", - "react-reconciler": "^0.29.2", + "react-reconciler": "^0.33.0", "semver": "^7.6.3", "shell-quote": "^1.8.2", "signal-exit": "^4.1.0", + "stack-utils": "^2.0.6", "strip-ansi": "^7.1.0", "supports-hyperlinks": "^3.1.0", "tree-kill": "^1.2.2", @@ -75,7 +78,8 @@ }, "devDependencies": { "@types/bun": "^1.2.0", - "@types/react": "^18.3.0", + "@types/node": "^25.5.0", + "@types/react": "^19.2.14", "typescript": "^5.7.0", }, }, @@ -87,6 +91,8 @@ "@anthropic-ai/foundry-sdk": ["@anthropic-ai/foundry-sdk@0.2.3", "", { "dependencies": { "@anthropic-ai/sdk": ">=0.50.3 <1" } }, "sha512-pD5yYnAeem5s8wDLbdf8/N8CejF/edRd9TJV+0PrT9tLKv6ggQimnr7d05pQn6FrIYACPmty9hekCo2JgepP0w=="], + "@anthropic-ai/sandbox-runtime": ["@anthropic-ai/sandbox-runtime@0.0.46", "", { "dependencies": { "@pondwader/socks5-server": "^1.0.10", "@types/lodash-es": "^4.17.12", "commander": "^12.1.0", "lodash-es": "^4.17.23", "shell-quote": "^1.8.3", "zod": "^3.24.1" }, "bin": { "srt": "dist/cli.js" } }, "sha512-FeVZ4rbdiHNPiMtf70xkiwogDGXYcCKCPmYjrED2HGNlk5jOabgrlvUROz0SsVksIh24SVRuTwNTK/yGBFm/5w=="], + "@anthropic-ai/sdk": ["@anthropic-ai/sdk@0.81.0", "", { "dependencies": { "json-schema-to-ts": "^3.1.1" }, "peerDependencies": { "zod": "^3.25.0 || ^4.0.0" }, "optionalPeers": ["zod"], "bin": { "anthropic-ai-sdk": "bin/cli" } }, "sha512-D4K5PvEV6wPiRtVlVsJHIUhHAmOZ6IT/I9rKlTf84gR7GyyAurPJK7z9BOf/AZqC5d1DhYQGJNKRmV+q8dGhgw=="], "@anthropic-ai/vertex-sdk": ["@anthropic-ai/vertex-sdk@0.14.4", "", { "dependencies": { "@anthropic-ai/sdk": ">=0.50.3 <1", "google-auth-library": "^9.4.2" } }, "sha512-BZUPRWghZxfSFtAxU563wH+jfWBPoedAwsVxG35FhmNsjeV8tyfN+lFriWhCpcZApxA4NdT6Soov+PzfnxxD5g=="], @@ -213,6 +219,8 @@ "@opentelemetry/semantic-conventions": ["@opentelemetry/semantic-conventions@1.40.0", "", {}, "sha512-cifvXDhcqMwwTlTK04GBNeIe7yyo28Mfby85QXFe1Yk8nmi36Ab/5UQwptOx84SsoGNRg+EVSjwzfSZMy6pmlw=="], + "@pondwader/socks5-server": ["@pondwader/socks5-server@1.0.10", "", {}, "sha512-bQY06wzzR8D2+vVCUoBsr5QS2U6UgPUQRmErNwtsuI6vLcyRKkafjkr3KxbtGFf9aBBIV2mcvlsKD1UYaIV+sg=="], + "@protobufjs/aspromise": ["@protobufjs/aspromise@1.1.2", "", {}, "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ=="], "@protobufjs/base64": ["@protobufjs/base64@1.1.2", "", {}, "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg=="], @@ -329,11 +337,13 @@ "@types/bun": ["@types/bun@1.3.11", "", { "dependencies": { "bun-types": "1.3.11" } }, "sha512-5vPne5QvtpjGpsGYXiFyycfpDF2ECyPcTSsFBMa0fraoxiQyMJ3SmuQIGhzPg2WJuWxVBoxWJ2kClYTcw/4fAg=="], + "@types/lodash": ["@types/lodash@4.17.24", "", {}, "sha512-gIW7lQLZbue7lRSWEFql49QJJWThrTFFeIMJdp3eH4tKoxm1OvEPg02rm4wCCSHS0cL3/Fizimb35b7k8atwsQ=="], + + "@types/lodash-es": ["@types/lodash-es@4.17.12", "", { "dependencies": { "@types/lodash": "*" } }, "sha512-0NgftHUcV4v34VhXm8QBSftKVXtbkBG3ViCjs6+eJ5a6y6Mi/jiFGPc1sC7QK+9BFhWrURE3EOggmWaSxL9OzQ=="], + "@types/node": ["@types/node@25.5.0", "", { "dependencies": { "undici-types": "~7.18.0" } }, "sha512-jp2P3tQMSxWugkCUKLRPVUpGaL5MVFwF8RDuSRztfwgN1wmqJeMSbKlnEtQqU8UrhTmzEmZdu2I6v2dpp7XIxw=="], - "@types/prop-types": ["@types/prop-types@15.7.15", "", {}, "sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw=="], - - "@types/react": ["@types/react@18.3.28", "", { "dependencies": { "@types/prop-types": "*", "csstype": "^3.2.2" } }, "sha512-z9VXpC7MWrhfWipitjNdgCauoMLRdIILQsAEV+ZesIzBq/oUlxk0m3ApZuMFCXdnS4U7KrI+l3WRUEGQ8K1QKw=="], + "@types/react": ["@types/react@19.2.14", "", { "dependencies": { "csstype": "^3.2.2" } }, "sha512-ilcTH/UniCkMdtexkoCN0bI7pMcJDvmQFPvuPvmEaYA/NSfFTAgdUSLAoVjaRJm7+6PvcM+q1zYOwS4wTYMF9w=="], "accepts": ["accepts@2.0.0", "", { "dependencies": { "mime-types": "^3.0.0", "negotiator": "^1.0.0" } }, "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng=="], @@ -387,6 +397,8 @@ "cliui": ["cliui@7.0.4", "", { "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.0", "wrap-ansi": "^7.0.0" } }, "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ=="], + "code-excerpt": ["code-excerpt@4.0.0", "", { "dependencies": { "convert-to-spaces": "^2.0.1" } }, "sha512-xxodCmBen3iy2i0WtAK8FlFNrRzjUqjRsMfho58xT/wvZU1YTM3fCnRjcy1gJPMepaRlgm/0e6w8SpWHpn3/cA=="], + "color-convert": ["color-convert@2.0.1", "", { "dependencies": { "color-name": "~1.1.4" } }, "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ=="], "color-name": ["color-name@1.1.4", "", {}, "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="], @@ -399,6 +411,8 @@ "content-type": ["content-type@1.0.5", "", {}, "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA=="], + "convert-to-spaces": ["convert-to-spaces@2.0.1", "", {}, "sha512-rcQ1bsQO9799wq24uE5AM2tAILy4gXGIK/njFWcVQkGNZ96edlpY+A7bjwvzjYvLDyzmG1MmMLZhpcsb+klNMQ=="], + "cookie": ["cookie@0.7.2", "", {}, "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w=="], "cookie-signature": ["cookie-signature@1.2.2", "", {}, "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg=="], @@ -449,6 +463,8 @@ "escape-html": ["escape-html@1.0.3", "", {}, "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow=="], + "escape-string-regexp": ["escape-string-regexp@2.0.0", "", {}, "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w=="], + "etag": ["etag@1.8.1", "", {}, "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg=="], "eventsource": ["eventsource@3.0.7", "", { "dependencies": { "eventsource-parser": "^3.0.1" } }, "sha512-CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA=="], @@ -559,8 +575,6 @@ "jose": ["jose@6.2.2", "", {}, "sha512-d7kPDd34KO/YnzaDOlikGpOurfF0ByC2sEV4cANCtdqLlTfBlw2p14O/5d/zv40gJPbIQxfES3nSx1/oYNyuZQ=="], - "js-tokens": ["js-tokens@4.0.0", "", {}, "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="], - "json-bigint": ["json-bigint@1.0.0", "", { "dependencies": { "bignumber.js": "^9.0.0" } }, "sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ=="], "json-schema-to-ts": ["json-schema-to-ts@3.1.1", "", { "dependencies": { "@babel/runtime": "^7.18.3", "ts-algebra": "^2.0.0" } }, "sha512-+DWg8jCJG2TEnpy7kOm/7/AxaYoaRbjVB4LFZLySZlWn8exGs3A4OLJR966cVvU26N7X9TWxl+Jsw7dzAqKT6g=="], @@ -585,8 +599,6 @@ "long": ["long@5.3.2", "", {}, "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA=="], - "loose-envify": ["loose-envify@1.4.0", "", { "dependencies": { "js-tokens": "^3.0.0 || ^4.0.0" }, "bin": { "loose-envify": "cli.js" } }, "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q=="], - "lru-cache": ["lru-cache@11.2.7", "", {}, "sha512-aY/R+aEsRelme17KGQa/1ZSIpLpNYYrhcrepKTZgE+W3WM16YMCaPwOHLHsmopZHELU0Ojin1lPVxKR0MihncA=="], "marked": ["marked@15.0.12", "", { "bin": { "marked": "bin/marked.js" } }, "sha512-8dD6FusOQSrpv9Z1rdNMdlSgQOIP880DHqnohobOmYLElGEqAL/JvxvuxZO16r4HtjTlfPRDC1hbvxC9dPN2nA=="], @@ -667,11 +679,11 @@ "raw-body": ["raw-body@3.0.2", "", { "dependencies": { "bytes": "~3.1.2", "http-errors": "~2.0.1", "iconv-lite": "~0.7.0", "unpipe": "~1.0.0" } }, "sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA=="], - "react": ["react@18.3.1", "", { "dependencies": { "loose-envify": "^1.1.0" } }, "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ=="], + "react": ["react@19.2.4", "", {}, "sha512-9nfp2hYpCwOjAN+8TZFGhtWEwgvWHXqESH8qT89AT/lWklpLON22Lc8pEtnpsZz7VmawabSU0gCjnj8aC0euHQ=="], "react-compiler-runtime": ["react-compiler-runtime@1.0.0", "", { "peerDependencies": { "react": "^17.0.0 || ^18.0.0 || ^19.0.0 || ^0.0.0-experimental" } }, "sha512-rRfjYv66HlG8896yPUDONgKzG5BxZD1nV9U6rkm+7VCuvQc903C4MjcoZR4zPw53IKSOX9wMQVpA1IAbRtzQ7w=="], - "react-reconciler": ["react-reconciler@0.29.2", "", { "dependencies": { "loose-envify": "^1.1.0", "scheduler": "^0.23.2" }, "peerDependencies": { "react": "^18.3.1" } }, "sha512-zZQqIiYgDCTP/f1N/mAR10nJGrPD2ZR+jDSEsKWJHYC7Cm2wodlwbR3upZRdC3cjIjSlTLNVyO7Iu0Yy7t2AYg=="], + "react-reconciler": ["react-reconciler@0.33.0", "", { "dependencies": { "scheduler": "^0.27.0" }, "peerDependencies": { "react": "^19.2.0" } }, "sha512-KetWRytFv1epdpJc3J4G75I4WrplZE5jOL7Yq0p34+OVOKF4Se7WrdIdVC45XsSSmUTlht2FM/fM1FZb1mfQeA=="], "readdirp": ["readdirp@4.1.2", "", {}, "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg=="], @@ -689,7 +701,7 @@ "safer-buffer": ["safer-buffer@2.1.2", "", {}, "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="], - "scheduler": ["scheduler@0.23.2", "", { "dependencies": { "loose-envify": "^1.1.0" } }, "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ=="], + "scheduler": ["scheduler@0.27.0", "", {}, "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q=="], "semver": ["semver@7.7.4", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA=="], @@ -717,6 +729,8 @@ "signal-exit": ["signal-exit@4.1.0", "", {}, "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw=="], + "stack-utils": ["stack-utils@2.0.6", "", { "dependencies": { "escape-string-regexp": "^2.0.0" } }, "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ=="], + "statuses": ["statuses@2.0.2", "", {}, "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw=="], "string-width": ["string-width@7.2.0", "", { "dependencies": { "emoji-regex": "^10.3.0", "get-east-asian-width": "^1.0.0", "strip-ansi": "^7.1.0" } }, "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ=="], diff --git a/package.json b/package.json index 103979b7..15aa52f7 100644 --- a/package.json +++ b/package.json @@ -8,13 +8,29 @@ }, "scripts": { "build": "bun run scripts/build.ts", - "dev": "bun run src/entrypoints/cli.tsx", - "start": "node dist/cli.mjs" + "dev": "bun run build && node dist/cli.mjs", + "dev:profile": "bun run scripts/provider-launch.ts", + "dev:openai": "bun run scripts/provider-launch.ts openai", + "dev:ollama": "bun run scripts/provider-launch.ts ollama", + "profile:init": "bun run scripts/provider-bootstrap.ts", + "profile:fast": "bun run profile:init -- --provider ollama --model llama3.2:3b", + "profile:code": "bun run profile:init -- --provider ollama --model qwen2.5-coder:7b", + "dev:fast": "bun run profile:fast && bun run dev:profile", + "dev:code": "bun run profile:code && bun run dev:profile", + "start": "node dist/cli.mjs", + "typecheck": "tsc --noEmit", + "smoke": "bun run build && node dist/cli.mjs --version", + "doctor:runtime": "bun run scripts/system-check.ts", + "doctor:runtime:json": "bun run scripts/system-check.ts --json", + "doctor:report": "bun run scripts/system-check.ts --out reports/doctor-runtime.json", + "hardening:check": "bun run smoke && bun run doctor:runtime", + "hardening:strict": "bun run typecheck && bun run hardening:check" }, "dependencies": { "@alcalzone/ansi-tokenize": "^0.3.0", "@anthropic-ai/bedrock-sdk": "^0.26.0", "@anthropic-ai/foundry-sdk": "^0.2.0", + "@anthropic-ai/sandbox-runtime": "^0.0.46", "@anthropic-ai/sdk": "^0.81.0", "@anthropic-ai/vertex-sdk": "^0.14.0", "@commander-js/extra-typings": "^12.0.0", @@ -39,6 +55,7 @@ "chokidar": "^4.0.0", "cli-boxes": "^3.0.0", "cli-highlight": "^2.1.0", + "code-excerpt": "^4.0.0", "commander": "^12.0.0", "diff": "^7.0.0", "emoji-regex": "^10.4.0", @@ -60,12 +77,13 @@ "picomatch": "^4.0.0", "proper-lockfile": "^4.1.2", "qrcode": "^1.5.4", - "react": "^18.3.1", + "react": "^19.2.4", "react-compiler-runtime": "^1.0.0", - "react-reconciler": "^0.29.2", + "react-reconciler": "^0.33.0", "semver": "^7.6.3", "shell-quote": "^1.8.2", "signal-exit": "^4.1.0", + "stack-utils": "^2.0.6", "strip-ansi": "^7.1.0", "supports-hyperlinks": "^3.1.0", "tree-kill": "^1.2.2", @@ -82,7 +100,8 @@ }, "devDependencies": { "@types/bun": "^1.2.0", - "@types/react": "^18.3.0", + "@types/node": "^25.5.0", + "@types/react": "^19.2.14", "typescript": "^5.7.0" }, "engines": { diff --git a/scripts/provider-bootstrap.ts b/scripts/provider-bootstrap.ts new file mode 100644 index 00000000..7c066a00 --- /dev/null +++ b/scripts/provider-bootstrap.ts @@ -0,0 +1,99 @@ +// @ts-nocheck +import { writeFileSync } from 'node:fs' +import { resolve } from 'node:path' + +type ProviderProfile = 'openai' | 'ollama' + +type ProfileFile = { + profile: ProviderProfile + env: { + OPENAI_BASE_URL?: string + OPENAI_MODEL?: string + OPENAI_API_KEY?: string + } + createdAt: string +} + +function parseArg(name: string): string | null { + const args = process.argv.slice(2) + const idx = args.indexOf(name) + if (idx === -1) return null + return args[idx + 1] ?? null +} + +function parseProviderArg(): ProviderProfile | 'auto' { + const p = parseArg('--provider')?.toLowerCase() + if (p === 'openai' || p === 'ollama') return p + return 'auto' +} + +async function hasLocalOllama(): Promise { + const endpoint = 'http://localhost:11434/api/tags' + const controller = new AbortController() + const timeout = setTimeout(() => controller.abort(), 1200) + + try { + const response = await fetch(endpoint, { + method: 'GET', + signal: controller.signal, + }) + return response.ok + } catch { + return false + } finally { + clearTimeout(timeout) + } +} + +function sanitizeApiKey(key: string | null): string | undefined { + if (!key || key === 'SUA_CHAVE') return undefined + return key +} + +async function main(): Promise { + const provider = parseProviderArg() + const argModel = parseArg('--model') + const argBaseUrl = parseArg('--base-url') + const argApiKey = parseArg('--api-key') + + let selected: ProviderProfile + if (provider === 'auto') { + selected = (await hasLocalOllama()) ? 'ollama' : 'openai' + } else { + selected = provider + } + + const env: ProfileFile['env'] = {} + if (selected === 'ollama') { + env.OPENAI_BASE_URL = argBaseUrl || 'http://localhost:11434/v1' + env.OPENAI_MODEL = argModel || process.env.OPENAI_MODEL || 'llama3.1:8b' + const key = sanitizeApiKey(argApiKey || process.env.OPENAI_API_KEY || null) + if (key) env.OPENAI_API_KEY = key + } else { + env.OPENAI_BASE_URL = argBaseUrl || process.env.OPENAI_BASE_URL || 'https://api.openai.com/v1' + env.OPENAI_MODEL = argModel || process.env.OPENAI_MODEL || 'gpt-4o' + const key = sanitizeApiKey(argApiKey || process.env.OPENAI_API_KEY || null) + if (!key) { + console.error('OpenAI profile requires a real API key. Use --api-key or set OPENAI_API_KEY.') + process.exit(1) + } + env.OPENAI_API_KEY = key + } + + const profile: ProfileFile = { + profile: selected, + env, + createdAt: new Date().toISOString(), + } + + const outputPath = resolve(process.cwd(), '.openclaude-profile.json') + writeFileSync(outputPath, JSON.stringify(profile, null, 2), 'utf8') + + console.log(`Saved profile: ${selected}`) + console.log(`Path: ${outputPath}`) + console.log('Next: bun run dev:profile') +} + +await main() + +export {} diff --git a/scripts/provider-launch.ts b/scripts/provider-launch.ts new file mode 100644 index 00000000..e6d64b68 --- /dev/null +++ b/scripts/provider-launch.ts @@ -0,0 +1,138 @@ +// @ts-nocheck +import { spawn } from 'node:child_process' +import { existsSync, readFileSync } from 'node:fs' +import { resolve } from 'node:path' + +type ProviderProfile = 'openai' | 'ollama' + +type ProfileFile = { + profile: ProviderProfile + env?: { + OPENAI_BASE_URL?: string + OPENAI_MODEL?: string + OPENAI_API_KEY?: string + } +} + +function parseProfile(argv: string[]): ProviderProfile | 'auto' | null { + const profile = argv[0]?.toLowerCase() + if (!profile) return 'auto' + if (profile === 'auto') return 'auto' + if (profile === 'openai' || profile === 'ollama') return profile + return null +} + +function loadPersistedProfile(): ProfileFile | null { + const path = resolve(process.cwd(), '.openclaude-profile.json') + if (!existsSync(path)) return null + try { + const parsed = JSON.parse(readFileSync(path, 'utf8')) as ProfileFile + if (parsed.profile === 'openai' || parsed.profile === 'ollama') { + return parsed + } + return null + } catch { + return null + } +} + +async function hasLocalOllama(): Promise { + const endpoint = 'http://localhost:11434/api/tags' + const controller = new AbortController() + const timeout = setTimeout(() => controller.abort(), 1200) + try { + const response = await fetch(endpoint, { signal: controller.signal }) + return response.ok + } catch { + return false + } finally { + clearTimeout(timeout) + } +} + +function runCommand(command: string, env: NodeJS.ProcessEnv): Promise { + return new Promise(resolve => { + const child = spawn(command, { + cwd: process.cwd(), + env, + stdio: 'inherit', + shell: true, + }) + + child.on('close', code => resolve(code ?? 1)) + child.on('error', () => resolve(1)) + }) +} + +function buildEnv(profile: ProviderProfile, persisted: ProfileFile | null): NodeJS.ProcessEnv { + const persistedEnv = persisted?.env ?? {} + const env: NodeJS.ProcessEnv = { + ...process.env, + CLAUDE_CODE_USE_OPENAI: '1', + } + + if (profile === 'ollama') { + env.OPENAI_BASE_URL = persistedEnv.OPENAI_BASE_URL || process.env.OPENAI_BASE_URL || 'http://localhost:11434/v1' + env.OPENAI_MODEL = persistedEnv.OPENAI_MODEL || process.env.OPENAI_MODEL || 'llama3.1:8b' + if (!process.env.OPENAI_API_KEY || process.env.OPENAI_API_KEY === 'SUA_CHAVE') { + delete env.OPENAI_API_KEY + } + return env + } + + env.OPENAI_BASE_URL = process.env.OPENAI_BASE_URL || persistedEnv.OPENAI_BASE_URL || 'https://api.openai.com/v1' + env.OPENAI_MODEL = process.env.OPENAI_MODEL || persistedEnv.OPENAI_MODEL || 'gpt-4o' + env.OPENAI_API_KEY = process.env.OPENAI_API_KEY || persistedEnv.OPENAI_API_KEY + return env +} + +function printSummary(profile: ProviderProfile, env: NodeJS.ProcessEnv): void { + const keySet = Boolean(env.OPENAI_API_KEY) + console.log(`Launching profile: ${profile}`) + console.log(`OPENAI_BASE_URL=${env.OPENAI_BASE_URL}`) + console.log(`OPENAI_MODEL=${env.OPENAI_MODEL}`) + console.log(`OPENAI_API_KEY_SET=${keySet}`) +} + +async function main(): Promise { + const requestedProfile = parseProfile(process.argv.slice(2)) + if (!requestedProfile) { + console.error('Usage: bun run scripts/provider-launch.ts [openai|ollama|auto]') + process.exit(1) + } + + const persisted = loadPersistedProfile() + let profile: ProviderProfile + + if (requestedProfile === 'auto') { + if (persisted) { + profile = persisted.profile + } else { + profile = (await hasLocalOllama()) ? 'ollama' : 'openai' + } + } else { + profile = requestedProfile + } + + const env = buildEnv(profile, persisted) + + if (profile === 'openai' && (!env.OPENAI_API_KEY || env.OPENAI_API_KEY === 'SUA_CHAVE')) { + console.error('OPENAI_API_KEY is required for openai profile and cannot be SUA_CHAVE. Run: bun run profile:init -- --provider openai --api-key ') + process.exit(1) + } + + printSummary(profile, env) + + const doctorCode = await runCommand('bun run scripts/system-check.ts', env) + if (doctorCode !== 0) { + console.error('Runtime doctor failed. Fix configuration before launching.') + process.exit(doctorCode) + } + + const devCode = await runCommand('bun run dev', env) + process.exit(devCode) +} + +await main() + +export {} diff --git a/scripts/system-check.ts b/scripts/system-check.ts new file mode 100644 index 00000000..0da4556d --- /dev/null +++ b/scripts/system-check.ts @@ -0,0 +1,288 @@ +// @ts-nocheck +import { existsSync, mkdirSync, writeFileSync } from 'node:fs' +import { dirname, join, resolve } from 'node:path' +import { spawnSync } from 'node:child_process' + +type CheckResult = { + ok: boolean + label: string + detail?: string +} + +type CliOptions = { + json: boolean + outFile: string | null +} + +function pass(label: string, detail?: string): CheckResult { + return { ok: true, label, detail } +} + +function fail(label: string, detail?: string): CheckResult { + return { ok: false, label, detail } +} + +function isTruthy(value: string | undefined): boolean { + if (!value) return false + const normalized = value.trim().toLowerCase() + return normalized !== '' && normalized !== '0' && normalized !== 'false' && normalized !== 'no' +} + +function parseOptions(argv: string[]): CliOptions { + const options: CliOptions = { + json: false, + outFile: null, + } + + for (let i = 0; i < argv.length; i++) { + const arg = argv[i] + if (arg === '--json') { + options.json = true + continue + } + + if (arg === '--out') { + const next = argv[i + 1] + if (next && !next.startsWith('--')) { + options.outFile = next + i++ + } + } + } + + return options +} + +function checkNodeVersion(): CheckResult { + const raw = process.versions.node + const major = Number(raw.split('.')[0] ?? '0') + if (Number.isNaN(major)) { + return fail('Node.js version', `Could not parse version: ${raw}`) + } + + if (major < 20) { + return fail('Node.js version', `Detected ${raw}. Require >= 20.`) + } + + return pass('Node.js version', raw) +} + +function checkBunRuntime(): CheckResult { + const bunVersion = (globalThis as { Bun?: { version?: string } }).Bun?.version + if (!bunVersion) { + return pass('Bun runtime', 'Not running inside Bun (this is acceptable for Node startup).') + } + return pass('Bun runtime', bunVersion) +} + +function checkBuildArtifacts(): CheckResult { + const distCli = resolve(process.cwd(), 'dist', 'cli.mjs') + if (!existsSync(distCli)) { + return fail('Build artifacts', `Missing ${distCli}. Run: bun run build`) + } + return pass('Build artifacts', distCli) +} + +function isLocalBaseUrl(baseUrl: string): boolean { + try { + const url = new URL(baseUrl) + return url.hostname === 'localhost' || url.hostname === '127.0.0.1' || url.hostname === '::1' + } catch { + return false + } +} + +function currentBaseUrl(): string { + return process.env.OPENAI_BASE_URL ?? 'https://api.openai.com/v1' +} + +function checkOpenAIEnv(): CheckResult[] { + const results: CheckResult[] = [] + const useOpenAI = isTruthy(process.env.CLAUDE_CODE_USE_OPENAI) + + if (!useOpenAI) { + results.push(pass('Provider mode', 'Anthropic login flow enabled (CLAUDE_CODE_USE_OPENAI is off).')) + return results + } + + const baseUrl = process.env.OPENAI_BASE_URL ?? 'https://api.openai.com/v1' + const model = process.env.OPENAI_MODEL + const key = process.env.OPENAI_API_KEY + + results.push(pass('Provider mode', 'OpenAI-compatible provider enabled.')) + + if (!model) { + results.push(pass('OPENAI_MODEL', 'Not set. Runtime fallback model will be used.')) + } else { + results.push(pass('OPENAI_MODEL', model)) + } + + results.push(pass('OPENAI_BASE_URL', baseUrl)) + + if (key === 'SUA_CHAVE') { + results.push(fail('OPENAI_API_KEY', 'Placeholder value detected: SUA_CHAVE.')) + } else if (!key && !isLocalBaseUrl(baseUrl)) { + results.push(fail('OPENAI_API_KEY', 'Missing key for non-local provider URL.')) + } else if (!key) { + results.push(pass('OPENAI_API_KEY', 'Not set (allowed for local providers like Ollama/LM Studio).')) + } else { + results.push(pass('OPENAI_API_KEY', 'Configured.')) + } + + return results +} + +async function checkBaseUrlReachability(): Promise { + if (!isTruthy(process.env.CLAUDE_CODE_USE_OPENAI)) { + return pass('Provider reachability', 'Skipped (OpenAI-compatible mode disabled).') + } + + const baseUrl = currentBaseUrl() + const key = process.env.OPENAI_API_KEY + const endpoint = `${baseUrl.replace(/\/$/, '')}/models` + + const controller = new AbortController() + const timeout = setTimeout(() => controller.abort(), 4000) + + try { + const headers: Record = {} + if (key) { + headers.Authorization = `Bearer ${key}` + } + + const response = await fetch(endpoint, { + method: 'GET', + headers, + signal: controller.signal, + }) + + if (response.status === 200 || response.status === 401 || response.status === 403) { + return pass('Provider reachability', `Reached ${endpoint} (status ${response.status}).`) + } + + return fail('Provider reachability', `Unexpected status ${response.status} from ${endpoint}.`) + } catch (error) { + const message = error instanceof Error ? error.message : String(error) + return fail('Provider reachability', `Failed to reach ${endpoint}: ${message}`) + } finally { + clearTimeout(timeout) + } +} + +function checkOllamaProcessorMode(): CheckResult { + if (!isTruthy(process.env.CLAUDE_CODE_USE_OPENAI)) { + return pass('Ollama processor mode', 'Skipped (OpenAI-compatible mode disabled).') + } + + const baseUrl = currentBaseUrl() + if (!isLocalBaseUrl(baseUrl)) { + return pass('Ollama processor mode', 'Skipped (provider URL is not local).') + } + + const result = spawnSync('ollama', ['ps'], { + cwd: process.cwd(), + encoding: 'utf8', + shell: true, + }) + + if (result.status !== 0) { + const detail = (result.stderr || result.stdout || 'Unable to run ollama ps').trim() + return fail('Ollama processor mode', detail) + } + + const output = (result.stdout || '').trim() + if (!output) { + return fail('Ollama processor mode', 'ollama ps returned empty output.') + } + + const lines = output.split(/\r?\n/).map(line => line.trim()).filter(Boolean) + const modelLine = lines.find(line => line.includes(':') && !line.startsWith('NAME')) + if (!modelLine) { + return pass('Ollama processor mode', 'No loaded model found (run a prompt first).') + } + + if (modelLine.includes('CPU')) { + return pass('Ollama processor mode', 'Detected CPU mode. This is valid but can be slow for larger models.') + } + + return pass('Ollama processor mode', `Detected non-CPU mode: ${modelLine}`) +} + +function serializeSafeEnvSummary(): Record { + return { + CLAUDE_CODE_USE_OPENAI: isTruthy(process.env.CLAUDE_CODE_USE_OPENAI), + OPENAI_MODEL: process.env.OPENAI_MODEL ?? '(unset)', + OPENAI_BASE_URL: process.env.OPENAI_BASE_URL ?? 'https://api.openai.com/v1', + OPENAI_API_KEY_SET: Boolean(process.env.OPENAI_API_KEY), + } +} + +function printResults(results: CheckResult[]): void { + for (const result of results) { + const icon = result.ok ? 'PASS' : 'FAIL' + const suffix = result.detail ? ` - ${result.detail}` : '' + console.log(`[${icon}] ${result.label}${suffix}`) + } +} + +function writeJsonReport( + options: CliOptions, + results: CheckResult[], +): void { + const payload = { + timestamp: new Date().toISOString(), + cwd: process.cwd(), + summary: { + total: results.length, + passed: results.filter(result => result.ok).length, + failed: results.filter(result => !result.ok).length, + }, + env: serializeSafeEnvSummary(), + results, + } + + if (options.json) { + console.log(JSON.stringify(payload, null, 2)) + } + + if (options.outFile) { + const outputPath = resolve(process.cwd(), options.outFile) + mkdirSync(dirname(outputPath), { recursive: true }) + writeFileSync(outputPath, JSON.stringify(payload, null, 2), 'utf8') + if (!options.json) { + console.log(`Report written to ${outputPath}`) + } + } +} + +async function main(): Promise { + const options = parseOptions(process.argv.slice(2)) + const results: CheckResult[] = [] + + results.push(checkNodeVersion()) + results.push(checkBunRuntime()) + results.push(checkBuildArtifacts()) + results.push(...checkOpenAIEnv()) + results.push(await checkBaseUrlReachability()) + results.push(checkOllamaProcessorMode()) + + if (!options.json) { + printResults(results) + } + + writeJsonReport(options, results) + + const hasFailure = results.some(result => !result.ok) + if (hasFailure) { + process.exitCode = 1 + return + } + + if (!options.json) { + console.log('\nRuntime checks completed successfully.') + } +} + +await main() + +export {} diff --git a/src/buddy/CompanionSprite.tsx b/src/buddy/CompanionSprite.tsx index f7f1f720..e6e23cc2 100644 --- a/src/buddy/CompanionSprite.tsx +++ b/src/buddy/CompanionSprite.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { feature } from 'bun:bundle'; import figures from 'figures'; import React, { useEffect, useRef, useState } from 'react'; diff --git a/src/buddy/useBuddyNotification.tsx b/src/buddy/useBuddyNotification.tsx index d6eed22b..cf47a37f 100644 --- a/src/buddy/useBuddyNotification.tsx +++ b/src/buddy/useBuddyNotification.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { feature } from 'bun:bundle'; import React, { useEffect } from 'react'; import { useNotifications } from '../context/notifications.js'; diff --git a/src/cli/handlers/util.tsx b/src/cli/handlers/util.tsx index 03ff3cd7..1baba65a 100644 --- a/src/cli/handlers/util.tsx +++ b/src/cli/handlers/util.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; /** * Miscellaneous subcommand handlers — extracted from main.tsx for lazy loading. * setup-token, doctor, install diff --git a/src/commands/add-dir/add-dir.tsx b/src/commands/add-dir/add-dir.tsx index b1a2b4de..e5c2e463 100644 --- a/src/commands/add-dir/add-dir.tsx +++ b/src/commands/add-dir/add-dir.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import chalk from 'chalk'; import figures from 'figures'; import React, { useEffect } from 'react'; diff --git a/src/commands/bridge/bridge.tsx b/src/commands/bridge/bridge.tsx index 02ca16b4..5555b3f1 100644 --- a/src/commands/bridge/bridge.tsx +++ b/src/commands/bridge/bridge.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { feature } from 'bun:bundle'; import { toString as qrToString } from 'qrcode'; import * as React from 'react'; diff --git a/src/commands/btw/btw.tsx b/src/commands/btw/btw.tsx index f3c1c5f0..88d91776 100644 --- a/src/commands/btw/btw.tsx +++ b/src/commands/btw/btw.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { useEffect, useRef, useState } from 'react'; import { useInterval } from 'usehooks-ts'; diff --git a/src/commands/chrome/chrome.tsx b/src/commands/chrome/chrome.tsx index c3378739..542b1609 100644 --- a/src/commands/chrome/chrome.tsx +++ b/src/commands/chrome/chrome.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { useState } from 'react'; import { type OptionWithDescription, Select } from '../../components/CustomSelect/select.js'; import { Dialog } from '../../components/design-system/Dialog.js'; diff --git a/src/commands/copy/copy.tsx b/src/commands/copy/copy.tsx index 5853d165..c762a421 100644 --- a/src/commands/copy/copy.tsx +++ b/src/commands/copy/copy.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { mkdir, writeFile } from 'fs/promises'; import { marked, type Tokens } from 'marked'; import { tmpdir } from 'os'; diff --git a/src/commands/effort/effort.tsx b/src/commands/effort/effort.tsx index 41dd0d85..0dadd606 100644 --- a/src/commands/effort/effort.tsx +++ b/src/commands/effort/effort.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { useMainLoopModel } from '../../hooks/useMainLoopModel.js'; import { type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS, logEvent } from '../../services/analytics/index.js'; diff --git a/src/commands/fast/fast.tsx b/src/commands/fast/fast.tsx index 398c3c34..fd062c25 100644 --- a/src/commands/fast/fast.tsx +++ b/src/commands/fast/fast.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { useState } from 'react'; import type { CommandResultDisplay, LocalJSXCommandContext } from '../../commands.js'; diff --git a/src/commands/ide/ide.tsx b/src/commands/ide/ide.tsx index 0a41b977..e9691f1b 100644 --- a/src/commands/ide/ide.tsx +++ b/src/commands/ide/ide.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import chalk from 'chalk'; import * as path from 'path'; import React, { useCallback, useEffect, useRef, useState } from 'react'; diff --git a/src/commands/install-github-app/ApiKeyStep.tsx b/src/commands/install-github-app/ApiKeyStep.tsx index 2dcb312c..c672457b 100644 --- a/src/commands/install-github-app/ApiKeyStep.tsx +++ b/src/commands/install-github-app/ApiKeyStep.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { useCallback, useState } from 'react'; import TextInput from '../../components/TextInput.js'; import { useTerminalSize } from '../../hooks/useTerminalSize.js'; diff --git a/src/commands/install-github-app/CheckExistingSecretStep.tsx b/src/commands/install-github-app/CheckExistingSecretStep.tsx index ff2bf455..5eecd886 100644 --- a/src/commands/install-github-app/CheckExistingSecretStep.tsx +++ b/src/commands/install-github-app/CheckExistingSecretStep.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { useCallback, useState } from 'react'; import TextInput from '../../components/TextInput.js'; import { useTerminalSize } from '../../hooks/useTerminalSize.js'; diff --git a/src/commands/install-github-app/CheckGitHubStep.tsx b/src/commands/install-github-app/CheckGitHubStep.tsx index 5bf1d8f7..4378e0c2 100644 --- a/src/commands/install-github-app/CheckGitHubStep.tsx +++ b/src/commands/install-github-app/CheckGitHubStep.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { Text } from '../../ink.js'; export function CheckGitHubStep() { diff --git a/src/commands/install-github-app/ChooseRepoStep.tsx b/src/commands/install-github-app/ChooseRepoStep.tsx index 04d1a6b3..32effbff 100644 --- a/src/commands/install-github-app/ChooseRepoStep.tsx +++ b/src/commands/install-github-app/ChooseRepoStep.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { useCallback, useState } from 'react'; import TextInput from '../../components/TextInput.js'; import { useTerminalSize } from '../../hooks/useTerminalSize.js'; diff --git a/src/commands/install-github-app/CreatingStep.tsx b/src/commands/install-github-app/CreatingStep.tsx index ef597879..c70152ad 100644 --- a/src/commands/install-github-app/CreatingStep.tsx +++ b/src/commands/install-github-app/CreatingStep.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { Box, Text } from '../../ink.js'; import type { Workflow } from './types.js'; diff --git a/src/commands/install-github-app/ErrorStep.tsx b/src/commands/install-github-app/ErrorStep.tsx index 6fad7afd..314e66c5 100644 --- a/src/commands/install-github-app/ErrorStep.tsx +++ b/src/commands/install-github-app/ErrorStep.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { GITHUB_ACTION_SETUP_DOCS_URL } from '../../constants/github-app.js'; import { Box, Text } from '../../ink.js'; diff --git a/src/commands/install-github-app/ExistingWorkflowStep.tsx b/src/commands/install-github-app/ExistingWorkflowStep.tsx index 3efff6f4..4a4693c3 100644 --- a/src/commands/install-github-app/ExistingWorkflowStep.tsx +++ b/src/commands/install-github-app/ExistingWorkflowStep.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { Select } from 'src/components/CustomSelect/index.js'; import { Box, Text } from '../../ink.js'; diff --git a/src/commands/install-github-app/InstallAppStep.tsx b/src/commands/install-github-app/InstallAppStep.tsx index d8ba6cb9..0af0bbe2 100644 --- a/src/commands/install-github-app/InstallAppStep.tsx +++ b/src/commands/install-github-app/InstallAppStep.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import React from 'react'; import { GITHUB_ACTION_SETUP_DOCS_URL } from '../../constants/github-app.js'; diff --git a/src/commands/install-github-app/SuccessStep.tsx b/src/commands/install-github-app/SuccessStep.tsx index 0c0ee10a..dbc8cc87 100644 --- a/src/commands/install-github-app/SuccessStep.tsx +++ b/src/commands/install-github-app/SuccessStep.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { Box, Text } from '../../ink.js'; type SuccessStepProps = { diff --git a/src/commands/install-github-app/WarningsStep.tsx b/src/commands/install-github-app/WarningsStep.tsx index ce60a5d4..d8b4d886 100644 --- a/src/commands/install-github-app/WarningsStep.tsx +++ b/src/commands/install-github-app/WarningsStep.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import React from 'react'; import { GITHUB_ACTION_SETUP_DOCS_URL } from '../../constants/github-app.js'; diff --git a/src/commands/install.tsx b/src/commands/install.tsx index cba6949c..c0f827b9 100644 --- a/src/commands/install.tsx +++ b/src/commands/install.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { homedir } from 'node:os'; import { join } from 'node:path'; import React, { useEffect, useState } from 'react'; diff --git a/src/commands/login/login.tsx b/src/commands/login/login.tsx index b532534d..8eeec9e3 100644 --- a/src/commands/login/login.tsx +++ b/src/commands/login/login.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { feature } from 'bun:bundle'; import * as React from 'react'; import { resetCostState } from '../../bootstrap/state.js'; diff --git a/src/commands/mcp/mcp.tsx b/src/commands/mcp/mcp.tsx index f5cf40da..19b3a94a 100644 --- a/src/commands/mcp/mcp.tsx +++ b/src/commands/mcp/mcp.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { useEffect, useRef } from 'react'; import { MCPSettings } from '../../components/mcp/index.js'; import { MCPReconnect } from '../../components/mcp/MCPReconnect.js'; diff --git a/src/commands/mobile/mobile.tsx b/src/commands/mobile/mobile.tsx index 40968c19..54bb2993 100644 --- a/src/commands/mobile/mobile.tsx +++ b/src/commands/mobile/mobile.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { toString as qrToString } from 'qrcode'; import * as React from 'react'; import { useCallback, useEffect, useState } from 'react'; diff --git a/src/commands/model/model.tsx b/src/commands/model/model.tsx index 65c084d9..97a833fd 100644 --- a/src/commands/model/model.tsx +++ b/src/commands/model/model.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import chalk from 'chalk'; import * as React from 'react'; import type { CommandResultDisplay } from '../../commands.js'; diff --git a/src/commands/plan/plan.tsx b/src/commands/plan/plan.tsx index c8597b0c..291b8e89 100644 --- a/src/commands/plan/plan.tsx +++ b/src/commands/plan/plan.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { handlePlanModeTransition } from '../../bootstrap/state.js'; import type { LocalJSXCommandContext } from '../../commands.js'; diff --git a/src/commands/plugin/DiscoverPlugins.tsx b/src/commands/plugin/DiscoverPlugins.tsx index d62a8dbb..3e242a59 100644 --- a/src/commands/plugin/DiscoverPlugins.tsx +++ b/src/commands/plugin/DiscoverPlugins.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import * as React from 'react'; import { useCallback, useEffect, useMemo, useState } from 'react'; diff --git a/src/commands/plugin/ManageMarketplaces.tsx b/src/commands/plugin/ManageMarketplaces.tsx index 0e5d3ccf..82f19ddf 100644 --- a/src/commands/plugin/ManageMarketplaces.tsx +++ b/src/commands/plugin/ManageMarketplaces.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import * as React from 'react'; import { useEffect, useRef, useState } from 'react'; diff --git a/src/commands/plugin/PluginOptionsDialog.tsx b/src/commands/plugin/PluginOptionsDialog.tsx index 87e6721b..3b478889 100644 --- a/src/commands/plugin/PluginOptionsDialog.tsx +++ b/src/commands/plugin/PluginOptionsDialog.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import React, { useCallback, useState } from 'react'; import { Dialog } from '../../components/design-system/Dialog.js'; diff --git a/src/commands/plugin/PluginSettings.tsx b/src/commands/plugin/PluginSettings.tsx index f325180c..ca351966 100644 --- a/src/commands/plugin/PluginSettings.tsx +++ b/src/commands/plugin/PluginSettings.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import * as React from 'react'; import { useCallback, useEffect, useState } from 'react'; diff --git a/src/commands/plugin/PluginTrustWarning.tsx b/src/commands/plugin/PluginTrustWarning.tsx index a0321dc4..97e707e1 100644 --- a/src/commands/plugin/PluginTrustWarning.tsx +++ b/src/commands/plugin/PluginTrustWarning.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import * as React from 'react'; import { Box, Text } from '../../ink.js'; diff --git a/src/commands/plugin/UnifiedInstalledCell.tsx b/src/commands/plugin/UnifiedInstalledCell.tsx index cc4cbcbd..74295457 100644 --- a/src/commands/plugin/UnifiedInstalledCell.tsx +++ b/src/commands/plugin/UnifiedInstalledCell.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import * as React from 'react'; import { Box, color, Text, useTheme } from '../../ink.js'; diff --git a/src/commands/plugin/ValidatePlugin.tsx b/src/commands/plugin/ValidatePlugin.tsx index 084f5dc6..c9b65a39 100644 --- a/src/commands/plugin/ValidatePlugin.tsx +++ b/src/commands/plugin/ValidatePlugin.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import * as React from 'react'; import { useEffect } from 'react'; diff --git a/src/commands/plugin/pluginDetailsHelpers.tsx b/src/commands/plugin/pluginDetailsHelpers.tsx index fbd365a9..ec6dd65a 100644 --- a/src/commands/plugin/pluginDetailsHelpers.tsx +++ b/src/commands/plugin/pluginDetailsHelpers.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; /** * Shared helper functions and types for plugin details views * diff --git a/src/commands/rate-limit-options/rate-limit-options.tsx b/src/commands/rate-limit-options/rate-limit-options.tsx index 296ca4b8..e3f52c1b 100644 --- a/src/commands/rate-limit-options/rate-limit-options.tsx +++ b/src/commands/rate-limit-options/rate-limit-options.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { useMemo, useState } from 'react'; import type { CommandResultDisplay, LocalJSXCommandContext } from '../../commands.js'; import { type OptionWithDescription, Select } from '../../components/CustomSelect/select.js'; diff --git a/src/commands/resume/resume.tsx b/src/commands/resume/resume.tsx index 8226c441..bf49911d 100644 --- a/src/commands/resume/resume.tsx +++ b/src/commands/resume/resume.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import chalk from 'chalk'; import type { UUID } from 'crypto'; import figures from 'figures'; diff --git a/src/commands/review/UltrareviewOverageDialog.tsx b/src/commands/review/UltrareviewOverageDialog.tsx index ef0e68f7..f3989c0c 100644 --- a/src/commands/review/UltrareviewOverageDialog.tsx +++ b/src/commands/review/UltrareviewOverageDialog.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { useCallback, useRef, useState } from 'react'; import { Select } from '../../components/CustomSelect/select.js'; import { Dialog } from '../../components/design-system/Dialog.js'; diff --git a/src/commands/session/session.tsx b/src/commands/session/session.tsx index f4f60835..4402586f 100644 --- a/src/commands/session/session.tsx +++ b/src/commands/session/session.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { toString as qrToString } from 'qrcode'; import * as React from 'react'; import { useEffect, useState } from 'react'; diff --git a/src/commands/tag/tag.tsx b/src/commands/tag/tag.tsx index 3809a995..c3c7c6db 100644 --- a/src/commands/tag/tag.tsx +++ b/src/commands/tag/tag.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import chalk from 'chalk'; import type { UUID } from 'crypto'; import * as React from 'react'; diff --git a/src/commands/theme/theme.tsx b/src/commands/theme/theme.tsx index 51725701..35164da5 100644 --- a/src/commands/theme/theme.tsx +++ b/src/commands/theme/theme.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import type { CommandResultDisplay } from '../../commands.js'; import { Pane } from '../../components/design-system/Pane.js'; diff --git a/src/commands/thinkback/thinkback.tsx b/src/commands/thinkback/thinkback.tsx index fbd34f0f..bea4ec1e 100644 --- a/src/commands/thinkback/thinkback.tsx +++ b/src/commands/thinkback/thinkback.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { execa } from 'execa'; import { readFile } from 'fs/promises'; import { join } from 'path'; diff --git a/src/components/AgentProgressLine.tsx b/src/components/AgentProgressLine.tsx index 49fa5021..abdff603 100644 --- a/src/components/AgentProgressLine.tsx +++ b/src/components/AgentProgressLine.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { Box, Text } from '../ink.js'; import { formatNumber } from '../utils/format.js'; diff --git a/src/components/App.tsx b/src/components/App.tsx index cdded5b7..0113fb3c 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { FpsMetricsProvider } from '../context/fpsMetrics.js'; import { StatsProvider, type StatsStore } from '../context/stats.js'; diff --git a/src/components/ApproveApiKey.tsx b/src/components/ApproveApiKey.tsx index be54c0e3..41cfc9ca 100644 --- a/src/components/ApproveApiKey.tsx +++ b/src/components/ApproveApiKey.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { Text } from '../ink.js'; import { saveGlobalConfig } from '../utils/config.js'; diff --git a/src/components/AutoModeOptInDialog.tsx b/src/components/AutoModeOptInDialog.tsx index 07fbf03f..40cb3be1 100644 --- a/src/components/AutoModeOptInDialog.tsx +++ b/src/components/AutoModeOptInDialog.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { logEvent } from 'src/services/analytics/index.js'; import { Box, Link, Text } from '../ink.js'; diff --git a/src/components/AutoUpdaterWrapper.tsx b/src/components/AutoUpdaterWrapper.tsx index d812ec36..1d003ec2 100644 --- a/src/components/AutoUpdaterWrapper.tsx +++ b/src/components/AutoUpdaterWrapper.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { feature } from 'bun:bundle'; import * as React from 'react'; import type { AutoUpdaterResult } from '../utils/autoUpdater.js'; diff --git a/src/components/AwsAuthStatusBox.tsx b/src/components/AwsAuthStatusBox.tsx index 9dd58495..f1445396 100644 --- a/src/components/AwsAuthStatusBox.tsx +++ b/src/components/AwsAuthStatusBox.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { useEffect, useState } from 'react'; import { Box, Link, Text } from '../ink.js'; import { type AwsAuthStatus, AwsAuthStatusManager } from '../utils/awsAuthStatusManager.js'; diff --git a/src/components/BaseTextInput.tsx b/src/components/BaseTextInput.tsx index 8edc6056..16349c84 100644 --- a/src/components/BaseTextInput.tsx +++ b/src/components/BaseTextInput.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { renderPlaceholder } from '../hooks/renderPlaceholder.js'; import { usePasteHandler } from '../hooks/usePasteHandler.js'; diff --git a/src/components/BashModeProgress.tsx b/src/components/BashModeProgress.tsx index dbbce047..728b4176 100644 --- a/src/components/BashModeProgress.tsx +++ b/src/components/BashModeProgress.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { Box } from '../ink.js'; import { BashTool } from '../tools/BashTool/BashTool.js'; diff --git a/src/components/BridgeDialog.tsx b/src/components/BridgeDialog.tsx index 4f25836c..1774a00e 100644 --- a/src/components/BridgeDialog.tsx +++ b/src/components/BridgeDialog.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { basename } from 'path'; import { toString as qrToString } from 'qrcode'; import * as React from 'react'; diff --git a/src/components/BypassPermissionsModeDialog.tsx b/src/components/BypassPermissionsModeDialog.tsx index ed09416c..54ea5ca4 100644 --- a/src/components/BypassPermissionsModeDialog.tsx +++ b/src/components/BypassPermissionsModeDialog.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { useCallback } from 'react'; import { logEvent } from 'src/services/analytics/index.js'; import { Box, Link, Newline, Text } from '../ink.js'; diff --git a/src/components/ChannelDowngradeDialog.tsx b/src/components/ChannelDowngradeDialog.tsx index 4fd73498..b120a184 100644 --- a/src/components/ChannelDowngradeDialog.tsx +++ b/src/components/ChannelDowngradeDialog.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { Text } from '../ink.js'; import { Select } from './CustomSelect/index.js'; diff --git a/src/components/ClaudeInChromeOnboarding.tsx b/src/components/ClaudeInChromeOnboarding.tsx index 10fb1823..61cf0d23 100644 --- a/src/components/ClaudeInChromeOnboarding.tsx +++ b/src/components/ClaudeInChromeOnboarding.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { logEvent } from 'src/services/analytics/index.js'; // eslint-disable-next-line custom-rules/prefer-use-keybindings -- enter to continue diff --git a/src/components/ClaudeMdExternalIncludesDialog.tsx b/src/components/ClaudeMdExternalIncludesDialog.tsx index 2428e89f..65ac86b5 100644 --- a/src/components/ClaudeMdExternalIncludesDialog.tsx +++ b/src/components/ClaudeMdExternalIncludesDialog.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { useCallback } from 'react'; import { logEvent } from 'src/services/analytics/index.js'; import { Box, Link, Text } from '../ink.js'; diff --git a/src/components/ClickableImageRef.tsx b/src/components/ClickableImageRef.tsx index ff48a720..3bce0990 100644 --- a/src/components/ClickableImageRef.tsx +++ b/src/components/ClickableImageRef.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { pathToFileURL } from 'url'; import Link from '../ink/components/Link.js'; diff --git a/src/components/CompactSummary.tsx b/src/components/CompactSummary.tsx index 72e1b18c..8179cba7 100644 --- a/src/components/CompactSummary.tsx +++ b/src/components/CompactSummary.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { BLACK_CIRCLE } from '../constants/figures.js'; import { Box, Text } from '../ink.js'; diff --git a/src/components/ConfigurableShortcutHint.tsx b/src/components/ConfigurableShortcutHint.tsx index e783da5b..6e9efb66 100644 --- a/src/components/ConfigurableShortcutHint.tsx +++ b/src/components/ConfigurableShortcutHint.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import type { KeybindingAction, KeybindingContextName } from '../keybindings/types.js'; import { useShortcutDisplay } from '../keybindings/useShortcutDisplay.js'; diff --git a/src/components/ConsoleOAuthFlow.tsx b/src/components/ConsoleOAuthFlow.tsx index 717697f6..a0779478 100644 --- a/src/components/ConsoleOAuthFlow.tsx +++ b/src/components/ConsoleOAuthFlow.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { useCallback, useEffect, useRef, useState } from 'react'; import { type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS, logEvent } from 'src/services/analytics/index.js'; import { installOAuthTokens } from '../cli/handlers/auth.js'; diff --git a/src/components/ContextSuggestions.tsx b/src/components/ContextSuggestions.tsx index 7431b57a..73eaf651 100644 --- a/src/components/ContextSuggestions.tsx +++ b/src/components/ContextSuggestions.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import * as React from 'react'; import { Box, Text } from '../ink.js'; diff --git a/src/components/ContextVisualization.tsx b/src/components/ContextVisualization.tsx index e621ab8e..f3790205 100644 --- a/src/components/ContextVisualization.tsx +++ b/src/components/ContextVisualization.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { feature } from 'bun:bundle'; import * as React from 'react'; import { Box, Text } from '../ink.js'; diff --git a/src/components/CoordinatorAgentStatus.tsx b/src/components/CoordinatorAgentStatus.tsx index 24e80025..ecfb8c69 100644 --- a/src/components/CoordinatorAgentStatus.tsx +++ b/src/components/CoordinatorAgentStatus.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; /** * CoordinatorTaskPanel — Steerable list of background agents. * diff --git a/src/components/CostThresholdDialog.tsx b/src/components/CostThresholdDialog.tsx index bdf9f537..59c2c582 100644 --- a/src/components/CostThresholdDialog.tsx +++ b/src/components/CostThresholdDialog.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { Box, Link, Text } from '../ink.js'; import { Select } from './CustomSelect/index.js'; diff --git a/src/components/CtrlOToExpand.tsx b/src/components/CtrlOToExpand.tsx index 3fe799bb..dad0079a 100644 --- a/src/components/CtrlOToExpand.tsx +++ b/src/components/CtrlOToExpand.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import chalk from 'chalk'; import React, { useContext } from 'react'; import { Text } from '../ink.js'; diff --git a/src/components/CustomSelect/SelectMulti.tsx b/src/components/CustomSelect/SelectMulti.tsx index e757ec39..18a76a9a 100644 --- a/src/components/CustomSelect/SelectMulti.tsx +++ b/src/components/CustomSelect/SelectMulti.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import React from 'react'; import { Box, Text } from '../../ink.js'; diff --git a/src/components/CustomSelect/select-input-option.tsx b/src/components/CustomSelect/select-input-option.tsx index 51e60ce0..0b32c79e 100644 --- a/src/components/CustomSelect/select-input-option.tsx +++ b/src/components/CustomSelect/select-input-option.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { type ReactNode, useEffect, useRef, useState } from 'react'; // eslint-disable-next-line custom-rules/prefer-use-keybindings -- UP arrow exit not in Attachments bindings import { Box, Text, useInput } from '../../ink.js'; diff --git a/src/components/CustomSelect/select-option.tsx b/src/components/CustomSelect/select-option.tsx index e3a98d6e..ed1be1a5 100644 --- a/src/components/CustomSelect/select-option.tsx +++ b/src/components/CustomSelect/select-option.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { type ReactNode } from 'react'; import { ListItem } from '../design-system/ListItem.js'; export type SelectOptionProps = { diff --git a/src/components/CustomSelect/select.tsx b/src/components/CustomSelect/select.tsx index 134de48a..01914015 100644 --- a/src/components/CustomSelect/select.tsx +++ b/src/components/CustomSelect/select.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import React, { type ReactNode, useEffect, useRef, useState } from 'react'; import { useDeclaredCursor } from '../../ink/hooks/use-declared-cursor.js'; diff --git a/src/components/DesktopHandoff.tsx b/src/components/DesktopHandoff.tsx index 7e707331..b4d3a3bc 100644 --- a/src/components/DesktopHandoff.tsx +++ b/src/components/DesktopHandoff.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { useEffect, useState } from 'react'; import type { CommandResultDisplay } from '../commands.js'; // eslint-disable-next-line custom-rules/prefer-use-keybindings -- raw input for "any key" dismiss and y/n prompt diff --git a/src/components/DesktopUpsell/DesktopUpsellStartup.tsx b/src/components/DesktopUpsell/DesktopUpsellStartup.tsx index e919039d..3f0d9416 100644 --- a/src/components/DesktopUpsell/DesktopUpsellStartup.tsx +++ b/src/components/DesktopUpsell/DesktopUpsellStartup.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { useEffect, useState } from 'react'; import { Box, Text } from '../../ink.js'; diff --git a/src/components/DevBar.tsx b/src/components/DevBar.tsx index fd4c5ea1..d0d2deee 100644 --- a/src/components/DevBar.tsx +++ b/src/components/DevBar.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { useState } from 'react'; import { getSlowOperations } from '../bootstrap/state.js'; diff --git a/src/components/DevChannelsDialog.tsx b/src/components/DevChannelsDialog.tsx index 5e68afb5..a2e8640f 100644 --- a/src/components/DevChannelsDialog.tsx +++ b/src/components/DevChannelsDialog.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { useCallback } from 'react'; import type { ChannelEntry } from '../bootstrap/state.js'; import { Box, Text } from '../ink.js'; diff --git a/src/components/DiagnosticsDisplay.tsx b/src/components/DiagnosticsDisplay.tsx index 6eb3ad8d..2ad945bf 100644 --- a/src/components/DiagnosticsDisplay.tsx +++ b/src/components/DiagnosticsDisplay.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { relative } from 'path'; import React from 'react'; import { Box, Text } from '../ink.js'; diff --git a/src/components/EffortCallout.tsx b/src/components/EffortCallout.tsx index 68e311f8..7b8ac9b4 100644 --- a/src/components/EffortCallout.tsx +++ b/src/components/EffortCallout.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { useCallback, useEffect, useRef } from 'react'; import { Box, Text } from '../ink.js'; import { isMaxSubscriber, isProSubscriber, isTeamSubscriber } from '../utils/auth.js'; diff --git a/src/components/ExitFlow.tsx b/src/components/ExitFlow.tsx index 3c4aa4e6..8452448d 100644 --- a/src/components/ExitFlow.tsx +++ b/src/components/ExitFlow.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import sample from 'lodash-es/sample.js'; import React from 'react'; import { gracefulShutdown } from '../utils/gracefulShutdown.js'; diff --git a/src/components/FallbackToolUseErrorMessage.tsx b/src/components/FallbackToolUseErrorMessage.tsx index 12d3b399..2156a92f 100644 --- a/src/components/FallbackToolUseErrorMessage.tsx +++ b/src/components/FallbackToolUseErrorMessage.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import type { ToolResultBlockParam } from '@anthropic-ai/sdk/resources/messages/messages.mjs'; import * as React from 'react'; import { stripUnderlineAnsi } from 'src/components/shell/OutputLine.js'; diff --git a/src/components/FallbackToolUseRejectedMessage.tsx b/src/components/FallbackToolUseRejectedMessage.tsx index 3e0d2cab..fb53a8da 100644 --- a/src/components/FallbackToolUseRejectedMessage.tsx +++ b/src/components/FallbackToolUseRejectedMessage.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { InterruptedByUser } from './InterruptedByUser.js'; import { MessageResponse } from './MessageResponse.js'; diff --git a/src/components/FastIcon.tsx b/src/components/FastIcon.tsx index d229a860..4ac8a0d1 100644 --- a/src/components/FastIcon.tsx +++ b/src/components/FastIcon.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import chalk from 'chalk'; import * as React from 'react'; import { LIGHTNING_BOLT } from '../constants/figures.js'; diff --git a/src/components/FeedbackSurvey/FeedbackSurvey.tsx b/src/components/FeedbackSurvey/FeedbackSurvey.tsx index dc3e7120..79c87552 100644 --- a/src/components/FeedbackSurvey/FeedbackSurvey.tsx +++ b/src/components/FeedbackSurvey/FeedbackSurvey.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS, logEvent } from 'src/services/analytics/index.js'; import { Box, Text } from '../../ink.js'; diff --git a/src/components/FeedbackSurvey/FeedbackSurveyView.tsx b/src/components/FeedbackSurvey/FeedbackSurveyView.tsx index a2f37572..f625841b 100644 --- a/src/components/FeedbackSurvey/FeedbackSurveyView.tsx +++ b/src/components/FeedbackSurvey/FeedbackSurveyView.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { Box, Text } from '../../ink.js'; import { useDebouncedDigitInput } from './useDebouncedDigitInput.js'; diff --git a/src/components/FeedbackSurvey/TranscriptSharePrompt.tsx b/src/components/FeedbackSurvey/TranscriptSharePrompt.tsx index b9556c8c..7f3e2d27 100644 --- a/src/components/FeedbackSurvey/TranscriptSharePrompt.tsx +++ b/src/components/FeedbackSurvey/TranscriptSharePrompt.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { BLACK_CIRCLE } from '../../constants/figures.js'; import { Box, Text } from '../../ink.js'; diff --git a/src/components/FeedbackSurvey/usePostCompactSurvey.tsx b/src/components/FeedbackSurvey/usePostCompactSurvey.tsx index b33281a1..07f0b1cf 100644 --- a/src/components/FeedbackSurvey/usePostCompactSurvey.tsx +++ b/src/components/FeedbackSurvey/usePostCompactSurvey.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { useCallback, useEffect, useMemo, useRef, useState } from 'react'; import { isFeedbackSurveyDisabled } from 'src/services/analytics/config.js'; import { checkStatsigFeatureGate_CACHED_MAY_BE_STALE } from 'src/services/analytics/growthbook.js'; diff --git a/src/components/FileEditToolDiff.tsx b/src/components/FileEditToolDiff.tsx index 6b4896d8..55dcefde 100644 --- a/src/components/FileEditToolDiff.tsx +++ b/src/components/FileEditToolDiff.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import type { StructuredPatchHunk } from 'diff'; import * as React from 'react'; import { Suspense, use, useState } from 'react'; diff --git a/src/components/FileEditToolUpdatedMessage.tsx b/src/components/FileEditToolUpdatedMessage.tsx index 909889a4..a74496d1 100644 --- a/src/components/FileEditToolUpdatedMessage.tsx +++ b/src/components/FileEditToolUpdatedMessage.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import type { StructuredPatchHunk } from 'diff'; import * as React from 'react'; import { useTerminalSize } from '../hooks/useTerminalSize.js'; diff --git a/src/components/FileEditToolUseRejectedMessage.tsx b/src/components/FileEditToolUseRejectedMessage.tsx index 23bfd122..2d72a04b 100644 --- a/src/components/FileEditToolUseRejectedMessage.tsx +++ b/src/components/FileEditToolUseRejectedMessage.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import type { StructuredPatchHunk } from 'diff'; import { relative } from 'path'; import * as React from 'react'; diff --git a/src/components/FilePathLink.tsx b/src/components/FilePathLink.tsx index 5b2917a4..76833054 100644 --- a/src/components/FilePathLink.tsx +++ b/src/components/FilePathLink.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { pathToFileURL } from 'url'; import Link from '../ink/components/Link.js'; diff --git a/src/components/FullscreenLayout.tsx b/src/components/FullscreenLayout.tsx index 2475ec61..3a2b0022 100644 --- a/src/components/FullscreenLayout.tsx +++ b/src/components/FullscreenLayout.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import React, { createContext, type ReactNode, type RefObject, useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore } from 'react'; import { fileURLToPath } from 'url'; diff --git a/src/components/GlobalSearchDialog.tsx b/src/components/GlobalSearchDialog.tsx index b4551e22..dc14c15d 100644 --- a/src/components/GlobalSearchDialog.tsx +++ b/src/components/GlobalSearchDialog.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { resolve as resolvePath } from 'path'; import * as React from 'react'; import { useEffect, useRef, useState } from 'react'; diff --git a/src/components/HelpV2/Commands.tsx b/src/components/HelpV2/Commands.tsx index 525ef1b3..c8bb0004 100644 --- a/src/components/HelpV2/Commands.tsx +++ b/src/components/HelpV2/Commands.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { useMemo } from 'react'; import { type Command, formatDescriptionWithSource } from '../../commands.js'; diff --git a/src/components/HelpV2/General.tsx b/src/components/HelpV2/General.tsx index 4de10b07..9b268221 100644 --- a/src/components/HelpV2/General.tsx +++ b/src/components/HelpV2/General.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { Box, Text } from '../../ink.js'; import { PromptInputHelpMenu } from '../PromptInput/PromptInputHelpMenu.js'; diff --git a/src/components/HelpV2/HelpV2.tsx b/src/components/HelpV2/HelpV2.tsx index ffcd9e76..cda9e6a4 100644 --- a/src/components/HelpV2/HelpV2.tsx +++ b/src/components/HelpV2/HelpV2.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { useExitOnCtrlCDWithKeybindings } from 'src/hooks/useExitOnCtrlCDWithKeybindings.js'; import { useShortcutDisplay } from 'src/keybindings/useShortcutDisplay.js'; diff --git a/src/components/HighlightedCode.tsx b/src/components/HighlightedCode.tsx index a9464176..61c51b8e 100644 --- a/src/components/HighlightedCode.tsx +++ b/src/components/HighlightedCode.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { memo, useEffect, useMemo, useRef, useState } from 'react'; import { useSettings } from '../hooks/useSettings.js'; diff --git a/src/components/HighlightedCode/Fallback.tsx b/src/components/HighlightedCode/Fallback.tsx index ea7145e7..6416bc58 100644 --- a/src/components/HighlightedCode/Fallback.tsx +++ b/src/components/HighlightedCode/Fallback.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { extname } from 'path'; import React, { Suspense, use, useMemo } from 'react'; import { Ansi, Text } from '../../ink.js'; diff --git a/src/components/IdeAutoConnectDialog.tsx b/src/components/IdeAutoConnectDialog.tsx index af207fd4..709c0ac0 100644 --- a/src/components/IdeAutoConnectDialog.tsx +++ b/src/components/IdeAutoConnectDialog.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { useCallback } from 'react'; import { Text } from '../ink.js'; import { getGlobalConfig, saveGlobalConfig } from '../utils/config.js'; diff --git a/src/components/IdeOnboardingDialog.tsx b/src/components/IdeOnboardingDialog.tsx index e59aaec9..6b185d8b 100644 --- a/src/components/IdeOnboardingDialog.tsx +++ b/src/components/IdeOnboardingDialog.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { envDynamic } from 'src/utils/envDynamic.js'; import { Box, Text } from '../ink.js'; diff --git a/src/components/IdeStatusIndicator.tsx b/src/components/IdeStatusIndicator.tsx index 8aa235ef..cd97b34c 100644 --- a/src/components/IdeStatusIndicator.tsx +++ b/src/components/IdeStatusIndicator.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { basename } from 'path'; import * as React from 'react'; import { useIdeConnectionStatus } from '../hooks/useIdeConnectionStatus.js'; diff --git a/src/components/IdleReturnDialog.tsx b/src/components/IdleReturnDialog.tsx index b89e828f..8973e322 100644 --- a/src/components/IdleReturnDialog.tsx +++ b/src/components/IdleReturnDialog.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { Box, Text } from '../ink.js'; import { formatTokens } from '../utils/format.js'; diff --git a/src/components/InterruptedByUser.tsx b/src/components/InterruptedByUser.tsx index 979adf51..d69e2e79 100644 --- a/src/components/InterruptedByUser.tsx +++ b/src/components/InterruptedByUser.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { Text } from '../ink.js'; export function InterruptedByUser() { diff --git a/src/components/InvalidConfigDialog.tsx b/src/components/InvalidConfigDialog.tsx index 7805b139..daf8a3d7 100644 --- a/src/components/InvalidConfigDialog.tsx +++ b/src/components/InvalidConfigDialog.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { Box, render, Text } from '../ink.js'; import { KeybindingSetup } from '../keybindings/KeybindingProviderSetup.js'; diff --git a/src/components/InvalidSettingsDialog.tsx b/src/components/InvalidSettingsDialog.tsx index 95a95f54..ebff1516 100644 --- a/src/components/InvalidSettingsDialog.tsx +++ b/src/components/InvalidSettingsDialog.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { Text } from '../ink.js'; import type { ValidationError } from '../utils/settings/validation.js'; diff --git a/src/components/KeybindingWarnings.tsx b/src/components/KeybindingWarnings.tsx index c7286859..d49d35a1 100644 --- a/src/components/KeybindingWarnings.tsx +++ b/src/components/KeybindingWarnings.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { Box, Text } from '../ink.js'; import { getCachedKeybindingWarnings, getKeybindingsPath, isKeybindingCustomizationEnabled } from '../keybindings/loadUserBindings.js'; diff --git a/src/components/LanguagePicker.tsx b/src/components/LanguagePicker.tsx index 96fd2fc5..063e911f 100644 --- a/src/components/LanguagePicker.tsx +++ b/src/components/LanguagePicker.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import React, { useState } from 'react'; import { Box, Text } from '../ink.js'; diff --git a/src/components/LogSelector.tsx b/src/components/LogSelector.tsx index 8b4ba2dc..5817053d 100644 --- a/src/components/LogSelector.tsx +++ b/src/components/LogSelector.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import chalk from 'chalk'; import figures from 'figures'; import Fuse from 'fuse.js'; diff --git a/src/components/LogoV2/AnimatedClawd.tsx b/src/components/LogoV2/AnimatedClawd.tsx index 6e4dd07c..f711fb52 100644 --- a/src/components/LogoV2/AnimatedClawd.tsx +++ b/src/components/LogoV2/AnimatedClawd.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { useEffect, useRef, useState } from 'react'; import { Box } from '../../ink.js'; diff --git a/src/components/LogoV2/ChannelsNotice.tsx b/src/components/LogoV2/ChannelsNotice.tsx index c258df09..30b1ea2f 100644 --- a/src/components/LogoV2/ChannelsNotice.tsx +++ b/src/components/LogoV2/ChannelsNotice.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; // Conditionally require()'d in LogoV2.tsx behind feature('KAIROS') || // feature('KAIROS_CHANNELS'). No feature() guard here — the whole file // tree-shakes via the require pattern when both flags are false (see diff --git a/src/components/LogoV2/Clawd.tsx b/src/components/LogoV2/Clawd.tsx index c8eebae6..3c201303 100644 --- a/src/components/LogoV2/Clawd.tsx +++ b/src/components/LogoV2/Clawd.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { Box, Text } from '../../ink.js'; import { env } from '../../utils/env.js'; diff --git a/src/components/LogoV2/CondensedLogo.tsx b/src/components/LogoV2/CondensedLogo.tsx index 5d939d06..ecffeb82 100644 --- a/src/components/LogoV2/CondensedLogo.tsx +++ b/src/components/LogoV2/CondensedLogo.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { type ReactNode, useEffect } from 'react'; import { useMainLoopModel } from '../../hooks/useMainLoopModel.js'; diff --git a/src/components/LogoV2/Feed.tsx b/src/components/LogoV2/Feed.tsx index 26764a83..50ba2896 100644 --- a/src/components/LogoV2/Feed.tsx +++ b/src/components/LogoV2/Feed.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { stringWidth } from '../../ink/stringWidth.js'; import { Box, Text } from '../../ink.js'; diff --git a/src/components/LogoV2/FeedColumn.tsx b/src/components/LogoV2/FeedColumn.tsx index b9858665..2143ed58 100644 --- a/src/components/LogoV2/FeedColumn.tsx +++ b/src/components/LogoV2/FeedColumn.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { Box } from '../../ink.js'; import { Divider } from '../design-system/Divider.js'; diff --git a/src/components/LogoV2/GuestPassesUpsell.tsx b/src/components/LogoV2/GuestPassesUpsell.tsx index 9214b121..ca217bf5 100644 --- a/src/components/LogoV2/GuestPassesUpsell.tsx +++ b/src/components/LogoV2/GuestPassesUpsell.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { useState } from 'react'; import { Text } from '../../ink.js'; diff --git a/src/components/LogoV2/LogoV2.tsx b/src/components/LogoV2/LogoV2.tsx index 182ab8b4..32c26da9 100644 --- a/src/components/LogoV2/LogoV2.tsx +++ b/src/components/LogoV2/LogoV2.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; // biome-ignore-all assist/source/organizeImports: ANT-ONLY import markers must not be reordered import * as React from 'react'; import { Box, Text, color } from '../../ink.js'; diff --git a/src/components/LogoV2/Opus1mMergeNotice.tsx b/src/components/LogoV2/Opus1mMergeNotice.tsx index 1eae59a1..3c49f163 100644 --- a/src/components/LogoV2/Opus1mMergeNotice.tsx +++ b/src/components/LogoV2/Opus1mMergeNotice.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { useEffect, useState } from 'react'; import { UP_ARROW } from '../../constants/figures.js'; diff --git a/src/components/LogoV2/OverageCreditUpsell.tsx b/src/components/LogoV2/OverageCreditUpsell.tsx index 270c24e2..807924a2 100644 --- a/src/components/LogoV2/OverageCreditUpsell.tsx +++ b/src/components/LogoV2/OverageCreditUpsell.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { useState } from 'react'; import { Text } from '../../ink.js'; diff --git a/src/components/LogoV2/VoiceModeNotice.tsx b/src/components/LogoV2/VoiceModeNotice.tsx index b206f31d..636266e4 100644 --- a/src/components/LogoV2/VoiceModeNotice.tsx +++ b/src/components/LogoV2/VoiceModeNotice.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { feature } from 'bun:bundle'; import * as React from 'react'; import { useEffect, useState } from 'react'; diff --git a/src/components/LogoV2/WelcomeV2.tsx b/src/components/LogoV2/WelcomeV2.tsx index 0ab0a5f1..403a2f96 100644 --- a/src/components/LogoV2/WelcomeV2.tsx +++ b/src/components/LogoV2/WelcomeV2.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { Box, Text, useTheme } from 'src/ink.js'; import { env } from '../../utils/env.js'; diff --git a/src/components/MCPServerApprovalDialog.tsx b/src/components/MCPServerApprovalDialog.tsx index f75abcce..f4372aa9 100644 --- a/src/components/MCPServerApprovalDialog.tsx +++ b/src/components/MCPServerApprovalDialog.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS, logEvent } from 'src/services/analytics/index.js'; import { getSettings_DEPRECATED, updateSettingsForSource } from '../utils/settings/settings.js'; diff --git a/src/components/MCPServerDesktopImportDialog.tsx b/src/components/MCPServerDesktopImportDialog.tsx index 9183f03d..f98b860c 100644 --- a/src/components/MCPServerDesktopImportDialog.tsx +++ b/src/components/MCPServerDesktopImportDialog.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { useCallback, useEffect, useState } from 'react'; import { gracefulShutdown } from 'src/utils/gracefulShutdown.js'; import { writeToStdout } from 'src/utils/process.js'; diff --git a/src/components/MCPServerDialogCopy.tsx b/src/components/MCPServerDialogCopy.tsx index 34250f17..81ef8e74 100644 --- a/src/components/MCPServerDialogCopy.tsx +++ b/src/components/MCPServerDialogCopy.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { Link, Text } from '../ink.js'; export function MCPServerDialogCopy() { diff --git a/src/components/MCPServerMultiselectDialog.tsx b/src/components/MCPServerMultiselectDialog.tsx index b5325ba4..eb95181e 100644 --- a/src/components/MCPServerMultiselectDialog.tsx +++ b/src/components/MCPServerMultiselectDialog.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import partition from 'lodash-es/partition.js'; import React, { useCallback } from 'react'; import { logEvent } from 'src/services/analytics/index.js'; diff --git a/src/components/ManagedSettingsSecurityDialog/ManagedSettingsSecurityDialog.tsx b/src/components/ManagedSettingsSecurityDialog/ManagedSettingsSecurityDialog.tsx index 7673121e..d9808852 100644 --- a/src/components/ManagedSettingsSecurityDialog/ManagedSettingsSecurityDialog.tsx +++ b/src/components/ManagedSettingsSecurityDialog/ManagedSettingsSecurityDialog.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { useExitOnCtrlCDWithKeybindings } from '../../hooks/useExitOnCtrlCDWithKeybindings.js'; import { Box, Text } from '../../ink.js'; diff --git a/src/components/Markdown.tsx b/src/components/Markdown.tsx index e82f4c79..eb5834d5 100644 --- a/src/components/Markdown.tsx +++ b/src/components/Markdown.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { marked, type Token, type Tokens } from 'marked'; import React, { Suspense, use, useMemo, useRef } from 'react'; import { useSettings } from '../hooks/useSettings.js'; diff --git a/src/components/Message.tsx b/src/components/Message.tsx index ca2ef768..a34e6c8a 100644 --- a/src/components/Message.tsx +++ b/src/components/Message.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { feature } from 'bun:bundle'; import type { BetaContentBlock } from '@anthropic-ai/sdk/resources/beta/messages/messages.mjs'; import type { ImageBlockParam, TextBlockParam, ThinkingBlockParam, ToolResultBlockParam, ToolUseBlockParam } from '@anthropic-ai/sdk/resources/index.mjs'; diff --git a/src/components/MessageModel.tsx b/src/components/MessageModel.tsx index 796bf273..010584f2 100644 --- a/src/components/MessageModel.tsx +++ b/src/components/MessageModel.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { stringWidth } from '../ink/stringWidth.js'; import { Box, Text } from '../ink.js'; diff --git a/src/components/MessageResponse.tsx b/src/components/MessageResponse.tsx index 71af2163..57c0bc54 100644 --- a/src/components/MessageResponse.tsx +++ b/src/components/MessageResponse.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { useContext } from 'react'; import { Box, NoSelect, Text } from '../ink.js'; diff --git a/src/components/MessageRow.tsx b/src/components/MessageRow.tsx index dce0edac..ba5fa536 100644 --- a/src/components/MessageRow.tsx +++ b/src/components/MessageRow.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import type { Command } from '../commands.js'; import { Box } from '../ink.js'; diff --git a/src/components/MessageSelector.tsx b/src/components/MessageSelector.tsx index 7df5b566..72ed610f 100644 --- a/src/components/MessageSelector.tsx +++ b/src/components/MessageSelector.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import type { ContentBlockParam, TextBlockParam } from '@anthropic-ai/sdk/resources/index.mjs'; import { randomUUID, type UUID } from 'crypto'; import figures from 'figures'; diff --git a/src/components/MessageTimestamp.tsx b/src/components/MessageTimestamp.tsx index 6f517252..eb23e1a2 100644 --- a/src/components/MessageTimestamp.tsx +++ b/src/components/MessageTimestamp.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { stringWidth } from '../ink/stringWidth.js'; import { Box, Text } from '../ink.js'; diff --git a/src/components/Messages.tsx b/src/components/Messages.tsx index 81f38a17..e244119c 100644 --- a/src/components/Messages.tsx +++ b/src/components/Messages.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { feature } from 'bun:bundle'; import chalk from 'chalk'; import type { UUID } from 'crypto'; diff --git a/src/components/ModelPicker.tsx b/src/components/ModelPicker.tsx index 4bf18bc5..15c4e43b 100644 --- a/src/components/ModelPicker.tsx +++ b/src/components/ModelPicker.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import capitalize from 'lodash-es/capitalize.js'; import * as React from 'react'; import { useCallback, useMemo, useState } from 'react'; diff --git a/src/components/NotebookEditToolUseRejectedMessage.tsx b/src/components/NotebookEditToolUseRejectedMessage.tsx index 8fa355fc..f44d63f9 100644 --- a/src/components/NotebookEditToolUseRejectedMessage.tsx +++ b/src/components/NotebookEditToolUseRejectedMessage.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { relative } from 'path'; import * as React from 'react'; import { getCwd } from 'src/utils/cwd.js'; diff --git a/src/components/Onboarding.tsx b/src/components/Onboarding.tsx index d4b62663..fdd3027a 100644 --- a/src/components/Onboarding.tsx +++ b/src/components/Onboarding.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { useCallback, useEffect, useMemo, useState } from 'react'; import { type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS, logEvent } from 'src/services/analytics/index.js'; import { setupTerminal, shouldOfferTerminalSetup } from '../commands/terminalSetup/terminalSetup.js'; diff --git a/src/components/OutputStylePicker.tsx b/src/components/OutputStylePicker.tsx index 6b765d1d..904d8ff6 100644 --- a/src/components/OutputStylePicker.tsx +++ b/src/components/OutputStylePicker.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { useCallback, useEffect, useState } from 'react'; import { getAllOutputStyles, OUTPUT_STYLE_CONFIG, type OutputStyleConfig } from '../constants/outputStyles.js'; diff --git a/src/components/PackageManagerAutoUpdater.tsx b/src/components/PackageManagerAutoUpdater.tsx index a8681abf..01ea401f 100644 --- a/src/components/PackageManagerAutoUpdater.tsx +++ b/src/components/PackageManagerAutoUpdater.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { useState } from 'react'; import { useInterval } from 'usehooks-ts'; diff --git a/src/components/PrBadge.tsx b/src/components/PrBadge.tsx index 2b99f31f..d26fb378 100644 --- a/src/components/PrBadge.tsx +++ b/src/components/PrBadge.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { Link, Text } from '../ink.js'; import type { PrReviewState } from '../utils/ghPrStatus.js'; diff --git a/src/components/PressEnterToContinue.tsx b/src/components/PressEnterToContinue.tsx index 6df0b2ed..6256baa5 100644 --- a/src/components/PressEnterToContinue.tsx +++ b/src/components/PressEnterToContinue.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { Text } from '../ink.js'; export function PressEnterToContinue() { diff --git a/src/components/PromptInput/HistorySearchInput.tsx b/src/components/PromptInput/HistorySearchInput.tsx index 97c69101..73266f91 100644 --- a/src/components/PromptInput/HistorySearchInput.tsx +++ b/src/components/PromptInput/HistorySearchInput.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { stringWidth } from '../../ink/stringWidth.js'; import { Box, Text } from '../../ink.js'; diff --git a/src/components/PromptInput/Notifications.tsx b/src/components/PromptInput/Notifications.tsx index 9b263cf2..ddb71c10 100644 --- a/src/components/PromptInput/Notifications.tsx +++ b/src/components/PromptInput/Notifications.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { feature } from 'bun:bundle'; import * as React from 'react'; import { type ReactNode, useEffect, useMemo, useState } from 'react'; diff --git a/src/components/PromptInput/PromptInputFooterLeftSide.tsx b/src/components/PromptInput/PromptInputFooterLeftSide.tsx index 2f1bbd15..94a70ada 100644 --- a/src/components/PromptInput/PromptInputFooterLeftSide.tsx +++ b/src/components/PromptInput/PromptInputFooterLeftSide.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; // biome-ignore-all assist/source/organizeImports: ANT-ONLY import markers must not be reordered import { feature } from 'bun:bundle'; // Dead code elimination: conditional import for COORDINATOR_MODE diff --git a/src/components/PromptInput/PromptInputFooterSuggestions.tsx b/src/components/PromptInput/PromptInputFooterSuggestions.tsx index 98dcfee5..f7337b29 100644 --- a/src/components/PromptInput/PromptInputFooterSuggestions.tsx +++ b/src/components/PromptInput/PromptInputFooterSuggestions.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { memo, type ReactNode } from 'react'; import { useTerminalSize } from '../../hooks/useTerminalSize.js'; diff --git a/src/components/PromptInput/PromptInputHelpMenu.tsx b/src/components/PromptInput/PromptInputHelpMenu.tsx index 53fdcc98..227cd85f 100644 --- a/src/components/PromptInput/PromptInputHelpMenu.tsx +++ b/src/components/PromptInput/PromptInputHelpMenu.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { feature } from 'bun:bundle'; import * as React from 'react'; import { Box, Text } from 'src/ink.js'; diff --git a/src/components/PromptInput/PromptInputModeIndicator.tsx b/src/components/PromptInput/PromptInputModeIndicator.tsx index bfbd57a9..7b5ac096 100644 --- a/src/components/PromptInput/PromptInputModeIndicator.tsx +++ b/src/components/PromptInput/PromptInputModeIndicator.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import * as React from 'react'; import { Box, Text } from 'src/ink.js'; diff --git a/src/components/PromptInput/PromptInputStashNotice.tsx b/src/components/PromptInput/PromptInputStashNotice.tsx index 5ef01d71..7485576f 100644 --- a/src/components/PromptInput/PromptInputStashNotice.tsx +++ b/src/components/PromptInput/PromptInputStashNotice.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import * as React from 'react'; import { Box, Text } from 'src/ink.js'; diff --git a/src/components/PromptInput/SandboxPromptFooterHint.tsx b/src/components/PromptInput/SandboxPromptFooterHint.tsx index 430b4c09..6f44c843 100644 --- a/src/components/PromptInput/SandboxPromptFooterHint.tsx +++ b/src/components/PromptInput/SandboxPromptFooterHint.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { type ReactNode, useEffect, useRef, useState } from 'react'; import { Box, Text } from '../../ink.js'; diff --git a/src/components/PromptInput/ShimmeredInput.tsx b/src/components/PromptInput/ShimmeredInput.tsx index b6890e59..c8af7ce6 100644 --- a/src/components/PromptInput/ShimmeredInput.tsx +++ b/src/components/PromptInput/ShimmeredInput.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { Ansi, Box, Text, useAnimationFrame } from '../../ink.js'; import { segmentTextByHighlights, type TextHighlight } from '../../utils/textHighlighting.js'; diff --git a/src/components/PromptInput/VoiceIndicator.tsx b/src/components/PromptInput/VoiceIndicator.tsx index 5a5bb20c..5365dadf 100644 --- a/src/components/PromptInput/VoiceIndicator.tsx +++ b/src/components/PromptInput/VoiceIndicator.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { feature } from 'bun:bundle'; import * as React from 'react'; import { useSettings } from '../../hooks/useSettings.js'; diff --git a/src/components/QuickOpenDialog.tsx b/src/components/QuickOpenDialog.tsx index 23c12af9..945a0044 100644 --- a/src/components/QuickOpenDialog.tsx +++ b/src/components/QuickOpenDialog.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as path from 'path'; import * as React from 'react'; import { useEffect, useRef, useState } from 'react'; diff --git a/src/components/RemoteEnvironmentDialog.tsx b/src/components/RemoteEnvironmentDialog.tsx index 8e33179a..f563ae82 100644 --- a/src/components/RemoteEnvironmentDialog.tsx +++ b/src/components/RemoteEnvironmentDialog.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import chalk from 'chalk'; import figures from 'figures'; import * as React from 'react'; diff --git a/src/components/SandboxViolationExpandedView.tsx b/src/components/SandboxViolationExpandedView.tsx index 8eefd599..aa9dce26 100644 --- a/src/components/SandboxViolationExpandedView.tsx +++ b/src/components/SandboxViolationExpandedView.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { type ReactNode, useEffect, useState } from 'react'; import { Box, Text } from '../ink.js'; diff --git a/src/components/SearchBox.tsx b/src/components/SearchBox.tsx index 96338a76..fb015639 100644 --- a/src/components/SearchBox.tsx +++ b/src/components/SearchBox.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { Box, Text } from '../ink.js'; type Props = { diff --git a/src/components/SessionBackgroundHint.tsx b/src/components/SessionBackgroundHint.tsx index ece9ffb7..acb379f5 100644 --- a/src/components/SessionBackgroundHint.tsx +++ b/src/components/SessionBackgroundHint.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { useCallback, useState } from 'react'; import { useDoublePress } from '../hooks/useDoublePress.js'; diff --git a/src/components/SessionPreview.tsx b/src/components/SessionPreview.tsx index 459474f8..afb8b1f8 100644 --- a/src/components/SessionPreview.tsx +++ b/src/components/SessionPreview.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import type { UUID } from 'crypto'; import React, { useCallback } from 'react'; import { Box, Text } from '../ink.js'; diff --git a/src/components/Settings/Config.tsx b/src/components/Settings/Config.tsx index 37ee93c9..33a3e2c9 100644 --- a/src/components/Settings/Config.tsx +++ b/src/components/Settings/Config.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; // biome-ignore-all assist/source/organizeImports: ANT-ONLY import markers must not be reordered import { feature } from 'bun:bundle'; import { Box, Text, useTheme, useThemeSetting, useTerminalFocus } from '../../ink.js'; diff --git a/src/components/Settings/Settings.tsx b/src/components/Settings/Settings.tsx index 41b5b26a..b37c1821 100644 --- a/src/components/Settings/Settings.tsx +++ b/src/components/Settings/Settings.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; // biome-ignore-all assist/source/organizeImports: ANT-ONLY import markers must not be reordered import * as React from 'react'; import { Suspense, useState } from 'react'; diff --git a/src/components/Settings/Status.tsx b/src/components/Settings/Status.tsx index 55928661..95c62964 100644 --- a/src/components/Settings/Status.tsx +++ b/src/components/Settings/Status.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import * as React from 'react'; import { Suspense, use } from 'react'; diff --git a/src/components/Settings/Usage.tsx b/src/components/Settings/Usage.tsx index 744cb2be..b8c48631 100644 --- a/src/components/Settings/Usage.tsx +++ b/src/components/Settings/Usage.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { useEffect, useState } from 'react'; import { extraUsage as extraUsageCommand } from 'src/commands/extra-usage/index.js'; diff --git a/src/components/ShowInIDEPrompt.tsx b/src/components/ShowInIDEPrompt.tsx index f146dfcb..a6ad858d 100644 --- a/src/components/ShowInIDEPrompt.tsx +++ b/src/components/ShowInIDEPrompt.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { basename, relative } from 'path'; import React from 'react'; import { Box, Text } from '../ink.js'; diff --git a/src/components/SkillImprovementSurvey.tsx b/src/components/SkillImprovementSurvey.tsx index beae0c47..27efb125 100644 --- a/src/components/SkillImprovementSurvey.tsx +++ b/src/components/SkillImprovementSurvey.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { useEffect, useRef } from 'react'; import { BLACK_CIRCLE, BULLET_OPERATOR } from '../constants/figures.js'; import { Box, Text } from '../ink.js'; diff --git a/src/components/Spinner.tsx b/src/components/Spinner.tsx index c170c86b..81fa95cf 100644 --- a/src/components/Spinner.tsx +++ b/src/components/Spinner.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; // biome-ignore-all assist/source/organizeImports: ANT-ONLY import markers must not be reordered import { Box, Text } from '../ink.js'; import * as React from 'react'; diff --git a/src/components/Spinner/FlashingChar.tsx b/src/components/Spinner/FlashingChar.tsx index b05c4847..1ebd1f7b 100644 --- a/src/components/Spinner/FlashingChar.tsx +++ b/src/components/Spinner/FlashingChar.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { Text, useTheme } from '../../ink.js'; import { getTheme, type Theme } from '../../utils/theme.js'; diff --git a/src/components/Spinner/GlimmerMessage.tsx b/src/components/Spinner/GlimmerMessage.tsx index 255a49c3..c9810543 100644 --- a/src/components/Spinner/GlimmerMessage.tsx +++ b/src/components/Spinner/GlimmerMessage.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { stringWidth } from '../../ink/stringWidth.js'; import { Text, useTheme } from '../../ink.js'; diff --git a/src/components/Spinner/ShimmerChar.tsx b/src/components/Spinner/ShimmerChar.tsx index dd3a8ed8..71ac0807 100644 --- a/src/components/Spinner/ShimmerChar.tsx +++ b/src/components/Spinner/ShimmerChar.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { Text } from '../../ink.js'; import type { Theme } from '../../utils/theme.js'; diff --git a/src/components/Spinner/SpinnerAnimationRow.tsx b/src/components/Spinner/SpinnerAnimationRow.tsx index 4e77bf90..2dcfa80b 100644 --- a/src/components/Spinner/SpinnerAnimationRow.tsx +++ b/src/components/Spinner/SpinnerAnimationRow.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import * as React from 'react'; import { useMemo, useRef } from 'react'; diff --git a/src/components/Spinner/SpinnerGlyph.tsx b/src/components/Spinner/SpinnerGlyph.tsx index e4d71d4d..2ec27ed6 100644 --- a/src/components/Spinner/SpinnerGlyph.tsx +++ b/src/components/Spinner/SpinnerGlyph.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { Box, Text, useTheme } from '../../ink.js'; import { getTheme, type Theme } from '../../utils/theme.js'; diff --git a/src/components/Spinner/TeammateSpinnerTree.tsx b/src/components/Spinner/TeammateSpinnerTree.tsx index da7c232d..a79ea11b 100644 --- a/src/components/Spinner/TeammateSpinnerTree.tsx +++ b/src/components/Spinner/TeammateSpinnerTree.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import * as React from 'react'; import { Box, Text, type TextProps } from '../../ink.js'; diff --git a/src/components/Stats.tsx b/src/components/Stats.tsx index e2298915..39c3ef25 100644 --- a/src/components/Stats.tsx +++ b/src/components/Stats.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { feature } from 'bun:bundle'; import { plot as asciichart } from 'asciichart'; import chalk from 'chalk'; diff --git a/src/components/StatusNotices.tsx b/src/components/StatusNotices.tsx index cb4ac2ad..c30e8ff7 100644 --- a/src/components/StatusNotices.tsx +++ b/src/components/StatusNotices.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { use } from 'react'; import { Box } from '../ink.js'; diff --git a/src/components/StructuredDiff.tsx b/src/components/StructuredDiff.tsx index a6fe672f..3641bb58 100644 --- a/src/components/StructuredDiff.tsx +++ b/src/components/StructuredDiff.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import type { StructuredPatchHunk } from 'diff'; import * as React from 'react'; import { memo } from 'react'; diff --git a/src/components/StructuredDiff/Fallback.tsx b/src/components/StructuredDiff/Fallback.tsx index 8948d768..ade5060a 100644 --- a/src/components/StructuredDiff/Fallback.tsx +++ b/src/components/StructuredDiff/Fallback.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { diffWordsWithSpace, type StructuredPatchHunk } from 'diff'; import * as React from 'react'; import { useMemo } from 'react'; diff --git a/src/components/StructuredDiff/colorDiff.ts b/src/components/StructuredDiff/colorDiff.ts index d3abaa28..97bdc72a 100644 --- a/src/components/StructuredDiff/colorDiff.ts +++ b/src/components/StructuredDiff/colorDiff.ts @@ -3,7 +3,7 @@ import { ColorFile, getSyntaxTheme as nativeGetSyntaxTheme, type SyntaxTheme, -} from 'color-diff-napi' +} from '../../native-ts/color-diff/index.js' import { isEnvDefinedFalsy } from '../../utils/envUtils.js' export type ColorModuleUnavailableReason = 'env' diff --git a/src/components/TaskListV2.tsx b/src/components/TaskListV2.tsx index addc083d..d93402d3 100644 --- a/src/components/TaskListV2.tsx +++ b/src/components/TaskListV2.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import * as React from 'react'; import { useTerminalSize } from '../hooks/useTerminalSize.js'; diff --git a/src/components/TeammateViewHeader.tsx b/src/components/TeammateViewHeader.tsx index ea65ddc5..fda309bc 100644 --- a/src/components/TeammateViewHeader.tsx +++ b/src/components/TeammateViewHeader.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { Box, Text } from '../ink.js'; import { useAppState } from '../state/AppState.js'; diff --git a/src/components/TeleportError.tsx b/src/components/TeleportError.tsx index 585ed370..2b8b5e28 100644 --- a/src/components/TeleportError.tsx +++ b/src/components/TeleportError.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { useCallback, useEffect, useState } from 'react'; import { checkIsGitClean, checkNeedsClaudeAiLogin } from 'src/utils/background/remote/preconditions.js'; import { gracefulShutdownSync } from 'src/utils/gracefulShutdown.js'; diff --git a/src/components/TeleportProgress.tsx b/src/components/TeleportProgress.tsx index 921dd38e..873caee6 100644 --- a/src/components/TeleportProgress.tsx +++ b/src/components/TeleportProgress.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import * as React from 'react'; import { useState } from 'react'; diff --git a/src/components/TeleportRepoMismatchDialog.tsx b/src/components/TeleportRepoMismatchDialog.tsx index df6ac508..7095bbff 100644 --- a/src/components/TeleportRepoMismatchDialog.tsx +++ b/src/components/TeleportRepoMismatchDialog.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { useCallback, useState } from 'react'; import { Box, Text } from '../ink.js'; import { getDisplayPath } from '../utils/file.js'; diff --git a/src/components/TeleportResumeWrapper.tsx b/src/components/TeleportResumeWrapper.tsx index ead5fdb9..b276fcb0 100644 --- a/src/components/TeleportResumeWrapper.tsx +++ b/src/components/TeleportResumeWrapper.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { useEffect } from 'react'; import { type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS, logEvent } from 'src/services/analytics/index.js'; import type { TeleportRemoteResponse } from 'src/utils/conversationRecovery.js'; diff --git a/src/components/ThemePicker.tsx b/src/components/ThemePicker.tsx index e8af3946..d716aa75 100644 --- a/src/components/ThemePicker.tsx +++ b/src/components/ThemePicker.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { feature } from 'bun:bundle'; import * as React from 'react'; import { useExitOnCtrlCDWithKeybindings } from '../hooks/useExitOnCtrlCDWithKeybindings.js'; diff --git a/src/components/ThinkingToggle.tsx b/src/components/ThinkingToggle.tsx index a7b7a1b8..aa282a6b 100644 --- a/src/components/ThinkingToggle.tsx +++ b/src/components/ThinkingToggle.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { useState } from 'react'; import { useExitOnCtrlCDWithKeybindings } from 'src/hooks/useExitOnCtrlCDWithKeybindings.js'; diff --git a/src/components/TokenWarning.tsx b/src/components/TokenWarning.tsx index 8a5c2004..25d5155c 100644 --- a/src/components/TokenWarning.tsx +++ b/src/components/TokenWarning.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { feature } from 'bun:bundle'; import * as React from 'react'; import { useSyncExternalStore } from 'react'; diff --git a/src/components/ToolUseLoader.tsx b/src/components/ToolUseLoader.tsx index 5200e5b4..971bf134 100644 --- a/src/components/ToolUseLoader.tsx +++ b/src/components/ToolUseLoader.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { BLACK_CIRCLE } from '../constants/figures.js'; import { useBlink } from '../hooks/useBlink.js'; diff --git a/src/components/TrustDialog/TrustDialog.tsx b/src/components/TrustDialog/TrustDialog.tsx index 3bfcc22c..79ce8056 100644 --- a/src/components/TrustDialog/TrustDialog.tsx +++ b/src/components/TrustDialog/TrustDialog.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { homedir } from 'os'; import React from 'react'; import { logEvent } from 'src/services/analytics/index.js'; diff --git a/src/components/ValidationErrorsList.tsx b/src/components/ValidationErrorsList.tsx index 233306d7..7d5cdb23 100644 --- a/src/components/ValidationErrorsList.tsx +++ b/src/components/ValidationErrorsList.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import setWith from 'lodash-es/setWith.js'; import * as React from 'react'; import { Box, Text, useTheme } from '../ink.js'; diff --git a/src/components/VimTextInput.tsx b/src/components/VimTextInput.tsx index 7c2e6c55..2445ffc5 100644 --- a/src/components/VimTextInput.tsx +++ b/src/components/VimTextInput.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import chalk from 'chalk'; import React from 'react'; import { useClipboardImageHint } from '../hooks/useClipboardImageHint.js'; diff --git a/src/components/VirtualMessageList.tsx b/src/components/VirtualMessageList.tsx index b9a8d7a4..1d55e166 100644 --- a/src/components/VirtualMessageList.tsx +++ b/src/components/VirtualMessageList.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import type { RefObject } from 'react'; import * as React from 'react'; import { useCallback, useContext, useEffect, useImperativeHandle, useRef, useState, useSyncExternalStore } from 'react'; diff --git a/src/components/WorkflowMultiselectDialog.tsx b/src/components/WorkflowMultiselectDialog.tsx index 283a10e1..c26fa9af 100644 --- a/src/components/WorkflowMultiselectDialog.tsx +++ b/src/components/WorkflowMultiselectDialog.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { useCallback, useState } from 'react'; import type { Workflow } from '../commands/install-github-app/types.js'; import type { ExitState } from '../hooks/useExitOnCtrlCDWithKeybindings.js'; diff --git a/src/components/agents/AgentDetail.tsx b/src/components/agents/AgentDetail.tsx index 48fc986a..e6666464 100644 --- a/src/components/agents/AgentDetail.tsx +++ b/src/components/agents/AgentDetail.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import * as React from 'react'; import type { KeyboardEvent } from '../../ink/events/keyboard-event.js'; diff --git a/src/components/agents/AgentNavigationFooter.tsx b/src/components/agents/AgentNavigationFooter.tsx index cdd78ade..58adecc2 100644 --- a/src/components/agents/AgentNavigationFooter.tsx +++ b/src/components/agents/AgentNavigationFooter.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { useExitOnCtrlCDWithKeybindings } from '../../hooks/useExitOnCtrlCDWithKeybindings.js'; import { Box, Text } from '../../ink.js'; diff --git a/src/components/agents/AgentsList.tsx b/src/components/agents/AgentsList.tsx index 137a18b5..a86d4ae1 100644 --- a/src/components/agents/AgentsList.tsx +++ b/src/components/agents/AgentsList.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import * as React from 'react'; import type { SettingSource } from 'src/utils/settings/constants.js'; diff --git a/src/components/agents/AgentsMenu.tsx b/src/components/agents/AgentsMenu.tsx index 923fe8bf..9f1b0f20 100644 --- a/src/components/agents/AgentsMenu.tsx +++ b/src/components/agents/AgentsMenu.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import chalk from 'chalk'; import * as React from 'react'; import { useCallback, useMemo, useState } from 'react'; diff --git a/src/components/agents/ColorPicker.tsx b/src/components/agents/ColorPicker.tsx index f8072e71..a40f5301 100644 --- a/src/components/agents/ColorPicker.tsx +++ b/src/components/agents/ColorPicker.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import React, { useState } from 'react'; import type { KeyboardEvent } from '../../ink/events/keyboard-event.js'; diff --git a/src/components/agents/ModelSelector.tsx b/src/components/agents/ModelSelector.tsx index c1b2737c..f218ba97 100644 --- a/src/components/agents/ModelSelector.tsx +++ b/src/components/agents/ModelSelector.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { Box, Text } from '../../ink.js'; import { getAgentModelOptions } from '../../utils/model/agent.js'; diff --git a/src/components/agents/ToolSelector.tsx b/src/components/agents/ToolSelector.tsx index 3eb61d10..4cacee2f 100644 --- a/src/components/agents/ToolSelector.tsx +++ b/src/components/agents/ToolSelector.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import React, { useCallback, useMemo, useState } from 'react'; import { mcpInfoFromString } from 'src/services/mcp/mcpStringUtils.js'; diff --git a/src/components/agents/new-agent-creation/CreateAgentWizard.tsx b/src/components/agents/new-agent-creation/CreateAgentWizard.tsx index 4ca9ba3d..51edc58c 100644 --- a/src/components/agents/new-agent-creation/CreateAgentWizard.tsx +++ b/src/components/agents/new-agent-creation/CreateAgentWizard.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { type ReactNode } from 'react'; import { isAutoMemoryEnabled } from '../../../memdir/paths.js'; import type { Tools } from '../../../Tool.js'; diff --git a/src/components/agents/new-agent-creation/wizard-steps/ColorStep.tsx b/src/components/agents/new-agent-creation/wizard-steps/ColorStep.tsx index 4d5d3383..3832279b 100644 --- a/src/components/agents/new-agent-creation/wizard-steps/ColorStep.tsx +++ b/src/components/agents/new-agent-creation/wizard-steps/ColorStep.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { type ReactNode } from 'react'; import { Box } from '../../../../ink.js'; import { useKeybinding } from '../../../../keybindings/useKeybinding.js'; diff --git a/src/components/agents/new-agent-creation/wizard-steps/ConfirmStep.tsx b/src/components/agents/new-agent-creation/wizard-steps/ConfirmStep.tsx index 308b808f..2c64cacf 100644 --- a/src/components/agents/new-agent-creation/wizard-steps/ConfirmStep.tsx +++ b/src/components/agents/new-agent-creation/wizard-steps/ConfirmStep.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { type ReactNode } from 'react'; import type { KeyboardEvent } from '../../../../ink/events/keyboard-event.js'; import { Box, Text } from '../../../../ink.js'; diff --git a/src/components/agents/new-agent-creation/wizard-steps/DescriptionStep.tsx b/src/components/agents/new-agent-creation/wizard-steps/DescriptionStep.tsx index ff6c3a7a..808d1355 100644 --- a/src/components/agents/new-agent-creation/wizard-steps/DescriptionStep.tsx +++ b/src/components/agents/new-agent-creation/wizard-steps/DescriptionStep.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { type ReactNode, useCallback, useState } from 'react'; import { Box, Text } from '../../../../ink.js'; import { useKeybinding } from '../../../../keybindings/useKeybinding.js'; diff --git a/src/components/agents/new-agent-creation/wizard-steps/LocationStep.tsx b/src/components/agents/new-agent-creation/wizard-steps/LocationStep.tsx index d64c1656..a5a42a47 100644 --- a/src/components/agents/new-agent-creation/wizard-steps/LocationStep.tsx +++ b/src/components/agents/new-agent-creation/wizard-steps/LocationStep.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { type ReactNode } from 'react'; import { Box } from '../../../../ink.js'; import type { SettingSource } from '../../../../utils/settings/constants.js'; diff --git a/src/components/agents/new-agent-creation/wizard-steps/MemoryStep.tsx b/src/components/agents/new-agent-creation/wizard-steps/MemoryStep.tsx index 56c951a0..0ed11ce4 100644 --- a/src/components/agents/new-agent-creation/wizard-steps/MemoryStep.tsx +++ b/src/components/agents/new-agent-creation/wizard-steps/MemoryStep.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { type ReactNode } from 'react'; import { Box } from '../../../../ink.js'; import { useKeybinding } from '../../../../keybindings/useKeybinding.js'; diff --git a/src/components/agents/new-agent-creation/wizard-steps/MethodStep.tsx b/src/components/agents/new-agent-creation/wizard-steps/MethodStep.tsx index cfcb4501..4b4ed047 100644 --- a/src/components/agents/new-agent-creation/wizard-steps/MethodStep.tsx +++ b/src/components/agents/new-agent-creation/wizard-steps/MethodStep.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { type ReactNode } from 'react'; import { Box } from '../../../../ink.js'; import { ConfigurableShortcutHint } from '../../../ConfigurableShortcutHint.js'; diff --git a/src/components/agents/new-agent-creation/wizard-steps/ModelStep.tsx b/src/components/agents/new-agent-creation/wizard-steps/ModelStep.tsx index ac56a312..2e4c8058 100644 --- a/src/components/agents/new-agent-creation/wizard-steps/ModelStep.tsx +++ b/src/components/agents/new-agent-creation/wizard-steps/ModelStep.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { type ReactNode } from 'react'; import { ConfigurableShortcutHint } from '../../../ConfigurableShortcutHint.js'; import { Byline } from '../../../design-system/Byline.js'; diff --git a/src/components/agents/new-agent-creation/wizard-steps/PromptStep.tsx b/src/components/agents/new-agent-creation/wizard-steps/PromptStep.tsx index fee0039e..73ce29c1 100644 --- a/src/components/agents/new-agent-creation/wizard-steps/PromptStep.tsx +++ b/src/components/agents/new-agent-creation/wizard-steps/PromptStep.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { type ReactNode, useCallback, useState } from 'react'; import { Box, Text } from '../../../../ink.js'; import { useKeybinding } from '../../../../keybindings/useKeybinding.js'; diff --git a/src/components/agents/new-agent-creation/wizard-steps/ToolsStep.tsx b/src/components/agents/new-agent-creation/wizard-steps/ToolsStep.tsx index f0ddd337..a98148bd 100644 --- a/src/components/agents/new-agent-creation/wizard-steps/ToolsStep.tsx +++ b/src/components/agents/new-agent-creation/wizard-steps/ToolsStep.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { type ReactNode } from 'react'; import type { Tools } from '../../../../Tool.js'; import { ConfigurableShortcutHint } from '../../../ConfigurableShortcutHint.js'; diff --git a/src/components/agents/new-agent-creation/wizard-steps/TypeStep.tsx b/src/components/agents/new-agent-creation/wizard-steps/TypeStep.tsx index c464bcda..bd2695f5 100644 --- a/src/components/agents/new-agent-creation/wizard-steps/TypeStep.tsx +++ b/src/components/agents/new-agent-creation/wizard-steps/TypeStep.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { type ReactNode, useState } from 'react'; import { Box, Text } from '../../../../ink.js'; import { useKeybinding } from '../../../../keybindings/useKeybinding.js'; diff --git a/src/components/design-system/Byline.tsx b/src/components/design-system/Byline.tsx index 52f83da0..b18ec49e 100644 --- a/src/components/design-system/Byline.tsx +++ b/src/components/design-system/Byline.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { Children, isValidElement } from 'react'; import { Text } from '../../ink.js'; type Props = { diff --git a/src/components/design-system/Dialog.tsx b/src/components/design-system/Dialog.tsx index 7d0dae10..4af7a85b 100644 --- a/src/components/design-system/Dialog.tsx +++ b/src/components/design-system/Dialog.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { type ExitState, useExitOnCtrlCDWithKeybindings } from '../../hooks/useExitOnCtrlCDWithKeybindings.js'; import { Box, Text } from '../../ink.js'; diff --git a/src/components/design-system/Divider.tsx b/src/components/design-system/Divider.tsx index 3a5d87a6..4e308ad4 100644 --- a/src/components/design-system/Divider.tsx +++ b/src/components/design-system/Divider.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { useTerminalSize } from '../../hooks/useTerminalSize.js'; import { stringWidth } from '../../ink/stringWidth.js'; diff --git a/src/components/design-system/FuzzyPicker.tsx b/src/components/design-system/FuzzyPicker.tsx index 1d33088a..c36a0550 100644 --- a/src/components/design-system/FuzzyPicker.tsx +++ b/src/components/design-system/FuzzyPicker.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { useEffect, useState } from 'react'; import { useSearchInput } from '../../hooks/useSearchInput.js'; diff --git a/src/components/design-system/KeyboardShortcutHint.tsx b/src/components/design-system/KeyboardShortcutHint.tsx index 288d5315..8fc6eada 100644 --- a/src/components/design-system/KeyboardShortcutHint.tsx +++ b/src/components/design-system/KeyboardShortcutHint.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import Text from '../../ink/components/Text.js'; type Props = { diff --git a/src/components/design-system/ListItem.tsx b/src/components/design-system/ListItem.tsx index 7f77dda1..9f535141 100644 --- a/src/components/design-system/ListItem.tsx +++ b/src/components/design-system/ListItem.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import type { ReactNode } from 'react'; import React from 'react'; diff --git a/src/components/design-system/LoadingState.tsx b/src/components/design-system/LoadingState.tsx index b5f33b7f..63ba7e0c 100644 --- a/src/components/design-system/LoadingState.tsx +++ b/src/components/design-system/LoadingState.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { Box, Text } from '../../ink.js'; import { Spinner } from '../Spinner.js'; diff --git a/src/components/design-system/Pane.tsx b/src/components/design-system/Pane.tsx index 43e56f31..b95c642f 100644 --- a/src/components/design-system/Pane.tsx +++ b/src/components/design-system/Pane.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { useIsInsideModal } from '../../context/modalContext.js'; import { Box } from '../../ink.js'; diff --git a/src/components/design-system/ProgressBar.tsx b/src/components/design-system/ProgressBar.tsx index 922623fa..96c4650e 100644 --- a/src/components/design-system/ProgressBar.tsx +++ b/src/components/design-system/ProgressBar.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { Text } from '../../ink.js'; import type { Theme } from '../../utils/theme.js'; diff --git a/src/components/design-system/Ratchet.tsx b/src/components/design-system/Ratchet.tsx index 83601094..e694bc85 100644 --- a/src/components/design-system/Ratchet.tsx +++ b/src/components/design-system/Ratchet.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { useCallback, useLayoutEffect, useRef, useState } from 'react'; import { useTerminalSize } from '../../hooks/useTerminalSize.js'; import { useTerminalViewport } from '../../ink/hooks/use-terminal-viewport.js'; diff --git a/src/components/design-system/StatusIcon.tsx b/src/components/design-system/StatusIcon.tsx index 17f03de1..f5f5768c 100644 --- a/src/components/design-system/StatusIcon.tsx +++ b/src/components/design-system/StatusIcon.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import React from 'react'; import { Text } from '../../ink.js'; diff --git a/src/components/design-system/Tabs.tsx b/src/components/design-system/Tabs.tsx index e1618368..41a94912 100644 --- a/src/components/design-system/Tabs.tsx +++ b/src/components/design-system/Tabs.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { createContext, useCallback, useContext, useEffect, useState } from 'react'; import { useIsInsideModal, useModalScrollRef } from '../../context/modalContext.js'; import { useTerminalSize } from '../../hooks/useTerminalSize.js'; diff --git a/src/components/design-system/ThemeProvider.tsx b/src/components/design-system/ThemeProvider.tsx index 8e0de602..3249c0c1 100644 --- a/src/components/design-system/ThemeProvider.tsx +++ b/src/components/design-system/ThemeProvider.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { feature } from 'bun:bundle'; import React, { createContext, useContext, useEffect, useMemo, useState } from 'react'; import useStdin from '../../ink/hooks/use-stdin.js'; diff --git a/src/components/design-system/ThemedBox.tsx b/src/components/design-system/ThemedBox.tsx index c92b733e..68ea56a8 100644 --- a/src/components/design-system/ThemedBox.tsx +++ b/src/components/design-system/ThemedBox.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { type PropsWithChildren, type Ref } from 'react'; import Box from '../../ink/components/Box.js'; import type { DOMElement } from '../../ink/dom.js'; diff --git a/src/components/design-system/ThemedText.tsx b/src/components/design-system/ThemedText.tsx index 1c65b5c4..73db20ee 100644 --- a/src/components/design-system/ThemedText.tsx +++ b/src/components/design-system/ThemedText.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import type { ReactNode } from 'react'; import React, { useContext } from 'react'; import Text from '../../ink/components/Text.js'; diff --git a/src/components/diff/DiffDetailView.tsx b/src/components/diff/DiffDetailView.tsx index 995801a9..60feb93a 100644 --- a/src/components/diff/DiffDetailView.tsx +++ b/src/components/diff/DiffDetailView.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import type { StructuredPatchHunk } from 'diff'; import { resolve } from 'path'; import React, { useMemo } from 'react'; diff --git a/src/components/diff/DiffDialog.tsx b/src/components/diff/DiffDialog.tsx index 6d007b40..f7fef18d 100644 --- a/src/components/diff/DiffDialog.tsx +++ b/src/components/diff/DiffDialog.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import type { StructuredPatchHunk } from 'diff'; import React, { useEffect, useMemo, useRef, useState } from 'react'; import type { CommandResultDisplay } from '../../commands.js'; diff --git a/src/components/diff/DiffFileList.tsx b/src/components/diff/DiffFileList.tsx index 95dbbb53..d25ac147 100644 --- a/src/components/diff/DiffFileList.tsx +++ b/src/components/diff/DiffFileList.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import React, { useMemo } from 'react'; import type { DiffFile } from '../../hooks/useDiffData.js'; diff --git a/src/components/grove/Grove.tsx b/src/components/grove/Grove.tsx index be5505bc..8dab5a6d 100644 --- a/src/components/grove/Grove.tsx +++ b/src/components/grove/Grove.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { useEffect, useState } from 'react'; import { type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS, logEvent } from 'src/services/analytics/index.js'; import { Box, Link, Text, useInput } from '../../ink.js'; diff --git a/src/components/hooks/HooksConfigMenu.tsx b/src/components/hooks/HooksConfigMenu.tsx index ea39f828..25155992 100644 --- a/src/components/hooks/HooksConfigMenu.tsx +++ b/src/components/hooks/HooksConfigMenu.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; /** * HooksConfigMenu is a read-only browser for configured hooks. * diff --git a/src/components/hooks/PromptDialog.tsx b/src/components/hooks/PromptDialog.tsx index 15217868..1cdb4d31 100644 --- a/src/components/hooks/PromptDialog.tsx +++ b/src/components/hooks/PromptDialog.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { Box, Text } from '../../ink.js'; import { useKeybinding } from '../../keybindings/useKeybinding.js'; diff --git a/src/components/hooks/SelectEventMode.tsx b/src/components/hooks/SelectEventMode.tsx index f07e6472..305a8124 100644 --- a/src/components/hooks/SelectEventMode.tsx +++ b/src/components/hooks/SelectEventMode.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; /** * SelectEventMode is the entrypoint of the Hooks config menu, where the user * sees the list of available hook events. diff --git a/src/components/hooks/SelectHookMode.tsx b/src/components/hooks/SelectHookMode.tsx index cec6c6a2..9d590914 100644 --- a/src/components/hooks/SelectHookMode.tsx +++ b/src/components/hooks/SelectHookMode.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; /** * SelectHookMode shows all hooks configured for a given event+matcher pair. * diff --git a/src/components/hooks/SelectMatcherMode.tsx b/src/components/hooks/SelectMatcherMode.tsx index d292fc89..19aa1615 100644 --- a/src/components/hooks/SelectMatcherMode.tsx +++ b/src/components/hooks/SelectMatcherMode.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; /** * SelectMatcherMode shows the configured matchers for a selected hook event. * diff --git a/src/components/hooks/ViewHookMode.tsx b/src/components/hooks/ViewHookMode.tsx index b84d4b0f..ac616e1d 100644 --- a/src/components/hooks/ViewHookMode.tsx +++ b/src/components/hooks/ViewHookMode.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; /** * ViewHookMode shows read-only details for a single configured hook. * diff --git a/src/components/mcp/CapabilitiesSection.tsx b/src/components/mcp/CapabilitiesSection.tsx index 7d136f56..4aff6081 100644 --- a/src/components/mcp/CapabilitiesSection.tsx +++ b/src/components/mcp/CapabilitiesSection.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { Box, Text } from '../../ink.js'; import { Byline } from '../design-system/Byline.js'; diff --git a/src/components/mcp/ElicitationDialog.tsx b/src/components/mcp/ElicitationDialog.tsx index 2fdf0e6a..eae38498 100644 --- a/src/components/mcp/ElicitationDialog.tsx +++ b/src/components/mcp/ElicitationDialog.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import type { ElicitRequestFormParams, ElicitRequestURLParams, ElicitResult, PrimitiveSchemaDefinition } from '@modelcontextprotocol/sdk/types.js'; import figures from 'figures'; import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'; diff --git a/src/components/mcp/MCPListPanel.tsx b/src/components/mcp/MCPListPanel.tsx index 94d0c625..7bd11043 100644 --- a/src/components/mcp/MCPListPanel.tsx +++ b/src/components/mcp/MCPListPanel.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import React, { useCallback, useState } from 'react'; import type { CommandResultDisplay } from '../../commands.js'; diff --git a/src/components/mcp/MCPReconnect.tsx b/src/components/mcp/MCPReconnect.tsx index 88e724f2..e3e58f4e 100644 --- a/src/components/mcp/MCPReconnect.tsx +++ b/src/components/mcp/MCPReconnect.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import React, { useEffect, useState } from 'react'; import type { CommandResultDisplay } from '../../commands.js'; diff --git a/src/components/mcp/MCPSettings.tsx b/src/components/mcp/MCPSettings.tsx index 95562c73..3010f6ab 100644 --- a/src/components/mcp/MCPSettings.tsx +++ b/src/components/mcp/MCPSettings.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { useEffect, useMemo } from 'react'; import type { CommandResultDisplay } from '../../commands.js'; import { ClaudeAuthProvider } from '../../services/mcp/auth.js'; diff --git a/src/components/mcp/MCPToolDetailView.tsx b/src/components/mcp/MCPToolDetailView.tsx index d5395bb5..d5e2870f 100644 --- a/src/components/mcp/MCPToolDetailView.tsx +++ b/src/components/mcp/MCPToolDetailView.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { Box, Text } from '../../ink.js'; import { extractMcpToolDisplayName, getMcpDisplayName } from '../../services/mcp/mcpStringUtils.js'; diff --git a/src/components/mcp/MCPToolListView.tsx b/src/components/mcp/MCPToolListView.tsx index 0e1e8bee..69fa366d 100644 --- a/src/components/mcp/MCPToolListView.tsx +++ b/src/components/mcp/MCPToolListView.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { Text } from '../../ink.js'; import { extractMcpToolDisplayName, getMcpDisplayName } from '../../services/mcp/mcpStringUtils.js'; diff --git a/src/components/mcp/McpParsingWarnings.tsx b/src/components/mcp/McpParsingWarnings.tsx index db130141..2d300df5 100644 --- a/src/components/mcp/McpParsingWarnings.tsx +++ b/src/components/mcp/McpParsingWarnings.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { useMemo } from 'react'; import { getMcpConfigsByScope } from 'src/services/mcp/config.js'; import type { ConfigScope } from 'src/services/mcp/types.js'; diff --git a/src/components/memory/MemoryFileSelector.tsx b/src/components/memory/MemoryFileSelector.tsx index 0c207efe..cc8d1e3b 100644 --- a/src/components/memory/MemoryFileSelector.tsx +++ b/src/components/memory/MemoryFileSelector.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { feature } from 'bun:bundle'; import chalk from 'chalk'; import { mkdir } from 'fs/promises'; diff --git a/src/components/memory/MemoryUpdateNotification.tsx b/src/components/memory/MemoryUpdateNotification.tsx index 1b4c3292..bf4ea26d 100644 --- a/src/components/memory/MemoryUpdateNotification.tsx +++ b/src/components/memory/MemoryUpdateNotification.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { homedir } from 'os'; import { relative } from 'path'; import React from 'react'; diff --git a/src/components/messageActions.tsx b/src/components/messageActions.tsx index 982eca0b..b6dc174f 100644 --- a/src/components/messageActions.tsx +++ b/src/components/messageActions.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import type { RefObject } from 'react'; import React, { useCallback, useMemo, useRef } from 'react'; diff --git a/src/components/messages/AdvisorMessage.tsx b/src/components/messages/AdvisorMessage.tsx index 4a11fa47..18caaefe 100644 --- a/src/components/messages/AdvisorMessage.tsx +++ b/src/components/messages/AdvisorMessage.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import React from 'react'; import { Box, Text } from '../../ink.js'; diff --git a/src/components/messages/AssistantRedactedThinkingMessage.tsx b/src/components/messages/AssistantRedactedThinkingMessage.tsx index 64ac8a16..1f5039a7 100644 --- a/src/components/messages/AssistantRedactedThinkingMessage.tsx +++ b/src/components/messages/AssistantRedactedThinkingMessage.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { Box, Text } from '../../ink.js'; type Props = { diff --git a/src/components/messages/AssistantTextMessage.tsx b/src/components/messages/AssistantTextMessage.tsx index 23302fd1..135e3b76 100644 --- a/src/components/messages/AssistantTextMessage.tsx +++ b/src/components/messages/AssistantTextMessage.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import type { TextBlockParam } from '@anthropic-ai/sdk/resources/index.mjs'; import React, { useContext } from 'react'; import { ERROR_MESSAGE_USER_ABORT } from 'src/services/compact/compact.js'; diff --git a/src/components/messages/AssistantThinkingMessage.tsx b/src/components/messages/AssistantThinkingMessage.tsx index 3825f5f4..667e81c2 100644 --- a/src/components/messages/AssistantThinkingMessage.tsx +++ b/src/components/messages/AssistantThinkingMessage.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import type { ThinkingBlock, ThinkingBlockParam } from '@anthropic-ai/sdk/resources/index.mjs'; import React from 'react'; import { Box, Text } from '../../ink.js'; diff --git a/src/components/messages/AssistantToolUseMessage.tsx b/src/components/messages/AssistantToolUseMessage.tsx index 76709343..b5c5fb4c 100644 --- a/src/components/messages/AssistantToolUseMessage.tsx +++ b/src/components/messages/AssistantToolUseMessage.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import type { ToolUseBlockParam } from '@anthropic-ai/sdk/resources/index.mjs'; import React, { useMemo } from 'react'; import { useTerminalSize } from 'src/hooks/useTerminalSize.js'; diff --git a/src/components/messages/AttachmentMessage.tsx b/src/components/messages/AttachmentMessage.tsx index efbb758e..6e1d5051 100644 --- a/src/components/messages/AttachmentMessage.tsx +++ b/src/components/messages/AttachmentMessage.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; // biome-ignore-all assist/source/organizeImports: ANT-ONLY import markers must not be reordered import React, { useMemo } from 'react'; import { Ansi, Box, Text } from '../../ink.js'; diff --git a/src/components/messages/CollapsedReadSearchContent.tsx b/src/components/messages/CollapsedReadSearchContent.tsx index 1494cf4b..d1b57889 100644 --- a/src/components/messages/CollapsedReadSearchContent.tsx +++ b/src/components/messages/CollapsedReadSearchContent.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { feature } from 'bun:bundle'; import { basename } from 'path'; import React, { useRef } from 'react'; diff --git a/src/components/messages/CompactBoundaryMessage.tsx b/src/components/messages/CompactBoundaryMessage.tsx index ecd9e00c..427c4788 100644 --- a/src/components/messages/CompactBoundaryMessage.tsx +++ b/src/components/messages/CompactBoundaryMessage.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { Box, Text } from '../../ink.js'; import { useShortcutDisplay } from '../../keybindings/useShortcutDisplay.js'; diff --git a/src/components/messages/HighlightedThinkingText.tsx b/src/components/messages/HighlightedThinkingText.tsx index 8de74078..729c2939 100644 --- a/src/components/messages/HighlightedThinkingText.tsx +++ b/src/components/messages/HighlightedThinkingText.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import * as React from 'react'; import { useContext } from 'react'; diff --git a/src/components/messages/HookProgressMessage.tsx b/src/components/messages/HookProgressMessage.tsx index 2e6ca1cf..2792b737 100644 --- a/src/components/messages/HookProgressMessage.tsx +++ b/src/components/messages/HookProgressMessage.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import type { HookEvent } from 'src/entrypoints/agentSdkTypes.js'; import type { buildMessageLookups } from 'src/utils/messages.js'; diff --git a/src/components/messages/PlanApprovalMessage.tsx b/src/components/messages/PlanApprovalMessage.tsx index 4e519e35..36eee450 100644 --- a/src/components/messages/PlanApprovalMessage.tsx +++ b/src/components/messages/PlanApprovalMessage.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { Markdown } from '../../components/Markdown.js'; import { Box, Text } from '../../ink.js'; diff --git a/src/components/messages/RateLimitMessage.tsx b/src/components/messages/RateLimitMessage.tsx index 20d20162..1164af40 100644 --- a/src/components/messages/RateLimitMessage.tsx +++ b/src/components/messages/RateLimitMessage.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { useEffect, useMemo, useState } from 'react'; import { extraUsage } from 'src/commands/extra-usage/index.js'; import { Box, Text } from 'src/ink.js'; diff --git a/src/components/messages/ShutdownMessage.tsx b/src/components/messages/ShutdownMessage.tsx index 5c4476a7..2ebb6fec 100644 --- a/src/components/messages/ShutdownMessage.tsx +++ b/src/components/messages/ShutdownMessage.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { Box, Text } from '../../ink.js'; import { isShutdownApproved, isShutdownRejected, isShutdownRequest, type ShutdownRejectedMessage, type ShutdownRequestMessage } from '../../utils/teammateMailbox.js'; diff --git a/src/components/messages/SystemAPIErrorMessage.tsx b/src/components/messages/SystemAPIErrorMessage.tsx index e75b35c3..78d68c6b 100644 --- a/src/components/messages/SystemAPIErrorMessage.tsx +++ b/src/components/messages/SystemAPIErrorMessage.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { useState } from 'react'; import { Box, Text } from 'src/ink.js'; diff --git a/src/components/messages/SystemTextMessage.tsx b/src/components/messages/SystemTextMessage.tsx index a5fd83b4..0330c948 100644 --- a/src/components/messages/SystemTextMessage.tsx +++ b/src/components/messages/SystemTextMessage.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; // biome-ignore-all assist/source/organizeImports: ANT-ONLY import markers must not be reordered import { Box, Text, type TextProps } from '../../ink.js'; import { feature } from 'bun:bundle'; diff --git a/src/components/messages/TaskAssignmentMessage.tsx b/src/components/messages/TaskAssignmentMessage.tsx index e468efe2..13328528 100644 --- a/src/components/messages/TaskAssignmentMessage.tsx +++ b/src/components/messages/TaskAssignmentMessage.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { Box, Text } from '../../ink.js'; import { isTaskAssignment, type TaskAssignmentMessage } from '../../utils/teammateMailbox.js'; diff --git a/src/components/messages/UserAgentNotificationMessage.tsx b/src/components/messages/UserAgentNotificationMessage.tsx index dea36fd3..01e963c6 100644 --- a/src/components/messages/UserAgentNotificationMessage.tsx +++ b/src/components/messages/UserAgentNotificationMessage.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import type { TextBlockParam } from '@anthropic-ai/sdk/resources/index.mjs'; import * as React from 'react'; import { BLACK_CIRCLE } from '../../constants/figures.js'; diff --git a/src/components/messages/UserBashInputMessage.tsx b/src/components/messages/UserBashInputMessage.tsx index 90fe1f01..3a4ef74e 100644 --- a/src/components/messages/UserBashInputMessage.tsx +++ b/src/components/messages/UserBashInputMessage.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import type { TextBlockParam } from '@anthropic-ai/sdk/resources/index.mjs'; import * as React from 'react'; import { Box, Text } from '../../ink.js'; diff --git a/src/components/messages/UserBashOutputMessage.tsx b/src/components/messages/UserBashOutputMessage.tsx index a4797f95..e79b706b 100644 --- a/src/components/messages/UserBashOutputMessage.tsx +++ b/src/components/messages/UserBashOutputMessage.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import BashToolResultMessage from '../../tools/BashTool/BashToolResultMessage.js'; import { extractTag } from '../../utils/messages.js'; diff --git a/src/components/messages/UserChannelMessage.tsx b/src/components/messages/UserChannelMessage.tsx index cf106a63..cd096957 100644 --- a/src/components/messages/UserChannelMessage.tsx +++ b/src/components/messages/UserChannelMessage.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import type { TextBlockParam } from '@anthropic-ai/sdk/resources/index.mjs'; import * as React from 'react'; import { CHANNEL_ARROW } from '../../constants/figures.js'; diff --git a/src/components/messages/UserCommandMessage.tsx b/src/components/messages/UserCommandMessage.tsx index 19b74c70..92eda355 100644 --- a/src/components/messages/UserCommandMessage.tsx +++ b/src/components/messages/UserCommandMessage.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import type { TextBlockParam } from '@anthropic-ai/sdk/resources/index.mjs'; import figures from 'figures'; import * as React from 'react'; diff --git a/src/components/messages/UserImageMessage.tsx b/src/components/messages/UserImageMessage.tsx index f730ce27..9963cf17 100644 --- a/src/components/messages/UserImageMessage.tsx +++ b/src/components/messages/UserImageMessage.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { pathToFileURL } from 'url'; import Link from '../../ink/components/Link.js'; diff --git a/src/components/messages/UserLocalCommandOutputMessage.tsx b/src/components/messages/UserLocalCommandOutputMessage.tsx index d7838a55..1d7b8fee 100644 --- a/src/components/messages/UserLocalCommandOutputMessage.tsx +++ b/src/components/messages/UserLocalCommandOutputMessage.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { DIAMOND_FILLED, DIAMOND_OPEN } from '../../constants/figures.js'; import { NO_CONTENT_MESSAGE } from '../../constants/messages.js'; diff --git a/src/components/messages/UserMemoryInputMessage.tsx b/src/components/messages/UserMemoryInputMessage.tsx index bde87d0d..79fe4a57 100644 --- a/src/components/messages/UserMemoryInputMessage.tsx +++ b/src/components/messages/UserMemoryInputMessage.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import sample from 'lodash-es/sample.js'; import * as React from 'react'; import { useMemo } from 'react'; diff --git a/src/components/messages/UserPlanMessage.tsx b/src/components/messages/UserPlanMessage.tsx index 726f7aee..b34e73e6 100644 --- a/src/components/messages/UserPlanMessage.tsx +++ b/src/components/messages/UserPlanMessage.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { Box, Text } from '../../ink.js'; import { Markdown } from '../Markdown.js'; diff --git a/src/components/messages/UserResourceUpdateMessage.tsx b/src/components/messages/UserResourceUpdateMessage.tsx index c17d4a8b..f0c7cde6 100644 --- a/src/components/messages/UserResourceUpdateMessage.tsx +++ b/src/components/messages/UserResourceUpdateMessage.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import type { TextBlockParam } from '@anthropic-ai/sdk/resources/index.mjs'; import * as React from 'react'; import { REFRESH_ARROW } from '../../constants/figures.js'; diff --git a/src/components/messages/UserTeammateMessage.tsx b/src/components/messages/UserTeammateMessage.tsx index 0eaad84b..23acae40 100644 --- a/src/components/messages/UserTeammateMessage.tsx +++ b/src/components/messages/UserTeammateMessage.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import type { TextBlockParam } from '@anthropic-ai/sdk/resources/index.mjs'; import figures from 'figures'; import * as React from 'react'; diff --git a/src/components/messages/UserTextMessage.tsx b/src/components/messages/UserTextMessage.tsx index d6628feb..7460d644 100644 --- a/src/components/messages/UserTextMessage.tsx +++ b/src/components/messages/UserTextMessage.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { feature } from 'bun:bundle'; import type { TextBlockParam } from '@anthropic-ai/sdk/resources/index.mjs'; import * as React from 'react'; diff --git a/src/components/messages/UserToolResultMessage/RejectedPlanMessage.tsx b/src/components/messages/UserToolResultMessage/RejectedPlanMessage.tsx index b84a4a87..e24c0ada 100644 --- a/src/components/messages/UserToolResultMessage/RejectedPlanMessage.tsx +++ b/src/components/messages/UserToolResultMessage/RejectedPlanMessage.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { Markdown } from 'src/components/Markdown.js'; import { MessageResponse } from 'src/components/MessageResponse.js'; diff --git a/src/components/messages/UserToolResultMessage/RejectedToolUseMessage.tsx b/src/components/messages/UserToolResultMessage/RejectedToolUseMessage.tsx index ce8b37b2..fc44f31b 100644 --- a/src/components/messages/UserToolResultMessage/RejectedToolUseMessage.tsx +++ b/src/components/messages/UserToolResultMessage/RejectedToolUseMessage.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { Text } from '../../../ink.js'; import { MessageResponse } from '../../MessageResponse.js'; diff --git a/src/components/messages/UserToolResultMessage/UserToolCanceledMessage.tsx b/src/components/messages/UserToolResultMessage/UserToolCanceledMessage.tsx index 5e83838b..7f76575d 100644 --- a/src/components/messages/UserToolResultMessage/UserToolCanceledMessage.tsx +++ b/src/components/messages/UserToolResultMessage/UserToolCanceledMessage.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { InterruptedByUser } from 'src/components/InterruptedByUser.js'; import { MessageResponse } from 'src/components/MessageResponse.js'; diff --git a/src/components/messages/UserToolResultMessage/UserToolErrorMessage.tsx b/src/components/messages/UserToolResultMessage/UserToolErrorMessage.tsx index 021a9c70..99519efb 100644 --- a/src/components/messages/UserToolResultMessage/UserToolErrorMessage.tsx +++ b/src/components/messages/UserToolResultMessage/UserToolErrorMessage.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { feature } from 'bun:bundle'; import type { ToolResultBlockParam } from '@anthropic-ai/sdk/resources/index.mjs'; import * as React from 'react'; diff --git a/src/components/messages/UserToolResultMessage/UserToolRejectMessage.tsx b/src/components/messages/UserToolResultMessage/UserToolRejectMessage.tsx index 81d3e784..5b4b71fa 100644 --- a/src/components/messages/UserToolResultMessage/UserToolRejectMessage.tsx +++ b/src/components/messages/UserToolResultMessage/UserToolRejectMessage.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { useTerminalSize } from '../../../hooks/useTerminalSize.js'; import { useTheme } from '../../../ink.js'; diff --git a/src/components/messages/UserToolResultMessage/UserToolResultMessage.tsx b/src/components/messages/UserToolResultMessage/UserToolResultMessage.tsx index 028eff23..d3d5e030 100644 --- a/src/components/messages/UserToolResultMessage/UserToolResultMessage.tsx +++ b/src/components/messages/UserToolResultMessage/UserToolResultMessage.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import type { ToolResultBlockParam } from '@anthropic-ai/sdk/resources/index.mjs'; import * as React from 'react'; import type { Tools } from '../../../Tool.js'; diff --git a/src/components/messages/UserToolResultMessage/utils.tsx b/src/components/messages/UserToolResultMessage/utils.tsx index beac7b65..1806699b 100644 --- a/src/components/messages/UserToolResultMessage/utils.tsx +++ b/src/components/messages/UserToolResultMessage/utils.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import type { ToolUseBlockParam } from '@anthropic-ai/sdk/resources/index.mjs'; import { useMemo } from 'react'; import { findToolByName, type Tool, type Tools } from '../../../Tool.js'; diff --git a/src/components/messages/teamMemCollapsed.tsx b/src/components/messages/teamMemCollapsed.tsx index 14d9a8ce..270da332 100644 --- a/src/components/messages/teamMemCollapsed.tsx +++ b/src/components/messages/teamMemCollapsed.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { Text } from '../../ink.js'; import type { CollapsedReadSearchGroup } from '../../types/message.js'; diff --git a/src/components/permissions/AskUserQuestionPermissionRequest/AskUserQuestionPermissionRequest.tsx b/src/components/permissions/AskUserQuestionPermissionRequest/AskUserQuestionPermissionRequest.tsx index 38719156..39e83a3f 100644 --- a/src/components/permissions/AskUserQuestionPermissionRequest/AskUserQuestionPermissionRequest.tsx +++ b/src/components/permissions/AskUserQuestionPermissionRequest/AskUserQuestionPermissionRequest.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import type { Base64ImageSource, ImageBlockParam } from '@anthropic-ai/sdk/resources/messages.mjs'; import React, { Suspense, use, useCallback, useMemo, useRef, useState } from 'react'; import { useSettings } from '../../../hooks/useSettings.js'; diff --git a/src/components/permissions/AskUserQuestionPermissionRequest/PreviewBox.tsx b/src/components/permissions/AskUserQuestionPermissionRequest/PreviewBox.tsx index 3a611d66..1f1de7de 100644 --- a/src/components/permissions/AskUserQuestionPermissionRequest/PreviewBox.tsx +++ b/src/components/permissions/AskUserQuestionPermissionRequest/PreviewBox.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { Suspense, use, useMemo } from 'react'; import { useSettings } from '../../../hooks/useSettings.js'; import { useTerminalSize } from '../../../hooks/useTerminalSize.js'; diff --git a/src/components/permissions/AskUserQuestionPermissionRequest/QuestionNavigationBar.tsx b/src/components/permissions/AskUserQuestionPermissionRequest/QuestionNavigationBar.tsx index 790b7938..b7e06d2a 100644 --- a/src/components/permissions/AskUserQuestionPermissionRequest/QuestionNavigationBar.tsx +++ b/src/components/permissions/AskUserQuestionPermissionRequest/QuestionNavigationBar.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import React, { useMemo } from 'react'; import { useTerminalSize } from '../../../hooks/useTerminalSize.js'; diff --git a/src/components/permissions/AskUserQuestionPermissionRequest/QuestionView.tsx b/src/components/permissions/AskUserQuestionPermissionRequest/QuestionView.tsx index cce55bf6..87eb7f53 100644 --- a/src/components/permissions/AskUserQuestionPermissionRequest/QuestionView.tsx +++ b/src/components/permissions/AskUserQuestionPermissionRequest/QuestionView.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import React, { useCallback, useState } from 'react'; import type { KeyboardEvent } from '../../../ink/events/keyboard-event.js'; diff --git a/src/components/permissions/AskUserQuestionPermissionRequest/SubmitQuestionsView.tsx b/src/components/permissions/AskUserQuestionPermissionRequest/SubmitQuestionsView.tsx index d0b5fb3f..8117877e 100644 --- a/src/components/permissions/AskUserQuestionPermissionRequest/SubmitQuestionsView.tsx +++ b/src/components/permissions/AskUserQuestionPermissionRequest/SubmitQuestionsView.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import React from 'react'; import { Box, Text } from '../../../ink.js'; diff --git a/src/components/permissions/BashPermissionRequest/BashPermissionRequest.tsx b/src/components/permissions/BashPermissionRequest/BashPermissionRequest.tsx index bb193726..a2c13017 100644 --- a/src/components/permissions/BashPermissionRequest/BashPermissionRequest.tsx +++ b/src/components/permissions/BashPermissionRequest/BashPermissionRequest.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { feature } from 'bun:bundle'; import figures from 'figures'; import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'; diff --git a/src/components/permissions/ComputerUseApproval/ComputerUseApproval.tsx b/src/components/permissions/ComputerUseApproval/ComputerUseApproval.tsx index 9d85595d..a5398a58 100644 --- a/src/components/permissions/ComputerUseApproval/ComputerUseApproval.tsx +++ b/src/components/permissions/ComputerUseApproval/ComputerUseApproval.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { getSentinelCategory } from '@ant/computer-use-mcp/sentinelApps'; import type { CuPermissionRequest, CuPermissionResponse } from '@ant/computer-use-mcp/types'; import { DEFAULT_GRANT_FLAGS } from '@ant/computer-use-mcp/types'; diff --git a/src/components/permissions/EnterPlanModePermissionRequest/EnterPlanModePermissionRequest.tsx b/src/components/permissions/EnterPlanModePermissionRequest/EnterPlanModePermissionRequest.tsx index d680f0c5..298e7b75 100644 --- a/src/components/permissions/EnterPlanModePermissionRequest/EnterPlanModePermissionRequest.tsx +++ b/src/components/permissions/EnterPlanModePermissionRequest/EnterPlanModePermissionRequest.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { handlePlanModeTransition } from '../../../bootstrap/state.js'; import { Box, Text } from '../../../ink.js'; diff --git a/src/components/permissions/FallbackPermissionRequest.tsx b/src/components/permissions/FallbackPermissionRequest.tsx index 2e889785..63719303 100644 --- a/src/components/permissions/FallbackPermissionRequest.tsx +++ b/src/components/permissions/FallbackPermissionRequest.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { useCallback, useMemo } from 'react'; import { getOriginalCwd } from '../../bootstrap/state.js'; import { Box, Text, useTheme } from '../../ink.js'; diff --git a/src/components/permissions/FileEditPermissionRequest/FileEditPermissionRequest.tsx b/src/components/permissions/FileEditPermissionRequest/FileEditPermissionRequest.tsx index 65a9fb96..a6bbdc32 100644 --- a/src/components/permissions/FileEditPermissionRequest/FileEditPermissionRequest.tsx +++ b/src/components/permissions/FileEditPermissionRequest/FileEditPermissionRequest.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { basename, relative } from 'path'; import React from 'react'; import { FileEditToolDiff } from 'src/components/FileEditToolDiff.js'; diff --git a/src/components/permissions/FileWritePermissionRequest/FileWritePermissionRequest.tsx b/src/components/permissions/FileWritePermissionRequest/FileWritePermissionRequest.tsx index af763c62..7ffd6852 100644 --- a/src/components/permissions/FileWritePermissionRequest/FileWritePermissionRequest.tsx +++ b/src/components/permissions/FileWritePermissionRequest/FileWritePermissionRequest.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { basename, relative } from 'path'; import React, { useMemo } from 'react'; import type { z } from 'zod/v4'; diff --git a/src/components/permissions/FileWritePermissionRequest/FileWriteToolDiff.tsx b/src/components/permissions/FileWritePermissionRequest/FileWriteToolDiff.tsx index 37052a7d..107ca5c0 100644 --- a/src/components/permissions/FileWritePermissionRequest/FileWriteToolDiff.tsx +++ b/src/components/permissions/FileWritePermissionRequest/FileWriteToolDiff.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { useMemo } from 'react'; import { useTerminalSize } from '../../../hooks/useTerminalSize.js'; diff --git a/src/components/permissions/FilesystemPermissionRequest/FilesystemPermissionRequest.tsx b/src/components/permissions/FilesystemPermissionRequest/FilesystemPermissionRequest.tsx index e6275cb9..6ca7c194 100644 --- a/src/components/permissions/FilesystemPermissionRequest/FilesystemPermissionRequest.tsx +++ b/src/components/permissions/FilesystemPermissionRequest/FilesystemPermissionRequest.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { Box, Text, useTheme } from '../../../ink.js'; import { FallbackPermissionRequest } from '../FallbackPermissionRequest.js'; diff --git a/src/components/permissions/NotebookEditPermissionRequest/NotebookEditPermissionRequest.tsx b/src/components/permissions/NotebookEditPermissionRequest/NotebookEditPermissionRequest.tsx index f1029f78..7e8a9234 100644 --- a/src/components/permissions/NotebookEditPermissionRequest/NotebookEditPermissionRequest.tsx +++ b/src/components/permissions/NotebookEditPermissionRequest/NotebookEditPermissionRequest.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { basename } from 'path'; import React from 'react'; import type { z } from 'zod/v4'; diff --git a/src/components/permissions/NotebookEditPermissionRequest/NotebookEditToolDiff.tsx b/src/components/permissions/NotebookEditPermissionRequest/NotebookEditToolDiff.tsx index af75dafe..495e4c58 100644 --- a/src/components/permissions/NotebookEditPermissionRequest/NotebookEditToolDiff.tsx +++ b/src/components/permissions/NotebookEditPermissionRequest/NotebookEditToolDiff.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { relative } from 'path'; import * as React from 'react'; import { Suspense, use, useMemo } from 'react'; diff --git a/src/components/permissions/PermissionDecisionDebugInfo.tsx b/src/components/permissions/PermissionDecisionDebugInfo.tsx index 54c161f2..977f12a5 100644 --- a/src/components/permissions/PermissionDecisionDebugInfo.tsx +++ b/src/components/permissions/PermissionDecisionDebugInfo.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { feature } from 'bun:bundle'; import chalk from 'chalk'; import figures from 'figures'; diff --git a/src/components/permissions/PermissionDialog.tsx b/src/components/permissions/PermissionDialog.tsx index b93320c7..fa0770a7 100644 --- a/src/components/permissions/PermissionDialog.tsx +++ b/src/components/permissions/PermissionDialog.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { Box } from '../../ink.js'; import type { Theme } from '../../utils/theme.js'; diff --git a/src/components/permissions/PermissionExplanation.tsx b/src/components/permissions/PermissionExplanation.tsx index b7fd36b2..f0ea4d83 100644 --- a/src/components/permissions/PermissionExplanation.tsx +++ b/src/components/permissions/PermissionExplanation.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { Suspense, use, useState } from 'react'; import { Box, Text } from '../../ink.js'; import { useKeybinding } from '../../keybindings/useKeybinding.js'; diff --git a/src/components/permissions/PermissionPrompt.tsx b/src/components/permissions/PermissionPrompt.tsx index cc04708a..0b1f7007 100644 --- a/src/components/permissions/PermissionPrompt.tsx +++ b/src/components/permissions/PermissionPrompt.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { type ReactNode, useCallback, useMemo, useState } from 'react'; import { Box, Text } from '../../ink.js'; import type { KeybindingAction } from '../../keybindings/types.js'; diff --git a/src/components/permissions/PermissionRequest.tsx b/src/components/permissions/PermissionRequest.tsx index 2def623e..62d098de 100644 --- a/src/components/permissions/PermissionRequest.tsx +++ b/src/components/permissions/PermissionRequest.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { feature } from 'bun:bundle'; import * as React from 'react'; import { EnterPlanModeTool } from 'src/tools/EnterPlanModeTool/EnterPlanModeTool.js'; diff --git a/src/components/permissions/PermissionRequestTitle.tsx b/src/components/permissions/PermissionRequestTitle.tsx index f93b6ff4..1b51f40d 100644 --- a/src/components/permissions/PermissionRequestTitle.tsx +++ b/src/components/permissions/PermissionRequestTitle.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { Box, Text } from '../../ink.js'; import type { Theme } from '../../utils/theme.js'; diff --git a/src/components/permissions/PermissionRuleExplanation.tsx b/src/components/permissions/PermissionRuleExplanation.tsx index 97ff1945..72019269 100644 --- a/src/components/permissions/PermissionRuleExplanation.tsx +++ b/src/components/permissions/PermissionRuleExplanation.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { feature } from 'bun:bundle'; import chalk from 'chalk'; import React from 'react'; diff --git a/src/components/permissions/SandboxPermissionRequest.tsx b/src/components/permissions/SandboxPermissionRequest.tsx index bd994212..d7d434b8 100644 --- a/src/components/permissions/SandboxPermissionRequest.tsx +++ b/src/components/permissions/SandboxPermissionRequest.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { Box, Text } from 'src/ink.js'; import { type NetworkHostPattern, shouldAllowManagedSandboxDomainsOnly } from 'src/utils/sandbox/sandbox-adapter.js'; diff --git a/src/components/permissions/SedEditPermissionRequest/SedEditPermissionRequest.tsx b/src/components/permissions/SedEditPermissionRequest/SedEditPermissionRequest.tsx index be81a181..241e1e33 100644 --- a/src/components/permissions/SedEditPermissionRequest/SedEditPermissionRequest.tsx +++ b/src/components/permissions/SedEditPermissionRequest/SedEditPermissionRequest.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { basename, relative } from 'path'; import React, { Suspense, use, useMemo } from 'react'; import { FileEditToolDiff } from 'src/components/FileEditToolDiff.js'; diff --git a/src/components/permissions/SkillPermissionRequest/SkillPermissionRequest.tsx b/src/components/permissions/SkillPermissionRequest/SkillPermissionRequest.tsx index 346f846b..59d3997b 100644 --- a/src/components/permissions/SkillPermissionRequest/SkillPermissionRequest.tsx +++ b/src/components/permissions/SkillPermissionRequest/SkillPermissionRequest.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { useCallback, useMemo } from 'react'; import { logError } from 'src/utils/log.js'; import { getOriginalCwd } from '../../../bootstrap/state.js'; diff --git a/src/components/permissions/WebFetchPermissionRequest/WebFetchPermissionRequest.tsx b/src/components/permissions/WebFetchPermissionRequest/WebFetchPermissionRequest.tsx index 28a548c6..916ebd4b 100644 --- a/src/components/permissions/WebFetchPermissionRequest/WebFetchPermissionRequest.tsx +++ b/src/components/permissions/WebFetchPermissionRequest/WebFetchPermissionRequest.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { useMemo } from 'react'; import { Box, Text, useTheme } from '../../../ink.js'; import { WebFetchTool } from '../../../tools/WebFetchTool/WebFetchTool.js'; diff --git a/src/components/permissions/WorkerBadge.tsx b/src/components/permissions/WorkerBadge.tsx index 6ee842bc..bc05634d 100644 --- a/src/components/permissions/WorkerBadge.tsx +++ b/src/components/permissions/WorkerBadge.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { BLACK_CIRCLE } from '../../constants/figures.js'; import { Box, Text } from '../../ink.js'; diff --git a/src/components/permissions/WorkerPendingPermission.tsx b/src/components/permissions/WorkerPendingPermission.tsx index bff845d2..2cee7d9b 100644 --- a/src/components/permissions/WorkerPendingPermission.tsx +++ b/src/components/permissions/WorkerPendingPermission.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { Box, Text } from '../../ink.js'; import { getAgentName, getTeammateColor, getTeamName } from '../../utils/teammate.js'; diff --git a/src/components/permissions/rules/AddPermissionRules.tsx b/src/components/permissions/rules/AddPermissionRules.tsx index 2c566092..d7f655a4 100644 --- a/src/components/permissions/rules/AddPermissionRules.tsx +++ b/src/components/permissions/rules/AddPermissionRules.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { useCallback } from 'react'; import { Select } from '../../../components/CustomSelect/select.js'; diff --git a/src/components/permissions/rules/AddWorkspaceDirectory.tsx b/src/components/permissions/rules/AddWorkspaceDirectory.tsx index 7ff97fac..e03cb067 100644 --- a/src/components/permissions/rules/AddWorkspaceDirectory.tsx +++ b/src/components/permissions/rules/AddWorkspaceDirectory.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import * as React from 'react'; import { useCallback, useEffect, useMemo, useState } from 'react'; diff --git a/src/components/permissions/rules/PermissionRuleDescription.tsx b/src/components/permissions/rules/PermissionRuleDescription.tsx index 8d5c13ac..53eda62d 100644 --- a/src/components/permissions/rules/PermissionRuleDescription.tsx +++ b/src/components/permissions/rules/PermissionRuleDescription.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { Text } from '../../../ink.js'; import { BashTool } from '../../../tools/BashTool/BashTool.js'; diff --git a/src/components/permissions/rules/PermissionRuleInput.tsx b/src/components/permissions/rules/PermissionRuleInput.tsx index 13b7b0b0..4aea5c67 100644 --- a/src/components/permissions/rules/PermissionRuleInput.tsx +++ b/src/components/permissions/rules/PermissionRuleInput.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import * as React from 'react'; import { useState } from 'react'; diff --git a/src/components/permissions/rules/PermissionRuleList.tsx b/src/components/permissions/rules/PermissionRuleList.tsx index 494d1821..ccca3593 100644 --- a/src/components/permissions/rules/PermissionRuleList.tsx +++ b/src/components/permissions/rules/PermissionRuleList.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import chalk from 'chalk'; import figures from 'figures'; import * as React from 'react'; diff --git a/src/components/permissions/rules/RecentDenialsTab.tsx b/src/components/permissions/rules/RecentDenialsTab.tsx index 274ad551..0905d672 100644 --- a/src/components/permissions/rules/RecentDenialsTab.tsx +++ b/src/components/permissions/rules/RecentDenialsTab.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { useCallback, useEffect, useState } from 'react'; // eslint-disable-next-line custom-rules/prefer-use-keybindings -- 'r' is a view-specific key, not a global keybinding diff --git a/src/components/permissions/rules/RemoveWorkspaceDirectory.tsx b/src/components/permissions/rules/RemoveWorkspaceDirectory.tsx index 7174df1f..b66dea0f 100644 --- a/src/components/permissions/rules/RemoveWorkspaceDirectory.tsx +++ b/src/components/permissions/rules/RemoveWorkspaceDirectory.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { useCallback } from 'react'; import { Select } from '../../../components/CustomSelect/select.js'; diff --git a/src/components/permissions/rules/WorkspaceTab.tsx b/src/components/permissions/rules/WorkspaceTab.tsx index 8bee7ef3..7e51d3d0 100644 --- a/src/components/permissions/rules/WorkspaceTab.tsx +++ b/src/components/permissions/rules/WorkspaceTab.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import * as React from 'react'; import { useCallback, useEffect } from 'react'; diff --git a/src/components/sandbox/SandboxConfigTab.tsx b/src/components/sandbox/SandboxConfigTab.tsx index dc62f884..97e40fc4 100644 --- a/src/components/sandbox/SandboxConfigTab.tsx +++ b/src/components/sandbox/SandboxConfigTab.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { Box, Text } from '../../ink.js'; import { SandboxManager, shouldAllowManagedSandboxDomainsOnly } from '../../utils/sandbox/sandbox-adapter.js'; diff --git a/src/components/sandbox/SandboxDependenciesTab.tsx b/src/components/sandbox/SandboxDependenciesTab.tsx index c9ecbc5b..81a5be8b 100644 --- a/src/components/sandbox/SandboxDependenciesTab.tsx +++ b/src/components/sandbox/SandboxDependenciesTab.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { Box, Text } from '../../ink.js'; import { getPlatform } from '../../utils/platform.js'; diff --git a/src/components/sandbox/SandboxDoctorSection.tsx b/src/components/sandbox/SandboxDoctorSection.tsx index 5d899dbb..4cf10a8a 100644 --- a/src/components/sandbox/SandboxDoctorSection.tsx +++ b/src/components/sandbox/SandboxDoctorSection.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { Box, Text } from '../../ink.js'; import { SandboxManager } from '../../utils/sandbox/sandbox-adapter.js'; diff --git a/src/components/sandbox/SandboxOverridesTab.tsx b/src/components/sandbox/SandboxOverridesTab.tsx index 5990b15d..cb9e305a 100644 --- a/src/components/sandbox/SandboxOverridesTab.tsx +++ b/src/components/sandbox/SandboxOverridesTab.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { Box, color, Link, Text, useTheme } from '../../ink.js'; import type { CommandResultDisplay } from '../../types/command.js'; diff --git a/src/components/sandbox/SandboxSettings.tsx b/src/components/sandbox/SandboxSettings.tsx index 77815a2c..35bb3cff 100644 --- a/src/components/sandbox/SandboxSettings.tsx +++ b/src/components/sandbox/SandboxSettings.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { Box, color, Link, Text, useTheme } from '../../ink.js'; import { useKeybindings } from '../../keybindings/useKeybinding.js'; diff --git a/src/components/shell/ExpandShellOutputContext.tsx b/src/components/shell/ExpandShellOutputContext.tsx index 24522082..899a2ae7 100644 --- a/src/components/shell/ExpandShellOutputContext.tsx +++ b/src/components/shell/ExpandShellOutputContext.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { useContext } from 'react'; diff --git a/src/components/shell/OutputLine.tsx b/src/components/shell/OutputLine.tsx index a6c55974..2eecdadf 100644 --- a/src/components/shell/OutputLine.tsx +++ b/src/components/shell/OutputLine.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { useMemo } from 'react'; import { useTerminalSize } from '../../hooks/useTerminalSize.js'; diff --git a/src/components/shell/ShellProgressMessage.tsx b/src/components/shell/ShellProgressMessage.tsx index 962cce13..6d4c0afc 100644 --- a/src/components/shell/ShellProgressMessage.tsx +++ b/src/components/shell/ShellProgressMessage.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import stripAnsi from 'strip-ansi'; import { Box, Text } from '../../ink.js'; diff --git a/src/components/shell/ShellTimeDisplay.tsx b/src/components/shell/ShellTimeDisplay.tsx index d541ede4..07bdcb82 100644 --- a/src/components/shell/ShellTimeDisplay.tsx +++ b/src/components/shell/ShellTimeDisplay.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { Text } from '../../ink.js'; import { formatDuration } from '../../utils/format.js'; diff --git a/src/components/skills/SkillsMenu.tsx b/src/components/skills/SkillsMenu.tsx index 9c7facb1..875b8dbb 100644 --- a/src/components/skills/SkillsMenu.tsx +++ b/src/components/skills/SkillsMenu.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import capitalize from 'lodash-es/capitalize.js'; import * as React from 'react'; import { useMemo } from 'react'; diff --git a/src/components/tasks/AsyncAgentDetailDialog.tsx b/src/components/tasks/AsyncAgentDetailDialog.tsx index ee18f3bf..77b9fd7e 100644 --- a/src/components/tasks/AsyncAgentDetailDialog.tsx +++ b/src/components/tasks/AsyncAgentDetailDialog.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { useMemo } from 'react'; import type { DeepImmutable } from 'src/types/utils.js'; import { useElapsedTime } from '../../hooks/useElapsedTime.js'; diff --git a/src/components/tasks/BackgroundTask.tsx b/src/components/tasks/BackgroundTask.tsx index 4084db34..b68d8329 100644 --- a/src/components/tasks/BackgroundTask.tsx +++ b/src/components/tasks/BackgroundTask.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { Text } from 'src/ink.js'; import type { BackgroundTaskState } from 'src/tasks/types.js'; diff --git a/src/components/tasks/BackgroundTaskStatus.tsx b/src/components/tasks/BackgroundTaskStatus.tsx index 7476608f..2ea143ab 100644 --- a/src/components/tasks/BackgroundTaskStatus.tsx +++ b/src/components/tasks/BackgroundTaskStatus.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import * as React from 'react'; import { useMemo, useState } from 'react'; diff --git a/src/components/tasks/BackgroundTasksDialog.tsx b/src/components/tasks/BackgroundTasksDialog.tsx index 7abd9c0c..beb99022 100644 --- a/src/components/tasks/BackgroundTasksDialog.tsx +++ b/src/components/tasks/BackgroundTasksDialog.tsx @@ -1,8 +1,9 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { feature } from 'bun:bundle'; import figures from 'figures'; -import React, { type ReactNode, useEffect, useEffectEvent, useMemo, useRef, useState } from 'react'; +import React, { type ReactNode, useEffect, useMemo, useRef, useState } from 'react'; import { isCoordinatorMode } from 'src/coordinator/coordinatorMode.js'; +import { useEffectEventCompat } from 'src/hooks/useEffectEventCompat.js'; import { useTerminalSize } from 'src/hooks/useTerminalSize.js'; import { useAppState, useSetAppState } from 'src/state/AppState.js'; import { enterTeammateView, exitTeammateView } from 'src/state/teammateViewHelpers.js'; @@ -321,7 +322,7 @@ export function BackgroundTasksDialog({ // Wrap onDone in useEffectEvent to get a stable reference that always calls // the current onDone callback without causing the effect to re-fire. - const onDoneEvent = useEffectEvent(onDone); + const onDoneEvent = useEffectEventCompat(onDone); useEffect(() => { if (viewState.mode !== 'list') { const task = (typedTasks ?? {})[viewState.itemId]; diff --git a/src/components/tasks/DreamDetailDialog.tsx b/src/components/tasks/DreamDetailDialog.tsx index 74fdee5a..6b81d74b 100644 --- a/src/components/tasks/DreamDetailDialog.tsx +++ b/src/components/tasks/DreamDetailDialog.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import type { DeepImmutable } from 'src/types/utils.js'; import { useElapsedTime } from '../../hooks/useElapsedTime.js'; diff --git a/src/components/tasks/InProcessTeammateDetailDialog.tsx b/src/components/tasks/InProcessTeammateDetailDialog.tsx index 3f71c60c..58d6588b 100644 --- a/src/components/tasks/InProcessTeammateDetailDialog.tsx +++ b/src/components/tasks/InProcessTeammateDetailDialog.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { useMemo } from 'react'; import type { DeepImmutable } from 'src/types/utils.js'; import { useElapsedTime } from '../../hooks/useElapsedTime.js'; diff --git a/src/components/tasks/RemoteSessionDetailDialog.tsx b/src/components/tasks/RemoteSessionDetailDialog.tsx index 153cd7a0..c3055485 100644 --- a/src/components/tasks/RemoteSessionDetailDialog.tsx +++ b/src/components/tasks/RemoteSessionDetailDialog.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import React, { useMemo, useState } from 'react'; import type { SDKMessage } from 'src/entrypoints/agentSdkTypes.js'; diff --git a/src/components/tasks/RemoteSessionProgress.tsx b/src/components/tasks/RemoteSessionProgress.tsx index 4e7a3298..e8ed94be 100644 --- a/src/components/tasks/RemoteSessionProgress.tsx +++ b/src/components/tasks/RemoteSessionProgress.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { useRef } from 'react'; import type { RemoteAgentTaskState } from 'src/tasks/RemoteAgentTask/RemoteAgentTask.js'; import type { DeepImmutable } from 'src/types/utils.js'; diff --git a/src/components/tasks/ShellDetailDialog.tsx b/src/components/tasks/ShellDetailDialog.tsx index 69130a46..9731c6e1 100644 --- a/src/components/tasks/ShellDetailDialog.tsx +++ b/src/components/tasks/ShellDetailDialog.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { Suspense, use, useDeferredValue, useEffect, useState } from 'react'; import type { DeepImmutable } from 'src/types/utils.js'; import type { CommandResultDisplay } from '../../commands.js'; diff --git a/src/components/tasks/ShellProgress.tsx b/src/components/tasks/ShellProgress.tsx index 02bd0206..55ef1603 100644 --- a/src/components/tasks/ShellProgress.tsx +++ b/src/components/tasks/ShellProgress.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import type { ReactNode } from 'react'; import React from 'react'; import { Text } from 'src/ink.js'; diff --git a/src/components/teams/TeamStatus.tsx b/src/components/teams/TeamStatus.tsx index 61bde72c..81c1606b 100644 --- a/src/components/teams/TeamStatus.tsx +++ b/src/components/teams/TeamStatus.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { Text } from '../../ink.js'; import { useAppState } from '../../state/AppState.js'; diff --git a/src/components/teams/TeamsDialog.tsx b/src/components/teams/TeamsDialog.tsx index 4f8a6e60..047c9b24 100644 --- a/src/components/teams/TeamsDialog.tsx +++ b/src/components/teams/TeamsDialog.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { randomUUID } from 'crypto'; import figures from 'figures'; import * as React from 'react'; diff --git a/src/components/ui/OrderedList.tsx b/src/components/ui/OrderedList.tsx index 54ca8a0e..2228ede5 100644 --- a/src/components/ui/OrderedList.tsx +++ b/src/components/ui/OrderedList.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { createContext, isValidElement, type ReactNode, useContext } from 'react'; import { Box } from '../../ink.js'; import { OrderedListItem, OrderedListItemContext } from './OrderedListItem.js'; diff --git a/src/components/ui/OrderedListItem.tsx b/src/components/ui/OrderedListItem.tsx index 08b1b41a..c9b4c1db 100644 --- a/src/components/ui/OrderedListItem.tsx +++ b/src/components/ui/OrderedListItem.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { createContext, type ReactNode, useContext } from 'react'; import { Box, Text } from '../../ink.js'; export const OrderedListItemContext = createContext({ diff --git a/src/components/ui/TreeSelect.tsx b/src/components/ui/TreeSelect.tsx index d65d75cb..268ff5d6 100644 --- a/src/components/ui/TreeSelect.tsx +++ b/src/components/ui/TreeSelect.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import type { KeyboardEvent } from '../../ink/events/keyboard-event.js'; import { Box } from '../../ink.js'; diff --git a/src/components/wizard/WizardDialogLayout.tsx b/src/components/wizard/WizardDialogLayout.tsx index a0381d08..dd549dd3 100644 --- a/src/components/wizard/WizardDialogLayout.tsx +++ b/src/components/wizard/WizardDialogLayout.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { type ReactNode } from 'react'; import type { Theme } from '../../utils/theme.js'; import { Dialog } from '../design-system/Dialog.js'; diff --git a/src/components/wizard/WizardProvider.tsx b/src/components/wizard/WizardProvider.tsx index bb7e0276..2689cd80 100644 --- a/src/components/wizard/WizardProvider.tsx +++ b/src/components/wizard/WizardProvider.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { createContext, type ReactNode, useCallback, useEffect, useMemo, useState } from 'react'; import { useExitOnCtrlCDWithKeybindings } from '../../hooks/useExitOnCtrlCDWithKeybindings.js'; import type { WizardContextValue, WizardProviderProps } from './types.js'; diff --git a/src/context/QueuedMessageContext.tsx b/src/context/QueuedMessageContext.tsx index 1153d127..818170a5 100644 --- a/src/context/QueuedMessageContext.tsx +++ b/src/context/QueuedMessageContext.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { Box } from '../ink.js'; type QueuedMessageContextValue = { diff --git a/src/context/fpsMetrics.tsx b/src/context/fpsMetrics.tsx index 2707944c..b0eb727b 100644 --- a/src/context/fpsMetrics.tsx +++ b/src/context/fpsMetrics.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { createContext, useContext } from 'react'; import type { FpsMetrics } from '../utils/fpsTracker.js'; type FpsMetricsGetter = () => FpsMetrics | undefined; diff --git a/src/context/mailbox.tsx b/src/context/mailbox.tsx index dc85920f..4821d2dd 100644 --- a/src/context/mailbox.tsx +++ b/src/context/mailbox.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { createContext, useContext, useMemo } from 'react'; import { Mailbox } from '../utils/mailbox.js'; const MailboxContext = createContext(undefined); diff --git a/src/context/modalContext.tsx b/src/context/modalContext.tsx index 031de7cd..f43ef394 100644 --- a/src/context/modalContext.tsx +++ b/src/context/modalContext.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { createContext, type RefObject, useContext } from 'react'; import type { ScrollBoxHandle } from '../ink/components/ScrollBox.js'; diff --git a/src/context/overlayContext.tsx b/src/context/overlayContext.tsx index 0f20f62c..bb2cf278 100644 --- a/src/context/overlayContext.tsx +++ b/src/context/overlayContext.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; /** * Overlay tracking for Escape key coordination. * diff --git a/src/context/promptOverlayContext.tsx b/src/context/promptOverlayContext.tsx index 5376b1a2..98e36bb3 100644 --- a/src/context/promptOverlayContext.tsx +++ b/src/context/promptOverlayContext.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; /** * Portal for content that floats above the prompt so it escapes * FullscreenLayout's bottom-slot `overflowY:hidden` clip. diff --git a/src/context/stats.tsx b/src/context/stats.tsx index 391b2c3e..5611e2af 100644 --- a/src/context/stats.tsx +++ b/src/context/stats.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { createContext, useCallback, useContext, useEffect, useMemo } from 'react'; import { saveCurrentProjectConfig } from '../utils/config.js'; export type StatsStore = { diff --git a/src/context/voice.tsx b/src/context/voice.tsx index 04e14ddc..168b053a 100644 --- a/src/context/voice.tsx +++ b/src/context/voice.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { createContext, useContext, useState, useSyncExternalStore } from 'react'; import { createStore, type Store } from '../state/store.js'; export type VoiceState = { diff --git a/src/entrypoints/cli.tsx b/src/entrypoints/cli.tsx index 67326f89..b8ddef27 100644 --- a/src/entrypoints/cli.tsx +++ b/src/entrypoints/cli.tsx @@ -25,6 +25,41 @@ if (feature('ABLATION_BASELINE') && process.env.CLAUDE_CODE_ABLATION_BASELINE) { } } +function isEnvTruthy(value: string | undefined): boolean { + if (!value) return false + const normalized = value.trim().toLowerCase() + return normalized !== '' && normalized !== '0' && normalized !== 'false' && normalized !== 'no' +} + +function isLocalProviderUrl(baseUrl: string | undefined): boolean { + if (!baseUrl) return false + try { + const parsed = new URL(baseUrl) + return parsed.hostname === 'localhost' || parsed.hostname === '127.0.0.1' || parsed.hostname === '::1' + } catch { + return false + } +} + +function validateProviderEnvOrExit(): void { + if (!isEnvTruthy(process.env.CLAUDE_CODE_USE_OPENAI)) { + return + } + + const apiKey = process.env.OPENAI_API_KEY + const baseUrl = process.env.OPENAI_BASE_URL + + if (apiKey === 'SUA_CHAVE') { + console.error('Invalid OPENAI_API_KEY: placeholder value SUA_CHAVE detected. Set a real key or unset for local providers.') + process.exit(1) + } + + if (!apiKey && !isLocalProviderUrl(baseUrl)) { + console.error('OPENAI_API_KEY is required when CLAUDE_CODE_USE_OPENAI=1 and OPENAI_BASE_URL is not local.') + process.exit(1) + } +} + /** * Bootstrap entrypoint - checks for special flags before loading the full CLI. * All imports are dynamic to minimize module evaluation for fast paths. @@ -41,6 +76,8 @@ async function main(): Promise { return; } + validateProviderEnvOrExit() + // For all other paths, load the startup profiler const { profileCheckpoint diff --git a/src/hooks/notifs/useDeprecationWarningNotification.tsx b/src/hooks/notifs/useDeprecationWarningNotification.tsx index 0e54fc7a..ae195c46 100644 --- a/src/hooks/notifs/useDeprecationWarningNotification.tsx +++ b/src/hooks/notifs/useDeprecationWarningNotification.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { useEffect, useRef } from 'react'; import { useNotifications } from 'src/context/notifications.js'; import { getModelDeprecationWarning } from 'src/utils/model/deprecation.js'; diff --git a/src/hooks/notifs/useFastModeNotification.tsx b/src/hooks/notifs/useFastModeNotification.tsx index 786eb378..b5eaa327 100644 --- a/src/hooks/notifs/useFastModeNotification.tsx +++ b/src/hooks/notifs/useFastModeNotification.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { useEffect } from 'react'; import { useNotifications } from 'src/context/notifications.js'; import { useAppState, useSetAppState } from 'src/state/AppState.js'; diff --git a/src/hooks/notifs/useIDEStatusIndicator.tsx b/src/hooks/notifs/useIDEStatusIndicator.tsx index 1b46333e..818655bb 100644 --- a/src/hooks/notifs/useIDEStatusIndicator.tsx +++ b/src/hooks/notifs/useIDEStatusIndicator.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { useEffect, useRef } from 'react'; import { useNotifications } from 'src/context/notifications.js'; import { Text } from 'src/ink.js'; diff --git a/src/hooks/notifs/useLspInitializationNotification.tsx b/src/hooks/notifs/useLspInitializationNotification.tsx index e253e9a2..7b78daf5 100644 --- a/src/hooks/notifs/useLspInitializationNotification.tsx +++ b/src/hooks/notifs/useLspInitializationNotification.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { useInterval } from 'usehooks-ts'; import { getIsRemoteMode, getIsScrollDraining } from '../../bootstrap/state.js'; diff --git a/src/hooks/notifs/useMcpConnectivityStatus.tsx b/src/hooks/notifs/useMcpConnectivityStatus.tsx index 6fe57171..cfcb9a7e 100644 --- a/src/hooks/notifs/useMcpConnectivityStatus.tsx +++ b/src/hooks/notifs/useMcpConnectivityStatus.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { useEffect } from 'react'; import { useNotifications } from 'src/context/notifications.js'; diff --git a/src/hooks/notifs/usePluginAutoupdateNotification.tsx b/src/hooks/notifs/usePluginAutoupdateNotification.tsx index 32a19ce4..e22ea26f 100644 --- a/src/hooks/notifs/usePluginAutoupdateNotification.tsx +++ b/src/hooks/notifs/usePluginAutoupdateNotification.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { useEffect, useState } from 'react'; import { getIsRemoteMode } from '../../bootstrap/state.js'; diff --git a/src/hooks/notifs/usePluginInstallationStatus.tsx b/src/hooks/notifs/usePluginInstallationStatus.tsx index 9be20c3e..91f85669 100644 --- a/src/hooks/notifs/usePluginInstallationStatus.tsx +++ b/src/hooks/notifs/usePluginInstallationStatus.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { useEffect, useMemo } from 'react'; import { getIsRemoteMode } from '../../bootstrap/state.js'; diff --git a/src/hooks/notifs/useRateLimitWarningNotification.tsx b/src/hooks/notifs/useRateLimitWarningNotification.tsx index f5453552..a7b9e77d 100644 --- a/src/hooks/notifs/useRateLimitWarningNotification.tsx +++ b/src/hooks/notifs/useRateLimitWarningNotification.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { useEffect, useMemo, useRef, useState } from 'react'; import { useNotifications } from 'src/context/notifications.js'; diff --git a/src/hooks/notifs/useSettingsErrors.tsx b/src/hooks/notifs/useSettingsErrors.tsx index d2694824..5b2cd44e 100644 --- a/src/hooks/notifs/useSettingsErrors.tsx +++ b/src/hooks/notifs/useSettingsErrors.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { useCallback, useEffect, useState } from 'react'; import { useNotifications } from 'src/context/notifications.js'; import { getIsRemoteMode } from '../../bootstrap/state.js'; diff --git a/src/hooks/useCanUseTool.tsx b/src/hooks/useCanUseTool.tsx index 1eb77d56..c733987a 100644 --- a/src/hooks/useCanUseTool.tsx +++ b/src/hooks/useCanUseTool.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { feature } from 'bun:bundle'; import { APIUserAbortError } from '@anthropic-ai/sdk'; import * as React from 'react'; diff --git a/src/hooks/useClaudeCodeHintRecommendation.tsx b/src/hooks/useClaudeCodeHintRecommendation.tsx index 390185b3..cea67006 100644 --- a/src/hooks/useClaudeCodeHintRecommendation.tsx +++ b/src/hooks/useClaudeCodeHintRecommendation.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; /** * Surfaces plugin-install prompts driven by `` tags * that CLIs/SDKs emit to stderr. See docs/claude-code-hints.md. diff --git a/src/hooks/useCommandKeybindings.tsx b/src/hooks/useCommandKeybindings.tsx index 55810d62..a155b9cc 100644 --- a/src/hooks/useCommandKeybindings.tsx +++ b/src/hooks/useCommandKeybindings.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; /** * Component that registers keybinding handlers for command bindings. * diff --git a/src/hooks/useEffectEventCompat.ts b/src/hooks/useEffectEventCompat.ts new file mode 100644 index 00000000..0db83d00 --- /dev/null +++ b/src/hooks/useEffectEventCompat.ts @@ -0,0 +1,16 @@ +import { useCallback, useLayoutEffect, useRef } from 'react' + +/** + * React 18-compatible replacement for React 19's useEffectEvent. + */ +export function useEffectEventCompat( + fn: (...args: Args) => Return, +): (...args: Args) => Return { + const fnRef = useRef(fn) + + useLayoutEffect(() => { + fnRef.current = fn + }, [fn]) + + return useCallback((...args: Args) => fnRef.current(...args), []) +} \ No newline at end of file diff --git a/src/hooks/useIDEIntegration.tsx b/src/hooks/useIDEIntegration.tsx index 65f9ff38..a3434f12 100644 --- a/src/hooks/useIDEIntegration.tsx +++ b/src/hooks/useIDEIntegration.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { useEffect } from 'react'; import type { ScopedMcpServerConfig } from '../services/mcp/types.js'; import { getGlobalConfig } from '../utils/config.js'; diff --git a/src/hooks/useLspPluginRecommendation.tsx b/src/hooks/useLspPluginRecommendation.tsx index 7253b3da..c3a5805c 100644 --- a/src/hooks/useLspPluginRecommendation.tsx +++ b/src/hooks/useLspPluginRecommendation.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; /** * Hook for LSP plugin recommendations * diff --git a/src/hooks/usePluginRecommendationBase.tsx b/src/hooks/usePluginRecommendationBase.tsx index 9a2a2d40..6c0b7808 100644 --- a/src/hooks/usePluginRecommendationBase.tsx +++ b/src/hooks/usePluginRecommendationBase.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; /** * Shared state machine + install helper for plugin-recommendation hooks * (LSP, claude-code-hint). Centralizes the gate chain, async-guard, diff --git a/src/hooks/usePromptsFromClaudeInChrome.tsx b/src/hooks/usePromptsFromClaudeInChrome.tsx index bc4673a7..4db18dd2 100644 --- a/src/hooks/usePromptsFromClaudeInChrome.tsx +++ b/src/hooks/usePromptsFromClaudeInChrome.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import type { ContentBlockParam } from '@anthropic-ai/sdk/resources/messages.mjs'; import { useEffect, useRef } from 'react'; import { logError } from 'src/utils/log.js'; diff --git a/src/hooks/useTeleportResume.tsx b/src/hooks/useTeleportResume.tsx index 9b459aab..4989ba64 100644 --- a/src/hooks/useTeleportResume.tsx +++ b/src/hooks/useTeleportResume.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { useCallback, useState } from 'react'; import { setTeleportedSessionInfo } from 'src/bootstrap/state.js'; import { type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS, logEvent } from 'src/services/analytics/index.js'; diff --git a/src/ink/Ansi.tsx b/src/ink/Ansi.tsx index aef5f60e..242d5fb6 100644 --- a/src/ink/Ansi.tsx +++ b/src/ink/Ansi.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import Link from './components/Link.js'; import Text from './components/Text.js'; diff --git a/src/ink/components/AlternateScreen.tsx b/src/ink/components/AlternateScreen.tsx index b736f929..62659118 100644 --- a/src/ink/components/AlternateScreen.tsx +++ b/src/ink/components/AlternateScreen.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { type PropsWithChildren, useContext, useInsertionEffect } from 'react'; import instances from '../instances.js'; import { DISABLE_MOUSE_TRACKING, ENABLE_MOUSE_TRACKING, ENTER_ALT_SCREEN, EXIT_ALT_SCREEN } from '../termio/dec.js'; diff --git a/src/ink/components/Box.tsx b/src/ink/components/Box.tsx index 67f2500f..959f89ef 100644 --- a/src/ink/components/Box.tsx +++ b/src/ink/components/Box.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import '../global.d.ts'; import React, { type PropsWithChildren, type Ref } from 'react'; import type { Except } from 'type-fest'; diff --git a/src/ink/components/Button.tsx b/src/ink/components/Button.tsx index 8dc35f06..9f14ead8 100644 --- a/src/ink/components/Button.tsx +++ b/src/ink/components/Button.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { type Ref, useCallback, useEffect, useRef, useState } from 'react'; import type { Except } from 'type-fest'; import type { DOMElement } from '../dom.js'; diff --git a/src/ink/components/ClockContext.tsx b/src/ink/components/ClockContext.tsx index 0f24839d..8950a56e 100644 --- a/src/ink/components/ClockContext.tsx +++ b/src/ink/components/ClockContext.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { createContext, useEffect, useState } from 'react'; import { FRAME_INTERVAL_MS } from '../constants.js'; import { useTerminalFocus } from '../hooks/use-terminal-focus.js'; diff --git a/src/ink/components/Link.tsx b/src/ink/components/Link.tsx index 82341db6..5413061d 100644 --- a/src/ink/components/Link.tsx +++ b/src/ink/components/Link.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import type { ReactNode } from 'react'; import React from 'react'; import { supportsHyperlinks } from '../supports-hyperlinks.js'; diff --git a/src/ink/components/Newline.tsx b/src/ink/components/Newline.tsx index 5edf6188..a14b9bf3 100644 --- a/src/ink/components/Newline.tsx +++ b/src/ink/components/Newline.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; export type Props = { /** diff --git a/src/ink/components/NoSelect.tsx b/src/ink/components/NoSelect.tsx index d21b8d7a..14a42a6e 100644 --- a/src/ink/components/NoSelect.tsx +++ b/src/ink/components/NoSelect.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { type PropsWithChildren } from 'react'; import Box, { type Props as BoxProps } from './Box.js'; type Props = Omit & { diff --git a/src/ink/components/RawAnsi.tsx b/src/ink/components/RawAnsi.tsx index 919e453b..ba85a4aa 100644 --- a/src/ink/components/RawAnsi.tsx +++ b/src/ink/components/RawAnsi.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; type Props = { /** diff --git a/src/ink/components/Spacer.tsx b/src/ink/components/Spacer.tsx index 4d0af40f..f10e0053 100644 --- a/src/ink/components/Spacer.tsx +++ b/src/ink/components/Spacer.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import Box from './Box.js'; diff --git a/src/ink/components/TerminalFocusContext.tsx b/src/ink/components/TerminalFocusContext.tsx index e017b64a..caba9183 100644 --- a/src/ink/components/TerminalFocusContext.tsx +++ b/src/ink/components/TerminalFocusContext.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { createContext, useMemo, useSyncExternalStore } from 'react'; import { getTerminalFocused, getTerminalFocusState, subscribeTerminalFocus, type TerminalFocusState } from '../terminal-focus-state.js'; export type { TerminalFocusState }; diff --git a/src/ink/components/Text.tsx b/src/ink/components/Text.tsx index b53d8345..98f03b50 100644 --- a/src/ink/components/Text.tsx +++ b/src/ink/components/Text.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import type { ReactNode } from 'react'; import React from 'react'; import type { Color, Styles, TextStyles } from '../styles.js'; diff --git a/src/ink/events/dispatcher.ts b/src/ink/events/dispatcher.ts index a310d389..8eefb9d8 100644 --- a/src/ink/events/dispatcher.ts +++ b/src/ink/events/dispatcher.ts @@ -2,7 +2,6 @@ import { ContinuousEventPriority, DefaultEventPriority, DiscreteEventPriority, - NoEventPriority, } from 'react-reconciler/constants.js' import { logError } from '../../utils/log.js' import { HANDLER_FOR_EVENT } from './event-handlers.js' @@ -10,6 +9,8 @@ import type { EventTarget, TerminalEvent } from './terminal-event.js' // -- +const NO_EVENT_PRIORITY = 0 + type DispatchListener = { node: EventTarget handler: (event: TerminalEvent) => void @@ -160,7 +161,7 @@ type DiscreteUpdates = ( */ export class Dispatcher { currentEvent: TerminalEvent | null = null - currentUpdatePriority: number = DefaultEventPriority as number + currentUpdatePriority: number = NO_EVENT_PRIORITY discreteUpdates: DiscreteUpdates | null = null /** @@ -169,7 +170,7 @@ export class Dispatcher { * when no explicit priority has been set. */ resolveEventPriority(): number { - if (this.currentUpdatePriority !== (NoEventPriority as number)) { + if (this.currentUpdatePriority !== NO_EVENT_PRIORITY) { return this.currentUpdatePriority } if (this.currentEvent) { diff --git a/src/keybindings/KeybindingContext.tsx b/src/keybindings/KeybindingContext.tsx index 8ea317d9..20b99966 100644 --- a/src/keybindings/KeybindingContext.tsx +++ b/src/keybindings/KeybindingContext.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { createContext, type RefObject, useContext, useLayoutEffect, useMemo } from 'react'; import type { Key } from '../ink.js'; import { type ChordResolveResult, getBindingDisplayText, resolveKeyWithChordState } from './resolver.js'; diff --git a/src/keybindings/KeybindingProviderSetup.tsx b/src/keybindings/KeybindingProviderSetup.tsx index 84817eac..92cbf4b6 100644 --- a/src/keybindings/KeybindingProviderSetup.tsx +++ b/src/keybindings/KeybindingProviderSetup.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; /** * Setup utilities for integrating KeybindingProvider into the app. * diff --git a/src/screens/Doctor.tsx b/src/screens/Doctor.tsx index be320ccb..bd1d26b2 100644 --- a/src/screens/Doctor.tsx +++ b/src/screens/Doctor.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import { join } from 'path'; import React, { Suspense, use, useCallback, useEffect, useMemo, useState } from 'react'; diff --git a/src/screens/REPL.tsx b/src/screens/REPL.tsx index b23e4be4..b1b8096d 100644 --- a/src/screens/REPL.tsx +++ b/src/screens/REPL.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; // biome-ignore-all assist/source/organizeImports: ANT-ONLY import markers must not be reordered import { feature } from 'bun:bundle'; import { spawnSync } from 'child_process'; diff --git a/src/screens/ResumeConversation.tsx b/src/screens/ResumeConversation.tsx index f97fa946..38e01bb9 100644 --- a/src/screens/ResumeConversation.tsx +++ b/src/screens/ResumeConversation.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { feature } from 'bun:bundle'; import { dirname } from 'path'; import React from 'react'; diff --git a/src/services/mcp/MCPConnectionManager.tsx b/src/services/mcp/MCPConnectionManager.tsx index a8d1dcba..bee9abdd 100644 --- a/src/services/mcp/MCPConnectionManager.tsx +++ b/src/services/mcp/MCPConnectionManager.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { createContext, type ReactNode, useContext, useMemo } from 'react'; import type { Command } from '../../commands.js'; import type { Tool } from '../../Tool.js'; diff --git a/src/skills/bundled/verify.ts b/src/skills/bundled/verify.ts index b619f966..f95dd198 100644 --- a/src/skills/bundled/verify.ts +++ b/src/skills/bundled/verify.ts @@ -1,26 +1,44 @@ import { parseFrontmatter } from '../../utils/frontmatterParser.js' import { registerBundledSkill } from '../bundledSkills.js' -import { SKILL_FILES, SKILL_MD } from './verifyContent.js' -const { frontmatter, content: SKILL_BODY } = parseFrontmatter(SKILL_MD) - -const DESCRIPTION = - typeof frontmatter.description === 'string' - ? frontmatter.description - : 'Verify a code change does what it should by running the app.' +function loadVerifyContent(): { skillMd: string; skillFiles: Record } { + try { + /* eslint-disable @typescript-eslint/no-require-imports */ + const { SKILL_FILES, SKILL_MD } = require('./verifyContent.js') as { + SKILL_FILES: Record + SKILL_MD: string + } + /* eslint-enable @typescript-eslint/no-require-imports */ + return { skillMd: SKILL_MD, skillFiles: SKILL_FILES } + } catch { + return { + skillMd: + '# Verify\n\nVerify a code change does what it should by running the app.', + skillFiles: {}, + } + } +} export function registerVerifySkill(): void { if (process.env.USER_TYPE !== 'ant') { return } + const { skillMd, skillFiles } = loadVerifyContent() + const { frontmatter, content: skillBody } = parseFrontmatter(skillMd) + + const description = + typeof frontmatter.description === 'string' + ? frontmatter.description + : 'Verify a code change does what it should by running the app.' + registerBundledSkill({ name: 'verify', - description: DESCRIPTION, + description, userInvocable: true, - files: SKILL_FILES, + files: skillFiles, async getPromptForCommand(args) { - const parts: string[] = [SKILL_BODY.trimStart()] + const parts: string[] = [skillBody.trimStart()] if (args) { parts.push(`## User Request\n\n${args}`) } diff --git a/src/state/AppState.tsx b/src/state/AppState.tsx index bf655259..a5e3a179 100644 --- a/src/state/AppState.tsx +++ b/src/state/AppState.tsx @@ -1,7 +1,8 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { feature } from 'bun:bundle'; -import React, { useContext, useEffect, useEffectEvent, useState, useSyncExternalStore } from 'react'; +import React, { useContext, useEffect, useState, useSyncExternalStore } from 'react'; import { MailboxProvider } from '../context/mailbox.js'; +import { useEffectEventCompat } from '../hooks/useEffectEventCompat.js'; import { useSettingsChange } from '../hooks/useSettingsChange.js'; import { logForDebugging } from '../utils/debug.js'; import { createDisabledBypassPermissionsContext, isBypassPermissionsModeDisabled } from '../utils/permissions/permissionSetup.js'; @@ -87,7 +88,7 @@ export function AppStateProvider(t0) { } else { t4 = $[7]; } - const onSettingsChange = useEffectEvent(t4); + const onSettingsChange = useEffectEventCompat(t4); useSettingsChange(onSettingsChange); let t5; if ($[8] !== children) { diff --git a/src/tools/AgentTool/UI.tsx b/src/tools/AgentTool/UI.tsx index 497805a9..7ebb7aad 100644 --- a/src/tools/AgentTool/UI.tsx +++ b/src/tools/AgentTool/UI.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import type { ToolResultBlockParam, ToolUseBlockParam } from '@anthropic-ai/sdk/resources/index.mjs'; import * as React from 'react'; import { ConfigurableShortcutHint } from 'src/components/ConfigurableShortcutHint.js'; diff --git a/src/tools/AskUserQuestionTool/AskUserQuestionTool.tsx b/src/tools/AskUserQuestionTool/AskUserQuestionTool.tsx index 7e812910..1633e9df 100644 --- a/src/tools/AskUserQuestionTool/AskUserQuestionTool.tsx +++ b/src/tools/AskUserQuestionTool/AskUserQuestionTool.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { feature } from 'bun:bundle'; import * as React from 'react'; import { getAllowedChannels, getQuestionPreviewFormat } from 'src/bootstrap/state.js'; diff --git a/src/tools/BashTool/BashToolResultMessage.tsx b/src/tools/BashTool/BashToolResultMessage.tsx index 93b88bba..e1517622 100644 --- a/src/tools/BashTool/BashToolResultMessage.tsx +++ b/src/tools/BashTool/BashToolResultMessage.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { removeSandboxViolationTags } from 'src/utils/sandbox/sandbox-ui-utils.js'; import { KeyboardShortcutHint } from '../../components/design-system/KeyboardShortcutHint.js'; diff --git a/src/tools/BashTool/UI.tsx b/src/tools/BashTool/UI.tsx index 7287b6b9..2b315545 100644 --- a/src/tools/BashTool/UI.tsx +++ b/src/tools/BashTool/UI.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import type { ToolResultBlockParam } from '@anthropic-ai/sdk/resources/index.mjs'; import * as React from 'react'; import { KeyboardShortcutHint } from '../../components/design-system/KeyboardShortcutHint.js'; diff --git a/src/tools/BriefTool/UI.tsx b/src/tools/BriefTool/UI.tsx index 7b9f444f..b19e2187 100644 --- a/src/tools/BriefTool/UI.tsx +++ b/src/tools/BriefTool/UI.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import React from 'react'; import { Markdown } from '../../components/Markdown.js'; diff --git a/src/tools/FileEditTool/UI.tsx b/src/tools/FileEditTool/UI.tsx index c4069822..78ad5f02 100644 --- a/src/tools/FileEditTool/UI.tsx +++ b/src/tools/FileEditTool/UI.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import type { ToolResultBlockParam } from '@anthropic-ai/sdk/resources/index.mjs'; import type { StructuredPatchHunk } from 'diff'; import * as React from 'react'; diff --git a/src/tools/FileWriteTool/UI.tsx b/src/tools/FileWriteTool/UI.tsx index 096f6f1d..3995614e 100644 --- a/src/tools/FileWriteTool/UI.tsx +++ b/src/tools/FileWriteTool/UI.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import type { ToolResultBlockParam } from '@anthropic-ai/sdk/resources/index.mjs'; import type { StructuredPatchHunk } from 'diff'; import { isAbsolute, relative, resolve } from 'path'; diff --git a/src/tools/GrepTool/UI.tsx b/src/tools/GrepTool/UI.tsx index 8be2b5fb..2194094f 100644 --- a/src/tools/GrepTool/UI.tsx +++ b/src/tools/GrepTool/UI.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import type { ToolResultBlockParam } from '@anthropic-ai/sdk/resources/index.mjs'; import React from 'react'; import { CtrlOToExpand } from '../../components/CtrlOToExpand.js'; diff --git a/src/tools/LSPTool/UI.tsx b/src/tools/LSPTool/UI.tsx index e3d2a910..c2864506 100644 --- a/src/tools/LSPTool/UI.tsx +++ b/src/tools/LSPTool/UI.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import type { ToolResultBlockParam } from '@anthropic-ai/sdk/resources/index.mjs'; import React from 'react'; import { CtrlOToExpand } from '../../components/CtrlOToExpand.js'; diff --git a/src/tools/MCPTool/UI.tsx b/src/tools/MCPTool/UI.tsx index bc33ffed..ebc555b4 100644 --- a/src/tools/MCPTool/UI.tsx +++ b/src/tools/MCPTool/UI.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import { feature } from 'bun:bundle'; import figures from 'figures'; import * as React from 'react'; diff --git a/src/tools/TaskOutputTool/TaskOutputTool.tsx b/src/tools/TaskOutputTool/TaskOutputTool.tsx index ee99832f..25379400 100644 --- a/src/tools/TaskOutputTool/TaskOutputTool.tsx +++ b/src/tools/TaskOutputTool/TaskOutputTool.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React from 'react'; import { z } from 'zod/v4'; import { FallbackToolUseErrorMessage } from '../../components/FallbackToolUseErrorMessage.js'; diff --git a/src/utils/autoRunIssue.tsx b/src/utils/autoRunIssue.tsx index 6627f686..627396a2 100644 --- a/src/utils/autoRunIssue.tsx +++ b/src/utils/autoRunIssue.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { useEffect, useRef } from 'react'; import { KeyboardShortcutHint } from '../components/design-system/KeyboardShortcutHint.js'; diff --git a/src/utils/preflightChecks.tsx b/src/utils/preflightChecks.tsx index ca0fe4c1..5417e113 100644 --- a/src/utils/preflightChecks.tsx +++ b/src/utils/preflightChecks.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import axios from 'axios'; import React, { useEffect, useState } from 'react'; import { logEvent } from 'src/services/analytics/index.js'; diff --git a/src/utils/staticRender.tsx b/src/utils/staticRender.tsx index 6a6917b1..315237e3 100644 --- a/src/utils/staticRender.tsx +++ b/src/utils/staticRender.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import * as React from 'react'; import { useLayoutEffect } from 'react'; import { PassThrough } from 'stream'; diff --git a/src/utils/swarm/It2SetupPrompt.tsx b/src/utils/swarm/It2SetupPrompt.tsx index 07478c79..ed0984ce 100644 --- a/src/utils/swarm/It2SetupPrompt.tsx +++ b/src/utils/swarm/It2SetupPrompt.tsx @@ -1,4 +1,4 @@ -import { c as _c } from "react/compiler-runtime"; +import { c as _c } from "react-compiler-runtime"; import React, { useCallback, useEffect, useState } from 'react'; import { type OptionWithDescription, Select } from '../../components/CustomSelect/index.js'; import { Pane } from '../../components/design-system/Pane.js';