@humanbased/crosscheck 1.2.0 → 1.3.0-beta.82
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/LICENSE +1 -1
- package/README.md +182 -375
- package/README.zh.md +1 -1
- package/assets/icon-256.png +0 -0
- package/assets/linear-comment.svg +18 -0
- package/assets/linear-onboard.svg +30 -0
- package/assets/linear-status.svg +23 -0
- package/assets/linear-test.svg +34 -0
- package/assets/skills/code-review/.crosscheck-skill.json +9 -0
- package/assets/skills/code-review/LICENSE +21 -0
- package/assets/skills/code-review/SKILL.md +89 -0
- package/assets/skills/code-review/agents/openai.yaml +3 -0
- package/assets/skills/code-review-skill/.crosscheck-skill.json +9 -0
- package/assets/skills/code-review-skill/LICENSE +21 -0
- package/assets/skills/code-review-skill/SKILL.md +231 -0
- package/assets/skills/code-review-skill/assets/pr-review-template.md +137 -0
- package/assets/skills/code-review-skill/assets/review-checklist.md +123 -0
- package/assets/skills/code-review-skill/reference/angular.md +768 -0
- package/assets/skills/code-review-skill/reference/architecture-review-guide.md +472 -0
- package/assets/skills/code-review-skill/reference/c.md +890 -0
- package/assets/skills/code-review-skill/reference/code-quality-universal.md +488 -0
- package/assets/skills/code-review-skill/reference/code-review-best-practices.md +136 -0
- package/assets/skills/code-review-skill/reference/common-bugs-checklist.md +286 -0
- package/assets/skills/code-review-skill/reference/cpp.md +893 -0
- package/assets/skills/code-review-skill/reference/cross-cutting/async-concurrency-patterns.md +515 -0
- package/assets/skills/code-review-skill/reference/cross-cutting/error-handling-principles.md +492 -0
- package/assets/skills/code-review-skill/reference/cross-cutting/n-plus-one-queries.md +309 -0
- package/assets/skills/code-review-skill/reference/cross-cutting/sql-injection-prevention.md +308 -0
- package/assets/skills/code-review-skill/reference/cross-cutting/xss-prevention.md +264 -0
- package/assets/skills/code-review-skill/reference/csharp.md +525 -0
- package/assets/skills/code-review-skill/reference/css-less-sass.md +661 -0
- package/assets/skills/code-review-skill/reference/django.md +985 -0
- package/assets/skills/code-review-skill/reference/fastapi.md +580 -0
- package/assets/skills/code-review-skill/reference/go.md +993 -0
- package/assets/skills/code-review-skill/reference/java.md +409 -0
- package/assets/skills/code-review-skill/reference/java8.md +586 -0
- package/assets/skills/code-review-skill/reference/kotlin.md +1018 -0
- package/assets/skills/code-review-skill/reference/nestjs.md +593 -0
- package/assets/skills/code-review-skill/reference/performance-review-guide.md +816 -0
- package/assets/skills/code-review-skill/reference/php.md +684 -0
- package/assets/skills/code-review-skill/reference/python.md +1073 -0
- package/assets/skills/code-review-skill/reference/qt.md +757 -0
- package/assets/skills/code-review-skill/reference/react.md +871 -0
- package/assets/skills/code-review-skill/reference/ruby.md +964 -0
- package/assets/skills/code-review-skill/reference/rust.md +846 -0
- package/assets/skills/code-review-skill/reference/security-review-guide.md +494 -0
- package/assets/skills/code-review-skill/reference/svelte.md +1064 -0
- package/assets/skills/code-review-skill/reference/swift.md +936 -0
- package/assets/skills/code-review-skill/reference/typescript.md +1016 -0
- package/assets/skills/code-review-skill/reference/vue.md +924 -0
- package/assets/skills/code-review-skill/reference/zig.md +440 -0
- package/assets/skills/code-review-skill/scripts/pr-analyzer.py +435 -0
- package/assets/skills/code-review-skill/scripts/test_pr_analyzer.py +380 -0
- package/assets/skills/codebase-design/.crosscheck-skill.json +9 -0
- package/assets/skills/codebase-design/DEEPENING.md +37 -0
- package/assets/skills/codebase-design/DESIGN-IT-TWICE.md +44 -0
- package/assets/skills/codebase-design/LICENSE +21 -0
- package/assets/skills/codebase-design/SKILL.md +114 -0
- package/assets/skills/codebase-design/agents/openai.yaml +3 -0
- package/assets/skills/diagnosing-bugs/.crosscheck-skill.json +9 -0
- package/assets/skills/diagnosing-bugs/LICENSE +21 -0
- package/assets/skills/diagnosing-bugs/SKILL.md +134 -0
- package/assets/skills/diagnosing-bugs/agents/openai.yaml +3 -0
- package/assets/skills/diagnosing-bugs/scripts/hitl-loop.template.sh +41 -0
- package/crosscheck.config.example.yml +101 -9
- package/dist/__tests__/board.test.js +11 -0
- package/dist/__tests__/board.test.js.map +1 -1
- package/dist/__tests__/can-write-verdict.test.d.ts +2 -0
- package/dist/__tests__/can-write-verdict.test.d.ts.map +1 -0
- package/dist/__tests__/can-write-verdict.test.js +31 -0
- package/dist/__tests__/can-write-verdict.test.js.map +1 -0
- package/dist/__tests__/codex.test.js +14 -27
- package/dist/__tests__/codex.test.js.map +1 -1
- package/dist/__tests__/comment-bodies.test.js +49 -1
- package/dist/__tests__/comment-bodies.test.js.map +1 -1
- package/dist/__tests__/conflict-resolve.test.js +44 -1
- package/dist/__tests__/conflict-resolve.test.js.map +1 -1
- package/dist/__tests__/fix.test.js +33 -0
- package/dist/__tests__/fix.test.js.map +1 -1
- package/dist/__tests__/linear-branding.test.d.ts +2 -0
- package/dist/__tests__/linear-branding.test.d.ts.map +1 -0
- package/dist/__tests__/linear-branding.test.js +156 -0
- package/dist/__tests__/linear-branding.test.js.map +1 -0
- package/dist/__tests__/linear-client.test.d.ts +2 -0
- package/dist/__tests__/linear-client.test.d.ts.map +1 -0
- package/dist/__tests__/linear-client.test.js +120 -0
- package/dist/__tests__/linear-client.test.js.map +1 -0
- package/dist/__tests__/linear-comment.test.d.ts +2 -0
- package/dist/__tests__/linear-comment.test.d.ts.map +1 -0
- package/dist/__tests__/linear-comment.test.js +151 -0
- package/dist/__tests__/linear-comment.test.js.map +1 -0
- package/dist/__tests__/linear-identity.test.d.ts +2 -0
- package/dist/__tests__/linear-identity.test.d.ts.map +1 -0
- package/dist/__tests__/linear-identity.test.js +253 -0
- package/dist/__tests__/linear-identity.test.js.map +1 -0
- package/dist/__tests__/linear-notify.test.d.ts +2 -0
- package/dist/__tests__/linear-notify.test.d.ts.map +1 -0
- package/dist/__tests__/linear-notify.test.js +144 -0
- package/dist/__tests__/linear-notify.test.js.map +1 -0
- package/dist/__tests__/linear-ref.test.d.ts +2 -0
- package/dist/__tests__/linear-ref.test.d.ts.map +1 -0
- package/dist/__tests__/linear-ref.test.js +261 -0
- package/dist/__tests__/linear-ref.test.js.map +1 -0
- package/dist/__tests__/linear-test-ref.test.d.ts +2 -0
- package/dist/__tests__/linear-test-ref.test.d.ts.map +1 -0
- package/dist/__tests__/linear-test-ref.test.js +81 -0
- package/dist/__tests__/linear-test-ref.test.js.map +1 -0
- package/dist/__tests__/linear-verify.test.d.ts +2 -0
- package/dist/__tests__/linear-verify.test.d.ts.map +1 -0
- package/dist/__tests__/linear-verify.test.js +132 -0
- package/dist/__tests__/linear-verify.test.js.map +1 -0
- package/dist/__tests__/linear-worker.test.d.ts +2 -0
- package/dist/__tests__/linear-worker.test.d.ts.map +1 -0
- package/dist/__tests__/linear-worker.test.js +83 -0
- package/dist/__tests__/linear-worker.test.js.map +1 -0
- package/dist/__tests__/linear-write-possible.test.d.ts +2 -0
- package/dist/__tests__/linear-write-possible.test.d.ts.map +1 -0
- package/dist/__tests__/linear-write-possible.test.js +30 -0
- package/dist/__tests__/linear-write-possible.test.js.map +1 -0
- package/dist/__tests__/onboard-preservation.test.js +59 -3
- package/dist/__tests__/onboard-preservation.test.js.map +1 -1
- package/dist/__tests__/optimize.test.js +2 -0
- package/dist/__tests__/optimize.test.js.map +1 -1
- package/dist/__tests__/pr-status.test.js +163 -2
- package/dist/__tests__/pr-status.test.js.map +1 -1
- package/dist/__tests__/pr-workflow-state.test.js +102 -1
- package/dist/__tests__/pr-workflow-state.test.js.map +1 -1
- package/dist/__tests__/repo-picker.test.js +7 -1
- package/dist/__tests__/repo-picker.test.js.map +1 -1
- package/dist/__tests__/repository-guidance.test.d.ts +2 -0
- package/dist/__tests__/repository-guidance.test.d.ts.map +1 -0
- package/dist/__tests__/repository-guidance.test.js +107 -0
- package/dist/__tests__/repository-guidance.test.js.map +1 -0
- package/dist/__tests__/review-comment-body.test.js +35 -0
- package/dist/__tests__/review-comment-body.test.js.map +1 -1
- package/dist/__tests__/review-models.test.js +19 -3
- package/dist/__tests__/review-models.test.js.map +1 -1
- package/dist/__tests__/review-strategy.test.d.ts +2 -0
- package/dist/__tests__/review-strategy.test.d.ts.map +1 -0
- package/dist/__tests__/review-strategy.test.js +397 -0
- package/dist/__tests__/review-strategy.test.js.map +1 -0
- package/dist/__tests__/runner.test.js +29 -1
- package/dist/__tests__/runner.test.js.map +1 -1
- package/dist/__tests__/skill-attribution.test.d.ts +2 -0
- package/dist/__tests__/skill-attribution.test.d.ts.map +1 -0
- package/dist/__tests__/skill-attribution.test.js +53 -0
- package/dist/__tests__/skill-attribution.test.js.map +1 -0
- package/dist/__tests__/skill-broker.test.d.ts +2 -0
- package/dist/__tests__/skill-broker.test.d.ts.map +1 -0
- package/dist/__tests__/skill-broker.test.js +144 -0
- package/dist/__tests__/skill-broker.test.js.map +1 -0
- package/dist/__tests__/skill-catalog.test.d.ts +2 -0
- package/dist/__tests__/skill-catalog.test.d.ts.map +1 -0
- package/dist/__tests__/skill-catalog.test.js +40 -0
- package/dist/__tests__/skill-catalog.test.js.map +1 -0
- package/dist/__tests__/skill-installer.test.d.ts +2 -0
- package/dist/__tests__/skill-installer.test.d.ts.map +1 -0
- package/dist/__tests__/skill-installer.test.js +96 -0
- package/dist/__tests__/skill-installer.test.js.map +1 -0
- package/dist/__tests__/skills-config.test.d.ts +2 -0
- package/dist/__tests__/skills-config.test.d.ts.map +1 -0
- package/dist/__tests__/skills-config.test.js +12 -0
- package/dist/__tests__/skills-config.test.js.map +1 -0
- package/dist/cli.js +29 -0
- package/dist/cli.js.map +1 -1
- package/dist/commands/detect-step.d.ts.map +1 -1
- package/dist/commands/detect-step.js +4 -0
- package/dist/commands/detect-step.js.map +1 -1
- package/dist/commands/kickass.d.ts.map +1 -1
- package/dist/commands/kickass.js +3 -2
- package/dist/commands/kickass.js.map +1 -1
- package/dist/commands/linear-test.d.ts +18 -0
- package/dist/commands/linear-test.d.ts.map +1 -0
- package/dist/commands/linear-test.js +130 -0
- package/dist/commands/linear-test.js.map +1 -0
- package/dist/commands/onboard.d.ts +36 -3
- package/dist/commands/onboard.d.ts.map +1 -1
- package/dist/commands/onboard.js +233 -42
- package/dist/commands/onboard.js.map +1 -1
- package/dist/commands/review.d.ts.map +1 -1
- package/dist/commands/review.js +65 -6
- package/dist/commands/review.js.map +1 -1
- package/dist/commands/run.d.ts.map +1 -1
- package/dist/commands/run.js +51 -7
- package/dist/commands/run.js.map +1 -1
- package/dist/commands/skill.d.ts +2 -0
- package/dist/commands/skill.d.ts.map +1 -0
- package/dist/commands/skill.js +16 -0
- package/dist/commands/skill.js.map +1 -0
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +53 -1
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/watch.d.ts.map +1 -1
- package/dist/commands/watch.js +169 -64
- package/dist/commands/watch.js.map +1 -1
- package/dist/config/loader.d.ts +3 -1
- package/dist/config/loader.d.ts.map +1 -1
- package/dist/config/loader.js +13 -0
- package/dist/config/loader.js.map +1 -1
- package/dist/config/review-model-tiers.json +3 -3
- package/dist/config/review-strategy.json +204 -0
- package/dist/config/schema.d.ts +261 -15
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/schema.js +90 -8
- package/dist/config/schema.js.map +1 -1
- package/dist/github/client.d.ts +21 -1
- package/dist/github/client.d.ts.map +1 -1
- package/dist/github/client.js +46 -7
- package/dist/github/client.js.map +1 -1
- package/dist/github/webhook.d.ts +4 -0
- package/dist/github/webhook.d.ts.map +1 -1
- package/dist/github/webhook.js.map +1 -1
- package/dist/issues/ticket-ref.d.ts.map +1 -1
- package/dist/issues/ticket-ref.js +6 -5
- package/dist/issues/ticket-ref.js.map +1 -1
- package/dist/lib/annotation.d.ts +7 -0
- package/dist/lib/annotation.d.ts.map +1 -1
- package/dist/lib/annotation.js +11 -1
- package/dist/lib/annotation.js.map +1 -1
- package/dist/lib/board.d.ts +3 -0
- package/dist/lib/board.d.ts.map +1 -1
- package/dist/lib/board.js +4 -2
- package/dist/lib/board.js.map +1 -1
- package/dist/lib/clone.d.ts +1 -0
- package/dist/lib/clone.d.ts.map +1 -1
- package/dist/lib/clone.js +32 -10
- package/dist/lib/clone.js.map +1 -1
- package/dist/lib/comment-bodies.d.ts +37 -0
- package/dist/lib/comment-bodies.d.ts.map +1 -1
- package/dist/lib/comment-bodies.js +47 -9
- package/dist/lib/comment-bodies.js.map +1 -1
- package/dist/lib/pr-status.d.ts.map +1 -1
- package/dist/lib/pr-status.js +36 -2
- package/dist/lib/pr-status.js.map +1 -1
- package/dist/lib/pr-workflow-state.d.ts +5 -0
- package/dist/lib/pr-workflow-state.d.ts.map +1 -1
- package/dist/lib/pr-workflow-state.js +36 -1
- package/dist/lib/pr-workflow-state.js.map +1 -1
- package/dist/lib/repo-picker.d.ts +3 -0
- package/dist/lib/repo-picker.d.ts.map +1 -1
- package/dist/lib/repo-picker.js +45 -9
- package/dist/lib/repo-picker.js.map +1 -1
- package/dist/lib/repository-guidance.d.ts +2 -0
- package/dist/lib/repository-guidance.d.ts.map +1 -0
- package/dist/lib/repository-guidance.js +55 -0
- package/dist/lib/repository-guidance.js.map +1 -0
- package/dist/lib/review-models.d.ts +15 -2
- package/dist/lib/review-models.d.ts.map +1 -1
- package/dist/lib/review-models.js +26 -6
- package/dist/lib/review-models.js.map +1 -1
- package/dist/lib/review-strategy.d.ts +92 -0
- package/dist/lib/review-strategy.d.ts.map +1 -0
- package/dist/lib/review-strategy.js +282 -0
- package/dist/lib/review-strategy.js.map +1 -0
- package/dist/lib/runner.d.ts +92 -0
- package/dist/lib/runner.d.ts.map +1 -1
- package/dist/lib/runner.js +470 -54
- package/dist/lib/runner.js.map +1 -1
- package/dist/lib/workflow.d.ts +9 -0
- package/dist/lib/workflow.d.ts.map +1 -1
- package/dist/lib/workflow.js +20 -0
- package/dist/lib/workflow.js.map +1 -1
- package/dist/linear/client.d.ts +18 -0
- package/dist/linear/client.d.ts.map +1 -0
- package/dist/linear/client.js +67 -0
- package/dist/linear/client.js.map +1 -0
- package/dist/linear/comment.d.ts +20 -0
- package/dist/linear/comment.d.ts.map +1 -0
- package/dist/linear/comment.js +57 -0
- package/dist/linear/comment.js.map +1 -0
- package/dist/linear/identity.d.ts +59 -0
- package/dist/linear/identity.d.ts.map +1 -0
- package/dist/linear/identity.js +187 -0
- package/dist/linear/identity.js.map +1 -0
- package/dist/linear/notify.d.ts +35 -0
- package/dist/linear/notify.d.ts.map +1 -0
- package/dist/linear/notify.js +76 -0
- package/dist/linear/notify.js.map +1 -0
- package/dist/linear/ref.d.ts +13 -0
- package/dist/linear/ref.d.ts.map +1 -0
- package/dist/linear/ref.js +90 -0
- package/dist/linear/ref.js.map +1 -0
- package/dist/linear/verify.d.ts +26 -0
- package/dist/linear/verify.d.ts.map +1 -0
- package/dist/linear/verify.js +67 -0
- package/dist/linear/verify.js.map +1 -0
- package/dist/reviewers/claude.d.ts +4 -1
- package/dist/reviewers/claude.d.ts.map +1 -1
- package/dist/reviewers/claude.js +39 -7
- package/dist/reviewers/claude.js.map +1 -1
- package/dist/reviewers/codex.d.ts +3 -1
- package/dist/reviewers/codex.d.ts.map +1 -1
- package/dist/reviewers/codex.js +76 -70
- package/dist/reviewers/codex.js.map +1 -1
- package/dist/reviewers/conflict-resolve.d.ts +3 -1
- package/dist/reviewers/conflict-resolve.d.ts.map +1 -1
- package/dist/reviewers/conflict-resolve.js +21 -6
- package/dist/reviewers/conflict-resolve.js.map +1 -1
- package/dist/reviewers/fix.d.ts +5 -2
- package/dist/reviewers/fix.d.ts.map +1 -1
- package/dist/reviewers/fix.js +26 -10
- package/dist/reviewers/fix.js.map +1 -1
- package/dist/skills/attribution.d.ts +4 -0
- package/dist/skills/attribution.d.ts.map +1 -0
- package/dist/skills/attribution.js +14 -0
- package/dist/skills/attribution.js.map +1 -0
- package/dist/skills/broker-server.d.ts +2 -0
- package/dist/skills/broker-server.d.ts.map +1 -0
- package/dist/skills/broker-server.js +17 -0
- package/dist/skills/broker-server.js.map +1 -0
- package/dist/skills/broker.d.ts +42 -0
- package/dist/skills/broker.d.ts.map +1 -0
- package/dist/skills/broker.js +285 -0
- package/dist/skills/broker.js.map +1 -0
- package/dist/skills/catalog.d.ts +28 -0
- package/dist/skills/catalog.d.ts.map +1 -0
- package/dist/skills/catalog.js +104 -0
- package/dist/skills/catalog.js.map +1 -0
- package/dist/skills/installer.d.ts +10 -0
- package/dist/skills/installer.d.ts.map +1 -0
- package/dist/skills/installer.js +138 -0
- package/dist/skills/installer.js.map +1 -0
- package/dist/skills/integrity.d.ts +4 -0
- package/dist/skills/integrity.d.ts.map +1 -0
- package/dist/skills/integrity.js +36 -0
- package/dist/skills/integrity.js.map +1 -0
- package/docs/dynamic-thoroughness.md +738 -0
- package/docs/linear-identity-contract.md +139 -0
- package/docs/linear-identity.md +293 -0
- package/get-started.md +223 -11
- package/package.json +4 -3
package/get-started.md
CHANGED
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
- [Multi-PR syntax](#multi-pr-syntax)
|
|
23
23
|
- [watch](#crosscheck-watch)
|
|
24
24
|
- [status](#crosscheck-status)
|
|
25
|
+
- [skill install](#crosscheck-skill-install-source)
|
|
25
26
|
- [diagnose](#crosscheck-diagnose)
|
|
26
27
|
- [optimize](#crosscheck-optimize)
|
|
27
28
|
- [impact](#crosscheck-impact)
|
|
@@ -156,6 +157,52 @@ export LINEAR_API_KEY=lin_api_...
|
|
|
156
157
|
If it's unset while enrichment is on, crosscheck just skips enrichment and
|
|
157
158
|
reviews the diff as usual — it never errors.
|
|
158
159
|
|
|
160
|
+
### Linear identity — for writing back to Linear (optional)
|
|
161
|
+
|
|
162
|
+
Separate from enrichment above, which only *reads*. When `linear.enabled: true`,
|
|
163
|
+
crosscheck mirrors each review verdict onto the PR's Linear issue.
|
|
164
|
+
|
|
165
|
+
`crosscheck onboard` asks which rung of the attribution ladder you want and writes
|
|
166
|
+
the config for you.
|
|
167
|
+
|
|
168
|
+
**Start with `api_key`.** It reuses `LINEAR_API_KEY`, works immediately, and posts
|
|
169
|
+
the comment — the feature is fully functional. Comments attribute to your Linear
|
|
170
|
+
account, led by a `🤖 crosscheck · <model>` signature line.
|
|
171
|
+
|
|
172
|
+
Climb to `client_credentials` when more than one thing writes to your workspace and
|
|
173
|
+
you need them told apart. It uses an OAuth app — one per workspace, not per user —
|
|
174
|
+
so comments post as crosscheck itself with its own icon:
|
|
175
|
+
|
|
176
|
+
```bash
|
|
177
|
+
export LINEAR_CLIENT_ID=...
|
|
178
|
+
export LINEAR_CLIENT_SECRET=...
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
A failed T1 token mint aborts the run rather than falling back to `api_key` —
|
|
182
|
+
a silent downgrade would put agent writes back under a human's name.
|
|
183
|
+
|
|
184
|
+
`crosscheck onboard` walks you through the choice:
|
|
185
|
+
|
|
186
|
+
<p align="center">
|
|
187
|
+
<img src="./assets/linear-onboard.svg" alt="crosscheck onboard — choosing a Linear attribution rung" width="700" />
|
|
188
|
+
</p>
|
|
189
|
+
|
|
190
|
+
Before opening a PR, `crosscheck linear-test` exercises the whole path and posts nothing —
|
|
191
|
+
identity, issue lookup, verdict filter, and the exact comment body:
|
|
192
|
+
|
|
193
|
+
<p align="center">
|
|
194
|
+
<img src="./assets/linear-test.svg" alt="crosscheck linear-test — dry-run verification" width="700" />
|
|
195
|
+
</p>
|
|
196
|
+
|
|
197
|
+
`crosscheck status` shows which rung is active whenever `linear.enabled` is true:
|
|
198
|
+
|
|
199
|
+
<p align="center">
|
|
200
|
+
<img src="./assets/linear-status.svg" alt="crosscheck status — the Linear identity section" width="620" />
|
|
201
|
+
</p>
|
|
202
|
+
|
|
203
|
+
Full walkthrough, including the two Linear UI gotchas that trip people up:
|
|
204
|
+
[docs/linear-identity.md](docs/linear-identity.md).
|
|
205
|
+
|
|
159
206
|
---
|
|
160
207
|
|
|
161
208
|
## Step 1 — Check your setup
|
|
@@ -345,6 +392,8 @@ crosscheck onboard --reconfigure # re-run setup even if config already exists
|
|
|
345
392
|
|
|
346
393
|
**Step 6 — Review quality.** Choose the speed/thoroughness tier for review prompts and reviewer timeouts.
|
|
347
394
|
|
|
395
|
+
**Step 6.5 — Agent skills.** Choose which preloaded or custom-installed skills are enabled for coding agents. New setups preselect `code-review-skill (by @awesome-skills, MIT)` and `diagnosing-bugs (by @mattpocock, MIT)`. Matt Pocock's `code-review` and `codebase-design` are available but off by default. Re-running onboard preserves your selection. Skills are made available across workflow operations, and each skill's description plus the coding agent decides when it applies.
|
|
396
|
+
|
|
348
397
|
**Step 7 — Workflow pipeline.** Choose what happens after a review:
|
|
349
398
|
|
|
350
399
|
```
|
|
@@ -398,6 +447,12 @@ crosscheck onboard
|
|
|
398
447
|
[1] fast [2] balanced [3] thorough
|
|
399
448
|
Choice [2]: 2
|
|
400
449
|
|
|
450
|
+
Step 6.5 — agent skills
|
|
451
|
+
[ ] code-review (by @mattpocock, MIT)
|
|
452
|
+
[x] code-review-skill (by @awesome-skills, MIT)
|
|
453
|
+
[x] codebase-design (by @mattpocock, MIT)
|
|
454
|
+
[x] diagnosing-bugs (by @mattpocock, MIT)
|
|
455
|
+
|
|
401
456
|
Step 7 — workflow pipeline
|
|
402
457
|
[1] review only [2] review → fix [3] review → fix → re-check
|
|
403
458
|
Choice [2]: 3
|
|
@@ -473,6 +528,8 @@ crosscheck alter humanbased-ai/xny-monorepo --reset # remove th
|
|
|
473
528
|
|
|
474
529
|
The depths differ in what happens after the initial review:
|
|
475
530
|
|
|
531
|
+
In every depth, an `APPROVE` stops all work on the commit it covers, and a later push re-opens the PR — see [What happens after a PR is approved?](#what-happens-after-a-pr-is-approved).
|
|
532
|
+
|
|
476
533
|
- **`review`** — review each new SHA; never modify code.
|
|
477
534
|
- **`review,fix`** — crosscheck auto-applies fixes when the verdict isn't `APPROVE`, and stops there; its own fix commit is not re-reviewed.
|
|
478
535
|
- **`review,fix,recheck`** — same, then rechecks its own fix commit. `max_rounds` in `~/.crosscheck/workflow.yml` bounds that fix→recheck cycle.
|
|
@@ -721,6 +778,8 @@ crosscheck status
|
|
|
721
778
|
Config
|
|
722
779
|
mode cross-vendor
|
|
723
780
|
quality tier balanced
|
|
781
|
+
installed skills code-review (by @mattpocock, MIT), code-review-skill (by @awesome-skills, MIT), codebase-design (by @mattpocock, MIT), diagnosing-bugs (by @mattpocock, MIT)
|
|
782
|
+
enabled skills code-review-skill (by @awesome-skills, MIT), diagnosing-bugs (by @mattpocock, MIT)
|
|
724
783
|
codex auth subscription
|
|
725
784
|
claude model sonnet
|
|
726
785
|
per-review budget $2.00/review
|
|
@@ -744,6 +803,41 @@ crosscheck status
|
|
|
744
803
|
|
|
745
804
|
---
|
|
746
805
|
|
|
806
|
+
### `crosscheck skill install <source>`
|
|
807
|
+
|
|
808
|
+
Installs an Agent Skill from a Git URL or local directory into `~/.crosscheck/skills`. Crosscheck validates `SKILL.md`, rejects unsafe names and symbolic links, and records source, revision, author, license, and package integrity. Installation does not enable a skill automatically.
|
|
809
|
+
|
|
810
|
+
Crosscheck itself ships with this preloaded catalog:
|
|
811
|
+
|
|
812
|
+
| Skill | Onboarding default | Best fit |
|
|
813
|
+
|---|---:|---|
|
|
814
|
+
| [`code-review-skill`](https://github.com/awesome-skills/code-review-skill) (by `@awesome-skills`, MIT) | On | General default: broad language, correctness, security, performance, and architecture coverage |
|
|
815
|
+
| [`codebase-design`](https://github.com/mattpocock/skills/tree/main/skills/engineering/codebase-design) (by `@mattpocock`, MIT) | On | Architecture-heavy changes: deep modules, small interfaces, clean seams, and testability |
|
|
816
|
+
| [`diagnosing-bugs`](https://github.com/mattpocock/skills/tree/main/skills/engineering/diagnosing-bugs) (by `@mattpocock`, MIT) | On | Hard bugs and regressions: reproducible signals, ranked hypotheses, and regression evidence |
|
|
817
|
+
| [`code-review`](https://github.com/mattpocock/skills/tree/main/skills/engineering/code-review) (by `@mattpocock`, MIT) | Off | Evidence-rich repositories: separately checks documented standards and issue/PRD fidelity |
|
|
818
|
+
|
|
819
|
+
`code-review` and `code-review-skill` are competing review baselines. The onboarding picker highlights the conflict and will not enable one until the selected counterpart is deselected; the runtime broker also rejects activation of a second baseline. The other bundled skills are complementary.
|
|
820
|
+
|
|
821
|
+
```bash
|
|
822
|
+
crosscheck skill install https://github.com/owner/my-skill.git
|
|
823
|
+
crosscheck skill install /path/to/my-skill
|
|
824
|
+
crosscheck onboard # enable installed skills
|
|
825
|
+
```
|
|
826
|
+
|
|
827
|
+
The Git repository or local directory must have `SKILL.md` at its root. For a skill nested in a monorepo, clone it and pass the nested local directory.
|
|
828
|
+
|
|
829
|
+
`crosscheck status` distinguishes the full installed catalog from the enabled selection and renders attributed identities as `skill-name (by @author, license)`.
|
|
830
|
+
|
|
831
|
+
At runtime, Crosscheck distinguishes three states: **installed** skills are in the catalog, **enabled** skills are available to agents, and **activated** skills were actually loaded for one workflow step. A skill becomes activated only when the agent successfully calls the Crosscheck broker's `activate_skill` tool for an enabled skill and receives its `SKILL.md` instructions. Listing enabled skills, seeing a skill description, or merely enabling a skill does not count.
|
|
832
|
+
|
|
833
|
+
Activation is scoped to one step session, such as review, fix, recheck, or conflict resolution. Repeated activation in that session is idempotent, and the receipt survives retries or a reviewer fallback within the same step. Every later step gets a separate empty session, and Crosscheck deletes all step sessions when the workflow run ends. The terminal, logs, and PR comment preserve the completed step's attribution as historical evidence; they do not pre-activate future sessions. For example: `code-review-skill (by @awesome-skills, MIT)`.
|
|
834
|
+
|
|
835
|
+
Upgrading from an earlier Crosscheck release is opt-in: existing configs default to `skills.enabled: []`. Re-run `crosscheck onboard` to choose the recommended bundle or any additional installed skills.
|
|
836
|
+
|
|
837
|
+
Review and recheck also honor repository practices in `AGENTS.md` and `CLAUDE.md`. These repository-defined practices take precedence over bundled skill advice. Crosscheck reads the root files plus any nested files whose directory contains a changed path, orders them from broadest to most specific, and lets nested guidance override root guidance. It reads these files from the PR's base branch and disables vendor-native discovery for the run, so guidance added or modified by the PR cannot influence its own review.
|
|
838
|
+
|
|
839
|
+
---
|
|
840
|
+
|
|
747
841
|
### `crosscheck diagnose`
|
|
748
842
|
|
|
749
843
|
Reads `~/.crosscheck/logs/` and surfaces failure patterns, reviewer performance, and improvement suggestions.
|
|
@@ -965,7 +1059,7 @@ If no errors are found in recent logs, crosscheck prints `No errors found in rec
|
|
|
965
1059
|
|
|
966
1060
|
On re-runs, `onboard` updates only the fields it collected answers for. Everything else survives unchanged.
|
|
967
1061
|
|
|
968
|
-
**Updated on every run:** `deployment`, `orgs`, `repos`, `mode`, `clone_protocol`, `vendors.*.enabled`, `vendors.*.effort`, `quality.tier`, `tunnel.*`, `post_review.auto_fix.*`
|
|
1062
|
+
**Updated on every run:** `deployment`, `orgs`, `repos`, `mode`, `clone_protocol`, `vendors.*.enabled`, `vendors.*.effort`, `quality.tier`, `skills.enabled`, `tunnel.*`, `post_review.auto_fix.*`
|
|
969
1063
|
|
|
970
1064
|
**Never touched by onboard:** per-repo overrides in `~/.crosscheck/workflows/` (owned by `crosscheck alter`), and `~/.crosscheck/workflow.yml` after its first write
|
|
971
1065
|
|
|
@@ -1015,7 +1109,8 @@ vendors:
|
|
|
1015
1109
|
codex:
|
|
1016
1110
|
enabled: true
|
|
1017
1111
|
auth: subscription # subscription | api-key
|
|
1018
|
-
model: gpt-5.6-terra #
|
|
1112
|
+
model: gpt-5.6-terra # pins the review model; unset = tier model (api-key) / CLI default (subscription)
|
|
1113
|
+
effort: medium # low | medium | high | xhigh | max | ultra (ultra: terra/sol only)
|
|
1019
1114
|
# timeout_sec: 1200 # max seconds per CLI call; unset = tier-based (300/600/1200)
|
|
1020
1115
|
|
|
1021
1116
|
claude:
|
|
@@ -1026,7 +1121,8 @@ vendors:
|
|
|
1026
1121
|
|
|
1027
1122
|
# ── Quality ───────────────────────────────────────────────────────────────────
|
|
1028
1123
|
quality:
|
|
1029
|
-
|
|
1124
|
+
mode: smart # smart (default) | fixed — see Review thoroughness
|
|
1125
|
+
tier: balanced # fast | balanced | thorough (fallback under smart)
|
|
1030
1126
|
focus: # narrows review scope (optional)
|
|
1031
1127
|
- security
|
|
1032
1128
|
- types
|
|
@@ -1034,6 +1130,16 @@ quality:
|
|
|
1034
1130
|
custom_prompt: | # appended to every review prompt
|
|
1035
1131
|
Be concise. Flag only issues that would block a merge.
|
|
1036
1132
|
|
|
1133
|
+
# ── Agent skills ──────────────────────────────────────────────────────────────
|
|
1134
|
+
# Enabled means available to every coding-agent operation. The skill description
|
|
1135
|
+
# and agent decide whether to activate it for a particular step.
|
|
1136
|
+
skills:
|
|
1137
|
+
enabled:
|
|
1138
|
+
- code-review-skill # recommended · @awesome-skills, MIT
|
|
1139
|
+
- diagnosing-bugs # recommended · @mattpocock, MIT
|
|
1140
|
+
# - code-review # preloaded, opt-in · @mattpocock, MIT
|
|
1141
|
+
# - codebase-design # preloaded, opt-in · @mattpocock, MIT
|
|
1142
|
+
|
|
1037
1143
|
# ── Budget ────────────────────────────────────────────────────────────────────
|
|
1038
1144
|
budget:
|
|
1039
1145
|
codex_monthly_usd: 20 # null = unlimited; only applies when auth: api-key
|
|
@@ -1144,15 +1250,93 @@ post_review:
|
|
|
1144
1250
|
server:
|
|
1145
1251
|
port: 7891
|
|
1146
1252
|
webhook_path: /webhook
|
|
1147
|
-
|
|
1253
|
+
|
|
1254
|
+
linear: # write review verdicts back to a Linear issue (opt-in)
|
|
1255
|
+
enabled: false
|
|
1256
|
+
auth:
|
|
1257
|
+
mode: api_key # api_key | client_credentials
|
|
1258
|
+
api_key_env: LINEAR_API_KEY
|
|
1259
|
+
client_id_env: LINEAR_CLIENT_ID
|
|
1260
|
+
client_secret_env: LINEAR_CLIENT_SECRET
|
|
1261
|
+
scopes: "read,write" # comma-separated; initiative:* are separate scopes
|
|
1262
|
+
identity:
|
|
1263
|
+
actor: crosscheck
|
|
1264
|
+
signature: "🤖 {actor} · {model}" # {actor} {product} {model} {reviewer} {icon}
|
|
1265
|
+
icon_url: "" # rendered where {icon} appears; app avatar is preferred
|
|
1266
|
+
per_step_actor: true # crosscheck/review vs crosscheck/fix in Linear
|
|
1267
|
+
comment_on: # verdicts mirrored to the issue (default omits APPROVE)
|
|
1268
|
+
- NEEDS_WORK
|
|
1269
|
+
- BLOCK
|
|
1270
|
+
team_keys: [] # e.g. [IN] — required to match bare refs like IN-42
|
|
1271
|
+
```
|
|
1272
|
+
|
|
1273
|
+
### Review thoroughness
|
|
1274
|
+
|
|
1275
|
+
**`quality.mode: smart` is the default.** Crosscheck classifies each PR from its
|
|
1276
|
+
changed-file list and adjusts model and effort to match, rather than applying one
|
|
1277
|
+
tier to everything. Classification runs on the already-cloned working copy, so it
|
|
1278
|
+
costs one `git diff` and no API call. Set `mode: fixed` to opt out.
|
|
1279
|
+
|
|
1280
|
+
| # | PR class | Detected by | Tier | Steps |
|
|
1281
|
+
|---|---|---|---|---|
|
|
1282
|
+
| 1 | Generated / vendored | every file is a lockfile or build output | — | **PR skipped** |
|
|
1283
|
+
| 2 | Security / data-critical | auth, crypto, payment, migration paths; `risk:T3`; hotfix→default | `thorough` | full loop |
|
|
1284
|
+
| 3 | Deletion-only | ≤ 5 additions with ≥ 20 deletions | `fast` | review |
|
|
1285
|
+
| 4 | Docs / spec | ≥ 50% Markdown | `balanced` | review |
|
|
1286
|
+
| 5 | Test-only | every file is a test | `fast` | review, fix |
|
|
1287
|
+
| 6 | Config / infra | ≥ 50% config, no source | `balanced` | full loop |
|
|
1288
|
+
| 7 | Trivial | ≤ 3 files, ≤ 150 lines | `fast` | review, fix |
|
|
1289
|
+
| 8 | Standard | everything else | `balanced` | full loop |
|
|
1290
|
+
|
|
1291
|
+
First match wins, and security sits second so it dominates every cheapening rule
|
|
1292
|
+
below it — a deletion that removes auth code, or a two-file migration, is never
|
|
1293
|
+
routed to `fast`.
|
|
1294
|
+
|
|
1295
|
+
The class's step set narrows the configured pipeline and never widens it, so a
|
|
1296
|
+
repo pinned to review-only with `crosscheck alter` stays review-only. Rounds past
|
|
1297
|
+
the first escalate on measured non-convergence: effort rises where the model
|
|
1298
|
+
supports it, the tier is promoted where it does not.
|
|
1299
|
+
|
|
1300
|
+
Note that classes 3 and 4 narrow to `review` alone, which also drops
|
|
1301
|
+
`conflict-resolve` — review-only never touches code, and auto-conflict-resolve
|
|
1302
|
+
is code modification. That rule normally follows an operator's explicit
|
|
1303
|
+
`crosscheck alter --review-only`; under smart mode the *classifier* can reach it
|
|
1304
|
+
too, so a docs-only or deletion-only PR with a merge conflict is reviewed but not
|
|
1305
|
+
auto-resolved. Set `mode: fixed` if you want auto-conflict-resolve on every PR.
|
|
1306
|
+
|
|
1307
|
+
Every comment cites the policy that produced it:
|
|
1308
|
+
|
|
1309
|
+
```
|
|
1310
|
+
<!-- crosscheck: … verdict=BLOCK strategy=1.1.0 class=risky tier=thorough … -->
|
|
1311
|
+
```
|
|
1312
|
+
|
|
1313
|
+
> **Leave `vendors.*.model` unset under smart mode.** An explicit model outranks
|
|
1314
|
+
> the strategy, so pinning one makes per-PR selection a no-op. When that happens
|
|
1315
|
+
> crosscheck **withholds** the tier from the comment rather than citing one that
|
|
1316
|
+
> did not run. `crosscheck onboard` clears the pin — and prints what it cleared —
|
|
1317
|
+
> when you choose smart.
|
|
1318
|
+
|
|
1319
|
+
Verify the policy is current with `npm run verify:strategy`. Full rationale:
|
|
1320
|
+
[docs/dynamic-thoroughness.md](./docs/dynamic-thoroughness.md).
|
|
1148
1321
|
|
|
1149
1322
|
### Quality tiers
|
|
1150
1323
|
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
|
1155
|
-
|
|
1324
|
+
Under `fixed`, the tier applies to every call. Under `smart`, it is the fallback
|
|
1325
|
+
when a PR's file list cannot be read.
|
|
1326
|
+
|
|
1327
|
+
| Tier | Claude | Codex | Cost per review | Best for |
|
|
1328
|
+
|---|---|---|---|---|
|
|
1329
|
+
| `fast` | Haiku 4.5 | GPT-5.6 Luna | $0.24 · $0.06 | High-volume repos, draft PRs |
|
|
1330
|
+
| `balanced` | Sonnet 5 | GPT-5.6 Terra | $0.72 · $0.58 | Default for most teams |
|
|
1331
|
+
| `thorough` | Opus 5 | GPT-5.6 Sol | $1.20 · $1.44 | Before merging to main |
|
|
1332
|
+
|
|
1333
|
+
Cost is output-token cost at 48k output tokens, the measured median for one
|
|
1334
|
+
review. A review is an agentic session, not a single call — expect 10–16 minutes
|
|
1335
|
+
of wall clock (median 643s, p90 984s across 43 logged runs). Tier changes depth
|
|
1336
|
+
and the subprocess timeout, not seconds-scale latency.
|
|
1337
|
+
|
|
1338
|
+
`claude-fable-5` is banned from review: 2× Opus 5's price for a lower coding
|
|
1339
|
+
benchmark score.
|
|
1156
1340
|
|
|
1157
1341
|
### Issue enrichment
|
|
1158
1342
|
|
|
@@ -1274,7 +1458,9 @@ If none match, origin is `human` and the PR is skipped in cross-vendor mode.
|
|
|
1274
1458
|
codex review --base <base-branch> --title "<pr-title>"
|
|
1275
1459
|
```
|
|
1276
1460
|
|
|
1277
|
-
The `--base` flag diffs current HEAD against the base branch — exactly the PR diff.
|
|
1461
|
+
The `--base` flag diffs current HEAD against the base branch — exactly the PR diff. An explicit `vendors.codex.model` (or matching `model_tiers` entry) is passed as `-c model=...` under either auth mode. When unset: `auth: subscription` passes no model flag (the Codex CLI picks its default), while `auth: api-key` selects the model by quality tier (`fast` → `gpt-5.6-luna`, `balanced` → `gpt-5.6-terra`, `thorough` → `gpt-5.6-sol`).
|
|
1462
|
+
|
|
1463
|
+
Reasoning effort comes from `vendors.codex.effort` and is always passed through as `-c model_reasoning_effort=...` — for the review step and for the auto-fix step (`codex exec`) alike. The values match the codex CLI tiers 1:1 — `low` (Light), `medium`, `high`, `xhigh` (Extra High), `max`, `ultra`. Not every model supports every tier: `ultra` is terra/sol only, and pre-5.6 models stop at `xhigh` — the CLI rejects unsupported combinations. Higher tiers can multiply review wall-clock time; pair them with `timeout_sec`.
|
|
1278
1464
|
|
|
1279
1465
|
### How Claude reviews run
|
|
1280
1466
|
|
|
@@ -1289,7 +1475,16 @@ claude \
|
|
|
1289
1475
|
"<prompt>"
|
|
1290
1476
|
```
|
|
1291
1477
|
|
|
1292
|
-
`--bare` makes execution fast and deterministic. `--allowedTools` limits Claude to read-only git operations on the cloned repo.
|
|
1478
|
+
`--bare` makes execution fast and deterministic. `--allowedTools` limits Claude to read-only git operations on the cloned repo. `vendors.claude.effort` drives `--effort` for every Claude step — review, recheck, auto-fix and conflict-resolve.
|
|
1479
|
+
|
|
1480
|
+
Every comment crosscheck posts closes with the model and effort the step actually ran with, plus any skills the agent activated:
|
|
1481
|
+
|
|
1482
|
+
```
|
|
1483
|
+
---
|
|
1484
|
+
_Reviewed with Claude Code via Crosscheck_ _(Opus 5 · high effort)_
|
|
1485
|
+
|
|
1486
|
+
_Skills: code-review-skill (by @awesome-skills, MIT)_
|
|
1487
|
+
```
|
|
1293
1488
|
|
|
1294
1489
|
### Deduplication
|
|
1295
1490
|
|
|
@@ -1309,6 +1504,9 @@ The fix (file lock for same-machine + GitHub commit status for cross-machine) is
|
|
|
1309
1504
|
- **Temp isolation** — each PR cloned into a fresh temp dir, deleted after review
|
|
1310
1505
|
- **Read-only tools** — Claude restricted to `git diff` and `git log` only
|
|
1311
1506
|
- **Temp credential isolation** — with `clone_protocol: ssh` (default) no tokens touch disk; with `clone_protocol: https` a short-lived token is embedded in the temp clone's remote URL and removed when the temp dir is deleted after review
|
|
1507
|
+
- **Skill package validation** — installs reject unsafe names, attribution injection, symbolic links, packages over 1,000 files or 10 MiB, and collisions; Git sources record their checked-out commit
|
|
1508
|
+
- **Skill integrity** — Crosscheck verifies every installed package against its SHA-256 receipt before exposing it to agents; modified or malformed packages fail closed and appear as unavailable in `crosscheck status`
|
|
1509
|
+
- **Skill execution boundary** — the activation broker exposes instructions and referenced files but never executes bundled scripts itself. Skills are third-party instructions: inspect their source and license before enabling them; the selected coding agent still operates under its normal sandbox and permissions
|
|
1312
1510
|
|
|
1313
1511
|
---
|
|
1314
1512
|
|
|
@@ -1448,6 +1646,20 @@ Each cycle is one `[crosscheck]` fix commit followed by one recheck. The loop st
|
|
|
1448
1646
|
|
|
1449
1647
|
`max_rounds` is respected by both `crosscheck watch` and `crosscheck run`. `watch` re-triggers on each pushed fix commit; `run` loops inline within the same session.
|
|
1450
1648
|
|
|
1649
|
+
### What happens after a PR is approved?
|
|
1650
|
+
|
|
1651
|
+
Crosscheck stops working on that commit. Once the newest verdict is `APPROVE` and it covers the PR's current HEAD, no further step runs — not a recheck, not a re-review. `watch` skips further events on that SHA, `crosscheck run` prints `this commit is already approved — nothing to do until new commits land`, and `kickass` lists the PR under "needs merge (manual)" instead of dispatching it.
|
|
1652
|
+
|
|
1653
|
+
**A push re-opens it.** New commits materially change what was approved, so the approval no longer applies: the next event runs a fresh review (round *n*+1) on the new code, and the full fix/recheck loop resumes from there. An `APPROVE` posted before the annotation carried a `sha=` field can't prove which commit it covers, so it is treated the same way — one review re-establishes it.
|
|
1654
|
+
|
|
1655
|
+
To force another pass on the approved commit itself, name the steps explicitly — that bypasses history detection:
|
|
1656
|
+
|
|
1657
|
+
```bash
|
|
1658
|
+
crosscheck run https://github.com/owner/repo/pull/123 --steps review
|
|
1659
|
+
```
|
|
1660
|
+
|
|
1661
|
+
`crosscheck detect-step <pr-url>` shows the stop reason for any PR.
|
|
1662
|
+
|
|
1451
1663
|
### Can I disable the auto-fix step?
|
|
1452
1664
|
|
|
1453
1665
|
Yes. Set `post_review.auto_fix.enabled: false` in your config, or set `trigger: never`. You can also raise `min_severity` to `error` to limit fixes to blocking issues only.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@humanbased/crosscheck",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0-beta.82",
|
|
4
4
|
"description": "AI code review pipeline that turns agent-written PRs into merge-ready patches",
|
|
5
5
|
"bin": {
|
|
6
6
|
"crosscheck": "dist/cli.js",
|
|
@@ -23,12 +23,13 @@
|
|
|
23
23
|
"node": ">=18"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
|
-
"build": "tsc && rm -rf dist/harness && cp -r src/harness dist/harness && cp src/config/review-model-tiers.json dist/config/review-model-tiers.json && chmod +x dist/cli.js dist/ck.js",
|
|
26
|
+
"build": "tsc && rm -rf dist/harness && cp -r src/harness dist/harness && cp src/config/review-model-tiers.json dist/config/review-model-tiers.json && cp src/config/review-strategy.json dist/config/review-strategy.json && chmod +x dist/cli.js dist/ck.js",
|
|
27
27
|
"dev": "tsx src/cli.ts",
|
|
28
28
|
"typecheck": "tsc --noEmit",
|
|
29
29
|
"test": "vitest run",
|
|
30
30
|
"lint": "eslint src --ext .ts",
|
|
31
|
-
"prepublishOnly": "npm run typecheck && npm run build"
|
|
31
|
+
"prepublishOnly": "npm run typecheck && npm run build",
|
|
32
|
+
"verify:strategy": "node scripts/verify-review-strategy.mjs"
|
|
32
33
|
},
|
|
33
34
|
"dependencies": {
|
|
34
35
|
"chalk": "^5.3.0",
|