Add pipeline mutation commands to REPL
- Add help text for add_stage, remove_stage, swap_stages, move_stage commands - Implement _cmd_add_stage, _cmd_remove_stage, _cmd_swap_stages, _cmd_move_stage methods - Update _handle_pipeline_mutation in main.py and pipeline_runner.py - Fix fragile test by testing output buffer directly instead of rendered output
This commit is contained in:
@@ -47,7 +47,13 @@ def _handle_pipeline_mutation(pipeline: Pipeline, command: dict) -> bool:
|
||||
action = command.get("action")
|
||||
|
||||
if action == "add_stage":
|
||||
print(f" [Pipeline] add_stage command received: {command}")
|
||||
stage_name = command.get("stage")
|
||||
stage_type = command.get("stage_type")
|
||||
print(
|
||||
f" [Pipeline] add_stage command received: name='{stage_name}', type='{stage_type}'"
|
||||
)
|
||||
# Note: Dynamic stage creation is complex and requires stage factory support
|
||||
# For now, we acknowledge the command but don't actually add the stage
|
||||
return True
|
||||
|
||||
elif action == "remove_stage":
|
||||
|
||||
@@ -38,9 +38,13 @@ def _handle_pipeline_mutation(pipeline: Pipeline, command: dict) -> bool:
|
||||
action = command.get("action")
|
||||
|
||||
if action == "add_stage":
|
||||
# For now, this just returns True to acknowledge the command
|
||||
# In a full implementation, we'd need to create the appropriate stage
|
||||
print(f" [Pipeline] add_stage command received: {command}")
|
||||
stage_name = command.get("stage")
|
||||
stage_type = command.get("stage_type")
|
||||
print(
|
||||
f" [Pipeline] add_stage command received: name='{stage_name}', type='{stage_type}'"
|
||||
)
|
||||
# Note: Dynamic stage creation is complex and requires stage factory support
|
||||
# For now, we acknowledge the command but don't actually add the stage
|
||||
return True
|
||||
|
||||
elif action == "remove_stage":
|
||||
|
||||
Reference in New Issue
Block a user