Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(media): gate media tooling behind the media feature

Steven Enamakel1c9a9cc17c84
diff --git a/crates/openhuman-core/Cargo.toml b/crates/openhuman-core/Cargo.toml
index 9abb9d06d1..4679643452 100644
--- a/crates/openhuman-core/Cargo.toml
+++ b/crates/openhuman-core/Cargo.toml
@@ -723,7 +723,7 @@ web3 = [
# are light (serde + the already-shared reqwest), so this remains mostly a
# surface gate. There are no controllers / stores / subscribers tagged `Media`
# (agent tools only), and `openhuman::image` is currently unwired scaffold.
-media = ["tinyagents-harness/media"]
+media = ["tinyagents-harness/media", "tinyagents-harness-tools/media"]
# Flows domains: the `flows::` automation surface (saved graphs — create/run/
# schedule plus the workflow_builder / flow_discovery agents), and the
# `rhai_workflows::` language-workflow tool. Production graphs remain JSON over
diff --git a/crates/openhuman-core/src/media/generation/artifact_tool.rs b/crates/openhuman-core/src/media/generation/artifact_tool.rs
index 6417393fdd..dfd94bc8c1 100644
--- a/crates/openhuman-core/src/media/generation/artifact_tool.rs
+++ b/crates/openhuman-core/src/media/generation/artifact_tool.rs
@@ -8,9 +8,10 @@ use std::path::{Path, PathBuf};
use std::sync::{Arc, RwLock};
use async_trait::async_trait;
-use serde_json::{json, Value};
+use serde_json::Value;
use tinyagents_harness_tools::media::{
ArtifactFiling, FiledArtifact, GeneratedArtifact, MediaArtifactKind, MediaInnerFactory,
+ MediaProgressFn,
};
use tinytools::{
PermissionLevel, Tool, ToolCallOptions, ToolCategory, ToolPolicy, ToolResult, ToolRunContext,