@base-attribution-os/cli
v0.6.0
Published
CLI validator for Base Builder Code attribution.
Readme
@base-attribution-os/cli
Command-line validation for Base Builder Code attribution in source code, calldata, transactions, and UserOperations.
pnpm add -D @base-attribution-os/cli
pnpm exec bao init --builder-code bc_example
pnpm exec bao scan-repo --config bao.config.json --profile strict
pnpm exec bao doctor
pnpm exec bao proof-set --builder-code bc_example --title "Example project" --input proof-a.json,proof-b.jsonbao proof-set validates and combines replay JSON into a deterministic manifest. Use
--format markdown for a calldata-free public summary. Run pnpm exec bao --help
for the full command list.
Integration preview and pilot report
bao init --builder-code bc_example --workflow --dry-run
bao init --builder-code bc_example --workflow
bao pilot-report --output /private/pilot/before.json
bao pilot-report --proof-set /private/pilot/proof-set.json --format markdown --output /private/pilot/summary.mdInit previews the exact scope, findings, config, and optional pinned workflow.
--include src,app selects explicit source paths. --force replaces only the
config; existing workflows are always preserved. Init success describes file
creation, not a passing source audit.
Pilot reports run a strict source audit and record Git state and tool versions.
They keep supplied transaction evidence separate and do not make a current RPC
check. --ci-run records a caller-supplied GitHub Actions URL without verifying
the run. Output paths must be new. The command writes its report then exits 1
for findings, an empty scope, or failing supplied transaction evidence.
Starter and technical pilot guide
B20 inspection and replay
bao b20 inspect --address "$TOKEN_ADDRESS" --chain-id 84532 --block finalized --rpc-url-env BASE_RPC_URL --format json --output inspection.json
bao b20 verify --input inspection.json --offline
bao b20 verify --input inspection.json --rpc-url-env BASE_RPC_URL
bao b20 replay --hashes "$TX_HASH" --chain-id 84532 --expect bc_example --rpc-url-env BASE_RPC_URLSet the RPC endpoint through the named environment variable. Inspection is
read-only; the default block is finalized. Offline verification checks internal
consistency only. An explicit RPC recheck uses the original block. Output files
must be new paths so historical artifacts cannot be overwritten. Replay accepts
captured evidence with --input ... --offline; strict attribution requires a
current RPC run. Application readiness remains untested.
