Skip to content

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

fix(release): require every module to publish all desktop targets

Steven Enamakeld4d01ad977d1
diff --git a/scripts/__tests__/stage-modules.test.mjs b/scripts/__tests__/stage-modules.test.mjs
index 06b477574d..68c9e9b12d 100644
--- a/scripts/__tests__/stage-modules.test.mjs
+++ b/scripts/__tests__/stage-modules.test.mjs
@@ -45,10 +45,10 @@ for (const hostKey of HOST_KEYS) {
test(`every compiled module has one pinned ${hostKey} asset`, () => {
const source = readRegistrySource();
const assets = bundledAssets(source, hostKey);
- 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);
+ // Every current registry module, including TinyComputer v0.11, publishes
+ // all six desktop build targets. Missing pins must fail this contract.
+ assert.equal(assets.length, parseAllList(source).length);
+ assert.ok(assets.some((a) => a.id === "tinycomputer"));
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.mjs
index d7bb88456e..d4fc2f70ee 100644
--- a/scripts/release/stage-modules.mjs
+++ b/scripts/release/stage-modules.mjs
@@ -96,8 +96,8 @@ export function bundledAssets(source, hostKey) {
if (!urls.has(record.id)) throw new Error(`missing release URL for ${record.id}`);
return record.id;
});
- // 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 module that publishes nothing for this OS 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]));