test-wuying-agentbay-sdk 0.13.0-beta.20251210170519 → 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.d.mts CHANGED
@@ -143,7 +143,7 @@ interface CommandResult extends ApiResponse {
143
143
  stdout?: string;
144
144
  /** Standard error from the command execution */
145
145
  stderr?: string;
146
- /** Trace ID for error tracking. Only present when errorCode != 0. Used for quick problem localization. */
146
+ /** Trace ID for error tracking. Only present when exit_code != 0. Used for quick problem localization. */
147
147
  traceId?: string;
148
148
  }
149
149
  /**
package/dist/index.d.ts CHANGED
@@ -143,7 +143,7 @@ interface CommandResult extends ApiResponse {
143
143
  stdout?: string;
144
144
  /** Standard error from the command execution */
145
145
  stderr?: string;
146
- /** Trace ID for error tracking. Only present when errorCode != 0. Used for quick problem localization. */
146
+ /** Trace ID for error tracking. Only present when exit_code != 0. Used for quick problem localization. */
147
147
  traceId?: string;
148
148
  }
149
149
  /**
package/dist/index.mjs CHANGED
@@ -6026,15 +6026,15 @@ var _Command = class _Command {
6026
6026
  }
6027
6027
  const stdout = dataJson.stdout || "";
6028
6028
  const stderr = dataJson.stderr || "";
6029
- const errorCode = dataJson.errorCode || 0;
6029
+ const exitCode = dataJson.exit_code || 0;
6030
6030
  const traceId = dataJson.traceId || "";
6031
- const success = errorCode === 0;
6031
+ const success = exitCode === 0;
6032
6032
  const output = stdout + stderr;
6033
6033
  return {
6034
6034
  requestId: result.requestId,
6035
6035
  success,
6036
6036
  output,
6037
- exitCode: errorCode,
6037
+ exitCode,
6038
6038
  stdout,
6039
6039
  stderr,
6040
6040
  traceId: traceId || void 0,
@@ -6054,14 +6054,14 @@ var _Command = class _Command {
6054
6054
  if (errorData && typeof errorData === "object") {
6055
6055
  const stdout = errorData.stdout || "";
6056
6056
  const stderr = errorData.stderr || "";
6057
- const errorCode = errorData.errorCode || 0;
6057
+ const exitCode = errorData.exit_code || errorData.errorCode || 0;
6058
6058
  const traceId = errorData.traceId || "";
6059
6059
  const output = stdout + stderr;
6060
6060
  return {
6061
6061
  requestId: result.requestId,
6062
6062
  success: false,
6063
6063
  output,
6064
- exitCode: errorCode,
6064
+ exitCode,
6065
6065
  stdout,
6066
6066
  stderr,
6067
6067
  traceId: traceId || void 0,