test-wuying-agentbay-sdk 0.13.0-beta.20251211155407 → 0.13.0-beta.20251211201417

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/index.cjs CHANGED
@@ -6012,15 +6012,15 @@ var _Command = class _Command {
6012
6012
  }
6013
6013
  const stdout = dataJson.stdout || "";
6014
6014
  const stderr = dataJson.stderr || "";
6015
- const errorCode = dataJson.errorCode || 0;
6015
+ const exitCode = dataJson.exit_code || 0;
6016
6016
  const traceId = dataJson.traceId || "";
6017
- const success = errorCode === 0;
6017
+ const success = exitCode === 0;
6018
6018
  const output = stdout + stderr;
6019
6019
  return {
6020
6020
  requestId: result.requestId,
6021
6021
  success,
6022
6022
  output,
6023
- exitCode: errorCode,
6023
+ exitCode,
6024
6024
  stdout,
6025
6025
  stderr,
6026
6026
  traceId: traceId || void 0,
@@ -6040,14 +6040,14 @@ var _Command = class _Command {
6040
6040
  if (errorData && typeof errorData === "object") {
6041
6041
  const stdout = errorData.stdout || "";
6042
6042
  const stderr = errorData.stderr || "";
6043
- const errorCode = errorData.errorCode || 0;
6043
+ const exitCode = errorData.exit_code || errorData.errorCode || 0;
6044
6044
  const traceId = errorData.traceId || "";
6045
6045
  const output = stdout + stderr;
6046
6046
  return {
6047
6047
  requestId: result.requestId,
6048
6048
  success: false,
6049
6049
  output,
6050
- exitCode: errorCode,
6050
+ exitCode,
6051
6051
  stdout,
6052
6052
  stderr,
6053
6053
  traceId: traceId || void 0,