@gaunt-sloth/review 2.0.0-alpha.36 → 2.0.0-alpha.37

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 CHANGED
@@ -67,9 +67,13 @@ await review('embedded-review', preamble, diff, config);
67
67
  process.exit(process.exitCode ?? 0);
68
68
  ```
69
69
 
70
- The review text is written to stdout. With rating enabled, `review()` sets `process.exitCode = 1`
71
- when the rating comes back below `passThreshold` (or when the model fails to produce a rating),
72
- so the script exits non-zero exactly when `gth review` would that is the whole embed contract.
70
+ The review text is written to stdout, opening with a fixed `## Gaunt Sloth: Code Review` heading and
71
+ one line naming the review mode and the model that served the run. That attribution is
72
+ unconditional an embedder gets it, so anything posting this output identifies its reviewer without
73
+ adding a header of its own. With rating enabled, `review()` sets `process.exitCode = 1` when the
74
+ rating comes back below `passThreshold` (or when the model fails to produce a rating), so the script
75
+ exits non-zero exactly when `gth review` would. Those two — the attributed text on stdout and the
76
+ exit code — are the whole embed contract.
73
77
  Configuration (provider, prompts, rating thresholds) is the standard Gaunt Sloth config, see
74
78
  [the configuration guide](https://github.com/pukeko-robotics/gaunt-sloth/blob/main/docs/configuration/index.md).
75
79
 
@@ -0,0 +1,30 @@
1
+ /**
2
+ * The heading, verbatim. Markdown `##` because the primary surfaces — a PR comment and the
3
+ * `writeOutputToFile` report — are markdown; the terminal shows it literally, exactly as it already
4
+ * shows every markdown heading a model writes.
5
+ */
6
+ export declare const REVIEW_HEADING = "## Gaunt Sloth: Code Review";
7
+ /**
8
+ * The review mode, as the attribution line names it. `review` / `pr` are one-shot: the diff goes in,
9
+ * the verdict comes out, and nothing carries over between runs — which is what makes a verdict
10
+ * impossible to argue down across a conversation, and why the mode is worth naming.
11
+ */
12
+ export declare const REVIEW_MODE_LABEL = "stateless review";
13
+ /**
14
+ * Build the heading block: the heading, a blank line, the attribution line, and a trailing newline
15
+ * so the review body does not start flush against it.
16
+ *
17
+ * The model half is the SHARED `model (provider)` spelling ({@link modelProviderLabel}), the same
18
+ * one the launch banner renders, rather than a second spelling of the same fact.
19
+ *
20
+ * Both halves of the model are allowed to be missing, and neither prints a placeholder:
21
+ *
22
+ * - **No provider** — a `.gsloth.config.js` module config hands the loader an already-built
23
+ * `BaseChatModel` and legitimately has no provider string. The bare model prints; there is no
24
+ * `(unknown)` and no empty `()`.
25
+ * - **No model** — the label is dropped entirely and the line is just the mode. A provider name on
26
+ * its own would sit exactly where a model name sits and read as one, and a misidentified model in
27
+ * a review someone later quotes is worse than an absent one. That is the same drop-rather-than-
28
+ * mislead rule the banner applies to a version that does not fit.
29
+ */
30
+ export declare function reviewHeadingBlock(model?: string, provider?: string): string;
@@ -0,0 +1,72 @@
1
+ /**
2
+ * @module reviewHeading
3
+ * REL-12 — the two lines every `gth review` / `gth pr` run opens with, so a reader of the output
4
+ * knows whose review it is.
5
+ *
6
+ * User-facing CLI feedback, so it is governed by `maintenance/ux-guidelines.md` § Review
7
+ * attribution, and it serves three of the Design Language principles: **DL-4** (transparency — a
8
+ * reader of the output knows what produced it), **DL-6** (cross-surface consistency — the model half
9
+ * reuses the launch banner's one `model (provider)` spelling rather than a second one), and **DL-7**
10
+ * (graceful degradation — drop the label rather than mislead, exactly as the banner drops a version
11
+ * that will not fit).
12
+ *
13
+ * ## Why the product emits this and not the workflow
14
+ *
15
+ * The review is usually read somewhere the command is not visible: a PR comment posted by a bot
16
+ * account, a `review.md` attached to a ticket, a CI log. Stripped of the invocation, an unlabelled
17
+ * AI review on a pull request is simply assumed to be whichever AI reviewer the reader already
18
+ * knows. Putting the attribution in the CLI's own output means any workflow that runs `gth` and
19
+ * posts what it produced carries it, with no wiring of its own.
20
+ *
21
+ * ## Why the heading is a constant and the mode is not in it
22
+ *
23
+ * {@link REVIEW_HEADING} is the same string on every run, because its one job is to be recognisable
24
+ * to someone who has never heard of this tool. The MODE lives on the attribution line below it
25
+ * instead: a heading that named the mode would have to change when a second review mode landed,
26
+ * turning the constant into a branch, and the reader gains nothing from a distinction they cannot
27
+ * make. The attribution line is dynamic anyway — it renders the live model.
28
+ *
29
+ * ## Why it is deliberately two lines and no more
30
+ *
31
+ * A review is read for its findings. Everything above the first finding pushes that finding down,
32
+ * so the block is a heading plus one line: no rule, no box, no timestamp, no version, no restated
33
+ * repo/branch/PR. The cost of a bigger banner is paid by every reader of every review.
34
+ */
35
+ import { modelProviderLabel } from '@gaunt-sloth/core/core/launchBanner.js';
36
+ /**
37
+ * The heading, verbatim. Markdown `##` because the primary surfaces — a PR comment and the
38
+ * `writeOutputToFile` report — are markdown; the terminal shows it literally, exactly as it already
39
+ * shows every markdown heading a model writes.
40
+ */
41
+ export const REVIEW_HEADING = '## Gaunt Sloth: Code Review';
42
+ /**
43
+ * The review mode, as the attribution line names it. `review` / `pr` are one-shot: the diff goes in,
44
+ * the verdict comes out, and nothing carries over between runs — which is what makes a verdict
45
+ * impossible to argue down across a conversation, and why the mode is worth naming.
46
+ */
47
+ export const REVIEW_MODE_LABEL = 'stateless review';
48
+ /** Separates the mode from the model on the attribution line. */
49
+ const ATTRIBUTION_SEPARATOR = ' · ';
50
+ /**
51
+ * Build the heading block: the heading, a blank line, the attribution line, and a trailing newline
52
+ * so the review body does not start flush against it.
53
+ *
54
+ * The model half is the SHARED `model (provider)` spelling ({@link modelProviderLabel}), the same
55
+ * one the launch banner renders, rather than a second spelling of the same fact.
56
+ *
57
+ * Both halves of the model are allowed to be missing, and neither prints a placeholder:
58
+ *
59
+ * - **No provider** — a `.gsloth.config.js` module config hands the loader an already-built
60
+ * `BaseChatModel` and legitimately has no provider string. The bare model prints; there is no
61
+ * `(unknown)` and no empty `()`.
62
+ * - **No model** — the label is dropped entirely and the line is just the mode. A provider name on
63
+ * its own would sit exactly where a model name sits and read as one, and a misidentified model in
64
+ * a review someone later quotes is worse than an absent one. That is the same drop-rather-than-
65
+ * mislead rule the banner applies to a version that does not fit.
66
+ */
67
+ export function reviewHeadingBlock(model, provider) {
68
+ const label = model?.trim() ? modelProviderLabel(model, provider) : undefined;
69
+ const attribution = label ? REVIEW_MODE_LABEL + ATTRIBUTION_SEPARATOR + label : REVIEW_MODE_LABEL;
70
+ return `${REVIEW_HEADING}\n\n${attribution}\n`;
71
+ }
72
+ //# sourceMappingURL=reviewHeading.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reviewHeading.js","sourceRoot":"","sources":["../../src/modules/reviewHeading.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAE5E;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,6BAA6B,CAAC;AAE5D;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;AAEpD,iEAAiE;AACjE,MAAM,qBAAqB,GAAG,KAAK,CAAC;AAEpC;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,kBAAkB,CAAC,KAAc,EAAE,QAAiB;IAClE,MAAM,KAAK,GAAG,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,kBAAkB,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAC9E,MAAM,WAAW,GAAG,KAAK,CAAC,CAAC,CAAC,iBAAiB,GAAG,qBAAqB,GAAG,KAAK,CAAC,CAAC,CAAC,iBAAiB,CAAC;IAClG,OAAO,GAAG,cAAc,OAAO,WAAW,IAAI,CAAC;AACjD,CAAC"}
@@ -1,4 +1,5 @@
1
- import { defaultStatusCallback, displayDebug, displayError, displayInfo, displaySuccess, displayWarning, flushSessionLog, initSessionLogging, stopSessionLogging, } from '@gaunt-sloth/core/utils/consoleUtils.js';
1
+ import { defaultStatusCallback, display, displayDebug, displayError, displayInfo, displaySuccess, displayWarning, flushSessionLog, initSessionLogging, stopSessionLogging, } from '@gaunt-sloth/core/utils/consoleUtils.js';
2
+ import { reviewHeadingBlock } from '#src/modules/reviewHeading.js';
2
3
  import { getCommandOutputFilePath } from '#src/utils/fileUtils.js';
3
4
  import { HumanMessage } from '@langchain/core/messages';
4
5
  import { GthAgentRunner } from '@gaunt-sloth/core/core/GthAgentRunner.js';
@@ -50,6 +51,16 @@ _preamble, diff, config, command = 'review', resolvers, reviewContext) {
50
51
  if (filePath) {
51
52
  initSessionLogging(filePath, config.streamSessionInferenceLog);
52
53
  }
54
+ // REL-12: head the review with its attribution. It sits AFTER `initSessionLogging` on purpose —
55
+ // the session log is a capture of console output, so this ordering is the whole reason one
56
+ // emission covers both surfaces: the terminal AND the `writeOutputToFile` report a workflow
57
+ // reads back and posts. Emitted BEFORE the agent runs so it is the first thing in both.
58
+ //
59
+ // Through the ordinary `display` helper, never `headerStatus`: that gate belongs to the
60
+ // agent's technical run-header preamble, which `output.header: false` strips so captured stdout
61
+ // stays diffable. This is not preamble — it is the first line of the review document, and the
62
+ // reason a reader can tell whose review they are reading.
63
+ display(reviewHeadingBlock(config.modelDisplayName, config.modelProviderType));
53
64
  const rateConfig = config.commands?.[command]?.rating;
54
65
  if (rateConfig && rateConfig.enabled !== false) {
55
66
  const confMiddleware = config.middleware || [];
@@ -1 +1 @@
1
- {"version":3,"file":"reviewModule.js","sourceRoot":"","sources":["../../src/modules/reviewModule.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,qBAAqB,EACrB,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,cAAc,EACd,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AACjF,OA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,CAAC,CAAC;QACjB,CAAC;IACH,CAAC;IAED,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;QACnB,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC9B,CAAC;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gaunt-sloth/review",
3
- "version": "2.0.0-alpha.36",
3
+ "version": "2.0.0-alpha.37",
4
4
  "description": "Review functionality for Gaunt Sloth",
5
5
  "license": "MIT",
6
6
  "author": "Andrew Kondratev",
@@ -38,7 +38,7 @@
38
38
  "@langchain/langgraph": "^1.4.9",
39
39
  "langchain": "^1.5.5",
40
40
  "zod": "^4.4.3",
41
- "@gaunt-sloth/core": "2.0.0-alpha.36"
41
+ "@gaunt-sloth/core": "2.0.0-alpha.37"
42
42
  },
43
43
  "files": [
44
44
  "./dist/*",