Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@
tool/test.sqlite3
metadata.sqlite3.new
tool/ingest
tool/cmd/genspecs/genspecs
tool/specs/.judge-cache/
products/features.html
_site/
tool/genspecs
48 changes: 48 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,53 @@ html: #! Generate SDK features HTML comparison pages (both views)
cd tool && go run ./cmd/genhtml --view=by-feature --output ../_site/by-feature.html --data ../products
cp _site/by-sdk.html _site/index.html

# Spec-support pipeline (genspecs). See scripts/generate-spec-support.sh.
#
# These use the same `cd tool && go run ./cmd/X --... ../products/...` pattern
# as the existing `html` target. `go run` inherits cwd from the shell, so we
# pass repo-root-relative paths with a `..` prefix.

.PHONY: spec-sync-repos
spec-sync-repos: #! Clone any missing SDK repo (plus sdk-specs and sdk-test-harness) and fast-forward existing ones
cd tool && go run ./cmd/genspecs sync-repos --repos-json ../products/repos.json

.PHONY: spec-catalog
spec-catalog: #! Generate products/specs.json from the local sdk-specs checkout
cd tool && go run ./cmd/genspecs catalog --out ../products/specs.json

.PHONY: spec-harness
spec-harness: #! Generate products/harness_signals.json from sdk-test-harness and per-SDK suppressions
cd tool && go run ./cmd/genspecs harness \
--repos-json ../products/repos.json \
--out ../products/harness_signals.json

.PHONY: spec-judge
spec-judge: #! Run the LLM judge to populate products/spec_support.json (defaults to noop if ANTHROPIC_API_KEY is unset)
cd tool && go run ./cmd/genspecs judge \
--specs-json ../products/specs.json \
--harness-json ../products/harness_signals.json \
--features-json ../products/features.json \
--feature-info-json ../products/feature_info.json \
--types-json ../products/types.json \
--names-json ../products/names.json \
--languages-json ../products/languages.json \
--repos-json ../products/repos.json \
--cache-dir ../tool/specs/.judge-cache \
--out ../products/spec_support.json

.PHONY: spec-html
spec-html: #! Render _site/spec-support*.html from the spec_support data
mkdir -p _site
cd tool && go run ./cmd/genspecs html \
--specs-json ../products/specs.json \
--support-json ../products/spec_support.json \
--types-json ../products/types.json \
--names-json ../products/names.json \
--out-dir ../_site

.PHONY: spec-support
spec-support: #! Run the full spec-support pipeline (sync-repos -> catalog -> harness -> judge -> html)
./scripts/generate-spec-support.sh

.PHONY: all
all: crawl products html
Loading
Loading