{
  "markdown": "# Gemini Email Notifier\n\nA Gemini CLI extension that sends an email notification via Gmail when a long task completes.\n\n## Prerequisites\n\n- Python 3.x\n- A Google Cloud Console project with the Gmail API enabled.\n\n## Installation\n\n1.  **Dependencies**:\n    Install the required Python packages:\n    ```bash\n    pip install -r requirements.txt\n    ```\n\n2.  **Google OAuth Setup (Step-by-Step)**:\n    - Go to the [Google Cloud Console Credentials page](https://console.cloud.google.com/apis/credentials).\n    - **Create/Select Project**: Ensure you have a project selected in the top bar.\n    - **Enable Gmail API**: Click \"Library\" on the left, search for \"Gmail API\", and click \"Enable\".\n    - **Consent Screen**: \n        - Go to \"OAuth consent screen\".\n        - Choose \"External\".\n        - Fill in \"App name\" (e.g., Gemini Notifier) and your email.\n        - **Important**: In the \"Test users\" section, click \"ADD USERS\" and add your own Gmail address.\n    - **Create Credentials**:\n        - Go to the \"Credentials\" tab.\n        - Click \"+ CREATE CREDENTIALS\" -> \"OAuth client ID\".\n        - Select \"Desktop App\" as the type.\n        - Click \"Create\", then \"DOWNLOAD JSON\" on the next screen.\n    - **File Placement**: Rename the downloaded file to `client_secret.json` and place it in the root of the `gemini-email-notifier/` folder.\n\n## Setup & Usage\n\n1.  **Login**:\n    Authenticate the extension with your Google account by running the following command in the Gemini CLI:\n    ```\n    /email:login\n    ```\n    This will open a browser window for authentication. Once completed, a `token.json` file will be created in the extension root.\n\n2.  **Automatic Notifications**:\n    Once logged in, the extension automatically hooks into `AfterAgent`. Whenever a task finishes, you will receive an email at your authenticated Gmail address with the subject \"Gemini Task Finished\".\n\n## Project Structure\n\n- `gemini-extension.json`: Extension metadata and command registration.\n- `commands/login.py`: Handles OAuth 2.0 authentication.\n- `hooks/hooks.json`: Registers the `AfterAgent` hook.\n- `hooks/notify.py`: Implementation of the email notification logic.\n",
  "bytes": 2157,
  "sha": "fa67890548e5c651fe1df12e3f26944cefd458aa38381baf0941c704eb9c55b5",
  "repo_slug": "wseabra/gemini-email-notifier",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/plg_wseabra_gemini_email_notifier_1376b117/readme"
}