Promote AgentCompany-New to the repository root and retire the old app
The legacy application - its src, tests, landing site, promo assets, docs, release tooling, CI workflows, and root configs - leaves the tree; it stays reachable in history. Everything under AgentCompany-New moves up unchanged: same package name, so the production userData/database path is untouched, and e2e/build scripts already resolved paths relative to the project. The developer cred.txt stays gitignored at its new location. Full verify:ci passes from the new root.
This commit is contained in:
1 parent
2350f744e3
commit
07d0b4587d
1904 files changed
+1133
-282075
No files matched your search
@@ -1,28 +0,0 @@
|
||||
import { platformDownloads, type PlatformDownloadAsset } from "../components/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";
|
||||
platformTitle: string;
|
||||
};
|
||||
|
||||
export const downloadAssets: ReleaseDownloadAsset[] = platformDownloads.flatMap((platform) =>
|
||||
platform.assets.map((asset) => ({
|
||||
...asset,
|
||||
platformId: platform.id,
|
||||
platformTitle: platform.title,
|
||||
})),
|
||||
);
|
||||
|
||||
const downloadAssetMap = new Map(downloadAssets.map((asset) => [asset.id, asset]));
|
||||
|
||||
export function getDownloadAsset(assetId: string) {
|
||||
return downloadAssetMap.get(assetId) ?? null;
|
||||
}
|
||||
|
||||
export function getTrackedDownloadHref(assetId: string) {
|
||||
return `/api/download?asset=${encodeURIComponent(assetId)}`;
|
||||
}
|
||||
@@ -1,106 +0,0 @@
|
||||
import {
|
||||
platformDownloads,
|
||||
type PlatformDownload,
|
||||
type PlatformDownloadAsset,
|
||||
type ReleaseArchitecture,
|
||||
} from "../components/release-links.generated";
|
||||
|
||||
const ARCHITECTURE_ORDER: ReleaseArchitecture[] = ["arm64", "x64", "x86"];
|
||||
|
||||
export type PlatformSupportSummary = {
|
||||
downloadAnswer: string;
|
||||
platformAnswer: string;
|
||||
};
|
||||
|
||||
export const platformSupportSummary = buildPlatformSupportSummary(platformDownloads);
|
||||
|
||||
export function buildPlatformSupportSummary(downloads: PlatformDownload[]): PlatformSupportSummary {
|
||||
const macos = requirePlatform(downloads, "macos");
|
||||
const windows = requirePlatform(downloads, "windows");
|
||||
const linux = requirePlatform(downloads, "linux");
|
||||
|
||||
return {
|
||||
downloadAnswer:
|
||||
`Use the download section on this page to choose the build that matches your architecture and package format. ` +
|
||||
`${formatDownloadSentence(macos)} ${formatDownloadSentence(windows)} ${formatDownloadSentence(linux)}`,
|
||||
platformAnswer:
|
||||
`AgentCompany is available on ${formatAvailability(macos)}, ${formatAvailability(windows)}, ` +
|
||||
`and ${formatAvailability(linux)}. It is built with Electron and the desktop feature set stays aligned across all supported targets.`,
|
||||
};
|
||||
}
|
||||
|
||||
function requirePlatform(downloads: PlatformDownload[], id: PlatformDownload["id"]): PlatformDownload {
|
||||
const platform = downloads.find((download) => download.id === id);
|
||||
if (!platform) {
|
||||
throw new Error(`Missing ${id} release download metadata.`);
|
||||
}
|
||||
return platform;
|
||||
}
|
||||
|
||||
function formatDownloadSentence(download: PlatformDownload): string {
|
||||
const architectures = formatArchitectureList(collectArchitectures(download));
|
||||
|
||||
if (!download.packageDescription.trim()) {
|
||||
throw new Error(`Release platform ${download.id} must include package format copy.`);
|
||||
}
|
||||
|
||||
return `${download.title} ships as ${download.packageDescription} for ${architectures}.`;
|
||||
}
|
||||
|
||||
function formatAvailability(download: PlatformDownload): string {
|
||||
return `${download.title} (${formatArchitectureList(collectArchitectures(download), "comma")})`;
|
||||
}
|
||||
|
||||
function collectArchitectures(download: PlatformDownload): ReleaseArchitecture[] {
|
||||
const architectures = new Set<ReleaseArchitecture>();
|
||||
|
||||
for (const asset of download.assets) {
|
||||
collectAssetArchitectures(download.id, asset).forEach((architecture) => architectures.add(architecture));
|
||||
}
|
||||
|
||||
return [...architectures].sort((left, right) => architectureRank(left) - architectureRank(right));
|
||||
}
|
||||
|
||||
function collectAssetArchitectures(
|
||||
platformId: PlatformDownload["id"],
|
||||
asset: PlatformDownloadAsset,
|
||||
): ReleaseArchitecture[] {
|
||||
if (asset.architectures.length === 0) {
|
||||
throw new Error(`Release asset ${platformId}/${asset.id} must declare at least one architecture.`);
|
||||
}
|
||||
|
||||
for (const architecture of asset.architectures) {
|
||||
if (!isReleaseArchitecture(architecture)) {
|
||||
throw new Error(`Release asset ${platformId}/${asset.id} declares unsupported architecture: ${architecture}`);
|
||||
}
|
||||
}
|
||||
|
||||
return asset.architectures;
|
||||
}
|
||||
|
||||
function isReleaseArchitecture(value: string): value is ReleaseArchitecture {
|
||||
return ARCHITECTURE_ORDER.includes(value as ReleaseArchitecture);
|
||||
}
|
||||
|
||||
function architectureRank(architecture: ReleaseArchitecture): number {
|
||||
return ARCHITECTURE_ORDER.indexOf(architecture);
|
||||
}
|
||||
|
||||
function formatArchitectureList(
|
||||
architectures: ReleaseArchitecture[],
|
||||
style: "and" | "comma" = "and",
|
||||
): string {
|
||||
if (architectures.length === 0) {
|
||||
throw new Error("Release download metadata must include at least one architecture.");
|
||||
}
|
||||
if (style === "comma") {
|
||||
return architectures.join(", ");
|
||||
}
|
||||
if (architectures.length === 1) {
|
||||
return architectures[0];
|
||||
}
|
||||
if (architectures.length === 2) {
|
||||
return `${architectures[0]} and ${architectures[1]}`;
|
||||
}
|
||||
return `${architectures.slice(0, -1).join(", ")}, and ${architectures.at(-1)}`;
|
||||
}
|
||||
@@ -1,80 +0,0 @@
|
||||
import { releaseVersion } from "../components/release-links.generated";
|
||||
|
||||
export const landingHeroNarrative = {
|
||||
eyebrow: "AgentCompany Desktop",
|
||||
titleLine1: "Launch an Autonomous AI Company",
|
||||
titleLine2: "from Your Desktop",
|
||||
description:
|
||||
"Run AI CEO by default, switch to AI Co-Founder for human-reviewed decisions, and launch the first mission from a local desktop setup.",
|
||||
availability: "Available on macOS, Windows, and Linux",
|
||||
} as const;
|
||||
|
||||
export const onboardingFlowNarrative = {
|
||||
prelude: "Welcome",
|
||||
sections: [
|
||||
{
|
||||
number: 1,
|
||||
title: "Requirements",
|
||||
description: "Check Node.js because CLI runtimes call the local API through node -e.",
|
||||
},
|
||||
{
|
||||
number: 2,
|
||||
title: "Providers",
|
||||
description: "Connect at least one runtime before company creation continues.",
|
||||
},
|
||||
{
|
||||
number: 3,
|
||||
title: "Company",
|
||||
description: "Enter company name, description, and workspace.",
|
||||
},
|
||||
{
|
||||
number: 4,
|
||||
title: "Team Models",
|
||||
description: "Enable the models available to the CEO and workers.",
|
||||
},
|
||||
{
|
||||
number: 5,
|
||||
title: "Mode",
|
||||
description: "Use AI CEO by default, or choose AI Co-Founder for human-reviewed decisions.",
|
||||
},
|
||||
{
|
||||
number: 6,
|
||||
title: "Mission",
|
||||
description: "Capture the first goal and acceptance description.",
|
||||
},
|
||||
{
|
||||
number: 7,
|
||||
title: "Launch",
|
||||
description: "Create the company, CEO agent, workspace, kickoff task, and initial run handoff.",
|
||||
},
|
||||
],
|
||||
} as const;
|
||||
|
||||
export const landingHowItWorksNarrative = {
|
||||
heading: "Follow the Desktop First-Run Flow",
|
||||
steps: onboardingFlowNarrative.sections,
|
||||
completionText: "Initial run queued. Open Control Center.",
|
||||
demoMessages: [
|
||||
{ agent: "Requirements", role: "system", text: "Node.js ready. CLI runtimes can call the local API.", delay: 0 },
|
||||
{ agent: "Providers", role: "system", text: "Runtime connected.", delay: 700 },
|
||||
{ agent: "Company", role: "system", text: "Company profile and workspace saved.", delay: 1400 },
|
||||
{ agent: "Team Models", role: "system", text: "Model pool enabled for CEO and workers.", delay: 2100 },
|
||||
{ agent: "Mode", role: "system", text: "AI CEO mode selected.", delay: 2800 },
|
||||
{ agent: "Mission", role: "system", text: "First goal and acceptance description captured.", delay: 3500 },
|
||||
{ agent: "Launch", role: "system", text: "Company, CEO agent, kickoff task, and initial run created.", delay: 4400 },
|
||||
],
|
||||
} as const;
|
||||
|
||||
export const landingStructuredDataNarrative = {
|
||||
softwareVersion: releaseVersion,
|
||||
featureList: [
|
||||
"Guided first-run setup",
|
||||
"Node.js readiness check for CLI runtimes",
|
||||
"Provider connection and model-pool selection",
|
||||
"Multi-connector support (Claude Code, Codex CLI, Gemini CLI)",
|
||||
"AI CEO autonomous operating mode",
|
||||
"AI Co-Founder human-reviewed operating mode",
|
||||
"Local-first SQLite storage",
|
||||
"Cross-platform desktop releases for macOS, Windows, and Linux",
|
||||
],
|
||||
};
|
||||
Reference in new issue
Block a user