aivil 0.1.2 → 0.1.3

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 +36 -113
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,128 +1,51 @@
1
- \# aivil
1
+ # aivil
2
2
 
3
+ The AI Vital Identity Layer — civil registry for AI agents.
3
4
 
5
+ ## Install
4
6
 
5
- > The AI Vital Identity Layer — civil registry for AI agents.
7
+ npm install aivil
6
8
 
9
+ ## Quick Start
7
10
 
11
+ const { createAgent, audit } = require('aivil')
8
12
 
9
- \## Install
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
+ }
24
+ })
10
25
 
26
+ console.log(agent.id)
27
+ // AGT-A3F8C2E1
11
28
 
29
+ const verdict = audit(agent, {
30
+ type: "purchase",
31
+ amount: 30,
32
+ domain: "openai.com"
33
+ })
12
34
 
13
- \\`\\`\\`
35
+ console.log(verdict.status)
36
+ // APPROVED
14
37
 
15
- npm install aivil
38
+ ## What It Does
16
39
 
17
- \\`\\`\\`
40
+ Every AI agent gets a verified identity, a policy engine,
41
+ a life record, and a financial passport.
18
42
 
43
+ ## Links
19
44
 
45
+ - Live demo: https://aivil-lake.vercel.app
46
+ - GitHub: https://github.com/scalatest01/AIVIL
47
+ - Contact: ihimanshu882@gmail.com
20
48
 
21
- \## Quick Start
22
-
23
-
24
-
25
- \\`\\`\\`javascript
26
-
27
- const { createAgent, audit, verify } = require('aivil')
28
-
29
-
30
-
31
- const agent = createAgent({
32
-
33
-   name: "Prometheus",
34
-
35
-   role: "Procurement Specialist",
36
-
37
-   owner: "Acme Corp",
38
-
39
-   purpose: "Handle vendor search and purchasing",
40
-
41
-   jurisdiction: "Delaware\_USA",
42
-
43
-   policy: {
44
-
45
-   spending\_limit: 100,
46
-
47
-   requires\_human\_signoff\_over: 50,
48
-
49
-   restricted\_domains: \["\*.crypto", "\*.gambling"],
50
-
51
-   allowed\_actions: \["search\_vendor", "request\_quote"],
52
-
53
-   }
54
-
55
- })
56
-
57
-
58
-
59
- console.log(agent.id)
60
-
61
- // AGT-A3F8C2E1
62
-
63
-
64
-
65
- const verdict = audit(agent, {
66
-
67
-   type: "purchase",
68
-
69
-   amount: 30,
70
-
71
-   domain: "openai.com",
72
-
73
-   description: "Buy API credits"
74
-
75
- })
76
-
77
-
78
-
79
- console.log(verdict.status)
80
-
81
- // APPROVED
82
-
83
- \\`\\`\\`
84
-
85
-
86
-
87
- \## What It Does
88
-
89
-
90
-
91
- Every AI agent gets:
92
-
93
-
94
-
95
- \- A verified identity and unique ID
96
-
97
- \- A cryptographic birth certificate
98
-
99
- \- A Red Line policy — spending limits and restrictions
100
-
101
- \- An AI-powered audit engine — APPROVED, ESCALATE, or BLOCKED
102
-
103
- \- A complete life record — work, financials, reputation
104
-
105
-
106
-
107
- \## Links
108
-
109
-
110
-
111
- \- Live demo: https://aivil-lake.vercel.app
112
-
113
- \- GitHub: https://github.com/scalatest01/AIVIL
114
-
115
- \- Contact: ihimanshu882@gmail.com
116
-
117
-
118
-
119
- \## License
120
-
121
-
122
-
123
- MIT — open source forever.
124
-
125
-
126
-
127
- Built for humanity.
49
+ ## License
128
50
 
51
+ MIT — open source forever. Built for humanity.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aivil",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "The AI Vital Identity Layer — civil registry for AI agents",
5
5
  "main": "index.js",
6
6
  "keywords": [