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): treat cargo dep kind "normal" as a normal dependency
Steven Enamakeldecb4513a4e4
diff --git a/scripts/ci/__tests__/check-storage-owner.test.mjs b/scripts/ci/__tests__/check-storage-owner.test.mjsindex bc49c68092..7a144b6b1c 100644--- a/scripts/ci/__tests__/check-storage-owner.test.mjs+++ b/scripts/ci/__tests__/check-storage-owner.test.mjs@@ -2,6 +2,11 @@* Fixture-based self-tests for check-storage-owner.mjs** Run with: node --test scripts/ci/__tests__/check-storage-owner.test.mjs+ *+ * Cargo metadata dep_kinds format:+ * - Normal dep: { kind: "normal" } or absent (treated as normal)+ * - Build dep: { kind: "build" }+ * - Dev dep: { kind: "dev" }*/import { checkMetadata } from '../check-storage-owner.mjs';@@ -12,10 +17,10 @@ const REGISTRY = 'registry+https://github.com/rust-lang/crates.io-index';const tsd_git = (tag) => `git+https://github.com/tinyhumansai/tinystoragedrivers?tag=${tag}#`;// ----------------------------------------------------------------------------// Helper builders+// Helper builders — dep_kinds uses "normal" (string), not null// ----------------------------------------------------------------------------/** Package with source=null (path crate, first-party). */+/** Path crate (first-party, source = null). */const pathPkg = (name, version, manifest, deps = []) => ({id: `${name} ${version}`,name,@@ -25,7 +30,7 @@ const pathPkg = (name, version, manifest, deps = []) => ({dependencies: deps,});-/** Package from a registry. */+/** Registry crate. */const regPkg = (name, version, manifest, deps = []) => ({id: `${name} ${version} ${REGISTRY}`,name,@@ -35,7 +40,7 @@ const regPkg = (name, version, manifest, deps = []) => ({dependencies: deps,});-/** Package from a git source. */+/** Git crate. */const gitPkg = (name, version, manifest, git_source, deps = []) => ({id: `${name} ${version} ${git_source}`,name,@@ -45,13 +50,18 @@ const gitPkg = (name, version, manifest, git_source, deps = []) => ({dependencies: deps,});+/** Normal dep_kinds entry. */+const NORMAL = [{ kind: 'normal' }];+/** Build dep_kinds entry. */+const BUILD = [{ kind: 'build' }];+/** Resolve node for a path crate. */const pathNode = (name, version, deps) => ({id: `${name} ${version}`,deps: deps.map(([dep_name, dep_ver, dep_source]) => ({name: dep_name,pkg: dep_source ? `${dep_name} ${dep_ver} ${dep_source}` : `${dep_name} ${dep_ver}`,- dep_kinds: [{ kind: null }],+ dep_kinds: NORMAL,})),});@@ -61,7 +71,7 @@ const regNode = (name, version, deps) => ({deps: deps.map(([dep_name, dep_ver, dep_source]) => ({name: dep_name,pkg: dep_source ? `${dep_name} ${dep_ver} ${dep_source}` : `${dep_name} ${dep_ver}`,- dep_kinds: [{ kind: null }],+ dep_kinds: NORMAL,})),});@@ -171,6 +181,7 @@ const vendored_ok_fixture = {// ---------------------------------------------------------------------------// Fixture: aws-sdk-s3 reached directly from non-allowlisted crate → must FAIL+// openhuman-rpc (path) -> aws-sdk-s3 (registry)// ---------------------------------------------------------------------------const aws_s3_fixture = {diff --git a/scripts/ci/check-storage-owner.mjs b/scripts/ci/check-storage-owner.mjsindex abd92df7d2..243d95cd86 100644--- a/scripts/ci/check-storage-owner.mjs+++ b/scripts/ci/check-storage-owner.mjs@@ -184,7 +184,7 @@ export function checkEngineClosure(metadata, roots) {// dep_kinds may be absent (defaults to normal per cargo convention).const dep_kinds = dep.dep_kinds ?? [{ kind: null }];const has_normal_or_build = dep_kinds.some(- dk => dk.kind === undefined || dk.kind === null || dk.kind === 'build'+ dk => dk.kind === undefined || dk.kind === 'normal' || dk.kind === 'build');if (!has_normal_or_build) continue;