@vinaystwt/xmpp-policy-engine 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.
- package/README.md +37 -0
- package/package.json +8 -5
package/README.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# @vinaystwt/xmpp-policy-engine
|
|
2
|
+
|
|
3
|
+
xMPP Policy Engine is the decision layer that keeps agent payments inside operator-defined limits.
|
|
4
|
+
|
|
5
|
+
It evaluates service allowlists, agent ceilings, treasury state, and contract-backed policy before a payment is allowed to proceed.
|
|
6
|
+
|
|
7
|
+
## Position In The Package Family
|
|
8
|
+
|
|
9
|
+
Most builders should start with:
|
|
10
|
+
|
|
11
|
+
- `@vinaystwt/xmpp-core`
|
|
12
|
+
- `@vinaystwt/xmpp-mcp`
|
|
13
|
+
|
|
14
|
+
Use `@vinaystwt/xmpp-policy-engine` directly only if you need to embed xMPP policy decisions into your own gateway or worker runtime.
|
|
15
|
+
|
|
16
|
+
## Install
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
npm install @vinaystwt/xmpp-policy-engine
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Best For
|
|
23
|
+
|
|
24
|
+
- policy previews before payment
|
|
25
|
+
- shared agent and service budget enforcement
|
|
26
|
+
- contract-aware treasury control
|
|
27
|
+
|
|
28
|
+
## Related Packages
|
|
29
|
+
|
|
30
|
+
- `@vinaystwt/xmpp-contract-runtime`
|
|
31
|
+
- `@vinaystwt/xmpp-http-interceptor`
|
|
32
|
+
- `@vinaystwt/xmpp-core`
|
|
33
|
+
|
|
34
|
+
## Docs
|
|
35
|
+
|
|
36
|
+
- repo:
|
|
37
|
+
- https://github.com/Vinaystwt/xMPP
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vinaystwt/xmpp-policy-engine",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Advanced xMPP policy evaluation package for service, agent, treasury, and contract-aware decisions.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "dist/policy-engine/src/index.js",
|
|
8
8
|
"types": "dist/policy-engine/src/index.d.ts",
|
|
9
9
|
"files": [
|
|
10
10
|
"dist",
|
|
11
|
+
"README.md",
|
|
11
12
|
"LICENSE"
|
|
12
13
|
],
|
|
13
14
|
"sideEffects": false,
|
|
@@ -24,7 +25,9 @@
|
|
|
24
25
|
"xmpp",
|
|
25
26
|
"policy",
|
|
26
27
|
"stellar",
|
|
27
|
-
"agents"
|
|
28
|
+
"agents",
|
|
29
|
+
"budgets",
|
|
30
|
+
"treasury"
|
|
28
31
|
],
|
|
29
32
|
"exports": {
|
|
30
33
|
".": {
|
|
@@ -44,7 +47,7 @@
|
|
|
44
47
|
"test": "vitest run --passWithNoTests"
|
|
45
48
|
},
|
|
46
49
|
"dependencies": {
|
|
47
|
-
"@vinaystwt/xmpp-contract-runtime": "0.1.
|
|
48
|
-
"@vinaystwt/xmpp-types": "0.1.
|
|
50
|
+
"@vinaystwt/xmpp-contract-runtime": "0.1.1",
|
|
51
|
+
"@vinaystwt/xmpp-types": "0.1.1"
|
|
49
52
|
}
|
|
50
53
|
}
|