mpd-llm-cli 0.1.18 → 0.1.20
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/.last_build +0 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/dist/package.json +83 -0
- package/dist/src/api/index.d.ts +17 -0
- package/dist/src/api/index.js +192 -0
- package/dist/src/api/index.js.map +1 -0
- package/dist/src/api/types.d.ts +32 -0
- package/dist/src/api/types.js +2 -0
- package/dist/src/api/types.js.map +1 -0
- package/dist/src/api/util.d.ts +4 -0
- package/dist/src/api/util.js +67 -0
- package/dist/src/api/util.js.map +1 -0
- package/dist/src/config/auth.d.ts +6 -0
- package/dist/src/config/auth.js +42 -0
- package/dist/src/config/auth.js.map +1 -0
- package/dist/src/config/config.d.ts +13 -0
- package/dist/src/config/config.js +248 -0
- package/dist/src/config/config.js.map +1 -0
- package/dist/src/config/extension.d.ts +21 -0
- package/dist/src/config/extension.js +109 -0
- package/dist/src/config/extension.js.map +1 -0
- package/dist/src/config/mpdaiConfig.d.ts +28 -0
- package/dist/src/config/mpdaiConfig.js +84 -0
- package/dist/src/config/mpdaiConfig.js.map +1 -0
- package/dist/src/config/sandboxConfig.d.ts +13 -0
- package/dist/src/config/sandboxConfig.js +75 -0
- package/dist/src/config/sandboxConfig.js.map +1 -0
- package/dist/src/config/settings.d.ts +72 -0
- package/dist/src/config/settings.js +227 -0
- package/dist/src/config/settings.js.map +1 -0
- package/dist/src/config/startup.d.ts +21 -0
- package/dist/src/config/startup.js +118 -0
- package/dist/src/config/startup.js.map +1 -0
- package/dist/src/gemini.d.ts +6 -0
- package/dist/src/gemini.js +300 -0
- package/dist/src/gemini.js.map +1 -0
- package/dist/src/generated/git-commit.d.ts +6 -0
- package/dist/src/generated/git-commit.js +9 -0
- package/dist/src/generated/git-commit.js.map +1 -0
- package/dist/src/nonInteractiveCli.d.ts +7 -0
- package/dist/src/nonInteractiveCli.js +115 -0
- package/dist/src/nonInteractiveCli.js.map +1 -0
- package/dist/src/services/AuthService.d.ts +110 -0
- package/dist/src/services/AuthService.js +258 -0
- package/dist/src/services/AuthService.js.map +1 -0
- package/dist/src/services/CommandService.d.ts +13 -0
- package/dist/src/services/CommandService.js +34 -0
- package/dist/src/services/CommandService.js.map +1 -0
- package/dist/src/services/EnvConfigManager.d.ts +34 -0
- package/dist/src/services/EnvConfigManager.js +141 -0
- package/dist/src/services/EnvConfigManager.js.map +1 -0
- package/dist/src/services/README.md +114 -0
- package/dist/src/services/debug-auth.d.ts +10 -0
- package/dist/src/services/debug-auth.js +104 -0
- package/dist/src/services/debug-auth.js.map +1 -0
- package/dist/src/services/demo.d.ts +10 -0
- package/dist/src/services/demo.js +96 -0
- package/dist/src/services/demo.js.map +1 -0
- package/dist/src/services/test-auth.d.ts +10 -0
- package/dist/src/services/test-auth.js +104 -0
- package/dist/src/services/test-auth.js.map +1 -0
- package/dist/src/services/test-readline.d.ts +6 -0
- package/dist/src/services/test-readline.js +32 -0
- package/dist/src/services/test-readline.js.map +1 -0
- package/dist/src/telemetry/README.md +135 -0
- package/dist/src/telemetry/costCalculator.d.ts +401 -0
- package/dist/src/telemetry/costCalculator.js +555 -0
- package/dist/src/telemetry/costCalculator.js.map +1 -0
- package/dist/src/telemetry/dataCollector.d.ts +83 -0
- package/dist/src/telemetry/dataCollector.js +392 -0
- package/dist/src/telemetry/dataCollector.js.map +1 -0
- package/dist/src/telemetry/langfuseClient.d.ts +64 -0
- package/dist/src/telemetry/langfuseClient.js +382 -0
- package/dist/src/telemetry/langfuseClient.js.map +1 -0
- package/dist/src/telemetry/langfuseConfig.d.ts +21 -0
- package/dist/src/telemetry/langfuseConfig.js +64 -0
- package/dist/src/telemetry/langfuseConfig.js.map +1 -0
- package/dist/src/telemetry/langfuseIntegration.d.ts +62 -0
- package/dist/src/telemetry/langfuseIntegration.js +173 -0
- package/dist/src/telemetry/langfuseIntegration.js.map +1 -0
- package/dist/src/telemetry/toolExecutionInterceptor.d.ts +29 -0
- package/dist/src/telemetry/toolExecutionInterceptor.js +122 -0
- package/dist/src/telemetry/toolExecutionInterceptor.js.map +1 -0
- package/dist/src/ui/App.d.ts +14 -0
- package/dist/src/ui/App.js +466 -0
- package/dist/src/ui/App.js.map +1 -0
- package/dist/src/ui/colors.d.ts +7 -0
- package/dist/src/ui/colors.js +48 -0
- package/dist/src/ui/colors.js.map +1 -0
- package/dist/src/ui/commands/clearCommand.d.ts +7 -0
- package/dist/src/ui/commands/clearCommand.js +15 -0
- package/dist/src/ui/commands/clearCommand.js.map +1 -0
- package/dist/src/ui/commands/helpCommand.d.ts +7 -0
- package/dist/src/ui/commands/helpCommand.js +18 -0
- package/dist/src/ui/commands/helpCommand.js.map +1 -0
- package/dist/src/ui/commands/logoutCommand.d.ts +7 -0
- package/dist/src/ui/commands/logoutCommand.js +77 -0
- package/dist/src/ui/commands/logoutCommand.js.map +1 -0
- package/dist/src/ui/commands/memoryCommand.d.ts +7 -0
- package/dist/src/ui/commands/memoryCommand.js +81 -0
- package/dist/src/ui/commands/memoryCommand.js.map +1 -0
- package/dist/src/ui/commands/modelCommand.d.ts +14 -0
- package/dist/src/ui/commands/modelCommand.js +58 -0
- package/dist/src/ui/commands/modelCommand.js.map +1 -0
- package/dist/src/ui/commands/types.d.ts +63 -0
- package/dist/src/ui/commands/types.js +7 -0
- package/dist/src/ui/commands/types.js.map +1 -0
- package/dist/src/ui/components/AboutBox.d.ts +16 -0
- package/dist/src/ui/components/AboutBox.js +6 -0
- package/dist/src/ui/components/AboutBox.js.map +1 -0
- package/dist/src/ui/components/AsciiArt.d.ts +7 -0
- package/dist/src/ui/components/AsciiArt.js +25 -0
- package/dist/src/ui/components/AsciiArt.js.map +1 -0
- package/dist/src/ui/components/AuthDialog.d.ts +15 -0
- package/dist/src/ui/components/AuthDialog.js +75 -0
- package/dist/src/ui/components/AuthDialog.js.map +1 -0
- package/dist/src/ui/components/AuthInProgress.d.ts +11 -0
- package/dist/src/ui/components/AuthInProgress.js +27 -0
- package/dist/src/ui/components/AuthInProgress.js.map +1 -0
- package/dist/src/ui/components/AutoAcceptIndicator.d.ts +12 -0
- package/dist/src/ui/components/AutoAcceptIndicator.js +26 -0
- package/dist/src/ui/components/AutoAcceptIndicator.js.map +1 -0
- package/dist/src/ui/components/ConsolePatcher.d.ts +12 -0
- package/dist/src/ui/components/ConsolePatcher.js +38 -0
- package/dist/src/ui/components/ConsolePatcher.js.map +1 -0
- package/dist/src/ui/components/ConsoleSummaryDisplay.d.ts +11 -0
- package/dist/src/ui/components/ConsoleSummaryDisplay.js +11 -0
- package/dist/src/ui/components/ConsoleSummaryDisplay.js.map +1 -0
- package/dist/src/ui/components/ContextSummaryDisplay.d.ts +15 -0
- package/dist/src/ui/components/ContextSummaryDisplay.js +41 -0
- package/dist/src/ui/components/ContextSummaryDisplay.js.map +1 -0
- package/dist/src/ui/components/DetailedMessagesDisplay.d.ts +14 -0
- package/dist/src/ui/components/DetailedMessagesDisplay.js +34 -0
- package/dist/src/ui/components/DetailedMessagesDisplay.js.map +1 -0
- package/dist/src/ui/components/EditorSettingsDialog.d.ts +15 -0
- package/dist/src/ui/components/EditorSettingsDialog.js +73 -0
- package/dist/src/ui/components/EditorSettingsDialog.js.map +1 -0
- package/dist/src/ui/components/Footer.d.ts +20 -0
- package/dist/src/ui/components/Footer.js +19 -0
- package/dist/src/ui/components/Footer.js.map +1 -0
- package/dist/src/ui/components/GeminiRespondingSpinner.d.ts +17 -0
- package/dist/src/ui/components/GeminiRespondingSpinner.js +16 -0
- package/dist/src/ui/components/GeminiRespondingSpinner.js.map +1 -0
- package/dist/src/ui/components/Header.d.ts +12 -0
- package/dist/src/ui/components/Header.js +20 -0
- package/dist/src/ui/components/Header.js.map +1 -0
- package/dist/src/ui/components/Help.d.ts +12 -0
- package/dist/src/ui/components/Help.js +10 -0
- package/dist/src/ui/components/Help.js.map +1 -0
- package/dist/src/ui/components/HistoryItemDisplay.d.ts +18 -0
- package/dist/src/ui/components/HistoryItemDisplay.js +17 -0
- package/dist/src/ui/components/HistoryItemDisplay.js.map +1 -0
- package/dist/src/ui/components/InputPrompt.d.ts +25 -0
- package/dist/src/ui/components/InputPrompt.js +280 -0
- package/dist/src/ui/components/InputPrompt.js.map +1 -0
- package/dist/src/ui/components/LoadingIndicator.d.ts +15 -0
- package/dist/src/ui/components/LoadingIndicator.js +20 -0
- package/dist/src/ui/components/LoadingIndicator.js.map +1 -0
- package/dist/src/ui/components/MemoryUsageDisplay.d.ts +7 -0
- package/dist/src/ui/components/MemoryUsageDisplay.js +27 -0
- package/dist/src/ui/components/MemoryUsageDisplay.js.map +1 -0
- package/dist/src/ui/components/ModelDialog.d.ts +14 -0
- package/dist/src/ui/components/ModelDialog.js +34 -0
- package/dist/src/ui/components/ModelDialog.js.map +1 -0
- package/dist/src/ui/components/ModelStatsDisplay.d.ts +7 -0
- package/dist/src/ui/components/ModelStatsDisplay.js +33 -0
- package/dist/src/ui/components/ModelStatsDisplay.js.map +1 -0
- package/dist/src/ui/components/SessionSummaryDisplay.d.ts +11 -0
- package/dist/src/ui/components/SessionSummaryDisplay.js +4 -0
- package/dist/src/ui/components/SessionSummaryDisplay.js.map +1 -0
- package/dist/src/ui/components/ShellModeIndicator.d.ts +7 -0
- package/dist/src/ui/components/ShellModeIndicator.js +5 -0
- package/dist/src/ui/components/ShellModeIndicator.js.map +1 -0
- package/dist/src/ui/components/ShowMoreLines.d.ts +10 -0
- package/dist/src/ui/components/ShowMoreLines.js +24 -0
- package/dist/src/ui/components/ShowMoreLines.js.map +1 -0
- package/dist/src/ui/components/StatsDisplay.d.ts +12 -0
- package/dist/src/ui/components/StatsDisplay.js +42 -0
- package/dist/src/ui/components/StatsDisplay.js.map +1 -0
- package/dist/src/ui/components/SuggestionsDisplay.d.ts +21 -0
- package/dist/src/ui/components/SuggestionsDisplay.js +32 -0
- package/dist/src/ui/components/SuggestionsDisplay.js.map +1 -0
- package/dist/src/ui/components/ThemeDialog.d.ts +19 -0
- package/dist/src/ui/components/ThemeDialog.js +126 -0
- package/dist/src/ui/components/ThemeDialog.js.map +1 -0
- package/dist/src/ui/components/Tips.d.ts +12 -0
- package/dist/src/ui/components/Tips.js +8 -0
- package/dist/src/ui/components/Tips.js.map +1 -0
- package/dist/src/ui/components/ToolStatsDisplay.d.ts +7 -0
- package/dist/src/ui/components/ToolStatsDisplay.js +41 -0
- package/dist/src/ui/components/ToolStatsDisplay.js.map +1 -0
- package/dist/src/ui/components/UpdateNotification.d.ts +10 -0
- package/dist/src/ui/components/UpdateNotification.js +10 -0
- package/dist/src/ui/components/UpdateNotification.js.map +1 -0
- package/dist/src/ui/components/messages/CompressionMessage.d.ts +11 -0
- package/dist/src/ui/components/messages/CompressionMessage.js +16 -0
- package/dist/src/ui/components/messages/CompressionMessage.js.map +1 -0
- package/dist/src/ui/components/messages/DiffRenderer.d.ts +15 -0
- package/dist/src/ui/components/messages/DiffRenderer.js +212 -0
- package/dist/src/ui/components/messages/DiffRenderer.js.map +1 -0
- package/dist/src/ui/components/messages/ErrorMessage.d.ts +11 -0
- package/dist/src/ui/components/messages/ErrorMessage.js +9 -0
- package/dist/src/ui/components/messages/ErrorMessage.js.map +1 -0
- package/dist/src/ui/components/messages/GeminiMessage.d.ts +14 -0
- package/dist/src/ui/components/messages/GeminiMessage.js +10 -0
- package/dist/src/ui/components/messages/GeminiMessage.js.map +1 -0
- package/dist/src/ui/components/messages/GeminiMessageContent.d.ts +14 -0
- package/dist/src/ui/components/messages/GeminiMessageContent.js +15 -0
- package/dist/src/ui/components/messages/GeminiMessageContent.js.map +1 -0
- package/dist/src/ui/components/messages/InfoMessage.d.ts +11 -0
- package/dist/src/ui/components/messages/InfoMessage.js +9 -0
- package/dist/src/ui/components/messages/InfoMessage.js.map +1 -0
- package/dist/src/ui/components/messages/ToolConfirmationMessage.d.ts +17 -0
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js +279 -0
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js.map +1 -0
- package/dist/src/ui/components/messages/ToolGroupMessage.d.ts +18 -0
- package/dist/src/ui/components/messages/ToolGroupMessage.js +53 -0
- package/dist/src/ui/components/messages/ToolGroupMessage.js.map +1 -0
- package/dist/src/ui/components/messages/ToolMessage.d.ts +15 -0
- package/dist/src/ui/components/messages/ToolMessage.js +61 -0
- package/dist/src/ui/components/messages/ToolMessage.js.map +1 -0
- package/dist/src/ui/components/messages/UserMessage.d.ts +11 -0
- package/dist/src/ui/components/messages/UserMessage.js +9 -0
- package/dist/src/ui/components/messages/UserMessage.js.map +1 -0
- package/dist/src/ui/components/messages/UserShellMessage.d.ts +11 -0
- package/dist/src/ui/components/messages/UserShellMessage.js +9 -0
- package/dist/src/ui/components/messages/UserShellMessage.js.map +1 -0
- package/dist/src/ui/components/shared/MaxSizedBox.d.ts +61 -0
- package/dist/src/ui/components/shared/MaxSizedBox.js +384 -0
- package/dist/src/ui/components/shared/MaxSizedBox.js.map +1 -0
- package/dist/src/ui/components/shared/RadioButtonSelect.d.ts +41 -0
- package/dist/src/ui/components/shared/RadioButtonSelect.js +52 -0
- package/dist/src/ui/components/shared/RadioButtonSelect.js.map +1 -0
- package/dist/src/ui/components/shared/text-buffer.d.ts +184 -0
- package/dist/src/ui/components/shared/text-buffer.js +1010 -0
- package/dist/src/ui/components/shared/text-buffer.js.map +1 -0
- package/dist/src/ui/constants.d.ts +8 -0
- package/dist/src/ui/constants.js +12 -0
- package/dist/src/ui/constants.js.map +1 -0
- package/dist/src/ui/contexts/OverflowContext.d.ts +19 -0
- package/dist/src/ui/contexts/OverflowContext.js +43 -0
- package/dist/src/ui/contexts/OverflowContext.js.map +1 -0
- package/dist/src/ui/contexts/SessionContext.d.ts +33 -0
- package/dist/src/ui/contexts/SessionContext.js +49 -0
- package/dist/src/ui/contexts/SessionContext.js.map +1 -0
- package/dist/src/ui/contexts/StreamingContext.d.ts +9 -0
- package/dist/src/ui/contexts/StreamingContext.js +15 -0
- package/dist/src/ui/contexts/StreamingContext.js.map +1 -0
- package/dist/src/ui/editors/editorSettingsManager.d.ts +19 -0
- package/dist/src/ui/editors/editorSettingsManager.js +54 -0
- package/dist/src/ui/editors/editorSettingsManager.js.map +1 -0
- package/dist/src/ui/hooks/atCommandProcessor.d.ts +31 -0
- package/dist/src/ui/hooks/atCommandProcessor.js +310 -0
- package/dist/src/ui/hooks/atCommandProcessor.js.map +1 -0
- package/dist/src/ui/hooks/shellCommandProcessor.d.ts +16 -0
- package/dist/src/ui/hooks/shellCommandProcessor.js +261 -0
- package/dist/src/ui/hooks/shellCommandProcessor.js.map +1 -0
- package/dist/src/ui/hooks/slashCommandProcessor.d.ts +27 -0
- package/dist/src/ui/hooks/slashCommandProcessor.js +1079 -0
- package/dist/src/ui/hooks/slashCommandProcessor.js.map +1 -0
- package/dist/src/ui/hooks/useAuthCommand.d.ts +14 -0
- package/dist/src/ui/hooks/useAuthCommand.js +63 -0
- package/dist/src/ui/hooks/useAuthCommand.js.map +1 -0
- package/dist/src/ui/hooks/useAutoAcceptIndicator.d.ts +10 -0
- package/dist/src/ui/hooks/useAutoAcceptIndicator.js +37 -0
- package/dist/src/ui/hooks/useAutoAcceptIndicator.js.map +1 -0
- package/dist/src/ui/hooks/useBracketedPaste.d.ts +12 -0
- package/dist/src/ui/hooks/useBracketedPaste.js +32 -0
- package/dist/src/ui/hooks/useBracketedPaste.js.map +1 -0
- package/dist/src/ui/hooks/useCompletion.d.ts +21 -0
- package/dist/src/ui/hooks/useCompletion.js +372 -0
- package/dist/src/ui/hooks/useCompletion.js.map +1 -0
- package/dist/src/ui/hooks/useConsoleMessages.d.ts +12 -0
- package/dist/src/ui/hooks/useConsoleMessages.js +60 -0
- package/dist/src/ui/hooks/useConsoleMessages.js.map +1 -0
- package/dist/src/ui/hooks/useEditorSettings.d.ts +16 -0
- package/dist/src/ui/hooks/useEditorSettings.js +43 -0
- package/dist/src/ui/hooks/useEditorSettings.js.map +1 -0
- package/dist/src/ui/hooks/useGeminiStream.d.ts +23 -0
- package/dist/src/ui/hooks/useGeminiStream.js +569 -0
- package/dist/src/ui/hooks/useGeminiStream.js.map +1 -0
- package/dist/src/ui/hooks/useGitBranchName.d.ts +6 -0
- package/dist/src/ui/hooks/useGitBranchName.js +61 -0
- package/dist/src/ui/hooks/useGitBranchName.js.map +1 -0
- package/dist/src/ui/hooks/useHistoryManager.d.ts +22 -0
- package/dist/src/ui/hooks/useHistoryManager.js +72 -0
- package/dist/src/ui/hooks/useHistoryManager.js.map +1 -0
- package/dist/src/ui/hooks/useInputHistory.d.ts +19 -0
- package/dist/src/ui/hooks/useInputHistory.js +84 -0
- package/dist/src/ui/hooks/useInputHistory.js.map +1 -0
- package/dist/src/ui/hooks/useKeypress.d.ts +29 -0
- package/dist/src/ui/hooks/useKeypress.js +86 -0
- package/dist/src/ui/hooks/useKeypress.js.map +1 -0
- package/dist/src/ui/hooks/useLoadingIndicator.d.ts +10 -0
- package/dist/src/ui/hooks/useLoadingIndicator.js +44 -0
- package/dist/src/ui/hooks/useLoadingIndicator.js.map +1 -0
- package/dist/src/ui/hooks/useLogger.d.ts +10 -0
- package/dist/src/ui/hooks/useLogger.js +29 -0
- package/dist/src/ui/hooks/useLogger.js.map +1 -0
- package/dist/src/ui/hooks/usePhraseCycler.d.ts +14 -0
- package/dist/src/ui/hooks/usePhraseCycler.js +189 -0
- package/dist/src/ui/hooks/usePhraseCycler.js.map +1 -0
- package/dist/src/ui/hooks/usePrivacySettings.d.ts +16 -0
- package/dist/src/ui/hooks/usePrivacySettings.js +115 -0
- package/dist/src/ui/hooks/usePrivacySettings.js.map +1 -0
- package/dist/src/ui/hooks/useReactToolScheduler.d.ts +33 -0
- package/dist/src/ui/hooks/useReactToolScheduler.js +186 -0
- package/dist/src/ui/hooks/useReactToolScheduler.js.map +1 -0
- package/dist/src/ui/hooks/useRefreshMemoryCommand.d.ts +6 -0
- package/dist/src/ui/hooks/useRefreshMemoryCommand.js +7 -0
- package/dist/src/ui/hooks/useRefreshMemoryCommand.js.map +1 -0
- package/dist/src/ui/hooks/useShellHistory.d.ts +11 -0
- package/dist/src/ui/hooks/useShellHistory.js +89 -0
- package/dist/src/ui/hooks/useShellHistory.js.map +1 -0
- package/dist/src/ui/hooks/useShowMemoryCommand.d.ts +9 -0
- package/dist/src/ui/hooks/useShowMemoryCommand.js +58 -0
- package/dist/src/ui/hooks/useShowMemoryCommand.js.map +1 -0
- package/dist/src/ui/hooks/useStateAndRef.d.ts +7 -0
- package/dist/src/ui/hooks/useStateAndRef.js +26 -0
- package/dist/src/ui/hooks/useStateAndRef.js.map +1 -0
- package/dist/src/ui/hooks/useTerminalSize.d.ts +9 -0
- package/dist/src/ui/hooks/useTerminalSize.js +27 -0
- package/dist/src/ui/hooks/useTerminalSize.js.map +1 -0
- package/dist/src/ui/hooks/useThemeCommand.d.ts +15 -0
- package/dist/src/ui/hooks/useThemeCommand.js +78 -0
- package/dist/src/ui/hooks/useThemeCommand.js.map +1 -0
- package/dist/src/ui/hooks/useTimer.d.ts +12 -0
- package/dist/src/ui/hooks/useTimer.js +58 -0
- package/dist/src/ui/hooks/useTimer.js.map +1 -0
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.d.ts +12 -0
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.js +40 -0
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.js.map +1 -0
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.d.ts +10 -0
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js +17 -0
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js.map +1 -0
- package/dist/src/ui/privacy/GeminiPrivacyNotice.d.ts +10 -0
- package/dist/src/ui/privacy/GeminiPrivacyNotice.js +17 -0
- package/dist/src/ui/privacy/GeminiPrivacyNotice.js.map +1 -0
- package/dist/src/ui/privacy/PrivacyNotice.d.ts +12 -0
- package/dist/src/ui/privacy/PrivacyNotice.js +25 -0
- package/dist/src/ui/privacy/PrivacyNotice.js.map +1 -0
- package/dist/src/ui/themes/ansi-light.d.ts +7 -0
- package/dist/src/ui/themes/ansi-light.js +139 -0
- package/dist/src/ui/themes/ansi-light.js.map +1 -0
- package/dist/src/ui/themes/ansi.d.ts +7 -0
- package/dist/src/ui/themes/ansi.js +149 -0
- package/dist/src/ui/themes/ansi.js.map +1 -0
- package/dist/src/ui/themes/atom-one-dark.d.ts +7 -0
- package/dist/src/ui/themes/atom-one-dark.js +136 -0
- package/dist/src/ui/themes/atom-one-dark.js.map +1 -0
- package/dist/src/ui/themes/ayu-light.d.ts +7 -0
- package/dist/src/ui/themes/ayu-light.js +128 -0
- package/dist/src/ui/themes/ayu-light.js.map +1 -0
- package/dist/src/ui/themes/ayu.d.ts +7 -0
- package/dist/src/ui/themes/ayu.js +102 -0
- package/dist/src/ui/themes/ayu.js.map +1 -0
- package/dist/src/ui/themes/default-light.d.ts +7 -0
- package/dist/src/ui/themes/default-light.js +100 -0
- package/dist/src/ui/themes/default-light.js.map +1 -0
- package/dist/src/ui/themes/default.d.ts +7 -0
- package/dist/src/ui/themes/default.js +143 -0
- package/dist/src/ui/themes/default.js.map +1 -0
- package/dist/src/ui/themes/dracula.d.ts +7 -0
- package/dist/src/ui/themes/dracula.js +113 -0
- package/dist/src/ui/themes/dracula.js.map +1 -0
- package/dist/src/ui/themes/github-dark.d.ts +7 -0
- package/dist/src/ui/themes/github-dark.js +136 -0
- package/dist/src/ui/themes/github-dark.js.map +1 -0
- package/dist/src/ui/themes/github-light.d.ts +7 -0
- package/dist/src/ui/themes/github-light.js +138 -0
- package/dist/src/ui/themes/github-light.js.map +1 -0
- package/dist/src/ui/themes/googlecode.d.ts +7 -0
- package/dist/src/ui/themes/googlecode.js +135 -0
- package/dist/src/ui/themes/googlecode.js.map +1 -0
- package/dist/src/ui/themes/no-color.d.ts +7 -0
- package/dist/src/ui/themes/no-color.js +84 -0
- package/dist/src/ui/themes/no-color.js.map +1 -0
- package/dist/src/ui/themes/shades-of-purple.d.ts +11 -0
- package/dist/src/ui/themes/shades-of-purple.js +302 -0
- package/dist/src/ui/themes/shades-of-purple.js.map +1 -0
- package/dist/src/ui/themes/theme-manager.d.ts +33 -0
- package/dist/src/ui/themes/theme-manager.js +109 -0
- package/dist/src/ui/themes/theme-manager.js.map +1 -0
- package/dist/src/ui/themes/theme.d.ts +67 -0
- package/dist/src/ui/themes/theme.js +304 -0
- package/dist/src/ui/themes/theme.js.map +1 -0
- package/dist/src/ui/themes/xcode.d.ts +7 -0
- package/dist/src/ui/themes/xcode.js +143 -0
- package/dist/src/ui/themes/xcode.js.map +1 -0
- package/dist/src/ui/types.d.ts +172 -0
- package/dist/src/ui/types.js +43 -0
- package/dist/src/ui/types.js.map +1 -0
- package/dist/src/ui/utils/CodeColorizer.d.ts +14 -0
- package/dist/src/ui/utils/CodeColorizer.js +97 -0
- package/dist/src/ui/utils/CodeColorizer.js.map +1 -0
- package/dist/src/ui/utils/InlineMarkdownRenderer.d.ts +16 -0
- package/dist/src/ui/utils/InlineMarkdownRenderer.js +104 -0
- package/dist/src/ui/utils/InlineMarkdownRenderer.js.map +1 -0
- package/dist/src/ui/utils/MarkdownDisplay.d.ts +14 -0
- package/dist/src/ui/utils/MarkdownDisplay.js +197 -0
- package/dist/src/ui/utils/MarkdownDisplay.js.map +1 -0
- package/dist/src/ui/utils/TableRenderer.d.ts +17 -0
- package/dist/src/ui/utils/TableRenderer.js +84 -0
- package/dist/src/ui/utils/TableRenderer.js.map +1 -0
- package/dist/src/ui/utils/commandUtils.d.ts +22 -0
- package/dist/src/ui/utils/commandUtils.js +25 -0
- package/dist/src/ui/utils/commandUtils.js.map +1 -0
- package/dist/src/ui/utils/computeStats.d.ts +10 -0
- package/dist/src/ui/utils/computeStats.js +55 -0
- package/dist/src/ui/utils/computeStats.js.map +1 -0
- package/dist/src/ui/utils/displayUtils.d.ts +17 -0
- package/dist/src/ui/utils/displayUtils.js +24 -0
- package/dist/src/ui/utils/displayUtils.js.map +1 -0
- package/dist/src/ui/utils/errorParsing.d.ts +15 -0
- package/dist/src/ui/utils/errorParsing.js +79 -0
- package/dist/src/ui/utils/errorParsing.js.map +1 -0
- package/dist/src/ui/utils/formatters.d.ts +13 -0
- package/dist/src/ui/utils/formatters.js +56 -0
- package/dist/src/ui/utils/formatters.js.map +1 -0
- package/dist/src/ui/utils/markdownUtilities.d.ts +6 -0
- package/dist/src/ui/utils/markdownUtilities.js +110 -0
- package/dist/src/ui/utils/markdownUtilities.js.map +1 -0
- package/dist/src/ui/utils/textUtils.d.ts +22 -0
- package/dist/src/ui/utils/textUtils.js +58 -0
- package/dist/src/ui/utils/textUtils.js.map +1 -0
- package/dist/src/ui/utils/updateCheck.d.ts +6 -0
- package/dist/src/ui/utils/updateCheck.js +36 -0
- package/dist/src/ui/utils/updateCheck.js.map +1 -0
- package/dist/src/utils/cleanup.d.ts +6 -0
- package/dist/src/utils/cleanup.js +19 -0
- package/dist/src/utils/cleanup.js.map +1 -0
- package/dist/src/utils/package.d.ts +12 -0
- package/dist/src/utils/package.js +24 -0
- package/dist/src/utils/package.js.map +1 -0
- package/dist/src/utils/readStdin.d.ts +6 -0
- package/dist/src/utils/readStdin.js +34 -0
- package/dist/src/utils/readStdin.js.map +1 -0
- package/dist/src/utils/sandbox.d.ts +7 -0
- package/dist/src/utils/sandbox.js +680 -0
- package/dist/src/utils/sandbox.js.map +1 -0
- package/dist/src/utils/startupWarnings.d.ts +6 -0
- package/dist/src/utils/startupWarnings.js +40 -0
- package/dist/src/utils/startupWarnings.js.map +1 -0
- package/dist/src/utils/userStartupWarnings.d.ts +6 -0
- package/dist/src/utils/userStartupWarnings.js +33 -0
- package/dist/src/utils/userStartupWarnings.js.map +1 -0
- package/dist/src/utils/version.d.ts +6 -0
- package/dist/src/utils/version.js +11 -0
- package/dist/src/utils/version.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/vitest.config.d.ts +7 -0
- package/dist/vitest.config.js +35 -0
- package/dist/vitest.config.js.map +1 -0
- package/package.json +66 -79
- package/LICENSE +0 -202
- package/README.md +0 -203
- package/README.zh-CN.md +0 -206
- package/bundle/api.cjs +0 -166770
- package/bundle/api.js +0 -166765
- package/bundle/gemini.js +0 -278258
- /package/{bundle → dist/src/utils}/sandbox-macos-permissive-closed.sb +0 -0
- /package/{bundle → dist/src/utils}/sandbox-macos-permissive-open.sb +0 -0
- /package/{bundle → dist/src/utils}/sandbox-macos-permissive-proxied.sb +0 -0
- /package/{bundle → dist/src/utils}/sandbox-macos-restrictive-closed.sb +0 -0
- /package/{bundle → dist/src/utils}/sandbox-macos-restrictive-open.sb +0 -0
- /package/{bundle → dist/src/utils}/sandbox-macos-restrictive-proxied.sb +0 -0
|
@@ -0,0 +1,555 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,83 @@
|
|
|
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
|
+
}
|