# Spine Framework Cortex

Cortex is an internal operations app for [Spine Framework](https://spine-framework.com). It provides a unified workspace for CRM, Support, Community, and Knowledge Base management.

## Features

- **CRM** — Accounts, contacts, deals, health tracking, activity feed
- **Support** — Ticket management and triage
- **Community** — Community moderation and engagement
- **Knowledge Base** — Article management, editor, and AI ingestion
- **Courses** — Course catalog and management
- **Intelligence** — AI-powered analytics and insights
- **Operations** — Audit funnels, install funnels, operational dashboards

## Requirements

- [Spine Framework](https://www.npmjs.com/package/spine-framework) `>=0.1.0`

## Installation

```bash
npx spine-framework install-app spine-framework-cortex
```

This will:
1. Copy app files to `custom/apps/cortex/`
2. Run any pending migrations
3. Seed roles, types, and link-types into the database
4. Register the app in `spine.config.json`

## Configuration

After installation, edit `custom/apps/cortex/manifest.json` to configure:

- `route_prefix` — where the app is served (default: `/cortex`)
- `registration` — self-registration behaviour and account assignment

To apply manifest changes to the database without reinstalling:

```bash
npx spine-framework update-db-app cortex
```

## License

See [LICENSE.md](./LICENSE.md)
