@itechmeat/open-code-review 1.13.8-fork.1 → 1.13.12-fork.1

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 CHANGED
@@ -108,6 +108,35 @@ The agent's strengths are concentrated where they matter most — dynamic decisi
108
108
 
109
109
  - **Git >= 2.41** — Open Code Review relies on Git for diff generation, code search, and repository operations.
110
110
 
111
+ <a id="supported-agents"></a>
112
+
113
+ ### Agent Skills
114
+
115
+ Use the skills in Claude Code, Codex, Cursor, Kimi Code, or another agent that supports Agent Skills and can run local commands. Both modes require **Git >= 2.41** and the **`ocr` CLI**; only native mode requires an OCR model provider.
116
+
117
+ #### 1. Install the Skills
118
+
119
+ Run in the project you want to review, then select the skills you need and your agent in the installer:
120
+
121
+ ```bash
122
+ npx skills add alibaba/open-code-review
123
+ ```
124
+
125
+ The skills guide your agent to install `ocr` if it is missing, subject to your environment's permissions. You can also install it ahead of time with `npm install -g @alibaba-group/open-code-review`. Prefer a plugin or manual installation? See the [agent-specific setup guide](plugins/open-code-review/README.md), or copy the desired folders from [`skills/`](skills/) into your agent's skill directory.
126
+
127
+ #### 2. Choose a Review Mode
128
+
129
+ | | Native mode | Delegation mode |
130
+ |---|---|---|
131
+ | Skill | [`open-code-review`](skills/open-code-review/SKILL.md) | [`open-code-review-delegate`](skills/open-code-review-delegate/SKILL.md) |
132
+ | Who reviews? | OCR's specialized review agent and pipeline | Your current coding agent, following OCR's review pipeline and guardrails |
133
+ | Model and authentication | OCR's own provider configuration | Your host agent's existing model and authentication |
134
+ | Choose it when | You have a model endpoint for OCR and want its full review pipeline | You have no separate API key, or want to use your existing agent subscription/setup |
135
+
136
+ **No separate key? Start with delegation mode.** It skips OCR provider setup, not the host agent's own authentication, usage limits, or costs. A host-agent subscription is not automatically an API credential for native mode. In delegation mode, OCR's CLI and skill together provide the review pipeline and guardrails: file selection, rule resolution, coverage requirements, and structured reporting. The host agent performs analysis, positioning, and reporting within that workflow; it does not run OCR's full native pipeline.
137
+
138
+ For native mode, configure a provider once with `ocr config provider` and `ocr config model`. Authentication depends on the provider; see [Configuration](https://open-codereview.ai/docs/configuration).
139
+
111
140
  ### CLI
112
141
 
113
142
  #### Install
@@ -134,7 +163,7 @@ ocr config provider # Select a built-in provider or add a custom one
134
163
  ocr config model # Pick a model for the active provider
135
164
  ```
136
165
 
137
- ![Provider setup](imgs/providers.jpg)
166
+ ![Model providers](imgs/providers.jpg)
138
167
 
139
168
  The interactive UI guides you through provider selection, API key entry, and model configuration, then automatically tests connectivity.
140
169
 
@@ -150,6 +179,9 @@ cd your-project
150
179
  # Workspace mode — review all staged, unstaged, and untracked changes
151
180
  ocr review
152
181
 
182
+ # Current branch — review changes since it diverged from main (--to defaults to HEAD)
183
+ ocr review --from main
184
+
153
185
  # Branch range — reviews feature-branch's changes since it diverged from main (merge-base mode)
154
186
  ocr review --from main --to feature-branch
155
187
 
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itechmeat/open-code-review",
3
- "version": "1.13.8-fork.1",
3
+ "version": "1.13.12-fork.1",
4
4
  "description": "OpenCodeReview CLI — AI-powered code review tool",
5
5
  "bin": {
6
6
  "ocr": "bin/ocr.js"
@@ -31,12 +31,12 @@
31
31
  "checksumPattern": "https://github.com/itechmeat/open-code-review/releases/download/v{version}/sha256sum.txt"
32
32
  },
33
33
  "optionalDependencies": {
34
- "@itechmeat/ocr-darwin-arm64": "1.13.8-fork.1",
35
- "@itechmeat/ocr-darwin-x64": "1.13.8-fork.1",
36
- "@itechmeat/ocr-linux-arm64": "1.13.8-fork.1",
37
- "@itechmeat/ocr-linux-x64": "1.13.8-fork.1",
38
- "@itechmeat/ocr-win32-arm64": "1.13.8-fork.1",
39
- "@itechmeat/ocr-win32-x64": "1.13.8-fork.1"
34
+ "@itechmeat/ocr-darwin-arm64": "1.13.12-fork.1",
35
+ "@itechmeat/ocr-darwin-x64": "1.13.12-fork.1",
36
+ "@itechmeat/ocr-linux-arm64": "1.13.12-fork.1",
37
+ "@itechmeat/ocr-linux-x64": "1.13.12-fork.1",
38
+ "@itechmeat/ocr-win32-arm64": "1.13.12-fork.1",
39
+ "@itechmeat/ocr-win32-x64": "1.13.12-fork.1"
40
40
  },
41
41
  "engines": {
42
42
  "node": ">=14"