@review-my-code/rmcode 0.1.4 → 0.1.5
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 +7 -7
- package/dist/cli.js +1 -3
- package/package.json +1 -6
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# RMCode CLI
|
|
2
2
|
|
|
3
|
-
Run
|
|
3
|
+
Run RMCode from your terminal.
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
6
|
npm install -g @review-my-code/rmcode
|
|
@@ -9,9 +9,8 @@ export RMC_API_KEY=rmc_...
|
|
|
9
9
|
rmcode --staged
|
|
10
10
|
```
|
|
11
11
|
|
|
12
|
-
The CLI sends the selected diff, file, or stdin content to RMCode for
|
|
13
|
-
|
|
14
|
-
running a review.
|
|
12
|
+
The CLI sends the selected diff, file, or stdin content to RMCode for review.
|
|
13
|
+
Set `RMC_API_KEY` before running a review; anonymous CLI reviews are disabled.
|
|
15
14
|
|
|
16
15
|
## Common Commands
|
|
17
16
|
|
|
@@ -19,11 +18,12 @@ running a review.
|
|
|
19
18
|
rmcode # review branch diff from merge base
|
|
20
19
|
rmcode --staged # review staged changes
|
|
21
20
|
rmcode --unstaged # review unstaged changes
|
|
22
|
-
rmcode --all # review uncommitted
|
|
21
|
+
rmcode --all # review all uncommitted changes, including safe text files
|
|
23
22
|
rmcode src/auth.ts # review one file
|
|
24
23
|
git diff main | rmcode # review a custom diff; language is detected from filenames
|
|
25
24
|
rmcode --json --fail-on-findings
|
|
25
|
+
rmcode update # update to the latest CLI
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
`rmcode
|
|
28
|
+
Review commands check for the latest published CLI before uploading code. If a
|
|
29
|
+
newer version is available, run `rmcode update` and retry.
|
package/dist/cli.js
CHANGED
|
@@ -9,7 +9,7 @@ const path_1 = require("path");
|
|
|
9
9
|
const readline_1 = require("readline");
|
|
10
10
|
const API_URL = process.env.RMC_API_URL || "https://review-my-code.com";
|
|
11
11
|
const APP_URL = process.env.RMC_APP_URL || "https://review-my-code.com";
|
|
12
|
-
const VERSION = "0.1.
|
|
12
|
+
const VERSION = "0.1.5";
|
|
13
13
|
const FREE_PLAN_CREDITS_PER_MONTH = 30;
|
|
14
14
|
const REQUEST_TIMEOUT_MS = 290_000;
|
|
15
15
|
const POLL_TIMEOUT_MS = 10 * 60_000;
|
|
@@ -911,8 +911,6 @@ ${header}
|
|
|
911
911
|
${style("ENVIRONMENT", c.bold)}
|
|
912
912
|
|
|
913
913
|
RMC_API_KEY API key for authenticated reviews (get one: rmcode login)
|
|
914
|
-
RMC_API_URL API endpoint (default: https://review-my-code.com)
|
|
915
|
-
RMC_APP_URL App URL for login (default: https://review-my-code.com)
|
|
916
914
|
RMC_PR_TITLE Optional PR title hint for repository-context reviews
|
|
917
915
|
RMC_PR_NUMBER Optional PR number hint for CI/benchmark parity
|
|
918
916
|
RMC_SOURCE_REPO Optional owner/repo hint when no origin remote exists
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@review-my-code/rmcode",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "AI code review from your terminal. Catches logic errors, null risks, security holes, and broken error handling.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"code-review",
|
|
@@ -38,11 +38,6 @@
|
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
|
-
"repository": {
|
|
42
|
-
"type": "git",
|
|
43
|
-
"url": "git+https://github.com/review-my-code/review-my-code.git",
|
|
44
|
-
"directory": "cli"
|
|
45
|
-
},
|
|
46
41
|
"homepage": "https://review-my-code.com",
|
|
47
42
|
"author": "Alex Yang"
|
|
48
43
|
}
|