Fix test failures and rename Makefile targets for consistency
MAKEFILE TARGET RENAMING: - Renamed agent management targets to use agents- prefix for consistency - list-agents → agents-list - update-agents → agents-update - validate-agents → agents-validate - agent-status → agents-status - install-agent-cli → agents-install-cli - Updated all documentation to reflect new naming convention TEST FIXES: - Fixed backup directory collision in tests by adding microseconds and counter - Improved dependency detection to be more precise and avoid false positives - Updated dependency parsing to support YAML frontmatter dependencies - Fixed test expectations to match actual validation behavior - All 24 tests now passing DEPENDENCY SYSTEM IMPROVEMENTS: - Enhanced dependency extraction from YAML frontmatter (dependencies, depends_on, requires) - More precise agent reference detection in content - Better handling of explicit vs implicit dependencies - Improved validation error reporting This ensures consistent naming convention (setup-, standards-, agents-) across all Makefile targets while fixing test reliability issues. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
24
Makefile
24
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 standards-check standards-fix standards-test test test-all build clean lint format venv-status list-agents update-agents validate-agents agent-status install-agent-cli
|
||||
.PHONY: help setup-complete setup-structure setup-python setup-tools setup-docs setup-tests setup-verify ensure-project-structure install-dev 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
|
||||
|
||||
# Variables
|
||||
VENV = .venv
|
||||
@@ -32,11 +32,11 @@ help:
|
||||
@echo " standards-test - Run repository standards compliance tests"
|
||||
@echo ""
|
||||
@echo "Agent Management:"
|
||||
@echo " list-agents - List installed agents"
|
||||
@echo " update-agents - Update agents to latest versions"
|
||||
@echo " validate-agents - Validate agent definitions"
|
||||
@echo " agent-status - Show agent status and project info"
|
||||
@echo " install-agent-cli - Install kaizen-agentic CLI tool"
|
||||
@echo " agents-list - List installed agents"
|
||||
@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-install-cli - Install kaizen-agentic CLI tool"
|
||||
@echo ""
|
||||
@echo "Development:"
|
||||
@echo " test - Run unit tests only (fast)"
|
||||
@@ -50,7 +50,7 @@ help:
|
||||
@echo " make setup-complete # Set up new repository"
|
||||
@echo " make test-all # Run full test suite"
|
||||
@echo " make standards-check # Audit repository compliance"
|
||||
@echo " make agent-status # Check installed agents"
|
||||
@echo " make agents-status # Check installed agents"
|
||||
|
||||
# Virtual environment status check
|
||||
venv-status:
|
||||
@@ -660,7 +660,7 @@ standards-test: $(VENV)/bin/activate
|
||||
# ============================================================================
|
||||
|
||||
# List installed agents
|
||||
list-agents:
|
||||
agents-list:
|
||||
@echo "🤖 Installed agents:"
|
||||
@if [ -d "agents" ]; then \
|
||||
ls agents/ 2>/dev/null | grep agent- | sed 's/agent-//g' | sed 's/.md//g' | sort || echo "No agents installed"; \
|
||||
@@ -669,7 +669,7 @@ list-agents:
|
||||
fi
|
||||
|
||||
# Update installed agents to latest versions
|
||||
update-agents: $(VENV)/bin/activate
|
||||
agents-update: $(VENV)/bin/activate
|
||||
@echo "🔄 Updating agents..."
|
||||
@if command -v kaizen-agentic >/dev/null 2>&1; then \
|
||||
kaizen-agentic update; \
|
||||
@@ -678,7 +678,7 @@ update-agents: $(VENV)/bin/activate
|
||||
fi
|
||||
|
||||
# Validate installed agents
|
||||
validate-agents:
|
||||
agents-validate:
|
||||
@echo "✅ Validating agents..."
|
||||
@if command -v kaizen-agentic >/dev/null 2>&1; then \
|
||||
kaizen-agentic validate; \
|
||||
@@ -687,7 +687,7 @@ validate-agents:
|
||||
fi
|
||||
|
||||
# Show agent status and project information
|
||||
agent-status:
|
||||
agents-status:
|
||||
@echo "📊 Agent status:"
|
||||
@if command -v kaizen-agentic >/dev/null 2>&1; then \
|
||||
kaizen-agentic status; \
|
||||
@@ -703,7 +703,7 @@ agent-status:
|
||||
fi
|
||||
|
||||
# Install agent distribution CLI
|
||||
install-agent-cli: $(VENV)/bin/activate
|
||||
agents-install-cli: $(VENV)/bin/activate
|
||||
@echo "📦 Installing Kaizen Agentic CLI..."
|
||||
@$(VENV_PIP) install -e .
|
||||
@echo "✅ CLI installed. Use 'kaizen-agentic --help' for usage."
|
||||
Reference in New Issue
Block a user