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 +1 -1
- package/src/cli-core.ts +41 -2
- package/src/cli.ts +1 -1
- package/src/commands/config.ts +770 -80
- package/src/commands/init.ts +189 -49
- package/src/commands/run.ts +11 -11
- package/src/lib/config-display.ts +449 -0
- package/src/lib/config-layers.ts +40 -0
- package/src/lib/config.ts +911 -4
- package/src/lib/diagnostics/checks.ts +81 -8
- package/src/lib/diagnostics/remediation.ts +44 -14
- package/src/lib/git.ts +4 -0
- package/src/lib/self-update.ts +6 -0
- package/src/lib/tui/use-dashboard-state.ts +2 -2
- package/src/lib/types/config.ts +42 -0
- package/src/lib/types/index.ts +5 -0
package/package.json
CHANGED
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
|
-
|
|
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
|
|
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
|
},
|