@a16njs/plugin-cursor 0.4.0 → 0.5.0
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/README.md +6 -29
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# @a16njs/plugin-cursor
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/@a16njs/plugin-cursor)
|
|
4
|
+
|
|
3
5
|
Cursor IDE plugin for a16n. Discovers and emits Cursor rules.
|
|
4
6
|
|
|
5
7
|
## Installation
|
|
@@ -48,41 +50,12 @@ Commands in `.cursor/commands/*.md` are prepackaged prompts invoked via `/comman
|
|
|
48
50
|
| File references | `@src/utils.js` | Context injection |
|
|
49
51
|
| `allowed-tools` | Frontmatter key | Tool permissions |
|
|
50
52
|
|
|
51
|
-
### Classification Priority
|
|
52
|
-
|
|
53
|
-
Rules are classified based on frontmatter (first match wins):
|
|
54
|
-
|
|
55
|
-
1. `alwaysApply: true` → GlobalPrompt
|
|
56
|
-
2. `globs:` present → FileRule
|
|
57
|
-
3. `description:` present → AgentSkill
|
|
58
|
-
4. No frontmatter → GlobalPrompt (fallback)
|
|
59
|
-
|
|
60
53
|
### Emission
|
|
61
54
|
|
|
62
55
|
- Creates `.cursor/rules/<name>.mdc` files with appropriate frontmatter
|
|
63
56
|
- Creates `.cursor/commands/<name>.md` files for AgentCommand items
|
|
64
57
|
- Creates `.cursorignore` from AgentIgnore patterns
|
|
65
58
|
|
|
66
|
-
## .cursorignore Format
|
|
67
|
-
|
|
68
|
-
The `.cursorignore` file uses gitignore-style patterns:
|
|
69
|
-
|
|
70
|
-
```text
|
|
71
|
-
# Build output
|
|
72
|
-
dist/
|
|
73
|
-
build/
|
|
74
|
-
|
|
75
|
-
# Environment
|
|
76
|
-
.env
|
|
77
|
-
.env.local
|
|
78
|
-
|
|
79
|
-
# Logs
|
|
80
|
-
*.log
|
|
81
|
-
|
|
82
|
-
# Secrets
|
|
83
|
-
secrets/
|
|
84
|
-
```
|
|
85
|
-
|
|
86
59
|
## MDC Format
|
|
87
60
|
|
|
88
61
|
Cursor uses MDC (Markdown Configuration) format with YAML frontmatter:
|
|
@@ -126,3 +99,7 @@ console.log(`Found ${result.items.length} rules`);
|
|
|
126
99
|
// Emit to Cursor format
|
|
127
100
|
await cursorPlugin.emit(result.items, './my-project');
|
|
128
101
|
```
|
|
102
|
+
|
|
103
|
+
## Documentation
|
|
104
|
+
|
|
105
|
+
Full documentation available at <https://texarkanine.github.io/a16n/plugin-cursor>.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@a16njs/plugin-cursor",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Cursor IDE plugin for a16n",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"author": "Texarkanine",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"dist"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@a16njs/models": "0.
|
|
36
|
+
"@a16njs/models": "0.4.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/node": "^20.0.0",
|