@reporails/cli 0.1.3 → 0.2.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 +28 -16
- package/bin/reporails.mjs +9 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ npx @reporails/cli check
|
|
|
23
23
|
That's it. You'll get a score, capability level, and actionable violations.
|
|
24
24
|
```
|
|
25
25
|
╔══════════════════════════════════════════════════════════════╗
|
|
26
|
-
║ SCORE: 8.1 / 10 (partial) | CAPABILITY:
|
|
26
|
+
║ SCORE: 8.1 / 10 (partial) | CAPABILITY: Maintained (L5) ║
|
|
27
27
|
║ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░ ║
|
|
28
28
|
╚══════════════════════════════════════════════════════════════╝
|
|
29
29
|
|
|
@@ -64,7 +64,7 @@ Once installed, all commands use `ails` directly.
|
|
|
64
64
|
| L2 | Basic | Has CLAUDE.md |
|
|
65
65
|
| L3 | Structured | Sections, imports |
|
|
66
66
|
| L4 | Abstracted | .claude/rules/ directory |
|
|
67
|
-
| L5 |
|
|
67
|
+
| L5 | Maintained | Shared files, 3+ components |
|
|
68
68
|
| L6 | Adaptive | Backbone + full governance |
|
|
69
69
|
|
|
70
70
|
## Commands
|
|
@@ -73,13 +73,17 @@ Once installed, all commands use `ails` directly.
|
|
|
73
73
|
ails check # Score your setup
|
|
74
74
|
ails check -f json # JSON output (for CI)
|
|
75
75
|
ails check --strict # Exit 1 if violations (for CI)
|
|
76
|
-
ails check --
|
|
77
|
-
ails
|
|
76
|
+
ails check --no-update-check # Skip pre-run update prompt
|
|
77
|
+
ails check --exclude-dir vendor # Exclude directory from scanning
|
|
78
|
+
ails explain CORE:S:0001 # Explain a rule
|
|
78
79
|
ails map # Show project structure
|
|
79
80
|
ails map --save # Generate backbone.yml
|
|
80
|
-
ails update # Update rules framework
|
|
81
|
-
ails update --check # Check for
|
|
82
|
-
ails
|
|
81
|
+
ails update # Update rules framework + recommended
|
|
82
|
+
ails update --check # Check for updates without installing
|
|
83
|
+
ails update --recommended # Update recommended rules only
|
|
84
|
+
ails update --force # Force reinstall even if current
|
|
85
|
+
ails update --cli # Upgrade the CLI package itself
|
|
86
|
+
ails dismiss CORE:C:0001 # Dismiss a semantic finding
|
|
83
87
|
ails version # Show version info
|
|
84
88
|
```
|
|
85
89
|
|
|
@@ -90,29 +94,37 @@ ails version # Show version info
|
|
|
90
94
|
| `check [PATH]` | Validate instruction files |
|
|
91
95
|
| `explain RULE_ID` | Show rule details |
|
|
92
96
|
| `map [PATH]` | Discover project structure |
|
|
93
|
-
| `update` | Update rules framework |
|
|
97
|
+
| `update` | Update rules framework + recommended |
|
|
94
98
|
| `dismiss RULE_ID` | Dismiss a semantic finding |
|
|
95
99
|
| `version` | Show version info |
|
|
96
100
|
|
|
97
101
|
## Updating
|
|
98
102
|
|
|
99
|
-
The **rules framework** updates separately from the CLI:
|
|
100
|
-
|
|
101
103
|
```bash
|
|
102
|
-
ails update # Update rules to latest
|
|
103
|
-
ails update --check # Check without installing
|
|
104
|
+
ails update # Update rules framework + recommended to latest
|
|
105
|
+
ails update --check # Check for updates without installing
|
|
106
|
+
ails update --recommended # Update recommended rules only
|
|
107
|
+
ails update --force # Force reinstall even if current
|
|
108
|
+
ails update --cli # Upgrade the CLI package itself
|
|
104
109
|
```
|
|
105
110
|
|
|
111
|
+
Before each scan, the CLI prompts when updates are available. Use `--no-update-check` to skip.
|
|
112
|
+
|
|
106
113
|
The **CLI itself** updates automatically — `npx @reporails/cli` always fetches the latest version.
|
|
107
114
|
Persistent installs: `npm install -g @reporails/cli@latest`
|
|
108
115
|
|
|
109
116
|
## Recommended Rules
|
|
110
117
|
|
|
111
|
-
|
|
118
|
+
[Recommended rules](https://github.com/reporails/recommended) (AILS_ namespace) are included by default and auto-downloaded on first run. To opt out, add to your `.reporails/config.yml`:
|
|
119
|
+
|
|
120
|
+
```yaml
|
|
121
|
+
recommended: false
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
To update recommended rules independently:
|
|
112
125
|
|
|
113
126
|
```bash
|
|
114
|
-
ails
|
|
115
|
-
ails update --recommended # Re-fetch latest recommended rules
|
|
127
|
+
ails update --recommended
|
|
116
128
|
```
|
|
117
129
|
|
|
118
130
|
## Prerequisites
|
|
@@ -134,4 +146,4 @@ Want to add or improve rules? Please follow [Contribute](https://github.com/repo
|
|
|
134
146
|
|
|
135
147
|
## License
|
|
136
148
|
|
|
137
|
-
|
|
149
|
+
BUSL 1.1
|
package/bin/reporails.mjs
CHANGED
|
@@ -16,7 +16,11 @@ Usage:
|
|
|
16
16
|
reporails uninstall [--scope user|project] Remove MCP server from Claude Code
|
|
17
17
|
reporails check [PATH] [OPTIONS] Validate instruction files
|
|
18
18
|
reporails explain RULE_ID Show rule details
|
|
19
|
-
reporails
|
|
19
|
+
reporails map [PATH] [--save] Discover project structure
|
|
20
|
+
reporails update Update rules framework + recommended
|
|
21
|
+
reporails update --check Check for updates without installing
|
|
22
|
+
reporails update --recommended Update recommended rules only
|
|
23
|
+
reporails update --cli Upgrade CLI package itself
|
|
20
24
|
reporails dismiss RULE_ID Dismiss a semantic finding
|
|
21
25
|
reporails version Show version info
|
|
22
26
|
reporails <command> [args...] Proxy any command to ails CLI
|
|
@@ -24,8 +28,8 @@ Usage:
|
|
|
24
28
|
Examples:
|
|
25
29
|
npx @reporails/cli install # Add MCP server (user scope)
|
|
26
30
|
npx @reporails/cli check # Score your setup
|
|
27
|
-
npx @reporails/cli explain
|
|
28
|
-
npx @reporails/cli update # Update rules
|
|
31
|
+
npx @reporails/cli explain CORE:S:0001 # Explain a rule
|
|
32
|
+
npx @reporails/cli update # Update rules + recommended
|
|
29
33
|
|
|
30
34
|
Prerequisites:
|
|
31
35
|
Node.js >= 18 (uv is auto-installed if missing)
|
|
@@ -97,7 +101,7 @@ function install(args) {
|
|
|
97
101
|
ensureUv();
|
|
98
102
|
|
|
99
103
|
const scope = parseScope(args);
|
|
100
|
-
const cmd = `claude mcp add --scope ${scope} reporails -- uvx --from ${PYPI_PACKAGE} ${MCP_COMMAND}`;
|
|
104
|
+
const cmd = `claude mcp add --scope ${scope} reporails -- uvx --refresh --from ${PYPI_PACKAGE} ${MCP_COMMAND}`;
|
|
101
105
|
console.log(`Registering MCP server (scope: ${scope})...`);
|
|
102
106
|
|
|
103
107
|
try {
|
|
@@ -133,7 +137,7 @@ function uninstall(args) {
|
|
|
133
137
|
function proxy(args) {
|
|
134
138
|
ensureUv();
|
|
135
139
|
|
|
136
|
-
const child = spawn("uvx", ["--from", PYPI_PACKAGE, CLI_COMMAND, ...args], {
|
|
140
|
+
const child = spawn("uvx", ["--refresh", "--from", PYPI_PACKAGE, CLI_COMMAND, ...args], {
|
|
137
141
|
stdio: "inherit",
|
|
138
142
|
});
|
|
139
143
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reporails/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Score your CLAUDE.md files. See what's missing. Improve your AI coding setup.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -25,6 +25,6 @@
|
|
|
25
25
|
"type": "git",
|
|
26
26
|
"url": "https://github.com/reporails/cli"
|
|
27
27
|
},
|
|
28
|
-
"license": "
|
|
28
|
+
"license": "BUSL-1.1",
|
|
29
29
|
"author": "Reporails"
|
|
30
30
|
}
|