The ninja developer CLI moves out of block/core into its own module git.dev.alexdunmow.com/block/cli. Pins block/core@v0.18.2 for abi/v1, the plugin.mod parser, and DESCRIBE guest builds; vendors its own orchestrator registry client (internal/api, generated from a vendored plugin_registry.proto) since it cannot import block/core/internal. Produces byte-identical v1 artifacts (verified: art-deco codeless SHA256-identical to the pre-move build). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
28 lines
761 B
Makefile
28 lines
761 B
Makefile
.PHONY: build install test proto tidy safety-check
|
|
|
|
# Build the ninja binary into ./bin/ninja.
|
|
build:
|
|
go build -o bin/ninja ./cmd/ninja
|
|
|
|
# Install ninja onto $GOBIN/$GOPATH/bin (yields `ninja` on PATH).
|
|
install:
|
|
go install ./cmd/ninja
|
|
|
|
# Run the full test suite (compiles guest wasm fixtures; needs the Go
|
|
# toolchain with GOOS=wasip1 support and network access to the block/core
|
|
# module proxy for the pinned guest SDK).
|
|
test:
|
|
go test ./...
|
|
|
|
# Regenerate the vendored orchestrator client from proto/.
|
|
# Requires buf + protoc-gen-go + protoc-gen-connect-go on PATH.
|
|
proto:
|
|
buf generate --path proto/orchestrator/v1/plugin_registry.proto
|
|
|
|
tidy:
|
|
go mod tidy
|
|
|
|
# Static safety gate (shared workspace tool).
|
|
safety-check:
|
|
cd ../check-safety && go run . ../cli
|