Skip to content

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

fix(ci): tighten rpc internal reexport detection

Steven Enamakelab08a3c96b23
diff --git a/scripts/ci/check-crate-chain.mjs b/scripts/ci/check-crate-chain.mjs
index 8d71e9d8a4..e4736a72ec 100644
--- a/scripts/ci/check-crate-chain.mjs
+++ b/scripts/ci/check-crate-chain.mjs
@@ -87,7 +87,10 @@ export const WHOLESALE_REEXPORT_PATTERNS = [
/** `pub use` of the internal list from rpc (it may only be `pub(crate)`). */
export const RPC_INTERNAL_REEXPORT_PATTERNS = [
- { name: 'pub use … __host / core_host', regex: /\bpub\s+use\b[^;]*\b(?:__host|core_host)\b/ },
+ {
+ name: 'pub use of the __host / core_host list itself',
+ regex: /\bpub\s+use\b[^;]*\b(?:__host|core_host)\b\s*(?:as\s+\w+\s*)?(?:[;,}]|::\*)/,
+ },
];
/** Hosts, root tests and examples must not reach the internal list through rpc. */