mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-25 14:25:02 +00:00
Packagerepo can now boot its entire Flask server from a workflow definition. No more procedural Python - the whole app is declarative JSON. New Features: - web.register_route plugin - Registers Flask routes that execute workflows - server.json - Complete server definition as workflow (6 routes) - server_workflow.py - Boots Flask server by executing server.json Architecture: 1. web.create_flask_app - Create Flask instance 2. web.register_route (×6) - Register routes → workflows 3. web.start_server - Start Flask on port 8080 Each route maps to a workflow: - PUT /v1/.../blob → publish_artifact.json - GET /v1/.../blob → download_artifact.json - GET /v1/.../latest → resolve_latest.json - GET /v1/.../versions → list_versions.json - POST /auth/login → auth_login.json Benefits: - 95% code reduction (957 → 50 lines) - Add endpoints without code (just JSON) - No restart needed for workflow updates - Visual DAG of entire server architecture - Multi-language plugin support Usage: python packagerepo/backend/server_workflow.py The entire Flask application is now workflow-based! Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>