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.
Files changed (645) hide show
  1. package/AGENTS.md +297 -0
  2. package/bin/mumucc +3 -8
  3. package/bun.lock +44 -141
  4. package/defaults/mcp-servers.json +0 -6
  5. package/package.json +3 -3
  6. package/shims/bun-bundle.ts +0 -3
  7. package/shims/globals.d.ts +15 -0
  8. package/shims/globals.ts +1 -1
  9. package/src/QueryEngine.ts +1 -0
  10. package/src/assistant/gate.ts +4 -1
  11. package/src/assistant/index.ts +29 -1
  12. package/src/assistant/sessionDiscovery.ts +10 -1
  13. package/src/bootstrap/state.ts +6 -1
  14. package/src/buddy/CompanionSprite.tsx +1 -0
  15. package/src/buddy/observer.ts +6 -0
  16. package/src/buddy/useBuddyNotification.tsx +1 -0
  17. package/src/cli/handlers/util.tsx +1 -0
  18. package/src/cli/print.ts +4 -1
  19. package/src/cli/structuredIO.ts +6 -1
  20. package/src/commands/add-dir/add-dir.tsx +1 -0
  21. package/src/commands/branch/branch.ts +1 -0
  22. package/src/commands/bridge/bridge.tsx +2 -1
  23. package/src/commands/btw/btw.tsx +1 -0
  24. package/src/commands/buddy/index.ts +2 -1
  25. package/src/commands/chrome/chrome.tsx +1 -0
  26. package/src/commands/clear/caches.ts +1 -0
  27. package/src/commands/compact/compact.ts +1 -0
  28. package/src/commands/context/context-noninteractive.ts +1 -0
  29. package/src/commands/context/context.tsx +1 -0
  30. package/src/commands/copy/copy.tsx +2 -1
  31. package/src/commands/effort/effort.tsx +1 -0
  32. package/src/commands/extra-usage/extra-usage.tsx +1 -0
  33. package/src/commands/fast/fast.tsx +1 -0
  34. package/src/commands/fork/index.ts +2 -1
  35. package/src/commands/ide/ide.tsx +2 -1
  36. package/src/commands/insights.ts +1 -0
  37. package/src/commands/install-github-app/ApiKeyStep.tsx +1 -0
  38. package/src/commands/install-github-app/CheckExistingSecretStep.tsx +1 -0
  39. package/src/commands/install-github-app/ChooseRepoStep.tsx +1 -0
  40. package/src/commands/install-github-app/CreatingStep.tsx +1 -0
  41. package/src/commands/install-github-app/ErrorStep.tsx +1 -0
  42. package/src/commands/install-github-app/ExistingWorkflowStep.tsx +1 -0
  43. package/src/commands/install-github-app/InstallAppStep.tsx +1 -0
  44. package/src/commands/install-github-app/OAuthFlowStep.tsx +1 -0
  45. package/src/commands/install-github-app/SuccessStep.tsx +1 -0
  46. package/src/commands/install-github-app/WarningsStep.tsx +1 -0
  47. package/src/commands/install-github-app/install-github-app.tsx +2 -1
  48. package/src/commands/install.tsx +1 -0
  49. package/src/commands/login/CodexLogin.tsx +39 -12
  50. package/src/commands/login/CustomProviderLogin.tsx +45 -9
  51. package/src/commands/login/ThirdPartyLogin.tsx +24 -6
  52. package/src/commands/login/login.tsx +37 -10
  53. package/src/commands/login/profileDefaults.ts +25 -0
  54. package/src/commands/mcp/mcp.tsx +1 -0
  55. package/src/commands/mobile/mobile.tsx +1 -0
  56. package/src/commands/model/model.tsx +14 -3
  57. package/src/commands/peers/index.ts +2 -1
  58. package/src/commands/permissions/permissions.tsx +1 -0
  59. package/src/commands/plan/plan.tsx +1 -0
  60. package/src/commands/plugin/DiscoverPlugins.tsx +1 -0
  61. package/src/commands/plugin/ManageMarketplaces.tsx +1 -0
  62. package/src/commands/plugin/ManagePlugins.tsx +1 -0
  63. package/src/commands/plugin/PluginOptionsDialog.tsx +1 -0
  64. package/src/commands/plugin/PluginSettings.tsx +2 -1
  65. package/src/commands/plugin/UnifiedInstalledCell.tsx +1 -0
  66. package/src/commands/plugin/ValidatePlugin.tsx +1 -0
  67. package/src/commands/plugin/pluginDetailsHelpers.tsx +1 -0
  68. package/src/commands/rate-limit-options/rate-limit-options.tsx +1 -0
  69. package/src/commands/remote-setup/remote-setup.tsx +1 -0
  70. package/src/commands/resume/resume.tsx +1 -0
  71. package/src/commands/review/UltrareviewOverageDialog.tsx +1 -0
  72. package/src/commands/review/ultrareviewCommand.tsx +1 -0
  73. package/src/commands/session/session.tsx +1 -0
  74. package/src/commands/tag/tag.tsx +1 -0
  75. package/src/commands/terminalSetup/terminalSetup.tsx +1 -0
  76. package/src/commands/theme/theme.tsx +1 -0
  77. package/src/commands/thinkback/thinkback.tsx +2 -1
  78. package/src/commands/ultraplan.tsx +11 -1
  79. package/src/commands/upgrade/upgrade.tsx +1 -0
  80. package/src/commands/workflows/index.ts +2 -1
  81. package/src/components/AgentProgressLine.tsx +1 -0
  82. package/src/components/App.tsx +1 -0
  83. package/src/components/ApproveApiKey.tsx +1 -0
  84. package/src/components/AutoModeOptInDialog.tsx +1 -0
  85. package/src/components/AutoUpdater.tsx +1 -0
  86. package/src/components/AutoUpdaterWrapper.tsx +1 -0
  87. package/src/components/AwsAuthStatusBox.tsx +1 -0
  88. package/src/components/BaseTextInput.tsx +1 -0
  89. package/src/components/BashModeProgress.tsx +1 -0
  90. package/src/components/BridgeDialog.tsx +2 -1
  91. package/src/components/BypassPermissionsModeDialog.tsx +1 -0
  92. package/src/components/ChannelDowngradeDialog.tsx +1 -0
  93. package/src/components/ClaudeInChromeOnboarding.tsx +1 -0
  94. package/src/components/ClaudeMdExternalIncludesDialog.tsx +1 -0
  95. package/src/components/ClickableImageRef.tsx +1 -0
  96. package/src/components/CompactSummary.tsx +1 -0
  97. package/src/components/ConfigurableShortcutHint.tsx +1 -0
  98. package/src/components/ConsoleOAuthFlow.tsx +1 -0
  99. package/src/components/ContextSuggestions.tsx +1 -0
  100. package/src/components/ContextVisualization.tsx +2 -1
  101. package/src/components/CoordinatorAgentStatus.tsx +3 -4
  102. package/src/components/CostThresholdDialog.tsx +1 -0
  103. package/src/components/CtrlOToExpand.tsx +1 -0
  104. package/src/components/CustomSelect/SelectMulti.tsx +1 -0
  105. package/src/components/CustomSelect/select-input-option.tsx +1 -0
  106. package/src/components/CustomSelect/select-option.tsx +1 -0
  107. package/src/components/CustomSelect/select.tsx +2 -1
  108. package/src/components/CustomSelect/use-multi-select-state.ts +1 -0
  109. package/src/components/DesktopHandoff.tsx +1 -0
  110. package/src/components/DesktopUpsell/DesktopUpsellStartup.tsx +1 -0
  111. package/src/components/DevBar.tsx +1 -0
  112. package/src/components/DevChannelsDialog.tsx +1 -0
  113. package/src/components/DiagnosticsDisplay.tsx +1 -0
  114. package/src/components/EffortCallout.tsx +1 -0
  115. package/src/components/ExitFlow.tsx +1 -0
  116. package/src/components/FallbackToolUseErrorMessage.tsx +1 -0
  117. package/src/components/FastIcon.tsx +1 -0
  118. package/src/components/Feedback.tsx +1 -0
  119. package/src/components/FeedbackSurvey/FeedbackSurvey.tsx +1 -0
  120. package/src/components/FeedbackSurvey/FeedbackSurveyView.tsx +1 -0
  121. package/src/components/FeedbackSurvey/TranscriptSharePrompt.tsx +1 -0
  122. package/src/components/FeedbackSurvey/useFrustrationDetection.ts +6 -1
  123. package/src/components/FeedbackSurvey/useMemorySurvey.tsx +1 -0
  124. package/src/components/FeedbackSurvey/usePostCompactSurvey.tsx +2 -1
  125. package/src/components/FileEditToolDiff.tsx +1 -0
  126. package/src/components/FileEditToolUpdatedMessage.tsx +1 -0
  127. package/src/components/FileEditToolUseRejectedMessage.tsx +1 -0
  128. package/src/components/FilePathLink.tsx +1 -0
  129. package/src/components/FullscreenLayout.tsx +1 -0
  130. package/src/components/GlobalSearchDialog.tsx +2 -1
  131. package/src/components/HelpV2/Commands.tsx +1 -0
  132. package/src/components/HelpV2/HelpV2.tsx +1 -0
  133. package/src/components/HighlightedCode/Fallback.tsx +1 -0
  134. package/src/components/HighlightedCode.tsx +1 -0
  135. package/src/components/HistorySearchDialog.tsx +1 -0
  136. package/src/components/IdeAutoConnectDialog.tsx +1 -0
  137. package/src/components/IdeOnboardingDialog.tsx +1 -0
  138. package/src/components/IdeStatusIndicator.tsx +1 -0
  139. package/src/components/IdleReturnDialog.tsx +1 -0
  140. package/src/components/InvalidConfigDialog.tsx +1 -0
  141. package/src/components/InvalidSettingsDialog.tsx +1 -0
  142. package/src/components/KeybindingWarnings.tsx +1 -0
  143. package/src/components/LanguagePicker.tsx +1 -0
  144. package/src/components/LogSelector.tsx +2 -1
  145. package/src/components/LogoV2/ChannelsNotice.tsx +6 -5
  146. package/src/components/LogoV2/Clawd.tsx +1 -0
  147. package/src/components/LogoV2/CondensedLogo.tsx +1 -0
  148. package/src/components/LogoV2/Feed.tsx +1 -0
  149. package/src/components/LogoV2/FeedColumn.tsx +1 -0
  150. package/src/components/LogoV2/LogoV2.tsx +2 -1
  151. package/src/components/LogoV2/OverageCreditUpsell.tsx +1 -0
  152. package/src/components/LogoV2/WelcomeV2.tsx +1 -0
  153. package/src/components/LogoV2/feedConfigs.tsx +1 -0
  154. package/src/components/MCPServerApprovalDialog.tsx +1 -0
  155. package/src/components/MCPServerDesktopImportDialog.tsx +1 -0
  156. package/src/components/MCPServerMultiselectDialog.tsx +1 -0
  157. package/src/components/ManagedSettingsSecurityDialog/ManagedSettingsSecurityDialog.tsx +1 -0
  158. package/src/components/Markdown.tsx +1 -0
  159. package/src/components/MemoryUsageIndicator.tsx +1 -0
  160. package/src/components/Message.tsx +2 -1
  161. package/src/components/MessageModel.tsx +1 -0
  162. package/src/components/MessageResponse.tsx +1 -0
  163. package/src/components/MessageRow.tsx +1 -0
  164. package/src/components/MessageSelector.tsx +2 -1
  165. package/src/components/MessageTimestamp.tsx +1 -0
  166. package/src/components/Messages.tsx +1 -0
  167. package/src/components/ModelPicker.tsx +4 -3
  168. package/src/components/NativeAutoUpdater.tsx +1 -0
  169. package/src/components/NotebookEditToolUseRejectedMessage.tsx +1 -0
  170. package/src/components/Onboarding.tsx +1 -0
  171. package/src/components/OutputStylePicker.tsx +1 -0
  172. package/src/components/PackageManagerAutoUpdater.tsx +1 -0
  173. package/src/components/PrBadge.tsx +1 -0
  174. package/src/components/PromptInput/HistorySearchInput.tsx +1 -0
  175. package/src/components/PromptInput/Notifications.tsx +1 -0
  176. package/src/components/PromptInput/PromptInput.tsx +10 -8
  177. package/src/components/PromptInput/PromptInputFooter.tsx +1 -0
  178. package/src/components/PromptInput/PromptInputFooterLeftSide.tsx +1 -0
  179. package/src/components/PromptInput/PromptInputFooterSuggestions.tsx +1 -0
  180. package/src/components/PromptInput/PromptInputHelpMenu.tsx +1 -0
  181. package/src/components/PromptInput/PromptInputModeIndicator.tsx +1 -0
  182. package/src/components/PromptInput/PromptInputStashNotice.tsx +1 -0
  183. package/src/components/PromptInput/SandboxPromptFooterHint.tsx +1 -0
  184. package/src/components/PromptInput/ShimmeredInput.tsx +1 -0
  185. package/src/components/PromptInput/VoiceIndicator.tsx +1 -0
  186. package/src/components/QuickOpenDialog.tsx +2 -1
  187. package/src/components/RemoteEnvironmentDialog.tsx +2 -1
  188. package/src/components/ResumeTask.tsx +1 -0
  189. package/src/components/SandboxViolationExpandedView.tsx +1 -0
  190. package/src/components/SearchBox.tsx +1 -0
  191. package/src/components/SessionBackgroundHint.tsx +1 -0
  192. package/src/components/SessionPreview.tsx +1 -0
  193. package/src/components/Settings/Config.tsx +1 -0
  194. package/src/components/Settings/Settings.tsx +1 -0
  195. package/src/components/Settings/Status.tsx +2 -1
  196. package/src/components/Settings/Usage.tsx +1 -0
  197. package/src/components/ShowInIDEPrompt.tsx +1 -0
  198. package/src/components/SkillImprovementSurvey.tsx +1 -0
  199. package/src/components/Spinner/FlashingChar.tsx +1 -0
  200. package/src/components/Spinner/GlimmerMessage.tsx +1 -0
  201. package/src/components/Spinner/ShimmerChar.tsx +1 -0
  202. package/src/components/Spinner/SpinnerAnimationRow.tsx +1 -0
  203. package/src/components/Spinner/SpinnerGlyph.tsx +1 -0
  204. package/src/components/Spinner/TeammateSpinnerTree.tsx +1 -0
  205. package/src/components/Spinner/utils.ts +1 -0
  206. package/src/components/Spinner.tsx +2 -1
  207. package/src/components/Stats.tsx +2 -1
  208. package/src/components/StatusNotices.tsx +1 -0
  209. package/src/components/StructuredDiff/Fallback.tsx +1 -0
  210. package/src/components/StructuredDiff.tsx +2 -1
  211. package/src/components/StructuredDiffList.tsx +1 -0
  212. package/src/components/TaskListV2.tsx +1 -0
  213. package/src/components/TeammateViewHeader.tsx +1 -0
  214. package/src/components/TeleportError.tsx +1 -0
  215. package/src/components/TeleportProgress.tsx +1 -0
  216. package/src/components/TeleportRepoMismatchDialog.tsx +1 -0
  217. package/src/components/TeleportResumeWrapper.tsx +1 -0
  218. package/src/components/TextInput.tsx +1 -0
  219. package/src/components/ThemePicker.tsx +1 -0
  220. package/src/components/ThinkingToggle.tsx +1 -0
  221. package/src/components/TokenWarning.tsx +1 -0
  222. package/src/components/ToolUseLoader.tsx +1 -0
  223. package/src/components/TrustDialog/TrustDialog.tsx +1 -0
  224. package/src/components/ValidationErrorsList.tsx +1 -0
  225. package/src/components/VimTextInput.tsx +1 -0
  226. package/src/components/VirtualMessageList.tsx +1 -0
  227. package/src/components/WorkflowMultiselectDialog.tsx +1 -0
  228. package/src/components/agents/AgentDetail.tsx +1 -0
  229. package/src/components/agents/AgentEditor.tsx +1 -0
  230. package/src/components/agents/AgentNavigationFooter.tsx +1 -0
  231. package/src/components/agents/AgentsList.tsx +2 -1
  232. package/src/components/agents/AgentsMenu.tsx +2 -1
  233. package/src/components/agents/ColorPicker.tsx +1 -0
  234. package/src/components/agents/ModelSelector.tsx +1 -0
  235. package/src/components/agents/ToolSelector.tsx +2 -1
  236. package/src/components/agents/generateAgent.ts +1 -0
  237. package/src/components/agents/new-agent-creation/CreateAgentWizard.tsx +1 -0
  238. package/src/components/agents/new-agent-creation/wizard-steps/ColorStep.tsx +1 -0
  239. package/src/components/agents/new-agent-creation/wizard-steps/ConfirmStep.tsx +1 -0
  240. package/src/components/agents/new-agent-creation/wizard-steps/DescriptionStep.tsx +1 -0
  241. package/src/components/agents/new-agent-creation/wizard-steps/LocationStep.tsx +1 -0
  242. package/src/components/agents/new-agent-creation/wizard-steps/MemoryStep.tsx +1 -0
  243. package/src/components/agents/new-agent-creation/wizard-steps/MethodStep.tsx +1 -0
  244. package/src/components/agents/new-agent-creation/wizard-steps/ModelStep.tsx +1 -0
  245. package/src/components/agents/new-agent-creation/wizard-steps/PromptStep.tsx +1 -0
  246. package/src/components/agents/new-agent-creation/wizard-steps/ToolsStep.tsx +1 -0
  247. package/src/components/agents/new-agent-creation/wizard-steps/TypeStep.tsx +1 -0
  248. package/src/components/design-system/Byline.tsx +1 -0
  249. package/src/components/design-system/Dialog.tsx +1 -0
  250. package/src/components/design-system/Divider.tsx +1 -0
  251. package/src/components/design-system/FuzzyPicker.tsx +1 -0
  252. package/src/components/design-system/KeyboardShortcutHint.tsx +1 -0
  253. package/src/components/design-system/ListItem.tsx +1 -0
  254. package/src/components/design-system/LoadingState.tsx +1 -0
  255. package/src/components/design-system/Pane.tsx +1 -0
  256. package/src/components/design-system/ProgressBar.tsx +1 -0
  257. package/src/components/design-system/Ratchet.tsx +1 -0
  258. package/src/components/design-system/StatusIcon.tsx +1 -0
  259. package/src/components/design-system/Tabs.tsx +2 -1
  260. package/src/components/design-system/ThemeProvider.tsx +1 -0
  261. package/src/components/design-system/ThemedBox.tsx +1 -0
  262. package/src/components/design-system/ThemedText.tsx +1 -0
  263. package/src/components/diff/DiffDetailView.tsx +1 -0
  264. package/src/components/diff/DiffDialog.tsx +1 -0
  265. package/src/components/diff/DiffFileList.tsx +1 -0
  266. package/src/components/grove/Grove.tsx +2 -1
  267. package/src/components/hooks/HooksConfigMenu.tsx +2 -1
  268. package/src/components/hooks/PromptDialog.tsx +1 -0
  269. package/src/components/hooks/SelectEventMode.tsx +1 -0
  270. package/src/components/hooks/SelectHookMode.tsx +1 -0
  271. package/src/components/hooks/SelectMatcherMode.tsx +1 -0
  272. package/src/components/hooks/ViewHookMode.tsx +1 -0
  273. package/src/components/mcp/CapabilitiesSection.tsx +1 -0
  274. package/src/components/mcp/ElicitationDialog.tsx +1 -0
  275. package/src/components/mcp/MCPAgentServerMenu.tsx +1 -0
  276. package/src/components/mcp/MCPListPanel.tsx +2 -1
  277. package/src/components/mcp/MCPReconnect.tsx +1 -0
  278. package/src/components/mcp/MCPRemoteServerMenu.tsx +1 -0
  279. package/src/components/mcp/MCPSettings.tsx +2 -1
  280. package/src/components/mcp/MCPStdioServerMenu.tsx +1 -0
  281. package/src/components/mcp/MCPToolDetailView.tsx +1 -0
  282. package/src/components/mcp/MCPToolListView.tsx +1 -0
  283. package/src/components/mcp/McpParsingWarnings.tsx +1 -0
  284. package/src/components/memory/MemoryFileSelector.tsx +2 -1
  285. package/src/components/memory/MemoryUpdateNotification.tsx +1 -0
  286. package/src/components/messageActions.tsx +1 -0
  287. package/src/components/messages/AdvisorMessage.tsx +1 -0
  288. package/src/components/messages/AssistantRedactedThinkingMessage.tsx +1 -0
  289. package/src/components/messages/AssistantTextMessage.tsx +1 -0
  290. package/src/components/messages/AssistantThinkingMessage.tsx +1 -0
  291. package/src/components/messages/AssistantToolUseMessage.tsx +1 -0
  292. package/src/components/messages/AttachmentMessage.tsx +2 -1
  293. package/src/components/messages/CollapsedReadSearchContent.tsx +2 -1
  294. package/src/components/messages/GroupedToolUseContent.tsx +1 -0
  295. package/src/components/messages/HighlightedThinkingText.tsx +1 -0
  296. package/src/components/messages/HookProgressMessage.tsx +1 -0
  297. package/src/components/messages/PlanApprovalMessage.tsx +1 -0
  298. package/src/components/messages/RateLimitMessage.tsx +1 -0
  299. package/src/components/messages/ShutdownMessage.tsx +1 -0
  300. package/src/components/messages/SystemAPIErrorMessage.tsx +1 -0
  301. package/src/components/messages/SystemTextMessage.tsx +2 -1
  302. package/src/components/messages/TaskAssignmentMessage.tsx +1 -0
  303. package/src/components/messages/UserAgentNotificationMessage.tsx +1 -0
  304. package/src/components/messages/UserBashInputMessage.tsx +1 -0
  305. package/src/components/messages/UserBashOutputMessage.tsx +1 -0
  306. package/src/components/messages/UserChannelMessage.tsx +1 -0
  307. package/src/components/messages/UserCommandMessage.tsx +1 -0
  308. package/src/components/messages/UserImageMessage.tsx +1 -0
  309. package/src/components/messages/UserLocalCommandOutputMessage.tsx +1 -0
  310. package/src/components/messages/UserMemoryInputMessage.tsx +1 -0
  311. package/src/components/messages/UserPlanMessage.tsx +1 -0
  312. package/src/components/messages/UserResourceUpdateMessage.tsx +1 -0
  313. package/src/components/messages/UserTeammateMessage.tsx +1 -0
  314. package/src/components/messages/UserTextMessage.tsx +1 -0
  315. package/src/components/messages/UserToolResultMessage/RejectedPlanMessage.tsx +1 -0
  316. package/src/components/messages/UserToolResultMessage/UserToolErrorMessage.tsx +1 -0
  317. package/src/components/messages/UserToolResultMessage/UserToolRejectMessage.tsx +1 -0
  318. package/src/components/messages/UserToolResultMessage/UserToolResultMessage.tsx +1 -0
  319. package/src/components/messages/UserToolResultMessage/utils.tsx +1 -0
  320. package/src/components/messages/nullRenderingAttachments.ts +1 -0
  321. package/src/components/messages/teamMemCollapsed.tsx +1 -0
  322. package/src/components/permissions/AskUserQuestionPermissionRequest/AskUserQuestionPermissionRequest.tsx +2 -1
  323. package/src/components/permissions/AskUserQuestionPermissionRequest/PreviewBox.tsx +1 -0
  324. package/src/components/permissions/AskUserQuestionPermissionRequest/QuestionNavigationBar.tsx +2 -1
  325. package/src/components/permissions/AskUserQuestionPermissionRequest/QuestionView.tsx +2 -1
  326. package/src/components/permissions/AskUserQuestionPermissionRequest/SubmitQuestionsView.tsx +1 -0
  327. package/src/components/permissions/BashPermissionRequest/BashPermissionRequest.tsx +1 -0
  328. package/src/components/permissions/BashPermissionRequest/bashToolUseOptions.tsx +1 -0
  329. package/src/components/permissions/ComputerUseApproval/ComputerUseApproval.tsx +2 -1
  330. package/src/components/permissions/EnterPlanModePermissionRequest/EnterPlanModePermissionRequest.tsx +1 -0
  331. package/src/components/permissions/ExitPlanModePermissionRequest/ExitPlanModePermissionRequest.tsx +1 -0
  332. package/src/components/permissions/FallbackPermissionRequest.tsx +1 -0
  333. package/src/components/permissions/FileEditPermissionRequest/FileEditPermissionRequest.tsx +1 -0
  334. package/src/components/permissions/FilePermissionDialog/FilePermissionDialog.tsx +1 -0
  335. package/src/components/permissions/FileWritePermissionRequest/FileWritePermissionRequest.tsx +1 -0
  336. package/src/components/permissions/FileWritePermissionRequest/FileWriteToolDiff.tsx +1 -0
  337. package/src/components/permissions/FilesystemPermissionRequest/FilesystemPermissionRequest.tsx +1 -0
  338. package/src/components/permissions/NotebookEditPermissionRequest/NotebookEditPermissionRequest.tsx +1 -0
  339. package/src/components/permissions/NotebookEditPermissionRequest/NotebookEditToolDiff.tsx +2 -1
  340. package/src/components/permissions/PermissionDecisionDebugInfo.tsx +2 -1
  341. package/src/components/permissions/PermissionDialog.tsx +1 -0
  342. package/src/components/permissions/PermissionExplanation.tsx +2 -1
  343. package/src/components/permissions/PermissionPrompt.tsx +2 -1
  344. package/src/components/permissions/PermissionRequest.tsx +1 -0
  345. package/src/components/permissions/PermissionRequestTitle.tsx +1 -0
  346. package/src/components/permissions/PermissionRuleExplanation.tsx +1 -0
  347. package/src/components/permissions/SandboxPermissionRequest.tsx +1 -0
  348. package/src/components/permissions/SedEditPermissionRequest/SedEditPermissionRequest.tsx +1 -0
  349. package/src/components/permissions/SkillPermissionRequest/SkillPermissionRequest.tsx +1 -0
  350. package/src/components/permissions/WebFetchPermissionRequest/WebFetchPermissionRequest.tsx +1 -0
  351. package/src/components/permissions/WorkerBadge.tsx +1 -0
  352. package/src/components/permissions/WorkerPendingPermission.tsx +1 -0
  353. package/src/components/permissions/rules/AddPermissionRules.tsx +1 -0
  354. package/src/components/permissions/rules/AddWorkspaceDirectory.tsx +2 -1
  355. package/src/components/permissions/rules/PermissionRuleDescription.tsx +1 -0
  356. package/src/components/permissions/rules/PermissionRuleInput.tsx +1 -0
  357. package/src/components/permissions/rules/PermissionRuleList.tsx +2 -1
  358. package/src/components/permissions/rules/RecentDenialsTab.tsx +1 -0
  359. package/src/components/permissions/rules/RemoveWorkspaceDirectory.tsx +1 -0
  360. package/src/components/permissions/rules/WorkspaceTab.tsx +1 -0
  361. package/src/components/sandbox/SandboxConfigTab.tsx +1 -0
  362. package/src/components/sandbox/SandboxDependenciesTab.tsx +1 -0
  363. package/src/components/sandbox/SandboxDoctorSection.tsx +1 -0
  364. package/src/components/sandbox/SandboxOverridesTab.tsx +1 -0
  365. package/src/components/sandbox/SandboxSettings.tsx +1 -0
  366. package/src/components/shell/ExpandShellOutputContext.tsx +1 -0
  367. package/src/components/shell/OutputLine.tsx +1 -0
  368. package/src/components/shell/ShellProgressMessage.tsx +1 -0
  369. package/src/components/shell/ShellTimeDisplay.tsx +1 -0
  370. package/src/components/skills/SkillsMenu.tsx +1 -0
  371. package/src/components/tasks/AsyncAgentDetailDialog.tsx +1 -0
  372. package/src/components/tasks/BackgroundTask.tsx +1 -0
  373. package/src/components/tasks/BackgroundTaskStatus.tsx +2 -1
  374. package/src/components/tasks/BackgroundTasksDialog.tsx +2 -1
  375. package/src/components/tasks/DreamDetailDialog.tsx +1 -0
  376. package/src/components/tasks/InProcessTeammateDetailDialog.tsx +1 -0
  377. package/src/components/tasks/RemoteSessionDetailDialog.tsx +2 -1
  378. package/src/components/tasks/RemoteSessionProgress.tsx +1 -0
  379. package/src/components/tasks/ShellDetailDialog.tsx +2 -1
  380. package/src/components/tasks/ShellProgress.tsx +1 -0
  381. package/src/components/tasks/taskStatusUtils.tsx +1 -0
  382. package/src/components/teams/TeamStatus.tsx +1 -0
  383. package/src/components/teams/TeamsDialog.tsx +2 -1
  384. package/src/components/ui/OrderedList.tsx +1 -0
  385. package/src/components/ui/OrderedListItem.tsx +1 -0
  386. package/src/components/ui/TreeSelect.tsx +2 -1
  387. package/src/components/wizard/WizardDialogLayout.tsx +1 -0
  388. package/src/components/wizard/WizardProvider.tsx +2 -1
  389. package/src/components/wizard/useWizard.ts +1 -0
  390. package/src/constants/betas.ts +1 -0
  391. package/src/constants/prompts.ts +1 -0
  392. package/src/context/QueuedMessageContext.tsx +1 -0
  393. package/src/context/fpsMetrics.tsx +1 -0
  394. package/src/context/mailbox.tsx +1 -0
  395. package/src/context/modalContext.tsx +1 -0
  396. package/src/context/overlayContext.tsx +1 -0
  397. package/src/context/promptOverlayContext.tsx +1 -0
  398. package/src/context/stats.tsx +1 -0
  399. package/src/context/voice.tsx +1 -0
  400. package/src/cost-tracker.ts +1 -0
  401. package/src/dialogLaunchers.tsx +1 -0
  402. package/src/entrypoints/agentSdkTypes.ts +4 -17
  403. package/src/entrypoints/cli.tsx +1 -0
  404. package/src/entrypoints/sdk/controlTypes.ts +86 -10
  405. package/src/entrypoints/sdk/coreTypes.generated.ts +99 -2
  406. package/src/entrypoints/sdk/runtimeTypes.ts +53 -18
  407. package/src/entrypoints/sdk/settingsTypes.generated.ts +2 -1
  408. package/src/hooks/notifs/useAntOrgWarningNotification.ts +1 -1
  409. package/src/hooks/notifs/useCanSwitchToExistingSubscription.tsx +1 -0
  410. package/src/hooks/notifs/useDeprecationWarningNotification.tsx +1 -0
  411. package/src/hooks/notifs/useFastModeNotification.tsx +1 -0
  412. package/src/hooks/notifs/useIDEStatusIndicator.tsx +1 -0
  413. package/src/hooks/notifs/useInstallMessages.tsx +1 -0
  414. package/src/hooks/notifs/useLspInitializationNotification.tsx +1 -0
  415. package/src/hooks/notifs/useMcpConnectivityStatus.tsx +1 -0
  416. package/src/hooks/notifs/useNpmDeprecationNotification.tsx +1 -0
  417. package/src/hooks/notifs/usePluginAutoupdateNotification.tsx +1 -0
  418. package/src/hooks/notifs/usePluginInstallationStatus.tsx +1 -0
  419. package/src/hooks/notifs/useRateLimitWarningNotification.tsx +1 -0
  420. package/src/hooks/useCanUseTool.tsx +2 -1
  421. package/src/hooks/useChromeExtensionNotification.tsx +1 -0
  422. package/src/hooks/useClaudeCodeHintRecommendation.tsx +1 -0
  423. package/src/hooks/useCommandKeybindings.tsx +1 -0
  424. package/src/hooks/useDiffData.ts +1 -0
  425. package/src/hooks/useIDEIntegration.tsx +1 -0
  426. package/src/hooks/useLspPluginRecommendation.tsx +1 -0
  427. package/src/hooks/useOfficialMarketplaceNotification.tsx +1 -0
  428. package/src/hooks/usePluginRecommendationBase.tsx +1 -0
  429. package/src/hooks/usePromptsFromClaudeInChrome.tsx +1 -0
  430. package/src/hooks/useRemoteSession.ts +1 -0
  431. package/src/hooks/useReplBridge.tsx +1 -0
  432. package/src/hooks/useSSHSession.ts +1 -0
  433. package/src/hooks/useTeleportResume.tsx +1 -0
  434. package/src/hooks/useTurnDiffs.ts +1 -0
  435. package/src/hooks/useTypeahead.tsx +1 -0
  436. package/src/hooks/useVoiceIntegration.tsx +1 -0
  437. package/src/ink/Ansi.tsx +1 -0
  438. package/src/ink/bidi.ts +1 -0
  439. package/src/ink/components/AlternateScreen.tsx +1 -0
  440. package/src/ink/components/Box.tsx +1 -0
  441. package/src/ink/components/Button.tsx +1 -0
  442. package/src/ink/components/ClockContext.tsx +1 -0
  443. package/src/ink/components/Link.tsx +1 -0
  444. package/src/ink/components/Newline.tsx +1 -0
  445. package/src/ink/components/NoSelect.tsx +1 -0
  446. package/src/ink/components/RawAnsi.tsx +1 -0
  447. package/src/ink/components/ScrollBox.tsx +1 -0
  448. package/src/ink/components/TerminalFocusContext.tsx +1 -0
  449. package/src/ink/components/Text.tsx +1 -0
  450. package/src/ink/ink.tsx +1 -0
  451. package/src/ink/reconciler.ts +1 -0
  452. package/src/ink/render-to-screen.ts +1 -0
  453. package/src/interactiveHelpers.tsx +4 -4
  454. package/src/keybindings/KeybindingContext.tsx +2 -1
  455. package/src/keybindings/KeybindingProviderSetup.tsx +1 -0
  456. package/src/keybindings/parser.ts +1 -0
  457. package/src/keybindings/template.ts +1 -0
  458. package/src/keybindings/validate.ts +1 -0
  459. package/src/main.tsx +5 -7
  460. package/src/memdir/findRelevantMemories.ts +1 -0
  461. package/src/native-ts/color-diff/index.ts +1 -0
  462. package/src/proactive/index.ts +26 -1
  463. package/src/proactive/useProactive.ts +13 -1
  464. package/src/query/stopHooks.ts +1 -0
  465. package/src/query.ts +1 -0
  466. package/src/remote/SessionsWebSocket.ts +1 -0
  467. package/src/screens/Doctor.tsx +2 -1
  468. package/src/screens/REPL.tsx +13 -6
  469. package/src/screens/ResumeConversation.tsx +1 -0
  470. package/src/services/AgentSummary/agentSummary.ts +1 -0
  471. package/src/services/PromptSuggestion/promptSuggestion.ts +1 -0
  472. package/src/services/api/claude.ts +33 -31
  473. package/src/services/api/client.ts +34 -31
  474. package/src/services/api/errors.ts +1 -0
  475. package/src/services/api/logging.ts +1 -0
  476. package/src/services/api/openaiShim.ts +35 -8
  477. package/src/services/api/withRetry.ts +1 -0
  478. package/src/services/autoDream/autoDream.ts +1 -0
  479. package/src/services/claudeAiLimits.ts +1 -0
  480. package/src/services/compact/autoCompact.ts +1 -0
  481. package/src/services/compact/cachedMicrocompact.ts +56 -4
  482. package/src/services/compact/compact.ts +1 -0
  483. package/src/services/compact/microCompact.ts +1 -0
  484. package/src/services/compact/postCompactCleanup.ts +1 -0
  485. package/src/services/compact/reactiveCompact.ts +16 -1
  486. package/src/services/compact/sessionMemoryCompact.ts +1 -0
  487. package/src/services/compact/snipCompact.ts +18 -1
  488. package/src/services/compact/snipProjection.ts +6 -1
  489. package/src/services/contextCollapse/index.ts +33 -1
  490. package/src/services/extractMemories/extractMemories.ts +1 -0
  491. package/src/services/mcp/MCPConnectionManager.tsx +1 -0
  492. package/src/services/mcp/channelAllowlist.ts +1 -1
  493. package/src/services/mcp/channelNotification.ts +90 -4
  494. package/src/services/mcp/channelPermissions.ts +1 -1
  495. package/src/services/mcp/client.ts +1 -0
  496. package/src/services/mcp/useManageMCPConnections.ts +5 -3
  497. package/src/services/notifier.ts +1 -0
  498. package/src/services/rateLimitMocking.ts +1 -0
  499. package/src/services/skillSearch/localSearch.ts +1 -1
  500. package/src/services/skillSearch/prefetch.ts +10 -1
  501. package/src/services/tips/tipRegistry.ts +1 -0
  502. package/src/services/toolUseSummary/toolUseSummaryGenerator.ts +1 -0
  503. package/src/services/tools/StreamingToolExecutor.ts +1 -0
  504. package/src/services/tools/toolOrchestration.ts +1 -0
  505. package/src/services/vcr.ts +1 -0
  506. package/src/services/voice.ts +1 -0
  507. package/src/setup.ts +1 -0
  508. package/src/skills/bundled/claudeInChrome.ts +1 -0
  509. package/src/skills/bundled/keybindings.ts +1 -0
  510. package/src/skills/bundled/skillify.ts +1 -0
  511. package/src/state/AppState.tsx +10 -7
  512. package/src/tasks/LocalMainSessionTask.ts +1 -0
  513. package/src/tasks/LocalShellTask/LocalShellTask.tsx +1 -0
  514. package/src/tasks/LocalShellTask/killShellTasks.ts +1 -0
  515. package/src/tasks/RemoteAgentTask/RemoteAgentTask.tsx +1 -0
  516. package/src/tools/AgentTool/AgentTool.tsx +30 -3
  517. package/src/tools/AgentTool/UI.tsx +2 -1
  518. package/src/tools/AgentTool/agentToolUtils.ts +1 -0
  519. package/src/tools/AgentTool/builtInAgents.ts +1 -0
  520. package/src/tools/AgentTool/forkSubagent.ts +1 -0
  521. package/src/tools/AgentTool/loadAgentsDir.ts +9 -0
  522. package/src/tools/AgentTool/runAgent.ts +2 -0
  523. package/src/tools/AskUserQuestionTool/AskUserQuestionTool.tsx +1 -0
  524. package/src/tools/BashTool/BashTool.tsx +1 -0
  525. package/src/tools/BashTool/BashToolResultMessage.tsx +1 -0
  526. package/src/tools/BashTool/UI.tsx +1 -0
  527. package/src/tools/BriefTool/UI.tsx +1 -0
  528. package/src/tools/FileEditTool/UI.tsx +1 -0
  529. package/src/tools/FileEditTool/utils.ts +1 -0
  530. package/src/tools/FileReadTool/FileReadTool.ts +1 -0
  531. package/src/tools/FileReadTool/imageProcessor.ts +1 -0
  532. package/src/tools/FileWriteTool/UI.tsx +2 -1
  533. package/src/tools/GrepTool/UI.tsx +1 -0
  534. package/src/tools/LSPTool/UI.tsx +1 -0
  535. package/src/tools/MCPTool/UI.tsx +1 -0
  536. package/src/tools/NotebookEditTool/NotebookEditTool.ts +1 -0
  537. package/src/tools/NotebookEditTool/UI.tsx +1 -0
  538. package/src/tools/PowerShellTool/PowerShellTool.tsx +1 -0
  539. package/src/tools/SendMessageTool/SendMessageTool.ts +1 -0
  540. package/src/tools/SkillTool/SkillTool.ts +1 -0
  541. package/src/tools/TaskOutputTool/TaskOutputTool.tsx +1 -0
  542. package/src/tools/TaskStopTool/UI.tsx +1 -0
  543. package/src/tools/ToolSearchTool/prompt.ts +1 -0
  544. package/src/tools/TungstenTool/TungstenLiveMonitor.ts +3 -0
  545. package/src/tools/WebBrowserTool/WebBrowserPanel.ts +3 -1
  546. package/src/tools/WebFetchTool/utils.ts +1 -0
  547. package/src/tools/WebSearchTool/WebSearchTool.ts +1 -0
  548. package/src/tools/WorkflowTool/createWorkflowCommand.ts +3 -1
  549. package/src/tools/testing/TestingPermissionTool.tsx +1 -0
  550. package/src/tools/utils.ts +1 -0
  551. package/src/types/commands-js.d.ts +13 -0
  552. package/src/types/diff.d.ts +1 -0
  553. package/src/types/hooks.ts +1 -0
  554. package/src/types/macro.d.ts +15 -0
  555. package/src/types/markdown.d.ts +4 -0
  556. package/src/types/message.ts +56 -107
  557. package/src/types/react-compiler-runtime.d.ts +4 -0
  558. package/src/types/utils.ts +3 -3
  559. package/src/utils/advisor.ts +1 -0
  560. package/src/utils/asciicast.ts +1 -0
  561. package/src/utils/attachments.ts +1 -0
  562. package/src/utils/attribution.ts +1 -0
  563. package/src/utils/autoRunIssue.tsx +1 -0
  564. package/src/utils/claudeInChrome/mcpServer.ts +1 -0
  565. package/src/utils/claudeInChrome/setup.ts +1 -0
  566. package/src/utils/claudemd.ts +1 -0
  567. package/src/utils/cleanup.ts +1 -0
  568. package/src/utils/cliHighlight.ts +1 -0
  569. package/src/utils/collapseReadSearch.ts +1 -0
  570. package/src/utils/computerUse/executor.ts +1 -0
  571. package/src/utils/computerUse/gates.ts +1 -0
  572. package/src/utils/computerUse/hostAdapter.ts +1 -0
  573. package/src/utils/computerUse/inputLoader.ts +1 -0
  574. package/src/utils/computerUse/mcpServer.ts +1 -0
  575. package/src/utils/computerUse/setup.ts +1 -0
  576. package/src/utils/computerUse/swiftLoader.ts +1 -0
  577. package/src/utils/computerUse/wrapper.tsx +2 -1
  578. package/src/utils/context.ts +1 -0
  579. package/src/utils/contextAnalysis.ts +1 -0
  580. package/src/utils/conversationRecovery.ts +1 -0
  581. package/src/utils/deepLink/protocolHandler.ts +1 -0
  582. package/src/utils/diff.ts +1 -0
  583. package/src/utils/effort.ts +1 -0
  584. package/src/utils/envUtils.ts +1 -0
  585. package/src/utils/execFileNoThrowPortable.ts +1 -0
  586. package/src/utils/fileHistory.ts +1 -0
  587. package/src/utils/filePersistence/filePersistence.ts +1 -0
  588. package/src/utils/filePersistence/outputsScanner.ts +1 -0
  589. package/src/utils/gitDiff.ts +1 -0
  590. package/src/utils/groupToolUses.ts +1 -0
  591. package/src/utils/hooks/hooksConfigManager.ts +1 -0
  592. package/src/utils/hooks/skillImprovement.ts +1 -0
  593. package/src/utils/hooks.ts +1 -0
  594. package/src/utils/imagePaste.ts +1 -0
  595. package/src/utils/log.ts +1 -0
  596. package/src/utils/logoV2Utils.ts +6 -6
  597. package/src/utils/messageQueueManager.ts +1 -0
  598. package/src/utils/messages.ts +122 -100
  599. package/src/utils/model/agent.ts +43 -2
  600. package/src/utils/model/configs.ts +1 -1
  601. package/src/utils/model/deprecation.ts +1 -0
  602. package/src/utils/model/fetchModels.ts +11 -1
  603. package/src/utils/model/model.ts +31 -0
  604. package/src/utils/model/modelCapabilities.ts +1 -0
  605. package/src/utils/model/modelOptions.ts +68 -14
  606. package/src/utils/model/modelStrings.ts +1 -0
  607. package/src/utils/model/platformProfiles.ts +524 -0
  608. package/src/utils/model/thirdPartyProviders.ts +158 -15
  609. package/src/utils/modelCost.ts +1 -0
  610. package/src/utils/notebook.ts +1 -0
  611. package/src/utils/permissions/classifierDecision.ts +1 -0
  612. package/src/utils/permissions/pathValidation.ts +1 -0
  613. package/src/utils/permissions/permissionExplainer.ts +1 -0
  614. package/src/utils/plugins/loadPluginHooks.ts +1 -0
  615. package/src/utils/plugins/lspPluginIntegration.ts +1 -0
  616. package/src/utils/plugins/pluginLoader.ts +1 -0
  617. package/src/utils/preflightChecks.tsx +2 -1
  618. package/src/utils/processUserInput/processSlashCommand.tsx +13 -3
  619. package/src/utils/queryHelpers.ts +1 -0
  620. package/src/utils/readFileInRange.ts +1 -0
  621. package/src/utils/sandbox/sandbox-adapter.ts +24 -22
  622. package/src/utils/sessionFileAccessHooks.ts +1 -0
  623. package/src/utils/sessionRestore.ts +1 -0
  624. package/src/utils/sessionStorage.ts +84 -46
  625. package/src/utils/settings/types.ts +72 -0
  626. package/src/utils/shell/prefix.ts +1 -0
  627. package/src/utils/sideQuery.ts +1 -0
  628. package/src/utils/sliceAnsi.ts +1 -0
  629. package/src/utils/staticRender.tsx +1 -0
  630. package/src/utils/stats.ts +1 -0
  631. package/src/utils/status.tsx +1 -0
  632. package/src/utils/swarm/It2SetupPrompt.tsx +2 -1
  633. package/src/utils/swarm/teammateModel.ts +1 -0
  634. package/src/utils/taskSummary.ts +6 -1
  635. package/src/utils/textHighlighting.ts +1 -0
  636. package/src/utils/thinking.ts +1 -0
  637. package/src/utils/toolResultStorage.ts +1 -0
  638. package/src/utils/transcriptSearch.ts +1 -0
  639. package/src/utils/worktree.ts +1 -0
  640. package/stubs/@anthropic-ai/mcpb/index.d.ts +23 -1
  641. package/stubs/@anthropic-ai/sandbox-runtime/index.d.ts +39 -1
  642. package/.gitignore.bak +0 -11
  643. package/bin/mumuclaw +0 -154
  644. package/bin/opencc +0 -50
  645. package/src/channels/heartbeat-channel.mjs +0 -280
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import { c as _c } from "react/compiler-runtime";
2
3
  import { feature } from 'bun:bundle';
3
4
  import { dirname } from 'path';
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  /**
2
3
  * Periodic background summarization for coordinator mode sub-agents.
3
4
  *
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import { getIsNonInteractiveSession } from '../../bootstrap/state.js'
2
3
  import type { AppState } from '../../state/AppState.js'
3
4
  import type { Message } from '../../types/message.js'
@@ -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: BetaMessageStreamParams['thinking'] | undefined = undefined
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
- } satisfies BetaMessageStreamParams['thinking']
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: BetaMessageStreamParams['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).requestID ?? 'unknown'
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.requestID : undefined) ||
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.requestID : undefined) ||
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 BetaUsage).cache_creation?.ephemeral_1h_input_tokens ??
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 BetaUsage).cache_creation?.ephemeral_5m_input_tokens ??
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 BetaUsage).speed ?? usage.speed,
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(): ClientOptions['logger'] {
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 ClientOptions['fetchOptions'],
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: ConstructorParameters<typeof AnthropicBedrock>[0] = {
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: ConstructorParameters<typeof AnthropicFoundry>[0] = {
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: ConstructorParameters<typeof AnthropicVertex>[0] = {
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: forceThirdPartyKey
321
- ? process.env.ANTHROPIC_AUTH_TOKEN // mumucc: 第三方 provider,用 AUTH_TOKEN 作为 x-api-key
322
- : (isClaudeAISubscriber() ? null : apiKey || getAnthropicApiKey()),
323
- authToken: forceThirdPartyKey
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 getAnthropicClientForModel({
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
- // Check if this is a third-party provider model
446
- if (isThirdPartyModel(model)) {
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:thirdParty] Failed to resolve third-party model "${model}", falling back to standard client`,
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
+ }
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import {
2
3
  APIConnectionError,
3
4
  APIConnectionTimeoutError,
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import { feature } from 'bun:bundle'
2
3
  import { APIError } from '@anthropic-ai/sdk'
3
4
  import type {
@@ -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?: { apiKey?: string; baseUrl?: string },
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
- if (!credentials.apiKey) {
641
- const authHint = credentials.authPath
642
- ? ` or place a Codex auth.json at ${credentials.authPath}`
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 (!credentials.accountId) {
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?: { apiKey?: string; baseUrl?: string },
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
- { apiKey: options.apiKey, baseUrl: options.baseUrl },
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 {
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import { feature } from 'bun:bundle'
2
3
  import type Anthropic from '@anthropic-ai/sdk'
3
4
  import {
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  // biome-ignore-all assist/source/organizeImports: ANT-ONLY import markers must not be reordered
2
3
  // Background memory consolidation. Fires the /dream prompt as a forked
3
4
  // subagent when time-gate passes AND enough sessions have accumulated.
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import { APIError } from '@anthropic-ai/sdk'
2
3
  import type { MessageParam } from '@anthropic-ai/sdk/resources/index.mjs'
3
4
  import isEqual from 'lodash-es/isEqual.js'
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import { feature } from 'bun:bundle'
2
3
  import { markPostCompaction } from 'src/bootstrap/state.js'
3
4
  import { getSdkBetas } from '../../bootstrap/state.js'
@@ -2,17 +2,69 @@
2
2
  // This module is only used by ant builds
3
3
 
4
4
  export interface CachedMCState {
5
- // Placeholder
5
+ pinnedEdits: PinnedCacheEdits[]
6
+ registeredTools: Set<string>
7
+ toolOrder: string[]
8
+ deletedRefs: Set<string>
6
9
  }
7
10
 
8
11
  export interface CacheEditsBlock {
9
- // Placeholder
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,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import { feature } from 'bun:bundle'
2
3
  import type { UUID } from 'crypto'
3
4
  import uniqBy from 'lodash-es/uniqBy.js'
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import { feature } from 'bun:bundle'
2
3
  import type { ToolResultBlockParam } from '@anthropic-ai/sdk/resources/index.mjs'
3
4
  import type { QuerySource } from '../../constants/querySource.js'
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import { feature } from 'bun:bundle'
2
3
  import type { QuerySource } from '../../constants/querySource.js'
3
4
  import { clearSystemPromptSections } from '../../constants/systemPromptSections.js'
@@ -1,2 +1,17 @@
1
1
  // AUTO-GENERATED STUB — module missing from leaked source
2
- export {}
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,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  /**
2
3
  * EXPERIMENT: Session memory compaction
3
4
  */
@@ -1,2 +1,19 @@
1
1
  // AUTO-GENERATED STUB — module missing from leaked source
2
- export {}
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,7 @@
1
1
  // AUTO-GENERATED STUB — module missing from leaked source
2
- export {}
2
+
3
+ import type { Message } from '../../types/message.js'
4
+
5
+ export function projectSnippedView<T extends Message>(messages: T[]): T[] {
6
+ return messages
7
+ }
@@ -1,2 +1,34 @@
1
1
  // AUTO-GENERATED STUB — module missing from leaked source
2
- export {}
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
+ }
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  /**
2
3
  * Extracts durable memories from the current session transcript
3
4
  * and writes them to the auto-memory directory (~/.mumucc/projects/<path>/memory/).
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  import { c as _c } from "react/compiler-runtime";
2
3
  import React, { createContext, type ReactNode, useContext, useMemo } from 'react';
3
4
  import type { Command } from '../../commands.js';