Skip to content

Commit 352e86a

Browse files
authored
Merge pull request #4366 from Hmbown/claude/codewhale-v0.8.68-test-review-zsphu7
fix(web): align site brand strings and tidy redesign leftovers
2 parents 07b54ee + e13822a commit 352e86a

25 files changed

Lines changed: 165 additions & 136 deletions

File tree

web/app/[locale]/community/page.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ export async function generateMetadata({ params }: { params: Promise<{ locale: s
2626
return buildPageMetadata({
2727
path: "/community",
2828
locale,
29-
title: isZh ? "社区 · CodeWhale" : "Community · CodeWhale",
29+
title: isZh ? "社区 · Codewhale" : "Community · Codewhale",
3030
description: isZh
31-
? "CodeWhale 的社区一角:实时仓库动态、每周摘要、路线图、贡献指南与发布致谢,集中在一处。"
32-
: "The community side of CodeWhale in one place: live repo activity, the weekly digest, the roadmap, how to contribute, and release credits.",
31+
? "Codewhale 的社区一角:实时仓库动态、每周摘要、路线图、贡献指南与发布致谢,集中在一处。"
32+
: "The community side of Codewhale in one place: live repo activity, the weekly digest, the roadmap, how to contribute, and release credits.",
3333
});
3434
}
3535

@@ -98,8 +98,8 @@ export default async function CommunityPage({ params }: { params: Promise<{ loca
9898
</h1>
9999
<p className={`mt-5 max-w-3xl text-ink-soft text-lg ${isZh ? "leading-[1.9] tracking-wide" : "leading-relaxed"}`}>
100100
{isZh
101-
? "CodeWhale 的核心是那部嵌套的法典和它的执行框架。社区是重要的补充,而不是标题——一个人维护,但由许多人塑造。这一页把散落各处的社区线索集中起来:此刻的仓库动态、每周摘要、公开的路线图、上手贡献的路径,以及每个版本背后的致谢。"
102-
: "CodeWhale's core is the nested constitution and the harness that enforces it. The community is an important addition, not the headline — maintained by one person, shaped by many. This page gathers the community threads that live in different corners: what's moving in the repo right now, the weekly digest, the roadmap in the open, the path to contributing, and the credits behind every release."}
101+
? "Codewhale 的核心是那部嵌套的法典和它的执行框架。社区是重要的补充,而不是标题——一个人维护,但由许多人塑造。这一页把散落各处的社区线索集中起来:此刻的仓库动态、每周摘要、公开的路线图、上手贡献的路径,以及每个版本背后的致谢。"
102+
: "Codewhale's core is the nested constitution and the harness that enforces it. The community is an important addition, not the headline — maintained by one person, shaped by many. This page gathers the community threads that live in different corners: what's moving in the repo right now, the weekly digest, the roadmap in the open, the path to contributing, and the credits behind every release."}
103103
</p>
104104
</section>
105105

web/app/[locale]/constitution/page.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ export async function generateMetadata({ params }: { params: Promise<{ locale: s
99
return buildPageMetadata({
1010
path: "/constitution",
1111
locale,
12-
title: isZh ? "三层法 · CodeWhale" : "Three layers of law · CodeWhale",
12+
title: isZh ? "三层法 · Codewhale" : "Three layers of law · Codewhale",
1313
description: isZh
14-
? "CodeWhale 的嵌套宪法:内置基础法、你的常备法(/constitution)、仓库自己的法(.codewhale/constitution.json)。位阶由执行框架强制生效,换掉模型也不失效。"
15-
: "CodeWhale's nested constitution: bundled base law, your standing law (/constitution), and your repo's law (.codewhale/constitution.json). Rank is enforced in the harness and survives a model swap.",
14+
? "Codewhale 的嵌套宪法:内置基础法、你的常备法(/constitution)、仓库自己的法(.codewhale/constitution.json)。位阶由执行框架强制生效,换掉模型也不失效。"
15+
: "Codewhale's nested constitution: bundled base law, your standing law (/constitution), and your repo's law (.codewhale/constitution.json). Rank is enforced in the harness and survives a model swap.",
1616
});
1717
}
1818

@@ -65,8 +65,8 @@ export default async function ConstitutionPage({ params }: { params: Promise<{ l
6565
</h1>
6666
<p className={`max-w-2xl text-ink-soft ${isZh ? "leading-[1.9] tracking-wide" : "leading-relaxed"}`}>
6767
{isZh
68-
? "项目一变老,指令就开始堆积、彼此冲突:最初的规格、后来推翻它的重构、陈旧的记忆、上一个智能体的交接、你此刻的要求、刚跑出的与交接说法不符的测试结果。扁平的系统提示词让模型靠猜来化解;CodeWhale 用一部嵌套的宪法给出明确的位阶。顺序由执行框架强制生效——有测试断言它不会漂移——换掉模型,结构依然完好。"
69-
: "As a project ages, instructions pile up and conflict: the original spec, a refactor that contradicts it, stale memory, a previous agent's handoff, your current request, fresh test output that doesn't match what the handoff claimed. A flat system prompt makes the model resolve that by guess. CodeWhale uses a nested constitution so there is a defined rank instead of vibes — the order is enforced in the harness, with tests asserting it can't drift, and it stays intact when you swap models."}
68+
? "项目一变老,指令就开始堆积、彼此冲突:最初的规格、后来推翻它的重构、陈旧的记忆、上一个智能体的交接、你此刻的要求、刚跑出的与交接说法不符的测试结果。扁平的系统提示词让模型靠猜来化解;Codewhale 用一部嵌套的宪法给出明确的位阶。顺序由执行框架强制生效——有测试断言它不会漂移——换掉模型,结构依然完好。"
69+
: "As a project ages, instructions pile up and conflict: the original spec, a refactor that contradicts it, stale memory, a previous agent's handoff, your current request, fresh test output that doesn't match what the handoff claimed. A flat system prompt makes the model resolve that by guess. Codewhale uses a nested constitution so there is a defined rank instead of vibes — the order is enforced in the harness, with tests asserting it can't drift, and it stays intact when you swap models."}
7070
</p>
7171

7272
{/* v0.8.68 flagship framing */}

web/app/[locale]/contribute/page.tsx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ export async function generateMetadata({ params }: { params: Promise<{ locale: s
66
const { locale } = await params;
77
const isZh = locale === "zh";
88
return {
9-
title: isZh ? "参与贡献 · CodeWhale" : "Contribute · CodeWhale",
9+
title: isZh ? "参与贡献 · Codewhale" : "Contribute · Codewhale",
1010
description: isZh
11-
? "如何提交议题、发送合并请求、加入 CodeWhale 社区。"
12-
: "How to file issues, send pull requests, and join the CodeWhale community.",
11+
? "如何提交议题、发送合并请求、加入 Codewhale 社区。"
12+
: "How to file issues, send pull requests, and join the Codewhale community.",
1313
};
1414
}
1515

@@ -75,9 +75,9 @@ const stepsZh = [
7575
},
7676
];
7777

78-
const smallPatchPromptEn = `You are running inside CodeWhale.
78+
const smallPatchPromptEn = `You are running inside Codewhale.
7979
80-
Improve CodeWhale itself by finding exactly one small, reviewable friction point in the harness, docs, tests, or contributor workflow.
80+
Improve Codewhale itself by finding exactly one small, reviewable friction point in the harness, docs, tests, or contributor workflow.
8181
8282
Prefer bug fixes, regression tests, clearer docs, sharper error messages, or one narrow contributor-experience improvement. Do not change product direction, provider policy, telemetry, sponsorship, branding, auth, sandbox, release/publishing, or global prompts unless the maintainer explicitly asked for that exact scope.
8383
@@ -92,9 +92,9 @@ Working rules:
9292
9393
Output: issue summary, files changed, checks run, risks or follow-up, and a suggested PR title.`;
9494

95-
const smallPatchPromptZh = `你正在 CodeWhale 中运行。
95+
const smallPatchPromptZh = `你正在 Codewhale 中运行。
9696
97-
请改进 CodeWhale 本身:只找一个很小、可审查的摩擦点,范围可以是智能体框架、文档、测试或贡献流程。
97+
请改进 Codewhale 本身:只找一个很小、可审查的摩擦点,范围可以是智能体框架、文档、测试或贡献流程。
9898
9999
优先处理 bug 修复、回归测试、文档澄清、错误信息改进,或一个很窄的贡献者体验问题。除非维护者明确要求,否则不要改产品方向、提供商策略、遥测、赞助、品牌、认证、沙箱、发布流程或全局提示词。
100100
@@ -150,7 +150,7 @@ export default async function ContributePage({ params }: { params: Promise<{ loc
150150
<div className="lg:col-span-4 min-w-0">
151151
<Seal char="补" />
152152
<div className="eyebrow mt-5 mb-3">小补丁提示词 · Small-patch prompt</div>
153-
<h2 className="font-display text-3xl">CodeWhale 改进 CodeWhale</h2>
153+
<h2 className="font-display text-3xl">Codewhale 改进 Codewhale</h2>
154154
<p className="mt-4 text-ink-soft leading-[1.9] tracking-wide">
155155
好的贡献提示词不是让 Agent 表演勤奋,而是让它留下一个可以合并的事实:一个真实摩擦点、一个小补丁、最小相关检查,以及审查者需要知道的风险。
156156
</p>
@@ -210,8 +210,8 @@ export default async function ContributePage({ params }: { params: Promise<{ loc
210210
<div className="lg:col-span-8 min-w-0">
211211
<pre className="code-block">
212212
{`# 在 GitHub 上 fork,然后:
213-
git clone git@github.com:YOU/CodeWhale
214-
cd CodeWhale
213+
git clone git@github.com:YOU/Codewhale
214+
cd Codewhale
215215
git checkout -b feat/your-thing
216216
217217
# 本地构建运行
@@ -270,7 +270,7 @@ gh pr create --fill`}
270270
<div className="lg:col-span-4 min-w-0">
271271
<Seal char="补" />
272272
<div className="eyebrow mt-5 mb-3">Small-patch prompt · 小补丁提示词</div>
273-
<h2 className="font-display text-3xl">Use CodeWhale on CodeWhale</h2>
273+
<h2 className="font-display text-3xl">Use Codewhale on Codewhale</h2>
274274
<p className="mt-4 text-ink-soft leading-relaxed">
275275
A good contribution prompt does not reward motion. It asks for one mergeable fact: one real friction point, one small patch, the smallest relevant checks, and the risk a reviewer needs to know.
276276
</p>
@@ -328,8 +328,8 @@ gh pr create --fill`}
328328
<div className="lg:col-span-8 min-w-0">
329329
<pre className="code-block">
330330
{`# fork on github, then:
331-
git clone git@github.com:YOU/CodeWhale
332-
cd CodeWhale
331+
git clone git@github.com:YOU/Codewhale
332+
cd Codewhale
333333
git checkout -b feat/your-thing
334334
335335
# build and run locally

web/app/[locale]/digest/page.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ export async function generateMetadata({ params }: { params: Promise<{ locale: s
2626
return buildPageMetadata({
2727
path: "/digest",
2828
locale,
29-
title: isZh ? "社区摘要 · CodeWhale" : "Community Digest · CodeWhale",
29+
title: isZh ? "社区摘要 · Codewhale" : "Community Digest · Codewhale",
3030
description: isZh
31-
? "CodeWhale 每周社区更新存档:由维护者审核的摘要。"
32-
: "Archive of weekly CodeWhale community updates — maintainer-approved summaries.",
31+
? "Codewhale 每周社区更新存档:由维护者审核的摘要。"
32+
: "Archive of weekly Codewhale community updates — maintainer-approved summaries.",
3333
});
3434
}
3535

@@ -100,7 +100,7 @@ export default async function DigestArchivePage({ params }: { params: Promise<{
100100
{isZh ? "每周社区更新" : "Weekly Community Updates"}
101101
</h1>
102102
<p className="text-gray-500 dark:text-gray-400 mb-8">
103-
{isZh ? "由 CodeWhale 维护者审核的摘要" : "Maintainer-approved summaries from CodeWhale"}
103+
{isZh ? "由 Codewhale 维护者审核的摘要" : "Maintainer-approved summaries from Codewhale"}
104104
</p>
105105

106106
<div className="space-y-12">

web/app/[locale]/docs/constitution/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export async function generateMetadata({ params }: { params: Promise<{ locale: s
77
return buildPageMetadata({
88
path: "/docs/constitution",
99
locale,
10-
title: isZh ? "宪法与 /constitution · CodeWhale 文档" : "Constitution and /constitution · CodeWhale Docs",
10+
title: isZh ? "宪法与 /constitution · Codewhale 文档" : "Constitution and /constitution · Codewhale Docs",
1111
description: isZh
1212
? "用户全局宪法、仓库本地法、项目说明和运行时边界。"
1313
: "User-global constitution, repo-local law, project instructions, and runtime boundaries.",
@@ -29,7 +29,7 @@ export default async function ConstitutionPage({ params }: { params: Promise<{ l
2929
</h2>
3030
{isZh ? (
3131
<p className="text-ink-soft mt-3 leading-[1.9] tracking-wide">
32-
CodeWhale 先给 Agent 一个可追责的地址,再给上下文冲突一套法律。
32+
Codewhale 先给 Agent 一个可追责的地址,再给上下文冲突一套法律。
3333
<code className="inline">/constitution</code> 是管理个人常驻宪法的主入口:
3434
它把结构化的用户全局设置保存在 <code className="inline">$CODEWHALE_HOME/constitution.json</code>
3535
再渲染成模型可读的 prose block。仓库仍可通过{" "}
@@ -38,7 +38,7 @@ export default async function ConstitutionPage({ params }: { params: Promise<{ l
3838
</p>
3939
) : (
4040
<p className="text-ink-soft mt-3 leading-relaxed">
41-
CodeWhale gives the agent an accountable address, then a legal system for
41+
Codewhale gives the agent an accountable address, then a legal system for
4242
context conflicts. <code className="inline">/constitution</code> is the
4343
primary personal constitution surface: guided setup stores structured
4444
user-global data in <code className="inline">$CODEWHALE_HOME/constitution.json</code>

web/app/[locale]/docs/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export default async function DocsLayout({
109109
<p className="mt-5 max-w-3xl text-ink-soft text-lg leading-[1.9] tracking-wide">
110110
{isZh
111111
? "工作原理简述:先有 Agent 自我模型,再有嵌套权威系统,最后才是模式、工具和 provider。完整的架构讲解请参阅仓库中的 "
112-
: "How CodeWhale works: ego, conflict law, evidence, modes, tools, sandbox, MCP, config, hooks. The full architecture walkthrough is in "}
112+
: "How Codewhale works: ego, conflict law, evidence, modes, tools, sandbox, MCP, config, hooks. The full architecture walkthrough is in "}
113113
<Link
114114
href="https://github.com/Hmbown/CodeWhale/blob/main/docs/ARCHITECTURE.md"
115115
className="body-link mx-1"

web/app/[locale]/docs/modes/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export async function generateMetadata({ params }: { params: Promise<{ locale: s
66
return buildPageMetadata({
77
path: "/docs/modes",
88
locale,
9-
title: isZh ? "模式 · CodeWhale 文档" : "Modes · CodeWhale Docs",
9+
title: isZh ? "模式 · Codewhale 文档" : "Modes · Codewhale Docs",
1010
description: isZh
1111
? "Plan、Act、Operate 三种运行模式与正交审批姿态。"
1212
: "Plan, Act, Operate modes and orthogonal approval posture.",

web/app/[locale]/docs/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ export async function generateMetadata({ params }: { params: Promise<{ locale: s
77
return buildPageMetadata({
88
path: "/docs",
99
locale,
10-
title: isZh ? "文档 · CodeWhale" : "Docs · CodeWhale",
10+
title: isZh ? "文档 · Codewhale" : "Docs · Codewhale",
1111
description: isZh
12-
? "CodeWhale 文档:安装、使用指南、配置、提供商、核心概念、工具、MCP、技能、沙箱、运行时 API、排障。"
13-
: "CodeWhale documentation: install, user guide, configuration, providers, core concepts, tools, MCP, skills, sandbox, runtime API, troubleshooting.",
12+
? "Codewhale 文档:安装、使用指南、配置、提供商、核心概念、工具、MCP、技能、沙箱、运行时 API、排障。"
13+
: "Codewhale documentation: install, user guide, configuration, providers, core concepts, tools, MCP, skills, sandbox, runtime API, troubleshooting.",
1414
});
1515
}
1616

web/app/[locale]/docs/tools/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export async function generateMetadata({ params }: { params: Promise<{ locale: s
77
return buildPageMetadata({
88
path: "/docs/tools",
99
locale,
10-
title: isZh ? "工具 · CodeWhale 文档" : "Tools · CodeWhale Docs",
10+
title: isZh ? "工具 · Codewhale 文档" : "Tools · Codewhale Docs",
1111
description: isZh
1212
? "类型化工具集、工具生命周期和精选工具目录。"
1313
: "Typed tool surface, tool lifecycle, and the curated tool catalog.",

0 commit comments

Comments
 (0)