Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion crates/terminator-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ path = "src/bin/cargo-terminator.rs"
[dependencies]
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0.140"
serde_yaml = "0.9"
clap = { version = "4.4", features = ["derive", "env"] }
tokio = { version = "1", features = [
"rt",
Expand Down
8 changes: 4 additions & 4 deletions crates/terminator-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2165,7 +2165,7 @@ fn parse_workflow_content(content: &str) -> anyhow::Result<serde_json::Value> {
}

// Strategy 2: Try direct YAML workflow
if let Ok(val) = serde_yaml::from_str::<serde_json::Value>(content) {
if let Ok(val) = serde_json::from_str::<serde_json::Value>(content) {
// Check if it's a valid workflow (has steps field)
if val.get("steps").is_some() {
return Ok(val);
Expand All @@ -2185,17 +2185,17 @@ fn parse_workflow_content(content: &str) -> anyhow::Result<serde_json::Value> {
}

// Strategy 4: Try parsing as YAML wrapper first, then extract
if let Ok(val) = serde_yaml::from_str::<serde_json::Value>(content) {
if let Ok(val) = serde_json::from_str::<serde_json::Value>(content) {
if let Some(extracted) = extract_workflow_from_wrapper(&val)? {
return Ok(extracted);
}
}

Err(anyhow::anyhow!(
"Unable to parse content as JSON or YAML workflow or wrapper object. Content must either be:\n\
"Unable to parse content as JSON workflow or wrapper object. Content must either be:\n\
1. A workflow with 'steps' field\n\
2. A wrapper object with tool_name='execute_sequence' and 'arguments' field\n\
3. Valid JSON or YAML format"
3. Valid JSON format"
))
}

Expand Down
1 change: 0 additions & 1 deletion crates/terminator-mcp-agent/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ hostname = "0.4"
reqwest = { version = "0.12.5", features = ["json", "blocking"] }

# YAML parsing support
serde_yaml = "0.9"

# File search support for search_terminator_api tools
glob = "0.3"
Expand Down
4 changes: 2 additions & 2 deletions crates/terminator-mcp-agent/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pub mod expression_eval;
pub mod helpers;
pub mod mcp_types;
pub mod omniparser;
pub mod output_parser;

pub mod prompt;
pub mod scripting_engine;
pub mod sentry;
Expand All @@ -17,7 +17,7 @@ pub mod tool_logging;
pub mod tree_formatter;
pub mod utils;
pub mod vision;
pub mod workflow_format;

pub mod workflow_typescript;

// Re-export ui_tree_diff from terminator crate (single source of truth)
Expand Down
Loading
Loading