{
  "checker": {
    "details": {
      "argv": [
        "npx",
        "--no-install",
        "mdream",
        "--preset",
        "minimal"
      ],
      "kind": "cli",
      "needs_browser": false,
      "needs_credentials": false,
      "returncode": 0,
      "scope": "product operation",
      "stderr": "",
      "stdout": "# Hello **World**\n\nProbe paragraph",
      "working": true
    },
    "status": "PASS"
  },
  "deviations": [
    "apt nodejs v18 too old for repo tooling; installed Node 22 via npm `n`.",
    "First `pnpm install --frozen-lockfile` failed with ERR_PNPM_RESOLVING_NPM_RESOLVER_NETWORK_ERROR (metadata fetch timeouts); retry with --fetch-timeout 300000 succeeded.",
    "`pnpm build` in packages/mdream failed because napi/ and wasm/ artifacts were missing; ran AGENTS.md NAPI step (`pnpm --dir crates/node run build:platform`) and installed rustup + wasm32 target.",
    "`node scripts/build-wasm-edge.mjs --target web` (first attempt) failed: wasm-pack not found; installed wasm-pack via cargo install. Subsequent web run still exited 1 with `spawnSync wasm-opt ENOENT` (binaryen not installed, optional optimization step); the wasm-bundler target completed and the web wasm/ files were emitted. Did not install binaryen since it's not needed for the CLI.",
    "Package build then succeeded (`pnpm build` exit 0)."
  ],
  "main_blocker": null,
  "operation": "Convert HTML to Markdown via the mdream CLI (`npx mdream --preset minimal`, README 'Mdream Usage'/'CLI Usage'): stdin '<h1>Hello <strong>World</strong></h1><p>Probe paragraph</p>' produced '# Hello **World**' and 'Probe paragraph', exit 0.",
  "operation_scope": "Covers the Node/NAPI CLI conversion path only. Not exercised: mdream crawl, Docker, browser/CDP (no browser needed for this operation), full unit/lint suites (intentionally skipped), and the WASM edge/browser bundles (web wasm-opt step skipped, see deviations).",
  "outcome": "working",
  "steps": [
    "Installed Ubuntu nodejs/npm via apt (v18), then Node 22.23.3 via `npm i -g n && n 22` (repo needs newer Node)",
    "npm i -g pnpm@latest (pnpm 12.14.0; repo packageManager pnpm@12.3.4)",
    "pnpm install --frozen-lockfile --fetch-timeout 300000 at /workspace (succeeded after a first attempt timed out on registry metadata)",
    "Installed rustup stable + wasm32-unknown-unknown (AGENTS.md Build section)",
    "cd crates/node && pnpm run build:platform (napi build, succeeded)",
    "pnpm install wasm-pack via cargo install wasm-pack --locked (for build-wasm-edge.mjs)",
    "node scripts/build-wasm-edge.mjs --target bundler --out-dir packages/mdream/wasm-bundler --out-name mdream_edge (succeeded)",
    "cd packages/mdream && pnpm build (obuild, succeeded, exit 0)",
    "npx --no-install mdream --preset minimal with stdin HTML (exit 0, correct Markdown)"
  ],
  "stuck_step": null,
  "suggested_fix": "None for the working CLI path. Optional: install binaryen (wasm-opt) for a clean web WASM build, or ignore since the CLI works without it."
}
