The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
feat(ci): add openhuman-cli crate and move integration targets to it
Steven Enamakelb6d1053bdb82
diff --git a/Cargo.toml b/Cargo.tomlindex d2bf50212c..16410905f3 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -10,6 +10,7 @@[workspace]resolver = "2"members = [+ "crates/openhuman-cli","crates/openhuman-core","crates/openhuman-embed","crates/openhuman-rpc",diff --git a/scripts/ci/check-openhuman-rust-layout.mjs b/scripts/ci/check-openhuman-rust-layout.mjsindex 17c8aa52cc..5d62d2deea 100644--- a/scripts/ci/check-openhuman-rust-layout.mjs+++ b/scripts/ci/check-openhuman-rust-layout.mjs@@ -6,6 +6,9 @@ import path from "node:path";const ROOT = "crates/openhuman-core/src";const CRATES_ROOT = "crates";const CORE_MANIFEST = "crates/openhuman-core/Cargo.toml";+// Root `tests/*.rs` / `examples/*.rs` targets are declared by the CLI crate,+// which hosts the binary and every integration suite; the core is a library.+const CLI_MANIFEST = "crates/openhuman-cli/Cargo.toml";const LINE_LIMIT = 750;// These stateful assembly functions still need semantic decomposition. Pinning@@ -84,7 +87,14 @@ for (const file of LEGACY_LIMITS.keys()) {// cannot auto-discover them. Keep the explicit target list// exhaustive: otherwise adding a file can make `cargo test` silently run// nothing for it while still exiting successfully.-const manifest = fs.readFileSync(CORE_MANIFEST, "utf8");+const manifest = fs.readFileSync(CLI_MANIFEST, "utf8");+const coreManifest = fs.readFileSync(CORE_MANIFEST, "utf8");+for (const table of ["bin", "test", "example"]) {+ if (coreManifest.includes(`[[${table}]]`))+ failures.push(+ `${CORE_MANIFEST}: [[${table}]] target declared in the library crate; it belongs in ${CLI_MANIFEST}`,+ );+}function declaredTargets(table) {const targets = new Set();for (const block of manifest.split(`[[${table}]]`).slice(1)) {@@ -107,11 +117,11 @@ for (const [directory, table] of [const declared = declaredTargets(table);for (const name of files) {if (!declared.has(name))- failures.push(`${directory}/${name}.rs: missing [[${table}]] entry in ${CORE_MANIFEST}`);+ failures.push(`${directory}/${name}.rs: missing [[${table}]] entry in ${CLI_MANIFEST}`);}for (const name of declared) {if (!files.has(name))- failures.push(`${CORE_MANIFEST}: stale [[${table}]] target ${name}`);+ failures.push(`${CLI_MANIFEST}: stale [[${table}]] target ${name}`);}}