modules = ["rust"]
[agent]
expertMode = true

[nix]
channel = "stable-25_05"
packages = ["nix-output-monitor", "pv"]

[workflows]
runButton = "Project"

[[workflows.workflow]]
name = "Project"
mode = "parallel"
author = "agent"

[[workflows.workflow.tasks]]
task = "workflow.run"
args = "Test Application"

[[workflows.workflow.tasks]]
task = "workflow.run"
args = "Build and Run"

[[workflows.workflow]]
name = "Test Application"
author = "agent"

[[workflows.workflow.tasks]]
task = "shell.exec"
args = """
cargo build && echo \"Build successful! Testing with sample Nix JSON input...\" && echo '@nix {\"action\":\"start\",\"id\":123,\"level\":1,\"parent\":0,\"text\":\"building hello-world-1.0\",\"type\":105}
@nix {\"action\":\"msg\",\"level\":0,\"msg\":\"Starting build process\",\"raw_msg\":\"Starting build process\"}
@nix {\"action\":\"result\",\"id\":123,\"fields\":[1,2,1,0]}
@nix {\"action\":\"stop\",\"id\":123}' | cargo run -- --json"""

[workflows.workflow.metadata]
outputType = "console"

[[workflows.workflow]]
name = "Build and Run"
author = "agent"

[[workflows.workflow.tasks]]
task = "shell.exec"
args = "cargo build --release && echo \"Build completed successfully!\" && echo \"Testing with sample input...\" && echo '@nix {\"action\":\"start\",\"id\":123456,\"level\":1,\"parent\":0,\"text\":\"building hello-world-1.0\",\"type\":105}' | ./target/release/nix-json-monitor --json"

[workflows.workflow.metadata]
outputType = "console"
