Metadata-Version: 2.4
Name: ain-research-enterprise
Version: 0.1.0
Summary: Enterprise Collaboration Hub for AIN Research: Multi-tenant Cloud SQL sync and Firebase Authentication.
Author: AIN Research Team
Keywords: agents,autonomous,cloud,multi-tenant,research
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.10
Requires-Dist: ain-research
Requires-Dist: click>=8.0.0
Requires-Dist: psycopg2-binary>=2.9.9
Requires-Dist: python-dotenv>=1.0.0
Requires-Dist: requests>=2.31.0
Requires-Dist: sqlalchemy-utils>=0.41.1
Requires-Dist: sqlalchemy>=2.0.0
Description-Content-Type: text/markdown

# AIN Research Enterprise

The **AIN Research Enterprise** library is the commercial, multi-tenant collaboration layer for the Autonomous Intelligence Network (AIN). It extends the open-source `ain-research` daemon to securely proxy data into an isolated Cloud SQL database environment.

## Features
- **Cloud SQL Sync**: Transparently intercepts local SQLite writes and routes downloaded research papers to a hosted PostgreSQL instance.
- **Multi-Tenant Isolation**: Uses Master-Tenant schema separation. Organizations get their own securely provisioned database instances on-the-fly.
- **Firebase Auth**: Secures the CLI access. Researchers must authenticate to push articles into their organization's tenant DB.
- **Enterprise Runner Monkey-Patching**: Effortlessly integrates with the open-source library without requiring codebase forks.

## Quickstart

```bash
# 1. Install the CLI
pip install ain-research-enterprise

# 2. Authenticate with your enterprise credentials
ain-enterprise setup --email team@myorg.com --password mysecurepass

# 3. Verify your configuration status
ain-enterprise status

# 4. Launch the Enterprise Daemon
ain-enterprise run
```

## Architecture
This package injects an interceptor script (`runner.py`) into the `ain-research` core. It modifies `db_manager.enqueue_item` at runtime to prevent local markdown/file creation and instead pushes the payload directly over `SQLAlchemy` into your Cloud SQL database.

## Support
Built by the AIN Research Team.
