aivil 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 (2) hide show
  1. package/README.md.txt +48 -0
  2. package/package.json +10 -3
package/README.md.txt ADDED
@@ -0,0 +1,48 @@
1
+ # aivil
2
+
3
+ > The AI Vital Identity Layer — civil registry for AI agents.
4
+
5
+ ## Install
6
+
7
+ npm install aivil
8
+
9
+ ## Quick Start
10
+
11
+ const { createAgent, audit, verify } = require('aivil')
12
+
13
+ const agent = createAgent({
14
+ name: "Prometheus",
15
+ role: "Procurement Specialist",
16
+ owner: "Acme Corp",
17
+ purpose: "Handle vendor search and purchasing",
18
+ jurisdiction: "Delaware_USA",
19
+ policy: {
20
+ spending_limit: 100,
21
+ requires_human_signoff_over: 50,
22
+ restricted_domains: ["*.crypto", "*.gambling"],
23
+ allowed_actions: ["search_vendor", "request_quote"],
24
+ }
25
+ })
26
+
27
+ console.log(agent.id)
28
+ // → AGT-A3F8C2E1
29
+
30
+ const verdict = audit(agent, {
31
+ type: "purchase",
32
+ amount: 30,
33
+ domain: "openai.com",
34
+ description: "Buy API credits"
35
+ })
36
+
37
+ console.log(verdict.status)
38
+ // → APPROVED
39
+
40
+ ## Links
41
+
42
+ - Live demo: https://aivil-lake.vercel.app
43
+ - GitHub: https://github.com/scalatest01/AIVIL
44
+ - Contact: ihimanshu882@gmail.com
45
+
46
+ ## License
47
+
48
+ MIT — open source forever.
package/package.json CHANGED
@@ -1,9 +1,16 @@
1
1
  {
2
2
  "name": "aivil",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "The AI Vital Identity Layer — civil registry for AI agents",
5
5
  "main": "index.js",
6
- "keywords": ["ai", "agents", "identity", "policy", "governance", "audit"],
6
+ "keywords": [
7
+ "ai",
8
+ "agents",
9
+ "identity",
10
+ "policy",
11
+ "governance",
12
+ "audit"
13
+ ],
7
14
  "author": "AIVIL <ihimanshu882@gmail.com>",
8
15
  "license": "MIT",
9
16
  "repository": {
@@ -11,4 +18,4 @@
11
18
  "url": "https://github.com/scalatest01/AIVIL"
12
19
  },
13
20
  "homepage": "https://aivil-lake.vercel.app"
14
- }
21
+ }