@sidclaw/sdk
Advanced tools
+13
-0
@@ -84,2 +84,15 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } | ||
| } | ||
| if (approval.status !== "approved") { | ||
| throw new (0, _chunkLDGD3PNNcjs.ActionDeniedError)( | ||
| `Approval not granted: ${String(approval.status)}`, | ||
| decision.trace_id, | ||
| decision.policy_rule_id | ||
| ); | ||
| } | ||
| } else if (decision.decision !== "allow") { | ||
| throw new (0, _chunkLDGD3PNNcjs.ActionDeniedError)( | ||
| `Unexpected policy decision: ${String(decision.decision)}`, | ||
| decision.trace_id, | ||
| decision.policy_rule_id | ||
| ); | ||
| } | ||
@@ -86,0 +99,0 @@ try { |
+13
-0
@@ -84,2 +84,15 @@ import { | ||
| } | ||
| if (approval.status !== "approved") { | ||
| throw new ActionDeniedError( | ||
| `Approval not granted: ${String(approval.status)}`, | ||
| decision.trace_id, | ||
| decision.policy_rule_id | ||
| ); | ||
| } | ||
| } else if (decision.decision !== "allow") { | ||
| throw new ActionDeniedError( | ||
| `Unexpected policy decision: ${String(decision.decision)}`, | ||
| decision.trace_id, | ||
| decision.policy_rule_id | ||
| ); | ||
| } | ||
@@ -86,0 +99,0 @@ try { |
+1
-1
| { | ||
| "name": "@sidclaw/sdk", | ||
| "version": "0.1.12", | ||
| "version": "0.1.13", | ||
| "description": "Governance SDK for AI agents — identity, policy, approval, and audit", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
252540
0.37%4933
0.53%