import { ArgumentError, AuthRequiredError, CommandExecutionError, EmptyResultError } from '@jackwener/opencli/errors'; import { cli, Strategy } from '@jackwener/opencli/registry'; import { canonicalizeProductUrl, normalizeProductId, requireProductIdArg } from './utils.js'; function escapeJsString(value) { return JSON.stringify(value); } /** * Build the in-page extractor for a Coupang product detail page. * * Tries three sources in order, mirroring search.js's chain: * 1. JSON-LD