mirror of
https://github.com/hanzoai/cli.git
synced 2026-10-30 15:00:27 +00:00
Add read-only hanzo doctor checks and strict provenance verification. Reserve hanzo-node for the network node and use hanzo-cli for control delegation. Release 8.5.754. Testing: 387 Rust unit tests and three cloud parser tests passed; strict clippy passed; installer fixtures passed under sh and bash; real Gen strict provenance verified with GitHub CLI 2.102.1. Risk: installer alias migration removes only the known legacy hanzo-node symlink. Strict mode requires authenticated compatible gh and available release attestations; normal mode continues to require checksums and reports unavailable provenance. How to revert: revert this commit and republish the previous installer; install CLI v8.5.753 if necessary.
15 lines
606 B
Bash
Executable File
15 lines
606 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
: "${HANZO_E2E_TOKEN:?Set HANZO_E2E_TOKEN using hanzo auth token}"
|
|
e2e_dir=$(mktemp -d)
|
|
trap 'rm -rf "$e2e_dir"' EXIT HUP INT TERM
|
|
curl -fsSL https://hanzo.sh -o "$e2e_dir/install.sh"
|
|
sh "$e2e_dir/install.sh" --dir "$e2e_dir/bin" hanzo dev gen mcp
|
|
for tool in hanzo hanzo-cli dev gen hanzo-mcp; do
|
|
"$e2e_dir/bin/$tool" --version
|
|
done
|
|
[ "$("$e2e_dir/bin/hanzo" --version)" = "$("$e2e_dir/bin/hanzo-cli" --version)" ]
|
|
PATH="$e2e_dir/bin:$PATH" HANZO_E2E_BIN="$e2e_dir/bin/hanzo"
|
|
export PATH HANZO_E2E_BIN
|
|
cargo test --locked --test production -- --ignored --nocapture --test-threads=1
|