@weareikko/code-review 0.8.0 → 0.8.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 +3 -3
- package/dist/{cli-w8sz3CYl.js → cli-7RGxyNy6.js} +8 -8
- package/dist/cli-7RGxyNy6.js.map +1 -0
- package/dist/cli.js +1 -1
- package/dist/review.js +1 -1
- package/package.json +1 -1
- package/dist/cli-w8sz3CYl.js.map +0 -1
package/README.md
CHANGED
|
@@ -74,7 +74,7 @@ review:
|
|
|
74
74
|
artifacts:
|
|
75
75
|
when: always
|
|
76
76
|
paths:
|
|
77
|
-
-
|
|
77
|
+
- code-review.md
|
|
78
78
|
- review-comments.json
|
|
79
79
|
- review-usage.json
|
|
80
80
|
```
|
|
@@ -155,7 +155,7 @@ Equivalently, set `CODE_REVIEW_MODEL` and the provider's key (e.g. `ANTHROPIC_AP
|
|
|
155
155
|
|
|
156
156
|
## Artifacts
|
|
157
157
|
|
|
158
|
-
- `
|
|
158
|
+
- `code-review.md`: raw review text returned by the agent
|
|
159
159
|
- `review-comments.json`: generated comment objects including:
|
|
160
160
|
- parsed comment payload
|
|
161
161
|
- computed fingerprints
|
|
@@ -187,7 +187,7 @@ Use these files for CI debugging and auditing.
|
|
|
187
187
|
- If using `CI_JOB_TOKEN`, ensure your GitLab project settings allow required API access.
|
|
188
188
|
- **No comments posted**
|
|
189
189
|
- Check `review-comments.json` for `duplicate: true` or empty parsed comments.
|
|
190
|
-
- Run with `--dry-run` and inspect `
|
|
190
|
+
- Run with `--dry-run` and inspect `code-review.md` formatting (`== Inline Comments ==`).
|
|
191
191
|
|
|
192
192
|
## Development / release
|
|
193
193
|
|
|
@@ -470,7 +470,7 @@ function buildSummaryBody(summary, costFooter, options = {}) {
|
|
|
470
470
|
return `${withFooter}\n\n${buildSummaryHistoryBlock(historyEntries)}`;
|
|
471
471
|
}
|
|
472
472
|
function buildReviewedCommitFooter(commitSha) {
|
|
473
|
-
return `Reviewed by ${PRODUCT_LINK} v0.8.
|
|
473
|
+
return `Reviewed by ${PRODUCT_LINK} v0.8.1 for commit ${commitSha}.`;
|
|
474
474
|
}
|
|
475
475
|
function extractReviewedCommitSha(body) {
|
|
476
476
|
return REVIEWED_COMMIT_FOOTER_PATTERN.exec(body)?.[1] ?? null;
|
|
@@ -1125,7 +1125,7 @@ function resolveConfig(argv = process.argv.slice(2), env = process.env) {
|
|
|
1125
1125
|
decomposeHintLines,
|
|
1126
1126
|
diffContext,
|
|
1127
1127
|
retrieveSkipped: toBoolean(args.retrieveSkipped) || toBoolean(env.CODE_REVIEW_RETRIEVE_SKIPPED),
|
|
1128
|
-
reviewFile: String(args.reviewFile ?? "
|
|
1128
|
+
reviewFile: String(args.reviewFile ?? "code-review.md"),
|
|
1129
1129
|
output: String(args.output ?? "review-comments.json"),
|
|
1130
1130
|
dryRun: toBoolean(args.dryRun),
|
|
1131
1131
|
noPost: toBoolean(args.noPost),
|
|
@@ -4836,7 +4836,7 @@ async function loadDefaultRuntime() {
|
|
|
4836
4836
|
const [sdkNode, resources, semconv] = modules;
|
|
4837
4837
|
const serviceResource = resources.resourceFromAttributes({
|
|
4838
4838
|
[semconv.ATTR_SERVICE_NAME ?? "service.name"]: SERVICE_NAME,
|
|
4839
|
-
[semconv.ATTR_SERVICE_VERSION ?? "service.version"]: "0.8.
|
|
4839
|
+
[semconv.ATTR_SERVICE_VERSION ?? "service.version"]: "0.8.1"
|
|
4840
4840
|
});
|
|
4841
4841
|
process.env.OTEL_METRICS_EXPORTER = process.env.OTEL_METRICS_EXPORTER ?? "otlp";
|
|
4842
4842
|
process.env.OTEL_LOGS_EXPORTER = process.env.OTEL_LOGS_EXPORTER ?? "otlp";
|
|
@@ -5268,7 +5268,7 @@ function boldCommentTitle(body) {
|
|
|
5268
5268
|
*/
|
|
5269
5269
|
function buildCommentBody(body, commitSha, confidence) {
|
|
5270
5270
|
const confidenceLine = `_Confidence: ${confidence}._`;
|
|
5271
|
-
const footer = `<sub>Reviewed by ${PRODUCT_LINK} v0.8.
|
|
5271
|
+
const footer = `<sub>Reviewed by ${PRODUCT_LINK} v0.8.1 for commit ${commitSha}.</sub>`;
|
|
5272
5272
|
return `${boldCommentTitle(body.trim())}\n\n${confidenceLine}\n\n---\n\n${footer}`;
|
|
5273
5273
|
}
|
|
5274
5274
|
function buildPayload(comment, body, refs, resolved) {
|
|
@@ -5999,7 +5999,7 @@ Options:
|
|
|
5999
5999
|
(env: CODE_REVIEW_VERIFY_MODEL)
|
|
6000
6000
|
--posting-mode <mode> direct (sequential discussions) or draft (atomic bulk publish)
|
|
6001
6001
|
(default: direct)
|
|
6002
|
-
--review-file <path> Raw code-review output file (default:
|
|
6002
|
+
--review-file <path> Raw code-review output file (default: code-review.md)
|
|
6003
6003
|
--output <path> Generated payload artifact (default: review-comments.json)
|
|
6004
6004
|
--cwd <path> Working directory (default: process.cwd())
|
|
6005
6005
|
--dry-run Generate artifacts and skip posting
|
|
@@ -6346,10 +6346,10 @@ async function main(argv = process.argv.slice(2)) {
|
|
|
6346
6346
|
return;
|
|
6347
6347
|
}
|
|
6348
6348
|
if (argv.includes("--version") || argv.includes("-v")) {
|
|
6349
|
-
console.log("0.8.
|
|
6349
|
+
console.log("0.8.1");
|
|
6350
6350
|
return;
|
|
6351
6351
|
}
|
|
6352
|
-
process.stderr.write(`[code-review] @weareikko/code-review v0.8.
|
|
6352
|
+
process.stderr.write(`[code-review] @weareikko/code-review v0.8.1\n`);
|
|
6353
6353
|
assertNodeVersion();
|
|
6354
6354
|
applyCodeReviewEnvPrefix();
|
|
6355
6355
|
applyDefaultCacheRetention();
|
|
@@ -6372,4 +6372,4 @@ if (isDirectRun()) main().catch((error) => {
|
|
|
6372
6372
|
//#endregion
|
|
6373
6373
|
export { normalizeBody as $, SUMMARY_HISTORY_END as A, buildSummaryHistoryEntries as B, createDiagnosticContext as C, traceDiagnosticPhase as D, traceDiagnostic as E, SUMMARY_MARKER as F, findExistingSummaryNoteId as G, extractSummaryHistoryEntries as H, buildArchivedSummaryEntry as I, upsertSummaryNote as J, stripSummaryHistory as K, buildReviewedCommitFooter as L, SUMMARY_HISTORY_ENTRY_START as M, SUMMARY_HISTORY_LIMIT as N, normalizeSeverity as O, SUMMARY_HISTORY_START as P, fingerprints as Q, buildSizeNoticeBlock as R, DIAGNOSTIC_CHANNEL_PREFIX as S, diagnosticChannels as T, findExistingReviewedCommitSha as U, extractReviewedCommitSha as V, findExistingSummaryNote as W, extractDiffHunkContext as X, appendFingerprintMarkers as Y, extractExistingFingerprints as Z, resolveNpmSkillDir as _, main as a, parseReviewMarkdownWithWarnings as b, buildGeneratedComments as c, startOtelBridge as d, sha256 as et, filterDiff as f, parseSkillSpec as g, loadNamedSkill as h, formatUsageLine as i, SUMMARY_HISTORY_ENTRY_END as j, toGitLabReviewSeverity as k, buildPayload as l, gitSkillCacheKey as m, formatPerModelUsage as n, run as o, runReview as p, stripSummaryMarker as q, formatSkillsFooter as r, withHttpStamping as s, countPostedBySeverity as t, isOtelEnabled as u, resolveSkillCacheDir as v, createDiagnosticRunId as w, DIAGNOSTIC_CHANNEL_NAMES as x, parseReviewMarkdown as y, buildSummaryBody as z };
|
|
6374
6374
|
|
|
6375
|
-
//# sourceMappingURL=cli-
|
|
6375
|
+
//# sourceMappingURL=cli-7RGxyNy6.js.map
|