Website: 16-bit pixel-art rebuild with a live Three.js office, downloads from Gitea v1.5.1
CI / Typecheck, lint, tests, e2e (push) Failing after 3m51s
CI / Typecheck, lint, tests, e2e (push) Failing after 3m51s
- Title screen over a real-time voxel office rendered at low resolution and quantized to a rotating 32-colour palette with Bayer dithering; day part and season re-light the scene and every surface. - 16-bit UI kit: name-plate dialogs, menu cursor, inventory, XP bar, badges, NPC speech, GAME OVER with CONTINUE, hand-placed 12x12 icons, Fusion Pixel font (Latin subset preloaded). - Sections as a game: quest log (onboarding), character select (AI CEO / AI Co-Founder), inventory (features), party roster (providers), live download XP, save point (all v1.5.1 builds), FAQ as NPC dialog, credits. - Downloads and source point to the Gitea release; the download function only redirects to git.zacharyzhang.com. - Tailwind and the old components removed; unit tests for platform/downloads, rewritten e2e suite. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e374bc1e8e
commit
2d7af224dd
112 files changed
+5692
-4223
No files matched your search
@@ -0,0 +1,155 @@
|
||||
import type { IconName } from "../components/pixel";
|
||||
|
||||
export const description =
|
||||
"AgentCompany is a local-first desktop app for running an autonomous AI company. Set a goal; an AI CEO hires a team, delegates real work, and the goal only closes when an isolated auditor approves the evidence.";
|
||||
|
||||
export const nav = [
|
||||
{ label: "Quests", href: "#quests" },
|
||||
{ label: "Party", href: "#party" },
|
||||
{ label: "Items", href: "#items" },
|
||||
{ label: "Save", href: "#save-point" },
|
||||
];
|
||||
|
||||
export type Quest = { stage: string; title: string; icon: IconName; body: string; optional?: boolean };
|
||||
|
||||
export const quests: Quest[] = [
|
||||
{ stage: "1-1", title: "Start", icon: "flag", body: "Pick English or 简体中文 and press Get started. The wizard runs once, on first launch." },
|
||||
{ stage: "1-2", title: "Provider", icon: "key", body: "Bind one model provider: paste an API key or sign in with a plan you already pay for. Keys are encrypted with your OS secure storage and kept on your machine." },
|
||||
{ stage: "1-3", title: "Company", icon: "building", body: "Name the company, name yourself as the human board chair, describe the business, and optionally bind a workspace folder." },
|
||||
{ stage: "1-4", title: "Mode", icon: "sword", body: "Choose how much rope the CEO gets: AI CEO or AI Co-Founder. Character select is just below." },
|
||||
{ stage: "1-5", title: "Goal", icon: "map", body: "State the first goal and its acceptance criteria, then hit Launch. The CEO starts hiring." },
|
||||
{ stage: "1-6", title: "Connectors", icon: "plug", body: "Bring your own Composio key and connect the toolkits your project enables. Optional side quest: Skip works.", optional: true },
|
||||
];
|
||||
|
||||
export type Mode = {
|
||||
id: "ceo" | "cofounder";
|
||||
name: string;
|
||||
className: string;
|
||||
icon: IconName;
|
||||
pitch: string;
|
||||
stats: { label: string; value: string }[];
|
||||
special: string;
|
||||
};
|
||||
|
||||
export const modes: Mode[] = [
|
||||
{
|
||||
id: "ceo",
|
||||
name: "AI CEO",
|
||||
className: "Autonomous",
|
||||
icon: "trophy",
|
||||
pitch: "Runs on its own: approves its risky work and large hires, and writes deliverables without review.",
|
||||
stats: [
|
||||
{ label: "Risky work", value: "Self-approved" },
|
||||
{ label: "Large hires", value: "Self-approved" },
|
||||
{ label: "Deliverables", value: "Ship unreviewed" },
|
||||
],
|
||||
special: "Speedrun. You watch; it plays.",
|
||||
},
|
||||
{
|
||||
id: "cofounder",
|
||||
name: "AI Co-Founder",
|
||||
className: "Co-op",
|
||||
icon: "heart",
|
||||
pitch: "Checks with you: risky work and large hires wait for you, and deliverables wait for your review.",
|
||||
stats: [
|
||||
{ label: "Risky work", value: "Your Approvals" },
|
||||
{ label: "Large hires", value: "Your Approvals" },
|
||||
{ label: "Deliverables", value: "Your review" },
|
||||
],
|
||||
special: "Player 2 has the controller for the big calls.",
|
||||
},
|
||||
];
|
||||
|
||||
export const items: { icon: IconName; name: string; description: string }[] = [
|
||||
{ icon: "building", name: "Pixel office", description: "An isometric office where you watch agents walk between desks, coffee and meetings. The lighting follows your real clock." },
|
||||
{ icon: "chat", name: "CEO chat", description: "Messages between agents and with you, with the CEO's line pinned on top. Chat follows the app language." },
|
||||
{ icon: "approve", name: "Audited goals", description: "A goal only ends when an isolated auditor approves the evidence. No 'trust me, it's done'." },
|
||||
{ icon: "check", name: "Approvals", description: "In Co-Founder mode, risky work and large hires queue here until you say yes." },
|
||||
{ icon: "folder", name: "Files & library", description: "Every file the team produces, plus a library of docs and knowledge your agents can read." },
|
||||
{ icon: "plug", name: "Connectors", description: "Your own Composio key unlocks the toolkits your Composio project enables. logo.dev keeps the logos crisp." },
|
||||
{ icon: "sparkle", name: "Skills", description: "Agents carry the skills you grant them, plus an automatic humanizer house style for conversational writing." },
|
||||
{ icon: "book", name: "EN / 中文", description: "The whole app speaks English and 简体中文. Switch any time." },
|
||||
{ icon: "lock", name: "Local-first vault", description: "Keys encrypted with your OS secure storage, data in SQLite on your machine, no account to create." },
|
||||
];
|
||||
|
||||
export type PartyClass = { name: string; badge: string; icon: IconName; blurb: string; members: string[] };
|
||||
|
||||
export const party: PartyClass[] = [
|
||||
{
|
||||
name: "API key",
|
||||
badge: "Key",
|
||||
icon: "key",
|
||||
blurb: "Paste a key and go. OpenAI defaults to gpt-6.1-sol.",
|
||||
members: ["OpenAI", "Anthropic", "xAI Grok", "Groq", "Mistral", "Cerebras", "OpenRouter", "Kimi", "Kimi CN"],
|
||||
},
|
||||
{
|
||||
name: "Plan sign-in",
|
||||
badge: "Sign-in",
|
||||
icon: "user",
|
||||
blurb: "Use a subscription you already have.",
|
||||
members: ["Claude Pro/Max", "GitHub Copilot", "Kimi Code", "GPT account (ChatGPT plan)"],
|
||||
},
|
||||
{
|
||||
name: "Cloud",
|
||||
badge: "Cloud",
|
||||
icon: "building",
|
||||
blurb: "Run through your company's cloud.",
|
||||
members: ["Azure OpenAI", "AWS Bedrock", "Vertex AI"],
|
||||
},
|
||||
{
|
||||
name: "Custom",
|
||||
badge: "Base URL",
|
||||
icon: "settings",
|
||||
blurb: "Anything that speaks a familiar protocol.",
|
||||
members: ["OpenAI-compatible endpoint", "Anthropic-compatible endpoint"],
|
||||
},
|
||||
];
|
||||
|
||||
export const faqs: { question: string; answer: string[] }[] = [
|
||||
{
|
||||
question: "Where do my API keys go?",
|
||||
answer: [
|
||||
"Encrypted with your OS secure storage (Keychain, DPAPI or libsecret) and saved in a SQLite database on your machine, next to the company itself.",
|
||||
"No account, no sign-up. The app talks to the providers you pick, plus the web when agents search or fetch pages, and Composio if you connect it.",
|
||||
],
|
||||
},
|
||||
{
|
||||
question: "Which AI providers can join?",
|
||||
answer: [
|
||||
"OpenAI, Anthropic, Claude Pro/Max, xAI Grok, Groq, Mistral, Cerebras, OpenRouter, Kimi, Kimi CN, GitHub Copilot, a GPT account on a ChatGPT plan, and Kimi Code.",
|
||||
"Also Azure OpenAI, AWS Bedrock, Vertex AI, and any custom OpenAI- or Anthropic-compatible endpoint.",
|
||||
],
|
||||
},
|
||||
{
|
||||
question: "Is the macOS build signed?",
|
||||
answer: [
|
||||
"Yes. The DMG and ZIP are signed with a Developer ID and notarized by Apple, so Gatekeeper opens them without a fight.",
|
||||
"Apple Silicon and Intel each get their own build.",
|
||||
],
|
||||
},
|
||||
{
|
||||
question: "What runs on Linux?",
|
||||
answer: ["An AppImage and a .deb package, both x64. Pick whichever your distro likes better."],
|
||||
},
|
||||
{
|
||||
question: "Where does the source live?",
|
||||
answer: [
|
||||
"On Gitea at git.zacharyzhang.com. GitHub is no longer used.",
|
||||
"Want to help? Open an AGit pull request on that Gitea. Push to refs/for/main and you're in the party.",
|
||||
],
|
||||
},
|
||||
{
|
||||
question: "When is a goal actually done?",
|
||||
answer: [
|
||||
"When an isolated auditor looks at the evidence and approves it. The CEO can't mark its own homework.",
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
export const credits: { role: string; name: string }[] = [
|
||||
{ role: "Starring", name: "Your AI CEO" },
|
||||
{ role: "Supporting cast", name: "Whoever it hires" },
|
||||
{ role: "Auditor", name: "Isolated. Unbribable." },
|
||||
{ role: "Board chair", name: "You" },
|
||||
{ role: "Guide", name: "Bit, the intern" },
|
||||
];
|
||||
@@ -1,4 +1,4 @@
|
||||
import { platformDownloads, type PlatformDownload, type PlatformDownloadAsset } from "./release-links.generated";
|
||||
import { platformDownloads, RELEASE_HOST, type PlatformDownload, type PlatformDownloadAsset } from "./release-links";
|
||||
|
||||
export const DOWNLOAD_COUNT_SEED = 13674;
|
||||
export const DOWNLOAD_DEDUP_WINDOW_HOURS = 24;
|
||||
@@ -26,3 +26,8 @@ export function getDownloadAsset(assetId: string) {
|
||||
export function getTrackedDownloadHref(assetId: string) {
|
||||
return `/api/download?asset=${encodeURIComponent(assetId)}`;
|
||||
}
|
||||
|
||||
export function isAllowedDownloadUrl(href: string) {
|
||||
const url = new URL(href);
|
||||
return url.protocol === "https:" && url.host === RELEASE_HOST;
|
||||
}
|
||||
@@ -1,56 +0,0 @@
|
||||
export type FeatureSection = {
|
||||
id: string;
|
||||
eyebrow: string;
|
||||
title: string;
|
||||
description: string;
|
||||
image: string;
|
||||
imageAlt: string;
|
||||
};
|
||||
|
||||
export const featureSections: FeatureSection[] = [
|
||||
{
|
||||
id: "org-chart",
|
||||
eyebrow: "Self-organizing",
|
||||
title: "Your org chart builds itself",
|
||||
description:
|
||||
"Set one goal. The AI CEO decides which roles the mission needs, hires specialist agents, and draws the reporting lines — from your board seat down to every department.",
|
||||
image: "/images/org-chart.webp",
|
||||
imageAlt: "AgentCompany org chart with a board chair, an AI CEO, and specialist agents reporting into departments",
|
||||
},
|
||||
{
|
||||
id: "office",
|
||||
eyebrow: "Presence",
|
||||
title: "A workplace you can watch",
|
||||
description:
|
||||
"Every agent has a desk. See who is heads-down at work, who is in the meeting room, and what the whole company is doing — at a single glance across the floor.",
|
||||
image: "/images/office.webp",
|
||||
imageAlt: "Top-down view of the AgentCompany virtual office with named agents at their desks",
|
||||
},
|
||||
{
|
||||
id: "messages",
|
||||
eyebrow: "Coordination",
|
||||
title: "Agents that talk to each other",
|
||||
description:
|
||||
"Direct messages and department channels keep the team aligned. Read the reasoning behind every hand-off and decision, written out in plain language.",
|
||||
image: "/images/messages.webp",
|
||||
imageAlt: "AgentCompany messaging view with direct conversations between the CEO and specialist agents",
|
||||
},
|
||||
{
|
||||
id: "connectors",
|
||||
eyebrow: "Integrations",
|
||||
title: "Plugged into your stack",
|
||||
description:
|
||||
"Connect GitHub, Slack, Notion, Google Workspace, Stripe, and dozens more. Your agents do the work inside the tools your company already runs on.",
|
||||
image: "/images/connectors.webp",
|
||||
imageAlt: "AgentCompany connector catalog with dozens of integrations ready to connect",
|
||||
},
|
||||
{
|
||||
id: "cost-controls",
|
||||
eyebrow: "Control",
|
||||
title: "Spend stays under your cap",
|
||||
description:
|
||||
"Set a monthly budget and per-agent allocations. Track requests, tokens, and cost by agent — and hold the whole company inside the limit you set.",
|
||||
image: "/images/cost-controls.webp",
|
||||
imageAlt: "AgentCompany advanced settings showing budget caps and cost broken down by agent",
|
||||
},
|
||||
];
|
||||
@@ -0,0 +1,86 @@
|
||||
/** One 32-colour palette; the scene keeps its indices while day part and season swap the colours. */
|
||||
export type DayPart = "dawn" | "day" | "dusk" | "night";
|
||||
export type Season = "spring" | "summer" | "autumn" | "winter";
|
||||
|
||||
export const PALETTE_SIZE = 32;
|
||||
|
||||
/** Named indices every surface draws with; art never uses raw colours. */
|
||||
export const INK = {
|
||||
void: 0, shadow: 1, ink: 2, inkSoft: 3, stone: 4, stoneLight: 5, paper: 6, white: 7,
|
||||
sky0: 8, sky1: 9, sky2: 10, sky3: 11, sun: 12, glow: 13, cloud: 14, star: 15,
|
||||
wood: 16, woodDark: 17, brick: 18, rug: 19, leaf0: 20, leaf1: 21, leaf2: 22, bloom: 23,
|
||||
accent: 24, accentDark: 25, gold: 26, mint: 27, sea: 28, berry: 29, skin: 30, screen: 31,
|
||||
} as const;
|
||||
export type InkName = keyof typeof INK;
|
||||
|
||||
const DAY: string[] = [
|
||||
"#0b0a12", "#1d1b2b", "#2f2c40", "#4a4660", "#6d6884", "#9a95ad", "#e9e2cf", "#fbf7ec",
|
||||
"#3f7fd1", "#68a2e6", "#9cc6f2", "#d4e8fa", "#ffe08a", "#fff2c2", "#f4f7fb", "#ffffff",
|
||||
"#a8693c", "#6e3f23", "#b4533f", "#5d6ea8", "#2f6b3a", "#4f9a4a", "#8cc95f", "#f2a3c0",
|
||||
"#e0663d", "#9c3b22", "#f2b632", "#5fd3a8", "#2a8fa8", "#c4466f", "#f1c79a", "#7ef0c2",
|
||||
];
|
||||
|
||||
/** How a day part shifts each index: sky and light are replaced, everything else is tinted. */
|
||||
const DAY_PART_SKY: Record<DayPart, string[]> = {
|
||||
dawn: ["#5b4a7a", "#c77a8e", "#f2a98a", "#fbd9b0", "#ffb36b", "#ffd9a8", "#f7d6d8", "#fff4e6"],
|
||||
day: DAY.slice(8, 16),
|
||||
dusk: ["#2d2350", "#7a3d6e", "#d0625a", "#f4a259", "#ff8c42", "#ffc078", "#e9b0a0", "#ffe7c7"],
|
||||
night: ["#05060f", "#0d1330", "#1b2650", "#2c3b70", "#e6e9ff", "#9fb2ff", "#3a4470", "#fff8d6"],
|
||||
};
|
||||
const DAY_PART_TINT: Record<DayPart, { mix: string; amount: number }> = {
|
||||
dawn: { mix: "#f3b5a8", amount: 0.18 },
|
||||
day: { mix: "#ffffff", amount: 0 },
|
||||
dusk: { mix: "#f08a4b", amount: 0.22 },
|
||||
night: { mix: "#1a2350", amount: 0.55 },
|
||||
};
|
||||
const SEASON_LEAVES: Record<Season, [string, string, string, string]> = {
|
||||
spring: ["#3f7a3c", "#5fae52", "#9ed46c", "#f6a8c8"],
|
||||
summer: ["#235c2e", "#3f8f3f", "#78c050", "#ffd35c"],
|
||||
autumn: ["#7a3a1c", "#c2622a", "#e8a33d", "#d9483b"],
|
||||
winter: ["#4c6670", "#8aa6ad", "#dfeaee", "#ffffff"],
|
||||
};
|
||||
|
||||
export function dayPartAt(date: Date): DayPart {
|
||||
const hour = date.getHours();
|
||||
if (hour >= 5 && hour < 8) return "dawn";
|
||||
if (hour >= 8 && hour < 17) return "day";
|
||||
if (hour >= 17 && hour < 20) return "dusk";
|
||||
return "night";
|
||||
}
|
||||
|
||||
export function seasonAt(date: Date): Season {
|
||||
const month = date.getMonth();
|
||||
if (month >= 2 && month <= 4) return "spring";
|
||||
if (month >= 5 && month <= 7) return "summer";
|
||||
if (month >= 8 && month <= 10) return "autumn";
|
||||
return "winter";
|
||||
}
|
||||
|
||||
/** The 32 colours for a moment; index 31 (screens) and the accents stay lit at night. */
|
||||
export function paletteFor(part: DayPart, season: Season): string[] {
|
||||
const tint = DAY_PART_TINT[part];
|
||||
const lit = new Set<number>([INK.screen, INK.accent, INK.gold, INK.mint, INK.glow, INK.star]);
|
||||
const colours = DAY.map((colour, index) => (lit.has(index) ? colour : mix(colour, tint.mix, tint.amount)));
|
||||
DAY_PART_SKY[part].forEach((colour, offset) => (colours[INK.sky0 + offset] = colour));
|
||||
SEASON_LEAVES[season].forEach((colour, offset) => (colours[INK.leaf0 + offset] = colour));
|
||||
return colours;
|
||||
}
|
||||
|
||||
/** CSS custom properties --p0..--p31 plus named aliases (--ink-accent, ...). */
|
||||
export function paletteCssVars(colours: string[]): Record<string, string> {
|
||||
const vars: Record<string, string> = {};
|
||||
colours.forEach((colour, index) => (vars[`--p${index}`] = colour));
|
||||
for (const [name, index] of Object.entries(INK)) vars[`--ink-${kebab(name)}`] = colours[index]!;
|
||||
return vars;
|
||||
}
|
||||
|
||||
function kebab(name: string): string {
|
||||
return name.replace(/[A-Z0-9]/g, (char) => `-${char.toLowerCase()}`);
|
||||
}
|
||||
|
||||
function mix(a: string, b: string, amount: number): string {
|
||||
const pa = Number.parseInt(a.slice(1), 16);
|
||||
const pb = Number.parseInt(b.slice(1), 16);
|
||||
const channel = (shift: number) => Math.round(((pa >> shift) & 255) * (1 - amount) + ((pb >> shift) & 255) * amount);
|
||||
return `#${((channel(16) << 16) | (channel(8) << 8) | channel(0)).toString(16).padStart(6, "0")}`;
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
/** Hand-placed 12x12 pixel icons: rows separated by spaces, "#" is a lit pixel. */
|
||||
export const PIXEL_ICONS = {
|
||||
home: ".....##..... ....####.... ...##..##... ..##....##.. .##......##. ############ .#........#. .#..####..#. .#..#..#..#. .#..#..#..#. .#..#..#..#. .##########.",
|
||||
work: "............ ....####.... ....#..#.... ############ #..........# #..........# #####..##### #....##....# #..........# #..........# ############ ............",
|
||||
team: "............ ..##....##.. .####..####. .####..####. ..##....##.. ............ .####..####. ######.##### ######.##### ######.##### ............ ............",
|
||||
user: "............ ....####.... ...######... ...######... ...######... ....####.... ............ ..########.. .##########. .##########. .##########. ............",
|
||||
chat: "............ .##########. #..........# #..........# #.##.##.##.# #..........# #..........# .###.######. ...#.#...... ...##....... ...#........ ............",
|
||||
send: "..........## ........#### ......###.## ....###..##. ..###...##.. ####...##... ..###.##.... ....####.... .....###.... ......##.... ......#..... ............",
|
||||
folder: "............ ####........ #..#........ #..#######.. #........#.. ############ #..........# #..........# #..........# #..........# ############ ............",
|
||||
file: "#######..... #.....##.... #.....#.#... #.....####.. #........#.. #.#####..#.. #........#.. #.#####..#.. #........#.. #.####...#.. #........#.. ##########..",
|
||||
book: "............ .####..####. #....##....# #.##.##.##.# #....##....# #.##.##.##.# #....##....# #.##.##.##.# #....##....# .####..####. .....##..... ............",
|
||||
approve: ".....##..... ..########.. .#........#. .#........#. .#......#.#. .#.#...##.#. .#.##.##..#. .#..###...#. ..#..#...#.. ...#....#... ....#..#.... .....##.....",
|
||||
plug: "............ ...#....#... ...#....#... ..########.. ..#......#.. ..#......#.. ..#......#.. ...#....#... ....####.... .....##..... .....##..... .....##.....",
|
||||
building: "..########.. ..#......#.. ..#.##.#.#.. ..#......#.. ..#.##.#.#.. ..#......#.. ..#.##.#.#.. ..#......#.. ###.####.### #.#.#..#.#.# #.#.#..#.#.# ############",
|
||||
settings: ".....##..... ..#.####.#.. .##########. ..###..###.. .###....###. ####....#### ####....#### .###....###. ..###..###.. .##########. ..#.####.#.. .....##.....",
|
||||
search: "............ ..#####..... .#.....#.... #.......#... #.......#... #.......#... #.......#... .#.....#.... ..######.... .......###.. ........###. .........##.",
|
||||
plus: "............ ............ .....##..... .....##..... .....##..... ..########.. ..########.. .....##..... .....##..... .....##..... ............ ............",
|
||||
minus: "............ ............ ............ ............ ............ ..########.. ..########.. ............ ............ ............ ............ ............",
|
||||
chevron: "............ ............ ....##...... .....##..... ......##.... .......##... .......##... ......##.... .....##..... ....##...... ............ ............",
|
||||
chevronDown: "............ ............ ............ ............ ..##....##.. ...##..##... ....####.... .....##..... ............ ............ ............ ............",
|
||||
chevronLeft: "............ ............ ......##.... .....##..... ....##...... ...##....... ...##....... ....##...... .....##..... ......##.... ............ ............",
|
||||
more: "............ ............ ............ ............ ............ .##..##..##. .##..##..##. ............ ............ ............ ............ ............",
|
||||
edit: ".........##. ........#### .......####. ......####.. .....####... ....####.... ...####..... ..####...... .#.##....... .##......... .###........ ............",
|
||||
filter: "............ ############ .##########. ..########.. ...######... ....####.... ....####.... ....####.... ....####.... ....###..... ....##...... ............",
|
||||
grid: "............ .####..####. .####..####. .####..####. .####..####. ............ ............ .####..####. .####..####. .####..####. .####..####. ............",
|
||||
list: "............ ##..######## ##..######## ............ ............ ##..######## ##..######## ............ ............ ##..######## ##..######## ............",
|
||||
upload: ".....##..... ....####.... ...######... ..##.##.##.. .....##..... .....##..... .....##..... #....##....# #..........# #..........# ############ ............",
|
||||
arrowRight: "............ ............ .......#.... .......##... .......###.. ##########.. ##########.. .......###.. .......##... .......#.... ............ ............",
|
||||
arrowUpRight: "............ ....#######. .....######. ........###. .......####. ......###.#. .....###.... ....###..... ...###...... ..###....... .###........ ............",
|
||||
sparkle: ".....##..... .....##..... .....##..... ....####.... ..########.. ############ ..########.. ....####.... .....##..... .....##..... .....##..... ............",
|
||||
bot: ".....##..... .....##..... ..########.. .#........#. .#.##..##.#. .#.##..##.#. .#........#. .#..####..#. .#........#. ..########.. ...#....#... ...#....#...",
|
||||
check: "............ ............ ..........## .........##. ........##.. .......##... ##....##.... .##..##..... ..####...... ...##....... ............ ............",
|
||||
x: "............ .##......##. ..##....##.. ...##..##... ....####.... .....##..... ....####.... ...##..##... ..##....##.. .##......##. ............ ............",
|
||||
pin: "............ ....######.. .....####... .....####... .....####... ....######.. ...########. .......#.... .......#.... .......#.... .......#.... ............",
|
||||
attach: "....####.... ...#....#... ...#.##.#... ...#.#..#... ...#.#..#... ...#.#..#... ...#.#..#... ...#.#..#... ...#....#... ...#....#... ....####.... ............",
|
||||
hash: "............ ...#...#.... ...#...#.... .#########.. ...#...#.... ...#...#.... ..#...#..... #########... ..#...#..... ..#...#..... ............ ............",
|
||||
lock: "............ ....####.... ...#....#... ...#....#... ...#....#... ..########.. ..########.. ..###..###.. ..###..###.. ..########.. ..########.. ............",
|
||||
download: ".....##..... .....##..... .....##..... .....##..... ..##.##.##.. ...######... ....####.... #....##....# #..........# #..........# ############ ............",
|
||||
apple: ".......##... ......##.... ......#..... ..###..###.. .##########. #########... ########.... ########.... #########... .##########. ..###..###.. ............",
|
||||
windows: "............ #####.#####. #####.#####. #####.#####. #####.#####. #####.#####. ............ #####.#####. #####.#####. #####.#####. #####.#####. #####.#####.",
|
||||
linux: "....####.... ...######... ...#.##.#... ...######... ..###..###.. .##......##. .#........#. ##........## .#........#. .##......##. ####....#### .###....###.",
|
||||
star: ".....##..... .....##..... ....####.... ....####.... ############ .##########. ..########.. ...######... ...######... ..###..###.. ..##....##.. .#........#.",
|
||||
heart: "............ .###....###. #.###..##### ##.######### ############ ############ .##########. ..########.. ...######... ....####.... .....##..... ............",
|
||||
sword: ".....##..... ....####.... ....#.##.... ....#.##.... ....#.##.... ....#.##.... ....#.##.... .##########. .##########. .....##..... .....##..... ....####....",
|
||||
coin: "...######... .##......##. .#...##...#. #...###....# #....##....# #....##....# #....##....# #....##....# #....##....# .#..####..#. .##......##. ...######...",
|
||||
chest: "............ .##########. #.#......#.# #.#......#.# ############ #.#.####.#.# #.#.#..#.#.# #.#.####.#.# #.#......#.# #.#......#.# ############ ............",
|
||||
key: "............ ............ ............ .####....... #....#...... #.##.####### #.##.####### #....#...#.# .####....#.# ............ ............ ............",
|
||||
gear: "....####.... .##.####.##. .##########. ..###..###.. ####....#### ###......### ###......### ####....#### ..###..###.. .##########. .##.####.##. ....####....",
|
||||
map: "............ ############ #....#...#.# #.....#.#..# #......#...# #.....#.#..# #....#...#.# #..##......# #.#........# #..........# ############ ............",
|
||||
flag: "..#......... ..#######... ..#########. ..########## ..#########. ..#######... ..#......... ..#......... ..#......... ..#......... .###........ ............",
|
||||
trophy: "..########.. ##.######.## #..######..# #..######..# .#.######.#. ...######... ....####.... .....##..... .....##..... ....####.... ...######... ...######...",
|
||||
crown: "............ ............ ............ .#...##...#. .##..##..##. .###.##.###. .##########. .##########. .#.##..##.#. .##########. ............ ............",
|
||||
sun: ".....##..... .#...##...#. ..#......#.. ....####.... ...######... ##.######.## ##.######.## ...######... ....####.... ..#......#.. .#...##...#. .....##.....",
|
||||
moon: "....##...... ..###....... .###.....#.. .###....###. ####.....#.. ####........ #####....... #######..... .#########.. .##########. ..########.. ....####....",
|
||||
sunrise: "............ .....##..... ..#..##..#.. ...#....#... ....####.... #..######..# ..########.. ############ ............ .##########. ............ ...######...",
|
||||
sunset: "............ ............ ............ ....####.... ..########.. .##########. ############ ............ .##########. ............ ...######... ............",
|
||||
blossom: "....####.... ...######... ...######... .##.####.##. ####....#### ####.##.#### ####.##.#### ####....#### .##.####.##. ...######... ...######... ....####....",
|
||||
icecream: "....####.... ...######... ..########.. ..########.. ..#.####.#.. ..########.. ...#.##.#... ...######... ....#..#.... ....####.... .....##..... .....##.....",
|
||||
maple: ".....##..... ....####.... .#..####..#. .##.####.##. .##########. ############ .##########. ..########.. .###.##.###. .....##..... .....##..... ............",
|
||||
snowflake: ".....##..... .#..####..#. ..#..##..#.. ...#.##.#... ....####.... ############ ############ ....####.... ...#.##.#... ..#..##..#.. .#..####..#. .....##.....",
|
||||
} as const;
|
||||
@@ -1,112 +0,0 @@
|
||||
import {
|
||||
platformDownloads,
|
||||
type PlatformDownload,
|
||||
type PlatformDownloadAsset,
|
||||
type ReleaseArchitecture,
|
||||
} from "./release-links.generated";
|
||||
|
||||
const ARCHITECTURE_ORDER: ReleaseArchitecture[] = ["arm64", "x64", "x86"];
|
||||
|
||||
export type PlatformSupportSummary = {
|
||||
downloadAnswer: string;
|
||||
platformAnswer: string;
|
||||
};
|
||||
|
||||
export const platformSupportSummary = buildPlatformSupportSummary(platformDownloads);
|
||||
|
||||
/**
|
||||
* Copy derives from whatever platforms the release manifest actually ships,
|
||||
* so the download matrix stays the single source of truth and the site can
|
||||
* never advertise a platform without a real artifact behind it.
|
||||
*/
|
||||
export function buildPlatformSupportSummary(downloads: PlatformDownload[]): PlatformSupportSummary {
|
||||
if (downloads.length === 0) {
|
||||
throw new Error("Release download metadata must include at least one platform.");
|
||||
}
|
||||
return {
|
||||
downloadAnswer:
|
||||
`Use the download section on this page to choose the build that matches your architecture and package format. ` +
|
||||
downloads.map(formatDownloadSentence).join(" "),
|
||||
platformAnswer:
|
||||
`AgentCompany is available on ${joinWithAnd(downloads.map(formatAvailability))}. ` +
|
||||
`It is built with Electron and the desktop feature set stays aligned across all supported targets.`,
|
||||
};
|
||||
}
|
||||
|
||||
function joinWithAnd(parts: string[]): string {
|
||||
if (parts.length === 1) {
|
||||
return parts[0];
|
||||
}
|
||||
if (parts.length === 2) {
|
||||
return `${parts[0]} and ${parts[1]}`;
|
||||
}
|
||||
return `${parts.slice(0, -1).join(", ")}, and ${parts.at(-1)}`;
|
||||
}
|
||||
|
||||
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)}`;
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
import { downloadAssets, type ReleaseDownloadAsset } from "./downloads";
|
||||
import type { ReleaseArchitecture } from "./release-links";
|
||||
|
||||
export type DetectedOs = "macos" | "windows" | "linux" | "unknown";
|
||||
export type DetectedArch = "arm64" | "x64" | "unknown";
|
||||
export type DetectedPlatform = { os: DetectedOs; arch: DetectedArch };
|
||||
|
||||
export type UaData = { platform?: string; architecture?: string; bitness?: string };
|
||||
|
||||
type NavigatorUaData = UaData & {
|
||||
getHighEntropyValues(hints: string[]): Promise<UaData>;
|
||||
};
|
||||
|
||||
function detectOs(userAgent: string, uaPlatform: string): DetectedOs {
|
||||
if (/android|iphone|ipad|ipod|cros/.test(userAgent)) return "unknown";
|
||||
if (uaPlatform === "macos" || /mac os x|macintosh/.test(userAgent)) return "macos";
|
||||
if (uaPlatform === "windows" || /windows/.test(userAgent)) return "windows";
|
||||
if (uaPlatform === "linux" || /linux|x11/.test(userAgent)) return "linux";
|
||||
return "unknown";
|
||||
}
|
||||
|
||||
function detectArch(userAgent: string, uaArchitecture: string): DetectedArch {
|
||||
if (uaArchitecture === "arm") return "arm64";
|
||||
if (uaArchitecture === "x86") return "x64";
|
||||
if (/arm64|aarch64/.test(userAgent)) return "arm64";
|
||||
if (/x86_64|x64|win64|wow64|amd64/.test(userAgent)) return "x64";
|
||||
return "unknown";
|
||||
}
|
||||
|
||||
export function detectPlatform(userAgent: string, uaData?: UaData): DetectedPlatform {
|
||||
const ua = userAgent.toLowerCase();
|
||||
const os = detectOs(ua, uaData?.platform?.toLowerCase() ?? "");
|
||||
// Mac user agents always say "Intel", so only client hints can tell the architecture apart.
|
||||
const arch = detectArch(os === "macos" ? "" : ua, uaData?.architecture?.toLowerCase() ?? "");
|
||||
return { os, arch };
|
||||
}
|
||||
|
||||
export function recommendedAsset(
|
||||
platform: DetectedPlatform,
|
||||
assets: ReleaseDownloadAsset[] = downloadAssets,
|
||||
): ReleaseDownloadAsset | null {
|
||||
if (platform.os === "unknown") return null;
|
||||
// Windows on ARM runs the x64 installer under emulation; a Mac of unknown architecture gets a choice.
|
||||
let arch: ReleaseArchitecture;
|
||||
if (platform.os === "windows") arch = "x64";
|
||||
else if (platform.arch !== "unknown") arch = platform.arch;
|
||||
else if (platform.os === "linux") arch = "x64";
|
||||
else return null;
|
||||
return assets.find((asset) => asset.platformId === platform.os && asset.architectures.includes(arch)) ?? null;
|
||||
}
|
||||
|
||||
export async function detectClientPlatform(): Promise<DetectedPlatform> {
|
||||
const uaData = (navigator as Navigator & { userAgentData?: NavigatorUaData }).userAgentData;
|
||||
const hints = uaData ? await uaData.getHighEntropyValues(["architecture", "bitness"]) : undefined;
|
||||
return detectPlatform(navigator.userAgent, hints);
|
||||
}
|
||||
@@ -1,80 +0,0 @@
|
||||
import { releaseVersion } from "./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 Windows · macOS build coming soon",
|
||||
} 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",
|
||||
"Desktop releases for Windows (macOS build coming soon)",
|
||||
],
|
||||
};
|
||||
@@ -1,59 +0,0 @@
|
||||
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.4.1";
|
||||
|
||||
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-1.4.1-arm64.dmg",
|
||||
note: "arm64 · v1.4.1",
|
||||
},
|
||||
{
|
||||
architectures: ["x64"],
|
||||
id: "macos-x64-dmg",
|
||||
label: "Intel Mac DMG",
|
||||
href: "https://pub-a19a3a2c1d2e4fa3a9c120b184024448.r2.dev/AC/AgentCompany-1.4.1.dmg",
|
||||
note: "x64 · v1.4.1",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
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.4.1-x64.exe",
|
||||
note: "x64 · v1.4.1",
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
@@ -0,0 +1,78 @@
|
||||
export type ReleaseArchitecture = "arm64" | "x64";
|
||||
|
||||
export type PlatformDownloadAsset = {
|
||||
architectures: ReleaseArchitecture[];
|
||||
id: string;
|
||||
label: string;
|
||||
fileName: string;
|
||||
href: string;
|
||||
sizeBytes: number;
|
||||
size: string;
|
||||
note: string;
|
||||
};
|
||||
|
||||
export type PlatformDownload = {
|
||||
id: "macos" | "windows" | "linux";
|
||||
packageDescription: string;
|
||||
title: string;
|
||||
note: string;
|
||||
assets: PlatformDownloadAsset[];
|
||||
};
|
||||
|
||||
export const releaseVersion = "1.5.1";
|
||||
export const RELEASE_HOST = "git.zacharyzhang.com";
|
||||
export const SOURCE_URL = `https://${RELEASE_HOST}/ZacharyZhang-NY/AgentCompany`;
|
||||
export const RELEASE_PAGE_URL = `${SOURCE_URL}/releases/tag/v${releaseVersion}`;
|
||||
|
||||
function asset(
|
||||
id: string,
|
||||
label: string,
|
||||
architecture: ReleaseArchitecture,
|
||||
fileName: string,
|
||||
sizeBytes: number,
|
||||
): PlatformDownloadAsset {
|
||||
return {
|
||||
architectures: [architecture],
|
||||
id,
|
||||
label,
|
||||
fileName,
|
||||
href: `${SOURCE_URL}/releases/download/v${releaseVersion}/${fileName}`,
|
||||
sizeBytes,
|
||||
size: `${Math.round(sizeBytes / 1_000_000)} MB`,
|
||||
note: `${architecture} · v${releaseVersion}`,
|
||||
};
|
||||
}
|
||||
|
||||
export const platformDownloads: PlatformDownload[] = [
|
||||
{
|
||||
id: "macos",
|
||||
packageDescription: "signed and notarized DMG and ZIP builds",
|
||||
title: "macOS",
|
||||
note: "Signed + notarized DMG and ZIP builds",
|
||||
assets: [
|
||||
asset("macos-arm64-dmg", "Apple Silicon DMG", "arm64", "AgentCompany-1.5.1-arm64.dmg", 118584099),
|
||||
asset("macos-arm64-zip", "Apple Silicon ZIP", "arm64", "AgentCompany-1.5.1-arm64-mac.zip", 321953469),
|
||||
asset("macos-x64-dmg", "Intel Mac DMG", "x64", "AgentCompany-1.5.1.dmg", 126949692),
|
||||
asset("macos-x64-zip", "Intel Mac ZIP", "x64", "AgentCompany-1.5.1-mac.zip", 346581782),
|
||||
],
|
||||
},
|
||||
{
|
||||
id: "windows",
|
||||
packageDescription: "an NSIS installer build",
|
||||
title: "Windows",
|
||||
note: "NSIS installer build",
|
||||
assets: [
|
||||
asset("windows-x64-installer", "Windows Installer (x64)", "x64", "AgentCompany-1.5.1-x64.exe", 98672653),
|
||||
],
|
||||
},
|
||||
{
|
||||
id: "linux",
|
||||
packageDescription: "AppImage and .deb builds",
|
||||
title: "Linux",
|
||||
note: "AppImage and .deb builds",
|
||||
assets: [
|
||||
asset("linux-x64-appimage", "Linux AppImage (x64)", "x64", "AgentCompany-1.5.1.AppImage", 122224922),
|
||||
asset("linux-x64-deb", "Debian/Ubuntu .deb (x64)", "x64", "agentcompany-new_1.5.1_amd64.deb", 95501700),
|
||||
],
|
||||
},
|
||||
];
|
||||
Reference in new issue
Block a user