@codingfrees/uap-device-control 0.1.14 → 0.1.16

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.
@@ -649,7 +649,7 @@ import path4 from "node:path";
649
649
  // package.json
650
650
  var package_default = {
651
651
  name: "@codingfrees/uap-device-control",
652
- version: "0.1.14",
652
+ version: "0.1.16",
653
653
  description: "Cross-platform outbound UAP Device Control client",
654
654
  type: "module",
655
655
  bin: {
@@ -2204,7 +2204,10 @@ function formatCliEvent(event, json2 = false) {
2204
2204
  if (event.event === "plugin.tool") {
2205
2205
  const tool = String(event.tool ?? "tool");
2206
2206
  if (event.phase === "invoking") return "\u{1F527} " + tool + " \xB7 running" + (event.deviceId ? " \xB7 " + JSON.stringify(event, ["providerId", "deviceId"]) : "");
2207
- if (event.phase === "failed") return "\u274C " + tool + " \xB7 failed";
2207
+ if (event.phase === "failed") {
2208
+ const failure = event.summary && typeof event.summary === "object" && !Array.isArray(event.summary) ? String(event.summary.error ?? "") : "";
2209
+ return "\u274C " + tool + " \xB7 failed" + (failure ? " \xB7 " + failure : "");
2210
+ }
2208
2211
  const summary2 = event.summary && typeof event.summary === "object" ? " \xB7 " + JSON.stringify(event.summary) : "";
2209
2212
  return "\u2705 " + tool + " \xB7 completed" + summary2;
2210
2213
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingfrees/uap-device-control",
3
- "version": "0.1.14",
3
+ "version": "0.1.16",
4
4
  "description": "Cross-platform outbound UAP Device Control client",
5
5
  "type": "module",
6
6
  "bin": {