Q175: onboarding shows what each mode allows and the amounts a company starts with
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
dc3127c26f
commit
43dcb1e7d3
11 files changed
+123
-14
No files matched your search
@@ -0,0 +1,27 @@
|
||||
import { COMPANY_PRESETS } from "../../../shared/company-presets";
|
||||
import { t } from "../i18n/i18n";
|
||||
|
||||
const dollars = (cents: number) => `$${(cents / 100).toLocaleString("en-US")}`;
|
||||
const RISK_NAMES = { low: () => t("Low"), medium: () => t("Medium"), high: () => t("High") };
|
||||
|
||||
/** Everything a mode decides and everything both modes preset, read from the same values the company is created with. */
|
||||
export function AutonomySummary({ mode }: { mode: "ai_ceo" | "ai_cofounder" }) {
|
||||
const gated = { level: RISK_NAMES[COMPANY_PRESETS.taskRiskCeiling](), amount: dollars(COMPANY_PRESETS.hireReviewAboveCents) };
|
||||
return (
|
||||
<section aria-label={t("What this mode allows")} style={{ fontSize: 13, color: "var(--text-2)", lineHeight: 1.6 }}>
|
||||
<ul style={{ margin: 0, paddingLeft: 18 }}>
|
||||
<li>{mode === "ai_ceo"
|
||||
? t("Approved without you: tasks above {level} risk, tasks that run commands in a workspace, and hires over {amount} a month.", gated)
|
||||
: t("Waiting for you: tasks above {level} risk, tasks that run commands in a workspace, and hires over {amount} a month.", gated)}</li>
|
||||
<li>{mode === "ai_ceo"
|
||||
? t("Deliverables are written without review.")
|
||||
: t("Deliverables wait for your review before they are written.")}</li>
|
||||
<li>{t("The CEO starts with a {ceo} monthly budget, and each agent it hires gets {hire}.", { ceo: dollars(COMPANY_PRESETS.ceoBudgetCents), hire: dollars(COMPANY_PRESETS.agentHireBudgetCents) })}</li>
|
||||
<li>{t("Each department holds up to {count} agents and {amount} a month in agent budgets.", { count: COMPANY_PRESETS.departmentHeadcount, amount: dollars(COMPANY_PRESETS.departmentBudgetCents) })}</li>
|
||||
<li>{t("Each provider allows {count} model calls a month.", { count: COMPANY_PRESETS.providerMonthlyRequests.toLocaleString("en-US") })}</li>
|
||||
<li>{t("An approved workspace task runs commands with your user's file access; they are not confined to the workspace folder.")}</li>
|
||||
<li>{t("Later you can change the mode, hire approval and deliverable review in Settings, General; provider limits in Settings, Providers; and agent budgets on Team.")}</li>
|
||||
</ul>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
import { AutonomySummary } from "./AutonomySummary";
|
||||
import { useMemo, useState, type FormEvent } from "react";
|
||||
import {
|
||||
PROVIDER_AUTH_TYPE,
|
||||
@@ -307,16 +308,17 @@ function ModeStep({ draft, onChange, onBack, onNext }: StepProps) {
|
||||
<p style={{ color: "var(--text-3)", fontSize: 14 }}>{t("How autonomous should the CEO be?")}</p>
|
||||
<ModeCard
|
||||
title={t("AI CEO")}
|
||||
description={t("Agents auto-approve hires up to the budget envelope and ship work that clears policy.")}
|
||||
description={t("Runs on its own: approves its risky work and large hires, and writes deliverables without review.")}
|
||||
active={draft.executionMode === "ai_ceo"}
|
||||
onClick={() => onChange({ executionMode: "ai_ceo" })}
|
||||
/>
|
||||
<ModeCard
|
||||
title={t("AI Co-Founder")}
|
||||
description={t("Hires need your stamp; deliverables route through review before shipping.")}
|
||||
description={t("Checks with you: risky work and large hires wait for you, and deliverables wait for your review.")}
|
||||
active={draft.executionMode === "ai_cofounder"}
|
||||
onClick={() => onChange({ executionMode: "ai_cofounder" })}
|
||||
/>
|
||||
<AutonomySummary mode={draft.executionMode} />
|
||||
<Actions onBack={onBack} onNext={onNext} />
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -227,7 +227,6 @@ export const zh: Record<string, string> = {
|
||||
"AgentCompany sets up your operating loop in six steps. Bring an API key, pick a runtime for the founding CEO, and we'll wire up the first goal, project, and task.":
|
||||
"AgentCompany 用六步搭建你的运营循环:带上 API 密钥,为创始 CEO 选择运行时,我们会接好第一个目标、项目和任务。",
|
||||
"Agents": "智能体",
|
||||
"Agents auto-approve hires up to the budget envelope and ship work that clears policy.": "智能体在预算范围内自动批准招聘,并交付通过策略检查的工作。",
|
||||
"Agents only": "仅智能体",
|
||||
"All": "全部",
|
||||
"All agents, work, chats, and files are permanently removed.": "所有智能体、工作、聊天和文件将被永久删除。",
|
||||
@@ -384,7 +383,6 @@ export const zh: Record<string, string> = {
|
||||
"High risk": "高风险",
|
||||
"Hire": "招聘",
|
||||
"Hire agent": "招聘智能体",
|
||||
"Hires need your stamp; deliverables route through review before shipping.": "招聘需要你签字确认;交付物先经审核再发布。",
|
||||
"Hires require approval": "招聘需审批",
|
||||
"Home": "首页",
|
||||
"How autonomous should the CEO be?": "CEO 的自主程度?",
|
||||
@@ -696,6 +694,18 @@ export const zh: Record<string, string> = {
|
||||
"Resets {date} (UTC)": "{date} 重置(UTC)",
|
||||
"Unsaved": "未保存",
|
||||
"Working language": "工作语言",
|
||||
"Runs on its own: approves its risky work and large hires, and writes deliverables without review.": "自主运行:自行批准高风险工作和大额招聘,交付物不经审核直接写入。",
|
||||
"Checks with you: risky work and large hires wait for you, and deliverables wait for your review.": "与你确认:高风险工作和大额招聘需要你批准,交付物需经你审核。",
|
||||
"What this mode allows": "此模式允许的范围",
|
||||
"Approved without you: tasks above {level} risk, tasks that run commands in a workspace, and hires over {amount} a month.": "无需你批准:风险高于“{level}”的任务、在工作区中运行命令的任务,以及月预算超过 {amount} 的招聘。",
|
||||
"Waiting for you: tasks above {level} risk, tasks that run commands in a workspace, and hires over {amount} a month.": "需要你批准:风险高于“{level}”的任务、在工作区中运行命令的任务,以及月预算超过 {amount} 的招聘。",
|
||||
"Deliverables are written without review.": "交付物不经审核直接写入。",
|
||||
"Deliverables wait for your review before they are written.": "交付物在写入前需经你审核。",
|
||||
"The CEO starts with a {ceo} monthly budget, and each agent it hires gets {hire}.": "CEO 初始月预算为 {ceo},其招聘的每个 Agent 获得 {hire}。",
|
||||
"Each department holds up to {count} agents and {amount} a month in agent budgets.": "每个部门最多 {count} 个 Agent,Agent 月预算合计不超过 {amount}。",
|
||||
"Each provider allows {count} model calls a month.": "每个 Provider 每月允许 {count} 次模型调用。",
|
||||
"An approved workspace task runs commands with your user's file access; they are not confined to the workspace folder.": "获批的工作区任务以你的用户文件权限运行命令,不局限于工作区文件夹。",
|
||||
"Later you can change the mode, hire approval and deliverable review in Settings, General; provider limits in Settings, Providers; and agent budgets on Team.": "之后可以在“设置 › 通用”中修改模式、招聘审批和交付物审核,在“设置 › 服务商”中修改服务商额度,在“团队”中修改 Agent 预算。",
|
||||
"{language} applies after a restart.": "{language} 将在重启后生效。",
|
||||
"Restart now": "立即重启",
|
||||
"Restart to switch language?": "重启以切换语言?",
|
||||
|
||||
Reference in new issue
Block a user