/**
 * RPA 地址 commit 模式：
 * - real（默认）：MotherShip 联想 + place commit + 真实 axel/quote
 * - mock：仅内部 plumbing，跳过 place commit，MotherShip 不会返回真实报价（禁止用于对账）
 */

export type RpaAddressMode = "real" | "mock";

export function getRpaAddressMode(): RpaAddressMode {
  const raw = process.env.RPA_ADDRESS_MODE?.trim().toLowerCase();
  if (raw === "mock") {
    return "mock";
  }
  return "real";
}

export function isRpaAddressMockMode(): boolean {
  return getRpaAddressMode() === "mock";
}
