Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Implementation:A5c ai Babysitter verify published release

From Leeroopedia
Knowledge Sources
Domains Release_Pipeline, Consumer_Validation
Last Updated 2026-10-23 00:00 GMT

Overview

CLI tool for validating published npm packages by installing them as a consumer and running smoke tests.

Description

The verify-published-release.mjs script validates that published packages are installable and importable. For each package at an exact version, it:

  1. Installs the package from npm in a temp directory
  2. Verifies root import (package entry point)
  3. Verifies subpath imports (all bin entries and export paths)
  4. Runs bin smoke tests (each CLI binary with safe args)
  5. Collects results into checks.json, resolved-versions.json, and summary.json

The evidence produced is consumed by the promotion gate to decide whether a candidate release can be promoted to a channel.

Usage

  • Release pipeline Step 5: After candidate publication, verify every published package before channel promotion.

Code Reference

Source Location

  • Repository: Babysitter
  • File: scripts/verify-published-release.mjs:L1-373

Signature

node scripts/verify-published-release.mjs \
  --version <exact> \
  [--package <name>] \
  [--report-dir <dir>] \
  [--npm <bin>] \
  [--keep-temp]

Import

# CLI script — run directly
node scripts/verify-published-release.mjs --version 6.0.4

I/O Contract

Inputs

Name Type Required Description
--version string Yes Exact immutable version to verify
--package string No Single package to verify (repeatable)
--report-dir string No Output directory (default: artifacts/published-consumer)
--npm string No npm binary path

Outputs

Name Type Description
checks.json JSON Check statuses: package-install, root-import, subpath-import, bin-smoke
resolved-versions.json JSON Resolved versions per package
summary.json JSON Summary of all checks

Usage Examples

Verify All Published Packages

# Verify all packages at version 6.0.4
node scripts/verify-published-release.mjs --version 6.0.4

# Verify a single package
node scripts/verify-published-release.mjs --version 6.0.4 --package @a5c-ai/babysitter-sdk

Related Pages

Implements Principle

Requires Environment

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment