🤖 Autonomous Coder + Viral Spider #1231
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 🤖 Autonomous Coder + Viral Spider | |
| on: | |
| schedule: | |
| - cron: '*/30 * * * *' | |
| workflow_dispatch: | |
| inputs: | |
| spider_wave: | |
| description: 'Spider wave number' | |
| default: '1' | |
| required: false | |
| jobs: | |
| run-agents: | |
| name: Run Autonomous Agents | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Trigger autonomous coder | |
| run: | | |
| echo "=== Autonomous Coder ===" | |
| curl -sf https://kjtirbnxxymeumycrhqv.supabase.co/functions/v1/runtime-autonomous-coder/run \ | |
| | python3 -c "import sys,json; d=json.load(sys.stdin); print('Coder:', d.get('status'), '|', d.get('task','?'), '| provider:', d.get('provider','?'))" \ | |
| || echo "Coder unavailable (non-blocking)" | |
| - name: Trigger viral propagation | |
| run: | | |
| echo "=== Viral Propagation ===" | |
| curl -sf -X POST \ | |
| https://kjtirbnxxymeumycrhqv.supabase.co/functions/v1/runtime-viral-propagation/propagate \ | |
| -H "Content-Type: application/json" -d '{}' \ | |
| | python3 -c "import sys,json; d=json.load(sys.stdin); print('Propagation: agents=%d, viral=%d' % (d.get('agents_in_network',0), d.get('viral_nodes_active',0)))" \ | |
| || echo "Propagation non-blocking" | |
| - name: Launch spider wave | |
| run: | | |
| WAVE=${{ github.event.inputs.spider_wave || '1' }} | |
| echo "=== Spider Wave $WAVE ===" | |
| curl -sf -X POST \ | |
| https://kjtirbnxxymeumycrhqv.supabase.co/functions/v1/runtime-viral-propagation/spider \ | |
| -H "Content-Type: application/json" \ | |
| -d "{\"wave\": $WAVE}" \ | |
| | python3 -c "import sys,json; d=json.load(sys.stdin); print('Spider wave', d.get('wave'), 'launched. Network:', d.get('agents_in_network'), 'agents')" \ | |
| || echo "Spider non-blocking" | |
| - name: Ping self-healer | |
| run: | | |
| echo "=== Self-healer ===" | |
| curl -sf https://kjtirbnxxymeumycrhqv.supabase.co/functions/v1/runtime-self-healer/status \ | |
| | python3 -c "import sys,json; d=json.load(sys.stdin); print('Healer:', d.get('status','?'))" \ | |
| || echo "Self-healer non-blocking" | |
| - name: Network status | |
| run: | | |
| echo "=== Network Status ===" | |
| curl -sf https://kjtirbnxxymeumycrhqv.supabase.co/functions/v1/runtime-viral-propagation/network \ | |
| | python3 -c "import sys,json; d=json.load(sys.stdin); print('Network: agents=%d regions=%d' % (d.get('agents_total',0), d.get('regions_covered',0)))" \ | |
| || echo "Network check non-blocking" | |
| - name: Done | |
| run: echo "✅ Agent cycle complete" |