agent-permission 0.1.0 → 0.1.1

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.
Files changed (3) hide show
  1. package/README.md +46 -0
  2. package/dist/index.js +0 -0
  3. package/package.json +13 -6
package/README.md ADDED
@@ -0,0 +1,46 @@
1
+ # Agent Permission CLI
2
+
3
+ Run Agent Permission checks from a terminal or install agent-readable instructions into a project.
4
+
5
+ ## Quickstart
6
+
7
+ ```bash
8
+ npx agent-permission config set api-key <YOUR_API_KEY>
9
+ npx agent-permission check https://example.com/blog-post --action summarize --exit-code
10
+ ```
11
+
12
+ ## Give This To Your Agent
13
+
14
+ ```bash
15
+ npx agent-permission install --adapter auto
16
+ ```
17
+
18
+ This adds an Agent Permission block to the local agent instruction file, such as `AGENTS.md`, `CLAUDE.md`, or `agent-permission.chatgpt.md`, depending on the selected adapter.
19
+
20
+ ## Commands
21
+
22
+ ```bash
23
+ agent-permission check <url> --action <crawl|summarize|extract|train|transact|post>
24
+ agent-permission batch --file checks.json
25
+ agent-permission verify-receipt --file receipt.json
26
+ agent-permission install --adapter auto|codex|claude|chatgpt|openclaw
27
+ agent-permission config set api-key <key>
28
+ agent-permission config doctor
29
+ ```
30
+
31
+ Use `--json` for machine-readable output and `--exit-code` to map decisions to process status:
32
+
33
+ - `0`: allow
34
+ - `2`: escalate
35
+ - `3`: deny
36
+ - `1`: CLI or API error
37
+
38
+ ## Environment
39
+
40
+ ```bash
41
+ AGENT_PERMISSION_API_KEY=<key>
42
+ AGENT_PERMISSION_API_URL=<url>
43
+ AGENT_PERMISSION_DEFAULT_MODE=strict
44
+ ```
45
+
46
+ Agent Permission evaluates URL access signals from `robots.txt`, `llms.txt`, and OpenTerms, then returns a signed receipt for auditability.
package/dist/index.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,17 +1,24 @@
1
1
  {
2
2
  "name": "agent-permission",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Public CLI for Agent Permission checks and agent workspace installation.",
5
5
  "type": "module",
6
- "bin": {
7
- "agent-permission": "dist/index.js",
8
- "skills": "dist/index.js"
9
- },
6
+ "bin": "./dist/index.js",
10
7
  "files": [
11
8
  "dist"
12
9
  ],
10
+ "keywords": [
11
+ "ai",
12
+ "agents",
13
+ "permissions",
14
+ "robots.txt",
15
+ "llms.txt",
16
+ "openterms",
17
+ "cli"
18
+ ],
19
+ "license": "MIT",
13
20
  "scripts": {
14
- "build": "tsc -p tsconfig.json",
21
+ "build": "tsc -p tsconfig.json && node -e \"require('fs').chmodSync('dist/index.js', 0o755)\"",
15
22
  "prepack": "npm run build"
16
23
  },
17
24
  "engines": {