agentapprove 0.1.27 → 0.1.29
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 +55 -29
- package/dist/cli.js +52 -14
- package/package.json +23 -7
package/README.md
CHANGED
|
@@ -1,12 +1,50 @@
|
|
|
1
1
|
# Agent Approve
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**AI Agent Observability & Control on Your Wrist**
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
You're racing to ship. If your agents are idle, you're not gonna make it. Every pending approval is wasted time. So you're chained to your laptop, all day and night. This isn't the AI future we were promised -- go out and enjoy life.
|
|
6
6
|
|
|
7
|
-
Agent Approve
|
|
7
|
+
Agent Approve brings observability and control to your wrist: track AI agent activity, protect yourself with policy, and approve with a tap wherever life takes you.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
## How It Works
|
|
10
|
+
|
|
11
|
+
Agent Approve works with the hooks already built into your agent and coding tools, so you don't have to change how you work.
|
|
12
|
+
|
|
13
|
+
When an agent goes to run a command or call a tool, it's encrypted on your machine and sent through our cloud relay, where it's evaluated against policy. Compound commands are separated to catch hidden destructive commands.
|
|
14
|
+
|
|
15
|
+
Matches to your deny list or allow list are handled immediately. Those that need review are pushed to your iPhone or Apple Watch. When it reaches you, you see the full command, tap approve or deny, and can add it to your allow or deny list so you're never asked again. Everything is end-to-end encrypted: you own your data and keys.
|
|
16
|
+
|
|
17
|
+
## Why It Matters
|
|
18
|
+
|
|
19
|
+
Some commands have no undo. Agents have wiped production databases, deleted home directories, and force-pushed away weeks of work -- usually in seconds, while no one was watching.
|
|
20
|
+
|
|
21
|
+
And the agents you can't see are the ones that bite: a scheduled task that drifts, a retry loop that burns thousands in tokens overnight, or a helpful agent sharing secrets with a bad actor.
|
|
22
|
+
|
|
23
|
+
Agent Approve ships with a Restrictive policy that blocks 250+ destructive commands out of the box, a Permissive policy that auto-approves common safe commands, and you can always build your own.
|
|
24
|
+
|
|
25
|
+
## Everything You Need To Stay In Control
|
|
26
|
+
|
|
27
|
+
- **Approve from your wrist or phone** - one tap, wherever you are.
|
|
28
|
+
- **Centralized policy** - allow, deny, or ask, with 250+ destructive patterns blocked out of the box.
|
|
29
|
+
- **Compound-command parsing** - catches dangerous commands hidden inside scripted command sequences.
|
|
30
|
+
- **Full observability** - every command, tool call, and action in one live feed, including subagents and agent profiles.
|
|
31
|
+
- **Readable at a glance** - commands, plans, and tool payloads render as formatted markdown and JSON, not a wall of raw text.
|
|
32
|
+
- **Interactive Q&A** - review agent plans and answer supported agent questions from your phone.
|
|
33
|
+
- **Completion alerts and follow-ups** - know the moment an agent finishes, then send its next move by voice or quick reply.
|
|
34
|
+
- **Privacy tiers and retention** - choose how much of each command is stored and how long to keep it.
|
|
35
|
+
- **End-to-end encryption** - you own your data and keys, with optional key rotation for forward secrecy.
|
|
36
|
+
|
|
37
|
+
## Works With Every Agent You Use
|
|
38
|
+
|
|
39
|
+
Agent Approve runs on the hooks already native to your coding tools. Where there isn't one, we ship a plugin. Fourteen agents and counting, including Antigravity, Hermes, Pi, OpenClaw, OpenCode, OpenHands, Claude Code, Cursor, Codex, Windsurf, VS Code Copilot, and GitHub Copilot CLI.
|
|
40
|
+
|
|
41
|
+
It's the only cross-platform AI agent observability and control layer on your wrist.
|
|
42
|
+
|
|
43
|
+
## Try Before You Commit
|
|
44
|
+
|
|
45
|
+
Tap **Try Demo** on the welcome screen in the iOS app to explore the full approval flow with sample data -- no account or agent required.
|
|
46
|
+
|
|
47
|
+
To try with your own agents, run `npx agentapprove` on your computer. It installs the hooks or plugins for the agents you select and walks you through pairing: scan the QR code, start the 7-day free trial, and let your agents keep moving.
|
|
10
48
|
|
|
11
49
|
## Important
|
|
12
50
|
|
|
@@ -54,8 +92,9 @@ agentapprove profiles
|
|
|
54
92
|
|
|
55
93
|
to see every profile and its current Agent Approve status, then check the
|
|
56
94
|
profiles it should govern (your current set is pre-selected). The command
|
|
57
|
-
installs into newly-checked profiles
|
|
58
|
-
|
|
95
|
+
installs into newly-checked profiles, **updates any selected profile that is on
|
|
96
|
+
an older version**, and removes it from unchecked ones. Run it again any time you
|
|
97
|
+
add a profile or upgrade the installer. `agentapprove uninstall` removes the
|
|
59
98
|
plugin from **all** profiles.
|
|
60
99
|
|
|
61
100
|
### Options
|
|
@@ -66,26 +105,20 @@ agentapprove --no-e2e # Skip end-to-end encryption setup
|
|
|
66
105
|
|
|
67
106
|
## Supported AI Agents
|
|
68
107
|
|
|
108
|
+
- **Antigravity** - Google's current agent app/IDE
|
|
109
|
+
- **Antigravity CLI** - Google's current terminal agent
|
|
69
110
|
- **Claude Code** - Anthropic's CLI for Claude
|
|
70
111
|
- **Cursor** - AI code editor
|
|
71
|
-
- **Gemini CLI** -
|
|
72
|
-
- **VS Code Agent** - VS Code agent hooks
|
|
112
|
+
- **Gemini CLI (legacy)** - retained for existing Gemini CLI installations
|
|
73
113
|
- **GitHub Copilot CLI** - GitHub's coding agent
|
|
74
|
-
- **
|
|
114
|
+
- **Hermes** - Nous Research's agent runtime, including profile-aware installs
|
|
115
|
+
- **OpenAI Codex** - OpenAI coding agent
|
|
75
116
|
- **OpenClaw** - Open-source AI agent platform
|
|
76
|
-
- **
|
|
77
|
-
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
- **Approve on the go** - Hooks send events through our cloud so you can monitor and approve while walking the dog or getting coffee
|
|
82
|
-
- **Push notifications** - Never miss an approval request. Avoid wasted idle time with your agents
|
|
83
|
-
- **Apple Watch** - One-tap approvals from your wrist. Review context and respond without reaching for your phone
|
|
84
|
-
- **Voice commands** - Send follow-up commands to your agents using the microphone when they finish a task
|
|
85
|
-
- **Agent observability** - Full visibility into what all your agents are doing, especially autonomous agents like OpenClaw or long-running loops (Ralph loops)
|
|
86
|
-
- **Centralized policies** - Set auto-approve and deny rules across all your agents from a single policy
|
|
87
|
-
- **End-to-end encryption** - You own the keys. Approval requests are encrypted on your machine and decrypted only on your device
|
|
88
|
-
- **Privacy tiers** - Choose minimal, summary, or full data logging. Control retention from 1 to 365 days
|
|
117
|
+
- **OpenCode** - Open-source AI coding agent
|
|
118
|
+
- **OpenHands** - Open-source autonomous software engineering agent
|
|
119
|
+
- **Pi** - Package-based agent extension
|
|
120
|
+
- **VS Code GitHub Copilot** - VS Code agent hooks
|
|
121
|
+
- **Windsurf** - Cascade hooks for Windsurf
|
|
89
122
|
|
|
90
123
|
### Installer Features
|
|
91
124
|
|
|
@@ -99,13 +132,6 @@ agentapprove --no-e2e # Skip end-to-end encryption setup
|
|
|
99
132
|
- **System dependency checking** - Validates and optionally installs required tools
|
|
100
133
|
- **Cross-platform** - macOS, Linux, and Windows (via Git Bash)
|
|
101
134
|
|
|
102
|
-
## How It Works
|
|
103
|
-
|
|
104
|
-
1. Download Agent Approve from the App Store and start your 7-day free trial
|
|
105
|
-
2. Follow the in-app onboarding, which prompts you to run `npx agentapprove` on each machine
|
|
106
|
-
3. The installer pairs your device, sets up hooks, and configures your agents
|
|
107
|
-
4. Approve or deny actions from your phone or watch
|
|
108
|
-
|
|
109
135
|
## Requirements
|
|
110
136
|
|
|
111
137
|
- Node.js 18+
|
package/dist/cli.js
CHANGED
|
@@ -2831,7 +2831,7 @@ function resolvePairingApiBaseUrl(options) {
|
|
|
2831
2831
|
}
|
|
2832
2832
|
|
|
2833
2833
|
// src/cli.ts
|
|
2834
|
-
var VERSION = "0.1.
|
|
2834
|
+
var VERSION = "0.1.28";
|
|
2835
2835
|
function getApiUrl() {
|
|
2836
2836
|
return process.env.AGENTAPPROVE_API || "https://api.agentapprove.com";
|
|
2837
2837
|
}
|
|
@@ -2910,7 +2910,7 @@ var OPENCLAW_PLUGIN_SPEC = `@agentapprove/openclaw@${OPENCLAW_PLUGIN_VERSION}`;
|
|
|
2910
2910
|
var PI_PLUGIN_VERSION = "0.1.7";
|
|
2911
2911
|
var PI_PLUGIN_SPEC = `npm:@agentapprove/pi@${PI_PLUGIN_VERSION}`;
|
|
2912
2912
|
var PI_STATUS_TIMEOUT_MS = 5000;
|
|
2913
|
-
var HERMES_PLUGIN_VERSION = "0.1.
|
|
2913
|
+
var HERMES_PLUGIN_VERSION = "0.1.5";
|
|
2914
2914
|
var HERMES_PIP_DEPS = ["cryptography>=44.0,<46", "httpx>=0.27,<0.29"];
|
|
2915
2915
|
var AGENTS = {
|
|
2916
2916
|
"claude-code": {
|
|
@@ -5036,7 +5036,7 @@ function removePiPluginViaCli() {
|
|
|
5036
5036
|
};
|
|
5037
5037
|
}
|
|
5038
5038
|
}
|
|
5039
|
-
var HERMES_BUNDLE_SHA256 = "
|
|
5039
|
+
var HERMES_BUNDLE_SHA256 = "5af57a4607437912dbdd044d60971ffba6d4ffdd3dd86b0eea4c5ab220ecf308";
|
|
5040
5040
|
var HERMES_BUNDLE_FILENAME = `agentapprove-hermes-${HERMES_PLUGIN_VERSION}.tar.gz`;
|
|
5041
5041
|
var HERMES_PLUGIN_DIR = join(homedir(), ".hermes", "plugins", "agentapprove");
|
|
5042
5042
|
function findPython() {
|
|
@@ -6295,6 +6295,18 @@ Backups will be created with timestamp`, "Files to be modified");
|
|
|
6295
6295
|
v2.info(source_default.dim(` To use with GitHub Copilot CLI, copy to your repo:
|
|
6296
6296
|
` + ` cp ${agent.configPath} .github/hooks/agentapprove.json`));
|
|
6297
6297
|
}
|
|
6298
|
+
if (agentId === "hermes") {
|
|
6299
|
+
try {
|
|
6300
|
+
const others = listHermesProfiles().filter((pr) => !pr.isDefault);
|
|
6301
|
+
if (others.length > 0) {
|
|
6302
|
+
const lines = others.map((pr) => ` ${pr.name.padEnd(20)} ${pr.installed ? `installed v${pr.version ?? "?"}` : "not installed"}`).join(`
|
|
6303
|
+
`);
|
|
6304
|
+
v2.info(source_default.dim(` Installed in the default Hermes profile. Other profiles detected:
|
|
6305
|
+
` + `${lines}
|
|
6306
|
+
` + ` Manage them with: npx agentapprove profiles`));
|
|
6307
|
+
}
|
|
6308
|
+
} catch {}
|
|
6309
|
+
}
|
|
6298
6310
|
} else {
|
|
6299
6311
|
spinner.stop(`${agent.name} configuration failed`);
|
|
6300
6312
|
if (agentId === "openclaw") {
|
|
@@ -6337,6 +6349,7 @@ Backups will be created with timestamp`, "Files to be modified");
|
|
|
6337
6349
|
|
|
6338
6350
|
npx agentapprove pair Link a new iOS device
|
|
6339
6351
|
npx agentapprove status Show current configuration
|
|
6352
|
+
npx agentapprove profiles Manage Agent Approve across Hermes profiles
|
|
6340
6353
|
npx agentapprove disable Temporarily disable hooks
|
|
6341
6354
|
npx agentapprove uninstall Remove hooks/plugins and keep local state
|
|
6342
6355
|
npx agentapprove purge Remove hooks/plugins and delete local state
|
|
@@ -6361,10 +6374,18 @@ async function profilesCommand() {
|
|
|
6361
6374
|
}
|
|
6362
6375
|
const profiles = listHermesProfiles();
|
|
6363
6376
|
const currentlyInstalled = profiles.filter((pr) => pr.installed).map((pr) => pr.name);
|
|
6377
|
+
const outdated = new Set(profiles.filter((pr) => pr.installed && pr.version !== HERMES_PLUGIN_VERSION).map((pr) => pr.name));
|
|
6378
|
+
const rowState = (pr) => {
|
|
6379
|
+
if (!pr.installed)
|
|
6380
|
+
return "not installed";
|
|
6381
|
+
if (pr.version !== HERMES_PLUGIN_VERSION) {
|
|
6382
|
+
return `installed v${pr.version ?? "?"} → update available (v${HERMES_PLUGIN_VERSION})`;
|
|
6383
|
+
}
|
|
6384
|
+
return `installed v${pr.version ?? "?"} (current)`;
|
|
6385
|
+
};
|
|
6364
6386
|
me(profiles.map((pr) => {
|
|
6365
6387
|
const label = (pr.isDefault ? `${pr.name} (default)` : pr.name).padEnd(22);
|
|
6366
|
-
|
|
6367
|
-
return `${label} ${state}`;
|
|
6388
|
+
return `${label} ${rowState(pr)}`;
|
|
6368
6389
|
}).join(`
|
|
6369
6390
|
`), "Hermes profiles");
|
|
6370
6391
|
const picked = await $e({
|
|
@@ -6372,7 +6393,7 @@ async function profilesCommand() {
|
|
|
6372
6393
|
options: profiles.map((pr) => ({
|
|
6373
6394
|
value: pr.name,
|
|
6374
6395
|
label: pr.isDefault ? `${pr.name} (default)` : pr.name,
|
|
6375
|
-
hint: pr
|
|
6396
|
+
hint: rowState(pr)
|
|
6376
6397
|
})),
|
|
6377
6398
|
initialValues: currentlyInstalled,
|
|
6378
6399
|
required: false
|
|
@@ -6383,24 +6404,40 @@ async function profilesCommand() {
|
|
|
6383
6404
|
}
|
|
6384
6405
|
const target = picked;
|
|
6385
6406
|
const toInstall = target.filter((n) => !currentlyInstalled.includes(n));
|
|
6407
|
+
const toUpdate = target.filter((n) => currentlyInstalled.includes(n) && outdated.has(n));
|
|
6386
6408
|
const toRemove = currentlyInstalled.filter((n) => !target.includes(n));
|
|
6387
|
-
|
|
6388
|
-
|
|
6409
|
+
const toSync = [...toInstall, ...toUpdate];
|
|
6410
|
+
if (toSync.length === 0 && toRemove.length === 0) {
|
|
6411
|
+
ge(`No changes — every selected profile already has Agent Approve v${HERMES_PLUGIN_VERSION}.`);
|
|
6389
6412
|
return;
|
|
6390
6413
|
}
|
|
6391
|
-
|
|
6414
|
+
const planLines = [
|
|
6415
|
+
toInstall.length ? `Install into: ${toInstall.join(", ")}` : null,
|
|
6416
|
+
toUpdate.length ? `Update to v${HERMES_PLUGIN_VERSION}: ${toUpdate.join(", ")}` : null,
|
|
6417
|
+
toRemove.length ? `Remove from: ${toRemove.join(", ")}` : null
|
|
6418
|
+
].filter(Boolean);
|
|
6419
|
+
me(planLines.join(`
|
|
6420
|
+
`), "Planned changes");
|
|
6421
|
+
const confirm = await ce({ message: "Apply these changes?" });
|
|
6422
|
+
if (lD(confirm) || !confirm) {
|
|
6423
|
+
he("Cancelled — no changes made.");
|
|
6424
|
+
process.exit(0);
|
|
6425
|
+
}
|
|
6426
|
+
if (toSync.length > 0) {
|
|
6392
6427
|
const s = _2();
|
|
6393
|
-
|
|
6394
|
-
|
|
6428
|
+
const verb = toInstall.length && toUpdate.length ? "Installing/updating" : toUpdate.length ? "Updating" : "Installing";
|
|
6429
|
+
s.start(`${verb} Agent Approve in ${toSync.length} profile(s)…`);
|
|
6430
|
+
const sync = await syncHermesProfiles(toSync);
|
|
6395
6431
|
if (sync.results.length === 0) {
|
|
6396
|
-
s.stop(source_default.red(`
|
|
6432
|
+
s.stop(source_default.red(`Failed: ${sync.error ?? "unknown error"}`));
|
|
6397
6433
|
ge("No changes made.");
|
|
6398
6434
|
process.exit(1);
|
|
6399
6435
|
}
|
|
6400
|
-
s.stop(sync.ok ? "
|
|
6436
|
+
s.stop(sync.ok ? "Done" : "Done (some profiles failed)");
|
|
6401
6437
|
for (const r2 of sync.results) {
|
|
6438
|
+
const action = toUpdate.includes(r2.profile) ? "updated to" : "installed";
|
|
6402
6439
|
if (r2.success)
|
|
6403
|
-
v2.success(`${r2.profile}: Agent Approve ${HERMES_PLUGIN_VERSION}
|
|
6440
|
+
v2.success(`${r2.profile}: Agent Approve ${action} v${HERMES_PLUGIN_VERSION}`);
|
|
6404
6441
|
else
|
|
6405
6442
|
v2.error(`${r2.profile}: ${r2.error ?? "failed"}`);
|
|
6406
6443
|
}
|
|
@@ -6824,6 +6861,7 @@ ${source_default.yellow("Examples:")}
|
|
|
6824
6861
|
npx agentapprove pair # Link a new iOS device
|
|
6825
6862
|
npx agentapprove refresh # Get new token
|
|
6826
6863
|
npx agentapprove status # Check status
|
|
6864
|
+
npx agentapprove profiles # Manage Hermes profiles
|
|
6827
6865
|
|
|
6828
6866
|
${source_default.dim("Learn more at")} ${source_default.cyan("https://agentapprove.com")}
|
|
6829
6867
|
`);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentapprove",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.1.29",
|
|
4
|
+
"description": "AI agent observability and control from your iPhone or Apple Watch",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"agentapprove": "dist/cli.js"
|
|
@@ -18,18 +18,34 @@
|
|
|
18
18
|
"dist/**/*"
|
|
19
19
|
],
|
|
20
20
|
"keywords": [
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"gemini",
|
|
21
|
+
"antigravity",
|
|
22
|
+
"antigravity-cli",
|
|
23
|
+
"google-antigravity",
|
|
24
|
+
"hermes",
|
|
26
25
|
"openclaw",
|
|
27
26
|
"opencode",
|
|
27
|
+
"openhands",
|
|
28
28
|
"pi",
|
|
29
|
+
"windsurf",
|
|
30
|
+
"claude",
|
|
31
|
+
"claude-code",
|
|
32
|
+
"cursor",
|
|
33
|
+
"codex",
|
|
34
|
+
"openai-codex",
|
|
35
|
+
"github-copilot",
|
|
36
|
+
"vscode",
|
|
37
|
+
"gemini-cli",
|
|
38
|
+
"legacy-gemini",
|
|
29
39
|
"ai",
|
|
30
40
|
"agent",
|
|
41
|
+
"coding-agent",
|
|
31
42
|
"approval",
|
|
43
|
+
"observability",
|
|
44
|
+
"control",
|
|
45
|
+
"policy",
|
|
46
|
+
"monitoring",
|
|
32
47
|
"governance",
|
|
48
|
+
"e2e-encryption",
|
|
33
49
|
"ai-safety",
|
|
34
50
|
"security",
|
|
35
51
|
"hooks",
|