Implementation:A5c ai Babysitter verify published release
Appearance
| 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:
- Installs the package from npm in a temp directory
- Verifies root import (package entry point)
- Verifies subpath imports (all bin entries and export paths)
- Runs bin smoke tests (each CLI binary with safe args)
- 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