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(release): skip modules with no build for the target OS
Steven Enamakel942458956919
diff --git a/scripts/__tests__/stage-modules.test.mjs b/scripts/__tests__/stage-modules.test.mjsindex 0efc3ed10e..5b21fad1ee 100644--- a/scripts/__tests__/stage-modules.test.mjs+++ b/scripts/__tests__/stage-modules.test.mjs@@ -25,7 +25,10 @@ for (const hostKey of HOST_KEYS) {test(`every compiled module has one pinned ${hostKey} asset`, () => {const source = readRegistrySource();const assets = bundledAssets(source, hostKey);- assert.equal(assets.length, parseAllList(source).length);+ const linux = hostKey.startsWith("ubuntu-");+ // tinycomputer publishes no Linux build; every other module is bundled.+ assert.equal(assets.length, parseAllList(source).length - (linux ? 1 : 0));+ assert.equal(assets.some((a) => a.id === "tinycomputer"), !linux);assert.equal(new Set(assets.map((asset) => asset.id)).size, assets.length);for (const asset of assets) {assert.equal(asset.hostKey, hostKey);diff --git a/scripts/release/stage-modules.mjs b/scripts/release/stage-modules.mjsindex 88b2244a4e..c8a366e9e1 100644--- a/scripts/release/stage-modules.mjs+++ b/scripts/release/stage-modules.mjs@@ -60,7 +60,15 @@ export function bundledAssets(source, hostKey) {if (!urls.has(record.id)) throw new Error(`missing release URL for ${record.id}`);return record.id;});- const assets = resolveTestModuleAssets(source, hostKey, ids);+ // A module that publishes nothing for this OS (tinycomputer has no Linux+ // build) is not bundled there; one that publishes the OS but not this key is+ // a registry hole and fails below.+ const osPrefix = hostKey.split("-")[0];+ const byId = new Map([...records.values()].map((r) => [r.id, r]));+ const wanted = ids.filter((id) =>+ byId.get(id).assets.some((a) => a.hostKey.startsWith(`${osPrefix}-`)),+ );+ const assets = resolveTestModuleAssets(source, hostKey, wanted);return assets.map((asset) => {const record = [...records.values()].find((r) => r.id === asset.id);for (const component of [record.id, record.version, hostKey, asset.archive]) {