Skip to content

A local-first multi-agent app development platform, built on PenguinHarness

feat(fork): 删掉模型库的「官方推荐」、更新链路指向 Adelie、README 表断言放宽

lmliheng7cf248d44ba2
diff --git a/FORK-PROGRESS.md b/FORK-PROGRESS.md
index aa823154..7f9f4825 100644
--- a/FORK-PROGRESS.md
+++ b/FORK-PROGRESS.md
@@ -227,6 +227,83 @@ node scripts/build-plugins.mjs --out out/penguin/lib/plugins
都还没闭。这正是台账 4.2 里「把 ci.yml 接到新主线并让它真跑绿」那一条要收的尾 —— 现在它有了具体的
清单,不再是一句话。
+## 主线三件事(2026-10-05,用户点单)
+
+用户原话三条:**①「删除模型里的官方推荐」 ②「插件,agent升级,是怎么做的,我下载最新版都要更新」
+③「最新版更新指向 adelie,不再是 penguin」**,另加一句「b」——README 那条断言取放宽方案。
+
+### b. README 插件表断言放宽(用户选 b)
+
+`core/test/plugins.test.ts` 的 `README_TABLES` 给每份文件加了 `optional` 标志:根 `README.md` 标
+`optional: true` —— 你 02:55Z 把正文删到只剩头部,是你自己的编辑,**不还原**,所以它没有表就跳过
+这条守卫;`plugins/README.md` 与 `README.zh.md` 仍是必查。**表放回来就自动重新生效**(只有"没有
+表"这一种情况被容忍)。这条一改,CI 那三个 `test (core)` 的红应该跟着绿,下一轮用 CI 复核。
+
+### ① 模型库里的「官方推荐」删掉了
+
+- `core/src/state/model-catalog.ts`:删 `ModelProviderInfo.recommended` 字段与 TokenDance 上的
+ `recommended: true`,顺序注释改成「TokenDance leads」。
+- `web/src/features/models/models-page.tsx`:删掉分组标题栏上那枚金色「官方推荐」胶囊(连同它那段
+ 配色注释);`strings.ts` / `strings-en.ts` 的 `recommendedGroup` 文案一起删。
+- 测试改成反向守卫:`MODEL_PROVIDERS.some((p) => "recommended" in p)` 必须为 `false`;
+ `model-group-expansion` 那条「首组展开」不再靠 `recommended` 断言,仍钉 `tokendance` 在首位。
+- `docs/content/models.{en,zh}.md`:两处「The recommended group / 推荐分组」与分组说明里那句
+ 「TokenDance 分组带有官方推荐标签」一并删掉。
+- **默认分组顺序没有动**(TokenDance 仍在最前),变的只是把它标成「官方」的那块 UI。
+
+### ③ 更新链路指向 Adelie
+
+只动了**用户手上这套安装**(CLI + server + Web)里决定「去哪找新版、装哪个包」的地方:
+
+- `cli/src/commands/update.ts`:`REPO_SLUG` → `lmliheng/Adelie`;**删掉 OSS 镜像那一整条臂**
+ (`OSS_ORIGIN` / `OSS_RELEASE_ROOT` / `parseOssLatestManifest` / `fetchOssLatestRelease` 与
+ `installerCandidates` 的 oss 候选),`DownloadSource` / `ReleaseDiscovery` 收成 `auto|github` /
+ `pinned|github`,`resolveRelease` 不再需要 source 参数。理由是那个 OSS 桶是**上游自己的镜像**:
+ 留着它,两边同名 tag(都有 `v0.2.0`)下会把**上游的 payload** 装进 Adelie。自己搭镜像的运维仍有
+ `PENGUIN_DOWNLOAD_BASE_URL` 可用。
+- `cli/src/i18n.ts`:`InstallerSource` 去掉 `"oss"`、删 `ossUnavailable` 文案,
+ `invalidDownloadSource` 改成「必须是 auto 或 github」,`installerFetchFailed` 去掉 oss 分支。
+ 刻意**保留** `PENGUIN_DOWNLOAD_SOURCE` 的校验:写 `oss` 直接报错,而不是放行到子进程里让
+ `install.sh` 按它去取上游的包。
+- `server/src/services/update-check-service.ts`:`REPO_SLUG` → `lmliheng/Adelie`(Web 那条
+ 「有新版本」提示的比对对象)。
+- `web/src/lib/update-flow.ts`:`releaseUrlFor()` 的发布页链接 → Adelie 的 Releases。
+- 验证:`pnpm typecheck` 八个包全过;`pnpm lint` 0 警告;`pnpm format:check` 干净;
+ core 1346 · web 2886 · cli 505 · server 2552 · docs 62 全绿。
+
+**这条还没做完的部分(下一轮接着做)**:
+
+| 没做的 | 为什么这轮没做 | 做完的判据 |
+| --- | --- | --- |
+| `packages/desktop`(`updater.ts` / `update-source.ts` / `menu.ts`) | 它的自动更新是「速度探测 + OSS 镜像 feed」整套子系统(`update-source.ts` 364 行 + 612 行测试),拆它要单独一轮;Adelie 目前也**没有**桌面产物发布 | 桌面 feed 指向 `lmliheng/Adelie` 且没有 OSS 臂;`vitest --root packages/desktop` 全绿 |
+| 根目录 `install.sh` / `install.ps1` | 里面的 `REPO` 与 `OSS_ORIGIN` 还是上游的;`scripts/test-installer.{sh,ps1}` 用断言把这两个常量与 OSS 探针行为钉住了,改它得连那套测试一起重写 | 两个安装脚本指向 Adelie 且不再提 OSS;`sh scripts/test-installer.sh` 与 CI 的 `installer-windows` 通过 |
+| `server/src/plugin/builtin-index.json` 那四行 `repository` | 那是插件的来源元数据,不是更新链路 | 随桌面 / 发布那一轮统一口径 |
+| Adelie Release 没有资产 | 所以现在 `penguin update` 会答「已是最新」(v0.2.0 = 当前版本),不会去装任何东西 —— 这是对的行为;真要能升级,得按上游同名的资产形状(install.sh + payload + 校验和)发一版;用户「不想给别人用」的那套包在 3003 | 发一版带资产的 Release 后,`penguin update --check` 报得出新版本 |
+
+### ② 插件与 Agent 的升级是怎么做的(答用户问)
+
+三层,互相独立:
+
+1. **应用本体**:`penguin update`(Web 的更新弹窗走 `POST /api/version/update`,后台跑
+ `node <cli> update --yes`)。它从运行着的 CLI 自己的真实路径判断安装形态(tarball / npm 全局 /
+ 源码检出 / 桌面),**源码检出直接拒绝**,Windows 上的 npm 全局安装也拒绝并让你自己跑那条命令。
+ 升级只替换 `bin/lib/web/node`,**数据根 `~/.penguin/data` 不碰**。
+2. **插件**:应用自带一个插件库(`plugins/*` 由 `scripts/build-plugins.mjs` 打包装进
+ `lib/plugins`,索引是 `server/src/plugin/builtin-index.json`)。换新版本 = **库里的副本**换新。
+ 但 Agent 上装过的是**副本**(技能写进 `agent_state/skills/<name>/`、hook 包写进
+ `agent_state/hooks/<plugin>/`),不会自己跟着换;插件页会**检测到「落后于库」**
+ (`AgentSummary.pluginUpdates`)并给出更新入口:「update installs」旋转按钮 / 每个 Agent 一行,
+ 语义就是**重装一次** —— 会覆盖那个 Agent 上对插件内容的本地改动,确认框里写明了版本 old → new
+ 与这条代价,也支持多 Agent 批量更新。所以「下载最新版之后旧插件还在用旧内容」是设计如此、
+ 一键可修,不是 bug。
+3. **Agent 的内核**:Agent 的 `system_config.yaml` 在创建时就烘焙好,**永不自动升级**。每个 tab 的
+ 哈希与内置默认值比对,Agent 设置页「内核」一节显示 `当前 <内核版本> · 最新 <当前代>`,
+ 手动点一次「升级内核」只推进**仍等于默认值**的 tab,用户改过的 tab 原样保留并在结果里列出来。
+ `KERNEL_VERSION` 是日期串,内置默认值一变就得跟着推进(`core/test/kernel-version.test.ts` 钉哈希)。
+
+**要问用户的一句**:第 2 层要不要更自动(应用升级后自动重装 Agent 上的插件副本)?代价是会覆盖
+Agent 上对插件内容的本地改动 —— 现在的产品行为是「提示 + 一键批量更新」,先不动。
+
## 本机部署(2026-10-05)
| | |
@@ -283,3 +360,5 @@ node scripts/build-plugins.mjs --out out/penguin/lib/plugins
| 2026-10-05 | 2.4 + 发布 | 两份 README 重写成「Adelie 是 PenguinHarness 的 fork」的诚实版(来源声明、上游渠道与商标归属、从源码运行的安装节、上游路线图/贡献者/引用/协议改标);写 `RELEASE-v0.2.0.md` 当发布正文;把上游那条 tag 触发的 release 流水线改成只能手动触发 | `pnpm lint` 0 警告;`pnpm format:check` 干净;五份工作流用仓库自带 `yaml` 逐份解析通过,`release.yml` 的 `on` 只剩 `workflow_dispatch`;`git ls-remote` 复核远端分支与 tag | 见本行提交 |
| 2026-10-05 | 发布 | 建出 v0.2.0 的 GitHub Release(源码版正文、无资产、标为 latest),tag 与分支头同一提交 | `POST /repos/lmliheng/Adelie/releases` → 201;`/releases/latest` = `v0.2.0`;`actions/runs` 建 Release 前后都是 26 条(没有触发工作流);真浏览器看发布页与仓库首页:正文渲染正常、绿 `Latest` 徽章、无 4xx | Release id `403323149` |
| 2026-10-05 | 发布 | 旧 `main` 留档成 `legacy/main`,仓库**默认分支切到 `fork/penguin-base`**;仓库 About(描述 + 话题)改成「基于 PenguinHarness」的说法 | `git push origin legacy/main` = `7fb74262`;`PATCH /repos/lmliheng/Adelie` `default_branch` → 200;`GET /repos` 复核 `default_branch=fork/penguin-base`、description/topics 已换;真浏览器看仓库首页:分支选择器是 `fork/penguin-base`、About 新描述、Releases 侧栏 v0.2.0 Latest、正文就是写明 fork 的 README,无 4xx | 见本行提交 |
+| 2026-10-05 | 主线 | 默认分支定名 **`main`**(新基座并进 `main`、旧 Adelie 存 `legacy/main`、删 `fork/penguin-base`);v0.2.0 安装包本机现打后放 **3003**;删 `docker.yml` 的 `push:main`;修 desktop 夹具 | `GET /repos` 报 `default_branch: main`;三个包 `.sha256` 自检 + linux 包在隔离 HOME 里真离线装(`penguin version --json` = `0.2.0`/release);桌面测试 308 全绿;CI run `37258858438`:`test(rest)` 一族由红转绿、Docker 未触发 | 见本行提交 |
+| 2026-10-05 | 主线 | README 插件表断言放宽(用户选的 b)+ 删掉模型里的「官方推荐」+ 更新链路指向 Adelie(CLI / server / Web) | 见「主线三件事」一节 | 见本行提交 |
diff --git a/FORK.md b/FORK.md
index 1ce4ce20..2af7dbcd 100644
--- a/FORK.md
+++ b/FORK.md
@@ -45,6 +45,17 @@ git merge upstream/develop # 在 main 上
进度与每条待办记在 `FORK-PROGRESS.md`(本文件讲「为什么这样改」,它讲「改到哪了」)。
+### 已经改掉的两件事(Apache-2.0 §4 要求的改动声明,2026-10-05)
+
+- **更新链路只连 Adelie 自己的 Releases**。`penguin update`、Web 的「有新版本」提示与它的发布页
+ 链接都指向 `lmliheng/Adelie`。上游那套 Alibaba Cloud OSS 镜像**没有跟着搬过来**(镜像是项目
+ 自己的账号与账单),所以 CLI 的下载源只剩 GitHub,`PENGUIN_DOWNLOAD_SOURCE=oss` 会被明确拒绝
+ 而不是默默回落到 auto。`packages/desktop` 与根目录 `install.sh` / `install.ps1` 里**还留着**
+ 上游的仓库与镜像地址,两处的收尾判据记在 `FORK-PROGRESS.md`「主线三件事」一节的待办表里。
+- **模型库里没有「官方推荐」了**。上游把 TokenDance 分组标为 `recommended` 并在模型库页面挂
+ 「官方推荐 / Recommended」标签;Adelie 删掉了这个标记(推荐哪家网关是上游的商业选择,不是我们
+ 的)。分组的默认顺序没有变。
+
## 旧的 Adelie 在哪
`legacy/main` 分支上是**旧的 Adelie**(自己写的引擎 + 外壳:`adelie-core/providers/tools/runtime`、
diff --git a/packages/cli/src/commands/update.ts b/packages/cli/src/commands/update.ts
index e654a532..a7841fec 100644
--- a/packages/cli/src/commands/update.ts
+++ b/packages/cli/src/commands/update.ts
@@ -13,8 +13,9 @@
*
* Release discovery and installer download use the same environment contract as the public
* installer entry point: an explicit PENGUIN_DOWNLOAD_BASE_URL has highest download priority;
- * otherwise auto prefers the OSS latest pointer and immutable release when fetching the versioned
- * installer, then lets that installer choose the large payload source for the same tag. The
+ * otherwise the target comes from Adelie's own GitHub Releases (discovered through the Releases
+ * API, fetched from that tag's immutable directory) and the installer then chooses the large
+ * payload source for the same tag. The
* target-a-specific-release flag is spelled
* `--release <tag>` rather than `--version <tag>`: commander's program-level
* `-v, --version` intercepts a subcommand's own `--version` when it is written with a space, so
@@ -69,17 +70,28 @@ import type { InstallerSource, Messages } from "../i18n.js";
// unit-tested surface.
export { compareVersions, normalizeVersion };
-/** Repository the released artifacts come from — the same repo install.sh downloads from. */
-export const REPO_SLUG = "Prism-Shadow/penguin-harness";
+/**
+ * Repository the released artifacts come from — Adelie's own, since 2026-10-05.
+ *
+ * Upstream's slug sat here before, and with it an Adelie install discovered — and, given a
+ * newer upstream tag, upgraded itself to — a PenguinHarness release. The two projects also
+ * reuse version numbers, so "same tag" never means "same product".
+ */
+export const REPO_SLUG = "lmliheng/Adelie";
/** Releases API endpoint for the newest published release. */
export const LATEST_RELEASE_API = `https://api.github.com/repos/${REPO_SLUG}/releases/latest`;
/** Public roots shared with the stable installer entry point. */
-export const OSS_ORIGIN = "https://penguin-harness-releases.oss-cn-beijing.aliyuncs.com";
-export const OSS_RELEASE_ROOT = `${OSS_ORIGIN}/releases`;
export const GITHUB_RELEASE_ROOT = `https://github.com/${REPO_SLUG}/releases/download`;
-export type DownloadSource = "auto" | "oss" | "github";
-export type ReleaseDiscovery = "pinned" | "oss" | "github";
+/**
+ * Where an update may come from. Adelie publishes to one source only — its own GitHub Releases —
+ * so upstream's second source, an Alibaba Cloud OSS mirror of the same assets, is gone rather
+ * than left pointing at upstream's bucket: a mirror is per-project, and fetching from upstream's
+ * would hand an Adelie install a PenguinHarness payload under an identical tag. An operator who
+ * runs a mirror of their own still has PENGUIN_DOWNLOAD_BASE_URL for it.
+ */
+export type DownloadSource = "auto" | "github";
+export type ReleaseDiscovery = "pinned" | "github";
export interface ResolvedRelease {
version: string;
@@ -264,7 +276,7 @@ export function installerUrl(version?: string): string {
/** Normalizes the environment contract without silently accepting misspellings. */
export function parseDownloadSource(value: string | undefined): DownloadSource | null {
const source = value || "auto";
- return source === "auto" || source === "oss" || source === "github" ? source : null;
+ return source === "auto" || source === "github" ? source : null;
}
/** Accepts only absolute HTTPS bases before any remote installer code is downloaded. */
@@ -292,26 +304,6 @@ export function configuredInstallerCandidate(
};
}
-function isReleaseTag(value: string): boolean {
- return /^v[0-9A-Za-z][0-9A-Za-z._-]*$/.test(value);
-}
-
-/** Validates OSS latest.json exactly like the public forwarders, including its fixed bucket base. */
-export function parseOssLatestManifest(value: unknown): ResolvedRelease | null {
- if (typeof value !== "object" || value === null) return null;
- const manifest = value as {
- schemaVersion?: unknown;
- tag?: unknown;
- releaseBaseUrl?: unknown;
- };
- if (manifest.schemaVersion !== 1 || typeof manifest.tag !== "string") return null;
- if (!isReleaseTag(manifest.tag)) return null;
- if (manifest.releaseBaseUrl !== `${OSS_RELEASE_ROOT}/${manifest.tag}`) return null;
- const version = normalizeVersion(manifest.tag);
- if (!version) return null;
- return { version, tag: manifest.tag, discoveredFrom: "oss" };
-}
-
/**
* Resolves the newest published version from the Releases API. Every failure mode the API actually
* produces gets its own message instead of a stack trace: no network, a rate-limited 403 (which
@@ -341,27 +333,11 @@ export async function fetchLatestVersion(t: Messages, fetcher: FetchLike = fetch
return normalizeVersion(tag);
}
-/** Resolves and validates the OSS latest pointer; callers decide whether failure is strict. */
-export async function fetchOssLatestRelease(
- t: Messages,
- fetcher: FetchLike = fetch,
-): Promise<ResolvedRelease> {
- try {
- const res = await fetcher(`${OSS_ORIGIN}/latest.json`, {
- signal: AbortSignal.timeout(8_000),
- });
- if (!res.ok) throw new Error(String(res.status));
- const release = parseOssLatestManifest(await res.json());
- if (!release) throw new Error("invalid manifest");
- return release;
- } catch {
- throw new Error(t.update.ossUnavailable());
- }
-}
-
-/** Resolves one immutable target tag before planning or downloading anything. */
+/**
+ * Resolves one immutable target tag before planning or downloading anything: the `--release` pin
+ * when given, Adelie's newest published release otherwise.
+ */
export async function resolveRelease(
- source: DownloadSource,
requestedRelease: string | undefined,
t: Messages,
fetcher: FetchLike = fetch,
@@ -371,43 +347,24 @@ export async function resolveRelease(
return { version, tag: `v${version}`, discoveredFrom: "pinned" };
}
- if (source !== "github") {
- try {
- return await fetchOssLatestRelease(t, fetcher);
- } catch (error) {
- if (source === "oss") throw error;
- }
- }
-
const version = await fetchLatestVersion(t, fetcher);
return { version, tag: `v${version}`, discoveredFrom: "github" };
}
/**
- * Produces immutable, same-tag installer candidates. If auto had to discover the target through
- * GitHub because OSS metadata was unavailable, it follows the forwarder and stays on GitHub.
+ * The immutable installer candidate for a resolved release: Adelie's own GitHub tag directory.
+ * A one-element list, kept in this shape because `downloadInstaller` walks candidates in order and
+ * the explicit-mirror path hands it the same shape.
*/
-export function installerCandidates(
- source: DownloadSource,
- release: ResolvedRelease,
-): InstallerCandidate[] {
+export function installerCandidates(release: ResolvedRelease): InstallerCandidate[] {
const githubBase = `${GITHUB_RELEASE_ROOT}/${release.tag}`;
- const github: InstallerCandidate = {
- source: "github",
- baseUrl: githubBase,
- url: `${githubBase}/install.sh`,
- };
- if (source === "github" || (source === "auto" && release.discoveredFrom === "github")) {
- return [github];
- }
-
- const ossBase = `${OSS_RELEASE_ROOT}/${release.tag}`;
- const oss: InstallerCandidate = {
- source: "oss",
- baseUrl: ossBase,
- url: `${ossBase}/install.sh`,
- };
- return source === "auto" ? [oss, github] : [oss];
+ return [
+ {
+ source: "github",
+ baseUrl: githubBase,
+ url: `${githubBase}/install.sh`,
+ },
+ ];
}
/** Downloads fully before execution; transport failure advances only to the next same-tag source. */
@@ -564,9 +521,12 @@ export function registerUpdateCommand(program: Command, t: Messages): void {
.option("-y, --yes", t.update.yes)
.action(async (opts: { check?: boolean; release?: string; yes?: boolean }) => {
const current = VERSION;
+ // The installer's own source knob is read here as well, and only to be checked: Adelie has
+ // one source, so a stale `oss` (upstream's mirror, which install.sh still understands) is
+ // refused up front rather than passed down to a script that would fetch upstream's payload.
const source = parseDownloadSource(process.env.PENGUIN_DOWNLOAD_SOURCE);
if (!source) throw new Error(t.update.invalidDownloadSource());
- const release = await resolveRelease(source, opts.release, t);
+ const release = await resolveRelease(opts.release, t);
const target = release.version;
const modulePath = selfPath();
const defaultInstallDir = path.join(homedir(), ".penguin");
@@ -632,7 +592,7 @@ export function registerUpdateCommand(program: Command, t: Messages): void {
}
candidates = [configuredInstallerCandidate(explicitBase, explicitFallback)];
} else {
- candidates = installerCandidates(source, release);
+ candidates = installerCandidates(release);
}
const downloaded = await downloadInstaller(candidates);
if (!downloaded) {
diff --git a/packages/cli/src/i18n.ts b/packages/cli/src/i18n.ts
index e3977b2f..27d48d66 100644
--- a/packages/cli/src/i18n.ts
+++ b/packages/cli/src/i18n.ts
@@ -12,7 +12,7 @@ import type { OrgChannelNoticeKind } from "@prismshadow/penguin-server/api";
export type Language = "en" | "zh";
/** Installer locations are localized at the message boundary, not embedded in update logic. */
-export type InstallerSource = "configured" | "oss" | "github";
+export type InstallerSource = "configured" | "github";
/** Readiness probe failure classes; selects which hint `webProbeFailed` appends. */
export type WebProbeFailureKind =
@@ -803,7 +803,6 @@ export interface Messages {
apiMalformed(): string;
invalidDownloadSource(): string;
downloadBaseMustBeHttps(name: string): string;
- ossUnavailable(): string;
installerFetchFailed(sources: InstallerSource[]): string;
};
@@ -1772,18 +1771,11 @@ const en: Messages = {
apiFailed: (status) => `The GitHub release lookup failed with HTTP ${status}.`,
apiMalformed: () =>
"The GitHub release lookup returned an unexpected response with no usable version tag.",
- invalidDownloadSource: () => "PENGUIN_DOWNLOAD_SOURCE must be auto, oss, or github.",
+ invalidDownloadSource: () => "PENGUIN_DOWNLOAD_SOURCE must be auto or github.",
downloadBaseMustBeHttps: (name) => `${name} must be an absolute HTTPS URL.`,
- ossUnavailable: () => "The OSS mirror is unavailable or its release metadata is invalid.",
installerFetchFailed: (sources) =>
`Could not download the installer from ${sources
- .map((source) =>
- source === "configured"
- ? "the configured mirror"
- : source === "oss"
- ? "the OSS mirror"
- : "GitHub",
- )
+ .map((source) => (source === "configured" ? "the configured mirror" : "GitHub"))
.join(" or ")}. Check your network and retry.`,
},
@@ -2674,14 +2666,11 @@ const zh: Messages = {
"GitHub 对版本查询做了限流。请等待几分钟后重试,或用 --release <tag> 跳过查询。",
apiFailed: (status) => `GitHub 版本查询失败,HTTP ${status}。`,
apiMalformed: () => "GitHub 版本查询返回了非预期的响应,其中没有可用的版本号。",
- invalidDownloadSource: () => "PENGUIN_DOWNLOAD_SOURCE 必须是 auto、oss 或 github。",
+ invalidDownloadSource: () => "PENGUIN_DOWNLOAD_SOURCE 必须是 auto 或 github。",
downloadBaseMustBeHttps: (name) => `${name} 必须是绝对 HTTPS URL。`,
- ossUnavailable: () => "OSS 镜像不可用,或其版本元数据无效。",
installerFetchFailed: (sources) => {
const sourceText = sources
- .map((source) =>
- source === "configured" ? "配置的镜像" : source === "oss" ? "OSS 镜像" : "GitHub",
- )
+ .map((source) => (source === "configured" ? "配置的镜像" : "GitHub"))
.join("或 ");
const leadingSpace = /^[A-Za-z]/.test(sourceText) ? " " : "";
const trailingSpace = /[A-Za-z]$/.test(sourceText) ? " " : "";
diff --git a/packages/cli/test/update.test.ts b/packages/cli/test/update.test.ts
index 3b6e55a0..5a043a27 100644
--- a/packages/cli/test/update.test.ts
+++ b/packages/cli/test/update.test.ts
@@ -22,7 +22,6 @@ import {
normalizeVersion,
normalizeHttpsBaseUrl,
parseDownloadSource,
- parseOssLatestManifest,
payloadSourceEnv,
planUpdate,
registerUpdateCommand,
@@ -172,33 +171,29 @@ describe("normalizeVersion / compareVersions", () => {
describe("installerUrl", () => {
it("resolves the latest release when no version is pinned", () => {
expect(installerUrl()).toBe(
- "https://github.com/Prism-Shadow/penguin-harness/releases/latest/download/install.sh",
+ "https://github.com/lmliheng/Adelie/releases/latest/download/install.sh",
);
});
it("pins a tag, normalising the v prefix", () => {
- const expected =
- "https://github.com/Prism-Shadow/penguin-harness/releases/download/v0.1.2/install.sh";
+ const expected = "https://github.com/lmliheng/Adelie/releases/download/v0.1.2/install.sh";
expect(installerUrl("0.1.2")).toBe(expected);
expect(installerUrl("v0.1.2")).toBe(expected);
});
});
describe("release source selection", () => {
- const ossOrigin = "https://penguin-harness-releases.oss-cn-beijing.aliyuncs.com";
- const githubApi = "https://api.github.com/repos/Prism-Shadow/penguin-harness/releases/latest";
- const manifest = {
- schemaVersion: 1,
- tag: "v0.2.1",
- version: "0.2.1",
- releaseBaseUrl: `${ossOrigin}/releases/v0.2.1`,
- };
+ const githubApi = "https://api.github.com/repos/lmliheng/Adelie/releases/latest";
+ const githubBase = "https://github.com/lmliheng/Adelie/releases/download";
const t = getMessages("en");
- it("accepts the same auto/oss/github environment contract as the installers", () => {
+ it("accepts the installer's environment contract, minus the mirror Adelie does not have", () => {
expect(parseDownloadSource(undefined)).toBe("auto");
expect(parseDownloadSource("auto")).toBe("auto");
- expect(parseDownloadSource("oss")).toBe("oss");
expect(parseDownloadSource("github")).toBe("github");
+ // Upstream's OSS mirror went with upstream's repository, and `oss` is refused rather than
+ // silently downgraded to auto: the value must not travel on to the child installer, which
+ // still understands it and would fetch upstream's payload for an identical tag.
+ expect(parseDownloadSource("oss")).toBeNull();
expect(parseDownloadSource("OSS")).toBeNull();
expect(parseDownloadSource("mirror")).toBeNull();
});
@@ -226,124 +221,46 @@ describe("release source selection", () => {
});
});
- it("validates latest.json's schema, tag, and fixed OSS release base", () => {
- expect(parseOssLatestManifest(manifest)).toEqual({
- version: "0.2.1",
- tag: "v0.2.1",
- discoveredFrom: "oss",
- });
- expect(parseOssLatestManifest({ ...manifest, schemaVersion: 2 })).toBeNull();
- expect(parseOssLatestManifest({ ...manifest, tag: "../bad" })).toBeNull();
- expect(
- parseOssLatestManifest({ ...manifest, releaseBaseUrl: "https://example.com/v0.2.1" }),
- ).toBeNull();
- });
-
- it("auto discovers latest through OSS without touching GitHub when metadata is valid", async () => {
+ it("discovers the newest release from Adelie's own Releases API", async () => {
const calls: string[] = [];
const fetcher = async (url: string) => {
calls.push(url);
- return new Response(JSON.stringify(manifest), { status: 200 });
- };
- await expect(resolveRelease("auto", undefined, t, fetcher)).resolves.toMatchObject({
- tag: "v0.2.1",
- discoveredFrom: "oss",
- });
- expect(calls).toEqual([`${ossOrigin}/latest.json`]);
- });
-
- it("auto falls back to GitHub discovery when OSS metadata is unavailable", async () => {
- const calls: string[] = [];
- const fetcher = async (url: string) => {
- calls.push(url);
- if (url === `${ossOrigin}/latest.json`) return new Response("unavailable", { status: 503 });
return new Response(JSON.stringify({ tag_name: "v0.2.2" }), { status: 200 });
};
- await expect(resolveRelease("auto", undefined, t, fetcher)).resolves.toEqual({
+ await expect(resolveRelease(undefined, t, fetcher)).resolves.toEqual({
version: "0.2.2",
tag: "v0.2.2",
discoveredFrom: "github",
});
- expect(calls).toEqual([`${ossOrigin}/latest.json`, githubApi]);
+ expect(calls).toEqual([githubApi]);
});
- it("forced oss is strict, while forced github skips OSS", async () => {
- const ossCalls: string[] = [];
- const unavailable = async (url: string) => {
- ossCalls.push(url);
- return new Response("unavailable", { status: 503 });
- };
- await expect(resolveRelease("oss", undefined, t, unavailable)).rejects.toThrow(
- t.update.ossUnavailable(),
- );
- expect(ossCalls).toEqual([`${ossOrigin}/latest.json`]);
-
- const githubCalls: string[] = [];
- const github = async (url: string) => {
- githubCalls.push(url);
- return new Response(JSON.stringify({ tag_name: "v0.2.2" }), { status: 200 });
- };
- await expect(resolveRelease("github", undefined, t, github)).resolves.toMatchObject({
- tag: "v0.2.2",
- discoveredFrom: "github",
- });
- expect(githubCalls).toEqual([githubApi]);
- });
-
- it("a requested release skips discovery and produces same-tag source candidates", async () => {
+ it("a requested release skips discovery and produces its same-tag candidate", async () => {
let fetched = false;
const shouldNotFetch = async () => {
fetched = true;
throw new Error("unexpected fetch");
};
- const release = await resolveRelease("auto", "0.2.0", t, shouldNotFetch);
+ const release = await resolveRelease("0.2.0", t, shouldNotFetch);
expect(fetched).toBe(false);
- expect(installerCandidates("auto", release)).toEqual([
- {
- source: "oss",
- baseUrl: `${ossOrigin}/releases/v0.2.0`,
- url: `${ossOrigin}/releases/v0.2.0/install.sh`,
- },
+ expect(installerCandidates(release)).toEqual([
{
source: "github",
- baseUrl: "https://github.com/Prism-Shadow/penguin-harness/releases/download/v0.2.0",
- url: "https://github.com/Prism-Shadow/penguin-harness/releases/download/v0.2.0/install.sh",
+ baseUrl: `${githubBase}/v0.2.0`,
+ url: `${githubBase}/v0.2.0/install.sh`,
},
]);
});
- it("auto stays on GitHub when OSS latest discovery failed", () => {
- const release = {
- version: "0.2.2",
- tag: "v0.2.2",
- discoveredFrom: "github" as const,
- };
- expect(installerCandidates("auto", release).map((candidate) => candidate.source)).toEqual([
- "github",
- ]);
- expect(installerCandidates("github", release).map((candidate) => candidate.source)).toEqual([
- "github",
- ]);
- expect(installerCandidates("oss", release).map((candidate) => candidate.source)).toEqual([
- "oss",
- ]);
- });
-
- it("installer transport failure falls back to the matching GitHub tag", async () => {
- const release = parseOssLatestManifest(manifest);
- expect(release).not.toBeNull();
- const candidates = installerCandidates("auto", release!);
+ it("an installer the only source cannot serve ends in null, not a silent success", async () => {
+ const release = { version: "0.2.0", tag: "v0.2.0", discoveredFrom: "github" as const };
const calls: string[] = [];
- const fetcher = async (url: string) => {
+ const downloaded = await downloadInstaller(installerCandidates(release), async (url) => {
calls.push(url);
- return url.includes("aliyuncs.com")
- ? new Response("unavailable", { status: 503 })
- : new Response("#!/bin/sh\n", { status: 200 });
- };
- const downloaded = await downloadInstaller(candidates, fetcher);
- expect(downloaded?.candidate.source).toBe("github");
- expect(downloaded?.script).toBe("#!/bin/sh\n");
- expect(calls).toEqual(candidates.map((candidate) => candidate.url));
+ return new Response("gone", { status: 404 });
+ });
+ expect(downloaded).toBeNull();
+ expect(calls).toEqual([`${githubBase}/v0.2.0/install.sh`]);
});
});
@@ -426,17 +343,14 @@ describe("buildInstallerInvocation (preserves the shape of the install being upg
installDir: "/home/me/.penguin",
hasBundledNode: true,
version: "0.2.0",
- downloadBaseUrl:
- "https://penguin-harness-releases.oss-cn-beijing.aliyuncs.com/releases/v0.2.0",
- downloadFallbackBaseUrl:
- "https://github.com/Prism-Shadow/penguin-harness/releases/download/v0.2.0",
+ downloadBaseUrl: "https://mirror.example/releases/v0.2.0",
+ downloadFallbackBaseUrl: "https://github.com/lmliheng/Adelie/releases/download/v0.2.0",
}).env,
).toEqual({
PENGUIN_VERSION: "v0.2.0",
- PENGUIN_DOWNLOAD_BASE_URL:
- "https://penguin-harness-releases.oss-cn-beijing.aliyuncs.com/releases/v0.2.0",
+ PENGUIN_DOWNLOAD_BASE_URL: "https://mirror.example/releases/v0.2.0",
PENGUIN_DOWNLOAD_FALLBACK_BASE_URL:
- "https://github.com/Prism-Shadow/penguin-harness/releases/download/v0.2.0",
+ "https://github.com/lmliheng/Adelie/releases/download/v0.2.0",
});
});
@@ -459,16 +373,14 @@ describe("buildInstallerInvocation (preserves the shape of the install being upg
it("keeps explicit mirrors strict but delegates non-explicit payload source selection", () => {
const candidate = {
- source: "oss" as const,
- baseUrl: "https://penguin-harness-releases.oss-cn-beijing.aliyuncs.com/releases/v0.2.0",
- url: "https://penguin-harness-releases.oss-cn-beijing.aliyuncs.com/releases/v0.2.0/install.sh",
- fallbackBaseUrl: "https://github.com/Prism-Shadow/penguin-harness/releases/download/v0.2.0",
+ source: "configured" as const,
+ baseUrl: "https://mirror.example/releases/v0.2.0",
+ url: "https://mirror.example/releases/v0.2.0/install.sh",
+ fallbackBaseUrl: "https://github.com/lmliheng/Adelie/releases/download/v0.2.0",
};
expect(payloadSourceEnv(candidate, true)).toEqual({
- downloadBaseUrl:
- "https://penguin-harness-releases.oss-cn-beijing.aliyuncs.com/releases/v0.2.0",
- downloadFallbackBaseUrl:
- "https://github.com/Prism-Shadow/penguin-harness/releases/download/v0.2.0",
+ downloadBaseUrl: "https://mirror.example/releases/v0.2.0",
+ downloadFallbackBaseUrl: "https://github.com/lmliheng/Adelie/releases/download/v0.2.0",
});
expect(payloadSourceEnv(candidate, false)).toEqual({
downloadBaseUrl: "",
@@ -477,21 +389,21 @@ describe("buildInstallerInvocation (preserves the shape of the install being upg
});
it("localizes the source list and connector in installer download failures", () => {
- expect(getMessages("en").update.installerFetchFailed(["oss", "github"])).toBe(
- "Could not download the installer from the OSS mirror or GitHub. Check your network and retry.",
+ expect(getMessages("en").update.installerFetchFailed(["github"])).toBe(
+ "Could not download the installer from GitHub. Check your network and retry.",
);
- expect(getMessages("zh").update.installerFetchFailed(["oss"])).toBe(
- "无法从 OSS 镜像下载安装脚本。请检查网络后重试。",
+ expect(getMessages("en").update.installerFetchFailed(["configured", "github"])).toBe(
+ "Could not download the installer from the configured mirror or GitHub. Check your network and retry.",
);
expect(getMessages("zh").update.installerFetchFailed(["github"])).toBe(
"无法从 GitHub 下载安装脚本。请检查网络后重试。",
);
- expect(getMessages("zh").update.installerFetchFailed(["oss", "github"])).toBe(
- "无法从 OSS 镜像或 GitHub 下载安装脚本。请检查网络后重试。",
- );
expect(getMessages("zh").update.installerFetchFailed(["configured"])).toBe(
"无法从配置的镜像下载安装脚本。请检查网络后重试。",
);
+ expect(getMessages("zh").update.installerFetchFailed(["configured", "github"])).toBe(
+ "无法从配置的镜像或 GitHub 下载安装脚本。请检查网络后重试。",
+ );
});
});
diff --git a/packages/core/src/state/model-catalog.ts b/packages/core/src/state/model-catalog.ts
index d9667738..69aa4cdb 100644
--- a/packages/core/src/state/model-catalog.ts
+++ b/packages/core/src/state/model-catalog.ts
@@ -201,12 +201,6 @@ export interface ModelProviderInfo {
* call sites keep answering as one.
*/
clientType?: string;
- /**
- * The group the product recommends, captioned as such on the models page. It marks the
- * GROUP, not a position: a user who drags the group elsewhere keeps the caption with it,
- * and the default sequence below is what places it first for everyone else.
- */
- recommended?: boolean;
}
/** A single built-in model's catalog entry (`modelId` is the upstream id; paired with `provider` it forms the catalog's unique key). */
@@ -301,8 +295,8 @@ export const MODELSCOPE_PROVIDER_ID = "modelscope";
/**
* Provider list (web model page groups in this order BY DEFAULT — a user's dragged
* arrangement is stored per Project and wins over this sequence; see the web's
- * model-group-order.ts). The sequence is a hand-curated display order: TokenDance leads as
- * the recommended group, Penguin Go follows, then OpenCode Go, then DeepSeek as the default
+ * model-group-order.ts). The sequence is a hand-curated display order: TokenDance leads,
+ * Penguin Go follows, then OpenCode Go, then DeepSeek as the default
* model's provider, and custom
* (custom OpenAI-protocol models) is always last; in between, gateways and first-party
* vendors are interleaved by expected use rather than sorted by kind. Only this default
@@ -330,7 +324,6 @@ export const MODEL_PROVIDERS: ModelProviderInfo[] = [
apiKeyUrl: "https://tokendance.space/keys",
modelsUrl: "https://tokendance.space/models",
gatewayBaseUrl: TOKENDANCE_BASE_URL,
- recommended: true,
// https://tokendance.space/docs/api-key-oauth
oauth: {
authorizeUrl: "https://tokendance.space/auth",
diff --git a/packages/core/test/model-catalog.test.ts b/packages/core/test/model-catalog.test.ts
index ef147f4c..dac57421 100644
--- a/packages/core/test/model-catalog.test.ts
+++ b/packages/core/test/model-catalog.test.ts
@@ -48,8 +48,8 @@ describe("model-catalog", () => {
expect(new Set(pairs).size).toBe(pairs.length);
const ids = MODEL_CATALOG.map((m) => m.modelId);
expect(MODEL_CATALOG[0]!.provider).toBe("deepseek");
- // Group order is hand-curated, interleaving gateways and first-party vendors: the
- // recommended TokenDance first, the prebuilt Penguin Go group next, OpenCode Go third,
+ // Group order is hand-curated, interleaving gateways and first-party vendors: TokenDance
+ // first, the prebuilt Penguin Go group next, OpenCode Go third,
// DeepSeek after it, and vLLM last
// among the vendors (self-hosted, so nothing in it runs until the user names a server)
// and custom always last. This is the page's DEFAULT only — a Project that has reordered
@@ -74,10 +74,9 @@ describe("model-catalog", () => {
"vllm",
"custom",
]);
- // Exactly one group is marked recommended, and it is the one that leads the default
- // order: the caption and the placement are two statements of the same curation.
- expect(MODEL_PROVIDERS.filter((p) => p.recommended).map((p) => p.id)).toEqual(["tokendance"]);
- expect(providerInfo("tokendance")!.recommended).toBe(true);
+ // No group is flagged as a product recommendation any more: the models page shows every
+ // built-in group the same way, and the default order above is the only curation left.
+ expect(MODEL_PROVIDERS.some((p) => "recommended" in p)).toBe(false);
expect(providerInfo("siliconflow")!.label).toBe("SiliconFlow");
expect(providerInfo("minimax")!.label).toBe("MiniMax");
expect(providerInfo("minimax")!.envKey).toBe("MINIMAX_API_KEY");
diff --git a/packages/core/test/plugins.test.ts b/packages/core/test/plugins.test.ts
index 6415ff0a..9b961680 100644
--- a/packages/core/test/plugins.test.ts
+++ b/packages/core/test/plugins.test.ts
@@ -272,19 +272,29 @@ describe("parseSkillFrontmatter", () => {
* table for human readers, and nothing else reads those tables. Derived from the library
* rather than pinned, so adding a plugin — or filing it under the wrong heading — fails here
* instead of leaving a table quietly wrong; the docs pages get the same guard from docs'
- * skills-sync test.
+ * skills-sync test. A file may opt out of carrying the table at all (the `optional` flag).
*/
const README_TABLES = [
{
label: "plugins/README.md",
file: "../../../plugins/README.md",
heading: (c: PluginCategory) => c.title,
+ optional: false,
+ },
+ // Adelie (2026-10-05): the English root README no longer repeats this table — its body was
+ // reduced to the header block on purpose, so the file is allowed to carry no table at all.
+ // Only its ABSENCE is tolerated: put a table back and the guard below re-arms on it.
+ {
+ label: "README.md",
+ file: "../../../README.md",
+ heading: (c: PluginCategory) => c.title,
+ optional: true,
},
- { label: "README.md", file: "../../../README.md", heading: (c: PluginCategory) => c.title },
{
label: "README.zh.md",
file: "../../../README.zh.md",
heading: (c: PluginCategory) => c.titleZh ?? c.title,
+ optional: false,
},
];
@@ -306,10 +316,13 @@ function readmeTableRows(markdown: string): Array<{ group: string; plugins: stri
}
describe("README category tables", () => {
- for (const { label, file, heading } of README_TABLES) {
+ for (const { label, file, heading, optional } of README_TABLES) {
it(`${label} names exactly the library's plugins, each under its own category`, async () => {
const markdown = await fs.readFile(path.resolve(import.meta.dirname, file), "utf8");
const rows = readmeTableRows(markdown);
+ // An `optional` file with no table opts out of the guard (see the flag's note); every
+ // other file must carry it, and a malformed header still fails there.
+ if (optional && rows.length === 0) return;
expect(rows.length, `no Category/分类 table found in ${label}`).toBeGreaterThan(0);
const groups = loadPluginGroups();
expect(rows.map((row) => row.group).sort()).toEqual(groups.map(heading).sort());
diff --git a/packages/docs/content/models.en.md b/packages/docs/content/models.en.md
index f2e5e2d2..1f6cdd60 100644
--- a/packages/docs/content/models.en.md
+++ b/packages/docs/content/models.en.md
@@ -16,7 +16,7 @@ Each Project has its own model table: the models its conversations can use, grou
In the sidebar, select **Models**. Models are listed in groups, one per provider.
-- **Groups.** Built-in groups follow the order in [Built-in provider groups](#built-in-provider-groups). Groups you create follow them, sorted by name. A built-in group with no models is hidden; **Custom** is always shown. The **TokenDance** group carries a **Recommended** tag.
+- **Groups.** Built-in groups follow the order in [Built-in provider groups](#built-in-provider-groups). Groups you create follow them, sorted by name. A built-in group with no models is hidden; **Custom** is always shown.
- **Open and close groups.** Select a group's header to open or close it. On your first visit only the TokenDance group is open. The browser remembers which groups you opened, per Project.
- **Reorder groups.** Drag a group's header to move it. The order is saved in this browser, per Project, and the model picker in the chat uses the same order. Dragging is not available on touch screens or while searching.
- **Search.** Type in **Search models: id / name / provider** to show only the matching models. While you search, every matching group is open.
@@ -433,7 +433,7 @@ The table below lists the built-in groups and the environment variables their mo
| Provider | API key env var | Notes |
| --- | --- | --- |
-| tokendance | `OPENAI_API_KEY` | The recommended group. OpenAI-compatible gateway, preset base URL `https://tokendance.space/gateway/v1`; model ids are bare, with no vendor prefix (e.g. `glm-5.3`, `kimi-k3`); pricing is the gateway's own CNY rates, several of them currently discounted |
+| tokendance | `OPENAI_API_KEY` | OpenAI-compatible gateway, preset base URL `https://tokendance.space/gateway/v1`; model ids are bare, with no vendor prefix (e.g. `glm-5.3`, `kimi-k3`); pricing is the gateway's own CNY rates, several of them currently discounted |
| penguin-go | `PENGUIN_GO_API_KEY` | Preset relay group, fixed base URL `https://token.penguin.ooo/api`; its header connects for you or takes a key you enter by hand. See [The Penguin Go group](#the-penguin-go-group) |
| opencode-go | `OPENAI_API_KEY` | OpenCode Go subscription gateway. Each model pins its own protocol: Chat Completions or Responses at `https://opencode.ai/zen/go/v1`, Anthropic Messages at `https://opencode.ai/zen/go` (that client's variable is `ANTHROPIC_API_KEY`). See [The OpenCode Go group](#the-opencode-go-group) |
| deepseek | `DEEPSEEK_API_KEY` | Group of the default model |
diff --git a/packages/docs/content/models.zh.md b/packages/docs/content/models.zh.md
index 8e8ff25b..8a4173c3 100644
--- a/packages/docs/content/models.zh.md
+++ b/packages/docs/content/models.zh.md
@@ -16,7 +16,7 @@ description: 为 Project 添加模型,设置 API key 和默认模型,选择
在侧边栏选择**模型库**。模型按分组列出,每个供应商一个分组。
-- **分组**:内置分组按[内置供应商分组](#内置供应商分组)里的顺序排列;你创建的分组排在后面,按名称排序。没有模型的内置分组会隐藏;**Custom** 始终显示。**TokenDance** 分组带有**官方推荐**标签。
+- **分组**:内置分组按[内置供应商分组](#内置供应商分组)里的顺序排列;你创建的分组排在后面,按名称排序。没有模型的内置分组会隐藏;**Custom** 始终显示。
- **展开和收起分组**:点击分组标题即可展开或收起。首次访问时只有 TokenDance 分组是展开的。浏览器会记住你展开过哪些分组,按 Project 分别记录。
- **调整分组顺序**:拖动分组标题即可移动分组。顺序保存在当前浏览器里,按 Project 分别记录;对话中的模型选择器也用同样的顺序。触摸屏上或搜索时不能拖动。
- **搜索**:在**搜索模型:id / 名称 / 厂商**里输入,就只显示匹配的模型。搜索期间,所有包含匹配模型的分组都会展开。
@@ -432,7 +432,7 @@ PenguinHarness 升级可能改变内置的预置模型目录。一旦发生,Pr
| 供应商 | API key 环境变量 | 说明 |
| --- | --- | --- |
-| tokendance | `OPENAI_API_KEY` | 推荐分组。OpenAI 兼容网关,预置 base URL `https://tokendance.space/gateway/v1`;模型 id 为裸名称,不带供应商前缀(如 `glm-5.3`、`kimi-k3`);价格采用网关自己的人民币费率,目前有几项在打折 |
+| tokendance | `OPENAI_API_KEY` | OpenAI 兼容网关,预置 base URL `https://tokendance.space/gateway/v1`;模型 id 为裸名称,不带供应商前缀(如 `glm-5.3`、`kimi-k3`);价格采用网关自己的人民币费率,目前有几项在打折 |
| penguin-go | `PENGUIN_GO_API_KEY` | 预置的中转分组,固定 base URL `https://token.penguin.ooo/api`;分组标题栏可以为你连接取得 key,也可以手动填写。见 [Penguin Go 分组](#penguin-go-分组) |
| opencode-go | `OPENAI_API_KEY` | OpenCode Go 订阅网关。每个模型各自固定协议:Chat Completions 或 Responses 走 `https://opencode.ai/zen/go/v1`,Anthropic Messages 走 `https://opencode.ai/zen/go`(该客户端的变量是 `ANTHROPIC_API_KEY`)。见 [OpenCode Go 分组](#opencode-go-分组) |
| deepseek | `DEEPSEEK_API_KEY` | 默认模型所在的分组 |
diff --git a/packages/server/src/services/update-check-service.ts b/packages/server/src/services/update-check-service.ts
index 5fea7a34..e4a80d63 100644
--- a/packages/server/src/services/update-check-service.ts
+++ b/packages/server/src/services/update-check-service.ts
@@ -27,8 +27,13 @@ import type { Clock, Config, Lifecycle } from "../hmr/capabilities.js";
import type { UpdateJob } from "./update-job.js";
import type { HarnessHistoryIface } from "./harness-history.js";
-/** Repository the released artifacts come from (same slug as cli/update.ts's REPO_SLUG). */
-const REPO_SLUG = "Prism-Shadow/penguin-harness";
+/**
+ * Repository the released artifacts come from (same slug as cli/update.ts's REPO_SLUG).
+ *
+ * Adelie's own, since 2026-10-05: upstream's slug sat here before, so the Web App's update
+ * reminder compared this build against PenguinHarness releases and offered to install one.
+ */
+const REPO_SLUG = "lmliheng/Adelie";
/** Releases API endpoint for the newest published release. */
export const LATEST_RELEASE_API = `https://api.github.com/repos/${REPO_SLUG}/releases/latest`;
diff --git a/packages/web/src/features/models/models-page.tsx b/packages/web/src/features/models/models-page.tsx
index c17b2091..f13af504 100644
--- a/packages/web/src/features/models/models-page.tsx
+++ b/packages/web/src/features/models/models-page.tsx
@@ -1507,29 +1507,6 @@ export function ModelsPage() {
{/* The chevron follows the name and its count rather than the row's far
edge, so it reads as part of the group it folds. */}
<Chevron open={open} className="text-gray-400" />
- {/* The recommendation rides the collapse bar itself, so it is read with
- the group's name rather than as a caption floating above the
- section. `shrink-0` keeps it whole: the vendor name beside it is
- the element allowed to truncate on a narrow page. */}
- {group.provider.recommended && (
- // Not a `Badge`: every Badge tone is a status or `neutral`, and an
- // endorsement is neither, which is the category tone.ts keeps out on
- // purpose. Unfilled, like the card marks below it: an outline
- // is enough to make it a pill, and a block of colour on the collapse
- // bar competes with the vendor name it is endorsing. It gives way on
- // a narrow row before the name does.
- //
- // Gold, and the darker end of it: `yellow-700` (#a16207) is the last
- // rung that still clears 4.5:1 against this bar's gray-50 — 12px bold
- // is not WCAG "large text", so the brighter golds above it are not
- // available in light mode. Dark mode takes yellow-400, the bright
- // gold, which clears it comfortably on this app's near-black. The
- // ring is the text's own hue at 40%, in both themes: a ring brighter
- // than the words it encloses reads as a highlighter, not as gold.
- <span className="hidden shrink-0 whitespace-nowrap rounded-full border border-yellow-700/40 px-2 py-0.5 text-xs font-semibold text-yellow-700 @lg:inline dark:border-yellow-400/40 dark:text-yellow-400">
- {S.models.recommendedGroup}
- </span>
- )}
</button>
{actions.length > 0 && (
<div className="ml-auto flex shrink-0 items-center gap-2 py-1">
diff --git a/packages/web/src/lib/strings-en.ts b/packages/web/src/lib/strings-en.ts
index f814e20e..7820d12f 100644
--- a/packages/web/src/lib/strings-en.ts
+++ b/packages/web/src/lib/strings-en.ts
@@ -1519,12 +1519,6 @@ export const en: Strings = {
fastModeBadge: "Fast",
visionBadge: "Vision",
freeBadge: "Free",
- /**
- * Rides the group's own collapse bar, which on this group carries five actions — the most
- * crowded row on the page. One word, because the vendor name beside it is what a reader
- * needs first and is the element that truncates.
- */
- recommendedGroup: "Recommended",
discountBadge: (pct: number): string => `${pct}% off`,
discountTitle: (pct: number): string => `Promotion: ${pct}% off the list price`,
offPeakTitle: (pct: number, peak: PeakWindows): string => {
diff --git a/packages/web/src/lib/strings.ts b/packages/web/src/lib/strings.ts
index 17d7bbe8..a0ba17e4 100644
--- a/packages/web/src/lib/strings.ts
+++ b/packages/web/src/lib/strings.ts
@@ -1566,11 +1566,6 @@ export const zh = {
visionBadge: "视觉",
/** Light-yellow badge on zero-cost models (all three price buckets 0, e.g. the :free variants and openrouter/free). */
freeBadge: "免费",
- /**
- * Caption above a provider group the catalog marks as recommended. It travels with the
- * group, so a user who drags that group elsewhere still sees why it is called out.
- */
- recommendedGroup: "官方推荐",
/** Badge on a row the seller is currently discounting: the rate off its list price. */
discountBadge: (pct: number): string => `省 ${pct}%`,
discountTitle: (pct: number): string => `促销价:已在牌价基础上打 ${pct}% 折扣`,
diff --git a/packages/web/src/lib/update-flow.ts b/packages/web/src/lib/update-flow.ts
index 618ca133..3a79e671 100644
--- a/packages/web/src/lib/update-flow.ts
+++ b/packages/web/src/lib/update-flow.ts
@@ -79,9 +79,13 @@ export interface FlowLocal {
export const NO_LOCAL: FlowLocal = { checking: false, downloadRequested: false, restart: "none" };
-/** The Releases page of one version — the client mode's release-notes link (the shell names a version, never a URL). */
+/**
+ * The Releases page of one version — the client mode's release-notes link (the shell names a
+ * version, never a URL). Adelie's own repository: this link used to open PenguinHarness's
+ * releases, which is a different product whose tags reuse these version numbers.
+ */
export function releaseUrlFor(version: string): string {
- return `https://github.com/Prism-Shadow/penguin-harness/releases/tag/v${version}`;
+ return `https://github.com/lmliheng/Adelie/releases/tag/v${version}`;
}
export interface ReleaseInputs {
diff --git a/packages/web/test/model-group-expansion.test.ts b/packages/web/test/model-group-expansion.test.ts
index c09a3f64..a19e671b 100644
--- a/packages/web/test/model-group-expansion.test.ts
+++ b/packages/web/test/model-group-expansion.test.ts
@@ -41,9 +41,9 @@ describe("defaultExpandedProviders", () => {
it("contains exactly the leading catalog group, and follows it when the curation changes", () => {
expect([...defaultExpandedProviders()]).toEqual([MODEL_PROVIDERS[0]!.id]);
// The group that leads is a product decision, so it is spelled out once here: the page
- // opens on the recommended group rather than on whichever id used to be hard-coded.
+ // opens on the first group of the catalog's own order rather than on whichever id used to
+ // be hard-coded.
expect(MODEL_PROVIDERS[0]!.id).toBe("tokendance");
- expect(MODEL_PROVIDERS[0]!.recommended).toBe(true);
});
it("returns a fresh set per call (React state must not share one mutable instance)", () => {
diff --git a/packages/web/test/model-grouping.test.ts b/packages/web/test/model-grouping.test.ts
index ecde63a1..1107da8f 100644
--- a/packages/web/test/model-grouping.test.ts
+++ b/packages/web/test/model-grouping.test.ts
@@ -88,7 +88,7 @@ describe("groupModelRows", () => {
expect(groups[4]!.provider.envKey).toBe("OPENAI_API_KEY");
expect(groups[4]!.rows.map((r) => r.modelId)).toEqual(["weird-model"]);
// Group order matches MODEL_PROVIDERS, whose sequence is hand-curated (gateways and
- // first-party vendors interleaved): the recommended TokenDance first, then Penguin Go,
+ // first-party vendors interleaved): TokenDance first, then Penguin Go,
// OpenCode Go and DeepSeek, with custom last. This is the page's DEFAULT — the
// stored per-Project order applied below overrides it.
expect(MODEL_PROVIDERS.map((p) => p.id)).toEqual([
diff --git a/packages/web/test/update-flow.test.ts b/packages/web/test/update-flow.test.ts
index 552dfcb3..9824c649 100644
--- a/packages/web/test/update-flow.test.ts
+++ b/packages/web/test/update-flow.test.ts
@@ -30,7 +30,7 @@ const check = (over: Partial<UpdateCheckResponse> = {}): UpdateCheckResponse =>
buildDate: "2026-08-28",
latestVersion: "0.3.0",
updateAvailable: true,
- releaseUrl: "https://github.com/Prism-Shadow/penguin-harness/releases/tag/v0.3.0",
+ releaseUrl: "https://github.com/lmliheng/Adelie/releases/tag/v0.3.0",
publishedAt: null,
checkedAt: "2026-08-28T00:00:00.000Z",
...over,