@weareikko/code-review 0.10.1 → 0.10.2
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/dist/{cli-DIXQI0Bd.js → cli-D_wubGGT.js} +30 -25
- package/dist/cli-D_wubGGT.js.map +1 -0
- package/dist/cli.js +1 -1
- package/dist/git.d.ts +11 -6
- package/dist/git.d.ts.map +1 -1
- package/dist/gitlab-review.d.ts +1 -1
- package/dist/review.js +1 -1
- package/package.json +1 -1
- package/dist/cli-DIXQI0Bd.js.map +0 -1
package/dist/cli.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { F as createDiagnosticRunId, I as diagnosticChannels, M as DIAGNOSTIC_CHANNEL_PREFIX, P as createDiagnosticContext, R as traceDiagnostic, a as formatSkillsFooter, c as resolveLabelChange, i as formatPerModelUsage, j as DIAGNOSTIC_CHANNEL_NAMES, l as run, n as formatLabelChange, o as formatUsageLine, r as formatMcpFooter, s as main, t as countPostedBySeverity, u as withHttpStamping, v as isOtelEnabled, y as startOtelBridge, z as traceDiagnosticPhase } from "./cli-
|
|
1
|
+
import { F as createDiagnosticRunId, I as diagnosticChannels, M as DIAGNOSTIC_CHANNEL_PREFIX, P as createDiagnosticContext, R as traceDiagnostic, a as formatSkillsFooter, c as resolveLabelChange, i as formatPerModelUsage, j as DIAGNOSTIC_CHANNEL_NAMES, l as run, n as formatLabelChange, o as formatUsageLine, r as formatMcpFooter, s as main, t as countPostedBySeverity, u as withHttpStamping, v as isOtelEnabled, y as startOtelBridge, z as traceDiagnosticPhase } from "./cli-D_wubGGT.js";
|
|
2
2
|
export { DIAGNOSTIC_CHANNEL_NAMES, DIAGNOSTIC_CHANNEL_PREFIX, countPostedBySeverity, createDiagnosticContext, createDiagnosticRunId, diagnosticChannels, formatLabelChange, formatMcpFooter, formatPerModelUsage, formatSkillsFooter, formatUsageLine, isOtelEnabled, main, resolveLabelChange, run, startOtelBridge, traceDiagnostic, traceDiagnosticPhase, withHttpStamping };
|
package/dist/git.d.ts
CHANGED
|
@@ -6,7 +6,12 @@ export interface PrepareGitHistoryOptions extends GitOptions {
|
|
|
6
6
|
codeQualityArtifacts?: string[];
|
|
7
7
|
}
|
|
8
8
|
export declare function git(args: string[], options?: GitOptions): Promise<string>;
|
|
9
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Diff the target branch with the MR head commit, not `HEAD`: CI checks out a
|
|
11
|
+
* merge commit (GitHub `refs/pull/N/merge`, GitLab merged results) whose base
|
|
12
|
+
* can be stale, and then `HEAD` carries commits the MR does not change.
|
|
13
|
+
*/
|
|
14
|
+
export declare function getMergeDiffArguments(targetBranch: string, headSha: string, options?: {
|
|
10
15
|
remote?: string;
|
|
11
16
|
context?: number;
|
|
12
17
|
}): string[];
|
|
@@ -17,20 +22,20 @@ export declare function getMergeDiffArguments(targetBranch: string, options?: {
|
|
|
17
22
|
* leaving such comments with invalid one-sided positions that 500 on
|
|
18
23
|
* `bulk_publish`. Diffing literally also gives the reviewer readable paths.
|
|
19
24
|
*/
|
|
20
|
-
export declare function getMergeDiffCommand(targetBranch: string, options?: {
|
|
25
|
+
export declare function getMergeDiffCommand(targetBranch: string, headSha: string, options?: {
|
|
21
26
|
remote?: string;
|
|
22
27
|
context?: number;
|
|
23
28
|
}): string[];
|
|
24
29
|
export declare function removeGeneratedCodeQualityArtifacts(paths?: string[], options?: GitOptions): Promise<string[]>;
|
|
25
|
-
export declare function prepareGitHistory(sourceBranch: string, targetBranch: string, options?: PrepareGitHistoryOptions): Promise<void>;
|
|
26
|
-
export declare function getMergeDiff(targetBranch: string, options?: GitOptions & {
|
|
30
|
+
export declare function prepareGitHistory(sourceBranch: string, targetBranch: string, headSha: string, options?: PrepareGitHistoryOptions): Promise<void>;
|
|
31
|
+
export declare function getMergeDiff(targetBranch: string, headSha: string, options?: GitOptions & {
|
|
27
32
|
remote?: string;
|
|
28
33
|
context?: number;
|
|
29
34
|
}): Promise<string>;
|
|
30
|
-
export declare function getMergeCommitLogArguments(targetBranch: string, options?: {
|
|
35
|
+
export declare function getMergeCommitLogArguments(targetBranch: string, headSha: string, options?: {
|
|
31
36
|
remote?: string;
|
|
32
37
|
}): string[];
|
|
33
|
-
export declare function getMergeCommitLog(targetBranch: string, options?: GitOptions & {
|
|
38
|
+
export declare function getMergeCommitLog(targetBranch: string, headSha: string, options?: GitOptions & {
|
|
34
39
|
remote?: string;
|
|
35
40
|
}): Promise<string>;
|
|
36
41
|
export interface DiffSummary {
|
package/dist/git.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git.d.ts","sourceRoot":"","sources":["../src/git.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,UAAU;IACzB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,wBAAyB,SAAQ,UAAU;IAC1D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;CACjC;AAgBD,wBAAsB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,OAAO,GAAE,UAAe,GAAG,OAAO,CAAC,MAAM,CAAC,CAanF;AAMD,wBAAgB,qBAAqB,CACnC,YAAY,EAAE,MAAM,EACpB,OAAO,GAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAO,GAClD,MAAM,EAAE,CAIV;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,YAAY,EAAE,MAAM,EACpB,OAAO,GAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAO,GAClD,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"git.d.ts","sourceRoot":"","sources":["../src/git.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,UAAU;IACzB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,wBAAy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,GAChC,MAAM,EAAE,CAQV;AAED,wBAAsB,iBAAiB,CACrC,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,UAAU,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAO,GAC7C,OAAO,CAAC,MAAM,CAAC,CAEjB;AAED,MAAM,WAAW,WAAW;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,CAkBvD"}
|
package/dist/gitlab-review.d.ts
CHANGED
|
@@ -114,7 +114,7 @@ export interface RunReviewOptions {
|
|
|
114
114
|
cwd?: string;
|
|
115
115
|
diff: string;
|
|
116
116
|
/**
|
|
117
|
-
* Commit messages for all non-merge commits in the MR (merge-base…
|
|
117
|
+
* Commit messages for all non-merge commits in the MR (merge-base…MR head),
|
|
118
118
|
* in chronological order. When provided, a `<commits>` section is prepended
|
|
119
119
|
* to the user prompt so the reviewer understands the intent behind each change.
|
|
120
120
|
* Produced by `getMergeCommitLog` in `src/git.ts`.
|
package/dist/review.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as buildSummaryHistoryEntries, A as connectMcpServers, B as traceMcpDiagnostic, C as findSkillForPath, D as readToolPath, E as formatSkillUsageState, F as createDiagnosticRunId, G as SUMMARY_HISTORY_ENTRY_START, H as toGitLabReviewSeverity, I as diagnosticChannels, J as SUMMARY_MARKER, K as SUMMARY_HISTORY_LIMIT, L as mcpDiagnosticChannels, M as DIAGNOSTIC_CHANNEL_PREFIX, N as MCP_DIAGNOSTIC_CHANNEL_NAMES, O as parseReviewMarkdown, P as createDiagnosticContext, Q as buildSummaryBody, R as traceDiagnostic, S as createSkillReadCounter, T as formatReviewUsageSummary, U as SUMMARY_HISTORY_END, V as normalizeSeverity, W as SUMMARY_HISTORY_ENTRY_END, X as buildReviewedCommitFooter, Y as buildArchivedSummaryEntry, Z as buildSizeNoticeBlock, _ as buildPayload, _t as resolveNpmSkillDir, at as stripSummaryHistory, b as filterDiff, ct as appendFingerprintMarkers, d as blobUrl, dt as fingerprints, et as extractReviewedCommitSha, f as formatSkillLink, ft as normalizeBody, g as buildGeneratedComments, gt as parseSkillSpec, h as skillSourceUrl, ht as loadNamedSkill, it as findExistingSummaryNoteId, j as DIAGNOSTIC_CHANNEL_NAMES, k as parseReviewMarkdownWithWarnings, l as run, lt as extractDiffHunkContext, m as skillDisplayName, mt as gitSkillCacheKey, nt as findExistingReviewedCommitSha, ot as stripSummaryMarker, p as gitRepoWebUrl, pt as sha256, q as SUMMARY_HISTORY_START, rt as findExistingSummaryNote, st as upsertSummaryNote, tt as extractSummaryHistoryEntries, ut as extractExistingFingerprints, v as isOtelEnabled, vt as resolveSkillCacheDir, w as formatMcpUsageState, x as runReview, y as startOtelBridge, z as traceDiagnosticPhase } from "./cli-
|
|
1
|
+
import { $ as buildSummaryHistoryEntries, A as connectMcpServers, B as traceMcpDiagnostic, C as findSkillForPath, D as readToolPath, E as formatSkillUsageState, F as createDiagnosticRunId, G as SUMMARY_HISTORY_ENTRY_START, H as toGitLabReviewSeverity, I as diagnosticChannels, J as SUMMARY_MARKER, K as SUMMARY_HISTORY_LIMIT, L as mcpDiagnosticChannels, M as DIAGNOSTIC_CHANNEL_PREFIX, N as MCP_DIAGNOSTIC_CHANNEL_NAMES, O as parseReviewMarkdown, P as createDiagnosticContext, Q as buildSummaryBody, R as traceDiagnostic, S as createSkillReadCounter, T as formatReviewUsageSummary, U as SUMMARY_HISTORY_END, V as normalizeSeverity, W as SUMMARY_HISTORY_ENTRY_END, X as buildReviewedCommitFooter, Y as buildArchivedSummaryEntry, Z as buildSizeNoticeBlock, _ as buildPayload, _t as resolveNpmSkillDir, at as stripSummaryHistory, b as filterDiff, ct as appendFingerprintMarkers, d as blobUrl, dt as fingerprints, et as extractReviewedCommitSha, f as formatSkillLink, ft as normalizeBody, g as buildGeneratedComments, gt as parseSkillSpec, h as skillSourceUrl, ht as loadNamedSkill, it as findExistingSummaryNoteId, j as DIAGNOSTIC_CHANNEL_NAMES, k as parseReviewMarkdownWithWarnings, l as run, lt as extractDiffHunkContext, m as skillDisplayName, mt as gitSkillCacheKey, nt as findExistingReviewedCommitSha, ot as stripSummaryMarker, p as gitRepoWebUrl, pt as sha256, q as SUMMARY_HISTORY_START, rt as findExistingSummaryNote, st as upsertSummaryNote, tt as extractSummaryHistoryEntries, ut as extractExistingFingerprints, v as isOtelEnabled, vt as resolveSkillCacheDir, w as formatMcpUsageState, x as runReview, y as startOtelBridge, z as traceDiagnosticPhase } from "./cli-D_wubGGT.js";
|
|
2
2
|
export { DIAGNOSTIC_CHANNEL_NAMES, DIAGNOSTIC_CHANNEL_PREFIX, MCP_DIAGNOSTIC_CHANNEL_NAMES, SUMMARY_HISTORY_END, SUMMARY_HISTORY_ENTRY_END, SUMMARY_HISTORY_ENTRY_START, SUMMARY_HISTORY_LIMIT, SUMMARY_HISTORY_START, SUMMARY_MARKER, appendFingerprintMarkers, blobUrl, buildArchivedSummaryEntry, buildGeneratedComments, buildPayload, buildReviewedCommitFooter, buildSizeNoticeBlock, buildSummaryBody, buildSummaryHistoryEntries, connectMcpServers, createDiagnosticContext, createDiagnosticRunId, createSkillReadCounter, diagnosticChannels, extractDiffHunkContext, extractExistingFingerprints, extractReviewedCommitSha, extractSummaryHistoryEntries, filterDiff, findExistingReviewedCommitSha, findExistingSummaryNote, findExistingSummaryNoteId, findSkillForPath, fingerprints, formatMcpUsageState, formatReviewUsageSummary, formatSkillLink, formatSkillUsageState, gitRepoWebUrl, gitSkillCacheKey, isOtelEnabled, loadNamedSkill, mcpDiagnosticChannels, normalizeBody, normalizeSeverity, parseReviewMarkdown, parseReviewMarkdownWithWarnings, parseSkillSpec, readToolPath, resolveNpmSkillDir, resolveSkillCacheDir, run, runReview, sha256, skillDisplayName, skillSourceUrl, startOtelBridge, stripSummaryHistory, stripSummaryMarker, toGitLabReviewSeverity, traceDiagnostic, traceDiagnosticPhase, traceMcpDiagnostic, upsertSummaryNote };
|
package/package.json
CHANGED