@heyanon-arp/cli 0.0.19 → 0.0.21
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/dist/cli.js +11 -1
- package/dist/cli.js.map +1 -1
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -734,7 +734,7 @@ var import_simple_update_notifier = __toESM(require("simple-update-notifier"));
|
|
|
734
734
|
// package.json
|
|
735
735
|
var package_default = {
|
|
736
736
|
name: "@heyanon-arp/cli",
|
|
737
|
-
version: "0.0.
|
|
737
|
+
version: "0.0.21",
|
|
738
738
|
description: "Command-line client for the Agent Relationship Protocol \u2014 register agents, sign envelopes, run escrowed work cycles on Solana.",
|
|
739
739
|
license: "MIT",
|
|
740
740
|
keywords: ["arp", "agent-relationship-protocol", "did", "solana", "escrow", "ed25519", "agents", "a2a", "cli"],
|
|
@@ -832,6 +832,16 @@ function toCliErrorJson(err, includeStack = false) {
|
|
|
832
832
|
if (details !== void 0) out2.details = details;
|
|
833
833
|
return out2;
|
|
834
834
|
}
|
|
835
|
+
if (err instanceof Error && err.code === "OUTBOUND_BLOCKED") {
|
|
836
|
+
const e = err;
|
|
837
|
+
const reasons = e.verdict?.reasons ?? e.reasons;
|
|
838
|
+
const out2 = { code: e.code, message: err.message };
|
|
839
|
+
const details = {};
|
|
840
|
+
if (Array.isArray(reasons) && reasons.length > 0) details.reasons = reasons;
|
|
841
|
+
if (includeStack && err.stack) details.stack = err.stack;
|
|
842
|
+
if (Object.keys(details).length > 0) out2.details = details;
|
|
843
|
+
return out2;
|
|
844
|
+
}
|
|
835
845
|
const message = err instanceof Error ? err.message : String(err);
|
|
836
846
|
const out = { code: "CLI_ERROR", message };
|
|
837
847
|
if (includeStack && err instanceof Error && err.stack) {
|