Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rollback functionality to setup wizard #75

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Dec 1, 2024

  1. Add rollback functionality to setup wizard

    Fixes AgentOps-AI#9
    
    Add error handling and rollback functionality to the setup wizard.
    
    * Add `rollback_actions` function in `agentstack/cli/cli.py` to undo actions like directory creation and file writing.
    * Update `init_project_builder` in `agentstack/cli/cli.py` to catch exceptions and call `rollback_actions`.
    * Track created files and directories in `insert_template` for potential rollback in `agentstack/cli/cli.py`.
    * Add `rollback_actions` function in `agentstack/generation/agent_generation.py` and `agentstack/generation/task_generation.py` to undo actions.
    * Update `generate_agent` in `agentstack/generation/agent_generation.py` and `generate_task` in `agentstack/generation/task_generation.py` to catch exceptions and call `rollback_actions`.
    * Add tests in `tests/test_cli_loads.py` to verify rollback functionality.
    
    ---
    
    For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/AgentOps-AI/AgentStack/issues/9?shareId=XXXX-XXXX-XXXX-XXXX).
    HYPRGK committed Dec 1, 2024
    Configuration menu
    Copy the full SHA
    3fd301c View commit details
    Browse the repository at this point in the history