mpd-llm-cli 0.1.24 → 0.1.25
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/LICENSE +202 -0
- package/README.md +203 -0
- package/README.zh-CN.md +206 -0
- package/bundle/api.cjs +166773 -0
- package/bundle/api.js +166768 -0
- package/bundle/gemini.js +281183 -0
- package/package.json +79 -66
- package/dist/.last_build +0 -0
- package/dist/index.d.ts +0 -7
- package/dist/index.js +0 -20
- package/dist/index.js.map +0 -1
- package/dist/package.json +0 -83
- package/dist/src/api/index.d.ts +0 -17
- package/dist/src/api/index.js +0 -192
- package/dist/src/api/index.js.map +0 -1
- package/dist/src/api/types.d.ts +0 -32
- package/dist/src/api/types.js +0 -2
- package/dist/src/api/types.js.map +0 -1
- package/dist/src/api/util.d.ts +0 -4
- package/dist/src/api/util.js +0 -67
- package/dist/src/api/util.js.map +0 -1
- package/dist/src/config/auth.d.ts +0 -6
- package/dist/src/config/auth.js +0 -42
- package/dist/src/config/auth.js.map +0 -1
- package/dist/src/config/config.d.ts +0 -13
- package/dist/src/config/config.js +0 -248
- package/dist/src/config/config.js.map +0 -1
- package/dist/src/config/extension.d.ts +0 -21
- package/dist/src/config/extension.js +0 -109
- package/dist/src/config/extension.js.map +0 -1
- package/dist/src/config/mpdaiConfig.d.ts +0 -28
- package/dist/src/config/mpdaiConfig.js +0 -84
- package/dist/src/config/mpdaiConfig.js.map +0 -1
- package/dist/src/config/sandboxConfig.d.ts +0 -13
- package/dist/src/config/sandboxConfig.js +0 -75
- package/dist/src/config/sandboxConfig.js.map +0 -1
- package/dist/src/config/settings.d.ts +0 -72
- package/dist/src/config/settings.js +0 -227
- package/dist/src/config/settings.js.map +0 -1
- package/dist/src/config/startup.d.ts +0 -21
- package/dist/src/config/startup.js +0 -118
- package/dist/src/config/startup.js.map +0 -1
- package/dist/src/gemini.d.ts +0 -6
- package/dist/src/gemini.js +0 -300
- package/dist/src/gemini.js.map +0 -1
- package/dist/src/generated/git-commit.d.ts +0 -6
- package/dist/src/generated/git-commit.js +0 -9
- package/dist/src/generated/git-commit.js.map +0 -1
- package/dist/src/nonInteractiveCli.d.ts +0 -7
- package/dist/src/nonInteractiveCli.js +0 -115
- package/dist/src/nonInteractiveCli.js.map +0 -1
- package/dist/src/services/AuthService.d.ts +0 -110
- package/dist/src/services/AuthService.js +0 -258
- package/dist/src/services/AuthService.js.map +0 -1
- package/dist/src/services/CommandService.d.ts +0 -13
- package/dist/src/services/CommandService.js +0 -34
- package/dist/src/services/CommandService.js.map +0 -1
- package/dist/src/services/EnvConfigManager.d.ts +0 -34
- package/dist/src/services/EnvConfigManager.js +0 -141
- package/dist/src/services/EnvConfigManager.js.map +0 -1
- package/dist/src/services/README.md +0 -114
- package/dist/src/services/debug-auth.d.ts +0 -10
- package/dist/src/services/debug-auth.js +0 -104
- package/dist/src/services/debug-auth.js.map +0 -1
- package/dist/src/services/demo.d.ts +0 -10
- package/dist/src/services/demo.js +0 -96
- package/dist/src/services/demo.js.map +0 -1
- package/dist/src/services/test-auth.d.ts +0 -10
- package/dist/src/services/test-auth.js +0 -104
- package/dist/src/services/test-auth.js.map +0 -1
- package/dist/src/services/test-readline.d.ts +0 -6
- package/dist/src/services/test-readline.js +0 -32
- package/dist/src/services/test-readline.js.map +0 -1
- package/dist/src/telemetry/README.md +0 -135
- package/dist/src/telemetry/costCalculator.d.ts +0 -401
- package/dist/src/telemetry/costCalculator.js +0 -555
- package/dist/src/telemetry/costCalculator.js.map +0 -1
- package/dist/src/telemetry/dataCollector.d.ts +0 -83
- package/dist/src/telemetry/dataCollector.js +0 -392
- package/dist/src/telemetry/dataCollector.js.map +0 -1
- package/dist/src/telemetry/langfuseClient.d.ts +0 -96
- package/dist/src/telemetry/langfuseClient.js +0 -485
- package/dist/src/telemetry/langfuseClient.js.map +0 -1
- package/dist/src/telemetry/langfuseConfig.d.ts +0 -21
- package/dist/src/telemetry/langfuseConfig.js +0 -64
- package/dist/src/telemetry/langfuseConfig.js.map +0 -1
- package/dist/src/telemetry/langfuseIntegration.d.ts +0 -66
- package/dist/src/telemetry/langfuseIntegration.js +0 -238
- package/dist/src/telemetry/langfuseIntegration.js.map +0 -1
- package/dist/src/telemetry/toolExecutionInterceptor.d.ts +0 -29
- package/dist/src/telemetry/toolExecutionInterceptor.js +0 -122
- package/dist/src/telemetry/toolExecutionInterceptor.js.map +0 -1
- package/dist/src/ui/App.d.ts +0 -14
- package/dist/src/ui/App.js +0 -466
- package/dist/src/ui/App.js.map +0 -1
- package/dist/src/ui/colors.d.ts +0 -7
- package/dist/src/ui/colors.js +0 -48
- package/dist/src/ui/colors.js.map +0 -1
- package/dist/src/ui/commands/clearCommand.d.ts +0 -7
- package/dist/src/ui/commands/clearCommand.js +0 -15
- package/dist/src/ui/commands/clearCommand.js.map +0 -1
- package/dist/src/ui/commands/helpCommand.d.ts +0 -7
- package/dist/src/ui/commands/helpCommand.js +0 -18
- package/dist/src/ui/commands/helpCommand.js.map +0 -1
- package/dist/src/ui/commands/logoutCommand.d.ts +0 -7
- package/dist/src/ui/commands/logoutCommand.js +0 -77
- package/dist/src/ui/commands/logoutCommand.js.map +0 -1
- package/dist/src/ui/commands/memoryCommand.d.ts +0 -7
- package/dist/src/ui/commands/memoryCommand.js +0 -81
- package/dist/src/ui/commands/memoryCommand.js.map +0 -1
- package/dist/src/ui/commands/modelCommand.d.ts +0 -14
- package/dist/src/ui/commands/modelCommand.js +0 -58
- package/dist/src/ui/commands/modelCommand.js.map +0 -1
- package/dist/src/ui/commands/types.d.ts +0 -63
- package/dist/src/ui/commands/types.js +0 -7
- package/dist/src/ui/commands/types.js.map +0 -1
- package/dist/src/ui/components/AboutBox.d.ts +0 -16
- package/dist/src/ui/components/AboutBox.js +0 -6
- package/dist/src/ui/components/AboutBox.js.map +0 -1
- package/dist/src/ui/components/AsciiArt.d.ts +0 -7
- package/dist/src/ui/components/AsciiArt.js +0 -25
- package/dist/src/ui/components/AsciiArt.js.map +0 -1
- package/dist/src/ui/components/AuthDialog.d.ts +0 -15
- package/dist/src/ui/components/AuthDialog.js +0 -75
- package/dist/src/ui/components/AuthDialog.js.map +0 -1
- package/dist/src/ui/components/AuthInProgress.d.ts +0 -11
- package/dist/src/ui/components/AuthInProgress.js +0 -27
- package/dist/src/ui/components/AuthInProgress.js.map +0 -1
- package/dist/src/ui/components/AutoAcceptIndicator.d.ts +0 -12
- package/dist/src/ui/components/AutoAcceptIndicator.js +0 -26
- package/dist/src/ui/components/AutoAcceptIndicator.js.map +0 -1
- package/dist/src/ui/components/ConsolePatcher.d.ts +0 -12
- package/dist/src/ui/components/ConsolePatcher.js +0 -38
- package/dist/src/ui/components/ConsolePatcher.js.map +0 -1
- package/dist/src/ui/components/ConsoleSummaryDisplay.d.ts +0 -11
- package/dist/src/ui/components/ConsoleSummaryDisplay.js +0 -11
- package/dist/src/ui/components/ConsoleSummaryDisplay.js.map +0 -1
- package/dist/src/ui/components/ContextSummaryDisplay.d.ts +0 -15
- package/dist/src/ui/components/ContextSummaryDisplay.js +0 -41
- package/dist/src/ui/components/ContextSummaryDisplay.js.map +0 -1
- package/dist/src/ui/components/DetailedMessagesDisplay.d.ts +0 -14
- package/dist/src/ui/components/DetailedMessagesDisplay.js +0 -34
- package/dist/src/ui/components/DetailedMessagesDisplay.js.map +0 -1
- package/dist/src/ui/components/EditorSettingsDialog.d.ts +0 -15
- package/dist/src/ui/components/EditorSettingsDialog.js +0 -73
- package/dist/src/ui/components/EditorSettingsDialog.js.map +0 -1
- package/dist/src/ui/components/Footer.d.ts +0 -20
- package/dist/src/ui/components/Footer.js +0 -19
- package/dist/src/ui/components/Footer.js.map +0 -1
- package/dist/src/ui/components/GeminiRespondingSpinner.d.ts +0 -17
- package/dist/src/ui/components/GeminiRespondingSpinner.js +0 -16
- package/dist/src/ui/components/GeminiRespondingSpinner.js.map +0 -1
- package/dist/src/ui/components/Header.d.ts +0 -12
- package/dist/src/ui/components/Header.js +0 -20
- package/dist/src/ui/components/Header.js.map +0 -1
- package/dist/src/ui/components/Help.d.ts +0 -12
- package/dist/src/ui/components/Help.js +0 -10
- package/dist/src/ui/components/Help.js.map +0 -1
- package/dist/src/ui/components/HistoryItemDisplay.d.ts +0 -18
- package/dist/src/ui/components/HistoryItemDisplay.js +0 -17
- package/dist/src/ui/components/HistoryItemDisplay.js.map +0 -1
- package/dist/src/ui/components/InputPrompt.d.ts +0 -25
- package/dist/src/ui/components/InputPrompt.js +0 -280
- package/dist/src/ui/components/InputPrompt.js.map +0 -1
- package/dist/src/ui/components/LoadingIndicator.d.ts +0 -15
- package/dist/src/ui/components/LoadingIndicator.js +0 -20
- package/dist/src/ui/components/LoadingIndicator.js.map +0 -1
- package/dist/src/ui/components/MemoryUsageDisplay.d.ts +0 -7
- package/dist/src/ui/components/MemoryUsageDisplay.js +0 -27
- package/dist/src/ui/components/MemoryUsageDisplay.js.map +0 -1
- package/dist/src/ui/components/ModelDialog.d.ts +0 -14
- package/dist/src/ui/components/ModelDialog.js +0 -34
- package/dist/src/ui/components/ModelDialog.js.map +0 -1
- package/dist/src/ui/components/ModelStatsDisplay.d.ts +0 -7
- package/dist/src/ui/components/ModelStatsDisplay.js +0 -33
- package/dist/src/ui/components/ModelStatsDisplay.js.map +0 -1
- package/dist/src/ui/components/SessionSummaryDisplay.d.ts +0 -11
- package/dist/src/ui/components/SessionSummaryDisplay.js +0 -4
- package/dist/src/ui/components/SessionSummaryDisplay.js.map +0 -1
- package/dist/src/ui/components/ShellModeIndicator.d.ts +0 -7
- package/dist/src/ui/components/ShellModeIndicator.js +0 -5
- package/dist/src/ui/components/ShellModeIndicator.js.map +0 -1
- package/dist/src/ui/components/ShowMoreLines.d.ts +0 -10
- package/dist/src/ui/components/ShowMoreLines.js +0 -24
- package/dist/src/ui/components/ShowMoreLines.js.map +0 -1
- package/dist/src/ui/components/StatsDisplay.d.ts +0 -12
- package/dist/src/ui/components/StatsDisplay.js +0 -42
- package/dist/src/ui/components/StatsDisplay.js.map +0 -1
- package/dist/src/ui/components/SuggestionsDisplay.d.ts +0 -21
- package/dist/src/ui/components/SuggestionsDisplay.js +0 -32
- package/dist/src/ui/components/SuggestionsDisplay.js.map +0 -1
- package/dist/src/ui/components/ThemeDialog.d.ts +0 -19
- package/dist/src/ui/components/ThemeDialog.js +0 -126
- package/dist/src/ui/components/ThemeDialog.js.map +0 -1
- package/dist/src/ui/components/Tips.d.ts +0 -12
- package/dist/src/ui/components/Tips.js +0 -8
- package/dist/src/ui/components/Tips.js.map +0 -1
- package/dist/src/ui/components/ToolStatsDisplay.d.ts +0 -7
- package/dist/src/ui/components/ToolStatsDisplay.js +0 -41
- package/dist/src/ui/components/ToolStatsDisplay.js.map +0 -1
- package/dist/src/ui/components/UpdateNotification.d.ts +0 -10
- package/dist/src/ui/components/UpdateNotification.js +0 -10
- package/dist/src/ui/components/UpdateNotification.js.map +0 -1
- package/dist/src/ui/components/messages/CompressionMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/CompressionMessage.js +0 -16
- package/dist/src/ui/components/messages/CompressionMessage.js.map +0 -1
- package/dist/src/ui/components/messages/DiffRenderer.d.ts +0 -15
- package/dist/src/ui/components/messages/DiffRenderer.js +0 -212
- package/dist/src/ui/components/messages/DiffRenderer.js.map +0 -1
- package/dist/src/ui/components/messages/ErrorMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/ErrorMessage.js +0 -9
- package/dist/src/ui/components/messages/ErrorMessage.js.map +0 -1
- package/dist/src/ui/components/messages/GeminiMessage.d.ts +0 -14
- package/dist/src/ui/components/messages/GeminiMessage.js +0 -10
- package/dist/src/ui/components/messages/GeminiMessage.js.map +0 -1
- package/dist/src/ui/components/messages/GeminiMessageContent.d.ts +0 -14
- package/dist/src/ui/components/messages/GeminiMessageContent.js +0 -15
- package/dist/src/ui/components/messages/GeminiMessageContent.js.map +0 -1
- package/dist/src/ui/components/messages/InfoMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/InfoMessage.js +0 -9
- package/dist/src/ui/components/messages/InfoMessage.js.map +0 -1
- package/dist/src/ui/components/messages/ToolConfirmationMessage.d.ts +0 -18
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js +0 -307
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js.map +0 -1
- package/dist/src/ui/components/messages/ToolGroupMessage.d.ts +0 -18
- package/dist/src/ui/components/messages/ToolGroupMessage.js +0 -53
- package/dist/src/ui/components/messages/ToolGroupMessage.js.map +0 -1
- package/dist/src/ui/components/messages/ToolMessage.d.ts +0 -15
- package/dist/src/ui/components/messages/ToolMessage.js +0 -61
- package/dist/src/ui/components/messages/ToolMessage.js.map +0 -1
- package/dist/src/ui/components/messages/UserMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/UserMessage.js +0 -9
- package/dist/src/ui/components/messages/UserMessage.js.map +0 -1
- package/dist/src/ui/components/messages/UserShellMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/UserShellMessage.js +0 -9
- package/dist/src/ui/components/messages/UserShellMessage.js.map +0 -1
- package/dist/src/ui/components/shared/MaxSizedBox.d.ts +0 -61
- package/dist/src/ui/components/shared/MaxSizedBox.js +0 -384
- package/dist/src/ui/components/shared/MaxSizedBox.js.map +0 -1
- package/dist/src/ui/components/shared/RadioButtonSelect.d.ts +0 -41
- package/dist/src/ui/components/shared/RadioButtonSelect.js +0 -52
- package/dist/src/ui/components/shared/RadioButtonSelect.js.map +0 -1
- package/dist/src/ui/components/shared/text-buffer.d.ts +0 -184
- package/dist/src/ui/components/shared/text-buffer.js +0 -1010
- package/dist/src/ui/components/shared/text-buffer.js.map +0 -1
- package/dist/src/ui/constants.d.ts +0 -8
- package/dist/src/ui/constants.js +0 -12
- package/dist/src/ui/constants.js.map +0 -1
- package/dist/src/ui/contexts/OverflowContext.d.ts +0 -19
- package/dist/src/ui/contexts/OverflowContext.js +0 -43
- package/dist/src/ui/contexts/OverflowContext.js.map +0 -1
- package/dist/src/ui/contexts/SessionContext.d.ts +0 -33
- package/dist/src/ui/contexts/SessionContext.js +0 -49
- package/dist/src/ui/contexts/SessionContext.js.map +0 -1
- package/dist/src/ui/contexts/StreamingContext.d.ts +0 -9
- package/dist/src/ui/contexts/StreamingContext.js +0 -15
- package/dist/src/ui/contexts/StreamingContext.js.map +0 -1
- package/dist/src/ui/editors/editorSettingsManager.d.ts +0 -19
- package/dist/src/ui/editors/editorSettingsManager.js +0 -54
- package/dist/src/ui/editors/editorSettingsManager.js.map +0 -1
- package/dist/src/ui/hooks/atCommandProcessor.d.ts +0 -31
- package/dist/src/ui/hooks/atCommandProcessor.js +0 -310
- package/dist/src/ui/hooks/atCommandProcessor.js.map +0 -1
- package/dist/src/ui/hooks/shellCommandProcessor.d.ts +0 -16
- package/dist/src/ui/hooks/shellCommandProcessor.js +0 -261
- package/dist/src/ui/hooks/shellCommandProcessor.js.map +0 -1
- package/dist/src/ui/hooks/slashCommandProcessor.d.ts +0 -27
- package/dist/src/ui/hooks/slashCommandProcessor.js +0 -1129
- package/dist/src/ui/hooks/slashCommandProcessor.js.map +0 -1
- package/dist/src/ui/hooks/useAuthCommand.d.ts +0 -14
- package/dist/src/ui/hooks/useAuthCommand.js +0 -63
- package/dist/src/ui/hooks/useAuthCommand.js.map +0 -1
- package/dist/src/ui/hooks/useAutoAcceptIndicator.d.ts +0 -10
- package/dist/src/ui/hooks/useAutoAcceptIndicator.js +0 -37
- package/dist/src/ui/hooks/useAutoAcceptIndicator.js.map +0 -1
- package/dist/src/ui/hooks/useBracketedPaste.d.ts +0 -12
- package/dist/src/ui/hooks/useBracketedPaste.js +0 -32
- package/dist/src/ui/hooks/useBracketedPaste.js.map +0 -1
- package/dist/src/ui/hooks/useCompletion.d.ts +0 -21
- package/dist/src/ui/hooks/useCompletion.js +0 -372
- package/dist/src/ui/hooks/useCompletion.js.map +0 -1
- package/dist/src/ui/hooks/useConsoleMessages.d.ts +0 -12
- package/dist/src/ui/hooks/useConsoleMessages.js +0 -60
- package/dist/src/ui/hooks/useConsoleMessages.js.map +0 -1
- package/dist/src/ui/hooks/useEditorSettings.d.ts +0 -16
- package/dist/src/ui/hooks/useEditorSettings.js +0 -43
- package/dist/src/ui/hooks/useEditorSettings.js.map +0 -1
- package/dist/src/ui/hooks/useGeminiStream.d.ts +0 -23
- package/dist/src/ui/hooks/useGeminiStream.js +0 -603
- package/dist/src/ui/hooks/useGeminiStream.js.map +0 -1
- package/dist/src/ui/hooks/useGitBranchName.d.ts +0 -6
- package/dist/src/ui/hooks/useGitBranchName.js +0 -61
- package/dist/src/ui/hooks/useGitBranchName.js.map +0 -1
- package/dist/src/ui/hooks/useHistoryManager.d.ts +0 -22
- package/dist/src/ui/hooks/useHistoryManager.js +0 -72
- package/dist/src/ui/hooks/useHistoryManager.js.map +0 -1
- package/dist/src/ui/hooks/useInputHistory.d.ts +0 -19
- package/dist/src/ui/hooks/useInputHistory.js +0 -84
- package/dist/src/ui/hooks/useInputHistory.js.map +0 -1
- package/dist/src/ui/hooks/useKeypress.d.ts +0 -29
- package/dist/src/ui/hooks/useKeypress.js +0 -86
- package/dist/src/ui/hooks/useKeypress.js.map +0 -1
- package/dist/src/ui/hooks/useLoadingIndicator.d.ts +0 -10
- package/dist/src/ui/hooks/useLoadingIndicator.js +0 -44
- package/dist/src/ui/hooks/useLoadingIndicator.js.map +0 -1
- package/dist/src/ui/hooks/useLogger.d.ts +0 -10
- package/dist/src/ui/hooks/useLogger.js +0 -29
- package/dist/src/ui/hooks/useLogger.js.map +0 -1
- package/dist/src/ui/hooks/usePhraseCycler.d.ts +0 -14
- package/dist/src/ui/hooks/usePhraseCycler.js +0 -189
- package/dist/src/ui/hooks/usePhraseCycler.js.map +0 -1
- package/dist/src/ui/hooks/usePrivacySettings.d.ts +0 -16
- package/dist/src/ui/hooks/usePrivacySettings.js +0 -115
- package/dist/src/ui/hooks/usePrivacySettings.js.map +0 -1
- package/dist/src/ui/hooks/useReactToolScheduler.d.ts +0 -33
- package/dist/src/ui/hooks/useReactToolScheduler.js +0 -186
- package/dist/src/ui/hooks/useReactToolScheduler.js.map +0 -1
- package/dist/src/ui/hooks/useRefreshMemoryCommand.d.ts +0 -6
- package/dist/src/ui/hooks/useRefreshMemoryCommand.js +0 -7
- package/dist/src/ui/hooks/useRefreshMemoryCommand.js.map +0 -1
- package/dist/src/ui/hooks/useShellHistory.d.ts +0 -11
- package/dist/src/ui/hooks/useShellHistory.js +0 -89
- package/dist/src/ui/hooks/useShellHistory.js.map +0 -1
- package/dist/src/ui/hooks/useShowMemoryCommand.d.ts +0 -9
- package/dist/src/ui/hooks/useShowMemoryCommand.js +0 -58
- package/dist/src/ui/hooks/useShowMemoryCommand.js.map +0 -1
- package/dist/src/ui/hooks/useStateAndRef.d.ts +0 -7
- package/dist/src/ui/hooks/useStateAndRef.js +0 -26
- package/dist/src/ui/hooks/useStateAndRef.js.map +0 -1
- package/dist/src/ui/hooks/useTerminalSize.d.ts +0 -9
- package/dist/src/ui/hooks/useTerminalSize.js +0 -27
- package/dist/src/ui/hooks/useTerminalSize.js.map +0 -1
- package/dist/src/ui/hooks/useThemeCommand.d.ts +0 -15
- package/dist/src/ui/hooks/useThemeCommand.js +0 -78
- package/dist/src/ui/hooks/useThemeCommand.js.map +0 -1
- package/dist/src/ui/hooks/useTimer.d.ts +0 -12
- package/dist/src/ui/hooks/useTimer.js +0 -58
- package/dist/src/ui/hooks/useTimer.js.map +0 -1
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.d.ts +0 -12
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.js +0 -40
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.js.map +0 -1
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.d.ts +0 -10
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js +0 -17
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js.map +0 -1
- package/dist/src/ui/privacy/GeminiPrivacyNotice.d.ts +0 -10
- package/dist/src/ui/privacy/GeminiPrivacyNotice.js +0 -17
- package/dist/src/ui/privacy/GeminiPrivacyNotice.js.map +0 -1
- package/dist/src/ui/privacy/PrivacyNotice.d.ts +0 -12
- package/dist/src/ui/privacy/PrivacyNotice.js +0 -25
- package/dist/src/ui/privacy/PrivacyNotice.js.map +0 -1
- package/dist/src/ui/themes/ansi-light.d.ts +0 -7
- package/dist/src/ui/themes/ansi-light.js +0 -139
- package/dist/src/ui/themes/ansi-light.js.map +0 -1
- package/dist/src/ui/themes/ansi.d.ts +0 -7
- package/dist/src/ui/themes/ansi.js +0 -149
- package/dist/src/ui/themes/ansi.js.map +0 -1
- package/dist/src/ui/themes/atom-one-dark.d.ts +0 -7
- package/dist/src/ui/themes/atom-one-dark.js +0 -136
- package/dist/src/ui/themes/atom-one-dark.js.map +0 -1
- package/dist/src/ui/themes/ayu-light.d.ts +0 -7
- package/dist/src/ui/themes/ayu-light.js +0 -128
- package/dist/src/ui/themes/ayu-light.js.map +0 -1
- package/dist/src/ui/themes/ayu.d.ts +0 -7
- package/dist/src/ui/themes/ayu.js +0 -102
- package/dist/src/ui/themes/ayu.js.map +0 -1
- package/dist/src/ui/themes/default-light.d.ts +0 -7
- package/dist/src/ui/themes/default-light.js +0 -100
- package/dist/src/ui/themes/default-light.js.map +0 -1
- package/dist/src/ui/themes/default.d.ts +0 -7
- package/dist/src/ui/themes/default.js +0 -143
- package/dist/src/ui/themes/default.js.map +0 -1
- package/dist/src/ui/themes/dracula.d.ts +0 -7
- package/dist/src/ui/themes/dracula.js +0 -113
- package/dist/src/ui/themes/dracula.js.map +0 -1
- package/dist/src/ui/themes/github-dark.d.ts +0 -7
- package/dist/src/ui/themes/github-dark.js +0 -136
- package/dist/src/ui/themes/github-dark.js.map +0 -1
- package/dist/src/ui/themes/github-light.d.ts +0 -7
- package/dist/src/ui/themes/github-light.js +0 -138
- package/dist/src/ui/themes/github-light.js.map +0 -1
- package/dist/src/ui/themes/googlecode.d.ts +0 -7
- package/dist/src/ui/themes/googlecode.js +0 -135
- package/dist/src/ui/themes/googlecode.js.map +0 -1
- package/dist/src/ui/themes/no-color.d.ts +0 -7
- package/dist/src/ui/themes/no-color.js +0 -84
- package/dist/src/ui/themes/no-color.js.map +0 -1
- package/dist/src/ui/themes/shades-of-purple.d.ts +0 -11
- package/dist/src/ui/themes/shades-of-purple.js +0 -302
- package/dist/src/ui/themes/shades-of-purple.js.map +0 -1
- package/dist/src/ui/themes/theme-manager.d.ts +0 -33
- package/dist/src/ui/themes/theme-manager.js +0 -109
- package/dist/src/ui/themes/theme-manager.js.map +0 -1
- package/dist/src/ui/themes/theme.d.ts +0 -67
- package/dist/src/ui/themes/theme.js +0 -304
- package/dist/src/ui/themes/theme.js.map +0 -1
- package/dist/src/ui/themes/xcode.d.ts +0 -7
- package/dist/src/ui/themes/xcode.js +0 -143
- package/dist/src/ui/themes/xcode.js.map +0 -1
- package/dist/src/ui/types.d.ts +0 -172
- package/dist/src/ui/types.js +0 -43
- package/dist/src/ui/types.js.map +0 -1
- package/dist/src/ui/utils/CodeColorizer.d.ts +0 -14
- package/dist/src/ui/utils/CodeColorizer.js +0 -97
- package/dist/src/ui/utils/CodeColorizer.js.map +0 -1
- package/dist/src/ui/utils/InlineMarkdownRenderer.d.ts +0 -16
- package/dist/src/ui/utils/InlineMarkdownRenderer.js +0 -104
- package/dist/src/ui/utils/InlineMarkdownRenderer.js.map +0 -1
- package/dist/src/ui/utils/MarkdownDisplay.d.ts +0 -14
- package/dist/src/ui/utils/MarkdownDisplay.js +0 -197
- package/dist/src/ui/utils/MarkdownDisplay.js.map +0 -1
- package/dist/src/ui/utils/TableRenderer.d.ts +0 -17
- package/dist/src/ui/utils/TableRenderer.js +0 -84
- package/dist/src/ui/utils/TableRenderer.js.map +0 -1
- package/dist/src/ui/utils/commandUtils.d.ts +0 -22
- package/dist/src/ui/utils/commandUtils.js +0 -25
- package/dist/src/ui/utils/commandUtils.js.map +0 -1
- package/dist/src/ui/utils/computeStats.d.ts +0 -10
- package/dist/src/ui/utils/computeStats.js +0 -55
- package/dist/src/ui/utils/computeStats.js.map +0 -1
- package/dist/src/ui/utils/displayUtils.d.ts +0 -17
- package/dist/src/ui/utils/displayUtils.js +0 -24
- package/dist/src/ui/utils/displayUtils.js.map +0 -1
- package/dist/src/ui/utils/errorParsing.d.ts +0 -15
- package/dist/src/ui/utils/errorParsing.js +0 -79
- package/dist/src/ui/utils/errorParsing.js.map +0 -1
- package/dist/src/ui/utils/formatters.d.ts +0 -13
- package/dist/src/ui/utils/formatters.js +0 -56
- package/dist/src/ui/utils/formatters.js.map +0 -1
- package/dist/src/ui/utils/markdownUtilities.d.ts +0 -6
- package/dist/src/ui/utils/markdownUtilities.js +0 -110
- package/dist/src/ui/utils/markdownUtilities.js.map +0 -1
- package/dist/src/ui/utils/textUtils.d.ts +0 -22
- package/dist/src/ui/utils/textUtils.js +0 -58
- package/dist/src/ui/utils/textUtils.js.map +0 -1
- package/dist/src/ui/utils/updateCheck.d.ts +0 -6
- package/dist/src/ui/utils/updateCheck.js +0 -36
- package/dist/src/ui/utils/updateCheck.js.map +0 -1
- package/dist/src/utils/cleanup.d.ts +0 -6
- package/dist/src/utils/cleanup.js +0 -19
- package/dist/src/utils/cleanup.js.map +0 -1
- package/dist/src/utils/package.d.ts +0 -12
- package/dist/src/utils/package.js +0 -24
- package/dist/src/utils/package.js.map +0 -1
- package/dist/src/utils/readStdin.d.ts +0 -6
- package/dist/src/utils/readStdin.js +0 -34
- package/dist/src/utils/readStdin.js.map +0 -1
- package/dist/src/utils/sandbox.d.ts +0 -7
- package/dist/src/utils/sandbox.js +0 -680
- package/dist/src/utils/sandbox.js.map +0 -1
- package/dist/src/utils/startupWarnings.d.ts +0 -6
- package/dist/src/utils/startupWarnings.js +0 -40
- package/dist/src/utils/startupWarnings.js.map +0 -1
- package/dist/src/utils/userStartupWarnings.d.ts +0 -6
- package/dist/src/utils/userStartupWarnings.js +0 -33
- package/dist/src/utils/userStartupWarnings.js.map +0 -1
- package/dist/src/utils/version.d.ts +0 -6
- package/dist/src/utils/version.js +0 -11
- package/dist/src/utils/version.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/dist/vitest.config.d.ts +0 -7
- package/dist/vitest.config.js +0 -35
- package/dist/vitest.config.js.map +0 -1
- /package/{dist/src/utils → bundle}/sandbox-macos-permissive-closed.sb +0 -0
- /package/{dist/src/utils → bundle}/sandbox-macos-permissive-open.sb +0 -0
- /package/{dist/src/utils → bundle}/sandbox-macos-permissive-proxied.sb +0 -0
- /package/{dist/src/utils → bundle}/sandbox-macos-restrictive-closed.sb +0 -0
- /package/{dist/src/utils → bundle}/sandbox-macos-restrictive-open.sb +0 -0
- /package/{dist/src/utils → bundle}/sandbox-macos-restrictive-proxied.sb +0 -0
|
@@ -1,555 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
// Gemini定价 (每1M tokens,美元)
|
|
7
|
-
const GEMINI_PRICING = {
|
|
8
|
-
'gemini-1.5-flash': {
|
|
9
|
-
input: 0.075, // $0.075 per 1M input tokens
|
|
10
|
-
output: 0.30, // $0.30 per 1M output tokens
|
|
11
|
-
},
|
|
12
|
-
'gemini-1.5-pro': {
|
|
13
|
-
input: 1.25, // $1.25 per 1M input tokens
|
|
14
|
-
output: 5.00, // $5.00 per 1M output tokens
|
|
15
|
-
},
|
|
16
|
-
'gemini-1.0-pro': {
|
|
17
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
18
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
19
|
-
},
|
|
20
|
-
'gemini-1.5-flash-8b': {
|
|
21
|
-
input: 0.0375, // $0.0375 per 1M input tokens
|
|
22
|
-
output: 0.15, // $0.15 per 1M output tokens
|
|
23
|
-
},
|
|
24
|
-
'gemini-1.5-flash-8b-8k': {
|
|
25
|
-
input: 0.0375, // $0.0375 per 1M input tokens
|
|
26
|
-
output: 0.15, // $0.15 per 1M output tokens
|
|
27
|
-
},
|
|
28
|
-
'gemini-1.5-flash-8b-128k': {
|
|
29
|
-
input: 0.0375, // $0.0375 per 1M input tokens
|
|
30
|
-
output: 0.15, // $0.15 per 1M output tokens
|
|
31
|
-
},
|
|
32
|
-
'gemini-1.5-flash-8b-1m': {
|
|
33
|
-
input: 0.0375, // $0.0375 per 1M input tokens
|
|
34
|
-
output: 0.15, // $0.15 per 1M output tokens
|
|
35
|
-
},
|
|
36
|
-
'gemini-1.5-flash-8b-8k-it': {
|
|
37
|
-
input: 0.0375, // $0.0375 per 1M input tokens
|
|
38
|
-
output: 0.15, // $0.15 per 1M output tokens
|
|
39
|
-
},
|
|
40
|
-
'gemini-1.5-flash-8b-128k-it': {
|
|
41
|
-
input: 0.0375, // $0.0375 per 1M input tokens
|
|
42
|
-
output: 0.15, // $0.15 per 1M output tokens
|
|
43
|
-
},
|
|
44
|
-
'gemini-1.5-flash-8b-1m-it': {
|
|
45
|
-
input: 0.0375, // $0.0375 per 1M input tokens
|
|
46
|
-
output: 0.15, // $0.15 per 1M output tokens
|
|
47
|
-
},
|
|
48
|
-
'gemini-1.5-flash-1m': {
|
|
49
|
-
input: 0.075, // $0.075 per 1M input tokens
|
|
50
|
-
output: 0.30, // $0.30 per 1M output tokens
|
|
51
|
-
},
|
|
52
|
-
'gemini-1.5-flash-1m-it': {
|
|
53
|
-
input: 0.075, // $0.075 per 1M input tokens
|
|
54
|
-
output: 0.30, // $0.30 per 1M output tokens
|
|
55
|
-
},
|
|
56
|
-
'gemini-1.5-flash-128k': {
|
|
57
|
-
input: 0.075, // $0.075 per 1M input tokens
|
|
58
|
-
output: 0.30, // $0.30 per 1M output tokens
|
|
59
|
-
},
|
|
60
|
-
'gemini-1.5-flash-128k-it': {
|
|
61
|
-
input: 0.075, // $0.075 per 1M input tokens
|
|
62
|
-
output: 0.30, // $0.30 per 1M output tokens
|
|
63
|
-
},
|
|
64
|
-
'gemini-1.5-flash-8k': {
|
|
65
|
-
input: 0.075, // $0.075 per 1M input tokens
|
|
66
|
-
output: 0.30, // $0.30 per 1M output tokens
|
|
67
|
-
},
|
|
68
|
-
'gemini-1.5-flash-8k-it': {
|
|
69
|
-
input: 0.075, // $0.075 per 1M input tokens
|
|
70
|
-
output: 0.30, // $0.30 per 1M output tokens
|
|
71
|
-
},
|
|
72
|
-
'gemini-1.5-pro-1m': {
|
|
73
|
-
input: 1.25, // $1.25 per 1M input tokens
|
|
74
|
-
output: 5.00, // $5.00 per 1M output tokens
|
|
75
|
-
},
|
|
76
|
-
'gemini-1.5-pro-1m-it': {
|
|
77
|
-
input: 1.25, // $1.25 per 1M input tokens
|
|
78
|
-
output: 5.00, // $5.00 per 1M output tokens
|
|
79
|
-
},
|
|
80
|
-
'gemini-1.5-pro-128k': {
|
|
81
|
-
input: 1.25, // $1.25 per 1M input tokens
|
|
82
|
-
output: 5.00, // $5.00 per 1M output tokens
|
|
83
|
-
},
|
|
84
|
-
'gemini-1.5-pro-128k-it': {
|
|
85
|
-
input: 1.25, // $1.25 per 1M input tokens
|
|
86
|
-
output: 5.00, // $5.00 per 1M output tokens
|
|
87
|
-
},
|
|
88
|
-
'gemini-1.5-pro-8k': {
|
|
89
|
-
input: 1.25, // $1.25 per 1M input tokens
|
|
90
|
-
output: 5.00, // $5.00 per 1M output tokens
|
|
91
|
-
},
|
|
92
|
-
'gemini-1.5-pro-8k-it': {
|
|
93
|
-
input: 1.25, // $1.25 per 1M input tokens
|
|
94
|
-
output: 5.00, // $5.00 per 1M output tokens
|
|
95
|
-
},
|
|
96
|
-
'gemini-1.0-pro-001': {
|
|
97
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
98
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
99
|
-
},
|
|
100
|
-
'gemini-1.0-pro-002': {
|
|
101
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
102
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
103
|
-
},
|
|
104
|
-
'gemini-1.0-pro-vision': {
|
|
105
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
106
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
107
|
-
},
|
|
108
|
-
'gemini-1.0-pro-vision-001': {
|
|
109
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
110
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
111
|
-
},
|
|
112
|
-
'gemini-1.0-pro-vision-002': {
|
|
113
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
114
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
115
|
-
},
|
|
116
|
-
'gemini-1.0-pro-vision-003': {
|
|
117
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
118
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
119
|
-
},
|
|
120
|
-
'gemini-1.0-pro-vision-004': {
|
|
121
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
122
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
123
|
-
},
|
|
124
|
-
'gemini-1.0-pro-vision-005': {
|
|
125
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
126
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
127
|
-
},
|
|
128
|
-
'gemini-1.0-pro-vision-006': {
|
|
129
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
130
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
131
|
-
},
|
|
132
|
-
'gemini-1.0-pro-vision-007': {
|
|
133
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
134
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
135
|
-
},
|
|
136
|
-
'gemini-1.0-pro-vision-008': {
|
|
137
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
138
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
139
|
-
},
|
|
140
|
-
'gemini-1.0-pro-vision-009': {
|
|
141
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
142
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
143
|
-
},
|
|
144
|
-
'gemini-1.0-pro-vision-010': {
|
|
145
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
146
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
147
|
-
},
|
|
148
|
-
'gemini-1.0-pro-vision-011': {
|
|
149
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
150
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
151
|
-
},
|
|
152
|
-
'gemini-1.0-pro-vision-012': {
|
|
153
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
154
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
155
|
-
},
|
|
156
|
-
'gemini-1.0-pro-vision-013': {
|
|
157
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
158
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
159
|
-
},
|
|
160
|
-
'gemini-1.0-pro-vision-014': {
|
|
161
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
162
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
163
|
-
},
|
|
164
|
-
'gemini-1.0-pro-vision-015': {
|
|
165
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
166
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
167
|
-
},
|
|
168
|
-
'gemini-1.0-pro-vision-016': {
|
|
169
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
170
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
171
|
-
},
|
|
172
|
-
'gemini-1.0-pro-vision-017': {
|
|
173
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
174
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
175
|
-
},
|
|
176
|
-
'gemini-1.0-pro-vision-018': {
|
|
177
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
178
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
179
|
-
},
|
|
180
|
-
'gemini-1.0-pro-vision-019': {
|
|
181
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
182
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
183
|
-
},
|
|
184
|
-
'gemini-1.0-pro-vision-020': {
|
|
185
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
186
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
187
|
-
},
|
|
188
|
-
'gemini-1.0-pro-vision-021': {
|
|
189
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
190
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
191
|
-
},
|
|
192
|
-
'gemini-1.0-pro-vision-022': {
|
|
193
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
194
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
195
|
-
},
|
|
196
|
-
'gemini-1.0-pro-vision-023': {
|
|
197
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
198
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
199
|
-
},
|
|
200
|
-
'gemini-1.0-pro-vision-024': {
|
|
201
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
202
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
203
|
-
},
|
|
204
|
-
'gemini-1.0-pro-vision-025': {
|
|
205
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
206
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
207
|
-
},
|
|
208
|
-
'gemini-1.0-pro-vision-026': {
|
|
209
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
210
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
211
|
-
},
|
|
212
|
-
'gemini-1.0-pro-vision-027': {
|
|
213
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
214
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
215
|
-
},
|
|
216
|
-
'gemini-1.0-pro-vision-028': {
|
|
217
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
218
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
219
|
-
},
|
|
220
|
-
'gemini-1.0-pro-vision-029': {
|
|
221
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
222
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
223
|
-
},
|
|
224
|
-
'gemini-1.0-pro-vision-030': {
|
|
225
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
226
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
227
|
-
},
|
|
228
|
-
'gemini-1.0-pro-vision-031': {
|
|
229
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
230
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
231
|
-
},
|
|
232
|
-
'gemini-1.0-pro-vision-032': {
|
|
233
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
234
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
235
|
-
},
|
|
236
|
-
'gemini-1.0-pro-vision-033': {
|
|
237
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
238
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
239
|
-
},
|
|
240
|
-
'gemini-1.0-pro-vision-034': {
|
|
241
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
242
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
243
|
-
},
|
|
244
|
-
'gemini-1.0-pro-vision-035': {
|
|
245
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
246
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
247
|
-
},
|
|
248
|
-
'gemini-1.0-pro-vision-036': {
|
|
249
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
250
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
251
|
-
},
|
|
252
|
-
'gemini-1.0-pro-vision-037': {
|
|
253
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
254
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
255
|
-
},
|
|
256
|
-
'gemini-1.0-pro-vision-038': {
|
|
257
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
258
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
259
|
-
},
|
|
260
|
-
'gemini-1.0-pro-vision-039': {
|
|
261
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
262
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
263
|
-
},
|
|
264
|
-
'gemini-1.0-pro-vision-040': {
|
|
265
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
266
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
267
|
-
},
|
|
268
|
-
'gemini-1.0-pro-vision-041': {
|
|
269
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
270
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
271
|
-
},
|
|
272
|
-
'gemini-1.0-pro-vision-042': {
|
|
273
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
274
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
275
|
-
},
|
|
276
|
-
'gemini-1.0-pro-vision-043': {
|
|
277
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
278
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
279
|
-
},
|
|
280
|
-
'gemini-1.0-pro-vision-044': {
|
|
281
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
282
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
283
|
-
},
|
|
284
|
-
'gemini-1.0-pro-vision-045': {
|
|
285
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
286
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
287
|
-
},
|
|
288
|
-
'gemini-1.0-pro-vision-046': {
|
|
289
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
290
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
291
|
-
},
|
|
292
|
-
'gemini-1.0-pro-vision-047': {
|
|
293
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
294
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
295
|
-
},
|
|
296
|
-
'gemini-1.0-pro-vision-048': {
|
|
297
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
298
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
299
|
-
},
|
|
300
|
-
'gemini-1.0-pro-vision-049': {
|
|
301
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
302
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
303
|
-
},
|
|
304
|
-
'gemini-1.0-pro-vision-050': {
|
|
305
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
306
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
307
|
-
},
|
|
308
|
-
'gemini-1.0-pro-vision-051': {
|
|
309
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
310
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
311
|
-
},
|
|
312
|
-
'gemini-1.0-pro-vision-052': {
|
|
313
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
314
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
315
|
-
},
|
|
316
|
-
'gemini-1.0-pro-vision-053': {
|
|
317
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
318
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
319
|
-
},
|
|
320
|
-
'gemini-1.0-pro-vision-054': {
|
|
321
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
322
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
323
|
-
},
|
|
324
|
-
'gemini-1.0-pro-vision-055': {
|
|
325
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
326
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
327
|
-
},
|
|
328
|
-
'gemini-1.0-pro-vision-056': {
|
|
329
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
330
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
331
|
-
},
|
|
332
|
-
'gemini-1.0-pro-vision-057': {
|
|
333
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
334
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
335
|
-
},
|
|
336
|
-
'gemini-1.0-pro-vision-058': {
|
|
337
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
338
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
339
|
-
},
|
|
340
|
-
'gemini-1.0-pro-vision-059': {
|
|
341
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
342
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
343
|
-
},
|
|
344
|
-
'gemini-1.0-pro-vision-060': {
|
|
345
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
346
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
347
|
-
},
|
|
348
|
-
'gemini-1.0-pro-vision-061': {
|
|
349
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
350
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
351
|
-
},
|
|
352
|
-
'gemini-1.0-pro-vision-062': {
|
|
353
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
354
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
355
|
-
},
|
|
356
|
-
'gemini-1.0-pro-vision-063': {
|
|
357
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
358
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
359
|
-
},
|
|
360
|
-
'gemini-1.0-pro-vision-064': {
|
|
361
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
362
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
363
|
-
},
|
|
364
|
-
'gemini-1.0-pro-vision-065': {
|
|
365
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
366
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
367
|
-
},
|
|
368
|
-
'gemini-1.0-pro-vision-066': {
|
|
369
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
370
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
371
|
-
},
|
|
372
|
-
'gemini-1.0-pro-vision-067': {
|
|
373
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
374
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
375
|
-
},
|
|
376
|
-
'gemini-1.0-pro-vision-068': {
|
|
377
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
378
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
379
|
-
},
|
|
380
|
-
'gemini-1.0-pro-vision-069': {
|
|
381
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
382
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
383
|
-
},
|
|
384
|
-
'gemini-1.0-pro-vision-070': {
|
|
385
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
386
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
387
|
-
},
|
|
388
|
-
'gemini-1.0-pro-vision-071': {
|
|
389
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
390
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
391
|
-
},
|
|
392
|
-
'gemini-1.0-pro-vision-072': {
|
|
393
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
394
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
395
|
-
},
|
|
396
|
-
'gemini-1.0-pro-vision-073': {
|
|
397
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
398
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
399
|
-
},
|
|
400
|
-
'gemini-1.0-pro-vision-074': {
|
|
401
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
402
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
403
|
-
},
|
|
404
|
-
'gemini-1.0-pro-vision-075': {
|
|
405
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
406
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
407
|
-
},
|
|
408
|
-
'gemini-1.0-pro-vision-076': {
|
|
409
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
410
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
411
|
-
},
|
|
412
|
-
'gemini-1.0-pro-vision-077': {
|
|
413
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
414
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
415
|
-
},
|
|
416
|
-
'gemini-1.0-pro-vision-078': {
|
|
417
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
418
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
419
|
-
},
|
|
420
|
-
'gemini-1.0-pro-vision-079': {
|
|
421
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
422
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
423
|
-
},
|
|
424
|
-
'gemini-1.0-pro-vision-080': {
|
|
425
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
426
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
427
|
-
},
|
|
428
|
-
'gemini-1.0-pro-vision-081': {
|
|
429
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
430
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
431
|
-
},
|
|
432
|
-
'gemini-1.0-pro-vision-082': {
|
|
433
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
434
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
435
|
-
},
|
|
436
|
-
'gemini-1.0-pro-vision-083': {
|
|
437
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
438
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
439
|
-
},
|
|
440
|
-
'gemini-1.0-pro-vision-084': {
|
|
441
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
442
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
443
|
-
},
|
|
444
|
-
'gemini-1.0-pro-vision-085': {
|
|
445
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
446
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
447
|
-
},
|
|
448
|
-
'gemini-1.0-pro-vision-086': {
|
|
449
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
450
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
451
|
-
},
|
|
452
|
-
'gemini-1.0-pro-vision-087': {
|
|
453
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
454
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
455
|
-
},
|
|
456
|
-
'gemini-1.0-pro-vision-088': {
|
|
457
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
458
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
459
|
-
},
|
|
460
|
-
'gemini-1.0-pro-vision-089': {
|
|
461
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
462
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
463
|
-
},
|
|
464
|
-
'gemini-1.0-pro-vision-090': {
|
|
465
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
466
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
467
|
-
},
|
|
468
|
-
'gemini-1.0-pro-vision-091': {
|
|
469
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
470
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
471
|
-
},
|
|
472
|
-
'gemini-1.0-pro-vision-092': {
|
|
473
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
474
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
475
|
-
},
|
|
476
|
-
'gemini-1.0-pro-vision-093': {
|
|
477
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
478
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
479
|
-
},
|
|
480
|
-
'gemini-1.0-pro-vision-094': {
|
|
481
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
482
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
483
|
-
},
|
|
484
|
-
'gemini-1.0-pro-vision-095': {
|
|
485
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
486
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
487
|
-
},
|
|
488
|
-
'gemini-1.0-pro-vision-096': {
|
|
489
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
490
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
491
|
-
},
|
|
492
|
-
'gemini-1.0-pro-vision-097': {
|
|
493
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
494
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
495
|
-
},
|
|
496
|
-
'gemini-1.0-pro-vision-098': {
|
|
497
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
498
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
499
|
-
},
|
|
500
|
-
'gemini-1.0-pro-vision-099': {
|
|
501
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
502
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
503
|
-
},
|
|
504
|
-
'gemini-1.0-pro-vision-100': {
|
|
505
|
-
input: 0.50, // $0.50 per 1M input tokens
|
|
506
|
-
output: 1.50, // $1.50 per 1M output tokens
|
|
507
|
-
},
|
|
508
|
-
};
|
|
509
|
-
// 默认定价(用于未知模型)
|
|
510
|
-
const DEFAULT_PRICING = {
|
|
511
|
-
input: 1.0, // $1.0 per 1M input tokens
|
|
512
|
-
output: 2.0, // $2.0 per 1M output tokens
|
|
513
|
-
};
|
|
514
|
-
/**
|
|
515
|
-
* 计算API调用的成本
|
|
516
|
-
*/
|
|
517
|
-
export function calculateCost(model, usage) {
|
|
518
|
-
const pricing = GEMINI_PRICING[model] || DEFAULT_PRICING;
|
|
519
|
-
const inputTokens = usage.promptTokenCount || 0;
|
|
520
|
-
const outputTokens = usage.candidatesTokenCount || 0;
|
|
521
|
-
const totalTokens = usage.totalTokenCount || (inputTokens + outputTokens);
|
|
522
|
-
// 计算成本(每1M tokens的价格)
|
|
523
|
-
const inputCost = (inputTokens / 1_000_000) * pricing.input;
|
|
524
|
-
const outputCost = (outputTokens / 1_000_000) * pricing.output;
|
|
525
|
-
const totalCost = inputCost + outputCost;
|
|
526
|
-
return {
|
|
527
|
-
inputCost: Math.round(inputCost * 1000000) / 1000000, // 保留6位小数
|
|
528
|
-
outputCost: Math.round(outputCost * 1000000) / 1000000,
|
|
529
|
-
totalCost: Math.round(totalCost * 1000000) / 1000000,
|
|
530
|
-
inputTokens,
|
|
531
|
-
outputTokens,
|
|
532
|
-
totalTokens,
|
|
533
|
-
};
|
|
534
|
-
}
|
|
535
|
-
/**
|
|
536
|
-
* 获取模型定价信息
|
|
537
|
-
*/
|
|
538
|
-
export function getModelPricing(model) {
|
|
539
|
-
return GEMINI_PRICING[model] || DEFAULT_PRICING;
|
|
540
|
-
}
|
|
541
|
-
/**
|
|
542
|
-
* 格式化成本显示
|
|
543
|
-
*/
|
|
544
|
-
export function formatCost(cost) {
|
|
545
|
-
if (cost < 0.000001) {
|
|
546
|
-
return `$${(cost * 1000000).toFixed(2)}μ`; // 微美元
|
|
547
|
-
}
|
|
548
|
-
else if (cost < 0.001) {
|
|
549
|
-
return `$${(cost * 1000).toFixed(3)}m`; // 毫美元
|
|
550
|
-
}
|
|
551
|
-
else {
|
|
552
|
-
return `$${cost.toFixed(6)}`;
|
|
553
|
-
}
|
|
554
|
-
}
|
|
555
|
-
//# sourceMappingURL=costCalculator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"costCalculator.js","sourceRoot":"","sources":["../../../src/telemetry/costCalculator.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,2BAA2B;AAC3B,MAAM,cAAc,GAAG;IACrB,kBAAkB,EAAE;QAClB,KAAK,EAAE,KAAK,EAAI,6BAA6B;QAC7C,MAAM,EAAE,IAAI,EAAI,6BAA6B;KAC9C;IACD,gBAAgB,EAAE;QAChB,KAAK,EAAE,IAAI,EAAK,4BAA4B;QAC5C,MAAM,EAAE,IAAI,EAAI,6BAA6B;KAC9C;IACD,gBAAgB,EAAE;QAChB,KAAK,EAAE,IAAI,EAAK,4BAA4B;QAC5C,MAAM,EAAE,IAAI,EAAI,6BAA6B;KAC9C;IACD,qBAAqB,EAAE;QACrB,KAAK,EAAE,MAAM,EAAG,8BAA8B;QAC9C,MAAM,EAAE,IAAI,EAAI,6BAA6B;KAC9C;IACD,wBAAwB,EAAE;QACxB,KAAK,EAAE,MAAM,EAAG,8BAA8B;QAC9C,MAAM,EAAE,IAAI,EAAI,6BAA6B;KAC9C;IACD,0BAA0B,EAAE;QAC1B,KAAK,EAAE,MAAM,EA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AI,CAAC,KAAK,CAAC,SAAS,GAAG,OAAO,CAAC,GAAG,OAAO;QACpD,WAAW;QACX,YAAY;QACZ,WAAW;KACZ,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,KAAa;IAC3C,OAAO,cAAc,CAAC,KAAoC,CAAC,IAAI,eAAe,CAAC;AACjF,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,UAAU,CAAC,IAAY;IACrC,IAAI,IAAI,GAAG,QAAQ,EAAE,CAAC;QACpB,OAAO,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM;IACnD,CAAC;SAAM,IAAI,IAAI,GAAG,KAAK,EAAE,CAAC;QACxB,OAAO,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM;IAChD,CAAC;SAAM,CAAC;QACN,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;IAC/B,CAAC;AACH,CAAC"}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
export interface ConfirmationData {
|
|
7
|
-
sessionId: string;
|
|
8
|
-
callId: string;
|
|
9
|
-
toolName: string;
|
|
10
|
-
toolType: string;
|
|
11
|
-
toolDescription: string;
|
|
12
|
-
userChoice: string;
|
|
13
|
-
choiceDurationMs: number;
|
|
14
|
-
choiceReason: string;
|
|
15
|
-
projectPath: string;
|
|
16
|
-
workingDirectory: string;
|
|
17
|
-
terminalWidth: number;
|
|
18
|
-
terminalHeight: number;
|
|
19
|
-
availableHeight: number;
|
|
20
|
-
}
|
|
21
|
-
export declare class DataCollector {
|
|
22
|
-
private langfuseClient;
|
|
23
|
-
constructor();
|
|
24
|
-
collectConfirmationData(data: ConfirmationData): Promise<{
|
|
25
|
-
success: boolean;
|
|
26
|
-
reason: string;
|
|
27
|
-
traceId?: undefined;
|
|
28
|
-
error?: undefined;
|
|
29
|
-
} | {
|
|
30
|
-
success: boolean;
|
|
31
|
-
traceId: string;
|
|
32
|
-
reason?: undefined;
|
|
33
|
-
error?: undefined;
|
|
34
|
-
} | {
|
|
35
|
-
success: boolean;
|
|
36
|
-
error: string;
|
|
37
|
-
reason?: undefined;
|
|
38
|
-
traceId?: undefined;
|
|
39
|
-
}>;
|
|
40
|
-
collectToolExecutionData(sessionId: string, toolData: any): Promise<{
|
|
41
|
-
success: boolean;
|
|
42
|
-
reason: string;
|
|
43
|
-
traceId?: undefined;
|
|
44
|
-
error?: undefined;
|
|
45
|
-
} | {
|
|
46
|
-
success: boolean;
|
|
47
|
-
traceId: string;
|
|
48
|
-
reason?: undefined;
|
|
49
|
-
error?: undefined;
|
|
50
|
-
} | {
|
|
51
|
-
success: boolean;
|
|
52
|
-
error: string;
|
|
53
|
-
reason?: undefined;
|
|
54
|
-
traceId?: undefined;
|
|
55
|
-
}>;
|
|
56
|
-
collectAutoToolExecutionData(sessionId: string, toolData: any): Promise<{
|
|
57
|
-
success: boolean;
|
|
58
|
-
reason: string;
|
|
59
|
-
traceId?: undefined;
|
|
60
|
-
error?: undefined;
|
|
61
|
-
} | {
|
|
62
|
-
success: boolean;
|
|
63
|
-
traceId: string;
|
|
64
|
-
reason?: undefined;
|
|
65
|
-
error?: undefined;
|
|
66
|
-
} | {
|
|
67
|
-
success: boolean;
|
|
68
|
-
error: string;
|
|
69
|
-
reason?: undefined;
|
|
70
|
-
traceId?: undefined;
|
|
71
|
-
}>;
|
|
72
|
-
private extractMetadata;
|
|
73
|
-
private collectProjectContext;
|
|
74
|
-
private collectSystemEnvironment;
|
|
75
|
-
private collectSessionContext;
|
|
76
|
-
private validateAndSanitizeData;
|
|
77
|
-
private safeString;
|
|
78
|
-
private safeNumber;
|
|
79
|
-
private validateAndSanitizeToolData;
|
|
80
|
-
private getContentDetails;
|
|
81
|
-
private getGitInfo;
|
|
82
|
-
private getProjectStats;
|
|
83
|
-
}
|