import {
  submitErrorReport
} from "./chunk-23OVF3MX.js";
import "./chunk-X5AS5G23.js";
import {
  getWalletOrExit
} from "./chunk-QOYH6AOG.js";
import "./chunk-HFEYSQRZ.js";
import "./chunk-LNQRIXFK.js";
import "./chunk-Y4VZACTC.js";
import "./chunk-VDBUUHJF.js";
import "./chunk-ITCDZXBZ.js";
import "./chunk-QZBSRYSW.js";
import "./chunk-NROPRHIC.js";
import {
  fromNeverthrowError,
  outputAndExit,
  successResponse
} from "./chunk-7EBJ4BCH.js";
import "./chunk-C7KWYVS3.js";

// src/cli/commands/report-error.ts
var SURFACE = "cli:report-error";
var reportErrorCommand = async (args) => {
  const {
    evm: { address }
  } = await getWalletOrExit(args);
  const result = await submitErrorReport(SURFACE, args, address, args.dev);
  if (result.isErr()) {
    return outputAndExit(fromNeverthrowError(result), args);
  }
  return outputAndExit(successResponse(result.value), args);
};
export {
  reportErrorCommand
};
//# sourceMappingURL=report-error-F44RFQ54.js.map