Skip to content

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

chore: remove unused re-exports across multiple modules

Steven Enamakel60504eef1274
diff --git a/crates/openhuman-core/src/agent/harness/mod.rs b/crates/openhuman-core/src/agent/harness/mod.rs
index f7bef2bf05..7a8774a34e 100644
--- a/crates/openhuman-core/src/agent/harness/mod.rs
+++ b/crates/openhuman-core/src/agent/harness/mod.rs
@@ -43,9 +43,7 @@ pub use definition::{
SandboxMode, ToolScope, TriggerMemoryAgent,
};
pub use fork_context::{
- current_agent_context_prepared_sources, current_parent, with_agent_context_prepared_sources,
- with_parent_context, AgentContextPreparedSource, ParentExecutionContext,
-};
+ current_parent, with_parent_context, AgentContextPreparedSource, ParentExecutionContext};
pub use sandbox_context::{current_sandbox_mode, with_current_sandbox_mode};
pub(crate) use spawn_depth_context::{with_spawn_depth, MAX_SPAWN_DEPTH};
pub use task_recency_context::{current_task_recency_window, with_task_recency_window};
diff --git a/crates/openhuman-core/src/agent/orchestration/workflow_runs/mod.rs b/crates/openhuman-core/src/agent/orchestration/workflow_runs/mod.rs
index 504932cf64..9a80d7db7d 100644
--- a/crates/openhuman-core/src/agent/orchestration/workflow_runs/mod.rs
+++ b/crates/openhuman-core/src/agent/orchestration/workflow_runs/mod.rs
@@ -28,8 +28,7 @@ mod schemas;
pub use engine::{resume_workflow_run, start_workflow_run, stop_workflow_run};
pub use ops::{
builtin_definitions, definition_by_id, get_run, list_definitions, list_runs,
- validate_definition, PARALLEL_RESEARCH_ID,
-};
+ PARALLEL_RESEARCH_ID};
pub use schemas::{
all_controller_schemas as all_workflow_run_controller_schemas,
all_registered_controllers as all_workflow_run_registered_controllers,
diff --git a/crates/openhuman-core/src/agent/prompts/render_helpers.rs b/crates/openhuman-core/src/agent/prompts/render_helpers.rs
index f8a621d0b5..9ce37f7b43 100644
--- a/crates/openhuman-core/src/agent/prompts/render_helpers.rs
+++ b/crates/openhuman-core/src/agent/prompts/render_helpers.rs
@@ -17,11 +17,9 @@ mod subagent;
mod workspace_files;
pub use section_renderers::{
- current_datetime_line, memory_date_label, render_agents_md, render_ambient_environment,
- render_datetime, render_grounding, render_identity, render_runtime, render_safety,
- render_tools, render_user_files, render_user_identity, render_user_memory,
- render_user_reflections, render_workspace,
-};
+ current_datetime_line, memory_date_label, render_ambient_environment,
+ render_datetime, render_identity, render_runtime, render_safety,
+ render_tools, render_user_files, render_user_identity, render_user_reflections, render_workspace};
pub(crate) use subagent::harness_json_tool_prompt;
pub use subagent::{render_subagent_system_prompt, render_subagent_system_prompt_with_format};
pub(crate) use workspace_files::write_agents_md_blocks;
diff --git a/crates/openhuman-core/src/agent/triage/evaluator.rs b/crates/openhuman-core/src/agent/triage/evaluator.rs
index 308af64dc7..a395d46835 100644
--- a/crates/openhuman-core/src/agent/triage/evaluator.rs
+++ b/crates/openhuman-core/src/agent/triage/evaluator.rs
@@ -40,7 +40,7 @@ pub(crate) use chain::begin_outage_attempt;
pub(crate) use chain::record_outage;
#[cfg(test)]
pub(crate) use chain::run_triage_with_arms_for_test_with_state;
-pub use chain::{run_triage, run_triage_with_arms};
+pub use chain::{run_triage};
pub use outcome::{TriageOutcome, TriageResolutionPath, TriageRun};
#[cfg(test)]
diff --git a/crates/openhuman-core/src/agent/triage/mod.rs b/crates/openhuman-core/src/agent/triage/mod.rs
index a283e89430..4ca6526f46 100644
--- a/crates/openhuman-core/src/agent/triage/mod.rs
+++ b/crates/openhuman-core/src/agent/triage/mod.rs
@@ -44,4 +44,4 @@ pub use envelope::{TriggerEnvelope, TriggerSource};
pub use escalation::apply_decision;
pub use evaluator::{run_triage, TriageOutcome, TriageResolutionPath, TriageRun};
pub use origin::{local_trigger_origin, remote_trigger_origin};
-pub use routing::{build_local_provider_with_config, resolve_provider, ResolvedProvider};
+pub use routing::{build_local_provider_with_config, ResolvedProvider};
diff --git a/crates/openhuman-core/src/cron/scheduler_gate/mod.rs b/crates/openhuman-core/src/cron/scheduler_gate/mod.rs
index 9d1e0d9366..b8427e973a 100644
--- a/crates/openhuman-core/src/cron/scheduler_gate/mod.rs
+++ b/crates/openhuman-core/src/cron/scheduler_gate/mod.rs
@@ -24,9 +24,8 @@
pub mod gate;
pub use gate::{
- current_policy, current_signals, init_global, is_signed_out, set_signed_out, wait_for_capacity,
- LlmPermit,
-};
+ current_policy, init_global, is_signed_out, set_signed_out, wait_for_capacity,
+ LlmPermit};
pub use gate::{PauseReason, Policy, Signals};
#[cfg(test)]
diff --git a/crates/openhuman-core/src/inference/provider/mod.rs b/crates/openhuman-core/src/inference/provider/mod.rs
index 16a623a918..8f35a8fcc6 100644
--- a/crates/openhuman-core/src/inference/provider/mod.rs
+++ b/crates/openhuman-core/src/inference/provider/mod.rs
@@ -17,8 +17,7 @@ pub mod types;
#[allow(unused_imports)]
pub use types::{
- ChatRequest, ChatResponse, ProviderDelta, UsageInfo, AGENT_TURN_MAX_OUTPUT_TOKENS,
-};
+ ChatResponse, ProviderDelta, UsageInfo, AGENT_TURN_MAX_OUTPUT_TOKENS};
pub use error_code::{
backend_error_code_skips_sentry, body_flags_malformed, extract_backend_error_code,
diff --git a/crates/openhuman-core/src/inference/provider/ops/mod.rs b/crates/openhuman-core/src/inference/provider/ops/mod.rs
index 20ac7f6553..630b389332 100644
--- a/crates/openhuman-core/src/inference/provider/ops/mod.rs
+++ b/crates/openhuman-core/src/inference/provider/ops/mod.rs
@@ -35,10 +35,8 @@ pub use models::{
};
pub use provider_factory::{
- canonical_china_provider_name, is_glm_alias, is_minimax_alias, is_moonshot_alias,
- is_qianfan_alias, is_qwen_alias, is_qwen_oauth_alias, is_zai_alias, list_providers,
- ProviderInfo, ProviderRuntimeOptions, INFERENCE_BACKEND_ID,
-};
+ list_providers,
+ ProviderInfo, ProviderRuntimeOptions, INFERENCE_BACKEND_ID};
// ── test re-exports for ops_tests.rs ──
diff --git a/crates/openhuman-core/src/integrations/composio/ops/mod.rs b/crates/openhuman-core/src/integrations/composio/ops/mod.rs
index 70d5c59d14..d5f4e5e64d 100644
--- a/crates/openhuman-core/src/integrations/composio/ops/mod.rs
+++ b/crates/openhuman-core/src/integrations/composio/ops/mod.rs
@@ -75,8 +75,7 @@ pub use triggers::{
// it was `tinymemory_core::sync::composio::providers::user_scopes` reached
// through the in-process engine handle until openhuman#5560; see the module.
pub(crate) use user_scopes::{
- load_or_default as load_user_scope_pref, save as save_user_scope_pref,
-};
+ as load_user_scope_pref, save as save_user_scope_pref};
// ── Re-export connected_integrations public items ──────────────────────────
// (originally at the bottom of ops.rs)
diff --git a/crates/openhuman-core/src/platform/cost/mod.rs b/crates/openhuman-core/src/platform/cost/mod.rs
index f09bd8ebd9..32b4f88330 100644
--- a/crates/openhuman-core/src/platform/cost/mod.rs
+++ b/crates/openhuman-core/src/platform/cost/mod.rs
@@ -18,8 +18,7 @@ pub use schemas::{
pub use tracker::CostTracker;
pub use types::{
BudgetStatus, CostDashboard, CostRecord, CostSource, CostSummary, DailyCostEntry, ModelStats,
- TokenUsage, UsagePeriod,
-};
+ TokenUsage};
/// Serialises tests that touch the process-global [`CostTracker`].
///
diff --git a/crates/openhuman-core/src/skills/ops.rs b/crates/openhuman-core/src/skills/ops.rs
index 7a7c82cac1..725ec05383 100644
--- a/crates/openhuman-core/src/skills/ops.rs
+++ b/crates/openhuman-core/src/skills/ops.rs
@@ -41,7 +41,7 @@ pub use super::ops_install::{
UninstallWorkflowParams, DEFAULT_INSTALL_TIMEOUT_SECS, MAX_INSTALL_TIMEOUT_SECS,
MAX_INSTALL_URL_LEN, MAX_WORKFLOW_MD_BYTES,
};
-pub use super::ops_parse::{inventory_resources, parse_workflow_md, parse_workflow_md_str};
+pub use super::ops_parse::{inventory_resources};
pub use super::ops_types::{
Workflow, WorkflowFrontmatter, WorkflowScope, MAX_WORKFLOW_RESOURCE_BYTES,
};
diff --git a/crates/openhuman-core/src/tools/toolpacks/mod.rs b/crates/openhuman-core/src/tools/toolpacks/mod.rs
index 9f70b5caa9..8c5f7e9eb0 100644
--- a/crates/openhuman-core/src/tools/toolpacks/mod.rs
+++ b/crates/openhuman-core/src/tools/toolpacks/mod.rs
@@ -26,7 +26,7 @@ pub mod groups;
pub mod ops;
pub mod registry;
-pub use groups::{set_process_default, GroupMode, ToolGroups, GROUP_COUNT};
+pub use groups::{GroupMode, ToolGroups, GROUP_COUNT};
pub use ops::{
append_pack_tools, bind_pack_registry, bind_synthesized_pack_registry, close_handed_off_packs,
closed_by_direct_handoff, strip_packed_from_visible,
diff --git a/crates/openhuman-core/src/util/mod.rs b/crates/openhuman-core/src/util/mod.rs
index 94da73275e..ecb356ad6d 100644
--- a/crates/openhuman-core/src/util/mod.rs
+++ b/crates/openhuman-core/src/util/mod.rs
@@ -36,8 +36,7 @@ pub use params::{read_optional, read_required};
pub use redact::redact_url_for_log;
pub use retry::{is_transient_fs_error, retry_with_backoff, retry_with_backoff_async};
pub use text::{
- ceil_char_boundary, floor_char_boundary, provenance_tag, truncate_at_byte_boundary,
- truncate_chars_flagged, truncate_with_ellipsis, truncate_with_suffix,
- utf8_safe_prefix_at_byte_boundary,
-};
+ ceil_char_boundary, floor_char_boundary, truncate_at_byte_boundary,
+ truncate_with_ellipsis, truncate_with_suffix,
+ utf8_safe_prefix_at_byte_boundary};
pub use types::MaybeSet;
diff --git a/crates/openhuman-core/src/voice/audio_toolkit/mod.rs b/crates/openhuman-core/src/voice/audio_toolkit/mod.rs
index ae39f67e69..d26d445b65 100644
--- a/crates/openhuman-core/src/voice/audio_toolkit/mod.rs
+++ b/crates/openhuman-core/src/voice/audio_toolkit/mod.rs
@@ -11,7 +11,7 @@ mod types;
pub use ops::{
email_podcast, generate_and_email_podcast, generate_podcast, resolve_email_capture_dir,
};
-pub use schemas::{all_audio_toolkit_controller_schemas, all_audio_toolkit_registered_controllers};
+pub use schemas::{all_audio_toolkit_registered_controllers};
pub use types::{
AudioEmailDeliveryResult, AudioFormat, AudioGenerateRequest, AudioGeneratedArtifact,
AudioToolkitGenerateAndEmailResult, EmailPodcastRequest,