@adobe-commerce/aio-toolkit 1.0.14 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +37 -0
- package/README.md +94 -0
- package/dist/aio-toolkit-cursor-context/bin/cli.js +1089 -0
- package/dist/aio-toolkit-cursor-context/bin/cli.js.map +1 -0
- package/files/cursor-context/commands/aio-toolkit-create-event-consumer-action.md +562 -0
- package/files/cursor-context/commands/aio-toolkit-create-graphql-action.md +531 -0
- package/files/cursor-context/commands/aio-toolkit-create-runtime-action.md +293 -0
- package/files/cursor-context/commands/aio-toolkit-create-webhook-action.md +439 -0
- package/files/cursor-context/rules/aio-toolkit-create-adobe-commerce-client.mdc +1321 -0
- package/files/cursor-context/rules/aio-toolkit-oop-best-practices.mdc +331 -0
- package/files/cursor-context/rules/aio-toolkit-setup-new-relic-telemetry.mdc +354 -0
- package/package.json +6 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,43 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.0.15] - 2026-02-09
|
|
9
|
+
|
|
10
|
+
### ✨ Features
|
|
11
|
+
|
|
12
|
+
- **feat(cli):** New Cursor IDE Context Management CLI (`aio-toolkit-cursor-context`)
|
|
13
|
+
- Command-line tool for managing Cursor IDE context files in Adobe App Builder projects
|
|
14
|
+
- Three sub-commands: `check`, `apply`, and `help`
|
|
15
|
+
- Automatic IDE detection (macOS, Windows, Linux)
|
|
16
|
+
- Model Context Protocol (MCP) server configuration
|
|
17
|
+
- Force mode for CI/CD pipelines
|
|
18
|
+
- Multi-directory support (`.cursor/rules` and `.cursor/commands`)
|
|
19
|
+
- Comprehensive error handling and user feedback
|
|
20
|
+
|
|
21
|
+
### 💡 Usage Examples
|
|
22
|
+
|
|
23
|
+
**Check context setup**:
|
|
24
|
+
```bash
|
|
25
|
+
npx aio-toolkit-cursor-context check
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
**Apply contexts (standard mode)**:
|
|
29
|
+
```bash
|
|
30
|
+
npx aio-toolkit-cursor-context apply
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
**Apply contexts (force mode)**:
|
|
34
|
+
```bash
|
|
35
|
+
npx aio-toolkit-cursor-context apply -f
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
**Display help**:
|
|
39
|
+
```bash
|
|
40
|
+
npx aio-toolkit-cursor-context help
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
8
45
|
## [1.0.14] - 2026-01-20
|
|
9
46
|
|
|
10
47
|
### ✨ Features
|
package/README.md
CHANGED
|
@@ -1487,6 +1487,100 @@ const registrations = await manager.list();
|
|
|
1487
1487
|
await manager.delete('your-registration-id');
|
|
1488
1488
|
```
|
|
1489
1489
|
|
|
1490
|
+
### 🛠️ CLI Tools
|
|
1491
|
+
|
|
1492
|
+
#### `aio-toolkit-cursor-context`
|
|
1493
|
+
|
|
1494
|
+
Command-line tool for managing Cursor IDE context files (rules and commands) in your Adobe App Builder projects. This CLI automatically sets up Cursor IDE-specific contexts and configures the Model Context Protocol (MCP) server for enhanced development experience.
|
|
1495
|
+
|
|
1496
|
+
##### Commands
|
|
1497
|
+
|
|
1498
|
+
###### `check`
|
|
1499
|
+
Validates that Cursor contexts are properly set up in your project.
|
|
1500
|
+
|
|
1501
|
+
```bash
|
|
1502
|
+
npx aio-toolkit-cursor-context check
|
|
1503
|
+
```
|
|
1504
|
+
|
|
1505
|
+
**Features:**
|
|
1506
|
+
- ✅ Checks for `.cursor/rules` and `.cursor/commands` directories
|
|
1507
|
+
- ✅ Validates MCP server configuration
|
|
1508
|
+
- ✅ Detects if running in Cursor IDE
|
|
1509
|
+
- ✅ Reports missing files or configurations
|
|
1510
|
+
|
|
1511
|
+
**Output Example:**
|
|
1512
|
+
```
|
|
1513
|
+
✅ Cursor IDE detected
|
|
1514
|
+
✅ MCP server configured
|
|
1515
|
+
✅ Found 3 context files in .cursor/rules
|
|
1516
|
+
✅ Found 4 context files in .cursor/commands
|
|
1517
|
+
✅ Cursor contexts are properly set up
|
|
1518
|
+
```
|
|
1519
|
+
|
|
1520
|
+
###### `apply`
|
|
1521
|
+
Copies Cursor context files from the package to your project.
|
|
1522
|
+
|
|
1523
|
+
```bash
|
|
1524
|
+
# Standard mode - copies missing files only
|
|
1525
|
+
npx aio-toolkit-cursor-context apply
|
|
1526
|
+
|
|
1527
|
+
# Force mode - overwrites existing files and bypasses IDE detection
|
|
1528
|
+
npx aio-toolkit-cursor-context apply -f
|
|
1529
|
+
npx aio-toolkit-cursor-context apply --force
|
|
1530
|
+
```
|
|
1531
|
+
|
|
1532
|
+
**Features:**
|
|
1533
|
+
- 📁 Copies context files to `.cursor/rules` and `.cursor/commands`
|
|
1534
|
+
- 🔄 Creates MCP configuration in `.cursor/mcp.json`
|
|
1535
|
+
- 🛡️ IDE detection prevents accidental application in non-Cursor environments
|
|
1536
|
+
- ⚡ Force mode for CI/CD pipelines or when IDE detection fails
|
|
1537
|
+
- 📊 Reports copied, skipped, and overwritten files
|
|
1538
|
+
|
|
1539
|
+
**Standard Mode Output:**
|
|
1540
|
+
```
|
|
1541
|
+
Copied 3 new context files to .cursor/rules
|
|
1542
|
+
Skipped 2 files (already exist)
|
|
1543
|
+
✅ MCP server configured
|
|
1544
|
+
✅ All cursor contexts applied successfully
|
|
1545
|
+
```
|
|
1546
|
+
|
|
1547
|
+
**Force Mode Output:**
|
|
1548
|
+
```
|
|
1549
|
+
Overwritten 5 existing files in .cursor/rules
|
|
1550
|
+
Copied 4 new files to .cursor/commands
|
|
1551
|
+
✅ MCP server configured
|
|
1552
|
+
✅ All cursor contexts applied successfully (force mode)
|
|
1553
|
+
```
|
|
1554
|
+
|
|
1555
|
+
###### `help`
|
|
1556
|
+
Displays help information for the CLI.
|
|
1557
|
+
|
|
1558
|
+
```bash
|
|
1559
|
+
npx aio-toolkit-cursor-context help
|
|
1560
|
+
```
|
|
1561
|
+
|
|
1562
|
+
##### Context Files Included
|
|
1563
|
+
|
|
1564
|
+
The CLI provides the following context files:
|
|
1565
|
+
|
|
1566
|
+
**Rules (`.cursor/rules/`):**
|
|
1567
|
+
- `aio-toolkit-create-adobe-commerce-client.mdc` - Creating Adobe Commerce client operations
|
|
1568
|
+
- `aio-toolkit-oop-best-practices.mdc` - Object-oriented programming best practices
|
|
1569
|
+
- `aio-toolkit-setup-new-relic-telemetry.mdc` - Setting up New Relic telemetry
|
|
1570
|
+
|
|
1571
|
+
**Commands (`.cursor/commands/`):**
|
|
1572
|
+
- `aio-toolkit-create-event-consumer-action.md` - Create event consumer actions
|
|
1573
|
+
- `aio-toolkit-create-graphql-action.md` - Create GraphQL actions
|
|
1574
|
+
- `aio-toolkit-create-runtime-action.md` - Create runtime actions
|
|
1575
|
+
- `aio-toolkit-create-webhook-action.md` - Create webhook actions
|
|
1576
|
+
|
|
1577
|
+
##### Use Cases
|
|
1578
|
+
|
|
1579
|
+
1. **Initial Project Setup**: Run `apply` to set up all Cursor contexts
|
|
1580
|
+
2. **Continuous Integration**: Use `apply -f` in CI/CD pipelines
|
|
1581
|
+
3. **Verification**: Run `check` to ensure contexts are properly configured
|
|
1582
|
+
4. **Updates**: Run `apply -f` after toolkit updates to get latest contexts
|
|
1583
|
+
|
|
1490
1584
|
## Environment Variables
|
|
1491
1585
|
|
|
1492
1586
|
Common environment variables used across components:
|