@jphutchins/code-review 0.1.0-alpha.51 → 0.1.0-alpha.53
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 +6 -4
- package/dist/index.js +419 -135
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/schema/VERSIONING.md +28 -1
- package/schema/prices.example.json +29 -5
- package/schema/prices.schema.json +73 -6
- package/templates/comment.eta +31 -7
package/README.md
CHANGED
|
@@ -37,7 +37,7 @@ npx @jphutchins/code-review <subcommand>
|
|
|
37
37
|
|
|
38
38
|
| Subcommand | What it does |
|
|
39
39
|
| --- | --- |
|
|
40
|
-
| `post` | Post a complete review
|
|
40
|
+
| `post` | Post a complete review from findings + envelope + diff — the one-call path. The findings are listed in the sticky summary; `--inline` renders the in-diff ones as comments on the diff instead. Also renders the review into `$GITHUB_STEP_SUMMARY`: the sticky is overwritten each round, the run summary keeps each round as it stood |
|
|
41
41
|
| `gather` | Resolve the PR from the CI head SHA and gather the review inputs (diff with git-diff fallback, PR context, prior bot review, the prior review's answered-findings registry, failing-job logs) into the workspace for the agent |
|
|
42
42
|
| `parse-command` | Resolve a PR's head from its number and parse a ChatOps trigger comment (`/code-review [24m] [$1.00] <instructions>`) into review overrides — the on-demand comment trigger |
|
|
43
43
|
| `react` | Add/remove a GitHub comment reaction — the ChatOps acknowledgement (👀 on receipt, 🚀 on completion) |
|
|
@@ -96,8 +96,10 @@ links to:
|
|
|
96
96
|
|
|
97
97
|
- **`code-review-findings`** — the findings JSON + result envelope the comment job renders. The
|
|
98
98
|
sticky comment embeds this same JSON directly, base64-encoded, in an
|
|
99
|
-
`<!-- code-review:findings-json;base64 <base64> -->` HTML comment
|
|
100
|
-
|
|
99
|
+
`<!-- code-review:findings-json;base64 <base64> -->` HTML comment. The comment usually renders that
|
|
100
|
+
same review as prose, which is the cheaper read; decode the marker where the prose is not the
|
|
101
|
+
review, where the prose carries only part of it, or where the prose omits a field you need. The directive that rides ahead of the
|
|
102
|
+
marker states that rule.
|
|
101
103
|
Embedding in the comment (rather than only linking the artifact) keeps the pointer from expiring
|
|
102
104
|
with artifact retention; when the encoded findings are too large to embed, the sticky falls back to
|
|
103
105
|
a `<!-- code-review:findings-json <url> -->` link marker instead. The shared serializer is
|
|
@@ -152,7 +154,7 @@ links to:
|
|
|
152
154
|
mechanism frequencies carried in `convergence.rounds` (each entry's `codes` map), from which the
|
|
153
155
|
re-review seed re-derives the advisory `scope_metastasis` entry it hands the next-round agent. Each
|
|
154
156
|
inline review comment embeds only its own finding (a `schema_version` + one-finding fragment), and the
|
|
155
|
-
review-object body
|
|
157
|
+
review-object body links the sticky and the workflow run — so the **sticky is the sole documented decode surface** for
|
|
156
158
|
the whole-document marker; a decoding agent reads it there. The review body is written only after the
|
|
157
159
|
sticky exists (a failed sticky write aborts the run first), so it never carries the blob itself.
|
|
158
160
|
- **`code-review-transcript`** — the full Claude Code session transcripts for the triage and review
|