mumucc 0.4.2 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +297 -0
- package/bin/mumucc +3 -8
- package/bun.lock +44 -141
- package/defaults/mcp-servers.json +0 -6
- package/package.json +3 -3
- package/shims/bun-bundle.ts +0 -3
- package/shims/globals.d.ts +15 -0
- package/shims/globals.ts +1 -1
- package/src/QueryEngine.ts +1 -0
- package/src/assistant/gate.ts +4 -1
- package/src/assistant/index.ts +29 -1
- package/src/assistant/sessionDiscovery.ts +10 -1
- package/src/bootstrap/state.ts +6 -1
- package/src/buddy/CompanionSprite.tsx +1 -0
- package/src/buddy/observer.ts +6 -0
- package/src/buddy/useBuddyNotification.tsx +1 -0
- package/src/cli/handlers/util.tsx +1 -0
- package/src/cli/print.ts +4 -1
- package/src/cli/structuredIO.ts +6 -1
- package/src/commands/add-dir/add-dir.tsx +1 -0
- package/src/commands/branch/branch.ts +1 -0
- package/src/commands/bridge/bridge.tsx +2 -1
- package/src/commands/btw/btw.tsx +1 -0
- package/src/commands/buddy/index.ts +2 -1
- package/src/commands/chrome/chrome.tsx +1 -0
- package/src/commands/clear/caches.ts +1 -0
- package/src/commands/compact/compact.ts +1 -0
- package/src/commands/context/context-noninteractive.ts +1 -0
- package/src/commands/context/context.tsx +1 -0
- package/src/commands/copy/copy.tsx +2 -1
- package/src/commands/effort/effort.tsx +1 -0
- package/src/commands/extra-usage/extra-usage.tsx +1 -0
- package/src/commands/fast/fast.tsx +1 -0
- package/src/commands/fork/index.ts +2 -1
- package/src/commands/ide/ide.tsx +2 -1
- package/src/commands/insights.ts +1 -0
- package/src/commands/install-github-app/ApiKeyStep.tsx +1 -0
- package/src/commands/install-github-app/CheckExistingSecretStep.tsx +1 -0
- package/src/commands/install-github-app/ChooseRepoStep.tsx +1 -0
- package/src/commands/install-github-app/CreatingStep.tsx +1 -0
- package/src/commands/install-github-app/ErrorStep.tsx +1 -0
- package/src/commands/install-github-app/ExistingWorkflowStep.tsx +1 -0
- package/src/commands/install-github-app/InstallAppStep.tsx +1 -0
- package/src/commands/install-github-app/OAuthFlowStep.tsx +1 -0
- package/src/commands/install-github-app/SuccessStep.tsx +1 -0
- package/src/commands/install-github-app/WarningsStep.tsx +1 -0
- package/src/commands/install-github-app/install-github-app.tsx +2 -1
- package/src/commands/install.tsx +1 -0
- package/src/commands/login/CodexLogin.tsx +39 -12
- package/src/commands/login/CustomProviderLogin.tsx +45 -9
- package/src/commands/login/ThirdPartyLogin.tsx +24 -6
- package/src/commands/login/login.tsx +37 -10
- package/src/commands/login/profileDefaults.ts +25 -0
- package/src/commands/mcp/mcp.tsx +1 -0
- package/src/commands/mobile/mobile.tsx +1 -0
- package/src/commands/model/model.tsx +14 -3
- package/src/commands/peers/index.ts +2 -1
- package/src/commands/permissions/permissions.tsx +1 -0
- package/src/commands/plan/plan.tsx +1 -0
- package/src/commands/plugin/DiscoverPlugins.tsx +1 -0
- package/src/commands/plugin/ManageMarketplaces.tsx +1 -0
- package/src/commands/plugin/ManagePlugins.tsx +1 -0
- package/src/commands/plugin/PluginOptionsDialog.tsx +1 -0
- package/src/commands/plugin/PluginSettings.tsx +2 -1
- package/src/commands/plugin/UnifiedInstalledCell.tsx +1 -0
- package/src/commands/plugin/ValidatePlugin.tsx +1 -0
- package/src/commands/plugin/pluginDetailsHelpers.tsx +1 -0
- package/src/commands/rate-limit-options/rate-limit-options.tsx +1 -0
- package/src/commands/remote-setup/remote-setup.tsx +1 -0
- package/src/commands/resume/resume.tsx +1 -0
- package/src/commands/review/UltrareviewOverageDialog.tsx +1 -0
- package/src/commands/review/ultrareviewCommand.tsx +1 -0
- package/src/commands/session/session.tsx +1 -0
- package/src/commands/tag/tag.tsx +1 -0
- package/src/commands/terminalSetup/terminalSetup.tsx +1 -0
- package/src/commands/theme/theme.tsx +1 -0
- package/src/commands/thinkback/thinkback.tsx +2 -1
- package/src/commands/ultraplan.tsx +11 -1
- package/src/commands/upgrade/upgrade.tsx +1 -0
- package/src/commands/workflows/index.ts +2 -1
- package/src/components/AgentProgressLine.tsx +1 -0
- package/src/components/App.tsx +1 -0
- package/src/components/ApproveApiKey.tsx +1 -0
- package/src/components/AutoModeOptInDialog.tsx +1 -0
- package/src/components/AutoUpdater.tsx +1 -0
- package/src/components/AutoUpdaterWrapper.tsx +1 -0
- package/src/components/AwsAuthStatusBox.tsx +1 -0
- package/src/components/BaseTextInput.tsx +1 -0
- package/src/components/BashModeProgress.tsx +1 -0
- package/src/components/BridgeDialog.tsx +2 -1
- package/src/components/BypassPermissionsModeDialog.tsx +1 -0
- package/src/components/ChannelDowngradeDialog.tsx +1 -0
- package/src/components/ClaudeInChromeOnboarding.tsx +1 -0
- package/src/components/ClaudeMdExternalIncludesDialog.tsx +1 -0
- package/src/components/ClickableImageRef.tsx +1 -0
- package/src/components/CompactSummary.tsx +1 -0
- package/src/components/ConfigurableShortcutHint.tsx +1 -0
- package/src/components/ConsoleOAuthFlow.tsx +1 -0
- package/src/components/ContextSuggestions.tsx +1 -0
- package/src/components/ContextVisualization.tsx +2 -1
- package/src/components/CoordinatorAgentStatus.tsx +3 -4
- package/src/components/CostThresholdDialog.tsx +1 -0
- package/src/components/CtrlOToExpand.tsx +1 -0
- package/src/components/CustomSelect/SelectMulti.tsx +1 -0
- package/src/components/CustomSelect/select-input-option.tsx +1 -0
- package/src/components/CustomSelect/select-option.tsx +1 -0
- package/src/components/CustomSelect/select.tsx +2 -1
- package/src/components/CustomSelect/use-multi-select-state.ts +1 -0
- package/src/components/DesktopHandoff.tsx +1 -0
- package/src/components/DesktopUpsell/DesktopUpsellStartup.tsx +1 -0
- package/src/components/DevBar.tsx +1 -0
- package/src/components/DevChannelsDialog.tsx +1 -0
- package/src/components/DiagnosticsDisplay.tsx +1 -0
- package/src/components/EffortCallout.tsx +1 -0
- package/src/components/ExitFlow.tsx +1 -0
- package/src/components/FallbackToolUseErrorMessage.tsx +1 -0
- package/src/components/FastIcon.tsx +1 -0
- package/src/components/Feedback.tsx +1 -0
- package/src/components/FeedbackSurvey/FeedbackSurvey.tsx +1 -0
- package/src/components/FeedbackSurvey/FeedbackSurveyView.tsx +1 -0
- package/src/components/FeedbackSurvey/TranscriptSharePrompt.tsx +1 -0
- package/src/components/FeedbackSurvey/useFrustrationDetection.ts +6 -1
- package/src/components/FeedbackSurvey/useMemorySurvey.tsx +1 -0
- package/src/components/FeedbackSurvey/usePostCompactSurvey.tsx +2 -1
- package/src/components/FileEditToolDiff.tsx +1 -0
- package/src/components/FileEditToolUpdatedMessage.tsx +1 -0
- package/src/components/FileEditToolUseRejectedMessage.tsx +1 -0
- package/src/components/FilePathLink.tsx +1 -0
- package/src/components/FullscreenLayout.tsx +1 -0
- package/src/components/GlobalSearchDialog.tsx +2 -1
- package/src/components/HelpV2/Commands.tsx +1 -0
- package/src/components/HelpV2/HelpV2.tsx +1 -0
- package/src/components/HighlightedCode/Fallback.tsx +1 -0
- package/src/components/HighlightedCode.tsx +1 -0
- package/src/components/HistorySearchDialog.tsx +1 -0
- package/src/components/IdeAutoConnectDialog.tsx +1 -0
- package/src/components/IdeOnboardingDialog.tsx +1 -0
- package/src/components/IdeStatusIndicator.tsx +1 -0
- package/src/components/IdleReturnDialog.tsx +1 -0
- package/src/components/InvalidConfigDialog.tsx +1 -0
- package/src/components/InvalidSettingsDialog.tsx +1 -0
- package/src/components/KeybindingWarnings.tsx +1 -0
- package/src/components/LanguagePicker.tsx +1 -0
- package/src/components/LogSelector.tsx +2 -1
- package/src/components/LogoV2/ChannelsNotice.tsx +6 -5
- package/src/components/LogoV2/Clawd.tsx +1 -0
- package/src/components/LogoV2/CondensedLogo.tsx +1 -0
- package/src/components/LogoV2/Feed.tsx +1 -0
- package/src/components/LogoV2/FeedColumn.tsx +1 -0
- package/src/components/LogoV2/LogoV2.tsx +2 -1
- package/src/components/LogoV2/OverageCreditUpsell.tsx +1 -0
- package/src/components/LogoV2/WelcomeV2.tsx +1 -0
- package/src/components/LogoV2/feedConfigs.tsx +1 -0
- package/src/components/MCPServerApprovalDialog.tsx +1 -0
- package/src/components/MCPServerDesktopImportDialog.tsx +1 -0
- package/src/components/MCPServerMultiselectDialog.tsx +1 -0
- package/src/components/ManagedSettingsSecurityDialog/ManagedSettingsSecurityDialog.tsx +1 -0
- package/src/components/Markdown.tsx +1 -0
- package/src/components/MemoryUsageIndicator.tsx +1 -0
- package/src/components/Message.tsx +2 -1
- package/src/components/MessageModel.tsx +1 -0
- package/src/components/MessageResponse.tsx +1 -0
- package/src/components/MessageRow.tsx +1 -0
- package/src/components/MessageSelector.tsx +2 -1
- package/src/components/MessageTimestamp.tsx +1 -0
- package/src/components/Messages.tsx +1 -0
- package/src/components/ModelPicker.tsx +4 -3
- package/src/components/NativeAutoUpdater.tsx +1 -0
- package/src/components/NotebookEditToolUseRejectedMessage.tsx +1 -0
- package/src/components/Onboarding.tsx +1 -0
- package/src/components/OutputStylePicker.tsx +1 -0
- package/src/components/PackageManagerAutoUpdater.tsx +1 -0
- package/src/components/PrBadge.tsx +1 -0
- package/src/components/PromptInput/HistorySearchInput.tsx +1 -0
- package/src/components/PromptInput/Notifications.tsx +1 -0
- package/src/components/PromptInput/PromptInput.tsx +10 -8
- package/src/components/PromptInput/PromptInputFooter.tsx +1 -0
- package/src/components/PromptInput/PromptInputFooterLeftSide.tsx +1 -0
- package/src/components/PromptInput/PromptInputFooterSuggestions.tsx +1 -0
- package/src/components/PromptInput/PromptInputHelpMenu.tsx +1 -0
- package/src/components/PromptInput/PromptInputModeIndicator.tsx +1 -0
- package/src/components/PromptInput/PromptInputStashNotice.tsx +1 -0
- package/src/components/PromptInput/SandboxPromptFooterHint.tsx +1 -0
- package/src/components/PromptInput/ShimmeredInput.tsx +1 -0
- package/src/components/PromptInput/VoiceIndicator.tsx +1 -0
- package/src/components/QuickOpenDialog.tsx +2 -1
- package/src/components/RemoteEnvironmentDialog.tsx +2 -1
- package/src/components/ResumeTask.tsx +1 -0
- package/src/components/SandboxViolationExpandedView.tsx +1 -0
- package/src/components/SearchBox.tsx +1 -0
- package/src/components/SessionBackgroundHint.tsx +1 -0
- package/src/components/SessionPreview.tsx +1 -0
- package/src/components/Settings/Config.tsx +1 -0
- package/src/components/Settings/Settings.tsx +1 -0
- package/src/components/Settings/Status.tsx +2 -1
- package/src/components/Settings/Usage.tsx +1 -0
- package/src/components/ShowInIDEPrompt.tsx +1 -0
- package/src/components/SkillImprovementSurvey.tsx +1 -0
- package/src/components/Spinner/FlashingChar.tsx +1 -0
- package/src/components/Spinner/GlimmerMessage.tsx +1 -0
- package/src/components/Spinner/ShimmerChar.tsx +1 -0
- package/src/components/Spinner/SpinnerAnimationRow.tsx +1 -0
- package/src/components/Spinner/SpinnerGlyph.tsx +1 -0
- package/src/components/Spinner/TeammateSpinnerTree.tsx +1 -0
- package/src/components/Spinner/utils.ts +1 -0
- package/src/components/Spinner.tsx +2 -1
- package/src/components/Stats.tsx +2 -1
- package/src/components/StatusNotices.tsx +1 -0
- package/src/components/StructuredDiff/Fallback.tsx +1 -0
- package/src/components/StructuredDiff.tsx +2 -1
- package/src/components/StructuredDiffList.tsx +1 -0
- package/src/components/TaskListV2.tsx +1 -0
- package/src/components/TeammateViewHeader.tsx +1 -0
- package/src/components/TeleportError.tsx +1 -0
- package/src/components/TeleportProgress.tsx +1 -0
- package/src/components/TeleportRepoMismatchDialog.tsx +1 -0
- package/src/components/TeleportResumeWrapper.tsx +1 -0
- package/src/components/TextInput.tsx +1 -0
- package/src/components/ThemePicker.tsx +1 -0
- package/src/components/ThinkingToggle.tsx +1 -0
- package/src/components/TokenWarning.tsx +1 -0
- package/src/components/ToolUseLoader.tsx +1 -0
- package/src/components/TrustDialog/TrustDialog.tsx +1 -0
- package/src/components/ValidationErrorsList.tsx +1 -0
- package/src/components/VimTextInput.tsx +1 -0
- package/src/components/VirtualMessageList.tsx +1 -0
- package/src/components/WorkflowMultiselectDialog.tsx +1 -0
- package/src/components/agents/AgentDetail.tsx +1 -0
- package/src/components/agents/AgentEditor.tsx +1 -0
- package/src/components/agents/AgentNavigationFooter.tsx +1 -0
- package/src/components/agents/AgentsList.tsx +2 -1
- package/src/components/agents/AgentsMenu.tsx +2 -1
- package/src/components/agents/ColorPicker.tsx +1 -0
- package/src/components/agents/ModelSelector.tsx +1 -0
- package/src/components/agents/ToolSelector.tsx +2 -1
- package/src/components/agents/generateAgent.ts +1 -0
- package/src/components/agents/new-agent-creation/CreateAgentWizard.tsx +1 -0
- package/src/components/agents/new-agent-creation/wizard-steps/ColorStep.tsx +1 -0
- package/src/components/agents/new-agent-creation/wizard-steps/ConfirmStep.tsx +1 -0
- package/src/components/agents/new-agent-creation/wizard-steps/DescriptionStep.tsx +1 -0
- package/src/components/agents/new-agent-creation/wizard-steps/LocationStep.tsx +1 -0
- package/src/components/agents/new-agent-creation/wizard-steps/MemoryStep.tsx +1 -0
- package/src/components/agents/new-agent-creation/wizard-steps/MethodStep.tsx +1 -0
- package/src/components/agents/new-agent-creation/wizard-steps/ModelStep.tsx +1 -0
- package/src/components/agents/new-agent-creation/wizard-steps/PromptStep.tsx +1 -0
- package/src/components/agents/new-agent-creation/wizard-steps/ToolsStep.tsx +1 -0
- package/src/components/agents/new-agent-creation/wizard-steps/TypeStep.tsx +1 -0
- package/src/components/design-system/Byline.tsx +1 -0
- package/src/components/design-system/Dialog.tsx +1 -0
- package/src/components/design-system/Divider.tsx +1 -0
- package/src/components/design-system/FuzzyPicker.tsx +1 -0
- package/src/components/design-system/KeyboardShortcutHint.tsx +1 -0
- package/src/components/design-system/ListItem.tsx +1 -0
- package/src/components/design-system/LoadingState.tsx +1 -0
- package/src/components/design-system/Pane.tsx +1 -0
- package/src/components/design-system/ProgressBar.tsx +1 -0
- package/src/components/design-system/Ratchet.tsx +1 -0
- package/src/components/design-system/StatusIcon.tsx +1 -0
- package/src/components/design-system/Tabs.tsx +2 -1
- package/src/components/design-system/ThemeProvider.tsx +1 -0
- package/src/components/design-system/ThemedBox.tsx +1 -0
- package/src/components/design-system/ThemedText.tsx +1 -0
- package/src/components/diff/DiffDetailView.tsx +1 -0
- package/src/components/diff/DiffDialog.tsx +1 -0
- package/src/components/diff/DiffFileList.tsx +1 -0
- package/src/components/grove/Grove.tsx +2 -1
- package/src/components/hooks/HooksConfigMenu.tsx +2 -1
- package/src/components/hooks/PromptDialog.tsx +1 -0
- package/src/components/hooks/SelectEventMode.tsx +1 -0
- package/src/components/hooks/SelectHookMode.tsx +1 -0
- package/src/components/hooks/SelectMatcherMode.tsx +1 -0
- package/src/components/hooks/ViewHookMode.tsx +1 -0
- package/src/components/mcp/CapabilitiesSection.tsx +1 -0
- package/src/components/mcp/ElicitationDialog.tsx +1 -0
- package/src/components/mcp/MCPAgentServerMenu.tsx +1 -0
- package/src/components/mcp/MCPListPanel.tsx +2 -1
- package/src/components/mcp/MCPReconnect.tsx +1 -0
- package/src/components/mcp/MCPRemoteServerMenu.tsx +1 -0
- package/src/components/mcp/MCPSettings.tsx +2 -1
- package/src/components/mcp/MCPStdioServerMenu.tsx +1 -0
- package/src/components/mcp/MCPToolDetailView.tsx +1 -0
- package/src/components/mcp/MCPToolListView.tsx +1 -0
- package/src/components/mcp/McpParsingWarnings.tsx +1 -0
- package/src/components/memory/MemoryFileSelector.tsx +2 -1
- package/src/components/memory/MemoryUpdateNotification.tsx +1 -0
- package/src/components/messageActions.tsx +1 -0
- package/src/components/messages/AdvisorMessage.tsx +1 -0
- package/src/components/messages/AssistantRedactedThinkingMessage.tsx +1 -0
- package/src/components/messages/AssistantTextMessage.tsx +1 -0
- package/src/components/messages/AssistantThinkingMessage.tsx +1 -0
- package/src/components/messages/AssistantToolUseMessage.tsx +1 -0
- package/src/components/messages/AttachmentMessage.tsx +2 -1
- package/src/components/messages/CollapsedReadSearchContent.tsx +2 -1
- package/src/components/messages/GroupedToolUseContent.tsx +1 -0
- package/src/components/messages/HighlightedThinkingText.tsx +1 -0
- package/src/components/messages/HookProgressMessage.tsx +1 -0
- package/src/components/messages/PlanApprovalMessage.tsx +1 -0
- package/src/components/messages/RateLimitMessage.tsx +1 -0
- package/src/components/messages/ShutdownMessage.tsx +1 -0
- package/src/components/messages/SystemAPIErrorMessage.tsx +1 -0
- package/src/components/messages/SystemTextMessage.tsx +2 -1
- package/src/components/messages/TaskAssignmentMessage.tsx +1 -0
- package/src/components/messages/UserAgentNotificationMessage.tsx +1 -0
- package/src/components/messages/UserBashInputMessage.tsx +1 -0
- package/src/components/messages/UserBashOutputMessage.tsx +1 -0
- package/src/components/messages/UserChannelMessage.tsx +1 -0
- package/src/components/messages/UserCommandMessage.tsx +1 -0
- package/src/components/messages/UserImageMessage.tsx +1 -0
- package/src/components/messages/UserLocalCommandOutputMessage.tsx +1 -0
- package/src/components/messages/UserMemoryInputMessage.tsx +1 -0
- package/src/components/messages/UserPlanMessage.tsx +1 -0
- package/src/components/messages/UserResourceUpdateMessage.tsx +1 -0
- package/src/components/messages/UserTeammateMessage.tsx +1 -0
- package/src/components/messages/UserTextMessage.tsx +1 -0
- package/src/components/messages/UserToolResultMessage/RejectedPlanMessage.tsx +1 -0
- package/src/components/messages/UserToolResultMessage/UserToolErrorMessage.tsx +1 -0
- package/src/components/messages/UserToolResultMessage/UserToolRejectMessage.tsx +1 -0
- package/src/components/messages/UserToolResultMessage/UserToolResultMessage.tsx +1 -0
- package/src/components/messages/UserToolResultMessage/utils.tsx +1 -0
- package/src/components/messages/nullRenderingAttachments.ts +1 -0
- package/src/components/messages/teamMemCollapsed.tsx +1 -0
- package/src/components/permissions/AskUserQuestionPermissionRequest/AskUserQuestionPermissionRequest.tsx +2 -1
- package/src/components/permissions/AskUserQuestionPermissionRequest/PreviewBox.tsx +1 -0
- package/src/components/permissions/AskUserQuestionPermissionRequest/QuestionNavigationBar.tsx +2 -1
- package/src/components/permissions/AskUserQuestionPermissionRequest/QuestionView.tsx +2 -1
- package/src/components/permissions/AskUserQuestionPermissionRequest/SubmitQuestionsView.tsx +1 -0
- package/src/components/permissions/BashPermissionRequest/BashPermissionRequest.tsx +1 -0
- package/src/components/permissions/BashPermissionRequest/bashToolUseOptions.tsx +1 -0
- package/src/components/permissions/ComputerUseApproval/ComputerUseApproval.tsx +2 -1
- package/src/components/permissions/EnterPlanModePermissionRequest/EnterPlanModePermissionRequest.tsx +1 -0
- package/src/components/permissions/ExitPlanModePermissionRequest/ExitPlanModePermissionRequest.tsx +1 -0
- package/src/components/permissions/FallbackPermissionRequest.tsx +1 -0
- package/src/components/permissions/FileEditPermissionRequest/FileEditPermissionRequest.tsx +1 -0
- package/src/components/permissions/FilePermissionDialog/FilePermissionDialog.tsx +1 -0
- package/src/components/permissions/FileWritePermissionRequest/FileWritePermissionRequest.tsx +1 -0
- package/src/components/permissions/FileWritePermissionRequest/FileWriteToolDiff.tsx +1 -0
- package/src/components/permissions/FilesystemPermissionRequest/FilesystemPermissionRequest.tsx +1 -0
- package/src/components/permissions/NotebookEditPermissionRequest/NotebookEditPermissionRequest.tsx +1 -0
- package/src/components/permissions/NotebookEditPermissionRequest/NotebookEditToolDiff.tsx +2 -1
- package/src/components/permissions/PermissionDecisionDebugInfo.tsx +2 -1
- package/src/components/permissions/PermissionDialog.tsx +1 -0
- package/src/components/permissions/PermissionExplanation.tsx +2 -1
- package/src/components/permissions/PermissionPrompt.tsx +2 -1
- package/src/components/permissions/PermissionRequest.tsx +1 -0
- package/src/components/permissions/PermissionRequestTitle.tsx +1 -0
- package/src/components/permissions/PermissionRuleExplanation.tsx +1 -0
- package/src/components/permissions/SandboxPermissionRequest.tsx +1 -0
- package/src/components/permissions/SedEditPermissionRequest/SedEditPermissionRequest.tsx +1 -0
- package/src/components/permissions/SkillPermissionRequest/SkillPermissionRequest.tsx +1 -0
- package/src/components/permissions/WebFetchPermissionRequest/WebFetchPermissionRequest.tsx +1 -0
- package/src/components/permissions/WorkerBadge.tsx +1 -0
- package/src/components/permissions/WorkerPendingPermission.tsx +1 -0
- package/src/components/permissions/rules/AddPermissionRules.tsx +1 -0
- package/src/components/permissions/rules/AddWorkspaceDirectory.tsx +2 -1
- package/src/components/permissions/rules/PermissionRuleDescription.tsx +1 -0
- package/src/components/permissions/rules/PermissionRuleInput.tsx +1 -0
- package/src/components/permissions/rules/PermissionRuleList.tsx +2 -1
- package/src/components/permissions/rules/RecentDenialsTab.tsx +1 -0
- package/src/components/permissions/rules/RemoveWorkspaceDirectory.tsx +1 -0
- package/src/components/permissions/rules/WorkspaceTab.tsx +1 -0
- package/src/components/sandbox/SandboxConfigTab.tsx +1 -0
- package/src/components/sandbox/SandboxDependenciesTab.tsx +1 -0
- package/src/components/sandbox/SandboxDoctorSection.tsx +1 -0
- package/src/components/sandbox/SandboxOverridesTab.tsx +1 -0
- package/src/components/sandbox/SandboxSettings.tsx +1 -0
- package/src/components/shell/ExpandShellOutputContext.tsx +1 -0
- package/src/components/shell/OutputLine.tsx +1 -0
- package/src/components/shell/ShellProgressMessage.tsx +1 -0
- package/src/components/shell/ShellTimeDisplay.tsx +1 -0
- package/src/components/skills/SkillsMenu.tsx +1 -0
- package/src/components/tasks/AsyncAgentDetailDialog.tsx +1 -0
- package/src/components/tasks/BackgroundTask.tsx +1 -0
- package/src/components/tasks/BackgroundTaskStatus.tsx +2 -1
- package/src/components/tasks/BackgroundTasksDialog.tsx +2 -1
- package/src/components/tasks/DreamDetailDialog.tsx +1 -0
- package/src/components/tasks/InProcessTeammateDetailDialog.tsx +1 -0
- package/src/components/tasks/RemoteSessionDetailDialog.tsx +2 -1
- package/src/components/tasks/RemoteSessionProgress.tsx +1 -0
- package/src/components/tasks/ShellDetailDialog.tsx +2 -1
- package/src/components/tasks/ShellProgress.tsx +1 -0
- package/src/components/tasks/taskStatusUtils.tsx +1 -0
- package/src/components/teams/TeamStatus.tsx +1 -0
- package/src/components/teams/TeamsDialog.tsx +2 -1
- package/src/components/ui/OrderedList.tsx +1 -0
- package/src/components/ui/OrderedListItem.tsx +1 -0
- package/src/components/ui/TreeSelect.tsx +2 -1
- package/src/components/wizard/WizardDialogLayout.tsx +1 -0
- package/src/components/wizard/WizardProvider.tsx +2 -1
- package/src/components/wizard/useWizard.ts +1 -0
- package/src/constants/betas.ts +1 -0
- package/src/constants/prompts.ts +1 -0
- package/src/context/QueuedMessageContext.tsx +1 -0
- package/src/context/fpsMetrics.tsx +1 -0
- package/src/context/mailbox.tsx +1 -0
- package/src/context/modalContext.tsx +1 -0
- package/src/context/overlayContext.tsx +1 -0
- package/src/context/promptOverlayContext.tsx +1 -0
- package/src/context/stats.tsx +1 -0
- package/src/context/voice.tsx +1 -0
- package/src/cost-tracker.ts +1 -0
- package/src/dialogLaunchers.tsx +1 -0
- package/src/entrypoints/agentSdkTypes.ts +4 -17
- package/src/entrypoints/cli.tsx +1 -0
- package/src/entrypoints/sdk/controlTypes.ts +86 -10
- package/src/entrypoints/sdk/coreTypes.generated.ts +99 -2
- package/src/entrypoints/sdk/runtimeTypes.ts +53 -18
- package/src/entrypoints/sdk/settingsTypes.generated.ts +2 -1
- package/src/hooks/notifs/useAntOrgWarningNotification.ts +1 -1
- package/src/hooks/notifs/useCanSwitchToExistingSubscription.tsx +1 -0
- package/src/hooks/notifs/useDeprecationWarningNotification.tsx +1 -0
- package/src/hooks/notifs/useFastModeNotification.tsx +1 -0
- package/src/hooks/notifs/useIDEStatusIndicator.tsx +1 -0
- package/src/hooks/notifs/useInstallMessages.tsx +1 -0
- package/src/hooks/notifs/useLspInitializationNotification.tsx +1 -0
- package/src/hooks/notifs/useMcpConnectivityStatus.tsx +1 -0
- package/src/hooks/notifs/useNpmDeprecationNotification.tsx +1 -0
- package/src/hooks/notifs/usePluginAutoupdateNotification.tsx +1 -0
- package/src/hooks/notifs/usePluginInstallationStatus.tsx +1 -0
- package/src/hooks/notifs/useRateLimitWarningNotification.tsx +1 -0
- package/src/hooks/useCanUseTool.tsx +2 -1
- package/src/hooks/useChromeExtensionNotification.tsx +1 -0
- package/src/hooks/useClaudeCodeHintRecommendation.tsx +1 -0
- package/src/hooks/useCommandKeybindings.tsx +1 -0
- package/src/hooks/useDiffData.ts +1 -0
- package/src/hooks/useIDEIntegration.tsx +1 -0
- package/src/hooks/useLspPluginRecommendation.tsx +1 -0
- package/src/hooks/useOfficialMarketplaceNotification.tsx +1 -0
- package/src/hooks/usePluginRecommendationBase.tsx +1 -0
- package/src/hooks/usePromptsFromClaudeInChrome.tsx +1 -0
- package/src/hooks/useRemoteSession.ts +1 -0
- package/src/hooks/useReplBridge.tsx +1 -0
- package/src/hooks/useSSHSession.ts +1 -0
- package/src/hooks/useTeleportResume.tsx +1 -0
- package/src/hooks/useTurnDiffs.ts +1 -0
- package/src/hooks/useTypeahead.tsx +1 -0
- package/src/hooks/useVoiceIntegration.tsx +1 -0
- package/src/ink/Ansi.tsx +1 -0
- package/src/ink/bidi.ts +1 -0
- package/src/ink/components/AlternateScreen.tsx +1 -0
- package/src/ink/components/Box.tsx +1 -0
- package/src/ink/components/Button.tsx +1 -0
- package/src/ink/components/ClockContext.tsx +1 -0
- package/src/ink/components/Link.tsx +1 -0
- package/src/ink/components/Newline.tsx +1 -0
- package/src/ink/components/NoSelect.tsx +1 -0
- package/src/ink/components/RawAnsi.tsx +1 -0
- package/src/ink/components/ScrollBox.tsx +1 -0
- package/src/ink/components/TerminalFocusContext.tsx +1 -0
- package/src/ink/components/Text.tsx +1 -0
- package/src/ink/ink.tsx +1 -0
- package/src/ink/reconciler.ts +1 -0
- package/src/ink/render-to-screen.ts +1 -0
- package/src/interactiveHelpers.tsx +4 -4
- package/src/keybindings/KeybindingContext.tsx +2 -1
- package/src/keybindings/KeybindingProviderSetup.tsx +1 -0
- package/src/keybindings/parser.ts +1 -0
- package/src/keybindings/template.ts +1 -0
- package/src/keybindings/validate.ts +1 -0
- package/src/main.tsx +5 -7
- package/src/memdir/findRelevantMemories.ts +1 -0
- package/src/native-ts/color-diff/index.ts +1 -0
- package/src/proactive/index.ts +26 -1
- package/src/proactive/useProactive.ts +13 -1
- package/src/query/stopHooks.ts +1 -0
- package/src/query.ts +1 -0
- package/src/remote/SessionsWebSocket.ts +1 -0
- package/src/screens/Doctor.tsx +2 -1
- package/src/screens/REPL.tsx +13 -6
- package/src/screens/ResumeConversation.tsx +1 -0
- package/src/services/AgentSummary/agentSummary.ts +1 -0
- package/src/services/PromptSuggestion/promptSuggestion.ts +1 -0
- package/src/services/api/claude.ts +33 -31
- package/src/services/api/client.ts +34 -31
- package/src/services/api/errors.ts +1 -0
- package/src/services/api/logging.ts +1 -0
- package/src/services/api/openaiShim.ts +35 -8
- package/src/services/api/withRetry.ts +1 -0
- package/src/services/autoDream/autoDream.ts +1 -0
- package/src/services/claudeAiLimits.ts +1 -0
- package/src/services/compact/autoCompact.ts +1 -0
- package/src/services/compact/cachedMicrocompact.ts +56 -4
- package/src/services/compact/compact.ts +1 -0
- package/src/services/compact/microCompact.ts +1 -0
- package/src/services/compact/postCompactCleanup.ts +1 -0
- package/src/services/compact/reactiveCompact.ts +16 -1
- package/src/services/compact/sessionMemoryCompact.ts +1 -0
- package/src/services/compact/snipCompact.ts +18 -1
- package/src/services/compact/snipProjection.ts +6 -1
- package/src/services/contextCollapse/index.ts +33 -1
- package/src/services/extractMemories/extractMemories.ts +1 -0
- package/src/services/mcp/MCPConnectionManager.tsx +1 -0
- package/src/services/mcp/channelAllowlist.ts +1 -1
- package/src/services/mcp/channelNotification.ts +90 -4
- package/src/services/mcp/channelPermissions.ts +1 -1
- package/src/services/mcp/client.ts +1 -0
- package/src/services/mcp/useManageMCPConnections.ts +5 -3
- package/src/services/notifier.ts +1 -0
- package/src/services/rateLimitMocking.ts +1 -0
- package/src/services/skillSearch/localSearch.ts +1 -1
- package/src/services/skillSearch/prefetch.ts +10 -1
- package/src/services/tips/tipRegistry.ts +1 -0
- package/src/services/toolUseSummary/toolUseSummaryGenerator.ts +1 -0
- package/src/services/tools/StreamingToolExecutor.ts +1 -0
- package/src/services/tools/toolOrchestration.ts +1 -0
- package/src/services/vcr.ts +1 -0
- package/src/services/voice.ts +1 -0
- package/src/setup.ts +1 -0
- package/src/skills/bundled/claudeInChrome.ts +1 -0
- package/src/skills/bundled/keybindings.ts +1 -0
- package/src/skills/bundled/skillify.ts +1 -0
- package/src/state/AppState.tsx +10 -7
- package/src/tasks/LocalMainSessionTask.ts +1 -0
- package/src/tasks/LocalShellTask/LocalShellTask.tsx +1 -0
- package/src/tasks/LocalShellTask/killShellTasks.ts +1 -0
- package/src/tasks/RemoteAgentTask/RemoteAgentTask.tsx +1 -0
- package/src/tools/AgentTool/AgentTool.tsx +30 -3
- package/src/tools/AgentTool/UI.tsx +2 -1
- package/src/tools/AgentTool/agentToolUtils.ts +1 -0
- package/src/tools/AgentTool/builtInAgents.ts +1 -0
- package/src/tools/AgentTool/forkSubagent.ts +1 -0
- package/src/tools/AgentTool/loadAgentsDir.ts +9 -0
- package/src/tools/AgentTool/runAgent.ts +2 -0
- package/src/tools/AskUserQuestionTool/AskUserQuestionTool.tsx +1 -0
- package/src/tools/BashTool/BashTool.tsx +1 -0
- package/src/tools/BashTool/BashToolResultMessage.tsx +1 -0
- package/src/tools/BashTool/UI.tsx +1 -0
- package/src/tools/BriefTool/UI.tsx +1 -0
- package/src/tools/FileEditTool/UI.tsx +1 -0
- package/src/tools/FileEditTool/utils.ts +1 -0
- package/src/tools/FileReadTool/FileReadTool.ts +1 -0
- package/src/tools/FileReadTool/imageProcessor.ts +1 -0
- package/src/tools/FileWriteTool/UI.tsx +2 -1
- package/src/tools/GrepTool/UI.tsx +1 -0
- package/src/tools/LSPTool/UI.tsx +1 -0
- package/src/tools/MCPTool/UI.tsx +1 -0
- package/src/tools/NotebookEditTool/NotebookEditTool.ts +1 -0
- package/src/tools/NotebookEditTool/UI.tsx +1 -0
- package/src/tools/PowerShellTool/PowerShellTool.tsx +1 -0
- package/src/tools/SendMessageTool/SendMessageTool.ts +1 -0
- package/src/tools/SkillTool/SkillTool.ts +1 -0
- package/src/tools/TaskOutputTool/TaskOutputTool.tsx +1 -0
- package/src/tools/TaskStopTool/UI.tsx +1 -0
- package/src/tools/ToolSearchTool/prompt.ts +1 -0
- package/src/tools/TungstenTool/TungstenLiveMonitor.ts +3 -0
- package/src/tools/WebBrowserTool/WebBrowserPanel.ts +3 -1
- package/src/tools/WebFetchTool/utils.ts +1 -0
- package/src/tools/WebSearchTool/WebSearchTool.ts +1 -0
- package/src/tools/WorkflowTool/createWorkflowCommand.ts +3 -1
- package/src/tools/testing/TestingPermissionTool.tsx +1 -0
- package/src/tools/utils.ts +1 -0
- package/src/types/commands-js.d.ts +13 -0
- package/src/types/diff.d.ts +1 -0
- package/src/types/hooks.ts +1 -0
- package/src/types/macro.d.ts +15 -0
- package/src/types/markdown.d.ts +4 -0
- package/src/types/message.ts +56 -107
- package/src/types/react-compiler-runtime.d.ts +4 -0
- package/src/types/utils.ts +3 -3
- package/src/utils/advisor.ts +1 -0
- package/src/utils/asciicast.ts +1 -0
- package/src/utils/attachments.ts +1 -0
- package/src/utils/attribution.ts +1 -0
- package/src/utils/autoRunIssue.tsx +1 -0
- package/src/utils/claudeInChrome/mcpServer.ts +1 -0
- package/src/utils/claudeInChrome/setup.ts +1 -0
- package/src/utils/claudemd.ts +1 -0
- package/src/utils/cleanup.ts +1 -0
- package/src/utils/cliHighlight.ts +1 -0
- package/src/utils/collapseReadSearch.ts +1 -0
- package/src/utils/computerUse/executor.ts +1 -0
- package/src/utils/computerUse/gates.ts +1 -0
- package/src/utils/computerUse/hostAdapter.ts +1 -0
- package/src/utils/computerUse/inputLoader.ts +1 -0
- package/src/utils/computerUse/mcpServer.ts +1 -0
- package/src/utils/computerUse/setup.ts +1 -0
- package/src/utils/computerUse/swiftLoader.ts +1 -0
- package/src/utils/computerUse/wrapper.tsx +2 -1
- package/src/utils/context.ts +1 -0
- package/src/utils/contextAnalysis.ts +1 -0
- package/src/utils/conversationRecovery.ts +1 -0
- package/src/utils/deepLink/protocolHandler.ts +1 -0
- package/src/utils/diff.ts +1 -0
- package/src/utils/effort.ts +1 -0
- package/src/utils/envUtils.ts +1 -0
- package/src/utils/execFileNoThrowPortable.ts +1 -0
- package/src/utils/fileHistory.ts +1 -0
- package/src/utils/filePersistence/filePersistence.ts +1 -0
- package/src/utils/filePersistence/outputsScanner.ts +1 -0
- package/src/utils/gitDiff.ts +1 -0
- package/src/utils/groupToolUses.ts +1 -0
- package/src/utils/hooks/hooksConfigManager.ts +1 -0
- package/src/utils/hooks/skillImprovement.ts +1 -0
- package/src/utils/hooks.ts +1 -0
- package/src/utils/imagePaste.ts +1 -0
- package/src/utils/log.ts +1 -0
- package/src/utils/logoV2Utils.ts +6 -6
- package/src/utils/messageQueueManager.ts +1 -0
- package/src/utils/messages.ts +122 -100
- package/src/utils/model/agent.ts +43 -2
- package/src/utils/model/configs.ts +1 -1
- package/src/utils/model/deprecation.ts +1 -0
- package/src/utils/model/fetchModels.ts +11 -1
- package/src/utils/model/model.ts +31 -0
- package/src/utils/model/modelCapabilities.ts +1 -0
- package/src/utils/model/modelOptions.ts +68 -14
- package/src/utils/model/modelStrings.ts +1 -0
- package/src/utils/model/platformProfiles.ts +524 -0
- package/src/utils/model/thirdPartyProviders.ts +158 -15
- package/src/utils/modelCost.ts +1 -0
- package/src/utils/notebook.ts +1 -0
- package/src/utils/permissions/classifierDecision.ts +1 -0
- package/src/utils/permissions/pathValidation.ts +1 -0
- package/src/utils/permissions/permissionExplainer.ts +1 -0
- package/src/utils/plugins/loadPluginHooks.ts +1 -0
- package/src/utils/plugins/lspPluginIntegration.ts +1 -0
- package/src/utils/plugins/pluginLoader.ts +1 -0
- package/src/utils/preflightChecks.tsx +2 -1
- package/src/utils/processUserInput/processSlashCommand.tsx +13 -3
- package/src/utils/queryHelpers.ts +1 -0
- package/src/utils/readFileInRange.ts +1 -0
- package/src/utils/sandbox/sandbox-adapter.ts +24 -22
- package/src/utils/sessionFileAccessHooks.ts +1 -0
- package/src/utils/sessionRestore.ts +1 -0
- package/src/utils/sessionStorage.ts +84 -46
- package/src/utils/settings/types.ts +72 -0
- package/src/utils/shell/prefix.ts +1 -0
- package/src/utils/sideQuery.ts +1 -0
- package/src/utils/sliceAnsi.ts +1 -0
- package/src/utils/staticRender.tsx +1 -0
- package/src/utils/stats.ts +1 -0
- package/src/utils/status.tsx +1 -0
- package/src/utils/swarm/It2SetupPrompt.tsx +2 -1
- package/src/utils/swarm/teammateModel.ts +1 -0
- package/src/utils/taskSummary.ts +6 -1
- package/src/utils/textHighlighting.ts +1 -0
- package/src/utils/thinking.ts +1 -0
- package/src/utils/toolResultStorage.ts +1 -0
- package/src/utils/transcriptSearch.ts +1 -0
- package/src/utils/worktree.ts +1 -0
- package/stubs/@anthropic-ai/mcpb/index.d.ts +23 -1
- package/stubs/@anthropic-ai/sandbox-runtime/index.d.ts +39 -1
- package/.gitignore.bak +0 -11
- package/bin/mumuclaw +0 -154
- package/bin/opencc +0 -50
- package/src/channels/heartbeat-channel.mjs +0 -280
|
@@ -2,14 +2,10 @@ import type {
|
|
|
2
2
|
BetaContentBlock,
|
|
3
3
|
BetaContentBlockParam,
|
|
4
4
|
BetaImageBlockParam,
|
|
5
|
-
BetaJSONOutputFormat,
|
|
6
5
|
BetaMessage,
|
|
7
6
|
BetaMessageDeltaUsage,
|
|
8
7
|
BetaMessageStreamParams,
|
|
9
|
-
BetaOutputConfig,
|
|
10
8
|
BetaRawMessageStreamEvent,
|
|
11
|
-
BetaRequestDocumentBlock,
|
|
12
|
-
BetaStopReason,
|
|
13
9
|
BetaToolChoiceAuto,
|
|
14
10
|
BetaToolChoiceTool,
|
|
15
11
|
BetaToolResultBlockParam,
|
|
@@ -101,6 +97,11 @@ import {
|
|
|
101
97
|
} from '../claudeAiLimits.js'
|
|
102
98
|
import { getAPIContextManagement } from '../compact/apiMicrocompact.js'
|
|
103
99
|
|
|
100
|
+
type BetaJSONOutputFormat = any
|
|
101
|
+
type BetaOutputConfig = any
|
|
102
|
+
type BetaRequestDocumentBlock = any
|
|
103
|
+
type BetaStopReason = any
|
|
104
|
+
|
|
104
105
|
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
105
106
|
const autoModeStateModule = feature('TRANSCRIPT_CLASSIFIER')
|
|
106
107
|
? (require('../../utils/permissions/autoModeState.js') as typeof import('../../utils/permissions/autoModeState.js'))
|
|
@@ -618,7 +619,7 @@ export function userMessageToMessageParam(
|
|
|
618
619
|
} else {
|
|
619
620
|
return {
|
|
620
621
|
role: 'user',
|
|
621
|
-
content: message.message.content.map((_, i) => ({
|
|
622
|
+
content: message.message.content.map((_: any, i: number) => ({
|
|
622
623
|
..._,
|
|
623
624
|
...(i === message.message.content.length - 1
|
|
624
625
|
? enablePromptCaching
|
|
@@ -663,7 +664,7 @@ export function assistantMessageToMessageParam(
|
|
|
663
664
|
} else {
|
|
664
665
|
return {
|
|
665
666
|
role: 'assistant',
|
|
666
|
-
content: message.message.content.map((_, i) => ({
|
|
667
|
+
content: message.message.content.map((_: any, i: number) => ({
|
|
667
668
|
..._,
|
|
668
669
|
...(i === message.message.content.length - 1 &&
|
|
669
670
|
_.type !== 'thinking' &&
|
|
@@ -1616,7 +1617,7 @@ async function* queryModel(
|
|
|
1616
1617
|
const hasThinking =
|
|
1617
1618
|
thinkingConfig.type !== 'disabled' &&
|
|
1618
1619
|
!isEnvTruthy(process.env.CLAUDE_CODE_DISABLE_THINKING)
|
|
1619
|
-
let thinking:
|
|
1620
|
+
let thinking: any = undefined
|
|
1620
1621
|
|
|
1621
1622
|
// IMPORTANT: Do not change the adaptive-vs-budget thinking selection below
|
|
1622
1623
|
// without notifying the model launch DRI and research. This is a sensitive
|
|
@@ -1630,7 +1631,7 @@ async function* queryModel(
|
|
|
1630
1631
|
// thinking without a budget.
|
|
1631
1632
|
thinking = {
|
|
1632
1633
|
type: 'adaptive',
|
|
1633
|
-
}
|
|
1634
|
+
} as any
|
|
1634
1635
|
} else {
|
|
1635
1636
|
// For models that do not support adaptive thinking, use the default
|
|
1636
1637
|
// thinking budget unless explicitly specified.
|
|
@@ -1662,7 +1663,7 @@ async function* queryModel(
|
|
|
1662
1663
|
// Fast mode: header is latched session-stable (cache-safe), but
|
|
1663
1664
|
// `speed='fast'` stays dynamic so cooldown still suppresses the actual
|
|
1664
1665
|
// fast-mode request without changing the cache key.
|
|
1665
|
-
let speed:
|
|
1666
|
+
let speed: any
|
|
1666
1667
|
const isFastModeForRetry =
|
|
1667
1668
|
isFastModeEnabled() &&
|
|
1668
1669
|
isFastModeAvailable() &&
|
|
@@ -1723,8 +1724,8 @@ async function* queryModel(
|
|
|
1723
1724
|
enablePromptCaching,
|
|
1724
1725
|
options.querySource,
|
|
1725
1726
|
useCachedMC,
|
|
1726
|
-
consumedCacheEdits,
|
|
1727
|
-
consumedPinnedEdits,
|
|
1727
|
+
consumedCacheEdits as any,
|
|
1728
|
+
consumedPinnedEdits as any,
|
|
1728
1729
|
options.skipCacheWrite,
|
|
1729
1730
|
),
|
|
1730
1731
|
system,
|
|
@@ -2024,7 +2025,7 @@ async function* queryModel(
|
|
|
2024
2025
|
break
|
|
2025
2026
|
}
|
|
2026
2027
|
case 'content_block_start':
|
|
2027
|
-
switch (part.content_block.type) {
|
|
2028
|
+
switch ((part.content_block as any).type) {
|
|
2028
2029
|
case 'tool_use':
|
|
2029
2030
|
contentBlocks[part.index] = {
|
|
2030
2031
|
...part.content_block,
|
|
@@ -2033,10 +2034,10 @@ async function* queryModel(
|
|
|
2033
2034
|
break
|
|
2034
2035
|
case 'server_tool_use':
|
|
2035
2036
|
contentBlocks[part.index] = {
|
|
2036
|
-
...part.content_block,
|
|
2037
|
+
...(part.content_block as any),
|
|
2037
2038
|
input: '' as unknown as { [key: string]: unknown },
|
|
2038
2039
|
}
|
|
2039
|
-
if ((part.content_block.name as string) === 'advisor') {
|
|
2040
|
+
if (((part.content_block as any).name as string) === 'advisor') {
|
|
2040
2041
|
isAdvisorInProgress = true
|
|
2041
2042
|
logForDebugging(`[AdvisorTool] Advisor tool called`)
|
|
2042
2043
|
logEvent('tengu_advisor_tool_call', {
|
|
@@ -2651,7 +2652,8 @@ async function* queryModel(
|
|
|
2651
2652
|
// and CannotRetryError means every retry failed — so grab the failed
|
|
2652
2653
|
// request's ID from the error header instead.
|
|
2653
2654
|
const failedRequestId =
|
|
2654
|
-
(errorFromRetry.originalError as APIError).
|
|
2655
|
+
((errorFromRetry.originalError as APIError).request_id as string) ??
|
|
2656
|
+
'unknown'
|
|
2655
2657
|
logForDebugging(
|
|
2656
2658
|
'Streaming endpoint returned 404, falling back to non-streaming mode',
|
|
2657
2659
|
{ level: 'warn' },
|
|
@@ -2743,7 +2745,7 @@ async function* queryModel(
|
|
|
2743
2745
|
|
|
2744
2746
|
const requestId =
|
|
2745
2747
|
streamRequestId ||
|
|
2746
|
-
(error instanceof APIError ? error.
|
|
2748
|
+
(error instanceof APIError ? error.request_id : undefined) ||
|
|
2747
2749
|
(error instanceof APIError
|
|
2748
2750
|
? (error.error as { request_id?: string })?.request_id
|
|
2749
2751
|
: undefined)
|
|
@@ -2799,7 +2801,7 @@ async function* queryModel(
|
|
|
2799
2801
|
// Extract requestId from stream, error header, or error body
|
|
2800
2802
|
const requestId =
|
|
2801
2803
|
streamRequestId ||
|
|
2802
|
-
(error instanceof APIError ? error.
|
|
2804
|
+
(error instanceof APIError ? error.request_id : undefined) ||
|
|
2803
2805
|
(error instanceof APIError
|
|
2804
2806
|
? (error.error as { request_id?: string })?.request_id
|
|
2805
2807
|
: undefined)
|
|
@@ -2961,36 +2963,36 @@ export function updateUsage(
|
|
|
2961
2963
|
}
|
|
2962
2964
|
return {
|
|
2963
2965
|
input_tokens:
|
|
2964
|
-
partUsage.input_tokens !== null && partUsage.input_tokens > 0
|
|
2965
|
-
? partUsage.input_tokens
|
|
2966
|
+
(partUsage as any).input_tokens !== null && (partUsage as any).input_tokens > 0
|
|
2967
|
+
? (partUsage as any).input_tokens
|
|
2966
2968
|
: usage.input_tokens,
|
|
2967
2969
|
cache_creation_input_tokens:
|
|
2968
|
-
partUsage.cache_creation_input_tokens !== null &&
|
|
2969
|
-
partUsage.cache_creation_input_tokens > 0
|
|
2970
|
-
? partUsage.cache_creation_input_tokens
|
|
2970
|
+
(partUsage as any).cache_creation_input_tokens !== null &&
|
|
2971
|
+
(partUsage as any).cache_creation_input_tokens > 0
|
|
2972
|
+
? (partUsage as any).cache_creation_input_tokens
|
|
2971
2973
|
: usage.cache_creation_input_tokens,
|
|
2972
2974
|
cache_read_input_tokens:
|
|
2973
|
-
partUsage.cache_read_input_tokens !== null &&
|
|
2974
|
-
partUsage.cache_read_input_tokens > 0
|
|
2975
|
-
? partUsage.cache_read_input_tokens
|
|
2975
|
+
(partUsage as any).cache_read_input_tokens !== null &&
|
|
2976
|
+
(partUsage as any).cache_read_input_tokens > 0
|
|
2977
|
+
? (partUsage as any).cache_read_input_tokens
|
|
2976
2978
|
: usage.cache_read_input_tokens,
|
|
2977
2979
|
output_tokens: partUsage.output_tokens ?? usage.output_tokens,
|
|
2978
2980
|
server_tool_use: {
|
|
2979
2981
|
web_search_requests:
|
|
2980
|
-
partUsage.server_tool_use?.web_search_requests ??
|
|
2982
|
+
(partUsage as any).server_tool_use?.web_search_requests ??
|
|
2981
2983
|
usage.server_tool_use.web_search_requests,
|
|
2982
2984
|
web_fetch_requests:
|
|
2983
|
-
partUsage.server_tool_use?.web_fetch_requests ??
|
|
2985
|
+
(partUsage as any).server_tool_use?.web_fetch_requests ??
|
|
2984
2986
|
usage.server_tool_use.web_fetch_requests,
|
|
2985
2987
|
},
|
|
2986
2988
|
service_tier: usage.service_tier,
|
|
2987
2989
|
cache_creation: {
|
|
2988
2990
|
// SDK type BetaMessageDeltaUsage is missing cache_creation, but it's real!
|
|
2989
2991
|
ephemeral_1h_input_tokens:
|
|
2990
|
-
(partUsage as
|
|
2992
|
+
(partUsage as any).cache_creation?.ephemeral_1h_input_tokens ??
|
|
2991
2993
|
usage.cache_creation.ephemeral_1h_input_tokens,
|
|
2992
2994
|
ephemeral_5m_input_tokens:
|
|
2993
|
-
(partUsage as
|
|
2995
|
+
(partUsage as any).cache_creation?.ephemeral_5m_input_tokens ??
|
|
2994
2996
|
usage.cache_creation.ephemeral_5m_input_tokens,
|
|
2995
2997
|
},
|
|
2996
2998
|
// cache_deleted_input_tokens: returned by the API when cache editing
|
|
@@ -3012,8 +3014,8 @@ export function updateUsage(
|
|
|
3012
3014
|
}
|
|
3013
3015
|
: {}),
|
|
3014
3016
|
inference_geo: usage.inference_geo,
|
|
3015
|
-
iterations: partUsage.iterations ?? usage.iterations,
|
|
3016
|
-
speed: (partUsage as
|
|
3017
|
+
iterations: (partUsage as any).iterations ?? usage.iterations,
|
|
3018
|
+
speed: (partUsage as any).speed ?? usage.speed,
|
|
3017
3019
|
}
|
|
3018
3020
|
}
|
|
3019
3021
|
|
|
@@ -70,7 +70,12 @@ import {
|
|
|
70
70
|
* 4. Fallback region (us-east5)
|
|
71
71
|
*/
|
|
72
72
|
|
|
73
|
-
function createStderrLogger():
|
|
73
|
+
function createStderrLogger(): {
|
|
74
|
+
error: (msg: unknown, ...args: unknown[]) => void
|
|
75
|
+
warn: (msg: unknown, ...args: unknown[]) => void
|
|
76
|
+
info: (msg: unknown, ...args: unknown[]) => void
|
|
77
|
+
debug: (msg: unknown, ...args: unknown[]) => void
|
|
78
|
+
} {
|
|
74
79
|
return {
|
|
75
80
|
error: (msg, ...args) =>
|
|
76
81
|
// biome-ignore lint/suspicious/noConsole:: intentional console output -- SDK logger must use console
|
|
@@ -145,7 +150,7 @@ export async function getAnthropicClient({
|
|
|
145
150
|
dangerouslyAllowBrowser: true,
|
|
146
151
|
fetchOptions: getProxyFetchOptions({
|
|
147
152
|
forAnthropicAPI: true,
|
|
148
|
-
}) as
|
|
153
|
+
}) as any,
|
|
149
154
|
...(resolvedFetch && {
|
|
150
155
|
fetch: resolvedFetch,
|
|
151
156
|
}),
|
|
@@ -172,7 +177,7 @@ export async function getAnthropicClient({
|
|
|
172
177
|
? process.env.ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION
|
|
173
178
|
: getAWSRegion()
|
|
174
179
|
|
|
175
|
-
const bedrockArgs:
|
|
180
|
+
const bedrockArgs: any = {
|
|
176
181
|
...ARGS,
|
|
177
182
|
awsRegion,
|
|
178
183
|
...(isEnvTruthy(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH) && {
|
|
@@ -223,7 +228,7 @@ export async function getAnthropicClient({
|
|
|
223
228
|
}
|
|
224
229
|
}
|
|
225
230
|
|
|
226
|
-
const foundryArgs:
|
|
231
|
+
const foundryArgs: any = {
|
|
227
232
|
...ARGS,
|
|
228
233
|
...(azureADTokenProvider && { azureADTokenProvider }),
|
|
229
234
|
...(isDebugToStdErr() && { logger: createStderrLogger() }),
|
|
@@ -300,7 +305,7 @@ export async function getAnthropicClient({
|
|
|
300
305
|
}),
|
|
301
306
|
})
|
|
302
307
|
|
|
303
|
-
const vertexArgs:
|
|
308
|
+
const vertexArgs: any = {
|
|
304
309
|
...ARGS,
|
|
305
310
|
region: getVertexRegionForModel(model),
|
|
306
311
|
googleAuth,
|
|
@@ -311,20 +316,11 @@ export async function getAnthropicClient({
|
|
|
311
316
|
}
|
|
312
317
|
|
|
313
318
|
// Determine authentication method based on available tokens
|
|
314
|
-
// mumucc: 检测当前模型是否为 Claude 原生模型
|
|
315
|
-
const isClaudeModel = model && (model.includes('claude') || model.includes('sonnet') || model.includes('opus') || model.includes('haiku'))
|
|
316
|
-
// 当设了第三方 BASE_URL 且当前不是 Claude 原生模型时,用第三方认证
|
|
317
|
-
const forceThirdPartyKey = !isClaudeModel && !!process.env.ANTHROPIC_AUTH_TOKEN && !!process.env.ANTHROPIC_BASE_URL
|
|
318
|
-
|
|
319
319
|
const clientConfig: ConstructorParameters<typeof Anthropic>[0] = {
|
|
320
|
-
apiKey:
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
? undefined // mumucc: 第三方 provider,不用 OAuth
|
|
325
|
-
: (isClaudeAISubscriber() ? getClaudeAIOAuthTokens()?.accessToken : undefined),
|
|
326
|
-
// mumucc: Claude 原生模型时忽略第三方 BASE_URL,直接连 Anthropic API
|
|
327
|
-
...(forceThirdPartyKey ? {} : { baseURL: undefined }),
|
|
320
|
+
apiKey: isClaudeAISubscriber() ? null : apiKey || getAnthropicApiKey(),
|
|
321
|
+
authToken: isClaudeAISubscriber()
|
|
322
|
+
? getClaudeAIOAuthTokens()?.accessToken
|
|
323
|
+
: undefined,
|
|
328
324
|
// Set baseURL from OAuth config when using staging OAuth
|
|
329
325
|
...(process.env.USER_TYPE === 'ant' &&
|
|
330
326
|
isEnvTruthy(process.env.USE_STAGING_OAUTH)
|
|
@@ -416,7 +412,6 @@ import {
|
|
|
416
412
|
getClientForModel as getThirdPartyClientForModel,
|
|
417
413
|
isThirdPartyModel,
|
|
418
414
|
getActualModelId,
|
|
419
|
-
type ResolvedProvider,
|
|
420
415
|
} from '../../utils/model/thirdPartyProviders.js'
|
|
421
416
|
|
|
422
417
|
export { isThirdPartyModel, getActualModelId }
|
|
@@ -429,7 +424,7 @@ export { isThirdPartyModel, getActualModelId }
|
|
|
429
424
|
* @returns `{ client, actualModelId }` — actualModelId is the model string
|
|
430
425
|
* to pass to the API (stripped of provider prefix for third-party models).
|
|
431
426
|
*/
|
|
432
|
-
export async function
|
|
427
|
+
export async function getClientForResolvedModel({
|
|
433
428
|
model,
|
|
434
429
|
apiKey,
|
|
435
430
|
maxRetries,
|
|
@@ -442,18 +437,16 @@ export async function getAnthropicClientForModel({
|
|
|
442
437
|
fetchOverride?: ClientOptions['fetch']
|
|
443
438
|
source?: string
|
|
444
439
|
}): Promise<{ client: Anthropic; actualModelId: string }> {
|
|
445
|
-
|
|
446
|
-
if (
|
|
447
|
-
const result = await getThirdPartyClientForModel(model, { maxRetries })
|
|
448
|
-
if (result) {
|
|
449
|
-
logForDebugging(
|
|
450
|
-
`[API:thirdParty] Using third-party provider for model "${model}" → actualModelId="${result.actualModelId}"`,
|
|
451
|
-
)
|
|
452
|
-
return result
|
|
453
|
-
}
|
|
454
|
-
// Fall through to standard client if third-party resolution fails
|
|
440
|
+
const result = await getThirdPartyClientForModel(model, { maxRetries })
|
|
441
|
+
if (result) {
|
|
455
442
|
logForDebugging(
|
|
456
|
-
`[API:
|
|
443
|
+
`[API:routing] Using profile/provider route for model "${model}" → actualModelId="${result.actualModelId}"`,
|
|
444
|
+
)
|
|
445
|
+
return result
|
|
446
|
+
}
|
|
447
|
+
if (isThirdPartyModel(model) || model.includes(':')) {
|
|
448
|
+
throw new Error(
|
|
449
|
+
`Could not resolve routed model "${model}" via configured profile/provider. Configure the profile and credentials first.`,
|
|
457
450
|
)
|
|
458
451
|
}
|
|
459
452
|
|
|
@@ -466,3 +459,13 @@ export async function getAnthropicClientForModel({
|
|
|
466
459
|
})
|
|
467
460
|
return { client, actualModelId: getActualModelId(model) }
|
|
468
461
|
}
|
|
462
|
+
|
|
463
|
+
export async function getAnthropicClientForModel(params: {
|
|
464
|
+
model: string
|
|
465
|
+
apiKey?: string
|
|
466
|
+
maxRetries: number
|
|
467
|
+
fetchOverride?: ClientOptions['fetch']
|
|
468
|
+
source?: string
|
|
469
|
+
}): Promise<{ client: Anthropic; actualModelId: string }> {
|
|
470
|
+
return getClientForResolvedModel(params)
|
|
471
|
+
}
|
|
@@ -559,14 +559,23 @@ class OpenAIShimMessages {
|
|
|
559
559
|
private defaultHeaders: Record<string, string>
|
|
560
560
|
private apiKeyOverride?: string
|
|
561
561
|
private baseUrlOverride?: string
|
|
562
|
+
private codexAccountIdOverride?: string
|
|
563
|
+
private codexAuthPathOverride?: string
|
|
562
564
|
|
|
563
565
|
constructor(
|
|
564
566
|
defaultHeaders: Record<string, string>,
|
|
565
|
-
options?: {
|
|
567
|
+
options?: {
|
|
568
|
+
apiKey?: string
|
|
569
|
+
baseUrl?: string
|
|
570
|
+
codexAccountId?: string
|
|
571
|
+
codexAuthPath?: string
|
|
572
|
+
},
|
|
566
573
|
) {
|
|
567
574
|
this.defaultHeaders = defaultHeaders
|
|
568
575
|
this.apiKeyOverride = options?.apiKey
|
|
569
576
|
this.baseUrlOverride = options?.baseUrl
|
|
577
|
+
this.codexAccountIdOverride = options?.codexAccountId
|
|
578
|
+
this.codexAuthPathOverride = options?.codexAuthPath
|
|
570
579
|
}
|
|
571
580
|
|
|
572
581
|
create(
|
|
@@ -637,15 +646,21 @@ class OpenAIShimMessages {
|
|
|
637
646
|
): Promise<Response> {
|
|
638
647
|
if (request.transport === 'codex_responses') {
|
|
639
648
|
const credentials = resolveCodexApiCredentials()
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
649
|
+
const effectiveCredentials = {
|
|
650
|
+
...credentials,
|
|
651
|
+
apiKey: this.apiKeyOverride ?? credentials.apiKey,
|
|
652
|
+
accountId: this.codexAccountIdOverride ?? credentials.accountId,
|
|
653
|
+
authPath: this.codexAuthPathOverride ?? credentials.authPath,
|
|
654
|
+
}
|
|
655
|
+
if (!effectiveCredentials.apiKey) {
|
|
656
|
+
const authHint = effectiveCredentials.authPath
|
|
657
|
+
? ` or place a Codex auth.json at ${effectiveCredentials.authPath}`
|
|
643
658
|
: ''
|
|
644
659
|
throw new Error(
|
|
645
660
|
`Codex auth is required for ${request.requestedModel}. Set CODEX_API_KEY${authHint}.`,
|
|
646
661
|
)
|
|
647
662
|
}
|
|
648
|
-
if (!
|
|
663
|
+
if (!effectiveCredentials.accountId) {
|
|
649
664
|
throw new Error(
|
|
650
665
|
'Codex auth is missing chatgpt_account_id. Re-login with the Codex CLI or set CHATGPT_ACCOUNT_ID/CODEX_ACCOUNT_ID.',
|
|
651
666
|
)
|
|
@@ -653,7 +668,7 @@ class OpenAIShimMessages {
|
|
|
653
668
|
|
|
654
669
|
return performCodexRequest({
|
|
655
670
|
request,
|
|
656
|
-
credentials,
|
|
671
|
+
credentials: effectiveCredentials,
|
|
657
672
|
params,
|
|
658
673
|
defaultHeaders: {
|
|
659
674
|
...this.defaultHeaders,
|
|
@@ -835,7 +850,12 @@ class OpenAIShimBeta {
|
|
|
835
850
|
|
|
836
851
|
constructor(
|
|
837
852
|
defaultHeaders: Record<string, string>,
|
|
838
|
-
options?: {
|
|
853
|
+
options?: {
|
|
854
|
+
apiKey?: string
|
|
855
|
+
baseUrl?: string
|
|
856
|
+
codexAccountId?: string
|
|
857
|
+
codexAuthPath?: string
|
|
858
|
+
},
|
|
839
859
|
) {
|
|
840
860
|
this.messages = new OpenAIShimMessages(defaultHeaders, options)
|
|
841
861
|
}
|
|
@@ -854,6 +874,8 @@ export function createOpenAIShimClient(options: {
|
|
|
854
874
|
timeout?: number
|
|
855
875
|
apiKey?: string
|
|
856
876
|
baseUrl?: string
|
|
877
|
+
codexAccountId?: string
|
|
878
|
+
codexAuthPath?: string
|
|
857
879
|
}): unknown {
|
|
858
880
|
// When Gemini provider is active, map Gemini env vars to OpenAI-compatible ones
|
|
859
881
|
if (
|
|
@@ -872,7 +894,12 @@ export function createOpenAIShimClient(options: {
|
|
|
872
894
|
|
|
873
895
|
const beta = new OpenAIShimBeta(
|
|
874
896
|
{ ...(options.defaultHeaders ?? {}) },
|
|
875
|
-
{
|
|
897
|
+
{
|
|
898
|
+
apiKey: options.apiKey,
|
|
899
|
+
baseUrl: options.baseUrl,
|
|
900
|
+
codexAccountId: options.codexAccountId,
|
|
901
|
+
codexAuthPath: options.codexAuthPath,
|
|
902
|
+
},
|
|
876
903
|
)
|
|
877
904
|
|
|
878
905
|
return {
|
|
@@ -2,17 +2,69 @@
|
|
|
2
2
|
// This module is only used by ant builds
|
|
3
3
|
|
|
4
4
|
export interface CachedMCState {
|
|
5
|
-
|
|
5
|
+
pinnedEdits: PinnedCacheEdits[]
|
|
6
|
+
registeredTools: Set<string>
|
|
7
|
+
toolOrder: string[]
|
|
8
|
+
deletedRefs: Set<string>
|
|
6
9
|
}
|
|
7
10
|
|
|
8
11
|
export interface CacheEditsBlock {
|
|
9
|
-
|
|
12
|
+
[key: string]: any
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface PinnedCacheEdits {
|
|
16
|
+
userMessageIndex: number
|
|
17
|
+
block: CacheEditsBlock
|
|
10
18
|
}
|
|
11
19
|
|
|
12
20
|
export function createCachedMCState(): CachedMCState {
|
|
13
|
-
return {
|
|
21
|
+
return {
|
|
22
|
+
pinnedEdits: [],
|
|
23
|
+
registeredTools: new Set<string>(),
|
|
24
|
+
toolOrder: [],
|
|
25
|
+
deletedRefs: new Set<string>(),
|
|
26
|
+
}
|
|
14
27
|
}
|
|
15
28
|
|
|
16
29
|
export function createCacheEditsBlock(): CacheEditsBlock {
|
|
17
|
-
return {}
|
|
30
|
+
return {}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export function isCachedMicrocompactEnabled(): boolean {
|
|
34
|
+
return false
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function isModelSupportedForCacheEditing(_model: string): boolean {
|
|
38
|
+
return false
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function getCachedMCConfig(): { supportedModels: string[] } {
|
|
42
|
+
return { supportedModels: [] }
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function markToolsSentToAPI(_state: CachedMCState): void {}
|
|
46
|
+
|
|
47
|
+
export function resetCachedMCState(state: CachedMCState): void {
|
|
48
|
+
state.pinnedEdits = []
|
|
49
|
+
state.registeredTools.clear()
|
|
50
|
+
state.toolOrder = []
|
|
51
|
+
state.deletedRefs.clear()
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function registerToolResult(
|
|
55
|
+
state: CachedMCState,
|
|
56
|
+
toolUseId: string,
|
|
57
|
+
): void {
|
|
58
|
+
state.registeredTools.add(toolUseId)
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function registerToolMessage(
|
|
62
|
+
state: CachedMCState,
|
|
63
|
+
groupIds: string[],
|
|
64
|
+
): void {
|
|
65
|
+
state.toolOrder.push(...groupIds)
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function getToolResultsToDelete(_state: CachedMCState): string[] {
|
|
69
|
+
return []
|
|
18
70
|
}
|
|
@@ -1,2 +1,17 @@
|
|
|
1
1
|
// AUTO-GENERATED STUB — module missing from leaked source
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
export function isReactiveCompactEnabled(): boolean {
|
|
4
|
+
return false
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export function isWithheldPromptTooLong(..._args: any[]): boolean {
|
|
8
|
+
return false
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function isWithheldMediaSizeError(..._args: any[]): boolean {
|
|
12
|
+
return false
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export async function tryReactiveCompact(): Promise<null> {
|
|
16
|
+
return null
|
|
17
|
+
}
|
|
@@ -1,2 +1,19 @@
|
|
|
1
1
|
// AUTO-GENERATED STUB — module missing from leaked source
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
export const SNIP_NUDGE_TEXT =
|
|
4
|
+
'When context efficiency matters, prefer referencing earlier material precisely instead of repeating large blocks verbatim.'
|
|
5
|
+
|
|
6
|
+
export function isSnipRuntimeEnabled(): boolean {
|
|
7
|
+
return false
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export function snipCompactIfNeeded<T>(messages: T[]): {
|
|
11
|
+
messages: T[]
|
|
12
|
+
tokensFreed: number
|
|
13
|
+
boundaryMessage?: undefined
|
|
14
|
+
} {
|
|
15
|
+
return {
|
|
16
|
+
messages,
|
|
17
|
+
tokensFreed: 0,
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -1,2 +1,34 @@
|
|
|
1
1
|
// AUTO-GENERATED STUB — module missing from leaked source
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
export function resetContextCollapse(): void {}
|
|
4
|
+
|
|
5
|
+
export function isContextCollapseEnabled(): boolean {
|
|
6
|
+
return false
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export async function applyCollapsesIfNeeded(messages: any[]): Promise<{
|
|
10
|
+
messages: any[]
|
|
11
|
+
}> {
|
|
12
|
+
return { messages }
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function isWithheldPromptTooLong(..._args: any[]): boolean {
|
|
16
|
+
return false
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export function recoverFromOverflow(messages: any[]): {
|
|
20
|
+
committed: number
|
|
21
|
+
messages: any[]
|
|
22
|
+
} {
|
|
23
|
+
return { committed: 0, messages }
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export function getStats(): {
|
|
27
|
+
collapsedSpans: number
|
|
28
|
+
stagedCount: number
|
|
29
|
+
} {
|
|
30
|
+
return {
|
|
31
|
+
collapsedSpans: 0,
|
|
32
|
+
stagedCount: 0,
|
|
33
|
+
}
|
|
34
|
+
}
|