0.3.1 • Published 7 months ago
@multiverse-io/cari v0.3.1
Cursor AI Rules Installer
A command-line interface tool for installing and managing Cursor AI rules in your projects.
Features
- Initialize AI rules in your project
- Update existing AI rules to their latest versions
- Interactive rule selection
- YAML-based configuration
- Git integration for rule management
Installation
We recommend adding it to your project:
Yarn:
yarn add -D @multiverse-io/carinpm:
npm install --save-dev @multiverse-io/cariIf you like you can install globally with:
npm install -g @multiverse-io/cariInitialize AI Rules
Initialize AI rules in your project:
Yarn:
yarn run cari init # Or `cari init` if installed globallynpm:
npx cari init # Or `cari init` if installed globallyThis command will:
- Clone the AI rules repository in
~/.cariif it doesn't exist - Find all available rule files
- Allow you to select which rules to include
- Create a configuration file (.cari.yaml) in your project
- Copy the selected rule files to your project
Update AI Rules
Update the AI rules in your project:
Yarn:
yarn run cari update # Or `cari update` if installed globallynpm:
npx cari update # Or `cari update` if installed globallyThis command will:
- Pull the latest changes from the AI rules repository
- Check your configuration file (.cari.yaml) for included rules
- Copy the latest version of those rules to your project
- Ask if you want to include any new central rules it finds
For Contributors
Requirements
- Node.js >= 14.0.0
- Yarn >= 4.1.1 (recommended package manager)
Initial setup
# Clone the repository
git clone git@github.com:Multiverse-io/cari.git
cd cari
# Set up GitHub authentication
# 1. Create a GitHub Personal Access Token (PAT):
# - Go to GitHub.com → Settings → Developer Settings → Personal Access Tokens → Tokens (classic)
# - Generate a new token with scopes: read:packages, repo
# 2. Set the token as an environment variable:
export GITHUB_TOKEN=your_github_token_here
# Or create a .env file in the project root with:
# GITHUB_TOKEN=your_github_token_here
# Install dependencies
yarn installDevelopment
# Run in development mode
yarn dev
yarn dev init # Run the init command
yarn dev update # Run the update command
# Build the project
yarn build
# Run the built version
yarn startTesting
# Run tests once
yarn test
# Run tests in watch mode
yarn test:watch
# Run tests with coverage
yarn test:coverageAuthor
Tim Gent
Support
For support, please open an issue in the GitHub repository.