Files
zeekay b692102e8c Release 8.5.753 with CLI commands regenerated from the live API
CI reads the deployed public API document, but the local helper still fetched a private pinned YAML file. Generate from the public document consistently and refresh its digest, commands, and live evidence together.

Testing: workspace suite; corrected evidence provenance and reran CLI/spec regression tests successfully; strict clippy; spec-check; 1025 live probes found no absent coordinates, with 53 inconclusive responses.
Risk: medium; generated commands follow current API shapes and remove retired routes.
How to revert: revert this commit and install v8.5.752.
2026-10-20 01:59:31 -07:00

23 lines
946 B
Bash
Executable File

#!/usr/bin/env sh
# Generate from the API document supplied by value in SPEC. SPEC_REF identifies
# the API release that supplied it. CI and make spec-check use the public
# /v1/openapi.json document; .spec-lock records its digest.
# --check refuses any projection change without rewriting files.
set -eu
cd "$(dirname "$0")/.."
# An apostrophe inside ${VAR:?word} opens a quote the parser never closes, and
# the whole script then fails to parse rather than this line failing to run.
[ -n "${SPEC:-}" ] || { echo "generate.sh: SPEC must name the cloud API document; the client lane in hanzoai/ci sets it" >&2; exit 1; }
export HANZO_REGISTRY="$SPEC" HANZO_SPEC_REF="${SPEC_REF:-unpinned}"
if [ "${1:-}" = "--check" ]; then
cargo run --quiet --features maintainer --bin genspec --locked -- --check
exit 0
fi
cargo run --quiet --features maintainer --bin genspec --locked
cargo run --quiet --features maintainer --bin genproduct --locked