From a2a46c7c6700edc6840faa2675d92695d2d3104d Mon Sep 17 00:00:00 2001 From: Tommaso Sciortino Date: Fri, 27 Jun 2025 12:07:38 -0700 Subject: Add privacy notice slash command (#2059) --- .../cli/src/ui/privacy/GeminiPrivacyNotice.tsx | 58 ++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 packages/cli/src/ui/privacy/GeminiPrivacyNotice.tsx (limited to 'packages/cli/src/ui/privacy/GeminiPrivacyNotice.tsx') diff --git a/packages/cli/src/ui/privacy/GeminiPrivacyNotice.tsx b/packages/cli/src/ui/privacy/GeminiPrivacyNotice.tsx new file mode 100644 index 00000000..57030ac3 --- /dev/null +++ b/packages/cli/src/ui/privacy/GeminiPrivacyNotice.tsx @@ -0,0 +1,58 @@ +/** + * @license + * Copyright 2025 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ + +import { Box, Newline, Text, useInput } from 'ink'; +import { Colors } from '../colors.js'; + +interface GeminiPrivacyNoticeProps { + onExit: () => void; +} + +export const GeminiPrivacyNotice = ({ onExit }: GeminiPrivacyNoticeProps) => { + useInput((input, key) => { + if (key.escape) { + onExit(); + } + }); + + return ( + + + Gemini API Key Notice + + + + By using the Gemini API[1], + Google AI Studio + [2], and the other Google + developer services that reference these terms (collectively, the + "APIs" or "Services"), you are agreeing to Google + APIs Terms of Service (the "API Terms") + [3], and the Gemini API + Additional Terms of Service (the "Additional Terms") + [4]. + + + + [1]{' '} + https://ai.google.dev/docs/gemini_api_overview + + + [2] https://aistudio.google.com/ + + + [3]{' '} + https://developers.google.com/terms + + + [4]{' '} + https://ai.google.dev/gemini-api/terms + + + Press Esc to exit. + + ); +}; -- cgit v1.2.3