@oked/claude-code 0.1.8 → 0.2.0
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 +12 -7
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -26,16 +26,21 @@ oked init
|
|
|
26
26
|
|
|
27
27
|
## What gets intercepted
|
|
28
28
|
|
|
29
|
-
The hook uses a four-tier classifier
|
|
29
|
+
The hook uses a four-tier classifier. Classification is **effect-based**: it
|
|
30
|
+
detects the *kind of effect* an action has rather than matching specific command
|
|
31
|
+
names, and **defaults to no prompt**. Only destructive, irreversible, or
|
|
32
|
+
outward-facing operations put a human in the loop.
|
|
30
33
|
|
|
31
34
|
| Tier | Behavior | Examples |
|
|
32
35
|
|---|---|---|
|
|
33
|
-
| `safe` | Auto-allow, no notification |
|
|
34
|
-
| `warning` | Terminal log only, no push |
|
|
35
|
-
| `review` | Push notification, tap to approve |
|
|
36
|
-
| `high_stakes` | Push notification with confirmation | `rm -
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
| `safe` | Auto-allow, no notification | Reads & queries, a DB `SELECT`, and any command with no detected side effect — `ls`, `grep`, `jq`, `node`, `npx`, plain `curl` GET (the default) |
|
|
37
|
+
| `warning` | Terminal log only, no push | A reversible local mutation: file create / `cp` / `mv`, a `/tmp` delete, local git (`add`/`commit`), `npm install`, SQL `INSERT`/`CREATE` |
|
|
38
|
+
| `review` | Push notification, tap to approve | Sensitive-path writes (`~/.ssh`, shell rc, system dirs, OKed config), `sudo`, outward message/email sends, MCP `create_*` / `send_*` / `update_*` |
|
|
39
|
+
| `high_stakes` | Push notification with confirmation | Destructive / irreversible / external: `rm` of non-temp data, `DROP TABLE` / `DELETE FROM`, `git push` / `reset --hard` / `branch -D`, `mkfs` / `dd`-to-device / `shutdown`, `curl` POST/DELETE, `ssh`/`scp`, `npm publish`, `kill` |
|
|
40
|
+
|
|
41
|
+
A Bash command that matches none of the prompt-worthy effect categories defaults
|
|
42
|
+
to `safe` — running a command is not, by itself, something we interrupt you for.
|
|
43
|
+
(Unknown non-Bash *tools* still default to `review`.)
|
|
39
44
|
|
|
40
45
|
## How it works
|
|
41
46
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oked/claude-code",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "OKed for Claude Code - zero-code human approval for sensitive actions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"access": "public"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@oked/sdk": "0.
|
|
46
|
+
"@oked/sdk": "0.2.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"typescript": "^5.6.0"
|