Commit graph

21 commits

Author SHA1 Message Date
kite
d44fd31989 feat(rules): unify rule resolution behind Resolver interface with four-layer priority
Consolidate review rules into a composedResolver that supports four layers
  (--rule flag > project .open-code-review/rule.json > global ~/rule.json >
  embedded system default), each with first-match-wins fall-through semantics.
2026-05-25 17:45:53 +08:00
kite
58defe6c03 docs(readme): adds new installation instructions via GitHub releases 2026-05-23 09:32:00 +08:00
kite
994db24ca5 docs(README): Add language switcher link to README 2026-05-23 09:08:08 +08:00
kite
29564a891b refactor(diff): Simplify hunk resolution logic with helper functions
This change refactors the `resolveFromHunk` function by introducing several helper functions (`extractSideLines`, `matchConsecutive`) to improve readability and maintainability. The new implementation attempts to match against both new and old sides of the diff hunk, making comment resolution more robust.
2026-05-23 00:36:51 +08:00
kite
35424d18bf feat(config): add path exclusion patterns for file filtering
This change introduces a new configuration mechanism for excluding specific file paths during code reviews. It adds support for glob patterns including recursive directory matching (**), single-segment wildcards (*), and brace expansion ({a,b}), allowing more flexible control over which files should be reviewed or skipped based on their location within the repository.
2026-05-23 00:11:35 +08:00
kite
8ceceaf3e7 build: Remove version from binary names and update related scripts 2026-05-22 23:11:37 +08:00
kite
2ca532521b fix(ocrConfig): Update URL pattern for OCR config 2026-05-22 22:40:48 +08:00
kite
63d6108db0 fix(agent): Update file counting logic for accurate review metrics
This change refines how file counts are tracked during the agent's review process. It now correctly excludes deleted files when calculating the number of files being reviewed, ensuring telemetry and error reporting reflect actual processing rather than total diffs. This improves accuracy in monitoring and debugging scenarios.
2026-05-22 22:28:52 +08:00
kite
fe058451cc chore(scripts): Update version check 2026-05-22 22:06:07 +08:00
kite
d345ef9707 feat: add llm.extra_body config support to disable thinking mode 2026-05-22 21:28:32 +08:00
kite
44120e28b6 fix: fix some bug 2026-05-22 21:27:39 +08:00
kite
f054bb799e fix: propagate LLM API errors instead of showing misleading "Looks good to me"
When all subtask LLM calls fail (e.g. invalid API key), dispatchSubtasks
now returns an error instead of empty comments with nil error. Partial
failures are recorded as subtask_error warnings so output functions can
distinguish "no issues found" from "review failed".
2026-05-22 15:28:26 +08:00
kite
6c213909d4 docs(README): Add Open Benchmark image link 2026-05-22 10:16:18 +08:00
kite
3940e1af3f fix(ci): remove registry-url to allow npm OIDC authentication
setup-node's registry-url generates .npmrc with a token placeholder
that overrides npm's OIDC flow, causing 404 on publish.
2026-05-21 21:50:33 +08:00
kite
80d5121d88 ci: inject version from git tag before npm publish
Use git tag as the single source of truth for version number.
Eliminates the need to keep package.json version in sync manually.
2026-05-21 21:20:48 +08:00
kite
bb3426d0c5 fix(docs): Update npm package name in installation instructions
The commit updates the npm package name from `open-code-review` to `@alibaba-group/open-code-review` in both QuickStartSection and DocsPage components to reflect the correct package identifier.
2026-05-21 19:38:40 +08:00
kite
365c9ee9a4 ci: switch npm publish to OIDC trusted publishing
Remove NPM_TOKEN secret dependency and use GitHub Actions OIDC
id-token for npm authentication with provenance attestation.
2026-05-21 19:28:53 +08:00
kite
ce9511eed6 feat: add environment-driven publish scripts for single-branch workflow
Add generic publish pipeline that supports both internal and external
publishing via environment variables, without leaking any internal URLs
or tool references into the public repository.
2026-05-21 17:33:46 +08:00
kite
9a4c966b6d chore(release): rename npm package to @alibaba-group/open-code-review 2026-05-21 14:53:39 +08:00
kite
4051c12ad1 chore(release): bump version to v1.0.0 and fix asset naming consistency
- Update package.json version to 1.0.0 for first public release
- Fix urlPattern to include version in binary filename, matching Makefile output
- Fix Makefile sha256sum target to output sha256sum.txt without version suffix
2026-05-21 10:57:13 +08:00
kite
7c8b8562aa feat: init 2026-05-20 22:03:52 +08:00