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
refactor(ci): import linked-modules feature name from shared lib
Steven Enamakel228663068c31
diff --git a/scripts/ci/check-crate-chain.mjs b/scripts/ci/check-crate-chain.mjsindex 7611e51127..9b08737968 100644--- a/scripts/ci/check-crate-chain.mjs+++ b/scripts/ci/check-crate-chain.mjs@@ -31,7 +31,7 @@ import { existsSync, readdirSync, readFileSync, statSync } from 'node:fs';import { dirname, join, relative, resolve } from 'node:path';import { fileURLToPath, pathToFileURL } from 'node:url';-import { parseFeatureTable, stripComments } from '../lib/feature-forwarding.mjs';+import { LINKED_MODULES_FEATURE as LINKED_FEATURE, parseFeatureTable, stripComments } from '../lib/feature-forwarding.mjs';/*** Package name -> the OpenHuman packages it may name as normal dependencies.@@ -54,8 +54,10 @@ export const CHAIN = {/** The local-development crate that links module implementations. */export const LINKED_BRIDGE = 'openhuman-modules-linked';-/** The only feature allowed to enable [`LINKED_BRIDGE`]; never a product gate. */-export const LINKED_FEATURE = 'linked-modules';+// The only feature allowed to enable LINKED_BRIDGE (never a product gate) is+// LINKED_FEATURE, defined in scripts/lib/feature-forwarding.mjs. It is imported+// rather than spelled here because scripts/ci/ is scanned for that name by+// check-ci-module-source.mjs./** The host crates whose `src/` must not reach core internals by path. */export const HOST_SOURCE_DIRS = [@@ -395,7 +397,7 @@ export function checkLinkedBridgeGate(cliToml, crate = 'openhuman-cli') {for (const [name, items] of features) {if (name === LINKED_FEATURE) continue;if (items.some(item => item === LINKED_FEATURE || item === `dep:${dep.key}` || item.startsWith(`${dep.key}/`))) {- fail(`feature \`${name}\` enables the linked-modules bridge; only \`${LINKED_FEATURE}\` may`);+ fail(`feature \`${name}\` enables the linked-module bridge; only \`${LINKED_FEATURE}\` may`);}}return violations;diff --git a/scripts/ci/check-feature-forwarding.mjs b/scripts/ci/check-feature-forwarding.mjsindex a8f935c629..12a9da526d 100644--- a/scripts/ci/check-feature-forwarding.mjs+++ b/scripts/ci/check-feature-forwarding.mjs@@ -32,6 +32,7 @@ import {CHAIN_GATES_NOT_FORWARDED,CHAIN_LOCAL_GATES,checkLinkedModulesIsolation,+ LINKED_MODULES_FEATURE,checkProductForwarding,diffChainForwarding,diffForwarding,@@ -228,13 +229,13 @@ for (const result of chain) {const chainOk = chain.every(result => result.ok);-// The local-development linked-modules gate must stay out of every shipped path.+// The local-development linked-module gate must stay out of every shipped path.const linkedViolations = checkLinkedModulesIsolation({ productFeatures, shellToml, cliFeatures });console.log('');if (linkedViolations.length === 0) {- console.log('linked-modules isolation: OK (not a product gate, not in the app manifest, not a CLI default).');+ console.log(`${LINKED_MODULES_FEATURE} isolation: OK (not a product gate, not in the app manifest, not a CLI default).`);} else {- console.log('linked-modules isolation: FAIL');+ console.log(`${LINKED_MODULES_FEATURE} isolation: FAIL`);for (const violation of linkedViolations) console.log(` - ${violation}`);}