@getripple/cli 1.0.4 → 1.0.5
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/CHANGELOG.md +7 -0
- package/README.md +74 -36
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @getripple/cli Changelog
|
|
2
2
|
|
|
3
|
+
## [1.0.5] - 2026-06-04
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
- Refresh package README wording for npm users.
|
|
7
|
+
- Restore the first-run `npx -y @getripple/cli doctor` readiness command.
|
|
8
|
+
- Clarify the plan/check/gate workflow, control modes, CI gate behavior, and local privacy posture.
|
|
9
|
+
|
|
3
10
|
## [1.0.4] - 2026-06-03
|
|
4
11
|
|
|
5
12
|
### Fixed
|
package/README.md
CHANGED
|
@@ -2,46 +2,63 @@
|
|
|
2
2
|
|
|
3
3
|
Run Ripple's architecture checks in your terminal and CI pipeline without VS Code.
|
|
4
4
|
|
|
5
|
+
Plan before edit. Check after edit. Catch drift. Tell the agent what to fix.
|
|
6
|
+
|
|
5
7
|
```bash
|
|
6
|
-
npx -y @getripple/cli plan --file src/auth.ts --task "refactor token handling"
|
|
8
|
+
npx -y @getripple/cli plan --file src/auth.ts --task "refactor token handling" --save
|
|
7
9
|
```
|
|
8
10
|
|
|
9
|
-
Ripple is a local AI-agent workflow engine: plan before edit, check after edit,
|
|
10
|
-
catch drift, and tell the agent what to fix.
|
|
11
|
-
|
|
12
11
|
## Quick Start
|
|
13
12
|
|
|
14
|
-
Initialize Ripple in
|
|
13
|
+
**Step 1 — Initialize Ripple in your repo:**
|
|
15
14
|
|
|
16
15
|
```bash
|
|
17
16
|
npx -y @getripple/cli init
|
|
18
17
|
```
|
|
19
18
|
|
|
20
|
-
|
|
19
|
+
Scans your project, builds the dependency graph, and writes `.ripple/` context
|
|
20
|
+
files. Run this once per project.
|
|
21
|
+
|
|
22
|
+
**Step 2 — Plan before editing a file:**
|
|
21
23
|
|
|
22
24
|
```bash
|
|
23
25
|
npx -y @getripple/cli plan --file src/auth.ts --task "refactor token handling" --mode file --save
|
|
24
26
|
```
|
|
25
27
|
|
|
26
|
-
|
|
28
|
+
Returns the files to read first, the risk level, the allowed boundary, and what
|
|
29
|
+
to verify. `--save` records the intent so the next check can detect drift.
|
|
30
|
+
|
|
31
|
+
**Step 3 — After editing and staging, check for drift:**
|
|
27
32
|
|
|
28
33
|
```bash
|
|
29
34
|
npx -y @getripple/cli check --staged --intent latest
|
|
30
35
|
```
|
|
31
36
|
|
|
32
|
-
|
|
37
|
+
Compares your staged changes against the saved plan. Returns a verdict:
|
|
38
|
+
intent drift, boundary drift, or clean.
|
|
39
|
+
|
|
40
|
+
**Step 4 — Get the compact continue/stop decision:**
|
|
33
41
|
|
|
34
42
|
```bash
|
|
35
43
|
npx -y @getripple/cli gate --intent latest
|
|
36
44
|
```
|
|
37
45
|
|
|
46
|
+
Returns one of four decisions the agent or CI pipeline acts on directly:
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
open/continue
|
|
50
|
+
closed/repair
|
|
51
|
+
closed/human-review
|
|
52
|
+
closed/restore-readiness
|
|
53
|
+
```
|
|
54
|
+
|
|
38
55
|
## Install
|
|
39
56
|
|
|
40
57
|
```bash
|
|
41
58
|
npm install -g @getripple/cli
|
|
42
59
|
```
|
|
43
60
|
|
|
44
|
-
Then
|
|
61
|
+
Then use `ripple` directly:
|
|
45
62
|
|
|
46
63
|
```bash
|
|
47
64
|
ripple init
|
|
@@ -50,56 +67,77 @@ ripple check --staged --intent latest
|
|
|
50
67
|
ripple gate --intent latest
|
|
51
68
|
```
|
|
52
69
|
|
|
53
|
-
Check
|
|
70
|
+
Check that the project is ready before running anything else:
|
|
54
71
|
|
|
55
72
|
```bash
|
|
56
73
|
npx -y @getripple/cli doctor
|
|
57
74
|
```
|
|
58
75
|
|
|
76
|
+
Or, after global install:
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
ripple doctor
|
|
80
|
+
```
|
|
81
|
+
|
|
59
82
|
## CI Gate
|
|
60
83
|
|
|
61
|
-
Generate a GitHub Actions workflow:
|
|
84
|
+
Generate a GitHub Actions workflow file:
|
|
62
85
|
|
|
63
86
|
```bash
|
|
64
87
|
ripple init-ci
|
|
65
88
|
```
|
|
66
89
|
|
|
67
|
-
|
|
90
|
+
Add Ripple as a pull-request gate in CI:
|
|
68
91
|
|
|
69
92
|
```bash
|
|
70
93
|
ripple ci --base origin/main --intent latest --github-annotations
|
|
71
94
|
```
|
|
72
95
|
|
|
73
|
-
The gate
|
|
96
|
+
The gate emits GitHub annotations for each drift finding and writes a summary
|
|
97
|
+
to the Actions step summary panel. Exits non-zero when drift blocks merge.
|
|
74
98
|
|
|
75
|
-
|
|
76
|
-
open/continue
|
|
77
|
-
closed/repair
|
|
78
|
-
closed/human-review
|
|
79
|
-
closed/restore-readiness
|
|
80
|
-
```
|
|
99
|
+
## Control Modes
|
|
81
100
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
ripple
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
101
|
+
Pass `--mode` to `ripple plan` to set the trust boundary:
|
|
102
|
+
|
|
103
|
+
| Mode | What the agent is allowed to touch |
|
|
104
|
+
| ------------ | ---------------------------------------------------- |
|
|
105
|
+
| `brainstorm` | No edits allowed — suggest and explain only |
|
|
106
|
+
| `function` | Only the approved symbol |
|
|
107
|
+
| `file` | Only the planned file |
|
|
108
|
+
| `task` | All files listed in the saved intent |
|
|
109
|
+
| `pr` | Full task scope — agent prepares PR for human review |
|
|
110
|
+
|
|
111
|
+
After staging, `ripple check --staged` detects whether the agent stayed inside
|
|
112
|
+
the boundary and reports boundary drift separately from intent drift.
|
|
113
|
+
|
|
114
|
+
## All Commands
|
|
115
|
+
|
|
116
|
+
```
|
|
117
|
+
ripple init Initialize Ripple in the current repo
|
|
118
|
+
ripple doctor Check project readiness
|
|
119
|
+
ripple scan Scan the repo and rebuild the graph
|
|
120
|
+
ripple focus Show focused context for a file
|
|
121
|
+
ripple blast Show files that depend on a target file
|
|
122
|
+
ripple imports Show what a file imports
|
|
123
|
+
ripple importers Show what imports a file
|
|
124
|
+
ripple symbols Show exported symbols in a file
|
|
125
|
+
ripple callers Show callers of a symbol
|
|
126
|
+
ripple history Show recent architectural changes
|
|
127
|
+
ripple plan Plan context before editing a file
|
|
128
|
+
ripple check Check staged or changed files against saved intent
|
|
129
|
+
ripple audit Audit a completed change for drift signals
|
|
130
|
+
ripple repair Get repair actions when drift is detected
|
|
131
|
+
ripple gate Compact continue/stop decision
|
|
132
|
+
ripple agent Print the agent workflow guide
|
|
133
|
+
ripple init-ci Generate a GitHub Actions workflow file
|
|
134
|
+
ripple ci Run the CI gate against a base ref
|
|
97
135
|
```
|
|
98
136
|
|
|
99
137
|
## Privacy
|
|
100
138
|
|
|
101
|
-
Ripple runs
|
|
102
|
-
is required by the CLI.
|
|
139
|
+
Ripple runs entirely on your machine. No account, telemetry, cloud indexing, or
|
|
140
|
+
remote model call is required by the CLI.
|
|
103
141
|
|
|
104
142
|
## Status
|
|
105
143
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getripple/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "CLI and CI interface for Ripple's local AI-agent workflow engine.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"build": "tsc -p tsconfig.json"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@getripple/core": "^1.0.
|
|
47
|
+
"@getripple/core": "^1.0.5"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/node": "^18.0.0",
|