Skip to content

Commit 93f720e

Browse files
build: add make regen-all (Phase 1 of living-docs regen automation) (#61)
Single command to flush every generated artifact a PR can drift: - regen-templates: attune-author regenerate against root .help/ corpus - build-editor: existing Vite bundle build regen-all = regen-templates + build-editor. Scope per docs/specs/living-docs-regen-automation/ Phase 1: - Root corpus only (sidecar/.help/ has been unmaintained; deferred). - Default polish path (matches current practice; Anthropic cost is real). - No CI hook yet — that's Phase 2. Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 31093cb commit 93f720e

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

Makefile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ EDITOR_FRONTEND := editor-frontend
77
EDITOR_OUTPUT := sidecar/attune_gui/static/editor
88

99
.PHONY: build-editor lint-editor typecheck-editor dev-editor test-editor clean-editor install-editor
10+
.PHONY: regen-templates regen-all
1011

1112
install-editor:
1213
cd $(EDITOR_FRONTEND) && npm install
@@ -32,3 +33,17 @@ dev-editor:
3233
clean-editor:
3334
rm -rf $(EDITOR_OUTPUT)
3435
rm -rf $(EDITOR_FRONTEND)/node_modules
36+
37+
# Regenerate living-docs templates for the root .help/ corpus.
38+
# Calls Anthropic for polish — costs $$ on stale features.
39+
# Sidecar corpus (sidecar/.help/) is deferred and not maintained here;
40+
# see docs/specs/living-docs-regen-automation/ for the rationale.
41+
regen-templates:
42+
uv run attune-author regenerate --help-dir .help
43+
44+
# Single command to flush every generated artifact a PR can drift:
45+
# living-docs templates + editor bundle. Run before pushing source
46+
# changes to sidecar/** or editor-frontend/src/**.
47+
regen-all: regen-templates build-editor
48+
@echo ""
49+
@echo "regen-all complete. Verify with: git status"

0 commit comments

Comments
 (0)