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
fix(ci): scope rustfmt to owned workspaces
Steven Enamakela7c2bd2aa5d2
diff --git a/app/package.json b/app/package.jsonindex 64d5400b95..264ff74c53 100644--- a/app/package.json+++ b/app/package.json@@ -60,8 +60,8 @@"test:e2e:session:full": "pnpm test:e2e:build && pnpm test:e2e:session","test:all": "pnpm test:coverage && pnpm test:rust && pnpm test:e2e","rust:check": "cargo check --manifest-path ../crates/openhuman-app/Cargo.toml",- "rust:format": "cargo fmt --manifest-path ../Cargo.toml --all && cargo fmt --manifest-path ../crates/openhuman-app/Cargo.toml --all",- "rust:format:check": "cargo fmt --manifest-path ../Cargo.toml --all --check && cargo fmt --manifest-path ../crates/openhuman-app/Cargo.toml --all --check",+ "rust:format": "cargo fmt --manifest-path ../Cargo.toml --package openhuman --package openhuman-cli --package openhuman-embed --package openhuman-modules-linked --package openhuman-rpc --package openhuman-tinyhumans --package openhuman-tui && cargo fmt --manifest-path ../crates/openhuman-app/Cargo.toml --package openhuman-app",+ "rust:format:check": "cargo fmt --manifest-path ../Cargo.toml --package openhuman --package openhuman-cli --package openhuman-embed --package openhuman-modules-linked --package openhuman-rpc --package openhuman-tinyhumans --package openhuman-tui -- --check && cargo fmt --manifest-path ../crates/openhuman-app/Cargo.toml --package openhuman-app -- --check","rust:clippy": "cargo clippy --manifest-path ../crates/openhuman-app/Cargo.toml -- -D warnings","format": "prettier --write . && pnpm rust:format","format:check": "prettier --check . && pnpm rust:format:check",diff --git a/scripts/__tests__/self-hosted-lanes.test.mjs b/scripts/__tests__/self-hosted-lanes.test.mjsindex dea9218a25..50a49427bc 100644--- a/scripts/__tests__/self-hosted-lanes.test.mjs+++ b/scripts/__tests__/self-hosted-lanes.test.mjs@@ -199,7 +199,7 @@ test("the complete suites run, not subsets", () => {test("the lane plan retains the shared CI checks", () => {const shared = [- "cargo fmt --all -- --check",+ "cargo fmt --manifest-path Cargo.toml --package openhuman --package openhuman-cli --package openhuman-embed --package openhuman-modules-linked --package openhuman-rpc --package openhuman-tinyhumans --package openhuman-tui -- --check","node scripts/ci/check-openhuman-rust-layout.mjs","pnpm agent:runtime-boundary","pnpm rust:ignored-tests",diff --git a/scripts/agent-batch/launch.mjs b/scripts/agent-batch/launch.mjsindex 960fa0c9ca..838729f706 100755--- a/scripts/agent-batch/launch.mjs+++ b/scripts/agent-batch/launch.mjs@@ -43,7 +43,7 @@ Pre-PR validation (run all, report any blocker exactly in the PR body):- pnpm typecheck- pnpm lint- focused vitest for changed TS/React files- - cargo fmt --manifest-path Cargo.toml --all --check (if Rust changed)+ - cargo fmt --manifest-path Cargo.toml --package openhuman --package openhuman-cli --package openhuman-embed --package openhuman-modules-linked --package openhuman-rpc --package openhuman-tinyhumans --package openhuman-tui -- --check (if Rust changed)- focused \`pnpm debug rust <filter>\` for changed Rust- pnpm test:coverage and pnpm test:rust — coverage on changed lines must be ≥ 80%diff --git a/scripts/ci/self-hosted/lanes-plan.mjs b/scripts/ci/self-hosted/lanes-plan.mjsindex 2a02bcf091..91c30fe61d 100644--- a/scripts/ci/self-hosted/lanes-plan.mjs+++ b/scripts/ci/self-hosted/lanes-plan.mjs@@ -184,7 +184,7 @@ export function buildPlan({ profile, areas, env = {}, isPullRequest = true }) {{name: "static",checks: [- { name: "rust-fmt", when: rust, run: "cargo fmt --all -- --check" },+ { name: "rust-fmt", when: rust, run: "cargo fmt --manifest-path Cargo.toml --package openhuman --package openhuman-cli --package openhuman-embed --package openhuman-modules-linked --package openhuman-rpc --package openhuman-tinyhumans --package openhuman-tui -- --check" },{name: "rust-layout",when: core,@@ -296,11 +296,11 @@ export function buildPlan({ profile, areas, env = {}, isPullRequest = true }) {when: areas.frontend,needs: ["pnpm-install"],// ex63: ci-lite's `format:check` is prettier plus rust:format:check;- // the static lane's rust-fmt already checks the root workspace, so+ // the static lane's rust-fmt already checks OpenHuman workspace packages, so// only the (non-member) Tauri crate's rustfmt check stays here.run: ex63? `pnpm --filter openhuman-app format:check:prettier --cache --cache-strategy content --cache-location ${nodeCache}/prettier-cache` +- " && cargo fmt --manifest-path crates/openhuman-app/Cargo.toml --all --check"+ " && cargo fmt --manifest-path crates/openhuman-app/Cargo.toml --package openhuman-app -- --check": "pnpm --filter openhuman-app format:check",},{diff --git a/scripts/codex-pr-preflight.mjs b/scripts/codex-pr-preflight.mjsindex 5cd3e104cb..07404c062c 100755--- a/scripts/codex-pr-preflight.mjs+++ b/scripts/codex-pr-preflight.mjs@@ -92,11 +92,11 @@ function recommendations(changedFiles, lightweight) {lines.push('pnpm --dir app exec vitest run <changed-test-files> --config test/vitest.config.ts');}if (hasPattern(changedFiles, ROOT_RUST_PATTERNS)) {- lines.push('cargo fmt --manifest-path Cargo.toml --all --check');+ lines.push('cargo fmt --manifest-path Cargo.toml --package openhuman --package openhuman-cli --package openhuman-embed --package openhuman-modules-linked --package openhuman-rpc --package openhuman-tinyhumans --package openhuman-tui -- --check');if (!lightweight) lines.push('pnpm debug rust <test-filter>');}if (hasPattern(changedFiles, TAURI_PATTERNS)) {- lines.push('cargo fmt --manifest-path crates/openhuman-app/Cargo.toml --all --check');+ lines.push('cargo fmt --manifest-path crates/openhuman-app/Cargo.toml --package openhuman-app -- --check');}return [...new Set(lines)];}