A simple Python script for PowerFixer agents to report status updates to the PowerFixer callback API.
Clone this repository:
git clone https://github.com/warpdotdev/power-fixer-status-update.git /workspace/power-fixer-status-update# Report in progress
python3 /workspace/power-fixer-status-update/powerfixer_status.py '{"state": "IN_PROGRESS"}'
# Report success with summary
python3 /workspace/power-fixer-status-update/powerfixer_status.py '{"state": "SUCCEEDED", "summary": "Fixed the bug"}'
# Report failure
python3 /workspace/power-fixer-status-update/powerfixer_status.py '{"state": "FAILED", "summary": "Could not reproduce"}'
# Pipe JSON from stdin
echo '{"state": "IN_PROGRESS"}' | python3 /workspace/power-fixer-status-update/powerfixer_status.pyPOWERFIXER_CALLBACK_TOKEN- Authentication token for the callback APIPOWERFIXER_CALLBACK_URL- Base URL of the PowerFixer server (e.g.,https://powerfixer.warp.dev)
IN_PROGRESS- Agent is actively workingSUCCEEDED- Agent completed successfullyFAILED- Agent failed to complete the task