Skip to content

Commit 6a3a1b5

Browse files
authored
Merge pull request #1 from raushankcode/feature/cli-demo
demo add in our tool
2 parents d7caee4 + 26c650f commit 6a3a1b5

18 files changed

Lines changed: 1193 additions & 96 deletions

‎README.md‎

Lines changed: 33 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Ripple
22

3-
**A local authorization gate for AI coding agents.**
3+
\*_A local authorization gate for AI coding agents._
4+
5+
run command for demo in your terminal
6+
7+
```txt
8+
npx @getripple/cli demo
9+
```
410

511
Ripple is a local authorization gate for AI coding agents that defines what an
612
agent may change, checks the real Git diff, and returns continue, repair, or
@@ -42,6 +48,7 @@ The local CLI remains free and open-source. The cloud service provides the tampe
4248
[Learn more at ripple-cloud.vercel.app](https://ripple-cloud.vercel.app)
4349

4450
---
51+
4552
[![npm cli](https://img.shields.io/npm/v/@getripple/cli.svg)](https://www.npmjs.com/package/@getripple/cli)
4653
[![npm mcp](https://img.shields.io/npm/v/@getripple/mcp.svg)](https://www.npmjs.com/package/@getripple/mcp)
4754
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
@@ -183,14 +190,14 @@ the agent crosses the boundary, Ripple stops and gives a concrete review packet.
183190

184191
Ripple is one local engine exposed through MCP, CLI, hooks, CI, and VS Code.
185192

186-
| Layer | What it means |
187-
| --- | --- |
188-
| Policy | Permanent repo rules in `.ripple/policy.json` |
189-
| Intent | Temporary approved boundary for the current task |
190-
| Git diff | The staged or changed files Ripple checks |
191-
| MCP | Structured tools for AI agents |
192-
| Hook | Local pre-commit gate before code enters history |
193-
| CI | Pull request gate before merge |
193+
| Layer | What it means |
194+
| -------- | ------------------------------------------------ |
195+
| Policy | Permanent repo rules in `.ripple/policy.json` |
196+
| Intent | Temporary approved boundary for the current task |
197+
| Git diff | The staged or changed files Ripple checks |
198+
| MCP | Structured tools for AI agents |
199+
| Hook | Local pre-commit gate before code enters history |
200+
| CI | Pull request gate before merge |
194201

195202
The model is intentionally small:
196203

@@ -205,13 +212,13 @@ Gate decides whether the agent may continue.
205212

206213
Ripple stores the freedom level the agent was given before editing.
207214

208-
| Mode | Agent is allowed to |
209-
| --- | --- |
210-
| `brainstorm` | Suggest and explain only. No edits. |
211-
| `function` | Edit only the approved symbol. |
212-
| `file` | Edit only the approved file. |
213-
| `task` | Edit files in the saved task plan. |
214-
| `pr` | Complete low-risk PR work for human review before merge. |
215+
| Mode | Agent is allowed to |
216+
| ------------ | -------------------------------------------------------- |
217+
| `brainstorm` | Suggest and explain only. No edits. |
218+
| `function` | Edit only the approved symbol. |
219+
| `file` | Edit only the approved file. |
220+
| `task` | Edit files in the saved task plan. |
221+
| `pr` | Complete low-risk PR work for human review before merge. |
215222

216223
When an agent calls `ripple_plan_context`, it chooses one of these control
217224
modes and can save that boundary as the active local intent.
@@ -295,12 +302,12 @@ Human reviews only when the boundary breaks.
295302

296303
## Interfaces
297304

298-
| Interface | Use it for |
299-
| --- | --- |
300-
| `@getripple/mcp` | Direct AI-agent access through MCP tools |
301-
| `@getripple/cli` | Terminal, Git hooks, CI, local proofs |
302-
| `@getripple/core` | Custom integrations |
303-
| `rippleai.ripple` | Optional VS Code visual context |
305+
| Interface | Use it for |
306+
| ----------------- | ---------------------------------------- |
307+
| `@getripple/mcp` | Direct AI-agent access through MCP tools |
308+
| `@getripple/cli` | Terminal, Git hooks, CI, local proofs |
309+
| `@getripple/core` | Custom integrations |
310+
| `rippleai.ripple` | Optional VS Code visual context |
304311

305312
## Git Hooks
306313

@@ -361,10 +368,10 @@ whether to commit them.
361368

362369
## Language Support
363370

364-
| Language | Status |
365-
| --- | --- |
366-
| TypeScript / JavaScript | Deep support for imports, exports, symbols, callers, staged drift, and blast radius |
367-
| Python | Basic support for imports, functions, classes, methods, and file-level staged checks |
371+
| Language | Status |
372+
| ----------------------- | ------------------------------------------------------------------------------------ |
373+
| TypeScript / JavaScript | Deep support for imports, exports, symbols, callers, staged drift, and blast radius |
374+
| Python | Basic support for imports, functions, classes, methods, and file-level staged checks |
368375

369376
Ripple uses static analysis. It can miss runtime-only behavior, dynamic imports,
370377
reflection, decorators, generated code, and framework-specific magic.

‎docs/ripple-gate-demo.tape‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# VHS tape that records REAL `ripple demo` output.
2+
#
3+
# This replaces the previous hand-drawn GIF renderer. Every frame produced here
4+
# is genuine terminal output from the built CLI running the real engine against
5+
# a real temporary git repository — including the pre-commit hook rejecting the
6+
# rogue commit. Nothing in the recording is scripted or re-enacted.
7+
#
8+
# Build with: npm run demo:gif (see scripts/build-vhs-gate-demo.js)
9+
10+
Output resources/ripple-gate-demo.gif
11+
12+
Set Shell bash
13+
Set FontSize 15
14+
Set Width 1200
15+
Set Height 820
16+
Set Padding 24
17+
Set Framerate 12
18+
Set Theme "Catppuccin Mocha"
19+
20+
# The demo paces itself (it detects a TTY, which VHS provides), so the tape does
21+
# not need Sleep directives between scenes — only a settle at each end.
22+
Hide
23+
Type "clear"
24+
Enter
25+
Show
26+
27+
Sleep 800ms
28+
Type "ripple demo"
29+
Sleep 600ms
30+
Enter
31+
32+
# The demo's own pacing runs ~30s; wait past it, then hold on the final frame.
33+
Sleep 40s

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "ripple",
33
"displayName": "Ripple — Local Authorization Gate",
44
"description": "VS Code interface for Ripple's local authorization gate: live context, focus files, blast-radius signals, and safer AI-agent workflow prompts.",
5-
"version": "1.0.13",
5+
"version": "1.0.14",
66
"publisher": "rippleai",
77
"author": {
88
"name": "Raushan Soni"

‎packages/cli/CHANGELOG.md‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# @getripple/cli Changelog
22

3+
## [1.0.14] - 2026-07-21
4+
5+
### Fixed
6+
- `ripple gate` no longer consumes the saved intent on a passing preview run; consumption now happens only in the post-commit hook, after a real commit.
7+
- `ripple gate --json` no longer prints a trailing plain-text message after the JSON payload.
8+
- `ripple demo --json` now honors `--json` instead of printing ANSI prose, and no longer calls `console.clear()` (which wiped terminal scrollback).
9+
- Installing Ripple's git hooks now updates an existing hook block in place when its contents changed, instead of reporting "already-present" forever.
10+
- `ripple demo` now runs against a real installed pre-commit hook and a real `git commit` for every scenario shown, including the blocked one, instead of narrating a result.
11+
12+
### Added
13+
- `ripple demo --publish`: opt-in publish of a demo run to Ripple Cloud, printing a public share link.
14+
- Update package metadata to depend on `@getripple/core@^1.0.14`.
15+
316
## [1.0.9] - 2026-06-13
417

518
### Changed

‎packages/cli/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@getripple/cli",
3-
"version": "1.0.13",
3+
"version": "1.0.14-beta.0",
44
"description": "CLI, Git hook, and CI enforcer for Ripple's local authorization gate for AI coding agents.",
55
"license": "MIT",
66
"type": "commonjs",
@@ -44,7 +44,7 @@
4444
"build": "tsc -p tsconfig.json"
4545
},
4646
"dependencies": {
47-
"@getripple/core": "^1.0.13"
47+
"@getripple/core": "^1.0.14-beta.0"
4848
},
4949
"devDependencies": {
5050
"@types/node": "^18.0.0",

0 commit comments

Comments
 (0)