@moneolabs/guard
Advanced tools
+2
-2
| { | ||
| "name": "@moneolabs/guard", | ||
| "version": "0.2.1", | ||
| "version": "0.3.0", | ||
| "description": "Spending policy for AI agents, evaluated before anything is signed.", | ||
@@ -59,4 +59,4 @@ "license": "MIT", | ||
| "dependencies": { | ||
| "@moneolabs/core": "0.2.1" | ||
| "@moneolabs/core": "0.3.0" | ||
| } | ||
| } |
+3
-3
@@ -129,7 +129,7 @@ # @moneolabs/guard | ||
| { perTransaction: { max: "$100" } }, | ||
| { prices: fixedPrices({ AAPLX: 228.41 }) }, | ||
| { prices: fixedPrices({ AAPL: 309.92 }) }, | ||
| ); | ||
| await guard.check({ action: "trade", amount: "2 AAPLX" }); | ||
| // blocked: "$456.82 exceeds the $100.00 per-transaction limit" | ||
| await guard.check({ action: "trade", amount: "2 AAPL" }); | ||
| // blocked: "$619.84 exceeds the $100.00 per-transaction limit" | ||
| ``` | ||
@@ -136,0 +136,0 @@ |
196039
0+ Added
- Removed
Updated