feat: WP-0005 adoption polish — doc sync, fleet parity, CI lint
- Add make agents-sync-package and release-check parity gate - Add tests/test_packaged_agents_parity.py; sync packaged agents with agents/ - Update install docs (HELLO_WORLD, CLI_CHEAT_SHEET, AGENT_DISTRIBUTION) - Expand PACKAGE_RELEASE.md secrets setup and pre-tag checklist - Add flake8 to Gitea CI; CHANGELOG Unreleased for v1.2.0 - Expand INTEGRATION_PATTERNS activity-core handoff checklist
This commit is contained in:
61
Makefile
61
Makefile
@@ -1,6 +1,6 @@
|
||||
# Makefile for Kaizen Agentic development tasks
|
||||
|
||||
.PHONY: help setup-complete setup-structure setup-python setup-tools setup-docs setup-tests setup-verify ensure-project-structure install-dev install-local install-global standards-check standards-fix standards-test test test-all build clean lint format venv-status agents-list agents-update agents-validate agents-status agents-install-cli release-check release-prepare release-test release-publish publish-gitea package-check release-finalize release-rollback
|
||||
.PHONY: help setup-complete setup-structure setup-python setup-tools setup-docs setup-tests setup-verify ensure-project-structure install-dev install-local install-global standards-check standards-fix standards-test test test-all build clean lint format venv-status agents-list agents-update agents-validate agents-status agents-sync-package agents-install-cli release-check release-prepare release-test release-publish publish-gitea package-check release-finalize release-rollback
|
||||
|
||||
# Variables
|
||||
VENV = .venv
|
||||
@@ -41,6 +41,7 @@ help:
|
||||
@echo " agents-update - Update agents to latest versions"
|
||||
@echo " agents-validate - Validate agent definitions"
|
||||
@echo " agents-status - Show agent status and project info"
|
||||
@echo " agents-sync-package - Sync agents/ into packaged data/agents/ (DRY_RUN=1 to preview)"
|
||||
@echo " agents-install-cli - Install kaizen-agentic CLI tool"
|
||||
@echo ""
|
||||
@echo "Release Management:"
|
||||
@@ -811,7 +812,9 @@ agents-update: $(VENV)/bin/activate
|
||||
@if command -v kaizen-agentic >/dev/null 2>&1; then \
|
||||
kaizen-agentic update; \
|
||||
else \
|
||||
echo "⚠️ kaizen-agentic CLI not found. Install with: pip install kaizen-agentic"; \
|
||||
echo "⚠️ kaizen-agentic CLI not found."; \
|
||||
echo " Dev install: make agents-install-cli (or pip install -e .)"; \
|
||||
echo " Registry: see docs/PACKAGE_RELEASE.md"; \
|
||||
fi
|
||||
|
||||
# Validate installed agents
|
||||
@@ -820,7 +823,9 @@ agents-validate:
|
||||
@if command -v kaizen-agentic >/dev/null 2>&1; then \
|
||||
kaizen-agentic validate; \
|
||||
else \
|
||||
echo "⚠️ kaizen-agentic CLI not found. Install with: pip install kaizen-agentic"; \
|
||||
echo "⚠️ kaizen-agentic CLI not found."; \
|
||||
echo " Dev install: make agents-install-cli (or pip install -e .)"; \
|
||||
echo " Registry: see docs/PACKAGE_RELEASE.md"; \
|
||||
fi
|
||||
|
||||
# Show agent status and project information
|
||||
@@ -829,7 +834,9 @@ agents-status:
|
||||
@if command -v kaizen-agentic >/dev/null 2>&1; then \
|
||||
kaizen-agentic status; \
|
||||
else \
|
||||
echo "⚠️ kaizen-agentic CLI not found. Install with: pip install kaizen-agentic"; \
|
||||
echo "⚠️ kaizen-agentic CLI not found."; \
|
||||
echo " Dev install: make agents-install-cli (or pip install -e .)"; \
|
||||
echo " Registry: see docs/PACKAGE_RELEASE.md"; \
|
||||
echo ""; \
|
||||
echo "Manual agent check:"; \
|
||||
if [ -d "agents" ]; then \
|
||||
@@ -839,6 +846,34 @@ agents-status:
|
||||
fi; \
|
||||
fi
|
||||
|
||||
# Sync canonical agents/ into packaged wheel data
|
||||
AGENTS_SRC_DIR = agents
|
||||
AGENTS_PKG_DIR = src/kaizen_agentic/data/agents
|
||||
|
||||
agents-sync-package:
|
||||
@echo "📦 Syncing packaged agents from $(AGENTS_SRC_DIR)/ ..."
|
||||
@mkdir -p $(AGENTS_PKG_DIR); \
|
||||
SYNCED=0; \
|
||||
for f in $(AGENTS_SRC_DIR)/agent-*.md; do \
|
||||
dest="$(AGENTS_PKG_DIR)/$$(basename $$f)"; \
|
||||
if [ -n "$(DRY_RUN)" ]; then \
|
||||
if [ -f "$$dest" ] && cmp -s "$$f" "$$dest"; then \
|
||||
echo " = $$(basename $$f) (unchanged)"; \
|
||||
else \
|
||||
echo " → $$(basename $$f)"; \
|
||||
fi; \
|
||||
else \
|
||||
cp "$$f" "$$dest"; \
|
||||
echo " ✓ $$(basename $$f)"; \
|
||||
SYNCED=$$((SYNCED + 1)); \
|
||||
fi; \
|
||||
done; \
|
||||
if [ -z "$(DRY_RUN)" ]; then \
|
||||
echo "✅ Synced $$SYNCED file(s) to $(AGENTS_PKG_DIR)/"; \
|
||||
else \
|
||||
echo "ℹ️ DRY_RUN preview only — no files copied"; \
|
||||
fi
|
||||
|
||||
# Install agent distribution CLI
|
||||
agents-install-cli: $(VENV)/bin/activate
|
||||
@echo "📦 Installing Kaizen Agentic CLI..."
|
||||
@@ -895,6 +930,21 @@ release-check: $(VENV)/bin/activate
|
||||
echo " ❌ Build system not configured"; \
|
||||
ISSUES=$$((ISSUES + 1)); \
|
||||
fi; \
|
||||
echo " • Packaged Agent Parity:"; \
|
||||
PARITY_OK=1; \
|
||||
for f in agents/agent-*.md; do \
|
||||
dest="src/kaizen_agentic/data/agents/$$(basename $$f)"; \
|
||||
if [ ! -f "$$dest" ] || ! cmp -s "$$f" "$$dest"; then \
|
||||
PARITY_OK=0; \
|
||||
break; \
|
||||
fi; \
|
||||
done; \
|
||||
if [ $$PARITY_OK -eq 1 ] && ls agents/agent-*.md >/dev/null 2>&1; then \
|
||||
echo " ✅ agents/ matches data/agents/"; \
|
||||
else \
|
||||
echo " ❌ Packaged agents drift from agents/ — run: make agents-sync-package"; \
|
||||
ISSUES=$$((ISSUES + 1)); \
|
||||
fi; \
|
||||
echo ""; \
|
||||
if [ $$ISSUES -eq 0 ]; then \
|
||||
echo "✅ Release readiness: PASSED"; \
|
||||
@@ -1009,7 +1059,8 @@ release-finalize: $(VENV)/bin/activate
|
||||
echo ""; \
|
||||
echo " • Documentation:"; \
|
||||
echo " 💡 Verify installation instructions work:"; \
|
||||
echo " pip install kaizen-agentic==$$VERSION"; \
|
||||
echo " pip install kaizen-agentic==$$VERSION --extra-index-url <gitea-pypi-simple>"; \
|
||||
echo " See docs/PACKAGE_RELEASE.md"; \
|
||||
echo ""; \
|
||||
echo "✅ Release finalization checklist provided"; \
|
||||
echo " Complete manual steps above to finish release process"
|
||||
|
||||
Reference in New Issue
Block a user