ralph-review 0.1.8 → 0.1.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ralph-review",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "description": "Orchestrating coding agents for code review, verification and fixing via the ralph loop.",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/src/cli-core.ts CHANGED
@@ -15,24 +15,63 @@ export const COMMANDS: CommandDef[] = [
15
15
  {
16
16
  name: "init",
17
17
  description: "Configure reviewer, fixer, and simplifier agents (auto or custom)",
18
- examples: ["rr init"],
18
+ options: [
19
+ {
20
+ name: "local",
21
+ type: "boolean",
22
+ description: "Write the repo-local override file at .ralph-review/config.json",
23
+ },
24
+ {
25
+ name: "global",
26
+ type: "boolean",
27
+ description: "Write the user-global config at ~/.config/ralph-review/config.json",
28
+ },
29
+ ],
30
+ examples: ["rr init", "rr init --global"],
19
31
  },
20
32
  {
21
33
  name: "config",
22
34
  description: "Inspect and update configuration",
35
+ options: [
36
+ {
37
+ name: "local",
38
+ type: "boolean",
39
+ description: "Use the repo-local override file at .ralph-review/config.json",
40
+ },
41
+ {
42
+ name: "global",
43
+ type: "boolean",
44
+ description: "Use the user-global config at ~/.config/ralph-review/config.json",
45
+ },
46
+ {
47
+ name: "json",
48
+ type: "boolean",
49
+ description: "Print raw JSON output for `config show`",
50
+ },
51
+ {
52
+ name: "verbose",
53
+ type: "boolean",
54
+ description: "Include metadata in human-readable `config show` output",
55
+ },
56
+ ],
23
57
  positional: [
24
58
  {
25
59
  name: "subcommand",
26
60
  description:
27
- "show = print full config | get = read one key | set = update one key | edit = open in $EDITOR",
61
+ "show = print config | get = read one key | set = update one key | edit = open in $EDITOR",
28
62
  },
29
63
  { name: "key", description: "Dot-path config key (required for get/set)" },
30
64
  { name: "value", description: "Value to write (required for set)" },
31
65
  ],
32
66
  examples: [
33
67
  "rr config show",
68
+ "rr config show --local",
69
+ "rr config show --json",
70
+ "rr config show --verbose",
34
71
  "rr config get reviewer.agent",
72
+ "rr config get --local run.simplifier",
35
73
  "rr config set maxIterations 8",
74
+ "rr config set --local defaultReview.branch main",
36
75
  "rr config edit",
37
76
  ],
38
77
  },
package/src/cli.ts CHANGED
@@ -156,7 +156,7 @@ export async function runCli(
156
156
  try {
157
157
  switch (resolvedCommand) {
158
158
  case "init":
159
- await cliDeps.runInit();
159
+ await cliDeps.runInit(commandArgs);
160
160
  break;
161
161
 
162
162
  case "config":