Skip to content

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

style(skills): normalise import ordering and formatting

Steven Enamakele6c63ea9f01f
diff --git a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rs b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rs
index 23da1aa5b9..90e444071c 100644
--- a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rs
+++ b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rs
@@ -16,11 +16,11 @@ use crate::agent::prompts::{
render_datetime, render_identity, render_tools, render_workspace, ConnectedIntegration,
PromptContext, ToolCallFormat,
};
-use {tinyskills::Skill as Workflow};
use crate::tools::orchestrator_tools::sanitise_slug;
use crate::tools::toolpacks;
use anyhow::Result;
use std::fmt::Write;
+use tinyskills::Skill as Workflow;
const ARCHETYPE: &str = include_str!("prompt.md");
diff --git a/crates/openhuman-core/src/skills/catalog/schemas/wire_types.rs b/crates/openhuman-core/src/skills/catalog/schemas/wire_types.rs
index 951ba56fad..b9bc8079cf 100644
--- a/crates/openhuman-core/src/skills/catalog/schemas/wire_types.rs
+++ b/crates/openhuman-core/src/skills/catalog/schemas/wire_types.rs
@@ -4,7 +4,7 @@ use serde::{Deserialize, Serialize};
use crate::core::ControllerSchema;
use crate::skills::ops_install::SkillInstallOutcome;
-use {tinyskills::SkillScope as WorkflowScope};
+use tinyskills::SkillScope as WorkflowScope;
use {
crate::skills::catalog::types::CatalogPage, crate::skills::catalog::types::CatalogQuery,
tinyskills::Facet, tinyskills::Freshness,
diff --git a/crates/openhuman-core/src/skills/e2e_plumbing_tests.rs b/crates/openhuman-core/src/skills/e2e_plumbing_tests.rs
index b75472a735..9aef24763b 100644
--- a/crates/openhuman-core/src/skills/e2e_plumbing_tests.rs
+++ b/crates/openhuman-core/src/skills/e2e_plumbing_tests.rs
@@ -33,7 +33,6 @@ use crate::config::{Config, MultimodalConfig, MultimodalFileConfig};
use crate::skills::ops_create::{
create_workflow_inner, CreateWorkflowParams, WorkflowCreateInputDef,
};
-use {tinyskills::SkillScope as WorkflowScope};
use crate::skills::registry::get_workflow;
use crate::skills::run_log;
use crate::skills::runtime::await_run_outcome;
@@ -41,6 +40,7 @@ use tinyagents_session::transcript::TranscriptMessage;
use tinyinference_llm::message::AssistantMessage;
use tinyinference_llm::model::{ChatModel, ModelProfile, ModelRequest, ModelResponse};
use tinyinference_llm::tool::ToolCall;
+use tinyskills::SkillScope as WorkflowScope;
use tinytools::Tool;
// ── Mock LLM ─────────────────────────────────────────────────────────────
diff --git a/crates/openhuman-core/src/skills/ops.rs b/crates/openhuman-core/src/skills/ops.rs
index f384174fb1..24fd91911d 100644
--- a/crates/openhuman-core/src/skills/ops.rs
+++ b/crates/openhuman-core/src/skills/ops.rs
@@ -41,7 +41,11 @@ pub use super::ops_install::{
UninstallWorkflowParams, DEFAULT_INSTALL_TIMEOUT_SECS, MAX_INSTALL_TIMEOUT_SECS,
MAX_INSTALL_URL_LEN, MAX_WORKFLOW_MD_BYTES,
};
-use {tinyskills::Skill as Workflow, tinyskills::SkillFrontmatter as WorkflowFrontmatter, tinyskills::SkillScope as WorkflowScope, tinyskills::MAX_RESOURCE_BYTES as MAX_WORKFLOW_RESOURCE_BYTES};
+use {
+ tinyskills::Skill as Workflow, tinyskills::SkillFrontmatter as WorkflowFrontmatter,
+ tinyskills::SkillScope as WorkflowScope,
+ tinyskills::MAX_RESOURCE_BYTES as MAX_WORKFLOW_RESOURCE_BYTES,
+};
#[cfg(test)]
pub(crate) use super::ops_create::create_workflow_inner;
@@ -52,9 +56,12 @@ pub(crate) use super::ops_install::{
install_workflow_from_url_with_home, normalize_install_url, should_report_install_fetch_status,
};
#[cfg(test)]
-pub(crate) use {tinyskills::RESOURCE_DIRS, tinyskills::SKILL_MD, super::ops_types::TRUST_MARKER, tinyskills::WORKFLOW_MD, super::ops_types::WORKFLOW_TOML};
-#[cfg(test)]
pub(crate) use std::path::{Path, PathBuf};
+#[cfg(test)]
+pub(crate) use {
+ super::ops_types::TRUST_MARKER, super::ops_types::WORKFLOW_TOML, tinyskills::RESOURCE_DIRS,
+ tinyskills::SKILL_MD, tinyskills::WORKFLOW_MD,
+};
#[cfg(test)]
#[path = "ops_tests.rs"]
diff --git a/crates/openhuman-core/src/skills/ops_create.rs b/crates/openhuman-core/src/skills/ops_create.rs
index 816d5fbec4..c0667d0a45 100644
--- a/crates/openhuman-core/src/skills/ops_create.rs
+++ b/crates/openhuman-core/src/skills/ops_create.rs
@@ -9,7 +9,10 @@ use tinyskills::{
};
use super::ops_discover::{discover_workflows_inner, is_workspace_trusted};
-use {tinyskills::Skill as Workflow, tinyskills::SkillScope as WorkflowScope, super::ops_types::SKILL_TOML, super::ops_types::WORKFLOW_TOML};
+use {
+ super::ops_types::SKILL_TOML, super::ops_types::WORKFLOW_TOML, tinyskills::Skill as Workflow,
+ tinyskills::SkillScope as WorkflowScope,
+};
/// One declared `[[inputs]]` entry as supplied at create time by the
/// Create-a-Workflow form.
diff --git a/crates/openhuman-core/src/skills/ops_discover/api.rs b/crates/openhuman-core/src/skills/ops_discover/api.rs
index a5b58109c8..4c16d9bfd6 100644
--- a/crates/openhuman-core/src/skills/ops_discover/api.rs
+++ b/crates/openhuman-core/src/skills/ops_discover/api.rs
@@ -7,7 +7,7 @@ use std::path::{Path, PathBuf};
use std::sync::atomic::{AtomicU64, Ordering};
use std::sync::{LazyLock, RwLock};
-use {tinyskills::Skill as Workflow, crate::skills::ops_types::TRUST_MARKER};
+use {crate::skills::ops_types::TRUST_MARKER, tinyskills::Skill as Workflow};
use super::scan::{discover_filtered, ALL_ROOT_KINDS, WORKFLOW_ROOT_KINDS};
diff --git a/crates/openhuman-core/src/skills/ops_install/uninstall.rs b/crates/openhuman-core/src/skills/ops_install/uninstall.rs
index b6b64f99b9..bba7978af3 100644
--- a/crates/openhuman-core/src/skills/ops_install/uninstall.rs
+++ b/crates/openhuman-core/src/skills/ops_install/uninstall.rs
@@ -4,7 +4,7 @@ use std::path::Path;
use serde::{Deserialize, Serialize};
-use {tinyskills::SkillScope as WorkflowScope};
+use tinyskills::SkillScope as WorkflowScope;
/// Input for [`uninstall_workflow`]. Mirrors the `skills.uninstall` JSON-RPC payload.
#[derive(Debug, Clone, Deserialize)]
diff --git a/crates/openhuman-core/src/skills/ops_types.rs b/crates/openhuman-core/src/skills/ops_types.rs
index 7b8792c5c9..4f3feed1bd 100644
--- a/crates/openhuman-core/src/skills/ops_types.rs
+++ b/crates/openhuman-core/src/skills/ops_types.rs
@@ -1,6 +1,12 @@
//! OpenHuman-compatible names for the portable `tinyskills` model.
-use {tinyskills::Skill as Workflow, tinyskills::SkillFrontmatter as WorkflowFrontmatter, tinyskills::SkillScope as WorkflowScope, tinyskills::MAX_DESCRIPTION_LEN, tinyskills::MAX_NAME_LEN, tinyskills::MAX_RESOURCE_BYTES as MAX_WORKFLOW_RESOURCE_BYTES, tinyskills::RESOURCE_DIRS, tinyskills::SKILL_JSON, tinyskills::SKILL_MD, tinyskills::WORKFLOW_MD};
+use {
+ tinyskills::Skill as Workflow, tinyskills::SkillFrontmatter as WorkflowFrontmatter,
+ tinyskills::SkillScope as WorkflowScope, tinyskills::MAX_DESCRIPTION_LEN,
+ tinyskills::MAX_NAME_LEN, tinyskills::MAX_RESOURCE_BYTES as MAX_WORKFLOW_RESOURCE_BYTES,
+ tinyskills::RESOURCE_DIRS, tinyskills::SKILL_JSON, tinyskills::SKILL_MD,
+ tinyskills::WORKFLOW_MD,
+};
// Host-owned sidecar names and the trust marker are OpenHuman policy.
diff --git a/crates/openhuman-core/src/skills/search.rs b/crates/openhuman-core/src/skills/search.rs
index de63ccbe81..9c818e6798 100644
--- a/crates/openhuman-core/src/skills/search.rs
+++ b/crates/openhuman-core/src/skills/search.rs
@@ -37,8 +37,8 @@ use async_trait::async_trait;
use serde_json::{json, Value};
use super::ops_discover::{discover_workflows, is_workspace_trusted};
-use {tinyskills::Skill as Workflow};
use crate::config::Config;
+use tinyskills::Skill as Workflow;
use tinytools::rank::Bm25Index;
use tinytools::{Tool, ToolResult};
diff --git a/crates/openhuman-core/src/skills/stub.rs b/crates/openhuman-core/src/skills/stub.rs
index 8b83a5e5d7..d1659412b5 100644
--- a/crates/openhuman-core/src/skills/stub.rs
+++ b/crates/openhuman-core/src/skills/stub.rs
@@ -27,7 +27,11 @@ use crate::core::ControllerSchema;
// real build exposes at the `skills` root (`skills::Workflow`, etc.).
// ---------------------------------------------------------------------------
-use {tinyskills::Skill as Workflow, tinyskills::SkillFrontmatter as WorkflowFrontmatter, tinyskills::SkillScope as WorkflowScope, tinyskills::MAX_RESOURCE_BYTES as MAX_WORKFLOW_RESOURCE_BYTES};
+use {
+ tinyskills::Skill as Workflow, tinyskills::SkillFrontmatter as WorkflowFrontmatter,
+ tinyskills::SkillScope as WorkflowScope,
+ tinyskills::MAX_RESOURCE_BYTES as MAX_WORKFLOW_RESOURCE_BYTES,
+};
// ---------------------------------------------------------------------------
// Discovery surface (mirrors `ops_discover::*` re-exported at the skills root)
diff --git a/crates/openhuman-core/src/skills/write_root_tests.rs b/crates/openhuman-core/src/skills/write_root_tests.rs
index a66942f21f..6a4b9f9e55 100644
--- a/crates/openhuman-core/src/skills/write_root_tests.rs
+++ b/crates/openhuman-core/src/skills/write_root_tests.rs
@@ -2,9 +2,9 @@ use super::*;
use crate::core::runtime::{context::CoreContext, ContextOverlay, DomainSet};
use crate::skills::ops_create::{create_workflow_inner, CreateWorkflowParams};
use crate::skills::ops_discover::discover_workflows;
-use {tinyskills::SkillScope as WorkflowScope};
use crate::tools::toolpacks::ToolGroups;
use std::sync::Arc;
+use tinyskills::SkillScope as WorkflowScope;
fn agent_on(workspace: &Path, agent: &str) -> Arc<CoreContext> {
let mut config = crate::config::Config::default();