@machina.ai/cell-cli 1.41.1-rc2 → 1.45.1-rc1
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/dist/index.js +17 -17
- package/dist/index.js.map +1 -1
- package/dist/package.json +4 -4
- package/dist/src/acp/README.md +81 -0
- package/dist/src/acp/{commandHandler.d.ts → acpCommandHandler.d.ts} +1 -1
- package/dist/src/acp/{commandHandler.js → acpCommandHandler.js} +2 -2
- package/dist/src/acp/acpCommandHandler.js.map +1 -0
- package/dist/src/acp/{commandHandler.test.js → acpCommandHandler.test.js} +4 -5
- package/dist/src/acp/acpCommandHandler.test.js.map +1 -0
- package/dist/src/acp/acpErrors.d.ts +1 -1
- package/dist/src/acp/acpErrors.js +1 -1
- package/dist/src/acp/acpErrors.test.d.ts +1 -1
- package/dist/src/acp/acpErrors.test.js +1 -1
- package/dist/src/acp/{fileSystemService.d.ts → acpFileSystemService.d.ts} +1 -1
- package/dist/src/acp/{fileSystemService.js → acpFileSystemService.js} +7 -4
- package/dist/src/acp/acpFileSystemService.js.map +1 -0
- package/dist/src/acp/{fileSystemService.test.js → acpFileSystemService.test.js} +3 -3
- package/dist/src/acp/acpFileSystemService.test.js.map +1 -0
- package/dist/src/acp/acpResume.test.d.ts +1 -1
- package/dist/src/acp/acpResume.test.js +12 -7
- package/dist/src/acp/acpResume.test.js.map +1 -1
- package/dist/src/acp/acpRpcDispatcher.d.ts +28 -0
- package/dist/src/acp/acpRpcDispatcher.js +177 -0
- package/dist/src/acp/acpRpcDispatcher.js.map +1 -0
- package/dist/src/acp/acpRpcDispatcher.test.d.ts +6 -0
- package/dist/src/acp/acpRpcDispatcher.test.js +238 -0
- package/dist/src/acp/acpRpcDispatcher.test.js.map +1 -0
- package/dist/src/acp/acpSession.d.ts +36 -0
- package/dist/src/acp/{acpClient.js → acpSession.js} +333 -781
- package/dist/src/acp/acpSession.js.map +1 -0
- package/dist/src/acp/acpSession.test.d.ts +6 -0
- package/dist/src/acp/acpSession.test.js +739 -0
- package/dist/src/acp/acpSession.test.js.map +1 -0
- package/dist/src/acp/acpSessionManager.d.ts +30 -0
- package/dist/src/acp/acpSessionManager.js +206 -0
- package/dist/src/acp/acpSessionManager.js.map +1 -0
- package/dist/src/acp/acpSessionManager.test.d.ts +6 -0
- package/dist/src/acp/acpSessionManager.test.js +283 -0
- package/dist/src/acp/acpSessionManager.test.js.map +1 -0
- package/dist/src/acp/acpStdioTransport.d.ts +9 -0
- package/dist/src/acp/acpStdioTransport.js +23 -0
- package/dist/src/acp/acpStdioTransport.js.map +1 -0
- package/dist/src/acp/acpUtils.d.ts +56 -0
- package/dist/src/acp/acpUtils.js +288 -0
- package/dist/src/acp/acpUtils.js.map +1 -0
- package/dist/src/acp/commands/commandRegistry.d.ts +1 -1
- package/dist/src/acp/commands/commandRegistry.js +1 -1
- package/dist/src/acp/commands/extensions.d.ts +1 -1
- package/dist/src/acp/commands/extensions.js +1 -1
- package/dist/src/acp/commands/extensions.test.d.ts +6 -0
- package/dist/src/acp/commands/extensions.test.js +70 -0
- package/dist/src/acp/commands/extensions.test.js.map +1 -0
- package/dist/src/acp/commands/init.d.ts +1 -1
- package/dist/src/acp/commands/init.js +1 -1
- package/dist/src/acp/commands/memory.d.ts +3 -8
- package/dist/src/acp/commands/memory.js +18 -47
- package/dist/src/acp/commands/memory.js.map +1 -1
- package/dist/src/acp/commands/restore.d.ts +1 -1
- package/dist/src/acp/commands/restore.js +1 -1
- package/dist/src/acp/commands/restore.test.js +7 -13
- package/dist/src/acp/commands/restore.test.js.map +1 -1
- package/dist/src/acp/commands/types.d.ts +1 -1
- package/dist/src/acp/commands/types.js +1 -1
- package/dist/src/commands/extensions/configure.test.js +6 -2
- package/dist/src/commands/extensions/configure.test.js.map +1 -1
- package/dist/src/commands/extensions/utils.d.ts +1 -1
- package/dist/src/commands/extensions/utils.js +1 -2
- package/dist/src/commands/extensions/utils.js.map +1 -1
- package/dist/src/commands/mcp/list.js +19 -5
- package/dist/src/commands/mcp/list.js.map +1 -1
- package/dist/src/commands/mcp/list.test.js +285 -100
- package/dist/src/commands/mcp/list.test.js.map +1 -1
- package/dist/src/config/auth.d.ts +1 -1
- package/dist/src/config/auth.js +4 -3
- package/dist/src/config/auth.js.map +1 -1
- package/dist/src/config/auth.test.js +11 -4
- package/dist/src/config/auth.test.js.map +1 -1
- package/dist/src/config/config.d.ts +4 -0
- package/dist/src/config/config.js +65 -47
- package/dist/src/config/config.js.map +1 -1
- package/dist/src/config/config.test.js +25 -106
- package/dist/src/config/config.test.js.map +1 -1
- package/dist/src/config/extension-manager-agents.test.js +2 -0
- package/dist/src/config/extension-manager-agents.test.js.map +1 -1
- package/dist/src/config/extension-manager-hydration.test.js +2 -0
- package/dist/src/config/extension-manager-hydration.test.js.map +1 -1
- package/dist/src/config/extension-manager-scope.test.js +4 -2
- package/dist/src/config/extension-manager-scope.test.js.map +1 -1
- package/dist/src/config/extension-manager-themes.spec.js +2 -0
- package/dist/src/config/extension-manager-themes.spec.js.map +1 -1
- package/dist/src/config/extension-manager.d.ts +2 -2
- package/dist/src/config/extension-manager.js +2 -1
- package/dist/src/config/extension-manager.js.map +1 -1
- package/dist/src/config/extensionRegistryClient.js +0 -1
- package/dist/src/config/extensionRegistryClient.js.map +1 -1
- package/dist/src/config/extensions/consent.d.ts +1 -1
- package/dist/src/config/extensions/consent.js +5 -4
- package/dist/src/config/extensions/consent.js.map +1 -1
- package/dist/src/config/extensions/consent.test.js +22 -0
- package/dist/src/config/extensions/consent.test.js.map +1 -1
- package/dist/src/config/extensions/extensionEnablement.js +4 -2
- package/dist/src/config/extensions/extensionEnablement.js.map +1 -1
- package/dist/src/config/extensions/extensionSettings.d.ts +3 -3
- package/dist/src/config/extensions/extensionSettings.js +7 -3
- package/dist/src/config/extensions/extensionSettings.js.map +1 -1
- package/dist/src/config/extensions/variables.js +1 -3
- package/dist/src/config/extensions/variables.js.map +1 -1
- package/dist/src/config/footerItems.d.ts +4 -0
- package/dist/src/config/footerItems.js +6 -0
- package/dist/src/config/footerItems.js.map +1 -1
- package/dist/src/config/footerItems.test.js +1 -0
- package/dist/src/config/footerItems.test.js.map +1 -1
- package/dist/src/config/mcp/mcpServerEnablement.js +1 -1
- package/dist/src/config/mcp/mcpServerEnablement.js.map +1 -1
- package/dist/src/config/mutual-exclusivity.test.js +33 -0
- package/dist/src/config/mutual-exclusivity.test.js.map +1 -0
- package/dist/src/config/settings-env-isolation.test.d.ts +6 -0
- package/dist/src/config/settings-env-isolation.test.js +188 -0
- package/dist/src/config/settings-env-isolation.test.js.map +1 -0
- package/dist/src/config/settings.d.ts +15 -1
- package/dist/src/config/settings.js +85 -10
- package/dist/src/config/settings.js.map +1 -1
- package/dist/src/config/settings.test.js +167 -0
- package/dist/src/config/settings.test.js.map +1 -1
- package/dist/src/config/settingsSchema.d.ts +56 -25
- package/dist/src/config/settingsSchema.js +66 -27
- package/dist/src/config/settingsSchema.js.map +1 -1
- package/dist/src/config/settingsSchema.test.js +8 -0
- package/dist/src/config/settingsSchema.test.js.map +1 -1
- package/dist/src/config/skipExtensions.test.d.ts +6 -0
- package/dist/src/config/skipExtensions.test.js +49 -0
- package/dist/src/config/skipExtensions.test.js.map +1 -0
- package/dist/src/config/workspace-policy-cli.test.js +0 -5
- package/dist/src/config/workspace-policy-cli.test.js.map +1 -1
- package/dist/src/gemini.d.ts +2 -2
- package/dist/src/gemini.js +108 -30
- package/dist/src/gemini.js.map +1 -1
- package/dist/src/gemini.test.js +147 -16
- package/dist/src/gemini.test.js.map +1 -1
- package/dist/src/gemini_cleanup.test.js +1 -1
- package/dist/src/gemini_cleanup.test.js.map +1 -1
- package/dist/src/generated/git-commit.d.ts +2 -2
- package/dist/src/generated/git-commit.js +2 -2
- package/dist/src/interactiveCli.js +1 -1
- package/dist/src/interactiveCli.js.map +1 -1
- package/dist/src/nonInteractiveCli.d.ts +7 -0
- package/dist/src/nonInteractiveCli.js +56 -6
- package/dist/src/nonInteractiveCli.js.map +1 -1
- package/dist/src/nonInteractiveCli.test.js +253 -18
- package/dist/src/nonInteractiveCli.test.js.map +1 -1
- package/dist/src/nonInteractiveCliAgentSession.d.ts +7 -0
- package/dist/src/nonInteractiveCliAgentSession.js +22 -3
- package/dist/src/nonInteractiveCliAgentSession.js.map +1 -1
- package/dist/src/nonInteractiveCliAgentSession.test.js +200 -20
- package/dist/src/nonInteractiveCliAgentSession.test.js.map +1 -1
- package/dist/src/output-redirection.test.d.ts +6 -0
- package/dist/src/output-redirection.test.js +77 -0
- package/dist/src/output-redirection.test.js.map +1 -0
- package/dist/src/patches/http-proxy-agent.d.ts +6 -0
- package/dist/src/patches/http-proxy-agent.js +8 -0
- package/dist/src/patches/http-proxy-agent.js.map +1 -0
- package/dist/src/patches/https-proxy-agent.d.ts +6 -0
- package/dist/src/patches/https-proxy-agent.js +8 -0
- package/dist/src/patches/https-proxy-agent.js.map +1 -0
- package/dist/src/services/BuiltinCommandLoader.js +5 -1
- package/dist/src/services/BuiltinCommandLoader.js.map +1 -1
- package/dist/src/services/BuiltinCommandLoader.test.js +6 -1
- package/dist/src/services/BuiltinCommandLoader.test.js.map +1 -1
- package/dist/src/services/FileCommandLoader.d.ts +21 -0
- package/dist/src/services/FileCommandLoader.js +58 -6
- package/dist/src/services/FileCommandLoader.js.map +1 -1
- package/dist/src/services/FileCommandLoader.test.js +27 -1
- package/dist/src/services/FileCommandLoader.test.js.map +1 -1
- package/dist/src/test-utils/mockCommandContext.js +6 -1
- package/dist/src/test-utils/mockCommandContext.js.map +1 -1
- package/dist/src/test-utils/mockConfig.js +0 -3
- package/dist/src/test-utils/mockConfig.js.map +1 -1
- package/dist/src/test-utils/render.js +1 -0
- package/dist/src/test-utils/render.js.map +1 -1
- package/dist/src/test-utils/settings.d.ts +1 -0
- package/dist/src/test-utils/settings.js.map +1 -1
- package/dist/src/ui/AppContainer.js +60 -73
- package/dist/src/ui/AppContainer.js.map +1 -1
- package/dist/src/ui/AppContainer.test.js +101 -1
- package/dist/src/ui/AppContainer.test.js.map +1 -1
- package/dist/src/ui/auth/AuthDialog.js +6 -3
- package/dist/src/ui/auth/AuthDialog.js.map +1 -1
- package/dist/src/ui/auth/AuthDialog.test.js +33 -10
- package/dist/src/ui/auth/AuthDialog.test.js.map +1 -1
- package/dist/src/ui/auth/LoginRestartDialog.d.ts +13 -0
- package/dist/src/ui/auth/{LoginWithGoogleRestartDialog.js → LoginRestartDialog.js} +7 -6
- package/dist/src/ui/auth/LoginRestartDialog.js.map +1 -0
- package/dist/src/ui/auth/LoginRestartDialog.test.d.ts +6 -0
- package/dist/src/ui/auth/{LoginWithGoogleRestartDialog.test.js → LoginRestartDialog.test.js} +13 -8
- package/dist/src/ui/auth/LoginRestartDialog.test.js.map +1 -0
- package/dist/src/ui/auth/useAuth.d.ts +1 -1
- package/dist/src/ui/auth/useAuth.js +2 -2
- package/dist/src/ui/auth/useAuth.js.map +1 -1
- package/dist/src/ui/auth/useAuth.test.js +10 -10
- package/dist/src/ui/auth/useAuth.test.js.map +1 -1
- package/dist/src/ui/commands/agentsCommand.js +19 -2
- package/dist/src/ui/commands/agentsCommand.js.map +1 -1
- package/dist/src/ui/commands/agentsCommand.test.js +34 -3
- package/dist/src/ui/commands/agentsCommand.test.js.map +1 -1
- package/dist/src/ui/commands/bugCommand.js +36 -0
- package/dist/src/ui/commands/bugCommand.js.map +1 -1
- package/dist/src/ui/commands/bugCommand.test.js +106 -1
- package/dist/src/ui/commands/bugCommand.test.js.map +1 -1
- package/dist/src/ui/commands/bugMemoryCommand.d.ts +7 -0
- package/dist/src/ui/commands/bugMemoryCommand.js +62 -0
- package/dist/src/ui/commands/bugMemoryCommand.js.map +1 -0
- package/dist/src/ui/commands/bugMemoryCommand.test.js +100 -0
- package/dist/src/ui/commands/bugMemoryCommand.test.js.map +1 -0
- package/dist/src/ui/commands/commandsCommand.js +52 -4
- package/dist/src/ui/commands/commandsCommand.js.map +1 -1
- package/dist/src/ui/commands/commandsCommand.test.js +75 -2
- package/dist/src/ui/commands/commandsCommand.test.js.map +1 -1
- package/dist/src/ui/commands/compressCommand.js +28 -26
- package/dist/src/ui/commands/compressCommand.js.map +1 -1
- package/dist/src/ui/commands/compressCommand.test.js +5 -0
- package/dist/src/ui/commands/compressCommand.test.js.map +1 -1
- package/dist/src/ui/commands/directoryCommand.js +2 -2
- package/dist/src/ui/commands/directoryCommand.js.map +1 -1
- package/dist/src/ui/commands/directoryCommand.test.js +1 -0
- package/dist/src/ui/commands/directoryCommand.test.js.map +1 -1
- package/dist/src/ui/commands/exportSessionCommand.d.ts +7 -0
- package/dist/src/ui/commands/exportSessionCommand.js +74 -0
- package/dist/src/ui/commands/exportSessionCommand.js.map +1 -0
- package/dist/src/ui/commands/exportSessionCommand.test.js +100 -0
- package/dist/src/ui/commands/exportSessionCommand.test.js.map +1 -0
- package/dist/src/ui/commands/extensionsCommand.js +1 -0
- package/dist/src/ui/commands/extensionsCommand.js.map +1 -1
- package/dist/src/ui/commands/extensionsCommand.test.js +4 -0
- package/dist/src/ui/commands/extensionsCommand.test.js.map +1 -1
- package/dist/src/ui/commands/memoryCommand.d.ts +2 -1
- package/dist/src/ui/commands/memoryCommand.js +110 -117
- package/dist/src/ui/commands/memoryCommand.js.map +1 -1
- package/dist/src/ui/commands/memoryCommand.test.js +18 -71
- package/dist/src/ui/commands/memoryCommand.test.js.map +1 -1
- package/dist/src/ui/commands/quitCommand.js +3 -1
- package/dist/src/ui/commands/quitCommand.js.map +1 -1
- package/dist/src/ui/commands/quitCommand.test.js +46 -1
- package/dist/src/ui/commands/quitCommand.test.js.map +1 -1
- package/dist/src/ui/commands/rewindCommand.js.map +1 -1
- package/dist/src/ui/commands/skillsCommand.js +1 -1
- package/dist/src/ui/commands/skillsCommand.js.map +1 -1
- package/dist/src/ui/commands/skillsCommand.test.js +19 -0
- package/dist/src/ui/commands/skillsCommand.test.js.map +1 -1
- package/dist/src/ui/commands/types.d.ts +3 -1
- package/dist/src/ui/commands/types.js.map +1 -1
- package/dist/src/ui/components/AsciiArt.d.ts +6 -6
- package/dist/src/ui/components/AsciiArt.js +6 -6
- package/dist/src/ui/components/AskUserDialog.js +3 -1
- package/dist/src/ui/components/AskUserDialog.js.map +1 -1
- package/dist/src/ui/components/AskUserDialog.test.js +43 -0
- package/dist/src/ui/components/AskUserDialog.test.js.map +1 -1
- package/dist/src/ui/components/Composer.js +1 -1
- package/dist/src/ui/components/Composer.js.map +1 -1
- package/dist/src/ui/components/DialogManager.js +4 -0
- package/dist/src/ui/components/DialogManager.js.map +1 -1
- package/dist/src/ui/components/EditorSettingsDialog.js +3 -6
- package/dist/src/ui/components/EditorSettingsDialog.js.map +1 -1
- package/dist/src/ui/components/Footer.js +6 -0
- package/dist/src/ui/components/Footer.js.map +1 -1
- package/dist/src/ui/components/FooterConfigDialog.js +1 -0
- package/dist/src/ui/components/FooterConfigDialog.js.map +1 -1
- package/dist/src/ui/components/FooterConfigDialog.test.js +1 -1
- package/dist/src/ui/components/FooterConfigDialog.test.js.map +1 -1
- package/dist/src/ui/components/HistoryItemDisplay.js +3 -1
- package/dist/src/ui/components/HistoryItemDisplay.js.map +1 -1
- package/dist/src/ui/components/HistoryItemDisplay.test.js +15 -0
- package/dist/src/ui/components/HistoryItemDisplay.test.js.map +1 -1
- package/dist/src/ui/components/{SkillInboxDialog.d.ts → InboxDialog.d.ts} +3 -2
- package/dist/src/ui/components/InboxDialog.js +756 -0
- package/dist/src/ui/components/InboxDialog.js.map +1 -0
- package/dist/src/ui/components/InboxDialog.test.d.ts +6 -0
- package/dist/src/ui/components/InboxDialog.test.js +824 -0
- package/dist/src/ui/components/InboxDialog.test.js.map +1 -0
- package/dist/src/ui/components/InputPrompt.d.ts +3 -0
- package/dist/src/ui/components/InputPrompt.js +35 -17
- package/dist/src/ui/components/InputPrompt.js.map +1 -1
- package/dist/src/ui/components/InputPrompt.test.js +95 -46
- package/dist/src/ui/components/InputPrompt.test.js.map +1 -1
- package/dist/src/ui/components/ListeningIndicator.d.ts +10 -0
- package/dist/src/ui/components/ListeningIndicator.js +30 -0
- package/dist/src/ui/components/ListeningIndicator.js.map +1 -0
- package/dist/src/ui/components/MainContent.test.js +23 -3
- package/dist/src/ui/components/MainContent.test.js.map +1 -1
- package/dist/src/ui/components/ModelDialog.js +32 -37
- package/dist/src/ui/components/ModelDialog.js.map +1 -1
- package/dist/src/ui/components/ModelDialog.test.js +30 -27
- package/dist/src/ui/components/ModelDialog.test.js.map +1 -1
- package/dist/src/ui/components/ModelStatsDisplay.js +1 -1
- package/dist/src/ui/components/ModelStatsDisplay.js.map +1 -1
- package/dist/src/ui/components/ModelStatsDisplay.test.js +41 -0
- package/dist/src/ui/components/ModelStatsDisplay.test.js.map +1 -1
- package/dist/src/ui/components/SessionBrowser.js +7 -0
- package/dist/src/ui/components/SessionBrowser.js.map +1 -1
- package/dist/src/ui/components/SessionSummaryDisplay.js +9 -4
- package/dist/src/ui/components/SessionSummaryDisplay.js.map +1 -1
- package/dist/src/ui/components/SessionSummaryDisplay.test.js +12 -23
- package/dist/src/ui/components/SessionSummaryDisplay.test.js.map +1 -1
- package/dist/src/ui/components/SettingsDialog.js +37 -17
- package/dist/src/ui/components/SettingsDialog.js.map +1 -1
- package/dist/src/ui/components/SettingsDialog.test.js +83 -1
- package/dist/src/ui/components/SettingsDialog.test.js.map +1 -1
- package/dist/src/ui/components/StatsDisplay.js +2 -2
- package/dist/src/ui/components/StatsDisplay.js.map +1 -1
- package/dist/src/ui/components/StatsDisplay.test.js +24 -0
- package/dist/src/ui/components/StatsDisplay.test.js.map +1 -1
- package/dist/src/ui/components/ThemeDialog.constants.d.ts +26 -0
- package/dist/src/ui/components/ThemeDialog.constants.js +27 -0
- package/dist/src/ui/components/ThemeDialog.constants.js.map +1 -0
- package/dist/src/ui/components/ThemeDialog.js +5 -15
- package/dist/src/ui/components/ThemeDialog.js.map +1 -1
- package/dist/src/ui/components/ToolConfirmationQueue.test.js +1 -1
- package/dist/src/ui/components/ToolConfirmationQueue.test.js.map +1 -1
- package/dist/src/ui/components/VoiceModelDialog.js +7 -2
- package/dist/src/ui/components/VoiceModelDialog.js.map +1 -1
- package/dist/src/ui/components/VoiceModelDialog.test.d.ts +6 -0
- package/dist/src/ui/components/VoiceModelDialog.test.js +68 -0
- package/dist/src/ui/components/VoiceModelDialog.test.js.map +1 -0
- package/dist/src/ui/components/messages/ExportSessionMessage.d.ts +11 -0
- package/dist/src/ui/components/messages/ExportSessionMessage.js +15 -0
- package/dist/src/ui/components/messages/ExportSessionMessage.js.map +1 -0
- package/dist/src/ui/components/messages/ExportSessionMessage.test.d.ts +6 -0
- package/dist/src/ui/components/messages/ExportSessionMessage.test.js +31 -0
- package/dist/src/ui/components/messages/ExportSessionMessage.test.js.map +1 -0
- package/dist/src/ui/components/messages/ShellToolMessage.js +6 -2
- package/dist/src/ui/components/messages/ShellToolMessage.js.map +1 -1
- package/dist/src/ui/components/messages/ShellToolMessage.test.js +33 -0
- package/dist/src/ui/components/messages/ShellToolMessage.test.js.map +1 -1
- package/dist/src/ui/components/messages/SubagentGroupDisplay.js +13 -13
- package/dist/src/ui/components/messages/SubagentGroupDisplay.js.map +1 -1
- package/dist/src/ui/components/messages/SubagentGroupDisplay.test.js +5 -5
- package/dist/src/ui/components/messages/SubagentGroupDisplay.test.js.map +1 -1
- package/dist/src/ui/components/messages/SubagentHistoryMessage.test.js +4 -3
- package/dist/src/ui/components/messages/SubagentHistoryMessage.test.js.map +1 -1
- package/dist/src/ui/components/messages/SubagentProgressDisplay.d.ts +1 -1
- package/dist/src/ui/components/messages/SubagentProgressDisplay.js +7 -6
- package/dist/src/ui/components/messages/SubagentProgressDisplay.js.map +1 -1
- package/dist/src/ui/components/messages/SubagentProgressDisplay.test.js +10 -9
- package/dist/src/ui/components/messages/SubagentProgressDisplay.test.js.map +1 -1
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js +3 -9
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js.map +1 -1
- package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js +60 -0
- package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js.map +1 -1
- package/dist/src/ui/components/messages/ToolGroupDisplay.d.ts +13 -0
- package/dist/src/ui/components/messages/ToolGroupDisplay.js +78 -0
- package/dist/src/ui/components/messages/ToolGroupDisplay.js.map +1 -0
- package/dist/src/ui/components/messages/ToolGroupDisplay.test.d.ts +6 -0
- package/dist/src/ui/components/messages/ToolGroupDisplay.test.js +210 -0
- package/dist/src/ui/components/messages/ToolGroupDisplay.test.js.map +1 -0
- package/dist/src/ui/components/messages/ToolGroupMessage.js +4 -2
- package/dist/src/ui/components/messages/ToolGroupMessage.js.map +1 -1
- package/dist/src/ui/components/messages/ToolGroupMessage.test.js +28 -0
- package/dist/src/ui/components/messages/ToolGroupMessage.test.js.map +1 -1
- package/dist/src/ui/components/messages/ToolGroupMessageRegression.test.js +3 -3
- package/dist/src/ui/components/messages/ToolGroupMessageRegression.test.js.map +1 -1
- package/dist/src/ui/components/messages/ToolMessage.js +6 -2
- package/dist/src/ui/components/messages/ToolMessage.js.map +1 -1
- package/dist/src/ui/components/messages/ToolShared.d.ts +1 -0
- package/dist/src/ui/components/messages/ToolShared.js +5 -3
- package/dist/src/ui/components/messages/ToolShared.js.map +1 -1
- package/dist/src/ui/components/messages/ToolShared.test.js +18 -1
- package/dist/src/ui/components/messages/ToolShared.test.js.map +1 -1
- package/dist/src/ui/components/shared/BaseSettingsDialog.d.ts +6 -1
- package/dist/src/ui/components/shared/BaseSettingsDialog.js +8 -8
- package/dist/src/ui/components/shared/BaseSettingsDialog.js.map +1 -1
- package/dist/src/ui/components/shared/performance.test.js +9 -0
- package/dist/src/ui/components/shared/performance.test.js.map +1 -1
- package/dist/src/ui/components/shared/text-buffer.js +22 -5
- package/dist/src/ui/components/shared/text-buffer.js.map +1 -1
- package/dist/src/ui/components/shared/text-buffer.test.js +211 -0
- package/dist/src/ui/components/shared/text-buffer.test.js.map +1 -1
- package/dist/src/ui/constants/tips.js +0 -1
- package/dist/src/ui/constants/tips.js.map +1 -1
- package/dist/src/ui/contexts/UIActionsContext.d.ts +1 -0
- package/dist/src/ui/contexts/UIActionsContext.js.map +1 -1
- package/dist/src/ui/contexts/UIStateContext.d.ts +2 -0
- package/dist/src/ui/contexts/UIStateContext.js.map +1 -1
- package/dist/src/ui/hooks/atCommandProcessor.js +78 -69
- package/dist/src/ui/hooks/atCommandProcessor.js.map +1 -1
- package/dist/src/ui/hooks/atCommandProcessor.test.js +128 -18
- package/dist/src/ui/hooks/atCommandProcessor.test.js.map +1 -1
- package/dist/src/ui/hooks/slashCommandProcessor.js +13 -0
- package/dist/src/ui/hooks/slashCommandProcessor.js.map +1 -1
- package/dist/src/ui/hooks/slashCommandProcessor.test.js +85 -0
- package/dist/src/ui/hooks/slashCommandProcessor.test.js.map +1 -1
- package/dist/src/ui/hooks/useAgentStream.d.ts +2 -2
- package/dist/src/ui/hooks/useAgentStream.js +63 -30
- package/dist/src/ui/hooks/useAgentStream.js.map +1 -1
- package/dist/src/ui/hooks/useAgentStream.test.js +1 -1
- package/dist/src/ui/hooks/useAgentStream.test.js.map +1 -1
- package/dist/src/ui/hooks/useAtCompletion.js +0 -2
- package/dist/src/ui/hooks/useAtCompletion.js.map +1 -1
- package/dist/src/ui/hooks/useGeminiStream.d.ts +2 -2
- package/dist/src/ui/hooks/useGeminiStream.js +48 -29
- package/dist/src/ui/hooks/useGeminiStream.js.map +1 -1
- package/dist/src/ui/hooks/useGeminiStream.test.js +44 -82
- package/dist/src/ui/hooks/useGeminiStream.test.js.map +1 -1
- package/dist/src/ui/hooks/useGitBranchName.js +29 -16
- package/dist/src/ui/hooks/useGitBranchName.js.map +1 -1
- package/dist/src/ui/hooks/useGitBranchName.test.js +102 -51
- package/dist/src/ui/hooks/useGitBranchName.test.js.map +1 -1
- package/dist/src/ui/hooks/useIncludeDirsTrust.js +2 -2
- package/dist/src/ui/hooks/useIncludeDirsTrust.js.map +1 -1
- package/dist/src/ui/hooks/useIncludeDirsTrust.test.js +2 -0
- package/dist/src/ui/hooks/useIncludeDirsTrust.test.js.map +1 -1
- package/dist/src/ui/hooks/useMessageQueue.d.ts +2 -1
- package/dist/src/ui/hooks/useMessageQueue.js +3 -1
- package/dist/src/ui/hooks/useMessageQueue.js.map +1 -1
- package/dist/src/ui/hooks/useMessageQueue.test.js +38 -0
- package/dist/src/ui/hooks/useMessageQueue.test.js.map +1 -1
- package/dist/src/ui/hooks/useSessionBrowser.d.ts +3 -3
- package/dist/src/ui/hooks/useSessionBrowser.js.map +1 -1
- package/dist/src/ui/hooks/useSessionBrowser.test.js +44 -38
- package/dist/src/ui/hooks/useSessionBrowser.test.js.map +1 -1
- package/dist/src/ui/hooks/useSessionResume.d.ts +3 -3
- package/dist/src/ui/hooks/useSessionResume.js.map +1 -1
- package/dist/src/ui/hooks/useSessionResume.test.js +6 -4
- package/dist/src/ui/hooks/useSessionResume.test.js.map +1 -1
- package/dist/src/ui/hooks/useSuspend.d.ts +1 -3
- package/dist/src/ui/hooks/useSuspend.js +3 -17
- package/dist/src/ui/hooks/useSuspend.js.map +1 -1
- package/dist/src/ui/hooks/useSuspend.test.js +0 -14
- package/dist/src/ui/hooks/useSuspend.test.js.map +1 -1
- package/dist/src/ui/hooks/useToolScheduler.test.js +6 -6
- package/dist/src/ui/hooks/useToolScheduler.test.js.map +1 -1
- package/dist/src/ui/hooks/useVoiceMode.js +25 -19
- package/dist/src/ui/hooks/useVoiceMode.js.map +1 -1
- package/dist/src/ui/hooks/vim-passthrough.test.js +10 -0
- package/dist/src/ui/hooks/vim-passthrough.test.js.map +1 -1
- package/dist/src/ui/hooks/vim.js +8 -0
- package/dist/src/ui/hooks/vim.js.map +1 -1
- package/dist/src/ui/hooks/vim.test.js +61 -0
- package/dist/src/ui/hooks/vim.test.js.map +1 -1
- package/dist/src/ui/key/keyBindings.d.ts +2 -0
- package/dist/src/ui/key/keyBindings.js +26 -9
- package/dist/src/ui/key/keyBindings.js.map +1 -1
- package/dist/src/ui/key/keyBindings.test.js +24 -0
- package/dist/src/ui/key/keyBindings.test.js.map +1 -1
- package/dist/src/ui/key/keyMatchers.test.js +26 -5
- package/dist/src/ui/key/keyMatchers.test.js.map +1 -1
- package/dist/src/ui/themes/theme-manager.js +0 -2
- package/dist/src/ui/themes/theme-manager.js.map +1 -1
- package/dist/src/ui/types.d.ts +23 -2
- package/dist/src/ui/types.js +3 -2
- package/dist/src/ui/types.js.map +1 -1
- package/dist/src/ui/utils/TableRenderer.js +6 -6
- package/dist/src/ui/utils/TableRenderer.js.map +1 -1
- package/dist/src/ui/utils/TableRenderer.test.js +10 -0
- package/dist/src/ui/utils/TableRenderer.test.js.map +1 -1
- package/dist/src/ui/utils/directoryUtils.test.js +0 -5
- package/dist/src/ui/utils/directoryUtils.test.js.map +1 -1
- package/dist/src/ui/utils/editorUtils.d.ts +2 -1
- package/dist/src/ui/utils/editorUtils.js +75 -28
- package/dist/src/ui/utils/editorUtils.js.map +1 -1
- package/dist/src/ui/utils/latexToUnicode.d.ts +21 -0
- package/dist/src/ui/utils/latexToUnicode.js +538 -0
- package/dist/src/ui/utils/latexToUnicode.js.map +1 -0
- package/dist/src/ui/utils/latexToUnicode.test.d.ts +6 -0
- package/dist/src/ui/utils/latexToUnicode.test.js +222 -0
- package/dist/src/ui/utils/latexToUnicode.test.js.map +1 -0
- package/dist/src/ui/utils/markdownParsingUtils.d.ts +1 -5
- package/dist/src/ui/utils/markdownParsingUtils.js +36 -1
- package/dist/src/ui/utils/markdownParsingUtils.js.map +1 -1
- package/dist/src/ui/utils/markdownParsingUtils.test.js +35 -0
- package/dist/src/ui/utils/markdownParsingUtils.test.js.map +1 -1
- package/dist/src/ui/utils/memorySnapshot.d.ts +19 -0
- package/dist/src/ui/utils/memorySnapshot.js +28 -0
- package/dist/src/ui/utils/memorySnapshot.js.map +1 -0
- package/dist/src/ui/utils/memorySnapshot.test.d.ts +6 -0
- package/dist/src/ui/utils/memorySnapshot.test.js +62 -0
- package/dist/src/ui/utils/memorySnapshot.test.js.map +1 -0
- package/dist/src/ui/utils/updateCheck.js +11 -2
- package/dist/src/ui/utils/updateCheck.js.map +1 -1
- package/dist/src/ui/utils/updateCheck.test.js +73 -0
- package/dist/src/ui/utils/updateCheck.test.js.map +1 -1
- package/dist/src/utils/commands.d.ts +1 -1
- package/dist/src/utils/commands.js +1 -1
- package/dist/src/utils/commands.test.js +14 -14
- package/dist/src/utils/commands.test.js.map +1 -1
- package/dist/src/utils/envVarResolver.js +10 -7
- package/dist/src/utils/envVarResolver.js.map +1 -1
- package/dist/src/utils/gitUtils.js +1 -2
- package/dist/src/utils/gitUtils.js.map +1 -1
- package/dist/src/utils/handleAutoUpdate.d.ts +1 -1
- package/dist/src/utils/handleAutoUpdate.js +15 -3
- package/dist/src/utils/handleAutoUpdate.js.map +1 -1
- package/dist/src/utils/handleAutoUpdate.test.js +45 -16
- package/dist/src/utils/handleAutoUpdate.test.js.map +1 -1
- package/dist/src/utils/installationInfo.d.ts +1 -0
- package/dist/src/utils/installationInfo.js +16 -1
- package/dist/src/utils/installationInfo.js.map +1 -1
- package/dist/src/utils/installationInfo.test.js +16 -0
- package/dist/src/utils/installationInfo.test.js.map +1 -1
- package/dist/src/utils/jsonoutput.js +0 -2
- package/dist/src/utils/jsonoutput.js.map +1 -1
- package/dist/src/utils/processUtils.d.ts +28 -0
- package/dist/src/utils/processUtils.js +71 -0
- package/dist/src/utils/processUtils.js.map +1 -1
- package/dist/src/utils/processUtils.test.js +122 -1
- package/dist/src/utils/processUtils.test.js.map +1 -1
- package/dist/src/utils/readStdin.js +22 -4
- package/dist/src/utils/readStdin.js.map +1 -1
- package/dist/src/utils/readStdin.test.js +32 -0
- package/dist/src/utils/readStdin.test.js.map +1 -1
- package/dist/src/utils/relaunch.js +6 -13
- package/dist/src/utils/relaunch.js.map +1 -1
- package/dist/src/utils/relaunch.test.js +82 -86
- package/dist/src/utils/relaunch.test.js.map +1 -1
- package/dist/src/utils/sandbox.js +34 -24
- package/dist/src/utils/sandbox.js.map +1 -1
- package/dist/src/utils/sandbox.test.js +108 -9
- package/dist/src/utils/sandbox.test.js.map +1 -1
- package/dist/src/utils/sandboxUtils.js +12 -7
- package/dist/src/utils/sandboxUtils.js.map +1 -1
- package/dist/src/utils/sandboxUtils.test.js +68 -0
- package/dist/src/utils/sandboxUtils.test.js.map +1 -1
- package/dist/src/utils/sessionCleanup.js +49 -14
- package/dist/src/utils/sessionCleanup.js.map +1 -1
- package/dist/src/utils/sessionCleanup.test.js +63 -0
- package/dist/src/utils/sessionCleanup.test.js.map +1 -1
- package/dist/src/utils/sessionUtils.js +22 -7
- package/dist/src/utils/sessionUtils.js.map +1 -1
- package/dist/src/utils/sessionUtils.test.js +99 -0
- package/dist/src/utils/sessionUtils.test.js.map +1 -1
- package/dist/src/utils/sessions.js +2 -4
- package/dist/src/utils/sessions.js.map +1 -1
- package/dist/src/utils/sessions.test.js +9 -12
- package/dist/src/utils/sessions.test.js.map +1 -1
- package/dist/src/utils/userStartupWarnings.js +4 -3
- package/dist/src/utils/userStartupWarnings.js.map +1 -1
- package/dist/src/utils/userStartupWarnings.test.js +40 -3
- package/dist/src/utils/userStartupWarnings.test.js.map +1 -1
- package/dist/src/validateNonInterActiveAuth.js +1 -1
- package/dist/src/validateNonInterActiveAuth.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/dist/src/acp/acpClient.d.ts +0 -56
- package/dist/src/acp/acpClient.js.map +0 -1
- package/dist/src/acp/acpClient.test.js +0 -1816
- package/dist/src/acp/acpClient.test.js.map +0 -1
- package/dist/src/acp/commandHandler.js.map +0 -1
- package/dist/src/acp/commandHandler.test.js.map +0 -1
- package/dist/src/acp/fileSystemService.js.map +0 -1
- package/dist/src/acp/fileSystemService.test.js.map +0 -1
- package/dist/src/ui/auth/LoginWithGoogleRestartDialog.d.ts +0 -12
- package/dist/src/ui/auth/LoginWithGoogleRestartDialog.js.map +0 -1
- package/dist/src/ui/auth/LoginWithGoogleRestartDialog.test.js.map +0 -1
- package/dist/src/ui/components/SkillInboxDialog.js +0 -420
- package/dist/src/ui/components/SkillInboxDialog.js.map +0 -1
- package/dist/src/ui/components/SkillInboxDialog.test.js +0 -467
- package/dist/src/ui/components/SkillInboxDialog.test.js.map +0 -1
- /package/dist/src/acp/{commandHandler.test.d.ts → acpCommandHandler.test.d.ts} +0 -0
- /package/dist/src/{ui/components/SkillInboxDialog.test.d.ts → acp/acpFileSystemService.test.d.ts} +0 -0
- /package/dist/src/{acp/acpClient.test.d.ts → config/mutual-exclusivity.test.d.ts} +0 -0
- /package/dist/src/{acp/fileSystemService.test.d.ts → ui/commands/bugMemoryCommand.test.d.ts} +0 -0
- /package/dist/src/ui/{auth/LoginWithGoogleRestartDialog.test.d.ts → commands/exportSessionCommand.test.d.ts} +0 -0
|
@@ -0,0 +1,538 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Converts common LaTeX-style syntax in model output into terminal-friendly
|
|
8
|
+
* Unicode (and lightweight markdown where appropriate).
|
|
9
|
+
*
|
|
10
|
+
* Terminals cannot natively render LaTeX, but model responses — especially for
|
|
11
|
+
* math, CS, and algorithms — frequently include constructs like `$\{P_0,
|
|
12
|
+
* \dots, P_n\}$` or `$\to$`. Left as-is, the raw backslash commands show up
|
|
13
|
+
* verbatim and make the output look broken.
|
|
14
|
+
*
|
|
15
|
+
* This function is a conservative, lossy post-processor that handles the
|
|
16
|
+
* common cases and leaves anything it does not recognise untouched, so that
|
|
17
|
+
* legitimate backslash content (e.g. Windows paths, regex examples) is not
|
|
18
|
+
* mangled.
|
|
19
|
+
*
|
|
20
|
+
* See issue #25656.
|
|
21
|
+
*/
|
|
22
|
+
// Greek letters, lower and upper case, plus the common "var" variants.
|
|
23
|
+
const GREEK_LETTERS = Object.freeze({
|
|
24
|
+
alpha: 'α',
|
|
25
|
+
beta: 'β',
|
|
26
|
+
gamma: 'γ',
|
|
27
|
+
delta: 'δ',
|
|
28
|
+
epsilon: 'ε',
|
|
29
|
+
zeta: 'ζ',
|
|
30
|
+
eta: 'η',
|
|
31
|
+
theta: 'θ',
|
|
32
|
+
iota: 'ι',
|
|
33
|
+
kappa: 'κ',
|
|
34
|
+
lambda: 'λ',
|
|
35
|
+
mu: 'μ',
|
|
36
|
+
nu: 'ν',
|
|
37
|
+
xi: 'ξ',
|
|
38
|
+
omicron: 'ο',
|
|
39
|
+
pi: 'π',
|
|
40
|
+
rho: 'ρ',
|
|
41
|
+
sigma: 'σ',
|
|
42
|
+
tau: 'τ',
|
|
43
|
+
upsilon: 'υ',
|
|
44
|
+
phi: 'φ',
|
|
45
|
+
chi: 'χ',
|
|
46
|
+
psi: 'ψ',
|
|
47
|
+
omega: 'ω',
|
|
48
|
+
Alpha: 'Α',
|
|
49
|
+
Beta: 'Β',
|
|
50
|
+
Gamma: 'Γ',
|
|
51
|
+
Delta: 'Δ',
|
|
52
|
+
Epsilon: 'Ε',
|
|
53
|
+
Zeta: 'Ζ',
|
|
54
|
+
Eta: 'Η',
|
|
55
|
+
Theta: 'Θ',
|
|
56
|
+
Iota: 'Ι',
|
|
57
|
+
Kappa: 'Κ',
|
|
58
|
+
Lambda: 'Λ',
|
|
59
|
+
Mu: 'Μ',
|
|
60
|
+
Nu: 'Ν',
|
|
61
|
+
Xi: 'Ξ',
|
|
62
|
+
Omicron: 'Ο',
|
|
63
|
+
Pi: 'Π',
|
|
64
|
+
Rho: 'Ρ',
|
|
65
|
+
Sigma: 'Σ',
|
|
66
|
+
Tau: 'Τ',
|
|
67
|
+
Upsilon: 'Υ',
|
|
68
|
+
Phi: 'Φ',
|
|
69
|
+
Chi: 'Χ',
|
|
70
|
+
Psi: 'Ψ',
|
|
71
|
+
Omega: 'Ω',
|
|
72
|
+
varepsilon: 'ε',
|
|
73
|
+
vartheta: 'ϑ',
|
|
74
|
+
varphi: 'φ',
|
|
75
|
+
varrho: 'ϱ',
|
|
76
|
+
varsigma: 'ς',
|
|
77
|
+
varpi: 'ϖ',
|
|
78
|
+
});
|
|
79
|
+
// Named LaTeX commands → Unicode. Covers arrows, relations, set theory,
|
|
80
|
+
// logic, large operators, and a handful of common decorations. Anything not
|
|
81
|
+
// listed here is deliberately left untouched.
|
|
82
|
+
const LATEX_COMMANDS = Object.freeze({
|
|
83
|
+
// Arrows
|
|
84
|
+
to: '→',
|
|
85
|
+
rightarrow: '→',
|
|
86
|
+
Rightarrow: '⇒',
|
|
87
|
+
leftarrow: '←',
|
|
88
|
+
Leftarrow: '⇐',
|
|
89
|
+
leftrightarrow: '↔',
|
|
90
|
+
Leftrightarrow: '⇔',
|
|
91
|
+
mapsto: '↦',
|
|
92
|
+
longrightarrow: '⟶',
|
|
93
|
+
longleftarrow: '⟵',
|
|
94
|
+
longleftrightarrow: '⟷',
|
|
95
|
+
uparrow: '↑',
|
|
96
|
+
downarrow: '↓',
|
|
97
|
+
Uparrow: '⇑',
|
|
98
|
+
Downarrow: '⇓',
|
|
99
|
+
hookrightarrow: '↪',
|
|
100
|
+
hookleftarrow: '↩',
|
|
101
|
+
// Ellipses
|
|
102
|
+
dots: '…',
|
|
103
|
+
ldots: '…',
|
|
104
|
+
cdots: '⋯',
|
|
105
|
+
vdots: '⋮',
|
|
106
|
+
ddots: '⋱',
|
|
107
|
+
// Arithmetic / comparison
|
|
108
|
+
times: '×',
|
|
109
|
+
cdot: '·',
|
|
110
|
+
div: '÷',
|
|
111
|
+
pm: '±',
|
|
112
|
+
mp: '∓',
|
|
113
|
+
ast: '∗',
|
|
114
|
+
leq: '≤',
|
|
115
|
+
le: '≤',
|
|
116
|
+
geq: '≥',
|
|
117
|
+
ge: '≥',
|
|
118
|
+
neq: '≠',
|
|
119
|
+
ne: '≠',
|
|
120
|
+
ll: '≪',
|
|
121
|
+
gg: '≫',
|
|
122
|
+
approx: '≈',
|
|
123
|
+
equiv: '≡',
|
|
124
|
+
sim: '∼',
|
|
125
|
+
simeq: '≃',
|
|
126
|
+
cong: '≅',
|
|
127
|
+
propto: '∝',
|
|
128
|
+
// Set theory
|
|
129
|
+
in: '∈',
|
|
130
|
+
notin: '∉',
|
|
131
|
+
ni: '∋',
|
|
132
|
+
subset: '⊂',
|
|
133
|
+
supset: '⊃',
|
|
134
|
+
subseteq: '⊆',
|
|
135
|
+
supseteq: '⊇',
|
|
136
|
+
cup: '∪',
|
|
137
|
+
cap: '∩',
|
|
138
|
+
setminus: '∖',
|
|
139
|
+
emptyset: '∅',
|
|
140
|
+
varnothing: '∅',
|
|
141
|
+
// Logic
|
|
142
|
+
forall: '∀',
|
|
143
|
+
exists: '∃',
|
|
144
|
+
nexists: '∄',
|
|
145
|
+
neg: '¬',
|
|
146
|
+
lnot: '¬',
|
|
147
|
+
land: '∧',
|
|
148
|
+
wedge: '∧',
|
|
149
|
+
lor: '∨',
|
|
150
|
+
vee: '∨',
|
|
151
|
+
oplus: '⊕',
|
|
152
|
+
otimes: '⊗',
|
|
153
|
+
implies: '⟹',
|
|
154
|
+
iff: '⟺',
|
|
155
|
+
// Large operators
|
|
156
|
+
sum: '∑',
|
|
157
|
+
prod: '∏',
|
|
158
|
+
coprod: '∐',
|
|
159
|
+
int: '∫',
|
|
160
|
+
iint: '∬',
|
|
161
|
+
iiint: '∭',
|
|
162
|
+
oint: '∮',
|
|
163
|
+
// Calculus
|
|
164
|
+
partial: '∂',
|
|
165
|
+
nabla: '∇',
|
|
166
|
+
infty: '∞',
|
|
167
|
+
// Misc letters / constants
|
|
168
|
+
ell: 'ℓ',
|
|
169
|
+
hbar: 'ℏ',
|
|
170
|
+
Re: 'ℜ',
|
|
171
|
+
Im: 'ℑ',
|
|
172
|
+
aleph: 'ℵ',
|
|
173
|
+
beth: 'ℶ',
|
|
174
|
+
// Brackets / delimiters
|
|
175
|
+
lbrace: '{',
|
|
176
|
+
rbrace: '}',
|
|
177
|
+
lbrack: '[',
|
|
178
|
+
rbrack: ']',
|
|
179
|
+
langle: '⟨',
|
|
180
|
+
rangle: '⟩',
|
|
181
|
+
lceil: '⌈',
|
|
182
|
+
rceil: '⌉',
|
|
183
|
+
lfloor: '⌊',
|
|
184
|
+
rfloor: '⌋',
|
|
185
|
+
// Geometry / misc
|
|
186
|
+
perp: '⊥',
|
|
187
|
+
parallel: '∥',
|
|
188
|
+
angle: '∠',
|
|
189
|
+
triangle: '△',
|
|
190
|
+
square: '□',
|
|
191
|
+
circ: '∘',
|
|
192
|
+
bullet: '•',
|
|
193
|
+
star: '⋆',
|
|
194
|
+
prime: '′',
|
|
195
|
+
dag: '†',
|
|
196
|
+
ddag: '‡',
|
|
197
|
+
therefore: '∴',
|
|
198
|
+
because: '∵',
|
|
199
|
+
top: '⊤',
|
|
200
|
+
bot: '⊥',
|
|
201
|
+
// Operator names (`\log`, `\sin`, …) render in LaTeX as upright text. In a
|
|
202
|
+
// terminal the closest equivalent is the lowercase word itself.
|
|
203
|
+
log: 'log',
|
|
204
|
+
ln: 'ln',
|
|
205
|
+
lg: 'lg',
|
|
206
|
+
exp: 'exp',
|
|
207
|
+
sin: 'sin',
|
|
208
|
+
cos: 'cos',
|
|
209
|
+
tan: 'tan',
|
|
210
|
+
cot: 'cot',
|
|
211
|
+
sec: 'sec',
|
|
212
|
+
csc: 'csc',
|
|
213
|
+
arcsin: 'arcsin',
|
|
214
|
+
arccos: 'arccos',
|
|
215
|
+
arctan: 'arctan',
|
|
216
|
+
sinh: 'sinh',
|
|
217
|
+
cosh: 'cosh',
|
|
218
|
+
tanh: 'tanh',
|
|
219
|
+
max: 'max',
|
|
220
|
+
min: 'min',
|
|
221
|
+
sup: 'sup',
|
|
222
|
+
inf: 'inf',
|
|
223
|
+
lim: 'lim',
|
|
224
|
+
limsup: 'lim sup',
|
|
225
|
+
liminf: 'lim inf',
|
|
226
|
+
arg: 'arg',
|
|
227
|
+
det: 'det',
|
|
228
|
+
dim: 'dim',
|
|
229
|
+
ker: 'ker',
|
|
230
|
+
gcd: 'gcd',
|
|
231
|
+
deg: 'deg',
|
|
232
|
+
hom: 'hom',
|
|
233
|
+
mod: 'mod',
|
|
234
|
+
bmod: 'mod',
|
|
235
|
+
pmod: 'mod',
|
|
236
|
+
// Whitespace commands — render as visible space so layout is roughly right.
|
|
237
|
+
quad: ' ',
|
|
238
|
+
qquad: ' ',
|
|
239
|
+
// These are all "thin-space" style commands in LaTeX; render as a single
|
|
240
|
+
// space so the surrounding tokens don't jam together.
|
|
241
|
+
',': ' ',
|
|
242
|
+
';': ' ',
|
|
243
|
+
':': ' ',
|
|
244
|
+
'!': '',
|
|
245
|
+
});
|
|
246
|
+
// Unicode subscript mappings (digits, operators, and the common letters that
|
|
247
|
+
// have full-height subscript glyphs in Unicode).
|
|
248
|
+
const SUBSCRIPT_MAP = Object.freeze({
|
|
249
|
+
'0': '₀',
|
|
250
|
+
'1': '₁',
|
|
251
|
+
'2': '₂',
|
|
252
|
+
'3': '₃',
|
|
253
|
+
'4': '₄',
|
|
254
|
+
'5': '₅',
|
|
255
|
+
'6': '₆',
|
|
256
|
+
'7': '₇',
|
|
257
|
+
'8': '₈',
|
|
258
|
+
'9': '₉',
|
|
259
|
+
'+': '₊',
|
|
260
|
+
'-': '₋',
|
|
261
|
+
'=': '₌',
|
|
262
|
+
'(': '₍',
|
|
263
|
+
')': '₎',
|
|
264
|
+
a: 'ₐ',
|
|
265
|
+
e: 'ₑ',
|
|
266
|
+
h: 'ₕ',
|
|
267
|
+
i: 'ᵢ',
|
|
268
|
+
j: 'ⱼ',
|
|
269
|
+
k: 'ₖ',
|
|
270
|
+
l: 'ₗ',
|
|
271
|
+
m: 'ₘ',
|
|
272
|
+
n: 'ₙ',
|
|
273
|
+
o: 'ₒ',
|
|
274
|
+
p: 'ₚ',
|
|
275
|
+
r: 'ᵣ',
|
|
276
|
+
s: 'ₛ',
|
|
277
|
+
t: 'ₜ',
|
|
278
|
+
u: 'ᵤ',
|
|
279
|
+
v: 'ᵥ',
|
|
280
|
+
x: 'ₓ',
|
|
281
|
+
});
|
|
282
|
+
// Unicode superscript mappings. A superset of subscripts — most letters have
|
|
283
|
+
// superscript glyphs.
|
|
284
|
+
const SUPERSCRIPT_MAP = Object.freeze({
|
|
285
|
+
'0': '⁰',
|
|
286
|
+
'1': '¹',
|
|
287
|
+
'2': '²',
|
|
288
|
+
'3': '³',
|
|
289
|
+
'4': '⁴',
|
|
290
|
+
'5': '⁵',
|
|
291
|
+
'6': '⁶',
|
|
292
|
+
'7': '⁷',
|
|
293
|
+
'8': '⁸',
|
|
294
|
+
'9': '⁹',
|
|
295
|
+
'+': '⁺',
|
|
296
|
+
'-': '⁻',
|
|
297
|
+
'=': '⁼',
|
|
298
|
+
'(': '⁽',
|
|
299
|
+
')': '⁾',
|
|
300
|
+
a: 'ᵃ',
|
|
301
|
+
b: 'ᵇ',
|
|
302
|
+
c: 'ᶜ',
|
|
303
|
+
d: 'ᵈ',
|
|
304
|
+
e: 'ᵉ',
|
|
305
|
+
f: 'ᶠ',
|
|
306
|
+
g: 'ᵍ',
|
|
307
|
+
h: 'ʰ',
|
|
308
|
+
i: 'ⁱ',
|
|
309
|
+
j: 'ʲ',
|
|
310
|
+
k: 'ᵏ',
|
|
311
|
+
l: 'ˡ',
|
|
312
|
+
m: 'ᵐ',
|
|
313
|
+
n: 'ⁿ',
|
|
314
|
+
o: 'ᵒ',
|
|
315
|
+
p: 'ᵖ',
|
|
316
|
+
r: 'ʳ',
|
|
317
|
+
s: 'ˢ',
|
|
318
|
+
t: 'ᵗ',
|
|
319
|
+
u: 'ᵘ',
|
|
320
|
+
v: 'ᵛ',
|
|
321
|
+
w: 'ʷ',
|
|
322
|
+
x: 'ˣ',
|
|
323
|
+
y: 'ʸ',
|
|
324
|
+
z: 'ᶻ',
|
|
325
|
+
});
|
|
326
|
+
/**
|
|
327
|
+
* Strips `$...$` and `$$...$$` math delimiters when the inner content looks
|
|
328
|
+
* like math, applying the full set of math-mode conversions (including
|
|
329
|
+
* sub/superscripts) to the inner text. The goal is to handle model output
|
|
330
|
+
* without eating dollar signs that appear in ordinary prose (prices,
|
|
331
|
+
* shell examples, etc.).
|
|
332
|
+
*
|
|
333
|
+
* A pair of `$...$` is treated as math when the inner text either:
|
|
334
|
+
* - contains a LaTeX marker (`\command`, `_`, `^`), or
|
|
335
|
+
* - is a single letter, possibly with whitespace padding (e.g. `$x$`,
|
|
336
|
+
* `$ n $`). Shell-style variables like `$USER` are LEFT intact because
|
|
337
|
+
* multi-letter all-caps sequences look much more like shell vars than
|
|
338
|
+
* math in practice.
|
|
339
|
+
*
|
|
340
|
+
* A currency expression like `$5.99` (single `$`) never matches the pair
|
|
341
|
+
* regex. `From $5 to $10` matches `$5 to $` as a pair but the inner text is
|
|
342
|
+
* neither mathy nor a single variable, so it is left intact.
|
|
343
|
+
*/
|
|
344
|
+
function stripMathDelimiters(text) {
|
|
345
|
+
// Display math first, greedy-safe with non-dollar inner class.
|
|
346
|
+
let out = text.replace(/\$\$([^$]+)\$\$/g, (_, inner) => applyMathModeConversions(inner));
|
|
347
|
+
// Inline math: lazy, single-line to avoid eating across paragraphs.
|
|
348
|
+
out = out.replace(/\$([^$\n]+?)\$/g, (match, inner) => {
|
|
349
|
+
const hasLatexMarkers = /\\[A-Za-z]|[\\_^]/.test(inner);
|
|
350
|
+
const isSingleVariable = /^\s*[A-Za-z]\s*$/.test(inner);
|
|
351
|
+
if (hasLatexMarkers || isSingleVariable) {
|
|
352
|
+
return applyMathModeConversions(inner);
|
|
353
|
+
}
|
|
354
|
+
return match;
|
|
355
|
+
});
|
|
356
|
+
return out;
|
|
357
|
+
}
|
|
358
|
+
/**
|
|
359
|
+
* Converts `\textbf{..}`, `\textit{..}`, `\emph{..}`, `\text{..}`,
|
|
360
|
+
* `\mathrm{..}`, `\mathbf{..}`, `\mathit{..}`, `\mathsf{..}`, `\mathtt{..}`,
|
|
361
|
+
* and `\operatorname{..}` into markdown-equivalent wrappers or plain text so
|
|
362
|
+
* the regular inline parser picks them up downstream.
|
|
363
|
+
*
|
|
364
|
+
* Only handles a single level of nesting (no inner braces) — this keeps the
|
|
365
|
+
* regex bounded and avoids catastrophic backtracking on adversarial input.
|
|
366
|
+
*/
|
|
367
|
+
function convertTextFormatting(text) {
|
|
368
|
+
let out = text;
|
|
369
|
+
out = out.replace(/\\(?:textbf|mathbf)\{([^{}]*)\}/g, (_, inner) => `**${inner}**`);
|
|
370
|
+
out = out.replace(/\\(?:textit|emph|mathit)\{([^{}]*)\}/g, (_, inner) => `*${inner}*`);
|
|
371
|
+
out = out.replace(/\\(?:text|mathrm|mathsf|mathtt|mathbb|mathcal|mathfrak|operatorname)\{([^{}]*)\}/g, (_, inner) => inner);
|
|
372
|
+
return out;
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* Handles `\frac{a}{b}` → `(a)/(b)` and `\sqrt{x}` → `√(x)`.
|
|
376
|
+
* Only a single level of braces is supported.
|
|
377
|
+
*/
|
|
378
|
+
function convertFractionsAndRoots(text) {
|
|
379
|
+
let out = text;
|
|
380
|
+
out = out.replace(/\\frac\{([^{}]*)\}\{([^{}]*)\}/g, (_, num, den) => `(${num})/(${den})`);
|
|
381
|
+
out = out.replace(/\\sqrt\[([^\]]*)\]\{([^{}]*)\}/g, (_, index, radicand) => `${index}√(${radicand})`);
|
|
382
|
+
out = out.replace(/\\sqrt\{([^{}]*)\}/g, (_, radicand) => `√(${radicand})`);
|
|
383
|
+
return out;
|
|
384
|
+
}
|
|
385
|
+
/**
|
|
386
|
+
* Converts escaped single-character specials (`\{` → `{`, `\_` → `_`, etc.).
|
|
387
|
+
* Runs before command lookup so `\{` is not misread as a command named `{`.
|
|
388
|
+
*/
|
|
389
|
+
function convertEscapedSpecials(text) {
|
|
390
|
+
// The set is intentionally narrow: only characters that have meaning in
|
|
391
|
+
// LaTeX and also appear unescaped in plain text. We do not unescape `\\`
|
|
392
|
+
// (line break) here — it is handled separately.
|
|
393
|
+
let out = text.replace(/\\([{}[\]_%&#$|])/g, (_, ch) => ch);
|
|
394
|
+
// `\ ` (backslash + space) is LaTeX for a non-breaking space; just keep it
|
|
395
|
+
// as a regular space so words do not collide.
|
|
396
|
+
out = out.replace(/\\ /g, ' ');
|
|
397
|
+
return out;
|
|
398
|
+
}
|
|
399
|
+
/**
|
|
400
|
+
* Converts named commands (alphabetic control sequences) to Unicode. Anything
|
|
401
|
+
* not in the tables is left as-is so unrelated backslash content
|
|
402
|
+
* (e.g. Windows paths) is not disturbed.
|
|
403
|
+
*/
|
|
404
|
+
function convertNamedCommands(text) {
|
|
405
|
+
return text.replace(/\\([A-Za-z]+)(?![A-Za-z])/g, (match, name) => GREEK_LETTERS[name] ?? LATEX_COMMANDS[name] ?? match);
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* Converts the short-form punctuation commands `\,`, `\;`, `\:`, `\!` used
|
|
409
|
+
* for spacing in LaTeX. These are handled separately from alphabetic commands
|
|
410
|
+
* because the regex for the latter only matches letters.
|
|
411
|
+
*/
|
|
412
|
+
function convertPunctuationCommands(text) {
|
|
413
|
+
// `\,`, `\;`, `\:` all render as a single space; `\!` is a negative space
|
|
414
|
+
// and is stripped.
|
|
415
|
+
return text.replace(/\\([,;:!])/g, (_, ch) => {
|
|
416
|
+
switch (ch) {
|
|
417
|
+
case ',':
|
|
418
|
+
case ';':
|
|
419
|
+
case ':':
|
|
420
|
+
return ' ';
|
|
421
|
+
case '!':
|
|
422
|
+
return '';
|
|
423
|
+
default:
|
|
424
|
+
return ch;
|
|
425
|
+
}
|
|
426
|
+
});
|
|
427
|
+
}
|
|
428
|
+
/**
|
|
429
|
+
* Converts the `\\` line-break command (used inside math environments and
|
|
430
|
+
* tables) to a literal newline. Must run after `\` specials but before any
|
|
431
|
+
* other regex that might see a lingering backslash.
|
|
432
|
+
*/
|
|
433
|
+
function convertLineBreaks(text) {
|
|
434
|
+
return text.replace(/\\\\/g, '\n');
|
|
435
|
+
}
|
|
436
|
+
/**
|
|
437
|
+
* Converts subscripts and superscripts to Unicode where every character in
|
|
438
|
+
* the operand maps. If any character has no mapping the whole operand is
|
|
439
|
+
* left alone, to avoid "half-converted" output that looks worse than no
|
|
440
|
+
* conversion.
|
|
441
|
+
*/
|
|
442
|
+
function convertSubSuperScripts(text) {
|
|
443
|
+
// Braced form first: x_{...}, x^{...}. We only support BMP characters (the
|
|
444
|
+
// mapping tables are ASCII-only), so iterating with `Array.from` over code
|
|
445
|
+
// units is safe and keeps the lint rule against splitting strings happy.
|
|
446
|
+
const charsOf = (s) => Array.from(s);
|
|
447
|
+
let out = text.replace(/_\{([^{}]+)\}/g, (match, inner) => {
|
|
448
|
+
const chars = charsOf(inner);
|
|
449
|
+
if (chars.every((c) => SUBSCRIPT_MAP[c] !== undefined)) {
|
|
450
|
+
return chars.map((c) => SUBSCRIPT_MAP[c]).join('');
|
|
451
|
+
}
|
|
452
|
+
return match;
|
|
453
|
+
});
|
|
454
|
+
out = out.replace(/\^\{([^{}]+)\}/g, (match, inner) => {
|
|
455
|
+
const chars = charsOf(inner);
|
|
456
|
+
if (chars.every((c) => SUPERSCRIPT_MAP[c] !== undefined)) {
|
|
457
|
+
return chars.map((c) => SUPERSCRIPT_MAP[c]).join('');
|
|
458
|
+
}
|
|
459
|
+
return match;
|
|
460
|
+
});
|
|
461
|
+
// Single-character form: x_0, x^2. Only convert when the character actually
|
|
462
|
+
// has a mapping — leaves `file_name` and `foo^bar` alone.
|
|
463
|
+
out = out.replace(/([A-Za-z0-9)\]])_([A-Za-z0-9+\-=()])/g, (match, base, c) => {
|
|
464
|
+
const sub = SUBSCRIPT_MAP[c];
|
|
465
|
+
return sub ? `${base}${sub}` : match;
|
|
466
|
+
});
|
|
467
|
+
out = out.replace(/([A-Za-z0-9)\]])\^([A-Za-z0-9+\-=()])/g, (match, base, c) => {
|
|
468
|
+
const sup = SUPERSCRIPT_MAP[c];
|
|
469
|
+
return sup ? `${base}${sup}` : match;
|
|
470
|
+
});
|
|
471
|
+
return out;
|
|
472
|
+
}
|
|
473
|
+
/**
|
|
474
|
+
* Applies the full set of conversions that make sense inside a LaTeX math
|
|
475
|
+
* region (i.e. text that was originally wrapped in `$...$`). This includes
|
|
476
|
+
* sub/superscripts, which are NOT safe to apply to arbitrary prose because
|
|
477
|
+
* they would mangle identifiers like `file_name`.
|
|
478
|
+
*/
|
|
479
|
+
function applyMathModeConversions(text) {
|
|
480
|
+
let out = text;
|
|
481
|
+
out = convertTextFormatting(out);
|
|
482
|
+
out = convertFractionsAndRoots(out);
|
|
483
|
+
out = convertEscapedSpecials(out);
|
|
484
|
+
out = convertLineBreaks(out);
|
|
485
|
+
out = convertNamedCommands(out);
|
|
486
|
+
out = convertPunctuationCommands(out);
|
|
487
|
+
out = convertSubSuperScripts(out);
|
|
488
|
+
return out;
|
|
489
|
+
}
|
|
490
|
+
/**
|
|
491
|
+
* Applies conversions that are safe to run on arbitrary prose — anything
|
|
492
|
+
* keyed off explicit LaTeX tokens like `\alpha`, `\textbf{...}`, `\to`. Does
|
|
493
|
+
* NOT touch standalone `_` or `^` so identifiers and snake_case names are
|
|
494
|
+
* preserved.
|
|
495
|
+
*/
|
|
496
|
+
function applyProseConversions(text) {
|
|
497
|
+
let out = text;
|
|
498
|
+
out = convertTextFormatting(out);
|
|
499
|
+
out = convertFractionsAndRoots(out);
|
|
500
|
+
out = convertEscapedSpecials(out);
|
|
501
|
+
// Deliberately NOT running convertLineBreaks here: outside math delimiters
|
|
502
|
+
// `\\` is far more likely to be a Windows UNC path (`\\server\share`) or an
|
|
503
|
+
// escaped backslash in code-like prose than a LaTeX line break. Legitimate
|
|
504
|
+
// LaTeX line breaks belong inside `$...$` or `$$...$$` and are handled by
|
|
505
|
+
// applyMathModeConversions. See PR #25802 review.
|
|
506
|
+
out = convertNamedCommands(out);
|
|
507
|
+
out = convertPunctuationCommands(out);
|
|
508
|
+
return out;
|
|
509
|
+
}
|
|
510
|
+
/**
|
|
511
|
+
* Top-level entry point. Two-phase conversion:
|
|
512
|
+
*
|
|
513
|
+
* 1. Strip `$...$` / `$$...$$` math regions, applying math-mode conversions
|
|
514
|
+
* (including sub/superscripts) to the inner text. The heuristic for
|
|
515
|
+
* "this dollar pair is math" runs against the ORIGINAL input so that
|
|
516
|
+
* model-authored LaTeX is recognised before any tokens are rewritten.
|
|
517
|
+
*
|
|
518
|
+
* 2. Run prose-safe conversions over the remaining text, catching
|
|
519
|
+
* unwrapped LaTeX tokens (`\alpha`, `\to`, `\textbf{...}`) that the
|
|
520
|
+
* model emitted outside math delimiters.
|
|
521
|
+
*
|
|
522
|
+
* Short-circuits on input that has no LaTeX markers at all (`\` or `$`) so
|
|
523
|
+
* the hot rendering path stays cheap for ordinary prose.
|
|
524
|
+
*/
|
|
525
|
+
export function convertLatexToUnicode(input) {
|
|
526
|
+
if (!input)
|
|
527
|
+
return input;
|
|
528
|
+
// Fast path: if there's no backslash and no dollar sign, there's nothing to
|
|
529
|
+
// convert. This keeps the hot rendering path inexpensive for ordinary text.
|
|
530
|
+
if (input.indexOf('\\') === -1 && input.indexOf('$') === -1) {
|
|
531
|
+
return input;
|
|
532
|
+
}
|
|
533
|
+
let text = input;
|
|
534
|
+
text = stripMathDelimiters(text);
|
|
535
|
+
text = applyProseConversions(text);
|
|
536
|
+
return text;
|
|
537
|
+
}
|
|
538
|
+
//# sourceMappingURL=latexToUnicode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"latexToUnicode.js","sourceRoot":"","sources":["../../../../src/ui/utils/latexToUnicode.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;;;;;;GAeG;AAEH,uEAAuE;AACvE,MAAM,aAAa,GAAqC,MAAM,CAAC,MAAM,CAAC;IACpE,KAAK,EAAE,GAAG;IACV,IAAI,EAAE,GAAG;IACT,KAAK,EAAE,GAAG;IACV,KAAK,EAAE,GAAG;IACV,OAAO,EAAE,GAAG;IACZ,IAAI,EAAE,GAAG;IACT,GAAG,EAAE,GAAG;IACR,KAAK,EAAE,GAAG;IACV,IAAI,EAAE,GAAG;IACT,KAAK,EAAE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