@xbrowser/cli 1.0.2 → 1.0.4

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.
@@ -29,7 +29,8 @@ import {
29
29
  forwardSessionList,
30
30
  forwardViewerCheckSelector,
31
31
  isDaemonRunning
32
- } from "./chunk-Q4IGYTKR.js";
32
+ } from "./chunk-6WOSXSCQ.js";
33
+ import "./chunk-GDKLH7ZY.js";
33
34
  import "./chunk-KFQGP6VL.js";
34
35
  export {
35
36
  daemonPing,
@@ -1,6 +1,9 @@
1
1
  import {
2
2
  startDaemonProcess
3
3
  } from "./chunk-WJRE55TN.js";
4
+ import {
5
+ errMsg
6
+ } from "./chunk-GDKLH7ZY.js";
4
7
  import "./chunk-KFQGP6VL.js";
5
8
 
6
9
  // src/client/daemon-client.ts
@@ -91,7 +94,7 @@ async function forwardExec(command, params, session = "default", cdpEndpoint, ti
91
94
  try {
92
95
  return await rpcCall("exec", rpcParams, timeoutMs);
93
96
  } catch (e) {
94
- return { success: false, data: null, message: e.message, duration: 0 };
97
+ return { success: false, data: null, message: errMsg(e), duration: 0 };
95
98
  }
96
99
  }
97
100
  async function forwardChain(input, session = "default", cdpEndpoint) {
@@ -100,7 +103,7 @@ async function forwardChain(input, session = "default", cdpEndpoint) {
100
103
  try {
101
104
  return await rpcCall("chain", params, 12e4);
102
105
  } catch (e) {
103
- return { success: false, steps: [], totalDuration: 0, stoppedReason: e.message };
106
+ return { success: false, steps: [], totalDuration: 0, stoppedReason: errMsg(e) };
104
107
  }
105
108
  }
106
109
  async function forwardAgentObserve(session = "default", options) {