refactor(cursor): Migrate setup commands from npm to Bun for improved performance
- Updated installation and setup commands in documentation to use Bun instead of npm. - Adjusted commands across various setup guides including QUICKSTART.md, STANDALONE-SETUP.md, and others. - Ensured consistency in command usage for all platforms (macOS, Linux, Windows). This change enhances the installation process and aligns with the recent performance improvements associated with Bun.
This commit is contained in:
@@ -18,7 +18,7 @@ Use claude-mem's persistent memory in Cursor without a Claude Code subscription.
|
||||
|
||||
### macOS / Linux
|
||||
- Cursor IDE
|
||||
- Node.js 18+
|
||||
- [Bun](https://bun.sh) (`curl -fsSL https://bun.sh/install | bash`)
|
||||
- Git
|
||||
- `jq` and `curl`:
|
||||
- **macOS**: `brew install jq curl`
|
||||
@@ -26,7 +26,7 @@ Use claude-mem's persistent memory in Cursor without a Claude Code subscription.
|
||||
|
||||
### Windows
|
||||
- Cursor IDE
|
||||
- Node.js 18+
|
||||
- [Bun](https://bun.sh) (PowerShell: `powershell -c "irm bun.sh/install.ps1 | iex"`)
|
||||
- Git
|
||||
- PowerShell 5.1+ (included with Windows 10/11)
|
||||
|
||||
@@ -38,10 +38,10 @@ git clone https://github.com/thedotmack/claude-mem.git
|
||||
cd claude-mem
|
||||
|
||||
# Install dependencies
|
||||
npm install
|
||||
bun install
|
||||
|
||||
# Build the project
|
||||
npm run build
|
||||
bun run build
|
||||
```
|
||||
|
||||
## Step 2: Configure Provider (Choose One)
|
||||
@@ -107,10 +107,10 @@ EOF
|
||||
|
||||
```bash
|
||||
# From the claude-mem repo directory
|
||||
npm run cursor:install
|
||||
bun run cursor:install
|
||||
|
||||
# Or for user-level (all projects):
|
||||
npm run cursor:install -- user
|
||||
bun run cursor:install -- user
|
||||
```
|
||||
|
||||
This installs:
|
||||
@@ -121,7 +121,7 @@ This installs:
|
||||
## Step 4: Start the Worker
|
||||
|
||||
```bash
|
||||
npm run worker:start
|
||||
bun run worker:start
|
||||
```
|
||||
|
||||
The worker runs in the background and handles:
|
||||
@@ -136,7 +136,7 @@ The worker runs in the background and handles:
|
||||
|
||||
2. **Check installation status**:
|
||||
```bash
|
||||
npm run cursor:status
|
||||
bun run cursor:status
|
||||
```
|
||||
|
||||
3. **Verify the worker is running**:
|
||||
@@ -196,12 +196,12 @@ If you hit the 1500 requests/day limit:
|
||||
|
||||
| Command | Purpose |
|
||||
|---------|---------|
|
||||
| `npm run cursor:install` | Install hooks for current project |
|
||||
| `npm run cursor:install -- user` | Install hooks for all projects |
|
||||
| `npm run cursor:status` | Check installation status |
|
||||
| `npm run worker:start` | Start the background worker |
|
||||
| `npm run worker:stop` | Stop the background worker |
|
||||
| `npm run worker:restart` | Restart the worker |
|
||||
| `bun run cursor:install` | Install hooks for current project |
|
||||
| `bun run cursor:install -- user` | Install hooks for all projects |
|
||||
| `bun run cursor:status` | Check installation status |
|
||||
| `bun run worker:start` | Start the background worker |
|
||||
| `bun run worker:stop` | Stop the background worker |
|
||||
| `bun run worker:restart` | Restart the worker |
|
||||
|
||||
---
|
||||
|
||||
@@ -223,8 +223,8 @@ Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
|
||||
# Clone and build
|
||||
git clone https://github.com/thedotmack/claude-mem.git
|
||||
cd claude-mem
|
||||
npm install
|
||||
npm run build
|
||||
bun install
|
||||
bun run build
|
||||
|
||||
# Configure provider (Gemini example)
|
||||
$settingsDir = "$env:USERPROFILE\.claude-mem"
|
||||
@@ -238,11 +238,11 @@ New-Item -ItemType Directory -Force -Path $settingsDir
|
||||
"@ | Out-File -FilePath "$settingsDir\settings.json" -Encoding UTF8
|
||||
|
||||
# Interactive setup (recommended - walks you through everything)
|
||||
npm run cursor:setup
|
||||
bun run cursor:setup
|
||||
|
||||
# Or manual installation
|
||||
npm run cursor:install
|
||||
npm run worker:start
|
||||
bun run cursor:install
|
||||
bun run worker:start
|
||||
```
|
||||
|
||||
### What Gets Installed on Windows
|
||||
|
||||
Reference in New Issue
Block a user