headroomlabs-ai/headroom · error · Error

headroom-openclaw import smoke failed: ${result.error?.messa

Error message

headroom-openclaw import smoke failed: ${result.error?.message || result.stderr || result.stdout || "unknown error"}

What it means

Error "headroom-openclaw import smoke failed: ${result.error?.message || result.stderr || result.stdout || "unknown error"}" thrown in headroomlabs-ai/headroom.

Source

Thrown at scripts/verify_npm_release_assets.mjs:100

function assertOpenClawExtensionContract(cwd) {
  const smoke = `
    const mod = await import("headroom-openclaw");
    if (typeof mod.default?.register !== "function") {
      throw new Error("headroom-openclaw default export must expose register(api)");
    }
    if (typeof mod.registerHeadroomPlugin !== "function") {
      throw new Error("headroom-openclaw must export registerHeadroomPlugin(api)");
    }
    if (mod.default.register !== mod.registerHeadroomPlugin) {
      throw new Error("headroom-openclaw default.register must match registerHeadroomPlugin");
    }
  `;
  const result = spawnSync(process.execPath, ["--input-type=module", "-e", smoke], {
    cwd,
    encoding: "utf8",
  });
  if (result.status !== 0) {
    throw new Error(
      `headroom-openclaw import smoke failed: ${
        result.error?.message || result.stderr || result.stdout || "unknown error"
      }`,
    );
  }
}

for (const expected of packages) {
  const tarballPath = path.join(assetsDir, expected.tarball);
  tarballPaths.set(expected.name, tarballPath);
  const pkg = extractPackageJson(tarballPath);

  if (pkg.name !== expected.name) {
    throw new Error(`${expected.tarball} package name mismatch: expected ${expected.name}, got ${pkg.name}`);
  }
  if (pkg.version !== version) {
    throw new Error(`${expected.tarball} version mismatch: expected ${version}, got ${pkg.version}`);
  }

View on GitHub (pinned to 322425c43b)

Solutions

  1. Read the reported error (${result.error?.message || result.stderr || result.stdout}) for the root cause
  2. Ensure the tarball's declared dependencies are installed in the smoke environment
  3. Verify the built entry file exists at the path referenced by package.json exports

When it happens

Trigger: Raised by the npm release verifier when importing the packed headroom-openclaw tarball fails during the smoke test.

Common situations: See trigger scenarios.


AI-assisted analysis of headroomlabs-ai/headroom@322425c43b (2026-08-15). Data as JSON: /api/errors/ea0261ce580bae9d. Report an issue: GitHub.