From b62b080ace50fb550b51923fbb9a45903744a736 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 10 Jan 2026 21:33:40 +0000 Subject: [PATCH] Move workflow_graph.py from data to workflow folder and update imports Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com> --- DATA_TO_WORKFLOW_MIGRATION.md | 2 +- .../plugins/web/web_route_navigation/web_route_navigation.py | 2 +- backend/autometabuilder/{data => workflow}/workflow_graph.py | 0 backend/tests/test_workflow_graph.py | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename backend/autometabuilder/{data => workflow}/workflow_graph.py (100%) diff --git a/DATA_TO_WORKFLOW_MIGRATION.md b/DATA_TO_WORKFLOW_MIGRATION.md index 6221f3f..3c7d860 100644 --- a/DATA_TO_WORKFLOW_MIGRATION.md +++ b/DATA_TO_WORKFLOW_MIGRATION.md @@ -110,7 +110,7 @@ Only essentials that don't affect the core architecture: - `__init__.py` - Thin wrapper for backward compatibility (delegates to plugins) - ~~`run_state.py` - Bot execution state (could be pluginized in future)~~ **✅ MIGRATED** → `control.start_bot`, `control.get_bot_status`, `control.reset_bot_state` plugins -- `workflow_graph.py` - Workflow visualization (could be pluginized in future) +- ~~`workflow_graph.py` - Workflow visualization (could be pluginized in future)~~ **✅ MOVED** → `workflow/workflow_graph.py` - `navigation_items.json` - Static navigation data - `ui_assets.json` - Static UI assets diff --git a/backend/autometabuilder/workflow/plugins/web/web_route_navigation/web_route_navigation.py b/backend/autometabuilder/workflow/plugins/web/web_route_navigation/web_route_navigation.py index 2e47bac..1a387e8 100644 --- a/backend/autometabuilder/workflow/plugins/web/web_route_navigation/web_route_navigation.py +++ b/backend/autometabuilder/workflow/plugins/web/web_route_navigation/web_route_navigation.py @@ -1,7 +1,7 @@ """Workflow plugin: navigation API routes blueprint.""" from flask import Blueprint, jsonify from autometabuilder.loaders.metadata_loader import load_metadata -from autometabuilder.data.workflow_graph import build_workflow_graph +from autometabuilder.workflow.workflow_graph import build_workflow_graph def run(runtime, _inputs): diff --git a/backend/autometabuilder/data/workflow_graph.py b/backend/autometabuilder/workflow/workflow_graph.py similarity index 100% rename from backend/autometabuilder/data/workflow_graph.py rename to backend/autometabuilder/workflow/workflow_graph.py diff --git a/backend/tests/test_workflow_graph.py b/backend/tests/test_workflow_graph.py index 4cc005a..5ad9959 100644 --- a/backend/tests/test_workflow_graph.py +++ b/backend/tests/test_workflow_graph.py @@ -1,4 +1,4 @@ -from autometabuilder.data.workflow_graph import build_workflow_graph +from autometabuilder.workflow.workflow_graph import build_workflow_graph def test_build_workflow_graph_structure():