Metadata-Version: 2.4
Name: aegis-mail-companion
Version: 1.0.28
Summary: Autonomous AI Mail Companion & Tiered L1/L2 Support Bot for Outlook, Gmail, Zoho & IMAP with 5-stage multi-agent triage, Jira root-cause analysis, and installable PWA.
Author-email: Sachin Bose Pulikkathara <sachin.bose.p@gmail.com>
License: Apache-2.0
Project-URL: Homepage, https://aegis-mail-companion.vercel.app
Project-URL: Documentation & Setup Portal, https://aegis-mail-companion.vercel.app/download
Project-URL: 1-Click Cloud Deploy Hub, https://aegis-mail-companion.vercel.app/cloud-deploy
Project-URL: ClickPy Download Analytics, https://clickpy.clickhouse.com/dashboard/aegis-mail-companion
Project-URL: PyPIStats Download Stats, https://pypistats.org/packages/aegis-mail-companion
Project-URL: PePy Total Downloads, https://pepy.tech/projects/aegis-mail-companion
Project-URL: Aegis Official Portal, https://aegis-help.nilswa.com
Project-URL: Author PyPI Profile, https://pypi.org/user/sachinbosep/
Project-URL: Author LinkedIn, https://www.linkedin.com/in/sachin-bose-p/
Keywords: aegis,aegis-ai,aegis-ai-suite,aegis-mail,aegis-mail-companion,aegiscore,ai,genai,future-of-ai,agentic-ai,autonomous-agents,ai-agents,multi-agent-systems,llm-orchestration,ai-email-assistant,email-automation,email-bot,email-agent,mail-companion,smart-inbox,inbox-zero,email-triage,auto-reply,email-responder,customer-support-ai,customer-service-bot,helpdesk-automation,it-helpdesk,service-desk,l1-support,l2-support,ticket-triage,sla-monitoring,sentiment-analysis,root-cause-analysis,outlook,microsoft-graph,office-365,gmail,gmail-api,zoho-mail,imap,smtp,jira-connector,issue-tracker,rag,knowledge-base,openai,claude,gemini,ollama,local-llm,self-hosted-ai,pwa,crm
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Environment :: Web Environment
Classifier: Framework :: FastAPI
Classifier: Intended Audience :: Customer Service
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: End Users/Desktop
Classifier: Intended Audience :: Information Technology
Classifier: Intended Audience :: Science/Research
Classifier: Intended Audience :: System Administrators
Classifier: Operating System :: OS Independent
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Communications :: Email
Classifier: Topic :: Communications :: Email :: Email Clients (MUA)
Classifier: Topic :: Communications :: Email :: Filters
Classifier: Topic :: Office/Business
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development :: Bug Tracking
Classifier: Topic :: System :: Monitoring
Classifier: Topic :: System :: Systems Administration
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: fastapi>=0.110.0
Requires-Dist: uvicorn[standard]>=0.29.0
Requires-Dist: pydantic>=2.7.0
Requires-Dist: pydantic-settings>=2.2.0
Requires-Dist: eval-type-backport>=0.2.0; python_version < "3.10"
Requires-Dist: python-dateutil>=2.8.2
Requires-Dist: email-validator>=2.1.0
Requires-Dist: python-dotenv>=1.0.0
Requires-Dist: bcrypt>=4.1.0
Requires-Dist: python-multipart>=0.0.9
Requires-Dist: markdown>=3.5.0
Requires-Dist: httpx>=0.27.0
Requires-Dist: cryptography>=42.0.0
Requires-Dist: truststore>=0.9.0; python_version >= "3.10"
Requires-Dist: PyJWT>=2.8.0
Requires-Dist: langchain==0.3.0
Requires-Dist: langchain-community==0.3.0
Requires-Dist: langchain-core==0.3.0
Requires-Dist: langchain-text-splitters<0.3.1,>=0.3.0; python_version < "3.10"
Requires-Dist: langchain-openai<0.2.2,>=0.2.0; python_version < "3.10"
Requires-Dist: langchain-openai<0.3.0,>=0.2.0; python_version >= "3.10"
Requires-Dist: langchain-anthropic<0.2.1,>=0.2.0; python_version < "3.10"
Requires-Dist: langchain-anthropic<0.3.0,>=0.2.0; python_version >= "3.10"
Requires-Dist: langchain-google-genai<2.0.2,>=2.0.0; python_version < "3.10"
Requires-Dist: langchain-google-genai<2.1.0,>=2.0.0; python_version >= "3.10"
Requires-Dist: langchain-groq<0.2.1,>=0.2.0; python_version < "3.10"
Requires-Dist: langchain-groq<0.3.0,>=0.2.0; python_version >= "3.10"
Requires-Dist: langchain-ollama<0.2.1,>=0.2.0; python_version < "3.10"
Requires-Dist: langchain-ollama<0.3.0,>=0.2.0; python_version >= "3.10"
Requires-Dist: pypdf>=4.0.0
Requires-Dist: openapi-spec-validator>=0.7.0
Requires-Dist: openpyxl
Requires-Dist: python-docx
Requires-Dist: python-pptx
Requires-Dist: Pillow>=10.0.0
Requires-Dist: APScheduler
Requires-Dist: beautifulsoup4>=4.12.0
Requires-Dist: feedparser>=6.0.10
Requires-Dist: feedparser-sgmllib==2.1.0; python_version >= "3.10"
Requires-Dist: SQLAlchemy<2.1,>=2.0
Requires-Dist: psycopg2-binary>=2.9.9
Requires-Dist: psycopg[binary]>=3.2.0
Requires-Dist: psycopg-pool>=3.2.0
Requires-Dist: pgvector>=0.3.0
Requires-Dist: pyotp
Requires-Dist: qrcode[pil]
Requires-Dist: radon>=6.0.1
Requires-Dist: lizard>=1.24.0
Requires-Dist: openai>=1.20.0
Requires-Dist: anthropic>=0.18.0
Requires-Dist: google-genai>=0.1.0; python_version >= "3.10"
Requires-Dist: langgraph<0.2.41,>=0.2.35; python_version < "3.10"
Requires-Dist: langgraph<0.3.0,>=0.2.0; python_version >= "3.10"
Requires-Dist: sqlglot>=25.0.0
Requires-Dist: PyYAML>=6.0
Requires-Dist: psutil>=5.9.0

<div align="center">

<img src="https://raw.githubusercontent.com/sachin-bose-p/sachin-bose-p/main/assets/aegis-mail-companion/hero.png" alt="Aegis Mail Companion — Autonomous AI Mail Companion & Tiered L1/L2 Support Bot" width="100%" />

<br />
<br />

[![Download Analytics](https://img.shields.io/badge/analytics-ClickPy%20%7C%20PyPIStats%20%7C%20PePy-D97706?style=for-the-badge&logo=clickhouse&logoColor=white)](https://clickpy.clickhouse.com/dashboard/aegis-mail-companion)
[![Wheel](https://img.shields.io/badge/wheel-universal%20py3--none--any-059669?style=for-the-badge&logo=pypi&logoColor=white)](https://pypi.org/project/aegis-mail-companion/#files)
[![PWA Ready](https://img.shields.io/badge/PWA-Installable%20Desktop%20%26%20Mobile-2563EB?style=for-the-badge&logo=pwa&logoColor=white)](https://aegis-mail-companion.vercel.app)
[![Cloud Deploy](https://img.shields.io/badge/1--Click%20Deploy-Vercel%20%7C%20Render%20%7C%20Railway%20%7C%20Fly.io-7C3AED?style=for-the-badge&logo=vercel&logoColor=white)](https://aegis-mail-companion.vercel.app/cloud-deploy)
[![Python](https://img.shields.io/badge/Python-3.9%20%7C%203.10%20%7C%203.11%20%7C%203.12%20%7C%203.13%20%7C%203.14-3776AB?style=for-the-badge&logo=python&logoColor=white)](https://pypi.org/project/aegis-mail-companion/)
[![Platform](https://img.shields.io/badge/OS-macOS%20%7C%20Windows%20%7C%20Linux-4F46E5?style=for-the-badge)](https://pypi.org/project/aegis-mail-companion/)
[![FastAPI](https://img.shields.io/badge/FastAPI-009688?style=for-the-badge&logo=fastapi&logoColor=white)](https://pypi.org/project/aegis-mail-companion/)
[![React](https://img.shields.io/badge/React-18%20PWA-61DAFB?style=for-the-badge&logo=react&logoColor=black)](https://pypi.org/project/aegis-mail-companion/)
[![PostgreSQL](https://img.shields.io/badge/PostgreSQL-pgvector%20RAG-4169E1?style=for-the-badge&logo=postgresql&logoColor=white)](https://pypi.org/project/aegis-mail-companion/)
[![Local LLMs](https://img.shields.io/badge/Local%20LLMs-Ollama%20%7C%20vLLM-000000?style=for-the-badge&logo=ollama&logoColor=white)](https://pypi.org/project/aegis-mail-companion/)

### **Aegis Mail Companion (`aegis-mail-companion`) — Autonomous AI Mail & Tiered L1/L2 Support Bot**
*Part of the [aegis-ai-suite](https://pypi.org/project/aegis-ai-suite/) Ecosystem · 20 Specialized Email AI Agents · 19 Email Skills + 2 Global RAG Tools · Standalone or Project + KB Mode · 1-Click Cloud Deploy · Installable PWA*

[**🌐 Official Portal & Live Demo**](https://aegis-mail-companion.vercel.app) · [**📥 Step-by-Step Python Setup**](https://aegis-mail-companion.vercel.app/download) · [**☁️ 1-Click Cloud Deploy**](https://aegis-mail-companion.vercel.app/cloud-deploy) · [**📊 ClickPy Live Analytics**](https://clickpy.clickhouse.com/dashboard/aegis-mail-companion) · [**📈 PyPIStats Breakdown**](https://pypistats.org/packages/aegis-mail-companion) · [**📉 PePy Totals**](https://pepy.tech/projects/aegis-mail-companion)

</div>

---

**Aegis Mail Companion** is an autonomous, self-hosted AI Email Companion and Tiered L1/L2 Customer & Engineering Support Bot. Connect **Microsoft Outlook / Office 365**, **Google Gmail**, **Zoho Mail**, or **any Standard IMAP/SMTP server**, configure **Cloud or 100% Local LLMs (Ollama, vLLM, OpenAI, Anthropic Claude, Google Gemini, Groq)**, and orchestrate **20 specialized Email AI Agents**, **19 Email Skills**, and **2 Global RAG Tools** (`fetch_project_context` & `search_document_center`) in a single self-contained Python package.

| 📦 **3,669+ Downloads** | 📬 **4 Email Providers** | 🎛️ **2 Operating Modes** | 🤖 **20 Email AI Agents** | 🧠 **19 Skills + 2 RAG Tools** | ☁️ **1-Click Cloud Deploy** |
| :---: | :---: | :---: | :---: | :---: | :---: |
| **1,435+ Direct (`pip`/`uv`)** · [Live Stats](https://pypistats.org/packages/aegis-mail-companion) | Outlook / M365, Gmail, Zoho & Universal IMAP/SMTP | **Without Project** (Standalone) or **With Project + KB(s)** | ★ Ticket Root-Cause Bot, ⚡ 5-Stage Pipeline, Domain & Daily Agents | 19 Email Skills + `fetch_project_context` & `search_document_center` | Built-in **Vercel**, **Render**, **Railway** & **Fly.io** Hub |

---

## ⚡ 30-Second Quick Install & Immediate Browser Launch (macOS · Windows · Linux)

Installing `aegis-mail-companion` installs **all required backend dependencies, the pre-built React 18 + PWA web interface, the 20 Email AI Agents, the 19 Email Skills, and the 1-Click Cloud Deployment Hub** in a single command. Run `aegis-mail` and it immediately launches in your browser:

```bash
# 1. Install or upgrade the universal Python package from PyPI
pip install --upgrade aegis-mail-companion

# 2. Configure your PostgreSQL + pgvector database URL (auto-creates database, extensions & all tables on startup)
export EXPORT_AEGIS_EMAIL_COMPANION_DB="postgresql://postgres:password@localhost:5432/aegis_mail_companion"

# 3. Launch the server & immediately open Mail Companion in your browser (http://localhost:8020)
aegis-mail
# (or `aegis-mail-companion` / `python3 -m aegis_mail_companion`)
```

> **Automatic Database & Vector RAG Provisioning:** When `EXPORT_AEGIS_EMAIL_COMPANION_DB` (or `--db-url`) is set, the first service startup automatically creates the target database (if missing), enables `vector` (`pgvector`) + `pg_trgm` + `pgcrypto` extensions, applies all database tables/functions/indexes (`kb_files`, `kb_parents`, `kb_chunks`, `projects`, `connectors`, `email_accounts`, `aegis_email_threads`, `aegis_email_messages`, etc.), and saves the connection URL to `~/.aegis-mail-companion/settings.json`.

### Default Sign-In Credentials (Local Workspace)
- **URL:** `http://localhost:8020` (opens automatically in your default browser; click **Install App** in the top bar to install as a standalone Desktop/Mobile PWA)
- **Email:** `admin@example.com`
- **Password:** `admin1234`

### CLI Options (`aegis-mail` / `aegis-mail-companion`)

```bash
aegis-mail                                 # Start Mail Companion (:8020) & open browser immediately
aegis-mail --port 8080                     # Run on a custom port (e.g. http://localhost:8080)
aegis-mail --host 0.0.0.0 --port 8020      # Expose on LAN for team access
aegis-mail --db-url "postgresql://..."     # Set & persist PostgreSQL + pgvector connection URL
aegis-mail --no-browser                    # Run server headlessly without opening a browser tab
aegis-mail --update                        # Self-update to the latest release from PyPI via pip
```

---

## 🖥️ Visual Product Tour (Live Application Screens)

### 1. Mail Companion Workspace — Multi-Provider Inbox, 2 Operating Modes & 5-Stage AI Triage
<div align="center">
  <img src="https://aegis-mail-companion.vercel.app/images/mail-companion-screen.png" alt="Aegis Mail Companion Inbox, Mailbox Settings Drawer & 5-Stage Triage Pipeline" width="100%" />
</div>

### 2. 20 Specialized Email AI Agents & 19 Email Skills + 2 Global RAG Tools
<div align="center">
  <img src="https://aegis-mail-companion.vercel.app/images/ai-agents-screen.png" alt="Aegis Mail Companion — 20 Specialized Email AI Agents & 19 Skills Library" width="100%" />
</div>

### 3. 1-Click Cloud Deployment Hub (Vercel · Render · Railway · Fly.io)
<div align="center">
  <img src="https://aegis-mail-companion.vercel.app/images/cloud-deployment-screen.png" alt="Aegis Mail Companion — 1-Click Cloud Deployment Hub for Vercel, Render, Railway & Fly.io" width="100%" />
</div>

---

## 📊 Live Package Download & Usage Analytics

Track real-time PyPI download volume, version adoption, operating system breakdown (`Linux`, `macOS / Darwin`, `Windows`), and Python version metrics (`3.9` – `3.14`) across three official analytics dashboards:

| 📦 **Total Downloads (with mirrors)** | ⚡ **Direct Installs (`pip` / `uv`)** | 📈 **Weekly Download Velocity** | 🔥 **Daily Download Velocity** | 🐍 **Supported Python & OS** |
| :---: | :---: | :---: | :---: | :---: |
| **`3,669+`** ([PyPIStats](https://pypistats.org/packages/aegis-mail-companion)) | **`1,435+`** ([PyPIStats](https://pypistats.org/packages/aegis-mail-companion)) | **`1,435 / week`** ([PePy](https://pepy.tech/projects/aegis-mail-companion)) | **`1,435 / day`** ([ClickPy](https://clickpy.clickhouse.com/dashboard/aegis-mail-companion)) | **`Python 3.9–3.14`** · `Linux` / `macOS` / `Win` |

| Analytics Platform | Live Dashboard URL | What It Tracks |
| :--- | :--- | :--- |
| **ClickPy (ClickHouse Official PyPI Analytics)** | [**clickpy.clickhouse.com/dashboard/aegis-mail-companion**](https://clickpy.clickhouse.com/dashboard/aegis-mail-companion) | Real-time BigQuery stream of **all-time total downloads**, per-version downloads, installer (`pip`, `uv`, `poetry`), and country/CI distribution. |
| **PyPIStats.org** | [**pypistats.org/packages/aegis-mail-companion**](https://pypistats.org/packages/aegis-mail-companion) | Daily & monthly download time-series (**with & without mirrors**), **OS breakdown** (`Linux`, `Darwin`, `Windows`), and **Python minor version** stats. |
| **PePy.tech** | [**pepy.tech/projects/aegis-mail-companion**](https://pepy.tech/projects/aegis-mail-companion) | Cumulative **all-time download counter**, 30-day / 7-day rolling totals, and version-by-version comparison charts. |

### Query Live Download Stats from Your Terminal
```bash
# Check overall downloads (with and without mirrors) via PyPIStats JSON API
curl -s "https://pypistats.org/api/packages/aegis-mail-companion/overall" | python3 -m json.tool

# Check recent daily / weekly downloads
curl -s "https://pypistats.org/api/packages/aegis-mail-companion/recent" | python3 -m json.tool

# Check OS breakdown (Linux / macOS Darwin / Windows) & Python version breakdown
curl -s "https://pypistats.org/api/packages/aegis-mail-companion/system" | python3 -m json.tool
curl -s "https://pypistats.org/api/packages/aegis-mail-companion/python_minor" | python3 -m json.tool

# Or run the pypistats CLI directly with uvx / pipx
uvx pypistats overall aegis-mail-companion
```

---

## ✨ Key Features & Architecture

### 1. 📬 Multi-Provider Email Connectivity (With Built-in Step-by-Step Visual Setup Guides)
Every provider card includes an interactive **? Help** button that opens a right-side step-by-step setup drawer with annotated instructions and 1-click server presets:
- **Microsoft Outlook / Office 365:** OAuth 2.0 Web Redirect, Device Code flow, and Sovereign Cloud support (`graph.microsoft.com`, US Gov, 21Vianet) via Microsoft Graph API.
- **Google Gmail:** Google Workspace & personal Gmail via **16-digit App Password** (`imap.gmail.com:993` / `smtp.gmail.com:587`) or Google Cloud OAuth 2.0.
- **Zoho Mail:** Zoho OAuth 2.0 or Application-Specific Password across all regional data centers (`imap.zoho.com`, `imappro.zoho.com`, `.eu`, `.in`, `.com.au`, `.jp`).
- **Standard Mail (IMAP/SMTP):** 1-click presets and visual guides for **cPanel / Corporate Mail**, **Apple iCloud Mail**, **Yahoo Mail**, **Fastmail**, **Namecheap PrivateEmail**, **Rackspace**, and **GoDaddy / Titan Mail**.
- **AES-256 / Fernet Encrypted Token Vault:** All OAuth refresh tokens and IMAP/SMTP App Passwords are encrypted at rest.

### 2. 🎛️ Two Flexible Operating Modes (`Without Project` vs. `With Project & Knowledge Base(s) Attached`)
Switch modes anytime per mailbox from the **Mailbox Details Banner → Settings (`⚙`) Drawer**:
- **Mode A — Without a Project (Standalone Mailbox Mode):** Run any mailbox with zero project or Knowledge Base required. All 20 Email Agents use built-in **ICRB Multi-Turn Thread Memory** (`rolling_summary`, `delta_body`, `key_entities`), sentiment analysis, and SLA guardrails out of the box.
- **Mode B — With a Project & Knowledge Base(s) Attached:** Link a **Project** (Jira, Backlog, GitHub, GitLab) and **one or more Knowledge Bases** (`pgvector` Document Center RAG) to your mailbox. Agents automatically invoke `fetch_project_context` and `search_document_center` before drafting replies — while strictly sanitizing internal ticket IDs, repo names, and metadata from customer-facing emails.

### 3. 🤖 20 Specialized Email AI Agents (`AI Agents` Screen) & Incremental Context Rolling Buffer (ICRB)
Every agent operates with the **Global Tool Execution Condition** (`fetch_project_context` via Project Connector & `search_document_center` via Document Center / Knowledge Base Connector) and **ICRB Multi-Turn Thread Memory** (`aegis_email_threads` & `aegis_email_messages`):

| Stage / Group | Agent ID | Agent Name | Role & Capabilities |
| :---: | :--- | :--- | :--- |
| **★** | `email_ticket_analysis_agent` | **Ticket Analysis Agent** | Extracts issue keys (`SCRUM-21`), fetches live Jira/Project context, performs root-cause analysis, and drafts or auto-sends replies. |
| **⚡** | `email_tiered_pipeline_agent` | **Tiered L1/L2 Support Pipeline Agent** | End-to-end 5-stage orchestrator (`Stage 1 → Stage 2 → Stage 3/4 → Stage 5`) with ICRB thread state commit. |
| **1** | `email_thread_parser_agent` | **Thread Parser & Digest Agent (ICRB)** | Resolves `Message-ID`/`In-Reply-To`/`References` headers, strips quotes/signatures into `delta_body`, and maintains `rolling_summary` & `key_entities` across turns `1..N`. |
| **2** | `email_sentiment_triage_agent` | **Sentiment & Triage Router Agent** | Detects customer frustration, urgency, SLA risk, and churn risk; routes to Domain Specialists, `L1`, `L2`, or `HUMAN_ESCALATION`. |
| **3** | `email_l1_support_agent` | **L1 Support Agent (General Support)** | Resolves standard inquiries, billing, and FAQs via `search_document_center` & `fetch_project_context`. |
| **4** | `email_l2_support_agent` | **L2 Support Agent (Deep Technical)** | Parses stack traces, HTTP errors, and logs; cross-references issue trackers to construct technical troubleshooting replies. |
| **5** | `email_response_qa_agent` | **Response Drafting & QA Agent** | Enforces empathy, corporate tone, policy guardrails, and zero internal-metadata leakage before 1-Click Send. |
| **Eng 1** | `email_bug_diagnostic_triager_agent` | **Bug Diagnostic & Code Triager Agent** | Classifies P0–P3 defects, extracts stack traces, checks known issues (`search_document_center`) and repo tickets (`fetch_project_context`). |
| **Eng 2** | `email_git_cicd_deployment_digest_agent` | **Git & CI/CD Deployment Digest Agent** | Correlates failing pipelines with commit diffs (`fetch_project_context`) and rollback SOPs (`search_document_center`). |
| **Eng 3** | `email_api_webhook_specialist_agent` | **API & Webhook Technical Specialist** | Diagnoses REST/Webhook payloads against OpenAPI specs (`search_document_center`) and schema migrations (`fetch_project_context`). |
| **E-Com 1** | `email_order_tracking_wismo_agent` | **Order Tracking & Logistics (WISMO)** | Resolves shipping inquiries and carrier SLAs via `search_document_center` and fulfillment state via `fetch_project_context`. |
| **E-Com 2** | `email_returns_rma_concierge_agent` | **Returns, Replacements & RMA Concierge** | Enforces return windows/eligibility (`search_document_center`) and warranty tracking (`fetch_project_context`). |
| **E-Com 3** | `email_mall_merchant_tenant_agent` | **Mall Merchant & Tenant Relations Agent** | Manages tenant bylaws/facilities (`search_document_center`) and POS/catalog sync tickets (`fetch_project_context`). |
| **Ops 1** | `email_accounts_payable_billing_agent` | **Accounts Payable, Invoicing & Billing** | Validates vendor invoices, Net 30/60 terms, and tax rules (`search_document_center`) against POs (`fetch_project_context`). |
| **Ops 2** | `email_vip_churn_escalation_agent` | **VIP Enterprise Churn Sentinel & Escalation** | De-escalates enterprise SLA/churn risks using MSA terms (`search_document_center`) and open deliverables (`fetch_project_context`). |
| **Daily** | `email_morning_standup_agent` · `email_eod_progress_digest_agent` · `email_renewal_bill_sentinel_agent` · `email_vip_blocker_ping_agent` · `email_habit_learning_companion_agent` | **5 Productivity & Sentinel Agents** | Automated daily standup agendas, EOD activity digests, bill/renewal sentinels, VIP PR blocker pings, and learning companions. |

### 4. 🧠 19 Specialized Email Skills (`Skills Library` Screen) + 2 Global RAG Tools
- **2 Global RAG Tools (Equipped on All 20 Email Agents):**
  1. `fetch_project_context` — Queries live Project Connectors (Jira, Backlog, GitHub, GitLab) for issue status, sprints, PRs, and commit activity.
  2. `search_document_center` — Performs hybrid `pgvector` semantic + keyword retrieval across attached Knowledge Bases (PDF, DOCX, XLSX, Markdown, OpenAPI).
- **19 Specialized Email Skills:**
  1. `email_thread_digest` — Email Thread Digest & ICRB Delta Extraction
  2. `email_sentiment_triage` — Customer Sentiment, Urgency & L1/L2 Triage Routing
  3. `email_l1_faq_resolution` — L1 General Customer Support & FAQ Resolution
  4. `email_l2_technical_diagnostics` — L2 Technical Support, Log & Stack-Trace Diagnostics
  5. `email_jira_ticket_correlation` — Jira & Project Ticket Correlation for Incoming Emails
  6. `email_response_qa_guardrails` — Support Response QA, Tone Alignment & Zero-Leakage Policy Guardrails
  7. `email_bug_stacktrace_triage` — Software Defect Classification & Stack-Trace Triage
  8. `email_cicd_build_failure_analysis` — Git Commit & CI/CD Pipeline Failure Correlation
  9. `email_api_webhook_debugging` — REST API, OAuth & Webhook Payload Debugging
  10. `email_wismo_shipment_resolution` — E-Commerce WISMO & Carrier SLA Resolution
  11. `email_rma_return_authorization` — RMA Eligibility, Exchange & Refund Processing
  12. `email_mall_tenant_operations` — Mall Merchant Onboarding, Lease & Facility Coordination
  13. `email_ap_invoice_reconciliation` — Accounts Payable 3-Way PO/Invoice Matching
  14. `email_vip_sla_deescalation` — Enterprise VIP SLA Breach Recovery & Executive Briefing
  15. `email_morning_standup_synthesis` — Morning Standup & Priority Action Synthesis
  16. `email_eod_executive_summary` — End-of-Day Progress & Unresolved Thread Summary
  17. `email_subscription_renewal_audit` — SaaS Contract, Domain & Invoice Renewal Detection
  18. `email_pr_blocker_escalation` — Urgent Code Review & Release Blocker Detection
  19. `email_micro_learning_curation` — Daily Technical Digest & Spaced-Repetition Curation

### 5. ☁️ 1-Click Cloud Deployment Hub & 🖥️ Installable PWA
- **1-Click Cloud Deploy Hub (`/cloud-deploy`):** Built-in deployment blueprints (`Dockerfile`, `vercel.json`, `render.yaml`, `railway.json`, `fly.toml`) for **Vercel**, **Render**, **Railway**, and **Fly.io** with pre-wired `EXPORT_AEGIS_EMAIL_COMPANION_DB` environment configuration.
- **Installable Progressive Web App (PWA):** Includes `manifest.webmanifest` and offline-capable Service Worker (`sw.js`). Click **Install App** in the top navigation bar on Chrome, Edge, Brave, or Safari (`Add to Dock` / `Add to Home Screen`) to run **Mail Companion** as a standalone desktop or mobile app.

---

## 🔗 Ecosystem & Official Links

- **Official Documentation & Setup Portal:** [https://aegis-mail-companion.vercel.app](https://aegis-mail-companion.vercel.app)
- **Step-by-Step Python Install Guide:** [https://aegis-mail-companion.vercel.app/download](https://aegis-mail-companion.vercel.app/download)
- **1-Click Cloud Deployment Hub:** [https://aegis-mail-companion.vercel.app/cloud-deploy](https://aegis-mail-companion.vercel.app/cloud-deploy)
- **Live Download Analytics (ClickPy):** [https://clickpy.clickhouse.com/dashboard/aegis-mail-companion](https://clickpy.clickhouse.com/dashboard/aegis-mail-companion)
- **PyPIStats OS & Python Breakdown:** [https://pypistats.org/packages/aegis-mail-companion](https://pypistats.org/packages/aegis-mail-companion)
- **PePy Total Download Counter:** [https://pepy.tech/projects/aegis-mail-companion](https://pepy.tech/projects/aegis-mail-companion)
- **PyPI Author Profile (`sachinbosep`):** [https://pypi.org/user/sachinbosep/](https://pypi.org/user/sachinbosep/)
- **Full Enterprise Suite (`aegis-ai-suite`):** [https://pypi.org/project/aegis-ai-suite/](https://pypi.org/project/aegis-ai-suite/)
- **Official Aegis Portal:** [https://aegis-help.nilswa.com](https://aegis-help.nilswa.com)
