Move release manifest into lib/ to fix dependency direction

Architecture review (hai-architecture / APoSD) of the shipped redesign found one
structural smell: the shared lib/ layer imported the release manifest from
components/ — data in the presentation layer, dependency pointing the wrong way.
- move components/release-links.generated.ts -> lib/; update the four importers
  and the README. lib/ no longer imports from components/.
- downloads.ts: reuse PlatformDownload["id"] instead of re-declaring the union.

No behavior change (download counter + tracked hrefs identical); build + e2e 12/12.
This commit is contained in:
ZacharyZhang-NY committed 2026-07-08 01:11:23 -04:00
1 parent 74e2d3fed6
commit d833ff4776
6 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -1,11 +1,11 @@
import { platformDownloads, type PlatformDownloadAsset } from "../components/release-links.generated";
import { platformDownloads, type PlatformDownload, type PlatformDownloadAsset } from "./release-links.generated";
export const DOWNLOAD_COUNT_SEED = 13674;
export const DOWNLOAD_DEDUP_WINDOW_HOURS = 24;
export const DOWNLOAD_DEDUP_WINDOW_MS = DOWNLOAD_DEDUP_WINDOW_HOURS * 60 * 60 * 1000;
export type ReleaseDownloadAsset = PlatformDownloadAsset & {
platformId: "macos" | "windows" | "linux";
platformId: PlatformDownload["id"];
platformTitle: string;
};
+1 -1
View File
@@ -3,7 +3,7 @@ import {
type PlatformDownload,
type PlatformDownloadAsset,
type ReleaseArchitecture,
} from "../components/release-links.generated";
} from "./release-links.generated";
const ARCHITECTURE_ORDER: ReleaseArchitecture[] = ["arm64", "x64", "x86"];
+1 -1
View File
@@ -1,4 +1,4 @@
import { releaseVersion } from "../components/release-links.generated";
import { releaseVersion } from "./release-links.generated";
export const landingHeroNarrative = {
eyebrow: "AgentCompany Desktop",
+59
View File
@@ -0,0 +1,59 @@
export type PlatformDownloadAsset = {
architectures: ReleaseArchitecture[];
id: string;
label: string;
href: string;
note: string;
};
export type ReleaseArchitecture = "arm64" | "x64" | "x86";
export type PlatformDownload = {
id: "macos" | "windows" | "linux";
packageDescription: string;
title: string;
note: string;
assets: PlatformDownloadAsset[];
};
export const releaseVersion = "1.0.0";
export const platformDownloads: PlatformDownload[] = [
{
id: "macos",
packageDescription: "signed and notarized DMG builds",
title: "macOS",
note: "Signed + notarized DMG builds",
assets: [
{
architectures: ["arm64"],
id: "macos-arm64-dmg",
label: "Apple Silicon DMG",
href: "https://pub-a19a3a2c1d2e4fa3a9c120b184024448.r2.dev/AC/AgentCompany-0.4.182-arm64.dmg",
note: "arm64",
},
{
architectures: ["x64"],
id: "macos-x64-dmg",
label: "Intel Mac DMG",
href: "https://pub-a19a3a2c1d2e4fa3a9c120b184024448.r2.dev/AC/AgentCompany-0.4.182.dmg",
note: "x64",
},
],
},
{
id: "windows",
packageDescription: "a signed NSIS installer build",
title: "Windows",
note: "Signed NSIS installer build",
assets: [
{
architectures: ["x64"],
id: "windows-x64-installer",
label: "Windows Installer (x64)",
href: "https://pub-a19a3a2c1d2e4fa3a9c120b184024448.r2.dev/AC/AgentCompany-1.0.0-x64.exe",
note: "x64",
},
],
},
];