@gaunt-sloth/review 2.0.0-alpha.39 → 2.0.0-alpha.40

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,8 +67,8 @@ 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, opening with a fixed `## Gaunt Sloth: Code Review` heading and
71
- one line naming the review mode and the model that served the run. An embedder gets that attribution
70
+ The review text is written to stdout, opening with one `Gaunt Sloth · review · <model> (<provider>)`
71
+ header line naming the command and the model that served the run. An embedder gets that attribution
72
72
  by default, so anything posting this output identifies its reviewer without adding a header of its
73
73
  own; `output.header: "none"` on the config you pass to `review()` is the one setting that removes
74
74
  it, for a caller piping the review into a template of their own. With rating enabled, `review()`
@@ -1,30 +1,19 @@
1
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.
2
+ * Build the review's opening header: `Gaunt Sloth · <command> · <model> (<provider>)`, plus a
3
+ * trailing newline so the review body does not start flush against it.
16
4
  *
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.
5
+ * The line is assembled by the SHARED {@link runHeaderLine}, and the model half by the SHARED
6
+ * `model (provider)` spelling ({@link modelProviderLabel}) the same two the agent's own run
7
+ * header uses, rather than a second spelling of the same facts.
19
8
  *
20
9
  * Both halves of the model are allowed to be missing, and neither prints a placeholder:
21
10
  *
22
11
  * - **No provider** — a `.gsloth.config.js` module config hands the loader an already-built
23
12
  * `BaseChatModel` and legitimately has no provider string. The bare model prints; there is no
24
13
  * `(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.
14
+ * - **No model** — the label is dropped entirely and the line ends after the command. A provider
15
+ * name on its own would sit exactly where a model name sits and read as one, and a misidentified
16
+ * model in a review someone later quotes is worse than an absent one. That is the same
17
+ * drop-rather-than-mislead rule the banner applies to a version that does not fit.
29
18
  */
30
- export declare function reviewHeadingBlock(model?: string, provider?: string): string;
19
+ export declare function reviewHeadingBlock(command: 'pr' | 'review', model?: string, provider?: string): string;
@@ -1,14 +1,14 @@
1
1
  /**
2
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.
3
+ * REL-12 — the line every `gth review` / `gth pr` run opens with, so a reader of the output knows
4
+ * whose review it is and what produced it.
5
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).
6
+ * User-facing CLI feedback, so it is governed by `maintenance/ux-guidelines.md` § The run header,
7
+ * 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 — it renders
9
+ * through the shared `runHeaderLine`, so the review document and the agent's own run header are one
10
+ * string and not two that happen to match), and **DL-7** (graceful degradation drop the label
11
+ * rather than mislead, exactly as the banner drops a version that will not fit).
12
12
  *
13
13
  * ## Why the product emits this and not the workflow
14
14
  *
@@ -18,60 +18,43 @@
18
18
  * knows. Putting the attribution in the CLI's own output means any workflow that runs `gth` and
19
19
  * posts what it produced carries it, with no wiring of its own.
20
20
  *
21
- * ## Why the heading is a constant and the mode is not in it
21
+ * ## Why it names the command, and why that is one line and no more
22
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 two lines and no more, and when it is none
23
+ * The word after the product name is the command the USER typed `review` or `pr` which is the
24
+ * one thing a reader of a detached review cannot recover for themselves. It is the same header
25
+ * every other command opens with, so a reader who has seen one has seen all of them.
30
26
  *
31
27
  * 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.
28
+ * so the header is one line: no markdown heading, no rule, no box, no timestamp, no version, no
29
+ * restated repo/branch/PR. The cost of a bigger banner is paid by every reader of every review.
34
30
  *
35
31
  * It is not, however, unconditional. `output.header: none` drops it (the gate is at the emission
36
- * site in `reviewModule.ts`, not here — this module builds the block and does not decide whether it
32
+ * site in `reviewModule.ts`, not here — this module builds the line and does not decide whether it
37
33
  * is shown), because a caller piping a review into their own template needs a byte-clean stream.
38
34
  * That rung is opt-in precisely so the reasoning above survives for everyone who does not set it.
39
35
  */
40
- import { modelProviderLabel } from '@gaunt-sloth/core/core/launchBanner.js';
41
- /**
42
- * The heading, verbatim. Markdown `##` because the primary surfaces — a PR comment and the
43
- * `writeOutputToFile` report — are markdown; the terminal shows it literally, exactly as it already
44
- * shows every markdown heading a model writes.
45
- */
46
- export const REVIEW_HEADING = '## Gaunt Sloth: Code Review';
47
- /**
48
- * The review mode, as the attribution line names it. `review` / `pr` are one-shot: the diff goes in,
49
- * the verdict comes out, and nothing carries over between runs — which is what makes a verdict
50
- * impossible to argue down across a conversation, and why the mode is worth naming.
51
- */
52
- export const REVIEW_MODE_LABEL = 'stateless review';
53
- /** Separates the mode from the model on the attribution line. */
54
- const ATTRIBUTION_SEPARATOR = ' · ';
36
+ import { modelProviderLabel } from '@gaunt-sloth/core/core/modelLabel.js';
37
+ import { runHeaderLine } from '@gaunt-sloth/core/core/runHeader.js';
55
38
  /**
56
- * Build the heading block: the heading, a blank line, the attribution line, and a trailing newline
57
- * so the review body does not start flush against it.
39
+ * Build the review's opening header: `Gaunt Sloth · <command> · <model> (<provider>)`, plus a
40
+ * trailing newline so the review body does not start flush against it.
58
41
  *
59
- * The model half is the SHARED `model (provider)` spelling ({@link modelProviderLabel}), the same
60
- * one the launch banner renders, rather than a second spelling of the same fact.
42
+ * The line is assembled by the SHARED {@link runHeaderLine}, and the model half by the SHARED
43
+ * `model (provider)` spelling ({@link modelProviderLabel}) the same two the agent's own run
44
+ * header uses, rather than a second spelling of the same facts.
61
45
  *
62
46
  * Both halves of the model are allowed to be missing, and neither prints a placeholder:
63
47
  *
64
48
  * - **No provider** — a `.gsloth.config.js` module config hands the loader an already-built
65
49
  * `BaseChatModel` and legitimately has no provider string. The bare model prints; there is no
66
50
  * `(unknown)` and no empty `()`.
67
- * - **No model** — the label is dropped entirely and the line is just the mode. A provider name on
68
- * its own would sit exactly where a model name sits and read as one, and a misidentified model in
69
- * a review someone later quotes is worse than an absent one. That is the same drop-rather-than-
70
- * mislead rule the banner applies to a version that does not fit.
51
+ * - **No model** — the label is dropped entirely and the line ends after the command. A provider
52
+ * name on its own would sit exactly where a model name sits and read as one, and a misidentified
53
+ * model in a review someone later quotes is worse than an absent one. That is the same
54
+ * drop-rather-than-mislead rule the banner applies to a version that does not fit.
71
55
  */
72
- export function reviewHeadingBlock(model, provider) {
56
+ export function reviewHeadingBlock(command, model, provider) {
73
57
  const label = model?.trim() ? modelProviderLabel(model, provider) : undefined;
74
- const attribution = label ? REVIEW_MODE_LABEL + ATTRIBUTION_SEPARATOR + label : REVIEW_MODE_LABEL;
75
- return `${REVIEW_HEADING}\n\n${attribution}\n`;
58
+ return `${runHeaderLine(command, label)}\n`;
76
59
  }
77
60
  //# sourceMappingURL=reviewHeading.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"reviewHeading.js","sourceRoot":"","sources":["../../src/modules/reviewHeading.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;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
+ {"version":3,"file":"reviewHeading.js","sourceRoot":"","sources":["../../src/modules/reviewHeading.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,kBAAkB,CAChC,OAAwB,EACxB,KAAc,EACd,QAAiB;IAEjB,MAAM,KAAK,GAAG,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,kBAAkB,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAC9E,OAAO,GAAG,aAAa,CAAC,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC;AAC9C,CAAC"}
@@ -59,15 +59,16 @@ _preamble, diff, config, command = 'review', resolvers, reviewContext) {
59
59
  //
60
60
  // Through the ordinary `display` helper, never `headerStatus`: this is not the agent's
61
61
  // technical preamble but the first line of the review document, so it survives the `compact`
62
- // rung that strips the preamble — and on that rung it IS the attribution, which is why the
63
- // agent emits no `Gaunt Sloth: <verb>` line for `review`/`pr`.
62
+ // rung that strips the preamble — and on that rung it IS the run header, which is why the agent
63
+ // emits none of its own for `review`/`pr` (GS2-95: both render the same line, so a second
64
+ // emission would print the header twice on one screen).
64
65
  //
65
66
  // GS2-93: `none` is the one rung that reaches it, and it silences the block outright. That
66
67
  // deliberately reverses REL-12 for a user who asks for it: a caller piping a review into their
67
68
  // own template or diffing captured stdout needs a byte-clean stream, and nobody loses
68
69
  // attribution without setting this key.
69
70
  if (config.output?.header !== 'none') {
70
- display(reviewHeadingBlock(config.modelDisplayName, config.modelProviderType));
71
+ display(reviewHeadingBlock(command, config.modelDisplayName, config.modelProviderType));
71
72
  }
72
73
  const rateConfig = config.commands?.[command]?.rating;
73
74
  if (rateConfig && rateConfig.enabled !== false) {
@@ -1 +1 @@
1
- {"version":3,"file":"reviewModule.js","sourceRoot":"","sources":["../../src/modules/reviewModule.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAEtE,OAAO,EACL,qBAAqB,EACrB,OAAO,EACP,YAAY,EAC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zC,WAAW,CAAC,CAAC,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.39",
3
+ "version": "2.0.0-alpha.40",
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.39"
41
+ "@gaunt-sloth/core": "2.0.0-alpha.40"
42
42
  },
43
43
  "files": [
44
44
  "./dist/*",