Major Changes: - Rename codebase-agent to opencoder for clarity - Add agent validator plugin with comprehensive testing - Refactor prompt engineering commands (enhancer → optimizer) - Update task-manager subagent with improved workflows - Enhance plugin system with validation and documentation Agent System: - Renamed: codebase-agent.md → opencoder.md - Updated: task-manager.md with better delegation patterns - Added: opencoder.md documentation Plugin System: - New: agent-validator.ts for prompt validation - New: VALIDATOR_GUIDE.md with usage instructions - New: Test suite (test-validator.sh, test-validation.sh) - Updated: notify.ts, telegram-notify.ts with improvements - Updated: package.json, bun.lock with new dependencies Commands: - Renamed: prompt-enchancer.md → prompt-engineering/prompt-enhancer.md - New: prompt-engineering/prompt-optimizer.md - Updated: build-context-system.md, validate-repo.md Documentation: - Updated: README.md with latest features - Updated: openagent.md documentation - New: opencoder.md agent documentation - Updated: agent-system-blueprint.md - Updated: system-builder docs (README, quick-start) - Updated: installation.md, collision-handling.md Registry: - Updated: registry.json with new components This consolidates all development work for the upcoming release.
67 lines
1.6 KiB
Bash
Executable file
67 lines
1.6 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
# Test script for Agent Validator Plugin
|
|
# Tests basic plugin functionality and validation tools
|
|
|
|
echo "🧪 Testing Agent Validator Plugin"
|
|
echo "=================================="
|
|
echo ""
|
|
|
|
# Test 1: Simple task with approval gate
|
|
echo "📝 Test 1: Simple task (should request approval)"
|
|
echo "Running: 'List files in current directory'"
|
|
echo ""
|
|
|
|
opencode run "List the files in the current directory" --format json > /tmp/test1-output.json 2>&1
|
|
|
|
echo "✅ Test 1 complete"
|
|
echo ""
|
|
|
|
# Test 2: Validate the session
|
|
echo "📊 Test 2: Validate session behavior"
|
|
echo "Running: validate_session"
|
|
echo ""
|
|
|
|
opencode run "validate_session" --format json > /tmp/test2-output.json 2>&1
|
|
|
|
echo "✅ Test 2 complete"
|
|
echo ""
|
|
|
|
# Test 3: Check approval gates
|
|
echo "🔒 Test 3: Check approval gates"
|
|
echo "Running: check_approval_gates"
|
|
echo ""
|
|
|
|
opencode run "check_approval_gates" --format json > /tmp/test3-output.json 2>&1
|
|
|
|
echo "✅ Test 3 complete"
|
|
echo ""
|
|
|
|
# Display results
|
|
echo "=================================="
|
|
echo "📋 Test Results"
|
|
echo "=================================="
|
|
echo ""
|
|
|
|
echo "Test 1 Output (last 20 lines):"
|
|
echo "---"
|
|
tail -20 /tmp/test1-output.json
|
|
echo ""
|
|
|
|
echo "Test 2 Output (validation report):"
|
|
echo "---"
|
|
tail -30 /tmp/test2-output.json
|
|
echo ""
|
|
|
|
echo "Test 3 Output (approval gates):"
|
|
echo "---"
|
|
tail -20 /tmp/test3-output.json
|
|
echo ""
|
|
|
|
echo "=================================="
|
|
echo "✅ All tests complete!"
|
|
echo ""
|
|
echo "Full outputs saved to:"
|
|
echo " - /tmp/test1-output.json"
|
|
echo " - /tmp/test2-output.json"
|
|
echo " - /tmp/test3-output.json"
|