daniel-ai-permissions-layer 0.2.0 → 0.2.2

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 CHANGED
@@ -21,7 +21,7 @@ Middleware that intercepts AI agent tool calls, applies your rules, and returns
21
21
  ## Quick Start (OpenClaw)
22
22
 
23
23
  ```bash
24
- openclaw plugins install ai-permissions-openclaw
24
+ openclaw plugins install daniel-ai-permissions-openclaw
25
25
  openclaw gateway restart
26
26
  openclaw ai-permissions compile
27
27
  ```
@@ -117,7 +117,7 @@ Internal tools (pairing, device-pair, openclaw.*) are never intercepted.
117
117
  ### Installation
118
118
 
119
119
  ```bash
120
- openclaw plugins install ai-permissions-openclaw
120
+ openclaw plugins install daniel-ai-permissions-openclaw
121
121
  openclaw gateway restart
122
122
  ```
123
123
 
@@ -212,7 +212,7 @@ This is enabled by default. Disable or customize via `pathProtection` in plugin
212
212
 
213
213
  ## Configuration
214
214
 
215
- Edit `~/.openclaw/openclaw.json` under `plugins.entries.ai-permissions-openclaw.config`:
215
+ Edit `~/.openclaw/openclaw.json` under `plugins.entries.daniel-ai-permissions-openclaw.config`:
216
216
 
217
217
  | Option | Default | Description |
218
218
  |--------|---------|--------------|
@@ -227,7 +227,7 @@ Edit `~/.openclaw/openclaw.json` under `plugins.entries.ai-permissions-openclaw.
227
227
  {
228
228
  "plugins": {
229
229
  "entries": {
230
- "ai-permissions-openclaw": {
230
+ "daniel-ai-permissions-openclaw": {
231
231
  "enabled": true,
232
232
  "config": {
233
233
  "rulesPath": "~/.openclaw/ai-permissions-rules.json",
@@ -264,11 +264,11 @@ npx ai-permissions-compile --openclaw examples/rules.yaml ~/.openclaw/ai-permiss
264
264
  ## Library Usage
265
265
 
266
266
  ```bash
267
- npm install ai-permissions-layer
267
+ npm install daniel-ai-permissions-layer
268
268
  ```
269
269
 
270
270
  ```ts
271
- import { createMiddleware, match } from 'ai-permissions-layer';
271
+ import { createMiddleware, match } from 'daniel-ai-permissions-layer';
272
272
 
273
273
  const rules = [
274
274
  { action: 'block', tool: 'gmail.delete', reason: 'no delete' },
package/dist/cli.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "daniel-ai-permissions-layer",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Offline-first middleware for AI agent tool call permissions. Intercepts tool calls, applies rules, returns ALLOW | BLOCK | REQUIRES_APPROVAL.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "bin": {
9
- "ai-permissions-compile": "./dist/cli.js"
9
+ "ai-permissions-compile": "dist/cli.js"
10
10
  },
11
11
  "scripts": {
12
12
  "build": "tsc",
@@ -22,7 +22,7 @@
22
22
  ],
23
23
  "repository": {
24
24
  "type": "git",
25
- "url": "https://github.com/wei292224644/my-ai-permissions-layer.git"
25
+ "url": "git+https://github.com/wei292224644/my-ai-permissions-layer.git"
26
26
  },
27
27
  "bugs": {
28
28
  "url": "https://github.com/wei292224644/my-ai-permissions-layer/issues"