A local-first multi-agent app development platform, built on PenguinHarness
refactor(npm): 所有包改挂 @adelie 名下,不再用 penguin- 那套名字
lmlihenga113ea8e4df7
diff --git a/.agents/scripts/remote-test.sh b/.agents/scripts/remote-test.shindex cd0c0dd8..60641f10 100755--- a/.agents/scripts/remote-test.sh+++ b/.agents/scripts/remote-test.sh@@ -4,10 +4,10 @@# PENGUIN_TEST_HOST=<ssh-destination> \# .agents/scripts/remote-test.sh <worktree> [--build "<pkg> <pkg>"] -- <pnpm args...>#-# PENGUIN_TEST_HOST=box .agents/scripts/remote-test.sh . -- --filter @lmliheng/penguin-web test+# PENGUIN_TEST_HOST=box .agents/scripts/remote-test.sh . -- --filter @adelie/web test# PENGUIN_TEST_HOST=box .agents/scripts/remote-test.sh ~/dev/penguin-harness-wt/foo \-# --build "@lmliheng/penguin-core @lmliheng/penguin-server" -- \-# --filter @lmliheng/penguin-cli exec vitest run test/agent-porting.test.ts+# --build "@adelie/core @adelie/server" -- \+# --filter @adelie/cli exec vitest run test/agent-porting.test.ts## Tests run on the developer's own machine by default; this script exists for the times the user# asks for a different one, and it is never the automatic choice. The destination comes from thediff --git a/.agents/skills/penguin-harness-dev/SKILL.md b/.agents/skills/penguin-harness-dev/SKILL.mdindex fcff2c3f..d4f2acdc 100644--- a/.agents/skills/penguin-harness-dev/SKILL.md+++ b/.agents/skills/penguin-harness-dev/SKILL.md@@ -93,8 +93,8 @@ The full chain CI runs is `pnpm build`, `pnpm format:check`, `pnpm typecheck`, `Pick the narrowest evidence that would actually fail for this change's regression:```sh-pnpm --filter @lmliheng/penguin-core exec vitest run test/model-catalog.test.ts # one file, ~1s-pnpm --filter @lmliheng/penguin-web test # one package+pnpm --filter @adelie/core exec vitest run test/model-catalog.test.ts # one file, ~1s+pnpm --filter @adelie/web test # one package```| Changed | Run |diff --git a/.agents/skills/penguin-harness-dev/reference/release.md b/.agents/skills/penguin-harness-dev/reference/release.mdindex e41b09af..406612df 100644--- a/.agents/skills/penguin-harness-dev/reference/release.md+++ b/.agents/skills/penguin-harness-dev/reference/release.md@@ -42,7 +42,7 @@ npm's trusted publishing is configured **per package**. A name that does not exiconfiguration, so the OIDC token exchange 404s, and the release job carries no fallback credential— the first publish of a new name needs a person with npm rights, done once, before the tag.-0.2.13 cost a run to learn this: company mode brought `@lmliheng/agent-company`, plugins+0.2.13 cost a run to learn this: company mode brought `@adelie/agent-company`, pluginspublish in directory order, it sorts first, and the job died on it before `core`, `server` or `cli`were reached.diff --git a/.agents/skills/penguin-harness-frontend/SKILL.md b/.agents/skills/penguin-harness-frontend/SKILL.mdindex 7a342fbc..d7f2f751 100644--- a/.agents/skills/penguin-harness-frontend/SKILL.md+++ b/.agents/skills/penguin-harness-frontend/SKILL.md@@ -74,12 +74,12 @@ Two forms, and **a title decides between them, not taste**:> **The circled "?" may only appear beside a title. It must never stand alone on its own line.> Where it would stand alone, use the fold.**-- **A title is present** → `InfoPopover` (`@lmliheng/penguin-ui`). A circled "?"+- **A title is present** → `InfoPopover` (`@adelie/ui`). A circled "?"immediately after the section heading, the table column header, or the field label — the last ofthose via `Field`/`Input`/`Textarea`/`PasswordInput`/`Select`'s `info` prop. The "?" is an*anchored* mark: it reads as help only because it modifies the title it sits against, and itborrows that title's meaning instead of restating it.-- **No title on the surface** → `HelpFold` (`@lmliheng/penguin-ui`). A compact row that+- **No title on the surface** → `HelpFold` (`@adelie/ui`). A compact row thatnames itself and expands its explanation inline underneath. This is the Agent settings tabs:their name lives in the tab bar and the panel does not repeat it, so a "?" at the top of thepanel would be a mark modifying nothing. A neighbouring `<Button>` does not rescue it — a@@ -108,7 +108,7 @@ which is why the control needs an id. The UI package's `test/field.test.ts` guar## Icons-One renderer: `GlyphIcon` from `@lmliheng/penguin-ui`. A 24×24 path stroked at the theme's+One renderer: `GlyphIcon` from `@adelie/ui`. A 24×24 path stroked at the theme's`--ui-icon-stroke` (1.7 in Primer), `stroke="currentColor"`, `fill="none"` (or `filled` for an "on"state); pass `decor="nav|group|menu|empty"` only where a label beside it already says what it says.Do not hand-write an `<svg>` or a `const *_ICON = "M…"` for a line icon — the paths live in one@@ -144,7 +144,7 @@ menu rows, `OptionMenu`'s row titles, `Textarea` and `FormPicker` all read it, swhole family at once.The rungs are **relative, not the pixel values their names suggest**. `FONT_SCALE_PX` (in-`@lmliheng/penguin-ui/boot`, applied before first paint and by `theme.tsx`) sets the root font+`@adelie/ui/boot`, applied before first paint and by `theme.tsx`) sets the root fontsize per tier (16/18/20px, default 18) and no stylesheet overrides a `--text-*`, so`text-xs` is 13.5px at the default tier rather than 12px, and every rung tracks the user's setting.@@ -210,7 +210,7 @@ exercise CJK behaviour. Comments, test names and every other string are English.## Popups: portal, do not absolutely positionAnything that overlays — a menu, a picker, an info popover — uses `usePortalPanel`-(`@lmliheng/penguin-ui`) and `createPortal` to `document.body`, positioned `fixed`+(`@adelie/ui`) and `createPortal` to `document.body`, positioned `fixed`against viewport coordinates. An in-place absolute panel is a DOM descendant of its trigger, so anyancestor with `overflow-x-auto` clips it vertically (the CSS spec forces the visible axis to `auto`when the other is not visible), and auditing every call site's ancestor chain is not a plan.@@ -249,8 +249,8 @@ outside a `Menu` is a plain button, for a panel that mixes rows with a search bo## Verify```sh-pnpm --filter @lmliheng/penguin-web typecheck-pnpm --filter @lmliheng/penguin-web test+pnpm --filter @adelie/web typecheck+pnpm --filter @adelie/web testpnpm format && pnpm format:check```diff --git a/.agents/skills/penguin-harness-manual-test/SKILL.md b/.agents/skills/penguin-harness-manual-test/SKILL.mdindex b8569e72..71af87ed 100644--- a/.agents/skills/penguin-harness-manual-test/SKILL.md+++ b/.agents/skills/penguin-harness-manual-test/SKILL.md@@ -23,7 +23,7 @@ Other fixed ports (`packages/core/src/internal/ports.ts`): 7364 installed server7369 `pnpm penguin web` (data root `~/.penguin/dev-data-cli` — its own, so it can serve while anAgent it hosts runs `pnpm dev`; the lock is per root). On a shared box, `ss -tln` before assumingone is free; `PORT=` inline moves it. The gallery's port is strict — a busy 7372 fails instead of-drifting, because quoted gallery links and `pnpm --filter @lmliheng/penguin-ui-gallery shots`+drifting, because quoted gallery links and `pnpm --filter @adelie/ui-gallery shots`name it.The user's installed app, server and CLI all use `~/.penguin/data` — their real Agents, Sessionsdiff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.mdindex 1e397b1b..8ca36996 100644--- a/.github/CONTRIBUTING.md+++ b/.github/CONTRIBUTING.md@@ -47,7 +47,7 @@ CLI of the checkout it was started from: it writes a launcher at `<root>/bin/penpointing at `packages/cli/dist/penguin.js` and puts that directory at the front of everycommand's PATH. Nothing rebuilds that file while a dev server runs — `tsx watch` covers theserver's own sources only — so after editing the CLI, run-`pnpm --filter @lmliheng/penguin-cli build` (or restart `pnpm dev`) before asking an+`pnpm --filter @adelie/cli build` (or restart `pnpm dev`) before asking anAgent to use it.One rule when bypassing the dev commands: **rebuild skills/core through pnpm, in that@@ -126,14 +126,14 @@ single data directory (`~/.penguin/data`) and a single message protocol (OmniMes| Package | Name | Role || ----------------------------------------- | ----------------------------- | ------------------------------------------------------------------------------------------------------- |-| [`packages/core`](../packages/core) | `@lmliheng/penguin-core` | SDK & engine: ReAct loop, OmniMessage protocol, LLM/Environment interface contracts, Agent State, Trace |-| [`packages/cli`](../packages/cli) | `@lmliheng/penguin-cli` | The `penguin` command: REPL, one-shot runs, model & vault config, service launcher |-| [`packages/server`](../packages/server) | `@lmliheng/penguin-server` | Web backend: HTTP API + SSE streaming, multi-user auth, Project authorization, usage stats |-| [`packages/amsp`](../packages/amsp) | `@lmliheng/amsp` | AMSP, the Agent API's event stream: its wire types, which the server imports, and a zero-dependency client for Node and browsers |-| [`packages/web`](../packages/web) | `@lmliheng/penguin-web` | Web App: multi-session chat, Agent/skill/model management, Trace observability, evaluation center |-| [`plugins/*`](../plugins) | `@lmliheng/<name>` | The built-in plugins, one npm package each: skills (software development, model development, agent development/tuning, …) and session hooks (goal mode, skill summaries); the loader lives in `packages/core` |+| [`packages/core`](../packages/core) | `@adelie/core` | SDK & engine: ReAct loop, OmniMessage protocol, LLM/Environment interface contracts, Agent State, Trace |+| [`packages/cli`](../packages/cli) | `@adelie/cli` | The `penguin` command: REPL, one-shot runs, model & vault config, service launcher |+| [`packages/server`](../packages/server) | `@adelie/server` | Web backend: HTTP API + SSE streaming, multi-user auth, Project authorization, usage stats |+| [`packages/amsp`](../packages/amsp) | `@adelie/amsp` | AMSP, the Agent API's event stream: its wire types, which the server imports, and a zero-dependency client for Node and browsers |+| [`packages/web`](../packages/web) | `@adelie/web` | Web App: multi-session chat, Agent/skill/model management, Trace observability, evaluation center |+| [`plugins/*`](../plugins) | `@adelie/<name>` | The built-in plugins, one npm package each: skills (software development, model development, agent development/tuning, …) and session hooks (goal mode, skill summaries); the loader lives in `packages/core` || [`packages/docs`](../packages/docs) | — | Documentation site (bilingual, deployed under `/docs/`) |-| [`plugins/*`](../plugins) | `@lmliheng/penguin-plugin-*` | Plugin packages a Project asks for on the Plugins page (its `[plugins]` table) — a directory of their own because nothing else in the harness depends on one |+| [`plugins/*`](../plugins) | `@adelie/*` | Plugin packages a Project asks for on the Plugins page (its `[plugins]` table) — a directory of their own because nothing else in the harness depends on one |Responsibilities split by source of truth: the **SDK** owns protocol and execution(message parsing, the agent loop, tools), the **Server** owns the multi-user runtime@@ -161,7 +161,7 @@ End-to-end suites (optional locally, slower):```bashnpx playwright install chromium # once-pnpm --filter @lmliheng/penguin-web test:e2e # browser e2e against a mock LLM+pnpm --filter @adelie/web test:e2e # browser e2e against a mock LLMpnpm test:e2e # core live-model e2e, needs DEEPSEEK_API_KEY```diff --git a/.github/CONTRIBUTING.zh.md b/.github/CONTRIBUTING.zh.mdindex ae978c72..71e98288 100644--- a/.github/CONTRIBUTING.zh.md+++ b/.github/CONTRIBUTING.zh.md@@ -40,7 +40,7 @@ Vite 依赖缓存(`packages/web/node_modules/.vite`)——该缓存仅以 lo该预处理步骤还会构建 `packages/cli`:开发版 server 会把它所在检出的 CLI 交给它运行的 Agent——在`<root>/bin/penguin` 写下一个指向 `packages/cli/dist/penguin.js` 的启动脚本,并把该目录置于每条命令PATH 的最前。dev server 运行期间没有任何东西会重建那个文件(`tsx watch` 只覆盖 server 自身的源码),-因此改完 CLI 源码后,要先跑 `pnpm --filter @lmliheng/penguin-cli build`(或重启 `pnpm dev`),+因此改完 CLI 源码后,要先跑 `pnpm --filter @adelie/cli build`(或重启 `pnpm dev`),再让 Agent 去用它。绕开 dev 命令时有一条规则:**通过 pnpm 重新构建 skills/core,并按此顺序**(`pnpm build`,或重启@@ -86,12 +86,12 @@ userData 目录随其名称一并搬家,Chromium 配置文件也跟着走,| 包 | 名称 | 职责 || ----------------------------------------- | ----------------------------- | --------------------------------------------------------------------------- |-| [`packages/core`](../packages/core) | `@lmliheng/penguin-core` | SDK 与引擎:ReAct 循环、OmniMessage 协议、LLM/Environment 接口契约、Agent State、Trace |-| [`packages/cli`](../packages/cli) | `@lmliheng/penguin-cli` | `penguin` 命令:REPL、单次运行、模型与 vault 配置、服务启动器 |-| [`packages/server`](../packages/server) | `@lmliheng/penguin-server` | Web 后端:HTTP API + SSE 流式传输、多用户认证、Project 鉴权、用量统计 |-| [`packages/amsp`](../packages/amsp) | `@lmliheng/amsp` | AMSP(Agent API 的事件流):传输类型(服务器也引用)和零依赖的客户端,适用于 Node 与浏览器 |-| [`packages/web`](../packages/web) | `@lmliheng/penguin-web` | Web App:多会话聊天,Agent/Skill/模型管理,Trace 可观测性,评测中心 |-| [`plugins/*`](../plugins) | `@lmliheng/<name>` | 内置插件,一插件一 npm 包:Skill(软件开发、模型开发、Agent 开发/调优……)与会话钩子(目标模式、技能沉淀);loader 在 `packages/core` |+| [`packages/core`](../packages/core) | `@adelie/core` | SDK 与引擎:ReAct 循环、OmniMessage 协议、LLM/Environment 接口契约、Agent State、Trace |+| [`packages/cli`](../packages/cli) | `@adelie/cli` | `penguin` 命令:REPL、单次运行、模型与 vault 配置、服务启动器 |+| [`packages/server`](../packages/server) | `@adelie/server` | Web 后端:HTTP API + SSE 流式传输、多用户认证、Project 鉴权、用量统计 |+| [`packages/amsp`](../packages/amsp) | `@adelie/amsp` | AMSP(Agent API 的事件流):传输类型(服务器也引用)和零依赖的客户端,适用于 Node 与浏览器 |+| [`packages/web`](../packages/web) | `@adelie/web` | Web App:多会话聊天,Agent/Skill/模型管理,Trace 可观测性,评测中心 |+| [`plugins/*`](../plugins) | `@adelie/<name>` | 内置插件,一插件一 npm 包:Skill(软件开发、模型开发、Agent 开发/调优……)与会话钩子(目标模式、技能沉淀);loader 在 `packages/core` || [`packages/docs`](../packages/docs) | — | 文档站(双语,部署在 `/docs/` 下) |职责按事实来源划分:**SDK** 拥有协议与执行(消息解析、Agent 循环、工具),**Server** 拥有多用户运行时@@ -118,7 +118,7 @@ Agent 读到的是同一个目录。```bashnpx playwright install chromium # 一次即可-pnpm --filter @lmliheng/penguin-web test:e2e # 针对 mock LLM 的浏览器 e2e+pnpm --filter @adelie/web test:e2e # 针对 mock LLM 的浏览器 e2epnpm test:e2e # core 的真实模型 e2e,需要 DEEPSEEK_API_KEY```diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.ymlindex d7c9e5d8..4303f39b 100644--- a/.github/actions/setup/action.yml+++ b/.github/actions/setup/action.yml@@ -13,7 +13,7 @@ inputs:build:description: >-pnpm --filter arguments naming what to build, comma separated (e.g.- "@lmliheng/penguin-core..."). Empty builds nothing — a job that only reads+ "@adelie/core..."). Empty builds nothing — a job that only readssources, such as the Prettier gate, needs no dist at all.required: falsedefault: ""diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 999c96ca..dab5a551 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -124,7 +124,7 @@ jobs:# files read skills' emitted types, for one.- uses: ./.github/actions/setupwith:- build: "@lmliheng/penguin-desktop...,@lmliheng/penguin-docs...,@lmliheng/penguin-server...,@lmliheng/penguin-cli...,@lmliheng/penguin-web..."+ build: "@adelie/desktop...,@adelie/docs...,@adelie/server...,@adelie/cli...,@adelie/web..."- name: Typecheck (tsc)run: pnpm typecheck@@ -149,22 +149,22 @@ jobs:matrix:include:- shard: core- build: "@lmliheng/penguin-core..."- tests: pnpm --filter @lmliheng/penguin-core test+ build: "@adelie/core..."+ tests: pnpm --filter @adelie/core test- shard: server- build: "@lmliheng/penguin-server..."- tests: pnpm --filter @lmliheng/penguin-server test+ build: "@adelie/server..."+ tests: pnpm --filter @adelie/server test- shard: web-cli- build: "@lmliheng/penguin-core...,@lmliheng/penguin-web..."+ build: "@adelie/core...,@adelie/web..."tests: >-- pnpm --filter @lmliheng/penguin-web --filter @lmliheng/penguin-ui- --filter @lmliheng/penguin-cli test+ pnpm --filter @adelie/web --filter @adelie/ui+ --filter @adelie/cli test- shard: rest- build: "@lmliheng/penguin-desktop...,@lmliheng/penguin-cli...,@lmliheng/amsp..."+ build: "@adelie/desktop...,@adelie/cli...,@adelie/amsp..."tests: >-- pnpm -r --filter '!@lmliheng/penguin-core' --filter '!@lmliheng/penguin-server'- --filter '!@lmliheng/penguin-web' --filter '!@lmliheng/penguin-ui'- --filter '!@lmliheng/penguin-cli' test+ pnpm -r --filter '!@adelie/core' --filter '!@adelie/server'+ --filter '!@adelie/web' --filter '!@adelie/ui'+ --filter '!@adelie/cli' testmust_run: sandbox-bwrap,sandbox-dshsteps:- uses: actions/checkout@v5@@ -192,7 +192,7 @@ jobs:- uses: actions/checkout@v5- uses: ./.github/actions/setupwith:- build: "@lmliheng/penguin-cli...,@lmliheng/penguin-server..."+ build: "@adelie/cli...,@adelie/server..."- name: Installer bundle and POSIX installer testsrun: sh scripts/test-installer.sh- name: E2E (live LLM via DeepSeek)@@ -221,17 +221,17 @@ jobs:matrix:include:- shard: core- build: "@lmliheng/penguin-core..."- tests: pnpm --filter @lmliheng/penguin-core test+ build: "@adelie/core..."+ tests: pnpm --filter @adelie/core testsmoke: false- shard: server- build: "@lmliheng/penguin-server..."- tests: pnpm --filter @lmliheng/penguin-server test+ build: "@adelie/server..."+ tests: pnpm --filter @adelie/server testsmoke: false- shard: rest- build: "@lmliheng/penguin-desktop...,@lmliheng/penguin-cli...,@lmliheng/amsp..."+ build: "@adelie/desktop...,@adelie/cli...,@adelie/amsp..."tests: >-- pnpm -r --filter '!@lmliheng/penguin-core' --filter '!@lmliheng/penguin-server' test+ pnpm -r --filter '!@adelie/core' --filter '!@adelie/server' testsmoke: true# ADELIE_MUST_RUN, as on ubuntu: these suites must run here.must_run: sandbox-seatbelt,sandbox-dsh@@ -278,21 +278,21 @@ jobs:matrix:include:- shard: core- build: "@lmliheng/penguin-core..."- tests: pnpm --filter @lmliheng/penguin-core test+ build: "@adelie/core..."+ tests: pnpm --filter @adelie/core test- shard: server-1- build: "@lmliheng/penguin-server..."- tests: pnpm --filter @lmliheng/penguin-server exec vitest run --shard=1/3+ build: "@adelie/server..."+ tests: pnpm --filter @adelie/server exec vitest run --shard=1/3- shard: server-2- build: "@lmliheng/penguin-server..."- tests: pnpm --filter @lmliheng/penguin-server exec vitest run --shard=2/3+ build: "@adelie/server..."+ tests: pnpm --filter @adelie/server exec vitest run --shard=2/3- shard: server-3- build: "@lmliheng/penguin-server..."- tests: pnpm --filter @lmliheng/penguin-server exec vitest run --shard=3/3+ build: "@adelie/server..."+ tests: pnpm --filter @adelie/server exec vitest run --shard=3/3- shard: rest- build: "@lmliheng/penguin-desktop...,@lmliheng/penguin-cli...,@lmliheng/amsp..."+ build: "@adelie/desktop...,@adelie/cli...,@adelie/amsp..."tests: >-- pnpm -r --filter '!@lmliheng/penguin-core' --filter '!@lmliheng/penguin-server' test+ pnpm -r --filter '!@adelie/core' --filter '!@adelie/server' test# ADELIE_MUST_RUN, as on ubuntu and macOS: the DSH live suite must run here# (through pwsh, see plugins/sandbox-dsh test/live.test.ts).must_run: sandbox-dsh@@ -309,7 +309,7 @@ jobs:# other platforms run the script and never notice.- name: Generate the interface tableif: startsWith(matrix.shard, 'server')- run: pnpm --filter @lmliheng/penguin-server gen:ifaces+ run: pnpm --filter @adelie/server gen:ifaces# One retry, and only here. Per-test flakes are already absorbed inside vitest# (`retry` in core's and the server's configs, Windows only); what this covers is the@@ -334,7 +334,7 @@ jobs:- uses: actions/checkout@v5- uses: ./.github/actions/setupwith:- build: "@lmliheng/penguin-cli..."+ build: "@adelie/cli..."# The Linux job cannot validate PowerShell syntax; parse (never execute) the installer# scripts with the real PowerShell parser so a broken install.ps1 cannot ship.@@ -391,7 +391,7 @@ jobs:# The web package is not a dependency of the desktop package (the app carries its# build by an electron-builder file mapping, not an import), so `desktop...` alone# leaves it unbuilt — and the mapping then silently packs nothing.- build: "@lmliheng/penguin-desktop...,@lmliheng/penguin-web"+ build: "@adelie/desktop...,@adelie/web"- name: Preflight the packed tree's inputsrun: node packages/desktop/scripts/preflight.mjsdiff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 200df7c7..9a30963d 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -16,12 +16,12 @@# one version per tag, multiple versions coexist. Releases up to v0.1.5 shipped raw program# archives under the same names plus *-offline wrappers; the installers keep accepting that# legacy layout for pinned versions.-# - publish-npm: publish the whole chain (the @lmliheng/* plugin packages -> @lmliheng/amsp-# -> @lmliheng/penguin-core -> @lmliheng/penguin-server -> @lmliheng/penguin-cli) to npm at the+# - publish-npm: publish the whole chain (the @adelie/* plugin packages -> @adelie/amsp+# -> @adelie/core -> @adelie/server -> @adelie/cli) to npm at the# tag version.# core serves the penguin-sdk Skill's `npm install`; server ships the built web assets inside# the package (web-dist/, its default web dir falls back to it), so `npm install -g-# @lmliheng/penguin-cli` alone yields a working `penguin` incl. the Web UI (needs Node >= 24).+# @adelie/cli` alone yields a working `penguin` incl. the Web UI (needs Node >= 24).# The publish flow mirrors AgentHub's publish.yml: OIDC trusted publishing (environment: npm +# id-token: write, no token). A Trusted Publisher can only be configured in the settings page of a# package that ALREADY EXISTS on the registry, so a brand-new package cannot be first-published by@@ -46,8 +46,8 @@name: Release# Fork note (Adelie, 2026-10-05): upstream's release pipeline is dispatch-only here. On a tag push-# it would build the penguin/ one-line-installer bundles and publish @lmliheng/* and-# @lmliheng/penguin-* to npm -- the upstream product, out of our fork. None of that is Adelie's,+# it would build the penguin/ one-line-installer bundles and publish @adelie/* and+# @adelie/* to npm -- the upstream product, out of our fork. None of that is Adelie's,# and an accidental `git push --tags` must not be able to start it. Adelie's own release pipeline is# still to be written (FORK-PROGRESS.md 4.2); until then this file is kept for reference and can# only be run by hand, from the Actions tab.@@ -219,11 +219,11 @@ jobs:# operator adds it. One prefix serves every payload below (native parts per platform).- name: Assemble penguin/ (lib + web + bin + plugins)run: |- pnpm --config.node-linker=hoisted --filter @lmliheng/penguin-cli --prod deploy "$PWD/out/penguin/lib"+ pnpm --config.node-linker=hoisted --filter @adelie/cli --prod deploy "$PWD/out/penguin/lib"cp -r packages/web/dist out/penguin/webinstall -D -m 755 scripts/launchers/penguin out/penguin/bin/penguinnode scripts/build-plugins.mjs --out out/penguin/lib/plugins- test -f out/penguin/lib/plugins/node_modules/@lmliheng/penguin-plugin-sandbox-bwrap/package.json+ test -f out/penguin/lib/plugins/node_modules/@adelie/sandbox-bwrap/package.json# Program payloads: linux runtimes use .tar.xz, darwin .tar.gz (nodejs.org naming);# node/ is only lightly trimmed (drop share/doc and share/man, keep the rest). Payloads@@ -534,7 +534,7 @@ jobs:contents: readenvironment:name: npm- url: https://www.npmjs.com/package/@lmliheng/penguin-cli+ url: https://www.npmjs.com/package/@adelie/clisteps:- uses: actions/checkout@v5with:@@ -623,10 +623,10 @@ jobs:- name: Build and testrun: |pnpm -r build- pnpm --filter @lmliheng/amsp test- pnpm --filter @lmliheng/penguin-core test- pnpm --filter @lmliheng/penguin-server test- pnpm --filter @lmliheng/penguin-cli test+ pnpm --filter @adelie/amsp test+ pnpm --filter @adelie/core test+ pnpm --filter @adelie/server test+ pnpm --filter @adelie/cli test# Copy LICENSE into the package dirs (the files allowlist includes it, so artifacts ship the license)# and the built web assets into the server package (web-dist/, in its files allowlist: an npm install@@ -656,11 +656,11 @@ jobs:donerm -rf packages/server/web-distcp -r packages/web/dist packages/server/web-dist- # The @lmliheng/* plugin packages go first: core declares them as workspace:*+ # The @adelie/* plugin packages go first: core declares them as workspace:*# deps, rewritten to their versions at publish time, so they must exist first.for dir in plugins/*/; do# Read the name and the private flag out of the manifest rather than building a name- # from the directory: plugins/sandbox-* are @lmliheng/penguin-plugin-sandbox-* and+ # from the directory: plugins/sandbox-* are @adelie/sandbox-* and# private, so a derived name queries a package that does not exist and filters to# nothing. Publishing is driven by what each package says it is.name="$(node -p "require('./$dir/package.json').name")"@@ -675,9 +675,9 @@ jobs:fipnpm --filter "$name" publish --access public --no-git-checksdone- # Full names, in dependency order: @lmliheng/amsp is not a penguin-* name, and the+ # Full names, in dependency order: @adelie/amsp is not a penguin-* name, and the# server depends on it, so it goes first.- for name in @lmliheng/amsp @lmliheng/penguin-core @lmliheng/penguin-server @lmliheng/penguin-cli; do+ for name in @adelie/amsp @adelie/core @adelie/server @adelie/cli; doif [ -n "$(npm view "$name@$V" version 2>/dev/null || true)" ]; thenecho "$name@$V already on the registry, skipping."continuediff --git a/Dockerfile b/Dockerfileindex 44fc35d8..76fdd069 100644--- a/Dockerfile+++ b/Dockerfile@@ -132,7 +132,7 @@ RUN set -eux; \ENV ELECTRON_SKIP_BINARY_DOWNLOAD=1# `<pkg>...` selects a package together with its workspace dependencies, so the CLI filter-# pulls core, server and the @lmliheng/* plugin packages in topological order; web is+# pulls core, server and the @adelie/* plugin packages in topological order; web is# named separately because nothing depends on it — its dist is what web/ ships. The rest of# the workspace (desktop, docs, landing) is installed but never built.#@@ -142,8 +142,8 @@ ENV ELECTRON_SKIP_BINARY_DOWNLOAD=1RUN set -eux; \pnpm install --frozen-lockfile; \pnpm --config.verify-deps-before-run=false \- --filter "@lmliheng/penguin-cli..." \- --filter "@lmliheng/penguin-web" \+ --filter "@adelie/cli..." \+ --filter "@adelie/web" \build# The payload layout every release artifact uses, and the one scripts/launchers/penguin@@ -152,7 +152,7 @@ RUN set -eux; \# The hoisted node-linker is part of that recipe — it keeps paths short enough for Windows,# and it is the layout `npm rebuild` walks in the next stage.RUN set -eux; \- pnpm --config.node-linker=hoisted --filter @lmliheng/penguin-cli --prod deploy "$PWD/out/penguin/lib"; \+ pnpm --config.node-linker=hoisted --filter @adelie/cli --prod deploy "$PWD/out/penguin/lib"; \cp -r packages/web/dist out/penguin/web; \mkdir -p /opt/penguin; \mv out/penguin/lib /opt/penguin/lib; \diff --git a/README.md b/README.mdindex a9327752..1b326f6f 100644--- a/README.md+++ b/README.md@@ -169,7 +169,7 @@ The Windows installer is **not code-signed yet**, so SmartScreen shows its warnicurl -fsSL https://github.com/lmliheng/Adelie/releases/latest/download/install.sh | sh# or via npm (any platform, needs Node >= 24 on the machine)-npm install -g @lmliheng/penguin-cli+npm install -g @adelie/cli```Then:@@ -199,7 +199,7 @@ a new instance needs one API key before it can run a Task.> its own installers, its own npm scope and its own update feed; use the ones above.The command name is still `penguin` and the packages still carry the `penguin-` stem (Adelie's own-scope, `@lmliheng/*`); the rename is being done in stages and what is left of it is tracked in+scope, `@adelie/*`); the rename is being done in stages and what is left of it is tracked in[`FORK-PROGRESS.md`](docs/FORK-PROGRESS.md).## Contributingdiff --git a/README.zh.md b/README.zh.mdindex f32d97c3..9c757aa3 100644--- a/README.zh.md+++ b/README.zh.md@@ -148,7 +148,7 @@ Windows 安装包**还没有代码签名**,SmartScreen 会提示一次(「curl -fsSL https://github.com/lmliheng/Adelie/releases/latest/download/install.sh | sh# 或者走 npm(任意平台,机器上要有 Node >= 24)-npm install -g @lmliheng/penguin-cli+npm install -g @adelie/cli```装好之后:@@ -175,7 +175,7 @@ penguin update --yes> <https://penguin.ooo/download> 上的桌面安装包 —— 装出来的是 **PenguinHarness**,不是 Adelie。> Adelie 有自己的安装包、自己的 npm scope 和自己的更新链路,用上面这些。-命令名还是 `penguin`,包的词干也还留着 `penguin-`(scope 是 Adelie 自己的 `@lmliheng/*`);改名是+命令名还是 `penguin`,包的词干也还留着 `penguin-`(scope 是 Adelie 自己的 `@adelie/*`);改名是分期做的,还没做完的部分记在 [`FORK-PROGRESS.md`](docs/FORK-PROGRESS.md)。## 参与开发diff --git a/THIRD-PARTY-NOTICES.md b/THIRD-PARTY-NOTICES.mdindex 39316b25..74379f09 100644--- a/THIRD-PARTY-NOTICES.md+++ b/THIRD-PARTY-NOTICES.md@@ -10,7 +10,7 @@ programs below are downloaded by the release workflow (`.github/workflows/releasalongside the application inside the release archives. The fonts are part of the built web assets:the build takes the MiSans files from this repository and copies every other font out of an npmdependency. The web assets ship wherever the Web App does, and that includes npm:-`@lmliheng/penguin-cli` depends on `@lmliheng/penguin-server`, whose package carries them as+`@adelie/cli` depends on `@adelie/server`, whose package carries them as`web-dist/`. Installing from npm therefore bundles the fonts, but none of those programs.What earns an entry is a third-party work redistributed **as its own file**, or third-party code@@ -307,7 +307,7 @@ Email: [email protected]## GenericAgent — the built-in browser's page scriptsAdapted into this repository's source, so present wherever the server ships: every release archive,-the desktop application, and the `@lmliheng/penguin-server` npm package.+the desktop application, and the `@adelie/server` npm package.The built-in browser's page scripts under `packages/server/src/builtin-browser/page-scripts/` (theDOM simplification that `penguin browser scan` returns, and the change monitor behinddiff --git a/changelog/unreleased/2026-10-08-sandbox-dsh-windows-shell.md b/changelog/unreleased/2026-10-08-sandbox-dsh-windows-shell.mdindex d82631c6..e7817039 100644--- a/changelog/unreleased/2026-10-08-sandbox-dsh-windows-shell.md+++ b/changelog/unreleased/2026-10-08-sandbox-dsh-windows-shell.md@@ -16,7 +16,7 @@ commit `c03e58c4`), which the fork did not carry.the fix: `ADELIE_SHELL=pwsh`, or `ADELIE_SHELL=powershell` on a host without PowerShell 7, thenrestart the harness. The backend is reported unavailable with that reason, so the confining tiershows as unavailable instead of offering a tier that refuses every command. `sessionShell` is now- exported from `@lmliheng/penguin-core/plugin` for this check; on a runtime whose core lacks it, the+ exported from `@adelie/core/plugin` for this check; on a runtime whose core lacks it, thebackend loads as before.- A confined command whose program is bash or sh is still refused on Windows before the runner isinvolved. When the program is the session shell, the error names the same fix; when it is not (adiff --git a/changelog/unreleased/2026-10-08-sandbox-dsh-windows-shell.zh.md b/changelog/unreleased/2026-10-08-sandbox-dsh-windows-shell.zh.mdindex aeb969af..c134f5c6 100644--- a/changelog/unreleased/2026-10-08-sandbox-dsh-windows-shell.zh.md+++ b/changelog/unreleased/2026-10-08-sandbox-dsh-windows-shell.zh.md@@ -14,7 +14,7 @@ fail-closed 失败,但报的是 runner 自己的错误 —— 提到的是 WSL- Windows 上会话 shell 是 bash 或 sh 时,DSH 后端现在加载即失败,原因写明解决办法:设`ADELIE_SHELL=pwsh`;主机没有 PowerShell 7 时设 `ADELIE_SHELL=powershell`;然后重启。该后端带着这条原因被报为不可用,封禁档位显示为「不可用」,而不是可选、选中后每条命令被拒。为此- `sessionShell` 现经 `@lmliheng/penguin-core/plugin` 导出;宿主的 core 没有这个导出时(较旧的+ `sessionShell` 现经 `@adelie/core/plugin` 导出;宿主的 core 没有这个导出时(较旧的运行时),后端照常加载。- 程序名是 bash 或 sh 的受约束命令,在 Windows 上仍在交给 runner 之前被拒:它就是会话 shell 时,错误写的是同一条改法;不是会话 shell 时(以 bash 启动的 stdio MCP Server),错误只写明 runner 起不了diff --git a/changelog/unreleased/2026-10-09-sandbox-landlock-floor.md b/changelog/unreleased/2026-10-09-sandbox-landlock-floor.mdindex d9f35447..1c194294 100644--- a/changelog/unreleased/2026-10-09-sandbox-landlock-floor.md+++ b/changelog/unreleased/2026-10-09-sandbox-landlock-floor.md@@ -6,7 +6,7 @@[中文版](2026-10-09-sandbox-landlock-floor.zh.md)-Turning the sandbox on in Linux offered `@lmliheng/penguin-plugin-sandbox-bwrap` alone, and on Ubuntu 23.10 and later — where unprivileged user namespaces are granted only to AppArmor-profiled programs — bubblewrap was refused on every install but the desktop `.deb`, so every confining mode refused every command until someone did a root step. The card now installs `@lmliheng/penguin-plugin-sandbox-dsh` beside it. Where bubblewrap is refused, the DSH adaptor confines file writes through Landlock, which needs no namespace and no root; every built-in preset leaves the network open, so all of them are enforced with no host step.+Turning the sandbox on in Linux offered `@adelie/sandbox-bwrap` alone, and on Ubuntu 23.10 and later — where unprivileged user namespaces are granted only to AppArmor-profiled programs — bubblewrap was refused on every install but the desktop `.deb`, so every confining mode refused every command until someone did a root step. The card now installs `@adelie/sandbox-dsh` beside it. Where bubblewrap is refused, the DSH adaptor confines file writes through Landlock, which needs no namespace and no root; every built-in preset leaves the network open, so all of them are enforced with no host step.This is ported from upstream PenguinHarness (#978, commit `234183f5`).@@ -17,7 +17,7 @@ This is ported from upstream PenguinHarness (#978, commit `234183f5`).## The Sandbox card-- The sandbox entry's `backend.recommended` became a list: `@lmliheng/penguin-plugin-sandbox-bwrap` and `@lmliheng/penguin-plugin-sandbox-dsh` on Linux, one package on macOS and Windows. Turning the switch on with no backend installed offers the whole list and installs it in order; when one install fails, the prompt closes, the failure is reported, and the card is read again. The Web App still reads the single string an older server reports (see [backward compatibility](2026-10-09-sandbox-recommended-backward-compatibility.md)).+- The sandbox entry's `backend.recommended` became a list: `@adelie/sandbox-bwrap` and `@adelie/sandbox-dsh` on Linux, one package on macOS and Windows. Turning the switch on with no backend installed offers the whole list and installs it in order; when one install fails, the prompt closes, the failure is reported, and the card is read again. The Web App still reads the single string an older server reports (see [backward compatibility](2026-10-09-sandbox-recommended-backward-compatibility.md)).- The card's "Backends:" line was replaced by what the machine enforces and by what, for example `Enforced here: file writes, by Landlock (dsh-local). Not enforced here: network isolation, localhost-only network, masked paths and closing the temporary directory.` It names each backend that adds a dimension the ones before it lack. A collapsed **More info** under that line lists what the serving backends leave open on this host, then each installed backend that is not in use, with its reason and the note that saving the card checks it again. A settings notice may carry `details` / `detailsZh` for this.- A sandbox provider may declare `limits` (core's `SandboxProvider`), each with English and Chinese text. The DSH adaptor declares that the Session scratchpad is not writable under Workspace Write on any rung. On Landlock it adds that the temporary directory is the host's shared `/tmp`, and on a kernel older than Landlock ABI 5 it explains `(partial)`: ioctl on device files outside the Workspace is not restricted, nor, below ABI 3, is truncating a file.- With a backend serving and none isolating the network, No network is greyed out in the presets table, naming the backend in use, and a save choosing it is refused, like Localhost only.@@ -29,7 +29,7 @@ This is ported from upstream PenguinHarness (#978, commit `234183f5`).- The DSH adaptor selects its rung when it loads. On Linux this runs the chain's probes, so a host where neither bubblewrap nor Landlock works fails the load with DSH's reason instead of mounting a backend that refuses every command. macOS and Windows have one rung each, which DSH selects without probing.- On a kernel older than Landlock ABI 5 (Ubuntu 24.04's 6.8 has ABI 4), the Landlock launcher prints `landlock-run: partial enforcement (older Landlock ABI)` on every run. The spawn now drops the lines a backend reports as informational (core's `ConfinedSpawn.runnerLines`) from the head of a command's or hook script's stderr. Later lines are not examined.-- `@lmliheng/penguin-plugin-sandbox-dsh`, `sandbox-bwrap`, `sandbox-seatbelt` and `sandbox-wsl` are 0.2.3. A machine whose build does not ship them (an npm global install) installs them with npm into `<data root>/plugins/`, and npm publishes each version once: at an unchanged 0.2.2, a machine already holding 0.2.2 there would keep running it, without the `closed-temp` declarations.+- `@adelie/sandbox-dsh`, `sandbox-bwrap`, `sandbox-seatbelt` and `sandbox-wsl` are 0.2.3. A machine whose build does not ship them (an npm global install) installs them with npm into `<data root>/plugins/`, and npm publishes each version once: at an unchanged 0.2.2, a machine already holding 0.2.2 there would keep running it, without the `closed-temp` declarations.- bubblewrap's refusal carries what bwrap said (`setting up uid map: Permission denied`, or the spawn error), and states that the Ubuntu root step is optional and adds network isolation and masked paths.## The composerdiff --git a/changelog/unreleased/2026-10-09-sandbox-landlock-floor.zh.md b/changelog/unreleased/2026-10-09-sandbox-landlock-floor.zh.mdindex ea1fe982..aee2170c 100644--- a/changelog/unreleased/2026-10-09-sandbox-landlock-floor.zh.md+++ b/changelog/unreleased/2026-10-09-sandbox-landlock-floor.zh.md@@ -6,7 +6,7 @@[English](2026-10-09-sandbox-landlock-floor.md)-此前在 Linux 上打开沙盒只会提示安装 `@lmliheng/penguin-plugin-sandbox-bwrap`。Ubuntu 23.10 及以后的版本只把非特权 user namespace 交给带有 AppArmor profile 的程序,除桌面 `.deb` 外的每种安装上 bubblewrap 都被拒绝,于是在有人完成 root 操作之前,每种封禁模式都会拒绝每条命令。现在卡片会在它旁边一并安装 `@lmliheng/penguin-plugin-sandbox-dsh`。bubblewrap 被拒绝时,DSH 适配器通过 Landlock 约束文件写入,既不需要 namespace,也不需要 root;内置预设都不限制网络,因此无需任何主机操作,全部可以实施。+此前在 Linux 上打开沙盒只会提示安装 `@adelie/sandbox-bwrap`。Ubuntu 23.10 及以后的版本只把非特权 user namespace 交给带有 AppArmor profile 的程序,除桌面 `.deb` 外的每种安装上 bubblewrap 都被拒绝,于是在有人完成 root 操作之前,每种封禁模式都会拒绝每条命令。现在卡片会在它旁边一并安装 `@adelie/sandbox-dsh`。bubblewrap 被拒绝时,DSH 适配器通过 Landlock 约束文件写入,既不需要 namespace,也不需要 root;内置预设都不限制网络,因此无需任何主机操作,全部可以实施。本移植自上游 PenguinHarness(#978,提交 `234183f5`)。@@ -17,7 +17,7 @@## 沙盒卡片-- 沙盒条目的 `backend.recommended` 改为列表:Linux 上是 `@lmliheng/penguin-plugin-sandbox-bwrap` 与 `@lmliheng/penguin-plugin-sandbox-dsh`,macOS 与 Windows 各一个包。没有安装后端时打开开关,会提示安装整个列表,并依次安装;其中一个安装失败时,提示框关闭,报告失败,并重新读取卡片。Web App 仍能读取较旧服务端报告的单个字符串(见[向后兼容](2026-10-09-sandbox-recommended-backward-compatibility.zh.md))。+- 沙盒条目的 `backend.recommended` 改为列表:Linux 上是 `@adelie/sandbox-bwrap` 与 `@adelie/sandbox-dsh`,macOS 与 Windows 各一个包。没有安装后端时打开开关,会提示安装整个列表,并依次安装;其中一个安装失败时,提示框关闭,报告失败,并重新读取卡片。Web App 仍能读取较旧服务端报告的单个字符串(见[向后兼容](2026-10-09-sandbox-recommended-backward-compatibility.zh.md))。- 卡片的「Backends:」一行改为写明本机实施什么、由什么实施,例如 `本机实施:文件写入,由 Landlock (dsh-local) 实施。本机不实施:网络隔离、仅本机网络、屏蔽路径、关闭临时目录。`它列出每个补上了前面后端所缺维度的后端。这一行下方折叠的**更多信息**先列出在用后端在本机留下的缺口,再列出每个已安装但未启用的后端,附原因,并说明保存卡片会重新检查。设置提示为此可以带 `details` / `detailsZh`。- 沙盒后端可以声明 `limits`(core 的 `SandboxProvider`),每条带中英文。DSH 适配器声明:无论哪一级,仅工作区可写下 Session scratchpad 都不可写。在 Landlock 下还说明临时目录就是宿主共享的 `/tmp`;在 Landlock ABI 低于 5 的内核上解释 `(partial)`:工作区外设备文件上的 ioctl 不受限制,ABI 低于 3 时截断文件也不受限制。- 有后端在用、但没有后端能隔离网络时,预设表里的「无网络」显示为灰色并写明在用的后端,保存时选择它会被拒绝,与「仅本机」一致。@@ -29,7 +29,7 @@- DSH 适配器在加载时选定所用的一级。在 Linux 上这会运行链条的探测,因此在 bubblewrap 与 Landlock 都不可用的主机上,加载会带着 DSH 的原因失败,而不是挂载一个拒绝每条命令的后端。macOS 与 Windows 各只有一级,DSH 不经探测直接选用。- 在 Landlock ABI 低于 5 的内核上(Ubuntu 24.04 的 6.8 为 ABI 4),Landlock 启动器每次运行都会打印 `landlock-run: partial enforcement (older Landlock ABI)`。现在 spawn 会从命令与钩子脚本 stderr 的开头去掉后端报告为提示性的行(core 的 `ConfinedSpawn.runnerLines`),之后的输出不做检查。-- `@lmliheng/penguin-plugin-sandbox-dsh`、`sandbox-bwrap`、`sandbox-seatbelt` 与 `sandbox-wsl` 升为 0.2.3。构建不随包带它们的机器(npm 全局安装)用 npm 把它们装进 `<数据根>/plugins/`,而 npm 上每个版本只能发布一次:若版本仍是 0.2.2,已在那里装有 0.2.2 的机器会继续运行旧内容,拿不到 `closed-temp` 声明。+- `@adelie/sandbox-dsh`、`sandbox-bwrap`、`sandbox-seatbelt` 与 `sandbox-wsl` 升为 0.2.3。构建不随包带它们的机器(npm 全局安装)用 npm 把它们装进 `<数据根>/plugins/`,而 npm 上每个版本只能发布一次:若版本仍是 0.2.2,已在那里装有 0.2.2 的机器会继续运行旧内容,拿不到 `closed-temp` 声明。- bubblewrap 的拒绝原因带上 bwrap 的输出(`setting up uid map: Permission denied`,或启动错误),并说明 Ubuntu 上的 root 操作是可选的,只增加网络隔离与屏蔽路径。## 输入框diff --git a/changelog/unreleased/2026-10-09-sandbox-named-presets.md b/changelog/unreleased/2026-10-09-sandbox-named-presets.mdindex 8e6ebdd7..5b420c2b 100644--- a/changelog/unreleased/2026-10-09-sandbox-named-presets.md+++ b/changelog/unreleased/2026-10-09-sandbox-named-presets.md@@ -59,8 +59,8 @@ This is ported from upstream PenguinHarness (#975, commit `9b170c61`).- **The temp directory and masked paths moved into an Advanced fold**, collapsed by default,under the switch and the presets table.- **Turning the switch on offers to install a sandbox backend** when the machine has none for- its OS: `@lmliheng/penguin-plugin-sandbox-bwrap` on Linux, `@lmliheng/penguin-plugin-sandbox-seatbelt` on- macOS, `@lmliheng/penguin-plugin-sandbox-wsl` on Windows. The dialog wears a download mark. The+ its OS: `@adelie/sandbox-bwrap` on Linux, `@adelie/sandbox-seatbelt` on+ macOS, `@adelie/sandbox-wsl` on Windows. The dialog wears a download mark. Thechoices are Install and Not now, with"Don't ask again", which this browser remembers per machine. Installing goes through thePlugins page's install, into the current Project for that machine; the switch stays ondiff --git a/changelog/unreleased/2026-10-09-sandbox-named-presets.zh.md b/changelog/unreleased/2026-10-09-sandbox-named-presets.zh.mdindex 13b43440..c8fddfbd 100644--- a/changelog/unreleased/2026-10-09-sandbox-named-presets.zh.md+++ b/changelog/unreleased/2026-10-09-sandbox-named-presets.zh.md@@ -15,7 +15,7 @@- **新会话从默认预设开始。** 表中一行为默认,未改动时为 Workspace Write。开关打开时,新会话与输入框草稿取该行的文件模式、网络与审批方式;默认行不做任何封禁时(Full Access),新会话不进入沙盒。改动默认只影响此后新建的会话。卡片不再有单独的封禁模式与网络字段;默认预设出现之前存下的设置,在管理员设定默认行之前继续按其封禁模式与网络执行。卡片把起点与之完全相同的那一行标为默认;没有这样的行时不标任何一行,并以一条提示写明实际生效的值(见[向后兼容](2026-10-09-sandbox-switch-backward-compatibility.zh.md))。- **沙盒卡片顶部有「启用」开关。** 它决定新建会话是否进入沙盒;已有会话保留自己的策略。关闭时,新会话拥有完全的文件与网络访问,只受审批模式约束,输入框的权限菜单改为列出四种审批模式而不是预设;在这里选择只改会话(或草稿)的审批模式,不动其沙盒策略。关闭期间预设与默认都保留,重新打开后照旧生效。全新安装默认关闭。开关出现之前保存的设置,只要有任何封禁(封禁模式不是「关闭」、网络不是完全开放,或设置了屏蔽路径)即视为打开,见[向后兼容](2026-10-09-sandbox-switch-backward-compatibility.zh.md)。开关关闭时,卡片只显示这个开关:没有预设表、高级选项、提示,也没有后端自身的设置。- **临时目录与屏蔽路径移入「高级选项」折叠区**,默认折叠,位于开关与预设表之下。-- **打开开关时,若本机没有适用于其操作系统的沙盒后端,会询问是否安装**:Linux 为 `@lmliheng/penguin-plugin-sandbox-bwrap`,macOS 为 `@lmliheng/penguin-plugin-sandbox-seatbelt`,Windows 为 `@lmliheng/penguin-plugin-sandbox-wsl`。对话框带下载标记,选项为「安装」与「暂不」,另有「不再询问」,由本浏览器按机器记住。安装走插件页的同一条安装路径,装到当前项目的该机器上;无论选哪项,开关都保持打开。+- **打开开关时,若本机没有适用于其操作系统的沙盒后端,会询问是否安装**:Linux 为 `@adelie/sandbox-bwrap`,macOS 为 `@adelie/sandbox-seatbelt`,Windows 为 `@adelie/sandbox-wsl`。对话框带下载标记,选项为「安装」与「暂不」,另有「不再询问」,由本浏览器按机器记住。安装走插件页的同一条安装路径,装到当前项目的该机器上;无论选哪项,开关都保持打开。- 设置分组新增 `table` 字段类型:行固定,列可以是 `string`、`boolean` 或 `enum`,单元格可以锁定。只存与声明不同的单元格,被拒的单元格按 `<字段>.<行>.<列>` 点名。`unavailable` 可以指向表的某一列。表格可以声明 `rowChoice`:单选一行,存入同组中选项为各行 id 的 `enum` 字段,画作被选行名称后带括号的标题,在该行的「…」菜单里选定;`pin`:把一个布尔列画成图钉按钮,每种状态各有提示;`columnGroup`:相邻几列上方的分组标题;以及 `extensible`:可新增行(只有新增的行可删除)并调整所有行的顺序,以 `"$added"` 与 `"$order"` 增量存储。单选列可以指向新增的行,也可以不指向任何行;保存后若它指向表里已不存在的行,保存会被拒绝。列、行与 `enum` 选项可带 `description`(行及其选项的说明就是该行的「?」),字段可带格式提示 `hint`(`hintZh`),显示在字段下方,`description` 则收进「?」。- 设置字段可以标记 `advanced: true`;插件页在每张卡片上都把这类字段收进折叠区。- 沙盒的设置条目新增 `backend`(`installed`、`recommended`);其分组新增 `enabled` 与 `defaultPreset`,去掉 `mode` 与 `network`。配置可以把一个布尔字段声明为 `switch`:它关闭时,页面只画这一个字段。diff --git a/changelog/unreleased/2026-10-09-sandbox-ubuntu-userns.md b/changelog/unreleased/2026-10-09-sandbox-ubuntu-userns.mdindex 52a14d21..17f851f8 100644--- a/changelog/unreleased/2026-10-09-sandbox-ubuntu-userns.md+++ b/changelog/unreleased/2026-10-09-sandbox-ubuntu-userns.md@@ -24,6 +24,6 @@ PenguinHarness (#977, commit `45885985`), which the fork did not carry.switch next to Debian's and points at that section; the backend's README states the requirement.- A new test asserts that the rejection names both switches.-The section is written with Adelie's own names (`@lmliheng/penguin-plugin-sandbox-bwrap`, the+The section is written with Adelie's own names (`@adelie/sandbox-bwrap`, the`~/.adelie` data root and its `ADELIE_HOME`, whose pre-rename name `PENGUIN_HOME` is still read),not upstream's.diff --git a/changelog/unreleased/2026-10-09-sandbox-ubuntu-userns.zh.md b/changelog/unreleased/2026-10-09-sandbox-ubuntu-userns.zh.mdindex 8d657c8f..8027d5c7 100644--- a/changelog/unreleased/2026-10-09-sandbox-ubuntu-userns.zh.md+++ b/changelog/unreleased/2026-10-09-sandbox-ubuntu-userns.zh.md@@ -21,5 +21,5 @@ PenguinHarness 移植(#977,提交 `45885985`),此前本 fork 没有这后端的 README 写明了这项要求。- 新增一条用例,断言拒绝文案同时点名两个开关。-这一节用的是 Adelie 自己的名字(`@lmliheng/penguin-plugin-sandbox-bwrap`、`~/.adelie` 数据根与它+这一节用的是 Adelie 自己的名字(`@adelie/sandbox-bwrap`、`~/.adelie` 数据根与它的 `ADELIE_HOME`,旧名 `PENGUIN_HOME` 仍会读),不是上游的。diff --git a/changelog/unreleased/2026-10-15-offerdao-plugin.md b/changelog/unreleased/2026-10-15-offerdao-plugin.mdindex 070f741a..20a3ba1b 100644--- a/changelog/unreleased/2026-10-15-offerdao-plugin.md+++ b/changelog/unreleased/2026-10-15-offerdao-plugin.md@@ -6,7 +6,7 @@[中文版](2026-10-15-offerdao-plugin.zh.md)-New plugin: **Offer岛** (`@lmliheng/use-offerdao`), ported from Offer岛's official skill repository+New plugin: **Offer岛** (`@adelie/use-offerdao`), ported from Offer岛's official skill repository([`offerdaoai/skills`](https://github.com/offerdaoai/skills), MIT, commit `45c2a5d8`).Install it from the plugin library on whichever Agent should have it (it is not preinstalled). Whatdiff --git a/changelog/unreleased/2026-10-15-offerdao-plugin.zh.md b/changelog/unreleased/2026-10-15-offerdao-plugin.zh.mdindex ce424ea1..24a5ad22 100644--- a/changelog/unreleased/2026-10-15-offerdao-plugin.zh.md+++ b/changelog/unreleased/2026-10-15-offerdao-plugin.zh.md@@ -6,7 +6,7 @@[English](2026-10-15-offerdao-plugin.md)-新插件:**Offer岛**(`@lmliheng/use-offerdao`),移植自 Offer岛官方的 skill 仓库+新插件:**Offer岛**(`@adelie/use-offerdao`),移植自 Offer岛官方的 skill 仓库([`offerdaoai/skills`](https://github.com/offerdaoai/skills),MIT,提交 `45c2a5d8`)。在插件库页面上把它装到想用的那个 Agent(它不是预装插件)。它接的是 `https://offerdao.ai` 的开放接口:diff --git a/changelog/unreleased/2026-10-15-wps-office.md b/changelog/unreleased/2026-10-15-wps-office.mdindex 87bf128f..7ce49ec2 100644--- a/changelog/unreleased/2026-10-15-wps-office.md+++ b/changelog/unreleased/2026-10-15-wps-office.md@@ -6,7 +6,7 @@[中文版](2026-10-15-wps-office.zh.md)-New plugin: **WPS** (`@lmliheng/use-wps-office`). It puts an Adelie conversation inside WPS Writer —+New plugin: **WPS** (`@adelie/use-wps-office`). It puts an Adelie conversation inside WPS Writer —a side panel opened from a button in the ribbon — and puts the document that is open on your screenunder the agent's hands: nine operations (summary, read, search, replace, insert, delete, insert abreak, create, reveal) are exposed to a Session as `mcp__wps__*` tools.diff --git a/changelog/unreleased/2026-10-15-wps-office.zh.md b/changelog/unreleased/2026-10-15-wps-office.zh.mdindex 9832f05a..d0be939e 100644--- a/changelog/unreleased/2026-10-15-wps-office.zh.md+++ b/changelog/unreleased/2026-10-15-wps-office.zh.md@@ -6,7 +6,7 @@[English](2026-10-15-wps-office.md)-新插件:**WPS**(`@lmliheng/use-wps-office`)。它把 Adelie 的对话搬进 WPS 文字——功能区点一下开侧栏,+新插件:**WPS**(`@adelie/use-wps-office`)。它把 Adelie 的对话搬进 WPS 文字——功能区点一下开侧栏,再把你屏幕上那份打开的文档交到 Agent 手里:九个操作(读概况、读正文、搜索、替换、插入、删除、插分隔符、新建、定位)以 `mcp__wps__*` 工具的形式交给会话。diff --git a/changelog/unreleased/2026-10-16-agent-api-amsp.md b/changelog/unreleased/2026-10-16-agent-api-amsp.mdindex 28c85ff1..85b78809 100644--- a/changelog/unreleased/2026-10-16-agent-api-amsp.md+++ b/changelog/unreleased/2026-10-16-agent-api-amsp.md@@ -8,7 +8,7 @@Ported from upstream PenguinHarness (#1000, commit `473c9470`).-A Project owner could open one agent to programs outside Adelie. A program sent its input to `POST /api/amsp/v1/agents/:projectId/:agentId/runs`, read the run as it happened as an AMSP event stream, and continued the conversation by its Session id. The runs used the Project's models and credentials, were recorded like any conversation, and appeared in the sidebar's **Background** folder. A new package, `@lmliheng/amsp`, carried the protocol's types and a TypeScript client for Node and browsers.+A Project owner could open one agent to programs outside Adelie. A program sent its input to `POST /api/amsp/v1/agents/:projectId/:agentId/runs`, read the run as it happened as an AMSP event stream, and continued the conversation by its Session id. The runs used the Project's models and credentials, were recorded like any conversation, and appeared in the sidebar's **Background** folder. A new package, `@adelie/amsp`, carried the protocol's types and a TypeScript client for Node and browsers.## The Agent API@@ -32,7 +32,7 @@ A Project owner could open one agent to programs outside Adelie. A program sent## The amsp client-- `@lmliheng/amsp` was a new public package with no runtime dependencies, for Node 24 and browsers. It exported the AMSP wire types, which the server imported, and `AgentClient`.+- `@adelie/amsp` was a new public package with no runtime dependencies, for Node 24 and browsers. It exported the AMSP wire types, which the server imported, and `AgentClient`.- `client.run()` returned a run to iterate for its events, with `session`, `result()` and `abort()`; `client.ask()` returned the result alone. `onApproval` answered approval requests, and without it they were denied. The client also offered `agent()`, `session()`, `abort()` and `approve()`, the `AmspHttpError` and `AmspStreamError` errors, `parseArguments` for a tool call's JSON arguments, `readSse`, the SSE reader, and `RunCollector`, which folded the events a program read itself into the same result.## The Web Appdiff --git a/changelog/unreleased/2026-10-16-agent-api-amsp.zh.md b/changelog/unreleased/2026-10-16-agent-api-amsp.zh.mdindex 49b59559..e14d21fa 100644--- a/changelog/unreleased/2026-10-16-agent-api-amsp.zh.md+++ b/changelog/unreleased/2026-10-16-agent-api-amsp.zh.md@@ -6,7 +6,7 @@[English](2026-10-16-agent-api-amsp.md)-Project 所有者可以把某一个 Agent 开放给 Adelie 之外的程序。程序把输入发到 `POST /api/amsp/v1/agents/:projectId/:agentId/runs`,以 AMSP 事件流实时读取这次运行,再凭 Session id 延续对话。这些运行使用 Project 的模型与凭据,像其他对话一样被记录,并出现在侧边栏的**后台会话**折叠夹中。新增的 `@lmliheng/amsp` 包含该协议的类型和一个可在 Node 与浏览器中使用的 TypeScript 客户端。+Project 所有者可以把某一个 Agent 开放给 Adelie 之外的程序。程序把输入发到 `POST /api/amsp/v1/agents/:projectId/:agentId/runs`,以 AMSP 事件流实时读取这次运行,再凭 Session id 延续对话。这些运行使用 Project 的模型与凭据,像其他对话一样被记录,并出现在侧边栏的**后台会话**折叠夹中。新增的 `@adelie/amsp` 包含该协议的类型和一个可在 Node 与浏览器中使用的 TypeScript 客户端。## Agent API@@ -30,7 +30,7 @@ Project 所有者可以把某一个 Agent 开放给 Adelie 之外的程序。程## amsp 客户端-- `@lmliheng/amsp` 是新的公开包,没有运行时依赖,适用于 Node 24 和浏览器。它导出 AMSP 的传输类型(服务器也引用这些类型)和 `AgentClient`。+- `@adelie/amsp` 是新的公开包,没有运行时依赖,适用于 Node 24 和浏览器。它导出 AMSP 的传输类型(服务器也引用这些类型)和 `AgentClient`。- `client.run()` 返回一个可迭代取得事件的运行,带有 `session`、`result()` 和 `abort()`;`client.ask()` 只返回结果。`onApproval` 回答审批请求,没有它时一律拒绝。客户端还提供 `agent()`、`session()`、`abort()` 和 `approve()`,`AmspHttpError` 与 `AmspStreamError` 两种错误,解析工具调用 JSON 参数的 `parseArguments`、SSE 读取器 `readSse`,以及把程序自行读取的事件归并为同样结果的 `RunCollector`。## Web Appdiff --git a/changelog/unreleased/2026-10-16-skills-sdk-or-api.md b/changelog/unreleased/2026-10-16-skills-sdk-or-api.mdindex 257455f9..f5c2cc79 100644--- a/changelog/unreleased/2026-10-16-skills-sdk-or-api.md+++ b/changelog/unreleased/2026-10-16-skills-sdk-or-api.md@@ -8,7 +8,7 @@Ported from upstream PenguinHarness (commit `473c9470`).-A program reaches an agent in one of two ways: embedded with the SDK, `@lmliheng/penguin-core`, which runs the basic agent loop without the server, or through the server's Agent API over AMSP, with the `@lmliheng/amsp` client or curl. The skills that build agent applications and create agents described both ways and asked the user which one before building. The `agent-development` and `agent-tuning` plugins moved to `2026.10.16.1`.+A program reaches an agent in one of two ways: embedded with the SDK, `@adelie/core`, which runs the basic agent loop without the server, or through the server's Agent API over AMSP, with the `@adelie/amsp` client or curl. The skills that build agent applications and create agents described both ways and asked the user which one before building. The `agent-development` and `agent-tuning` plugins moved to `2026.10.16.1`.## Detailsdiff --git a/changelog/unreleased/2026-10-16-skills-sdk-or-api.zh.md b/changelog/unreleased/2026-10-16-skills-sdk-or-api.zh.mdindex f1d7ea68..01a2b343 100644--- a/changelog/unreleased/2026-10-16-skills-sdk-or-api.zh.md+++ b/changelog/unreleased/2026-10-16-skills-sdk-or-api.zh.md@@ -8,7 +8,7 @@移植自上游 PenguinHarness(提交 `473c9470`)。-程序接入 Agent 有两种方式:一是用 SDK `@lmliheng/penguin-core` 内嵌,完全脱离服务器,只提供最基础的 Agent 循环;二是经服务器的 Agent API,按 AMSP 协议,用 `@lmliheng/amsp` 客户端或 curl 调用。负责构建 Agent 应用与创建 Agent 的 Skill 写明了这两种方式,并在动手之前先问用户选哪一种。`agent-development` 与 `agent-tuning` 插件升到 `2026.10.16.1`。+程序接入 Agent 有两种方式:一是用 SDK `@adelie/core` 内嵌,完全脱离服务器,只提供最基础的 Agent 循环;二是经服务器的 Agent API,按 AMSP 协议,用 `@adelie/amsp` 客户端或 curl 调用。负责构建 Agent 应用与创建 Agent 的 Skill 写明了这两种方式,并在动手之前先问用户选哪一种。`agent-development` 与 `agent-tuning` 插件升到 `2026.10.16.1`。## 细节diff --git a/changelog/unreleased/2026-10-17-list-row-actions-visible.md b/changelog/unreleased/2026-10-17-list-row-actions-visible.mdindex 0fb1a23f..68db4eb0 100644--- a/changelog/unreleased/2026-10-17-list-row-actions-visible.md+++ b/changelog/unreleased/2026-10-17-list-row-actions-visible.md@@ -16,7 +16,7 @@ In Agent settings → Memory, upstream found that one memory with a long descrip- `ListRow` no longer asks its container for its text's width: title and description sit in a one-column `minmax(0, 1fr)` grid, so a row's narrowest width is its mark, date and actions, whatever container it is in. Title and description still truncate to one line each and show whole on hover.- The meta and the actions keep their width and take a line of their own once they no longer fit beside the text (`flex-wrap` on the row, `basis-40` on the text, and one wrapping, right-aligned group holding the date and the actions). That layout came with `#1133`; #1157's own gallery check measures it at the largest text size, where three action buttons in a 220 px card are otherwise clipped.- `ListRow` puts at most 1,000 characters of a string title or description on the page, ending in an ellipsis, and carries the whole string in the line's hover hint, so a description of any length costs a row the layout of a thousand characters at most.-- The component library's data board gained a section of memory rows with very long text, and the gallery a Playwright check (`pnpm --filter @lmliheng/penguin-ui-gallery test:e2e`) that measures every row and action against its card in each theme and language at the board's width and narrowed to 360, 280 and 220 px. The gallery keeps that spec out of vitest by scoping vitest to `test/**/*.test.ts`.+- The component library's data board gained a section of memory rows with very long text, and the gallery a Playwright check (`pnpm --filter @adelie/ui-gallery test:e2e`) that measures every row and action against its card in each theme and language at the board's width and narrowed to 360, 280 and 220 px. The gallery keeps that spec out of vitest by scoping vitest to `test/**/*.test.ts`.- Two assertions in `test/list-row.test.ts` follow the row's new markup: its own class string, and the date and the actions sitting in their own group outside the opening button.## Differences in this forkdiff --git a/changelog/unreleased/2026-10-17-list-row-actions-visible.zh.md b/changelog/unreleased/2026-10-17-list-row-actions-visible.zh.mdindex 493b9939..002b8d81 100644--- a/changelog/unreleased/2026-10-17-list-row-actions-visible.zh.md+++ b/changelog/unreleased/2026-10-17-list-row-actions-visible.zh.md@@ -16,7 +16,7 @@- `ListRow` 不再按文字宽度向容器要空间:标题与说明放在单列 `minmax(0, 1fr)` 网格里,因此一行最窄只需容下标志、日期与操作,不论放在什么容器中。标题与说明仍各截成一行、悬停显示全文。- 日期与操作保持原有宽度,放不下时整组换到文字下方(行上 `flex-wrap`、文字上 `basis-40`,日期与操作收进一个可换行、右对齐的组)。这段布局来自 `#1133`;#1157 自带的 gallery 检查正是在最大字号下量它 —— 少了它,220 px 宽的卡片会把三个操作按钮裁掉。- `ListRow` 对字符串形式的标题或说明最多只放 1,000 个字符到页面上,末尾加省略号,完整文字放进该行的悬停提示;说明再长,一行的排版开销也至多相当于一千个字符。-- 组件库的数据看板新增一组带超长文字的记忆行;gallery 新增 Playwright 检查(`pnpm --filter @lmliheng/penguin-ui-gallery test:e2e`),在每个主题与语言下、于看板原宽及收窄到 360 / 280 / 220 px 时,逐一量出每行与每个操作是否都在卡片之内。该 spec 不归 vitest:gallery 的 vitest 收窄到 `test/**/*.test.ts`。+- 组件库的数据看板新增一组带超长文字的记忆行;gallery 新增 Playwright 检查(`pnpm --filter @adelie/ui-gallery test:e2e`),在每个主题与语言下、于看板原宽及收窄到 360 / 280 / 220 px 时,逐一量出每行与每个操作是否都在卡片之内。该 spec 不归 vitest:gallery 的 vitest 收窄到 `test/**/*.test.ts`。- `test/list-row.test.ts` 里两条既有断言跟着新的标记走:行自己的类名字符串、以及日期与操作位于那个组里、仍在开合按钮之外。## 本 fork 的差异diff --git a/changelog/unreleased/2026-10-17-packages-adelie-scope.md b/changelog/unreleased/2026-10-17-packages-adelie-scope.mdnew file mode 100644index 00000000..49ba3651--- /dev/null+++ b/changelog/unreleased/2026-10-17-packages-adelie-scope.md@@ -0,0 +1,37 @@+# Every package this repository publishes moved to the `@adelie` scope++- **Date:** 2026-10-17+- **Type:** refactor+- **Scope:** `core`, `server`, `cli`, `plugins`, `tooling`+- **Breaking:** yes — every published package name changed (see Compatibility)++[中文版](2026-10-17-packages-adelie-scope.zh.md)++The repository's own packages carry `@adelie/` names. The three host packages are `@adelie/core`,+`@adelie/server` and `@adelie/cli`. The packages under `packages/` dropped the `penguin-` prefix —+`@adelie/ui`, `@adelie/web`, `@adelie/ui-gallery`, `@adelie/hmr`, `@adelie/desktop`, `@adelie/docs`.+The twenty plugins kept their names in the new scope (`@adelie/agent-company`, `@adelie/goal`,+`@adelie/use-wps-office`, …) and the four sandbox adapters became `@adelie/sandbox-bwrap`,+`@adelie/sandbox-dsh`, `@adelie/sandbox-seatbelt` and `@adelie/sandbox-wsl`.+`@adelie/amsp` kept the name it was given.++The scope is compiled in, not only written in manifests: `PLUGIN_PKG_PREFIX` in core,+`PLUGIN_SCOPE` in the server, the filter that collects the plugin packages in the desktop packer,+and the check in `penguin update` that recognises a pnpm global install all read `@adelie/` now,+each with the test that pinned it. The generated `ifaces.json` of the server and of the four+sandbox adapters name the new packages, as do the installer scripts, the Dockerfile and the docs.++## Compatibility++Every dependency on a package this repository publishes changes with it: `@lmliheng/penguin-core`+becomes `@adelie/core`, `@lmliheng/penguin-server` becomes `@adelie/server`, and+`@lmliheng/penguin-cli` becomes `@adelie/cli`. Install the CLI as `npm install -g @adelie/cli`;+the command it puts on `PATH` is still `penguin`. A Project that names a plugin in its `[plugins]`+table writes the new name (`@adelie/requirements-box`).++The names the earlier releases used stay on the registry untouched, so an existing installation+keeps resolving what it already pinned; the release that publishes these names deprecates them in+favour of the new ones.++Nothing else was renamed: the `penguin` and `penguin-hmr` commands, the `PENGUIN_*` environment+variables and the repository at `github.com/lmliheng/Adelie` keep the names they had.diff --git a/changelog/unreleased/2026-10-17-packages-adelie-scope.zh.md b/changelog/unreleased/2026-10-17-packages-adelie-scope.zh.mdnew file mode 100644index 00000000..27b784e9--- /dev/null+++ b/changelog/unreleased/2026-10-17-packages-adelie-scope.zh.md@@ -0,0 +1,33 @@+# 仓库自己发布的包全部迁到 `@adelie` 作用域++- **Date:** 2026-10-17+- **Type:** refactor+- **Scope:** `core`, `server`, `cli`, `plugins`, `tooling`+- **Breaking:** yes — 每个对外包的名字都变了(见「兼容」)++[English](2026-10-17-packages-adelie-scope.md)++仓库自己的包现在都带 `@adelie/` 前缀。三个宿主包是 `@adelie/core`、`@adelie/server`、+`@adelie/cli`;`packages/` 下的包去掉 `penguin-` 前缀,成为 `@adelie/ui`、`@adelie/web`、+`@adelie/ui-gallery`、`@adelie/hmr`、`@adelie/desktop`、`@adelie/docs`;二十个插件保留原名换作用域+(`@adelie/agent-company`、`@adelie/goal`、`@adelie/use-wps-office` 等),四个沙盒适配器成为+`@adelie/sandbox-bwrap`、`@adelie/sandbox-dsh`、`@adelie/sandbox-seatbelt`、`@adelie/sandbox-wsl`。+`@adelie/amsp` 保持它已有的名字。++作用域不只在清单里,也编进了代码:core 的 `PLUGIN_PKG_PREFIX`、服务端的 `PLUGIN_SCOPE`、+桌面打包器收集插件包用的过滤条件,以及 `penguin update` 里识别 pnpm 全局安装的那处判断,+现在都读 `@adelie/`,各自那条把它钉住的测试也一并改了。服务端与四个沙盒适配器的 `ifaces.json`+(生成文件)、安装脚本、Dockerfile 与文档里的包名同样跟着改。++## 兼容++依赖仓库自己发布的包的地方要一起改:`@lmliheng/penguin-core` 变 `@adelie/core`,+`@lmliheng/penguin-server` 变 `@adelie/server`,`@lmliheng/penguin-cli` 变 `@adelie/cli`。+命令行改用 `npm install -g @adelie/cli` 安装,它放进 `PATH` 的命令仍是 `penguin`。+Project 的 `[plugins]` 表里写的插件名也要换成新的(如 `@adelie/requirements-box`)。++旧版本用过的名字在注册表上原样保留,已经钉住它们的安装继续能解析;发布这版名字的那次发版+会把它们标记为失效,指向新名字。++其余都没改:`penguin` 与 `penguin-hmr` 两个命令、`PENGUIN_*` 环境变量、以及+`github.com/lmliheng/Adelie` 这个仓库,都保持原样。diff --git a/docs/FORK-PROGRESS.md b/docs/FORK-PROGRESS.mdindex 8aeb9932..0610d0de 100644--- a/docs/FORK-PROGRESS.md+++ b/docs/FORK-PROGRESS.md@@ -1525,43 +1525,43 @@ v0.2.2」——它只加台账里 v0.2.2 那一节与两行表格,**跟本轮| 2026-10-08 | 5.3(落地顺序①) | **跨机那一批小修复里能上的一次上掉**(上游 `fix/machine-*` 分支,照改动落、不是合分支):① `7e1dca63` —— 本服务器经 ssh 启动机器的服务端时用 `setsid`(宿主有才用)把它放进自己的会话,连接断掉不会再被 sshd 一起挂死(`nohup` 盖不住:服务端自己起的子进程会重置 SIGHUP),本地化 `PENGUIN_SETSID` → 本仓 2.2b 口径的 `ADELIE_SETSID`;② `a2801c8d` —— 「通往机器的这一跳在浏览器放弃之前作答」:SOCKS 握手期限 20s → 8s、应答之前被关掉的通道立即失败、转发的读 15s 收不到响应头就 `504 machine_not_answering`(写请求不截断),移植落点只有 `machines/proxy.ts` 与 `transport/socks.ts`(上游同时改到的中继层本树没有);两条的中英 changelog 一对。**另外三条 `fix/machine-*` 逐条核过、一条都没上**:`fix/machine-events-redial-a-failed-dial` 与 `-attach-a-machine-connected-later` 要 `event-hub.ts` / `machine-sockets.ts`(本树没有,属上游未进 main 的那条事件流线);`fix/machine-linked-stopped` 与 `fix/machine-adopted-table` 的内容本树早已有(由 `48662c0a`(#448)一并带上),落上去是空操作 | 六包 `typecheck` 全过(`src/ifaces.json unchanged`,187 接口 / 535 类型)· `pnpm lint` **0 警告 0 错误**(2073 文件)· `pnpm format:check` 干净 · 六包 test 全绿:core **1359**/5 跳过(64 文件)· ui **1007**(127)· server **2690**/4 跳过(185 文件,+8 恰是本轮新用例)· cli **506**(34)· web **2963**/2 跳过(241)· hmr 无测试文件,**0 失败** · 新用例逐条点名跑过:`startServerCommand` 两条(含 Linux 上**真起一个进程**、读 `/proc/<pid>/stat` 断言第 6 字段 = 它自己的 sid)、代理三条(504 / 写不截断 / 通道被关立即 502)、SOCKS 三条(关通道、期限、两个期限的大小关系)· 本轮没有界面改动,所以没起服务、没有动任何端口 | 见本行提交 || 2026-10-09 | 5.3(收尾) | **上游 `main` 上仅剩的那条跨机提交落地**(上游 `dd1b931f` `#973` 移植,照改动落、不是合分支):`machines-transport-lane.test.ts` 不再在 Windows 上整文件跳过 —— 它此前只为「桩 `ssh` 是 shell 脚本、Windows 上 `execFile` 跑不了」而 `describe.skip`,而 lane 与平台无关,于是子进程改成 Node 自己(`process.execPath -e "setTimeout(…, 200)"`),建临时目录 / 改 `PATH` 的 `beforeEach` 一并删掉;两条计时断言从写死的 380ms 改成相对值(预热后量一次单跑 `alone`,串行 ≥ `alone+150`、并行 < `alone+180`),慢跑机的冷启动因此把两个界一起挪而不是撞红;`.github/workflows/ci.yml` 的 `test-windows` 注释写明剩下的守卫在 Windows 上**没测到什么**(session 的桩 `ssh` 也是 shell 脚本、真 Windows OpenSSH 客户端没量过;`terminal-stream` 只有真 pty、无头 ConPTY 丢控制台;dsh 的 live 套件见它自己的 `TODO(win32)`),`machines-transport-session.test.ts` 加一行指向它。**不带 changelog**(上游这笔自己写着不带:只有测试与 CI 注释、无用户可见行为) | 六包 `typecheck` 全过(`EXIT=0`,`ifaces.json unchanged` 187 接口 / 535 类型,六个 `Done`)· `pnpm lint` **0 警告 0 错误**(2073 文件)· `pnpm format:check` 干净 · 五包 test 逐包 `EXIT=0` 全绿:core **1359**/5 跳过(65 文件)· ui **1007**(127)· cli **506**(34)· web **2963**/2 跳过(241)· server **185 文件 / 2690 通过 / 4 跳过**,**0 失败**(数目与上一轮逐字一致)· 改到的两个文件点名跑:lane 2 条 + session 8 条 = **10 通过** · lane 文件**连跑 5 次全绿**(1.51–1.54s)· 临时探针 3 轮量出断言用的三个数:`alone` 233/236/238ms、`serial` 478/482/474ms(下限 383/386/388,余量 ~92ms)、`together` 242/239/240ms(上限 413/416/418,余量 ~175ms),跑完即删、`git status` 复核 · `ci.yml` 用仓库自带 `yaml` 解析通过(11 个 job,`test-windows` 五片不变)· **CI 复核(推送后 run `37830376191`,`ce30bc1c`):22 个作业全绿**,`test-windows (server-2)` 的日志里是 `✓ test/machines-transport-lane.test.ts (2 tests)` —— **这个文件在 Windows 上真跑了**(改之前是 `↓ 2 skipped`),`test-windows (server-1)` 的 `↓ machines-transport-session (8 tests | 8 skipped)` 与新写的注释逐字对得上 · 本轮无界面改动,未起服务、未动端口 | `d5ee09f4` || 2026-10-09 | 5.4(Windows 取证) | **DSH 的 live 套件在 Windows 上真跑**(上游 `82498039` `#974` 移植,照改动落、不是合分支):`plugins/sandbox-dsh/test/live.test.ts` 不再在 Windows 上整文件跳过 —— 探针按会话 shell 分成 pwsh / POSIX 两套(`Set-Content` / `Get-Content`、`$ErrorActionPreference = 'Stop'` 加外层 catch),`ADELIE_SHELL=pwsh` 在 adaptor 加载之前设好(core 每进程只解析一次会话 shell),Windows 上先探一次 pwsh、没有就把「会话 shell 不是 PowerShell 7」当开不了的理由交给 `mustRun()`,可用性探针从裸 `true` 改成 `process.execPath`,`DENIED` 补上 .NET 的 `access to the path … is denied`;背景子进程那条断言补上「工作区内的标记文件确实写了」这半边(此前一个从未跑起来的子进程也能蒙混);`ci.yml` 的 Windows `rest` 分片声明 `must_run: sandbox-dsh`、并把 `ADELIE_MUST_RUN` 接到那一步的环境。**不带 changelog**(上游这笔自己也没带:只有测试与 CI、无用户可见行为,与 `dd1b931f` 同一口径)。**本地化**:`PENGUIN_SHELL` → 本仓 2.2b 口径的 `ADELIE_SHELL`、`PENGUIN_MUST_RUN` → `ADELIE_MUST_RUN`、包名 `@prismshadow/` → `@lmliheng/`、临时目录前缀 `penguin-dsh-live-` → `adelie-dsh-live-` | 插件 `typecheck` 过 · `ADELIE_MUST_RUN=sandbox-dsh` 下插件 **15 通过 / 1 跳过**(`live.test.ts` 5 条在本机真跑、含新加的工作区内标记断言;`windows-shells.test.ts` 10 真跑 + 1 条 Windows 专属跳过)· 六包 `typecheck` 全过(`ifaces.json unchanged`,187 接口 / 535 类型)· `pnpm lint` **0 警告 0 错误**(2073 文件)· `pnpm format:check` 干净 · 五包 test 逐包 `EXIT=0`:core **1359**/5 跳过(65 文件)· ui **1007**(127)· cli **506**(34)· web **2963**/2 跳过(241)· server **185 文件 / 2690 通过 / 4 跳过**,**0 失败**(与上一轮逐字一致)· `ci.yml` 用仓库自带 `yaml` 解析通过(11 个 job,只有 windows 的 `rest` 带 `must_run: sandbox-dsh`,ubuntu 与 macOS 那两处原样)· 本轮无界面改动,未起服务、未动端口 · **CI 两跑各 22 个作业全绿**(`37857700478` / `37858509262`):Windows `rest` 的日志里 `plugins/sandbox-dsh ✓ test/live.test.ts (5 tests) 5115ms / 5037ms` —— 这条 live 套件**在 Windows 上真跑**(此前是整文件跳过)、五条用例逐条点名,没声明的 bwrap `7 skipped` / seatbelt `5 skipped` 照旧;第一跑里 `windows-shells.test.ts` 的 `powershell runs confined` 在**第一次**尝试被 vitest 的 5s 默认切掉(重试救回,作业仍绿),故顺手修掉(`72a2e112`:`it.each` 带上 60s 与 spawn 的期限对齐),第二跑同一格首次尝试就过(2828ms) | `b7933f58` `72a2e112` |-| 2026-10-09 | 5.4(Ubuntu userns 那一步) | **Ubuntu 23.10+ 上「怎么让默认 Ubuntu 也能跑 bwrap」这一步成文**(上游 `45885985` `#977` 移植,照改动落、不是合分支;就排在第十八轮已落的 `cba091e3` `#976` 之后):CLI 快速开始(中英双份)新增 **Ubuntu 上的沙盒** 一节 —— 一份要 root 的 AppArmor profile(`/etc/apparmor.d/adelie-sandbox-bwrap`,路径模式 `@{HOME}/.adelie/**/plugins/node_modules/@lmliheng/penguin-plugin-sandbox-bwrap/vendor/linux-*/bin/bwrap` 覆盖随包带 / 下载到数据根 / 热推送三处)、两种替代做法(换 root 拥有的 bwrap,或全机调低开关)与数据根不在 `~/.adelie` 时的做法;`plugins/sandbox-bwrap/src/index.ts` 的拒绝理由在 Debian 的开关旁点名 Ubuntu 的开关并指向这一节(注释补写「为什么这一处要给指针」);插件 README 写明要求;`profile.test.ts` 两条用例(两个开关都点名 / 指针)—— 第二条是本轮新行为,**缺了指针的实现在它上面会红**(实测)。**本地化**:包名 `@penguinharness/sandbox-bwrap` → `@lmliheng/penguin-plugin-sandbox-bwrap`、路径 `~/.penguin` → `~/.adelie`、`PENGUIN_HOME` → `ADELIE_HOME`(旧名仍读)、profile 名 `penguin-sandbox-bwrap` → `adelie-sandbox-bwrap`;**并去掉上游那句「桌面 `.deb` 会装这份 profile」**(本树 `packages/desktop/build/linux/after-install.tpl` 要复制的 `resources/apparmor-profile` 全仓没人产出,见本节末) | 插件 `typecheck` 过 · `pnpm --filter …sandbox-bwrap test` **27 通过**(profile 20 + live 7,`EXIT=0`)· 反向取证:把新加的指针从源码里去掉,`-t` 点名跑那条新用例 **1 失败**(19 跳过),恢复后 27 全绿 · 六包 `typecheck` **`EXIT=0`**(六个 `Done`,`ifaces.json unchanged` 187 接口 / 535 类型)· `pnpm lint` **0 警告 0 错误**(2073 文件)· `pnpm format:check` 干净 · 五包 test 逐包 `EXIT=0`:core **1359**/5 跳过(65 文件)· ui **1007**(127)· cli **506**(34)· web **2963**/2 跳过(241)· server **185 文件 / 2690 通过 / 4 跳过** —— **0 失败**;另跑 `@lmliheng/penguin-docs` **62 通过**(8 文件,本轮改到它的内容)· 文档站本机 `vite`(7471,临时起、看完即关)真开浏览器:中英两版标题分别是 `ubuntu-上的沙盒` / `sandbox-on-ubuntu`(与仓库自己的 `slugifyHeading` 算出来的一致)、节内链接 `/settings#沙盒`、`/settings#sandbox` 指向设置页既有标题、**代码块整段完整**、console 无 error、无 4xx,截图见 scratchpad | `493b9160` |-| 2026-10-09 | 5.4(`#975` 的前置) | **停靠面可以拉到最大,每个停靠面板都是一条注册表定义**(上游 `1eb13325` `#961` 移植,照改动落、不是合分支;24 文件 / +2125 −554):右侧与底部停靠栏都能经头部的**全屏**按钮、或把边界拖过最大值进入全屏 —— 停在对话工具栏之下,右侧停靠栏盖住自己那一行(开着的底部停靠栏仍显示在它下方),底部停靠栏长到工具栏之下;退出用同一枚按钮(原位变**退出全屏**)或把边界拖回。进出随主题的布局动效(`[data-layout-motion]` 因此也涵盖 `top`/`left`),减弱动效时即时;面板从第一帧起按终点尺寸排版,页面不重新排版、面板不重新挂载,退出后滚动位置 / 文件预览 / 编辑器草稿 / 终端画面原样还在。全屏**不记住**:切换对话、隐藏停靠栏、关掉最后一个标签、被它盖住的停靠栏要显示内容时都会结束;底部停靠栏原先仅触屏可用的「放大到整屏」按钮由它取代。**面板改成注册表**:每种面板是 `features/dock/panel-registry.ts` 里的一条 `DockPanelDefinition`(id、名称、图标、排序、是否提供 + 它的变更订阅、主体组件),`PANEL_KINDS` 与各处 per-kind 分支消失,标签条 / **添加面板** / 空停靠栏的选单 / 快捷方式悬浮球都读它,主体经新的 `useDockPanel()` 取本停靠栏的能力;上一轮那两处内联视图(工作区文件、记忆)因此搬进新的 `builtin-dock-panels.tsx`(`chat-page.tsx` 里两个调用点与两条 import 一起删掉),另有新的 `chat-dock-context.tsx` 与 `panel-context.tsx`;ui 新增 `DOCK_FULLSCREEN_Z` 与 `data-fullscreen` 相位。**为什么是这一条**:它是 5.4 里 `9b170c61`(#975)与 `234183f5`(#978)的前置 —— 后两条要改的 `builtin-dock-panels.tsx` / `chat-dock-context.tsx` 由它引入,本树此前没有(第十九轮记过);选它之前 `git apply -3 --check` 实测**一处错误都没有**。**本地化**:三处冲突(`browser-layer.tsx` / `panel-meta.tsx` / `chat-page.tsx`)都在 import 区 —— 包 scope 与本仓两处本地新增,逐条解;新文件里 4 处 `@prismshadow/` → `@lmliheng/`;changelog 按本仓惯例改名到本轮日期、去掉上游 PR 链接、写明移植出处 | 六包 `typecheck` 全过(`ifaces.json unchanged`,187 接口 / 535 类型)· `pnpm lint` **0 警告 0 错误**(2078 文件,+5)· `pnpm format:check` 干净 · 五包 test 逐包 `EXIT=0` 全绿:core **1359**/5 跳过(65 文件)· ui **1007**(127)· cli **506**(34)· web **2976**/2 跳过(**242** 文件,+13 条 = 新的 `panel-registry.test.ts` 与扩写的 `dock-state.test.ts`)· server **185 文件 / 2690 通过 / 4 跳过**,**0 失败**;另跑 `@lmliheng/penguin-docs` **62 通过**(8 文件,本轮改到它的内容)· **界面真跑**(重建 ui + web 后,一次性数据根 `/root/adelie-fork-data/r27-dock`、7494、真浏览器):登录 + 建会话 → 点**右侧栏** → 停靠栏打开并列出注册表里的七个面板(智能体面板 / 终端 / 文件浏览 / 记忆 / 轨迹观测 / 远程控制 / 定时任务)→ 打开**文件浏览** → 点**全屏**:`[data-fullscreen]` 变 `full`、按钮变**退出全屏**、对话列被盖住而工具栏与左侧栏保留 → 点**退出全屏**:回到 `null`、布局复原 → 再开**下侧栏**同样列出选单;**console 0 error / 0 pageerror / 页面无一条 4xx**(仅三条 `net::ERR_ABORTED`,是关浏览器时中断的长连接),截图 6 张在 scratchpad · 本轮没动端口,3003 / 3004 / 4000 / 7364 / 7369 全程没碰 | `e7a0a5a7` |-| 2026-10-09 | 5.4(主块) | **权限菜单给出具名沙箱预设**(上游 `9b170c61` `#975` 移植,照改动落、不是合分支;67 文件 / +6107 −919):权限按钮不再列三段十档,而是列具名预设(完全访问 / 每次询问 / 仅工作区可写 / 只读,管理员另有「更多…」);沙盒卡片有**启用**开关与一张**预设表**(名称 / 文件 / 网络 / 询问模式 / 操作,行内可拖动排序、图钉决定是否进菜单、「…」菜单可设为默认 / 删除,「添加预设」新增行)。服务端:`PluginConfigField` 多 `table` 类型(固定行 + 类型化列、只存与默认不同的单元格、锁定单元格忽略、可声明 `rowChoice` / `pin` / `columnGroup` / `extensible`),字段多 `advanced` / `hint`,分组可声明布尔 `switch`;沙盒分组改成 `enabled` + `presets` + `defaultPreset`(六个内置预设),自己的 `mode` / `network` 去掉;新 `sandbox/settings-policy.ts`(新会话起点 + 旧文档向后兼容)与 `sandbox/settings-status.ts`(后端状态与「本系统默认该装哪个包」);会话视图多 `presets` / `advanced` / `switchOn`。Web 的设置页插件配置面整片重写成表,UI 的 `Dropdown` / `Select` / `ConfirmModal` 跟上。**本树缺的三处前置**(typecheck 逼出来的)已补:`ICONS.star`、`S.settings.pluginAction{Title,Run,Confirm}` 中英各三条、以及上游那笔自带的「执行插件操作前先问一句」(补丁父提交里已有、补丁要改到那几行,故一并落下)。**本地化**:`@prismshadow/penguin-*` → `@lmliheng/penguin-*`;沙盒后端推荐包名 `@penguinharness/sandbox-*` → `@lmliheng/penguin-plugin-sandbox-*`(必须改,否则卡片会去装一个不存在的包);四份上游 changelog 改名到本轮日期、去 PR 行、写明移植出处 | 六包 `typecheck` 全过(`ifaces.json` 187 接口 / 547 类型)· `pnpm lint` **0 警告 0 错误**(2101 文件)· `pnpm format:check` 干净(首跑一条,`prettier --write` 后复检通过)· 五包 test 逐包 `EXIT=0` 全绿:core **1359**/5 跳过(64 文件)· ui **1008**(127)· cli **506**(34)· web **3019**/2 跳过(**247** 文件,+43 = 这笔带来的六个新用例文件与扩写)· server **187 文件 / 2755 通过 / 4 跳过**(+65)—— **0 失败**;另跑 `@lmliheng/penguin-docs` **62 通过**(8 文件,本轮改到它的内容)· **界面真跑**(重建 core/server/web 产物 —— server 的 tsup 默认堆会 OOM,`NODE_OPTIONS=--max-old-space-size=4096` 单跑即过;一次性数据根 `/root/adelie-fork-data/r28-presets`、7496、真浏览器):全新安装开关默认关,权限菜单只有四档审批方式 + 「更多…」→ 「更多…」按设计打开设置对话框的沙盒卡片(只有标题、一条「没有可用后端」提示与开关)→ 点开关弹出**安装后端**对话框,点名的包是 `@lmliheng/penguin-plugin-sandbox-bwrap`(本地化在界面上可见)→ 「暂不」后卡片展开预设表与「添加预设」「高级选项」→ **保存**后刷新重开菜单:变成 **完全访问 / 每次询问 / 仅工作区可写 / 只读**,后两者标「未安装」置灰(本机没有沙盒后端,是设计的诚实标注)→ **console 0 error / 0 pageerror / 无一条 4xx**(脚本打印 `[]`),截图 6 张在 scratchpad · 没用到的端口一律没碰,3003 / 3004 / 4000 / 7364 / 7369 全程没碰 · **CI 两跑**:`37922789257` 红在两个 macOS 作业的**服务端声明构建**(OOM,不是测试)—— 与上游同一提交的红点相同,已按仓库既有的 `run-with-env.mjs` 写法给 tsup 一个 4096MB 的默认堆(`a8347184`),详见本轮「CI」一节 | `2e9d53b6` `a8347184` |-| 2026-10-09 | 5.4(最后一块) | **Linux 沙盒在默认的 Ubuntu 上也能工作 —— 走 Landlock**(上游 `234183f5` `#978` 移植,照改动落、不是合分支;65 文件 / +1523 −258):路由改成「**实现维度最多的后端负责**」(`SandboxService.pick()`,注册顺序只用于打破平局),bubblewrap 加载得到的地方每条策略仍由它负责、DSH 适配器只在它是仅剩的那一个时服务;新增 **`closed-temp`** 维度(bubblewrap / Seatbelt / WSL 声明,DSH 适配器不声明 —— 它每一级都会在仅工作区可写下放开一个临时目录),关闭「临时目录可写」的策略绝不路由给没有它的后端;core 插件契约多出(都可选)`SandboxProvider.mechanism`(谁在实施,如 `bubblewrap` / `Landlock`)、`SandboxProvider.limits`(本机留下的缺口,中英)与 `ConfinedSpawn.runnerLines`(后端自报的提示行从命令与钩子脚本 stderr 的开头去掉,如老 ABI 上的 `landlock-run: partial enforcement`);DSH 适配器**在加载时选定并用 `mechanism` 报出它那一级**,两级都不通的主机因此带着 DSH 的原因加载失败,而不是挂上一个拒绝每条命令的后端;沙盒卡片的后端字段 `backend.recommended` 由**单个字符串改成列表**(Linux 两个包),打开开关时按顺序装整张列表,「Backends:」一行改成 `Enforced here: … / Not enforced here: …` 加一个折叠的 **More info**(列出在用后端的缺口、每个已安装但未启用的后端及其原因),没有能隔离网络的后端时「无网络」与「仅本机」一样置灰;四个沙盒插件包升 **0.2.3**(不升的话已装有 0.2.2 的机器会继续跑旧内容、拿不到 `closed-temp` 声明);Web 那边为「旧服务端只报一个字符串」留了一条向后兼容(`recommendedOf`,带 `TODO(recommended-string-compat)`)。**本地化**:`@penguinharness/sandbox-*` → `@lmliheng/penguin-plugin-sandbox-*`(必须改,否则卡片会去装一个不存在的包)、`@prismshadow/penguin-*` → `@lmliheng/penguin-*`、`~/.penguin` → `~/.adelie`、`PENGUIN_HOME` → `ADELIE_HOME`(保留「旧名仍读」的说明);四份上游 changelog 改名到本轮日期、去掉 PR 行、写明移植出处 | 六包 `typecheck` 全过(`ifaces.json` 187 接口 / 549 类型;core 要**先重建** server 才看得到新契约)· `pnpm lint` **0 警告 0 错误**(2108 文件)· `pnpm format:check` 干净 · 五包 test 逐包 `EXIT=0`:core **1368**/5 跳过(65 文件)· ui **1008**(127)· cli **506**(34)· web **3032**/2 跳过(**248** 文件)· server **189 文件 / 2766 通过 / 4 跳过** —— **0 失败**;另跑 `@lmliheng/penguin-docs` **62**、四个沙箱插件包(bwrap 29 · dsh 21+1 跳过 · seatbelt 17+5 跳过 · wsl 25)全绿 · **界面真跑**(重建 core/server/web 产物 + 一次性数据根 `/root/adelie-fork-data/r29-landlock`、7497、真浏览器):全新安装点开沙盒卡片的开关后弹出的**安装提示点名两个包、顺序与列表一致**(`@lmliheng/penguin-plugin-sandbox-bwrap 和 @lmliheng/penguin-plugin-sandbox-dsh`,文案写明「两者都可用时,使用封禁范围更大的那个」),卡片与预设表排版正常,**console 0 error / 0 pageerror / 无一条 4xx**(脚本打印 `[]`)· **真跑一次 DSH 适配器的加载与约束**:本机(内核 6.1)加载成功、`mechanism` = `Landlock (partial)`,受限命令**在工作区内写成功、在工作区外(`$HOME`)被拒**(`Permission denied`,文件不存在)· 3003 / 3004 / 4000 / 7364 / 7369 与 `/root/penguin-harness` / `/root/Adelie` / `legacy/main` 全程没碰 | `ea92b3ec` |+| 2026-10-09 | 5.4(Ubuntu userns 那一步) | **Ubuntu 23.10+ 上「怎么让默认 Ubuntu 也能跑 bwrap」这一步成文**(上游 `45885985` `#977` 移植,照改动落、不是合分支;就排在第十八轮已落的 `cba091e3` `#976` 之后):CLI 快速开始(中英双份)新增 **Ubuntu 上的沙盒** 一节 —— 一份要 root 的 AppArmor profile(`/etc/apparmor.d/adelie-sandbox-bwrap`,路径模式 `@{HOME}/.adelie/**/plugins/node_modules/@adelie/sandbox-bwrap/vendor/linux-*/bin/bwrap` 覆盖随包带 / 下载到数据根 / 热推送三处)、两种替代做法(换 root 拥有的 bwrap,或全机调低开关)与数据根不在 `~/.adelie` 时的做法;`plugins/sandbox-bwrap/src/index.ts` 的拒绝理由在 Debian 的开关旁点名 Ubuntu 的开关并指向这一节(注释补写「为什么这一处要给指针」);插件 README 写明要求;`profile.test.ts` 两条用例(两个开关都点名 / 指针)—— 第二条是本轮新行为,**缺了指针的实现在它上面会红**(实测)。**本地化**:包名 `@penguinharness/sandbox-bwrap` → `@adelie/sandbox-bwrap`、路径 `~/.penguin` → `~/.adelie`、`PENGUIN_HOME` → `ADELIE_HOME`(旧名仍读)、profile 名 `penguin-sandbox-bwrap` → `adelie-sandbox-bwrap`;**并去掉上游那句「桌面 `.deb` 会装这份 profile」**(本树 `packages/desktop/build/linux/after-install.tpl` 要复制的 `resources/apparmor-profile` 全仓没人产出,见本节末) | 插件 `typecheck` 过 · `pnpm --filter …sandbox-bwrap test` **27 通过**(profile 20 + live 7,`EXIT=0`)· 反向取证:把新加的指针从源码里去掉,`-t` 点名跑那条新用例 **1 失败**(19 跳过),恢复后 27 全绿 · 六包 `typecheck` **`EXIT=0`**(六个 `Done`,`ifaces.json unchanged` 187 接口 / 535 类型)· `pnpm lint` **0 警告 0 错误**(2073 文件)· `pnpm format:check` 干净 · 五包 test 逐包 `EXIT=0`:core **1359**/5 跳过(65 文件)· ui **1007**(127)· cli **506**(34)· web **2963**/2 跳过(241)· server **185 文件 / 2690 通过 / 4 跳过** —— **0 失败**;另跑 `@adelie/docs` **62 通过**(8 文件,本轮改到它的内容)· 文档站本机 `vite`(7471,临时起、看完即关)真开浏览器:中英两版标题分别是 `ubuntu-上的沙盒` / `sandbox-on-ubuntu`(与仓库自己的 `slugifyHeading` 算出来的一致)、节内链接 `/settings#沙盒`、`/settings#sandbox` 指向设置页既有标题、**代码块整段完整**、console 无 error、无 4xx,截图见 scratchpad | `493b9160` |+| 2026-10-09 | 5.4(`#975` 的前置) | **停靠面可以拉到最大,每个停靠面板都是一条注册表定义**(上游 `1eb13325` `#961` 移植,照改动落、不是合分支;24 文件 / +2125 −554):右侧与底部停靠栏都能经头部的**全屏**按钮、或把边界拖过最大值进入全屏 —— 停在对话工具栏之下,右侧停靠栏盖住自己那一行(开着的底部停靠栏仍显示在它下方),底部停靠栏长到工具栏之下;退出用同一枚按钮(原位变**退出全屏**)或把边界拖回。进出随主题的布局动效(`[data-layout-motion]` 因此也涵盖 `top`/`left`),减弱动效时即时;面板从第一帧起按终点尺寸排版,页面不重新排版、面板不重新挂载,退出后滚动位置 / 文件预览 / 编辑器草稿 / 终端画面原样还在。全屏**不记住**:切换对话、隐藏停靠栏、关掉最后一个标签、被它盖住的停靠栏要显示内容时都会结束;底部停靠栏原先仅触屏可用的「放大到整屏」按钮由它取代。**面板改成注册表**:每种面板是 `features/dock/panel-registry.ts` 里的一条 `DockPanelDefinition`(id、名称、图标、排序、是否提供 + 它的变更订阅、主体组件),`PANEL_KINDS` 与各处 per-kind 分支消失,标签条 / **添加面板** / 空停靠栏的选单 / 快捷方式悬浮球都读它,主体经新的 `useDockPanel()` 取本停靠栏的能力;上一轮那两处内联视图(工作区文件、记忆)因此搬进新的 `builtin-dock-panels.tsx`(`chat-page.tsx` 里两个调用点与两条 import 一起删掉),另有新的 `chat-dock-context.tsx` 与 `panel-context.tsx`;ui 新增 `DOCK_FULLSCREEN_Z` 与 `data-fullscreen` 相位。**为什么是这一条**:它是 5.4 里 `9b170c61`(#975)与 `234183f5`(#978)的前置 —— 后两条要改的 `builtin-dock-panels.tsx` / `chat-dock-context.tsx` 由它引入,本树此前没有(第十九轮记过);选它之前 `git apply -3 --check` 实测**一处错误都没有**。**本地化**:三处冲突(`browser-layer.tsx` / `panel-meta.tsx` / `chat-page.tsx`)都在 import 区 —— 包 scope 与本仓两处本地新增,逐条解;新文件里 4 处 `@prismshadow/` → `@lmliheng/`;changelog 按本仓惯例改名到本轮日期、去掉上游 PR 链接、写明移植出处 | 六包 `typecheck` 全过(`ifaces.json unchanged`,187 接口 / 535 类型)· `pnpm lint` **0 警告 0 错误**(2078 文件,+5)· `pnpm format:check` 干净 · 五包 test 逐包 `EXIT=0` 全绿:core **1359**/5 跳过(65 文件)· ui **1007**(127)· cli **506**(34)· web **2976**/2 跳过(**242** 文件,+13 条 = 新的 `panel-registry.test.ts` 与扩写的 `dock-state.test.ts`)· server **185 文件 / 2690 通过 / 4 跳过**,**0 失败**;另跑 `@adelie/docs` **62 通过**(8 文件,本轮改到它的内容)· **界面真跑**(重建 ui + web 后,一次性数据根 `/root/adelie-fork-data/r27-dock`、7494、真浏览器):登录 + 建会话 → 点**右侧栏** → 停靠栏打开并列出注册表里的七个面板(智能体面板 / 终端 / 文件浏览 / 记忆 / 轨迹观测 / 远程控制 / 定时任务)→ 打开**文件浏览** → 点**全屏**:`[data-fullscreen]` 变 `full`、按钮变**退出全屏**、对话列被盖住而工具栏与左侧栏保留 → 点**退出全屏**:回到 `null`、布局复原 → 再开**下侧栏**同样列出选单;**console 0 error / 0 pageerror / 页面无一条 4xx**(仅三条 `net::ERR_ABORTED`,是关浏览器时中断的长连接),截图 6 张在 scratchpad · 本轮没动端口,3003 / 3004 / 4000 / 7364 / 7369 全程没碰 | `e7a0a5a7` |+| 2026-10-09 | 5.4(主块) | **权限菜单给出具名沙箱预设**(上游 `9b170c61` `#975` 移植,照改动落、不是合分支;67 文件 / +6107 −919):权限按钮不再列三段十档,而是列具名预设(完全访问 / 每次询问 / 仅工作区可写 / 只读,管理员另有「更多…」);沙盒卡片有**启用**开关与一张**预设表**(名称 / 文件 / 网络 / 询问模式 / 操作,行内可拖动排序、图钉决定是否进菜单、「…」菜单可设为默认 / 删除,「添加预设」新增行)。服务端:`PluginConfigField` 多 `table` 类型(固定行 + 类型化列、只存与默认不同的单元格、锁定单元格忽略、可声明 `rowChoice` / `pin` / `columnGroup` / `extensible`),字段多 `advanced` / `hint`,分组可声明布尔 `switch`;沙盒分组改成 `enabled` + `presets` + `defaultPreset`(六个内置预设),自己的 `mode` / `network` 去掉;新 `sandbox/settings-policy.ts`(新会话起点 + 旧文档向后兼容)与 `sandbox/settings-status.ts`(后端状态与「本系统默认该装哪个包」);会话视图多 `presets` / `advanced` / `switchOn`。Web 的设置页插件配置面整片重写成表,UI 的 `Dropdown` / `Select` / `ConfirmModal` 跟上。**本树缺的三处前置**(typecheck 逼出来的)已补:`ICONS.star`、`S.settings.pluginAction{Title,Run,Confirm}` 中英各三条、以及上游那笔自带的「执行插件操作前先问一句」(补丁父提交里已有、补丁要改到那几行,故一并落下)。**本地化**:`@prismshadow/penguin-*` → `@lmliheng/penguin-*`;沙盒后端推荐包名 `@penguinharness/sandbox-*` → `@lmliheng/penguin-plugin-sandbox-*`(必须改,否则卡片会去装一个不存在的包);四份上游 changelog 改名到本轮日期、去 PR 行、写明移植出处 | 六包 `typecheck` 全过(`ifaces.json` 187 接口 / 547 类型)· `pnpm lint` **0 警告 0 错误**(2101 文件)· `pnpm format:check` 干净(首跑一条,`prettier --write` 后复检通过)· 五包 test 逐包 `EXIT=0` 全绿:core **1359**/5 跳过(64 文件)· ui **1008**(127)· cli **506**(34)· web **3019**/2 跳过(**247** 文件,+43 = 这笔带来的六个新用例文件与扩写)· server **187 文件 / 2755 通过 / 4 跳过**(+65)—— **0 失败**;另跑 `@adelie/docs` **62 通过**(8 文件,本轮改到它的内容)· **界面真跑**(重建 core/server/web 产物 —— server 的 tsup 默认堆会 OOM,`NODE_OPTIONS=--max-old-space-size=4096` 单跑即过;一次性数据根 `/root/adelie-fork-data/r28-presets`、7496、真浏览器):全新安装开关默认关,权限菜单只有四档审批方式 + 「更多…」→ 「更多…」按设计打开设置对话框的沙盒卡片(只有标题、一条「没有可用后端」提示与开关)→ 点开关弹出**安装后端**对话框,点名的包是 `@adelie/sandbox-bwrap`(本地化在界面上可见)→ 「暂不」后卡片展开预设表与「添加预设」「高级选项」→ **保存**后刷新重开菜单:变成 **完全访问 / 每次询问 / 仅工作区可写 / 只读**,后两者标「未安装」置灰(本机没有沙盒后端,是设计的诚实标注)→ **console 0 error / 0 pageerror / 无一条 4xx**(脚本打印 `[]`),截图 6 张在 scratchpad · 没用到的端口一律没碰,3003 / 3004 / 4000 / 7364 / 7369 全程没碰 · **CI 两跑**:`37922789257` 红在两个 macOS 作业的**服务端声明构建**(OOM,不是测试)—— 与上游同一提交的红点相同,已按仓库既有的 `run-with-env.mjs` 写法给 tsup 一个 4096MB 的默认堆(`a8347184`),详见本轮「CI」一节 | `2e9d53b6` `a8347184` |+| 2026-10-09 | 5.4(最后一块) | **Linux 沙盒在默认的 Ubuntu 上也能工作 —— 走 Landlock**(上游 `234183f5` `#978` 移植,照改动落、不是合分支;65 文件 / +1523 −258):路由改成「**实现维度最多的后端负责**」(`SandboxService.pick()`,注册顺序只用于打破平局),bubblewrap 加载得到的地方每条策略仍由它负责、DSH 适配器只在它是仅剩的那一个时服务;新增 **`closed-temp`** 维度(bubblewrap / Seatbelt / WSL 声明,DSH 适配器不声明 —— 它每一级都会在仅工作区可写下放开一个临时目录),关闭「临时目录可写」的策略绝不路由给没有它的后端;core 插件契约多出(都可选)`SandboxProvider.mechanism`(谁在实施,如 `bubblewrap` / `Landlock`)、`SandboxProvider.limits`(本机留下的缺口,中英)与 `ConfinedSpawn.runnerLines`(后端自报的提示行从命令与钩子脚本 stderr 的开头去掉,如老 ABI 上的 `landlock-run: partial enforcement`);DSH 适配器**在加载时选定并用 `mechanism` 报出它那一级**,两级都不通的主机因此带着 DSH 的原因加载失败,而不是挂上一个拒绝每条命令的后端;沙盒卡片的后端字段 `backend.recommended` 由**单个字符串改成列表**(Linux 两个包),打开开关时按顺序装整张列表,「Backends:」一行改成 `Enforced here: … / Not enforced here: …` 加一个折叠的 **More info**(列出在用后端的缺口、每个已安装但未启用的后端及其原因),没有能隔离网络的后端时「无网络」与「仅本机」一样置灰;四个沙盒插件包升 **0.2.3**(不升的话已装有 0.2.2 的机器会继续跑旧内容、拿不到 `closed-temp` 声明);Web 那边为「旧服务端只报一个字符串」留了一条向后兼容(`recommendedOf`,带 `TODO(recommended-string-compat)`)。**本地化**:`@penguinharness/sandbox-*` → `@lmliheng/penguin-plugin-sandbox-*`(必须改,否则卡片会去装一个不存在的包)、`@prismshadow/penguin-*` → `@lmliheng/penguin-*`、`~/.penguin` → `~/.adelie`、`PENGUIN_HOME` → `ADELIE_HOME`(保留「旧名仍读」的说明);四份上游 changelog 改名到本轮日期、去掉 PR 行、写明移植出处 | 六包 `typecheck` 全过(`ifaces.json` 187 接口 / 549 类型;core 要**先重建** server 才看得到新契约)· `pnpm lint` **0 警告 0 错误**(2108 文件)· `pnpm format:check` 干净 · 五包 test 逐包 `EXIT=0`:core **1368**/5 跳过(65 文件)· ui **1008**(127)· cli **506**(34)· web **3032**/2 跳过(**248** 文件)· server **189 文件 / 2766 通过 / 4 跳过** —— **0 失败**;另跑 `@adelie/docs` **62**、四个沙箱插件包(bwrap 29 · dsh 21+1 跳过 · seatbelt 17+5 跳过 · wsl 25)全绿 · **界面真跑**(重建 core/server/web 产物 + 一次性数据根 `/root/adelie-fork-data/r29-landlock`、7497、真浏览器):全新安装点开沙盒卡片的开关后弹出的**安装提示点名两个包、顺序与列表一致**(`@adelie/sandbox-bwrap 和 @adelie/sandbox-dsh`,文案写明「两者都可用时,使用封禁范围更大的那个」),卡片与预设表排版正常,**console 0 error / 0 pageerror / 无一条 4xx**(脚本打印 `[]`)· **真跑一次 DSH 适配器的加载与约束**:本机(内核 6.1)加载成功、`mechanism` = `Landlock (partial)`,受限命令**在工作区内写成功、在工作区外(`$HOME`)被拒**(`Permission denied`,文件不存在)· 3003 / 3004 / 4000 / 7364 / 7369 与 `/root/penguin-harness` / `/root/Adelie` / `legacy/main` 全程没碰 | `ea92b3ec` || 2026-10-10 | 5.8 | **随包插件的依赖按锁定版本安装、许可证随包发布**(上游 `d56d9ced` `#979` 移植,照改动落、不是合分支;9 文件 / +554 −33):`scripts/build-plugins.mjs` 装进 builtin prefix 的第三方包改成 `pnpm-lock.yaml` 解析出的版本 —— 新增 `scripts/lib/locked-prefix.mjs`(读原生依赖闭包、写进 prefix 的 npm `overrides`、装完按版本与 tarball integrity 对账,不一致即失败)与 `scripts/lib/third-party-notices.mjs`(在 prefix 根写出 `THIRD-PARTY-NOTICES.md`,每个第三方包一节,缺许可证文本即失败);闭包计入内容缓存键,`PACK_FORMAT` 13 → 14。**为什么是这一条**:第二十九轮末尾记下的那件事里与随包产物直接相关的一笔,且不属 4.x(不改包名、不改流水线、不发 npm) | 六包 `typecheck` `EXIT=0`(`ifaces.json unchanged` 187 接口 / 549 类型)· `pnpm lint` **0 警告 0 错误**(2114 文件)· `pnpm format:check` 干净 · 逐包 `EXIT=0`:core **1368**/5 跳过(65 文件)· ui **1008**(127)· cli **506**(34)· web **3032**/2 跳过(248)· server **191 文件 / 2775 通过 / 4 跳过**(+9 即本笔新用例)—— **0 失败** · **真跑一次构建**:`node scripts/build-plugins.mjs --out <scratchpad>/prefix` 退出 0,日志 `23 locked third-party packages: verified` / `6 per-platform native binaries: installed`,产出的 prefix 里 cordis **4.0.1** · cosmokit **1.8.2** · schemastery **3.18.1** · koffi **3.1.6**、`overrides` 23 条、`THIRD-PARTY-NOTICES.md` 23 节、四个目标平台的分平台包都在 · **漂移检测拿真产物取证**:干净树 `[]`,改一条 integrity 后被点名、删一条后被点名 · 本轮没改界面,未起服务、未开浏览器,端口一个没动 | `79bfa4c2` |-| 2026-10-10 | 5.9 | **评估与优化的会话就是普通会话,「评估任务」折叠夹只收 Agent 启动的被测会话**(上游 `8a774995` `#969` 移植,照改动落、不是合分支;21 文件 / +98 −87,比上游多 2 行是本仓写法的 changelog 一对):Web App 不再给评估中心「使用」对话框预填的对话打 `source: "benchmark"` 标记 —— `AiChatRequest` 去掉 `source`、`DraftCache` 的类型与 `draftFromUnknown` 去掉它、草稿页的写回与创建请求体去掉它(**Web App 从此一个字段都不发 `source`**);服务端与 CLI 行为不变(`POST …/sessions` 仍接受 CLI 发来的 `benchmark`),只有 `SessionCreateRequest.source` / `CreateSessionOptions.source` / `SessionMetaPayload.source` 的文档注释改成「被评估的 Test Session 由 `penguin run --source benchmark` 创建」;评估中心 / 对话 / 服务端 API 三份文档(中英)更新。**本树那处冲突的解法**:上游同一段里还留着它自己后加、本树没有的 `goal` 字段 —— 只删 `source`、不引入 `goal`(引入会 typecheck 失败)。changelog 按本仓惯例改名到本轮日期、去上游 PR 行、写明移植出处 | 六包 `typecheck` `EXIT=0`(`ifaces.json unchanged` 187 接口 / 549 类型)· `pnpm lint` **0 警告 0 错误**(2114 文件)· 逐包 `EXIT=0`:core **1368**/5 跳过(66 文件)· ui **1008**(127)· cli **507**(34,+1 即本笔新用例)· web **3032**/2 跳过(248 文件,用例数与扩写后的一致)· server **191 文件 / 2775 通过 / 4 跳过** —— **0 失败**;另跑 `@lmliheng/penguin-docs` **62 通过**(8 文件,本轮改到它的内容)· **界面真跑**(重建 core/server/web 产物后,一次性数据根 `/root/adelie-fork-data/r31-eval`、`localhost:4111`、真浏览器):评估中心 → Example Benchmark →「使用」→「在新对话中编辑」,预填草稿的 localStorage 里**没有 `source` 字段**(字段是 text / workspace / approvalMode / agentId / modelRef / skills / aiPrefill);按发送后 Web App 真发的创建请求体是 `{"approvalMode":"allow-all","modelId":"deepseek-flash","provider":"deepseek"}` —— **不带 `source`**(改动前会带 `"source":"benchmark"`);登录后走查会话列表 / 评估中心 / 预填草稿,**console 0 error、无一条 4xx**(唯一一条是登录前的 `/api/me` 401,是这个 App 的正常首访应答);创建请求被服务端以 `model_credential_missing` 退回是**环境原因**(空数据根没配模型 key,即 3.6 那个卡点),因此本轮没有真会话可看折叠夹归类 —— 归类规则本身未改,由 `web/test/session-grouping.test.ts` 的改写场景覆盖。截图 6 张在 scratchpad · 端口只用 4111,3003 / 3004 / 4000 / 7364 / 7369 全程没碰 | 见本行提交 |+| 2026-10-10 | 5.9 | **评估与优化的会话就是普通会话,「评估任务」折叠夹只收 Agent 启动的被测会话**(上游 `8a774995` `#969` 移植,照改动落、不是合分支;21 文件 / +98 −87,比上游多 2 行是本仓写法的 changelog 一对):Web App 不再给评估中心「使用」对话框预填的对话打 `source: "benchmark"` 标记 —— `AiChatRequest` 去掉 `source`、`DraftCache` 的类型与 `draftFromUnknown` 去掉它、草稿页的写回与创建请求体去掉它(**Web App 从此一个字段都不发 `source`**);服务端与 CLI 行为不变(`POST …/sessions` 仍接受 CLI 发来的 `benchmark`),只有 `SessionCreateRequest.source` / `CreateSessionOptions.source` / `SessionMetaPayload.source` 的文档注释改成「被评估的 Test Session 由 `penguin run --source benchmark` 创建」;评估中心 / 对话 / 服务端 API 三份文档(中英)更新。**本树那处冲突的解法**:上游同一段里还留着它自己后加、本树没有的 `goal` 字段 —— 只删 `source`、不引入 `goal`(引入会 typecheck 失败)。changelog 按本仓惯例改名到本轮日期、去上游 PR 行、写明移植出处 | 六包 `typecheck` `EXIT=0`(`ifaces.json unchanged` 187 接口 / 549 类型)· `pnpm lint` **0 警告 0 错误**(2114 文件)· 逐包 `EXIT=0`:core **1368**/5 跳过(66 文件)· ui **1008**(127)· cli **507**(34,+1 即本笔新用例)· web **3032**/2 跳过(248 文件,用例数与扩写后的一致)· server **191 文件 / 2775 通过 / 4 跳过** —— **0 失败**;另跑 `@adelie/docs` **62 通过**(8 文件,本轮改到它的内容)· **界面真跑**(重建 core/server/web 产物后,一次性数据根 `/root/adelie-fork-data/r31-eval`、`localhost:4111`、真浏览器):评估中心 → Example Benchmark →「使用」→「在新对话中编辑」,预填草稿的 localStorage 里**没有 `source` 字段**(字段是 text / workspace / approvalMode / agentId / modelRef / skills / aiPrefill);按发送后 Web App 真发的创建请求体是 `{"approvalMode":"allow-all","modelId":"deepseek-flash","provider":"deepseek"}` —— **不带 `source`**(改动前会带 `"source":"benchmark"`);登录后走查会话列表 / 评估中心 / 预填草稿,**console 0 error、无一条 4xx**(唯一一条是登录前的 `/api/me` 401,是这个 App 的正常首访应答);创建请求被服务端以 `model_credential_missing` 退回是**环境原因**(空数据根没配模型 key,即 3.6 那个卡点),因此本轮没有真会话可看折叠夹归类 —— 归类规则本身未改,由 `web/test/session-grouping.test.ts` 的改写场景覆盖。截图 6 张在 scratchpad · 端口只用 4111,3003 / 3004 / 4000 / 7364 / 7369 全程没碰 | 见本行提交 || 2026-10-10 | 5.11 | **侧栏按最后活动分页、「加载更多」只在底部追加**(上游 `929abb33` `#960` 移植,照改动落、不是合分支;25 文件 / +1845 −238,比上游多 2 行是本仓写法的 changelog 一对):服务端 `GET …/sessions` 新增 `order=activity`(`lastActiveAt` 降序、相同时按 `sessionId` 降序,均按码点比较、绝不用 `localeCompare`,好让浏览器与服务器只有一个全序)与 `before=<lastActiveAt>,<sessionId>` 游标(返回严格位于该键之后的行;须配合 `order=activity` 与 `limit`、与 `offset` 互斥、格式不对 400),不带 `order` 时仍是创建顺序 + offset 分页、`counts=1` 仍覆盖整表;`http/validate.ts` 解这个游标(`ActivityCursor` / `SessionListOrder` / `SessionListPaging` 从服务里导入);会话列表用户频道的 `session_state` 事件补上 `projectId`。Web:每个侧栏列表带 `order=activity`,每条流(Agent × 机器 × Workspace 范围)从上次从中读到的最后一行的键接着取,由多条流合并的列表只画到**水位线**(仍有剩余的各流中最新的游标),水位线以下的行留在内存等下一页降线,因此「加载更多会话」「展开其余 N 个对话」只会在已显示的行之下追加;Agent / Workspace 分组与各折叠夹同样处理,折叠夹改按最后活动排序,打开着的对话始终显示、搜索仍覆盖全部已加载行。画廊的模拟列表接口也支持 `order` / `before`,server-api 文档(中英)跟上。**本地化与两处冲突的实情**:包 scope `@prismshadow/` → `@lmliheng/`;画廊 mock 那处冲突里上游的上下文行假定了本树**没有**的 `excludeOrg` / `isOrgRow` 处理(那是另一笔未落的上游改动),解法是只取它的 `order` 分支、保留本树自己的过滤(不引入 `isOrgRow`);changelog 改名到 `2026-10-10`、去掉上游 PR 行、写明「移植自上游 PenguinHarness(#960,提交 `929abb33`)」 | 六包 `typecheck` **`EXIT=0`**(六个 `Done`;`gen:ifaces` 写出 **187 接口 / 552 类型**,+3 正是本笔新增的三个服务契约类型)· `pnpm lint` **0 警告 0 错误**(2114 文件)· `pnpm format:check` 干净 · 逐包 `EXIT=0`、**0 失败**:core **1368**/5 跳过(65 文件)· ui **1008**(127)· cli **507**(34)· web **3052**/2 跳过(248 文件,+20)· server **191 文件 / 2780 通过 / 4 跳过**(+5)· docs **62**(8 文件,本轮改到它的内容)· ui-gallery **132**(19 文件,本轮的 mock 路由)· **服务端真跑**(一次性数据根 `/root/adelie-fork-data/r32-sidebar`、`localhost:4121`):用 `sqlite3` 往索引里种 25 行(创建顺序与活动顺序**故意不一致**),`curl` 实测 `order=activity&limit=3` 按 `lastActiveAt` 降序、`before=<最后一行的键>` 接着取到严格更旧的三行、不带 `order` 仍是创建顺序,五种非法组合(带 `order=created` / 缺 `limit` / 同时给 `offset` / 时间戳不可解析 / `order=recent`)**逐条 400** · **界面真跑**(重建 server + web 产物后用真浏览器):侧栏发出的请求确实带 `order=activity`(`limit=11&order=activity&category=active&counts=1&excludeOrg=1`,两个 Workspace 分组各自带上一页最后一行的 `before=` 游标续页);两个分组的行都按活动次序排列(活动序号 00,01,03,04,06,09,12,14,15,17 / 02,05,07,08,10,11,13,16,19,21,各自的升序即「最近活动在前」);点「展开其余 3 个对话」后该组 13 行、新出现的 3 行(活动序号 18、20、23,界面写「2 天前」)**全在底部**,前 10 行逐字不变(脚本断言 `APPEND_ONLY: True`);**console 0 error、除登录前的 `/api/me` 401 外无一条 4xx**,截图与脚本在 scratchpad · 端口只用 4121,3003 / 3004 / 4000 / 7364 / 7369 一个没碰 | `0945d91a` || 2026-10-10 | 5.12 | **会话的 `source` 恒被记录、侧栏把程序开的会话收进一个折叠夹**(上游 `e521a9de` `#999` 移植,照改动落、不是合分支;109 文件 / +1799 −953,含本仓写法的 changelog 两对):core 新增 `omnimessage/source.ts` 的 `normalizeSessionSource`(纯函数,只看得见 Trace 里的值:缺失 → `user`、退休的 `benchmark` → `cli`、野值 → `user`),`SessionSource` 与必填的 `SessionMetaPayload.source`(`user`/`api`/`schedule`/`subagent`/`cli`/`company`)在类型里定义一次,`createSession` 未给来源时记 `user`、恢复的会话把来源带进它开启的每个上下文。server 的 `category` 改为 `active`/`background`/`archived`(列表、`counts`、工作区分组与 Agent Trace 列表同一套),**`company` 会话不属于任何分类**(任何分类形式都不含它,完整列表仍返回它,组织自己的会话接口不变),`excludeOrg` 保留;读取时 `readRecordedSource` 让「Trace 没记来源、索引行 client 为 org」读作 `company`(`unrunSource` 处理还没跑过的工位会话),`POST …/sessions` 只收 `source: "cli"`、`benchmark` 作别名、其余 400。Web 三个折叠夹并成一个「后台会话」折叠夹、每行带来源标记(`session-source-mark.ts`:API 插头 / 定时任务日历 / 子智能体两个机器人 / CLI `>_`),「最近一次对话」与删除后的跳转只选 `user` 行;评估中心「使用」对话框不再打标记。CLI 每个 `penguin run` 会话都是 `cli`、`--source` 隐去、`--source benchmark` 成空操作并打一行说明;agent-evaluation 技能不再传它(agent-tuning 插件版本 +1)。**本树四处差异**:包 scope 全部换回 `@lmliheng/`;`terminalPrompt` 图标上游别处带来、本树没有 → 补进 `packages/ui` 的图标表(一行的裸 `>_` 提示符);`sidebar.tsx` 批量删除里本树特有的 `category === "schedule"` 改成 `sessionCategory(s) === "active"`(新分类里没有 `schedule`,改完才过 typecheck);画廊 mock 的 org 工位夹具(`IDS.sessions.orgDesk` + `harness-transcript.ts`)本树没有 → 按「本树没有这个文件」排除,mock 只取其 `excludeOrg` / `isOrgRow` 与三分类,`mock-api.test.ts` 里依赖那个夹具的三条断言相应收窄并在注释里写明缘由 | 六包 `typecheck` **`EXIT=0`**(六个 `Done`;`gen:ifaces` 写出 **189 接口 / 563 类型**,+2/+11 正是本笔的服务契约)· `pnpm lint` **0 警告 0 错误**(2129 文件)· `pnpm format:check` 干净 · 逐包 `EXIT=0`、**0 失败**:core **1388**/6 跳过(67 文件,+1 文件 `session-source.test.ts`)· ui **1009**(127)· cli **517**(35 文件)· web **3068**/2 跳过(250 文件,+2)· server **193 文件 / 2795 通过 / 4 跳过**(+2 文件)· docs **62**(8 文件,本轮改到它的内容)· ui-gallery **132**(19 文件)· **服务端真跑**(一次性数据根 `/root/adelie-fork-data/r33-source`、`localhost:4131`):往 `default_agent` 的 traces 里写 8 个会话(8 个来源各一条 + 一条更早的 `user`),首启的收编扫描把它们按来源分类 —— `curl` 的 `counts=1` 报 `{active:4, background:4, archived:0}`,随后把 `api` 那条置 `archived_at` 后变成 `{active:4, background:3, archived:1}`(**归档优先于来源**)· **界面真跑**(重建 hmr/core/server/web 产物后用真浏览器,`zh-CN`):侧栏只有一个**后台会话(3)**折叠夹(旧的三个折叠夹已不存在),三行各带来源标记 `>_`(跑一遍评测)/ 两个机器人(检查链接)/ 日历(每晚同步),另有**已归档(1)**含那条归档行(分类外的行不带来源标记);展开折叠夹的请求是 `…sessions?limit=11&order=activity&category=background&workspaceGroup=%2Ftmp%2Fr33-ws&excludeOrg=1`;**console 0 error、除登录前的 `/api/me` 401 外无一条 4xx**;截图 3 张与脚本在 scratchpad · 端口只用 4131,3003 / 3004 / 4000 / 7364 / 7369 一个没碰 | `a5fb9b9d` || 2026-10-10 | 5.13 | **权限菜单带等级的盾牌、思考等级菜单去掉脚注、轨迹面板与文件编辑器不再超出宽度**(上游 `2604c5d2` `#1007` 移植,照改动落、不是合分支;16 文件里落 11 个 / +182 −48,含本仓写法的 changelog 一对):`lib/permission-level.ts` 新增 `menuRowLevel(row, sandbox)`(预设按它自己的三个值、开关关闭时按审批模式叠加会话保留的策略)、`permissionLevel` 的 `sandbox` 参数收成 `Pick<SessionSandbox, "mode" \| "network">`;`permission-select.tsx` 抽出 `LevelGlyph`,预设行与审批模式行都在名称前带上「选中后按钮会变成的等级」的盾牌(形状 + 色调),行不可用时图标一同变淡,管理员「更多…」带一个**节点**齿轮(不是注册表路径,Console 主题隐藏装饰图标时它仍要在、名称才会对齐),菜单最小宽度 `min-w-44` → `min-w-50`(最长内置行「仅工作区可写 + 仅管理员」在中文下不再截断),按钮自己的 `15` 改成 `ICON_SIZE.iconButton`;`chat-input.tsx` / `chat-page.tsx` 的思考等级菜单去掉 `note` 与 `chat.thinkingLevelChangeNote`(中英两份词典同步删,改由已有的确认框说明代价);`trace-file-view.tsx` 的全局统计改成**卡片**是容器(`Card className="@container"`)而网格用 `@2xl:grid-cols-3`,窄于它的卡片把三组上下堆叠;`prose.css` 加 `.code-editor.code-wrap { grid-template-columns: minmax(0, 1fr) }`(开启换行时两层固定为滚动框宽度,之前 `auto` 列会被一段不可断的长串撑到它自己的长度);`test/permission-level.test.ts` 新增一组场景(开关开/关 × 受限/不受限,逐行断言 `menuRowLevel` 等于「选中该项后按钮的等级」,用 `presetPick` / `approvalModePick` 现算)。**有意未取**:`Fold` 的 `min-h-0 min-w-0`(本树没有 `Fold` 组件)与它带到的三个本树没有的文件、两个断言 `data-fold` 类名的用例 —— 用 `--exclude` 排除,见本节 | 六包 `typecheck` **`EXIT=0`**(六个 `Done`;`gen:ifaces` 报 **`src/ifaces.json unchanged`(189 接口 / 563 类型)**,本笔不动服务契约)· `pnpm lint` **0 警告 0 错误**(2129 文件)· `pnpm format:check` 干净 · 逐包 `EXIT=0`、**0 失败**:core **1388**/6 跳过(67 文件)· ui **1009**(127)· cli **517**(35 文件)· web **3072**/2 跳过(250 文件,+4 正是本笔新增的四个场景)· server **193 文件 / 2795 通过 / 4 跳过** · **界面真跑**(重建 hmr → core → server → web 产物,一次性数据根 `/root/adelie-fork-data/r34-ui`、`localhost:4151`、真浏览器 `zh-CN`,手写一个 Trace 文件当会话):① 权限菜单(开关关)五行各带盾牌 —— 总是询问/放行只读琥珀、全部放行红、全部拒绝灰、更多…齿轮,面板 198px、逐行 `scrollWidth - clientWidth` 全 0(无截断);② 把沙盒开关打开(走设置页自己的那条 `PUT /api/admin/plugin-config`,返回 200)后菜单变成 完全访问红 / 每次询问琥珀 / 仅工作区可写琥珀 / 只读绿 / 更多…齿轮,同样无一行截断;③ 思考等级菜单的可见面板文本就是五行 `低(low)中(medium)高(high)极高(xhigh)最高(max)` —— **那条脚注不在了**;④ 轨迹面板的全局统计:停靠栏里卡片 552px 时计算出的 `grid-template-columns` 是**单列** 526px、卡内无一个元素越过右缘(1440 与 1024 两个视口都一样),把停靠栏拖宽到卡片 1128px 后变成**三列** 351px×3 且仍无越界;⑤ 文件编辑器:开启换行时 `.code-editor.code-wrap` 的列是 353px(滚动框 363px),`pre` / `textarea` 都是 353px、滚动框不横向溢出;**反证**:把修复前的规则(`grid-template-columns: auto`)当场注回去,同一处列宽变成 **1629.61px**、两层都 1630px、滚动框横向溢出(1630 vs 363)—— 这正是上游报告的那个 bug;**console 0 error、除登录前的 `/api/me` 401 外无一条 4xx**;截图 14 张与 6 个 `probe*.cjs` 在 scratchpad · 端口只用 4151,3003 / 3004 / 4000 / 7364 / 7369 一个没碰 | `51a79a02` |-| 2026-10-10 | 5.14 | **等待审批的会话在所有列表里实时标记**(上游 `60f34c47` `#1002` 移植,照改动落、不是合分支;11 文件 / +364 −38,含本仓写法的 changelog 一对):`ApprovalRegistry` 多一个可选的 `onChange`,**一次调用只报一次**(`denyAll` 拒掉三个条目=一个事件,同 id 重登记=没有变化),顺带让一个过期的 `resolve` 不能再删掉同 `tool_call_id` 上新登记的那个;`SessionManager` 经 `notifyProjectUsers` 发布 `{ type: "session_approvals", sessionId, count }`(受众与 `session_state` 相同、**归零也发**,`adopt` 与 `ensureEntry` 两条登记路径都接上,发布本身吞掉异常并记日志 —— 关停时数据库可能已经关掉,而一次审批的等待/回答/中断不该因它抛出来);审批模式自行回答的调用(`allow-all` / `deny-all` / `read-only` 下的只读工具)与无人值守会话当场拒绝的调用**一个事件都不发**;`packages/server/src/api/types.ts` 的 `ServerEvent` 多这一变体;Web App 的 `sessions` store 新增 `setPendingApprovals`(与 `setBackgroundTasks` 同一条 drop/no-op 规则),`applyUserEvent` 收到即落到行上;Server API 文档中英两版列出该事件与触发时机。**顺带**:新用例 `test/session-approvals-events.test.ts` 与 `test/session-manager.test.ts` 里那两条(关停时数据库已关掉仍要拒掉等待中的调用)一并落;本仓那处本地化只有一处 —— 新用例里的 `@prismshadow/penguin-core` 改成 `@lmliheng/penguin-core` | 六包 `typecheck` **`EXIT=0`**(`gen:ifaces` 报 **`src/ifaces.json unchanged`(189 接口 / 580 类型)**)· `pnpm lint` **0 警告 0 错误**(2134 文件)· `pnpm format:check` 干净 · 逐包 `EXIT=0`、**0 失败**:core **1395**/6 跳过(67 文件)· ui **1009**(127)· cli **530**(35 文件)· web **3093**/2 跳过(251 文件,+1 组正是本笔新增的 `session_approvals` 场景)· server **195 文件 / 2814 通过 / 4 跳过**(+2 文件、+5 用例:新增那个文件 3 条 + `session-manager.test.ts` 的 2 条)· docs **62**(8 文件,本轮改了它的 server-api 两版)· **界面真跑**(重建 server → web 产物;一次性数据根 `/root/adelie-fork-data/r35-approvals`、`localhost:4171`、`zh-CN` 真浏览器,模型侧用仓库自带的 `packages/web/e2e/mock-llm.mjs` 顶在 `127.0.0.1:4172`,经 `PUT …/models` 的 `custom` provider 接上):浏览器里开的是**诱饵会话 B**(所以页面并没有订阅等待中那个会话的流),等待中的会话 A 的 Task 由**页面之外**的 API 发起 → A 那一行的审批标记以 `1` 出现(tooltip「1 个待审批」)、从外部回答该调用后**同一行上的标记消失**;两次变化之间 **`…/agents/default_agent/sessions` 列表请求数没有增加**(页面加载那次算 1,之后始终 1),**A 自己的单会话 GET 也没有**(0 → 0),即这个标记只可能来自用户通道的那个事件;**console 0 error**;截图 `01-list-no-mark.png` / `02-list-mark-one.png` / `03-list-mark-cleared.png` 在 scratchpad · 端口只用 4171 / 4172,3003 / 3004 / 4000 / 7364 / 7369 一个没碰 | `8b528f05` |-| 2026-10-11 | 5.15 | **`penguin chat` 在 Task 运行期间的粘贴不再被丢掉**(上游 `8a1868cf` `#1001` 移植,照改动落、不是合分支;6 文件 / +260 −7,含本仓写法的 changelog 一对):`packages/cli/src/commands/chat.ts` 的粘贴分支不再对 `state !== "idle"` 一律 `return`(旧注释就写着 `// ignore paste while running`)—— `state === "running"` 时改走 `renderer.printLine`(先收掉没结束的流式行)并 `syncInputHold()`(等 Enter 期间压住输出),Enter 那一支改成先 `composer.pushTypedLine(line)` 再把整段(含多行粘贴)作为**一条**插话发出;`watchTask` 返回后若 composer 里还有待发的粘贴,就保留它、把续行提示符画回来(此前 `composer.reset()` 会把它清掉);审批询问回答后重新 `syncInputHold()`。`inputHold` 的判据从「输入行非空」扩成「输入行非空**或** composer 有待发内容」。`packages/docs/content/cli.{en,zh}.md` 的 REPL 表格那一行补上「键入或粘贴」「多行粘贴作为一条消息」以及「Task 先结束时粘贴留下一次 Enter 发」。本仓本地化只有一处:新用例里的 `@prismshadow/penguin-core` → `@lmliheng/penguin-core` | 六包 `typecheck` **`EXIT=0`**(六个 `Done`;`gen:ifaces` 报 **`src/ifaces.json unchanged`(189 接口 / 580 类型)**,本笔不动服务契约)· `pnpm lint` **0 警告 0 错误**(2135 文件)· `pnpm format:check` 干净 · `git diff --check` 干净 · 逐包 `EXIT=0`、**0 失败**:core **1395**/6 跳过(67 文件)· ui **1009**(127)· cli **534**(36 文件,+1 文件 / +4 用例正是本笔新增的 `chat-paste.test.ts`)· web **3093**/2 跳过(251 文件)· server **195 文件 / 2814 通过 / 4 跳过** · docs **62**(8 文件,本轮改了它的 cli 两版)· **反证**:把 `chat.ts` 换回 `HEAD` 那一版、只跑新用例 → **3 失败 1 通过**(两条粘贴场景 + 审批询问期间压住输出那条),换回本笔后 **4 全过**,即这套用例真的钉住了旧缺陷 · **真终端真跑**(重建 cli 产物;一次性数据根 `/root/adelie-fork-data/r36-paste`、`localhost:4191` 服务端 + 仓库自带 `packages/web/e2e/mock-llm.mjs` 顶在 `127.0.0.1:4192`,经 `PUT …/models` 的 `custom` provider 接上,所以是一个真会话;`penguin chat` 跑在 `script` 给的真 pty 上):发 `slow text test`(假模型分 40 次、每 200ms 吐一段,约 8s)→ 流到 `chunk-15` 时**在运行中粘贴两行并回车** → 终端上粘贴的两行回显、输出停住、提示符回到 `… `、随后一条 `» steering queued (delivered with the next turn): first pasted line / second pasted line`;过一会儿 `⇪ user: first pasted line` / `⇪ user: second pasted line` 出现(插话真的送达);服务端日志里那一轮只有 **一次 `POST …/steer`(202)**,会话轨迹里只有**一条** `model_msg` 写着 `[user_steering]\nfirst pasted line\nsecond pasted line\n[/user_steering]` —— 即多行粘贴是**整段一条**,不是两条 · 端口只用 4191 / 4192(真终端取证)+ 4193 未用,3003 / 3004 / 4000 / 7364 / 7369 一个没碰;两个临时进程用完已停 | `755ea330` |+| 2026-10-10 | 5.14 | **等待审批的会话在所有列表里实时标记**(上游 `60f34c47` `#1002` 移植,照改动落、不是合分支;11 文件 / +364 −38,含本仓写法的 changelog 一对):`ApprovalRegistry` 多一个可选的 `onChange`,**一次调用只报一次**(`denyAll` 拒掉三个条目=一个事件,同 id 重登记=没有变化),顺带让一个过期的 `resolve` 不能再删掉同 `tool_call_id` 上新登记的那个;`SessionManager` 经 `notifyProjectUsers` 发布 `{ type: "session_approvals", sessionId, count }`(受众与 `session_state` 相同、**归零也发**,`adopt` 与 `ensureEntry` 两条登记路径都接上,发布本身吞掉异常并记日志 —— 关停时数据库可能已经关掉,而一次审批的等待/回答/中断不该因它抛出来);审批模式自行回答的调用(`allow-all` / `deny-all` / `read-only` 下的只读工具)与无人值守会话当场拒绝的调用**一个事件都不发**;`packages/server/src/api/types.ts` 的 `ServerEvent` 多这一变体;Web App 的 `sessions` store 新增 `setPendingApprovals`(与 `setBackgroundTasks` 同一条 drop/no-op 规则),`applyUserEvent` 收到即落到行上;Server API 文档中英两版列出该事件与触发时机。**顺带**:新用例 `test/session-approvals-events.test.ts` 与 `test/session-manager.test.ts` 里那两条(关停时数据库已关掉仍要拒掉等待中的调用)一并落;本仓那处本地化只有一处 —— 新用例里的 `@prismshadow/penguin-core` 改成 `@adelie/core` | 六包 `typecheck` **`EXIT=0`**(`gen:ifaces` 报 **`src/ifaces.json unchanged`(189 接口 / 580 类型)**)· `pnpm lint` **0 警告 0 错误**(2134 文件)· `pnpm format:check` 干净 · 逐包 `EXIT=0`、**0 失败**:core **1395**/6 跳过(67 文件)· ui **1009**(127)· cli **530**(35 文件)· web **3093**/2 跳过(251 文件,+1 组正是本笔新增的 `session_approvals` 场景)· server **195 文件 / 2814 通过 / 4 跳过**(+2 文件、+5 用例:新增那个文件 3 条 + `session-manager.test.ts` 的 2 条)· docs **62**(8 文件,本轮改了它的 server-api 两版)· **界面真跑**(重建 server → web 产物;一次性数据根 `/root/adelie-fork-data/r35-approvals`、`localhost:4171`、`zh-CN` 真浏览器,模型侧用仓库自带的 `packages/web/e2e/mock-llm.mjs` 顶在 `127.0.0.1:4172`,经 `PUT …/models` 的 `custom` provider 接上):浏览器里开的是**诱饵会话 B**(所以页面并没有订阅等待中那个会话的流),等待中的会话 A 的 Task 由**页面之外**的 API 发起 → A 那一行的审批标记以 `1` 出现(tooltip「1 个待审批」)、从外部回答该调用后**同一行上的标记消失**;两次变化之间 **`…/agents/default_agent/sessions` 列表请求数没有增加**(页面加载那次算 1,之后始终 1),**A 自己的单会话 GET 也没有**(0 → 0),即这个标记只可能来自用户通道的那个事件;**console 0 error**;截图 `01-list-no-mark.png` / `02-list-mark-one.png` / `03-list-mark-cleared.png` 在 scratchpad · 端口只用 4171 / 4172,3003 / 3004 / 4000 / 7364 / 7369 一个没碰 | `8b528f05` |+| 2026-10-11 | 5.15 | **`penguin chat` 在 Task 运行期间的粘贴不再被丢掉**(上游 `8a1868cf` `#1001` 移植,照改动落、不是合分支;6 文件 / +260 −7,含本仓写法的 changelog 一对):`packages/cli/src/commands/chat.ts` 的粘贴分支不再对 `state !== "idle"` 一律 `return`(旧注释就写着 `// ignore paste while running`)—— `state === "running"` 时改走 `renderer.printLine`(先收掉没结束的流式行)并 `syncInputHold()`(等 Enter 期间压住输出),Enter 那一支改成先 `composer.pushTypedLine(line)` 再把整段(含多行粘贴)作为**一条**插话发出;`watchTask` 返回后若 composer 里还有待发的粘贴,就保留它、把续行提示符画回来(此前 `composer.reset()` 会把它清掉);审批询问回答后重新 `syncInputHold()`。`inputHold` 的判据从「输入行非空」扩成「输入行非空**或** composer 有待发内容」。`packages/docs/content/cli.{en,zh}.md` 的 REPL 表格那一行补上「键入或粘贴」「多行粘贴作为一条消息」以及「Task 先结束时粘贴留下一次 Enter 发」。本仓本地化只有一处:新用例里的 `@prismshadow/penguin-core` → `@adelie/core` | 六包 `typecheck` **`EXIT=0`**(六个 `Done`;`gen:ifaces` 报 **`src/ifaces.json unchanged`(189 接口 / 580 类型)**,本笔不动服务契约)· `pnpm lint` **0 警告 0 错误**(2135 文件)· `pnpm format:check` 干净 · `git diff --check` 干净 · 逐包 `EXIT=0`、**0 失败**:core **1395**/6 跳过(67 文件)· ui **1009**(127)· cli **534**(36 文件,+1 文件 / +4 用例正是本笔新增的 `chat-paste.test.ts`)· web **3093**/2 跳过(251 文件)· server **195 文件 / 2814 通过 / 4 跳过** · docs **62**(8 文件,本轮改了它的 cli 两版)· **反证**:把 `chat.ts` 换回 `HEAD` 那一版、只跑新用例 → **3 失败 1 通过**(两条粘贴场景 + 审批询问期间压住输出那条),换回本笔后 **4 全过**,即这套用例真的钉住了旧缺陷 · **真终端真跑**(重建 cli 产物;一次性数据根 `/root/adelie-fork-data/r36-paste`、`localhost:4191` 服务端 + 仓库自带 `packages/web/e2e/mock-llm.mjs` 顶在 `127.0.0.1:4192`,经 `PUT …/models` 的 `custom` provider 接上,所以是一个真会话;`penguin chat` 跑在 `script` 给的真 pty 上):发 `slow text test`(假模型分 40 次、每 200ms 吐一段,约 8s)→ 流到 `chunk-15` 时**在运行中粘贴两行并回车** → 终端上粘贴的两行回显、输出停住、提示符回到 `… `、随后一条 `» steering queued (delivered with the next turn): first pasted line / second pasted line`;过一会儿 `⇪ user: first pasted line` / `⇪ user: second pasted line` 出现(插话真的送达);服务端日志里那一轮只有 **一次 `POST …/steer`(202)**,会话轨迹里只有**一条** `model_msg` 写着 `[user_steering]\nfirst pasted line\nsecond pasted line\n[/user_steering]` —— 即多行粘贴是**整段一条**,不是两条 · 端口只用 4191 / 4192(真终端取证)+ 4193 未用,3003 / 3004 / 4000 / 7364 / 7369 一个没碰;两个临时进程用完已停 | `755ea330` || 2026-10-11 | 5.16 | **`penguin chat` 用 OSC 133 标记提示符**(上游 `c95ef950` `#1003` 移植,照改动落、不是合分支;6 文件 / +200,含 changelog 一对):终端里 `> ` 提示符前写 `A`、其后输入起点写 `B`,提交的 Prompt 开始一轮写 `C`、结束写 `D;0`(抛错路径写 `D;1`);续行提示符 / 审批询问 / 退出确认不标记,`/thinking`、`/verbose` 这类本地应答的命令不包围;只有 stdin 与 stdout 都是终端且 `TERM` 不是 `dumb` 时才写。**为什么是这一条**:第三十六轮末尾写明它是「下一轮的第一顺位」 | 六包 `typecheck` **`EXIT=0`** · `oxlint` 0 警告 0 错误(2140 文件)· `prettier --check .` 干净 · 逐包 test 全绿:cli **539**(37 文件,+5 正是本笔新用例)· core **1395**/6 跳过(68)· server **195 文件 / 2814 通过 / 4 跳过** · web **3096**/2 跳过(252)· ui **1021**(128)· docs **62**(8,本轮改了它的 cli 两版)· hmr 无测试文件 · **反证**:把 `chat.ts` 换回 `HEAD` 那一版只跑新用例 → **2 失败 / 3 通过**(3 条「不标记」用例本就该通过),换回本笔 → **5 全过** · **真 pty 真跑**:`script` 给的真终端上 `penguin chat --server http://localhost:4291`(一次性数据根 `/root/adelie-fork-data/r37-marks`,模型顶仓库自带 `e2e/mock-llm.mjs` 于 4292),原始输出里的标记序列是 **`A B C D;0 A B`**:`A`→`B` 之间正是 `> ` 提示符、`C` 在第一个 chunk 之前、`D;0` 在 `[stats]` 之后、第二次 `A B` 是下一个提示符、`/exit` 不被包围 · **反证(真终端)**:同一条命令把 stdout 接 `| cat` → 标记 **0 个**,而整轮回复照样跑完(`chunk-40` 在) | `3713a9aa` || 2026-10-11 | 5.17 | **一个会话排队的 follow-up 上限 16**(上游 `092a595c` `#853` 移植,照改动落、不是合分支;4 文件 / +81 −1,含 changelog 一对):`SessionManager` 新增导出的 `FOLLOW_UP_QUEUE_LIMIT = 16`,`startTask` 的 `queueIfBusy` 分支入队前先判满 —— 满了就抛 `HttpError(429, "queue_full", …)`,不再无上限 `entry.followUps.push`;不带 `queueIfBusy` 的 `409 task_in_progress`、排出一条空出一个位置都不变。上游只带 manager 级用例(队列填满 16 每条都 `queued: true`、第 17 条 429 `queue_full` 且计数不变、排出一条后可再入一条),本仓额外**在真 HTTP 层核过一次**(一次性用例,未入库)。changelog 按本仓惯例改名到本轮日期、去上游 PR 行、写明移植出处,并写明与上游的一处差别:本仓未移植 `#852`,派发被拒的一次性日程项仍会消耗它的时间槽。**为什么是这一条**:`c65d407a` 上那五笔里唯一「两个源文件 + 一对 changelog、`git apply -3` 干净、不要新依赖、不碰桌面壳 / 包名 / 流水线」的一笔 | 六包 `typecheck` **`EXIT=0`**(六个 `Done`;`gen:ifaces` 报 **`src/ifaces.json unchanged`(189 接口 / 580 类型)**,本笔不动服务契约)· `oxlint` **0 警告 0 错误**(2140 文件)· `prettier --check .` 干净 · `git diff --check` 干净 · 逐包 test **全绿、0 失败**:core **1395**/6 跳过(68 文件)· ui **1021**(128)· cli **539**(37 文件)· web **3096**/2 跳过(252 文件)· server **195 文件 / 2815 通过 / 4 跳过**(+1 正是本笔新用例)· hmr 无测试文件 · **反证**:把 `session-manager.ts` 换回 `HEAD` 那一版、只跑新用例 → **1 失败**(`FOLLOW_UP_QUEUE_LIMIT` 不存在,循环一次不跑、计数 0),换回本笔 → **48 全过** · **真 HTTP 层核过**(一次性用例 `zz-tmp-queue-cap-wire.test.ts`,跑完即删、未入库):借 `createTestApp` + `apiClient` 起真 App,会话停在一次审批上保持 running,`POST …/tasks` 连发 16 条都是 `202 queued:true`、第 17 条 **`429`** 且响应体是 `{"error":{"code":"queue_full","message":"Session … already has 16 queued follow-ups (cap 16); wait for the session to drain."}}`(计数仍是 16)· 本笔不碰界面,未起浏览器、未起服务;3003 / 3004 / 4000 / 7364 / 7369 一个没碰 | `bdc1633d` || 2026-10-11 | 5.18 | **派发失败的一次性日程项在下一轮重新触发**(上游 `adfa2a19` `#852` 移植,照改动落、不是合分支;6 文件 / +80 −2,含 changelog 一对与对第三十八轮那篇 changelog 结尾一句的更正):`markCalendarSlot` 的 `slotMs` 放宽成 `number \| null`(那一列本来就允许空),`reconcileCalendar` 在派发返回 skipped 那一支、把通知放回队列并 `mark("error")` 之后,**若 `def.periodMs === undefined`(一次性日程项)就把 `state.lastSlotMs` 退回** —— 下一轮对账重新触发该事件并把重新入队的工位通知一并带走;周期日程项不退槽(下一槽照常触发),因员工被预算暂停而跳过的一次性日程项仍按原规则消耗、不补发。上游那条用例照落(真 SQLite 的 `OrgCacheRepo` + 真 `OrgStore` 文件 + 假 runner:一次性事件打进会抛的 runner → 通知仍在队列、结果是 `error`,下一轮成功触发并带上「For HR」通知,再下一轮不重复触发)。第三十八轮那篇 changelog 结尾原写着「本仓尚未移植 #852」,改为「截至那一笔尚未移植、现已落地」并指向本轮的 changelog。**为什么是这一条**:`c65d407a` 剩下那几笔里最小、`git apply -3` 三点全干净、不引入新依赖、不碰桌面壳 / 包名 / 流水线的一笔 | 六包 `typecheck` **`EXIT=0`**(六个 `Done`;`gen:ifaces` 报 **`src/ifaces.json unchanged`(189 接口 / 580 类型)**,本笔不动服务契约)· `oxlint` **0 警告 0 错误**(2140 文件)· `prettier --check .` 干净 · `git diff --check` 干净 · 逐包 test **`EXIT=0`、0 失败**:core **1395**/6 跳过(68 文件)· ui **1021**(128)· cli **539**(37 文件)· web **3096**/2 跳过(252)· server **195 文件 / 2816 通过 / 4 跳过**(+1 正是本笔新用例)· hmr 无测试文件 · **反证**:把 `reconcile.ts` 换回 `HEAD` 那一版、只跑新用例 → **1 失败**(`started` 是 0:槽没退回,下一轮什么都不会触发),换回本笔 → 该用例通过、`organization-runtime.test.ts` **90 条全绿** · 本笔不碰界面,未起服务、未开浏览器;3003 / 3004 / 4000 / 7364 / 7369 一个没碰 | `dcb7faef` |-| 2026-10-11 | 5.19 | **org store 的写入改原子、崩溃留在两列的工单不再丢**(上游 `ebd9d8d2` `#850` 移植,照改动落、不是合分支;5 文件 / +132 −10,含 changelog 一对):`writeText()` 从裸 `fs.writeFile` 换成核心的 `atomicWriteFile`(唯一暂存名 + rename,注释写明为什么:截断的 TOML/YAML/MD 会被对账判为非法、把工单从看板移除);`moveTicket` 删旧列不再用 `.catch(() => {})` 吞错,只放过 `ENOENT`;`reconcile.ts` 的 `listTickets` 不再把「重复 id」与「解析不了」同罪 —— 按 `mtimeMs` 保留最新的一份(新列先写、旧列后删,最新那份正是移动的目标)、过期那份列入非法文件并点名保留了哪一份。唯一本地化:新 import 用本仓的 core scope `@lmliheng/penguin-core` | 六包 `typecheck` **`EXIT=0`**(六个 `Done`;`gen:ifaces` 报 **`src/ifaces.json unchanged`(189 接口 / 580 类型)**)· `oxlint` **0 警告 0 错误**(2140 文件)· `prettier --check .` 干净 · `git diff --check` 干净 · 逐包 test **`EXIT=0`、0 失败**:core **1395**/6 跳过(68 文件)· ui **1021**(128)· cli **539**(37 文件)· web **3096**/2 跳过(252 文件)· server **195 文件 / 2819 通过 / 4 跳过**(+3 正是本笔新增的三条)· hmr 无测试文件 · **反证**:把 `store.ts` / `reconcile.ts` 换回 `HEAD` 那一版、只跑新用例 → **2 失败 1 通过**(两列存活、删除失败要抛出这两条挂掉,「不留临时文件」那条本来就过),换回本笔 → 3 条全过 · 本笔不碰界面,未起服务、未开浏览器;3003 / 3004 / 4000 / 7364 / 7369 一个没碰 | `479c3151` |+| 2026-10-11 | 5.19 | **org store 的写入改原子、崩溃留在两列的工单不再丢**(上游 `ebd9d8d2` `#850` 移植,照改动落、不是合分支;5 文件 / +132 −10,含 changelog 一对):`writeText()` 从裸 `fs.writeFile` 换成核心的 `atomicWriteFile`(唯一暂存名 + rename,注释写明为什么:截断的 TOML/YAML/MD 会被对账判为非法、把工单从看板移除);`moveTicket` 删旧列不再用 `.catch(() => {})` 吞错,只放过 `ENOENT`;`reconcile.ts` 的 `listTickets` 不再把「重复 id」与「解析不了」同罪 —— 按 `mtimeMs` 保留最新的一份(新列先写、旧列后删,最新那份正是移动的目标)、过期那份列入非法文件并点名保留了哪一份。唯一本地化:新 import 用本仓的 core scope `@adelie/core` | 六包 `typecheck` **`EXIT=0`**(六个 `Done`;`gen:ifaces` 报 **`src/ifaces.json unchanged`(189 接口 / 580 类型)**)· `oxlint` **0 警告 0 错误**(2140 文件)· `prettier --check .` 干净 · `git diff --check` 干净 · 逐包 test **`EXIT=0`、0 失败**:core **1395**/6 跳过(68 文件)· ui **1021**(128)· cli **539**(37 文件)· web **3096**/2 跳过(252 文件)· server **195 文件 / 2819 通过 / 4 跳过**(+3 正是本笔新增的三条)· hmr 无测试文件 · **反证**:把 `store.ts` / `reconcile.ts` 换回 `HEAD` 那一版、只跑新用例 → **2 失败 1 通过**(两列存活、删除失败要抛出这两条挂掉,「不留临时文件」那条本来就过),换回本笔 → 3 条全过 · 本笔不碰界面,未起服务、未开浏览器;3003 / 3004 / 4000 / 7364 / 7369 一个没碰 | `479c3151` || 2026-10-11 | 5.20 | **阻塞工单的 `by` 主体按组织架构校验**(上游 `4ea0d5f9` `#851` 移植,照改动落、不是合分支;4 文件 / +65,含 changelog 一对):`blockTicket` 在形状校验之后多一步「按架构图核主体」—— `by` 是 `agent:<id>` / `user:<id>` 时交给已有的 `requireChannelPrincipal`(agent 必须是员工、user 必须是 Project 成员),不通过就以 `400 invalid_principal` 拒绝(与其它接受主体的写入路径同一把尺子、同一个码);工单 id 那一支不变(本来就有存在性检查),省略 `by` 仍清除 `blockedBy`,已存储的 `blocked_by` 不会被改写。**为什么是这一条**:第四十轮末尾写明它是「下一轮的建议」,`c65d407a` 剩下两笔里较小的一笔 | 六包 `typecheck` **`EXIT=0`**(六个 `Done`;`gen:ifaces` 报 **`src/ifaces.json unchanged`(189 接口 / 580 类型)**,本笔不动服务契约)· `oxlint` **0 警告 0 错误**(2140 文件)· `prettier --check .` 干净 · `git diff --check` 干净 · 逐包 test **`EXIT=0`、0 失败**:core **1395**/6 跳过(68 文件)· ui **1021**(128)· cli **539**(37 文件)· web **3096**/2 跳过(252 文件)· server **195 文件 / 2820 通过 / 4 跳过**(+1 正是本笔新用例;`organization-runtime.test.ts` 94 条全绿)· hmr 无测试文件 · **反证**:把 `service.ts` 换回 `HEAD` 那一版、只跑新用例 → **1 失败**(`agent:acme_ghost` 那条阻塞**成功**了 —— 旧代码只校验形状),换回本笔 → 该用例通过 · 本笔不碰界面,未起服务、未开浏览器;3003 / 3004 / 4000 / 7364 / 7369 一个没碰 | `2a1d6c85` || 2026-10-12 | 5.21 | **往上翻页加载更早的对话时,读者停在原来读的那条消息上**(上游 `5b096c2e` `#995` 移植,照改动落、不是合分支;5 文件 / +260 −8,含 changelog 一对与上游自带的那条新 e2e):`chat-page.tsx` 的 `allItems` memo 除 `stream.version` 外**还以 `stream.prefixItems` 为键**(列表与修正要在同一次渲染里变化);`message-stream.tsx` 新增 `anchorRef` + `recordAnchor()` —— 每次滚动与每次提交记下最靠上那条提问在视口里的位置,prepend 时按**它实际被挪动的距离**修 `scrollTop`(记不到那个节点时才退回高度差),顶部那行加载/重试/开头标记的容器从 `pb-2` 改成**恒定 `h-7`**,并只在 `older.hasMore || older.prependedCount > 0`(上方确实还有历史)时渲染。**为什么是这一条**:第四十一轮末尾写明「量一次 `#1027` 到底要几轮,或按 5.x 的口径另找一条可整块落地的」——`#1027` 32 文件 / +1680 得单独一轮;这一笔是上游 `main` 2026-10-12 新推上来的 13 笔里唯一一条碰产品主界面、自带现成 e2e、`git apply -3` 干净、不引入新依赖、不碰桌面壳 / 包名 / 流水线的一笔 | 六包 `typecheck` **`EXIT=0`**(六个 `Done`;`gen:ifaces` 报 **`src/ifaces.json unchanged`(189 接口 / 580 类型)**,本笔不动服务契约)· `oxlint` **0 警告 0 错误**(2141 文件,+1 即新 e2e)· `prettier --check .` 干净 · `git diff --check` 干净 · 逐包 test **`EXIT=0`、0 失败**:core **1395**/6 跳过(68 文件)· ui **1021**(128)· cli **539**(37 文件)· web **252 文件 / 3096 通过 / 2 跳过** · server **195 文件 / 2820 通过 / 4 跳过** · hmr 无测试文件 · **真跑新 e2e**(重建 core/server/web 产物;一次性数据根 `/tmp/r42-e2e-data`、`localhost:8942` 服务端 + 仓库自带 `packages/web/e2e/mock-llm.mjs` 顶在 `127.0.0.1:8941`):`npx playwright test … history-prepend-anchor.spec.mjs` → **1 passed(26.5s)**,四次测量(起点 0/150 各两次)位移**全是 0px**、`opened=20 → loaded=40`、只多取一页(`before=1%3A135&limit=20`)· **反证**:把那两个源文件换回 `HEAD` 那一版、重建 web、同一条命令 → **1 failed**,四次位移都是 **24px**(正是顶部那行的高度)—— 即这条 e2e 真的钉住了旧缺陷 · **真浏览器再看一眼**(同一数据根、`localhost:8943`):会话 45 轮、开页 20 条锚点、滚到顶部后 40 条,截图两张;console 唯一一条 error 是 `GET …/machines` **403**,**在改动前的产物上同样出现**(非 admin 测试账号取项目机器列表,与本笔无关)· 端口只用 8941 / 8942 / 8943,3003 / 3004 / 4000 / 7364 / 7369 一个没碰 | `2428ebbd` |-| 2026-10-12 | 5.22 | **路由组的 `auth` 标记不再随挂载位置而变、贡献的 `id`/`from` 不可被覆盖**(上游 `24abe4ef` `#793` 移植,照改动落、不是合分支;5 文件 / +208 −18,含 changelog 一对与上游自带的 147 行新用例):`HttpModule.setup` 不再用 `let gated` 在第一个受保护组之前给 `/api/*` 挂一次门,而是在**循环里给每个 `auth: "user"` 组挂** `app.use(\`${prefix}/*\`, gate)`;`gate` 是一个先看 `c.var.user` 的薄包装(**已带 user 就 `next()`**,否则走 `authMiddleware`),因此前缀嵌套时每请求仍只鉴权一次、机器代理 `/server/` 那处仍受保护;`contributions.ts` 的每条从 `{ id, from, ...c.data }` 改成 `{ ...c.data, id, from }`。**为什么是这一条**:第四十二轮末尾写明从上游六笔小件里挑,这一笔是其中唯一一条服务端平台面、且自带一份完整新用例(六条,反证时红三条)。**本地化**:新用例里两处 `@prismshadow/penguin-core/kernel` → 本仓的 `@lmliheng/penguin-core/kernel`;changelog 按本仓惯例改名到本轮日期(`2026-10-12-route-group-auth-per-group{,.zh}.md`)、去掉上游 PR 行、写明「移植自上游 PenguinHarness(#793,提交 `24abe4ef`)」 | 六包 `typecheck` **`EXIT=0`**(六个 `Done`;`gen:ifaces` 报 **`src/ifaces.json unchanged`(189 接口 / 580 类型)**,本笔不动服务契约)· `npx oxlint` **0 警告 0 错误(2142 文件,+1 即新用例)**· `npx prettier --check` 干净 · `git diff --check` 干净 · 逐包 test **`EXIT=0`、0 失败**:core **1395**/6 跳过(68 文件)· ui **1021**(128)· cli **539**(37 文件)· web **252 文件 / 3096 通过 / 2 跳过** · server **196 文件 / 2826 通过 / 4 跳过**(+1 文件、+6 用例,正是本笔的新用例)· hmr 无测试文件 · **反证**:把两个源文件换回 `HEAD` 那一版、只跑新用例 → **3 失败 3 通过**(公开组被拦、未知路径 401、`id` 被覆盖三条挂掉,另三条保护性用例本就该过),换回本笔 → **6 全过** · **真服务端核过**(重建 server 产物;一次性数据根 `/tmp/r43-data`、`localhost:8951`):未登录请求没有任何路由组服务的 `/api/nothing-here` 与 `/api/definitely/not/a/route` 都是 **404**(此前会是 401)、受保护的 `/api/projects` 未登录仍 **401**;登录后同一端点 **200**、`/api/me` 回 user —— 即每请求一次鉴权、受保护组仍受保护 · **真浏览器再看一眼**:Playwright 打开 `localhost:8951`,落点是 `/chat/new`、标题 `对话 · Adelie`、**console 0 error**(截图在 scratchpad `r43/`)· 端口只用 8951,3003 / 3004 / 4000 / 7364 / 7369 一个没碰 | 见本行提交 |+| 2026-10-12 | 5.22 | **路由组的 `auth` 标记不再随挂载位置而变、贡献的 `id`/`from` 不可被覆盖**(上游 `24abe4ef` `#793` 移植,照改动落、不是合分支;5 文件 / +208 −18,含 changelog 一对与上游自带的 147 行新用例):`HttpModule.setup` 不再用 `let gated` 在第一个受保护组之前给 `/api/*` 挂一次门,而是在**循环里给每个 `auth: "user"` 组挂** `app.use(\`${prefix}/*\`, gate)`;`gate` 是一个先看 `c.var.user` 的薄包装(**已带 user 就 `next()`**,否则走 `authMiddleware`),因此前缀嵌套时每请求仍只鉴权一次、机器代理 `/server/` 那处仍受保护;`contributions.ts` 的每条从 `{ id, from, ...c.data }` 改成 `{ ...c.data, id, from }`。**为什么是这一条**:第四十二轮末尾写明从上游六笔小件里挑,这一笔是其中唯一一条服务端平台面、且自带一份完整新用例(六条,反证时红三条)。**本地化**:新用例里两处 `@prismshadow/penguin-core/kernel` → 本仓的 `@adelie/core/kernel`;changelog 按本仓惯例改名到本轮日期(`2026-10-12-route-group-auth-per-group{,.zh}.md`)、去掉上游 PR 行、写明「移植自上游 PenguinHarness(#793,提交 `24abe4ef`)」 | 六包 `typecheck` **`EXIT=0`**(六个 `Done`;`gen:ifaces` 报 **`src/ifaces.json unchanged`(189 接口 / 580 类型)**,本笔不动服务契约)· `npx oxlint` **0 警告 0 错误(2142 文件,+1 即新用例)**· `npx prettier --check` 干净 · `git diff --check` 干净 · 逐包 test **`EXIT=0`、0 失败**:core **1395**/6 跳过(68 文件)· ui **1021**(128)· cli **539**(37 文件)· web **252 文件 / 3096 通过 / 2 跳过** · server **196 文件 / 2826 通过 / 4 跳过**(+1 文件、+6 用例,正是本笔的新用例)· hmr 无测试文件 · **反证**:把两个源文件换回 `HEAD` 那一版、只跑新用例 → **3 失败 3 通过**(公开组被拦、未知路径 401、`id` 被覆盖三条挂掉,另三条保护性用例本就该过),换回本笔 → **6 全过** · **真服务端核过**(重建 server 产物;一次性数据根 `/tmp/r43-data`、`localhost:8951`):未登录请求没有任何路由组服务的 `/api/nothing-here` 与 `/api/definitely/not/a/route` 都是 **404**(此前会是 401)、受保护的 `/api/projects` 未登录仍 **401**;登录后同一端点 **200**、`/api/me` 回 user —— 即每请求一次鉴权、受保护组仍受保护 · **真浏览器再看一眼**:Playwright 打开 `localhost:8951`,落点是 `/chat/new`、标题 `对话 · Adelie`、**console 0 error**(截图在 scratchpad `r43/`)· 端口只用 8951,3003 / 3004 / 4000 / 7364 / 7369 一个没碰 | 见本行提交 || 2026-10-12 | 5.23 | **目录里 Dots3-Note Preview 的名称改用半角括号**(上游 `0e207146` `#996` 移植,照改动落、不是合分支;4 文件 / +38 −6,含 changelog 一对):`model-catalog.ts` 里 TokenDance 的 `dots-3-note-preview` 一行显示名由 **Dots3-Note Preview(Free)** 改成 **Dots3-Note Preview (Free)** —— 全角括号是从卖方的中文目录照抄来的,而目录名不随界面语言翻译,宽字形在英文界面上也原样显示;用词与 `Free` 标记仍按卖方写法,只换成目录里其他带括号名称用的 ASCII 形式(`Nemotron 3 Ultra (free)`、`Gemini 3.1 Pro (Preview)`),行内注释写明这个取舍。`model-catalog.test.ts` 里那条断言跟着改名(上游只改这一条,**没有**它 changelog 里写的「显示名不得含中日韩标点」那种新用例,本仓也没加)。预设模型的显示名从目录读、不写进 Project 配置,所以未改过该行的 Project 立即显示新名称、用户自己起过的名称不受影响 | 六包 `typecheck` **`EXIT=0`**(六个 `Done`;`gen:ifaces` 报 **`src/ifaces.json unchanged`(189 接口 / 580 类型)**,本笔不动服务契约)· `npx oxlint` **0 警告 0 错误**(2142 文件)· `npx prettier --check .` 干净 · `git diff --check` 干净 · 逐包 test **`EXIT=0`、0 失败**:core **1395** / 6 跳过(68 文件)· ui **1021**(128)· cli **539**(37)· web **252 文件 / 3096 通过 / 2 跳过** · server **196 文件 / 2826 通过 / 4 跳过** · hmr 无测试文件 · **反证(单测)**:把 `model-catalog.ts` 换回 `HEAD` 那一版、只跑 `test/model-catalog.test.ts` → **1 失败 / 64 通过**(正是那条断言),换回本笔 → **65 全过** · **真浏览器看到改前与改后两态(本轮主证据)**:重建 core / server / web 产物后,一次性数据根 `/root/adelie-fork-data/r44-models`、`localhost:8971` 起真服务,Playwright 用 `POST /api/auth/login` 拿会话 cookie 打开 `/models` —— 改后 `Dots3-Note Preview (Free)` 在页面上、`(Free)` 形态**不出现**,`console 0 error`、无一条 4xx;把服务端实际加载的那份 core 产物(`node_modules/.pnpm/@lmliheng+penguin-core@…/dist/chunk-7QAZOTUD.js` —— **这个包是 `file:` 的硬链接副本,改 `packages/core/dist` 不会改到它**,本轮踩到后改对了)换成改动前的字符串、重启服务再打开同一页 → `Dots3-Note Preview(Free)` 出现、半角形态不出现;改回来再跑一次恢复原状 · 端口只用 8971,3003 / 3004 / 4000 / 7364 / 7369 一个没碰 | 见本行提交 || 2026-10-12 | 5.24 | **公司侧栏显示的是当前页面所在的组织**(上游 `aedeac7e` `#824` 移植,照改动落、不是合分支;4 文件 / +77 −2,含 changelog 一对):公司模式下打开组织的页面时,侧栏(工位、频道)可能停留在**上一次**打开的组织上 —— 页面写着一家公司、侧栏列的是另一家的员工,切换组织时看起来像新组织没有 Session。根因在 `CompanyProvider` 采用「上次打开的组织」(偏好 `lastOrgKey`)的那处 effect:判断用的是**发起它的那次渲染里的值**(`currentOrgKey !== null \|\| lastOrgKey === null`),而同一次提交里子节点 `OrgLayout` 的 effect 先跑、已经设好了当前组织,父节点看到的仍是「没有」,于是用存储的组织盖掉了路由指定的那个;`OrgLayout` 的 effect 因 `key` 未变不再重跑,侧栏就一直停在错的组织上到下一次导航。改动把判断收成 store 的方法 **`adoptLastOrg`**(`createCompanyStore` 里,读 `get()` 的当下值:`currentOrgKey` 已非空或 `lastOrgKey` 为空即返回,否则 `setCurrentOrg(lastOrgKey)`),`CompanyProvider` 的 effect 改调 `store.getState().adoptLastOrg()`,注释写明「按当下的 store 状态决定,不是这一次渲染的」。上游自带的那条用例照落(`company-store.test.ts` 一组三种情形:只有 `lastOrgKey` → 采用它;路由已设 `currentOrgKey` → **保持路由的**;两者都空 → 仍为空)。**为什么是这一条**:第四十四轮末尾写明从上游 `0e207146` 上剩下的四笔小件里挑;这一笔是全在 web 状态层、带一条现成单测、`git apply -3` 干净、不引入新依赖、不碰桌面壳 / 包名 / 流水线的最小一笔,而且本机能起真服务、用真浏览器把 Web App 装配起来核一遍(其余三笔要公司模式多组织夹具或手机宽度/频道夹具) | 六包 `typecheck` **`EXIT=0`**(六个 `Done`;`gen:ifaces` 报 **`src/ifaces.json unchanged`(189 接口 / 580 类型)**,本笔不动服务契约)· `npx oxlint` **0 警告 0 错误**(2142 文件)· `npx prettier --check .` 干净 · `git diff --check` 干净 · 逐包 test **`EXIT=0`、0 失败**:core **1395** / 6 跳过(68 文件)· ui **1021**(128)· cli **539**(37)· web **252 文件 / 3097 通过 / 2 跳过**(+1 正是本笔新增的那条)· server **196 文件 / 2826 通过 / 4 跳过** · hmr 无测试文件 · **反证(单测)**:把 `company.tsx` 换回 `HEAD` 那一版、只跑 `test/company-store.test.ts` → **1 失败 18 通过**(新用例在旧代码上 `store.getState().adoptLastOrg is not a function`,即这个方法与这条路径确实是本笔引入的),换回本笔 → **19 全过** · **真界面看一眼**:重建 core / server / web 产物后,一次性数据根 `/root/adelie-fork-data/r45-company`、`localhost:8972` 起真服务,Playwright(`[email protected]` + 本地 chromium-1243)用 `POST /api/auth/login`(`admin`)拿会话 cookie 打开 `/chat/new`:标题 `对话 · Adelie`、侧栏与空态正常渲染,**console 0 error**、登录后没有一条 ≥400 的响应(截图 `r45/home.png` 在 scratchpad);改前/改后两态的具体组织场景要公司模式的多组织夹具,本轮没造,逻辑那一半由上面那条单测与反证钉住 · 端口只用 8972,3003 / 3004 / 4000 / 7364 / 7369 一个没碰 | 见本行提交 |-| 2026-10-12 | 5.25 | **远程控制的「启用连接」开关置灰时,点击会说明先做什么**(上游 `7e97d50b` `#1029` 移植,照改动落、不是合分支;9 文件 / +282 −45,含 changelog 一对):门分成两种 —— 原来一个 `toggleBlocked` 管两件事,现在 `toggleBusy`(保存或切换在飞时才**原生 `disabled`**)与 `enableGate`(前提没满足,开关只**看起来**置灰:`aria-disabled="true"` + `cursor-not-allowed opacity-60` + `aria-describedby` 指向那行提示,**不挂原生 `disabled`**,因此点得下去)。点击不向服务器发任何请求,而是把那句话弹成提示消息(该行还亮着时不重复弹)、把提示行转成告警色 `HINT_EMPHASIS_MS = 1500`,再按 `focus` 把焦点移到该补的地方:微信 / QQ 移到扫码区(`FOCUSABLE` 里第一个可聚焦元素)、飞书 / Telegram 移到第一个空的凭证字段(都填了就移到保存按钮)、表单有未保存修改时移到保存按钮、另一个渠道占着连接时**不动焦点**(那不在这个表单上)。判定收成导出的纯函数 **`enablePrerequisite()`**(已启用 → `null`,即**停用永不被门挡住**;否则按「别的渠道占着 > 没有已保存凭证 > 有未保存修改」取最强的一条),`credentialMissingHint` 因此按渠道措辞(微信「先扫码绑定微信,再启用连接」——原来那句写错了,微信只能扫码),保存按钮的 id 由 `useId` 生成(同一个 Session 上同时开着对话框与停靠面板不会串)。上游自带的新用例照落(四种渠道 × 各条理由与优先级、以及「`aria-disabled` 且没有原生 `disabled`」的渲染断言) | 六包 `typecheck` **`EXIT=0`**(六个 `Done`;`gen:ifaces` 报 **`src/ifaces.json unchanged`(189 接口 / 580 类型)**,本笔不动服务契约)· `npx oxlint` **0 警告 0 错误**(2142 文件)· `npx prettier --check .` 干净 · `git diff --check` 干净 · 逐包 test **`EXIT=0`、0 失败**:core **1395** / 6 跳过(68 文件)· ui **1021**(128)· cli **539**(37)· web **252 文件 / 3098 通过 / 2 跳过**(+1 正是本笔新用例)· server **196 文件 / 2826 通过 / 4 跳过** · 另跑 `@lmliheng/penguin-docs` **62 通过**(8 文件,本笔改了它的两份内容)· hmr 无测试文件 · **反证(单测)**:把 `messaging-binding-editor.tsx` 换回 `HEAD` 那一版、只跑 `test/messaging-binding-editor.test.ts` → **2 failed / 21 passed**(`enablePrerequisite` 不是函数、「置灰的开关仍可点」那条也挂),换回本笔 → **23 全过** · **真界面看两态(本轮主证据)**:重建 web 产物后,一次性数据根 `/root/adelie-fork-data/r46-agent`、`localhost:8973` 起真服务(会话行由 sqlite 写入 `default_project`——这个根没有模型 key,`POST …/sessions` 会被 `model_credential_missing` 退回,即 3.6 那个卡点),Playwright(`[email protected]` + 本地 chromium-1243)拿 `POST /api/auth/login` 的 cookie 打开 `/chat/<会话>`、点「右侧栏」→「远程控制」、选中**飞书**渠道:改动后开关 `role="switch"`、**`disabled` 为 false**、`aria-disabled="true"`、`aria-describedby` 指向 `_r_14_-enable-hint`、类名带 `cursor-not-allowed opacity-60`,提示行「先填写 App ID 与 App Secret 并保存,再启用连接」;**点一下**——不产生任何非 GET 请求(`writes: []`)、没有一条 ≥400(`bad: []`)、那句提示在页面上从 1 处变 2 处(**提示消息弹出**)、焦点落到 `_r_14_-app-id`(**第一个空的凭证输入框**),截图 `r46/msg-final-after.png` 里能看到顶部提示消息、告警色的提示行与被聚焦的 App ID 字段;**反证(真界面)**:把本笔 7 个源码 / 文档文件全退回 `HEAD`、重建 web、同一条探针 → 开关**原生 `disabled: true`**、没有 `aria-disabled` / `aria-describedby`、提示行没有 id,`click()` 之后**什么都没发生**(无提示消息、焦点仍在按钮、无请求)· 端口只用 8973,3003 / 3004 / 4000 / 7364 / 7369 一个没碰 | `d478fa89` |+| 2026-10-12 | 5.25 | **远程控制的「启用连接」开关置灰时,点击会说明先做什么**(上游 `7e97d50b` `#1029` 移植,照改动落、不是合分支;9 文件 / +282 −45,含 changelog 一对):门分成两种 —— 原来一个 `toggleBlocked` 管两件事,现在 `toggleBusy`(保存或切换在飞时才**原生 `disabled`**)与 `enableGate`(前提没满足,开关只**看起来**置灰:`aria-disabled="true"` + `cursor-not-allowed opacity-60` + `aria-describedby` 指向那行提示,**不挂原生 `disabled`**,因此点得下去)。点击不向服务器发任何请求,而是把那句话弹成提示消息(该行还亮着时不重复弹)、把提示行转成告警色 `HINT_EMPHASIS_MS = 1500`,再按 `focus` 把焦点移到该补的地方:微信 / QQ 移到扫码区(`FOCUSABLE` 里第一个可聚焦元素)、飞书 / Telegram 移到第一个空的凭证字段(都填了就移到保存按钮)、表单有未保存修改时移到保存按钮、另一个渠道占着连接时**不动焦点**(那不在这个表单上)。判定收成导出的纯函数 **`enablePrerequisite()`**(已启用 → `null`,即**停用永不被门挡住**;否则按「别的渠道占着 > 没有已保存凭证 > 有未保存修改」取最强的一条),`credentialMissingHint` 因此按渠道措辞(微信「先扫码绑定微信,再启用连接」——原来那句写错了,微信只能扫码),保存按钮的 id 由 `useId` 生成(同一个 Session 上同时开着对话框与停靠面板不会串)。上游自带的新用例照落(四种渠道 × 各条理由与优先级、以及「`aria-disabled` 且没有原生 `disabled`」的渲染断言) | 六包 `typecheck` **`EXIT=0`**(六个 `Done`;`gen:ifaces` 报 **`src/ifaces.json unchanged`(189 接口 / 580 类型)**,本笔不动服务契约)· `npx oxlint` **0 警告 0 错误**(2142 文件)· `npx prettier --check .` 干净 · `git diff --check` 干净 · 逐包 test **`EXIT=0`、0 失败**:core **1395** / 6 跳过(68 文件)· ui **1021**(128)· cli **539**(37)· web **252 文件 / 3098 通过 / 2 跳过**(+1 正是本笔新用例)· server **196 文件 / 2826 通过 / 4 跳过** · 另跑 `@adelie/docs` **62 通过**(8 文件,本笔改了它的两份内容)· hmr 无测试文件 · **反证(单测)**:把 `messaging-binding-editor.tsx` 换回 `HEAD` 那一版、只跑 `test/messaging-binding-editor.test.ts` → **2 failed / 21 passed**(`enablePrerequisite` 不是函数、「置灰的开关仍可点」那条也挂),换回本笔 → **23 全过** · **真界面看两态(本轮主证据)**:重建 web 产物后,一次性数据根 `/root/adelie-fork-data/r46-agent`、`localhost:8973` 起真服务(会话行由 sqlite 写入 `default_project`——这个根没有模型 key,`POST …/sessions` 会被 `model_credential_missing` 退回,即 3.6 那个卡点),Playwright(`[email protected]` + 本地 chromium-1243)拿 `POST /api/auth/login` 的 cookie 打开 `/chat/<会话>`、点「右侧栏」→「远程控制」、选中**飞书**渠道:改动后开关 `role="switch"`、**`disabled` 为 false**、`aria-disabled="true"`、`aria-describedby` 指向 `_r_14_-enable-hint`、类名带 `cursor-not-allowed opacity-60`,提示行「先填写 App ID 与 App Secret 并保存,再启用连接」;**点一下**——不产生任何非 GET 请求(`writes: []`)、没有一条 ≥400(`bad: []`)、那句提示在页面上从 1 处变 2 处(**提示消息弹出**)、焦点落到 `_r_14_-app-id`(**第一个空的凭证输入框**),截图 `r46/msg-final-after.png` 里能看到顶部提示消息、告警色的提示行与被聚焦的 App ID 字段;**反证(真界面)**:把本笔 7 个源码 / 文档文件全退回 `HEAD`、重建 web、同一条探针 → 开关**原生 `disabled: true`**、没有 `aria-disabled` / `aria-describedby`、提示行没有 id,`click()` 之后**什么都没发生**(无提示消息、焦点仍在按钮、无请求)· 端口只用 8973,3003 / 3004 / 4000 / 7364 / 7369 一个没碰 | `d478fa89` || 2026-10-12 | 5.26 | **在输入框打字不再带动对话**(上游 `fc205d99` `#1052` 移植,照改动落、不是合分支;6 文件 / +113 −9,含 changelog 一对):输入框每次按键都用「把文本框收成 `height: auto`、再读 `scrollHeight`」来量高度,而这次读取会让页面按**收起的输入框**排一次版 —— 上方按输入框剩余空间定高的消息列表随之变高,停在底部的列表被浏览器夹到更高视口的较小上限;把高度写回去不会把滚动偏移还回来(列表最终尺寸没变,所以也没有 ResizeObserver 触发)。一两行草稿时,在部分主题与字号组合下(主题的小数间距单位让收起的框比它被设成的高度矮一个零头)列表滑动一个设备像素;草稿超过收起后的那两行则整行地跳,`stream-follow` 把这次跳动读成用户在向上滚动,于是流式回复不再自动滚进视野、「回到最新消息」按钮随之出现。新增纯逻辑 `packages/web/src/lib/textarea-fit.ts`(`fitTextarea(box, measure)`:测量期间把文本框的**父元素**按住当前高度,写的是 `min-height` —— 框变高时仍然推得动父元素,变小不会夹掉任何偏移;父元素高度读的是计算样式而不是 client rect,后者会被入场动画的 transform 缩放、也会被取整),`chat-input.tsx`(对话页、子智能体面板、草稿页)与 `company/channel-composer.tsx`(公司频道,边框仍照原样加回)都改用它。上游自带的新用例照落(父元素在收起测量期间被按住、测量后拿回自己的 `min-height`;没有父元素时照常定高) | 六包 `typecheck` **`EXIT=0`**(六个 `Done`;`gen:ifaces` 报 **`src/ifaces.json unchanged`(189 接口 / 580 类型)**,本笔不动服务契约)· `npx oxlint` **0 警告 0 错误**(2144 文件)· `npx prettier --check .` 干净 · `git diff --check` 干净 · 逐包 test **`EXIT=0`、0 失败**:core **1395** / 6 跳过(68 文件)· ui **1021**(128)· cli **539**(37)· web **253 文件 / 3100 通过 / 2 跳过**(+2 即本笔新文件的两条)· server **196 文件 / 2826 通过 / 4 跳过** · 新用例先单跑 `test/textarea-fit.test.ts` → **2 passed** · **真界面两态都量了(本轮主证据)**:重建 core / server / web 产物后,一次性数据根 `/root/adelie-fork-data/r47-composer` 起真服务(`localhost:8974`,配 `custom` provider 指向本仓自带的 mock LLM `packages/web/e2e/mock-llm.mjs`,所以有**真会话、真回复、真工具调用**),Playwright(`[email protected]` + 本地 chromium-1243)用 `POST /api/auth/login` 的会话 cookie 发两轮、再把草稿填成四行、把消息列表停在底部,然后**只多打一个字符**:改动后 `scrollTop` 800 → 800(**位移 0**)、仍在底部、没有「回到最新消息」按钮、console 0 error、无一条 ≥400(连跑两次同样结果);**反证(真界面)**:把 `chat-input.tsx` / `channel-composer.tsx` 退回 `HEAD` 那一版、重建 web、同一条探针 → `scrollTop` **800 → 760(位移 40px)**、`atBottom` 变 false、「回到最新消息」按钮**出现**,截图 `r47-before.png` 里能看到内容被推走与那个圆形按钮,`r47-after.png` 里没有 · 端口只用 8974(mock LLM 用 8975),3003 / 3004 / 4000 / 7364 / 7369 一个没碰 | `049563eb` || 2026-10-13 | 5.27 | **智能体面板全屏时,输入区与子会话对话对齐**(上游 `0e56dc5a` `#1050` 移植,照改动落、不是合分支;3 文件 / +82 −53,含 changelog 一对):智能体面板把所选子会话的对话排在主对话的阅读列里(居中、限宽 `max-w-3xl`),输入区却铺满整个面板 —— 停靠时两者都落在停靠栏宽度内(本机量得输入区 538px、对话列 528px),看不出差别;停靠栏**全屏**后对话仍是居中的一列(768px),输入区却横贯被覆盖的整行。`SubagentComposer`(`packages/web/src/features/chat/subagents-view.tsx`)现在把 `ChatInput` 包在同一个 `mx-auto max-w-3xl` 列里(与 `chat-page.tsx` 里主对话输入区的同一写法),注释写明「全屏的停靠栏与对话列一样宽或更宽,输入区必须与上方的消息对齐而不是铺满整个面;停靠的面板窄于这个上限,所以那里什么都不变」 | 六包 `typecheck` **`EXIT=0`**(六个 `Done`;`gen:ifaces` 报 **`src/ifaces.json unchanged`(189 接口 / 580 类型)**,本笔不动服务契约)· `npx oxlint` **0 警告 0 错误**(2144 文件)· `npx prettier --check .` 干净 · `git diff --check` 干净 · 逐包 test **`EXIT=0`、0 失败**:core **1395** / 6 跳过(68 文件)· ui **1021**(128)· cli **539**(37)· web **253 文件 / 3100 通过 / 2 跳过** · server **196 文件 / 2826 通过 / 4 跳过**(本笔不加用例,数与前一轮一致);hmr 无测试文件 · **真浏览器量改前改后两态(本轮主证据)**:重建 web 产物后,一次性数据根 `/root/adelie-fork-data/r48-agents-panel`、`localhost:8976` 起真服务,配 `custom` provider 指向本仓自带的 mock LLM(8977),所以拿到的是**真会话、真子会话**(父会话发「run a subagent」→ 真 `run_subagent` → 子会话自带一轮工具调用 + 报告);Playwright(`[email protected]` + 本地 chromium-1243)用 `POST /api/auth/login` 的会话 cookie 打开该会话、点开子会话 chip 让 `智能体面板` 停靠标签激活,再点 `dock-fullscreen`:**改动后 1440px 窗口**——输入框 `x=491 w=746`、对话列 `x=480 w=768`(输入区落在阅读列内、左侧对齐),**1920px** —— 输入框 `x=731 w=746`、对话列 `x=720 w=768`;**停靠态两边一致**(输入框 `x=883 w=538`、对话列 `x=888 w=528`,与改动前逐字相同);`console 0 error`、无一条 ≥400;**反证(真界面)**:把 `subagents-view.tsx` 退回 `HEAD` 那一版、重建 web、同一条探针 → 全屏下输入框 `x=307 w=1114`(1440px)/ `x=307 w=1594`(1920px)横贯被覆盖的整行(1152 / 1632px),对话列仍是 `x=480 w=768` / `x=720 w=768`,停靠态与改动后一致;改回来再跑一次恢复原状。截图 `r48/panel-{after,before}-{docked,fullscreen,fullscreen-1920}.png` 在 scratchpad · 端口只用 8976(mock LLM 8977),3003 / 3004 / 4000 / 7364 / 7369 一个没碰 | `d0dfc22c` || 2026-10-13 | 5.28 | **白领(Frost)主题的滚动条常显**(上游 `7527dd98` `#1070` 移植,照改动落、不是合分支;3 文件 / +26 −6,其中源码 1 个文件 +1 −6、另有 changelog 一对):白领主题是新安装、也是新装桌面应用的默认主题,此前它的滚动条**只在指针悬停于滚动区域时才出现** —— `--ui-scrollbar-visibility: hover`,外加一条 `:root[data-theme="modern"] :not(:hover) { scrollbar-color: transparent … }` 把每个未悬停元素上的滚动条滑块刷成透明;于是有嵌套滚动区的弹窗(上游的原始报告是插件详情与它里面的文件预览)看不出哪一块还能滚动。现在删掉那条规则、把 `--ui-scrollbar-visibility` 改成 `auto`(与朴素主题一致),滑块颜色仍沿用白领自己的浅色 `rgb(0 0 0 / 0.2)` / 深色 `rgb(255 255 255 / 0.16)`;改动只在 `packages/ui/src/themes/modern.css` 里,因而全应用生效,朴素 / 极客两个主题一字未动 | 六包 `typecheck` **`EXIT=0`**(六个 `Done`;`gen:ifaces` 报 **`src/ifaces.json unchanged`(189 接口 / 580 类型)**,本笔不动服务契约)· `npx oxlint` **0 警告 0 错误**(2144 文件)· `npx prettier --check` 干净(主题文件与两份 changelog)· `git diff --check` 干净 · 逐包 test **`EXIT=0`、0 失败**:core **1395** / 6 跳过(68 文件)· ui **1021**(128)· cli **539**(37)· web **253 文件 / 3100 通过 / 2 跳过** · server **196 文件 / 2826 通过 / 4 跳过**(本笔不加用例 —— 改的是 CSS,上游也没带用例;数与前一轮逐项一致);hmr 无测试文件 · **真浏览器量改前改后两态(本轮主证据)**:重建 web 产物后,一次性数据根 `/root/adelie-fork-data/r49-frost-scrollbars`、`localhost:8978` 起真服务(`PENGUIN_HOME` + `PENGUIN_PROFILE=dev` + `ADELIE_SEED_ADMIN_PASSWORD`),Playwright(`[email protected]` + 本地 chromium-1243)用 `POST /api/auth/login` 的 cookie 打开页面、把主题置成白领(`html[data-theme="modern"]`,`dataset.theme` 实测就是 `modern`),**指针停在 (2,2)**(远离被测滚动区)读每个真溢出容器的 `scrollbar-color`:**改动后** —— 浅色 `rgba(0, 0, 0, 0.2) rgba(0, 0, 0, 0)`(`/models` 与 `/plugins` 两个 857px 高的滚动区,`--ui-scrollbar-visibility` 读出 `auto`)、深色 `rgba(255, 255, 255, 0.16) rgba(0, 0, 0, 0)`,悬停与不悬停**同值**;**反证(真界面)**:把 `modern.css` 退回 `HEAD`、重建 web、同一条探针 → 不悬停 `rgba(0, 0, 0, 0)`(滑块全透明,`--ui-scrollbar-visibility` 读出 `hover`)、悬停浅色 `rgba(0, 0, 0, 0.2)` / 深色 `rgba(255, 255, 255, 0.16)`;构建产物里改动后是 `--ui-scrollbar-visibility:auto` 与 `:not(:hover)` 规则 0 处,改动前是 `hover` 与 1 处;扫过 `/models`、`/plugins`、`/benchmark` 三页,`console 0 error`、无一条 ≥400;截图 `r49/frost-{after,before}-{models,plugins,benchmark}.png` 在 scratchpad · 端口只用 8978,3003 / 3004 / 4000 / 7364 / 7369 一个没碰 | `542545cd` || 2026-10-13 | 5.29 | **回复中的波浪号按原样显示、不再渲染删除线**(上游 `362c9997` `#1017` 移植,照改动落、不是合分支;7 文件 / +211 −5,其中源码 2 个(含 1 个新文件)、用例 2 个、另有 changelog 一对):GFM 把一或两个 `~` 夹住的文字读成删除线,而回复里的 `~` 多用来表示范围(`3~5 天`、`10~20%`)或「大约」(`~30 秒`),同一段里出现两个就把中间整段划掉。新增 `packages/ui/src/components/content/prose/remark-literal-tildes.ts`(`literalStrikethrough` 就地遍历 mdast,把每个 `delete` 节点换成「开头波浪号 + 原本解析出来的子节点 + 结尾波浪号」;波浪号按**源码里的偏移**读,`markerAt` 保证 `~` 是一个、`~~` 是两个),`markdown-plugins.ts` 的 `REMARK_PLUGINS` 在 `remarkGfm` 之后注册它(注释写明为什么)—— 对话 / Trace / 插件页 / 文件预览都走这条共享管线;服务端 `runtime/messaging/markdown.ts` 的 `parseMarkdown` 在同一位置跑同一遍(同文件内的一份实现),飞书 / Telegram / QQ / 微信四个渲染器因此看到的是纯文本。用例照落:ui 新增 `test/remark-literal-tildes.test.ts` 四条(范围 + 大约不再划掉、单双标记按原样、夹在中间的 `**加粗**` 与 `` `代码` `` 保留、表格与任务列表照常),server 的 `messaging-markdown.test.ts` 新增两条(`a ~~**gone**~~ b ~c~` 解析后**没有 `delete` 节点**、中间的 `strong` 还在;四个渠道都按原样显示)并把四条只断言「`~~s~~` 原样透传」的旧断言改成不带删除线的写法。GFM 其余部分(表格、任务列表、自动链接、脚注)不变;自撰页面的文档站与博客不在这条管线里 | 六包 `typecheck` **`EXIT=0`**(六个 `Done`;`gen:ifaces` 报 **`src/ifaces.json unchanged`(189 接口 / 580 类型)**,本笔不动服务契约)· `npx oxlint` **0 警告 0 错误**(2146 文件)· `npx prettier --check .` 干净 · `git diff --check` 干净 · 逐包 test **`EXIT=0`、0 失败**:core **1395** / 6 跳过(68 文件)· ui **1025**(129 文件,+1 文件 +4 用例)· cli **539**(37)· web **253 文件 / 3100 通过 / 2 跳过** · server **196 文件 / 2828 通过 / 4 跳过**(+2 即本笔新用例);hmr 无测试文件 · **真浏览器看改前改后两态(本轮主证据)**:重建 core / server / web 产物后,一次性数据根 `/root/adelie-fork-data/r50-tilde`、`localhost:8952` 起真服务,配 `custom` provider 指向 scratchpad 里的小 mock(`r50/mock-tilde.mjs`,8951,Anthropic SSE —— 免模型 key,拿到的是**真会话、真回复**);Playwright(`[email protected]` + 本地 chromium-1243)用 `POST /api/auth/login` 的 cookie 打开 `/chat/<会话>` 发一条,读 `.md-body` 的渲染:**改动后**三段分别是 `<p>需要 3~5 天,每次约 ~30 秒。</p>`、`<p>误差约 10~20%,整段耗时 ~30 秒。</p>`、`<p>~~<strong>这一段</strong>曾经会被划掉~~</p>`,**`del` 元素 0 个**;**反证(真界面)**:把 `markdown-plugins.ts` 退回 `HEAD`(去掉注册)、重建 web、同一条探针 → 第三段变成 `<p><del><strong>这一段</strong>曾经会被划掉</del></p>`,**`del` 1 个**;两态的 console 都只有一条 error —— `GET /api/projects/…/machines` 的 **403**(非 admin 的测试账号,改动前后同样出现,与本笔无关);截图 `r50/after-final.png` 与 `r50/before2.png` 在 scratchpad · 端口只用 8951(mock)/ 8952,3003 / 3004 / 4000 / 7364 / 7369 一个没碰 | `c6e849bb` || 2026-10-13 | 5.30 | **创建组织时在组织的锁内写入目录布局**(上游 `10b43edc` `#957` 移植,照改动落、不是合分支;4 文件 / +124 −44,其中源码 1 个文件 +61 −44、用例 1 个文件 +54、另有 changelog 一对):`OrganizationService.create()` 把「写目录布局(骨架、`org_config.toml`、`org_chart.yaml`、手册)+ 建 CEO 的 Agent」整片从加锁前搬进 `scheduler.withLock(projectId, orgId, …)`;删除组织把目录移进回收站时持的正是同一把锁,于是两者串行 —— 落在「创建写出第一个文件」与「加锁」之间那几毫秒里的一次删除不再能把写了一半的目录移走、让创建继续在一份已不存在的配置旁写图表与手册(那会留下一个任何列表都不显示的目录、一个占着该 id 的 CEO Agent,并给调用者一个「未找到」)。前置检查(`orgId` 形状、使命、时区、`store.exists` 空闲)仍在锁外;失败分支 `catch { store.remove(dir); throw }` 原样留在锁内。新用例把竞态开成**确定性的**(包一层 `withLock` 记「是否已在锁内」、`writeConfig` 第一次写入时触发 `service.delete`、未加锁时把创建按在回收站 rename 落地之后) | 六包 `typecheck` **`EXIT=0`**(六个 `Done`;`gen:ifaces` 报 **`src/ifaces.json unchanged`(189 接口 / 580 类型)**,本笔不动服务契约)· `npx oxlint` **0 警告 0 错误**(2146 文件)· `npx prettier --check .` 干净 · `git diff --check` 干净 · 逐包 test **`EXIT=0`、0 失败**:server **196 文件 / 2829 通过 / 4 跳过**(**+1 正是本笔新增的那一条**;`organization-runtime.test.ts` 95 条全绿)· core **1395** / 6 跳过(68 文件)· ui **1025**(129 文件)· cli **539**(37 文件)· web **253 文件 / 3100 通过 / 2 跳过** · hmr 无测试文件 · **反证(新用例真的钉住行为)**:`git checkout HEAD -- packages/server/src/runtime/organization/service.ts` 换回改动前那一版、只跑 `test/organization-runtime.test.ts` → **1 failed / 94 passed**,红的正是 `expect(existsSync(orgDir())).toBe(false)`(旧代码留下那个半成品目录);把本笔换回去 → **95 全过** · 本笔**不碰界面**,因此没起服务、没开浏览器,端口一个没动,写入只落在临时目录 | `8a96b8b0` |-| 2026-10-13 | 5.31 | **实时流无声断开时页面自行续接、卡住的写切断连接**(上游 `99dacb54` `#1026` 移植,照改动落、不是合分支;15 文件 / +586 −37,其中源码 4 个(`server/src/app.ts` +16、`server/src/http/sse.ts` +34 −12、`server/src/index.ts` +5 −2、`web/src/api/sse.ts` +83 −21)、文档 2、既有用例 2、新用例 2(服务端 `sse-wire.test.ts` 89 行、web 的 `sse.test.ts` 102 行)、新测试助手 1(`web/test/helpers/event-source.ts`)、新 e2e 1(`web/e2e/stream-stall.spec.mjs` 136 行),另有 changelog 一对):两侧的根因各一条 —— ① 客户端过去就是一个裸 `EventSource`,服务端 20 秒一次的 `: ping` 是**注释行、浏览器不会交给页面**,半开的 TCP / 卡住的代理或 NAT / 休眠换网的笔记本**永远不触发 `onerror`**,页面就一直停在最后一帧(Agent 在服务端照跑,刷新才追得上);② 服务端把写入串在一条 promise 链上,对端停止读取时 socket 写满、写入挂起,之后每个事件与心跳都堆在它后面(没有上限),而 hono 流的 `close()` 也排在同一个挂起写入之后 —— **只有 socket 能了结它**。现在:服务端心跳改成**有名事件** `ping`(`data: {}`、无 `id:` 行,初始事件之后立即发、之后每 20 秒一次,既不移动客户端的 `Last-Event-ID` 也不移动重放游标),`createApp` 给每个 `text/event-stream` 响应的 socket 设 **`STREAM_IDLE_MS = 40 秒`** 空闲超时到点 `destroy()`(活跃的流每 20 秒一写、绝不会静默这么久,只有对端不读了才会;Node 会让第一次到点在有挂起写入时先放过,所以卡住的写 40–80 秒内被切),`/api/sessions/:id/stream` 与 `/api/events` 在无 `Last-Event-ID` 头时接受 `?lastEventId=`(页面自己开的 EventSource 设不了头;两个都在时头为准),`index.ts` 把 Node bindings 传给 `app.fetch`(`c.env` 不跨 HMR 缝进路由,所以只有宿主拿得到 socket);Web 侧(`api/sse.ts`)在收到过 `ping` 之后,**50 秒无任何事件即认定已死**:关掉、带 `?lastEventId=<最后见到的 id>` 新开一条(服务端据此重放,id 离开缓冲区则回 `resync_required`,调用方两条路本来都处理),标签页重新可见时立即检查一次,一次订阅只持一条 EventSource;从不发 `ping` 的服务器与浏览器已放弃的流都保持原样。**本地化**:新用例里 `@prismshadow/penguin-core` → 本仓 `@lmliheng/penguin-core`(唯一一处 scope),changelog 改名到本轮日期、去掉上游 PR 行、写明移植来源并补一节「兼容性」(旧服务器/新页面、新服务器/旧页面、磁盘无变化) | 六包 `typecheck` **`EXIT=0`**(六个 `Done`;`gen:ifaces` 报 **`src/ifaces.json unchanged`(189 接口 / 580 类型)**,本笔不动服务契约)· `npx oxlint` **0 警告 0 错误**(2150 文件)· `npx prettier --check .` 干净 · `git diff --check` 干净 · 逐包 test **`EXIT=0`、0 失败**:core **1395** / 6 跳过(68 文件)· ui **1025**(129)· cli **539**(37)· server **197 文件 / 2832 通过 / 4 跳过**(**+1 文件 +3 用例**:新 `sse-wire.test.ts` 1 条、`sse-stream.test.ts` 的 ping 与 `?lastEventId=` 重放)· web **254 文件 / 3106 通过 / 2 跳过**(**+1 文件 +6 用例**,即新 `sse.test.ts`)· hmr 无测试文件 · **反证一(单测,改前源码)**:把四个源码文件退回 `HEAD`、只跑那两条服务端用例 → **2 文件失败 / 4 failed · 4 passed(8 条)**(`sse-wire` 红在 `expect(socket.destroyed).toBe(true)` 收到 `false`,`sse-stream` 红在开头的 ping 与 `?lastEventId=` 重放);只跑 `web/test/sse.test.ts` → **2 failed · 4 passed(6 条)**(「静默重开」与「重新可见即刻重开」两条,与上游记录的失败面一致);换回本笔 → 服务端 **8 条全过**、web **6 条全过** · **本轮主证据(e2e,真服务端 + 真浏览器 + 真 TCP 中继)**:按仓库自带 `web/e2e/run.sh` 的形状(重建 core / server / web 产物,`MOCK_PORT=8931` 起自带 mock LLM,`SRV_PORT=8930`、一次性数据根起真服务)跑新 e2e `stream-stall.spec.mjs` —— 中继在回复中途吞掉 Session 流的字节而不关闭连接,运行在服务端跑完、页面时钟跳过静默窗口,页面必须**从最后一个事件自行重连、把整段回复恰好显示一次**:`stream-stall` **✓ 9.6s**;与 `reload-midstream.spec.mjs` 一起跑 **3 passed(40.8s)**、`E2E_EXIT=0` · **反证二(e2e,改前客户端)**:把 `web/src/api/sse.ts` 退回 `HEAD`、重建 web、重跑同一条 → **1 failed**,误差正是上游报的那一条:`Expected substring: "chunk-40"`、`Received string: "chunk-1 chunk-2 chunk-3 chunk-4 chunk-5▌"`;换回本笔、重建 web,恢复 `ALL-IDENTICAL` · 本轮**不碰桌面壳 / 包名 / 流水线**,端口只用 8930 / 8931,3003 / 3004 / 4000 / 7364 / 7369 一个没碰 | 见本行提交 |+| 2026-10-13 | 5.31 | **实时流无声断开时页面自行续接、卡住的写切断连接**(上游 `99dacb54` `#1026` 移植,照改动落、不是合分支;15 文件 / +586 −37,其中源码 4 个(`server/src/app.ts` +16、`server/src/http/sse.ts` +34 −12、`server/src/index.ts` +5 −2、`web/src/api/sse.ts` +83 −21)、文档 2、既有用例 2、新用例 2(服务端 `sse-wire.test.ts` 89 行、web 的 `sse.test.ts` 102 行)、新测试助手 1(`web/test/helpers/event-source.ts`)、新 e2e 1(`web/e2e/stream-stall.spec.mjs` 136 行),另有 changelog 一对):两侧的根因各一条 —— ① 客户端过去就是一个裸 `EventSource`,服务端 20 秒一次的 `: ping` 是**注释行、浏览器不会交给页面**,半开的 TCP / 卡住的代理或 NAT / 休眠换网的笔记本**永远不触发 `onerror`**,页面就一直停在最后一帧(Agent 在服务端照跑,刷新才追得上);② 服务端把写入串在一条 promise 链上,对端停止读取时 socket 写满、写入挂起,之后每个事件与心跳都堆在它后面(没有上限),而 hono 流的 `close()` 也排在同一个挂起写入之后 —— **只有 socket 能了结它**。现在:服务端心跳改成**有名事件** `ping`(`data: {}`、无 `id:` 行,初始事件之后立即发、之后每 20 秒一次,既不移动客户端的 `Last-Event-ID` 也不移动重放游标),`createApp` 给每个 `text/event-stream` 响应的 socket 设 **`STREAM_IDLE_MS = 40 秒`** 空闲超时到点 `destroy()`(活跃的流每 20 秒一写、绝不会静默这么久,只有对端不读了才会;Node 会让第一次到点在有挂起写入时先放过,所以卡住的写 40–80 秒内被切),`/api/sessions/:id/stream` 与 `/api/events` 在无 `Last-Event-ID` 头时接受 `?lastEventId=`(页面自己开的 EventSource 设不了头;两个都在时头为准),`index.ts` 把 Node bindings 传给 `app.fetch`(`c.env` 不跨 HMR 缝进路由,所以只有宿主拿得到 socket);Web 侧(`api/sse.ts`)在收到过 `ping` 之后,**50 秒无任何事件即认定已死**:关掉、带 `?lastEventId=<最后见到的 id>` 新开一条(服务端据此重放,id 离开缓冲区则回 `resync_required`,调用方两条路本来都处理),标签页重新可见时立即检查一次,一次订阅只持一条 EventSource;从不发 `ping` 的服务器与浏览器已放弃的流都保持原样。**本地化**:新用例里 `@prismshadow/penguin-core` → 本仓 `@adelie/core`(唯一一处 scope),changelog 改名到本轮日期、去掉上游 PR 行、写明移植来源并补一节「兼容性」(旧服务器/新页面、新服务器/旧页面、磁盘无变化) | 六包 `typecheck` **`EXIT=0`**(六个 `Done`;`gen:ifaces` 报 **`src/ifaces.json unchanged`(189 接口 / 580 类型)**,本笔不动服务契约)· `npx oxlint` **0 警告 0 错误**(2150 文件)· `npx prettier --check .` 干净 · `git diff --check` 干净 · 逐包 test **`EXIT=0`、0 失败**:core **1395** / 6 跳过(68 文件)· ui **1025**(129)· cli **539**(37)· server **197 文件 / 2832 通过 / 4 跳过**(**+1 文件 +3 用例**:新 `sse-wire.test.ts` 1 条、`sse-stream.test.ts` 的 ping 与 `?lastEventId=` 重放)· web **254 文件 / 3106 通过 / 2 跳过**(**+1 文件 +6 用例**,即新 `sse.test.ts`)· hmr 无测试文件 · **反证一(单测,改前源码)**:把四个源码文件退回 `HEAD`、只跑那两条服务端用例 → **2 文件失败 / 4 failed · 4 passed(8 条)**(`sse-wire` 红在 `expect(socket.destroyed).toBe(true)` 收到 `false`,`sse-stream` 红在开头的 ping 与 `?lastEventId=` 重放);只跑 `web/test/sse.test.ts` → **2 failed · 4 passed(6 条)**(「静默重开」与「重新可见即刻重开」两条,与上游记录的失败面一致);换回本笔 → 服务端 **8 条全过**、web **6 条全过** · **本轮主证据(e2e,真服务端 + 真浏览器 + 真 TCP 中继)**:按仓库自带 `web/e2e/run.sh` 的形状(重建 core / server / web 产物,`MOCK_PORT=8931` 起自带 mock LLM,`SRV_PORT=8930`、一次性数据根起真服务)跑新 e2e `stream-stall.spec.mjs` —— 中继在回复中途吞掉 Session 流的字节而不关闭连接,运行在服务端跑完、页面时钟跳过静默窗口,页面必须**从最后一个事件自行重连、把整段回复恰好显示一次**:`stream-stall` **✓ 9.6s**;与 `reload-midstream.spec.mjs` 一起跑 **3 passed(40.8s)**、`E2E_EXIT=0` · **反证二(e2e,改前客户端)**:把 `web/src/api/sse.ts` 退回 `HEAD`、重建 web、重跑同一条 → **1 failed**,误差正是上游报的那一条:`Expected substring: "chunk-40"`、`Received string: "chunk-1 chunk-2 chunk-3 chunk-4 chunk-5▌"`;换回本笔、重建 web,恢复 `ALL-IDENTICAL` · 本轮**不碰桌面壳 / 包名 / 流水线**,端口只用 8930 / 8931,3003 / 3004 / 4000 / 7364 / 7369 一个没碰 | 见本行提交 || 2026-10-13 | 5.32 | **沙盒里不加限制的文件写入模式改称「完全访问」**(上游 `b24f3099` `#1021` 移植,照改动落、不是合分支;5 文件 / +27 −7,其中源码 2 个文件(`settings-store.ts` +4 −4、`settings-status.ts` +2 −2)、既有断言 1 个文件 +1 −1、另有 changelog 一对):`danger-full-access` 这个「不加任何限制」的文件写入选项,显示名由 **「关闭(完全访问)」/ "Off (full access)"** 改成 **「完全访问」/ "Full access"** —— 旧名在预设表的「文件」格子里会折成两行(上游的理由就是「太长」),而且没有别处用这个名字;权限菜单与预设一直叫「完全访问」,本次是向它们看齐。「文件」列的 `description`/`descriptionZh` 与「没有可用沙盒后端」提示(「除「关闭」外…」→「除「完全访问」外…」)也改用同一个名字。**存的值一字未动**(`danger-full-access`),只有显示名变了;同一个 `network` 列本来就用 "Full access"。**本地化**:无(这一笔只有中英文案,本仓没有额外引用点 —— 全仓扫描确认 `packages/` 之外只有台账自己的历史记录还写着旧名) | 六包 `typecheck` **`EXIT=0`**(六个 `Done`;`gen:ifaces` 写入 `src/ifaces.json`(189 接口 / 580 类型)—— 它是 gitignore 的生成物,本轮不因此改契约)· `npx oxlint` **0 警告 0 错误**(2150 文件)· `npx prettier --check .` 干净 · `git diff --check` 干净 · 逐包 test **`EXIT=0`、0 失败**:core **1395** / 6 跳过(68 文件)· ui **1025**(129)· cli **539**(37)· server **197 文件 / 2832 通过 / 4 跳过**(数与上一轮逐项一致 —— 本笔只改一条既有断言)· web **254 文件 / 3106 通过 / 2 跳过** · hmr 无测试文件 · **反证(单测,改前源码)**:把两个源码文件退回 `HEAD`、只跑 `test/sandbox-settings.test.ts` → **1 failed / 6 passed(7 条)**,红的正是那条 `notices` 断言(收到 `…every mode but Off…`);换回本笔 → **7 全过** · **真界面看改前改后两态(本轮主证据)**:重建 server 产物后,一次性数据根 `/root/adelie-fork-data/r53-sandbox`、`localhost:8981` 起真服务(`PENGUIN_PROFILE=dev` + `ADELIE_SEED_ADMIN_PASSWORD`),Playwright(`[email protected]` + 本地 chromium-1243)用 `POST /api/auth/login` 的 cookie 打开 `/chat` → 账号菜单 → 设置 → 「插件」页,`PUT /api/admin/plugin-config` 把沙盒开关打开后读沙盒卡片:**改动后**「文件」列六行分别是 完全访问 / 完全访问 / 仅工作区可写 / 只读 / 仅工作区可写 / 完全访问(`page.body.innerText` 里旧名 `关闭(完全访问)` **0 处**、提示行是「除「完全访问」外…」),console **0 error**、无一条 ≥400;**反证(真界面)**:把两个源码文件退回 `HEAD`、重建 server、重启同一数据根、同一条探针 → 「文件」列出现 **`关闭(完全访问)`**(3 处,格子里折成「关闭(完全访」/「问)」两行)、提示行是「除「关闭」外…」,截图 `before/04-plugins.png` 与 `after/04-plugins.png` 都在 scratchpad · 端口只用 8981,3003 / 3004 / 4000 / 7364 / 7369 一个没碰 | 见本行提交 || 2026-10-14 | 5.33 | **频道保留你还没发出的消息**(上游 `7ecb60e1` `#810` 移植,照改动落、不是合分支;7 文件 / +450 −3,其中新源码 1 个(`channel-draft.ts` 98 行)、既有源码 3 个(`channel-composer.tsx` +21 −3、`channel-view.tsx` +15 −2、`install-scope.ts` +6)、新用例 1 个(`test/channel-draft.test.ts` 59 行)、e2e 1 个(`company.spec.mjs` +20),另有 changelog 一对):频道的输入框过去把没发出的文字只放在组件状态里,换频道 / 去工位 / 刷新都会丢;对话里的未发送输入自草稿缓存落地起就有缓存,频道输入框一直没跟上。新增 `features/company/channel-draft.ts`:键是「用户 × 项目 × 组织 × 频道」(`penguin.channelDraft.…`),存储助手复用对话草稿那一套(`loadDraft` / `saveDraft` / `clearDraft`),写策略照 `use-session-draft.ts` —— 300 毫秒防抖、切换频道或卸载时把待写的编辑补写一次、清空输入框就删键、发送成功先取消待写再清(否则会把刚发出去的文本写回来)。`ChannelComposer` 多收 `initialText` / `onTextChange`(初始 caret 落在末尾),`channel-view.tsx` 用 `useChannelDraft` 并按草稿键 `key` 重挂 composer —— 回到该频道文字在原处、别的频道不继承。`install-scope.ts` 的 `KEY_RULES` 加一条 `penguin.channelDraft.`(install 作用域,与对话草稿并列),否则既有的 `install-scope.test.ts` 会红。**本地化**:无(新文件只 import 相对路径,全仓无 `@prismshadow/` 引用点;changelog 按本仓写法改名到本轮日期、去掉上游 PR 行、写明移植来源) | 六包 `typecheck` **`EXIT=0`**(六个 `Done`;`gen:ifaces` 报 **`src/ifaces.json unchanged`(189 接口 / 580 类型)**,本笔不动服务契约)· `npx oxlint` **0 警告 0 错误**(2152 文件)· `npx prettier --check .` 干净 · `git diff --check` 干净 · 逐包 test **`EXIT=0`、0 失败**:core **1395** / 6 跳过(68 文件)· ui **1025**(129)· cli **539**(37)· server **197 文件 / 2832 通过 / 4 跳过** · web **255 文件 / 3110 通过 / 2 跳过**(**+1 文件 +4 用例**,即新 `channel-draft.test.ts`)· hmr 无测试文件 · **反证一(单测,改前源码)**:把 `install-scope.ts` 退回 `HEAD`、其余不动,跑 web 全套 → **1 failed / 3109 passed**,红的正是那条既有断言:`penguin.channelDraft. (packages/web/src/features/company/channel-draft.ts) is missing from KEY_RULES`;把本笔换回去 → `test/channel-draft.test.ts` + `test/install-scope.test.ts` **24 条全过** · **本轮主证据(真服务端 + 真浏览器,改前改后两态)**:一次性数据根 `/root/adelie-fork-data/r54-channel-a`、`localhost:8991` 起真服务(`ADELIE_PROFILE=dev` + `ADELIE_SEED_ADMIN_PASSWORD`),`POST /api/auth/login` 拿 cookie;`PUT /api/admin/settings {companyMode:true}` → `POST …/organizations {orgId:acme}` → `POST …/channels {channelId:site,name:Site launch}` 造出一个真组织与两个真频道,Playwright(仓库 pnpm store 里的 `[email protected]` + 本地 chromium-1243)按 `/org/default_project/acme/channels/<id>` 走查四个行为:**改动后** 初始空且无键 → 在 `site` 打「还没写完的一句」→ localStorage 出现 `penguin.channelDraft.admin.default_project.acme.site` → 切到「全员频道」输入框**空**且草稿键只有 site 那一条 → 回到 site 文字**还在** → **刷新后还在**(截图 `after2/04-reloaded.png`)→ 清空输入框后**键被删掉**;console **0 error**、无一条 ≥400。**反证二(真界面,改前源码)**:把 `channel-view.tsx` / `channel-composer.tsx` 退回 `HEAD`、`channel-draft.ts` 移出树外,重建 web 产物后同一条探针 → 打字后 **localStorage 里一个 `penguin.channelDraft.` 键都没有**,切频道回来为**空**、刷新后仍为**空**(截图 `before/…`);把三份文件放回、重建 web、同一条探针 → 四个行为全部恢复(`after2/` 那一轮)。**仓库自带的 `company.spec.mjs` 没跑通**:它在第 93 行就红(对话框里 CEO 预算的默认值是 700,而这一笔的断言写的是 100),那是**本树与上游早就在的差异**、与本笔无关,因此新增的那段草稿 e2e 步骤(在更后面)没走到 —— 四个行为改由上面那条探针覆盖(上游作者同样把这段 e2e 标为「没跑」)· 端口只用 8991(另有 e2e 试用过的 8932/8933,用完即停),3003 / 3004 / 4000 / 7364 / 7369 一个没碰 | 见本行提交 || 2026-10-14 | 5.34 | **手机上的频道消息有了足够的宽度**(上游 `9eae0a2d` `#826` 移植,照改动落、不是合分支;5 文件 / +91 −17,其中源码 2 个(`channel-bubble.css` +22、`channel-bubble.tsx` +33 −17)、既有用例 1 个 +16 −2、另有 changelog 一对):手机上气泡过去最多占列宽的 **75%**、时间戳**另占一栏**(`flex items-end` 里 `shrink-0` 的那个 span),两者叠加把中文挤到每行七八个字。现在气泡的类名改成 `relative max-w-[88%] px-3 py-1.5 text-base leading-relaxed sm:max-w-[75%] sm:text-sm`(窄屏 88% 与 `text-base`,`sm` 及以上照旧 75% 与 `text-sm`),时间戳改成 `absolute bottom-1.5 right-3` 收在气泡右下角,正文在最后一行上给它留出一段行内空隙 —— `channel-bubble.css` 新增 `--channel-time-gap: 2.75rem`,末尾段落 / 列表最后一项 / 引用最后一行以 `::after` 的 `inline-block` 空隙收尾(`pre` / `table` 这类无法以空隙收尾的块改成 `margin-bottom: 1.125rem` 把那一行让到下面);`footer != null` 时另渲染一个 `.channel-time-gap` 元素跟在 chip 行之后(那时 `::after` 够不到)。代码注释写明「时间收在角落、正文最后一行给它留位」的缘由。**本地化**:无(这一笔全在 `packages/ui` 内,无跨包 import、无 scope 引用点;changelog 按本仓写法改名到本轮日期、去掉上游 PR 行、写明移植来源与「接口 / 线上格式 / 已存数据都没变」) | 六包 `typecheck` **`EXIT=0`**(六个 `Done`;`gen:ifaces` 报 **`src/ifaces.json unchanged`(189 接口 / 580 类型)**,本笔不动服务契约)· `npx oxlint` **0 警告 0 错误**(2152 文件)· `npx prettier --check .` 干净 · `git diff --check` 干净 · 逐包 test **`EXIT=0`、0 失败**:core **1395** / 6 跳过(68 文件)· ui **1025**(129 文件,本笔改的是既有那条 class 断言、未增用例)· cli **539**(37)· server **197 文件 / 2832 通过 / 4 跳过** · web **255 文件 / 3110 通过 / 2 跳过** · hmr 无测试文件 · **本轮主证据(真服务端 + 真浏览器,改前改后两态,iPhone 13 宽 390px)**:重建 web 产物后,一次性数据根 `/root/adelie-fork-data/r55-bubble`、`localhost:8981` 起真服务(`ADELIE_PROFILE=dev` + `ADELIE_SEED_ADMIN_PASSWORD`),`POST /api/auth/login` 拿 cookie;`PUT /api/admin/settings {companyMode:true}` → `POST …/organizations {orgId:acme}` → `POST …/channels {channelId:site}` 造出真组织与真频道,再**手写** `channels/site/<日期>.jsonl` 里三行真消息(短句 / 63 字长句 / 一条带 `refs.ticket` 的)—— 不需要模型 key(即 3.6 那个卡点)。Playwright(`[email protected]` + 本地 chromium-1243,`--no-sandbox`,`isMobile` + 390×844 + DPR 2)打开 `/org/default_project/acme/channels/site`,逐气泡量「占列宽比 / 正文宽 / 字号 / 折行数 / 时间戳位置 / 与最后一行文字和 chip 的关系」——**改动后**:#0 短句 196px(列宽 362px 的 **54.1%**)、正文 16px、时间 `absolute` 停在 x=331 而最后一行文字到 318(**挨着字、不压字**);#1 长句 319px = **88%**、正文 **295px**、**4 行**、时间贴在最后一行末尾;#2 带 refs 的一条 chip 右缘 315、时间 x=331(**让开了 chip**)、`channel-time-gap` **存在**。两态 console 各 **0 error**、无一条 ≥400。**反证(真界面,改前源码)**:`git checkout HEAD -- packages/ui` + 重建 web + 重启同一数据根 + **同一条探针** → #0 175px(48.4%)、正文 112px **14px**;#1 272px = **75%**、正文 208px、**5 行**;时间戳三条都是 `static` 且 x=331(**另占一栏**)、`channel-time-gap` **不存在**;随后把三份源码放回、重建、再跑一次 → 数字与上面「改动后」逐项一致。截图 `r55/after/channel-390.png` 与 `r55/before/channel-390.png`、原始测量 `r55/{after,before}-measure.json` 都在 scratchpad · 端口只用 8981,3003 / 3004 / 4000 / 7364 / 7369 一个没碰 | `7abf1020` || 2026-10-14 | 5.35 | **窗口底部的控件的悬停提示改在上方弹出**(上游 `9f9c0df3` `#1098` 移植,照改动落、不是合分支;3 文件 / +90 −36,其中源码 1 个(`packages/ui/src/components/overlays/tooltip/tooltip.tsx` +61 −36)、既有用例 1 个(`test/tooltip.test.ts` +29,三条新用例)、另有 changelog 一对):共享的悬停提示(`data-tooltip` / `<Tooltip>`,两者共用一个 `TooltipPanel`)过去一律把面板挂在控件下方 —— `belowTrigger` 只算水平那一侧、从不看视口高度。输入框工具条里的上下文圆环贴着窗口底边(本机 1280×900 实测:圆环 847–879,离底边 **21px**),一行 26px 的提示挂下去就有一部分落到窗口外(**改前实测 `top: 887px`、下缘 913 > 900,13px 被切**)。现在 `belowTrigger(rect, viewport, height = 0)` 先算「下方剩多少 / 上方有多少」:面板高度(渲染出来的 `offsetHeight`)超过下方余量、且上方更宽裕时,改以 `bottom: viewport.height − rect.top + PANEL_GAP` **由下边缘定位**,面板向上生长 —— 不必估算文字折几行。`TooltipPanel` 因此收控件的**盒子**(`anchor`)而不是算好的位置,自己在 layout 阶段(首帧之前)量高度再定位,面板不会先闪现在下方;`PanelPosition` 的 `top` 变可选、多一个 `bottom`。放得下就仍在下方,两侧都放不下则去空间更大的一侧;`right` 那一侧(竖栏)一字未动。上游同一文件在此提交之后还有一批重构(`extra` / `data-tooltip-owned` / 末行提示),本笔**只落这一提交的语义**,两处冲突按本树的旧写法手写解决。**本地化**:无(全在 `packages/ui` 内、无跨包 import、无 scope 引用点;changelog 按本仓写法改名到本轮日期、去掉上游 PR 行、写明移植来源与「接口与已存数据都没变」) | 六包 `typecheck` **`EXIT=0`**(六个 `Done`;`gen:ifaces` 报 **`src/ifaces.json unchanged`(189 接口 / 580 类型)**,本笔不动服务契约)· `npx oxlint` **0 警告 0 错误**(2152 文件)· `npx prettier --check .` 干净 · `git diff --check` 干净 · 逐包 test **`EXIT=0`、0 失败**:core **1395** / 6 跳过(68 文件)· ui **1028**(129 文件,**+3 即本笔新用例**)· cli **539**(37)· server **197 文件 / 2832 通过 / 4 跳过** · web **255 文件 / 3110 通过 / 2 跳过** · hmr 无测试文件 · **本轮主证据(真服务端 + 真浏览器,改前改后两态)**:重建 web 产物后,一次性数据根 `/root/adelie-fork-data/r56-tooltip`、`localhost:8982` 起真服务(`ADELIE_PROFILE=dev` + `ADELIE_SEED_ADMIN_PASSWORD`),`POST /api/auth/login` 拿 cookie,再往 `web.db` 的 `sessions` 表插一行(`s-r56-tooltip`)拿到一个带输入框的真会话页(不需要模型 key,即 3.6 那个卡点)。Playwright(`[email protected]` + 本地 chromium-1243,`--no-sandbox`,1280×900)悬停**输入框工具条里的上下文圆环**并读 `[data-testid="tooltip"]`:**改动后** —— 面板的内联样式是 `bottom: 61px`(**由下边缘定位**)、落在 y **813–839**,**整块在窗口内**、离底边 61px(`cutOffBelow: false`、`clearOfBottomEdge: true`)、文字「上下文占用 0% · 0/256k」;**反证(真界面,改前源码)**:`git checkout HEAD -- packages/ui/.../tooltip.tsx` + 重建 web + **同一条探针** → 内联样式是 `top: 887px`、落在 y **887–913**,**13px 落到窗口外**(`cutOffBelow: true`);把源码放回、重建、再跑一次 → 数字与「改动后」逐项一致 · **回归对照(同一轮同一探针)**:窗口顶部的图标按钮(`下侧栏`)两态都仍是 `top: 73px`(**向下弹**,没有多余的上翻);矮窗口(1280×520)里圆环同样上翻(`bottom: 61px`)、顶部按钮同样向下 · 两态 console 各 **0 error**、无一条 ≥400 · 截图 `r56/{after,before}/ring-hover{,-crop}.png` 与 `dock-hover.png`、原始测量 `r56/{after,before,after-measure2,after-short}-measure.json`、探针 `r56/probe.mjs` 都在 scratchpad · 端口只用 8982,3003 / 3004 / 4000 / 7364 / 7369 一个没碰 | `65615e04` || 2026-10-14 | 5.36 | **跨轮次保留运行中的子智能体**(上游 `355d6b10` `#1110` 移植,照改动落、不是合分支;2 文件 / +97 −4,其中源码 1 个(`packages/web/src/features/chat/agent-topology.ts` +18 −4)、既有用例 1 个(`packages/web/test/agent-topology.test.ts` +79,两条新用例),另有 changelog 一对):后来的一条消息开启新一轮任务时,`extractTopology` 只用**最新那一轮**的切片重建图,上一轮派出去、仍在后台跑的子智能体因此整块从面板上消失(卡片、会话、耗时一起没了),而运行时仍报告它「运行中」。现在 `extractTopology` 把自己那批「运行时报告为运行中」的已加载子节点(按卡片的子会话 id 取,`tool_call` 取 `subagentSessionId`、`subagent` 取 `sessionId`,`liveStates.get(id) === true`)作为第三批 items 交给 `extractFromSlice`,后者在切完最新那一轮之后再 walk 一遍这批 —— 于是它在最新一轮的子节点旁边保留原有卡片与自己那条会话,任务一结束(`liveStates` 转 false)就不再进图;`extractTopologyForChild` 不传这一批,显式的历史 chip 选择仍只显示那一轮(同名子节点照旧按 session id 去重)。文件头与两处注释写明「后台子智能体的命可以长过派它的那一轮」的缘由。**本地化**:无(全在 `packages/web` 内,无跨包 import、无 scope 引用点;changelog 按本仓写法改名到本轮日期、去掉上游 PR 行、写明移植来源与「接口与已存数据都没变」) | 六包 `typecheck` **`EXIT=0`**(六个 `Done`;`gen:ifaces` 报 **`src/ifaces.json unchanged`(189 接口 / 580 类型)**,本笔不动服务契约)· `npx oxlint` **0 警告 0 错误**(2152 文件)· `npx prettier --check .` 干净 · `git diff --check` 干净 · 逐包 test **`EXIT=0`、0 失败**:core **1395** / 6 跳过(68 文件)· ui **1028**(129 文件)· cli **539**(37)· server **197 文件 / 2832 通过 / 4 跳过** · web **255 文件 / 3112 通过 / 2 跳过**(**+2 正是本笔新用例**)· hmr 无测试文件 · **反证(单测)**:把 `agent-topology.ts` 退回 `HEAD`、只跑 `test/agent-topology.test.ts` → **1 failed / 35 passed**(「keeps an earlier running child visible…」那条:`["root","references","paper"]` 少了 `"paper"`),换回本笔 → **36 全过** · **本轮主证据(真服务端 + 真浏览器 + 仓库自带的 mock 模型,改前改后两态)**:重建 web 产物后,一次性数据根 `/root/adelie-fork-data/r57-after`、`localhost:8940`(`ADELIE_SEED_ADMIN_PASSWORD`)起真服务,`PUT …/models` 把 `custom` provider 指到 mock(`packages/web/e2e/mock-llm.mjs` 的 scratchpad 变体:`run_in_background` 的子智能体改跑 `sleep 60`,父轮照旧收尾 —— **不需要模型 key**,即 3.6 那个卡点),真浏览器 1280×720 依次发「long running subagent probe」(父轮派一个 60 秒的后台子会话)与「run another subagent」(**第二轮任务**,再派一个会很快结束的子会话),再从工具栏打开智能体面板量默认调用图:**改动后** —— `graphNodes` **3**(`General Agent · 已完成`(根)、`General Agent · 已完成 1.1s`(第二轮的子会话,选中)、`General Agent · 运行中 8s`(**第一轮那个仍在跑的子会话,留着**)),截图 `r57/after5/panel.png`;**反证(真界面,改前源码)**:`git checkout HEAD -- …/agent-topology.ts` + 重建 web + **同一条探针** → `graphNodes` **2**(只剩根与第二轮的子会话,**第一轮那个运行中的子节点整块不见**,`runningNodes: 0`),截图 `r57/before2/panel.png`;把源码放回、重建、再跑一次 → 数字与「改动后」逐项一致。两态都:服务端确实建出了**两个**子会话(`children` 两条)、两端 console **0 error**、除本 App 正常的 `/api/me` 401 与 `/api/projects/:p/machines` 403 外**无一条 ≥400** · **顺带跑的 e2e 回归**:`background-subagent.spec.mjs` **2/2 通过**;`subagent.spec.mjs` 4 条里 **3 条在改前改后同样失败**(用改前产物在同一数据根上跑过一遍对照)——失败原因都是本树既有的选择器/交互前提(`getByPlaceholder(/输入消息/)` 同时命中面板里子会话的输入框;「待审批」的琥珀点找不到),与本笔无关 · 端口只用 8940(mock 8942),3003 / 3004 / 4000 / 7364 / 7369 一个没碰;数据只落在 `/root/adelie-fork-data/r57-*` | `8d334447` || 2026-10-14 | 5.37 | **切回 Session 时,面板仍停在原来的全屏状态**(上游 `8f747606` `#1128` 移植,照改动落、不是合分支;4 文件 / +154 −34,其中源码 1 个(`packages/web/src/features/dock/dock-state.ts`)、既有用例 1 个(`packages/web/test/dock-state.test.ts` +104,**四条新用例**)、另有 changelog 一对):全屏过去是**一个全局变量**(`let fullscreen: DockPosition \| null`),`switchScope()` 里一句 `fullscreen = null` 把它按「属于当下这一刻、不属于这段对话」清掉 —— 于是切到别的 Session 再切回来,面板总是普通尺寸。现在它跟着**停靠布局**走:换成 `fullscreenByLayout = new WeakMap<ScopeLayout, DockPosition>()`(弱键让被淘汰的 scope 自己走,不需要第二份保留表),`fullscreenDock()` 按当前 `layout` 读、`setDockFullscreen()` 按当前 `layout` 写或删、`reconcileFullscreen(candidate = layout)` 与 `fullscreenEligible(position, candidate = layout)`(连同 `mergedViewHasTabs(candidate)`)都收一个布局参数;`switchScope()` 改成对**新切到的**布局跑一次 `reconcileFullscreen()`(不在前台的 Session 可能在别的会话在前台时被剪掉最后一个终端),`pruneTerminalTabs` 对每个非前台 scope 也调一次;跨窄屏断点仍整张重建(`fullscreenByLayout = new WeakMap()`),刷新仍从普通尺寸开始,**localStorage 格式一字未改**(那条「全屏从不写进存储」的用例改成「刷新后标签与 `bottomRatio` 都在、全屏不在」)。文件头与 `setDockFullscreen` 附近的注释一并改写成「全屏按布局记在内存里」。**本地化**:无(全在 `packages/web` 内,无跨包 import、无 scope 引用点;changelog 按本仓写法改名到本轮日期、去掉上游 PR 行、写明移植来源与「接口与已存数据都没变」) | 六包 `typecheck` **`EXIT=0`**(六个 `Done`;`gen:ifaces` 报 **`src/ifaces.json unchanged`(189 接口 / 580 类型)**,本笔不动服务契约)· `npx oxlint` **0 警告 0 错误**(2152 文件)· `npx prettier --check .` 干净 · `git diff --check` 干净 · 逐包 test **`EXIT=0`、0 失败**:core **1395** / 6 跳过(68 文件)· ui **1028**(129 文件)· cli **539**(37)· server **197 文件 / 2832 通过 / 4 跳过** · web **255 文件 / 3116 通过 / 2 跳过**(**+4 正是本笔新用例**)· hmr 无测试文件 · **反证(单测)**:把 `dock-state.ts` 退回 `HEAD`、只跑 `test/dock-state.test.ts` → **3 failed / 41 passed**,红的正是三条跨 Session 的行为(「restores each Session's fullscreen independently and remembers an explicit exit」「hands a draft's fullscreen to its new Session without clobbering an existing layout」「clears all Sessions on a breakpoint change and remembers fullscreen in the merged view」),换回本笔 → **44 全过** · **本轮主证据(真服务端 + 真浏览器,改前改后两态)**:重建 web 产物后,一次性数据根 `/root/adelie-fork-data/r58-after`、`localhost:8941`(`ADELIE_PROFILE=dev` + `ADELIE_SEED_ADMIN_PASSWORD`)起真服务,`POST /api/auth/login` 拿 cookie,再往 `web.db` 的 `sessions` 表插**两行**(`r58-probe-session` / `r58-probe-session-b`)拿到两个能互相切换的真会话页(不需要模型 key,即 3.6 那个卡点;草稿页 `/chat/new` 没有停靠栏工具条,所以用两个会话而不是「草稿 + 会话」)。Playwright(`[email protected]` + 本地 chromium-1243,`--no-sandbox`,1280×800)在 A 里把右侧「记忆」面板开成全屏、切到 B 再把底部「记忆」开成全屏,然后切回 A、切回 B,逐次读 `[data-testid="dock"]` 的 `data-fullscreen` 与它里面 `[data-testid="dock-header"]` 的宽度:**改动后** —— 回 A 时 `data-fullscreen="full"`、面板头 **992px**(覆盖整行),回 B 时底部同样 `"full"`;**反证(真界面,改前源码)**:`git checkout HEAD -- …/dock-state.ts` + 重建 web + 重启同一数据根 + **同一条探针** → 回 A 时 `data-fullscreen` **消失**、面板头只剩 **512px**(普通列宽),回 B 时同样消失;把源码放回、重建、再跑一次 → 数字与「改动后」逐项一致。两态都:console **0 error**、**无一条 ≥400**;截图 `r58/shot-{after2,before}-3-session-a-again.png`(改前那一张里右侧是一条 512px 的窄列、对话区还看得见;改后同一张里面板铺满整行)与 `shot-*-1/2/4-*.png`、原始记录 `r58/probe.mjs`、探针日志都在 scratchpad · 端口只用 8941,3003 / 3004 / 4000 / 7364 / 7369 一个没碰 | `ead8d213` |-| 2026-10-14 | 5.38 | **分页读取的会话里,记忆更新卡片不再丢失**(上游 `d51c4577` `#1138` 移植,照改动落、不是合分支;9 文件 / +173 −6,其中源码 5 个(server 的 `api/types.ts` +5、`http/routes/sessions.ts` +1、`services/trace-service.ts` +3;web 的 `lib/omni/stream-controller.ts` +4 −3、`lib/omni/stream-model.ts` 两处注释)、既有用例 2 个(server `test/messages-live.test.ts` +43 −1、web `test/stream-controller.test.ts` +93,**四条新用例**)、另有 changelog 一对):Web App 打开会话时读的是**历史窗口**(首页 20 个单元),窗口可能从 `session_meta` **之后**开始 —— 而 Agent State 目录只写在那条记录里,流模型因此没有 `<agent_state>/memory/` 这个根,`classifyMemoryPath` 一条文件写入都认不出,**整张记忆更新卡片不渲染**(文件其实改成功了)。现在服务端把「窗口起始那个上下文记录里的 `agent_state`」放进历史分页信封(`MessagesPageInfo.agentState`,与同一处的 `contextModel` 同一写法,没有 Trace 时不出现;`TraceService` 从 `startMeta.payload.agent_state` 取),Web App 的 `seedWindow` 在回放这一页之前把它种进模型。打开会话、往上加载更早的消息、断开后重连都恢复;同一话题反复编辑仍只画一行、对记忆索引的编辑照旧不算。**没有给 OmniMessage 增加字段**,也没有改写已存的 Trace 或记忆文件。**本地化**:无(全在本仓自己的包内,无跨包 import、无 scope 引用点;changelog 按本仓写法改名到本轮日期、去掉上游 PR 行、写明移植来源与「接口与已存数据都没变」) | 六包 `typecheck` **`EXIT=0`**(六个 `Done`;`gen:ifaces` 报 **wrote src/ifaces.json(189 接口 / 580 类型)** —— 本笔只给既有接口加一个可选字段,接口与类型计数不变)· `npx oxlint` **0 警告 0 错误**(2152 文件)· `npx prettier --check .` 干净 · `git diff --check` 干净 · 逐包 test **`EXIT=0`、0 失败**:core **1395** / 6 跳过(68 文件)· ui **1028**(129 文件)· cli **539**(37 文件)· server **197 文件 / 2833 通过 / 4 跳过**(**+1 正是本笔新用例**)· web **255 文件 / 3120 通过 / 2 跳过**(**+4 正是本笔四条新用例**)· hmr 无测试文件 · **反证(单测)**:把五份源码文件退回 `HEAD`(用例留着)、只跑两个受影响的文件 → server `messages-live.test.ts` **1 failed / 4 passed**(`tail.page?.agentState` 是 `undefined`)、web `stream-controller.test.ts` **4 failed / 38 passed**(四条都是 `changes(...)` 得到 `[]`);把本笔放回 → **5 全过 / 42 全过** · **本轮主证据(真服务端 + 真浏览器,改前改后两态)**:重建 server / web 产物后,一次性数据根 `/root/adelie-fork-data/r59-after`、`localhost:8943`(`ADELIE_PROFILE=dev` + `ADELIE_SEED_ADMIN_PASSWORD`)起真服务,`POST /api/auth/login` 拿 cookie,再往 `web.db` 的 `sessions` 表插一行、并用 `@lmliheng/penguin-core/omnimessage` 的构造器**手写**一份 30 轮的 Trace(第 30 轮里有三次 `edit_file`:`<agent_state>/memory/user/local-dev-instance.md` 两次、`MEMORY.md` 一次)—— 不需要模型 key(即 3.6 那个卡点);30 轮 > 首页窗口 20 个单元,所以分页信封确实从 `session_meta` 之后开始。Playwright(`playwright-core` + 本地 chromium-1243,`--no-sandbox`,1280×900)打开 `/chat/r59-probe-session` 并逐项读 DOM 与信封:**改动后** —— 信封里 `agentState` 是那份 Agent State 目录、`earlierTurns: 10`、46 条消息、**没有 `session_meta`**、3 条 `edit_file`;页面上一张「**1 条记忆更新**」的卡片、一行 `local-dev-instance.md`(三次编辑合成一行,与上游说明一致);**反证(真界面,改前源码)**:`git checkout HEAD --` 五份源码 + 重建 server / web + 重启**同一数据根** + **同一条探针** → 信封里 `agentState` 是 `null`(其余逐项相同:46 条消息、无 `session_meta`、3 条编辑),页面上**一张卡片都没有**(`memoryCardTitles: []`、`memoryRowCount: 0`),服务端日志里连 `…/memory` 那次请求都没有(卡片不渲染就不取列表);把源码放回、重建、再跑一次 → 数字与「改动后」逐项一致 · 两态都 console **0 error**、无一条 ≥400 · 截图 `r59/{after,after2,before}-conversation.png`(改后那张能看到卡片与那一行,改前那张「probe answer 30」下方直接是输入框)、探针 `r59/probe.mjs`、造 Trace 的 `r59/write-trace.mjs`、`r59/fix-src/`(五份源码留底)都在 scratchpad · 端口只用 8943,3003 / 3004 / 4000 / 7364 / 7369 一个没碰;数据只落在 `/root/adelie-fork-data/r59-after` | 见本行提交 |-| 2026-10-15 | 5.39 | **设置里的 WSL 中文诊断不再乱码**(上游 `842571de` `#1125` 移植,照改动落、不是合分支;5 文件 / +155 −18,其中源码 2 个(`plugins/sandbox-wsl/src/host.ts` +29 −14、`src/tasks.ts` +2 −4)、新用例 1 个(`test/host.test.ts` 89 行,**七条**)、另有 changelog 一对):`runWsl` 过去 `setEncoding("utf8")` 直接按 UTF-8 读 `wsl.exe` 的输出、收尾时只把 NUL 删掉 —— 而 Windows 自带的那份 `wsl.exe` 仍可能回 UTF-16LE(`WSL_UTF8=1` 不保证),按 UTF-8 读出来已经丢了原来的字,删 NUL 拼不回来,于是「设置 → 插件」里的中文提示与安装日志全成乱码。现在 stdout / stderr 各自**按字节留着**(两个 `Buffer[]`),收尾时 `Buffer.concat` 再解**一次**:新增导出的 `decodeOutput()`(带 BOM 的 UTF-16LE 直接认;否则按「奇数位全是零字节」判定 —— UTF-16LE 的 ASCII 标签、空格与换行有这个特征,UTF-8 文本没有),`cleanOutput()` 从「删 NUL + 扔通知」退成「已解码文本的清理」,安装日志(`tasks.ts` 的 `readText`)改走同一个解码器;**实时进度仍走跨块的 `StringDecoder("utf8")`**(Linux 那侧写的是 UTF-8,分块边界可能落在一个汉字中间,凑齐整行再交出去)。**本地化**:无(全在本仓自己的插件内,无跨包 import、无 scope 引用点;changelog 按本仓写法改名到本轮日期、去掉上游 PR 行、写明移植来源与「接口与已存数据都没变」)。**没改界面**,所以没有真浏览器取证(见该节) | 六包 `typecheck` **`EXIT=0`**(六个 `Done`;`gen:ifaces` 报 **`src/ifaces.json unchanged`(189 接口 / 580 类型)**,本笔不动服务契约)· 插件自己的 `typecheck` **`EXIT=0`** · `npx oxlint` **0 警告 0 错误**(2167 文件)· `npx prettier --check .` 干净 · `git diff --check` 干净 · 逐包 test **`EXIT=0`、0 失败**:core **1395** / 6 跳过(67 通过 + 1 跳过 = 68 文件)· ui **1028**(129 文件)· cli **539**(37 文件)· server **197 文件 / 2833 通过 / 4 跳过** · web **255 文件 / 3120 通过 / 2 跳过** · hmr 无测试文件 · 插件 `pnpm --filter @lmliheng/penguin-plugin-sandbox-wsl test` **32 通过**(`test/host.test.ts` 7 + `test/profile.test.ts` 25,上游记的也是 32)· **反证(单测)**:把 `src/host.ts` 退回 `HEAD`(用例留着)→ **3 failed / 29 passed**,红的正是 UTF-16LE 那两条(`it.each([false, true])`)与「两条流各自解码」那条,实际收到的乱码是 `���͑�e/T�R Windows0`;放回本笔 → **32 全过** · **额外的一条真字节证据**(不经 vitest,探针在 scratchpad):用 `iconv -f UTF-8 -t UTF-16LE`(与 `-t UTF-8`)**真程序**产出的字节,按 1 / 2 / 3 / 末字节四种切法分成两块再 `Buffer.concat` 交给源码里的 `decodeOutput()` —— 三种编码 × 四种切法**12 例全部与原文逐字相同**,而同一批字节走改前的「按 UTF-8 读再删 NUL」在 UTF-16LE 那两组上分别得到 `*g�[ň…` / `��*g�[ň…` · 本笔不碰界面也没有新的界面面,因此**没有起服务 / 没有 Playwright**:设置卡片本身一字未改,它渲染的是插件交给它的文本,而这条路径的改前改后已由上面两组证据覆盖(插件只在 Windows + WSL 上有真实运行面,本机是 Linux)· 端口一个没碰(没有起服务),数据一个字节没往 `/root/.penguin` 或仓库里写 | `见本行提交` |-| 2026-10-15 | 5.40 | **成本中心的错误提醒:标记已读要覆盖这次打开读到的错误,重启后保持已读**(上游 `591f091d` `#1118` 移植,照改动落、不是合分支;4 文件 / +155 −13,其中源码 2 个(`usage-page.tsx` +3 −3、`todo-dismissals.ts` +13 −10)、另有 changelog 一对):成本中心读的是屏幕上那一档范围里的错误,而「标记为已读」写下的却是**应用启动时**缓存的那个时间戳 —— 应用打开之后到达的错误也被这条标记算作已读,重启后它又把提醒重新抬起来。现在 `load()` 开头先 `refreshProjectTodos(projectId)`(表格与标记因此指同一条最新错误),`dismissTodo` 改成**写入成功之后**才收起提醒(失败 `toastError(apiErrorText(e))`、留着重试),并加一条模块级写队列 `saving`:连续标记按顺序写,每份 map 都从上一次成功的写入上叠,先发的请求不会覆盖后写的标记。**本地化**:只把上游的 `@prismshadow/penguin-ui` 换成本仓的`@lmliheng/penguin-ui` | 六包 `typecheck` **`EXIT=0`**(六个 `Done`;`gen:ifaces` 报 **`src/ifaces.json unchanged`(189 接口 / 580 类型)**)· `npx oxlint` **0 警告 0 错误**(2167 文件)· `npx prettier --check .` 干净 · `git diff --check` 干净 · 逐包 test **`EXIT=0`、0 失败**:core **1395** / 6 跳过(68 文件)· ui **1028**(129 文件)· cli **539**(37 文件)· web **255 文件 / 3120 通过 / 2 跳过**(本笔没有加用例)· server **197 文件 / 2833 通过 / 4 跳过** · hmr 无测试文件 · **本轮主证据(真服务端 + 真浏览器,改前改后两态,应用内换页以保住「应用启动时」的探针缓存)**:数据根 `/root/adelie-fork-data/r62-{after2,before}`、`localhost:8952` / `8953`,两行「未预期错误」直接写进 `error_records`(不需要模型 key,即 3.6 那个卡点)。**改后**:提醒写「**2** 条未预期错误」、存下的是**新**时间戳、重载后提醒与侧栏红点**都没了**(`r62/shots/after-3-after-reload.png`);**改前**(`git checkout HEAD --` 两份源码 + 重建 + 同一条探针):提醒写「**1** 条未预期错误」、存下的却是**旧**时间戳(`22:38:27.083Z`,而新错误是 `23:08:30.239Z`)、重载后提醒**又回来了**(`before-3-after-reload.png`)· **写入被拒那一半也两态量过**(`REFUSE=1`,`page.route` 回 400):**改后**提醒留着 + 顶部 `Could not save read status` + `ui_prefs` 没写(`after-refuse-2-refused.png`);**改前**提醒当场消失、**没有任何提示**、也没写(`before-refuse-2-refused.png`)· **「连续标记按顺序写」单独造的并发场景**(`r62/probe2.mjs`:把第一个 prefs 写入扣在网络层,再点成本中心与模型库两条提醒的「忽略」,模型库那条靠 `PUT …/models` 只留一条做出差量):**改后**放行前只有 1 个请求、放行后第二个请求**同时带 `errors` 与 `models`**、最终两条都在、重载后模型库提醒不在;**改前**放行前**已经发出两个请求**、被扣住的第一个最后落库、服务端**只剩 `errors`**、重载后模型库提醒回来(`忽略 · 检测到变更:175 个新增,1 个可升级`)· 两态 console **0 error**、除那次刻意造的 400 外无 ≥400 · 端口只用 8951 / 8952 / 8953(用完已停),3003 / 3004 / 4000 / 7364 / 7369 一个没碰 | `b6fb4080` |+| 2026-10-14 | 5.38 | **分页读取的会话里,记忆更新卡片不再丢失**(上游 `d51c4577` `#1138` 移植,照改动落、不是合分支;9 文件 / +173 −6,其中源码 5 个(server 的 `api/types.ts` +5、`http/routes/sessions.ts` +1、`services/trace-service.ts` +3;web 的 `lib/omni/stream-controller.ts` +4 −3、`lib/omni/stream-model.ts` 两处注释)、既有用例 2 个(server `test/messages-live.test.ts` +43 −1、web `test/stream-controller.test.ts` +93,**四条新用例**)、另有 changelog 一对):Web App 打开会话时读的是**历史窗口**(首页 20 个单元),窗口可能从 `session_meta` **之后**开始 —— 而 Agent State 目录只写在那条记录里,流模型因此没有 `<agent_state>/memory/` 这个根,`classifyMemoryPath` 一条文件写入都认不出,**整张记忆更新卡片不渲染**(文件其实改成功了)。现在服务端把「窗口起始那个上下文记录里的 `agent_state`」放进历史分页信封(`MessagesPageInfo.agentState`,与同一处的 `contextModel` 同一写法,没有 Trace 时不出现;`TraceService` 从 `startMeta.payload.agent_state` 取),Web App 的 `seedWindow` 在回放这一页之前把它种进模型。打开会话、往上加载更早的消息、断开后重连都恢复;同一话题反复编辑仍只画一行、对记忆索引的编辑照旧不算。**没有给 OmniMessage 增加字段**,也没有改写已存的 Trace 或记忆文件。**本地化**:无(全在本仓自己的包内,无跨包 import、无 scope 引用点;changelog 按本仓写法改名到本轮日期、去掉上游 PR 行、写明移植来源与「接口与已存数据都没变」) | 六包 `typecheck` **`EXIT=0`**(六个 `Done`;`gen:ifaces` 报 **wrote src/ifaces.json(189 接口 / 580 类型)** —— 本笔只给既有接口加一个可选字段,接口与类型计数不变)· `npx oxlint` **0 警告 0 错误**(2152 文件)· `npx prettier --check .` 干净 · `git diff --check` 干净 · 逐包 test **`EXIT=0`、0 失败**:core **1395** / 6 跳过(68 文件)· ui **1028**(129 文件)· cli **539**(37 文件)· server **197 文件 / 2833 通过 / 4 跳过**(**+1 正是本笔新用例**)· web **255 文件 / 3120 通过 / 2 跳过**(**+4 正是本笔四条新用例**)· hmr 无测试文件 · **反证(单测)**:把五份源码文件退回 `HEAD`(用例留着)、只跑两个受影响的文件 → server `messages-live.test.ts` **1 failed / 4 passed**(`tail.page?.agentState` 是 `undefined`)、web `stream-controller.test.ts` **4 failed / 38 passed**(四条都是 `changes(...)` 得到 `[]`);把本笔放回 → **5 全过 / 42 全过** · **本轮主证据(真服务端 + 真浏览器,改前改后两态)**:重建 server / web 产物后,一次性数据根 `/root/adelie-fork-data/r59-after`、`localhost:8943`(`ADELIE_PROFILE=dev` + `ADELIE_SEED_ADMIN_PASSWORD`)起真服务,`POST /api/auth/login` 拿 cookie,再往 `web.db` 的 `sessions` 表插一行、并用 `@adelie/core/omnimessage` 的构造器**手写**一份 30 轮的 Trace(第 30 轮里有三次 `edit_file`:`<agent_state>/memory/user/local-dev-instance.md` 两次、`MEMORY.md` 一次)—— 不需要模型 key(即 3.6 那个卡点);30 轮 > 首页窗口 20 个单元,所以分页信封确实从 `session_meta` 之后开始。Playwright(`playwright-core` + 本地 chromium-1243,`--no-sandbox`,1280×900)打开 `/chat/r59-probe-session` 并逐项读 DOM 与信封:**改动后** —— 信封里 `agentState` 是那份 Agent State 目录、`earlierTurns: 10`、46 条消息、**没有 `session_meta`**、3 条 `edit_file`;页面上一张「**1 条记忆更新**」的卡片、一行 `local-dev-instance.md`(三次编辑合成一行,与上游说明一致);**反证(真界面,改前源码)**:`git checkout HEAD --` 五份源码 + 重建 server / web + 重启**同一数据根** + **同一条探针** → 信封里 `agentState` 是 `null`(其余逐项相同:46 条消息、无 `session_meta`、3 条编辑),页面上**一张卡片都没有**(`memoryCardTitles: []`、`memoryRowCount: 0`),服务端日志里连 `…/memory` 那次请求都没有(卡片不渲染就不取列表);把源码放回、重建、再跑一次 → 数字与「改动后」逐项一致 · 两态都 console **0 error**、无一条 ≥400 · 截图 `r59/{after,after2,before}-conversation.png`(改后那张能看到卡片与那一行,改前那张「probe answer 30」下方直接是输入框)、探针 `r59/probe.mjs`、造 Trace 的 `r59/write-trace.mjs`、`r59/fix-src/`(五份源码留底)都在 scratchpad · 端口只用 8943,3003 / 3004 / 4000 / 7364 / 7369 一个没碰;数据只落在 `/root/adelie-fork-data/r59-after` | 见本行提交 |+| 2026-10-15 | 5.39 | **设置里的 WSL 中文诊断不再乱码**(上游 `842571de` `#1125` 移植,照改动落、不是合分支;5 文件 / +155 −18,其中源码 2 个(`plugins/sandbox-wsl/src/host.ts` +29 −14、`src/tasks.ts` +2 −4)、新用例 1 个(`test/host.test.ts` 89 行,**七条**)、另有 changelog 一对):`runWsl` 过去 `setEncoding("utf8")` 直接按 UTF-8 读 `wsl.exe` 的输出、收尾时只把 NUL 删掉 —— 而 Windows 自带的那份 `wsl.exe` 仍可能回 UTF-16LE(`WSL_UTF8=1` 不保证),按 UTF-8 读出来已经丢了原来的字,删 NUL 拼不回来,于是「设置 → 插件」里的中文提示与安装日志全成乱码。现在 stdout / stderr 各自**按字节留着**(两个 `Buffer[]`),收尾时 `Buffer.concat` 再解**一次**:新增导出的 `decodeOutput()`(带 BOM 的 UTF-16LE 直接认;否则按「奇数位全是零字节」判定 —— UTF-16LE 的 ASCII 标签、空格与换行有这个特征,UTF-8 文本没有),`cleanOutput()` 从「删 NUL + 扔通知」退成「已解码文本的清理」,安装日志(`tasks.ts` 的 `readText`)改走同一个解码器;**实时进度仍走跨块的 `StringDecoder("utf8")`**(Linux 那侧写的是 UTF-8,分块边界可能落在一个汉字中间,凑齐整行再交出去)。**本地化**:无(全在本仓自己的插件内,无跨包 import、无 scope 引用点;changelog 按本仓写法改名到本轮日期、去掉上游 PR 行、写明移植来源与「接口与已存数据都没变」)。**没改界面**,所以没有真浏览器取证(见该节) | 六包 `typecheck` **`EXIT=0`**(六个 `Done`;`gen:ifaces` 报 **`src/ifaces.json unchanged`(189 接口 / 580 类型)**,本笔不动服务契约)· 插件自己的 `typecheck` **`EXIT=0`** · `npx oxlint` **0 警告 0 错误**(2167 文件)· `npx prettier --check .` 干净 · `git diff --check` 干净 · 逐包 test **`EXIT=0`、0 失败**:core **1395** / 6 跳过(67 通过 + 1 跳过 = 68 文件)· ui **1028**(129 文件)· cli **539**(37 文件)· server **197 文件 / 2833 通过 / 4 跳过** · web **255 文件 / 3120 通过 / 2 跳过** · hmr 无测试文件 · 插件 `pnpm --filter @adelie/sandbox-wsl test` **32 通过**(`test/host.test.ts` 7 + `test/profile.test.ts` 25,上游记的也是 32)· **反证(单测)**:把 `src/host.ts` 退回 `HEAD`(用例留着)→ **3 failed / 29 passed**,红的正是 UTF-16LE 那两条(`it.each([false, true])`)与「两条流各自解码」那条,实际收到的乱码是 `���͑�e/T�R Windows0`;放回本笔 → **32 全过** · **额外的一条真字节证据**(不经 vitest,探针在 scratchpad):用 `iconv -f UTF-8 -t UTF-16LE`(与 `-t UTF-8`)**真程序**产出的字节,按 1 / 2 / 3 / 末字节四种切法分成两块再 `Buffer.concat` 交给源码里的 `decodeOutput()` —— 三种编码 × 四种切法**12 例全部与原文逐字相同**,而同一批字节走改前的「按 UTF-8 读再删 NUL」在 UTF-16LE 那两组上分别得到 `*g�[ň…` / `��*g�[ň…` · 本笔不碰界面也没有新的界面面,因此**没有起服务 / 没有 Playwright**:设置卡片本身一字未改,它渲染的是插件交给它的文本,而这条路径的改前改后已由上面两组证据覆盖(插件只在 Windows + WSL 上有真实运行面,本机是 Linux)· 端口一个没碰(没有起服务),数据一个字节没往 `/root/.penguin` 或仓库里写 | `见本行提交` |+| 2026-10-15 | 5.40 | **成本中心的错误提醒:标记已读要覆盖这次打开读到的错误,重启后保持已读**(上游 `591f091d` `#1118` 移植,照改动落、不是合分支;4 文件 / +155 −13,其中源码 2 个(`usage-page.tsx` +3 −3、`todo-dismissals.ts` +13 −10)、另有 changelog 一对):成本中心读的是屏幕上那一档范围里的错误,而「标记为已读」写下的却是**应用启动时**缓存的那个时间戳 —— 应用打开之后到达的错误也被这条标记算作已读,重启后它又把提醒重新抬起来。现在 `load()` 开头先 `refreshProjectTodos(projectId)`(表格与标记因此指同一条最新错误),`dismissTodo` 改成**写入成功之后**才收起提醒(失败 `toastError(apiErrorText(e))`、留着重试),并加一条模块级写队列 `saving`:连续标记按顺序写,每份 map 都从上一次成功的写入上叠,先发的请求不会覆盖后写的标记。**本地化**:只把上游的 `@prismshadow/penguin-ui` 换成本仓的`@adelie/ui` | 六包 `typecheck` **`EXIT=0`**(六个 `Done`;`gen:ifaces` 报 **`src/ifaces.json unchanged`(189 接口 / 580 类型)**)· `npx oxlint` **0 警告 0 错误**(2167 文件)· `npx prettier --check .` 干净 · `git diff --check` 干净 · 逐包 test **`EXIT=0`、0 失败**:core **1395** / 6 跳过(68 文件)· ui **1028**(129 文件)· cli **539**(37 文件)· web **255 文件 / 3120 通过 / 2 跳过**(本笔没有加用例)· server **197 文件 / 2833 通过 / 4 跳过** · hmr 无测试文件 · **本轮主证据(真服务端 + 真浏览器,改前改后两态,应用内换页以保住「应用启动时」的探针缓存)**:数据根 `/root/adelie-fork-data/r62-{after2,before}`、`localhost:8952` / `8953`,两行「未预期错误」直接写进 `error_records`(不需要模型 key,即 3.6 那个卡点)。**改后**:提醒写「**2** 条未预期错误」、存下的是**新**时间戳、重载后提醒与侧栏红点**都没了**(`r62/shots/after-3-after-reload.png`);**改前**(`git checkout HEAD --` 两份源码 + 重建 + 同一条探针):提醒写「**1** 条未预期错误」、存下的却是**旧**时间戳(`22:38:27.083Z`,而新错误是 `23:08:30.239Z`)、重载后提醒**又回来了**(`before-3-after-reload.png`)· **写入被拒那一半也两态量过**(`REFUSE=1`,`page.route` 回 400):**改后**提醒留着 + 顶部 `Could not save read status` + `ui_prefs` 没写(`after-refuse-2-refused.png`);**改前**提醒当场消失、**没有任何提示**、也没写(`before-refuse-2-refused.png`)· **「连续标记按顺序写」单独造的并发场景**(`r62/probe2.mjs`:把第一个 prefs 写入扣在网络层,再点成本中心与模型库两条提醒的「忽略」,模型库那条靠 `PUT …/models` 只留一条做出差量):**改后**放行前只有 1 个请求、放行后第二个请求**同时带 `errors` 与 `models`**、最终两条都在、重载后模型库提醒不在;**改前**放行前**已经发出两个请求**、被扣住的第一个最后落库、服务端**只剩 `errors`**、重载后模型库提醒回来(`忽略 · 检测到变更:175 个新增,1 个可升级`)· 两态 console **0 error**、除那次刻意造的 400 外无 ≥400 · 端口只用 8951 / 8952 / 8953(用完已停),3003 / 3004 / 4000 / 7364 / 7369 一个没碰 | `b6fb4080` || 2026-10-15 | 5.41 | **智能体面板:子智能体的描述比名称小一号、节点框跟着字号长大**(上游 `6e54f6bc` `#1096` 移植,照改动落、不是合分支;4 文件 / +62 −15,其中源码 2 个(`agent-topology-view.tsx` +29 −13、`agent-topology.ts` +2 −1)、另有 changelog 一对):调用关系图里子节点第二行的 `description` 与上方的 Agent 名同一档字号(`text-xs`),中文描述的字身填满 em 框、看上去和名称一样大甚至更大,节点失去「先是谁、再做什么」的层次;节点框又是写死的 200×46 CSS px,而框里的一切随「字号」设置放大,白领主题「特大」档因此把描述下沿截掉。现在名称改 `text-sm`(正文档)、描述留 `text-xs`(小档、浅色墨),画布把布局的数字**按 rem 渲染**(`px / 16`,新加一个小的 `rem()`),节点框、间距、连线跟着用户选的字号一起长大;SVG 改用 `viewBox` 保持路径在布局单位里、加 `vector-effect: non-scaling-stroke` 让描边永远 1.5px,`agent-topology.ts` 的文件头写明「这里的长度都是默认 16px 根下的 CSS px」。**本地化**:无(全在 `packages/web` 内,无跨包 import、无 scope 引用点;changelog 按本仓写法改名到本轮日期、去掉上游 PR 行、写明移植来源) | 六包 `typecheck` **`EXIT=0`**(六个 `Done`;`gen:ifaces` 报 **`src/ifaces.json unchanged`(189 接口 / 583 类型)**,本笔不动服务契约)· `npx oxlint` **0 警告 0 错误**(2169 文件)· 本笔两份源码与一对 changelog `prettier --check` 干净 · `git diff --check` 干净 · 逐包 test **`EXIT=0`、0 失败**:core **1395** / 6 跳过(68 文件)· ui **1029**(129 文件)· cli **539**(37 文件)· server **197 文件 / 2842 通过 / 4 跳过** · web **256 文件 / 3122 通过 / 2 跳过**(本笔没有加用例 —— 这条逻辑是 className 与几何,本树的 node 测试没有排版引擎,仓库规矩也不断言 className)· hmr 无测试文件 · **本轮主证据(真服务端 + 真浏览器,改前改后两态 × 三主题 × 三档字号 = 9 格)**:重建 web 产物后,一次性数据根 `/root/adelie-fork-data/r63-after`、`localhost:8961` 起真服务(`ADELIE_SEED_ADMIN_PASSWORD` + `POST /api/auth/login` 拿 cookie),模型配成 `custom` provider 指向本仓自带 mock LLM 的**本轮副本**(8977;只加了一处:`run_subagent` 的入参多一个中文 `description`,否则子节点根本没有第二行可量)—— 于是拿到**真会话、真子会话、真描述**,不需要模型 key(即 3.6 那个卡点)。Playwright(`playwright-core` + 本地 chromium-1243,1440×900,`localStorage` 里存 `penguin.themeId` / `penguin.textSize`)打开会话、点开子会话 chip、让「智能体面板」标签激活,再读节点自身的 DOM:**改前** —— 9 格里名称与描述**字号逐格相同**(12/12、13.5/13.5、15/15、13/13、14.625/14.625、16.25/16.25、12/12、13.5/13.5、15/15),节点框 9 格全是 **200×46**,且**白领/特大那一格的行盒被压到 18.625px、而它自己要 20.3125px(`line-height` 亲口给出)—— 正是上游报告的截断**;**改后** —— 9 格名称都比描述大一号(14/12、15.75/13.5、17.5/15、15/13、16.875/14.625、**18.75/16.25**、13/12、14.625/13.5、16.25/15),节点框随根字号长大(16px→**200×46**、18px→**225×52**、20px→**250×58**),**没有一格的行盒低于它自己要求的行高**(白领/特大恢复成 20.3125px)。两态 console 各 **0 error**、无一条 ≥400;9 格截图 `r63/shots/{before,after}-<主题>-<档位>.png`(白领/特大那两张肉眼可见:改前描述贴着框的下沿、与名称一样大,改后名称更大、框更高、描述整行在位)、原始测量 `r63/graph-{before,after}.json`、探针 `r63/probe.mjs`、mock 副本 `r63/mock-llm-desc.mjs`、改前源码留底 `r63/fix-src/` 都在 scratchpad · 端口只用 8961 与 8977(跑完都已停),3003 / 3004 / 4000 / 7364 / 7369 一个没碰;数据只落在 `/root/adelie-fork-data/r63-after`,一个字节没往 `~/.penguin` 或仓库里写(`packages/web/dist` 是构建产物,未 `git add`) | `3a141052` || 2026-10-15 | 5.42 | **provider 的 429 与传输中断分开归类**(上游 `77036d31` `#1114` 移植,照改动落、不是合分支;6 文件 / +90 −2,其中源码 3 个(`core/src/llm/generative-model.ts` +27 −1:新增导出的 `isRateLimitError`、`streamGenerate` 的 outcome 分类里在 AbortError 之后、`network` 兜底之前多一支;`core/src/llm/index.ts` +1 导出;`core/src/omnimessage/types.ts` +1 −1 的 `ErrorCode`),用例 1 个(`core/test/llm.test.ts` +17,新增一条),另有 changelog 一对):429 与连接中断此前共用 `network` 一个 `error_code` —— 下游无从区分「线路抖了一下,稍等再试」与「这个模型已经没有配额了,同一请求在每一级退避之后仍会 429」,而两者的处置不同:前者等一等就过去了,后者这段会话在别处还有地方可跑(harness 已自带会话内的模型切换)。`ErrorCode` 增加 **`rate_limited`**;`isRateLimitError` 与 `isFatalProviderRejection` 并列导出,沿错误的 `cause` 链任一层判 `status` / `statusCode === 429`;**结果状态仍是 `retryable`** —— 重连阶梯、放弃时机、重试内容都没变,只是把原因命名出来;词汇表其余部分不变(传输中断与 5xx 仍是 `network`),`request_end` 照旧以 `error_code` 携带该码,Cost 中心的错误面板按 `error_code` 分组,限流因此不再藏在 network 桶里。**本树那处冲突的解法**:上游同一处已把用例里的 `delta()` 改成 `ev()`、并把「JSON parse」那条用例改了名,本树都还没有 —— 只把新用例与新的 `rateLimited()` 夹具插进去,本树原有的措辞与用例名一个字没动。**本地化**:无(全在 `packages/core` 内、无跨包 import、无 scope 引用点;changelog 按本仓写法改名到本轮日期、去掉上游 PR 行、写明移植出处) | 六包 `typecheck` **`EXIT=0`**(六个 `Done`;`gen:ifaces` 报 **`src/ifaces.json unchanged`(189 接口 / 583 类型)**,本笔不动服务契约)· `npx oxlint` **0 警告 0 错误**(2169 文件)· 本笔 4 份源码 / 用例与一对 changelog `prettier --check` 干净 · `git diff --check` 干净 · 逐包 test **`EXIT=0`、0 失败**:core **1396** / 6 跳过(68 文件,+1 即本笔新用例)· ui **1029**(129 文件)· cli **539**(37 文件)· server **197 文件 / 2842 通过 / 4 跳过** · web **256 文件 / 3122 通过 / 2 跳过** · hmr 无测试文件 · **反证(单测)**:把 `generative-model.ts` 里新那一支的条件临时改成 `false && isRateLimitError(error)`(其余一字不动)→ `test/llm.test.ts` **1 failed / 98 passed**,红的是本笔新用例、报 **`expected 'network' to be 'rate_limited'`** —— 即「429 被当成 network」正是本笔要修的缺陷;还原后再跑 **99 全过** · **下游面逐处核过**(不是推测):`request_end` 由 `builders.ts` 原样带出 `error_code`、服务端错误表 `db/repos/errors.ts` 的 `code` 列是自由文本(无 CHECK / 枚举)、错误面板 `topCode` 按 `source · code · kind` 分组 —— 没有任何一处是闭集,`rate_limited` 落进去就是一个新桶;反方向的界面文案(`web/src/lib/strings.ts` 与 `cli/src/i18n.ts` 里按 `errorCode` 选措辞的那两处)**上游自己也没有 `rate_limited` 分支**(同一次核过 `refs/adelie-tmp/upstream-main-r64` 的同一处),所以照上游原样落,不额外改文案 · 本笔无界面改动,因此没有起服务截图;端口一个没碰(3003 / 3004 / 4000 / 7364 / 7369 全程未动) | `de709bd0` || 2026-10-15 | 5.43 | **打开历史对话不再等待侧栏**(上游 `74efa5aa` `#984` 移植,照改动落、不是合分支;14 文件 / +1210 −190(与上游的 +1247 −184 差在本树没有 `probeMissingKey` 那一支,见该节),其中源码 6 个(server 的 `api/types.ts` +44(`SessionsBatchRequest` / `SessionBatchResult` 等新契约)、`http/routes/sessions.ts` +159 −1(GET 路由体收成 `listPage`,新增 `POST …/sessions/batch`);web 的 `api/endpoints.ts` +25、`state/sessions.tsx` +247 −120(`reload()` / `loadMoreFor()` 改为每台服务器一次,本地分页、计数与活动序游标的处理随之重排)、`features/chat/chat-page.tsx` +56 −23(探针不再等列表)、新增 `features/chat/route-probe.ts`),用例 3 个(server `test/sessions-batch.test.ts` 281 行 / 24 条、web `test/route-probe.test.ts` 149 行 / 7 条、`test/sessions-store.test.ts` +157),另有两处既有夹具跟上(`ui-gallery` 的 mock 路由与 `test/mock-api.test.ts`、`web/e2e/reload-midstream.spec.mjs`),以及 changelog 一对):对话页此前要等侧栏列表加载完成才查证路由指向的 Session,而列表按「每个 Agent 每页一次」扇出 —— 浏览器串行化同源请求,于是读者要看的对话排在整片扇出后面。现在**两半都改**:查证不再等列表(`RouteProbe`:同一 Session 同时只有一个在途、失败读的是落定那一刻列表是否仍在加载、路由已离开的结果丢弃、列表加载期间查到的行等列表落定后再并入),侧栏改发一条批量请求。**本树两处冲突的解法**:`ui-gallery` 的 mock 路由是导入序(本树多一组 `Storage*` 契约,两个都留);`chat-page.tsx` 取上游的新结构,但 `gone` 里那句 404 → `setProbeMissingKey` 本树没有这个概念(`probeMissingKey` 是上游另一笔引入的状态,本树用 `routeSessionUnowned` / `routeSessionOffline` 自己处理不可达),因此只保留 `setProbeFailedKey`。**本地化**:无(三个包都在本仓自己的包内、无跨包 scope 引用点;changelog 按本仓写法改名到本轮日期、去掉上游 PR 行、写明移植来源) | 六包 `typecheck` **`EXIT=0`**(六个 `Done`;`gen:ifaces` 报 **`src/ifaces.json unchanged`(189 接口 / 583 类型)** —— 新增的是路由与请求/应答类型,接口计数不变)· `npx oxlint` **0 警告 0 错误**(2172 文件)· 本笔 14 份文件与一对 changelog `prettier --check` 干净 · `git diff --check` 干净 · 逐包 test **`EXIT=0`、0 失败**:core **1396** / 6 跳过(68 文件)· ui **1029**(129 文件)· cli **539**(37 文件)· server **198 文件 / 2866 通过 / 4 跳过**(+1 文件、+24 条即本笔新用例)· web **257 文件 / 3130 通过 / 2 跳过**(+1 文件、+8 条即本笔新用例)· ui-gallery **20 文件 / 134 通过**(+3 条;本笔改了它的 mock 路由)· hmr 无测试文件 · **反证(单测)**:① 把 `http/routes/sessions.ts` 退回 `HEAD` → `test/sessions-batch.test.ts` **整套失败**(`ModuleBootError: SessionApiRoutes: contribution 'session-api.sessions-batch' to 'HttpModule.routes' declared but not bound`,24 条全部 skipped);② 把 `state/sessions.tsx` 退回 `HEAD`(用例留着)→ `test/sessions-store.test.ts` **8 failed / 26 passed**(`batchEntries()[0]` 是 `undefined`,即侧栏根本没发那条批量请求);③ 把 `route-probe.ts` 的 `if (this.inFlight === key) return;` 临时改成 `false && …` → `test/route-probe.test.ts` **2 failed / 5 passed**(「同一 Session 只发一次」的两条挂了)。三处还原后逐字一致(与 scratchpad 的 `fix-src/` 逐文件 `diff -q` 无输出),三条用例再跑 **7 / 34 / 24 全过** · **本轮主证据(真服务端 + 真浏览器,改前改后两态)**:重建 server / web 产物后,一次性数据根 `/root/adelie-fork-data/r65-after`、`localhost:8992`(改前产物)/ `8993`(本笔产物)起真服务(`ADELIE_SEED_ADMIN_PASSWORD` + `POST /api/auth/login` 拿 cookie),**三个 Agent**(`default_agent` + API 建的 `r65agentb` / `r65agentc`,所以侧栏的扇出是「每 Agent 一次」)、一条 `web.db` 里的会话行 + 一份手写 Trace(5 轮,不需要模型 key,即 3.6 那个卡点);探针把**每一条 Session 列表请求扣住 4 秒**,再量「对话第一条消息何时出现」「屏幕上那条消息在列表还被扣着时是否已经在」——**改前**:列表请求 **3 条 GET**(`…/agents/<a>/sessions` 各一次)、列表被扣住期间**看不到任何消息**(截图是一根骨架)、第一条消息 **5105 ms** 才出现;**改后**:列表请求 **1 条 `POST /api/projects/default_project/sessions/batch`**、列表被扣住期间**对话已经完整在位**(`probe answer 1…5`,截图可见)、第一条消息 **1936–2082 ms**(三次跑都在扣住的窗口之内),列表落定后侧栏照旧列出 `probe-workspace` 与 `r65 probe` 那一行(截图 + 文本计数 2)。两态 console 各 **0 error**、无一条 ≥400(唯一弹窗是空数据根没配模型 key 那条提示,即 3.6 那个卡点);截图 `r65/{before,after,after2,after3}-{held,settled}.png`、探针 `r65/probe.mjs`、造数 `r65/setup.mjs`、改前源码留底 `r65/fix-src/` 都在 scratchpad · 端口只用 8991 / 8992 / 8993(跑完都已停),3003 / 3004 / 4000 / 7364 / 7369 一个没碰;数据只落在 `/root/adelie-fork-data/r65-after`,一个字节没往 `~/.penguin` 或仓库里写(`packages/*/dist` 是构建产物,未 `git add`) | 见本行提交 |@@ -1757,8 +1757,8 @@ systemctl enable --now penguin-server- `packages/core` 63 文件 / 1350 通过;`packages/server` 180 文件 / 2592 通过 / 2 跳过;`packages/web` 236 文件 / 2891 通过 / 2 跳过;`packages/cli` 34 文件 / 505 通过;`pnpm typecheck` 全包 Done;`pnpm lint` 0;`pnpm format:check` 干净。-- 发布预演:`pnpm --filter @lmliheng/goal publish --dry-run --no-git-checks --access public` →- `@lmliheng/[email protected] → registry.npmjs.org`(dry run,没上传)。+- 发布预演:`pnpm --filter @adelie/goal publish --dry-run --no-git-checks --access public` →+ `@adelie/[email protected] → registry.npmjs.org`(dry run,没上传)。- `node scripts/check-publishable.mjs --registry --strict` → 这 14 个名字**在 npm 上还不存在**,而发布流水线用的是逐包配置的 trusted publishing,OIDC 换不来一个不存在的名字 →正式发版前得先手工首发布一次(这就是它打印的那句 "first publish needed")。@@ -1781,7 +1781,7 @@ systemctl enable --now penguin-server- 全仓 `@prismshadow/penguin*` → `@lmliheng/penguin*`:9 个工作区包改名 —— core、server、cli 是对外发布的三个,ui/web/desktop/docs/hmr/ui-gallery 是 private;`examples/*` 的示例包名一并改。- 826 个文件(含 `pnpm-lock.yaml`,由 `pnpm install` 重写):源码 import、样式表- `@import "@lmliheng/penguin-ui/theme.css"`、CI 的 `--filter` 选择器、release.yml 的 deploy 与+ `@import "@adelie/ui/theme.css"`、CI 的 `--filter` 选择器、release.yml 的 deploy 与publish 步骤、Dockerfile、安装脚本、docs、`.agents/` 下的技能说明。- 三处 sed 抓不到的写法手工改:`packages/cli/src/commands/update.ts` 里把 npm 全局路径拆成两段判断的`"@prismshadow" && "penguin-cli"`(漏改会让自更新认不出 npm 全局安装);几个测试正则里的@@ -1801,16 +1801,16 @@ systemctl enable --now penguin-serversandbox-dsh 5、sandbox-bwrap 24、server 2592、cli 505、web 2891、desktop 279、ui-gallery 131。- `pnpm typecheck` 全包 Done;`pnpm lint` 0;`pnpm format:check` 干净(名字变短后有几处 import 需要重新折行,已 `prettier --write`)。-- 按 release.yml 手工走了一遍发布链路:`pnpm --config.node-linker=hoisted --filter @lmliheng/penguin-cli+- 按 release.yml 手工走了一遍发布链路:`pnpm --config.node-linker=hoisted --filter @adelie/cli--prod deploy out/penguin/lib`(356 个包,`node_modules/@lmliheng/` 下 14 个插件 + core/server 齐全)→`node scripts/build-plugins.mjs --out out/penguin/lib/plugins` →- `out/penguin/lib/plugins/node_modules/@lmliheng/penguin-plugin-sandbox-bwrap/package.json` 在。+ `out/penguin/lib/plugins/node_modules/@adelie/sandbox-bwrap/package.json` 在。跑完把 `out/` 删了(暂存物,不入库)。### 后果 / 待办- 整条链(core/server/cli + 14 个插件)现在都在 `@lmliheng` 下,**都还没发过 npm**:安装、自更新- (`penguin update` 打的是 `@lmliheng/penguin-cli@<version>`)和发版之前,得先手工首发布一次;+ (`penguin update` 打的是 `@adelie/cli@<version>`)和发版之前,得先手工首发布一次;`node scripts/check-publishable.mjs --registry --strict` 会列出要补的名字。- 桌面壳的 Windows AppUserModelID 是 `com.lmliheng.adelie`(早先品牌轮次已改),与包 scope 无关,没动。@@ -1837,7 +1837,7 @@ registry 上还不存在的名字没有配置可查,OIDC 换不到 token,流与每个 `plugins/*/`;`packages/web/dist` → `packages/server/web-dist`。3. 14 个对外插件逐个 `pnpm --filter <name> publish --access public --no-git-checks`—— `plugins/sandbox-*` 那 4 个是 private,跳过。-4. 再按依赖顺序发 `@lmliheng/penguin-core` → `@lmliheng/penguin-server` → `@lmliheng/penguin-cli`。+4. 再按依赖顺序发 `@adelie/core` → `@adelie/server` → `@adelie/cli`。17 个包都落在 **`0.2.13`**(仓库当前的 dev 版本)。@@ -1854,7 +1854,7 @@ registry 上还不存在的名字没有配置可查,OIDC 换不到 token,流- **判断:等几分钟就好,不要升版本号** —— 升了等于白扔一个号。`data-analysis`、`skill-porting`的包文档先出来,`agent-company` 到 16:01:15 才出现,之后 17 个名字全部可解析。- 顺带记一笔中途差点误判的事:已发布的 `[email protected]` / `[email protected]` 精确依赖- `@lmliheng/[email protected]`,在它包文档出来之前 `npm install` 会 E404。那是上面这个延迟的+ `@adelie/[email protected]`,在它包文档出来之前 `npm install` 会 E404。那是上面这个延迟的表现,不是真的断链。### 验证(都是真跑出来的)@@ -1862,7 +1862,7 @@ registry 上还不存在的名字没有配置可查,OIDC 换不到 token,流- 17 个名字的版本端点与 packument 现在全 200。- `node scripts/check-publishable.mjs --registry --strict` 通过:`registry: all 17 published namesalready exist`(此前它会列出全部 17 个「从未发布」)。-- 空目录真装:`npm install @lmliheng/[email protected]` → 400 个包,`node_modules/.bin/penguin+- 空目录真装:`npm install @adelie/[email protected]` → 400 个包,`node_modules/.bin/penguin--version` = `v0.2.3-8-g5cf857f6`。- 14 个插件包一起干跑解析:`added 14 packages`。@@ -1918,8 +1918,8 @@ registry 上还不存在的名字没有配置可查,OIDC 换不到 token,流包的 `dependencies` 经 Node 解析出来的(`builtinRoots()`),不写这两条,插件就在库里看不见。- 同步三处「必须提到每个插件」的守卫:`plugins/README.md` 与 `README.zh.md` 的分类表、`packages/docs/content/skills.{zh,en}.md` 的插件表、`packages/core/test/plugins.test.ts` 的 14 → 16。-- 发布:`pnpm --filter <name> publish --access public --no-git-checks`,`@lmliheng/[email protected]`- 与 `@lmliheng/[email protected]` 都 `✅ Published`。+- 发布:`pnpm --filter <name> publish --access public --no-git-checks`,`@adelie/[email protected]`+ 与 `@adelie/[email protected]` 都 `✅ Published`。- 搬进来的 25 个脚本/模板按本仓库 prettier 重新格式化(它们来自另一个仓库,没过这边的门禁)。### 验证@@ -1986,7 +1986,7 @@ npm 上的 `@lmliheng/*` 首次发布落在 **0.2.13**(见上一节),所0.3.0,sha512/size 与安装包逐条核对一致。4. **CLI 三件包在本机装配**(照 `release.yml` 的 build 作业复现,脚本`pack-cli-0.3.0.sh`):`pnpm -r build` → `pnpm --config.node-linker=hoisted --filter- @lmliheng/penguin-cli --prod deploy` → web 资产 → launcher → `build-plugins.mjs` → 载荷 →+ @adelie/cli --prod deploy` → web 资产 → launcher → `build-plugins.mjs` → 载荷 →按 `package-release-bundles.sh` 的布局打 `penguin-{linux-x64,win32-x64,universal}`。5. **GitHub Release v0.3.0**(<https://github.com/lmliheng/Adelie/releases/tag/v0.3.0>):14 个资产= 桌面 6 件(exe + blockmap + AppImage + deb + `latest.yml` + `latest-linux.yml`)+ CLI@@ -2024,8 +2024,8 @@ v0.2.3 的 Release 有两处对不上,`penguin update` 因此必然失败:buildDate/commit,`bin/penguin web` 起在 7397,`GET /` → 302 → 200 / `<title>Adelie</title>`。- **npm**:19 个名字的 `0.3.0` 与 `dist-tags.latest` 全部可见(staged 发布是分钟级延迟,16 个插件是分两批出现的:8 → 14 → 16,**等就行,不要升版本号**);空 prefix 真装- `npm install -g @lmliheng/[email protected]` → 16 个插件 + core + server 全部解析,- `penguin version --json` = 0.3.0 带 commit,`@lmliheng/penguin-server/web-dist` 18M 在包里+ `npm install -g @adelie/[email protected]` → 16 个插件 + core + server 全部解析,+ `penguin version --json` = 0.3.0 带 commit,`@adelie/server/web-dist` 18M 在包里(`index.html` 是 `<title>Adelie</title>` + `adelie-icon.svg`,新页面文案也在),用它起服务在 7398 → `GET /` 200 / `<title>Adelie</title>`(验证进程已杀,端口已释放)。- **门禁**:typecheck 8 包 Done、lint 0、prettier 干净、测试 **8871 通过 / 9 跳过 / 0 失败**;@@ -2104,8 +2104,8 @@ v0.2.3 的 Release 有两处对不上,`penguin update` 因此必然失败:### 验证- 门禁:`pnpm typecheck` 8 包 Done · `pnpm lint` 0 · `pnpm format:check` 干净 ·- `pnpm --filter @lmliheng/penguin-web test` 236 文件 / **2877 通过 / 2 跳过 / 0 失败**(少了 4 例:- TokenDance 横幅那两块的用例随组件一起删了)· `pnpm --filter @lmliheng/penguin-ui-gallery test`+ `pnpm --filter @adelie/web test` 236 文件 / **2877 通过 / 2 跳过 / 0 失败**(少了 4 例:+ TokenDance 横幅那两块的用例随组件一起删了)· `pnpm --filter @adelie/ui-gallery test`131 通过。- 真页面(ui-gallery 的 framed app,7372,脚本 `check-user-six.mjs`,**30 条断言全过**):不带 `lang` 参数时界面是中文、显式 `lang=en` 时是英文(对照);模型库里 517 处价格都是 `¥`、@@ -2251,7 +2251,7 @@ OSS 那对象 AccessKey 已经写进密钥库、「Buucket 你不能自己管理### lesson-video(提交 `b873c041`)- 来源是 `lmliheng/penguin-plugins` 的提交 `2fe9b0e8`,那边叫 `@penguinharness/[email protected]`。-- 按本仓库插件规矩对齐:包名 `@lmliheng/lesson-video`、版本跟当前 dev 版本 `0.3.1`、补+- 按本仓库插件规矩对齐:包名 `@adelie/lesson-video`、版本跟当前 dev 版本 `0.3.1`、补`repository.directory` 与 `LICENSE`(`files` 里也加上)、`SKILL.md` frontmatter 只留`name` + `description` 并补 `## Before you start`、整包过一遍 prettier。- 接进 `packages/{core,cli,desktop}/package.json`(`workspace:*`)—— 内置插件靠宿主包的@@ -2291,8 +2291,8 @@ OSS 那对象 AccessKey 已经写进密钥库、「Buucket 你不能自己管理- 干净工作树 `/tmp/plugin-rel`(detached,`pnpm install --frozen-lockfile`)上:`pnpm typecheck`八包 + 四个沙箱插件全过、`pnpm lint` 0/0、`pnpm format:check` 干净、`pnpm -r test` 退出码 0。-- `pnpm --filter <name> publish --access public --no-git-checks` → `@lmliheng/[email protected]`- 与 `@lmliheng/[email protected]` 都 `✅ Published`。两个包名首发(此前 404)。+- `pnpm --filter <name> publish --access public --no-git-checks` → `@adelie/[email protected]`+ 与 `@adelie/[email protected]` 都 `✅ Published`。两个包名首发(此前 404)。- registry 复核:lesson-video 的版本端点先 404(staged 延迟,等了两分钟),随后两个都 200;把两个 tarball 拉回来对照本仓库逐文件一致(`requirements-box` 12 个文件、`lesson-video` 14 个,只差 npm 给 `package.json` 补的那个行尾换行)。**没有升版本号去催**。@@ -3150,7 +3150,7 @@ access 那几段)、包名(`@lmliheng/` vs 上游的 `@prismshadow/`)、留空的话现网会自称 source 构建。2. 构建 `penguin-hmr` / `penguin-core` / `penguin-server` / `penguin-cli` / `penguin-web`。第一次漏了 `penguin-hmr`(server 依赖它),补上后过。-3. `pnpm --filter @lmliheng/penguin-cli --prod deploy out/penguin/lib`、`packages/web/dist → web/`、+3. `pnpm --filter @adelie/cli --prod deploy out/penguin/lib`、`packages/web/dist → web/`、`scripts/launchers/penguin → bin/penguin`、`build-plugins.mjs → lib/plugins`;`node/` 沿用现装那份(同版本 v24.18.0,不必重下 50MB)。@@ -3383,7 +3383,7 @@ process.env.CLIENT_TYPE || options.model`),写成 `client_type` 会被忽略(含周/月/时/分与 DST 两节)、`queryErrors` 分页两节、`web/test/header-stats.test.ts` 的 `costText` /`costUncosted`。- **真浏览器看了一次这一页**(这一条判的就是「这一页有没有那套东西」,所以照旧看了;本轮没有界面改动、- 也没重建 `packages/web/dist`):`pnpm --filter @lmliheng/penguin-ui-gallery dev --port 7381`+ 也没重建 `packages/web/dist`):`pnpm --filter @adelie/ui-gallery dev --port 7381`(我自己起的,看完已停;上游 dev 端口 7372 没占)配 Playwright 打开`http://[::1]:7381/app.html?route=/usage&lang=zh` —— 三张卡(今日 63.9k Token / 3 请求 / ¥0.2443,近 7 天 2.3M / 89 / ¥2.33,累计 8.5M / 333 / ¥10.73)、四张图(各 Agent 与各模型请求与成功率、@@ -3444,7 +3444,7 @@ process.env.CLIENT_TYPE || options.model`),写成 `client_type` 会被忽略- 首跑 `format:check` 报三个服务端文件、`required-mark` 报 `feedback.detailLabel`(详细说明写成「(可不填)」/「(optional)」)——都当场改掉:字段是否必填由红 `*` 说,标签与占位符里不写「可选」。- **真浏览器跑了一遍这一行**(这一条判的就是「左下角点得到、点了有得填」,所以照旧看了):画廊开发- 服务器(`pnpm --filter @lmliheng/penguin-ui-gallery dev --port 7391`,我自己起的、看完已停;上游 dev+ 服务器(`pnpm --filter @adelie/ui-gallery dev --port 7391`,我自己起的、看完已停;上游 dev端口 7372 没占)配 Playwright 打开 `app.html?route=/chat&lang=zh`,点侧栏底部那个账户行 →菜单里「用户反馈」在「定时任务」之后(位置 8 < 13)→ 点开对话框:标题字段带**恰一个**红 `*`、「详细说明」没有记号、两个标签都不写「可选」、标题为空时「提交」不可用、填了就能提交 → 提交后提示@@ -3462,7 +3462,7 @@ process.env.CLIENT_TYPE || options.model`),写成 `client_type` 会被忽略`pnpm install --frozen-lockfile` 562ms 全命中),把 `BUILD_DATE=2026-10-07` /`BUILD_COMMIT=4e79c473f84614b4e86f9720f0bf8e651f106fda` 盖进 `packages/core/src/index.ts`,然后`hmr / core / server / cli / web` 五个包各构建一次。-- **打包**:`pnpm --config.node-linker=hoisted --filter @lmliheng/penguin-cli --prod deploy` → `lib/`、+- **打包**:`pnpm --config.node-linker=hoisted --filter @adelie/cli --prod deploy` → `lib/`、`packages/web/dist` → `web/`、`scripts/launchers/penguin` → `bin/penguin`、`build-plugins.mjs` →`lib/plugins/`(4 个自带插件),`node/` 沿用现装那份(同 v24.18.0,不必重下 50MB),打成与发布同形的离线bundle(`install.sh` + `payload.tar.gz` + `.sha256`)。**注意**:`scripts/package-release-bundles.sh` 要求@@ -3470,7 +3470,7 @@ process.env.CLIENT_TYPE || options.model`),写成 `client_type` 会被忽略的成品在此之前已经封好(日志里那句 `Created penguin-linux-x64.tar.gz`),本轮用的就是它。- **安装**:`PENGUIN_INSTALL_DIR=/root/.adelie sh install.sh --no-modify-path` →`Payload checksum OK.` / `Adelie v0.3.3 installed to /root/.adelie`。装好后核过产物里确实带上了这一轮:- `lib/node_modules/@lmliheng/penguin-server/dist/index.js` 里有 `feedback_not_configured`、+ `lib/node_modules/@adelie/server/dist/index.js` 里有 `feedback_not_configured`、`web/assets/index-BDmH2BiR.js` 里有「用户反馈」,CLI `--version` = `v0.3.3`、`BUILD_COMMIT = "4e79c473f84614b4e86f9720f0bf8e651f106fda"`。- **配置**:`/etc/systemd/system/adelie-server.service` 在 `ADELIE_HOME` 那行之后加@@ -3978,7 +3978,7 @@ packages/core packages/web packages/docs`),只搬服务端那一半,并让**两处都是 import / 注释区的包 scope**(上游写 `@prismshadow/`、本仓是 `@lmliheng/`),按本仓的名字解掉。本地化三处:-1. 包 scope `@prismshadow/penguin-core/plugin` → `@lmliheng/penguin-core/plugin`(源码注释里的+1. 包 scope `@prismshadow/penguin-core/plugin` → `@adelie/core/plugin`(源码注释里的`HOST_CORE` 说明、`HOST_CORE` 常量、测试的 import 三处)。2. 文案里的 `PENGUIN_SHELL` → `ADELIE_SHELL`:本仓 2.2b 已把这批控制面变量改名,用户照上游那句话去设会设到一个**不再生效**的名字上 —— 这不是改写风格,是让改法真的可用(测试的正则、用例名、@@ -3990,7 +3990,7 @@ packages/core packages/web packages/docs`),只搬服务端那一半,并让### 验证(都不是推测)-- **插件自己**:`typecheck` 过;`pnpm --filter @lmliheng/penguin-plugin-sandbox-dsh test` →+- **插件自己**:`typecheck` 过;`pnpm --filter @adelie/sandbox-dsh test` →**2 文件 / 15 通过 / 1 跳过**。新文件 11 条里 **10 条在 Linux 上真跑**(拒绝 bash、`BASH.EXE`、`dash.exe`、`C:/msys64/usr/bin/env.exe`;放行 pwsh 与原生 git;只有会话 shell 是 bash 时点`ADELIE_SHELL`;Linux 一个都不拦;`loadDshAdaptor({platform:"win32",sessionShell:{command:"sh"}})`@@ -4464,7 +4464,7 @@ does not exist in index` 等),属上游「权限菜单预设 + DSH 自带依### 验证(都不是推测)-- 插件 `typecheck` 过;`ADELIE_MUST_RUN=sandbox-dsh pnpm --filter @lmliheng/penguin-plugin-sandbox-dsh test`+- 插件 `typecheck` 过;`ADELIE_MUST_RUN=sandbox-dsh pnpm --filter @adelie/sandbox-dsh test`→ **2 文件 / 15 通过 / 1 跳过**:`live.test.ts` **5 条在本机真跑**(新加的工作区内标记断言在内)、`windows-shells.test.ts` 11 条里 10 条真跑、1 条仍是那块 Windows 专属的 `describe.skipIf`。- 六包 `typecheck` 全过(`gen:ifaces` 打印 `src/ifaces.json unchanged (187 interfaces, 535 types)`)。@@ -4586,11 +4586,11 @@ settings-status.ts`、`packages/web/src/features/chat/builtin-dock-panels.tsx`默认 Ubuntu 24.04 的 `kernel.apparmor_restrict_unprivileged_userns=1` 与后端的启动检查失败(`setting up uid map: Permission denied`)、只需做一次的 root 步骤(一份 AppArmor profile,`abi <abi/4.0>` + `userns,`,落在 `/etc/apparmor.d/adelie-sandbox-bwrap`)、profile 的路径模式- `@{HOME}/.adelie/**/plugins/node_modules/@lmliheng/penguin-plugin-sandbox-bwrap/vendor/linux-*/bin/+ `@{HOME}/.adelie/**/plugins/node_modules/@adelie/sandbox-bwrap/vendor/linux-*/bin/bwrap`(`**` 覆盖这个包在数据根父目录下可能被解压到的每个位置:安装目录随包带的、下载到数据根目录的、热推送携带的),以及两种替代做法(在沙盒卡片上把「bwrap 程序」换成属于 root 的副本,或`sysctl` 全机调低开关)与数据根不在 `~/.adelie` 时的做法。**两处的写法都是照本树实数改的**:- `~/.adelie/lib/plugins/node_modules/@lmliheng/penguin-plugin-sandbox-bwrap/vendor/linux-x64/bin/bwrap`+ `~/.adelie/lib/plugins/node_modules/@adelie/sandbox-bwrap/vendor/linux-x64/bin/bwrap`在这台机器的现装上真的存在(`ls` 过),三个前缀的来历分别见 `state/paths.ts` 的`userPluginsDir()`、`plugin/loader.ts` 的 `pluginBases()`(`<root>/plugins`、hmr 解包目录、启动器上一级的 `plugins/`)。@@ -4605,7 +4605,7 @@ settings-status.ts`、`packages/web/src/features/chat/builtin-dock-panels.tsx`本轮日期、去掉上游 PR 链接、正文改写成「移植自上游 #977 / `45885985`」)。**本地化(四处,都是照上游原文写会在本仓读不到或写错的)**:① 包名-`@penguinharness/sandbox-bwrap` → `@lmliheng/penguin-plugin-sandbox-bwrap`(4.1 的 scope 改名早已落到+`@penguinharness/sandbox-bwrap` → `@adelie/sandbox-bwrap`(4.1 的 scope 改名早已落到插件包上);② 路径 `~/.penguin` → `~/.adelie`(2.2a 的数据根与安装目录);③ 环境变量 `PENGUIN_HOME`→ `ADELIE_HOME`(旧名仍读,文档里写明这一点;`PENGUIN_INSTALL_DIR` 仍是安装器的真名,照留);④ profile 名 `penguin-sandbox-bwrap` → `adelie-sandbox-bwrap`(不撞桌面 `.deb` 会装的@@ -4633,7 +4633,7 @@ settings-status.ts`、`packages/web/src/features/chat/builtin-dock-panels.tsx`### 验证(都不是推测)-- 插件 `typecheck` 过(`plugins/sandbox-bwrap`);`pnpm --filter @lmliheng/penguin-plugin-sandbox-bwrap+- 插件 `typecheck` 过(`plugins/sandbox-bwrap`);`pnpm --filter @adelie/sandbox-bwraptest` → **2 文件 / 27 通过**(`profile.test.ts` 20、`live.test.ts` 7),`EXIT=0`。- **反向取证**(证明新用例验的是本轮改动):把 `, see "Sandbox on Ubuntu" in the CLI quickstart`从源码里去掉后,`-t "points at the documented step"` 点名跑 → **1 失败 / 19 跳过**、`EXIT=1`;@@ -4644,7 +4644,7 @@ settings-status.ts`、`packages/web/src/features/chat/builtin-dock-panels.tsx`- `pnpm lint` **0 警告 0 错误**(2073 文件);`pnpm format:check` 干净。- 五包 test 逐包 `EXIT=0` 全绿:core **1359 通过 / 5 跳过**(65 文件)· ui **1007**(127)·cli **506**(34)· web **2963 / 2 跳过**(241)· server **185 文件 / 2690 通过 / 4 跳过** —— **0 失败**;- 另跑 **`@lmliheng/penguin-docs` 62 通过**(8 文件)—— 本轮改到了它的内容,这一跑是必须的+ 另跑 **`@adelie/docs` 62 通过**(8 文件)—— 本轮改到了它的内容,这一跑是必须的(它管着 Markdown 的解析、TOC、hash 解码等)。- **界面/文档真看一眼**:`packages/docs` 的 `vite` 起在 **7471**(临时起、看完即关,未动3003 / 3004 / 4000 / 7364 / 7369),Playwright(本地 chromium)打开 `/quickstart-cli` 的中英两版:@@ -4779,7 +4779,7 @@ settings-status.ts`、`packages/web/src/features/chat/builtin-dock-panels.tsx`- 五包 test 逐包 `EXIT=0`:core **1359 通过 / 5 跳过**(65 文件)· ui **1007**(127 文件)·cli **506**(34 文件)· web **2976 / 2 跳过**(**242** 文件,比上一轮 +13 条,正是新的`panel-registry.test.ts` 与扩写过的 `dock-state.test.ts`)· server **185 文件 / 2690 通过 / 4 跳过**- —— **0 失败**。另跑 `@lmliheng/penguin-docs` **62 通过**(8 文件)—— 本轮改到了它的内容。+ —— **0 失败**。另跑 `@adelie/docs` **62 通过**(8 文件)—— 本轮改到了它的内容。- **界面真跑了一遍**(这一条改的是界面,所以照纪律起真服务 + 真浏览器):按当前源码重建`packages/{ui,web}/dist` 后,用**一次性数据根** `/root/adelie-fork-data/r27-dock`(`ADELIE_SEED_ADMIN_PASSWORD`起、不走认领链接)在 **7494** 起服务,Playwright(本机 chromium,1440×900):@@ -4909,7 +4909,7 @@ settings-status.ts`、`packages/web/src/features/chat/builtin-dock-panels.tsx``plugin-config-card` / `plugin-config-draft` / `permission-menu` / `sandbox-backend-prompt` /`advanced-fold` 与扩写的 `permission-level`)· server **187 文件 / 2755 通过 / 4 跳过**(+65 条:`sandbox-switch` / `sandbox-ceiling` 新文件与 `plugin-config` / `session-sandbox` 扩写)- —— **0 失败**。另跑 `@lmliheng/penguin-docs` **62 通过**(8 文件)—— 本轮改到了它的内容。+ —— **0 失败**。另跑 `@adelie/docs` **62 通过**(8 文件)—— 本轮改到了它的内容。- **界面真跑了一遍**(这一条改的是界面):按当前源码重建 `packages/{core,server,web}` 的 dist(server 的 tsup 在本机默认堆下会 `ERR_WORKER_OUT_OF_MEMORY`,加 `NODE_OPTIONS=--max-old-space-size=4096`单跑即过),用**一次性数据根** `/root/adelie-fork-data/r28-presets`(`ADELIE_SEED_ADMIN_PASSWORD`@@ -4918,7 +4918,7 @@ settings-status.ts`、`packages/web/src/features/chat/builtin-dock-panels.tsx`(总是询问 / 放行只读 / 全部放行 / 全部拒绝)与「更多…」,这正是「关闭时只列审批方式」那条;- 菜单里的「更多…」按设计打开设置对话框的**沙盒卡片**(`section="plugins"`、`pluginFocus="sandbox"`):卡片只有标题、一条「没有可用后端」的提示与**启用**开关;点开关 → 弹出**安装后端**的对话框,- 里面点名的包是 `@lmliheng/penguin-plugin-sandbox-bwrap`(本地化这条在界面上可见);+ 里面点名的包是 `@adelie/sandbox-bwrap`(本地化这条在界面上可见);- 选「暂不」后卡片展开出**预设表**(名称 / 文件 / 网络 / 询问模式 / 操作,首行「关闭(完全访问)」三个单元格标「已锁定」)与「添加预设」「高级选项」;- 点**保存**、刷新页面、重开权限菜单:菜单变成 **完全访问 / 每次询问 / 仅工作区可写 / 只读**,@@ -4953,7 +4953,7 @@ settings-status.ts`、`packages/web/src/features/chat/builtin-dock-panels.tsx``pnpm gen:ifaces && node ../../scripts/run-with-env.mjs NODE_OPTIONS=--max-old-space-size=4096 -- tsup`。helper 的语义是**环境里有就以环境为准**,所以:不导出时拿到 4096MB(够用),需要更多堆的机器仍可自己 `export NODE_OPTIONS`。-- **验证(实测)**:改前 `pnpm --filter @lmliheng/penguin-server run build` 在默认堆下 `EXIT=1`+- **验证(实测)**:改前 `pnpm --filter @adelie/server run build` 在默认堆下 `EXIT=1`且报 `ERR_WORKER_OUT_OF_MEMORY`;改后同一条命令 `EXIT=0` 并产出`dist/{index,api/types,plugin/index}.d.ts`;把 `NODE_OPTIONS=--max-old-space-size=1024` 留在环境里复跑,helper 打印「the environment overrides these defaults」并按 1024 跑(照旧 OOM)——@@ -5022,7 +5022,7 @@ settings-status.ts`、`packages/web/src/features/chat/builtin-dock-panels.tsx`**一条不在冲突区里的漏网**:`plugins/sandbox-bwrap/src/index.ts` 的拒绝文案整行由上游那一笔带来(它落在 conflict 之外,`git apply -3` 直接写进文件),里面的包名还是 `@penguinharness/sandbox-dsh`-—— 逐行扫 diff 时抓出来改掉(`@lmliheng/penguin-plugin-sandbox-dsh`)。+—— 逐行扫 diff 时抓出来改掉(`@adelie/sandbox-dsh`)。**本地化**:`@penguinharness/sandbox-*` → `@lmliheng/penguin-plugin-sandbox-*`(**必须改**:本仓那四个后端包就叫这个名字,照上游写卡片会去装一个不存在的包)、`@prismshadow/penguin-*` → `@lmliheng/penguin-*`、@@ -5039,7 +5039,7 @@ settings-status.ts`、`packages/web/src/features/chat/builtin-dock-panels.tsx`不是 `SandboxDimension` 那一串;`pnpm lint` **0 警告 0 错误**(2108 文件);`pnpm format:check` 干净。- **测试**(逐包 `EXIT=0`,**0 失败**):core **1368 通过 / 5 跳过**(65 文件,比上一轮 +9 —— 正是`runner-lines` 这笔)· ui **1008**(127)· cli **506**(34)· web **3032 / 2 跳过**(**248** 文件)- · server **189 文件 / 2766 通过 / 4 跳过**;另跑 `@lmliheng/penguin-docs` **62** 与四个沙箱插件包+ · server **189 文件 / 2766 通过 / 4 跳过**;另跑 `@adelie/docs` **62** 与四个沙箱插件包(bwrap **29** · dsh **21 + 1 跳过** · seatbelt **17 + 5 跳过** · wsl **25**)全绿。- **界面真跑了一遍**(这一条改的是界面):按当前源码重建 `packages/{core,server,web}` 的 dist(server 的tsup 现在自带 4096MB 默认堆,第二十八轮那一笔),一次性数据根 `/root/adelie-fork-data/r29-landlock`@@ -5047,8 +5047,8 @@ settings-status.ts`、`packages/web/src/features/chat/builtin-dock-panels.tsx`1440×900,zh-CN):- 权限菜单照旧四档审批方式 + 「更多…」,点「更多…」按设计打开设置对话框的沙盒卡片;- 全新数据根 = 全新安装,卡片只有标题、一条「没有可用后端」提示与**启用**开关;**点开关后弹出的安装- 提示点名两个包、顺序与列表一致** —— `@lmliheng/penguin-plugin-sandbox-bwrap` 与- `@lmliheng/penguin-plugin-sandbox-dsh`,并按上游文案写明「两者都可用时,使用封禁范围更大的那个」+ 提示点名两个包、顺序与列表一致** —— `@adelie/sandbox-bwrap` 与+ `@adelie/sandbox-dsh`,并按上游文案写明「两者都可用时,使用封禁范围更大的那个」(这正是 `recommended` 由字符串改成列表在界面上的样子,也是本轮唯一能在这台机器上看到的界面变化);- 「暂不」后卡片展开预设表与「添加预设」「高级选项」,排版正常;- **console 0 error / 0 pageerror / 一条 4xx 都没有**(脚本从进测试页起记账,最后打印 `[]`);@@ -5145,7 +5145,7 @@ settings-status.ts`、`packages/web/src/features/chat/builtin-dock-panels.tsx`去掉上游 PR 行、写明移植出处。**本地化两处**:测试夹具里的 `@penguinharness/sandbox-dsh` → 本仓的-`@lmliheng/penguin-plugin-sandbox-dsh`(它只是被忽略集里的一条样例,但按 2.1c 的口径不留上游名号);+`@adelie/sandbox-dsh`(它只是被忽略集里的一条样例,但按 2.1c 的口径不留上游名号);changelog 里的包数按本树实跑结果写成 **23**(探针按五个目标平台算成 24,读了文件里的`TARGET_PLATFORMS` 才发现它只列四个 —— 没有 `darwin-x64`)。**没有改** `PREFIX_MANIFEST.name`(`penguin-builtin-plugins`,prefix 自己的 npm 清单名,2.1c 当时有意留着):它只是随包前缀的包名,@@ -5270,7 +5270,7 @@ Web App —— 后者这次整条链路拆掉:- `pnpm lint` **0 警告 0 错误**(2114 文件)。- 逐包 test `EXIT=0`:core **1368** / 5 跳过(66 文件)· ui **1008**(127)· cli **507**(34,+1 = 本笔新用例)· web **3032** / 2 跳过(248 文件)· server **191 文件 / 2775 通过 / 4 跳过**- —— **0 失败**;另跑 `@lmliheng/penguin-docs` **62 通过**(8 文件,本轮改到它的内容)。+ —— **0 失败**;另跑 `@adelie/docs` **62 通过**(8 文件,本轮改到它的内容)。- **界面真跑**(先按 `hmr → core → server → web` 逐个重建产物 —— 三个一起 build 会挤爆,见第二十八轮;一次性数据根 `/root/adelie-fork-data/r31-eval`、`localhost:4111`、真浏览器):1. 登录(`admin` + 一次性口令)→ 会话列表、评估中心渲染正常。@@ -5821,7 +5821,7 @@ UI 包折叠内容区(`packages/ui/src/components/layout/fold/fold.tsx`)的一组场景并把这个事件加进「不需要反应的事件」清单。- **changelog 一对**:改名到本仓日期口径(`2026-10-10-session-approvals-event{,.zh}.md`)、去掉上游 PR 行、写明「移植自上游 PenguinHarness(#1002,提交 `60f34c47`)」。-- **本地化只有一处**:新用例里的 `@prismshadow/penguin-core` → `@lmliheng/penguin-core`(第一次 typecheck+- **本地化只有一处**:新用例里的 `@prismshadow/penguin-core` → `@adelie/core`(第一次 typecheck直接报 `TS2307: Cannot find module '@prismshadow/penguin-core'`,改掉即过)。### 验证(都不是推测)@@ -5934,7 +5934,7 @@ prompt 里那串 `--filter @prismshadow/penguin-*` 也已过时,本仓包名前不出现在屏幕上。- **changelog 一对**:改名到本仓日期口径(`2026-10-11-chat-paste-while-running{,.zh}.md`)、去掉上游PR 行、写明「移植自上游 PenguinHarness(#1001,提交 `8a1868cf`)」。-- **本地化只有一处**:新用例里的 `@prismshadow/penguin-core` → `@lmliheng/penguin-core`。+- **本地化只有一处**:新用例里的 `@prismshadow/penguin-core` → `@adelie/core`。### 验证(都不是推测)@@ -6421,7 +6421,7 @@ mock 的演示路径与 `packages/docs` 的环境表,台账里写明了它们③写完之后那个月目录里只该有 `<id>.md` 一个名字(不留临时文件)。- **changelog 一对**:按本仓惯例改名到本轮日期(`2026-10-11-org-store-atomic-write{,.zh}.md`)、去掉上游PR 行、写明「移植自上游 PenguinHarness(#850,提交 `ebd9d8d2`)」。-- **本地化**:只有一处 —— 新 import 用本仓的 core scope(`@lmliheng/penguin-core`,上游写的是+- **本地化**:只有一处 —— 新 import 用本仓的 core scope(`@adelie/core`,上游写的是`@prismshadow/penguin-core`);改动本身不碰包名。### 验证(都不是推测)@@ -6743,14 +6743,14 @@ changelog 一对,`git apply -3` 干净、不引入新依赖、不碰桌面壳- **changelog 一对**:按本仓惯例改名到本轮日期(`2026-10-12-route-group-auth-per-group{,.zh}.md`)、去掉上游 PR 行、写明「移植自上游 PenguinHarness(#793,提交 `24abe4ef`)」。- **本地化**:本笔唯一需要改 scope 的是新用例里那两行 `@prismshadow/penguin-core/kernel` —— 逐字改成- 本仓的 `@lmliheng/penguin-core/kernel`(本笔的代码面 `app.ts` / `contributions.ts` 一个 import 都不用改);+ 本仓的 `@adelie/core/kernel`(本笔的代码面 `app.ts` / `contributions.ts` 一个 import 都不用改);`app.ts` 原有的 `MiddlewareHandler<AppEnv>` 与 `declined` 已在树里,无需补前置。### 验证(都不是推测)- 六包 `typecheck` **`EXIT=0`**(六个 `Done`;`gen:ifaces` 报 **`src/ifaces.json unchanged`(189 接口 /580 类型)**,本笔不动服务契约)。-- 新用例先单跑:`pnpm --filter @lmliheng/penguin-server exec vitest run test/http-route-groups.test.ts`+- 新用例先单跑:`pnpm --filter @adelie/server exec vitest run test/http-route-groups.test.ts`→ **6 passed(19ms)**。- **反证(新用例真的钉住旧缺陷)**:把两个源文件 `git checkout HEAD --` 还原成改动前那一版、同一条命令→ **3 failed / 3 passed**(公开组被 401 拦下、未知路径收到 401 而不是 404、`id` 被覆盖成 `forged` ——@@ -6864,7 +6864,7 @@ git merge --ff-only origin/main` → `Already up to date.`(头是 `09354039`cli **539**(37 文件)· web **252 文件 / 3096 通过 / 2 跳过** · server **196 文件 / 2826 通过 / 4 跳过** ·hmr 无测试文件。- **反证(单测)**:把 `model-catalog.ts` 换回 `HEAD` 那一版、只跑- `pnpm --filter @lmliheng/penguin-core exec vitest run test/model-catalog.test.ts`(测试文件仍是本笔的+ `pnpm --filter @adelie/core exec vitest run test/model-catalog.test.ts`(测试文件仍是本笔的那一版)→ **1 failed / 64 passed**,红的就是 `expect(dots.displayName).toBe("Dots3-Note Preview (Free)")`这一条;换回本笔 → **65 passed**。- **真浏览器看到改前与改后两态(本轮主证据,两个方向都看过)**:重建 core / server / web 产物后,一次性@@ -6963,14 +6963,14 @@ git merge --ff-only origin/main` → `Already up to date.`(头是 `46162578`- **changelog 一对**:按本仓惯例改名到本轮日期(`2026-10-12-company-last-org-adoption{,.zh}.md`)、去掉上游 PR 行、写明「移植自上游 PenguinHarness(#824,提交 `aedeac7e`)」,并补一条「接口、线上格式与已存数据都没有变化」。-- **本地化**:本笔没有需要改 scope 的 import(`company.tsx` 原有的 `@lmliheng/penguin-server/api` 与- `@lmliheng/penguin-ui` 已在树里),逐字照落。+- **本地化**:本笔没有需要改 scope 的 import(`company.tsx` 原有的 `@adelie/server/api` 与+ `@adelie/ui` 已在树里),逐字照落。### 验证(都不是推测)- 六包 `typecheck` **`EXIT=0`**(六个 `Done`;`gen:ifaces` 报 **`src/ifaces.json unchanged`(189 接口 /580 类型)**,本笔不动服务契约)。-- 新用例先单跑:`pnpm --filter @lmliheng/penguin-web exec vitest run test/company-store.test.ts`+- 新用例先单跑:`pnpm --filter @adelie/web exec vitest run test/company-store.test.ts`→ **19 passed**。- **反证(新用例真的钉住新路径)**:把 `company.tsx` 换回 `HEAD` 那一版、只跑同一条命令 → **1 failed /18 passed**(新用例在旧代码上 `store.getState().adoptLastOrg is not a function` —— 即这个方法与这条@@ -7094,14 +7094,14 @@ git merge --ff-only origin/main` → `Already up to date.`(头是 `192f543b`- 六包 `typecheck` **`EXIT=0`**(六个 `Done`;`gen:ifaces` 报 **`src/ifaces.json unchanged`(189 接口 /580 类型)**,本笔不动服务契约)。-- 新用例先单跑:`pnpm --filter @lmliheng/penguin-web exec vitest run test/messaging-binding-editor.test.ts`+- 新用例先单跑:`pnpm --filter @adelie/web exec vitest run test/messaging-binding-editor.test.ts`→ **23 passed**。- **反证(单测)**:把 `messaging-binding-editor.tsx` 换回 `HEAD` 那一版、只跑同一条命令 → **2 failed /21 passed**(`enablePrerequisite` 不是函数;「置灰的开关仍可点」那条也挂),换回本笔 → **23 全过**。- `npx oxlint` **0 警告 0 错误**(2142 文件)· `npx prettier --check .` 干净 · `git diff --check` 干净。- 逐包 test **`EXIT=0`、0 失败**:core **1395** / 6 跳过(68 文件)· ui **1021**(128 文件)· cli **539**(37 文件)· web **252 文件 / 3098 通过 / 2 跳过**(+1 即本笔新用例)· server **196 文件 / 2826 通过 /- 4 跳过** · 另跑 `@lmliheng/penguin-docs` **62 通过**(8 文件,本笔改了它的两份内容)。hmr 无测试文件。+ 4 跳过** · 另跑 `@adelie/docs` **62 通过**(8 文件,本笔改了它的两份内容)。hmr 无测试文件。- **真界面两态都看过(本轮主证据)**:重建 web 产物后,一次性数据根 `/root/adelie-fork-data/r46-agent`、`localhost:8973` 起真服务(`ADELIE_HOME` / `ADELIE_PROFILE=dev` / `PORT` / `ADELIE_SEED_ADMIN_PASSWORD`),会话行用 sqlite 写在 `default_project` 上(这个根没有模型 key,`POST …/sessions` 会被@@ -7208,7 +7208,7 @@ git merge --ff-only origin/main` → `Already up to date.`(头是 `eccef7e3`- 六包 `typecheck` **`EXIT=0`**(六个 `Done`;`gen:ifaces` 报 **`src/ifaces.json unchanged`(189 接口 /580 类型)**,本笔不动服务契约)。-- 新用例先单跑:`pnpm --filter @lmliheng/penguin-web exec vitest run test/textarea-fit.test.ts` →+- 新用例先单跑:`pnpm --filter @adelie/web exec vitest run test/textarea-fit.test.ts` →**2 passed**。- `npx oxlint` **0 警告 0 错误**(2144 文件)· `npx prettier --check .` 干净 · `git diff --check` 干净。- 逐包 test **`EXIT=0`、0 失败**:core **1395** / 6 跳过(68 文件)· ui **1021**(128 文件)· cli **539**@@ -7793,7 +7793,7 @@ SSE 客户端与服务端写路径上、真跑那条 e2e 的成本比一轮高- **changelog 一对**:改名到本轮日期(`2026-10-13-sse-stall{,.zh}.md`)、去掉上游 PR 行、写明「移植自上游PenguinHarness(#1026,提交 `99dacb54`)」、补一节「兼容性」(旧服务器 / 新页面、新服务器 / 旧页面、磁盘无变化)。-- **本地化**:新用例里 `@prismshadow/penguin-core` → 本仓 `@lmliheng/penguin-core`(唯一一处 scope)。+- **本地化**:新用例里 `@prismshadow/penguin-core` → 本仓 `@adelie/core`(唯一一处 scope)。### 验证(都不是推测)@@ -8652,7 +8652,7 @@ desktop)、**3.5** 要用户拍板取哪个桌面壳、**3.6** 要模型 key- **怎么造出「分页落在 `session_meta` 之后」的真会话**:重建 server / web 产物后,一次性数据根`/root/adelie-fork-data/r59-after`、`localhost:8943`(`ADELIE_PROFILE=dev` +`ADELIE_SEED_ADMIN_PASSWORD`)起真服务,`POST /api/auth/login` 拿 cookie,往 `web.db` 的 `sessions`- 表插一行(`r59-probe-session`),再用 `@lmliheng/penguin-core/omnimessage` 的构造器**手写**一份+ 表插一行(`r59-probe-session`),再用 `@adelie/core/omnimessage` 的构造器**手写**一份**30 轮**的 Trace(第 30 轮里三次 `edit_file`:`<agent_state>/memory/user/local-dev-instance.md` 两次、`MEMORY.md` 一次),并把这个 Agent 的记忆目录按 core 的布局落在盘上 —— **不需要模型 key**(即 3.6 那个卡点)。30 轮 > 首页窗口 20 个单元,所以分页信封**确实**从 `session_meta` 之后开始@@ -8797,7 +8797,7 @@ desktop)、**3.5** 要用户拍板取哪个桌面壳、**3.6** 要模型 key- **GitHub Release `v0.3.9`**:14 件资产全部 201 上传完成(与 v0.3.3/.4/.5/.6 同一口径,不含 macOS)。- **npm**:`/tmp/rel-0.3.9`(版本戳提交的独立工作树,`pnpm -r build` 已跑)里发出 **22 个包**- (3 宿主 + 19 插件),全在 `@lmliheng` 下,**新名字 `@lmliheng/use-wps-office` 首次发布成功**(走+ (3 宿主 + 19 插件),全在 `@lmliheng` 下,**新名字 `@adelie/use-wps-office` 首次发布成功**(走`~/.npmrc` 的 granular token,不是 OIDC)。发完头几分钟有 10 个包在 registry 上是 404 —— 那是npm 分段发布的已知延迟([[npm-publish-is-manual-bootstrap]]),**没有升版本号**;过几分钟复探只剩`penguin-server`/`penguin-cli`,最终以 `check-publishable.mjs --registry --strict` 为准。@@ -8884,7 +8884,7 @@ desktop)、**3.5** 要用户拍板取哪个桌面壳、**3.6** 要模型 key`setEncoding("utf8")` 帮忙兜住了这件事,直接换成裸 chunk 会让它退化成 U+FFFD,所以这一步不能省)。- **`plugins/sandbox-wsl/src/tasks.ts`**(+2 −4):`readText()`(读安装日志那处)不再自己`readFileSync(file, "utf8")` 后删 BOM、删 NUL,改成走 `decodeOutput(fs.readFileSync(file))` —— 两条读- 法从此是同一个解码器。import 里加 `decodeOutput`(本仓的 `@lmliheng/penguin-core/plugin` 那行没动)。+ 法从此是同一个解码器。import 里加 `decodeOutput`(本仓的 `@adelie/core/plugin` 那行没动)。- **`plugins/sandbox-wsl/test/host.test.ts`**(新,89 行 / 七条):上游自带的那份照落,`spawn` 被 mock、字节是真的 —— 逐字节写入的 UTF-16LE(带 / 不带 BOM)、UTF-8(带 / 不带 BOM)、**两条流各自编码**(stdout UTF-8、stderr UTF-16LE,且通知在解码之后才被认出来)、**UTF-8 进度行被切开一个汉字**时@@ -8898,12 +8898,12 @@ desktop)、**3.5** 要用户拍板取哪个桌面壳、**3.6** 要模型 key- 六包 `typecheck` **`EXIT=0`**(六个 `Done`;server 的 `gen:ifaces` 报 **`src/ifaces.json unchanged`(189 接口 / 580 类型)**,本笔不动服务契约);插件自己的 `pnpm --filter- @lmliheng/penguin-plugin-sandbox-wsl typecheck` 也 **`EXIT=0`**。+ @adelie/sandbox-wsl typecheck` 也 **`EXIT=0`**。- `npx oxlint` **0 警告 0 错误**(2167 文件)· `npx prettier --check .` 干净 · `git diff --check` 干净。- 逐包 test **`EXIT=0`、0 失败**:core **1395** / 6 跳过(68 个文件,67 通过 + 1 跳过)· ui **1028**(129 文件)· cli **539**(37 文件)· server **197 文件 / 2833 通过 / 4 跳过** · web **255 文件 /3120 通过 / 2 跳过** · hmr 无测试文件。插件那一套本轮的包没在「六包」里,单独跑:- `pnpm --filter @lmliheng/penguin-plugin-sandbox-wsl test` → **32 通过**(`host.test.ts` 7 条 ++ `pnpm --filter @adelie/sandbox-wsl test` → **32 通过**(`host.test.ts` 7 条 +`profile.test.ts` 25 条;上游那一笔的记录里也是 32)。- **反证(单测)**:把 `src/host.ts` 退回 `HEAD`(新用例留着)→ **3 failed / 29 passed**,红的正是两条UTF-16LE 用例(`it.each([false, true])`)与「两条流各自解码」那条 —— 断言里实际收到的 stderr 是@@ -9001,7 +9001,7 @@ jsdom 无关,缺的只是取证手段;于是那条卡点不再挡路,而`toastError(apiErrorText(e))`。`map === null`(还没读到标记)仍然什么都不做。- **changelog 一对**(`changelog/unreleased/2026-10-15-error-read-status{,.zh}.md`):按本仓惯例改名到本轮日期、去掉上游 PR 行、写明「移植自上游 PenguinHarness(#1118,提交 `591f091d`)」,正文写「改了什么」。-- **本地化**:只有一处 —— 上游 import 的是 `@prismshadow/penguin-ui`,本仓是 `@lmliheng/penguin-ui`+- **本地化**:只有一处 —— 上游 import 的是 `@prismshadow/penguin-ui`,本仓是 `@adelie/ui`(4.1 之前的包名口径)。`apiErrorText` 与本树已有的 `schedule-panel.tsx` 等调用点完全一致。### 验证(都不是推测)@@ -9254,7 +9254,7 @@ JSON parse exception…」。**解法**:只把上游**新增**的两块(`rat### 主证据:单测 + 反证-- **新用例真跑**:`pnpm --filter @lmliheng/penguin-core exec vitest run test/llm.test.ts` → **99 passed**+- **新用例真跑**:`pnpm --filter @adelie/core exec vitest run test/llm.test.ts` → **99 passed**(本树这份文件原本 98 条,加这一条)。- **反证(把固定分支关掉)**:把新那一支的条件临时改成 `false && isRateLimitError(error)`、其余一字不动→ 同一条命令 **1 failed / 98 passed**,红的正是本笔新用例:@@ -9279,7 +9279,7 @@ JSON parse exception…」。**解法**:只把上游**新增**的两块(`rat- 逐包 test **`EXIT=0`、0 失败**:core **1396** / 6 跳过(68 文件,+1 即本笔新用例)· ui **1029**(129 文件)· cli **539**(37 文件)· web **256 文件 / 3122 通过 / 2 跳过** · server**197 文件 / 2842 通过 / 4 跳过** · hmr 无测试文件。(跑 server 之前先- `pnpm --filter @lmliheng/penguin-core build`,因为 server 的测试从 core 的 dist 读东西。)+ `pnpm --filter @adelie/core build`,因为 server 的测试从 core 的 dist 读东西。)### 没做 / 还差什么@@ -9404,7 +9404,7 @@ Console 主题 CSS,量过的结论是「看不出真缺陷」)、`#1051`(`/root/adelie-fork-data/r65-after`,**改前产物起在 8992、本笔产物起在 8993**(同一个数据根,`ADELIE_SEED_ADMIN_PASSWORD` + `POST /api/auth/login` 拿 cookie)。数据面**不需要模型 key**(即 3.6 那个卡点):两个 Agent 由 `POST /api/projects/default_project/agents` 建出(共三个),- 会话行直接写进 `web.db` 的 `sessions` 表、历史用 `@lmliheng/penguin-core/omnimessage` 的构造器+ 会话行直接写进 `web.db` 的 `sessions` 表、历史用 `@adelie/core/omnimessage` 的构造器手写一份 5 轮 Trace。- **探针**(`r65/probe.mjs`)把**每一条 Session 列表请求扣住 4 秒**,然后量三件事:列表请求的条数与形状、列表还被扣着时对话在不在屏幕上、第一条消息出现用了多久。diff --git a/docs/releases/RELEASE-v0.3.0.md b/docs/releases/RELEASE-v0.3.0.mdindex e8ba47cc..c87ac157 100644--- a/docs/releases/RELEASE-v0.3.0.md+++ b/docs/releases/RELEASE-v0.3.0.md@@ -8,7 +8,7 @@ scope 并首次发上 npm,桌面端的图标换成了 Adelie 自己的标志Adelie 的 tag 一直走在自己的线上(v0.2.0 → v0.2.3),而 npm 上的 `@lmliheng/*` 继承的是上游的开发版本号 —— 首次发布时就落在 **0.2.13**。所以这一版取 **0.3.0** 而不是 0.2.4:0.2.4 在 npm 上是-**降级**(`npm install @lmliheng/penguin-cli` 会拿到 0.2.13),而 0.3.0 在 tag 线、npm 线、桌面端+**降级**(`npm install @adelie/cli` 会拿到 0.2.13),而 0.3.0 在 tag 线、npm 线、桌面端更新线三处都是前进。从源码跑的开发版(0.2.13)与已装的桌面端(0.2.3)都会看到这一版。## 这一版改了什么(相对 v0.2.3)diff --git a/docs/releases/RELEASE-v0.3.1.md b/docs/releases/RELEASE-v0.3.1.mdindex 4b735e07..a3b71c15 100644--- a/docs/releases/RELEASE-v0.3.1.md+++ b/docs/releases/RELEASE-v0.3.1.md@@ -49,7 +49,7 @@ penguin update --yes # 原地替换 bin/lib/web/node| `latest.yml` / `latest-linux.yml` | 桌面端自动更新读的元数据 |安装包都在 GitHub Release 上:<https://github.com/lmliheng/Adelie/releases/tag/v0.3.1>。-npm 上整条链(3 个宿主包 + 16 个插件包)同样是 **0.3.1**:`npm install -g @lmliheng/penguin-cli`。+npm 上整条链(3 个宿主包 + 16 个插件包)同样是 **0.3.1**:`npm install -g @adelie/cli`。## 质量门禁(本机跑过)diff --git a/docs/releases/RELEASE-v0.3.2.md b/docs/releases/RELEASE-v0.3.2.mdindex 5b551ec7..2bf14e78 100644--- a/docs/releases/RELEASE-v0.3.2.md+++ b/docs/releases/RELEASE-v0.3.2.md@@ -46,7 +46,7 @@ penguin update --yes # 原地替换 bin/lib/web/node安装包都在 GitHub Release 上:<https://github.com/lmliheng/Adelie/releases/tag/v0.3.2>;同一份资产也在 OSS 镜像上(`.../releases/v0.3.2/` 与版本无关的 `.../latest/`)。-npm 上整条链同样是 **0.3.2**:`npm install -g @lmliheng/penguin-cli`。这一版里还并入了两个新插件+npm 上整条链同样是 **0.3.2**:`npm install -g @adelie/cli`。这一版里还并入了两个新插件(`requirements-box`、`lesson-video`),也从这一版开始可装。## 质量门禁(本机跑过)diff --git a/docs/releases/RELEASE-v0.3.3.md b/docs/releases/RELEASE-v0.3.3.mdindex 2a826ac0..ad4a022c 100644--- a/docs/releases/RELEASE-v0.3.3.md+++ b/docs/releases/RELEASE-v0.3.3.md@@ -61,7 +61,7 @@ penguin update --yes # 原地替换 bin/lib/web/node安装包都在 GitHub Release 上:<https://github.com/lmliheng/Adelie/releases/tag/v0.3.3>;同一份资产也在 OSS 镜像上(`.../releases/v0.3.3/` 与版本无关的 `.../latest/`)。-npm 上整条链同样是 **0.3.3**:`npm install -g @lmliheng/penguin-cli`。+npm 上整条链同样是 **0.3.3**:`npm install -g @adelie/cli`。## 质量门禁(本机跑过)diff --git a/docs/releases/RELEASE-v0.3.4.md b/docs/releases/RELEASE-v0.3.4.mdindex bb013ce6..c9d48219 100644--- a/docs/releases/RELEASE-v0.3.4.md+++ b/docs/releases/RELEASE-v0.3.4.md@@ -48,7 +48,7 @@ penguin update --yes # 原地替换 bin/lib/web/node安装包都在 GitHub Release 上:<https://github.com/lmliheng/Adelie/releases/tag/v0.3.4>;同一份资产也在 OSS 镜像上(`.../releases/v0.3.4/` 与版本无关的 `.../latest/`)。-npm 上整条链同样是 **0.3.4**:`npm install -g @lmliheng/penguin-cli`。+npm 上整条链同样是 **0.3.4**:`npm install -g @adelie/cli`。## 质量门禁(本机跑过)diff --git a/docs/releases/RELEASE-v0.3.5.md b/docs/releases/RELEASE-v0.3.5.mdindex 64e4c19f..8d3a0a16 100644--- a/docs/releases/RELEASE-v0.3.5.md+++ b/docs/releases/RELEASE-v0.3.5.md@@ -61,7 +61,7 @@ penguin update --yes # 原地替换 bin/lib/web/node安装包都在 GitHub Release 上:<https://github.com/lmliheng/Adelie/releases/tag/v0.3.5>;同一份资产也在 OSS 镜像上(`.../releases/v0.3.5/` 与版本无关的 `.../latest/`)。-npm 上整条链同样是 **0.3.5**:`npm install -g @lmliheng/penguin-cli`。+npm 上整条链同样是 **0.3.5**:`npm install -g @adelie/cli`。## 质量门禁(本机跑过)diff --git a/docs/releases/RELEASE-v0.3.6.md b/docs/releases/RELEASE-v0.3.6.mdindex 981696c3..66f5a551 100644--- a/docs/releases/RELEASE-v0.3.6.md+++ b/docs/releases/RELEASE-v0.3.6.md@@ -59,7 +59,7 @@ penguin update --yes # 原地替换 bin/lib/web/node| `latest.yml` / `latest-linux.yml` | 桌面端自动更新读的元数据 |安装包都在 GitHub Release 上:<https://github.com/lmliheng/Adelie/releases/tag/v0.3.6>,-下载页同样直指这里。npm 上整条链同样是 **0.3.6**:`npm install -g @lmliheng/penguin-cli`。+下载页同样直指这里。npm 上整条链同样是 **0.3.6**:`npm install -g @adelie/cli`。**清理是这一版新增的能力,出厂是关着的。** 想用就在设置页「存储」页打开开关,或`penguin storage mode on`;不想用就什么都不用做,行为与上一版一致(只有只读的分类账多出来)。diff --git a/docs/releases/RELEASE-v0.3.7.md b/docs/releases/RELEASE-v0.3.7.mdindex 8415341f..81ef8d0d 100644--- a/docs/releases/RELEASE-v0.3.7.md+++ b/docs/releases/RELEASE-v0.3.7.md@@ -89,7 +89,7 @@ penguin update --yes # 原地替换 bin/lib/web/node| `latest.yml` / `latest-linux.yml` | 桌面端自动更新读的元数据 |安装包都在 GitHub Release 上:<https://github.com/lmliheng/Adelie/releases/tag/v0.3.7>,-下载页同样直指这里。npm 上整条链同样是 **0.3.7**:`npm install -g @lmliheng/penguin-cli`。+下载页同样直指这里。npm 上整条链同样是 **0.3.7**:`npm install -g @adelie/cli`。**存储清理仍是出厂关闭的。** 想用就在设置页「存储」页打开开关,或 `penguin storage mode on`;不想用就什么都不用做,行为与上一版一致(只有只读的分类账多出来)。diff --git a/docs/releases/RELEASE-v0.3.8.md b/docs/releases/RELEASE-v0.3.8.mdindex 6fdc500e..9093f153 100644--- a/docs/releases/RELEASE-v0.3.8.md+++ b/docs/releases/RELEASE-v0.3.8.md@@ -103,7 +103,7 @@ penguin update --yes # 原地替换 bin/lib/web/node| `latest.yml` / `latest-linux.yml` | 桌面端自动更新读的元数据 |安装包都在 GitHub Release 上:<https://github.com/lmliheng/Adelie/releases/tag/v0.3.8>,-下载页同样直指这里。npm 上整条链同样是 **0.3.8**:`npm install -g @lmliheng/penguin-cli`。+下载页同样直指这里。npm 上整条链同样是 **0.3.8**:`npm install -g @adelie/cli`。**存储清理仍是出厂关闭的。** 想用就在设置页「存储」页打开开关,或 `penguin storage mode on`;不想用就什么都不用做,行为与上一版一致。diff --git a/docs/releases/RELEASE-v0.3.9.md b/docs/releases/RELEASE-v0.3.9.mdindex 1b6abb96..83b1d3cd 100644--- a/docs/releases/RELEASE-v0.3.9.md+++ b/docs/releases/RELEASE-v0.3.9.md@@ -4,7 +4,7 @@界面修补。**没有破坏性改动**:数据根(`~/.adelie/data`)、配置格式、既有 HTTP 接口都没动,已装好的机器不需要改任何配置。-主角是新插件 **WPS**(`@lmliheng/use-wps-office`):它把 Adelie 的对话搬进 WPS 文字——功能区点一下+主角是新插件 **WPS**(`@adelie/use-wps-office`):它把 Adelie 的对话搬进 WPS 文字——功能区点一下开侧栏,再把你屏幕上那份打开的文档交到 Agent 手里。读随便读,**每一处改动都要你在侧栏里点一下同意**。其余四条都是日常会碰到的界面问题:窗口底部的悬停提示不再被底边截掉一半、上一轮还在跑的智能体不会从面板上消失、切走再切回一个会话时它的面板仍停在原来的全屏状态、很长的会话往上翻时记忆更新卡片不再丢。@@ -70,7 +70,7 @@ penguin update --yes # 原地替换 bin/lib/web/node安装包都在 GitHub Release 上:<https://github.com/lmliheng/Adelie/releases/tag/v0.3.9>,下载页同样直指这里。npm 上整条链同样是 **0.3.9**(3 个宿主包 + 19 个插件包,其中新加入的是-**WPS**):`npm install -g @lmliheng/penguin-cli`。+**WPS**):`npm install -g @adelie/cli`。**存储清理仍是出厂关闭的。** 想用就在设置页「存储」页打开开关,或 `penguin storage mode on`;不想用就什么都不用做,行为与上一版一致。diff --git a/docs/releases/RELEASE-v0.4.0.md b/docs/releases/RELEASE-v0.4.0.mdindex 5d2146db..77eabc3f 100644--- a/docs/releases/RELEASE-v0.4.0.md+++ b/docs/releases/RELEASE-v0.4.0.md@@ -18,7 +18,7 @@Max 一对、混元的角色扮演 / 翻译 / 向量化、小米的 ultraspeed 档也都没收录,理由写在目录的注释里。四家在 AgentHub 里都没有一方客户端,所以每行都钉住 Chat Completions 协议并内联端点;分组图标先走首字母方块(没有可核对的品牌图形,不手画商标)。-2. **新插件 Offer岛:搜岗位、发布 JD、看 AI 资讯。** `@lmliheng/use-offerdao`,插件库「办公效率」+2. **新插件 Offer岛:搜岗位、发布 JD、看 AI 资讯。** `@adelie/use-offerdao`,插件库「办公效率」分类,**不预装**。按公司 / 岗位 / 地点 / 工作类型 / 时间搜已审核的岗位、查 AI 公司目录、找面经攻略、读每日 AI 资讯;把一段 JD 或一个链接交给它,还能解析成结构化岗位替你提交审核。公司目录、面经、资讯不需要 key;搜索与发布要一把 Offer岛的 key,存进 Agent 密钥库的 `OFFERDAO_API_KEY`@@ -78,7 +78,7 @@ penguin update --yes # 原地替换 bin/lib/web/node安装包都在 GitHub Release 上:<https://github.com/lmliheng/Adelie/releases/tag/v0.4.0>,下载页同样直指这里。npm 上整条链同样是 **0.4.0**(3 个宿主包 + 20 个插件包,其中新加入的是-**Offer岛**):`npm install -g @lmliheng/penguin-cli`。+**Offer岛**):`npm install -g @adelie/cli`。**存储清理仍是出厂关闭的。** 想用就在设置页「存储」页打开开关,或 `penguin storage mode on`;不想用就什么都不用做,行为与上一版一致。diff --git a/docs/releases/RELEASE-v0.4.1.md b/docs/releases/RELEASE-v0.4.1.mdindex 8c9c0ae0..83e7ed5b 100644--- a/docs/releases/RELEASE-v0.4.1.md+++ b/docs/releases/RELEASE-v0.4.1.md@@ -17,7 +17,7 @@这是单独一种状态,以前页面上完全看不出来)。现网在跑哪个版本是问服务自己的 `/api/version`,不是读磁盘上那份——读磁盘正好会把「装好了没重启」盖掉;那个接口要本机口令,口令只在服务进程里读,不下发浏览器。出处(仓库、现网地址、口令文件、安装目录)都在 `box.config.json`,安装脚本会自己推。- 插件 `@lmliheng/requirements-box` 的版本相应升到 `2026.10.15.1`。+ 插件 `@adelie/requirements-box` 的版本相应升到 `2026.10.15.1`。2. **账号菜单多一行「反馈社区」。** 左下角账号菜单里新的一行打开产品的**公开反馈板**(腾讯兔小巢),新标签页打开,不打断当前页面。它和旁边那行「用户反馈」并排放着而不是合并:原来那行是把内容收进*这台机器*的反馈队列、而且只有这台机器配了反馈后端时才出现;公开板块属于产品本身,每个安装都是diff --git a/docs/releases/RELEASE-v0.4.2.md b/docs/releases/RELEASE-v0.4.2.mdindex 9d23aac5..af7dc724 100644--- a/docs/releases/RELEASE-v0.4.2.md+++ b/docs/releases/RELEASE-v0.4.2.md@@ -19,7 +19,7 @@拒绝,各 Agent 的设置与密钥原样留着。密钥只能运行它所属的那一个 Agent,改不了任何配置:**把 Agent 对外开放这件事需要人的登录**,Agent 自己的 shell 里做不了。事件走的是新的 AMSP 协议(Agent Message Stream Protocol,SSE 的 `data:` 行,以 `data: [DONE]`- 收尾),文档里新增了 **Agent API** 与 **AMSP** 两个参考页;`@lmliheng/amsp` 是一个新的公开包,+ 收尾),文档里新增了 **Agent API** 与 **AMSP** 两个参考页;`@adelie/amsp` 是一个新的公开包,没有运行时依赖,Node 与浏览器都能用,`client.run()` / `client.ask()` 两个方法够用。命令行一侧多了 `penguin agent api`:`status` / `enable` / `disable` / `set`、`keys ls` /`create` / `rm`,以及 `server on|off`。API 标签页末尾那个**试一试**不用密钥:它按你自己的登录diff --git a/examples/build-agent-with-agent/README.md b/examples/build-agent-with-agent/README.mdindex b15ebdf0..2034a479 100644--- a/examples/build-agent-with-agent/README.md+++ b/examples/build-agent-with-agent/README.md@@ -38,7 +38,7 @@ uses the project's default model, so no model id is hard-coded in the script.## 3. Run the example-From the repo root (build the workspace first so `@lmliheng/penguin-core` resolves to its+From the repo root (build the workspace first so `@adelie/core` resolves to its`dist/`):```bashdiff --git a/examples/build-agent-with-agent/README.zh.md b/examples/build-agent-with-agent/README.zh.mdindex 59c6eac0..c1f6fddb 100644--- a/examples/build-agent-with-agent/README.zh.md+++ b/examples/build-agent-with-agent/README.zh.md@@ -37,7 +37,7 @@ penguin config model add \## 3. 运行示例-从仓库根目录(先构建 workspace,好让 `@lmliheng/penguin-core` 解析到它的 `dist/`):+从仓库根目录(先构建 workspace,好让 `@adelie/core` 解析到它的 `dist/`):```bashpnpm installdiff --git a/examples/build-agent-with-agent/build-agent.ts b/examples/build-agent-with-agent/build-agent.tsindex 01aa7b8d..4d7c52b0 100644--- a/examples/build-agent-with-agent/build-agent.ts+++ b/examples/build-agent-with-agent/build-agent.ts@@ -13,12 +13,7 @@* Run: pnpm --dir examples/build-agent-with-agent start* or: npx tsx examples/build-agent-with-agent/build-agent.ts*/-import {- createAgent,- userText,- isCompleteModelMessage,- type OmniMessage,-} from "@lmliheng/penguin-core";+import { createAgent, userText, isCompleteModelMessage, type OmniMessage } from "@adelie/core";/** Stream a Session run to stdout and collect the assistant's final text. */async function runToStdout(run: AsyncGenerator<OmniMessage>): Promise<string> {diff --git a/examples/build-agent-with-agent/package.json b/examples/build-agent-with-agent/package.jsonindex dc998a17..7c643636 100644--- a/examples/build-agent-with-agent/package.json+++ b/examples/build-agent-with-agent/package.json@@ -1,12 +1,12 @@{- "name": "@lmliheng/example-build-agent-with-agent",+ "name": "@adelie/example-build-agent-with-agent","private": true,"type": "module","scripts": {"start": "tsx build-agent.ts"},"dependencies": {- "@lmliheng/penguin-core": "workspace:*"+ "@adelie/core": "workspace:*"},"devDependencies": {"tsx": "^4.20.0"diff --git a/examples/self-improving-agent/package.json b/examples/self-improving-agent/package.jsonindex 313e1bf0..1e54f96d 100644--- a/examples/self-improving-agent/package.json+++ b/examples/self-improving-agent/package.json@@ -1,12 +1,12 @@{- "name": "@lmliheng/example-self-improving-agent",+ "name": "@adelie/example-self-improving-agent","private": true,"type": "module","scripts": {"start": "tsx self-evolve-recursive.ts"},"dependencies": {- "@lmliheng/penguin-core": "workspace:*"+ "@adelie/core": "workspace:*"},"devDependencies": {"tsx": "^4.20.0"diff --git a/examples/self-improving-agent/self-evolve-recursive.ts b/examples/self-improving-agent/self-evolve-recursive.tsindex 17d97183..7caf9a73 100644--- a/examples/self-improving-agent/self-evolve-recursive.ts+++ b/examples/self-improving-agent/self-evolve-recursive.ts@@ -22,12 +22,7 @@import { promises as fs } from "node:fs";import os from "node:os";import path from "node:path";-import {- createAgent,- userText,- isCompleteModelMessage,- type OmniMessage,-} from "@lmliheng/penguin-core";+import { createAgent, userText, isCompleteModelMessage, type OmniMessage } from "@adelie/core";const AGENT_ID = "self-improve-demo";const PROJECT_ID = "default_project";diff --git a/examples/self-improving-agent/self-evolve.ts b/examples/self-improving-agent/self-evolve.tsindex 505ca282..e2254d82 100644--- a/examples/self-improving-agent/self-evolve.ts+++ b/examples/self-improving-agent/self-evolve.ts@@ -26,12 +26,7 @@import { promises as fs } from "node:fs";import os from "node:os";import path from "node:path";-import {- createAgent,- userText,- isCompleteModelMessage,- type OmniMessage,-} from "@lmliheng/penguin-core";+import { createAgent, userText, isCompleteModelMessage, type OmniMessage } from "@adelie/core";const AGENT_ID = "self-improve-demo";const PROJECT_ID = "default_project";diff --git a/examples/self-improving-agent/self-improve.ts b/examples/self-improving-agent/self-improve.tsindex ace091fb..692ad6a9 100644--- a/examples/self-improving-agent/self-improve.ts+++ b/examples/self-improving-agent/self-improve.ts@@ -29,12 +29,7 @@import { promises as fs } from "node:fs";import os from "node:os";import path from "node:path";-import {- createAgent,- userText,- isCompleteModelMessage,- type OmniMessage,-} from "@lmliheng/penguin-core";+import { createAgent, userText, isCompleteModelMessage, type OmniMessage } from "@adelie/core";const AGENT_ID = "self-improve-demo";const PROJECT_ID = "default_project";diff --git a/install.ps1 b/install.ps1index 2ac85dff..22872abf 100644--- a/install.ps1+++ b/install.ps1@@ -23,7 +23,7 @@# such zips are still accepted, from -Version pins and -ArchivePath files alike.## There is no -Universal on Windows: where the zip is unsuitable, install Node.js >= 24 and run-# `npm install -g @lmliheng/penguin-cli` instead.+# `npm install -g @adelie/cli` instead.## The data dir (%USERPROFILE%\.adelie\data by default) sits under the install home but is never touched by# reinstall/upgrade (which only replace bin/lib/web/node/git). Upgrading = re-running this installer.@@ -193,7 +193,7 @@ if ($DownloadBaseUrl -and $DownloadFallbackBaseUrl) {# --- Platform preconditions: 64-bit Windows; the only Windows package is x64 (ARM64 runs it emulated) ---if (-not [Environment]::Is64BitOperatingSystem) {- Fail "32-bit Windows is not supported. Install Node.js >= 24 and use: npm install -g @lmliheng/penguin-cli"+ Fail "32-bit Windows is not supported. Install Node.js >= 24 and use: npm install -g @adelie/cli"}if ($env:PROCESSOR_ARCHITECTURE -eq "ARM64") {Write-Host "note: no native ARM64 package yet; installing the x64 package (runs via emulation)."diff --git a/package.json b/package.jsonindex 5b1358b9..9d0aeeaa 100644--- a/package.json+++ b/package.json@@ -15,20 +15,20 @@"ifaces:page": "pnpm gen:ifaces && node scripts/iface-page.mjs --in packages/server/src/ifaces.json --out dist-ifaces","typecheck": "pnpm gen:ifaces && pnpm -r typecheck","test": "pnpm -r test",- "test:e2e": "pnpm --filter @lmliheng/penguin-core test:e2e",+ "test:e2e": "pnpm --filter @adelie/core test:e2e","build": "pnpm -r build && pnpm link:cli","link:cli": "pnpm --dir packages/cli link --global || echo '[link:cli] pnpm global directory not configured; skipping the global penguin link (run pnpm setup once first)'","penguin": "node scripts/run-with-env.mjs ADELIE_HOME=~/.penguin/dev-data-cli ADELIE_PROFILE=dev PORT=7370 -- tsx packages/cli/src/penguin.ts","dev": "concurrently -n server,web -c cyan,magenta \"pnpm dev:server\" \"pnpm dev:web\"",- "dev:server": "pnpm --filter @lmliheng/penguin-server dev",- "dev:web": "node scripts/dev-prebuild.mjs && pnpm --filter @lmliheng/penguin-web dev",- "dev:docs": "node scripts/dev-prebuild.mjs --install-only && pnpm --filter @lmliheng/penguin-docs dev",- "dev:gallery": "node scripts/dev-prebuild.mjs --install-only && pnpm --filter @lmliheng/penguin-ui-gallery dev",+ "dev:server": "pnpm --filter @adelie/server dev",+ "dev:web": "node scripts/dev-prebuild.mjs && pnpm --filter @adelie/web dev",+ "dev:docs": "node scripts/dev-prebuild.mjs --install-only && pnpm --filter @adelie/docs dev",+ "dev:gallery": "node scripts/dev-prebuild.mjs --install-only && pnpm --filter @adelie/ui-gallery dev","desktop": "pnpm -r build && node scripts/run-with-env.mjs PENGUIN_HOME=~/.penguin/dev-data -- pnpm --dir packages/desktop start"},"devDependencies": {- "@lmliheng/penguin-cli": "workspace:*",- "@lmliheng/penguin-core": "workspace:*",+ "@adelie/cli": "workspace:*",+ "@adelie/core": "workspace:*","@types/node": "^24.0.0","concurrently": "^10.0.4","esbuild": "^0.28.1",diff --git a/packages/amsp/README.md b/packages/amsp/README.mdindex 6922b692..8df9f246 100644--- a/packages/amsp/README.md+++ b/packages/amsp/README.md@@ -1,11 +1,11 @@-# @lmliheng/amsp+# @adelie/amspThe client of a Adelie agent's API, and the types of AMSP (Agent Message Stream Protocol), the event stream that API serves. No runtime dependencies; runs in Node 24 and in current browsers on `fetch`, `ReadableStream`, `TextDecoder` and `AbortController`.A Project owner turns an agent's API on in the Adelie Web App (the agent's **API** tab) and mints a key there. A program then runs the agent, reads the run as it happens, and continues the conversation by its Session id:```ts-import { AgentClient } from "@lmliheng/amsp";+import { AgentClient } from "@adelie/amsp";const client = new AgentClient({baseUrl: "http://localhost:7364/api/amsp/v1",@@ -38,8 +38,8 @@ console.log(second.text, second.usage.total);A program that sends the request itself — its own `fetch`, its own credentials or URL — reads the body with `readSse` and folds the events with `RunCollector`, which `AgentClient` uses for `result()`:```ts-import { readSse, RunCollector } from "@lmliheng/amsp";-import type { AmspEvent } from "@lmliheng/amsp";+import { readSse, RunCollector } from "@adelie/amsp";+import type { AmspEvent } from "@adelie/amsp";const collector = new RunCollector();for await (const data of readSse(response.body!)) {@@ -57,9 +57,9 @@ const result = collector.result(); // throws AmspStreamError when the stream end## Development```bash-pnpm --filter @lmliheng/amsp build # tsup → dist/ (exports point at dist)-pnpm --filter @lmliheng/amsp typecheck-pnpm --filter @lmliheng/amsp test+pnpm --filter @adelie/amsp build # tsup → dist/ (exports point at dist)+pnpm --filter @adelie/amsp typecheck+pnpm --filter @adelie/amsp test```Part of [Adelie](https://github.com/Prism-Shadow/penguin-harness) · Apache-2.0diff --git a/packages/amsp/package.json b/packages/amsp/package.jsonindex 9cc51a4e..a0375da9 100644--- a/packages/amsp/package.json+++ b/packages/amsp/package.json@@ -1,5 +1,5 @@{- "name": "@lmliheng/amsp",+ "name": "@adelie/amsp","version": "0.4.2","type": "module","description": "AMSP (Agent Message Stream Protocol): the wire types of an Adelie agent's API and a zero-dependency client for Node 24 and browsers.",diff --git a/packages/amsp/src/index.ts b/packages/amsp/src/index.tsindex 825ffaec..5e6fd3d8 100644--- a/packages/amsp/src/index.ts+++ b/packages/amsp/src/index.ts@@ -1,5 +1,5 @@/**- * @lmliheng/amsp — public entry point: the AMSP wire types, which the Adelie server+ * @adelie/amsp — public entry point: the AMSP wire types, which the Adelie server* imports as types too, and a zero-dependency client of one Agent's API.*/export * from "./types.js";diff --git a/packages/cli/README.md b/packages/cli/README.mdindex 47d66659..8a4f559b 100644--- a/packages/cli/README.md+++ b/packages/cli/README.md@@ -1,9 +1,9 @@-# @lmliheng/penguin-cli+# @adelie/cliThe Adelie command line. Installs the `penguin` command: an interactive REPL, a one-shot task runner, model / vault configuration, and the launcher for the Web service.```bash-npm install -g @lmliheng/penguin-cli # requires Node >= 24+npm install -g @adelie/cli # requires Node >= 24``````bash@@ -31,9 +31,9 @@ Prefer a one-line install with a bundled Node runtime? See [Quickstart → CLI a```bashpnpm penguin <args> # run from source (repo root, via tsx)-pnpm --filter @lmliheng/penguin-cli build # tsup → dist/index.js (the penguin bin)-pnpm --filter @lmliheng/penguin-cli typecheck-pnpm --filter @lmliheng/penguin-cli test+pnpm --filter @adelie/cli build # tsup → dist/index.js (the penguin bin)+pnpm --filter @adelie/cli typecheck+pnpm --filter @adelie/cli test```Part of [Adelie](https://github.com/Prism-Shadow/penguin-harness) · Apache-2.0diff --git a/packages/cli/package.json b/packages/cli/package.jsonindex f7e98126..ca15e8a0 100644--- a/packages/cli/package.json+++ b/packages/cli/package.json@@ -1,8 +1,8 @@{- "name": "@lmliheng/penguin-cli",+ "name": "@adelie/cli","version": "0.4.2","type": "module",- "description": "Adelie CLI: interactive REPL and single-task runner over @lmliheng/penguin-core.",+ "description": "Adelie CLI: interactive REPL and single-task runner over @adelie/core.","license": "Apache-2.0","repository": {"type": "git",@@ -24,29 +24,29 @@},"dependencies": {"@modelcontextprotocol/client": "^2.0.0",- "@lmliheng/agent-company": "workspace:*",- "@lmliheng/agent-development": "workspace:*",- "@lmliheng/agent-tuning": "workspace:*",- "@lmliheng/browser-automation": "workspace:*",- "@lmliheng/continual-learning": "workspace:*",- "@lmliheng/csu-mail": "workspace:*",- "@lmliheng/data-analysis": "workspace:*",- "@lmliheng/goal": "workspace:*",- "@lmliheng/humanizer": "workspace:*",- "@lmliheng/lesson-video": "workspace:*",- "@lmliheng/model-development": "workspace:*",- "@lmliheng/requirements-box": "workspace:*",- "@lmliheng/skill-porting": "workspace:*",- "@lmliheng/software-development": "workspace:*",- "@lmliheng/use-bento-slides": "workspace:*",- "@lmliheng/use-firecrawl": "workspace:*",- "@lmliheng/use-offerdao": "workspace:*",- "@lmliheng/use-wps-office": "workspace:*",- "@lmliheng/use-claude-code": "workspace:*",- "@lmliheng/wechat-miniprogram": "workspace:*",+ "@adelie/agent-company": "workspace:*",+ "@adelie/agent-development": "workspace:*",+ "@adelie/agent-tuning": "workspace:*",+ "@adelie/browser-automation": "workspace:*",+ "@adelie/continual-learning": "workspace:*",+ "@adelie/csu-mail": "workspace:*",+ "@adelie/data-analysis": "workspace:*",+ "@adelie/goal": "workspace:*",+ "@adelie/humanizer": "workspace:*",+ "@adelie/lesson-video": "workspace:*",+ "@adelie/model-development": "workspace:*",+ "@adelie/requirements-box": "workspace:*",+ "@adelie/skill-porting": "workspace:*",+ "@adelie/software-development": "workspace:*",+ "@adelie/use-bento-slides": "workspace:*",+ "@adelie/use-firecrawl": "workspace:*",+ "@adelie/use-offerdao": "workspace:*",+ "@adelie/use-wps-office": "workspace:*",+ "@adelie/use-claude-code": "workspace:*",+ "@adelie/wechat-miniprogram": "workspace:*","@prismshadow/agenthub": "^0.4.15",- "@lmliheng/penguin-core": "workspace:*",- "@lmliheng/penguin-server": "workspace:*",+ "@adelie/core": "workspace:*",+ "@adelie/server": "workspace:*","commander": "^13.0.0","dotenv": "^17.0.0","smol-toml": "^1.3.0",diff --git a/packages/cli/src/approval.ts b/packages/cli/src/approval.tsindex 28d8a9d4..e9606660 100644--- a/packages/cli/src/approval.ts+++ b/packages/cli/src/approval.ts@@ -6,7 +6,7 @@* Docs: /docs/cli § "Approval modes (--approve)"; /docs/tools § "Approval".*/import { createInterface } from "node:readline";-import type { ApprovalDecision, ApproveFn } from "@lmliheng/penguin-core";+import type { ApprovalDecision, ApproveFn } from "@adelie/core";import { defaultMessages } from "./i18n.js";import type { Messages } from "./i18n.js";diff --git a/packages/cli/src/auth-session.ts b/packages/cli/src/auth-session.tsindex e70b97b1..12997576 100644--- a/packages/cli/src/auth-session.ts+++ b/packages/cli/src/auth-session.ts@@ -18,7 +18,7 @@ import fs from "node:fs";import http from "node:http";import https from "node:https";import path from "node:path";-import { writeSecretFile } from "@lmliheng/penguin-server/secret-file";+import { writeSecretFile } from "@adelie/server/secret-file";/** Where a login is remembered, beside the data root it belongs to. */export function sessionFile(root: string): string {diff --git a/packages/cli/src/browser-output.ts b/packages/cli/src/browser-output.tsindex fadf2fb1..a67aabfb 100644--- a/packages/cli/src/browser-output.ts+++ b/packages/cli/src/browser-output.ts@@ -22,7 +22,7 @@ import type {BuiltinBrowserStatus,BuiltinBrowserTab,BuiltinBrowserTabsResponse,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import type { Messages } from "./i18n.js";import { renderTable } from "./table.js";diff --git a/packages/cli/src/client.ts b/packages/cli/src/client.tsindex 6d2a9ac4..fd1b0959 100644--- a/packages/cli/src/client.ts+++ b/packages/cli/src/client.ts@@ -31,8 +31,8 @@import { spawn } from "node:child_process";import fs from "node:fs";import path from "node:path";-import { resolveRoot } from "@lmliheng/penguin-core";-import { liveServerLock } from "@lmliheng/penguin-server/lock";+import { resolveRoot } from "@adelie/core";+import { liveServerLock } from "@adelie/server/lock";import { readSession } from "./auth-session.js";import type { Messages } from "./i18n.js";diff --git a/packages/cli/src/commands/agent.ts b/packages/cli/src/commands/agent.tsindex 5560f898..f2aa8f90 100644--- a/packages/cli/src/commands/agent.ts+++ b/packages/cli/src/commands/agent.ts@@ -43,7 +43,7 @@ import type {AgentCreateResponse,AgentSummary,ServerSettingsResponse,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import { resolveApprovalMode } from "../approval.js";import { ApiError, resolveConnection, resolveProjectId, ServerClient } from "../client.js";import { listAgents } from "../server-session.js";diff --git a/packages/cli/src/commands/auth.ts b/packages/cli/src/commands/auth.tsindex bea8aac5..8742da33 100644--- a/packages/cli/src/commands/auth.ts+++ b/packages/cli/src/commands/auth.ts@@ -14,9 +14,9 @@* The session lands in `<root>/cli-session.json` (0600) rather than a shell's history.* Docs: /docs/cli § "penguin auth".*/-import { boundaryEnv } from "@lmliheng/penguin-core";-import { mintApiToken } from "@lmliheng/penguin-server/auth-token";-import { liveServerLock } from "@lmliheng/penguin-server/lock";+import { boundaryEnv } from "@adelie/core";+import { mintApiToken } from "@adelie/server/auth-token";+import { liveServerLock } from "@adelie/server/lock";import type { Command } from "commander";import {call,diff --git a/packages/cli/src/commands/browser.ts b/packages/cli/src/commands/browser.tsindex 97b8a062..95d731e3 100644--- a/packages/cli/src/commands/browser.ts+++ b/packages/cli/src/commands/browser.ts@@ -38,7 +38,7 @@ import type {BuiltinBrowserStatus,BuiltinBrowserTab,BuiltinBrowserTabsResponse,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import {renderCdpResult,renderExec,diff --git a/packages/cli/src/commands/chat.ts b/packages/cli/src/commands/chat.tsindex 4753ece5..e9477a44 100644--- a/packages/cli/src/commands/chat.ts+++ b/packages/cli/src/commands/chat.ts@@ -25,9 +25,9 @@*/import { createInterface, type Interface } from "node:readline";import type { Command } from "commander";-import { VERSION } from "@lmliheng/penguin-core";-import type { ApprovalDecision, OmniMessage, ToolCallPayload } from "@lmliheng/penguin-core";-import type { SessionInfo } from "@lmliheng/penguin-server/api";+import { VERSION } from "@adelie/core";+import type { ApprovalDecision, OmniMessage, ToolCallPayload } from "@adelie/core";+import type { SessionInfo } from "@adelie/server/api";import { StreamRenderer, dim, renderHistory } from "../render.js";import { parseGoalCommand } from "../goal-command.js";import { parseThinkingCommand, resolveThinkingLevel } from "../thinking-command.js";diff --git a/packages/cli/src/commands/config.ts b/packages/cli/src/commands/config.tsindex af3e0f33..aa956aab 100644--- a/packages/cli/src/commands/config.ts+++ b/packages/cli/src/commands/config.ts@@ -62,7 +62,7 @@ import {setVisionModel,unaddableModel,unroutableVendorModel,-} from "@lmliheng/penguin-core";+} from "@adelie/core";import { parseApprovalAnswer } from "../approval.js";import { resolveRootOption } from "../root-option.js";import { getMessages, maskApiKey, type Messages } from "../i18n.js";diff --git a/packages/cli/src/commands/cost.ts b/packages/cli/src/commands/cost.tsindex 510fb8ee..75497ccb 100644--- a/packages/cli/src/commands/cost.ts+++ b/packages/cli/src/commands/cost.ts@@ -12,7 +12,7 @@* Docs: /docs/cli § "penguin cost".*/import type { Command } from "commander";-import type { UsageResponse } from "@lmliheng/penguin-server/api";+import type { UsageResponse } from "@adelie/server/api";import { humanizeTokens } from "../render.js";import { resolveConnection, resolveProjectId, ServerClient } from "../client.js";import { renderTable } from "../table.js";diff --git a/packages/cli/src/commands/input.ts b/packages/cli/src/commands/input.tsindex 2e346f7c..829679ef 100644--- a/packages/cli/src/commands/input.ts+++ b/packages/cli/src/commands/input.ts@@ -28,7 +28,7 @@* Docs: /docs/cli § "penguin input".*/import type { Command } from "commander";-import { isModelMessage, type OmniMessage } from "@lmliheng/penguin-core";+import { isModelMessage, type OmniMessage } from "@adelie/core";import { StreamRenderer, dim } from "../render.js";import { parseDurationMs } from "../duration.js";import { promptApproval } from "../approval.js";diff --git a/packages/cli/src/commands/logs.ts b/packages/cli/src/commands/logs.tsindex ce567cea..1d88253b 100644--- a/packages/cli/src/commands/logs.ts+++ b/packages/cli/src/commands/logs.ts@@ -25,7 +25,7 @@ import {} from "../client.js";import { getSessionMessages, resolveSessionTarget } from "../server-session.js";import { SessionStream, nextFrameOrDeadline } from "../server-task.js";-import type { OmniMessage } from "@lmliheng/penguin-core";+import type { OmniMessage } from "@adelie/core";import type { Messages } from "../i18n.js";export function registerLogsCommand(program: Command, t: Messages): void {diff --git a/packages/cli/src/commands/ls.ts b/packages/cli/src/commands/ls.tsindex 29dfb126..fd9849bd 100644--- a/packages/cli/src/commands/ls.ts+++ b/packages/cli/src/commands/ls.ts@@ -13,7 +13,7 @@* Docs: /docs/cli § "penguin ls".*/import type { Command } from "commander";-import type { SessionInfo } from "@lmliheng/penguin-server/api";+import type { SessionInfo } from "@adelie/server/api";import {resolveAgentId,resolveConnection,diff --git a/packages/cli/src/commands/org.ts b/packages/cli/src/commands/org.tsindex 2bcbab0a..e0ced6a4 100644--- a/packages/cli/src/commands/org.ts+++ b/packages/cli/src/commands/org.ts@@ -71,7 +71,7 @@ import type {OrgTicketsResponse,OrganizationDetail,OrganizationsResponse,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import {resolveAgentId,resolveConnection,diff --git a/packages/cli/src/commands/project.ts b/packages/cli/src/commands/project.tsindex 55e3c51b..7a65a79d 100644--- a/packages/cli/src/commands/project.ts+++ b/packages/cli/src/commands/project.ts@@ -5,7 +5,7 @@* Docs: /docs/cli § "penguin project".*/import type { Command } from "commander";-import type { ProjectsResponse } from "@lmliheng/penguin-server/api";+import type { ProjectsResponse } from "@adelie/server/api";import { resolveConnection, ServerClient } from "../client.js";import { renderTable } from "../table.js";import type { Messages } from "../i18n.js";diff --git a/packages/cli/src/commands/reset-password.ts b/packages/cli/src/commands/reset-password.tsindex 6de34563..0a0c2a37 100644--- a/packages/cli/src/commands/reset-password.ts+++ b/packages/cli/src/commands/reset-password.ts@@ -13,8 +13,8 @@* Docs: /docs/cli § "penguin server / penguin web".*/import path from "node:path";-import { boundaryEnv, resolveRoot } from "@lmliheng/penguin-core";-import { resetAdminPassword } from "@lmliheng/penguin-server/reset-admin-password";+import { boundaryEnv, resolveRoot } from "@adelie/core";+import { resetAdminPassword } from "@adelie/server/reset-admin-password";import type { Command } from "commander";import type { Messages } from "../i18n.js";diff --git a/packages/cli/src/commands/run.ts b/packages/cli/src/commands/run.tsindex 534076e5..13224da4 100644--- a/packages/cli/src/commands/run.ts+++ b/packages/cli/src/commands/run.ts@@ -29,7 +29,7 @@*/import { Option } from "commander";import type { Command } from "commander";-import { VERSION } from "@lmliheng/penguin-core";+import { VERSION } from "@adelie/core";import { StreamRenderer, dim } from "../render.js";import { parseDurationMs } from "../duration.js";import { parseTokenBudget, UNLIMITED_BUDGET } from "../goal-command.js";diff --git a/packages/cli/src/commands/schedule.ts b/packages/cli/src/commands/schedule.tsindex f0539a0e..83351f4a 100644--- a/packages/cli/src/commands/schedule.ts+++ b/packages/cli/src/commands/schedule.ts@@ -34,7 +34,7 @@* Docs: /docs/cli § "penguin schedule".*/import type { Command } from "commander";-import type { ScheduleItem, SchedulesResponse } from "@lmliheng/penguin-server/api";+import type { ScheduleItem, SchedulesResponse } from "@adelie/server/api";import {resolveAgentId,resolveConnection,diff --git a/packages/cli/src/commands/serve.ts b/packages/cli/src/commands/serve.tsindex fea0de34..427b2a5e 100644--- a/packages/cli/src/commands/serve.ts+++ b/packages/cli/src/commands/serve.ts@@ -6,7 +6,7 @@* penguin web [--port <port>] [--host <host>] [--no-open] [--app <project>/<agent>/<workflow>[/<tab>]]** Both are entry points into the same service process: after setting PORT / HOST, it- * dynamically imports `@lmliheng/penguin-server` (whose entry point handles dotenv+ * dynamically imports `@adelie/server` (whose entry point handles dotenv* loading and graceful shutdown on its own), so the two never listen on separate ports* in parallel. Port/host priority: command-line option > existing environment variable* (including .env) > default 4000 / 127.0.0.1. `penguin web` additionally polls until the@@ -28,8 +28,8 @@import { spawn } from "node:child_process";import type { ChildProcess } from "node:child_process";import path from "node:path";-import { DEFAULT_SERVER_PORT, SERVER_RESTART_EXIT_CODE, resolveRoot } from "@lmliheng/penguin-core";-import { liveServerLock } from "@lmliheng/penguin-server/lock";+import { DEFAULT_SERVER_PORT, SERVER_RESTART_EXIT_CODE, resolveRoot } from "@adelie/core";+import { liveServerLock } from "@adelie/server/lock";import type { Command } from "commander";import type { Messages, WebProbeFailureKind } from "../i18n.js";import { registerResetPasswordCommand } from "./reset-password.js";@@ -124,7 +124,7 @@ export function cliEntryFor(argv1: string | undefined): string | null {* in-process backstop); checking* here keeps the friendly path — `penguin server` refuses with the URL, `penguin web`* simply opens the existing instance. Locks live per data root, so a second server on a- * DIFFERENT root is untouched. See @lmliheng/penguin-server/lock.+ * DIFFERENT root is untouched. See @adelie/server/lock.*/async function existingInstanceUrl(): Promise<string | null> {const lock = await liveServerLock(resolveRoot());@@ -207,7 +207,7 @@ async function startServer(supervise(cliEntry, host, port, t);return { host, port };}- await import("@lmliheng/penguin-server");+ await import("@adelie/server");return { host, port };}diff --git a/packages/cli/src/commands/server-status.ts b/packages/cli/src/commands/server-status.tsindex e417a64a..b4ca27c7 100644--- a/packages/cli/src/commands/server-status.ts+++ b/packages/cli/src/commands/server-status.ts@@ -9,8 +9,8 @@* Docs: /docs/cli § "penguin server / penguin web".*/import path from "node:path";-import { boundaryEnv } from "@lmliheng/penguin-core";-import { readMachineStatus } from "@lmliheng/penguin-server/machine-status";+import { boundaryEnv } from "@adelie/core";+import { readMachineStatus } from "@adelie/server/machine-status";import type { Command } from "commander";import type { Messages } from "../i18n.js";import { resolveRootOption } from "../root-option.js";diff --git a/packages/cli/src/commands/server-stop.ts b/packages/cli/src/commands/server-stop.tsindex caef1d0c..a600ad51 100644--- a/packages/cli/src/commands/server-stop.ts+++ b/packages/cli/src/commands/server-stop.ts@@ -12,7 +12,7 @@* same call on every platform this runs on.* Docs: /docs/cli § "penguin server / penguin web".*/-import { liveServerLock, readServerLock } from "@lmliheng/penguin-server/lock";+import { liveServerLock, readServerLock } from "@adelie/server/lock";import type { Command } from "commander";import type { Messages } from "../i18n.js";import { resolveRootOption } from "../root-option.js";diff --git a/packages/cli/src/commands/storage.ts b/packages/cli/src/commands/storage.tsindex 530d5e0c..d80f1901 100644--- a/packages/cli/src/commands/storage.ts+++ b/packages/cli/src/commands/storage.ts@@ -46,7 +46,7 @@ import type {StorageRestoreResponse,StorageSettingsResponse,StorageTrashResponse,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import { humanizeBytes } from "../render.js";import { resolveConnection, ServerClient } from "../client.js";import { renderTable } from "../table.js";diff --git a/packages/cli/src/commands/update.ts b/packages/cli/src/commands/update.tsindex 18c4949d..73ecabba 100644--- a/packages/cli/src/commands/update.ts+++ b/packages/cli/src/commands/update.ts@@ -6,7 +6,7 @@* There is no single upgrade mechanism, because there is no single install mechanism: the* documented path is the tarball installer (install.sh unpacks bin/lib/web/node into* PENGUIN_INSTALL_DIR, default ~/.adelie), some users have a global npm install of- * @lmliheng/penguin-cli, and developers run out of a source checkout. This command works out+ * @adelie/cli, and developers run out of a source checkout. This command works out* which one it is from the real path of the running CLI and upgrades the way that install was* made — never by guessing. A source checkout is refused outright: overwriting a working tree* would destroy uncommitted work.@@ -31,7 +31,7 @@* therefore fully loaded before any action runs, every message it will print is resolved up front,* and after the child exits it only removes its own temp directory, writes already-computed* strings and sets an exit code. It never `import()`s anything (the CLI's only dynamic import is- * `@lmliheng/penguin-server`, reachable solely from the serve commands), and never re-reads a+ * `@adelie/server`, reachable solely from the serve commands), and never re-reads a* file. On POSIX an unlinked file stays valid for whoever has it open, so the running process is* unaffected.*@@ -61,7 +61,7 @@ import { existsSync, mkdtempSync, rmSync, writeFileSync, realpathSync } from "noimport { homedir, tmpdir } from "node:os";import path from "node:path";import { fileURLToPath } from "node:url";-import { VERSION, compareVersions, normalizeVersion } from "@lmliheng/penguin-core";+import { VERSION, compareVersions, normalizeVersion } from "@adelie/core";import type { Command } from "commander";import type { InstallerSource, Messages } from "../i18n.js";@@ -138,7 +138,7 @@ function segments(p: string): string[] {* app's own Electron runtime as Node and updates it with the app;* - source checkout — `…/packages/cli/{src,dist}/index.{ts,js}` (also how a `pnpm link`-ed dev* build looks once the bin symlink is resolved);- * - npm global — the path runs through `node_modules/@lmliheng/penguin-cli/`;+ * - npm global — the path runs through `node_modules/@adelie/cli/`;* - tarball — `<installDir>/lib/dist/index.js`, the layout install.sh unpacks.** Order matters: a checkout is checked first so a repo that happens to live under a directory@@ -164,10 +164,9 @@ export function detectInstall(modulePath: string, runtime?: { electron: booleanreturn { kind: "source" };}- // …/node_modules/@lmliheng/penguin-cli/…+ // …/node_modules/@adelie/cli/…const nmIdx = parts.findIndex(- (seg, i) =>- seg === "node_modules" && parts[i + 1] === "@lmliheng" && parts[i + 2] === "penguin-cli",+ (seg, i) => seg === "node_modules" && parts[i + 1] === "@adelie" && parts[i + 2] === "cli",);if (nmIdx >= 0) {return { kind: "npm", globalRoot: join(nmIdx + 1) };@@ -206,7 +205,7 @@ export function globalInstallCommand(manager: PackageManager,version: string,): { command: string; args: string[] } {- const spec = `@lmliheng/penguin-cli@${version}`;+ const spec = `@adelie/cli@${version}`;if (manager === "pnpm") return { command: "pnpm", args: ["add", "-g", spec] };if (manager === "yarn") return { command: "yarn", args: ["global", "add", spec] };if (manager === "bun") return { command: "bun", args: ["add", "-g", spec] };diff --git a/packages/cli/src/commands/version.ts b/packages/cli/src/commands/version.tsindex 842b16d1..cd670573 100644--- a/packages/cli/src/commands/version.ts+++ b/packages/cli/src/commands/version.ts@@ -19,8 +19,8 @@*/import path from "node:path";import type { Command } from "commander";-import { buildInfo, resolveRoot } from "@lmliheng/penguin-core";-import { versionReport } from "@lmliheng/penguin-server/version-report";+import { buildInfo, resolveRoot } from "@adelie/core";+import { versionReport } from "@adelie/server/version-report";import type { Messages } from "../i18n.js";export function registerVersionCommand(program: Command, t: Messages): void {diff --git a/packages/cli/src/i18n.ts b/packages/cli/src/i18n.tsindex 3798266e..05c81db0 100644--- a/packages/cli/src/i18n.ts+++ b/packages/cli/src/i18n.ts@@ -1,8 +1,4 @@-import type {- OrgChannelNoticeKind,- StorageCandidateRule,- StorageClass,-} from "@lmliheng/penguin-server/api";+import type { OrgChannelNoticeKind, StorageCandidateRule, StorageClass } from "@adelie/server/api";/*** CLI text internationalization (i18n).@@ -2074,7 +2070,7 @@ const en: Messages = {unknownInstall: (modulePath) =>`Cannot tell how this penguin was installed (running from ${modulePath}), so it will not be replaced. Re-install with the official installer, or upgrade with the package manager you used.`,npmUnknownManager: (globalRoot, target) =>- `This is a global install under ${globalRoot}, but the package manager that owns it could not be identified. Upgrade it yourself with that manager, e.g. \`npm install -g @lmliheng/penguin-cli@${target}\`.`,+ `This is a global install under ${globalRoot}, but the package manager that owns it could not be identified. Upgrade it yourself with that manager, e.g. \`npm install -g @adelie/cli@${target}\`.`,windowsUnsupported: () =>"The official installer is a POSIX shell script and does not run on Windows. Re-install from the GitHub Releases page, or use a global npm install instead.",windowsGlobalInstall: (command) =>@@ -3133,7 +3129,7 @@ const zh: Messages = {unknownInstall: (modulePath) =>`无法判断当前 penguin 的安装方式(运行自 ${modulePath}),因此不会替换它。请用官方安装脚本重新安装,或用你当初使用的包管理器升级。`,npmUnknownManager: (globalRoot, target) =>- `这是位于 ${globalRoot} 的全局安装,但无法确定是哪个包管理器安装的。请自行用该包管理器升级,例如 \`npm install -g @lmliheng/penguin-cli@${target}\`。`,+ `这是位于 ${globalRoot} 的全局安装,但无法确定是哪个包管理器安装的。请自行用该包管理器升级,例如 \`npm install -g @adelie/cli@${target}\`。`,windowsUnsupported: () =>"官方安装脚本是 POSIX shell 脚本,无法在 Windows 上运行。请从 GitHub Releases 页面重新安装,或改用 npm 全局安装。",windowsGlobalInstall: (command) =>diff --git a/packages/cli/src/index.ts b/packages/cli/src/index.tsindex a47236f5..75a43d97 100644--- a/packages/cli/src/index.ts+++ b/packages/cli/src/index.ts@@ -1,13 +1,13 @@/*** The whole CLI as a plain function: commander commands over- * @lmliheng/penguin-core, returning an exit code.+ * @adelie/core, returning an exit code.** Built twice: into this package's `penguin` binary (penguin.ts), and — as the CLI* artifact pushed to POST /api/hmr/upgrade — into the bundle `penguin-hmr` loads from* the HMR store instead (see scripts/deploy.mjs).*/import { Command, CommanderError } from "commander";-import { buildInfo } from "@lmliheng/penguin-core";+import { buildInfo } from "@adelie/core";import { registerAuthCommand } from "./commands/auth.js";import { registerConfigCommand } from "./commands/config.js";import { registerRunCommand } from "./commands/run.js";diff --git a/packages/cli/src/lang-config.ts b/packages/cli/src/lang-config.tsindex fc83032a..32fd57d4 100644--- a/packages/cli/src/lang-config.ts+++ b/packages/cli/src/lang-config.ts@@ -11,7 +11,7 @@import { spawn } from "node:child_process";import { mkdir, readFile } from "node:fs/promises";import { dirname, join } from "node:path";-import { atomicWriteFile } from "@lmliheng/penguin-core";+import { atomicWriteFile } from "@adelie/core";import type { Language } from "./i18n.js";const BEGIN = "# >>> Adelie ADELIE_LANG >>>";diff --git a/packages/cli/src/penguin-hmr.ts b/packages/cli/src/penguin-hmr.tsindex 9076083f..da985cbd 100644--- a/packages/cli/src/penguin-hmr.ts+++ b/packages/cli/src/penguin-hmr.ts@@ -7,8 +7,8 @@import "./warnings.js";import "dotenv/config";import { pathToFileURL } from "node:url";-import { resolveRoot } from "@lmliheng/penguin-core";-import { readPushedCli } from "@lmliheng/penguin-server/hmr/manifest";+import { resolveRoot } from "@adelie/core";+import { readPushedCli } from "@adelie/server/hmr/manifest";export async function loadPushedCli(root: string): Promise<(argv: string[]) => Promise<number>> {const pushed = await readPushedCli(root);diff --git a/packages/cli/src/render.ts b/packages/cli/src/render.tsindex bb959ac7..d0b25e03 100644--- a/packages/cli/src/render.ts+++ b/packages/cli/src/render.ts@@ -42,7 +42,7 @@* all only when the output stream supports color (see `supportsColor`): piped output, e.g. a* nested `penguin run` driven through `exec_command`, must stay plain (#102).*/-import { isEventMessage, isModelMessage, parseUserSteeringText } from "@lmliheng/penguin-core";+import { isEventMessage, isModelMessage, parseUserSteeringText } from "@adelie/core";import type {AbortPayload,ApprovalDecision,@@ -64,7 +64,7 @@ import type {ToolCallPayload,ToolDefinition,ToolListReadyPayload,-} from "@lmliheng/penguin-core";+} from "@adelie/core";import { renderFileToolApprovalPayload, renderPartialToolCall } from "./tool-render.js";import { ToolOutputCollapser, collapseLines } from "./output-collapse.js";import { defaultMessages } from "./i18n.js";diff --git a/packages/cli/src/root-option.ts b/packages/cli/src/root-option.tsindex cf604d5c..ee666097 100644--- a/packages/cli/src/root-option.ts+++ b/packages/cli/src/root-option.ts@@ -6,7 +6,7 @@* root. Two copies of that rule is two chances for one of them to drift.*/import path from "node:path";-import { resolveRoot } from "@lmliheng/penguin-core";+import { resolveRoot } from "@adelie/core";/** Data root: `--root` first (relative paths against cwd), else `ADELIE_HOME` / ~/.adelie/data. */export function resolveRootOption(root: string | undefined): string {diff --git a/packages/cli/src/server-session.ts b/packages/cli/src/server-session.tsindex 14967c14..c9fd6972 100644--- a/packages/cli/src/server-session.ts+++ b/packages/cli/src/server-session.ts@@ -1,6 +1,6 @@/*** Session/agent API helpers shared by the server-backed commands (run / chat / ls /- * input / logs / schedule). DTO shapes come from `@lmliheng/penguin-server/api`+ * input / logs / schedule). DTO shapes come from `@adelie/server/api`* (type-only — nothing of the server is loaded at runtime).*/import path from "node:path";@@ -12,8 +12,8 @@ import type {SessionInfo,SessionResponse,SessionsResponse,-} from "@lmliheng/penguin-server/api";-import type { OmniMessage } from "@lmliheng/penguin-core";+} from "@adelie/server/api";+import type { OmniMessage } from "@adelie/core";import { resolveSessionRef, ServerClient } from "./client.js";import { dim } from "./render.js";import type { Messages } from "./i18n.js";diff --git a/packages/cli/src/server-task.ts b/packages/cli/src/server-task.tsindex 09e8da16..a902d3af 100644--- a/packages/cli/src/server-task.ts+++ b/packages/cli/src/server-task.ts@@ -14,14 +14,9 @@* with it on a dropped connection; `resync_required` (buffer evicted) prints a dim* notice — the messages endpoint still holds the full history for `penguin logs`.*/-import {- isEventMessage,- isHookContinue,- isHookInput,- isModelMessage,-} from "@lmliheng/penguin-core";-import type { ApprovalDecision, OmniMessage, ToolCallPayload } from "@lmliheng/penguin-core";-import type { GoalServerEvent } from "@lmliheng/penguin-server/api";+import { isEventMessage, isHookContinue, isHookInput, isModelMessage } from "@adelie/core";+import type { ApprovalDecision, OmniMessage, ToolCallPayload } from "@adelie/core";+import type { GoalServerEvent } from "@adelie/server/api";import { ServerClient } from "./client.js";import type { SseFrame } from "./client.js";import { dim, humanizeTokens } from "./render.js";diff --git a/packages/cli/src/switch-model-command.ts b/packages/cli/src/switch-model-command.tsindex 320bfe23..139ff0e8 100644--- a/packages/cli/src/switch-model-command.ts+++ b/packages/cli/src/switch-model-command.ts@@ -13,7 +13,7 @@* current model first (always summarizing), then opens the next context on the target; a* Session that never ran switches inline.*/-import { DEFAULT_PROJECT_ID } from "@lmliheng/penguin-core";+import { DEFAULT_PROJECT_ID } from "@adelie/core";import type { Messages } from "./i18n.js";/** A model reference as the server API spells it. */diff --git a/packages/cli/src/thinking-command.ts b/packages/cli/src/thinking-command.tsindex b5e6d196..a99deab6 100644--- a/packages/cli/src/thinking-command.ts+++ b/packages/cli/src/thinking-command.ts@@ -16,8 +16,8 @@* never writes back to the Agent config.* - `/thinking` bare shows the Session's pinned level, else the Agent's configured level.*/-import { DEFAULT_CHAT_THINKING_LEVELS } from "@lmliheng/penguin-core";-import type { DefaultChatThinkingLevel, ThinkingLevelName } from "@lmliheng/penguin-core";+import { DEFAULT_CHAT_THINKING_LEVELS } from "@adelie/core";+import type { DefaultChatThinkingLevel, ThinkingLevelName } from "@adelie/core";import type { Messages } from "./i18n.js";/** Parses one level token (trimmed, case-insensitive); null when it is not a selectable level. */diff --git a/packages/cli/src/warnings.ts b/packages/cli/src/warnings.tsindex f8d74fc6..b019403b 100644--- a/packages/cli/src/warnings.ts+++ b/packages/cli/src/warnings.ts@@ -2,7 +2,7 @@* Drops one Node warning, and only that one.** `commands/serve.ts` pulls in `commands/reset-password.ts`, which imports- * `@lmliheng/penguin-server/reset-admin-password` — that reaches `node:sqlite` while+ * `@adelie/server/reset-admin-password` — that reaches `node:sqlite` while* the module graph loads, so on a Node that still flags the builtin experimental every* `penguin` invocation prints* `ExperimentalWarning: SQLite is an experimental feature ...`, including the ones whosediff --git a/packages/cli/test/approval.test.ts b/packages/cli/test/approval.test.tsindex d125b146..88166dcf 100644--- a/packages/cli/test/approval.test.ts+++ b/packages/cli/test/approval.test.ts@@ -1,7 +1,7 @@import { describe, expect, it } from "vitest";import { Readable, Writable } from "node:stream";-import { toolCall } from "@lmliheng/penguin-core";-import type { OmniMessage, ToolCallPayload } from "@lmliheng/penguin-core";+import { toolCall } from "@adelie/core";+import type { OmniMessage, ToolCallPayload } from "@adelie/core";import { makeApprove, promptApproval, resolveApprovalMode } from "../src/approval.js";import { getMessages } from "../src/i18n.js";diff --git a/packages/cli/test/browser-commands.test.ts b/packages/cli/test/browser-commands.test.tsindex 0350758f..a92f57e2 100644--- a/packages/cli/test/browser-commands.test.ts+++ b/packages/cli/test/browser-commands.test.ts@@ -10,7 +10,7 @@ import os from "node:os";import path from "node:path";import { PassThrough } from "node:stream";import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";-import type { BuiltinBrowserExecResult, BuiltinBrowserTab } from "@lmliheng/penguin-server/api";+import type { BuiltinBrowserExecResult, BuiltinBrowserTab } from "@adelie/server/api";import { cli } from "../src/index.js";import { getMessages } from "../src/i18n.js";import { localMinute, RETURN_LIMIT, renderExec } from "../src/browser-output.js";diff --git a/packages/cli/test/chat-paste.test.ts b/packages/cli/test/chat-paste.test.tsindex 64663c33..4af1d55f 100644--- a/packages/cli/test/chat-paste.test.ts+++ b/packages/cli/test/chat-paste.test.ts@@ -15,7 +15,7 @@import { PassThrough } from "node:stream";import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";import { Command } from "commander";-import { partialText, toolCall } from "@lmliheng/penguin-core";+import { partialText, toolCall } from "@adelie/core";import { registerChatCommand } from "../src/commands/chat.js";import { getMessages } from "../src/i18n.js";import { FakeServer, type FakeSessionState } from "./fake-server.js";diff --git a/packages/cli/test/chat-switch-model.test.ts b/packages/cli/test/chat-switch-model.test.tsindex f434a5eb..6d8cfe8e 100644--- a/packages/cli/test/chat-switch-model.test.ts+++ b/packages/cli/test/chat-switch-model.test.ts@@ -10,7 +10,7 @@import { PassThrough } from "node:stream";import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";import { Command } from "commander";-import { compactionBegin, compactionEnd, sessionMeta } from "@lmliheng/penguin-core";+import { compactionBegin, compactionEnd, sessionMeta } from "@adelie/core";import { registerChatCommand } from "../src/commands/chat.js";import { getMessages } from "../src/i18n.js";import { FakeServer } from "./fake-server.js";diff --git a/packages/cli/test/chat-thinking.test.ts b/packages/cli/test/chat-thinking.test.tsindex e667ff4e..df6418a0 100644--- a/packages/cli/test/chat-thinking.test.ts+++ b/packages/cli/test/chat-thinking.test.ts@@ -9,7 +9,7 @@import { PassThrough } from "node:stream";import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";import { Command } from "commander";-import { partialToolCall, partialToolCallOutput, type OmniMessage } from "@lmliheng/penguin-core";+import { partialToolCall, partialToolCallOutput, type OmniMessage } from "@adelie/core";import { registerChatCommand } from "../src/commands/chat.js";import { getMessages } from "../src/i18n.js";import { FakeServer } from "./fake-server.js";diff --git a/packages/cli/test/config-format.test.ts b/packages/cli/test/config-format.test.tsindex b5a6c529..8bf27af2 100644--- a/packages/cli/test/config-format.test.ts+++ b/packages/cli/test/config-format.test.ts@@ -6,7 +6,7 @@* inline; fully empty columns are omitted automatically.*/import { describe, expect, it } from "vitest";-import type { ProjectConfig } from "@lmliheng/penguin-core";+import type { ProjectConfig } from "@adelie/core";import { formatModelRows } from "../src/commands/config.js";describe("formatModelRows", () => {diff --git a/packages/cli/test/config-model.test.ts b/packages/cli/test/config-model.test.tsindex e5dacd46..57637998 100644--- a/packages/cli/test/config-model.test.ts+++ b/packages/cli/test/config-model.test.ts@@ -17,7 +17,7 @@ import path from "node:path";import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";import { Command } from "commander";import { parse as parseToml } from "smol-toml";-import { DEFAULT_PROJECT_ID, projectConfigPath } from "@lmliheng/penguin-core";+import { DEFAULT_PROJECT_ID, projectConfigPath } from "@adelie/core";import { registerConfigCommand } from "../src/commands/config.js";import { getMessages } from "../src/i18n.js";diff --git a/packages/cli/test/config-vault.test.ts b/packages/cli/test/config-vault.test.tsindex 5aff1cb2..464badd8 100644--- a/packages/cli/test/config-vault.test.ts+++ b/packages/cli/test/config-vault.test.ts@@ -10,7 +10,7 @@ import os from "node:os";import path from "node:path";import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";import { Command } from "commander";-import { agentVaultPath, DEFAULT_PROJECT_ID } from "@lmliheng/penguin-core";+import { agentVaultPath, DEFAULT_PROJECT_ID } from "@adelie/core";import { registerConfigCommand } from "../src/commands/config.js";import { getMessages } from "../src/i18n.js";diff --git a/packages/cli/test/dev-entry-isolation.test.ts b/packages/cli/test/dev-entry-isolation.test.tsindex 8deb1320..afbfedb5 100644--- a/packages/cli/test/dev-entry-isolation.test.ts+++ b/packages/cli/test/dev-entry-isolation.test.ts@@ -24,7 +24,7 @@ import os from "node:os";import path from "node:path";import { fileURLToPath } from "node:url";import { describe, expect, it } from "vitest";-import { DEFAULT_SERVER_PORT } from "@lmliheng/penguin-core";+import { DEFAULT_SERVER_PORT } from "@adelie/core";const cliDir = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");const repoRoot = path.resolve(cliDir, "..", "..");diff --git a/packages/cli/test/fake-server.ts b/packages/cli/test/fake-server.tsindex c10c3cf7..9a7e7f9a 100644--- a/packages/cli/test/fake-server.ts+++ b/packages/cli/test/fake-server.ts@@ -21,7 +21,7 @@import fs from "node:fs";import os from "node:os";import path from "node:path";-import type { StorageReport } from "@lmliheng/penguin-server/api";+import type { StorageReport } from "@adelie/server/api";type Json = Record<string, unknown>;diff --git a/packages/cli/test/render.test.ts b/packages/cli/test/render.test.tsindex a6950658..8a0b5c6c 100644--- a/packages/cli/test/render.test.ts+++ b/packages/cli/test/render.test.ts@@ -19,8 +19,8 @@ import {partialToolCall,partialToolCallOutput,withOrigin,-} from "@lmliheng/penguin-core";-import type { MessageOrigin } from "@lmliheng/penguin-core";+} from "@adelie/core";+import type { MessageOrigin } from "@adelie/core";import {StreamRenderer,formatAbort,@@ -964,7 +964,7 @@ describe("StreamRenderer — nested (origin-tagged) subagent messages", () => {describe("renderHistory (resume)", () => {it("renders complete messages statically with interruption markers", async () => {const { renderHistory } = await import("../src/render.js");- const { userText } = await import("@lmliheng/penguin-core");+ const { userText } = await import("@adelie/core");const { stream, text } = collector();renderHistory([diff --git a/packages/cli/test/serve.test.ts b/packages/cli/test/serve.test.tsindex ef541cf4..653cd21a 100644--- a/packages/cli/test/serve.test.ts+++ b/packages/cli/test/serve.test.ts@@ -1,7 +1,7 @@import { afterEach, describe, expect, it, vi } from "vitest";import path from "node:path";import { Command } from "commander";-import { DEFAULT_SERVER_PORT } from "@lmliheng/penguin-core";+import { DEFAULT_SERVER_PORT } from "@adelie/core";import {DEFAULT_HOST,DEFAULT_PORT,diff --git a/packages/cli/test/server-commands.test.ts b/packages/cli/test/server-commands.test.tsindex 82df4fee..9389f2a4 100644--- a/packages/cli/test/server-commands.test.ts+++ b/packages/cli/test/server-commands.test.ts@@ -6,13 +6,7 @@*/import path from "node:path";import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";-import {- assistantText,- hookEvent,- partialText,- userText,- type OmniMessage,-} from "@lmliheng/penguin-core";+import { assistantText, hookEvent, partialText, userText, type OmniMessage } from "@adelie/core";import { cli } from "../src/index.js";import { getMessages } from "../src/i18n.js";import { FakeServer } from "./fake-server.js";diff --git a/packages/cli/test/storage-command.test.ts b/packages/cli/test/storage-command.test.tsindex 7512c2ca..607fb255 100644--- a/packages/cli/test/storage-command.test.ts+++ b/packages/cli/test/storage-command.test.ts@@ -13,7 +13,7 @@ import fs from "node:fs";import os from "node:os";import path from "node:path";import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";-import type { StoragePlanView, StorageReport } from "@lmliheng/penguin-server/api";+import type { StoragePlanView, StorageReport } from "@adelie/server/api";import { cli } from "../src/index.js";import { FakeServer } from "./fake-server.js";diff --git a/packages/cli/test/thinking-command.test.ts b/packages/cli/test/thinking-command.test.tsindex 3466d251..8b5fee09 100644--- a/packages/cli/test/thinking-command.test.ts+++ b/packages/cli/test/thinking-command.test.ts@@ -6,7 +6,7 @@ import {} from "../src/thinking-command.js";import type { ThinkingConfigSource } from "../src/thinking-command.js";import { getMessages } from "../src/i18n.js";-import { DEFAULT_CHAT_THINKING_LEVELS } from "@lmliheng/penguin-core";+import { DEFAULT_CHAT_THINKING_LEVELS } from "@adelie/core";describe("parseThinkingLevel", () => {it("accepts every selectable tier (trimmed, case-insensitive)", () => {diff --git a/packages/cli/test/update-refusal-markers.test.ts b/packages/cli/test/update-refusal-markers.test.tsindex 034442f3..878b67ff 100644--- a/packages/cli/test/update-refusal-markers.test.ts+++ b/packages/cli/test/update-refusal-markers.test.ts@@ -46,7 +46,7 @@ const MARKERS: ReadonlyArray<{ marker: string; name: string; message: string }>{marker: "cannot run your package manager for you",name: "windowsGlobalInstall",- message: en.windowsGlobalInstall("npm install -g @lmliheng/[email protected]"),+ message: en.windowsGlobalInstall("npm install -g @adelie/[email protected]"),},];diff --git a/packages/cli/test/update.test.ts b/packages/cli/test/update.test.tsindex 26ce588e..53367265 100644--- a/packages/cli/test/update.test.ts+++ b/packages/cli/test/update.test.ts@@ -50,14 +50,15 @@ describe.skipIf(process.platform === "win32")(});it("npm global: npm's own prefix layout", () => {- expect(- detectInstall("/usr/local/lib/node_modules/@lmliheng/penguin-cli/dist/index.js"),- ).toEqual({ kind: "npm", globalRoot: "/usr/local/lib/node_modules" });+ expect(detectInstall("/usr/local/lib/node_modules/@adelie/cli/dist/index.js")).toEqual({+ kind: "npm",+ globalRoot: "/usr/local/lib/node_modules",+ });});it("npm global: pnpm's global store, through the .pnpm virtual dir", () => {const p =- "/home/me/.local/share/pnpm/global/5/node_modules/.pnpm/@[email protected]/node_modules/@lmliheng/penguin-cli/dist/index.js";+ "/home/me/.local/share/pnpm/global/5/node_modules/.pnpm/@[email protected]/node_modules/@adelie/cli/dist/index.js";const info = detectInstall(p);expect(info.kind).toBe("npm");expect(info.globalRoot).toContain(".pnpm");@@ -113,19 +114,19 @@ describe("globalInstallCommand", () => {it("uses each manager's own global-install spelling", () => {expect(globalInstallCommand("pnpm", "0.1.2")).toEqual({command: "pnpm",- args: ["add", "-g", "@lmliheng/[email protected]"],+ args: ["add", "-g", "@adelie/[email protected]"],});expect(globalInstallCommand("npm", "0.1.2")).toEqual({command: "npm",- args: ["install", "-g", "@lmliheng/[email protected]"],+ args: ["install", "-g", "@adelie/[email protected]"],});expect(globalInstallCommand("yarn", "0.1.2")).toEqual({command: "yarn",- args: ["global", "add", "@lmliheng/[email protected]"],+ args: ["global", "add", "@adelie/[email protected]"],});expect(globalInstallCommand("bun", "0.1.2")).toEqual({command: "bun",- args: ["add", "-g", "@lmliheng/[email protected]"],+ args: ["add", "-g", "@adelie/[email protected]"],});});});@@ -476,7 +477,7 @@ describe("planUpdate (what the command decides before it touches anything)", ()action: "npm",manager: "npm",command: "npm",- args: ["install", "-g", "@lmliheng/[email protected]"],+ args: ["install", "-g", "@adelie/[email protected]"],});});@@ -517,7 +518,7 @@ describe("planUpdate (what the command decides before it touches anything)", ()expect(planUpdate({ ...base, platform: "win32", install: npmGlobal })).toEqual({action: "refuse",reason: "windows-global",- command: "npm install -g @lmliheng/[email protected]",+ command: "npm install -g @adelie/[email protected]",});});diff --git a/packages/cli/test/version.test.ts b/packages/cli/test/version.test.tsindex e182077c..2993e92e 100644--- a/packages/cli/test/version.test.ts+++ b/packages/cli/test/version.test.ts@@ -9,9 +9,9 @@ import os from "node:os";import path from "node:path";import { describe, expect, it } from "vitest";import { Command } from "commander";-import { buildInfo } from "@lmliheng/penguin-core";-import type { VersionReport } from "@lmliheng/penguin-core";-import { versionReport } from "@lmliheng/penguin-server/version-report";+import { buildInfo } from "@adelie/core";+import type { VersionReport } from "@adelie/core";+import { versionReport } from "@adelie/server/version-report";import { registerVersionCommand } from "../src/commands/version.js";import { cli } from "../src/index.js";import { getMessages } from "../src/i18n.js";diff --git a/packages/cli/tsup.config.ts b/packages/cli/tsup.config.tsindex b825bdfc..bee0f73e 100644--- a/packages/cli/tsup.config.ts+++ b/packages/cli/tsup.config.ts@@ -10,17 +10,17 @@ export default defineConfig({platform: "node",clean: true,sourcemap: true,- // Bundle the workspace source @lmliheng/penguin-core, but keep third-party deps (incl.+ // Bundle the workspace source @adelie/core, but keep third-party deps (incl.// CJS yaml / smol-toml / agenthub) external and resolved from node_modules at runtime —// avoids bundling CJS deps into ESM and triggering a "Dynamic require" error.- // The @lmliheng/* plugin packages are data-only and never imported as modules: the+ // The @adelie/* plugin packages are data-only and never imported as modules: the// bundled core loader resolves their directories through this package's own dependencies// (files are the source of truth), which is why the CLI declares them directly.- // @lmliheng/penguin-server stays external: the penguin server / web commands import it+ // @adelie/server stays external: the penguin server / web commands import it// dynamically at runtime.// tsup treats this package's package.json dependencies as external by default, so these// deps are already declared there.- noExternal: ["@lmliheng/penguin-core"],+ noExternal: ["@adelie/core"],banner: { js: "#!/usr/bin/env node" },define: buildGitDefine(),});diff --git a/packages/core/README.md b/packages/core/README.mdindex 68081754..189e664f 100644--- a/packages/core/README.md+++ b/packages/core/README.md@@ -1,11 +1,11 @@-# @lmliheng/penguin-core+# @adelie/coreThe Adelie SDK and execution engine: the ReAct loop (`context_engine`), the OmniMessage protocol, the LLM / Environment interface contracts, Agent State and append-only Traces.The engine speaks only OmniMessage and delegates everything else through two swappable interfaces — `LLMInterface` (models, via the [`@prismshadow/agenthub`](https://www.npmjs.com/package/@prismshadow/agenthub) gateway) and `EnvironmentInterface` (tool execution). The SDK caller is the Human boundary: one entry point, `session.run`, streams the whole loop.```ts-import { createAgent, isCompleteModelMessage, userText } from "@lmliheng/penguin-core";+import { createAgent, isCompleteModelMessage, userText } from "@adelie/core";const agent = await createAgent({ agentId: "default_agent" });const session = await agent.createSession({ workspaceDir: process.cwd() });@@ -32,9 +32,9 @@ A single `run` drives a complete Task: streaming output, per-call approvals, con## Development```bash-pnpm --filter @lmliheng/penguin-core build # tsup → dist/ (exports point at dist)-pnpm --filter @lmliheng/penguin-core typecheck-pnpm --filter @lmliheng/penguin-core test+pnpm --filter @adelie/core build # tsup → dist/ (exports point at dist)+pnpm --filter @adelie/core typecheck+pnpm --filter @adelie/core testpnpm test:e2e # live-model e2e (needs DEEPSEEK_API_KEY)```diff --git a/packages/core/package.json b/packages/core/package.jsonindex b822f363..c532c13f 100644--- a/packages/core/package.json+++ b/packages/core/package.json@@ -1,5 +1,5 @@{- "name": "@lmliheng/penguin-core",+ "name": "@adelie/core","version": "0.4.2","type": "module","engines": {@@ -57,26 +57,26 @@},"dependencies": {"@modelcontextprotocol/client": "^2.0.0",- "@lmliheng/agent-company": "workspace:*",- "@lmliheng/agent-development": "workspace:*",- "@lmliheng/agent-tuning": "workspace:*",- "@lmliheng/browser-automation": "workspace:*",- "@lmliheng/continual-learning": "workspace:*",- "@lmliheng/csu-mail": "workspace:*",- "@lmliheng/data-analysis": "workspace:*",- "@lmliheng/goal": "workspace:*",- "@lmliheng/humanizer": "workspace:*",- "@lmliheng/lesson-video": "workspace:*",- "@lmliheng/model-development": "workspace:*",- "@lmliheng/requirements-box": "workspace:*",- "@lmliheng/skill-porting": "workspace:*",- "@lmliheng/software-development": "workspace:*",- "@lmliheng/use-bento-slides": "workspace:*",- "@lmliheng/use-firecrawl": "workspace:*",- "@lmliheng/use-offerdao": "workspace:*",- "@lmliheng/use-wps-office": "workspace:*",- "@lmliheng/use-claude-code": "workspace:*",- "@lmliheng/wechat-miniprogram": "workspace:*",+ "@adelie/agent-company": "workspace:*",+ "@adelie/agent-development": "workspace:*",+ "@adelie/agent-tuning": "workspace:*",+ "@adelie/browser-automation": "workspace:*",+ "@adelie/continual-learning": "workspace:*",+ "@adelie/csu-mail": "workspace:*",+ "@adelie/data-analysis": "workspace:*",+ "@adelie/goal": "workspace:*",+ "@adelie/humanizer": "workspace:*",+ "@adelie/lesson-video": "workspace:*",+ "@adelie/model-development": "workspace:*",+ "@adelie/requirements-box": "workspace:*",+ "@adelie/skill-porting": "workspace:*",+ "@adelie/software-development": "workspace:*",+ "@adelie/use-bento-slides": "workspace:*",+ "@adelie/use-firecrawl": "workspace:*",+ "@adelie/use-offerdao": "workspace:*",+ "@adelie/use-wps-office": "workspace:*",+ "@adelie/use-claude-code": "workspace:*",+ "@adelie/wechat-miniprogram": "workspace:*","@prismshadow/agenthub": "^0.4.15","arktype": "^2.2.3","smol-toml": "^1.3.0",diff --git a/packages/core/src/index.ts b/packages/core/src/index.tsindex a149fb35..5ef0ec0a 100644--- a/packages/core/src/index.ts+++ b/packages/core/src/index.ts@@ -1,5 +1,5 @@/**- * @lmliheng/penguin-core — public entry point for the Adelie core SDK.+ * @adelie/core — public entry point for the Adelie core SDK.** Exports the OmniMessage protocol, the three interface contracts (Human/LLM/Environment),* and the runtime entry points for Agent / Session / context_engine along with theirdiff --git a/packages/core/src/interfaces/index.ts b/packages/core/src/interfaces/index.tsindex 2df64259..e3b5fd87 100644--- a/packages/core/src/interfaces/index.ts+++ b/packages/core/src/interfaces/index.ts@@ -2,7 +2,7 @@* Internal SDK interface contracts, split by which side of `context_engine` needs them:* `./llm.ts` (the model request), `./environment.ts` (tool execution and the environment's* management plane), and `./shared.ts` (the vocabulary both genuinely need). This barrel is- * the published `@lmliheng/penguin-core/interfaces` entry and re-exports all three, so+ * the published `@adelie/core/interfaces` entry and re-exports all three, so* every existing import path keeps working.** `context_engine` only handles OmniMessage: the content crossing all three boundaries isdiff --git a/packages/core/src/kernel/decorators.ts b/packages/core/src/kernel/decorators.tsindex d16be014..ef0e30cc 100644--- a/packages/core/src/kernel/decorators.ts+++ b/packages/core/src/kernel/decorators.ts@@ -47,8 +47,8 @@ export interface ClassFields {bind: Map<string, string>;}-const META = Symbol.for("@lmliheng/penguin-core/kernel:meta");-const FIELDS = Symbol.for("@lmliheng/penguin-core/kernel:fields");+const META = Symbol.for("@adelie/core/kernel:meta");+const FIELDS = Symbol.for("@adelie/core/kernel:fields");/** The meta a class was decorated with, or undefined for an undecorated class. */export function metaOf(cls: ModuleClass): Meta | undefined {diff --git a/packages/core/src/omnimessage/index.ts b/packages/core/src/omnimessage/index.tsindex d4a9188a..4f42ae0f 100644--- a/packages/core/src/omnimessage/index.ts+++ b/packages/core/src/omnimessage/index.ts@@ -3,5 +3,5 @@ export * from "./builders.js";export * from "./aggregate.js";export * from "./source.js";// Special message markers ([user_steering], [use_skills], [handoff_from], …): one module,-// also reachable directly as `@lmliheng/penguin-core/markers`.+// also reachable directly as `@adelie/core/markers`.export * from "./markers/index.js";diff --git a/packages/core/src/plugin/index.ts b/packages/core/src/plugin/index.tsindex 681ce84b..b2b975c1 100644--- a/packages/core/src/plugin/index.ts+++ b/packages/core/src/plugin/index.ts@@ -5,7 +5,7 @@* with (core kernel/decorators.ts: no imports, so a plugin's bundle carries them and* nothing else of the SDK) — and `sessionShell`, which a plugin reads from the host's copy* (see below). The host that drives a plugin lives in whatever embeds this SDK (for the- * harness, `@lmliheng/penguin-server/plugin`); a plugin reaches THAT with `import type`+ * harness, `@adelie/server/plugin`); a plugin reaches THAT with `import type`* only and stays a self-contained library that happens to satisfy an interface.** A plugin is an npm package; what it carries is what it ships. Its MODULES — the same@@ -34,7 +34,7 @@* packaged boot and each hot-swap boot alike — so what a module registers never* survives into a generation it did not register with. What it may require is what the* host publishes as interfaces (for the harness: everything under- * `@lmliheng/penguin-server/plugin`); the requirement is checked structurally,+ * `@adelie/server/plugin`); the requirement is checked structurally,* at signature level, before the module is created.*/import type { ModuleClass } from "../kernel/decorators.js";diff --git a/packages/core/src/plugins/index.ts b/packages/core/src/plugins/index.tsindex 11cc7736..8ad12e9f 100644--- a/packages/core/src/plugins/index.ts+++ b/packages/core/src/plugins/index.ts@@ -4,7 +4,7 @@** The library has two sources, loaded the same way and distinguished only by* `LibraryPlugin.source`: the built-ins (a plugin is its own npm package,- * `@lmliheng/<name>`, `plugins/<name>/` in the repo; resolved through Node from the host+ * `@adelie/<name>`, `plugins/<name>/` in the repo; resolved through Node from the host* package's dependency list — see pluginRoots) and the user plugin directory* (`<data root>/plugins`, see userPluginDirs), where a remote download or a local upload lands.* A user plugin of the same name as a built-in is not loaded — the built-in wins — and a user@@ -275,7 +275,7 @@ function packageRoot(): string {}const PKG_ROOT = packageRoot();/** npm-name prefix of the per-plugin packages (the host package's dependencies name them). */-const PLUGIN_PKG_PREFIX = "@lmliheng/";+const PLUGIN_PKG_PREFIX = "@adelie/";/*** The pnpm workspace root above `from`, or null outside a workspace checkout: the directory@@ -325,7 +325,7 @@ export function workspacePluginRoot(/*** Where the plugin directories live, name → absolute root. Each plugin is its own npm package- * (`@lmliheng/<name>`, `plugins/<name>/` in the repo): the host package's `dependencies`+ * (`@adelie/<name>`, `plugins/<name>/` in the repo): the host package's `dependencies`* name them (core, the CLI, and the desktop app — whose packaged manifest keeps that field* and nothing else, so `devDependencies` would not survive into an installer), and each is* resolved through Node from this module's own location, so the lookup walks the same@@ -360,7 +360,7 @@ function builtinRoots(): Map<string, string> {/*** One built-in plugin package's directory, by the bare name the library files it under- * (`csu-mail`, not `@lmliheng/csu-mail`), or undefined when this build carries no such plugin.+ * (`csu-mail`, not `@adelie/csu-mail`), or undefined when this build carries no such plugin.** For a reader of the PACKAGE rather than of its parsed plugin: the market builds an entry for* each package it ships out of the package's own manifests, and resolving them the way thediff --git a/packages/core/src/state/builtin-agents.ts b/packages/core/src/state/builtin-agents.tsindex d57ad490..c56cfd20 100644--- a/packages/core/src/state/builtin-agents.ts+++ b/packages/core/src/state/builtin-agents.ts@@ -1,6 +1,6 @@/**- * Preset content for builtin Agents; the plugin library lives in @lmliheng/penguin-plugins- * (the library files are read live when building the preset).+ * Preset content for builtin Agents; the plugin library lives in the repository's `plugins/`+ * packages (the library files are read live when building the preset).** - Every Project comes with a single builtin Agent: `default_agent` (the General Agent, the* default conversational Agent), which has the library's preinstalled plugin set installed atdiff --git a/packages/core/src/state/paths.ts b/packages/core/src/state/paths.tsindex 83fad2f4..d5f12179 100644--- a/packages/core/src/state/paths.ts+++ b/packages/core/src/state/paths.ts@@ -61,7 +61,7 @@ export function projectDir(root: string, projectId: string): string {/*** `<root>/plugins`: the user plugin directory — the library's second source, beside the- * `@lmliheng/*` packages the build ships (see plugins/index.ts). One directory per+ * `@adelie/*` packages the build ships (see plugins/index.ts). One directory per* plugin, laid out exactly like a library plugin package (`plugin.json`, `icon.svg`, `skills/`,* `hooks/`), put there by a remote download or a local upload rather than by the installer. It* is a peer of the Project directories rather than something inside one: a plugin is part ofdiff --git a/packages/core/src/state/plugin-store.ts b/packages/core/src/state/plugin-store.tsindex 9056fa46..afdd4c75 100644--- a/packages/core/src/state/plugin-store.ts+++ b/packages/core/src/state/plugin-store.ts@@ -1,6 +1,6 @@/*** The user plugin directory (`<root>/plugins`): the library's second source beside the- * `@lmliheng/*` packages the build ships (see plugins/index.ts). One directory per+ * `@adelie/*` packages the build ships (see plugins/index.ts). One directory per* plugin, laid out exactly like a plugin package — `plugin.json`, `icon.svg`, `skills/`,* `hooks/` — so the loader needs no second format: these are the writers a remote download and* a local upload go through, and the remover the management UI's delete calls.diff --git a/packages/core/test/plugins.test.ts b/packages/core/test/plugins.test.tsindex 0c6192c7..8f319591 100644--- a/packages/core/test/plugins.test.ts+++ b/packages/core/test/plugins.test.ts@@ -356,20 +356,20 @@ describe("workspacePluginRoot (a checkout reads plugins from the repo's plugins/);const injected = path.join(root,- "node_modules/.pnpm/@lmliheng+sample@file+plugins+sample/node_modules/@lmliheng/sample",+ "node_modules/.pnpm/@adelie+sample@file+plugins+sample/node_modules/@adelie/sample",);await fs.mkdir(injected, { recursive: true });// Where core itself sits in that checkout: its own injected copy, deep under .pnpm.const core = path.join(root,- "node_modules/.pnpm/@lmliheng+penguin-core@file+packages+core/node_modules/@lmliheng/penguin-core",+ "node_modules/.pnpm/@adelie+core@file+packages+core/node_modules/@adelie/core",);await fs.mkdir(core, { recursive: true });return { root, source, injected, core };}it("prefers the repo's plugins/<name>/ over pnpm's injected copy inside a workspace checkout", async () => {- const c = await checkout({ workspaceFile: true, packageName: "@lmliheng/sample" });+ const c = await checkout({ workspaceFile: true, packageName: "@adelie/sample" });try {expect(workspacePluginRoot("sample", c.injected, c.core)).toBe(c.source);} finally {@@ -378,7 +378,7 @@ describe("workspacePluginRoot (a checkout reads plugins from the repo's plugins/});it("keeps the resolved copy outside a workspace: an npm install and the packed app have no workspace file", async () => {- const c = await checkout({ workspaceFile: false, packageName: "@lmliheng/sample" });+ const c = await checkout({ workspaceFile: false, packageName: "@adelie/sample" });try {expect(workspacePluginRoot("sample", c.injected, c.core)).toBe(c.injected);} finally {@@ -387,7 +387,7 @@ describe("workspacePluginRoot (a checkout reads plugins from the repo's plugins/});it("keeps the resolved copy when the workspace directory is not that package", async () => {- const c = await checkout({ workspaceFile: true, packageName: "@lmliheng/other" });+ const c = await checkout({ workspaceFile: true, packageName: "@adelie/other" });try {expect(workspacePluginRoot("sample", c.injected, c.core)).toBe(c.injected);} finally {diff --git a/packages/desktop/electron-builder.yml b/packages/desktop/electron-builder.ymlindex 8bbdb89e..1fcffc8d 100644--- a/packages/desktop/electron-builder.yml+++ b/packages/desktop/electron-builder.yml@@ -2,7 +2,7 @@## The app directory is this package itself: `pnpm build` emits self-contained bundles of# the shell, the server and the CLI into dist/ (see tsup.config.ts). The one dependency tree-# electron-builder collects is the @lmliheng/* plugin packages this package.json+# electron-builder collects is the @adelie/* plugin packages this package.json# declares — data-only directories the bundled server's plugin loader resolves by name from# the app's node_modules (never imported, so bundling has nothing to absorb). Everything# else inside an installer is described by `files` below.@@ -60,7 +60,7 @@ files:- from: ../web/distto: web-dist# The app's own metadata, which the workspace package.json cannot carry: deb and AppImage-# derive package and executable names from `name`, where "@lmliheng/…" is invalid, and+# derive package and executable names from `name`, where "@adelie/…" is invalid, and# fpm refuses to build without a homepage. It does NOT decide the app data directory: the# shell calls app.setName() before anything reads userData, so that keeps the name# src/app-identity.ts chooses per form.diff --git a/packages/desktop/package.json b/packages/desktop/package.jsonindex f12195cf..f6a2a9be 100644--- a/packages/desktop/package.json+++ b/packages/desktop/package.json@@ -1,9 +1,9 @@{- "name": "@lmliheng/penguin-desktop",+ "name": "@adelie/desktop","version": "0.4.2","private": true,"type": "module",- "description": "Adelie desktop app: Electron shell running @lmliheng/penguin-server as a utilityProcess, window on http://localhost (same-origin HTTP/SSE, no private IPC).",+ "description": "Adelie desktop app: Electron shell running @adelie/server as a utilityProcess, window on http://localhost (same-origin HTTP/SSE, no private IPC).","main": "dist/main.js","scripts": {"build": "tsup && node scripts/build-assets.mjs",@@ -16,31 +16,31 @@"pack:win": "node scripts/preflight.mjs && electron-builder --win"},"dependencies": {- "@lmliheng/agent-company": "workspace:*",- "@lmliheng/agent-development": "workspace:*",- "@lmliheng/agent-tuning": "workspace:*",- "@lmliheng/browser-automation": "workspace:*",- "@lmliheng/continual-learning": "workspace:*",- "@lmliheng/csu-mail": "workspace:*",- "@lmliheng/data-analysis": "workspace:*",- "@lmliheng/goal": "workspace:*",- "@lmliheng/humanizer": "workspace:*",- "@lmliheng/lesson-video": "workspace:*",- "@lmliheng/model-development": "workspace:*",- "@lmliheng/requirements-box": "workspace:*",- "@lmliheng/skill-porting": "workspace:*",- "@lmliheng/software-development": "workspace:*",- "@lmliheng/use-bento-slides": "workspace:*",- "@lmliheng/use-firecrawl": "workspace:*",- "@lmliheng/use-offerdao": "workspace:*",- "@lmliheng/use-wps-office": "workspace:*",- "@lmliheng/use-claude-code": "workspace:*",- "@lmliheng/wechat-miniprogram": "workspace:*"+ "@adelie/agent-company": "workspace:*",+ "@adelie/agent-development": "workspace:*",+ "@adelie/agent-tuning": "workspace:*",+ "@adelie/browser-automation": "workspace:*",+ "@adelie/continual-learning": "workspace:*",+ "@adelie/csu-mail": "workspace:*",+ "@adelie/data-analysis": "workspace:*",+ "@adelie/goal": "workspace:*",+ "@adelie/humanizer": "workspace:*",+ "@adelie/lesson-video": "workspace:*",+ "@adelie/model-development": "workspace:*",+ "@adelie/requirements-box": "workspace:*",+ "@adelie/skill-porting": "workspace:*",+ "@adelie/software-development": "workspace:*",+ "@adelie/use-bento-slides": "workspace:*",+ "@adelie/use-firecrawl": "workspace:*",+ "@adelie/use-offerdao": "workspace:*",+ "@adelie/use-wps-office": "workspace:*",+ "@adelie/use-claude-code": "workspace:*",+ "@adelie/wechat-miniprogram": "workspace:*"},"devDependencies": {- "@lmliheng/penguin-cli": "workspace:*",- "@lmliheng/penguin-core": "workspace:*",- "@lmliheng/penguin-server": "workspace:*",+ "@adelie/cli": "workspace:*",+ "@adelie/core": "workspace:*",+ "@adelie/server": "workspace:*","@types/node": "^24.0.0","electron": "^43.2.0","electron-builder": "^26.16.1",diff --git a/packages/desktop/scripts/build-assets.mjs b/packages/desktop/scripts/build-assets.mjsindex e6a98310..52dbc2d2 100644--- a/packages/desktop/scripts/build-assets.mjs+++ b/packages/desktop/scripts/build-assets.mjs@@ -8,7 +8,7 @@* - `dist/node_modules/node-pty` — the one dependency the bundler cannot absorb, because the* server loads it as a native module through a runtime `require` and node-pty's own loader* then resolves its binary package-relative. See src/pty-payload.ts. (The plugin library is- * not staged here: the @lmliheng/* packages are this package's `dependencies`, which+ * not staged here: the @adelie/* packages are this package's `dependencies`, which* electron-builder collects into the packed app's node_modules and pnpm links for a source* run, and core's bundled loader resolves them by name from the bundle's own location. The* server's web-dist lookup is likewise satisfied by electron-builder's file mapping whendiff --git a/packages/desktop/scripts/preflight.mjs b/packages/desktop/scripts/preflight.mjsindex d2124527..1badaffa 100644--- a/packages/desktop/scripts/preflight.mjs+++ b/packages/desktop/scripts/preflight.mjs@@ -28,7 +28,7 @@ for (const [what, rel] of [// one missing. Every declared package is checked, so one added to `dependencies` without// a `pnpm install` fails here rather than at the first library read....Object.keys(pkg.dependencies)- .filter((dep) => dep.startsWith("@lmliheng/"))+ .filter((dep) => dep.startsWith("@adelie/")).map((dep) => [`the plugin package ${dep}`, `node_modules/${dep}/plugin.json`]),["the builtin plugins", "plugins"],["the web frontend build", "../web/dist/index.html"],diff --git a/packages/desktop/scripts/verify-packed-cli.mjs b/packages/desktop/scripts/verify-packed-cli.mjsindex 69ccc7d7..ae9451e2 100644--- a/packages/desktop/scripts/verify-packed-cli.mjs+++ b/packages/desktop/scripts/verify-packed-cli.mjs@@ -24,9 +24,9 @@ const pkgDir = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");const outDir = path.join(pkgDir, "out");const ownPkg = JSON.parse(fs.readFileSync(path.join(pkgDir, "package.json"), "utf8"));const version = ownPkg.version;-/** The plugin packages the bundled loader will look for: every @lmliheng/* in this package's dependencies (the one field the packaged manifest keeps). */+/** The plugin packages the bundled loader will look for: every @adelie/* in this package's dependencies (the one field the packaged manifest keeps). */const pluginNames = Object.keys(ownPkg.dependencies ?? {}).filter((name) =>- name.startsWith("@lmliheng/"),+ name.startsWith("@adelie/"),);/** Every `resources/app` directory under out/, in both platform layouts. */diff --git a/packages/desktop/src/attach-session.ts b/packages/desktop/src/attach-session.tsindex b6b01471..ccd6e8ec 100644--- a/packages/desktop/src/attach-session.ts+++ b/packages/desktop/src/attach-session.ts@@ -17,7 +17,7 @@** Pure, and free of Electron: the minter is a parameter, so the tests drive every outcome.*/-import type { MintedVia, MintTokenResult } from "@lmliheng/penguin-server/auth-token";+import type { MintedVia, MintTokenResult } from "@adelie/server/auth-token";import { isAppUrl } from "./util.js";/**diff --git a/packages/desktop/src/builtin-browser-rules.ts b/packages/desktop/src/builtin-browser-rules.tsindex b749c027..d1425089 100644--- a/packages/desktop/src/builtin-browser-rules.ts+++ b/packages/desktop/src/builtin-browser-rules.ts@@ -13,7 +13,7 @@ import type {DesktopBrowserCommand,DesktopBrowserCommandMessage,DesktopBrowserCookie,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import type { TrayLocale } from "./tray-menu.js";/** The guests' own session: independent sign-ins and profile, persisted under userData. */diff --git a/packages/desktop/src/builtin-browser.ts b/packages/desktop/src/builtin-browser.tsindex 0be84b9c..514f6c91 100644--- a/packages/desktop/src/builtin-browser.ts+++ b/packages/desktop/src/builtin-browser.ts@@ -31,7 +31,7 @@ import type {DesktopBrowserEvent,DesktopBrowserEventMessage,DesktopBrowserReplyMessage,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import {BUILTIN_BROWSER_PARTITION,BUILTIN_BROWSER_PROTOCOL_VERSION,diff --git a/packages/desktop/src/folder-access.ts b/packages/desktop/src/folder-access.tsindex 994cba16..e5283574 100644--- a/packages/desktop/src/folder-access.ts+++ b/packages/desktop/src/folder-access.ts@@ -23,7 +23,7 @@ import type {DesktopFolderAccessResultMessage,DesktopOpenPrivacySettingsMessage,DesktopPrivacyPane,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";export interface FolderAccessDeps {platform: NodeJS.Platform;diff --git a/packages/desktop/src/launcher.ts b/packages/desktop/src/launcher.tsindex feca2bad..81f8f043 100644--- a/packages/desktop/src/launcher.ts+++ b/packages/desktop/src/launcher.ts@@ -4,7 +4,7 @@* imports the built dist/launcher.js to write the launcher scripts into this package's* bin/, which electron-builder then ships inside the app directory.*- * The launchers run the bundled @lmliheng/penguin-cli on the app's own Electron+ * The launchers run the bundled @adelie/cli on the app's own Electron* runtime as Node (ELECTRON_RUN_AS_NODE), so an installed desktop app provides a* working `penguin` command without any system Node installation. How bin/ reaches* PATH is per platform (see cli-install.ts and build/linux/*.tpl for the deb variant).diff --git a/packages/desktop/src/main.ts b/packages/desktop/src/main.tsindex 675a890a..0db64423 100644--- a/packages/desktop/src/main.ts+++ b/packages/desktop/src/main.ts@@ -60,10 +60,10 @@ import os from "node:os";import path from "node:path";import { app, BrowserWindow, dialog, session, shell } from "electron";import type { WindowOpenHandlerResponse } from "electron";-import { resolveRoot } from "@lmliheng/penguin-core";-import { mintApiToken } from "@lmliheng/penguin-server/auth-token";-import { liveServerLock } from "@lmliheng/penguin-server/lock";-import type { ServerLock } from "@lmliheng/penguin-server/lock";+import { resolveRoot } from "@adelie/core";+import { mintApiToken } from "@adelie/server/auth-token";+import { liveServerLock } from "@adelie/server/lock";+import type { ServerLock } from "@adelie/server/lock";import { appIdentity, desktopDataRoot, resolveProfile } from "./app-identity.js";import {createSignInGuard,diff --git a/packages/desktop/src/server-process.ts b/packages/desktop/src/server-process.tsindex c8a6b104..79629238 100644--- a/packages/desktop/src/server-process.ts+++ b/packages/desktop/src/server-process.ts@@ -1,5 +1,5 @@/**- * Embedded server lifecycle: forks @lmliheng/penguin-server as an Electron+ * Embedded server lifecycle: forks @adelie/server as an Electron* utilityProcess (same Node runtime, isolated from the main process), learns the actual* port from the PENGUIN_PORT_FILE announcement, probes HTTP readiness, and stops the* server gracefully — shutdown endpoint first (the only graceful path on Windows, where@@ -35,7 +35,7 @@ function delay(ms: number): Promise<void> {}/**- * The server bundle — forked by path. tsup emits @lmliheng/penguin-server as one+ * The server bundle — forked by path. tsup emits @adelie/server as one* self-contained file in this package's dist/, so a source run and a packaged app fork the* same artifact from the same app-path-relative location (asar is off, see* electron-builder.yml, so it is a plain file either way).diff --git a/packages/desktop/src/tray-prefs.ts b/packages/desktop/src/tray-prefs.tsindex 97a91031..f3b3a15f 100644--- a/packages/desktop/src/tray-prefs.ts+++ b/packages/desktop/src/tray-prefs.ts@@ -24,10 +24,7 @@*/import fs from "node:fs";import path from "node:path";-import type {- DesktopTrayCommandMessage,- DesktopTrayStatusMessage,-} from "@lmliheng/penguin-server/api";+import type { DesktopTrayCommandMessage, DesktopTrayStatusMessage } from "@adelie/server/api";import type { TrayLocale } from "./tray-menu.js";/** Preference file name, inside the app's userData directory. */diff --git a/packages/desktop/src/updater-status.ts b/packages/desktop/src/updater-status.tsindex c456bb47..87619112 100644--- a/packages/desktop/src/updater-status.ts+++ b/packages/desktop/src/updater-status.ts@@ -31,7 +31,7 @@ import type {DesktopUpdateStatus,DesktopUpdaterCommandMessage,DesktopUpdaterStatusMessage,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";/** electron-updater's events, reduced to what the status needs. */export type UpdaterEvent =diff --git a/packages/desktop/src/updater.ts b/packages/desktop/src/updater.tsindex 5beb8836..7669f9eb 100644--- a/packages/desktop/src/updater.ts+++ b/packages/desktop/src/updater.ts@@ -33,10 +33,7 @@import { app, dialog, shell } from "electron";import type { BrowserWindow } from "electron";import electronUpdater from "electron-updater";-import type {- DesktopUpdateStatus,- DesktopUpdaterCommandMessage,-} from "@lmliheng/penguin-server/api";+import type { DesktopUpdateStatus, DesktopUpdaterCommandMessage } from "@adelie/server/api";import { resolveProfile } from "./app-identity.js";import { logLine } from "./desktop-log.js";import {diff --git a/packages/desktop/test/attach-session.test.ts b/packages/desktop/test/attach-session.test.tsindex 266a712a..4a5dcadc 100644--- a/packages/desktop/test/attach-session.test.ts+++ b/packages/desktop/test/attach-session.test.ts@@ -7,7 +7,7 @@ import fs from "node:fs";import path from "node:path";import { fileURLToPath } from "node:url";import { describe, expect, it } from "vitest";-import type { MintedVia, MintTokenResult } from "@lmliheng/penguin-server/auth-token";+import type { MintedVia, MintTokenResult } from "@adelie/server/auth-token";import {ATTACH_SESSION_TTL_MS,createSignInGuard,diff --git a/packages/desktop/test/folder-access.test.ts b/packages/desktop/test/folder-access.test.tsindex c49b029c..3272ebb6 100644--- a/packages/desktop/test/folder-access.test.ts+++ b/packages/desktop/test/folder-access.test.ts@@ -5,7 +5,7 @@* answers without touching the disk.*/import { describe, expect, it, vi } from "vitest";-import type { DesktopFolderAccessResultMessage } from "@lmliheng/penguin-server/api";+import type { DesktopFolderAccessResultMessage } from "@adelie/server/api";import {folderAccessReply,handleFolderAccessFrame,diff --git a/packages/desktop/test/updater-status.test.ts b/packages/desktop/test/updater-status.test.tsindex 4cc15065..a4151a20 100644--- a/packages/desktop/test/updater-status.test.ts+++ b/packages/desktop/test/updater-status.test.ts@@ -11,7 +11,7 @@* `checking`, which would drop the download context and every later progress tick with it.*/import { describe, expect, it } from "vitest";-import type { DesktopUpdateStatus } from "@lmliheng/penguin-server/api";+import type { DesktopUpdateStatus } from "@adelie/server/api";import {initialUpdateStatus,nextUpdateStatus,diff --git a/packages/desktop/tsup.config.ts b/packages/desktop/tsup.config.tsindex 070febd0..35a14255 100644--- a/packages/desktop/tsup.config.ts+++ b/packages/desktop/tsup.config.ts@@ -19,7 +19,7 @@ import { ESM_CJS_BANNER } from "../../scripts/esm-cjs-banner.mjs";* tree. Two things cannot be absorbed: node-pty, a native module the server reaches through a* runtime `require` whose loader resolves the binary relative to its own package directory —* build-assets.mjs stages a package directory for it at dist/node_modules/node-pty (see- * src/pty-payload.ts) — and the @lmliheng/* plugin packages, data directories the+ * src/pty-payload.ts) — and the @adelie/* plugin packages, data directories the* bundled core loader resolves by package name from the bundle's own location, which travel* as this package's declared dependencies (electron-builder collects them, pnpm links them).*/diff --git a/packages/docs/README.md b/packages/docs/README.mdindex da06caff..f96ea9d2 100644--- a/packages/docs/README.md+++ b/packages/docs/README.md@@ -1,4 +1,4 @@-# @lmliheng/penguin-docs+# @adelie/docsThe PenguinHarness documentation site (React + Vite + Tailwind CSS 4). Its own package, sharing the landing page's visual language: bilingual pages (zh/en), light/dark themes, a sidebar + per-page table of contents, and a "Copy Markdown" button on every page.@@ -21,9 +21,9 @@ Navigation (sections, order, prev/next) is defined once in `src/lib/nav.ts`; a v```bashpnpm dev:docs # http://127.0.0.1:7367 (repo root script)-pnpm --filter @lmliheng/penguin-docs build # dist/ + per-route shells for deep links-pnpm --filter @lmliheng/penguin-docs typecheck-pnpm --filter @lmliheng/penguin-docs test+pnpm --filter @adelie/docs build # dist/ + per-route shells for deep links+pnpm --filter @adelie/docs typecheck+pnpm --filter @adelie/docs test```## Deployment@@ -32,7 +32,7 @@ Deployed to GitHub Pages together with the landing page as one artifact: `script```bashBASE_PATH=/ pnpm build:site # assemble locally-pnpm --filter @lmliheng/penguin-landing preview # serve the assembled site+pnpm --filter @adelie/landing preview # serve the assembled site```Deep links work without a 404 fallback: the post-build step copies the SPA shell to `dist/<slug>/index.html` for every content slug.diff --git a/packages/docs/content/agent-api.en.md b/packages/docs/content/agent-api.en.mdindex dac5d609..d412333f 100644--- a/packages/docs/content/agent-api.en.md+++ b/packages/docs/content/agent-api.en.md@@ -1,6 +1,6 @@---title: Agent API-description: Let a program talk to one agent over HTTP — turn on the agent's API, mint keys, and run it with curl or the @lmliheng/amsp client.+description: Let a program talk to one agent over HTTP — turn on the agent's API, mint keys, and run it with curl or the @adelie/amsp client.---The Agent API lets a program outside PenguinHarness — a script, a service, a page in a browser — talk to one agent over HTTP. The program sends its input, reads the run as it happens as an [AMSP](/amsp) event stream, and continues the conversation by its Session id. A run uses the Project's models and credentials, is recorded like any other conversation, and appears in the sidebar's **Background** folder.@@ -162,14 +162,14 @@ Once the stream has started, an error is never a separate frame: the run ends wi## The amsp client-`@lmliheng/amsp` is the TypeScript client of the Agent API. It has no dependencies, runs in Node 24 and in current browsers, and exports the AMSP event types.+`@adelie/amsp` is the TypeScript client of the Agent API. It has no dependencies, runs in Node 24 and in current browsers, and exports the AMSP event types.```bash-npm install @lmliheng/amsp+npm install @adelie/amsp``````ts-import { AgentClient } from "@lmliheng/amsp";+import { AgentClient } from "@adelie/amsp";const client = new AgentClient({baseUrl: "http://localhost:7364/api/amsp/v1",@@ -202,7 +202,7 @@ console.log(second.text, second.usage.total);When the approval mode makes a call wait, the run delivers `approval.requested` and the client answers it for you: with `onApproval`'s decision, or `deny` when there is no callback or it throws. It answers whether you iterate or only await the result.```ts-import { AgentClient, parseArguments } from "@lmliheng/amsp";+import { AgentClient, parseArguments } from "@adelie/amsp";const result = await client.ask({input: "Clean up the build output",@@ -235,7 +235,7 @@ const result = await client.ask({The same package works in a browser through a bundler. A page on another origin than the server needs a key: the server answers the CORS preflight for any origin, but sends `Access-Control-Allow-Origin: *` only on a request carrying `Authorization`. A cross-origin request may carry only `Authorization` and `Content-Type`, so extra `headers` are for same-origin pages and Node.```ts-import { AgentClient } from "@lmliheng/amsp";+import { AgentClient } from "@adelie/amsp";const keyField = document.querySelector<HTMLInputElement>("#key")!;const client = new AgentClient({diff --git a/packages/docs/content/agent-api.zh.md b/packages/docs/content/agent-api.zh.mdindex 254bba46..185f4ada 100644--- a/packages/docs/content/agent-api.zh.md+++ b/packages/docs/content/agent-api.zh.md@@ -1,6 +1,6 @@---title: Agent API-description: 让外部程序经 HTTP 与某个 Agent 对话:开启 Agent 的 API、签发密钥,再用 curl 或 @lmliheng/amsp 客户端运行它。+description: 让外部程序经 HTTP 与某个 Agent 对话:开启 Agent 的 API、签发密钥,再用 curl 或 @adelie/amsp 客户端运行它。---Agent API 让 PenguinHarness 之外的程序(脚本、服务、浏览器里的页面)经 HTTP 与某一个 Agent 对话。程序发送输入,以 [AMSP](/amsp) 事件流实时读取这次运行,再凭 Session id 延续对话。运行使用 Project 的模型与凭据,像其他对话一样被记录,并出现在侧边栏的**后台会话**折叠夹中。@@ -162,14 +162,14 @@ type InputItem =## amsp 客户端-`@lmliheng/amsp` 是 Agent API 的 TypeScript 客户端。它没有任何依赖,可在 Node 24 和当前的浏览器中运行,并导出 AMSP 的事件类型。+`@adelie/amsp` 是 Agent API 的 TypeScript 客户端。它没有任何依赖,可在 Node 24 和当前的浏览器中运行,并导出 AMSP 的事件类型。```bash-npm install @lmliheng/amsp+npm install @adelie/amsp``````ts-import { AgentClient } from "@lmliheng/amsp";+import { AgentClient } from "@adelie/amsp";const client = new AgentClient({baseUrl: "http://localhost:7364/api/amsp/v1",@@ -202,7 +202,7 @@ console.log(second.text, second.usage.total);当审批模式让某次调用等待时,运行会给出 `approval.requested`,客户端替你回答:用 `onApproval` 的决定;没有回调或回调抛出异常时回答 `deny`。无论你是在迭代还是只等待结果,客户端都会回答。```ts-import { AgentClient, parseArguments } from "@lmliheng/amsp";+import { AgentClient, parseArguments } from "@adelie/amsp";const result = await client.ask({input: "Clean up the build output",@@ -235,7 +235,7 @@ const result = await client.ask({同一个包经打包工具即可在浏览器中使用。与服务器不同源的页面必须使用密钥:服务器对任何来源都应答 CORS 预检,但只在带 `Authorization` 的请求上返回 `Access-Control-Allow-Origin: *`。跨源请求只能携带 `Authorization` 和 `Content-Type`,所以额外的 `headers` 只适用于同源页面和 Node。```ts-import { AgentClient } from "@lmliheng/amsp";+import { AgentClient } from "@adelie/amsp";const keyField = document.querySelector<HTMLInputElement>("#key")!;const client = new AgentClient({diff --git a/packages/docs/content/amsp.en.md b/packages/docs/content/amsp.en.mdindex 5a809778..4e4a339a 100644--- a/packages/docs/content/amsp.en.md+++ b/packages/docs/content/amsp.en.md@@ -5,7 +5,7 @@ description: The Agent Message Stream Protocol — the event stream one run of aAMSP (Agent Message Stream Protocol) is the wire format of the [Agent API](/agent-api). Where [MMSP](https://www.npmjs.com/package/@prismshadow/mmsp) streams one model call, AMSP streams one run of an agent: one Task, with the model Requests it makes, the tools the agent runs and their results, approvals, compaction, errors and the final count of tokens, on a Session the caller continues by id. One run is one HTTP response.-AMSP is a projection of the Session's live stream: the server translates the [OmniMessage](/omni-message) records and server events a run produces, and forwards both the fragments and the complete items as the engine produced them. OmniMessage gains no field for it. The types are in `@lmliheng/amsp` (`packages/amsp/src/types.ts`), which the server's translator and the client share.+AMSP is a projection of the Session's live stream: the server translates the [OmniMessage](/omni-message) records and server events a run produces, and forwards both the fragments and the complete items as the engine produced them. OmniMessage gains no field for it. The types are in `@adelie/amsp` (`packages/amsp/src/types.ts`), which the server's translator and the client share.## Transport@@ -230,4 +230,4 @@ Fields that serve only the Trace, such as provider `fidelity` and `session_meta.## Reading the stream yourself-Any SSE reader works, as long as it can send `Authorization` and a POST body: use `fetch`, not `EventSource`. Read it the way an `EventSource` would: lines end in LF, CRLF or a lone CR; a blank line ends an event; lines starting with `:` are comments; the `data:` lines of one event join with a newline; stop at `data: [DONE]`. `readSse` from `@lmliheng/amsp` does exactly this for a `fetch` body and yields each event's data.+Any SSE reader works, as long as it can send `Authorization` and a POST body: use `fetch`, not `EventSource`. Read it the way an `EventSource` would: lines end in LF, CRLF or a lone CR; a blank line ends an event; lines starting with `:` are comments; the `data:` lines of one event join with a newline; stop at `data: [DONE]`. `readSse` from `@adelie/amsp` does exactly this for a `fetch` body and yields each event's data.diff --git a/packages/docs/content/amsp.zh.md b/packages/docs/content/amsp.zh.mdindex 2bffa312..b80e482e 100644--- a/packages/docs/content/amsp.zh.md+++ b/packages/docs/content/amsp.zh.md@@ -5,7 +5,7 @@ description: Agent Message Stream Protocol:经 Agent API 返回 Agent 一次AMSP(Agent Message Stream Protocol)是 [Agent API](/agent-api) 的传输格式。[MMSP](https://www.npmjs.com/package/@prismshadow/mmsp) 流式传输一次模型调用,AMSP 流式传输 Agent 的一次运行:一个 Task,包括它发出的模型 Request、Agent 执行的工具及其结果、审批、上下文压缩、错误和最终的 Token 计数;运行发生在一个 Session 上,调用方凭 id 延续它。一次运行就是一个 HTTP 响应。-AMSP 是 Session 实时流的投影:服务器把一次运行产生的 [OmniMessage](/omni-message) 记录和服务器事件翻译过来,分片和完整内容项都按引擎产出的原样转发。OmniMessage 没有为它增加任何字段。类型定义在 `@lmliheng/amsp`(`packages/amsp/src/types.ts`)中,服务器的翻译器和客户端共用这份定义。+AMSP 是 Session 实时流的投影:服务器把一次运行产生的 [OmniMessage](/omni-message) 记录和服务器事件翻译过来,分片和完整内容项都按引擎产出的原样转发。OmniMessage 没有为它增加任何字段。类型定义在 `@adelie/amsp`(`packages/amsp/src/types.ts`)中,服务器的翻译器和客户端共用这份定义。## 传输@@ -230,4 +230,4 @@ data: [DONE]## 自行读取流-任何能发送 `Authorization` 和 POST 请求体的 SSE 读取方式都可以:请用 `fetch`,不要用 `EventSource`。按 `EventSource` 的规则读取:行以 LF、CRLF 或单独的 CR 结束;空行结束一个事件;以 `:` 开头的行是注释;同一事件的多行 `data:` 以换行符连接;读到 `data: [DONE]` 时停止。`@lmliheng/amsp` 中的 `readSse` 正是这样读取 `fetch` 的响应体,并逐个产出每个事件的数据。+任何能发送 `Authorization` 和 POST 请求体的 SSE 读取方式都可以:请用 `fetch`,不要用 `EventSource`。按 `EventSource` 的规则读取:行以 LF、CRLF 或单独的 CR 结束;空行结束一个事件;以 `:` 开头的行是注释;同一事件的多行 `data:` 以换行符连接;读到 `data: [DONE]` 时停止。`@adelie/amsp` 中的 `readSse` 正是这样读取 `fetch` 的响应体,并逐个产出每个事件的数据。diff --git a/packages/docs/content/architecture.en.md b/packages/docs/content/architecture.en.mdindex c7bb7873..248b30f9 100644--- a/packages/docs/content/architecture.en.md+++ b/packages/docs/content/architecture.en.md@@ -3,7 +3,7 @@ title: Architecturedescription: How the SDK, Server, CLI and Web App divide responsibilities, and how the three-interface boundary and OmniMessage organize the system.----PenguinHarness is a pnpm monorepo. Its center is the execution engine in `@lmliheng/penguin-core`. The Server ships with the product as the Human implementation of that engine: it runs every Task. SDK embedders can also drive the engine directly.+PenguinHarness is a pnpm monorepo. Its center is the execution engine in `@adelie/core`. The Server ships with the product as the Human implementation of that engine: it runs every Task. SDK embedders can also drive the engine directly.The Web App and the CLI are clients of the Server over HTTP and SSE, and the desktop app wraps the Server and the Web App in one window. This page covers the layers, the engine's three-interface boundary, the [data flow of one Task](#data-flow-of-one-task), where each responsibility lives, and the source layout.@@ -147,7 +147,7 @@ packages/```textpackages/web/src-├── api/ # fetch wrapper · one function per API (DTOs type-only from @lmliheng/penguin-server/api) · SSE wrapper+├── api/ # fetch wrapper · one function per API (DTOs type-only from @adelie/server/api) · SSE wrapper├── state/ # auth / project / sessions / company / theme / locale contexts├── lib/omni/ # OmniMessage stream → view-model reducer; connect-first + dedup stream controller├── components/ # ui primitives (modal / drawer / select …) and the app layoutdiff --git a/packages/docs/content/architecture.zh.md b/packages/docs/content/architecture.zh.mdindex c914d533..31774e27 100644--- a/packages/docs/content/architecture.zh.md+++ b/packages/docs/content/architecture.zh.md@@ -3,7 +3,7 @@ title: 架构总览description: SDK、Server、CLI 和 Web App 如何分工,以及三接口边界与 OmniMessage 如何组织整个系统。----PenguinHarness 是一个 pnpm monorepo,核心是 `@lmliheng/penguin-core` 里的执行引擎。Server 是随产品交付的 Human 实现,所有 Task 都由它运行;SDK 嵌入方也可以直接驱动引擎。+PenguinHarness 是一个 pnpm monorepo,核心是 `@adelie/core` 里的执行引擎。Server 是随产品交付的 Human 实现,所有 Task 都由它运行;SDK 嵌入方也可以直接驱动引擎。Web App 和 CLI 经 HTTP 与 SSE 访问 Server,桌面应用则把 Server 和 Web App 装进同一个窗口。本页依次介绍分层结构、引擎的三接口边界、[一个 Task 的数据流](#一个-task-的数据流)、各项职责的归属和源码结构。@@ -147,7 +147,7 @@ packages/```textpackages/web/src-├── api/ # fetch wrapper · one function per API (DTOs type-only from @lmliheng/penguin-server/api) · SSE wrapper+├── api/ # fetch wrapper · one function per API (DTOs type-only from @adelie/server/api) · SSE wrapper├── state/ # auth / project / sessions / company / theme / locale contexts├── lib/omni/ # OmniMessage stream → view-model reducer; connect-first + dedup stream controller├── components/ # ui primitives (modal / drawer / select …) and the app layoutdiff --git a/packages/docs/content/cli.en.md b/packages/docs/content/cli.en.mdindex 9e445ac0..d9182cc2 100644--- a/packages/docs/content/cli.en.md+++ b/packages/docs/content/cli.en.md@@ -5,7 +5,7 @@ description: Every penguin command and subcommand, with its options, defaults, oThis page documents every `penguin` command. It opens with how the CLI reaches a server and the conventions all commands share, then gives each command a summary, its usage, an options table and examples.-The CLI ships as the npm package `@lmliheng/penguin-cli`, and the command is `penguin`. Bare `penguin` prints help. `-v, --version` prints the running build's one-line identity, and `penguin version --json` prints all of it. On startup the CLI loads a `.env` file from the working directory.+The CLI ships as the npm package `@adelie/cli`, and the command is `penguin`. Bare `penguin` prints help. `-v, --version` prints the running build's one-line identity, and `penguin version --json` prints all of it. On startup the CLI loads a `.env` file from the working directory.The CLI is a thin client of the server. Every session-facing command (`run`, `chat`, `ls`, `input`, `logs`, `agent`, `project`, `cost`, `schedule`, `org`, `browser`) sends HTTP requests to a PenguinHarness server and renders the replies. Tasks run on the server, Sessions live in its index, and the Web App sees everything the CLI creates, and the other way round. Only `config` still edits the Project's files directly, and `server` / `web` start the service itself.@@ -893,7 +893,7 @@ The flag is `--release`, not `--version`, because `-v, --version` is the CLI's o| Install kind | How it upgrades || --- | --- || Tarball (`install.sh`, default `~/.penguin`) | Re-runs the official installer, keeping the install directory and whether the package bundles a Node runtime |-| Global npm, pnpm, yarn or bun install | Runs that package manager's global install of `@lmliheng/penguin-cli@<target>`. If the manager cannot be identified, prints the command instead of guessing |+| Global npm, pnpm, yarn or bun install | Runs that package manager's global install of `@adelie/cli@<target>`. If the manager cannot be identified, prints the command instead of guessing || Source checkout | Refused: update it with `git pull` and a rebuild || The desktop app's bundled CLI | Refused: it is replaced when the app updates, so check for updates from the app menu || Unrecognized layout | Refused: reinstall with the official installer, or upgrade with the package manager you used |diff --git a/packages/docs/content/cli.zh.md b/packages/docs/content/cli.zh.mdindex 17b34f6a..ae6fce0e 100644--- a/packages/docs/content/cli.zh.md+++ b/packages/docs/content/cli.zh.md@@ -5,7 +5,7 @@ description: 所有 penguin 命令和子命令的选项、默认值、输出结本页收录所有 `penguin` 命令。开头先说明 CLI 如何连接服务器,以及所有命令共享的约定;随后逐条介绍每个命令,各配一段概述、用法、选项表和示例。-CLI 以 npm 包 `@lmliheng/penguin-cli` 发布,命令名为 `penguin`。直接运行 `penguin` 会打印帮助。`-v, --version` 打印当前构建的一行标识信息,`penguin version --json` 则打印完整信息。启动时,CLI 会从工作目录加载 `.env` 文件。+CLI 以 npm 包 `@adelie/cli` 发布,命令名为 `penguin`。直接运行 `penguin` 会打印帮助。`-v, --version` 打印当前构建的一行标识信息,`penguin version --json` 则打印完整信息。启动时,CLI 会从工作目录加载 `.env` 文件。CLI 是服务器的瘦客户端。所有面向会话的命令(`run`、`chat`、`ls`、`input`、`logs`、`agent`、`project`、`cost`、`schedule`、`org`、`browser`)都向 PenguinHarness 服务器发送 HTTP 请求,并渲染返回结果。Task 在服务器上运行,Session 存放在服务器的索引里;CLI 创建的一切 Web App 都能看到,反过来也一样。只有 `config` 仍直接编辑 Project 的文件,`server` / `web` 则负责启动服务本身。@@ -893,7 +893,7 @@ penguin update # upgrade to the latest release, after confirming| 安装类型 | 升级方式 || --- | --- || 压缩包(`install.sh`,默认 `~/.penguin`) | 重新运行官方安装器,保留原安装目录以及安装包是否自带 Node 运行时 |-| npm、pnpm、yarn 或 bun 全局安装 | 用对应的包管理器全局安装 `@lmliheng/penguin-cli@<target>`。无法识别包管理器时,打印命令而不是猜测 |+| npm、pnpm、yarn 或 bun 全局安装 | 用对应的包管理器全局安装 `@adelie/cli@<target>`。无法识别包管理器时,打印命令而不是猜测 || 源码检出 | 拒绝:请用 `git pull` 加重新构建来更新 || 桌面应用内置的 CLI | 拒绝:应用更新时会随之替换,请从应用菜单检查更新 || 无法识别的布局 | 拒绝:请用官方安装器重新安装,或用当初的包管理器升级 |diff --git a/packages/docs/content/configuration.en.md b/packages/docs/content/configuration.en.mdindex 9634fc39..c4b60f1f 100644--- a/packages/docs/content/configuration.en.md+++ b/packages/docs/content/configuration.en.md@@ -165,7 +165,7 @@ The `[plugins]` table lists the [server plugins](/skills#server-plugins) the Pro```toml[plugins]-"@lmliheng/penguin-plugin-sandbox-bwrap" = "*"+"@adelie/sandbox-bwrap" = "*""@scope/name" = "1.2.3""@scope/other" = { version = "1.2" }```diff --git a/packages/docs/content/configuration.zh.md b/packages/docs/content/configuration.zh.mdindex 4ef3a831..ee360a24 100644--- a/packages/docs/content/configuration.zh.md+++ b/packages/docs/content/configuration.zh.md@@ -165,7 +165,7 @@ output = 1.142857```toml[plugins]-"@lmliheng/penguin-plugin-sandbox-bwrap" = "*"+"@adelie/sandbox-bwrap" = "*""@scope/name" = "1.2.3""@scope/other" = { version = "1.2" }```diff --git a/packages/docs/content/interfaces.en.md b/packages/docs/content/interfaces.en.mdindex a41765ba..ac4fddac 100644--- a/packages/docs/content/interfaces.en.md+++ b/packages/docs/content/interfaces.en.md@@ -7,12 +7,12 @@ The `context_engine` depends on three interfaces: Human, LLM and Environment. AlThis page follows a turn's control flow: [the Human boundary](#the-human-boundary), the [LLM contract](#llminterface), the [approval callback](#approvefn) and the [Environment contract](#environmentinterface). It ends with the [subagent](#subagent-interfaces) and [vision](#visiondescriberservice) services and the [extension seams](#extension-seams).-All types are exported by `@lmliheng/penguin-core`. The source lives in `packages/core/src/interfaces/`:+All types are exported by `@adelie/core`. The source lives in `packages/core/src/interfaces/`:- `llm.ts`: what the model side needs.- `environment.ts`: what the Environment side needs.- `shared.ts`: the vocabulary both sides genuinely need.-- `index.ts`: the barrel behind the `@lmliheng/penguin-core/interfaces` subpath.+- `index.ts`: the barrel behind the `@adelie/core/interfaces` subpath.## The three boundaries@@ -282,7 +282,7 @@ interface ConfinedSpawn {runnerLines?: readonly string[]; // lines the runner prints before the command; dropped from the head of its stderr}-// The policy itself (@lmliheng/penguin-core/plugin). "danger-full-access" with no network cut+// The policy itself (@adelie/core/plugin). "danger-full-access" with no network cut// and no masked path is the sandbox off.type SandboxSettings = {mode: "read-only" | "workspace-write" | "danger-full-access";diff --git a/packages/docs/content/interfaces.zh.md b/packages/docs/content/interfaces.zh.mdindex 3459d041..070e9bb3 100644--- a/packages/docs/content/interfaces.zh.md+++ b/packages/docs/content/interfaces.zh.md@@ -7,12 +7,12 @@ description: 引擎背后的 Human、LLM 与 Environment 契约,附完整签本页沿一轮运行的控制流展开:[Human 边界](#human-边界)、[LLM 契约](#llminterface)、[审批回调](#approvefn)和 [Environment 契约](#environmentinterface)。结尾介绍[子 Agent](#子-agent-接口) 和[视觉](#visiondescriberservice)服务,以及[扩展点](#扩展点)。-所有类型都从 `@lmliheng/penguin-core` 导出。源码位于 `packages/core/src/interfaces/`:+所有类型都从 `@adelie/core` 导出。源码位于 `packages/core/src/interfaces/`:- `llm.ts`:模型侧需要的类型。- `environment.ts`:Environment 侧需要的类型。- `shared.ts`:两侧真正共用的词汇。-- `index.ts`:`@lmliheng/penguin-core/interfaces` 子路径背后的聚合导出入口。+- `index.ts`:`@adelie/core/interfaces` 子路径背后的聚合导出入口。## 三条边界@@ -282,7 +282,7 @@ interface ConfinedSpawn {runnerLines?: readonly string[]; // lines the runner prints before the command; dropped from the head of its stderr}-// The policy itself (@lmliheng/penguin-core/plugin). "danger-full-access" with no network cut+// The policy itself (@adelie/core/plugin). "danger-full-access" with no network cut// and no masked path is the sandbox off.type SandboxSettings = {mode: "read-only" | "workspace-write" | "danger-full-access";diff --git a/packages/docs/content/introduction.en.md b/packages/docs/content/introduction.en.mdindex 650aa9c6..92025605 100644--- a/packages/docs/content/introduction.en.md+++ b/packages/docs/content/introduction.en.md@@ -21,11 +21,11 @@ PenguinHarness is made of these components. They share one data root and one mes| Component | Package | Description || --- | --- | --- |-| SDK | `@lmliheng/penguin-core` | The core engine: the ReAct loop, the [OmniMessage protocol](/omni-message), the LLM and Environment [interface contracts](/interfaces), Agent State and Trace. |-| CLI | `@lmliheng/penguin-cli` | The `penguin` command: an interactive REPL, one-shot Task runs, and model and Vault configuration. |-| Server | `@lmliheng/penguin-server` | The Web backend: the HTTP [API and SSE streaming](/server-api), multi-user auth, Project authorization and usage statistics. |-| Web App | `@lmliheng/penguin-web` | The browser UI: multi-session chat, agent management, the plugin library, model configuration, Trace observability and the Evaluation Center. |-| Desktop app | `@lmliheng/penguin-desktop` | The Web App as a standalone application for macOS, Windows and Linux. It embeds the server and installs the `penguin` command. |+| SDK | `@adelie/core` | The core engine: the ReAct loop, the [OmniMessage protocol](/omni-message), the LLM and Environment [interface contracts](/interfaces), Agent State and Trace. |+| CLI | `@adelie/cli` | The `penguin` command: an interactive REPL, one-shot Task runs, and model and Vault configuration. |+| Server | `@adelie/server` | The Web backend: the HTTP [API and SSE streaming](/server-api), multi-user auth, Project authorization and usage statistics. |+| Web App | `@adelie/web` | The browser UI: multi-session chat, agent management, the plugin library, model configuration, Trace observability and the Evaluation Center. |+| Desktop app | `@adelie/desktop` | The Web App as a standalone application for macOS, Windows and Linux. It embeds the server and installs the `penguin` command. |## The three pillarsdiff --git a/packages/docs/content/introduction.zh.md b/packages/docs/content/introduction.zh.mdindex 6db2320f..d05a06f2 100644--- a/packages/docs/content/introduction.zh.md+++ b/packages/docs/content/introduction.zh.md@@ -21,11 +21,11 @@ PenguinHarness 由下面这些组件构成。它们共用同一个数据目录| 组件 | 包名 | 说明 || --- | --- | --- |-| SDK | `@lmliheng/penguin-core` | 核心引擎:ReAct 循环、[OmniMessage 协议](/omni-message)、LLM 与 Environment 的[接口契约](/interfaces)、Agent State 与 Trace。 |-| CLI | `@lmliheng/penguin-cli` | `penguin` 命令:交互式 REPL、单次 Task 运行,以及模型与 Vault 配置。 |-| Server | `@lmliheng/penguin-server` | Web 服务端:HTTP [API 与 SSE 流式通道](/server-api)、多用户认证、Project 授权和用量统计。 |-| Web App | `@lmliheng/penguin-web` | 浏览器界面:多会话对话、Agent 管理、插件库、模型配置、Trace 观测和评估中心。 |-| 桌面应用 | `@lmliheng/penguin-desktop` | 把 Web App 做成独立应用,支持 macOS、Windows 和 Linux。它内嵌服务端,并会装好 `penguin` 命令。 |+| SDK | `@adelie/core` | 核心引擎:ReAct 循环、[OmniMessage 协议](/omni-message)、LLM 与 Environment 的[接口契约](/interfaces)、Agent State 与 Trace。 |+| CLI | `@adelie/cli` | `penguin` 命令:交互式 REPL、单次 Task 运行,以及模型与 Vault 配置。 |+| Server | `@adelie/server` | Web 服务端:HTTP [API 与 SSE 流式通道](/server-api)、多用户认证、Project 授权和用量统计。 |+| Web App | `@adelie/web` | 浏览器界面:多会话对话、Agent 管理、插件库、模型配置、Trace 观测和评估中心。 |+| 桌面应用 | `@adelie/desktop` | 把 Web App 做成独立应用,支持 macOS、Windows 和 Linux。它内嵌服务端,并会装好 `penguin` 命令。 |## 三大支柱diff --git a/packages/docs/content/omni-message.en.md b/packages/docs/content/omni-message.en.mdindex 6c8b59f0..3e59d3d5 100644--- a/packages/docs/content/omni-message.en.md+++ b/packages/docs/content/omni-message.en.md@@ -454,13 +454,13 @@ How messages travel along these surfaces, and every ordering guarantee, is cover## Builders and guards-`@lmliheng/penguin-core` exports all protocol types, plus:+`@adelie/core` exports all protocol types, plus:- a builder per message kind in `builders.ts`: `userText`, `assistantText`, `toolCall`, `toolCallOutput`, `partialText`, `tokenUsage`, `withOrigin`, `emptyTokenCounts`, `addTokenCounts`, and more;- runtime guards: `isCompleteModelMessage`, `isPartialPayload`, `isModelMessage`, `isEventMessage`, `isSessionMeta`.```ts-import { userText, isCompleteModelMessage } from "@lmliheng/penguin-core";+import { userText, isCompleteModelMessage } from "@adelie/core";const prompt = userText("List the files in the current directory");// { timestamp: "…", type: "model_msg", payload: { type: "text", role: "user", text: "…" } }diff --git a/packages/docs/content/omni-message.zh.md b/packages/docs/content/omni-message.zh.mdindex 16fd4139..8d8389e2 100644--- a/packages/docs/content/omni-message.zh.md+++ b/packages/docs/content/omni-message.zh.md@@ -454,13 +454,13 @@ type StopReason = "completed" | "aborted" | "retryable" | "fatal";## 构造与判别-`@lmliheng/penguin-core` 导出全部协议类型,此外还有:+`@adelie/core` 导出全部协议类型,此外还有:- `builders.ts` 里每种消息的构造函数:`userText`、`assistantText`、`toolCall`、`toolCallOutput`、`partialText`、`tokenUsage`、`withOrigin`、`emptyTokenCounts`、`addTokenCounts` 等;- 运行时判别函数:`isCompleteModelMessage`、`isPartialPayload`、`isModelMessage`、`isEventMessage`、`isSessionMeta`。```ts-import { userText, isCompleteModelMessage } from "@lmliheng/penguin-core";+import { userText, isCompleteModelMessage } from "@adelie/core";const prompt = userText("List the files in the current directory");// { timestamp: "…", type: "model_msg", payload: { type: "text", role: "user", text: "…" } }diff --git a/packages/docs/content/quickstart-cli.en.md b/packages/docs/content/quickstart-cli.en.mdindex 58174c8b..0421fe1f 100644--- a/packages/docs/content/quickstart-cli.en.md+++ b/packages/docs/content/quickstart-cli.en.md@@ -24,7 +24,7 @@ irm https://penguin.ooo/install.ps1 | iex``````bash tab="npm (any platform)"-npm install -g @lmliheng/penguin-cli+npm install -g @adelie/cli```Check the install:@@ -198,7 +198,7 @@ The data root is `~/.penguin/data` by default (`%USERPROFILE%\.penguin\data` on### Sandbox on Ubuntu-On Linux, turning the sandbox on installs two backends. `@lmliheng/penguin-plugin-sandbox-bwrap` confines commands with bubblewrap: file writes, the network and masked paths. `@lmliheng/penguin-plugin-sandbox-dsh` confines file writes only, through Landlock where bubblewrap cannot run. Where both work, bubblewrap serves every command.+On Linux, turning the sandbox on installs two backends. `@adelie/sandbox-bwrap` confines commands with bubblewrap: file writes, the network and masked paths. `@adelie/sandbox-dsh` confines file writes only, through Landlock where bubblewrap cannot run. Where both work, bubblewrap serves every command.Ubuntu 23.10 and later, including a default Ubuntu 24.04, grant unprivileged user namespaces only to programs that have an AppArmor profile allowing it (`kernel.apparmor_restrict_unprivileged_userns` is `1`), and bubblewrap needs them. The desktop `.deb` installs such a profile for the app. The install script, the npm install and the release archive run without root and cannot, so on those installs bubblewrap is refused and the sandbox works through Landlock with no step from you. The [Sandbox](/settings#sandbox) card says so: `Enforced here: file writes, by Landlock (dsh-local). Not enforced here: network isolation, localhost-only network and masked paths.` Every built-in preset leaves the network open, so all of them are enforced. A preset with No network is greyed out on the card, and masked paths are refused rather than run with less confinement. **More info** under that line shows why bubblewrap is not in use (`setting up uid map: Permission denied`) and the bwrap path it tried.@@ -209,7 +209,7 @@ sudo tee /etc/apparmor.d/adelie-sandbox-bwrap >/dev/null <<'EOF'abi <abi/4.0>,include <tunables/global>-profile adelie-sandbox-bwrap @{HOME}/.adelie/**/plugins/node_modules/@lmliheng/penguin-plugin-sandbox-bwrap/vendor/linux-*/bin/bwrap flags=(unconfined) {+profile adelie-sandbox-bwrap @{HOME}/.adelie/**/plugins/node_modules/@adelie/sandbox-bwrap/vendor/linux-*/bin/bwrap flags=(unconfined) {userns,}EOF@@ -224,10 +224,10 @@ The profile applies to whatever program is at that path, and you can write to th| Package | Description || --- | --- |-| `@lmliheng/penguin-cli` | Command-line tool that provides the `penguin` command |-| `@lmliheng/penguin-core` | SDK for creating agents and Sessions from code |-| `@lmliheng/penguin-server` | Web service, including the Web App assets |-| `@lmliheng/*` | The built-in plugins, one package each (Skills and session hooks); core loads them |+| `@adelie/cli` | Command-line tool that provides the `penguin` command |+| `@adelie/core` | SDK for creating agents and Sessions from code |+| `@adelie/server` | Web service, including the Web App assets |+| `@adelie/*` | The built-in plugins, one package each (Skills and session hooks); core loads them |All packages are published under the Apache-2.0 license.diff --git a/packages/docs/content/quickstart-cli.zh.md b/packages/docs/content/quickstart-cli.zh.mdindex cf4dce5d..71f0d2b1 100644--- a/packages/docs/content/quickstart-cli.zh.md+++ b/packages/docs/content/quickstart-cli.zh.md@@ -24,7 +24,7 @@ irm https://penguin.ooo/install.ps1 | iex``````bash tab="npm(任意平台)"-npm install -g @lmliheng/penguin-cli+npm install -g @adelie/cli```验证安装:@@ -198,7 +198,7 @@ Windows 上还有以下不同:### Ubuntu 上的沙盒-在 Linux 上打开沙盒会装上两个后端。`@lmliheng/penguin-plugin-sandbox-bwrap` 用 bubblewrap 约束命令,覆盖文件写入、网络与屏蔽路径;`@lmliheng/penguin-plugin-sandbox-dsh` 只约束文件写入,在 bubblewrap 无法运行的地方通过 Landlock 实施。两者都能用时,每条命令都由 bubblewrap 约束。+在 Linux 上打开沙盒会装上两个后端。`@adelie/sandbox-bwrap` 用 bubblewrap 约束命令,覆盖文件写入、网络与屏蔽路径;`@adelie/sandbox-dsh` 只约束文件写入,在 bubblewrap 无法运行的地方通过 Landlock 实施。两者都能用时,每条命令都由 bubblewrap 约束。Ubuntu 23.10 及以后的版本(包括默认的 Ubuntu 24.04)只把非特权 user namespace 交给带有相应 AppArmor profile 的程序(`kernel.apparmor_restrict_unprivileged_userns` 为 `1`),而 bubblewrap 需要它。桌面 `.deb` 会为应用装上这样一份 profile。安装脚本、npm 安装和 Release 压缩包都不以 root 运行,装不了 profile,所以在这些安装上 bubblewrap 被拒绝,沙盒改由 Landlock 实施,你无需做任何操作。[沙盒](/settings#沙盒)卡片会写明这一点:`本机实施:文件写入,由 Landlock (dsh-local) 实施。本机不实施:网络隔离、仅本机网络、屏蔽路径。`内置预设都不限制网络,因此全部可以实施。卡片会把设为「无网络」的预设显示为灰色;屏蔽路径会被拒绝,而不是以更弱的约束运行。这一行下方的**更多信息**会给出 bubblewrap 未启用的原因(`setting up uid map: Permission denied`)以及它尝试的 bwrap 路径。@@ -209,7 +209,7 @@ sudo tee /etc/apparmor.d/adelie-sandbox-bwrap >/dev/null <<'EOF'abi <abi/4.0>,include <tunables/global>-profile adelie-sandbox-bwrap @{HOME}/.adelie/**/plugins/node_modules/@lmliheng/penguin-plugin-sandbox-bwrap/vendor/linux-*/bin/bwrap flags=(unconfined) {+profile adelie-sandbox-bwrap @{HOME}/.adelie/**/plugins/node_modules/@adelie/sandbox-bwrap/vendor/linux-*/bin/bwrap flags=(unconfined) {userns,}EOF@@ -224,10 +224,10 @@ sudo apparmor_parser -r /etc/apparmor.d/adelie-sandbox-bwrap| 包 | 说明 || --- | --- |-| `@lmliheng/penguin-cli` | 命令行工具,提供 `penguin` 命令 |-| `@lmliheng/penguin-core` | SDK,用代码创建 Agent 与 Session |-| `@lmliheng/penguin-server` | Web 服务,含 Web App 的静态资源 |-| `@lmliheng/*` | 内置插件,每个插件一个包(Skill 与会话钩子),由 core 加载 |+| `@adelie/cli` | 命令行工具,提供 `penguin` 命令 |+| `@adelie/core` | SDK,用代码创建 Agent 与 Session |+| `@adelie/server` | Web 服务,含 Web App 的静态资源 |+| `@adelie/*` | 内置插件,每个插件一个包(Skill 与会话钩子),由 core 加载 |所有包均以 Apache-2.0 许可证发布。diff --git a/packages/docs/content/quickstart-sdk.en.md b/packages/docs/content/quickstart-sdk.en.mdindex 8a42770b..e75689ee 100644--- a/packages/docs/content/quickstart-sdk.en.md+++ b/packages/docs/content/quickstart-sdk.en.md@@ -1,9 +1,9 @@---title: SDK-description: Create agents and Sessions from your own TypeScript program with @lmliheng/penguin-core.+description: Create agents and Sessions from your own TypeScript program with @adelie/core.----`@lmliheng/penguin-core` is the same engine the CLI and the server run inside, and it embeds directly into your own program. On this page you install the SDK, make a model available to it, and run a first program that creates an agent, starts a Session and prints the model's replies.+`@adelie/core` is the same engine the CLI and the server run inside, and it embeds directly into your own program. On this page you install the SDK, make a model available to it, and run a first program that creates an agent, starts a Session and prints the model's replies.## Before you begin@@ -15,7 +15,7 @@ description: Create agents and Sessions from your own TypeScript program with @lIn your project directory, install the package:```bash-npm install @lmliheng/penguin-core+npm install @adelie/core```## Configure a model@@ -25,7 +25,7 @@ The SDK reads the same data root as the desktop app and the CLI, `~/.penguin/datIf this machine has no model configured yet, the shortest path is to install the CLI and configure one there:```bash-npm install -g @lmliheng/penguin-cli+npm install -g @adelie/clipenguin config model add --provider deepseek --model-id deepseek-flash --api-key sk-... --set-default```@@ -38,7 +38,7 @@ You can also keep credentials off disk entirely. When a model entry has no inlinSave this program in your project and run it:```ts-import { createAgent, isCompleteModelMessage, userText } from "@lmliheng/penguin-core";+import { createAgent, isCompleteModelMessage, userText } from "@adelie/core";const agent = await createAgent({ agentId: "default_agent" });const session = await agent.createSession({ workspaceDir: process.cwd() });diff --git a/packages/docs/content/quickstart-sdk.zh.md b/packages/docs/content/quickstart-sdk.zh.mdindex f133fe17..3c047a60 100644--- a/packages/docs/content/quickstart-sdk.zh.md+++ b/packages/docs/content/quickstart-sdk.zh.md@@ -1,9 +1,9 @@---title: SDK-description: 用 @lmliheng/penguin-core 在自己的 TypeScript 程序里创建 Agent 与 Session。+description: 用 @adelie/core 在自己的 TypeScript 程序里创建 Agent 与 Session。----`@lmliheng/penguin-core` 就是 CLI 与服务端内部运行的那个引擎,可以直接嵌入你自己的程序。在本页中,你会安装 SDK、为它准备可用的模型,并运行第一个程序:创建 Agent,启动 Session,打印模型的回复。+`@adelie/core` 就是 CLI 与服务端内部运行的那个引擎,可以直接嵌入你自己的程序。在本页中,你会安装 SDK、为它准备可用的模型,并运行第一个程序:创建 Agent,启动 Session,打印模型的回复。## 开始之前@@ -15,7 +15,7 @@ description: 用 @lmliheng/penguin-core 在自己的 TypeScript 程序里创建在项目目录里安装这个包:```bash-npm install @lmliheng/penguin-core+npm install @adelie/core```## 配置模型@@ -25,7 +25,7 @@ SDK 与桌面应用、CLI 读取同一个数据目录 `~/.penguin/data`。在[如果这台机器上还没有配置过模型,最省事的办法是装上 CLI,在 CLI 里配置一次:```bash-npm install -g @lmliheng/penguin-cli+npm install -g @adelie/clipenguin config model add --provider deepseek --model-id deepseek-flash --api-key sk-... --set-default```@@ -38,7 +38,7 @@ penguin config model add --provider deepseek --model-id deepseek-flash --api-key把下面的程序保存到项目里,然后运行:```ts-import { createAgent, isCompleteModelMessage, userText } from "@lmliheng/penguin-core";+import { createAgent, isCompleteModelMessage, userText } from "@adelie/core";const agent = await createAgent({ agentId: "default_agent" });const session = await agent.createSession({ workspaceDir: process.cwd() });diff --git a/packages/docs/content/server-api.en.md b/packages/docs/content/server-api.en.mdindex 13033f4c..f3f2ee24 100644--- a/packages/docs/content/server-api.en.md+++ b/packages/docs/content/server-api.en.md@@ -174,7 +174,7 @@ A settings group is a contribution to `PluginConfigProvider.groups`; the sandboxField types are `string`, `secret`, `boolean`, `number`, `enum` (with `options`) and `list` (one value per line, optional `maxItems`). A `number` may declare `minimum` and `maximum`, and a `string` or `list` a `pattern` (with `patternErrorMessage`) that every value or line must match. A field marked `advanced: true` is drawn in the card's Advanced fold, collapsed by default; it is stored and validated like any other. A field's `description` is what it means, drawn behind a "?" beside its title; its `hint` is the shape a value must take, shown under it. A `table` field has fixed `rows` and `columns` (`string`, `boolean` or `enum`, each with an optional `description` for its header's "?"), and may declare a `rowChoice` (a single choice of a row, stored in an `enum` field of the group, drawn as its title in brackets after the chosen row's name and picked from the row's "…" menu), a `pin` (a boolean column drawn as a pin toggle, with an `on` and `off` tooltip), a `columnGroup` (a header over adjacent columns) and `extensible` (rows may be added and reordered: stored under `"$added"` and `"$order"` beside the changed cells; only added rows may be deleted, and a row choice naming no row is refused). A row may carry a `description` and an `enum` option a `description`, both for the "?" after the row's name. A configuration may name a boolean field as its `switch`: while it is off, the card draws that field alone.-The sandbox's entry also carries `backend`: `installed` says whether a sandbox backend for this machine's OS is installed, and `recommended` lists the packages this OS defaults to, installed together (`@lmliheng/penguin-plugin-sandbox-bwrap` and `@lmliheng/penguin-plugin-sandbox-dsh` on Linux, `@lmliheng/penguin-plugin-sandbox-seatbelt` on macOS, `@lmliheng/penguin-plugin-sandbox-wsl` on Windows). Its first notice says what this machine enforces and by what; a notice may carry `details` (and `detailsZh`), shown collapsed under it — here, each installed backend that is not in use, with its reason. Its `enabled` switch decides whether new Sessions start confined, and `defaultPreset` (the presets table's `rowChoice`, drawn as "(Default)" after the row's name) names the row whose mode, network and approval mode they start from. A document saved before the switch existed reads it as on when its old policy confined anything (a mode other than Off, a network that is not open, or masked paths); one saved before the default preset (with its own `mode` or `network`, or masked paths, and no `defaultPreset`) keeps starting new Sessions by its own `mode` and `network` until an administrator picks a default. For such a document `values.defaultPreset` is the first row whose start is exactly that one, and a save pins it; when no row gives it (a network of `none` or `local`, or Off with masked paths), `defaultPreset` is absent, a notice says what is in effect, and a save of other fields writes no `defaultPreset`. Neither is rewritten on read. A table's `rowChoice` may name no row: a save is not refused for that, only for leaving it on a row the table no longer has. The chat defaults' `sandbox.defaultApprovalMode` is the default preset's approval mode while the switch is on.+The sandbox's entry also carries `backend`: `installed` says whether a sandbox backend for this machine's OS is installed, and `recommended` lists the packages this OS defaults to, installed together (`@adelie/sandbox-bwrap` and `@adelie/sandbox-dsh` on Linux, `@adelie/sandbox-seatbelt` on macOS, `@adelie/sandbox-wsl` on Windows). Its first notice says what this machine enforces and by what; a notice may carry `details` (and `detailsZh`), shown collapsed under it — here, each installed backend that is not in use, with its reason. Its `enabled` switch decides whether new Sessions start confined, and `defaultPreset` (the presets table's `rowChoice`, drawn as "(Default)" after the row's name) names the row whose mode, network and approval mode they start from. A document saved before the switch existed reads it as on when its old policy confined anything (a mode other than Off, a network that is not open, or masked paths); one saved before the default preset (with its own `mode` or `network`, or masked paths, and no `defaultPreset`) keeps starting new Sessions by its own `mode` and `network` until an administrator picks a default. For such a document `values.defaultPreset` is the first row whose start is exactly that one, and a save pins it; when no row gives it (a network of `none` or `local`, or Off with masked paths), `defaultPreset` is absent, a notice says what is in effect, and a save of other fields writes no `defaultPreset`. Neither is rewritten on read. A table's `rowChoice` may name no row: a save is not refused for that, only for leaving it on a row the table no longer has. The chat defaults' `sandbox.defaultApprovalMode` is the default preset's approval mode while the switch is on.On PUT, fields the request omits keep their value, `null` or `""` clears one, and a secret sent back as its mask keeps the stored value. A refused field returns `400` `plugin_config_invalid` naming it; a name no group answers to returns `404` `plugin_config_unknown`. The declaring module picks the change up itself, through its watch or at its next read, with no restart.@@ -1245,8 +1245,8 @@ The bundled Web App connects in this order:## Type Imports-All DTO types can be imported, type-only, from the server package's `@lmliheng/penguin-server/api` subpath:+All DTO types can be imported, type-only, from the server package's `@adelie/server/api` subpath:```ts-import type { ServerEvent, SessionInfo } from "@lmliheng/penguin-server/api";+import type { ServerEvent, SessionInfo } from "@adelie/server/api";```diff --git a/packages/docs/content/server-api.zh.md b/packages/docs/content/server-api.zh.mdindex 1c130ac8..7387adfc 100644--- a/packages/docs/content/server-api.zh.md+++ b/packages/docs/content/server-api.zh.md@@ -174,7 +174,7 @@ PUT 按如下规则校验:字段类型有 `string`、`secret`、`boolean`、`number`、`enum`(带 `options`)和 `list`(每行一个值,可选 `maxItems`)。`number` 可声明 `minimum` 与 `maximum`;`string` 与 `list` 可声明每个值或每一行都须匹配的 `pattern`(配 `patternErrorMessage`)。标记 `advanced: true` 的字段画在卡片默认折叠的「高级选项」里,存储与校验与其他字段相同。字段的 `description` 说明其含义,收在标题旁的「?」里;`hint` 是取值须符合的格式,显示在字段下方。`table` 字段有固定的 `rows` 与 `columns`(`string`、`boolean` 或 `enum`,各可带 `description`,用于列标题的「?」),并可声明 `rowChoice`(单选一行,存入该组的一个 `enum` 字段,画作被选行名称后带括号的标题,在该行的「…」菜单里选定)、`pin`(把一个布尔列画成图钉按钮,带 `on` 与 `off` 两种提示)、`columnGroup`(相邻几列上方的分组标题)与 `extensible`(可新增行并调整顺序,在改动的单元格旁存于 `"$added"` 与 `"$order"`;只有新增的行可删除,单选列不指向任何行的保存会被拒绝)。行可带 `description`,`enum` 的选项也可带 `description`,都用于行名称后的「?」。配置可把一个布尔字段声明为 `switch`:它关闭时,卡片只画这一个字段。-沙盒条目另带 `backend`:`installed` 表示是否装有适用于本机操作系统的沙盒后端,`recommended` 列出本系统默认一并安装的后端包(Linux 为 `@lmliheng/penguin-plugin-sandbox-bwrap` 与 `@lmliheng/penguin-plugin-sandbox-dsh`,macOS 为 `@lmliheng/penguin-plugin-sandbox-seatbelt`,Windows 为 `@lmliheng/penguin-plugin-sandbox-wsl`)。它的第一条提示写明本机实施什么、由什么实施;提示可以带 `details`(及 `detailsZh`),折叠显示在其下方——这里是每个已安装但未启用的后端及原因。其 `enabled` 开关决定新建 Session 是否进入沙盒,`defaultPreset`(预设表的 `rowChoice`,画作行名称后的「(默认)」)指定新 Session 取哪一行的封禁模式、网络与审批方式。开关出现之前保存的设置,旧策略有任何封禁(封禁模式不是「关闭」、网络不是完全开放,或设置了屏蔽路径)即视为打开;默认预设出现之前保存的设置(带自身的 `mode` 或 `network`、或设置了屏蔽路径,且没有 `defaultPreset`),新 Session 仍按其自身的 `mode` 与 `network` 开始,直到管理员选定默认行。对这类文档,`values.defaultPreset` 是起点与之完全相同的第一行,保存时写入它;没有这样的行时(网络为 `none` 或 `local`,或模式为关闭而设了屏蔽路径),`defaultPreset` 缺省,一条提示写明实际生效的值,保存别的字段也不写入 `defaultPreset`。读取时都不改写文档。表的 `rowChoice` 可以不指向任何一行:保存不因此被拒,只有让它指向表里已不存在的行时才被拒。chat defaults 的 `sandbox.defaultApprovalMode` 是开关打开时默认预设的审批方式。+沙盒条目另带 `backend`:`installed` 表示是否装有适用于本机操作系统的沙盒后端,`recommended` 列出本系统默认一并安装的后端包(Linux 为 `@adelie/sandbox-bwrap` 与 `@adelie/sandbox-dsh`,macOS 为 `@adelie/sandbox-seatbelt`,Windows 为 `@adelie/sandbox-wsl`)。它的第一条提示写明本机实施什么、由什么实施;提示可以带 `details`(及 `detailsZh`),折叠显示在其下方——这里是每个已安装但未启用的后端及原因。其 `enabled` 开关决定新建 Session 是否进入沙盒,`defaultPreset`(预设表的 `rowChoice`,画作行名称后的「(默认)」)指定新 Session 取哪一行的封禁模式、网络与审批方式。开关出现之前保存的设置,旧策略有任何封禁(封禁模式不是「关闭」、网络不是完全开放,或设置了屏蔽路径)即视为打开;默认预设出现之前保存的设置(带自身的 `mode` 或 `network`、或设置了屏蔽路径,且没有 `defaultPreset`),新 Session 仍按其自身的 `mode` 与 `network` 开始,直到管理员选定默认行。对这类文档,`values.defaultPreset` 是起点与之完全相同的第一行,保存时写入它;没有这样的行时(网络为 `none` 或 `local`,或模式为关闭而设了屏蔽路径),`defaultPreset` 缺省,一条提示写明实际生效的值,保存别的字段也不写入 `defaultPreset`。读取时都不改写文档。表的 `rowChoice` 可以不指向任何一行:保存不因此被拒,只有让它指向表里已不存在的行时才被拒。chat defaults 的 `sandbox.defaultApprovalMode` 是开关打开时默认预设的审批方式。PUT 时,请求省略的字段保持原值,`null` 或 `""` 清除该字段,密钥按掩码原样送回即保持存储值。被拒的字段返回 `400` `plugin_config_invalid` 并点名该字段;没有分组叫这个名字时返回 `404` `plugin_config_unknown`。声明它的模块自己经 watch 或下次读取拿到改动,无需重启。@@ -1245,8 +1245,8 @@ export type ServerEvent =## 类型导入-所有 DTO 类型都能以仅类型导入的方式,从服务器包的 `@lmliheng/penguin-server/api` 子路径引入:+所有 DTO 类型都能以仅类型导入的方式,从服务器包的 `@adelie/server/api` 子路径引入:```ts-import type { ServerEvent, SessionInfo } from "@lmliheng/penguin-server/api";+import type { ServerEvent, SessionInfo } from "@adelie/server/api";```diff --git a/packages/docs/content/server-boot.en.md b/packages/docs/content/server-boot.en.mdindex b83e7f85..05cf803d 100644--- a/packages/docs/content/server-boot.en.md+++ b/packages/docs/content/server-boot.en.md@@ -22,7 +22,7 @@ Four mechanisms start the server. All of them converge: the same env vars drive| Entry | Mechanism || --- | --- || Direct | `node dist/index.js` (`start` in `server/package.json`) |-| CLI (`penguin server` / `penguin web`) | Sets `PORT`/`HOST` and exports `PENGUIN_CLI_ENTRY`, then runs the server as a **supervised child process** that imports `@lmliheng/penguin-server` |+| CLI (`penguin server` / `penguin web`) | Sets `PORT`/`HOST` and exports `PENGUIN_CLI_ENTRY`, then runs the server as a **supervised child process** that imports `@adelie/server` || CLI auto-start | A CLI command that finds no running server spawns a detached `server` subcommand with `PORT=0` and attaches once the root's lock is live || Desktop | `utilityProcess.fork` launches a separate server process with the server's env injected |@@ -181,7 +181,7 @@ The plugin routes hand their edit to the re-assembly, which writes it in its own### The plugin contract-The plugin contract — `Plugin`, the decorators, and the sandbox vocabulary — is declared in the SDK at `@lmliheng/penguin-core/plugin`. `@lmliheng/penguin-server/plugin` exports the interfaces a plugin module may require (`Sandbox`, `Terminals`, `Sessions`, `AgentService`, `Messaging`, `Http`, …), types only.+The plugin contract — `Plugin`, the decorators, and the sandbox vocabulary — is declared in the SDK at `@adelie/core/plugin`. `@adelie/server/plugin` exports the interfaces a plugin module may require (`Sandbox`, `Terminals`, `Sessions`, `AgentService`, `Messaging`, `Http`, …), types only.The decorators are the SDK's only runtime a plugin carries. They record on the class itself, so the copy in a plugin's bundle and the host's read the same thing.@@ -196,14 +196,14 @@ Each subsystem's construction site and external surface. Step numbers ① to ⑫| Subsystem | Constructed | External surface || --- | --- | --- || Config | `config.ts` `resolveServerConfig` (②) | `ServerConfig`; its only post-listen mutation writes back the real port |-| Single-instance lock | `lock.ts` (③ pre-check, ④ acquire in the listen callback) | Package subpath `@lmliheng/penguin-server/lock`; the CLI and Desktop use it for pre-launch probing |+| Single-instance lock | `lock.ts` (③ pre-check, ④ acquire in the listen callback) | Package subpath `@adelie/server/lock`; the CLI and Desktop use it for pre-launch probing || Database | `db/database.ts` `openDatabase` (first step of ⑥) | Repo classes under `db/repos/*`; WAL, foreign keys, ordered versioned migrations (`db/migrations.ts`, stamped in `PRAGMA user_version`) || Auth | `auth/service.ts` — **App-level** (built per App); the process-scoped values (`auth/runtime-state.ts`, the local API token among them) are published in ⑥ | `/api/auth/*`, the cookie and Bearer-token `authMiddleware`, and authentication of terminal WS upgrades || Project / Session | `services/*` — **App-level** (assembled in create) | `/api/projects/**`, `/api/sessions/**` (route details in [Server API](/server-api)) || Agent runtime | `runtime/session-manager.ts` — **App-level** | Task / approval / abort / compact routes and SSE `GET /api/sessions/:sessionId/stream`; delegates to core via `createAgent` || Events | `runtime/channel.ts` `ChannelHub` (⑥, process-level; SSE streams survive swaps) | User-level SSE `GET /api/events`; the `ServerEvent` type family || Scheduler | `runtime/scheduler.ts` — **App-level** (started/stopped by create) | The schedules routes; publishes results into the ChannelHub |-| HMR host / platform | `@lmliheng/penguin-hmr` (`HmrHost`, `hmrMain`) and `hmr/platform.ts` (the platform) | `PlatformApi` (`info` / `log` / `http` / `terminals` / `attachStream` / `business` / `shutdown` / `drained`, plus the kernel's `park`); `/api/hmr/*`, including `POST /api/hmr/upgrade`, is a route group the platform contributes — a pushed generation that does not serve it is refused before commit |+| HMR host / platform | `@adelie/hmr` (`HmrHost`, `hmrMain`) and `hmr/platform.ts` (the platform) | `PlatformApi` (`info` / `log` / `http` / `terminals` / `attachStream` / `business` / `shutdown` / `drained`, plus the kernel's `park`); `/api/hmr/*`, including `POST /api/hmr/upgrade`, is a route group the platform contributes — a pushed generation that does not serve it is refused before commit || Terminals | `terminal/` — **App-level** | `/api/terminals*` route group, WS `GET /api/terminals/:id/stream`; ptys are parked and survive swaps || Plugin host | built by each App's `create()` and registered at its commit for the next App to reuse; ⑤ `loadPlugins` publishes one in ⑥ for platforms that predate this | an npm package: its generated `ifaces.json` (the module payload), a default export `{ modules?: [<class>, …], replaces?: [<class>, …] }`; the configuration surface is the `[plugins]` table of each Project's `.project_config.toml`, written through `/api/projects/:projectId/plugins/installed` || Sandbox | `sandbox/service.ts` — **App-level** (a module; backends contribute to its `providers` slot) | a `SandboxModule.providers` contribution from a plugin module; enforcement reaches commands and hook scripts through core's spawn seam, and the Session's policy reaches the file tools through core's `sandboxPolicy` seam |diff --git a/packages/docs/content/server-boot.zh.md b/packages/docs/content/server-boot.zh.mdindex 1bc50e54..bbc28c10 100644--- a/packages/docs/content/server-boot.zh.md+++ b/packages/docs/content/server-boot.zh.md@@ -22,7 +22,7 @@ description: 从进程入口到 App 开始服务的组装顺序、各子系统| 入口 | 机制 || --- | --- || 直接运行 | `node dist/index.js`(`server/package.json` 里的 `start`) |-| CLI(`penguin server` / `penguin web`) | 设好 `PORT`/`HOST` 并导出 `PENGUIN_CLI_ENTRY`,然后以**受监管的子进程**运行 Server,由子进程导入 `@lmliheng/penguin-server` |+| CLI(`penguin server` / `penguin web`) | 设好 `PORT`/`HOST` 并导出 `PENGUIN_CLI_ENTRY`,然后以**受监管的子进程**运行 Server,由子进程导入 `@adelie/server` || CLI 自动启动 | CLI 命令发现没有运行中的 Server 时,以 `PORT=0` 派生一个分离的 `server` 子命令,等数据根的锁生效后再接入 || 桌面应用 | `utilityProcess.fork` 拉起一个**独立**的 Server 进程,并注入它需要的环境变量 |@@ -181,7 +181,7 @@ createInner### 插件契约-插件契约(`Plugin`、各装饰器,以及沙箱词汇表)声明在 SDK 里,即 `@lmliheng/penguin-core/plugin`;`@lmliheng/penguin-server/plugin` 导出插件模块可以 require 的接口(`Sandbox`、`Terminals`、`Sessions`、`AgentService`、`Messaging`、`Http` 等),只有类型。+插件契约(`Plugin`、各装饰器,以及沙箱词汇表)声明在 SDK 里,即 `@adelie/core/plugin`;`@adelie/server/plugin` 导出插件模块可以 require 的接口(`Sandbox`、`Terminals`、`Sessions`、`AgentService`、`Messaging`、`Http` 等),只有类型。装饰器是插件随身携带的唯一一段 SDK 运行时。它们把记录写在类自身上,所以插件 bundle 里的那份和宿主读到的是同一样东西。@@ -196,14 +196,14 @@ createInner| 子系统 | 构建位置 | 对外表面 || --- | --- | --- || 配置 | `config.ts` 的 `resolveServerConfig`(②) | `ServerConfig`;监听后唯一一次改写是回填真实端口 |-| 单实例锁 | `lock.ts`(③ 预检,④ 在监听回调中取锁) | 包子路径 `@lmliheng/penguin-server/lock`;CLI 与桌面应用用它做启动前探测 |+| 单实例锁 | `lock.ts`(③ 预检,④ 在监听回调中取锁) | 包子路径 `@adelie/server/lock`;CLI 与桌面应用用它做启动前探测 || 数据库 | `db/database.ts` 的 `openDatabase`(⑥ 首步) | `db/repos/*` 仓储类;WAL、外键、按版本顺序执行的迁移(`db/migrations.ts`,版本记在 `PRAGMA user_version`) || 认证 | `auth/service.ts`——**App 级**(每个 App 各建一份);进程级的值(`auth/runtime-state.ts`,含本地 API token)在 ⑥ 发布 | `/api/auth/*`、支持 cookie 与 Bearer token 的 `authMiddleware`、终端 WS 升级的鉴权 || Project / Session | `services/*`——**App 级**(在 create 内组装) | `/api/projects/**`、`/api/sessions/**`(路由细目见 [Server API](/server-api)) || Agent 运行时 | `runtime/session-manager.ts`——**App 级** | 任务 / 审批 / 中止 / 压缩路由与 SSE `GET /api/sessions/:sessionId/stream`;内部经 `createAgent` 委托给 core || 事件 | `runtime/channel.ts` 的 `ChannelHub`(⑥,进程级;SSE 流跨热替换存活) | 用户级 SSE `GET /api/events`;`ServerEvent` 类型族 || Scheduler | `runtime/scheduler.ts`——**App 级**(随 create 启停) | schedules 路由;执行结果发布进 ChannelHub |-| HMR 宿主 / 平台 | `@lmliheng/penguin-hmr`(`HmrHost`、`hmrMain`)与 `hmr/platform.ts`(平台) | `PlatformApi`(`info` / `log` / `http` / `terminals` / `attachStream` / `business` / `shutdown` / `drained`,外加内核的 `park`);`/api/hmr/*`(含 `POST /api/hmr/upgrade`)是平台贡献的路由组,推送的新一代若不提供这组路由,会在提交前被拒 |+| HMR 宿主 / 平台 | `@adelie/hmr`(`HmrHost`、`hmrMain`)与 `hmr/platform.ts`(平台) | `PlatformApi`(`info` / `log` / `http` / `terminals` / `attachStream` / `business` / `shutdown` / `drained`,外加内核的 `park`);`/api/hmr/*`(含 `POST /api/hmr/upgrade`)是平台贡献的路由组,推送的新一代若不提供这组路由,会在提交前被拒 || 终端 | `terminal/`——**App 级** | `/api/terminals*` 路由组、WS `GET /api/terminals/:id/stream`;pty 寄存在注册表中,跨热替换存活 || 插件宿主 | 每个 App 的 `create()` 构建,在提交时登记进注册表供下一个 App 复用;⑤ `loadPlugins` 为早于这一改动的平台构建一份,在 ⑥ 发布 | 一个 npm 包:生成的 `ifaces.json`(模块载荷)、默认导出 `{ modules?: [<class>, …], replaces?: [<class>, …] }`;配置面是各 Project 的 `.project_config.toml` 中的 `[plugins]` 表,经 `/api/projects/:projectId/plugins/installed` 写入 || 沙箱 | `sandbox/service.ts`——**App 级**(一个模块;后端向它的 `providers` 槽位投递) | 插件模块向 `SandboxModule.providers` 投递的一条 contribution;约束经 core 的 spawn 接缝落到命令与钩子脚本上,Session 的策略经 core 的 `sandboxPolicy` 接缝交给文件工具 |diff --git a/packages/docs/content/skills.en.md b/packages/docs/content/skills.en.mdindex 42c1eb90..6f10ae36 100644--- a/packages/docs/content/skills.en.md+++ b/packages/docs/content/skills.en.md@@ -269,7 +269,7 @@ plugins/<plugin>/- A plugin built around someone else's product carries a `use-` prefix (`use-firecrawl`), so the name says what it is for rather than claiming the product.- Versions are compared by date, then by sequence number: `2026.08.29.10` follows `2026.08.29.9`.- The manifest's `version` is the version of everything the plugin ships. It is separate from the package's npm version, which follows the release. There is no other version scheme.-- Every plugin is its own npm package, `@lmliheng/<name>`, at `plugins/<name>/` in the repository. The loader in `@lmliheng/penguin-core` reads the plugin names from the host package's dependency list and resolves each package through Node. The desktop app declares the same packages as dependencies, and its installer packs them. At runtime the plugin files are the source of truth for library content and are read on every call.+- Every plugin is its own npm package, `@adelie/<name>`, at `plugins/<name>/` in the repository. The loader in `@adelie/core` reads the plugin names from the host package's dependency list and resolves each package through Node. The desktop app declares the same packages as dependencies, and its installer packs them. At runtime the plugin files are the source of truth for library content and are read on every call.### Skill file formatdiff --git a/packages/docs/content/skills.zh.md b/packages/docs/content/skills.zh.mdindex d63ee2f9..e7e50cbd 100644--- a/packages/docs/content/skills.zh.md+++ b/packages/docs/content/skills.zh.md@@ -269,7 +269,7 @@ plugins/<plugin>/- 围绕他人产品打造的插件带 `use-` 前缀(如 `use-firecrawl`),名称只表明用途,而不冒充产品本身。- 版本先按日期比较,再按序号比较:`2026.08.29.10` 排在 `2026.08.29.9` 之后。- 清单里的 `version` 是插件所含全部内容的版本,与 npm 包版本相互独立;npm 版本跟随产品发布。除此之外没有其他版本方案。-- 每个插件都是一个独立的 npm 包 `@lmliheng/<name>`,位于仓库的 `plugins/<name>/`。`@lmliheng/penguin-core` 中的加载器从宿主包的依赖列表读取插件名,并通过 Node 解析各个包。桌面应用把同样的包声明为依赖,安装器会将它们打包。运行时,插件文件就是插件库内容的唯一事实来源,每次调用都直接读取。+- 每个插件都是一个独立的 npm 包 `@adelie/<name>`,位于仓库的 `plugins/<name>/`。`@adelie/core` 中的加载器从宿主包的依赖列表读取插件名,并通过 Node 解析各个包。桌面应用把同样的包声明为依赖,安装器会将它们打包。运行时,插件文件就是插件库内容的唯一事实来源,每次调用都直接读取。### Skill 文件格式diff --git a/packages/docs/package.json b/packages/docs/package.jsonindex bc3966cf..85daa332 100644--- a/packages/docs/package.json+++ b/packages/docs/package.json@@ -1,5 +1,5 @@{- "name": "@lmliheng/penguin-docs",+ "name": "@adelie/docs","version": "0.4.2","private": true,"type": "module",diff --git a/packages/hmr/README.md b/packages/hmr/README.mdindex 9d108224..c5d315a8 100644--- a/packages/hmr/README.md+++ b/packages/hmr/README.md@@ -1,4 +1,4 @@-# @lmliheng/penguin-hmr — the HMR layer's mechanism, and nothing else+# @adelie/hmr — the HMR layer's mechanism, and nothing elseThis package is the hot-update **mechanism**: the version store, the atomic `harness.json`commit, the resource registry live objects ride across a swap in, and the park → boot → swapdiff --git a/packages/hmr/package.json b/packages/hmr/package.jsonindex b1d07616..b3535254 100644--- a/packages/hmr/package.json+++ b/packages/hmr/package.json@@ -1,5 +1,5 @@{- "name": "@lmliheng/penguin-hmr",+ "name": "@adelie/hmr","version": "0.4.2","private": true,"type": "module",@@ -32,7 +32,7 @@"build": "tsup"},"dependencies": {- "@lmliheng/penguin-core": "workspace:*"+ "@adelie/core": "workspace:*"},"devDependencies": {"tsup": "^8.3.0",diff --git a/packages/hmr/src/host.ts b/packages/hmr/src/host.tsindex 5c0408c0..2119ae7e 100644--- a/packages/hmr/src/host.ts+++ b/packages/hmr/src/host.ts@@ -70,8 +70,8 @@ import fsp from "node:fs/promises";import path from "node:path";import zlib from "node:zlib";import { pathToFileURL } from "node:url";-import type { Instance, Json, AnyIface, AnyImpl, Park } from "@lmliheng/penguin-core/kernel";-import { boot, initialDoc, upgrade } from "@lmliheng/penguin-core/kernel";+import type { Instance, Json, AnyIface, AnyImpl, Park } from "@adelie/core/kernel";+import { boot, initialDoc, upgrade } from "@adelie/core/kernel";import { HotResources } from "./resources.js";import type { Manifest } from "./manifest.js";import { MATERIALIZED } from "./manifest.js";diff --git a/packages/hmr/src/index.ts b/packages/hmr/src/index.tsindex 295d5451..abb88c9a 100644--- a/packages/hmr/src/index.ts+++ b/packages/hmr/src/index.ts@@ -1,5 +1,5 @@/**- * @lmliheng/penguin-hmr — the hot-update MECHANISM, and nothing else.+ * @adelie/hmr — the hot-update MECHANISM, and nothing else.** What a deployment does is not in this package and must never be: see README.md, which* states the rule and the reason it is enforced by a package boundary rather than bydiff --git a/packages/hmr/src/main.ts b/packages/hmr/src/main.tsindex cc563fed..143e5a13 100644--- a/packages/hmr/src/main.ts+++ b/packages/hmr/src/main.ts@@ -17,7 +17,7 @@* be built over it while the first generation is still coming up.*/import zlib from "node:zlib";-import type { Instance, Park } from "@lmliheng/penguin-core/kernel";+import type { Instance, Park } from "@adelie/core/kernel";import type { HmrHost, UpgradeAllTarget, UpgradeOutcome } from "./host.js";import { isBlobName } from "./host.js";diff --git a/packages/hmr/src/manifest.ts b/packages/hmr/src/manifest.tsindex 4e3b06f1..3a02029c 100644--- a/packages/hmr/src/manifest.ts+++ b/packages/hmr/src/manifest.ts@@ -19,7 +19,7 @@import fs from "node:fs";import fsp from "node:fs/promises";import path from "node:path";-import type { HarnessInfo } from "@lmliheng/penguin-core";+import type { HarnessInfo } from "@adelie/core";/*** The committed on-disk record: a runtime restart resumes exactly this CODE (platform,diff --git a/packages/hmr/src/resources.ts b/packages/hmr/src/resources.tsindex c38905b9..3b79f83c 100644--- a/packages/hmr/src/resources.ts+++ b/packages/hmr/src/resources.ts@@ -12,7 +12,7 @@* have it shut down at process exit. Spawning anything — a shell, a pty, a connection —* is the platform's business and lives there.*/-import type { Resources } from "@lmliheng/penguin-core/kernel";+import type { Resources } from "@adelie/core/kernel";export class HotResources implements Resources {private readonly map = new Map<string, { resource: unknown; dispose?: () => void }>();diff --git a/packages/server/README.md b/packages/server/README.mdindex 4892e0a0..5577c0a8 100644--- a/packages/server/README.md+++ b/packages/server/README.md@@ -1,6 +1,6 @@-# @lmliheng/penguin-server+# @adelie/server-The Adelie Web backend — the Web implementation of the SDK's Human boundary. HTTP carries Prompt input, approvals and interrupts; Server-Sent Events stream the OmniMessage output. Adds multi-user auth, Project authorization, Session runtime, scheduling and usage accounting on top of `@lmliheng/penguin-core`.+The Adelie Web backend — the Web implementation of the SDK's Human boundary. HTTP carries Prompt input, approvals and interrupts; Server-Sent Events stream the OmniMessage output. Adds multi-user auth, Project authorization, Session runtime, scheduling and usage accounting on top of `@adelie/core`.## Architecture@@ -11,7 +11,7 @@ The Adelie Web backend — the Web implementation of the SDK's Human boundary. H- **Usage**: `token_usage` events are persisted row by row; costs are computed at query time from current per-model pricing.- **Terminals**: `src/terminal/` runs pty sessions server-side (node-pty) and feeds every byte into a headless xterm, so the daemon — not the browser — owns the screen. Control is JSON over HTTP (`/api/terminals`: list / create / capture / keys / kill; create accepts `cwd`, `name`, `cols`/`rows` and a `shell` override); the byte stream is a binary WebSocket at `/api/terminals/:id/stream` (`[opcode, slot, payload]`, output coalesced into ~5ms windows with an immediate leading flush). On attach the server renders the current grid back into an ANSI restore stream, so a reload or a second device rebuilds the exact screen — scrollback, colours, cursor and DEC input modes — while the shell keeps running the whole time. The web app surfaces this twice: an in-app dock (Ctrl+` , Codex-style) and the standalone `/terminal` page (`?id=` attaches an existing terminal — the dock's detach handoff — `?cwd=`/`?name=` parameterize a new one). Sessions run in-process (no forked terminal worker); this module is the only thing touching node-pty, which is where that split would go if load ever demands it.-The full route tables and the SSE protocol are documented in the [Server API reference](https://penguin.ooo/docs/server-api). DTO types are exported for type-only import via `@lmliheng/penguin-server/api`.+The full route tables and the SSE protocol are documented in the [Server API reference](https://penguin.ooo/docs/server-api). DTO types are exported for type-only import via `@adelie/server/api`.## Environment@@ -34,9 +34,9 @@ older launcher script), so both names are accepted while those writers move over## Running```bash-pnpm --filter @lmliheng/penguin-server dev # tsx watch (front end via the Vite dev proxy)-pnpm --filter @lmliheng/penguin-server build # tsup → dist/-pnpm --filter @lmliheng/penguin-server start # node dist/index.js+pnpm --filter @adelie/server dev # tsx watch (front end via the Vite dev proxy)+pnpm --filter @adelie/server build # tsup → dist/+pnpm --filter @adelie/server start # node dist/index.js````pnpm typecheck / test` run tsc and vitest (tests use a temp root + in-memory DB; no ports, no live LLM calls).diff --git a/packages/server/package.json b/packages/server/package.jsonindex ba2ff213..ad1a948e 100644--- a/packages/server/package.json+++ b/packages/server/package.json@@ -1,8 +1,8 @@{- "name": "@lmliheng/penguin-server",+ "name": "@adelie/server","version": "0.4.2","type": "module",- "description": "Adelie web server: multi-user authentication and authorization, Session execution with SSE streaming, and usage accounting, built on @lmliheng/penguin-core.",+ "description": "Adelie web server: multi-user authentication and authorization, Session execution with SSE streaming, and usage accounting, built on @adelie/core.","license": "Apache-2.0","repository": {"type": "git",@@ -71,8 +71,8 @@"dependencies": {"@hono/node-server": "^2.0.5","@larksuiteoapi/node-sdk": "^1.73.0",- "@lmliheng/amsp": "workspace:*",- "@lmliheng/penguin-core": "workspace:*",+ "@adelie/amsp": "workspace:*",+ "@adelie/core": "workspace:*","@xterm/headless": "^5.5.0","dotenv": "^17.0.0","fflate": "^0.8.3",@@ -89,7 +89,7 @@"yaml": "^2.5.0"},"devDependencies": {- "@lmliheng/penguin-hmr": "workspace:*",+ "@adelie/hmr": "workspace:*","@types/mdast": "^4.0.4","@types/node": "^24.0.0","@types/ws": "^8.18.1",diff --git a/packages/server/src/amsp/gate.ts b/packages/server/src/amsp/gate.tsindex 7aab43d4..2731f291 100644--- a/packages/server/src/amsp/gate.ts+++ b/packages/server/src/amsp/gate.ts@@ -17,7 +17,7 @@* The first two checks are also the API tab's try route's (try-route.ts), which stands the* owner's sign-in where the key would be.*/-import { isValidId } from "@lmliheng/penguin-core";+import { isValidId } from "@adelie/core";import type { MiddlewareHandler } from "hono";import type { AppEnv } from "../auth/middleware.js";import { bearerToken } from "../auth/middleware.js";diff --git a/packages/server/src/amsp/module.ts b/packages/server/src/amsp/module.tsindex d376c9a5..11e64a61 100644--- a/packages/server/src/amsp/module.ts+++ b/packages/server/src/amsp/module.ts@@ -11,7 +11,7 @@* runs the public group's handler with the same dependencies. Its order, one below the tab's* group, only fixes the mount order: that group has no catch-all to shadow it.*/-import { Bind, Component, Module, Use } from "@lmliheng/penguin-core/kernel";+import { Bind, Component, Module, Use } from "@adelie/core/kernel";import type { Hono } from "hono";import type { AppEnv } from "../auth/middleware.js";import { AgentApiRepo } from "../db/repos/agent-api.js";diff --git a/packages/server/src/amsp/routes.ts b/packages/server/src/amsp/routes.tsindex af1d98ae..b02308bd 100644--- a/packages/server/src/amsp/routes.ts+++ b/packages/server/src/amsp/routes.ts@@ -18,7 +18,7 @@* handler for the Project owner's sign-in in place of a key.*/import { Hono } from "hono";-import type { AgentResponse, SessionResponse } from "@lmliheng/amsp";+import type { AgentResponse, SessionResponse } from "@adelie/amsp";import type { AppEnv } from "../auth/middleware.js";import { HttpError } from "../http/errors.js";import { readJson, requireEnum } from "../http/validate.js";diff --git a/packages/server/src/amsp/run-stream.ts b/packages/server/src/amsp/run-stream.tsindex 046944a5..677a1247 100644--- a/packages/server/src/amsp/run-stream.ts+++ b/packages/server/src/amsp/run-stream.ts@@ -20,9 +20,9 @@* and an approval asked of a caller that went away would never be answered. A server failure* that ends the stream aborts it for the same reason.*/-import { imageUrlMessage, isValidId, userText } from "@lmliheng/penguin-core";-import type { OmniMessage } from "@lmliheng/penguin-core";-import type { AmspEvent, RunStarted } from "@lmliheng/amsp";+import { imageUrlMessage, isValidId, userText } from "@adelie/core";+import type { OmniMessage } from "@adelie/core";+import type { AmspEvent, RunStarted } from "@adelie/amsp";import type { Context } from "hono";import { streamSSE } from "hono/streaming";import type { ApprovalMode } from "../api/types.js";diff --git a/packages/server/src/amsp/translate.ts b/packages/server/src/amsp/translate.tsindex 87451613..ed57a9c0 100644--- a/packages/server/src/amsp/translate.ts+++ b/packages/server/src/amsp/translate.ts@@ -57,8 +57,8 @@ import type {ToolCallOutputPayload,ToolCallPayload,ToolListReadyPayload,-} from "@lmliheng/penguin-core";-import type { AmspError, AmspEvent, RunDone, StopReason, TokenCounts } from "@lmliheng/amsp";+} from "@adelie/core";+import type { AmspError, AmspEvent, RunDone, StopReason, TokenCounts } from "@adelie/amsp";import type { ServerEvent } from "../api/types.js";import type { ChannelEvent } from "../runtime/channel.js";diff --git a/packages/server/src/api/types.ts b/packages/server/src/api/types.tsindex 5ce5427e..618904c2 100644--- a/packages/server/src/api/types.ts+++ b/packages/server/src/api/types.ts@@ -18,15 +18,15 @@ import type {OmniMessage,SessionSource,ToolCallPayload,-} from "@lmliheng/penguin-core/omnimessage";+} from "@adelie/core/omnimessage";import type {MCPServerConfig,ThinkingLevelName,ToolDefinitionConfig,-} from "@lmliheng/penguin-core/interfaces";+} from "@adelie/core/interfaces";// Build/harness identity is not an interface contract — it ships from the barrel (core's version-info.ts).-import type { HarnessInfo, VersionReport, HarnessHistory } from "@lmliheng/penguin-core";-import type { IfacesDiff } from "@lmliheng/penguin-hmr";+import type { HarnessInfo, VersionReport, HarnessHistory } from "@adelie/core";+import type { IfacesDiff } from "@adelie/hmr";import type { WorkflowInfo } from "../mechanisms/workflows.js";// ---------------------------------------------------------------------------@@ -312,7 +312,7 @@ export interface ServerSettingsResponse {** **This is a report and nothing else.** Producing it moves no file and deletes none, and* nothing in the API can execute a cleanup on the strength of a stale report: the class,- * rule and reference vocabulary is shared with `@lmliheng/penguin-core`'s storage ledger+ * rule and reference vocabulary is shared with `@adelie/core`'s storage ledger* (its `storage.ts` is where the rules are defined), and the DTO is spelled out here* rather than imported because this file is the Web contract and takes types from core's* pure subpaths only.@@ -1626,7 +1626,7 @@ export interface AgentConfigUpdateRequest {// ---------------------------------------------------------------------------// Agent API (/api/projects/:projectId/agents/:agentId/api; the stream itself is AMSP,-// /api/amsp/v1, whose snake_case wire types live in @lmliheng/amsp)+// /api/amsp/v1, whose snake_case wire types live in @adelie/amsp)// ---------------------------------------------------------------------------/** One API key of an Agent, as listed: the secret itself is shown once, at creation, and never again. */@@ -4387,7 +4387,7 @@ export interface HookItem {/*** Where a library plugin comes from: `builtin` = shipped with the build (the- * `@lmliheng/*` packages under the repo's `plugins/`), `user` = installed by an operator+ * `@adelie/*` packages under the repo's `plugins/`), `user` = installed by an operator* into the user plugin directory (a remote download or a local upload), which is the only kind* the library can also delete again.*/@@ -4611,7 +4611,7 @@ export interface PluginReadmeResponse {*/export type VersionResponse = VersionReport;-export type { HarnessHistoryEntry, IfacesSummary } from "@lmliheng/penguin-core";+export type { HarnessHistoryEntry, IfacesSummary } from "@adelie/core";export type {WorkflowInfo,WorkflowVersion,@@ -4630,7 +4630,7 @@ export interface VersionRollbackResponse {/** GET /api/version/history/diff?from=&to=: what changed between two stored interface tables. */export type VersionHistoryDiffResponse = IfacesDiff;-export type { IfaceChange, IfacesDiff, MemberChange, ModuleChange } from "@lmliheng/penguin-hmr";+export type { IfaceChange, IfacesDiff, MemberChange, ModuleChange } from "@adelie/hmr";/*** GET /api/version/update-check: newest published release vs the running version.diff --git a/packages/server/src/app.ts b/packages/server/src/app.tsindex c3a1bf1f..d25ceedb 100644--- a/packages/server/src/app.ts+++ b/packages/server/src/app.ts@@ -24,7 +24,7 @@ import type { HttpBindings } from "@hono/node-server";import { bodyLimit } from "hono/body-limit";import { bodyLimitBytes, toAttachmentLimits } from "./services/attachment-limits.js";import type { DatabaseSync } from "node:sqlite";-import type { ModuleTree } from "@lmliheng/penguin-core/kernel";+import type { ModuleTree } from "@adelie/core/kernel";import type { ServerConfig } from "./config.js";import { applyProxySettings, mergedNoProxy } from "./net/proxy.js";import {@@ -120,8 +120,8 @@ import { UpdateCheckService } from "./services/update-check-service.js";import { UpdateJobService } from "./services/update-job.js";import { UsageService } from "./services/usage-service.js";import { WorkspaceFilesService } from "./services/workspace-files-service.js";-import { HmrHost, hmrControl } from "@lmliheng/penguin-hmr";-import type { Hmr } from "@lmliheng/penguin-hmr";+import { HmrHost, hmrControl } from "@adelie/hmr";+import type { Hmr } from "@adelie/hmr";import type { PlatformApi, ServerHmrHost } from "./hmr/platform.js";import { packagedPlatform } from "./hmr/platform.js";import { platformHttpSeam } from "./hmr/http-seam.js";@@ -133,7 +133,7 @@ import {} from "./services/preview-token.js";import type { PreviewTokenSigner } from "./services/preview-token.js";-import type { ControlEnvContext, ProxyEnvPolicy, SpawnConfiner } from "@lmliheng/penguin-core";+import type { ControlEnvContext, ProxyEnvPolicy, SpawnConfiner } from "@adelie/core";import { declined } from "./hmr/hono-seam.js";import { AgentsRepo } from "./db/repos/agents.js";import { MembersRepo } from "./db/repos/members.js";@@ -172,7 +172,7 @@ import { machinesRoutes } from "./http/routes/machines.js";import { UsageRecorder } from "./runtime/usage-recorder.js";import { previewRoutes } from "./http/routes/preview.js";import { MachinesService } from "./machines/service.js";-import { wire } from "@lmliheng/penguin-core/kernel";+import { wire } from "@adelie/core/kernel";import type { Settings } from "./mechanisms/settings.js";import type { Errors } from "./mechanisms/observability.js";import type { Access } from "./mechanisms/projects.js";diff --git a/packages/server/src/auth-token.ts b/packages/server/src/auth-token.tsindex 2bce5b91..d2465eb0 100644--- a/packages/server/src/auth-token.ts+++ b/packages/server/src/auth-token.ts@@ -10,7 +10,7 @@ import { openExistingDatabase } from "./db/database.js";import { AuthSessionsRepo } from "./db/repos/auth-sessions.js";import type { SessionViaValue } from "./db/repos/auth-sessions.js";import { UsersRepo } from "./db/repos/users.js";-import { wire } from "@lmliheng/penguin-core/kernel";+import { wire } from "@adelie/core/kernel";/** An hour: long enough for a controller to finish, short enough to forget. */export const CLI_TOKEN_TTL_MS = 60 * 60_000;diff --git a/packages/server/src/auth/live-streams.ts b/packages/server/src/auth/live-streams.tsindex e2c87ac8..7c230a0f 100644--- a/packages/server/src/auth/live-streams.ts+++ b/packages/server/src/auth/live-streams.ts@@ -18,7 +18,7 @@* opened by the previous generation are no longer listed here — their own heartbeat is what* ends them, on the same schedule as any other.*/-import { Component, Interface } from "@lmliheng/penguin-core/kernel";+import { Component, Interface } from "@adelie/core/kernel";/** LiveStreams: the mechanism LiveStreamRegistry implements. */@Interface()diff --git a/packages/server/src/auth/password.ts b/packages/server/src/auth/password.tsindex 14de0e1c..2f3923f7 100644--- a/packages/server/src/auth/password.ts+++ b/packages/server/src/auth/password.ts@@ -1,4 +1,4 @@-import { Component, Interface } from "@lmliheng/penguin-core/kernel";+import { Component, Interface } from "@adelie/core/kernel";/*** Password hashing (slow-hash storage).*diff --git a/packages/server/src/auth/service.ts b/packages/server/src/auth/service.tsindex 8096bba1..5fb9ffc5 100644--- a/packages/server/src/auth/service.ts+++ b/packages/server/src/auth/service.ts@@ -16,7 +16,7 @@ import type { SessionViaValue, AuthSessionsRepo } from "../db/repos/auth-sessionimport type { AuthRuntimeState } from "./runtime-state.js";import { verifyAccountPassword, verifyPassword } from "./password.js";import type { PasswordHasher } from "./password.js";-import { Component, Use, Interface } from "@lmliheng/penguin-core/kernel";+import { Component, Use, Interface } from "@adelie/core/kernel";import type { AuthState, Clock, Config } from "../hmr/capabilities.js";import type { Auth, AuthSessions, Users } from "../mechanisms/identity.js";diff --git a/packages/server/src/builtin-browser/history.ts b/packages/server/src/builtin-browser/history.tsindex d7a77bce..1ef2dbb6 100644--- a/packages/server/src/builtin-browser/history.ts+++ b/packages/server/src/builtin-browser/history.ts@@ -12,7 +12,7 @@*/import fs from "node:fs";import path from "node:path";-import { atomicWriteFile } from "@lmliheng/penguin-core";+import { atomicWriteFile } from "@adelie/core";import type { BuiltinBrowserHistoryEntry, BuiltinBrowserTab } from "../api/types.js";/** The most entries the file keeps. */diff --git a/packages/server/src/builtin-browser/module.ts b/packages/server/src/builtin-browser/module.tsindex 3f84e75c..9f46cd60 100644--- a/packages/server/src/builtin-browser/module.ts+++ b/packages/server/src/builtin-browser/module.ts@@ -11,8 +11,8 @@* UI events go to every admin who has the event stream open; the browser is the admin's tool* (see routes.ts), and a channel nobody listens on is not opened for it.*/-import { Bind, Component, Interface, Module, Use } from "@lmliheng/penguin-core/kernel";-import type { ClassCtx, Opaque } from "@lmliheng/penguin-core/kernel";+import { Bind, Component, Interface, Module, Use } from "@adelie/core/kernel";+import type { ClassCtx, Opaque } from "@adelie/core/kernel";import type { Hono } from "hono";import type { AppEnv } from "../auth/middleware.js";import type { Channels, Desktop, Log, Paths } from "../hmr/capabilities.js";diff --git a/packages/server/src/builtin-browser/settings.ts b/packages/server/src/builtin-browser/settings.tsindex cbdfd168..e602d5a8 100644--- a/packages/server/src/builtin-browser/settings.ts+++ b/packages/server/src/builtin-browser/settings.ts@@ -9,7 +9,7 @@*/import fs from "node:fs";import path from "node:path";-import { atomicWriteFile } from "@lmliheng/penguin-core";+import { atomicWriteFile } from "@adelie/core";import type { BuiltinBrowserSettings } from "../api/types.js";export function settingsFile(root: string): string {diff --git a/packages/server/src/config.ts b/packages/server/src/config.tsindex ef1aa31a..0b95c496 100644--- a/packages/server/src/config.ts+++ b/packages/server/src/config.ts@@ -20,7 +20,7 @@ import {LEGACY_ROOT_ENV,resolveRoot,ROOT_ENV,-} from "@lmliheng/penguin-core";+} from "@adelie/core";import { checkoutCliEntry } from "./services/cli-shim.js";export interface ServerConfig {diff --git a/packages/server/src/db/repos/agent-api.ts b/packages/server/src/db/repos/agent-api.tsindex 4c2d1ad7..09dbe28c 100644--- a/packages/server/src/db/repos/agent-api.ts+++ b/packages/server/src/db/repos/agent-api.ts@@ -4,7 +4,7 @@* hashes — the caller alone holds a key. Neither table is rebuildable from files: dropping them* turns every exposed Agent off and invalidates every key.*/-import { Component, Use } from "@lmliheng/penguin-core/kernel";+import { Component, Use } from "@adelie/core/kernel";import type { ApprovalMode } from "../../api/types.js";import type { Db } from "../../hmr/capabilities.js";import type {diff --git a/packages/server/src/db/repos/agents.ts b/packages/server/src/db/repos/agents.tsindex a44785b4..623e98d8 100644--- a/packages/server/src/db/repos/agents.ts+++ b/packages/server/src/db/repos/agents.ts@@ -1,7 +1,7 @@/*** agents table repo: Agent index; name/description live in system_config.yaml.*/-import { Component, Use } from "@lmliheng/penguin-core/kernel";+import { Component, Use } from "@adelie/core/kernel";import type { Db } from "../../hmr/capabilities.js";import type { AgentIndex } from "../../mechanisms/projects.js";diff --git a/packages/server/src/db/repos/auth-sessions.ts b/packages/server/src/db/repos/auth-sessions.tsindex 1f35c20c..e5656f4f 100644--- a/packages/server/src/db/repos/auth-sessions.ts+++ b/packages/server/src/db/repos/auth-sessions.ts@@ -4,7 +4,7 @@* so a CLI-minted row cannot drift from one the server issues itself.*/import { createHash, randomBytes } from "node:crypto";-import { Component, Use } from "@lmliheng/penguin-core/kernel";+import { Component, Use } from "@adelie/core/kernel";import type { Db } from "../../hmr/capabilities.js";import type { AuthSessions } from "../../mechanisms/identity.js";diff --git a/packages/server/src/db/repos/errors.ts b/packages/server/src/db/repos/errors.tsindex d0c806da..f439c21b 100644--- a/packages/server/src/db/repos/errors.ts+++ b/packages/server/src/db/repos/errors.ts@@ -20,7 +20,7 @@* wrongly delete still-valid data within the cap. The first line of defense is* ErrorRecorder's short-window deduplication.*/-import { Component, Use } from "@lmliheng/penguin-core/kernel";+import { Component, Use } from "@adelie/core/kernel";import type { Db } from "../../hmr/capabilities.js";import type { ErrorLog } from "../../mechanisms/observability.js";diff --git a/packages/server/src/db/repos/members.ts b/packages/server/src/db/repos/members.tsindex 751ff60b..b2b427b9 100644--- a/packages/server/src/db/repos/members.ts+++ b/packages/server/src/db/repos/members.ts@@ -2,7 +2,7 @@* Repo for the project_members table: only member* authorization relationships — the owner is never in this table.*/-import { Component, Use } from "@lmliheng/penguin-core/kernel";+import { Component, Use } from "@adelie/core/kernel";import type { Db } from "../../hmr/capabilities.js";import type { Members } from "../../mechanisms/projects.js";diff --git a/packages/server/src/db/repos/messaging-bindings.ts b/packages/server/src/db/repos/messaging-bindings.tsindex 20f3bef5..39254a4d 100644--- a/packages/server/src/db/repos/messaging-bindings.ts+++ b/packages/server/src/db/repos/messaging-bindings.ts@@ -27,7 +27,7 @@* fields and its account identity stay. The repo does not interpret the document; each* channel's connector and route own its shape.*/-import { Component, Use } from "@lmliheng/penguin-core/kernel";+import { Component, Use } from "@adelie/core/kernel";import type { Db } from "../../hmr/capabilities.js";import type { MessagingBindings } from "../../mechanisms/messaging.js";diff --git a/packages/server/src/db/repos/model-promotions.ts b/packages/server/src/db/repos/model-promotions.tsindex dd037b82..b35c30e0 100644--- a/packages/server/src/db/repos/model-promotions.ts+++ b/packages/server/src/db/repos/model-promotions.ts@@ -7,7 +7,7 @@* those writers runs again. Both replace methods swap their whole set in one transaction, so* a reader never sees half of one.*/-import { Component, Use } from "@lmliheng/penguin-core/kernel";+import { Component, Use } from "@adelie/core/kernel";import type { Db } from "../../hmr/capabilities.js";import type { ModelPromotion, ModelPromotions } from "../../mechanisms/projects.js";diff --git a/packages/server/src/db/repos/model-provider-auth-tokens.ts b/packages/server/src/db/repos/model-provider-auth-tokens.tsindex ed22783c..fb62c19c 100644--- a/packages/server/src/db/repos/model-provider-auth-tokens.ts+++ b/packages/server/src/db/repos/model-provider-auth-tokens.ts@@ -5,7 +5,7 @@* This table stores only refresh material and expiry metadata that must stay on the server:* never return it through model APIs and never write it into Project files.*/-import { Component, Use } from "@lmliheng/penguin-core/kernel";+import { Component, Use } from "@adelie/core/kernel";import type { Db } from "../../hmr/capabilities.js";import type { ModelProviderAuthToken, ModelProviderAuthTokens } from "../../mechanisms/projects.js";diff --git a/packages/server/src/db/repos/organizations.ts b/packages/server/src/db/repos/organizations.tsindex 4ccb8e1c..18d8388e 100644--- a/packages/server/src/db/repos/organizations.ts+++ b/packages/server/src/db/repos/organizations.ts@@ -9,7 +9,7 @@* mentions until its desk is idle, so dropping either loses only what it has not delivered —* the changes live in the ticket files, the messages in the channel files.*/-import { Component, Use } from "@lmliheng/penguin-core/kernel";+import { Component, Use } from "@adelie/core/kernel";import type { Db } from "../../hmr/capabilities.js";import type { OrgCache } from "../../mechanisms/organization.js";import type { OrgCalendarOutcome, OrgTicketChange } from "../../api/types.js";diff --git a/packages/server/src/db/repos/projects.ts b/packages/server/src/db/repos/projects.tsindex 0ca36532..7a95c5fc 100644--- a/packages/server/src/db/repos/projects.ts+++ b/packages/server/src/db/repos/projects.ts@@ -3,7 +3,7 @@* relationships; the display name lives in project_config.toml.*/import type { ProjectRole } from "../../api/types.js";-import { Component, Use } from "@lmliheng/penguin-core/kernel";+import { Component, Use } from "@adelie/core/kernel";import type { Db } from "../../hmr/capabilities.js";import type { Projects } from "../../mechanisms/projects.js";diff --git a/packages/server/src/db/repos/schedules.ts b/packages/server/src/db/repos/schedules.tsindex 750876a6..e1f1ee5e 100644--- a/packages/server/src/db/repos/schedules.ts+++ b/packages/server/src/db/repos/schedules.ts@@ -7,7 +7,7 @@* (registerOrSync resets the trigger state); a change to the file content fingerprint* only clears the disabled flag (the file becomes effective again after reconciliation).*/-import { Component, Use } from "@lmliheng/penguin-core/kernel";+import { Component, Use } from "@adelie/core/kernel";import type { Db } from "../../hmr/capabilities.js";import type { Schedules } from "../../mechanisms/sessions.js";diff --git a/packages/server/src/db/repos/server-settings.ts b/packages/server/src/db/repos/server-settings.tsindex 7c3c2438..ee67ea62 100644--- a/packages/server/src/db/repos/server-settings.ts+++ b/packages/server/src/db/repos/server-settings.ts@@ -8,7 +8,7 @@ import {DEFAULT_ATTACHMENT_MAX_MB,DEFAULT_ATTACHMENT_TOTAL_MB,} from "../../services/attachment-limits.js";-import { Component, Use } from "@lmliheng/penguin-core/kernel";+import { Component, Use } from "@adelie/core/kernel";import type { Db } from "../../hmr/capabilities.js";import type { Settings } from "../../mechanisms/settings.js";diff --git a/packages/server/src/db/repos/sessions.ts b/packages/server/src/db/repos/sessions.tsindex aef20cb1..f6fecc22 100644--- a/packages/server/src/db/repos/sessions.ts+++ b/packages/server/src/db/repos/sessions.ts@@ -2,10 +2,10 @@* sessions table repo:* Session index, approval mode, and auto-generated title; Session-level routes use this to look up project ownership.*/-import type { ThinkingLevelName } from "@lmliheng/penguin-core/interfaces";+import type { ThinkingLevelName } from "@adelie/core/interfaces";import type { ApprovalMode } from "../../api/types.js";-import type { SandboxSettings } from "@lmliheng/penguin-core/plugin";-import { Component, Use } from "@lmliheng/penguin-core/kernel";+import type { SandboxSettings } from "@adelie/core/plugin";+import { Component, Use } from "@adelie/core/kernel";import type { Db } from "../../hmr/capabilities.js";import type { SessionIndex } from "../../mechanisms/sessions.js";diff --git a/packages/server/src/db/repos/trace-index.ts b/packages/server/src/db/repos/trace-index.tsindex d8072f6e..9fcbaeb2 100644--- a/packages/server/src/db/repos/trace-index.ts+++ b/packages/server/src/db/repos/trace-index.ts@@ -3,9 +3,9 @@* services/trace-index.ts for the cache rules). Pure row access — reconciliation* policy (mtime gates, head-reads) lives in the service.*/-import { normalizeSessionSource } from "@lmliheng/penguin-core";+import { normalizeSessionSource } from "@adelie/core";import type { RecordedSource } from "../../runtime/session-sources.js";-import { Component, Use } from "@lmliheng/penguin-core/kernel";+import { Component, Use } from "@adelie/core/kernel";import type { Db } from "../../hmr/capabilities.js";import type { TraceIndexStore } from "../../mechanisms/traces.js";diff --git a/packages/server/src/db/repos/ui-prefs.ts b/packages/server/src/db/repos/ui-prefs.tsindex 02a78c8c..7618d8f8 100644--- a/packages/server/src/db/repos/ui-prefs.ts+++ b/packages/server/src/db/repos/ui-prefs.ts@@ -1,7 +1,7 @@/*** ui_prefs table repo (UI preferences): free-form JSON storage.*/-import { Component, Use } from "@lmliheng/penguin-core/kernel";+import { Component, Use } from "@adelie/core/kernel";import type { Db } from "../../hmr/capabilities.js";import type { UiPrefsStore } from "../../mechanisms/settings.js";diff --git a/packages/server/src/db/repos/usage.ts b/packages/server/src/db/repos/usage.tsindex a45a0fe2..896b5ba0 100644--- a/packages/server/src/db/repos/usage.ts+++ b/packages/server/src/db/repos/usage.ts@@ -6,7 +6,7 @@* across providers is aggregated separately; never concatenated).*/import type { UsageGroupBy } from "../../api/types.js";-import { Component, Use } from "@lmliheng/penguin-core/kernel";+import { Component, Use } from "@adelie/core/kernel";import type { Db } from "../../hmr/capabilities.js";import type { UsageStore } from "../../mechanisms/observability.js";diff --git a/packages/server/src/db/repos/users.ts b/packages/server/src/db/repos/users.tsindex 4866807f..f53c2e38 100644--- a/packages/server/src/db/repos/users.ts+++ b/packages/server/src/db/repos/users.ts@@ -2,7 +2,7 @@* users table repo: pure SQL wrapper, no business rules.* user_id is the login name (a semantic id, specified at creation, immutable).*/-import { Component, Use } from "@lmliheng/penguin-core/kernel";+import { Component, Use } from "@adelie/core/kernel";import type { Db } from "../../hmr/capabilities.js";import type { Users } from "../../mechanisms/identity.js";diff --git a/packages/server/src/hmr/capabilities.ts b/packages/server/src/hmr/capabilities.tsindex a4b0a146..808e8cfb 100644--- a/packages/server/src/hmr/capabilities.ts+++ b/packages/server/src/hmr/capabilities.ts@@ -21,20 +21,20 @@* registry.*/import type { DatabaseSync } from "node:sqlite";-import type { Resources, Opaque, ModuleClass } from "@lmliheng/penguin-core/kernel";+import type { Resources, Opaque, ModuleClass } from "@adelie/core/kernel";import type { ServerConfig } from "../config.js";import type { AuthRuntimeState } from "../auth/runtime-state.js";import { newAuthRuntimeState } from "../auth/runtime-state.js";import type { ChannelHub, Channel } from "../runtime/channel.js";import type { ProxySettings } from "../net/proxy.js";-import type { HmrHost, Hmr as HmrControlOf } from "@lmliheng/penguin-hmr";+import type { HmrHost, Hmr as HmrControlOf } from "@adelie/hmr";import type { PlatformApi } from "./platform.js";/** The control object the entry built (hmrMain): `current()` and `upgrade()`. */export type HmrControlApi = HmrControlOf<PlatformApi>;import type { DesktopService } from "../services/desktop-service.js";import type { LifecycleService } from "../services/lifecycle-service.js";-import { Interface, Component, Module, Provide, Use } from "@lmliheng/penguin-core/kernel";+import { Interface, Component, Module, Provide, Use } from "@adelie/core/kernel";/*** What one side of the seam speaks: a family, and a Go-style structural interface perdiff --git a/packages/server/src/hmr/http-seam.ts b/packages/server/src/hmr/http-seam.tsindex 25d84c26..952906a4 100644--- a/packages/server/src/hmr/http-seam.ts+++ b/packages/server/src/hmr/http-seam.ts@@ -31,7 +31,7 @@* (`terminals()`, `attachStream()`) instead.*/import type { MiddlewareHandler } from "hono";-import type { Hmr } from "@lmliheng/penguin-hmr";+import type { Hmr } from "@adelie/hmr";import type { PlatformApi } from "./platform.js";import { noPlatformResponse } from "./starting.js";diff --git a/packages/server/src/hmr/manifest.ts b/packages/server/src/hmr/manifest.tsindex 8dd5d9b4..d2ba6502 100644--- a/packages/server/src/hmr/manifest.ts+++ b/packages/server/src/hmr/manifest.ts@@ -4,6 +4,6 @@* with no server in the process, and that entry point is a contract with installed CLIs.** The reader itself is the hot-update MECHANISM and lives with the rest of it- * (@lmliheng/penguin-hmr) — see that package's README for what may go in there.+ * (@adelie/hmr) — see that package's README for what may go in there.*/-export * from "@lmliheng/penguin-hmr/manifest";+export * from "@adelie/hmr/manifest";diff --git a/packages/server/src/hmr/platform.ts b/packages/server/src/hmr/platform.tsindex b014db5c..853bf055 100644--- a/packages/server/src/hmr/platform.ts+++ b/packages/server/src/hmr/platform.ts@@ -32,7 +32,7 @@ import type {ManifestTable,ModuleDef,ModuleTree,-} from "@lmliheng/penguin-core/kernel";+} from "@adelie/core/kernel";import {defineIface,schema,@@ -42,8 +42,8 @@ import {initialDoc,moduleDefOf,upgrade,-} from "@lmliheng/penguin-core/kernel";-import type { HmrHost, PlatformBundle } from "@lmliheng/penguin-hmr";+} from "@adelie/core/kernel";+import type { HmrHost, PlatformBundle } from "@adelie/hmr";import { TerminalManager } from "../terminal/manager.js";import type { TerminalSession } from "../terminal/session.js";import type { RemoteTerminals } from "../machines/terminal-relay.js";@@ -74,7 +74,7 @@ import { MachinesRepo } from "../db/repos/machines.js";import type { Auth } from "../mechanisms/identity.js";/**- * This server's hot host: the mechanism (@lmliheng/penguin-hmr) with the api ITS platforms+ * This server's hot host: the mechanism (@adelie/hmr) with the api ITS platforms* expose. The mechanism is generic on purpose — it cannot name a route or a service — so the* product supplies the type here, once, and everything that holds a host uses this alias.*/diff --git a/packages/server/src/hmr/routes.ts b/packages/server/src/hmr/routes.tsindex 14282c5b..13e4823e 100644--- a/packages/server/src/hmr/routes.ts+++ b/packages/server/src/hmr/routes.ts@@ -12,7 +12,7 @@* its generation does not answer here (`admitsUpgradeRoute`).*/import { Hono } from "hono";-import { Bind, Component, Use } from "@lmliheng/penguin-core/kernel";+import { Bind, Component, Use } from "@adelie/core/kernel";import { authMiddleware } from "../auth/middleware.js";import type { AppEnv } from "../auth/middleware.js";import type { Auth } from "../mechanisms/identity.js";diff --git a/packages/server/src/http/app.ts b/packages/server/src/http/app.tsindex 15e7b4e3..f5cce1fc 100644--- a/packages/server/src/http/app.ts+++ b/packages/server/src/http/app.ts@@ -1,5 +1,5 @@-import { Interface, Module, Provide, Use } from "@lmliheng/penguin-core/kernel";-import type { Opaque, Slot, ClassCtx } from "@lmliheng/penguin-core/kernel";+import { Interface, Module, Provide, Use } from "@adelie/core/kernel";+import type { Opaque, Slot, ClassCtx } from "@adelie/core/kernel";import { Hono } from "hono";import type { AppEnv } from "../auth/middleware.js";import { Config, Log } from "../hmr/capabilities.js";diff --git a/packages/server/src/http/routes/admin.ts b/packages/server/src/http/routes/admin.tsindex 8920fb56..ca47f9cd 100644--- a/packages/server/src/http/routes/admin.ts+++ b/packages/server/src/http/routes/admin.ts@@ -12,7 +12,7 @@ import { rejectInDesktopMode } from "./desktop.js";import type { DesktopService } from "../../services/desktop-service.js";import type { AppEnv } from "../../auth/middleware.js";import { pathParam, readJson, requireString } from "../validate.js";-import { Bind, Component, Use } from "@lmliheng/penguin-core/kernel";+import { Bind, Component, Use } from "@adelie/core/kernel";import type { Desktop, Proxy } from "../../hmr/capabilities.js";import { adminSettingsRoutes } from "./admin-settings.js";import { adminStorageRoutes } from "./admin-storage.js";diff --git a/packages/server/src/http/routes/agent-config.ts b/packages/server/src/http/routes/agent-config.tsindex fa41fdb4..81414fe1 100644--- a/packages/server/src/http/routes/agent-config.ts+++ b/packages/server/src/http/routes/agent-config.ts@@ -10,8 +10,8 @@ import { mkdtemp, rm } from "node:fs/promises";import { tmpdir } from "node:os";import { join } from "node:path";import { Hono } from "hono";-import { McpToolProvider, resolveMCPServer } from "@lmliheng/penguin-core";-import type { MCPServerConfig } from "@lmliheng/penguin-core";+import { McpToolProvider, resolveMCPServer } from "@adelie/core";+import type { MCPServerConfig } from "@adelie/core";import type {AgentConfigResponse,AgentConfigUpdateRequest,diff --git a/packages/server/src/http/routes/auth.ts b/packages/server/src/http/routes/auth.tsindex 7f55c84e..1d4b7437 100644--- a/packages/server/src/http/routes/auth.ts+++ b/packages/server/src/http/routes/auth.ts@@ -15,7 +15,7 @@ import { readJson, requireString } from "../validate.js";import { HttpError } from "../errors.js";import type { ServerConfig } from "../../config.js";import type { Auth } from "../../mechanisms/identity.js";-import { Bind, Component, Use } from "@lmliheng/penguin-core/kernel";+import { Bind, Component, Use } from "@adelie/core/kernel";import { Config, Desktop } from "../../hmr/capabilities.js";import type { DesktopApi } from "../../hmr/capabilities.js";diff --git a/packages/server/src/http/routes/benchmarks.ts b/packages/server/src/http/routes/benchmarks.tsindex 189e7736..be084075 100644--- a/packages/server/src/http/routes/benchmarks.ts+++ b/packages/server/src/http/routes/benchmarks.ts@@ -13,7 +13,7 @@* along with the evaluations[] from scoreboard.yaml.*/import { Hono, type Context } from "hono";-import { isValidId } from "@lmliheng/penguin-core";+import { isValidId } from "@adelie/core";import type { AppEnv } from "../../auth/middleware.js";import type { BenchmarkCreateResponse, CaseMaterial } from "../../api/types.js";import type { BenchmarkCaseInput } from "../../services/benchmark-service.js";diff --git a/packages/server/src/http/routes/chat-defaults.ts b/packages/server/src/http/routes/chat-defaults.tsindex dae49df2..23ca2ebd 100644--- a/packages/server/src/http/routes/chat-defaults.ts+++ b/packages/server/src/http/routes/chat-defaults.ts@@ -6,7 +6,7 @@* it stays the top-level `default_model` maintained via the models routes.*/import { Hono } from "hono";-import { DEFAULT_CHAT_THINKING_LEVELS, isValidId } from "@lmliheng/penguin-core";+import { DEFAULT_CHAT_THINKING_LEVELS, isValidId } from "@adelie/core";import type { ChatDefaultsDto, SessionSandbox } from "../../api/types.js";import type { AppEnv } from "../../auth/middleware.js";import { HttpError } from "../errors.js";diff --git a/packages/server/src/http/routes/contributions.ts b/packages/server/src/http/routes/contributions.tsindex 1f4e0f4a..c70721da 100644--- a/packages/server/src/http/routes/contributions.ts+++ b/packages/server/src/http/routes/contributions.ts@@ -5,9 +5,9 @@*/import { Hono } from "hono";import type { AppEnv } from "../../auth/middleware.js";-import { Interface, Bind, Module, Provide } from "@lmliheng/penguin-core/kernel";+import { Interface, Bind, Module, Provide } from "@adelie/core/kernel";import type { ContributionsResponse, RendererRef, WebContribution } from "../../api/types.js";-import type { ClassCtx } from "@lmliheng/penguin-core/kernel";+import type { ClassCtx } from "@adelie/core/kernel";export interface ContributionsRouteDeps {web: WebShell;diff --git a/packages/server/src/http/routes/desktop.ts b/packages/server/src/http/routes/desktop.tsindex fef45b9c..4cad00d1 100644--- a/packages/server/src/http/routes/desktop.ts+++ b/packages/server/src/http/routes/desktop.ts@@ -14,7 +14,7 @@*/import { Hono } from "hono";import type { Context, MiddlewareHandler } from "hono";-import { Bind, Component, Use } from "@lmliheng/penguin-core/kernel";+import { Bind, Component, Use } from "@adelie/core/kernel";import type {DesktopTrayPatch,DesktopTrayStatusResponse,diff --git a/packages/server/src/http/routes/dirs.ts b/packages/server/src/http/routes/dirs.tsindex 95b5b755..25c29d77 100644--- a/packages/server/src/http/routes/dirs.ts+++ b/packages/server/src/http/routes/dirs.ts@@ -45,7 +45,7 @@ import fs from "node:fs/promises";import os from "node:os";import path from "node:path";import { Hono } from "hono";-import { projectDir } from "@lmliheng/penguin-core";+import { projectDir } from "@adelie/core";import type {DirAccessResponse,DirCreateResponse,@@ -56,7 +56,7 @@ import type {import type { AppEnv } from "../../auth/middleware.js";import { HttpError } from "../errors.js";import { requireValidId } from "../validate.js";-import { Bind, Component, Use } from "@lmliheng/penguin-core/kernel";+import { Bind, Component, Use } from "@adelie/core/kernel";import { directorySkillsRoutes } from "./directory-skills.js";import type { Desktop, DesktopApi, Paths } from "../../hmr/capabilities.js";import type { Access } from "../../mechanisms/projects.js";diff --git a/packages/server/src/http/routes/events.ts b/packages/server/src/http/routes/events.tsindex 9ec777d6..7a4edcc2 100644--- a/packages/server/src/http/routes/events.ts+++ b/packages/server/src/http/routes/events.ts@@ -6,8 +6,8 @@ import { Hono } from "hono";import type { AppEnv } from "../../auth/middleware.js";import { sseEndpoint, streamRevocation } from "../sse.js";import type { ChannelHub } from "../../runtime/channel.js";-import { Bind, Component, Use } from "@lmliheng/penguin-core/kernel";-import type { ClassCtx } from "@lmliheng/penguin-core/kernel";+import { Bind, Component, Use } from "@adelie/core/kernel";+import type { ClassCtx } from "@adelie/core/kernel";import { Channels } from "../../hmr/capabilities.js";import { LiveStreams } from "../../auth/live-streams.js";import { Auth } from "../../mechanisms/identity.js";diff --git a/packages/server/src/http/routes/feedback.ts b/packages/server/src/http/routes/feedback.tsindex 53947a09..4e4ab05a 100644--- a/packages/server/src/http/routes/feedback.ts+++ b/packages/server/src/http/routes/feedback.ts@@ -17,7 +17,7 @@*/import { Hono } from "hono";import type { AppEnv } from "../../auth/middleware.js";-import { Bind, Component, Use } from "@lmliheng/penguin-core/kernel";+import { Bind, Component, Use } from "@adelie/core/kernel";import type { FeedbackConfigResponse, FeedbackResponse } from "../../api/types.js";import type { ServerConfig } from "../../config.js";import type { Config } from "../../hmr/capabilities.js";diff --git a/packages/server/src/http/routes/hooks.ts b/packages/server/src/http/routes/hooks.tsindex 42ac513b..e5f46e3d 100644--- a/packages/server/src/http/routes/hooks.ts+++ b/packages/server/src/http/routes/hooks.ts@@ -27,8 +27,8 @@ import {parsePluginVersion,removeHook,replaceSkillDirectory,-} from "@lmliheng/penguin-core";-import type { HookCommand, HookManifest } from "@lmliheng/penguin-core";+} from "@adelie/core";+import type { HookCommand, HookManifest } from "@adelie/core";import type { AgentHooksResponse, HookItem } from "../../api/types.js";import type { AppEnv } from "../../auth/middleware.js";import type { PluginsRouteDeps } from "./plugins.js";diff --git a/packages/server/src/http/routes/install.ts b/packages/server/src/http/routes/install.tsindex c9946523..33740c14 100644--- a/packages/server/src/http/routes/install.ts+++ b/packages/server/src/http/routes/install.ts@@ -29,8 +29,8 @@ export interface InstallRouteDeps {config: ServerConfig;}import { ensureInstallId } from "../../install-id.js";-import { Bind, Component, Use } from "@lmliheng/penguin-core/kernel";-import type { ClassCtx } from "@lmliheng/penguin-core/kernel";+import { Bind, Component, Use } from "@adelie/core/kernel";+import type { ClassCtx } from "@adelie/core/kernel";import { Config } from "../../hmr/capabilities.js";export function installRoutes(deps: InstallRouteDeps): Hono<AppEnv> {diff --git a/packages/server/src/http/routes/me.ts b/packages/server/src/http/routes/me.tsindex 0912dea1..8392a075 100644--- a/packages/server/src/http/routes/me.ts+++ b/packages/server/src/http/routes/me.ts@@ -47,8 +47,8 @@ import {MAX_ATTACHMENT_MB,MIN_ATTACHMENT_MB,} from "../../services/attachment-limits.js";-import { Bind, Component, Use } from "@lmliheng/penguin-core/kernel";-import type { ClassCtx } from "@lmliheng/penguin-core/kernel";+import { Bind, Component, Use } from "@adelie/core/kernel";+import type { ClassCtx } from "@adelie/core/kernel";import { Config, Desktop } from "../../hmr/capabilities.js";import type { Auth, Users } from "../../mechanisms/identity.js";import type { Settings, UiPrefsStore } from "../../mechanisms/settings.js";diff --git a/packages/server/src/http/routes/organizations.ts b/packages/server/src/http/routes/organizations.tsindex 3ab4694f..41edf86b 100644--- a/packages/server/src/http/routes/organizations.ts+++ b/packages/server/src/http/routes/organizations.ts@@ -30,7 +30,7 @@*/import { Hono } from "hono";import type { Context } from "hono";-import { isValidId } from "@lmliheng/penguin-core";+import { isValidId } from "@adelie/core";import type {OrgApprovalMode,OrgLanguage,@@ -41,7 +41,7 @@ import type {} from "../../api/types.js";import type { AppEnv } from "../../auth/middleware.js";import type { SessionVia } from "../../auth/service.js";-import { Bind, Component, Use } from "@lmliheng/penguin-core/kernel";+import { Bind, Component, Use } from "@adelie/core/kernel";import type { Settings } from "../../mechanisms/settings.js";import type { ProjectLifecycle } from "../../mechanisms/projects.js";import { TICKET_ID_PATTERN } from "../../organization/files.js";diff --git a/packages/server/src/http/routes/plugins-installed.ts b/packages/server/src/http/routes/plugins-installed.tsindex 401ea026..3a31c5e2 100644--- a/packages/server/src/http/routes/plugins-installed.ts+++ b/packages/server/src/http/routes/plugins-installed.ts@@ -34,13 +34,13 @@* restored on the previous list, and the answer is "did not take".*/import { Hono } from "hono";-import { Bind, Component, Use } from "@lmliheng/penguin-core/kernel";+import { Bind, Component, Use } from "@adelie/core/kernel";import type { AppEnv } from "../../auth/middleware.js";import type { InstalledPlugin, InstalledPluginsResponse } from "../../api/types.js";import { HttpError } from "../errors.js";import { readJson, requireValidId } from "../validate.js";import type { DatabaseSync } from "node:sqlite";-import { effectivePluginTable, PLUGIN_MACHINE_ID, type PluginTables } from "@lmliheng/penguin-core";+import { effectivePluginTable, PLUGIN_MACHINE_ID, type PluginTables } from "@adelie/core";import type { Config, Db, Hmr, Reassembly, ReassemblyChange } from "../../hmr/capabilities.js";import {discoverBuiltinPlugins,diff --git a/packages/server/src/http/routes/plugins.ts b/packages/server/src/http/routes/plugins.tsindex 205d789d..f1613872 100644--- a/packages/server/src/http/routes/plugins.ts+++ b/packages/server/src/http/routes/plugins.ts@@ -46,7 +46,7 @@ import {userPluginInstalled,userPluginRoots,userPluginsDir,-} from "@lmliheng/penguin-core";+} from "@adelie/core";import type {AgentPluginsInstallResponse,PluginDirectoryResponse,@@ -62,7 +62,7 @@ import type { Config, Hmr } from "../../hmr/capabilities.js";import type { AgentConfig } from "../../mechanisms/agents.js";import type { Access } from "../../mechanisms/projects.js";import type { Sessions as ManagerIface } from "../../runtime/session-manager.js";-import { Bind, Component, Use } from "@lmliheng/penguin-core/kernel";+import { Bind, Component, Use } from "@adelie/core/kernel";import { agentHooksRoutes } from "./hooks.js";import { builtinPluginRegistry, shippedPluginNames } from "../../plugin/registry.js";import { pluginBases } from "../../plugin/loader.js";diff --git a/packages/server/src/http/routes/preview.ts b/packages/server/src/http/routes/preview.tsindex 93ff6466..41b21225 100644--- a/packages/server/src/http/routes/preview.ts+++ b/packages/server/src/http/routes/preview.ts@@ -20,9 +20,9 @@ import {requestAuthority,createPreviewTokenSigner,} from "../../services/preview-token.js";-import { Interface, Bind, Module, Provide, Use } from "@lmliheng/penguin-core/kernel";+import { Interface, Bind, Module, Provide, Use } from "@adelie/core/kernel";import type { AppEnv } from "../../auth/middleware.js";-import type { ClassCtx } from "@lmliheng/penguin-core/kernel";+import type { ClassCtx } from "@adelie/core/kernel";import type { SessionIndex } from "../../mechanisms/sessions.js";import type { WorkspaceFiles } from "../../mechanisms/workspace.js";diff --git a/packages/server/src/http/routes/projects.ts b/packages/server/src/http/routes/projects.tsindex 0d1fdee8..7ec03534 100644--- a/packages/server/src/http/routes/projects.ts+++ b/packages/server/src/http/routes/projects.ts@@ -15,7 +15,7 @@ import {requireString,requireValidId,} from "../validate.js";-import { Bind, Component, Use } from "@lmliheng/penguin-core/kernel";+import { Bind, Component, Use } from "@adelie/core/kernel";import type { Desktop } from "../../hmr/capabilities.js";import type { DesktopService } from "../../services/desktop-service.js";import { membersRoutes } from "./members.js";diff --git a/packages/server/src/http/routes/schedules.ts b/packages/server/src/http/routes/schedules.tsindex 726a28cd..2705259f 100644--- a/packages/server/src/http/routes/schedules.ts+++ b/packages/server/src/http/routes/schedules.ts@@ -11,7 +11,7 @@*/import { createHash } from "node:crypto";import { Hono } from "hono";-import { isValidId } from "@lmliheng/penguin-core";+import { isValidId } from "@adelie/core";import type {AllProjectSchedulesResponse,ProjectSchedulesResponse,@@ -54,7 +54,7 @@ import {validateScheduleModelRef,writeScheduleFile,} from "../../runtime/schedule-store.js";-import { Bind, Component, Use } from "@lmliheng/penguin-core/kernel";+import { Bind, Component, Use } from "@adelie/core/kernel";import type { Config } from "../../hmr/capabilities.js";import type { Access, ProjectConfigStore } from "../../mechanisms/projects.js";import type { Schedules, Scheduling } from "../../mechanisms/sessions.js";diff --git a/packages/server/src/http/routes/sessions.ts b/packages/server/src/http/routes/sessions.tsindex 89ee2563..ddf30502 100644--- a/packages/server/src/http/routes/sessions.ts+++ b/packages/server/src/http/routes/sessions.ts@@ -18,8 +18,8 @@ import {sessionScratchpadDir,stripLeadingMarkerBlocks,userText,-} from "@lmliheng/penguin-core";-import type { OmniMessage } from "@lmliheng/penguin-core";+} from "@adelie/core";+import type { OmniMessage } from "@adelie/core";import type {ApprovalMode,FilesStatResponse,@@ -122,8 +122,8 @@ import {toAttachmentLimits,} from "../../services/attachment-limits.js";import type { AttachmentLimits } from "../../services/attachment-limits.js";-import { Bind, Component, Use } from "@lmliheng/penguin-core/kernel";-import type { ClassCtx } from "@lmliheng/penguin-core/kernel";+import { Bind, Component, Use } from "@adelie/core/kernel";+import type { ClassCtx } from "@adelie/core/kernel";import { Channels, Config, Desktop } from "../../hmr/capabilities.js";import { Sessions as ManagerIface, SessionServiceIface } from "../../runtime/session-manager.js";import { Messaging } from "../../runtime/messaging/bridge.js";diff --git a/packages/server/src/http/routes/skills.ts b/packages/server/src/http/routes/skills.tsindex 58e35eb5..773e105a 100644--- a/packages/server/src/http/routes/skills.ts+++ b/packages/server/src/http/routes/skills.ts@@ -23,7 +23,7 @@ import {skillsDir,parseSkillFrontmatter,PLUGIN_NAME_PATTERN,-} from "@lmliheng/penguin-core";+} from "@adelie/core";import type { AgentSkillsResponse } from "../../api/types.js";import type { AppEnv } from "../../auth/middleware.js";import type { ServerConfig } from "../../config.js";@@ -44,8 +44,8 @@ import {skillTooLarge,unzipBounded,} from "../../services/skill-import-limits.js";-import { Bind, Component } from "@lmliheng/penguin-core/kernel";-import type { ClassCtx } from "@lmliheng/penguin-core/kernel";+import { Bind, Component } from "@adelie/core/kernel";+import type { ClassCtx } from "@adelie/core/kernel";import type { AgentConfig } from "../../mechanisms/agents.js";import type { Access } from "../../mechanisms/projects.js";diff --git a/packages/server/src/http/routes/suggest-id.ts b/packages/server/src/http/routes/suggest-id.tsindex 980ccf8e..50f70ecc 100644--- a/packages/server/src/http/routes/suggest-id.ts+++ b/packages/server/src/http/routes/suggest-id.ts@@ -25,7 +25,7 @@* the organization service, recorded as the organization's.*/import { Hono } from "hono";-import { Bind, Component, Use } from "@lmliheng/penguin-core/kernel";+import { Bind, Component, Use } from "@adelie/core/kernel";import type { SemanticIdKind } from "../../api/types.js";import type { AppEnv } from "../../auth/middleware.js";import type { Log } from "../../hmr/capabilities.js";diff --git a/packages/server/src/http/routes/user-vault.ts b/packages/server/src/http/routes/user-vault.tsindex 30532b2b..74ef7917 100644--- a/packages/server/src/http/routes/user-vault.ts+++ b/packages/server/src/http/routes/user-vault.ts@@ -19,7 +19,7 @@ import { Hono } from "hono";import type { AppEnv } from "../../auth/middleware.js";import { parseVaultUpdate } from "./vault.js";import { badRequest, readJson } from "../validate.js";-import { Bind, Component, Use } from "@lmliheng/penguin-core/kernel";+import { Bind, Component, Use } from "@adelie/core/kernel";import type { UserVault } from "../../mechanisms/vault.js";/** What this route group reaches — bound by its module (src/modules). */diff --git a/packages/server/src/http/routes/version.ts b/packages/server/src/http/routes/version.tsindex 4bf0b1cd..b92444fa 100644--- a/packages/server/src/http/routes/version.ts+++ b/packages/server/src/http/routes/version.ts@@ -19,7 +19,7 @@* route says so (`no_supervisor`) instead of stopping a service nobody would bring back,* and the page shows the manual restart hint.*/-import { boundaryEnv } from "@lmliheng/penguin-core";+import { boundaryEnv } from "@adelie/core";import { versionReport } from "../../version-report.js";import { Hono } from "hono";import type { Context } from "hono";@@ -32,7 +32,7 @@ import type {VersionResponse,VersionRollbackResponse,} from "../../api/types.js";-import { diffIfaces } from "@lmliheng/penguin-hmr";+import { diffIfaces } from "@adelie/hmr";import type { HarnessHistoryIface } from "../../services/harness-history.js";import { HttpError } from "../errors.js";import type { AppEnv } from "../../auth/middleware.js";diff --git a/packages/server/src/http/validate.ts b/packages/server/src/http/validate.tsindex 91e1d4a7..9dda8175 100644--- a/packages/server/src/http/validate.ts+++ b/packages/server/src/http/validate.ts@@ -7,7 +7,7 @@import fs from "node:fs/promises";import path from "node:path";import type { Context } from "hono";-import { isValidId } from "@lmliheng/penguin-core";+import { isValidId } from "@adelie/core";import type {ActivityCursor,SessionListOrder,diff --git a/packages/server/src/index.ts b/packages/server/src/index.tsindex 758ee2ae..6c2884b8 100644--- a/packages/server/src/index.ts+++ b/packages/server/src/index.ts@@ -2,7 +2,7 @@* Server process entry point: the whole startup lifecycle, as one ordered sequence.** Importing this module STARTS the server — the CLI runs a server in its own process by- * `await import("@lmliheng/penguin-server")` and nothing else, so main() is invoked at+ * `await import("@adelie/server")` and nothing else, so main() is invoked at* module scope rather than exported.** main() comes first in the file and is the sequence itself: each step is one PenguinServer@@ -19,11 +19,11 @@ import path from "node:path";import type { Server as HttpServer } from "node:http";import { config as loadDotenv } from "dotenv";import { serve } from "@hono/node-server";-import { SERVER_RESTART_EXIT_CODE } from "@lmliheng/penguin-core";+import { SERVER_RESTART_EXIT_CODE } from "@adelie/core";import { bootAppDeps, createApp } from "./app.js";-import { HmrHost, hmrMain } from "@lmliheng/penguin-hmr";-import type { Hmr } from "@lmliheng/penguin-hmr";-import type { Instance } from "@lmliheng/penguin-core/kernel";+import { HmrHost, hmrMain } from "@adelie/hmr";+import type { Hmr } from "@adelie/hmr";+import type { Instance } from "@adelie/core/kernel";import { packagedPlatform } from "./hmr/platform.js";import { startingResponse } from "./hmr/starting.js";import type { PlatformApi, ServerHmrHost } from "./hmr/platform.js";diff --git a/packages/server/src/internal/trace-head.ts b/packages/server/src/internal/trace-head.tsindex dd3e53fb..5143e603 100644--- a/packages/server/src/internal/trace-head.ts+++ b/packages/server/src/internal/trace-head.ts@@ -4,8 +4,8 @@* instead of pulling a whole multi-MB file into memory.*/import { open } from "node:fs/promises";-import { parseTraceLines, readTraceTolerant } from "@lmliheng/penguin-core";-import type { OmniMessage } from "@lmliheng/penguin-core";+import { parseTraceLines, readTraceTolerant } from "@adelie/core";+import type { OmniMessage } from "@adelie/core";/** Head window for Trace head reads: generous for a long system prompt, far below a whole multi-MB shard. */export const TRACE_HEAD_BYTES = 256 * 1024;diff --git a/packages/server/src/lock.ts b/packages/server/src/lock.tsindex d38b6c7f..94abc857 100644--- a/packages/server/src/lock.ts+++ b/packages/server/src/lock.ts@@ -9,7 +9,7 @@* lock that fails the liveness check is stale and is simply overwritten by the next* server.*- * Published as `@lmliheng/penguin-server/lock` (side-effect-free) so the CLI and the+ * Published as `@adelie/server/lock` (side-effect-free) so the CLI and the* desktop shell can pre-check a root without importing the package entry, which starts* listening.*/diff --git a/packages/server/src/machine-status.ts b/packages/server/src/machine-status.tsindex d780003d..b67f5c4d 100644--- a/packages/server/src/machine-status.ts+++ b/packages/server/src/machine-status.ts@@ -3,7 +3,7 @@* root itself, by whoever can read it, with no server needed and safely while one runs (the* same terms as `penguin auth token`, which writes to this database live).*- * Exported as `@lmliheng/penguin-server/machine-status` for `penguin server status`, which+ * Exported as `@adelie/server/machine-status` for `penguin server status`, which* is how a CONTROLLER asks: it runs that one command over ssh and reads back JSON. The* question used to be asked in shell — `cat` the lock, `sed` the pid out of it, `kill -0`,* `cat` a second file for the id — which meant a parser on this side for a format with nodiff --git a/packages/server/src/machines/layout.ts b/packages/server/src/machines/layout.tsindex 4ac33ae6..e7629035 100644--- a/packages/server/src/machines/layout.ts+++ b/packages/server/src/machines/layout.ts@@ -26,7 +26,7 @@* Pure, and the only place either path is spelled: every command in this directory takes a* layout rather than naming `~/.penguin` itself.*/-import { DEFAULT_DEV_SERVER_PORT, DEFAULT_SERVER_PORT, boundaryEnv } from "@lmliheng/penguin-core";+import { DEFAULT_DEV_SERVER_PORT, DEFAULT_SERVER_PORT, boundaryEnv } from "@adelie/core";export type Profile = "release" | "dev";diff --git a/packages/server/src/machines/models-sync.ts b/packages/server/src/machines/models-sync.tsindex daacf9ec..22570303 100644--- a/packages/server/src/machines/models-sync.ts+++ b/packages/server/src/machines/models-sync.ts@@ -15,7 +15,7 @@* masked. Ours win on a collision.*/import type { MachineApi } from "./machine-api.js";-import type { ModelEntry, ModelRef } from "@lmliheng/penguin-core";+import type { ModelEntry, ModelRef } from "@adelie/core";import type {ModelInfo,ModelRefDto,diff --git a/packages/server/src/machines/service.ts b/packages/server/src/machines/service.tsindex c703875d..3b89c8a0 100644--- a/packages/server/src/machines/service.ts+++ b/packages/server/src/machines/service.ts@@ -25,13 +25,8 @@*/import fs from "node:fs";import os from "node:os";-import {- DEFAULT_PROJECT_ID,- VERSION,- effectivePluginTable,- loadProjectConfig,-} from "@lmliheng/penguin-core";-import type { ProjectConfig } from "@lmliheng/penguin-core";+import { DEFAULT_PROJECT_ID, VERSION, effectivePluginTable, loadProjectConfig } from "@adelie/core";+import type { ProjectConfig } from "@adelie/core";import type {MachineInfo,MachineJob,@@ -74,9 +69,9 @@ import type { LocalModels } from "./models-sync.js";import { machineApi } from "./machine-api.js";import { startRemoteServer, stopRemoteServer } from "./server-control.js";import type { MachineRow } from "../db/repos/machines.js";-import { Interface, Bind, Module, Provide, Use } from "@lmliheng/penguin-core/kernel";+import { Interface, Bind, Module, Provide, Use } from "@adelie/core/kernel";import type { AppEnv } from "../auth/middleware.js";-import type { ClassCtx } from "@lmliheng/penguin-core/kernel";+import type { ClassCtx } from "@adelie/core/kernel";import { machinesRoutes } from "../http/routes/machines.js";import { machinesProxy } from "./proxy.js";import { HttpError } from "../http/errors.js";diff --git a/packages/server/src/machines/terminal-relay.ts b/packages/server/src/machines/terminal-relay.tsindex 31d538a3..8a4a4945 100644--- a/packages/server/src/machines/terminal-relay.ts+++ b/packages/server/src/machines/terminal-relay.ts@@ -24,7 +24,7 @@import type http from "node:http";import { WebSocket } from "ws";import type { RawData, WebSocket as WsSocket } from "ws";-import { Component, Interface, Use } from "@lmliheng/penguin-core/kernel";+import { Component, Interface, Use } from "@adelie/core/kernel";import type { Terminal } from "../terminal/manager.js";import type { Auth } from "../mechanisms/identity.js";import type { Machines } from "./service.js";diff --git a/packages/server/src/mechanisms/agent-api.ts b/packages/server/src/mechanisms/agent-api.tsindex 2c500920..e4f49d70 100644--- a/packages/server/src/mechanisms/agent-api.ts+++ b/packages/server/src/mechanisms/agent-api.ts@@ -6,7 +6,7 @@* to expose itself or loosen the approvals its API conversations run with) and never in the* Project file (synchronized across machines in company mode, while exposure is one server's).*/-import { Interface } from "@lmliheng/penguin-core/kernel";+import { Interface } from "@adelie/core/kernel";import type { ApprovalMode } from "../api/types.js";/** One Agent's API settings row. */diff --git a/packages/server/src/mechanisms/agents.ts b/packages/server/src/mechanisms/agents.tsindex d52f300d..ff6c058e 100644--- a/packages/server/src/mechanisms/agents.ts+++ b/packages/server/src/mechanisms/agents.ts@@ -1,7 +1,7 @@/*** The agents mechanisms: what a node may require, declared apart from what implements it.*/-import { Interface } from "@lmliheng/penguin-core/kernel";+import { Interface } from "@adelie/core/kernel";import type { AgentConfigView } from "../services/agent-config-service.js";import type {AgentConfigUpdateRequest,diff --git a/packages/server/src/mechanisms/identity.ts b/packages/server/src/mechanisms/identity.tsindex 8ca24f00..25b23325 100644--- a/packages/server/src/mechanisms/identity.ts+++ b/packages/server/src/mechanisms/identity.ts@@ -1,7 +1,7 @@/*** The identity mechanisms: what a node may require, declared apart from what implements it.*/-import { Interface } from "@lmliheng/penguin-core/kernel";+import { Interface } from "@adelie/core/kernel";import type { UserRow } from "../db/repos/users.js";import type { AuthSessionRow, SessionViaValue } from "../db/repos/auth-sessions.js";import type { UserInfo } from "../api/types.js";diff --git a/packages/server/src/mechanisms/messaging.ts b/packages/server/src/mechanisms/messaging.tsindex 9c2278b3..57016d32 100644--- a/packages/server/src/mechanisms/messaging.ts+++ b/packages/server/src/mechanisms/messaging.ts@@ -1,7 +1,7 @@/*** The messaging mechanisms: what a node may require, declared apart from what implements it.*/-import { Interface } from "@lmliheng/penguin-core/kernel";+import { Interface } from "@adelie/core/kernel";import type { MessagingBindingRow } from "../db/repos/messaging-bindings.js";/** MessagingBindings: the mechanism MessagingBindingsRepo implements. */diff --git a/packages/server/src/mechanisms/observability.ts b/packages/server/src/mechanisms/observability.tsindex eca4a6b7..c6e48a6d 100644--- a/packages/server/src/mechanisms/observability.ts+++ b/packages/server/src/mechanisms/observability.ts@@ -1,8 +1,8 @@/*** The observability mechanisms: what a node may require, declared apart from what implements it.*/-import { Interface } from "@lmliheng/penguin-core/kernel";-import type { Opaque } from "@lmliheng/penguin-core/kernel";+import { Interface } from "@adelie/core/kernel";+import type { Opaque } from "@adelie/core/kernel";import type {ErrorCodeCount,ErrorFilter,@@ -54,7 +54,7 @@ import type {ToolCallOutputPayload,ToolCallPayload,ToolListReadyPayload,-} from "@lmliheng/penguin-core";+} from "@adelie/core";import type {UsageQuery,UsageErrorsClearQuery,diff --git a/packages/server/src/mechanisms/organization.ts b/packages/server/src/mechanisms/organization.tsindex e27864ce..1f4aed0c 100644--- a/packages/server/src/mechanisms/organization.ts+++ b/packages/server/src/mechanisms/organization.ts@@ -2,8 +2,8 @@* The organization mechanisms: what a node may require, declared apart from what* implements it.*/-import { Interface } from "@lmliheng/penguin-core/kernel";-import type { Opaque } from "@lmliheng/penguin-core/kernel";+import { Interface } from "@adelie/core/kernel";+import type { Opaque } from "@adelie/core/kernel";import type { OrgCacheRepo } from "../db/repos/organizations.js";/**diff --git a/packages/server/src/mechanisms/projects.ts b/packages/server/src/mechanisms/projects.tsindex bb5ee84f..d62a2b84 100644--- a/packages/server/src/mechanisms/projects.ts+++ b/packages/server/src/mechanisms/projects.ts@@ -1,7 +1,7 @@/*** The projects mechanisms: what a node may require, declared apart from what implements it.*/-import { Interface } from "@lmliheng/penguin-core/kernel";+import { Interface } from "@adelie/core/kernel";import type { AccessibleProjectRow, ProjectRow } from "../db/repos/projects.js";import type { MemberRow } from "../db/repos/members.js";import type { AgentRow } from "../db/repos/agents.js";@@ -32,7 +32,7 @@ import type {ModelRef,PluginTables,ProjectConfig,-} from "@lmliheng/penguin-core";+} from "@adelie/core";import type { PricingRates } from "../services/usage-service.js";import type {PlatformModelApplyResult,diff --git a/packages/server/src/mechanisms/sessions.ts b/packages/server/src/mechanisms/sessions.tsindex 09d2e383..d61e56b6 100644--- a/packages/server/src/mechanisms/sessions.ts+++ b/packages/server/src/mechanisms/sessions.ts@@ -1,12 +1,12 @@/*** The sessions mechanisms: what a node may require, declared apart from what implements it.*/-import { Interface } from "@lmliheng/penguin-core/kernel";-import type { Opaque } from "@lmliheng/penguin-core/kernel";+import { Interface } from "@adelie/core/kernel";+import type { Opaque } from "@adelie/core/kernel";import type { SessionSource, ApprovalMode } from "../api/types.js";import type { SessionRow } from "../db/repos/sessions.js";-import type { ThinkingLevelName } from "@lmliheng/penguin-core";-import type { SandboxSettings } from "@lmliheng/penguin-core/plugin";+import type { ThinkingLevelName } from "@adelie/core";+import type { SandboxSettings } from "@adelie/core/plugin";import type { ScheduleStateRow } from "../db/repos/schedules.js";import type { ScheduleFileCache } from "../runtime/schedule-store.js";import type { ScheduleEntryView } from "../runtime/scheduler.js";diff --git a/packages/server/src/mechanisms/settings.ts b/packages/server/src/mechanisms/settings.tsindex cce58e0d..b8a4de8c 100644--- a/packages/server/src/mechanisms/settings.ts+++ b/packages/server/src/mechanisms/settings.ts@@ -1,7 +1,7 @@/*** The settings mechanisms: what a node may require, declared apart from what implements it.*/-import { Interface } from "@lmliheng/penguin-core/kernel";+import { Interface } from "@adelie/core/kernel";/** Settings: the mechanism ServerSettingsRepo implements. */@Interface()diff --git a/packages/server/src/mechanisms/traces.ts b/packages/server/src/mechanisms/traces.tsindex d2127d5a..296c4326 100644--- a/packages/server/src/mechanisms/traces.ts+++ b/packages/server/src/mechanisms/traces.ts@@ -1,7 +1,7 @@/*** The traces mechanisms: what a node may require, declared apart from what implements it.*/-import { Interface } from "@lmliheng/penguin-core/kernel";+import { Interface } from "@adelie/core/kernel";import type {SessionCategory,AgentTracesResponse,@@ -41,7 +41,7 @@ import type {ToolCallOutputPayload,ToolCallPayload,ToolListReadyPayload,-} from "@lmliheng/penguin-core";+} from "@adelie/core";import type {ForkTraceResult,MessagesPageRequest,diff --git a/packages/server/src/mechanisms/vault.ts b/packages/server/src/mechanisms/vault.tsindex a42f549b..236504be 100644--- a/packages/server/src/mechanisms/vault.ts+++ b/packages/server/src/mechanisms/vault.ts@@ -5,7 +5,7 @@* because it is one field of that Agent's state. The user-level vault is its own mechanism here:* it belongs to an ACCOUNT rather than to any Agent, and the two write different files.*/-import { Interface } from "@lmliheng/penguin-core/kernel";+import { Interface } from "@adelie/core/kernel";import type { VaultResponse, VaultUpdateRequest } from "../api/types.js";/** UserVault: the mechanism UserVaultService implements — the signed-in user's own secrets (`<root>/users/<userId>/.vault.toml`). */diff --git a/packages/server/src/mechanisms/workflows.ts b/packages/server/src/mechanisms/workflows.tsindex 7afa18ab..fc26907b 100644--- a/packages/server/src/mechanisms/workflows.ts+++ b/packages/server/src/mechanisms/workflows.ts@@ -15,7 +15,7 @@* serve a UI file, and the version history every successful load appends to — which is* what makes an Agent's own edits to its workflow reversible.*/-import { Interface } from "@lmliheng/penguin-core/kernel";+import { Interface } from "@adelie/core/kernel";/** A request the workflow's handler receives (the HTTP shape, minus the transport). */export interface WorkflowRequest {@@ -64,7 +64,7 @@ export interface WorkflowInput {text: string;}-/** What a workflow provides (its manifest: `provides: { main: "@lmliheng/penguin-server#WorkflowMain" }`). */+/** What a workflow provides (its manifest: `provides: { main: "@adelie/server#WorkflowMain" }`). */@Interface()export abstract class WorkflowMain {abstract handle(request: WorkflowRequest): Promise<WorkflowResponse>;diff --git a/packages/server/src/mechanisms/workspace.ts b/packages/server/src/mechanisms/workspace.tsindex 421d85c2..f8b25920 100644--- a/packages/server/src/mechanisms/workspace.ts+++ b/packages/server/src/mechanisms/workspace.ts@@ -1,7 +1,7 @@/*** The workspace mechanisms: what a node may require, declared apart from what implements it.*/-import { Interface } from "@lmliheng/penguin-core/kernel";+import { Interface } from "@adelie/core/kernel";import type {WorkspaceFileContent,WorkspaceFileReadOptions,diff --git a/packages/server/src/organization/paths.ts b/packages/server/src/organization/paths.tsindex 31ec80bb..7ccc32b3 100644--- a/packages/server/src/organization/paths.ts+++ b/packages/server/src/organization/paths.ts@@ -5,7 +5,7 @@* server reads. Files are the truth for company mode; nothing here touches SQLite.*/import path from "node:path";-import { projectDir } from "@lmliheng/penguin-core";+import { projectDir } from "@adelie/core";import type { OrgTicketStatus } from "../api/types.js";/** The kanban columns in board order; each is a directory under `tickets/<yyyy-mm>/`. */diff --git a/packages/server/src/organization/store.ts b/packages/server/src/organization/store.tsindex 491330a2..f9b1cfcd 100644--- a/packages/server/src/organization/store.ts+++ b/packages/server/src/organization/store.ts@@ -6,7 +6,7 @@*/import fs from "node:fs/promises";import path from "node:path";-import { atomicWriteFile } from "@lmliheng/penguin-core";+import { atomicWriteFile } from "@adelie/core";import type { OrgChannelMessage, OrgTicketStatus } from "../api/types.js";import type {CalendarEvent,diff --git a/packages/server/src/platform.ts b/packages/server/src/platform.tsindex 0da659d2..a8d9f883 100644--- a/packages/server/src/platform.ts+++ b/packages/server/src/platform.ts@@ -1,6 +1,6 @@-import { Component, Module, moduleDefOf, Use } from "@lmliheng/penguin-core/kernel";-import type { ManifestTable, ModuleClass, ModuleDef } from "@lmliheng/penguin-core/kernel";-import { DEFAULT_PROJECT_ID, DEFAULT_PROJECT_NAME } from "@lmliheng/penguin-core";+import { Component, Module, moduleDefOf, Use } from "@adelie/core/kernel";+import type { ManifestTable, ModuleClass, ModuleDef } from "@adelie/core/kernel";+import { DEFAULT_PROJECT_ID, DEFAULT_PROJECT_NAME } from "@adelie/core";import table from "./ifaces.json" with { type: "json" };import type { HmrCapabilities, ReassemblyChange } from "./hmr/capabilities.js";import {diff --git a/packages/server/src/plugin/builtin-index.json b/packages/server/src/plugin/builtin-index.jsonindex 84989299..41c6316e 100644--- a/packages/server/src/plugin/builtin-index.json+++ b/packages/server/src/plugin/builtin-index.json@@ -1,6 +1,6 @@[{- "name": "@lmliheng/penguin-plugin-sandbox-bwrap",+ "name": "@adelie/sandbox-bwrap","version": "0.2.3","description": "Bubblewrap sandbox backend for Adelie: filesystem confinement plus network isolation and path masking.","authors": ["Prism Shadow"],@@ -10,7 +10,7 @@"categories": ["sandbox"]},{- "name": "@lmliheng/penguin-plugin-sandbox-seatbelt",+ "name": "@adelie/sandbox-seatbelt","version": "0.2.3","description": "macOS Seatbelt sandbox backend for Adelie: filesystem confinement plus network isolation and path masking.","authors": ["Prism Shadow"],@@ -20,7 +20,7 @@"categories": ["sandbox"]},{- "name": "@lmliheng/penguin-plugin-sandbox-wsl",+ "name": "@adelie/sandbox-wsl","version": "0.2.3","description": "WSL sandbox backend for Adelie on Windows: commands run in a dedicated WSL2 distro under bubblewrap, with Windows interop switched off.","authors": ["Prism Shadow"],@@ -30,7 +30,7 @@"categories": ["sandbox"]},{- "name": "@lmliheng/penguin-plugin-sandbox-dsh",+ "name": "@adelie/sandbox-dsh","version": "0.2.3","description": "DeepSeek Harness sandbox adaptor for Adelie: the DSH local backend chain behind the harness's own sandbox interface.","authors": ["Prism Shadow"],diff --git a/packages/server/src/plugin/config-page.ts b/packages/server/src/plugin/config-page.tsindex 4f1710ff..52f4aaa7 100644--- a/packages/server/src/plugin/config-page.ts+++ b/packages/server/src/plugin/config-page.ts@@ -7,8 +7,8 @@* sandbox service) is created before this page, and a sandbox backend reading its own group is* created after the provider.*/-import { Interface, Module, Provide, Use } from "@lmliheng/penguin-core/kernel";-import type { ClassCtx, Slot } from "@lmliheng/penguin-core/kernel";+import { Interface, Module, Provide, Use } from "@adelie/core/kernel";+import type { ClassCtx, Slot } from "@adelie/core/kernel";import type {PluginConfigBackend,PluginConfigEntry,diff --git a/packages/server/src/plugin/config.ts b/packages/server/src/plugin/config.tsindex bb2da0c7..7decd38a 100644--- a/packages/server/src/plugin/config.ts+++ b/packages/server/src/plugin/config.ts@@ -32,8 +32,8 @@* the sandbox service) is created before the page, and a sandbox backend reading its own* group is created after the provider: one node for both would close that circle.*/-import { Interface, Module, Provide, Use } from "@lmliheng/penguin-core/kernel";-import type { ClassCtx, Slot } from "@lmliheng/penguin-core/kernel";+import { Interface, Module, Provide, Use } from "@adelie/core/kernel";+import type { ClassCtx, Slot } from "@adelie/core/kernel";import type {PluginConfigEntry,PluginConfigField,diff --git a/packages/server/src/plugin/host.ts b/packages/server/src/plugin/host.tsindex 7649ecd0..b52cf47f 100644--- a/packages/server/src/plugin/host.ts+++ b/packages/server/src/plugin/host.ts@@ -1,9 +1,9 @@/*** The plugin host: the plugins this process loaded, as module definitions the* platform boots as children of its tree. Kept out of ./index.ts so the published- * `@lmliheng/penguin-server/plugin` subpath stays types only.+ * `@adelie/server/plugin` subpath stays types only.*/-import type { IfaceTable, ModuleDef, Resources } from "@lmliheng/penguin-core/kernel";+import type { IfaceTable, ModuleDef, Resources } from "@adelie/core/kernel";/** One loaded plugin: the package, its modules and stand-ins with manifests paired to code, and its generated table. */export interface LoadedPlugin {diff --git a/packages/server/src/plugin/iface-check.ts b/packages/server/src/plugin/iface-check.tsindex 50b6cf9b..57849d8e 100644--- a/packages/server/src/plugin/iface-check.ts+++ b/packages/server/src/plugin/iface-check.ts@@ -20,7 +20,7 @@*/import os from "node:os";import path from "node:path";-import type { IfaceDecl, IfaceTable, Manifest, Sig, TypeExpr } from "@lmliheng/penguin-core/kernel";+import type { IfaceDecl, IfaceTable, Manifest, Sig, TypeExpr } from "@adelie/core/kernel";import type { TypeScript } from "./typescript.js";export class IfaceRenderError extends Error {}diff --git a/packages/server/src/plugin/index.ts b/packages/server/src/plugin/index.tsindex c84a9f35..e977de55 100644--- a/packages/server/src/plugin/index.ts+++ b/packages/server/src/plugin/index.ts@@ -1,7 +1,7 @@/**- * The harness's plugin surface — the `@lmliheng/penguin-server/plugin` subpath.+ * The harness's plugin surface — the `@adelie/server/plugin` subpath.*- * The contract is `@lmliheng/penguin-core/plugin` (a plugin is a set of+ * The contract is `@adelie/core/plugin` (a plugin is a set of* modules) and this module does not re-export it: a plugin imports the contract from* core and this subpath only for what its name promises, so a package's import sites say* which of the two it needs — a sandbox backend, written against the sandbox vocabularydiff --git a/packages/server/src/plugin/loader.ts b/packages/server/src/plugin/loader.tsindex 35a57447..c910b852 100644--- a/packages/server/src/plugin/loader.ts+++ b/packages/server/src/plugin/loader.ts@@ -23,7 +23,7 @@import fs from "node:fs/promises";import type { Dirent } from "node:fs";import { parse as parseToml } from "smol-toml";-import { effectivePluginTable, parsePluginTables, projectConfigPath } from "@lmliheng/penguin-core";+import { effectivePluginTable, parsePluginTables, projectConfigPath } from "@adelie/core";import { findPackageJSON } from "node:module";import { existsSync, readFileSync, statSync } from "node:fs";import path from "node:path";@@ -34,11 +34,11 @@ import type {ModuleClass,ModuleDef,Resources,-} from "@lmliheng/penguin-core/kernel";-import { moduleDefOf, parseManifest } from "@lmliheng/penguin-core/kernel";+} from "@adelie/core/kernel";+import { moduleDefOf, parseManifest } from "@adelie/core/kernel";import { unpackedAssetsDir } from "../hmr/asset-archives.js";import { readManifest } from "../hmr/manifest.js";-import type { Plugin } from "@lmliheng/penguin-core/plugin";+import type { Plugin } from "@adelie/core/plugin";import type { LoadedPlugin } from "./host.js";import { PluginHost, pluginHostFrom } from "./host.js";import platformTable from "../ifaces.json" with { type: "json" };diff --git a/packages/server/src/plugin/registry.ts b/packages/server/src/plugin/registry.tsindex f64bfc01..4ae02196 100644--- a/packages/server/src/plugin/registry.ts+++ b/packages/server/src/plugin/registry.ts@@ -15,7 +15,7 @@* The deployment's registry list is fixed to the builtin one for now; additional* sources plug in as more `PluginRegistry` values.*/-import { builtinPluginDir, loadLibraryPlugins } from "@lmliheng/penguin-core";+import { builtinPluginDir, loadLibraryPlugins } from "@adelie/core";import type { PluginIndexEntry } from "../api/types.js";import builtinIndex from "./builtin-index.json" with { type: "json" };import fs from "node:fs/promises";@@ -97,7 +97,7 @@ const PUBLISHER = "Prism Shadow";* stripped (see core's plugin roots) — so scoping the name back is how the rest of the system* (a Project's plugin list, an install, the market's shelf) names the same package.*/-const PLUGIN_SCOPE = "@lmliheng/";+const PLUGIN_SCOPE = "@adelie/";/*** The built-in library's plugin packages, by specifier: what this build carries because the@@ -134,7 +134,7 @@ export async function shippedPluginNames(/*** Where one plugin package's own files are: its directory, or null when this machine does not* have it. Two kinds of package are on the shelf and they are found differently — a LIBRARY- * package (the ones core carries, `@lmliheng/<directory>`) through core, which resolves them+ * package (the ones core carries, `@adelie/<directory>`) through core, which resolves them* from its own `node_modules` chain and knows a checkout's `plugins/<name>/` is the copy to* read; a staged MODULE plugin (a sandbox backend, seeded by a push) from the bases, the same* lookup a Project's install goes through. Nothing is assumed about either: whatever thediff --git a/packages/server/src/reset-admin-password.ts b/packages/server/src/reset-admin-password.tsindex 225e32d9..8f71e217 100644--- a/packages/server/src/reset-admin-password.ts+++ b/packages/server/src/reset-admin-password.ts@@ -3,7 +3,7 @@* so this does it from the machine that owns the data root (local filesystem access IS the* authorization). The account goes back to unclaimed and the next start prints a first-login* link, so no plaintext is produced for anyone to write down. Refuses while a server is live,- * web.db being single-writer. Exported as `@lmliheng/penguin-server/reset-admin-password`+ * web.db being single-writer. Exported as `@adelie/server/reset-admin-password`* so the CLI need not import the package entry, which starts listening.*/import fs from "node:fs";@@ -16,7 +16,7 @@ import { AuthSessionsRepo } from "./db/repos/auth-sessions.js";import { clearInitialAdminPassword } from "./initial-password.js";import { liveServerLock } from "./lock.js";import type { ServerLock } from "./lock.js";-import { wire } from "@lmliheng/penguin-core/kernel";+import { wire } from "@adelie/core/kernel";export type ResetAdminPasswordResult =/** Refused: a live server owns this data root (stop it first — web.db is single-writer). */diff --git a/packages/server/src/runtime/approvals.ts b/packages/server/src/runtime/approvals.tsindex 92221ab9..c95d8aea 100644--- a/packages/server/src/runtime/approvals.ts+++ b/packages/server/src/runtime/approvals.ts@@ -18,12 +18,7 @@* Docs: /docs/tools § "Approval".*/import type { ApprovalMode } from "../api/types.js";-import type {- ApprovalDecision,- ApproveFn,- OmniMessage,- ToolCallPayload,-} from "@lmliheng/penguin-core";+import type { ApprovalDecision, ApproveFn, OmniMessage, ToolCallPayload } from "@adelie/core";export interface PendingApproval {toolCall: OmniMessage<ToolCallPayload>;diff --git a/packages/server/src/runtime/error-recorder.ts b/packages/server/src/runtime/error-recorder.tsindex c5233a4c..ba9517d5 100644--- a/packages/server/src/runtime/error-recorder.ts+++ b/packages/server/src/runtime/error-recorder.ts@@ -53,7 +53,7 @@*/import { formatLocalDate } from "../internal/dates.js";import { HttpError } from "../http/errors.js";-import { Component, Use } from "@lmliheng/penguin-core/kernel";+import { Component, Use } from "@adelie/core/kernel";import type { Clock } from "../hmr/capabilities.js";import type { ErrorLog, Errors } from "../mechanisms/observability.js";diff --git a/packages/server/src/runtime/goal-events.ts b/packages/server/src/runtime/goal-events.tsindex 6d97a8a2..dfd88827 100644--- a/packages/server/src/runtime/goal-events.ts+++ b/packages/server/src/runtime/goal-events.ts@@ -6,8 +6,8 @@* record shape is interpreted. Round boundaries are core's: an `isHookInput` that an* `isHookContinue` event announced.*/-import { isEventMessage } from "@lmliheng/penguin-core";-import type { OmniMessage } from "@lmliheng/penguin-core";+import { isEventMessage } from "@adelie/core";+import type { OmniMessage } from "@adelie/core";/** The name the goal plugin's hook package answers under. */const GOAL_HOOK_NAME = "goal";diff --git a/packages/server/src/runtime/live-tail.ts b/packages/server/src/runtime/live-tail.tsindex c4d2b962..de0abf29 100644--- a/packages/server/src/runtime/live-tail.ts+++ b/packages/server/src/runtime/live-tail.ts@@ -22,12 +22,8 @@* also closes the fragment (covers stop-less closures, e.g. interruption cleanup); the* whole session entry is dropped when the run ends (SessionManager.drive's finally).*/-import { isPartialPayload } from "@lmliheng/penguin-core";-import type {- CompleteModelPayload,- OmniMessage,- PartialModelPayload,-} from "@lmliheng/penguin-core";+import { isPartialPayload } from "@adelie/core";+import type { CompleteModelPayload, OmniMessage, PartialModelPayload } from "@adelie/core";type PartialKind = PartialModelPayload["type"];diff --git a/packages/server/src/runtime/messaging/bridge.ts b/packages/server/src/runtime/messaging/bridge.tsindex 2fcbde6b..2f1952ee 100644--- a/packages/server/src/runtime/messaging/bridge.ts+++ b/packages/server/src/runtime/messaging/bridge.ts@@ -72,8 +72,8 @@* rather than dropped quietly, and none of it is posted into the chat (see* messagingFilesNotSentRecords).*/-import { imageUrlMessage, scratchpadDir, userText } from "@lmliheng/penguin-core";-import type { OmniMessage } from "@lmliheng/penguin-core";+import { imageUrlMessage, scratchpadDir, userText } from "@adelie/core";+import type { OmniMessage } from "@adelie/core";import type { MessagingDeliveryError, MessagingRuntimeStatus } from "../../api/types.js";import type { MessagingBindingRow } from "../../db/repos/messaging-bindings.js";import { INLINE_IMAGE_MAX_BYTES, toAttachmentLimits } from "../../services/attachment-limits.js";@@ -103,8 +103,8 @@ import {isImageFileName,} from "./media.js";import { replyFileMentions } from "./reply-files.js";-import { Component, Interface, Bind, Module, Provide, Use } from "@lmliheng/penguin-core/kernel";-import type { Slot, ClassCtx } from "@lmliheng/penguin-core/kernel";+import { Component, Interface, Bind, Module, Provide, Use } from "@adelie/core/kernel";+import type { Slot, ClassCtx } from "@adelie/core/kernel";import type { QQScanTransportHandle } from "./qq-scan.js";import { QQScanService, createQQScanTransport } from "./qq-scan.js";import type { AppEnv } from "../../auth/middleware.js";diff --git a/packages/server/src/runtime/messaging/feishu-connector.ts b/packages/server/src/runtime/messaging/feishu-connector.tsindex 8087c090..c06036a6 100644--- a/packages/server/src/runtime/messaging/feishu-connector.ts+++ b/packages/server/src/runtime/messaging/feishu-connector.ts@@ -20,8 +20,8 @@ import type {import { feishuCardOf } from "./feishu-card.js";import type { FeishuApiClient, FeishuCredentials, FeishuMention, FeishuSdk } from "./feishu-sdk.js";import { FeishuApiError, createLarkSdk } from "./feishu-sdk.js";-import { Bind, Component, Interface, Module, Provide, Use } from "@lmliheng/penguin-core/kernel";-import type { ClassCtx, Opaque } from "@lmliheng/penguin-core/kernel";+import { Bind, Component, Interface, Module, Provide, Use } from "@adelie/core/kernel";+import type { ClassCtx, Opaque } from "@adelie/core/kernel";/** Default Feishu open-platform domain (Lark tenants override it in the form). */export const FEISHU_DEFAULT_DOMAIN = "https://open.feishu.cn";diff --git a/packages/server/src/runtime/messaging/qq-connector.ts b/packages/server/src/runtime/messaging/qq-connector.tsindex 7d209cce..0d1223f9 100644--- a/packages/server/src/runtime/messaging/qq-connector.ts+++ b/packages/server/src/runtime/messaging/qq-connector.ts@@ -92,8 +92,8 @@ import type {} from "./qq-api.js";import { QQ_BODY_INDEPENDENT_SEND_CODES, QQApiError, createQQTransport } from "./qq-api.js";import { qqMarkdownOf } from "./qq-markdown.js";-import { Bind, Component, Interface, Module, Provide, Use } from "@lmliheng/penguin-core/kernel";-import type { ClassCtx, Opaque } from "@lmliheng/penguin-core/kernel";+import { Bind, Component, Interface, Module, Provide, Use } from "@adelie/core/kernel";+import type { ClassCtx, Opaque } from "@adelie/core/kernel";import type { Clock } from "../../hmr/capabilities.js";/** The QQ binding's stored config document (`messaging_bindings.config_json`). */diff --git a/packages/server/src/runtime/messaging/qq-scan.ts b/packages/server/src/runtime/messaging/qq-scan.tsindex 76158ba9..7e127534 100644--- a/packages/server/src/runtime/messaging/qq-scan.ts+++ b/packages/server/src/runtime/messaging/qq-scan.ts@@ -31,8 +31,8 @@* style of telegram-api.ts.*/import { createDecipheriv, randomBytes } from "node:crypto";-import { Interface, Module, Provide } from "@lmliheng/penguin-core/kernel";-import type { Opaque } from "@lmliheng/penguin-core/kernel";+import { Interface, Module, Provide } from "@adelie/core/kernel";+import type { Opaque } from "@adelie/core/kernel";/** Host serving the three bind-task calls (not the bot OpenAPI host). */export const QQ_SCAN_BASE = "https://q.qq.com";diff --git a/packages/server/src/runtime/messaging/telegram-connector.ts b/packages/server/src/runtime/messaging/telegram-connector.tsindex 257ae322..2cea77d0 100644--- a/packages/server/src/runtime/messaging/telegram-connector.ts+++ b/packages/server/src/runtime/messaging/telegram-connector.ts@@ -64,8 +64,8 @@ import {TelegramApiError,createTelegramTransport,} from "./telegram-api.js";-import { Bind, Component, Interface, Module, Provide, Use } from "@lmliheng/penguin-core/kernel";-import type { ClassCtx, Opaque } from "@lmliheng/penguin-core/kernel";+import { Bind, Component, Interface, Module, Provide, Use } from "@adelie/core/kernel";+import type { ClassCtx, Opaque } from "@adelie/core/kernel";import type { MessagingTuning } from "./bridge.js";/** The Telegram binding's stored config document (`messaging_bindings.config_json`). */diff --git a/packages/server/src/runtime/messaging/wechat-connector.ts b/packages/server/src/runtime/messaging/wechat-connector.tsindex a929b2e0..935569ed 100644--- a/packages/server/src/runtime/messaging/wechat-connector.ts+++ b/packages/server/src/runtime/messaging/wechat-connector.ts@@ -97,8 +97,8 @@ import type {WeChatTransport,} from "./wechat-api.js";import { WECHAT_API_BASE, createWeChatTransport } from "./wechat-api.js";-import { Bind, Component, Interface, Module, Provide, Use } from "@lmliheng/penguin-core/kernel";-import type { Opaque } from "@lmliheng/penguin-core/kernel";+import { Bind, Component, Interface, Module, Provide, Use } from "@adelie/core/kernel";+import type { Opaque } from "@adelie/core/kernel";import type { MessagingTuning } from "./bridge.js";/** The WeChat binding's stored config document (`messaging_bindings.config_json`). */diff --git a/packages/server/src/runtime/messaging/wechat-scan.ts b/packages/server/src/runtime/messaging/wechat-scan.tsindex 9ab01703..46e4fe9e 100644--- a/packages/server/src/runtime/messaging/wechat-scan.ts+++ b/packages/server/src/runtime/messaging/wechat-scan.ts@@ -1,5 +1,5 @@-import { Interface, Module, Provide } from "@lmliheng/penguin-core/kernel";-import type { Opaque } from "@lmliheng/penguin-core/kernel";+import { Interface, Module, Provide } from "@adelie/core/kernel";+import type { Opaque } from "@adelie/core/kernel";/*** WeChat scan-to-connect: binding the official claw bot by scanning a QR code in WeChat.*diff --git a/packages/server/src/runtime/organization/deps.ts b/packages/server/src/runtime/organization/deps.tsindex b8191edc..c056eac3 100644--- a/packages/server/src/runtime/organization/deps.ts+++ b/packages/server/src/runtime/organization/deps.ts@@ -4,8 +4,8 @@* usage pricing, the file store and the caches. app.ts binds the real services; tests bind* doubles — the same shape the schedule scheduler uses.*/-import type { OmniMessage } from "@lmliheng/penguin-core";-import { Interface } from "@lmliheng/penguin-core/kernel";+import type { OmniMessage } from "@adelie/core";+import { Interface } from "@adelie/core/kernel";import type {ApprovalMode,MessagingChannel,diff --git a/packages/server/src/runtime/organization/reconcile.ts b/packages/server/src/runtime/organization/reconcile.tsindex 391544ad..2dbb964b 100644--- a/packages/server/src/runtime/organization/reconcile.ts+++ b/packages/server/src/runtime/organization/reconcile.ts@@ -10,7 +10,7 @@* organization paused or the switch off is consumed and skipped, like a schedule.*/import { createHash } from "node:crypto";-import { comparePluginVersions } from "@lmliheng/penguin-core";+import { comparePluginVersions } from "@adelie/core";import type { OrgCalendarOutcome, OrgChannelMessage, OrgTicketChange } from "../../api/types.js";import type { OrgDeskMentionRow } from "../../db/repos/organizations.js";import type { SessionRow } from "../../db/repos/sessions.js";diff --git a/packages/server/src/runtime/organization/service.ts b/packages/server/src/runtime/organization/service.tsindex a38913e2..bb0479b5 100644--- a/packages/server/src/runtime/organization/service.ts+++ b/packages/server/src/runtime/organization/service.ts@@ -49,8 +49,8 @@ import type {OrgHandbookFilesResponse,} from "../../api/types.js";import { TICKET_SLUG_PATTERN } from "../../api/types.js";-import { Interface, Module, Provide, Use } from "@lmliheng/penguin-core/kernel";-import type { ClassCtx } from "@lmliheng/penguin-core/kernel";+import { Interface, Module, Provide, Use } from "@adelie/core/kernel";+import type { ClassCtx } from "@adelie/core/kernel";import { HttpError } from "../../http/errors.js";import { userChannelKey } from "../../http/routes/events.js";import type { Channels, Clock, Config, Log } from "../../hmr/capabilities.js";diff --git a/packages/server/src/runtime/organization/triggers.ts b/packages/server/src/runtime/organization/triggers.tsindex 3f34b574..9d817777 100644--- a/packages/server/src/runtime/organization/triggers.ts+++ b/packages/server/src/runtime/organization/triggers.ts@@ -11,8 +11,8 @@* organization's approval mode of that moment; a later change of the mode reaches them* through `syncApprovalMode` (reconcile.ts).*/-import { buildOrgTriggerMessage, userText } from "@lmliheng/penguin-core";-import type { OrgTriggerOrigin } from "@lmliheng/penguin-core";+import { buildOrgTriggerMessage, userText } from "@adelie/core";+import type { OrgTriggerOrigin } from "@adelie/core";import type { TicketDoc } from "../../organization/files.js";import { orgLanguage, serializeTicket } from "../../organization/files.js";import { agentPrincipal } from "../../organization/principal.js";diff --git a/packages/server/src/runtime/schedule-store.ts b/packages/server/src/runtime/schedule-store.tsindex 3ac14553..f770ae51 100644--- a/packages/server/src/runtime/schedule-store.ts+++ b/packages/server/src/runtime/schedule-store.ts@@ -8,8 +8,8 @@import fs from "node:fs/promises";import path from "node:path";import { stringify as stringifyToml } from "smol-toml";-import { atomicWriteFile, resolveModelRef, scheduleDir } from "@lmliheng/penguin-core";-import type { ProjectConfig } from "@lmliheng/penguin-core";+import { atomicWriteFile, resolveModelRef, scheduleDir } from "@adelie/core";+import type { ProjectConfig } from "@adelie/core";import { cacheable, statMtime } from "../internal/mtime-gate.js";import {parseScheduleFile,diff --git a/packages/server/src/runtime/scheduler.ts b/packages/server/src/runtime/scheduler.tsindex b502a042..bbba0129 100644--- a/packages/server/src/runtime/scheduler.ts+++ b/packages/server/src/runtime/scheduler.ts@@ -21,7 +21,7 @@*/import { createHash } from "node:crypto";import fs from "node:fs/promises";-import { agentsDir, buildScheduledMessage, userText } from "@lmliheng/penguin-core";+import { agentsDir, buildScheduledMessage, userText } from "@adelie/core";import type { ScheduleStateRow } from "../db/repos/schedules.js";import { cacheable, statMtime } from "../internal/mtime-gate.js";import type { ErrorSink } from "./error-recorder.js";@@ -30,8 +30,8 @@ import { latestSlotAt, slotInWindow } from "./schedule-file.js";import { ScheduleFileCache, readScheduleFile, validateScheduleModelRef } from "./schedule-store.js";import type { ScheduleConfigSource } from "./schedule-store.js";import type { ScheduleServerEvent } from "../api/types.js";-import { Component, Interface, Use } from "@lmliheng/penguin-core/kernel";-import type { ClassCtx } from "@lmliheng/penguin-core/kernel";+import { Component, Interface, Use } from "@adelie/core/kernel";+import type { ClassCtx } from "@adelie/core/kernel";import { userChannelKey } from "../http/routes/events.js";import type { Channels, Clock, Paths } from "../hmr/capabilities.js";import type { Schedules, Scheduling, SessionIndex } from "../mechanisms/sessions.js";diff --git a/packages/server/src/runtime/session-manager.ts b/packages/server/src/runtime/session-manager.tsindex 61938c0c..af024196 100644--- a/packages/server/src/runtime/session-manager.ts+++ b/packages/server/src/runtime/session-manager.ts@@ -47,7 +47,7 @@ import {parseUserSteeringText,tracesDir,userText,-} from "@lmliheng/penguin-core";+} from "@adelie/core";import type {ApproveFn,BackgroundCommandInfo,@@ -66,7 +66,7 @@ import type {TextPayload,ThinkingLevelName,ToolDetachResult,-} from "@lmliheng/penguin-core";+} from "@adelie/core";import type {ModelRefDto,PendingFollowUpInfo,@@ -89,9 +89,9 @@ import { unrunSource } from "./session-sources.js";import { StreamErrorWatcher } from "./stream-error-watcher.js";import type { TitleNotifier } from "./title-generator.js";import type { UsageContext } from "./usage-recorder.js";-import { Component, Interface, Module, Provide, Use } from "@lmliheng/penguin-core/kernel";+import { Component, Interface, Module, Provide, Use } from "@adelie/core/kernel";import type { SessionService as SessionServiceImpl } from "../services/session-service.js";-import type { ClassCtx, Opaque } from "@lmliheng/penguin-core/kernel";+import type { ClassCtx, Opaque } from "@adelie/core/kernel";import { Sandbox, SandboxModule } from "../sandbox/service.js";import { SANDBOX_GROUP } from "../sandbox/settings-store.js";import { sandboxEnabledOf, sandboxPresetsOf, sandboxStartOf } from "../sandbox/settings-policy.js";@@ -111,7 +111,7 @@ import type { Settings } from "../mechanisms/settings.js";import type { MessagingBindings } from "../mechanisms/messaging.js";import type { OrgCache } from "../mechanisms/organization.js";import { enabledMessagingChannel } from "./messaging/enabled-channel.js";-import { MODELSCOPE_PROVIDER_ID } from "@lmliheng/penguin-core/model-catalog";+import { MODELSCOPE_PROVIDER_ID } from "@adelie/core/model-catalog";/*** 409 for when there's nothing to compact: give the specific reason rather than adiff --git a/packages/server/src/runtime/session-sources.ts b/packages/server/src/runtime/session-sources.tsindex 76d05e9a..a21858c8 100644--- a/packages/server/src/runtime/session-sources.ts+++ b/packages/server/src/runtime/session-sources.ts@@ -14,7 +14,7 @@*/import type { SessionCategory, SessionSource } from "../api/types.js";import type { SessionRow } from "../db/repos/sessions.js";-import { Component } from "@lmliheng/penguin-core/kernel";+import { Component } from "@adelie/core/kernel";import type { SessionOrigins } from "../mechanisms/sessions.js";/**diff --git a/packages/server/src/runtime/stream-error-watcher.ts b/packages/server/src/runtime/stream-error-watcher.tsindex 2882980b..dceadc32 100644--- a/packages/server/src/runtime/stream-error-watcher.ts+++ b/packages/server/src/runtime/stream-error-watcher.ts@@ -63,9 +63,9 @@* session_meta hasn't arrived yet) falls back to the parent ctx. projectId is always* taken from the parent — a subagent is necessarily in the same Project.*/-import { isEventMessage, isModelMessage, isSessionMeta } from "@lmliheng/penguin-core";+import { isEventMessage, isModelMessage, isSessionMeta } from "@adelie/core";import path from "node:path";-import type { OmniMessage, SessionMetaMessage, StopReason } from "@lmliheng/penguin-core";+import type { OmniMessage, SessionMetaMessage, StopReason } from "@adelie/core";import { MESSAGE_MAX } from "./error-recorder.js";import type { ErrorContext, ErrorKind, ErrorSink } from "./error-recorder.js";diff --git a/packages/server/src/runtime/title-generator.ts b/packages/server/src/runtime/title-generator.tsindex 7fd5ae80..87a2e49c 100644--- a/packages/server/src/runtime/title-generator.ts+++ b/packages/server/src/runtime/title-generator.ts@@ -27,7 +27,7 @@ import {stripConversationMarkers,tokenUsage,truncateTitle,-} from "@lmliheng/penguin-core";+} from "@adelie/core";import type { ServerEvent } from "../api/types.js";import type { ChannelHub } from "./channel.js";import type { ErrorSink } from "./error-recorder.js";diff --git a/packages/server/src/runtime/usage-recorder.ts b/packages/server/src/runtime/usage-recorder.tsindex 47cb76c5..05016db7 100644--- a/packages/server/src/runtime/usage-recorder.ts+++ b/packages/server/src/runtime/usage-recorder.ts@@ -18,10 +18,10 @@* The attribution key is always the paired reference `(provider, model_id)` (the same* model_id name across different vendors is attributed separately).*/-import { isEventMessage, isSessionMeta } from "@lmliheng/penguin-core";-import type { OmniMessage } from "@lmliheng/penguin-core";+import { isEventMessage, isSessionMeta } from "@adelie/core";+import type { OmniMessage } from "@adelie/core";import { formatLocalDate } from "../internal/dates.js";-import { Component, Use } from "@lmliheng/penguin-core/kernel";+import { Component, Use } from "@adelie/core/kernel";import type { Clock } from "../hmr/capabilities.js";import type { UsageRecording, UsageStore } from "../mechanisms/observability.js";import type { ProjectConfigStore } from "../mechanisms/projects.js";diff --git a/packages/server/src/sandbox/dimensions.ts b/packages/server/src/sandbox/dimensions.tsindex f7ffc3c9..acc15cfd 100644--- a/packages/server/src/sandbox/dimensions.ts+++ b/packages/server/src/sandbox/dimensions.ts@@ -1,18 +1,14 @@/*** Runtime helpers over the sandbox vocabulary.*- * The vocabulary itself is `@lmliheng/penguin-core/plugin` — a backend compiles+ * The vocabulary itself is `@adelie/core/plugin` — a backend compiles* against those names, so they belong with the rest of the plugin contract rather than* inside the harness that routes them. What stays here is the code that READS those* shapes: which dimensions a provider covers and which a settings object requires, the two* questions service.ts routes on. That is the embedder's business, and keeping it out of* the contract is what stops it becoming a runtime dependency of every plugin package.*/-import type {- SandboxDimension,- SandboxProvider,- SandboxSettings,-} from "@lmliheng/penguin-core/plugin";+import type { SandboxDimension, SandboxProvider, SandboxSettings } from "@adelie/core/plugin";/** Every dimension, in the order error messages list them. */export const SANDBOX_DIMENSIONS: readonly SandboxDimension[] = [diff --git a/packages/server/src/sandbox/index.ts b/packages/server/src/sandbox/index.tsindex c73a45c7..0129061d 100644--- a/packages/server/src/sandbox/index.ts+++ b/packages/server/src/sandbox/index.ts@@ -5,7 +5,7 @@** The vocabulary it routes ON is not here. `SandboxPolicy`, `SandboxProvider`,* `ConfinedArgv` and the mode/dimension unions belong to the plugin contract in- * `@lmliheng/penguin-core/plugin`, because a backend is written against those names+ * `@adelie/core/plugin`, because a backend is written against those names* and nothing else. What this directory holds is the embedder's half: which policy reaches* which backend, the settings behind it, and the fail-closed behaviour when nothing covers* the request.diff --git a/packages/server/src/sandbox/service.ts b/packages/server/src/sandbox/service.tsindex 6d20848d..40b12bcc 100644--- a/packages/server/src/sandbox/service.ts+++ b/packages/server/src/sandbox/service.ts@@ -12,7 +12,7 @@* never a silent unconfined run, and never a silently dropped dimension.*/import fs from "node:fs";-import type { SpawnConfiner } from "@lmliheng/penguin-core";+import type { SpawnConfiner } from "@adelie/core";import type {SandboxDimension,SandboxLimit,@@ -20,10 +20,10 @@ import type {SandboxProvider,SandboxProviderSource,SandboxSettings,-} from "@lmliheng/penguin-core/plugin";+} from "@adelie/core/plugin";import { providerDimensions, requestedDimensions } from "./dimensions.js";-import { Interface, Module, Provide } from "@lmliheng/penguin-core/kernel";-import type { Slot, ClassCtx, Json } from "@lmliheng/penguin-core/kernel";+import { Interface, Module, Provide } from "@adelie/core/kernel";+import type { Slot, ClassCtx, Json } from "@adelie/core/kernel";interface MountedProvider {name: string;diff --git a/packages/server/src/sandbox/settings-policy.ts b/packages/server/src/sandbox/settings-policy.tsindex 5708b89a..0529302d 100644--- a/packages/server/src/sandbox/settings-policy.ts+++ b/packages/server/src/sandbox/settings-policy.ts@@ -11,7 +11,7 @@* Session started from it (Full Access, Always Ask) is unconfined. A document stored before the* card had a default preset starts Sessions by its own mode and network until one is picked.*/-import type { SandboxMode, SandboxSettings as Policy } from "@lmliheng/penguin-core/plugin";+import type { SandboxMode, SandboxSettings as Policy } from "@adelie/core/plugin";import type {ApprovalMode,PluginConfigNotice,diff --git a/packages/server/src/sandbox/settings-status.ts b/packages/server/src/sandbox/settings-status.tsindex 7e39c11c..e2ee5267 100644--- a/packages/server/src/sandbox/settings-status.ts+++ b/packages/server/src/sandbox/settings-status.ts@@ -5,8 +5,8 @@* and which backend packages this OS defaults to. A code contribution, so it must not require* plugin configuration itself.*/-import { Bind, Component, Use } from "@lmliheng/penguin-core/kernel";-import type { SandboxDimension } from "@lmliheng/penguin-core/plugin";+import { Bind, Component, Use } from "@adelie/core/kernel";+import type { SandboxDimension } from "@adelie/core/plugin";import type { PluginConfigNotice } from "../api/types.js";import type { PluginConfigUnavailable, SettingsGroupStatus } from "../plugin/config-page.js";import { Sandbox, SandboxModule } from "./service.js";@@ -28,9 +28,9 @@ import {* implementing more).*/const DEFAULT_BACKENDS: Partial<Record<NodeJS.Platform, readonly string[]>> = {- linux: ["@lmliheng/penguin-plugin-sandbox-bwrap", "@lmliheng/penguin-plugin-sandbox-dsh"],- darwin: ["@lmliheng/penguin-plugin-sandbox-seatbelt"],- win32: ["@lmliheng/penguin-plugin-sandbox-wsl"],+ linux: ["@adelie/sandbox-bwrap", "@adelie/sandbox-dsh"],+ darwin: ["@adelie/sandbox-seatbelt"],+ win32: ["@adelie/sandbox-wsl"],};/** Each dimension as the card names it, in English and Chinese. */diff --git a/packages/server/src/sandbox/settings-store.ts b/packages/server/src/sandbox/settings-store.tsindex 5b02644d..06a0fd1e 100644--- a/packages/server/src/sandbox/settings-store.ts+++ b/packages/server/src/sandbox/settings-store.ts@@ -12,8 +12,8 @@* The card's live status (what this machine enforces, which backends are not in use and why)* is `SandboxSettingsStatus`, in settings-status.ts.*/-import { Bind, Component, Use } from "@lmliheng/penguin-core/kernel";-import type { SandboxMode, SandboxSettings as Policy } from "@lmliheng/penguin-core/plugin";+import { Bind, Component, Use } from "@adelie/core/kernel";+import type { SandboxMode, SandboxSettings as Policy } from "@adelie/core/plugin";import type { PluginConfigNotice } from "../api/types.js";import { PluginConfig } from "../plugin/config.js";import { Sandbox, SandboxModule } from "./service.js";diff --git a/packages/server/src/secret-file.ts b/packages/server/src/secret-file.tsindex c988d4a7..a03dfca8 100644--- a/packages/server/src/secret-file.ts+++ b/packages/server/src/secret-file.ts@@ -2,7 +2,7 @@* Writes a bearer secret to a 0600 file, refusing to follow a symlink parked at the path:* someone who can write the directory but not read the file could otherwise redirect the write* into a file they CAN read. Hence unlink + exclusive create, and chmod on the fd rather than- * the path. Exported as `@lmliheng/penguin-server/secret-file` so the CLI shares it.+ * the path. Exported as `@adelie/server/secret-file` so the CLI shares it.*/import fs from "node:fs";diff --git a/packages/server/src/services/admin-service.ts b/packages/server/src/services/admin-service.tsindex 199adc4a..c51f3d43 100644--- a/packages/server/src/services/admin-service.ts+++ b/packages/server/src/services/admin-service.ts@@ -19,7 +19,7 @@ import { ADMIN_USER_ID, MIN_PASSWORD_LENGTH, toUserInfo } from "../auth/service.import type { PasswordHasher } from "../auth/password.js";import type { UserRow } from "../db/repos/users.js";import { SEMANTIC_ID_RULE, USERNAME_PATTERN } from "./ids.js";-import { Component, Use } from "@lmliheng/penguin-core/kernel";+import { Component, Use } from "@adelie/core/kernel";import type { Clock } from "../hmr/capabilities.js";import type { LiveStreams } from "../auth/live-streams.js";import type { SessionIndex } from "../mechanisms/sessions.js";diff --git a/packages/server/src/services/agent-config-service.ts b/packages/server/src/services/agent-config-service.tsindex 645f2d23..c94a2276 100644--- a/packages/server/src/services/agent-config-service.ts+++ b/packages/server/src/services/agent-config-service.ts@@ -38,12 +38,8 @@ import {saveAgentVault,systemConfigPath,THINKING_LEVEL_NAMES,-} from "@lmliheng/penguin-core";-import type {- MCPServerConfig,- ThinkingLevelName,- ToolDefinitionConfig,-} from "@lmliheng/penguin-core";+} from "@adelie/core";+import type { MCPServerConfig, ThinkingLevelName, ToolDefinitionConfig } from "@adelie/core";import type {AgentConfigDto,AgentConfigUpdateRequest,@@ -68,7 +64,7 @@ import {optionalString,} from "../http/validate.js";import { maskApiKey } from "./project-config-service.js";-import { Component, Use } from "@lmliheng/penguin-core/kernel";+import { Component, Use } from "@adelie/core/kernel";import type { Config, Paths } from "../hmr/capabilities.js";import type { AgentConfig } from "../mechanisms/agents.js";diff --git a/packages/server/src/services/agent-routes.ts b/packages/server/src/services/agent-routes.tsindex 24b87e9b..099766d4 100644--- a/packages/server/src/services/agent-routes.ts+++ b/packages/server/src/services/agent-routes.ts@@ -1,4 +1,4 @@-import { Bind, Component, Use } from "@lmliheng/penguin-core/kernel";+import { Bind, Component, Use } from "@adelie/core/kernel";import type { AppEnv } from "../auth/middleware.js";import type { Hono } from "hono";import type { Clock, Config } from "../hmr/capabilities.js";diff --git a/packages/server/src/services/agent-service.ts b/packages/server/src/services/agent-service.tsindex 7007d292..10311a48 100644--- a/packages/server/src/services/agent-service.ts+++ b/packages/server/src/services/agent-service.ts@@ -32,14 +32,14 @@ import {libraryPlugin,loadLibraryPlugins,parseSkillFrontmatter,-} from "@lmliheng/penguin-core";-import type { LibraryPlugin } from "@lmliheng/penguin-core";+} from "@adelie/core";+import type { LibraryPlugin } from "@adelie/core";import { SEMANTIC_ID_PATTERN, SEMANTIC_ID_RULE } from "./ids.js";import { isTopicFileName } from "./memory-service.js";import type { PluginUpdateRef } from "../api/types.js";import { resolveLibraryPlugins } from "./plugin-library.js";import { resolveDirectorySkills } from "./directory-skills.js";-import { Component, Use } from "@lmliheng/penguin-core/kernel";+import { Component, Use } from "@adelie/core/kernel";import type { Config, Paths } from "../hmr/capabilities.js";import type { AgentConfig, AgentLifecycle, Snapshots } from "../mechanisms/agents.js";import type { AgentIndex } from "../mechanisms/projects.js";diff --git a/packages/server/src/services/benchmark-service.ts b/packages/server/src/services/benchmark-service.tsindex dd9648e4..843f0ac9 100644--- a/packages/server/src/services/benchmark-service.ts+++ b/packages/server/src/services/benchmark-service.ts@@ -21,7 +21,7 @@ import fs from "node:fs/promises";import path from "node:path";import { parse as parseToml, stringify as stringifyToml } from "smol-toml";import { parse as parseYaml, stringify as stringifyYaml } from "yaml";-import { benchmarksDir } from "@lmliheng/penguin-core";+import { benchmarksDir } from "@adelie/core";import type {BenchmarkCaseScore,BenchmarkCaseSummary,@@ -36,7 +36,7 @@ import type {} from "../api/types.js";import type { WorkspaceFileContent, WorkspaceFileReadOptions } from "./workspace-files-service.js";import { HttpError } from "../http/errors.js";-import { Component, Use } from "@lmliheng/penguin-core/kernel";+import { Component, Use } from "@adelie/core/kernel";import type { Paths } from "../hmr/capabilities.js";import type { Benchmarks } from "../mechanisms/agents.js";import type { WorkspaceFiles } from "../mechanisms/workspace.js";diff --git a/packages/server/src/services/context-breakdown.ts b/packages/server/src/services/context-breakdown.tsindex 9e6e711d..4d999282 100644--- a/packages/server/src/services/context-breakdown.ts+++ b/packages/server/src/services/context-breakdown.ts@@ -27,14 +27,14 @@ import {approximateMessagesTokens,approximateTokens,effectiveMaxContextLength,-} from "@lmliheng/penguin-core";+} from "@adelie/core";import type {OmniMessage,SessionMetaPayload,ToolCallOutputPayload,ToolCallPayload,ToolListReadyPayload,-} from "@lmliheng/penguin-core";+} from "@adelie/core";import type { ContextFileShare, SessionContextParts } from "../api/types.js";/** How many entries each ranking — tools, files — names before the tail is dropped. */diff --git a/packages/server/src/services/directory-skills.ts b/packages/server/src/services/directory-skills.tsindex f8172f15..ed40e52c 100644--- a/packages/server/src/services/directory-skills.ts+++ b/packages/server/src/services/directory-skills.ts@@ -22,8 +22,8 @@*/import fs from "node:fs/promises";import path from "node:path";-import { parseSkillFrontmatter, PLUGIN_NAME_PATTERN } from "@lmliheng/penguin-core";-import type { SkillMetadata } from "@lmliheng/penguin-core";+import { parseSkillFrontmatter, PLUGIN_NAME_PATTERN } from "@adelie/core";+import type { SkillMetadata } from "@adelie/core";import { HttpError } from "../http/errors.js";import {MAX_ARCHIVE_FILES,diff --git a/packages/server/src/services/harness-history.ts b/packages/server/src/services/harness-history.tsindex 4572106f..97ca89df 100644--- a/packages/server/src/services/harness-history.ts+++ b/packages/server/src/services/harness-history.ts@@ -15,20 +15,20 @@*/import fsp from "node:fs/promises";import path from "node:path";-import { Component, Interface, Use } from "@lmliheng/penguin-core/kernel";-import type { ClassCtx } from "@lmliheng/penguin-core/kernel";-import { atomicWriteFile } from "@lmliheng/penguin-core";+import { Component, Interface, Use } from "@adelie/core/kernel";+import type { ClassCtx } from "@adelie/core/kernel";+import { atomicWriteFile } from "@adelie/core";import type {HarnessHistory,HarnessHistoryEntry,HarnessInfo,IfacesSummary,RollbackFailure,-} from "@lmliheng/penguin-core";+} from "@adelie/core";import table from "../ifaces.json" with { type: "json" };import { readHarnessInfo } from "../hmr/manifest.js";import { readPushedBuild } from "../hmr/pushed-build.js";-import { summarizeTable } from "@lmliheng/penguin-hmr";+import { summarizeTable } from "@adelie/hmr";import type {Channels,Clock,diff --git a/packages/server/src/services/memory-service.ts b/packages/server/src/services/memory-service.tsindex 23ea7dfb..51963940 100644--- a/packages/server/src/services/memory-service.ts+++ b/packages/server/src/services/memory-service.ts@@ -37,7 +37,7 @@ import {memoryScopeDir,parseMemoryFrontmatter,readWorkspaceMarker,-} from "@lmliheng/penguin-core";+} from "@adelie/core";import type {MemoryFileInfo,MemoryFilesResponse,@@ -51,7 +51,7 @@ import type {} from "../api/types.js";import { HttpError } from "../http/errors.js";import { badRequest } from "../http/validate.js";-import { Component, Use } from "@lmliheng/penguin-core/kernel";+import { Component, Use } from "@adelie/core/kernel";import type { Config, Paths } from "../hmr/capabilities.js";import type { AgentConfig, Memory } from "../mechanisms/agents.js";diff --git a/packages/server/src/services/message-window.ts b/packages/server/src/services/message-window.tsindex c7d2e734..0e876d60 100644--- a/packages/server/src/services/message-window.ts+++ b/packages/server/src/services/message-window.ts@@ -36,13 +36,13 @@* prefix records (trace_files.page_stats) persist the carry so old shards are read at* most once ever; bump CACHE_VERSION whenever any rule in this file changes.*/-import { parseUserSteeringText } from "@lmliheng/penguin-core";+import { parseUserSteeringText } from "@adelie/core";import {parseBackgroundTaskDoneMessage,parseHandoffMessage,parseModelSwitchMessage,-} from "@lmliheng/penguin-core/markers";-import type { OmniMessage } from "@lmliheng/penguin-core";+} from "@adelie/core/markers";+import type { OmniMessage } from "@adelie/core";/** Bump when any counting/boundary rule changes: cached page_stats records with an older version are recomputed. */export const CACHE_VERSION = 4;diff --git a/packages/server/src/services/model-balance.ts b/packages/server/src/services/model-balance.tsindex a093ce92..e254c0ad 100644--- a/packages/server/src/services/model-balance.ts+++ b/packages/server/src/services/model-balance.ts@@ -22,8 +22,8 @@* relayed — only its HTTP status.*/import { createHash } from "node:crypto";-import { providerInfo } from "@lmliheng/penguin-core/model-catalog";-import type { ModelProviderBalance } from "@lmliheng/penguin-core/model-catalog";+import { providerInfo } from "@adelie/core/model-catalog";+import type { ModelProviderBalance } from "@adelie/core/model-catalog";import type {ModelBalanceAmount,ModelBalanceFailure,diff --git a/packages/server/src/services/model-oauth-service.ts b/packages/server/src/services/model-oauth-service.tsindex 37089dd3..0b398dad 100644--- a/packages/server/src/services/model-oauth-service.ts+++ b/packages/server/src/services/model-oauth-service.ts@@ -24,11 +24,11 @@* minutes anyway, and no key exists until the exchange runs).*/import { createHash, randomBytes, randomUUID } from "node:crypto";-import { APP_URL, providerInfo } from "@lmliheng/penguin-core/model-catalog";-import type { ModelProviderOAuth } from "@lmliheng/penguin-core/model-catalog";+import { APP_URL, providerInfo } from "@adelie/core/model-catalog";+import type { ModelProviderOAuth } from "@adelie/core/model-catalog";import { HttpError } from "../http/errors.js";import { badRequest } from "../http/validate.js";-import { Component, Use } from "@lmliheng/penguin-core/kernel";+import { Component, Use } from "@adelie/core/kernel";import type { ModelOAuth, ProjectConfigStore } from "../mechanisms/projects.js";/** How the user gets the authorization code back to the harness. */diff --git a/packages/server/src/services/modelscope-auth-service.ts b/packages/server/src/services/modelscope-auth-service.tsindex 387b54c7..e32c7477 100644--- a/packages/server/src/services/modelscope-auth-service.ts+++ b/packages/server/src/services/modelscope-auth-service.ts@@ -16,8 +16,8 @@* immediately before each upstream request, silently rotating the access token near expiry.*/import { randomBytes } from "node:crypto";-import { Interface, Module, Provide, Use } from "@lmliheng/penguin-core/kernel";-import { MODELSCOPE_PROVIDER_ID } from "@lmliheng/penguin-core/model-catalog";+import { Interface, Module, Provide, Use } from "@adelie/core/kernel";+import { MODELSCOPE_PROVIDER_ID } from "@adelie/core/model-catalog";import { HttpError } from "../http/errors.js";import { Config } from "../hmr/capabilities.js";import type {diff --git a/packages/server/src/services/platform-auth-service.ts b/packages/server/src/services/platform-auth-service.tsindex 6b5518a6..bb76d24f 100644--- a/packages/server/src/services/platform-auth-service.ts+++ b/packages/server/src/services/platform-auth-service.ts@@ -8,8 +8,8 @@* metadata remain outside Adelie.*/import { randomBytes } from "node:crypto";-import { Interface, Module, Provide, Use } from "@lmliheng/penguin-core/kernel";-import { PENGUIN_GO_PROVIDER_ID } from "@lmliheng/penguin-core/model-catalog";+import { Interface, Module, Provide, Use } from "@adelie/core/kernel";+import { PENGUIN_GO_PROVIDER_ID } from "@adelie/core/model-catalog";import { HttpError } from "../http/errors.js";import { Config } from "../hmr/capabilities.js";import type { ProjectConfigStore } from "../mechanisms/projects.js";diff --git a/packages/server/src/services/plugin-download.ts b/packages/server/src/services/plugin-download.tsindex 5513a83c..a0c7404f 100644--- a/packages/server/src/services/plugin-download.ts+++ b/packages/server/src/services/plugin-download.ts@@ -11,7 +11,7 @@* question (http/routes/plugins.ts + services/tar-archive.ts), not this module's — a plain* download link is passed through untouched.*- * Why npm at all: every plugin in the library IS an npm package (`@lmliheng/<name>`, see+ * Why npm at all: every plugin in the library IS an npm package (`@adelie/<name>`, see* plugins/README.md), so an operator publishes theirs there and installs it here by name, without* a repository checkout or a zip to hand around. That is what the registry lookup below is for —* a name and an optional version in, the tarball npm serves for them out.diff --git a/packages/server/src/services/plugin-library.ts b/packages/server/src/services/plugin-library.tsindex f1afc302..bd1a9378 100644--- a/packages/server/src/services/plugin-library.ts+++ b/packages/server/src/services/plugin-library.ts@@ -8,8 +8,8 @@* library types is withheld from the API until someone adds it here on purpose; skill bodies* and hook scripts never travel in a listing.*/-import { libraryPlugin } from "@lmliheng/penguin-core";-import type { HookManifest, LibraryPlugin, SkillMetadata } from "@lmliheng/penguin-core";+import { libraryPlugin } from "@adelie/core";+import type { HookManifest, LibraryPlugin, SkillMetadata } from "@adelie/core";import type { HookItem, PluginItem, SkillMetadataItem } from "../api/types.js";import { HttpError } from "../http/errors.js";diff --git a/packages/server/src/services/project-access.ts b/packages/server/src/services/project-access.tsindex cfb79c7c..3fb24faa 100644--- a/packages/server/src/services/project-access.ts+++ b/packages/server/src/services/project-access.ts@@ -9,7 +9,7 @@import type { ProjectRole, ProjectSummary } from "../api/types.js";import { HttpError } from "../http/errors.js";import type { ProjectRow } from "../db/repos/projects.js";-import { Component, Use } from "@lmliheng/penguin-core/kernel";+import { Component, Use } from "@adelie/core/kernel";import type { Access, Members, ProjectConfigStore, Projects } from "../mechanisms/projects.js";@Component()diff --git a/packages/server/src/services/project-config-service.ts b/packages/server/src/services/project-config-service.tsindex b65a0888..42ffed93 100644--- a/packages/server/src/services/project-config-service.ts+++ b/packages/server/src/services/project-config-service.ts@@ -52,13 +52,13 @@ import {modelEnvPreviewKey,resolveModelCredential,userText,-} from "@lmliheng/penguin-core";+} from "@adelie/core";import {VENDOR_ENDPOINTS,providerInfo,unaddableModel,unroutableVendorModel,-} from "@lmliheng/penguin-core/model-catalog";+} from "@adelie/core/model-catalog";import type {PluginTables,CommandPolicyRule,@@ -68,7 +68,7 @@ import type {ModelRef,OmniMessage,ProjectConfig,-} from "@lmliheng/penguin-core";+} from "@adelie/core";import type {ChatDefaultsDto,CommandPolicyDto,@@ -105,7 +105,7 @@ import {classifyVisionProbeError,} from "./vision-detect.js";import type { PricingRates } from "./usage-service.js";-import { Component, Use } from "@lmliheng/penguin-core/kernel";+import { Component, Use } from "@adelie/core/kernel";import type { Config, Paths } from "../hmr/capabilities.js";import type {ModelPromotion,diff --git a/packages/server/src/services/project-events.ts b/packages/server/src/services/project-events.tsindex b55efc90..b6d0d31d 100644--- a/packages/server/src/services/project-events.ts+++ b/packages/server/src/services/project-events.ts@@ -7,7 +7,7 @@* listening on. The session runtime, the title generator and the sessions route all* publish through this, so the audience rule is written once.*/-import { Component, Use } from "@lmliheng/penguin-core/kernel";+import { Component, Use } from "@adelie/core/kernel";import type { ServerEvent } from "../api/types.js";import type { Channels } from "../hmr/capabilities.js";import type { ChannelHub } from "../runtime/channel.js";diff --git a/packages/server/src/services/project-service.ts b/packages/server/src/services/project-service.tsindex 161e96f9..29807e42 100644--- a/packages/server/src/services/project-service.ts+++ b/packages/server/src/services/project-service.ts@@ -16,7 +16,7 @@ import {DEFAULT_PROJECT_NAME,projectDir,provisionProjectAgents,-} from "@lmliheng/penguin-core";+} from "@adelie/core";import type { MemberInfo, ProjectRole, ProjectSummary } from "../api/types.js";import { HttpError } from "../http/errors.js";import type { ProjectRow } from "../db/repos/projects.js";@@ -28,7 +28,7 @@ import {SEMANTIC_ID_PATTERN,SEMANTIC_ID_RULE,} from "./ids.js";-import { Component, Use, Interface } from "@lmliheng/penguin-core/kernel";+import { Component, Use, Interface } from "@adelie/core/kernel";import type { Config, Paths } from "../hmr/capabilities.js";import type {Access,diff --git a/packages/server/src/services/protocol-detect.ts b/packages/server/src/services/protocol-detect.tsindex 646686df..c19f0462 100644--- a/packages/server/src/services/protocol-detect.ts+++ b/packages/server/src/services/protocol-detect.ts@@ -52,7 +52,7 @@* works with no credential at all (a protocol-shaped 401 identifies the route), and sending* the user's vendor key to a URL they typed is exactly what the rule forbids.*/-import { endpointEnvApiKey } from "@lmliheng/penguin-core";+import { endpointEnvApiKey } from "@adelie/core";import type {ModelProtocolDetectResponse,ModelProtocolProbeDto,diff --git a/packages/server/src/services/reveal-path.ts b/packages/server/src/services/reveal-path.tsindex 34749b1f..3618c990 100644--- a/packages/server/src/services/reveal-path.ts+++ b/packages/server/src/services/reveal-path.ts@@ -13,7 +13,7 @@*/import { spawn } from "node:child_process";import path from "node:path";-import { Component } from "@lmliheng/penguin-core/kernel";+import { Component } from "@adelie/core/kernel";import type { FileReveal } from "../mechanisms/workspace.js";/** The command that reveals `filePath` on `platform`. Pure; exported for unit tests. */diff --git a/packages/server/src/services/sandbox-ceiling.ts b/packages/server/src/services/sandbox-ceiling.tsindex 451250e3..1a830095 100644--- a/packages/server/src/services/sandbox-ceiling.ts+++ b/packages/server/src/services/sandbox-ceiling.ts@@ -5,7 +5,7 @@* (`SessionSandboxPreset.aboveCeiling`) — both by this one comparison, so the menu never offers* a non-admin what the server will refuse.*/-import type { SandboxSettings } from "@lmliheng/penguin-core/plugin";+import type { SandboxSettings } from "@adelie/core/plugin";import type { SessionSandbox } from "../api/types.js";const SANDBOX_MODE_RANK: Record<SandboxSettings["mode"], number> = {diff --git a/packages/server/src/services/semantic-id.ts b/packages/server/src/services/semantic-id.tsindex d31cf994..c908f325 100644--- a/packages/server/src/services/semantic-id.ts+++ b/packages/server/src/services/semantic-id.ts@@ -29,7 +29,7 @@* `placeholderSemanticId` is the floor — a valid, dated, obviously-temporary id, so the dialog* is never left with nothing to put in the box.*/-import { isValidId } from "@lmliheng/penguin-core";+import { isValidId } from "@adelie/core";import type { SemanticIdKind } from "../api/types.js";import { PROJECT_ID_MAX_LENGTH, PROJECT_SUFFIX_PATTERN, SEMANTIC_ID_PATTERN } from "./ids.js";diff --git a/packages/server/src/services/session-service.ts b/packages/server/src/services/session-service.tsindex 7159d526..4178f6b8 100644--- a/packages/server/src/services/session-service.ts+++ b/packages/server/src/services/session-service.ts@@ -14,18 +14,8 @@* added to session-manager's active table (state idle).*/import fs from "node:fs/promises";-import {- agentsDir,- createAgent,- isSessionMeta,- normalizeSessionSource,-} from "@lmliheng/penguin-core";-import type {- AgentAssembly,- ControlEnvContext,- ProxyEnvPolicy,- SpawnConfiner,-} from "@lmliheng/penguin-core";+import { agentsDir, createAgent, isSessionMeta, normalizeSessionSource } from "@adelie/core";+import type { AgentAssembly, ControlEnvContext, ProxyEnvPolicy, SpawnConfiner } from "@adelie/core";import type {ApprovalMode,MessagingChannel,@@ -48,7 +38,7 @@ import { matchesWorkspaceGroup } from "./workspace-group.js";import type { TraceIndex, TraceIndexStore } from "../mechanisms/traces.js";import type { SessionIndex, SessionOrigins } from "../mechanisms/sessions.js";import type { ProjectConfigStore } from "../mechanisms/projects.js";-import type { SandboxDimension, SandboxSettings } from "@lmliheng/penguin-core/plugin";+import type { SandboxDimension, SandboxSettings } from "@adelie/core/plugin";import { aboveSandboxCeiling } from "./sandbox-ceiling.js";/** A stored policy's network level as the composer names it. */diff --git a/packages/server/src/services/snapshot-service.ts b/packages/server/src/services/snapshot-service.tsindex 7c9e59a7..f7a9664f 100644--- a/packages/server/src/services/snapshot-service.ts+++ b/packages/server/src/services/snapshot-service.ts@@ -22,10 +22,10 @@ import {agentVaultPath,snapshotsDir,systemConfigPath,-} from "@lmliheng/penguin-core";+} from "@adelie/core";import { HttpError } from "../http/errors.js";import { badRequest } from "../http/validate.js";-import { Component, Use } from "@lmliheng/penguin-core/kernel";+import { Component, Use } from "@adelie/core/kernel";import type { Config, Paths } from "../hmr/capabilities.js";import type { Snapshots } from "../mechanisms/agents.js";diff --git a/packages/server/src/services/storage-service.ts b/packages/server/src/services/storage-service.tsindex 8751f4e1..4c67ae59 100644--- a/packages/server/src/services/storage-service.ts+++ b/packages/server/src/services/storage-service.ts@@ -57,15 +57,15 @@ import {storagePlansDir,storageTrashDir,storageTrashId,-} from "@lmliheng/penguin-core";+} from "@adelie/core";import type {StorageClass,StorageEntry as LedgerEntry,StorageLiveSet,StoragePlan,StoragePlanEntry,-} from "@lmliheng/penguin-core";-import { Component, Interface, Use } from "@lmliheng/penguin-core/kernel";+} from "@adelie/core";+import { Component, Interface, Use } from "@adelie/core/kernel";import { HttpError } from "../http/errors.js";import type {StorageApplyResponse,diff --git a/packages/server/src/services/task-attachments.ts b/packages/server/src/services/task-attachments.tsindex b602a52c..497277ec 100644--- a/packages/server/src/services/task-attachments.ts+++ b/packages/server/src/services/task-attachments.ts@@ -10,14 +10,14 @@** The line format and its placement are not defined here: they are shared with core's* `[attached image: …]` producer and the Web renderer that parses both- * (`@lmliheng/penguin-core/markers` → attachment-lines.ts, plus `appendAttachmentLines`),+ * (`@adelie/core/markers` → attachment-lines.ts, plus `appendAttachmentLines`),* so the two conventions cannot drift apart.*/import fs from "node:fs/promises";import path from "node:path";import { randomBytes } from "node:crypto";-import { appendAttachmentLines, attachedFileLine, modelVisiblePath } from "@lmliheng/penguin-core";-import type { OmniMessage } from "@lmliheng/penguin-core";+import { appendAttachmentLines, attachedFileLine, modelVisiblePath } from "@adelie/core";+import type { OmniMessage } from "@adelie/core";import { HttpError } from "../http/errors.js";import { badRequest } from "../http/validate.js";import type { AttachmentLimits } from "./attachment-limits.js";diff --git a/packages/server/src/services/trace-images.ts b/packages/server/src/services/trace-images.tsindex d06e82f5..1ebdace7 100644--- a/packages/server/src/services/trace-images.ts+++ b/packages/server/src/services/trace-images.ts@@ -17,7 +17,7 @@* `text/html` data URL served there would be a document, not a picture. Any other data URL* stays inline, where it is as harmless as it always was.*/-import type { ImageUrlPayload, OmniMessage, ToolCallOutputPayload } from "@lmliheng/penguin-core";+import type { ImageUrlPayload, OmniMessage, ToolCallOutputPayload } from "@adelie/core";import type { HistoryMessage, TracePosition } from "../api/types.js";/** Image types the trace-image route serves (core's own supported set). */diff --git a/packages/server/src/services/trace-index.ts b/packages/server/src/services/trace-index.tsindex 64503391..b44ebc74 100644--- a/packages/server/src/services/trace-index.ts+++ b/packages/server/src/services/trace-index.ts@@ -39,19 +39,14 @@*/import fs from "node:fs/promises";import path from "node:path";-import {- agentsDir,- isSessionMeta,- normalizeSessionSource,- tracesDir,-} from "@lmliheng/penguin-core";-import type { OmniMessage } from "@lmliheng/penguin-core";+import { agentsDir, isSessionMeta, normalizeSessionSource, tracesDir } from "@adelie/core";+import type { OmniMessage } from "@adelie/core";import type { TraceFileRow, TraceSessionRow } from "../db/repos/trace-index.js";import { TraceIndexRepo } from "../db/repos/trace-index.js";import { cacheable, statMtime } from "../internal/mtime-gate.js";import { readTraceHead } from "../internal/trace-head.js";import { fallbackTitle } from "../runtime/title-generator.js";-import { Component, Use } from "@lmliheng/penguin-core/kernel";+import { Component, Use } from "@adelie/core/kernel";import type { Paths } from "../hmr/capabilities.js";import type { TraceIndex, TraceIndexStore } from "../mechanisms/traces.js";import type { SessionOrigins } from "../mechanisms/sessions.js";diff --git a/packages/server/src/services/trace-line-index.ts b/packages/server/src/services/trace-line-index.tsindex a38e2938..6f2bca05 100644--- a/packages/server/src/services/trace-line-index.ts+++ b/packages/server/src/services/trace-line-index.ts@@ -21,7 +21,7 @@* `TRACE_LINE_INDEX_MAX_FILES` files are kept.*/import fs from "node:fs/promises";-import type { OmniMessage } from "@lmliheng/penguin-core";+import type { OmniMessage } from "@adelie/core";/** How many files keep their index (least recently used is dropped first). */export const TRACE_LINE_INDEX_MAX_FILES = 32;diff --git a/packages/server/src/services/trace-service.ts b/packages/server/src/services/trace-service.tsindex 7b5313b0..3cea493a 100644--- a/packages/server/src/services/trace-service.ts+++ b/packages/server/src/services/trace-service.ts@@ -28,8 +28,8 @@ import {resumeTrace,scratchpadDir,tracesDir,-} from "@lmliheng/penguin-core";-import type { CompactionMode, OmniMessage } from "@lmliheng/penguin-core";+} from "@adelie/core";+import type { CompactionMode, OmniMessage } from "@adelie/core";import type {AgentTraceSessionEntry,AgentTracesResponse,@@ -81,7 +81,7 @@ import { listCategory, readRecordedSource } from "../runtime/session-sources.js"import { TraceIndexService, traceFilePath } from "./trace-index.js";import { TraceLineIndex } from "./trace-line-index.js";import { traceRecordImage, withImagesByReference } from "./trace-images.js";-import { Component, Use } from "@lmliheng/penguin-core/kernel";+import { Component, Use } from "@adelie/core/kernel";import type { Paths } from "../hmr/capabilities.js";import type { TraceIndex, TraceIndexStore, Traces } from "../mechanisms/traces.js";import type { SessionIndex, SessionOrigins } from "../mechanisms/sessions.js";diff --git a/packages/server/src/services/update-check-service.ts b/packages/server/src/services/update-check-service.tsindex 5f220056..98939b30 100644--- a/packages/server/src/services/update-check-service.ts+++ b/packages/server/src/services/update-check-service.ts@@ -16,12 +16,12 @@* cannot import the CLI package (the dependency runs the other way), hence the small* duplication. fetch and the clock are injectable so tests never touch the network.*/-import { BUILD_DATE, VERSION, compareVersions, normalizeVersion } from "@lmliheng/penguin-core";+import { BUILD_DATE, VERSION, compareVersions, normalizeVersion } from "@adelie/core";import type { UpdateCheckResponse } from "../api/types.js";-import { Bind, Component, Interface, Use } from "@lmliheng/penguin-core/kernel";+import { Bind, Component, Interface, Use } from "@adelie/core/kernel";import type { AppEnv } from "../auth/middleware.js";import type { Hono } from "hono";-import type { ClassCtx, Opaque } from "@lmliheng/penguin-core/kernel";+import type { ClassCtx, Opaque } from "@adelie/core/kernel";import { versionRoutes } from "../http/routes/version.js";import type { Clock, Config, Lifecycle } from "../hmr/capabilities.js";import type { UpdateJob } from "./update-job.js";diff --git a/packages/server/src/services/update-job.ts b/packages/server/src/services/update-job.tsindex bde6059e..8806d6da 100644--- a/packages/server/src/services/update-job.ts+++ b/packages/server/src/services/update-job.ts@@ -34,7 +34,7 @@* A platform hot-swap while a run is in flight builds a fresh service that knows nothing of* it; the child finishes on its own and only its status is lost. Rare enough to accept.*/-import { Component, Interface } from "@lmliheng/penguin-core/kernel";+import { Component, Interface } from "@adelie/core/kernel";import { spawn } from "node:child_process";import type { UpdateJobPhase, UpdateJobStatus, UpdateRunResponse } from "../api/types.js";diff --git a/packages/server/src/services/usage-service.ts b/packages/server/src/services/usage-service.tsindex 40014347..9a43c7da 100644--- a/packages/server/src/services/usage-service.ts+++ b/packages/server/src/services/usage-service.ts@@ -44,7 +44,7 @@ import {localDateMinusDays,} from "../internal/dates.js";import { badRequest } from "../http/validate.js";-import { Component, Use } from "@lmliheng/penguin-core/kernel";+import { Component, Use } from "@adelie/core/kernel";import type { Clock } from "../hmr/capabilities.js";import type { ErrorLog, UsageQueries, UsageStore } from "../mechanisms/observability.js";import type { ProjectConfigStore } from "../mechanisms/projects.js";diff --git a/packages/server/src/services/user-vault-service.ts b/packages/server/src/services/user-vault-service.tsindex 9d51ff8f..bb930dae 100644--- a/packages/server/src/services/user-vault-service.ts+++ b/packages/server/src/services/user-vault-service.ts@@ -24,10 +24,10 @@ import {isValidVaultKey,loadUserVault,saveUserVault,-} from "@lmliheng/penguin-core";+} from "@adelie/core";import type { VaultResponse, VaultUpdateRequest } from "../api/types.js";import { badRequest } from "../http/validate.js";-import { Component, Use } from "@lmliheng/penguin-core/kernel";+import { Component, Use } from "@adelie/core/kernel";import type { Paths } from "../hmr/capabilities.js";import type { AgentConfig } from "../mechanisms/agents.js";import type { UserVault } from "../mechanisms/vault.js";diff --git a/packages/server/src/services/vision-detect.ts b/packages/server/src/services/vision-detect.tsindex a8c1a4ae..718ee03b 100644--- a/packages/server/src/services/vision-detect.ts+++ b/packages/server/src/services/vision-detect.ts@@ -21,7 +21,7 @@* - `failed` anything else (auth, network, timeout, an unrelated 400): the probe* learned nothing, so the capability stays exactly as the user left it.*/-import type { LLMOutcome } from "@lmliheng/penguin-core";+import type { LLMOutcome } from "@adelie/core";/** What one vision probe concluded. */export type VisionProbeOutcome = "supported" | "unsupported" | "failed";diff --git a/packages/server/src/services/workspace-files-service.ts b/packages/server/src/services/workspace-files-service.tsindex f091b0e0..3affbb10 100644--- a/packages/server/src/services/workspace-files-service.ts+++ b/packages/server/src/services/workspace-files-service.ts@@ -17,7 +17,7 @@ import type {} from "../api/types.js";import { HttpError } from "../http/errors.js";import { badRequest } from "../http/validate.js";-import { Component } from "@lmliheng/penguin-core/kernel";+import { Component } from "@adelie/core/kernel";import type { WorkspaceFiles } from "../mechanisms/workspace.js";/** Per-file read cap (a safety limit since preview/download reads the whole file into memory). */diff --git a/packages/server/src/terminal/manager.ts b/packages/server/src/terminal/manager.tsindex e19a8374..44a35ed7 100644--- a/packages/server/src/terminal/manager.ts+++ b/packages/server/src/terminal/manager.ts@@ -12,7 +12,7 @@* whatever it is running) alive — that is the entire point of a server-side terminal.*/import fsp from "node:fs/promises";-import type { Resources, Opaque, ClassCtx, Json } from "@lmliheng/penguin-core/kernel";+import type { Resources, Opaque, ClassCtx, Json } from "@adelie/core/kernel";import path from "node:path";import { HttpError } from "../http/errors.js";import { spawnHelperHint } from "./spawn-helper.js";@@ -22,7 +22,7 @@ import {type CreateTerminalSessionOptions,type TerminalSessionInfo,} from "./session.js";-import { Interface, Bind, Module, Provide, Use } from "@lmliheng/penguin-core/kernel";+import { Interface, Bind, Module, Provide, Use } from "@adelie/core/kernel";import type { AppEnv } from "../auth/middleware.js";import type { Hono } from "hono";import { Hmr, ResourceGroups } from "../hmr/capabilities.js";diff --git a/packages/server/src/version-report.ts b/packages/server/src/version-report.tsindex f4543ab2..85f202bc 100644--- a/packages/server/src/version-report.ts+++ b/packages/server/src/version-report.ts@@ -11,8 +11,8 @@* (see ./hmr/manifest.ts), and is exported as its own entry point so the CLI can reach it* without pulling in a server: the module graph here is core plus a `node:fs` read.*/-import { buildInfo } from "@lmliheng/penguin-core";-import type { VersionReport } from "@lmliheng/penguin-core";+import { buildInfo } from "@adelie/core";+import type { VersionReport } from "@adelie/core";import { readHarnessInfo } from "./hmr/manifest.js";/**diff --git a/packages/server/src/workflows/compile.ts b/packages/server/src/workflows/compile.tsindex 4712e1a1..1c5bdcfe 100644--- a/packages/server/src/workflows/compile.ts+++ b/packages/server/src/workflows/compile.ts@@ -6,7 +6,7 @@* runs, not ones the first request answers. The server builds one program from the entry* (and whatever it imports), under options the HOST fixes — `strict`, NodeNext; a* `tsconfig.json` in the folder is not consulted, so a workflow cannot switch strictness- * off for itself. `@lmliheng/penguin-server/plugin` resolves to the types the harness+ * off for itself. `@adelie/server/plugin` resolves to the types the harness* wrote into the folder (./harness-types.ts), never to a package: what the workflow was* written against. Whether that still fits this platform is ../plugin/iface-check.ts.*@@ -27,7 +27,7 @@ import { harnessTypesFile } from "./harness-types.js";export const ENTRY = "index.ts";export const BUILD_DIR = ".build";/** The module a workflow imports its types from. */-export const TYPES_MODULE = "@lmliheng/penguin-server/plugin";+export const TYPES_MODULE = "@adelie/server/plugin";const CHECK_FILE = "__workflow_check__.ts";const CHECK_SOURCE = `import type { WorkflowPackage } from ${JSON.stringify(TYPES_MODULE)};import pkg from "./index.js";diff --git a/packages/server/src/workflows/harness-types.ts b/packages/server/src/workflows/harness-types.tsindex 11a71abd..ee490956 100644--- a/packages/server/src/workflows/harness-types.ts+++ b/packages/server/src/workflows/harness-types.ts@@ -6,7 +6,7 @@* not install its types: the first load writes them into `<workflow>/.harness/`, rendered* from THIS platform's interface table —*- * plugin.d.ts what `@lmliheng/penguin-server/plugin` resolves to for this workflow+ * plugin.d.ts what `@adelie/server/plugin` resolves to for this workflow* (./compile.ts): `WorkflowHost`, `WorkflowMain` and what they reach, plus* the shape of the default export* ifaces.json the slice of the table those declarations were rendered from — the@@ -23,7 +23,7 @@*/import fs from "node:fs";import path from "node:path";-import type { IfaceTable } from "@lmliheng/penguin-core/kernel";+import type { IfaceTable } from "@adelie/core/kernel";import { renderDts } from "../plugin/iface-check.js";export const HARNESS_DIR = ".harness";@@ -71,10 +71,10 @@ running harness's types afresh.## Files- \`package.json\` — \`"type": "module"\`, and the manifest under \`penguin.modules\`: a module named- \`Workflow\` that requires \`host\` (\`@lmliheng/penguin-server#WorkflowHost\`, from \`Host\`),- provides \`main\` (\`@lmliheng/penguin-server#WorkflowMain\`) and contributes its tabs.+ \`Workflow\` that requires \`host\` (\`@adelie/server#WorkflowHost\`, from \`Host\`),+ provides \`main\` (\`@adelie/server#WorkflowMain\`) and contributes its tabs.- \`index.ts\` — TypeScript, never JavaScript. \`export default { modules: { Workflow: { create(ctx) {- … } } } } satisfies WorkflowPackage\`, types imported from \`@lmliheng/penguin-server/plugin\`+ … } } } } satisfies WorkflowPackage\`, types imported from \`@adelie/server/plugin\`(it resolves to \`.harness/plugin.d.ts\`; nothing to install).- \`ui/\` — pages and their assets. A page calls the workflow's handler at \`../api/<path>\`.diff --git a/packages/server/src/workflows/routes.ts b/packages/server/src/workflows/routes.tsindex 65de0c75..ef7825c2 100644--- a/packages/server/src/workflows/routes.ts+++ b/packages/server/src/workflows/routes.ts@@ -16,7 +16,7 @@import fs from "node:fs/promises";import path from "node:path";import { Hono } from "hono";-import { Bind, Component, Use } from "@lmliheng/penguin-core/kernel";+import { Bind, Component, Use } from "@adelie/core/kernel";import type { AppEnv } from "../auth/middleware.js";import { HttpError } from "../http/errors.js";import { requireValidId } from "../http/validate.js";diff --git a/packages/server/src/workflows/service.ts b/packages/server/src/workflows/service.tsindex 681f5af2..9aaee4ef 100644--- a/packages/server/src/workflows/service.ts+++ b/packages/server/src/workflows/service.ts@@ -24,7 +24,7 @@import fs from "node:fs";import path from "node:path";import { pathToFileURL } from "node:url";-import { bootModules, Component, parseManifest, Use } from "@lmliheng/penguin-core/kernel";+import { bootModules, Component, parseManifest, Use } from "@adelie/core/kernel";import type {ClassCtx,IfaceDecl,@@ -32,8 +32,8 @@ import type {Manifest,ModuleDef,ModuleTree,-} from "@lmliheng/penguin-core/kernel";-import { userText } from "@lmliheng/penguin-core";+} from "@adelie/core/kernel";+import { userText } from "@adelie/core";import table from "../ifaces.json" with { type: "json" };import type { ServerEvent } from "../api/types.js";import type { Channels, Clock, Hmr, Log, Paths } from "../hmr/capabilities.js";@@ -72,7 +72,7 @@ import {type WorkflowFolder,} from "./store.js";-const PKG = "@lmliheng/penguin-server";+const PKG = "@adelie/server";export const HOST_MODULE = "Host";export const ROOT_MODULE = "Workflow";export const HOST_IFACE = `${PKG}#WorkflowHost`;diff --git a/packages/server/src/workflows/store.ts b/packages/server/src/workflows/store.tsindex 7fd8991e..e2701077 100644--- a/packages/server/src/workflows/store.ts+++ b/packages/server/src/workflows/store.ts@@ -18,7 +18,7 @@import { createHash, randomBytes } from "node:crypto";import fs from "node:fs/promises";import path from "node:path";-import { agentDir } from "@lmliheng/penguin-core";+import { agentDir } from "@adelie/core";import type { WorkflowVersion } from "../mechanisms/workflows.js";export const STATE_FILE = "state.json";diff --git a/packages/server/test/abort-compaction.test.ts b/packages/server/test/abort-compaction.test.tsindex 43a72310..12bd8c33 100644--- a/packages/server/test/abort-compaction.test.ts+++ b/packages/server/test/abort-compaction.test.ts@@ -11,8 +11,8 @@* - Given an idle Session, an abort answers 204 and starts nothing.*/import { afterAll, beforeAll, beforeEach, describe, expect, it } from "vitest";-import { compactionBegin, compactionEnd } from "@lmliheng/penguin-core";-import type { OmniMessage } from "@lmliheng/penguin-core";+import { compactionBegin, compactionEnd } from "@adelie/core";+import type { OmniMessage } from "@adelie/core";import { adoptSession, fakeSession, uniqueSessionId } from "./fixtures/session.js";import { apiClient, createTestApp, provisionUser, waitFor } from "./helpers.js";import type { TestApp } from "./helpers.js";diff --git a/packages/server/test/admin-storage.test.ts b/packages/server/test/admin-storage.test.tsindex 7fb2a7f5..0dfcc75e 100644--- a/packages/server/test/admin-storage.test.ts+++ b/packages/server/test/admin-storage.test.ts@@ -18,7 +18,7 @@import fs from "node:fs/promises";import path from "node:path";import { afterAll, beforeAll, describe, expect, it } from "vitest";-import { DEFAULT_PROJECT_ID, STORAGE_CLASSES } from "@lmliheng/penguin-core";+import { DEFAULT_PROJECT_ID, STORAGE_CLASSES } from "@adelie/core";import type { StorageReport, StorageReportResponse } from "../src/api/types.js";import { apiClient, createTestApp, loginAdmin, provisionUser } from "./helpers.js";import type { TestApp } from "./helpers.js";diff --git a/packages/server/test/admin-users.test.ts b/packages/server/test/admin-users.test.tsindex 37031d6f..0271ecc0 100644--- a/packages/server/test/admin-users.test.ts+++ b/packages/server/test/admin-users.test.ts@@ -7,7 +7,7 @@import fs from "node:fs/promises";import path from "node:path";import { afterEach, beforeEach, describe, expect, it } from "vitest";-import { saveProjectConfig } from "@lmliheng/penguin-core";+import { saveProjectConfig } from "@adelie/core";import type { AdminUsersResponse, MembersResponse } from "../src/api/types.js";import { apiClient, createTestApp, loginAdmin, loginUser, provisionUser } from "./helpers.js";import type { TestApp } from "./helpers.js";diff --git a/packages/server/test/agent-config-call-description.test.ts b/packages/server/test/agent-config-call-description.test.tsindex 648c03db..fab22811 100644--- a/packages/server/test/agent-config-call-description.test.ts+++ b/packages/server/test/agent-config-call-description.test.ts@@ -8,8 +8,8 @@*/import { afterAll, beforeAll, beforeEach, describe, expect, it } from "vitest";import fs from "node:fs/promises";-import { systemConfigPath } from "@lmliheng/penguin-core";-import type { ToolDefinitionConfig } from "@lmliheng/penguin-core";+import { systemConfigPath } from "@adelie/core";+import type { ToolDefinitionConfig } from "@adelie/core";import type { AgentConfigResponse, ProjectCreateResponse } from "../src/api/types.js";import { apiClient, createTestApp, provisionUser } from "./helpers.js";import type { TestApp } from "./helpers.js";diff --git a/packages/server/test/agent-config-mcp-servers.test.ts b/packages/server/test/agent-config-mcp-servers.test.tsindex 4af9d8ef..362ea804 100644--- a/packages/server/test/agent-config-mcp-servers.test.ts+++ b/packages/server/test/agent-config-mcp-servers.test.ts@@ -10,7 +10,7 @@import { afterAll, beforeAll, beforeEach, describe, expect, it } from "vitest";import fs from "node:fs/promises";import { fileURLToPath } from "node:url";-import { systemConfigPath } from "@lmliheng/penguin-core";+import { systemConfigPath } from "@adelie/core";import type { AgentConfigResponse, ProjectCreateResponse } from "../src/api/types.js";import { apiClient, createTestApp, provisionUser } from "./helpers.js";import type { TestApp } from "./helpers.js";diff --git a/packages/server/test/agent-config-reset.test.ts b/packages/server/test/agent-config-reset.test.tsindex a559f647..f02cf043 100644--- a/packages/server/test/agent-config-reset.test.ts+++ b/packages/server/test/agent-config-reset.test.ts@@ -8,7 +8,7 @@* the config is not touched.*/import { afterAll, beforeAll, beforeEach, describe, expect, it } from "vitest";-import { defaultSystemConfig } from "@lmliheng/penguin-core";+import { defaultSystemConfig } from "@adelie/core";import type { AgentConfigResponse, ProjectCreateResponse } from "../src/api/types.js";import { apiClient, createTestApp, provisionUser } from "./helpers.js";import type { TestApp } from "./helpers.js";diff --git a/packages/server/test/agent-kernel-update.test.ts b/packages/server/test/agent-kernel-update.test.tsindex 39fb9370..4ac7ff9e 100644--- a/packages/server/test/agent-kernel-update.test.ts+++ b/packages/server/test/agent-kernel-update.test.ts@@ -20,7 +20,7 @@ import {VAULT_PLACEHOLDER,defaultSystemConfig,systemConfigPath,-} from "@lmliheng/penguin-core";+} from "@adelie/core";import type {AgentConfigResponse,AgentKernelUpdateResponse,diff --git a/packages/server/test/agent-trace-detail.test.ts b/packages/server/test/agent-trace-detail.test.tsindex 29b351b6..207d9ce7 100644--- a/packages/server/test/agent-trace-detail.test.ts+++ b/packages/server/test/agent-trace-detail.test.ts@@ -7,8 +7,8 @@* (projectId, agentId, sessionId), with access controlled via requireProjectAccess.*/import { afterEach, beforeEach, describe, expect, it } from "vitest";-import { requestBegin, requestEnd, sessionMeta, userText } from "@lmliheng/penguin-core";-import type { SessionMetaPayload } from "@lmliheng/penguin-core";+import { requestBegin, requestEnd, sessionMeta, userText } from "@adelie/core";+import type { SessionMetaPayload } from "@adelie/core";import type {AgentTracesResponse,ProjectCreateResponse,diff --git a/packages/server/test/agent-transfer.test.ts b/packages/server/test/agent-transfer.test.tsindex 4bf174bc..22dee250 100644--- a/packages/server/test/agent-transfer.test.ts+++ b/packages/server/test/agent-transfer.test.ts@@ -14,7 +14,7 @@ import fs from "node:fs/promises";import path from "node:path";import * as tar from "tar";import { afterAll, beforeAll, beforeEach, describe, expect, it } from "vitest";-import { agentStateDir, snapshotsDir } from "@lmliheng/penguin-core";+import { agentStateDir, snapshotsDir } from "@adelie/core";import type {AgentCreateResponse,AgentImportResponse,diff --git a/packages/server/test/amsp-routes.test.ts b/packages/server/test/amsp-routes.test.tsindex 268b4656..f7f06ef3 100644--- a/packages/server/test/amsp-routes.test.ts+++ b/packages/server/test/amsp-routes.test.ts@@ -66,16 +66,10 @@* - Given a caller that disconnects from the try stream, the run is aborted.*/import { afterAll, beforeAll, describe, expect, it, vi } from "vitest";-import {- abortEvent,- assistantText,- partialText,- requestBegin,- requestEnd,-} from "@lmliheng/penguin-core";-import type { OmniMessage, ToolCallPayload } from "@lmliheng/penguin-core";-import { readSse } from "@lmliheng/amsp";-import type { AmspEvent } from "@lmliheng/amsp";+import { abortEvent, assistantText, partialText, requestBegin, requestEnd } from "@adelie/core";+import type { OmniMessage, ToolCallPayload } from "@adelie/core";+import { readSse } from "@adelie/amsp";+import type { AmspEvent } from "@adelie/amsp";import type {AgentApiKeyCreateResponse,AgentApiResponse,diff --git a/packages/server/test/amsp-translate.test.ts b/packages/server/test/amsp-translate.test.tsindex 7d3ceb48..9951f60d 100644--- a/packages/server/test/amsp-translate.test.ts+++ b/packages/server/test/amsp-translate.test.ts@@ -54,9 +54,9 @@ import {toolCallOutput,userText,withOrigin,-} from "@lmliheng/penguin-core";-import type { OmniMessage, TokenCounts } from "@lmliheng/penguin-core";-import type { AmspEvent } from "@lmliheng/amsp";+} from "@adelie/core";+import type { OmniMessage, TokenCounts } from "@adelie/core";+import type { AmspEvent } from "@adelie/amsp";import type { ServerEvent } from "../src/api/types.js";import { AmspTranslator } from "../src/amsp/translate.js";diff --git a/packages/server/test/auth.test.ts b/packages/server/test/auth.test.tsindex 20b0a61c..d11b2ac3 100644--- a/packages/server/test/auth.test.ts+++ b/packages/server/test/auth.test.ts@@ -23,7 +23,7 @@import fs from "node:fs/promises";import path from "node:path";import { afterEach, beforeEach, describe, expect, it } from "vitest";-import { wire } from "@lmliheng/penguin-core/kernel";+import { wire } from "@adelie/core/kernel";import type { MeResponse, ProjectsResponse } from "../src/api/types.js";import { bootAppDeps } from "../src/app.js";import { hashPassword, ScryptHasher } from "../src/auth/password.js";diff --git a/packages/server/test/benchmarks.test.ts b/packages/server/test/benchmarks.test.tsindex 82a892c0..da697b7b 100644--- a/packages/server/test/benchmarks.test.ts+++ b/packages/server/test/benchmarks.test.ts@@ -19,7 +19,7 @@ import fs from "node:fs/promises";import path from "node:path";import { afterAll, beforeAll, beforeEach, describe, expect, it } from "vitest";import { parse as parseToml } from "smol-toml";-import { benchmarksDir } from "@lmliheng/penguin-core";+import { benchmarksDir } from "@adelie/core";import type {BenchmarkCasesResponse,BenchmarkCreateRequest,diff --git a/packages/server/test/body-limit.test.ts b/packages/server/test/body-limit.test.tsindex 9fcf8cc2..5d87a76c 100644--- a/packages/server/test/body-limit.test.ts+++ b/packages/server/test/body-limit.test.ts@@ -14,8 +14,8 @@* - An under-cap streamed body passes through intact (the cap re-feeds what it counted).*/import { afterAll, beforeAll, beforeEach, describe, expect, it } from "vitest";-import { assistantText } from "@lmliheng/penguin-core";-import type { OmniMessage } from "@lmliheng/penguin-core";+import { assistantText } from "@adelie/core";+import type { OmniMessage } from "@adelie/core";import { bodyLimitBytes, MIN_ATTACHMENT_MB } from "../src/services/attachment-limits.js";import { adoptSession, fakeSession, uniqueSessionId } from "./fixtures/session.js";import { createTestApp, provisionUser, waitFor } from "./helpers.js";diff --git a/packages/server/test/builtin-agents.test.ts b/packages/server/test/builtin-agents.test.tsindex 994ccc33..ab88d3c4 100644--- a/packages/server/test/builtin-agents.test.ts+++ b/packages/server/test/builtin-agents.test.ts@@ -8,7 +8,7 @@import fs from "node:fs/promises";import path from "node:path";import { afterEach, beforeEach, describe, expect, it } from "vitest";-import { libraryPlugin, loadPreinstalledPlugins } from "@lmliheng/penguin-core";+import { libraryPlugin, loadPreinstalledPlugins } from "@adelie/core";import type { BenchmarksResponse } from "../src/api/types.js";import { apiClient, createTestApp, provisionUser, type TestApp } from "./helpers.js";diff --git a/packages/server/test/builtin-prefix-lock.test.ts b/packages/server/test/builtin-prefix-lock.test.tsindex 2f4a76be..0bae2426 100644--- a/packages/server/test/builtin-prefix-lock.test.ts+++ b/packages/server/test/builtin-prefix-lock.test.ts@@ -47,12 +47,12 @@ describe("integrityMismatches", () => {const npmLock = (linuxIntegrity: string | undefined) => ({packages: {"": { name: "penguin-builtin-plugins" },- "node_modules/@lmliheng/penguin-plugin-sandbox-dsh": { version: "0.2.3" },+ "node_modules/@adelie/sandbox-dsh": { version: "0.2.3" },"node_modules/koffi": { version: "3.1.6", integrity: "sha512-koffi" },"node_modules/@koromix/koffi-linux-x64": { version: "3.1.6", integrity: linuxIntegrity },},});- const builtins = new Set(["@lmliheng/penguin-plugin-sandbox-dsh"]);+ const builtins = new Set(["@adelie/sandbox-dsh"]);it.each([["sha512-linux", []],diff --git a/packages/server/test/config.test.ts b/packages/server/test/config.test.tsindex 0d0bd7a3..45a487ec 100644--- a/packages/server/test/config.test.ts+++ b/packages/server/test/config.test.ts@@ -17,7 +17,7 @@*/import { describe, expect, it } from "vitest";import path from "node:path";-import { resolveRoot } from "@lmliheng/penguin-core";+import { resolveRoot } from "@adelie/core";import { resolveServerConfig } from "../src/config.js";const base = { PENGUIN_HOME: "/tmp/penguin-config-test" };diff --git a/packages/server/test/context-breakdown.test.ts b/packages/server/test/context-breakdown.test.tsindex 8c9f781f..87e8a748 100644--- a/packages/server/test/context-breakdown.test.ts+++ b/packages/server/test/context-breakdown.test.ts@@ -22,8 +22,8 @@ import {toolCallOutput,toolListReady,userText,-} from "@lmliheng/penguin-core";-import type { OmniMessage, SessionMetaPayload, ToolDefinition } from "@lmliheng/penguin-core";+} from "@adelie/core";+import type { OmniMessage, SessionMetaPayload, ToolDefinition } from "@adelie/core";import {buildContextBreakdown,compactionThresholdFor,diff --git a/packages/server/test/db-upgrade.test.ts b/packages/server/test/db-upgrade.test.tsindex e1b1c7b5..602b6050 100644--- a/packages/server/test/db-upgrade.test.ts+++ b/packages/server/test/db-upgrade.test.ts@@ -42,7 +42,7 @@ import { MessagingBindingsRepo } from "../src/db/repos/messaging-bindings.js";import { SessionsRepo } from "../src/db/repos/sessions.js";import { UsersRepo } from "../src/db/repos/users.js";import type { SessionRow } from "../src/db/repos/sessions.js";-import { wire } from "@lmliheng/penguin-core/kernel";+import { wire } from "@adelie/core/kernel";const sqlite = process.getBuiltinModule("node:sqlite");diff --git a/packages/server/test/directory-skills.test.ts b/packages/server/test/directory-skills.test.tsindex de9115ec..c05129b4 100644--- a/packages/server/test/directory-skills.test.ts+++ b/packages/server/test/directory-skills.test.ts@@ -21,7 +21,7 @@ import fs from "node:fs/promises";import os from "node:os";import path from "node:path";import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest";-import { skillsDir, librarySkill } from "@lmliheng/penguin-core";+import { skillsDir, librarySkill } from "@adelie/core";import type {AgentCreateResponse,AgentsResponse,diff --git a/packages/server/test/errors.test.ts b/packages/server/test/errors.test.tsindex 82dd9a43..f409a553 100644--- a/packages/server/test/errors.test.ts+++ b/packages/server/test/errors.test.ts@@ -55,8 +55,8 @@ import {toolCall,toolCallOutput,withOrigin,-} from "@lmliheng/penguin-core";-import type { OmniMessage, StopReason } from "@lmliheng/penguin-core";+} from "@adelie/core";+import type { OmniMessage, StopReason } from "@adelie/core";import type { ProjectCreateResponse, UsageErrorsPage, UsageResponse } from "../src/api/types.js";import { openDatabase } from "../src/db/database.js";import { ErrorsRepo } from "../src/db/repos/errors.js";@@ -73,7 +73,7 @@ import { MessagingConnectionClosedError } from "../src/runtime/messaging/qq-api.import { StreamErrorWatcher } from "../src/runtime/stream-error-watcher.js";import { apiClient, createTestApp, loginAdmin, provisionUser } from "./helpers.js";import type { TestApp } from "./helpers.js";-import { wire } from "@lmliheng/penguin-core/kernel";+import { wire } from "@adelie/core/kernel";function row(date: string, o: Partial<ErrorRecordInsert> = {}): ErrorRecordInsert {return {diff --git a/packages/server/test/fixtures/amsp-stream.ts b/packages/server/test/fixtures/amsp-stream.tsindex 68c9e0ad..83cf8c5f 100644--- a/packages/server/test/fixtures/amsp-stream.ts+++ b/packages/server/test/fixtures/amsp-stream.ts@@ -15,7 +15,7 @@* Self-contained on purpose — only type imports — so the client package can read it without* depending on the server or core.*/-import type { AmspEvent } from "@lmliheng/amsp";+import type { AmspEvent } from "@adelie/amsp";/** The `at` of every server-stamped event in `events`. */export const AMSP_FIXTURE_NOW = "2026-10-07T10:00:00.000Z";diff --git a/packages/server/test/followup.test.ts b/packages/server/test/followup.test.tsindex 16c23499..ce66e5d6 100644--- a/packages/server/test/followup.test.ts+++ b/packages/server/test/followup.test.ts@@ -16,8 +16,8 @@* The queued count on task_state events is covered by the session-manager suite.*/import { afterAll, beforeAll, beforeEach, describe, expect, it } from "vitest";-import { approvalDecision, assistantText, toolCall, userText } from "@lmliheng/penguin-core";-import type { ApproveFn, OmniMessage } from "@lmliheng/penguin-core";+import { approvalDecision, assistantText, toolCall, userText } from "@adelie/core";+import type { ApproveFn, OmniMessage } from "@adelie/core";import type { TaskCreateResponse } from "../src/api/types.js";import type { RecallStore } from "../src/runtime/session-manager.js";import { adoptSession, fakeSession, uniqueSessionId } from "./fixtures/session.js";diff --git a/packages/server/test/goals.test.ts b/packages/server/test/goals.test.tsindex e623aa5d..1465acd1 100644--- a/packages/server/test/goals.test.ts+++ b/packages/server/test/goals.test.ts@@ -21,7 +21,7 @@import fs from "node:fs/promises";import path from "node:path";import { afterEach, beforeEach, describe, expect, it } from "vitest";-import { wire } from "@lmliheng/penguin-core/kernel";+import { wire } from "@adelie/core/kernel";import type { DatabaseSync } from "node:sqlite";import {assistantText,@@ -36,8 +36,8 @@ import {sessionScratchpadDir,tokenUsage,userText,-} from "@lmliheng/penguin-core";-import type { OmniMessage, TokenCounts } from "@lmliheng/penguin-core";+} from "@adelie/core";+import type { OmniMessage, TokenCounts } from "@adelie/core";import { openDatabase } from "../src/db/database.js";import { SessionsRepo } from "../src/db/repos/sessions.js";import type { SessionRow } from "../src/db/repos/sessions.js";diff --git a/packages/server/test/harness-history.test.ts b/packages/server/test/harness-history.test.tsindex 20188130..0051e3cf 100644--- a/packages/server/test/harness-history.test.ts+++ b/packages/server/test/harness-history.test.ts@@ -22,7 +22,7 @@import { afterEach, describe, expect, it } from "vitest";import fs from "node:fs/promises";import path from "node:path";-import { wire } from "@lmliheng/penguin-core/kernel";+import { wire } from "@adelie/core/kernel";import table from "../src/ifaces.json" with { type: "json" };import {HarnessHistoryStore,@@ -30,7 +30,7 @@ import {KEEP_VERSIONS,} from "../src/services/harness-history.js";import zlib from "node:zlib";-import { diffIfaces } from "@lmliheng/penguin-hmr";+import { diffIfaces } from "@adelie/hmr";import type { VersionHistoryDiffResponse, VersionHistoryResponse } from "../src/api/types.js";import {apiClient,diff --git a/packages/server/test/helpers.ts b/packages/server/test/helpers.tsindex 3aec40b8..f6689236 100644--- a/packages/server/test/helpers.ts+++ b/packages/server/test/helpers.ts@@ -8,10 +8,10 @@ import fs from "node:fs/promises";import os from "node:os";import path from "node:path";import type { Hono } from "hono";-import type { OmniMessage } from "@lmliheng/penguin-core";+import type { OmniMessage } from "@adelie/core";import { bootAppDeps, createApp } from "../src/app.js";import type { ServerBoot } from "../src/app.js";-import type { ModuleTree, ModuleClass } from "@lmliheng/penguin-core/kernel";+import type { ModuleTree, ModuleClass } from "@adelie/core/kernel";import type { DatabaseSync } from "node:sqlite";import type { ServerHmrHost } from "../src/hmr/platform.js";import type { ChannelHub } from "../src/runtime/channel.js";@@ -55,7 +55,7 @@ import type { AppEnv } from "../src/auth/middleware.js";import { ADMIN_USER_ID } from "../src/auth/service.js";import type { ServerConfig } from "../src/config.js";import type { UserInfo } from "../src/api/types.js";-import { wire } from "@lmliheng/penguin-core/kernel";+import { wire } from "@adelie/core/kernel";import type { PluginHost } from "../src/plugin/host.js";import type { Replacements } from "../src/hmr/capabilities.js";import { ConsoleLog, SystemClock } from "../src/hmr/capabilities.js";diff --git a/packages/server/test/hmr-host.test.ts b/packages/server/test/hmr-host.test.tsindex 595101d1..7edcdd07 100644--- a/packages/server/test/hmr-host.test.ts+++ b/packages/server/test/hmr-host.test.ts@@ -13,7 +13,7 @@ import { createHash } from "node:crypto";import { afterEach, describe, expect, it, vi } from "vitest";import type { Hono } from "hono";import type { AppEnv } from "../src/auth/middleware.js";-import { HmrHost } from "@lmliheng/penguin-hmr";+import { HmrHost } from "@adelie/hmr";import type { PlatformApi } from "../src/hmr/platform.js";import { packagedPlatform } from "../src/hmr/platform.js";import { readHarnessInfo } from "../src/hmr/manifest.js";diff --git a/packages/server/test/hmr-http-seam.test.ts b/packages/server/test/hmr-http-seam.test.tsindex 71dda7d7..01100108 100644--- a/packages/server/test/hmr-http-seam.test.ts+++ b/packages/server/test/hmr-http-seam.test.ts@@ -15,7 +15,7 @@ import { fileURLToPath } from "node:url";import { afterEach, beforeEach, describe, expect, it } from "vitest";import { Hono } from "hono";import type { AppEnv } from "../src/auth/middleware.js";-import type { Hmr } from "@lmliheng/penguin-hmr";+import type { Hmr } from "@adelie/hmr";import { platformHttpSeam } from "../src/hmr/http-seam.js";import type { PlatformApi } from "../src/hmr/platform.js";import { apiClient, createTestApp, loginAdmin } from "./helpers.js";diff --git a/packages/server/test/hmr-resources.test.ts b/packages/server/test/hmr-resources.test.tsindex 2987adec..194bd34b 100644--- a/packages/server/test/hmr-resources.test.ts+++ b/packages/server/test/hmr-resources.test.ts@@ -6,16 +6,9 @@* ordering contract and the runtime-capability version handshake (hmr/capabilities.ts).*/import { describe, expect, it, vi } from "vitest";-import {- boot,- defineIface,- initialDoc,- schema,- type,- upgrade,-} from "@lmliheng/penguin-core/kernel";-import type { Json } from "@lmliheng/penguin-core/kernel";-import { HotResources } from "@lmliheng/penguin-hmr";+import { boot, defineIface, initialDoc, schema, type, upgrade } from "@adelie/core/kernel";+import type { Json } from "@adelie/core/kernel";+import { HotResources } from "@adelie/hmr";import { TerminalManager } from "../src/terminal/manager.js";import type { TerminalSession } from "../src/terminal/session.js";import { DECLARED_RESOURCES as PARKED, packagedPlatform } from "../src/hmr/platform.js";diff --git a/packages/server/test/hooks.test.ts b/packages/server/test/hooks.test.tsindex 93642420..d9e56e9c 100644--- a/packages/server/test/hooks.test.ts+++ b/packages/server/test/hooks.test.ts@@ -22,8 +22,8 @@ import fs from "node:fs/promises";import path from "node:path";import { strToU8, unzipSync, zipSync } from "fflate";import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest";-import { hooksDir } from "@lmliheng/penguin-core";-import type { OmniMessage } from "@lmliheng/penguin-core";+import { hooksDir } from "@adelie/core";+import type { OmniMessage } from "@adelie/core";import type {AgentHooksResponse,MessagesResponse,diff --git a/packages/server/test/hot-replace.test.ts b/packages/server/test/hot-replace.test.tsindex d88eb8c6..07ea13a6 100644--- a/packages/server/test/hot-replace.test.ts+++ b/packages/server/test/hot-replace.test.ts@@ -5,13 +5,13 @@* need is refused by name, and the App does not boot.*/import { describe, expect, it, afterEach } from "vitest";-import { parseManifest } from "@lmliheng/penguin-core/kernel";-import type { ModuleDef } from "@lmliheng/penguin-core/kernel";+import { parseManifest } from "@adelie/core/kernel";+import type { ModuleDef } from "@adelie/core/kernel";import { PluginHost } from "../src/plugin/host.js";import type { Settings, UiPrefsStore } from "../src/mechanisms/settings.js";import { createTestApp, loginAdmin, type TestApp } from "./helpers.js";-const PKG = "@lmliheng/penguin-server";+const PKG = "@adelie/server";function replacing(name: string,diff --git a/packages/server/test/http-route-groups.test.ts b/packages/server/test/http-route-groups.test.tsindex 608daf65..65a33616 100644--- a/packages/server/test/http-route-groups.test.ts+++ b/packages/server/test/http-route-groups.test.ts@@ -5,8 +5,8 @@*/import { describe, expect, it } from "vitest";import { Hono } from "hono";-import { wire } from "@lmliheng/penguin-core/kernel";-import type { ClassCtx, Contributed } from "@lmliheng/penguin-core/kernel";+import { wire } from "@adelie/core/kernel";+import type { ClassCtx, Contributed } from "@adelie/core/kernel";import type { AppEnv } from "../src/auth/middleware.js";import type { UserRow } from "../src/db/repos/users.js";import { HttpModule } from "../src/http/app.js";diff --git a/packages/server/test/iface-check.test.ts b/packages/server/test/iface-check.test.tsindex 59d449f7..144716ed 100644--- a/packages/server/test/iface-check.test.ts+++ b/packages/server/test/iface-check.test.ts@@ -5,14 +5,14 @@*/import { describe, expect, it } from "vitest";import ts from "typescript";-import { parseManifest } from "@lmliheng/penguin-core/kernel";-import type { IfaceTable } from "@lmliheng/penguin-core/kernel";+import { parseManifest } from "@adelie/core/kernel";+import type { IfaceTable } from "@adelie/core/kernel";import platformTable from "../src/ifaces.json" with { type: "json" };import { checkIfaces, ifaceQuestions, renderDts } from "../src/plugin/iface-check.js";const platform = platformTable as unknown as IfaceTable;-const LOG = "@lmliheng/penguin-server#Log";-const MAIN = "@lmliheng/penguin-server#WorkflowMain";+const LOG = "@adelie/server#Log";+const MAIN = "@adelie/server#WorkflowMain";const manifest = parseManifest({name: "Demo",@@ -77,7 +77,7 @@ describe("interface check", () => {// Each side is rendered into its own file, so a brand keyed by `unique symbol` would be// two different symbols and the platform would stop fitting ITSELF. 43 of the table's// interfaces carry a non-library opaque, so this is the common case, not a corner.- const opaque = "@lmliheng/penguin-server#TerminalSession";+ const opaque = "@adelie/server#TerminalSession";const withOpaque = compiledAgainst((t) => {t.ifaces[LOG]!.methods["line"]!.params = [{ opaque }];});@@ -87,7 +87,7 @@ describe("interface check", () => {});// …and a DIFFERENT opaque is still a mismatch: the name is the identity.const renamed = compiledAgainst((t) => {- t.ifaces[LOG]!.methods["line"]!.params = [{ opaque: "@lmliheng/penguin-server#Other" }];+ t.ifaces[LOG]!.methods["line"]!.params = [{ opaque: "@adelie/server#Other" }];});const { problems } = checkIfaces(ts, withOpaque, renamed, ifaceQuestions([manifest]));expect(problems).toHaveLength(1);diff --git a/packages/server/test/live-session.ts b/packages/server/test/live-session.tsindex 044bbfbf..cc124f2f 100644--- a/packages/server/test/live-session.ts+++ b/packages/server/test/live-session.ts@@ -11,7 +11,7 @@ import fs from "node:fs/promises";import http from "node:http";import type { AddressInfo } from "node:net";import path from "node:path";-import type { OmniMessage, TextPayload } from "@lmliheng/penguin-core";+import type { OmniMessage, TextPayload } from "@adelie/core";/** The model id the endpoint stands in for (routed to the Anthropic Messages client). */export const MOCK_MODEL_ID = "claude-4-8";diff --git a/packages/server/test/live-tail.test.ts b/packages/server/test/live-tail.test.tsindex 12cea891..826c10aa 100644--- a/packages/server/test/live-tail.test.ts+++ b/packages/server/test/live-tail.test.ts@@ -16,12 +16,12 @@ import {toolCallOutput,userText,withOrigin,-} from "@lmliheng/penguin-core";+} from "@adelie/core";import type {PartialTextPayload,PartialToolCallOutputPayload,PartialToolCallPayload,-} from "@lmliheng/penguin-core";+} from "@adelie/core";import { LiveTailTracker } from "../src/runtime/live-tail.js";const SID = "s1";diff --git a/packages/server/test/machines-models-sync.test.ts b/packages/server/test/machines-models-sync.test.tsindex 34ca8c97..b233cbb1 100644--- a/packages/server/test/machines-models-sync.test.ts+++ b/packages/server/test/machines-models-sync.test.ts@@ -15,7 +15,7 @@ import http from "node:http";import type { AddressInfo } from "node:net";import { describe, expect, it } from "vitest";import { serve } from "@hono/node-server";-import type { ModelEntry } from "@lmliheng/penguin-core";+import type { ModelEntry } from "@adelie/core";import type { ModelsResponse, ModelsUpdateRequest } from "../src/api/types.js";import { planModelSync, syncModelsToMachine } from "../src/machines/models-sync.js";import type { LocalModels } from "../src/machines/models-sync.js";diff --git a/packages/server/test/machines.test.ts b/packages/server/test/machines.test.tsindex 875790a4..cf49d545 100644--- a/packages/server/test/machines.test.ts+++ b/packages/server/test/machines.test.ts@@ -321,7 +321,7 @@ describe("ssh / scp invocations", () => {});describe("resolvePushPlan", () => {- const manifest = JSON.stringify({ name: "@lmliheng/penguin-cli", version: "0.2.4" });+ const manifest = JSON.stringify({ name: "@adelie/cli", version: "0.2.4" });it("tarball install: the base release, with no pushed state", () => {const work = fs.mkdtempSync(path.join(os.tmpdir(), "penguin-plan-"));@@ -374,7 +374,7 @@ describe("resolvePushPlan", () => {fs.mkdirSync(path.join(appDir, "dist"), { recursive: true });fs.writeFileSync(path.join(appDir, "package.json"),- JSON.stringify({ name: "@lmliheng/penguin-desktop", version: "0.2.4" }),+ JSON.stringify({ name: "@adelie/desktop", version: "0.2.4" }),);const plan = resolvePushPlan(null, path.join(appDir, "dist", "server.js"));@@ -391,7 +391,7 @@ describe("resolvePushPlan", () => {fs.mkdirSync(path.join(pkgDir, "dist"), { recursive: true });fs.writeFileSync(path.join(pkgDir, "package.json"),- JSON.stringify({ name: "@lmliheng/penguin-desktop", version: "0.2.4" }),+ JSON.stringify({ name: "@adelie/desktop", version: "0.2.4" }),);expect(resolvePushPlan(null, path.join(pkgDir, "dist", "server.js"))).toBeNull();diff --git a/packages/server/test/memory.test.ts b/packages/server/test/memory.test.tsindex 40bfad25..99ba6fbc 100644--- a/packages/server/test/memory.test.ts+++ b/packages/server/test/memory.test.ts@@ -30,12 +30,7 @@import fs from "node:fs/promises";import path from "node:path";import { afterAll, beforeAll, beforeEach, describe, expect, it } from "vitest";-import {- MEMORY_INDEX_FILENAME,- USER_SCOPE_KEY,- memoryDir,- memoryScopeDir,-} from "@lmliheng/penguin-core";+import { MEMORY_INDEX_FILENAME, USER_SCOPE_KEY, memoryDir, memoryScopeDir } from "@adelie/core";import type {AgentConfigResponse,MemoryFileResponse,diff --git a/packages/server/test/messages-live.test.ts b/packages/server/test/messages-live.test.tsindex 17e48329..025a573c 100644--- a/packages/server/test/messages-live.test.ts+++ b/packages/server/test/messages-live.test.ts@@ -25,8 +25,8 @@ import {toolCallOutput,userText,withOrigin,-} from "@lmliheng/penguin-core";-import type { ApproveFn, OmniMessage } from "@lmliheng/penguin-core";+} from "@adelie/core";+import type { ApproveFn, OmniMessage } from "@adelie/core";import type { MessagesResponse } from "../src/api/types.js";import type { SessionRow } from "../src/db/repos/sessions.js";import type { RuntimeSession } from "../src/runtime/session-manager.js";diff --git a/packages/server/test/messages-page.test.ts b/packages/server/test/messages-page.test.tsindex 00a436fa..76c6a168 100644--- a/packages/server/test/messages-page.test.ts+++ b/packages/server/test/messages-page.test.ts@@ -37,12 +37,9 @@ import {toolCall,toolCallOutput,userText,-} from "@lmliheng/penguin-core";-import {- buildBackgroundTaskDoneMessage,- buildHandoffMessage,-} from "@lmliheng/penguin-core/markers";-import type { OmniMessage, SessionMetaPayload, TokenCounts } from "@lmliheng/penguin-core";+} from "@adelie/core";+import { buildBackgroundTaskDoneMessage, buildHandoffMessage } from "@adelie/core/markers";+import type { OmniMessage, SessionMetaPayload, TokenCounts } from "@adelie/core";import { decodeCursor, encodeCursor } from "../src/services/message-window.js";import { MESSAGES_PAGE_MAX_BYTES } from "../src/services/trace-service.js";import type { TraceService } from "../src/services/trace-service.js";diff --git a/packages/server/test/messages-pending-input.test.ts b/packages/server/test/messages-pending-input.test.tsindex ac92172b..07c4f54b 100644--- a/packages/server/test/messages-pending-input.test.ts+++ b/packages/server/test/messages-pending-input.test.ts@@ -21,8 +21,8 @@ import {mcpConnectEnd,requestBegin,sessionMeta,-} from "@lmliheng/penguin-core";-import type { OmniMessage } from "@lmliheng/penguin-core";+} from "@adelie/core";+import type { OmniMessage } from "@adelie/core";import type { MessagesResponse } from "../src/api/types.js";import type { RuntimeSession } from "../src/runtime/session-manager.js";import { adoptSession, fakeSession, uniqueSessionId } from "./fixtures/session.js";diff --git a/packages/server/test/messaging-markdown.test.ts b/packages/server/test/messaging-markdown.test.tsindex 8e636c8e..0fabd443 100644--- a/packages/server/test/messaging-markdown.test.ts+++ b/packages/server/test/messaging-markdown.test.ts@@ -28,7 +28,7 @@* unbreakable line as a last resort, and yields chunks every renderer accepts.*/import { describe, expect, it } from "vitest";-import { attachedFileLine } from "@lmliheng/penguin-core";+import { attachedFileLine } from "@adelie/core";import { MESSAGING_TEXT_CHUNK_CHARS } from "../src/runtime/messaging/bridge.js";import { chunkMarkdown, isSafeUrl, parseMarkdown } from "../src/runtime/messaging/markdown.js";import { feishuCardOf, feishuMarkdownOf } from "../src/runtime/messaging/feishu-card.js";diff --git a/packages/server/test/messaging-qq.test.ts b/packages/server/test/messaging-qq.test.tsindex 28598e3d..e2211d36 100644--- a/packages/server/test/messaging-qq.test.ts+++ b/packages/server/test/messaging-qq.test.ts@@ -34,9 +34,9 @@import fs from "node:fs/promises";import path from "node:path";import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";-import { approvalDecision, assistantText, toolCall } from "@lmliheng/penguin-core";-import type { ApproveFn, OmniMessage, TextPayload } from "@lmliheng/penguin-core";-import { wire } from "@lmliheng/penguin-core/kernel";+import { approvalDecision, assistantText, toolCall } from "@adelie/core";+import type { ApproveFn, OmniMessage, TextPayload } from "@adelie/core";+import { wire } from "@adelie/core/kernel";import type {MessagingBindingsResponse,QQBindingResponse,diff --git a/packages/server/test/messaging-telegram.test.ts b/packages/server/test/messaging-telegram.test.tsindex 08b2e75a..a61d79f9 100644--- a/packages/server/test/messaging-telegram.test.ts+++ b/packages/server/test/messaging-telegram.test.ts@@ -56,9 +56,9 @@ import {modelVisiblePath,scratchpadDir,toolCall,-} from "@lmliheng/penguin-core";-import type { ApproveFn, OmniMessage } from "@lmliheng/penguin-core";-import { wire } from "@lmliheng/penguin-core/kernel";+} from "@adelie/core";+import type { ApproveFn, OmniMessage } from "@adelie/core";+import { wire } from "@adelie/core/kernel";import type {FeishuBindingResponse,MessagingBindingsResponse,diff --git a/packages/server/test/messaging-wechat.test.ts b/packages/server/test/messaging-wechat.test.tsindex 33e7e802..f9bb4e93 100644--- a/packages/server/test/messaging-wechat.test.ts+++ b/packages/server/test/messaging-wechat.test.ts@@ -29,8 +29,8 @@* Markdown renders only when the binding asks.*/import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest";-import { assistantText } from "@lmliheng/penguin-core";-import type { OmniMessage } from "@lmliheng/penguin-core";+import { assistantText } from "@adelie/core";+import type { OmniMessage } from "@adelie/core";import type {MessagingBindingsResponse,WeChatBindingResponse,diff --git a/packages/server/test/messaging.test.ts b/packages/server/test/messaging.test.tsindex 82f6df1b..ea07190b 100644--- a/packages/server/test/messaging.test.ts+++ b/packages/server/test/messaging.test.ts@@ -72,9 +72,9 @@ import {modelVisiblePath,scratchpadDir,toolCall,-} from "@lmliheng/penguin-core";-import type { ApproveFn, OmniMessage } from "@lmliheng/penguin-core";-import { wire } from "@lmliheng/penguin-core/kernel";+} from "@adelie/core";+import type { ApproveFn, OmniMessage } from "@adelie/core";+import { wire } from "@adelie/core/kernel";import type { FeishuBindingResponse, FeishuTestResponse } from "../src/api/types.js";import { ProjectsRepo } from "../src/db/repos/projects.js";import type { RuntimeSession } from "../src/runtime/session-manager.js";diff --git a/packages/server/test/model-oauth.test.ts b/packages/server/test/model-oauth.test.tsindex 6524d6d2..5fa2a8c7 100644--- a/packages/server/test/model-oauth.test.ts+++ b/packages/server/test/model-oauth.test.ts@@ -25,7 +25,7 @@import { readFile } from "node:fs/promises";import path from "node:path";import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";-import { APP_URL, presetModelEntries, providerInfo } from "@lmliheng/penguin-core/model-catalog";+import { APP_URL, presetModelEntries, providerInfo } from "@adelie/core/model-catalog";import type {ModelOAuthCodeResponse,ModelOAuthStartResponse,@@ -49,7 +49,7 @@ import type { FetchFake } from "./fixtures/fetch.js";import { sessionRow } from "./fixtures/session.js";import { apiClient, createTestApp, provisionUser } from "./helpers.js";import type { TestApp } from "./helpers.js";-import { wire } from "@lmliheng/penguin-core/kernel";+import { wire } from "@adelie/core/kernel";/** The catalog group under test; the flow exists only because this entry declares it. */const TOKENDANCE = providerInfo("tokendance")!;diff --git a/packages/server/test/model-probe.test.ts b/packages/server/test/model-probe.test.tsindex 12d2310d..e690b2c6 100644--- a/packages/server/test/model-probe.test.ts+++ b/packages/server/test/model-probe.test.ts@@ -14,7 +14,7 @@ import {tokenUsage,toolCall,emptyTokenCounts,-} from "@lmliheng/penguin-core";+} from "@adelie/core";import { isProbeContent, probeTps, probeVerdict } from "../src/services/project-config-service.js";describe("isProbeContent", () => {diff --git a/packages/server/test/models-balance.test.ts b/packages/server/test/models-balance.test.tsindex c3c8d771..be7e3e71 100644--- a/packages/server/test/models-balance.test.ts+++ b/packages/server/test/models-balance.test.ts@@ -11,7 +11,7 @@import { writeFile } from "node:fs/promises";import path from "node:path";import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";-import { MODEL_CATALOG } from "@lmliheng/penguin-core";+import { MODEL_CATALOG } from "@adelie/core";import type { ModelBalanceResponse, ProjectCreateResponse } from "../src/api/types.js";import {BALANCE_CACHE_MS,diff --git a/packages/server/test/models-list.test.ts b/packages/server/test/models-list.test.tsindex af7e23c1..aa8807dd 100644--- a/packages/server/test/models-list.test.ts+++ b/packages/server/test/models-list.test.ts@@ -16,7 +16,7 @@ import type { EndpointModelListResponse, ProjectCreateResponse } from "../src/apimport { ProjectConfigService } from "../src/services/project-config-service.js";import { apiClient, createTestApp, provisionUser } from "./helpers.js";import type { TestApp } from "./helpers.js";-import { wire } from "@lmliheng/penguin-core/kernel";+import { wire } from "@adelie/core/kernel";describe("ProjectConfigService.listEndpointModels", () => {let root: string;diff --git a/packages/server/test/models.test.ts b/packages/server/test/models.test.tsindex e0956ab3..4101cca3 100644--- a/packages/server/test/models.test.ts+++ b/packages/server/test/models.test.ts@@ -42,7 +42,7 @@ import {catalogEntryFor,presetPromotions,userText,-} from "@lmliheng/penguin-core";+} from "@adelie/core";import type {ErrorBody,ModelsResponse,@@ -58,7 +58,7 @@ import { jsonResponse, stubFetch } from "./fixtures/fetch.js";import { fakeSession, sessionRow } from "./fixtures/session.js";import { apiClient, createTestApp, loginAdmin, provisionUser, waitFor } from "./helpers.js";import type { TestApp } from "./helpers.js";-import { wire } from "@lmliheng/penguin-core/kernel";+import { wire } from "@adelie/core/kernel";/** Preset paired refs (config primary key = (provider, model_id)): retired catalog rows are not presets. */const catalogPairs = MODEL_CATALOG.filter((m) => m.retired !== true).map(diff --git a/packages/server/test/modelscope-auth.test.ts b/packages/server/test/modelscope-auth.test.tsindex 652eb898..31ca3033 100644--- a/packages/server/test/modelscope-auth.test.ts+++ b/packages/server/test/modelscope-auth.test.ts@@ -20,7 +20,7 @@* standing in for the global fetch in the route cases.*/import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";-import { presetModelEntries } from "@lmliheng/penguin-core/model-catalog";+import { presetModelEntries } from "@adelie/core/model-catalog";import type {ModelScopeAuthFlowStatusResponse,ModelScopeAuthStartResponse,diff --git a/packages/server/test/org-harness.ts b/packages/server/test/org-harness.tsindex 7172e569..d885421f 100644--- a/packages/server/test/org-harness.ts+++ b/packages/server/test/org-harness.ts@@ -4,9 +4,9 @@* pricing replaced by recording fakes and the clock under test control. Shared by the runtime* and scenario suites so both exercise the same seams the app binds in production.*/-import { saveProjectConfig } from "@lmliheng/penguin-core";-import { wire } from "@lmliheng/penguin-core/kernel";-import type { OmniMessage } from "@lmliheng/penguin-core";+import { saveProjectConfig } from "@adelie/core";+import { wire } from "@adelie/core/kernel";+import type { OmniMessage } from "@adelie/core";import type { ServerEvent } from "../src/api/types.js";import { openDatabase } from "../src/db/database.js";import { MembersRepo } from "../src/db/repos/members.js";diff --git a/packages/server/test/organization-runtime.test.ts b/packages/server/test/organization-runtime.test.tsindex 4d965114..bd1b178e 100644--- a/packages/server/test/organization-runtime.test.ts+++ b/packages/server/test/organization-runtime.test.ts@@ -14,11 +14,11 @@*/import { existsSync } from "node:fs";import fs from "node:fs/promises";-import { wire } from "@lmliheng/penguin-core/kernel";+import { wire } from "@adelie/core/kernel";import path from "node:path";import { beforeEach, describe, expect, it } from "vitest";-import { parseOrgTriggerMessage, saveProjectConfig } from "@lmliheng/penguin-core";-import type { OmniMessage } from "@lmliheng/penguin-core";+import { parseOrgTriggerMessage, saveProjectConfig } from "@adelie/core";+import type { OmniMessage } from "@adelie/core";import { openDatabase } from "../src/db/database.js";import { MembersRepo } from "../src/db/repos/members.js";import { OrgCacheRepo } from "../src/db/repos/organizations.js";diff --git a/packages/server/test/organization-scenario.test.ts b/packages/server/test/organization-scenario.test.tsindex fc40998f..0773c00e 100644--- a/packages/server/test/organization-scenario.test.ts+++ b/packages/server/test/organization-scenario.test.ts@@ -10,7 +10,7 @@import fs from "node:fs/promises";import path from "node:path";import { beforeEach, describe, expect, it } from "vitest";-import { parseOrgTriggerMessage } from "@lmliheng/penguin-core";+import { parseOrgTriggerMessage } from "@adelie/core";import { DEFAULT_CHANNEL_ID } from "../src/organization/paths.js";import { makeOrgHarness } from "./org-harness.js";import type { OrgHarness } from "./org-harness.js";diff --git a/packages/server/test/organizations-routes.test.ts b/packages/server/test/organizations-routes.test.tsindex 4020a5b8..dc1bbfe8 100644--- a/packages/server/test/organizations-routes.test.ts+++ b/packages/server/test/organizations-routes.test.ts@@ -20,8 +20,8 @@*/import path from "node:path";import { afterAll, beforeAll, beforeEach, describe, expect, it } from "vitest";-import { sessionMeta, userText } from "@lmliheng/penguin-core";-import type { SessionSource } from "@lmliheng/penguin-core";+import { sessionMeta, userText } from "@adelie/core";+import type { SessionSource } from "@adelie/core";import type {MeResponse,OrgSessionsResponse,diff --git a/packages/server/test/park-quiesce.test.ts b/packages/server/test/park-quiesce.test.tsindex 2a79b85d..9e44fb29 100644--- a/packages/server/test/park-quiesce.test.ts+++ b/packages/server/test/park-quiesce.test.ts@@ -7,11 +7,11 @@* terminals-only there), with fake ptys standing in for delivered resources.*/import { describe, expect, it, vi } from "vitest";-import { boot, initialDoc, upgrade } from "@lmliheng/penguin-core/kernel";-import { HotResources } from "@lmliheng/penguin-hmr";+import { boot, initialDoc, upgrade } from "@adelie/core/kernel";+import { HotResources } from "@adelie/hmr";import { packagedPlatform } from "../src/hmr/platform.js";import type { PlatformApi } from "../src/hmr/platform.js";-import type { Instance } from "@lmliheng/penguin-core/kernel";+import type { Instance } from "@adelie/core/kernel";import { PENGUIN_FAMILY, HMR_INTERFACES_RESOURCE_ID } from "../src/hmr/capabilities.js";import { TerminalManager } from "../src/terminal/manager.js";import type { TerminalSession } from "../src/terminal/session.js";diff --git a/packages/server/test/plugin-apply.test.ts b/packages/server/test/plugin-apply.test.tsindex 321925b2..7b98419b 100644--- a/packages/server/test/plugin-apply.test.ts+++ b/packages/server/test/plugin-apply.test.ts@@ -11,7 +11,7 @@ import { describe, expect, it } from "vitest";import { mkdtemp, mkdir, rm, writeFile } from "node:fs/promises";import { tmpdir } from "node:os";import path from "node:path";-import { HotResources } from "@lmliheng/penguin-hmr";+import { HotResources } from "@adelie/hmr";import { PLUGINS_RESOURCE_ID, PluginHost, pluginHostFrom } from "../src/plugin/host.js";import { writeClassPackage } from "./plugin-fixtures.js";import { loadPluginHost } from "../src/plugin/loader.js";diff --git a/packages/server/test/plugin-config.test.ts b/packages/server/test/plugin-config.test.tsindex 56107bc7..f136d479 100644--- a/packages/server/test/plugin-config.test.ts+++ b/packages/server/test/plugin-config.test.ts@@ -5,7 +5,7 @@* masked at the API and kept when the mask is sent back, every save handed to the watchers.*/import { afterEach, beforeEach, describe, expect, it } from "vitest";-import { parseManifest } from "@lmliheng/penguin-core/kernel";+import { parseManifest } from "@adelie/core/kernel";import type { PluginConfigResponse } from "../src/api/types.js";import {PluginConfigError,diff --git a/packages/server/test/plugin-npm-import.test.ts b/packages/server/test/plugin-npm-import.test.tsindex 453847b3..d2c58c94 100644--- a/packages/server/test/plugin-npm-import.test.ts+++ b/packages/server/test/plugin-npm-import.test.ts@@ -214,8 +214,8 @@ describe("parsePluginArchive, on a tarball", () => {describe("parseNpmPluginSpec", () => {it("reads the explicit spelling, with and without a version", () => {- expect(parseNpmPluginSpec("npm:@lmliheng/use-firecrawl")).toEqual({- name: "@lmliheng/use-firecrawl",+ expect(parseNpmPluginSpec("npm:@adelie/use-firecrawl")).toEqual({+ name: "@adelie/use-firecrawl",});expect(parseNpmPluginSpec("npm:[email protected]")).toEqual({name: "use-firecrawl",@@ -228,23 +228,23 @@ describe("parseNpmPluginSpec", () => {});it("reads a bare package name, and the npmjs.com page a search ends on", () => {- expect(parseNpmPluginSpec("@lmliheng/data-analysis")).toEqual({- name: "@lmliheng/data-analysis",+ expect(parseNpmPluginSpec("@adelie/data-analysis")).toEqual({+ name: "@adelie/data-analysis",});expect(parseNpmPluginSpec("data-analysis")).toEqual({ name: "data-analysis" });expect(parseNpmPluginSpec("[email protected]")).toEqual({name: "data-analysis",version: "2026.9.14.1",});- expect(parseNpmPluginSpec("https://www.npmjs.com/package/@lmliheng/goal")).toEqual({- name: "@lmliheng/goal",+ expect(parseNpmPluginSpec("https://www.npmjs.com/package/@adelie/goal")).toEqual({+ name: "@adelie/goal",});expect(parseNpmPluginSpec("https://www.npmjs.com/package/goal/v/0.2.13")).toEqual({name: "goal",version: "0.2.13",});- expect(parseNpmPluginSpec("https://registry.npmjs.org/@lmliheng%2Fgoal")).toEqual({- name: "@lmliheng/goal",+ expect(parseNpmPluginSpec("https://registry.npmjs.org/@adelie%2Fgoal")).toEqual({+ name: "@adelie/goal",});});@@ -360,7 +360,7 @@ describe("the download route, importing from npm", () => {versions: {"0.2.13": {dist: {- tarball: "https://registry.npmjs.org/@lmliheng/from-npm/-/from-npm-0.2.13.tgz",+ tarball: "https://registry.npmjs.org/@adelie/from-npm/-/from-npm-0.2.13.tgz",integrity: options.integrity ?? integrityOf(tarball),},},@@ -380,14 +380,14 @@ describe("the download route, importing from npm", () => {it("installs the package's tarball under its unscoped name, files and all", async () => {const calls: string[] = [];stubRegistry({ calls });- const res = await admin.post("/api/plugins/download", { url: "@lmliheng/from-npm" });+ const res = await admin.post("/api/plugins/download", { url: "@adelie/from-npm" });expect(res.status).toBe(201);const body = (await res.json()) as PluginImportResponse;expect(body.plugin).toMatchObject({ name: "from-npm", source: "user" });expect(body.path).toBe(path.join(t.root, "plugins", "from-npm"));expect(calls).toEqual([- "https://registry.npmjs.org/@lmliheng%2Ffrom-npm",- "https://registry.npmjs.org/@lmliheng/from-npm/-/from-npm-0.2.13.tgz",+ "https://registry.npmjs.org/@adelie%2Ffrom-npm",+ "https://registry.npmjs.org/@adelie/from-npm/-/from-npm-0.2.13.tgz",]);expect(await libraryNames()).toContain("from-npm");const files = (await (await admin.get("/api/plugins/from-npm/files")).json()) as {@@ -407,19 +407,19 @@ describe("the download route, importing from npm", () => {it("answers npm's own refusals with their own codes, and writes nothing on the way", async () => {vi.stubGlobal("fetch", async () => new Response("{}", { status: 404 }));- const absent = await admin.post("/api/plugins/download", { url: "npm:@lmliheng/absent" });+ const absent = await admin.post("/api/plugins/download", { url: "npm:@adelie/absent" });expect(absent.status).toBe(404);expect(await readErrorCode(absent)).toBe("npm_package_not_found");vi.stubGlobal("fetch", async () => new Response("this is not json", { status: 200 }));- const unreadable = await admin.post("/api/plugins/download", { url: "npm:@lmliheng/odd" });+ const unreadable = await admin.post("/api/plugins/download", { url: "npm:@adelie/odd" });expect(unreadable.status).toBe(400);expect(await readErrorCode(unreadable)).toBe("npm_registry_failed");vi.stubGlobal("fetch", async () => {throw new Error("getaddrinfo ENOTFOUND registry.npmjs.org");});- const offline = await admin.post("/api/plugins/download", { url: "npm:@lmliheng/offline" });+ const offline = await admin.post("/api/plugins/download", { url: "npm:@adelie/offline" });expect(offline.status).toBe(400);expect(await readErrorCode(offline)).toBe("npm_registry_failed");diff --git a/packages/server/test/plugin-registry.test.ts b/packages/server/test/plugin-registry.test.tsindex 4549140d..dfc9ddb2 100644--- a/packages/server/test/plugin-registry.test.ts+++ b/packages/server/test/plugin-registry.test.ts@@ -282,9 +282,7 @@ describe("the builtin catalogue and the packages it lists", () => {expect(entry.categories, entry.name).toEqual([category]);}// The sandbox backends have no plugin.json; the curated index is what names their shelf.- const backend = index.find(- (entry) => entry.name === "@lmliheng/penguin-plugin-sandbox-bwrap",- );+ const backend = index.find((entry) => entry.name === "@adelie/sandbox-bwrap");expect(backend?.categories).toEqual(["sandbox"]);} finally {await rm(dir, { recursive: true, force: true });@@ -306,9 +304,9 @@ describe("the builtin catalogue and the packages it lists", () => {* carry the package too.*/it("derives a library package's entry with no bases to resolve from, from the copy core reads", async () => {- const registry = builtinPluginRegistry({ shipped: async () => ["@lmliheng/requirements-box"] });- const entry = (await registry.index()).find((e) => e.name === "@lmliheng/requirements-box");- const dir = path.join(PLUGINS_DIR, packages.get("@lmliheng/requirements-box")!.dir);+ const registry = builtinPluginRegistry({ shipped: async () => ["@adelie/requirements-box"] });+ const entry = (await registry.index()).find((e) => e.name === "@adelie/requirements-box");+ const dir = path.join(PLUGINS_DIR, packages.get("@adelie/requirements-box")!.dir);const own = JSON.parse(readFileSync(path.join(dir, "package.json"), "utf8")) as {description: string;license: string;@@ -319,7 +317,7 @@ describe("the builtin catalogue and the packages it lists", () => {category: string;};expect(entry).toMatchObject({- name: "@lmliheng/requirements-box",+ name: "@adelie/requirements-box",version: declared.version,description: own.description,license: own.license,@@ -328,7 +326,7 @@ describe("the builtin catalogue and the packages it lists", () => {authors: ["Prism Shadow"],});// The readme too: a package that ships one serves it, resolved the same way.- expect(await registry.readme("@lmliheng/requirements-box")).toBe(+ expect(await registry.readme("@adelie/requirements-box")).toBe(readFileSync(path.join(dir, "README.md"), "utf8"),);});@@ -343,12 +341,12 @@ describe("what this build ships", () => {* also holds the skills/hooks packages a Project never lists.*/it("is the built-in library plus the staged prefix, not the prefix alone", async () => {- const staged = await shippedPrefix(["@lmliheng/penguin-plugin-sandbox-bwrap"]);+ const staged = await shippedPrefix(["@adelie/sandbox-bwrap"]);try {const names = await shippedPluginNames(staged.dir, staged.bases);- expect(names).toContain("@lmliheng/penguin-plugin-sandbox-bwrap");- expect(names).toContain("@lmliheng/csu-mail");- expect(names).toContain("@lmliheng/requirements-box");+ expect(names).toContain("@adelie/sandbox-bwrap");+ expect(names).toContain("@adelie/csu-mail");+ expect(names).toContain("@adelie/requirements-box");} finally {await rm(staged.dir, { recursive: true, force: true });}@@ -380,7 +378,7 @@ describe("the registry routes", () => {});it("requires auth, then serves a listed entry's readme from the package on this machine", async () => {- const name = "@lmliheng/penguin-plugin-sandbox-bwrap";+ const name = "@adelie/sandbox-bwrap";const url = `/api/plugins/registry/readme?name=${encodeURIComponent(name)}`;expect((await t.app.request(url)).status).toBe(401);diff --git a/packages/server/test/plugin.test.ts b/packages/server/test/plugin.test.tsindex 4000b76b..518cb9a6 100644--- a/packages/server/test/plugin.test.ts+++ b/packages/server/test/plugin.test.ts@@ -4,13 +4,13 @@* contributes lands on the same slots the built-in modules use.*/import { describe, expect, it } from "vitest";-import type { ModuleDef } from "@lmliheng/penguin-core/kernel";-import { parseManifest, boot, initialDoc } from "@lmliheng/penguin-core/kernel";-import { HotResources } from "@lmliheng/penguin-hmr";+import type { ModuleDef } from "@adelie/core/kernel";+import { parseManifest, boot, initialDoc } from "@adelie/core/kernel";+import { HotResources } from "@adelie/hmr";import { PluginHost, PLUGINS_RESOURCE_ID, pluginHostFrom } from "../src/plugin/host.js";import { PENGUIN_FAMILY, HMR_INTERFACES_RESOURCE_ID } from "../src/hmr/capabilities.js";import { packagedPlatform } from "../src/hmr/platform.js";-import type { SandboxProvider } from "@lmliheng/penguin-core/plugin";+import type { SandboxProvider } from "@adelie/core/plugin";const provider = (name: string): SandboxProvider => ({dimensions: ["fs-write"],diff --git a/packages/server/test/project-config-cache.test.ts b/packages/server/test/project-config-cache.test.tsindex 325a8325..ce816053 100644--- a/packages/server/test/project-config-cache.test.ts+++ b/packages/server/test/project-config-cache.test.ts@@ -7,14 +7,10 @@*/import fs from "node:fs/promises";import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";-import {- defaultProjectConfig,- projectConfigPath,- renderProjectConfigToml,-} from "@lmliheng/penguin-core";+import { defaultProjectConfig, projectConfigPath, renderProjectConfigToml } from "@adelie/core";import { ProjectConfigService } from "../src/services/project-config-service.js";import { makeTempRoot } from "./helpers.js";-import { wire } from "@lmliheng/penguin-core/kernel";+import { wire } from "@adelie/core/kernel";const P = "project-cfg";const PRICED = {diff --git a/packages/server/test/prompt-sections.test.ts b/packages/server/test/prompt-sections.test.tsindex b6c7b6a7..304c25ff 100644--- a/packages/server/test/prompt-sections.test.ts+++ b/packages/server/test/prompt-sections.test.ts@@ -12,7 +12,7 @@* everywhere.*/import { afterAll, beforeAll, beforeEach, describe, expect, it } from "vitest";-import { LEGACY_SKILLS_SECTION, LEGACY_VAULT_SECTION } from "@lmliheng/penguin-core";+import { LEGACY_SKILLS_SECTION, LEGACY_VAULT_SECTION } from "@adelie/core";import type {AgentConfigResponse,AgentSchedulesConfigDto,diff --git a/packages/server/test/reset-admin-password.test.ts b/packages/server/test/reset-admin-password.test.tsindex 8de7e644..cc21ff6e 100644--- a/packages/server/test/reset-admin-password.test.ts+++ b/packages/server/test/reset-admin-password.test.ts@@ -17,7 +17,7 @@ import { initialAdminPasswordPath } from "../src/initial-password.js";import { acquireServerLock } from "../src/lock.js";import { resetAdminPassword } from "../src/reset-admin-password.js";import { makeTempRoot } from "./helpers.js";-import { wire } from "@lmliheng/penguin-core/kernel";+import { wire } from "@adelie/core/kernel";describe("resetAdminPassword", () => {const roots: string[] = [];diff --git a/packages/server/test/retry-now.test.ts b/packages/server/test/retry-now.test.tsindex bf98457a..d3f87d77 100644--- a/packages/server/test/retry-now.test.ts+++ b/packages/server/test/retry-now.test.ts@@ -9,8 +9,8 @@* - A foreign or unknown Session is a 404, as on every other Session route.*/import { afterAll, beforeAll, beforeEach, describe, expect, it } from "vitest";-import { approvalDecision, assistantText, toolCall, userText } from "@lmliheng/penguin-core";-import type { ApproveFn, OmniMessage } from "@lmliheng/penguin-core";+import { approvalDecision, assistantText, toolCall, userText } from "@adelie/core";+import type { ApproveFn, OmniMessage } from "@adelie/core";import type { RetryNowResponse } from "../src/api/types.js";import { adoptSession, fakeSession, uniqueSessionId } from "./fixtures/session.js";import { apiClient, createTestApp, provisionUser, waitFor } from "./helpers.js";diff --git a/packages/server/test/sandbox-ceiling.test.ts b/packages/server/test/sandbox-ceiling.test.tsindex a83ff001..77c73ec5 100644--- a/packages/server/test/sandbox-ceiling.test.ts+++ b/packages/server/test/sandbox-ceiling.test.ts@@ -3,7 +3,7 @@* server's settings; an admin may. The composer's `aboveCeiling` mark is the same comparison.*/import { describe, expect, it } from "vitest";-import type { SandboxSettings } from "@lmliheng/penguin-core/plugin";+import type { SandboxSettings } from "@adelie/core/plugin";import { aboveSandboxCeiling } from "../src/services/sandbox-ceiling.js";import { applySandboxPick, sessionSandboxOf } from "../src/services/session-service.js";diff --git a/packages/server/test/sandbox-floor.test.ts b/packages/server/test/sandbox-floor.test.tsindex 2ecff366..8b584baf 100644--- a/packages/server/test/sandbox-floor.test.ts+++ b/packages/server/test/sandbox-floor.test.ts@@ -3,13 +3,9 @@* files through Landlock, the service routes only what it implements, and the card says so.*/import { afterEach, describe, expect, it } from "vitest";-import { parseManifest } from "@lmliheng/penguin-core/kernel";-import type { ModuleDef } from "@lmliheng/penguin-core/kernel";-import type {- SandboxDimension,- SandboxProvider,- SandboxProviderSource,-} from "@lmliheng/penguin-core/plugin";+import { parseManifest } from "@adelie/core/kernel";+import type { ModuleDef } from "@adelie/core/kernel";+import type { SandboxDimension, SandboxProvider, SandboxProviderSource } from "@adelie/core/plugin";import type { PluginConfigEntry, PluginConfigResponse } from "../src/api/types.js";import { PluginHost } from "../src/plugin/host.js";import { SandboxService } from "../src/sandbox/index.js";diff --git a/packages/server/test/sandbox-settings.test.ts b/packages/server/test/sandbox-settings.test.tsindex d93b1b8d..242b8993 100644--- a/packages/server/test/sandbox-settings.test.ts+++ b/packages/server/test/sandbox-settings.test.ts@@ -8,9 +8,9 @@ import fs from "node:fs/promises";import os from "node:os";import path from "node:path";import { afterEach, describe, expect, it } from "vitest";-import { parseManifest } from "@lmliheng/penguin-core/kernel";-import type { ModuleDef } from "@lmliheng/penguin-core/kernel";-import type { SandboxPolicy } from "@lmliheng/penguin-core/plugin";+import { parseManifest } from "@adelie/core/kernel";+import type { ModuleDef } from "@adelie/core/kernel";+import type { SandboxPolicy } from "@adelie/core/plugin";import type { PluginConfigResponse } from "../src/api/types.js";import type { PluginConfig } from "../src/plugin/config.js";import { PluginHost } from "../src/plugin/host.js";@@ -30,7 +30,7 @@ function backend(seen: Seen[]): ModuleDef {manifest: parseManifest({name: "TestBackend",requires: {- config: { iface: "@lmliheng/penguin-server#PluginConfig", from: "PluginConfigModule" },+ config: { iface: "@adelie/server#PluginConfig", from: "PluginConfigModule" },},provides: {},contributes: {@@ -294,7 +294,7 @@ describe("sandbox settings group", () => {name: "ProbedBackend",requires: {config: {- iface: "@lmliheng/penguin-server#PluginConfig",+ iface: "@adelie/server#PluginConfig",from: "PluginConfigModule",},},diff --git a/packages/server/test/sandbox-switch.test.ts b/packages/server/test/sandbox-switch.test.tsindex d0e6f885..33dea1b8 100644--- a/packages/server/test/sandbox-switch.test.ts+++ b/packages/server/test/sandbox-switch.test.ts@@ -8,8 +8,8 @@ import fs from "node:fs/promises";import os from "node:os";import path from "node:path";import { afterEach, describe, expect, it } from "vitest";-import { parseManifest } from "@lmliheng/penguin-core/kernel";-import type { ModuleDef } from "@lmliheng/penguin-core/kernel";+import { parseManifest } from "@adelie/core/kernel";+import type { ModuleDef } from "@adelie/core/kernel";import type { PluginConfigEntry, PluginConfigResponse, SessionSandbox } from "../src/api/types.js";import { PluginHost } from "../src/plugin/host.js";import type { SandboxService } from "../src/sandbox/service.js";@@ -19,9 +19,9 @@ import type { TestApp } from "./helpers.js";/** What the server defaults to on this OS; Linux offers sandbox-dsh (Landlock) beside bubblewrap. */const recommended = ({- linux: ["@lmliheng/penguin-plugin-sandbox-bwrap", "@lmliheng/penguin-plugin-sandbox-dsh"],- darwin: ["@lmliheng/penguin-plugin-sandbox-seatbelt"],- win32: ["@lmliheng/penguin-plugin-sandbox-wsl"],+ linux: ["@adelie/sandbox-bwrap", "@adelie/sandbox-dsh"],+ darwin: ["@adelie/sandbox-seatbelt"],+ win32: ["@adelie/sandbox-wsl"],} as Partial<Record<NodeJS.Platform, string[]>>)[process.platform];diff --git a/packages/server/test/sandbox.test.ts b/packages/server/test/sandbox.test.tsindex 5e7cef71..4a86be56 100644--- a/packages/server/test/sandbox.test.ts+++ b/packages/server/test/sandbox.test.ts@@ -7,9 +7,9 @@ import fs from "node:fs";import os from "node:os";import path from "node:path";import { afterAll, describe, expect, it, vi } from "vitest";-import { boot, initialDoc, parseManifest } from "@lmliheng/penguin-core/kernel";-import type { Json } from "@lmliheng/penguin-core/kernel";-import { HotResources } from "@lmliheng/penguin-hmr";+import { boot, initialDoc, parseManifest } from "@adelie/core/kernel";+import type { Json } from "@adelie/core/kernel";+import { HotResources } from "@adelie/hmr";import { PENGUIN_FAMILY, HMR_INTERFACES_RESOURCE_ID } from "../src/hmr/capabilities.js";import { packagedPlatform } from "../src/hmr/platform.js";import { PluginHost, PLUGINS_RESOURCE_ID } from "../src/plugin/host.js";@@ -19,7 +19,7 @@ import type {SandboxPolicy,SandboxProvider,SandboxProviderSource,-} from "@lmliheng/penguin-core/plugin";+} from "@adelie/core/plugin";const ARGV = ["bash", "-lc", "echo hi"] as const;const OPTS = { cwd: "/work/project/sub", workspaceDir: "/work/project" };@@ -388,7 +388,7 @@ describe("sandbox settings ride the parked context across a swap", () => {manifest: parseManifest({name: "observer",requires: {- sandbox: { iface: "@lmliheng/penguin-server#Sandbox", from: "SandboxModule" },+ sandbox: { iface: "@adelie/server#Sandbox", from: "SandboxModule" },},provides: {},contributes: {},diff --git a/packages/server/test/scheduler.test.ts b/packages/server/test/scheduler.test.tsindex 0a748dc0..1dd31ba6 100644--- a/packages/server/test/scheduler.test.ts+++ b/packages/server/test/scheduler.test.ts@@ -10,12 +10,7 @@import fs from "node:fs/promises";import path from "node:path";import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";-import {- agentsDir,- projectConfigPath,- saveProjectConfig,- scheduleDir,-} from "@lmliheng/penguin-core";+import { agentsDir, projectConfigPath, saveProjectConfig, scheduleDir } from "@adelie/core";import { openDatabase } from "../src/db/database.js";import { ProjectsRepo } from "../src/db/repos/projects.js";import { SchedulesRepo } from "../src/db/repos/schedules.js";@@ -23,12 +18,12 @@ import { SessionsRepo } from "../src/db/repos/sessions.js";import { UsersRepo } from "../src/db/repos/users.js";import type { ErrorRecordArgs } from "../src/runtime/error-recorder.js";import type { ScheduleSessionCreator, ScheduleTaskRunner } from "../src/runtime/scheduler.js";-import type { OmniMessage } from "@lmliheng/penguin-core";+import type { OmniMessage } from "@adelie/core";import { Scheduler } from "../src/runtime/scheduler.js";import { ProjectConfigService } from "../src/services/project-config-service.js";import type { ScheduleServerEvent } from "../src/api/types.js";import { makeTempRoot } from "./helpers.js";-import { wire } from "@lmliheng/penguin-core/kernel";+import { wire } from "@adelie/core/kernel";const P = "p1";const A = "agent_x";diff --git a/packages/server/test/schedules.test.ts b/packages/server/test/schedules.test.tsindex bbe1658f..a5dd08c1 100644--- a/packages/server/test/schedules.test.ts+++ b/packages/server/test/schedules.test.ts@@ -7,7 +7,7 @@import fs from "node:fs/promises";import path from "node:path";import { afterEach, beforeEach, describe, expect, it } from "vitest";-import { scheduleDir } from "@lmliheng/penguin-core";+import { scheduleDir } from "@adelie/core";import type {AllProjectSchedulesResponse,ProjectCreateResponse,diff --git a/packages/server/test/session-approvals-events.test.ts b/packages/server/test/session-approvals-events.test.tsindex 9364d035..270d5f3d 100644--- a/packages/server/test/session-approvals-events.test.ts+++ b/packages/server/test/session-approvals-events.test.ts@@ -18,7 +18,7 @@ import {userText,type ApproveFn,type OmniMessage,-} from "@lmliheng/penguin-core";+} from "@adelie/core";import type { ServerEvent } from "../src/api/types.js";import { userChannelKey } from "../src/http/routes/events.js";import type { RuntimeSession } from "../src/runtime/session-manager.js";diff --git a/packages/server/test/session-background-tasks.test.ts b/packages/server/test/session-background-tasks.test.tsindex ee146366..55114539 100644--- a/packages/server/test/session-background-tasks.test.ts+++ b/packages/server/test/session-background-tasks.test.ts@@ -12,7 +12,7 @@* `session_state` does: never a stranger's live channel.*/import { afterAll, beforeAll, beforeEach, describe, expect, it } from "vitest";-import type { BackgroundCommandInfo, BackgroundSubagentInfo } from "@lmliheng/penguin-core";+import type { BackgroundCommandInfo, BackgroundSubagentInfo } from "@adelie/core";import type { ServerEvent, SessionResponse, SessionsResponse } from "../src/api/types.js";import { userChannelKey } from "../src/http/routes/events.js";import type { RuntimeSession } from "../src/runtime/session-manager.js";diff --git a/packages/server/test/session-delete-scratchpad.test.ts b/packages/server/test/session-delete-scratchpad.test.tsindex cd3609f8..aba89a4a 100644--- a/packages/server/test/session-delete-scratchpad.test.ts+++ b/packages/server/test/session-delete-scratchpad.test.ts@@ -12,7 +12,7 @@import fs from "node:fs/promises";import path from "node:path";import { afterAll, beforeAll, describe, expect, it } from "vitest";-import { scratchpadDir } from "@lmliheng/penguin-core";+import { scratchpadDir } from "@adelie/core";import type { ProjectCreateResponse, SessionCreateResponse } from "../src/api/types.js";import { apiClient, createTestApp, provisionUser } from "./helpers.js";import type { TestApp } from "./helpers.js";diff --git a/packages/server/test/session-fork.test.ts b/packages/server/test/session-fork.test.tsindex 24fb406c..d73913f6 100644--- a/packages/server/test/session-fork.test.ts+++ b/packages/server/test/session-fork.test.ts@@ -32,8 +32,8 @@ import {tokenUsage,tracesDir,userText,-} from "@lmliheng/penguin-core";-import type { OmniMessage, SessionMetaPayload, TokenCounts } from "@lmliheng/penguin-core";+} from "@adelie/core";+import type { OmniMessage, SessionMetaPayload, TokenCounts } from "@adelie/core";import type {MessagesResponse,ProjectCreateResponse,diff --git a/packages/server/test/session-index.test.ts b/packages/server/test/session-index.test.tsindex bdc4e142..7c01627e 100644--- a/packages/server/test/session-index.test.ts+++ b/packages/server/test/session-index.test.ts@@ -32,8 +32,8 @@import fs from "node:fs/promises";import path from "node:path";import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";-import { sessionMeta, userText } from "@lmliheng/penguin-core";-import type { OmniMessage, SessionMetaPayload } from "@lmliheng/penguin-core";+import { sessionMeta, userText } from "@adelie/core";+import type { OmniMessage, SessionMetaPayload } from "@adelie/core";import type {ProjectCreateResponse,SessionCreateResponse,diff --git a/packages/server/test/session-loader.test.ts b/packages/server/test/session-loader.test.tsindex 933d4113..84b64bbd 100644--- a/packages/server/test/session-loader.test.ts+++ b/packages/server/test/session-loader.test.ts@@ -10,8 +10,8 @@import fs from "node:fs/promises";import path from "node:path";import { afterEach, beforeEach, describe, expect, it } from "vitest";-import { createAgent, saveProjectConfig, sessionMeta, userText } from "@lmliheng/penguin-core";-import type { SessionMetaPayload } from "@lmliheng/penguin-core";+import { createAgent, saveProjectConfig, sessionMeta, userText } from "@adelie/core";+import type { SessionMetaPayload } from "@adelie/core";import { createCoreSessionLoader } from "../src/runtime/session-manager.js";import { SessionSources } from "../src/runtime/session-sources.js";import type { SessionRow } from "../src/db/repos/sessions.js";diff --git a/packages/server/test/session-manager-human-input.test.ts b/packages/server/test/session-manager-human-input.test.tsindex dcc52486..a82bfa17 100644--- a/packages/server/test/session-manager-human-input.test.ts+++ b/packages/server/test/session-manager-human-input.test.ts@@ -1,5 +1,5 @@import { describe, expect, it } from "vitest";-import { userText } from "@lmliheng/penguin-core";+import { userText } from "@adelie/core";import { isHumanInput } from "../src/runtime/session-manager.js";describe("isHumanInput", () => {diff --git a/packages/server/test/session-manager.test.ts b/packages/server/test/session-manager.test.tsindex 9808a9a3..b7d5cce5 100644--- a/packages/server/test/session-manager.test.ts+++ b/packages/server/test/session-manager.test.ts@@ -63,7 +63,7 @@ import {userSteeringText,userText,withOrigin,-} from "@lmliheng/penguin-core";+} from "@adelie/core";import type {ApproveFn,GenerativeModelParameters,@@ -71,7 +71,7 @@ import type {LLMOutcome,OmniMessage,TextPayload,-} from "@lmliheng/penguin-core";+} from "@adelie/core";import type { ServerEvent } from "../src/api/types.js";import { openDatabase } from "../src/db/database.js";import { HttpError } from "../src/http/errors.js";@@ -87,7 +87,7 @@ import type { TitleRequest } from "../src/runtime/title-generator.js";import type { UsageContext } from "../src/runtime/usage-recorder.js";import { fakeSession } from "./fixtures/session.js";import { waitFor } from "./helpers.js";-import { wire } from "@lmliheng/penguin-core/kernel";+import { wire } from "@adelie/core/kernel";const ROW: SessionRow = {sessionId: "session-1",diff --git a/packages/server/test/session-processes.test.ts b/packages/server/test/session-processes.test.tsindex 8a5e1129..f4bc53cf 100644--- a/packages/server/test/session-processes.test.ts+++ b/packages/server/test/session-processes.test.ts@@ -12,7 +12,7 @@* - Foreign and unknown Sessions are 404s, as on every Session route.*/import { afterAll, beforeAll, beforeEach, describe, expect, it } from "vitest";-import type { BackgroundCommandInfo, ToolDetachResult } from "@lmliheng/penguin-core";+import type { BackgroundCommandInfo, ToolDetachResult } from "@adelie/core";import type { SessionProcessesResponse } from "../src/api/types.js";import type { RuntimeSession } from "../src/runtime/session-manager.js";import { adoptSession, fakeSession, sessionRow, uniqueSessionId } from "./fixtures/session.js";diff --git a/packages/server/test/session-sandbox.test.ts b/packages/server/test/session-sandbox.test.tsindex 7422ba92..0a7a3075 100644--- a/packages/server/test/session-sandbox.test.ts+++ b/packages/server/test/session-sandbox.test.ts@@ -4,8 +4,8 @@* not reach a Session that already exists.*/import { describe, expect, it } from "vitest";-import { wire } from "@lmliheng/penguin-core/kernel";-import type { SandboxProvider, SandboxSettings } from "@lmliheng/penguin-core/plugin";+import { wire } from "@adelie/core/kernel";+import type { SandboxProvider, SandboxSettings } from "@adelie/core/plugin";import { openDatabase } from "../src/db/database.js";import { migrate } from "../src/db/migrations.js";import { SCHEMA_SQL } from "../src/db/schema.js";diff --git a/packages/server/test/session-source.test.ts b/packages/server/test/session-source.test.tsindex 191c5df4..84aa2de1 100644--- a/packages/server/test/session-source.test.ts+++ b/packages/server/test/session-source.test.ts@@ -35,7 +35,7 @@* (A fork is `user` whatever it was cut from: session-fork.test.ts.)*/import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest";-import { assistantText, sessionMeta, userText, withOrigin } from "@lmliheng/penguin-core";+import { assistantText, sessionMeta, userText, withOrigin } from "@adelie/core";import type {ProjectCreateResponse,SessionCreateResponse,diff --git a/packages/server/test/session-state-events.test.ts b/packages/server/test/session-state-events.test.tsindex ac739a60..03e649b0 100644--- a/packages/server/test/session-state-events.test.ts+++ b/packages/server/test/session-state-events.test.ts@@ -15,7 +15,7 @@* - A member removed from the Project stops hearing about its Sessions.*/import { afterAll, beforeAll, beforeEach, describe, expect, it } from "vitest";-import { assistantText } from "@lmliheng/penguin-core";+import { assistantText } from "@adelie/core";import type { ServerEvent } from "../src/api/types.js";import { userChannelKey } from "../src/http/routes/events.js";import { adoptSession, fakeSession, uniqueSessionId } from "./fixtures/session.js";diff --git a/packages/server/test/session-subagents.test.ts b/packages/server/test/session-subagents.test.tsindex 3419e714..53fb5e29 100644--- a/packages/server/test/session-subagents.test.ts+++ b/packages/server/test/session-subagents.test.ts@@ -11,13 +11,13 @@* - Foreign and unknown Sessions are 404s, as on every Session route.*/import { afterAll, beforeAll, beforeEach, describe, expect, it } from "vitest";-import { toolCall, withOrigin } from "@lmliheng/penguin-core";+import { toolCall, withOrigin } from "@adelie/core";import type {BackgroundSubagentInfo,OmniMessage,SubagentMessageOptions,SubagentMessageOutcome,-} from "@lmliheng/penguin-core";+} from "@adelie/core";import { ApprovalRegistry } from "../src/runtime/approvals.js";import type { ServerEvent, SubagentMessageResponse } from "../src/api/types.js";import type { RuntimeSession } from "../src/runtime/session-manager.js";diff --git a/packages/server/test/session-switch-model.test.ts b/packages/server/test/session-switch-model.test.tsindex 6fa641fb..e7387cff 100644--- a/packages/server/test/session-switch-model.test.ts+++ b/packages/server/test/session-switch-model.test.ts@@ -26,8 +26,8 @@ import {sessionMeta,tokenUsage,toolListReady,-} from "@lmliheng/penguin-core";-import type { OmniMessage, StopReason, TokenCounts } from "@lmliheng/penguin-core";+} from "@adelie/core";+import type { OmniMessage, StopReason, TokenCounts } from "@adelie/core";import type {ModelRefDto,ServerEvent,diff --git a/packages/server/test/skills.test.ts b/packages/server/test/skills.test.tsindex da4d5187..37ffffcf 100644--- a/packages/server/test/skills.test.ts+++ b/packages/server/test/skills.test.ts@@ -25,7 +25,7 @@ import fs from "node:fs/promises";import path from "node:path";import { strToU8, unzipSync, zipSync } from "fflate";import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest";-import { skillsDir, librarySkill, loadPreinstalledPlugins } from "@lmliheng/penguin-core";+import { skillsDir, librarySkill, loadPreinstalledPlugins } from "@adelie/core";import type {AgentCreateResponse,AgentsResponse,diff --git a/packages/server/test/sse-stream.test.ts b/packages/server/test/sse-stream.test.tsindex 77bb430b..c6f4a01a 100644--- a/packages/server/test/sse-stream.test.ts+++ b/packages/server/test/sse-stream.test.ts@@ -11,8 +11,8 @@* old session cannot reopen one.*/import { afterAll, beforeAll, beforeEach, describe, expect, it } from "vitest";-import { approvalDecision, assistantText, toolCall, userText } from "@lmliheng/penguin-core";-import type { ApproveFn, OmniMessage } from "@lmliheng/penguin-core";+import { approvalDecision, assistantText, toolCall, userText } from "@adelie/core";+import type { ApproveFn, OmniMessage } from "@adelie/core";import type { SessionRow } from "../src/db/repos/sessions.js";import type { RuntimeSession } from "../src/runtime/session-manager.js";import { fakeSession, sessionRow, uniqueSessionId } from "./fixtures/session.js";diff --git a/packages/server/test/sse-wire.test.ts b/packages/server/test/sse-wire.test.tsindex 0320c7c9..b79eef42 100644--- a/packages/server/test/sse-wire.test.ts+++ b/packages/server/test/sse-wire.test.ts@@ -11,7 +11,7 @@ import http from "node:http";import net from "node:net";import { serve } from "@hono/node-server";import { afterAll, beforeAll, expect, it, vi } from "vitest";-import { userText } from "@lmliheng/penguin-core";+import { userText } from "@adelie/core";import { sessionRow, uniqueSessionId } from "./fixtures/session.js";import { createTestApp, provisionUser, waitFor } from "./helpers.js";import type { TestApp } from "./helpers.js";diff --git a/packages/server/test/steer.test.ts b/packages/server/test/steer.test.tsindex 0f5d51da..dd9161e5 100644--- a/packages/server/test/steer.test.ts+++ b/packages/server/test/steer.test.ts@@ -24,8 +24,8 @@ import {toolCall,userSteeringText,userText,-} from "@lmliheng/penguin-core";-import type { ApproveFn, OmniMessage } from "@lmliheng/penguin-core";+} from "@adelie/core";+import type { ApproveFn, OmniMessage } from "@adelie/core";import type { RuntimeSession } from "../src/runtime/session-manager.js";import { adoptSession, fakeSession, uniqueSessionId } from "./fixtures/session.js";import { apiClient, createTestApp, provisionUser, waitFor } from "./helpers.js";diff --git a/packages/server/test/storage-cleanup.test.ts b/packages/server/test/storage-cleanup.test.tsindex 3c08b4ce..27448a16 100644--- a/packages/server/test/storage-cleanup.test.ts+++ b/packages/server/test/storage-cleanup.test.ts@@ -18,7 +18,7 @@import fs from "node:fs/promises";import path from "node:path";import { afterAll, beforeAll, describe, expect, it } from "vitest";-import { DEFAULT_PROJECT_ID, planEntryFingerprint } from "@lmliheng/penguin-core";+import { DEFAULT_PROJECT_ID, planEntryFingerprint } from "@adelie/core";import type {StorageApplyResponse,StoragePlanView,diff --git a/packages/server/test/suggest-id-routes.test.ts b/packages/server/test/suggest-id-routes.test.tsindex f4d7f8cb..fdbc7570 100644--- a/packages/server/test/suggest-id-routes.test.ts+++ b/packages/server/test/suggest-id-routes.test.ts@@ -11,7 +11,7 @@import fs from "node:fs/promises";import path from "node:path";import { afterEach, beforeEach, describe, expect, it } from "vitest";-import { agentsDir, benchmarksDir } from "@lmliheng/penguin-core";+import { agentsDir, benchmarksDir } from "@adelie/core";import type {AgentsResponse,BenchmarkCreateRequest,diff --git a/packages/server/test/task-attachments.test.ts b/packages/server/test/task-attachments.test.tsindex a9df2326..d087b64b 100644--- a/packages/server/test/task-attachments.test.ts+++ b/packages/server/test/task-attachments.test.ts@@ -25,8 +25,8 @@ import {modelVisiblePath,parseHandoffMessage,scratchpadDir,-} from "@lmliheng/penguin-core";-import type { OmniMessage } from "@lmliheng/penguin-core";+} from "@adelie/core";+import type { OmniMessage } from "@adelie/core";import type { SessionRow } from "../src/db/repos/sessions.js";import type { RuntimeSession } from "../src/runtime/session-manager.js";import { MAX_ATTACHMENT_COUNT } from "../src/services/attachment-limits.js";diff --git a/packages/server/test/title-generator.test.ts b/packages/server/test/title-generator.test.tsindex fbebae17..f9e186c0 100644--- a/packages/server/test/title-generator.test.ts+++ b/packages/server/test/title-generator.test.ts@@ -11,7 +11,7 @@*/import { describe, it, expect, beforeEach, afterEach } from "vitest";import type { DatabaseSync } from "node:sqlite";-import type { OmniMessage, SessionTitleResult } from "@lmliheng/penguin-core";+import type { OmniMessage, SessionTitleResult } from "@adelie/core";import { openDatabase } from "../src/db/database.js";import { SessionsRepo } from "../src/db/repos/sessions.js";import type { SessionRow } from "../src/db/repos/sessions.js";@@ -20,7 +20,7 @@ import type { ChannelEvent } from "../src/runtime/channel.js";import { TitleGenerator, fallbackTitle } from "../src/runtime/title-generator.js";import type { UsageContext } from "../src/runtime/usage-recorder.js";import { waitFor } from "./helpers.js";-import { wire } from "@lmliheng/penguin-core/kernel";+import { wire } from "@adelie/core/kernel";const ROW: SessionRow = {sessionId: "session-t1",diff --git a/packages/server/test/trace-image.test.ts b/packages/server/test/trace-image.test.tsindex b8e81ace..3818b58a 100644--- a/packages/server/test/trace-image.test.ts+++ b/packages/server/test/trace-image.test.ts@@ -22,8 +22,8 @@ import {toolCall,toolCallOutput,userText,-} from "@lmliheng/penguin-core";-import type { OmniMessage } from "@lmliheng/penguin-core";+} from "@adelie/core";+import type { OmniMessage } from "@adelie/core";import type { HistoryMessage, MessagesResponse } from "../src/api/types.js";import { sessionRow, uniqueSessionId } from "./fixtures/session.js";import { apiClient, createTestApp, provisionUser, writeTraceFile } from "./helpers.js";diff --git a/packages/server/test/trace-import-export.test.ts b/packages/server/test/trace-import-export.test.tsindex 4b7a6b38..a484d372 100644--- a/packages/server/test/trace-import-export.test.ts+++ b/packages/server/test/trace-import-export.test.ts@@ -11,7 +11,7 @@* the Agent snapshot import.*/import { afterEach, beforeEach, describe, expect, it } from "vitest";-import type { OmniMessage, SessionMetaPayload } from "@lmliheng/penguin-core";+import type { OmniMessage, SessionMetaPayload } from "@adelie/core";import type {AgentTracesResponse,ProjectCreateResponse,diff --git a/packages/server/test/trace-index.test.ts b/packages/server/test/trace-index.test.tsindex cccd73ce..a1ab5aee 100644--- a/packages/server/test/trace-index.test.ts+++ b/packages/server/test/trace-index.test.ts@@ -9,8 +9,8 @@import fs from "node:fs/promises";import path from "node:path";import { afterEach, beforeEach, describe, expect, it } from "vitest";-import { sessionMeta, userText } from "@lmliheng/penguin-core";-import type { SessionMetaPayload, SessionSource } from "@lmliheng/penguin-core";+import { sessionMeta, userText } from "@adelie/core";+import type { SessionMetaPayload, SessionSource } from "@adelie/core";import { makeTempRoot, makeTraceHarness, writeTraceFile } from "./helpers.js";const P = "project-i";diff --git a/packages/server/test/trace-line-index.test.ts b/packages/server/test/trace-line-index.test.tsindex 2cd46898..6eb78fe6 100644--- a/packages/server/test/trace-line-index.test.ts+++ b/packages/server/test/trace-line-index.test.ts@@ -18,8 +18,8 @@import fs from "node:fs/promises";import path from "node:path";import { afterEach, beforeEach, describe, expect, it } from "vitest";-import { readTraceTolerant, userText } from "@lmliheng/penguin-core";-import type { OmniMessage } from "@lmliheng/penguin-core";+import { readTraceTolerant, userText } from "@adelie/core";+import type { OmniMessage } from "@adelie/core";import { TraceLineIndex } from "../src/services/trace-line-index.js";import { makeTempRoot } from "./helpers.js";diff --git a/packages/server/test/trace-service.test.ts b/packages/server/test/trace-service.test.tsindex c29bfd06..e0ae44fa 100644--- a/packages/server/test/trace-service.test.ts+++ b/packages/server/test/trace-service.test.ts@@ -27,13 +27,8 @@ import {toolCallOutput,userText,withOrigin,-} from "@lmliheng/penguin-core";-import type {- OmniMessage,- SessionMetaPayload,- TokenCounts,- StopReason,-} from "@lmliheng/penguin-core";+} from "@adelie/core";+import type { OmniMessage, SessionMetaPayload, TokenCounts, StopReason } from "@adelie/core";// Traces written before the stop-reason convergence carry the retired spellings; analysis// must keep reading them, so these fixtures write them through a cast.@@ -41,7 +36,7 @@ const legacyEnd = (status: string) => requestEnd(status as StopReason);import type { TraceService } from "../src/services/trace-service.js";import type { SessionRow } from "../src/db/repos/sessions.js";import { openDatabase } from "../src/db/database.js";-import { wire } from "@lmliheng/penguin-core/kernel";+import { wire } from "@adelie/core/kernel";import { ErrorsRepo } from "../src/db/repos/errors.js";import { UsageRepo } from "../src/db/repos/usage.js";import { SessionSources } from "../src/runtime/session-sources.js";diff --git a/packages/server/test/trace-subagent-expand.test.ts b/packages/server/test/trace-subagent-expand.test.tsindex 3cedae8e..8dca3288 100644--- a/packages/server/test/trace-subagent-expand.test.ts+++ b/packages/server/test/trace-subagent-expand.test.ts@@ -20,8 +20,8 @@ import {toolCall,toolCallOutput,userText,-} from "@lmliheng/penguin-core";-import type { OmniMessage, SessionMetaPayload } from "@lmliheng/penguin-core";+} from "@adelie/core";+import type { OmniMessage, SessionMetaPayload } from "@adelie/core";import type { TraceService } from "../src/services/trace-service.js";import { makeTraceHarness } from "./helpers.js";diff --git a/packages/server/test/update-job.test.ts b/packages/server/test/update-job.test.tsindex 75e97173..d8a699f0 100644--- a/packages/server/test/update-job.test.ts+++ b/packages/server/test/update-job.test.ts@@ -15,7 +15,7 @@* latest version" included — as updated with a restart needed.*/import { describe, expect, it } from "vitest";-import { wire } from "@lmliheng/penguin-core/kernel";+import { wire } from "@adelie/core/kernel";import {INITIAL_PROGRESS,UpdateJobService,@@ -188,7 +188,7 @@ describe("classifyUpdateRun", () => {for (const refusal of ["This penguin runs from a source checkout, so there is nothing to download — update it with `git pull` and rebuild (`pnpm install && pnpm -r build`).","Cannot tell how this penguin was installed (running from /opt/penguin/cli.js), so it will not be replaced. Re-install with the official installer, or upgrade with the package manager you used.",- "This is a global install under /usr/lib/node_modules, but the package manager that owns it could not be identified. Upgrade it yourself with that manager, e.g. `npm install -g @lmliheng/[email protected]`.",+ "This is a global install under /usr/lib/node_modules, but the package manager that owns it could not be identified. Upgrade it yourself with that manager, e.g. `npm install -g @adelie/[email protected]`.","The official installer is a POSIX shell script and does not run on Windows. Re-install from the GitHub Releases page, or use a global npm install instead.","On Windows, penguin cannot run your package manager for you: Node will not execute an npm/pnpm/yarn `.cmd` shim without a shell.",]) {diff --git a/packages/server/test/usage.test.ts b/packages/server/test/usage.test.tsindex 39aabbe5..b407ca06 100644--- a/packages/server/test/usage.test.ts+++ b/packages/server/test/usage.test.ts@@ -38,8 +38,8 @@ import {sessionMeta,tokenUsage,withOrigin,-} from "@lmliheng/penguin-core";-import type { SessionMetaPayload, TokenCounts } from "@lmliheng/penguin-core";+} from "@adelie/core";+import type { SessionMetaPayload, TokenCounts } from "@adelie/core";import { ORIGIN_MODELS_MAX, UsageRecorder } from "../src/runtime/usage-recorder.js";import { ErrorsRepo } from "../src/db/repos/errors.js";import { UsageRepo } from "../src/db/repos/usage.js";@@ -48,7 +48,7 @@ import type { PricingLookup, PricingRates } from "../src/services/usage-service.import { openDatabase } from "../src/db/database.js";import { enumerateBuckets, enumerateTsBuckets, formatLocalDate } from "../src/internal/dates.js";import type { DatabaseSync } from "node:sqlite";-import { wire } from "@lmliheng/penguin-core/kernel";+import { wire } from "@adelie/core/kernel";const CTX = {projectId: "project-x",diff --git a/packages/server/test/utility-completion.test.ts b/packages/server/test/utility-completion.test.tsindex d087c247..ddbccd74 100644--- a/packages/server/test/utility-completion.test.ts+++ b/packages/server/test/utility-completion.test.ts@@ -6,7 +6,7 @@* dead end is checked for carrying its reason rather than a bare "no answer".*/import fs from "node:fs/promises";-import { wire } from "@lmliheng/penguin-core/kernel";+import { wire } from "@adelie/core/kernel";import { describe, expect, it } from "vitest";import {assistantText,@@ -17,8 +17,8 @@ import {thinkingMessage,tokenUsage,emptyTokenCounts,-} from "@lmliheng/penguin-core";-import type { LLMOutcome, OmniMessage } from "@lmliheng/penguin-core";+} from "@adelie/core";+import type { LLMOutcome, OmniMessage } from "@adelie/core";import {ProjectConfigService,collectUtilityCompletion,diff --git a/packages/server/test/vault.test.ts b/packages/server/test/vault.test.tsindex cdad509d..199aa45c 100644--- a/packages/server/test/vault.test.ts+++ b/packages/server/test/vault.test.ts@@ -13,7 +13,7 @@* - Malformed keys, values and bodies are 400s.*/import { afterAll, beforeAll, beforeEach, describe, expect, it } from "vitest";-import { userText } from "@lmliheng/penguin-core";+import { userText } from "@adelie/core";import type { ProjectCreateResponse, VaultResponse } from "../src/api/types.js";import { fakeSession, sessionRow, uniqueSessionId } from "./fixtures/session.js";import { apiClient, createTestApp, provisionUser, waitFor } from "./helpers.js";diff --git a/packages/server/test/version.test.ts b/packages/server/test/version.test.tsindex 49c3c716..07013c11 100644--- a/packages/server/test/version.test.ts+++ b/packages/server/test/version.test.ts@@ -20,7 +20,7 @@import { afterEach, beforeEach, describe, expect, it } from "vitest";import fs from "node:fs/promises";import path from "node:path";-import { VERSION } from "@lmliheng/penguin-core";+import { VERSION } from "@adelie/core";import { versionReport } from "../src/version-report.js";import type {RestartResponse,@@ -38,7 +38,7 @@ import { fakeFetch } from "./fixtures/fetch.js";import type { FetchScript } from "./fixtures/fetch.js";import { apiClient, createTestApp, loginAdmin, provisionUser } from "./helpers.js";import type { TestApp } from "./helpers.js";-import { wire } from "@lmliheng/penguin-core/kernel";+import { wire } from "@adelie/core/kernel";function releaseResponse(tag: string): Response {return new Response(diff --git a/packages/server/test/vision-detect.test.ts b/packages/server/test/vision-detect.test.tsindex a3608626..ab6be0a3 100644--- a/packages/server/test/vision-detect.test.ts+++ b/packages/server/test/vision-detect.test.ts@@ -8,7 +8,7 @@* Getting that backwards would silently disable vision on a working model.*/import { describe, expect, it } from "vitest";-import type { LLMOutcome } from "@lmliheng/penguin-core";+import type { LLMOutcome } from "@adelie/core";import {VISION_PROBE_IMAGE,VISION_PROBE_MAX_TOKENS,diff --git a/packages/server/test/workflows.test.ts b/packages/server/test/workflows.test.tsindex 0f182f1f..44dff996 100644--- a/packages/server/test/workflows.test.ts+++ b/packages/server/test/workflows.test.ts@@ -34,8 +34,8 @@import { afterAll, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";import fs from "node:fs/promises";import path from "node:path";-import { agentDir } from "@lmliheng/penguin-core";-import type { IfaceTable } from "@lmliheng/penguin-core/kernel";+import { agentDir } from "@adelie/core";+import type { IfaceTable } from "@adelie/core/kernel";import type { WorkflowInfo, WorkflowVersion } from "../src/api/types.js";import { apiClient, createTestApp, provisionUser } from "./helpers.js";import type { TestApp } from "./helpers.js";@@ -43,8 +43,8 @@ import type { TestApp } from "./helpers.js";const PROJECT = "owner-wf";const AGENT = "default_agent";const BASE = `/api/projects/${PROJECT}/agents/${AGENT}/workflows`;-const HOST_KEY = "@lmliheng/penguin-server#WorkflowHost";-const MAIN_KEY = "@lmliheng/penguin-server#WorkflowMain";+const HOST_KEY = "@adelie/server#WorkflowHost";+const MAIN_KEY = "@adelie/server#WorkflowMain";const TAB = {id: "demo.board",@@ -73,7 +73,7 @@ function packageJson(modules: unknown[] = [MANIFEST], extra: Record<string, unkn}function indexSource(greeting: string): string {- return `import type { WorkflowPackage } from "@lmliheng/penguin-server/plugin";+ return `import type { WorkflowPackage } from "@adelie/server/plugin";export default {modules: {@@ -516,7 +516,7 @@ describe("editing a workflow", { timeout: 30_000 }, () => {packageJson([{...MANIFEST,- requires: { host: { iface: "@lmliheng/penguin-server#Workflows", from: "Host" } },+ requires: { host: { iface: "@adelie/server#Workflows", from: "Host" } },},]),);@@ -524,7 +524,7 @@ describe("editing a workflow", { timeout: 30_000 }, () => {const broken = ((await res.json()) as { workflow: WorkflowInfo }).workflow;// Named before anything runs: the host gave this workflow no types for that interface.expect(broken.error).toContain(- "requires.host '@lmliheng/penguin-server#Workflows': not among the types this workflow was written against",+ "requires.host '@adelie/server#Workflows': not among the types this workflow was written against",);expect(await (await owner.get(`${base}/demo/api/`)).json()).toMatchObject({greeting: "hello",diff --git a/packages/server/tsup.config.ts b/packages/server/tsup.config.tsindex 46ebf673..85091f4f 100644--- a/packages/server/tsup.config.ts+++ b/packages/server/tsup.config.ts@@ -43,7 +43,7 @@ export default defineConfig({sourcemap: true,// The hot-update mechanism is a package for the boundary, not for npm (it is `private`):// inlined here so this package's published dist stays self-contained.- noExternal: ["@lmliheng/penguin-hmr"],+ noExternal: ["@adelie/hmr"],// Scripts that run somewhere else, as REAL files beside the bundles: the release installers// a remote install feeds to the far side (the one thing that has to arrive before the CLI// does; everything after is a `penguin` subcommand the machine already has). Each isdiff --git a/packages/ui-gallery/e2e/playwright.config.mjs b/packages/ui-gallery/e2e/playwright.config.mjsindex 05dd9ff7..db033615 100644--- a/packages/ui-gallery/e2e/playwright.config.mjs+++ b/packages/ui-gallery/e2e/playwright.config.mjs@@ -1,12 +1,12 @@/*** Browser checks against the component library: layout that only a real engine can measure.*- * pnpm --filter @lmliheng/penguin-ui-gallery test:e2e+ * pnpm --filter @adelie/ui-gallery test:e2e** Starts the gallery's dev server, or reuses one already answering on the port outside CI.* `GALLERY_PORT` moves it off the gallery's fixed 7372, for a machine where another checkout's* gallery may already hold that port (a reused server would be testing the other checkout).- * Needs Playwright's Chromium: `pnpm --filter @lmliheng/penguin-ui-gallery exec playwright+ * Needs Playwright's Chromium: `pnpm --filter @adelie/ui-gallery exec playwright* install chromium`.*/import { defineConfig } from "@playwright/test";diff --git a/packages/ui-gallery/package.json b/packages/ui-gallery/package.jsonindex 8ac038a5..f1ea6687 100644--- a/packages/ui-gallery/package.json+++ b/packages/ui-gallery/package.json@@ -1,5 +1,5 @@{- "name": "@lmliheng/penguin-ui-gallery",+ "name": "@adelie/ui-gallery","version": "0.4.2","private": true,"type": "module",@@ -14,14 +14,14 @@"shots": "node scripts/shots.mjs"},"dependencies": {- "@lmliheng/penguin-ui": "workspace:*",+ "@adelie/ui": "workspace:*","react": "^19.1.0","react-dom": "^19.1.0"},"devDependencies": {"@playwright/test": "^1.61.1",- "@lmliheng/penguin-core": "workspace:*",- "@lmliheng/penguin-web": "workspace:*",+ "@adelie/core": "workspace:*",+ "@adelie/web": "workspace:*","@tailwindcss/vite": "^4.1.0","@types/node": "^24.0.0","@types/react": "^19.1.0",diff --git a/packages/ui-gallery/src/app/mock/fixtures.ts b/packages/ui-gallery/src/app/mock/fixtures.tsindex b1c91a24..9ce76e11 100644--- a/packages/ui-gallery/src/app/mock/fixtures.ts+++ b/packages/ui-gallery/src/app/mock/fixtures.ts@@ -46,7 +46,7 @@ import type {VaultResponse,VersionResponse,WorkspaceFileEntry,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";// The built-in catalog, as the app reads it (the same built module the app imports): the model// table is every preset it seeds a Project with, so the app's "sync presets" badge stays quiet.import {@@ -818,7 +818,7 @@ export function buildFixtures(lang: Lang, now: number): DemoFixtures {const installedPlugins: InstalledPluginsResponse = {plugins: [{- specifier: "@lmliheng/sandbox-bwrap",+ specifier: "@adelie/sandbox-bwrap",active: true,builtin: true,modules: ["sandbox.bwrap"],@@ -828,7 +828,7 @@ export function buildFixtures(lang: Lang, now: number): DemoFixtures {here: true,},{- specifier: "@lmliheng/messaging-feishu",+ specifier: "@adelie/messaging-feishu",active: false,builtin: false,modules: ["messaging.feishu"],@@ -838,11 +838,7 @@ export function buildFixtures(lang: Lang, now: number): DemoFixtures {here: false,},],- shipped: [- "@lmliheng/sandbox-bwrap",- "@lmliheng/sandbox-seatbelt",- "@lmliheng/messaging-feishu",- ],+ shipped: ["@adelie/sandbox-bwrap", "@adelie/sandbox-seatbelt", "@adelie/messaging-feishu"],file: ".project_config.toml",machineId: "demo-machine-0001",restartPending: false,@@ -850,7 +846,7 @@ export function buildFixtures(lang: Lang, now: number): DemoFixtures {const pluginIndex: PluginIndexResponse = {plugins: [{- name: "@lmliheng/sandbox-bwrap",+ name: "@adelie/sandbox-bwrap",version: "0.2.13",description: "Confines agent commands with bubblewrap on Linux.",authors: ["Adelie"],@@ -861,7 +857,7 @@ export function buildFixtures(lang: Lang, now: number): DemoFixtures {updatedAt: Math.floor(ago(19) / 1000),},{- name: "@lmliheng/sandbox-seatbelt",+ name: "@adelie/sandbox-seatbelt",version: "0.2.13",description: "Confines agent commands with Seatbelt on macOS.",authors: ["Adelie"],@@ -872,7 +868,7 @@ export function buildFixtures(lang: Lang, now: number): DemoFixtures {updatedAt: Math.floor(ago(19) / 1000),},{- name: "@lmliheng/messaging-feishu",+ name: "@adelie/messaging-feishu",version: "0.2.12",description: "Relays a Session to a Feishu bot.",authors: ["Adelie"],@@ -886,7 +882,7 @@ export function buildFixtures(lang: Lang, now: number): DemoFixtures {// authors, keywords) and the package's README. `penguin-sdk` and `web-design` are library// cards above, carrying exactly these versions.{- name: "@lmliheng/penguin-sdk",+ name: "@adelie/sdk",version: "2026.09.11.1",description: "Build with the Adelie SDK: the Session, Agent State and OmniMessage APIs.",authors: ["Prism Shadow"],@@ -895,7 +891,7 @@ export function buildFixtures(lang: Lang, now: number): DemoFixtures {categories: ["ai-app-development"],},{- name: "@lmliheng/web-design",+ name: "@adelie/web-design",version: "2026.09.11.1",description: "Design and build web pages that do not read as templated defaults.",authors: ["Prism Shadow"],@@ -906,13 +902,13 @@ export function buildFixtures(lang: Lang, now: number): DemoFixtures {],};const readmes: Record<string, string> = {- "@lmliheng/sandbox-bwrap":- '# sandbox-bwrap\n\nRuns every agent command inside a bubblewrap namespace: the Workspace is writable, the rest of the filesystem read-only, and the network follows the Session\'s sandbox level.\n\n```toml\n[plugins]\nsandbox-bwrap = "@lmliheng/sandbox-bwrap"\n```\n',- "@lmliheng/sandbox-seatbelt":+ "@adelie/sandbox-bwrap":+ '# sandbox-bwrap\n\nRuns every agent command inside a bubblewrap namespace: the Workspace is writable, the rest of the filesystem read-only, and the network follows the Session\'s sandbox level.\n\n```toml\n[plugins]\nsandbox-bwrap = "@adelie/sandbox-bwrap"\n```\n',+ "@adelie/sandbox-seatbelt":"# sandbox-seatbelt\n\nThe macOS counterpart of sandbox-bwrap, on Seatbelt profiles.\n",- "@lmliheng/messaging-feishu":+ "@adelie/messaging-feishu":"# messaging-feishu\n\nBinds a Session to a Feishu bot so replies reach a chat.\n",- "@lmliheng/penguin-sdk":+ "@adelie/sdk":'# penguin-sdk\n\nBuild an agent application on the SDK: create a Session, run a Prompt, read the stream back as thinking, text and tool events.\n\n```ts\nconst session = await client.createSession({ workspace });\nawait session.run("summarize the changelog");\n```\n',};diff --git a/packages/ui-gallery/src/app/mock/routes.ts b/packages/ui-gallery/src/app/mock/routes.tsindex a942f7b7..67b457a5 100644--- a/packages/ui-gallery/src/app/mock/routes.ts+++ b/packages/ui-gallery/src/app/mock/routes.ts@@ -135,7 +135,7 @@ import type {WorkflowInfo,WorkspaceFilesResponse,WorkspaceSearchResponse,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";// The catalog decides which groups publish a balance, as it does on the server.import { providerInfo } from "../../../../core/dist/state/model-catalog.js";import { READ_ONLY } from "./errors";diff --git a/packages/ui-gallery/src/app/mock/store.ts b/packages/ui-gallery/src/app/mock/store.tsindex b1f8ab17..c3d22190 100644--- a/packages/ui-gallery/src/app/mock/store.ts+++ b/packages/ui-gallery/src/app/mock/store.ts@@ -8,7 +8,7 @@* One store per document (a frame is a document), created on first use for the frame's* language, and re-creatable for tests. Nothing here touches the DOM.*/-import type { ServerEvent, SessionInfo } from "@lmliheng/penguin-server/api";+import type { ServerEvent, SessionInfo } from "@adelie/server/api";import { buildFixtures, DEFAULT_MODEL } from "./fixtures";import type { DemoFixtures } from "./fixtures";import { IDS } from "./ids";diff --git a/packages/ui-gallery/src/app/mock/transcripts.ts b/packages/ui-gallery/src/app/mock/transcripts.tsindex 61b3d70e..cea67f0b 100644--- a/packages/ui-gallery/src/app/mock/transcripts.ts+++ b/packages/ui-gallery/src/app/mock/transcripts.ts@@ -221,7 +221,7 @@ Nothing else in the corpus changed, so the index rebuild took 12.4 ms [1].thinking:"Publishing is irreversible and touches a registry outside the workspace, so this call goes through approval even though the session allows most commands.",allowed:- "Published `@lmliheng/[email protected]`. The registry lists the new version and the tarball is 48.2 KB.",+ "Published `@adelie/[email protected]`. The registry lists the new version and the tarball is 48.2 KB.",denied:"Not published. The package is built and ready in `dist/`; run the publish yourself when you want it out.",},@@ -349,7 +349,7 @@ rank("如何配置 hooks?", index)[0].source;prompt: "测试通过了。把文档包发布到 npm。",thinking:"发布不可撤销,而且会触及工作区之外的注册表,所以即使这个会话允许大多数命令,这一步也要经过审批。",- allowed: "已发布 `@lmliheng/[email protected]`。注册表已列出新版本,压缩包 48.2 KB。",+ allowed: "已发布 `@adelie/[email protected]`。注册表已列出新版本,压缩包 48.2 KB。",denied: "没有发布。包已经构建好放在 `dist/`,需要时自行运行发布命令即可。",},streaming: {@@ -716,7 +716,7 @@ export function approvalOutcome(return decision === "allow"? {output:- "npm notice publishing @lmliheng/[email protected]\nnpm notice 48.2 KB dist/index.js\n+ @lmliheng/[email protected]",+ "npm notice publishing @adelie/[email protected]\nnpm notice 48.2 KB dist/index.js\n+ @adelie/[email protected]",text: c.allowed,}: { output: "Tool call denied by user.", text: c.denied };diff --git a/packages/ui-gallery/src/app/mock/types.ts b/packages/ui-gallery/src/app/mock/types.tsindex 17a291d9..89025695 100644--- a/packages/ui-gallery/src/app/mock/types.ts+++ b/packages/ui-gallery/src/app/mock/types.ts@@ -3,7 +3,7 @@* than imported from core: the gallery does not depend on the core package, and the contract* already carries every shape the app reads off the wire, so deriving keeps one source.*/-import type { MessagesLiveTail, ServerEvent } from "@lmliheng/penguin-server/api";+import type { MessagesLiveTail, ServerEvent } from "@adelie/server/api";export type OmniMessage = MessagesLiveTail["fragments"][number];export type OmniPayload = OmniMessage["payload"];diff --git a/packages/ui-gallery/src/chrome/app-frame.tsx b/packages/ui-gallery/src/chrome/app-frame.tsxindex 14be18f1..8d85cef5 100644--- a/packages/ui-gallery/src/chrome/app-frame.tsx+++ b/packages/ui-gallery/src/chrome/app-frame.tsx@@ -10,7 +10,7 @@* the fonts it is actually set in, for the readout in the top bar's popover and, when the page* asks, its own font line.*/-import type { ThemeId } from "@lmliheng/penguin-ui";+import type { ThemeId } from "@adelie/ui";import { useEffect, useRef, useState } from "react";import { APP_FRAME, appFrameSrc, PHONE_FRAME } from "../app/frame";import type { FontReadout } from "../app/fonts";diff --git a/packages/ui-gallery/src/chrome/topbar.tsx b/packages/ui-gallery/src/chrome/topbar.tsxindex 052493b0..c6183f71 100644--- a/packages/ui-gallery/src/chrome/topbar.tsx+++ b/packages/ui-gallery/src/chrome/topbar.tsx@@ -10,7 +10,7 @@* At phone width the links and controls leave the bar for the drawer (chrome/site.tsx), where* every control has its label, and a menu button opens it.*/-import { THEME_IDS } from "@lmliheng/penguin-ui";+import { THEME_IDS } from "@adelie/ui";import type { ReactNode } from "react";import { accentPresetsOf, accentSwatch, THEME_ACCENT } from "../lib/accents";import { BASE } from "../lib/location";diff --git a/packages/ui-gallery/src/foundations/color.tsx b/packages/ui-gallery/src/foundations/color.tsxindex babff16f..057015b5 100644--- a/packages/ui-gallery/src/foundations/color.tsx+++ b/packages/ui-gallery/src/foundations/color.tsx@@ -6,8 +6,8 @@* chart series as bars; the code and diff colours on a hunk. Every value, with its contrast* ratios, is in the tokens drawer.*/-import { ACCENT_PRESETS, TONES } from "@lmliheng/penguin-ui";-import type { ThemeId, ThemeModeName, ToneName } from "@lmliheng/penguin-ui";+import { ACCENT_PRESETS, TONES } from "@adelie/ui";+import type { ThemeId, ThemeModeName, ToneName } from "@adelie/ui";import type { CSSProperties } from "react";import geekCss from "../../../ui/src/themes/geek.css?raw";import githubCss from "../../../ui/src/themes/github.css?raw";diff --git a/packages/ui-gallery/src/foundations/hooks.tsx b/packages/ui-gallery/src/foundations/hooks.tsxindex d0b5daa0..c35c754c 100644--- a/packages/ui-gallery/src/foundations/hooks.tsx+++ b/packages/ui-gallery/src/foundations/hooks.tsx@@ -14,7 +14,7 @@* tree sample indents its rows the way a host does — by the inset and the indent tokens — so the* three themes' guides land on the same columns as in the modules.*/-import { HOOKS } from "@lmliheng/penguin-ui";+import { HOOKS } from "@adelie/ui";import type { CSSProperties, ReactNode } from "react";import { useGallery } from "../state";import { Glyph, NAV_GLYPHS, SAMPLE_GLYPHS, ShellSpecimen } from "./shared";diff --git a/packages/ui-gallery/src/lib/accents.ts b/packages/ui-gallery/src/lib/accents.tsindex eb816378..6e7995e7 100644--- a/packages/ui-gallery/src/lib/accents.ts+++ b/packages/ui-gallery/src/lib/accents.ts@@ -16,9 +16,9 @@ import {ACCENT_PRESETS,resolveAccent as resolveListed,THEME_ACCENT_PRESETS,-} from "@lmliheng/penguin-ui";-import type { ThemeId } from "@lmliheng/penguin-ui";-import type { AccentChoice } from "@lmliheng/penguin-ui/boot";+} from "@adelie/ui";+import type { ThemeId } from "@adelie/ui";+import type { AccentChoice } from "@adelie/ui/boot";/** The stored value for "no preset": the theme's own accent, no `data-accent` on the root. */export const THEME_ACCENT: AccentChoice = "neutral";diff --git a/packages/ui-gallery/src/lib/breadcrumb.ts b/packages/ui-gallery/src/lib/breadcrumb.tsindex 3137d8b6..8003bf15 100644--- a/packages/ui-gallery/src/lib/breadcrumb.ts+++ b/packages/ui-gallery/src/lib/breadcrumb.ts@@ -12,8 +12,8 @@* so one quote still means one view. The caller passes every name already localized; this file* only spells the address.*/-import { DEFAULT_TEXT_SIZE } from "@lmliheng/penguin-ui/boot";-import type { TextSize } from "@lmliheng/penguin-ui/boot";+import { DEFAULT_TEXT_SIZE } from "@adelie/ui/boot";+import type { TextSize } from "@adelie/ui/boot";import { TEXT_SIZE_PX_NUMBER } from "./themes";export interface BreadcrumbParts {diff --git a/packages/ui-gallery/src/lib/theme-fonts.ts b/packages/ui-gallery/src/lib/theme-fonts.tsindex e5d52595..de24ad0c 100644--- a/packages/ui-gallery/src/lib/theme-fonts.ts+++ b/packages/ui-gallery/src/lib/theme-fonts.ts@@ -4,9 +4,9 @@* the same names the pairing options carry; a role the theme leaves to the platform is* `SYSTEM_FONT`, which the page prints in its own words.*/-import { THEME_IDS } from "@lmliheng/penguin-ui";-import type { ThemeId } from "@lmliheng/penguin-ui";-import { SYSTEM_FONT, THEME_FONTS } from "@lmliheng/penguin-ui/boot";+import { THEME_IDS } from "@adelie/ui";+import type { ThemeId } from "@adelie/ui";+import { SYSTEM_FONT, THEME_FONTS } from "@adelie/ui/boot";export interface ThemeFontRow {theme: ThemeId;diff --git a/packages/ui-gallery/src/lib/themes.ts b/packages/ui-gallery/src/lib/themes.tsindex ec57fa39..bf661e06 100644--- a/packages/ui-gallery/src/lib/themes.ts+++ b/packages/ui-gallery/src/lib/themes.ts@@ -9,13 +9,8 @@* 白领 / 极客 in Chinese, Primer / Frost / Console in English. Ids (`github` / `modern` / `geek`)* stay in URLs and file names.*/-import {- FONT_CJK_OPTIONS,- FONT_LATIN_OPTIONS,- TEXT_SIZE_PX,- TEXT_SIZES,-} from "@lmliheng/penguin-ui/boot";-import type { FontCjk, FontLatin, TextSize } from "@lmliheng/penguin-ui/boot";+import { FONT_CJK_OPTIONS, FONT_LATIN_OPTIONS, TEXT_SIZE_PX, TEXT_SIZES } from "@adelie/ui/boot";+import type { FontCjk, FontLatin, TextSize } from "@adelie/ui/boot";export { TEXT_SIZES };export type { FontCjk, FontLatin, TextSize };diff --git a/packages/ui-gallery/src/lib/token-probe.ts b/packages/ui-gallery/src/lib/token-probe.tsindex 0093799a..120b51a7 100644--- a/packages/ui-gallery/src/lib/token-probe.ts+++ b/packages/ui-gallery/src/lib/token-probe.ts@@ -10,9 +10,9 @@* substituted, so `--ui-accent-line: var(--ui-accent)` comes back as the colour it points at; an* undefined token comes back as the empty string.*/-import { THEME_IDS, THEME_MODES, TOKEN_NAMES } from "@lmliheng/penguin-ui";-import type { ThemeId, ThemeModeName } from "@lmliheng/penguin-ui";-import { applyThemeAttributes } from "@lmliheng/penguin-ui/boot";+import { THEME_IDS, THEME_MODES, TOKEN_NAMES } from "@adelie/ui";+import type { ThemeId, ThemeModeName } from "@adelie/ui";+import { applyThemeAttributes } from "@adelie/ui/boot";import { accentPresetsOf, THEME_ACCENT } from "./accents";import type { Rgba } from "./color";diff --git a/packages/ui-gallery/src/lib/url-state.ts b/packages/ui-gallery/src/lib/url-state.tsindex 9f9af284..0fe78bb4 100644--- a/packages/ui-gallery/src/lib/url-state.ts+++ b/packages/ui-gallery/src/lib/url-state.ts@@ -14,10 +14,10 @@* gallery's root applies them through the package's `applyThemeAttributes`, so a size or a font* pairing chosen here is what a user of the app would have chosen in its Settings.*/-import { DEFAULT_THEME_ID, THEME_IDS } from "@lmliheng/penguin-ui";-import type { ThemeId } from "@lmliheng/penguin-ui";-import { DEFAULT_TEXT_SIZE, TEXT_SIZES } from "@lmliheng/penguin-ui/boot";-import type { TextSize } from "@lmliheng/penguin-ui/boot";+import { DEFAULT_THEME_ID, THEME_IDS } from "@adelie/ui";+import type { ThemeId } from "@adelie/ui";+import { DEFAULT_TEXT_SIZE, TEXT_SIZES } from "@adelie/ui/boot";+import type { TextSize } from "@adelie/ui/boot";import { ACCENT_IDS, THEME_ACCENT } from "./accents";import { CJK_FONTS, LATIN_FONTS, LEGACY_SIZES } from "./themes";import type { FontCjk, FontLatin } from "./themes";diff --git a/packages/ui-gallery/src/library/boards/avatars.tsx b/packages/ui-gallery/src/library/boards/avatars.tsxindex c0c91938..a31dc206 100644--- a/packages/ui-gallery/src/library/boards/avatars.tsx+++ b/packages/ui-gallery/src/library/boards/avatars.tsx@@ -2,13 +2,7 @@* 头像: the user avatar at its two rungs, with and without a nickname, the agent avatar at three* sizes, and the avatar stack — agents and an account overlapping, then the count of the rest.*/-import {- AgentAvatar,- AvatarStack,- ICON_SIZE,- USER_AVATAR_SIZE,- UserAvatar,-} from "@lmliheng/penguin-ui";+import { AgentAvatar, AvatarStack, ICON_SIZE, USER_AVATAR_SIZE, UserAvatar } from "@adelie/ui";import { BoardGroup } from "../../foundations/shared";import { useGallery } from "../../state";diff --git a/packages/ui-gallery/src/library/boards/badges.tsx b/packages/ui-gallery/src/library/boards/badges.tsxindex 31958691..a67ed4ae 100644--- a/packages/ui-gallery/src/library/boards/badges.tsx+++ b/packages/ui-gallery/src/library/boards/badges.tsx@@ -18,8 +18,8 @@ import {TONES,UpdateDot,UpdatePill,-} from "@lmliheng/penguin-ui";-import type { ActivityIconState, BadgeVariant, RunState } from "@lmliheng/penguin-ui";+} from "@adelie/ui";+import type { ActivityIconState, BadgeVariant, RunState } from "@adelie/ui";import { BoardGroup } from "../../foundations/shared";import { useGallery } from "../../state";diff --git a/packages/ui-gallery/src/library/boards/buttons.tsx b/packages/ui-gallery/src/library/boards/buttons.tsxindex 95001ee3..97a7e12e 100644--- a/packages/ui-gallery/src/library/boards/buttons.tsx+++ b/packages/ui-gallery/src/library/boards/buttons.tsx@@ -3,7 +3,7 @@* link in a sentence and on its own, and the keyboard hint.*/import type { MouseEvent } from "react";-import { Button, GlyphIcon, ICONS, IconButton, Kbd, Link, PlusIcon } from "@lmliheng/penguin-ui";+import { Button, GlyphIcon, ICONS, IconButton, Kbd, Link, PlusIcon } from "@adelie/ui";import { BoardGroup } from "../../foundations/shared";import { useGallery } from "../../state";diff --git a/packages/ui-gallery/src/library/boards/chart-primitives.tsx b/packages/ui-gallery/src/library/boards/chart-primitives.tsxindex 303e4609..eff7356c 100644--- a/packages/ui-gallery/src/library/boards/chart-primitives.tsx+++ b/packages/ui-gallery/src/library/boards/chart-primitives.tsx@@ -20,8 +20,8 @@ import {TimelineBar,curvePath,useChartStyle,-} from "@lmliheng/penguin-ui";-import type { ChartCurve } from "@lmliheng/penguin-ui";+} from "@adelie/ui";+import type { ChartCurve } from "@adelie/ui";import { BoardGroup } from "../../foundations/shared";import { useGallery } from "../../state";diff --git a/packages/ui-gallery/src/library/boards/charts.tsx b/packages/ui-gallery/src/library/boards/charts.tsxindex 32c9aa7d..886c4a7a 100644--- a/packages/ui-gallery/src/library/boards/charts.tsx+++ b/packages/ui-gallery/src/library/boards/charts.tsx@@ -17,9 +17,9 @@ import type {TraceOtherSpan,TraceToolSpan,UsageSeriesPoint,-} from "@lmliheng/penguin-server/api";-import { ContextRing, Legend, Ring, Sparkline, TokenDonut } from "@lmliheng/penguin-ui";-import type { LegendItem, RingSegment, ToneName } from "@lmliheng/penguin-ui";+} from "@adelie/server/api";+import { ContextRing, Legend, Ring, Sparkline, TokenDonut } from "@adelie/ui";+import type { LegendItem, RingSegment, ToneName } from "@adelie/ui";import { humanizeTokens } from "../../../../web/src/lib/format";import { TimelineChart } from "../../../../web/src/features/traces/timeline-chart";import type { TraceHighlight } from "../../../../web/src/features/traces/timeline-chart";diff --git a/packages/ui-gallery/src/library/boards/content.tsx b/packages/ui-gallery/src/library/boards/content.tsxindex 64b57333..c860634d 100644--- a/packages/ui-gallery/src/library/boards/content.tsx+++ b/packages/ui-gallery/src/library/boards/content.tsx@@ -4,16 +4,8 @@* gutter, and the diff viewer unified, side by side and read from a patch — all from the package.* Code is highlighted by the highlighter the frame provides, as in the app.*/-import {- CodeBlock,- CodeSurface,- DiffViewer,- Heading,- InlineCode,- Prose,- Text,-} from "@lmliheng/penguin-ui";-import type { HeadingLevel, TextVariant } from "@lmliheng/penguin-ui";+import { CodeBlock, CodeSurface, DiffViewer, Heading, InlineCode, Prose, Text } from "@adelie/ui";+import type { HeadingLevel, TextVariant } from "@adelie/ui";import { BoardGroup } from "../../foundations/shared";import { useGallery } from "../../state";diff --git a/packages/ui-gallery/src/library/boards/data.tsx b/packages/ui-gallery/src/library/boards/data.tsxindex db402a9d..665d6e74 100644--- a/packages/ui-gallery/src/library/boards/data.tsx+++ b/packages/ui-gallery/src/library/boards/data.tsx@@ -24,7 +24,7 @@ import {TableHead,TableHeaderCell,TableRow,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import { BoardGroup } from "../../foundations/shared";import { useGallery } from "../../state";diff --git a/packages/ui-gallery/src/library/boards/dialogs.tsx b/packages/ui-gallery/src/library/boards/dialogs.tsxindex d9a5c3da..acf89bf4 100644--- a/packages/ui-gallery/src/library/boards/dialogs.tsx+++ b/packages/ui-gallery/src/library/boards/dialogs.tsx@@ -15,8 +15,8 @@ import {PagedDialog,Sheet,ZoomableImage,-} from "@lmliheng/penguin-ui";-import type { PagedDialogGroup, PaletteAction, SheetSnap } from "@lmliheng/penguin-ui";+} from "@adelie/ui";+import type { PagedDialogGroup, PaletteAction, SheetSnap } from "@adelie/ui";import { BoardGroup } from "../../foundations/shared";import { BASE } from "../../lib/location";import { useGallery } from "../../state";diff --git a/packages/ui-gallery/src/library/boards/empty.tsx b/packages/ui-gallery/src/library/boards/empty.tsxindex 84a823c5..387158b9 100644--- a/packages/ui-gallery/src/library/boards/empty.tsx+++ b/packages/ui-gallery/src/library/boards/empty.tsx@@ -1,5 +1,5 @@/** 空状态: the page placeholder with and without an action, and the dashed slot form. */-import { Button, EmptyState, SettingsEmpty } from "@lmliheng/penguin-ui";+import { Button, EmptyState, SettingsEmpty } from "@adelie/ui";import { BoardGroup } from "../../foundations/shared";import { useGallery } from "../../state";diff --git a/packages/ui-gallery/src/library/boards/files.tsx b/packages/ui-gallery/src/library/boards/files.tsxindex 105c8b72..602763a2 100644--- a/packages/ui-gallery/src/library/boards/files.tsx+++ b/packages/ui-gallery/src/library/boards/files.tsx@@ -19,13 +19,8 @@ import {WorkspaceFileEditor,WorkspaceFileMenuRows,menuPanelClass,-} from "@lmliheng/penguin-ui";-import type {- FileBrowserPreview,- FileTreeRow,- PreviewView,- TreeToggle,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";+import type { FileBrowserPreview, FileTreeRow, PreviewView, TreeToggle } from "@adelie/ui";import { BoardGroup } from "../../foundations/shared";import { useGallery } from "../../state";import { DEMO_OPEN_DIRS, DEMO_TREE, demoSize, flattenTree } from "../demo-tree";diff --git a/packages/ui-gallery/src/library/boards/inputs.tsx b/packages/ui-gallery/src/library/boards/inputs.tsxindex b611df0f..403abab6 100644--- a/packages/ui-gallery/src/library/boards/inputs.tsx+++ b/packages/ui-gallery/src/library/boards/inputs.tsx@@ -3,14 +3,7 @@* error and in-field affixes; the search box in its three shapes; checkboxes and radio groups.*/import { useState } from "react";-import {- Checkbox,- Input,- PasswordInput,- RadioGroup,- SearchInput,- Textarea,-} from "@lmliheng/penguin-ui";+import { Checkbox, Input, PasswordInput, RadioGroup, SearchInput, Textarea } from "@adelie/ui";import { BoardGroup } from "../../foundations/shared";import { useGallery } from "../../state";diff --git a/packages/ui-gallery/src/library/boards/layout.tsx b/packages/ui-gallery/src/library/boards/layout.tsxindex a225147c..57580e0c 100644--- a/packages/ui-gallery/src/library/boards/layout.tsx+++ b/packages/ui-gallery/src/library/boards/layout.tsx@@ -28,7 +28,7 @@ import {ProviderLogo,RuledSection,Text,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import { BoardGroup } from "../../foundations/shared";import { useGallery } from "../../state";diff --git a/packages/ui-gallery/src/library/boards/loading.tsx b/packages/ui-gallery/src/library/boards/loading.tsxindex dfa5accb..928ce0ea 100644--- a/packages/ui-gallery/src/library/boards/loading.tsx+++ b/packages/ui-gallery/src/library/boards/loading.tsx@@ -2,14 +2,8 @@* 加载: the running-state spinner on its three rungs, the skeleton line, list and card, and the* progress bar on its three heights, toned and indeterminate.*/-import {- ProgressBar,- Skeleton,- SkeletonCard,- SkeletonList,- StatusIcon,-} from "@lmliheng/penguin-ui";-import type { ProgressBarSize, StatusIconSize } from "@lmliheng/penguin-ui";+import { ProgressBar, Skeleton, SkeletonCard, SkeletonList, StatusIcon } from "@adelie/ui";+import type { ProgressBarSize, StatusIconSize } from "@adelie/ui";import { BoardGroup } from "../../foundations/shared";import { useGallery } from "../../state";diff --git a/packages/ui-gallery/src/library/boards/notices.tsx b/packages/ui-gallery/src/library/boards/notices.tsxindex 5d43edbd..dabaa43d 100644--- a/packages/ui-gallery/src/library/boards/notices.tsx+++ b/packages/ui-gallery/src/library/boards/notices.tsx@@ -3,8 +3,8 @@* (`data-slot="icon"`, which a theme that draws its own tone mark hides), and with actions — then* the Notice built on it in its three variants with its action slots, and the page to-do.*/-import { Button, Dot, ICONS, Notice, NoticeStrip, TodoNotice } from "@lmliheng/penguin-ui";-import type { NoticeStripTone } from "@lmliheng/penguin-ui";+import { Button, Dot, ICONS, Notice, NoticeStrip, TodoNotice } from "@adelie/ui";+import type { NoticeStripTone } from "@adelie/ui";import { BoardGroup } from "../../foundations/shared";import { useGallery } from "../../state";diff --git a/packages/ui-gallery/src/library/boards/pickers.tsx b/packages/ui-gallery/src/library/boards/pickers.tsxindex 7170b951..93c1a0dc 100644--- a/packages/ui-gallery/src/library/boards/pickers.tsx+++ b/packages/ui-gallery/src/library/boards/pickers.tsx@@ -21,7 +21,7 @@ import {Switch,ToggleRow,menuPanelClass,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import { BoardGroup } from "../../foundations/shared";import { useGallery } from "../../state";diff --git a/packages/ui-gallery/src/library/boards/streaming.tsx b/packages/ui-gallery/src/library/boards/streaming.tsxindex 65ebe83d..c0ae1ee4 100644--- a/packages/ui-gallery/src/library/boards/streaming.tsx+++ b/packages/ui-gallery/src/library/boards/streaming.tsx@@ -12,8 +12,8 @@* shares the live reply's grid cell), so the frame does not grow line by line as text arrives.*/import { useEffect, useMemo, useState } from "react";-import { AssistantText, STREAM_REVEALS, usePrefersReducedMotion } from "@lmliheng/penguin-ui";-import type { StreamReveal } from "@lmliheng/penguin-ui";+import { AssistantText, STREAM_REVEALS, usePrefersReducedMotion } from "@adelie/ui";+import type { StreamReveal } from "@adelie/ui";import { streamScript } from "../../app/mock/stream-script";import { streamingAnswer } from "../../app/mock/transcripts";import { BoardGroup, ReplayButton } from "../../foundations/shared";diff --git a/packages/ui-gallery/src/library/boards/tabs.tsx b/packages/ui-gallery/src/library/boards/tabs.tsxindex c4b7aa64..c0df9777 100644--- a/packages/ui-gallery/src/library/boards/tabs.tsx+++ b/packages/ui-gallery/src/library/boards/tabs.tsx@@ -1,6 +1,6 @@/** 标签页: the app's Tabs, plain and with an update badge on one tab. */import { useState } from "react";-import { Tabs } from "@lmliheng/penguin-ui";+import { Tabs } from "@adelie/ui";import { BoardGroup } from "../../foundations/shared";import { useGallery } from "../../state";diff --git a/packages/ui-gallery/src/library/boards/toasts.tsx b/packages/ui-gallery/src/library/boards/toasts.tsxindex 9645d596..a574746b 100644--- a/packages/ui-gallery/src/library/boards/toasts.tsx+++ b/packages/ui-gallery/src/library/boards/toasts.tsx@@ -2,7 +2,7 @@* 提示弹窗: the package's toast after an action completes, in its four kinds, fired from buttons* (the Toaster is mounted by the frame).*/-import { Button, toastAttention, toastError, toastInfo, toastSuccess } from "@lmliheng/penguin-ui";+import { Button, toastAttention, toastError, toastInfo, toastSuccess } from "@adelie/ui";import { BoardGroup } from "../../foundations/shared";import { useGallery } from "../../state";diff --git a/packages/ui-gallery/src/library/boards/tooltips.tsx b/packages/ui-gallery/src/library/boards/tooltips.tsxindex 61012688..67e333f4 100644--- a/packages/ui-gallery/src/library/boards/tooltips.tsx+++ b/packages/ui-gallery/src/library/boards/tooltips.tsx@@ -1,5 +1,5 @@/** 悬停提示: the package's one tooltip, by attribute (read by the frame's TooltipLayer) and by component, and on a truncated line. */-import { Button, ICONS, Tooltip } from "@lmliheng/penguin-ui";+import { Button, ICONS, Tooltip } from "@adelie/ui";import { BoardGroup } from "../../foundations/shared";import { useGallery } from "../../state";diff --git a/packages/ui-gallery/src/library/demo-tree.ts b/packages/ui-gallery/src/library/demo-tree.tsindex f54e403a..0ef33a8a 100644--- a/packages/ui-gallery/src/library/demo-tree.ts+++ b/packages/ui-gallery/src/library/demo-tree.ts@@ -3,7 +3,7 @@* from it: every visible entry in order, with its depth, its position in its directory and, for* a directory, whether it is open — pure, so the flattening is unit-tested.*/-import type { FileTreeRow } from "@lmliheng/penguin-ui";+import type { FileTreeRow } from "@adelie/ui";export interface DemoEntry {name: string;diff --git a/packages/ui-gallery/src/library/main.tsx b/packages/ui-gallery/src/library/main.tsxindex 749aaa0e..a6cbcb40 100644--- a/packages/ui-gallery/src/library/main.tsx+++ b/packages/ui-gallery/src/library/main.tsx@@ -13,7 +13,7 @@*/import { StrictMode } from "react";import { createRoot } from "react-dom/client";-import { CodeHighlighterProvider, Toaster, TooltipLayer } from "@lmliheng/penguin-ui";+import { CodeHighlighterProvider, Toaster, TooltipLayer } from "@adelie/ui";import { highlightCode } from "../../../web/src/features/chat/code-highlight";import { LocaleProvider, LocaleScope } from "../../../web/src/state/locale";import { ThemeProvider } from "../../../web/src/state/theme";diff --git a/packages/ui-gallery/src/pages/fonts.tsx b/packages/ui-gallery/src/pages/fonts.tsxindex 595d570e..20323bfa 100644--- a/packages/ui-gallery/src/pages/fonts.tsx+++ b/packages/ui-gallery/src/pages/fonts.tsx@@ -9,7 +9,7 @@* family, weight and style, with the number of `unicode-range` slices and their load status.* - Licences: the licence texts under the package's `fonts/LICENSES/`.*/-import { THEME_IDS } from "@lmliheng/penguin-ui";+import { THEME_IDS } from "@adelie/ui";import { useEffect, useState } from "react";import type { ReactNode } from "react";import { FontReadoutLine } from "../chrome/font-readout";diff --git a/packages/ui-gallery/src/state.tsx b/packages/ui-gallery/src/state.tsxindex 41328f2a..a7f54dcf 100644--- a/packages/ui-gallery/src/state.tsx+++ b/packages/ui-gallery/src/state.tsx@@ -21,7 +21,7 @@ import {useState,} from "react";import type { ReactNode } from "react";-import { applyThemeAttributes } from "@lmliheng/penguin-ui/boot";+import { applyThemeAttributes } from "@adelie/ui/boot";import { asAccentChoice, resolveAccent } from "./lib/accents";import { replaceSearch, usePrefersDark, useSearch } from "./lib/location";import { probeAccents, probeTokens } from "./lib/token-probe";diff --git a/packages/ui-gallery/src/strings-en.ts b/packages/ui-gallery/src/strings-en.tsindex 430d9e58..1a200438 100644--- a/packages/ui-gallery/src/strings-en.ts+++ b/packages/ui-gallery/src/strings-en.ts@@ -721,7 +721,7 @@ export const en: GalleryStrings = {besideTip: "Opens to the right of its trigger",belowTip: "Opens under its trigger",command:- "pnpm --filter @lmliheng/penguin-web exec vitest run test/session-activity.test.ts --reporter verbose",+ "pnpm --filter @adelie/web exec vitest run test/session-activity.test.ts --reporter verbose",},tabs: {basic: "Tab switcher",diff --git a/packages/ui-gallery/src/strings.ts b/packages/ui-gallery/src/strings.tsindex b332adc0..6043b31d 100644--- a/packages/ui-gallery/src/strings.ts+++ b/packages/ui-gallery/src/strings.ts@@ -9,8 +9,8 @@* the component library's topics (src/library/topics.ts), in both dictionaries; a test checks* each covers every id.*/-import type { HookName, StreamReveal, TextVariant, ThemeId, ToneName } from "@lmliheng/penguin-ui";-import type { TextSize } from "@lmliheng/penguin-ui/boot";+import type { HookName, StreamReveal, TextVariant, ThemeId, ToneName } from "@adelie/ui";+import type { TextSize } from "@adelie/ui/boot";import type { SurfaceGroupId, SurfaceId } from "./app/surfaces";import type { ChartToken } from "./library/chart-tokens";import type { TopicGroupId, TopicId } from "./library/topics";@@ -683,7 +683,7 @@ export const zh = {besideTip: "在触发元素右侧弹出",belowTip: "在触发元素下方弹出",command:- "pnpm --filter @lmliheng/penguin-web exec vitest run test/session-activity.test.ts --reporter verbose",+ "pnpm --filter @adelie/web exec vitest run test/session-activity.test.ts --reporter verbose",},tabs: {basic: "标签切换",diff --git a/packages/ui-gallery/src/styles.css b/packages/ui-gallery/src/styles.cssindex 6f1b7ef9..b0c1b578 100644--- a/packages/ui-gallery/src/styles.css+++ b/packages/ui-gallery/src/styles.css@@ -5,11 +5,11 @@* documents (src/app/app.css, src/library/library.css), which carry the app's stylesheet.*/@import "tailwindcss";-@import "@lmliheng/penguin-ui/theme.css";-@import "@lmliheng/penguin-ui/themes/github.css";-@import "@lmliheng/penguin-ui/themes/modern.css";-@import "@lmliheng/penguin-ui/themes/geek.css";-@import "@lmliheng/penguin-ui/fonts.css";+@import "@adelie/ui/theme.css";+@import "@adelie/ui/themes/github.css";+@import "@adelie/ui/themes/modern.css";+@import "@adelie/ui/themes/geek.css";+@import "@adelie/ui/fonts.css";@import "./chrome.css";@source "../../ui/src";diff --git a/packages/ui-gallery/src/text.ts b/packages/ui-gallery/src/text.tsindex 1dfa0dab..0eab6fb7 100644--- a/packages/ui-gallery/src/text.ts+++ b/packages/ui-gallery/src/text.ts@@ -3,7 +3,7 @@* their groups, the theme display names, and the breadcrumb's qualifiers — all from the* dictionaries.*/-import type { ThemeId } from "@lmliheng/penguin-ui";+import type { ThemeId } from "@adelie/ui";import type { SurfaceGroupId, SurfaceId } from "./app/surfaces";import { THEME_ACCENT } from "./lib/accents";import type { TopicGroupId, TopicId } from "./library/topics";diff --git a/packages/ui-gallery/test/accents.test.ts b/packages/ui-gallery/test/accents.test.tsindex 78d7379c..ed965fab 100644--- a/packages/ui-gallery/test/accents.test.ts+++ b/packages/ui-gallery/test/accents.test.ts@@ -2,7 +2,7 @@* The accent choice: the rail offers the active theme's own list after 随主题, a choice survives a* theme that does not list it, and the URL accepts every theme's ids and nothing else.*/-import { THEME_ACCENT_PRESETS, THEME_IDS } from "@lmliheng/penguin-ui";+import { THEME_ACCENT_PRESETS, THEME_IDS } from "@adelie/ui";import { describe, expect, it } from "vitest";import {ACCENT_IDS,diff --git a/packages/ui-gallery/test/demo-store.test.ts b/packages/ui-gallery/test/demo-store.test.tsindex 572811de..e75d3af2 100644--- a/packages/ui-gallery/test/demo-store.test.ts+++ b/packages/ui-gallery/test/demo-store.test.ts@@ -4,7 +4,7 @@* streams a reply and settles, an approval decides the pending command, an abort stops a run.*/import { afterEach, describe, expect, it, vi } from "vitest";-import type { ServerEvent } from "@lmliheng/penguin-server/api";+import type { ServerEvent } from "@adelie/server/api";import { catalogEntryFor } from "../../core/dist/state/model-catalog.js";import { catalogDelta } from "../../web/src/features/models/catalog-sync";import { buildFixtures } from "../src/app/mock/fixtures";diff --git a/packages/ui-gallery/test/frame.test.ts b/packages/ui-gallery/test/frame.test.tsindex 22fb8319..1806afaa 100644--- a/packages/ui-gallery/test/frame.test.ts+++ b/packages/ui-gallery/test/frame.test.ts@@ -7,7 +7,7 @@ import { readFileSync } from "node:fs";import { fileURLToPath } from "node:url";import vm from "node:vm";import { describe, expect, it } from "vitest";-import { THEME_STORAGE_KEYS } from "@lmliheng/penguin-ui/boot";+import { THEME_STORAGE_KEYS } from "@adelie/ui/boot";import {APP_FRAME_PATH,APP_LANG_KEY,diff --git a/packages/ui-gallery/test/library.test.ts b/packages/ui-gallery/test/library.test.tsindex 6c49f645..6d623bc7 100644--- a/packages/ui-gallery/test/library.test.ts+++ b/packages/ui-gallery/test/library.test.ts@@ -6,7 +6,7 @@import { readFileSync } from "node:fs";import { fileURLToPath } from "node:url";import { describe, expect, it } from "vitest";-import { STREAM_REVEALS, TOKEN_NAMES } from "@lmliheng/penguin-ui";+import { STREAM_REVEALS, TOKEN_NAMES } from "@adelie/ui";import { HOME_SURFACE } from "../src/app/surfaces";import { SEEDED_KEYS } from "../src/app/frame";import {@@ -170,7 +170,7 @@ describe("the charts board", () => {it("shows each primitive on its own, from the package and nothing from the app", () => {const stage = read("../src/library/boards/chart-primitives.tsx");- expect(stage).toMatch(/from "@lmliheng\/penguin-ui";/);+ expect(stage).toMatch(/from "@adelie\/ui";/);expect(stage).not.toMatch(/web\/src/);for (const primitive of ["ChartBar",@@ -237,7 +237,7 @@ describe("the charts board", () => {expect(board).toMatch(new RegExp(`<${chart}[\\s/>]`));}// The package's charts come from the package; the app's domain charts from the app.- expect(board).toMatch(/from "@lmliheng\/penguin-ui";/);+ expect(board).toMatch(/from "@adelie\/ui";/);expect(board).not.toMatch(/token-donut"|-sparkline"/);expect(board).toMatch(/from "\.\.\/\.\.\/\.\.\/\.\.\/web\/src\/features\/traces\/timeline-chart"/,@@ -248,7 +248,7 @@ describe("the charts board", () => {describe("the content board", () => {it("shows every content component from the package, and nothing from the app", () => {const board = read("../src/library/boards/content.tsx");- expect(board).toMatch(/from "@lmliheng\/penguin-ui";/);+ expect(board).toMatch(/from "@adelie\/ui";/);expect(board).not.toMatch(/web\/src/);for (const component of ["Heading",@@ -292,7 +292,7 @@ describe("the content board", () => {describe("the streaming board", () => {it("plays the streaming Session's answer through the package's reply body, on one seed, with a replay", () => {const board = read("../src/library/boards/streaming.tsx");- expect(board).toMatch(/import \{ AssistantText, [^}]*\} from "@lmliheng\/penguin-ui";/);+ expect(board).toMatch(/import \{ AssistantText, [^}]*\} from "@adelie\/ui";/);expect(board).not.toMatch(/web\/src\/features\/chat/);expect(board).toMatch(/streamScript\(text, BOARD_SEED\)/);expect(board).toMatch(/const answer = streamingAnswer\(state\.lang\);/);@@ -347,7 +347,7 @@ describe("the layout and data boards", () => {};for (const [topic, components] of Object.entries(boards)) {const board = read(`../src/library/boards/${topic}.tsx`);- expect(board).toMatch(/from "@lmliheng\/penguin-ui";/);+ expect(board).toMatch(/from "@adelie\/ui";/);expect(board).not.toMatch(/web\/src/);for (const component of components) {expect(board, `${topic}: ${component}`).toMatch(new RegExp(`<${component}[\\s/>]`));diff --git a/packages/ui-gallery/test/text-size.test.ts b/packages/ui-gallery/test/text-size.test.tsindex bf985f95..be7b746a 100644--- a/packages/ui-gallery/test/text-size.test.ts+++ b/packages/ui-gallery/test/text-size.test.ts@@ -16,7 +16,7 @@ import {FONT_CJK_OPTIONS,FONT_LATIN_OPTIONS,TEXT_SIZE_PX,-} from "@lmliheng/penguin-ui/boot";+} from "@adelie/ui/boot";import { appFrameSrc } from "../src/app/frame";import {CJK_FONTS,diff --git a/packages/ui-gallery/test/theme-fonts.test.ts b/packages/ui-gallery/test/theme-fonts.test.tsindex b4b4147a..7708181c 100644--- a/packages/ui-gallery/test/theme-fonts.test.ts+++ b/packages/ui-gallery/test/theme-fonts.test.ts@@ -2,8 +2,8 @@* The fonts page's defaults table prints what the package states for every theme, and names the* platform's face only where the package does.*/-import { THEME_IDS } from "@lmliheng/penguin-ui";-import { SYSTEM_FONT, THEME_FONTS } from "@lmliheng/penguin-ui/boot";+import { THEME_IDS } from "@adelie/ui";+import { SYSTEM_FONT, THEME_FONTS } from "@adelie/ui/boot";import { describe, expect, it } from "vitest";import { isSystemFont, themeFontRows } from "../src/lib/theme-fonts";import { zh } from "../src/strings";diff --git a/packages/ui-gallery/tsconfig.json b/packages/ui-gallery/tsconfig.jsonindex cbef774f..165aec01 100644--- a/packages/ui-gallery/tsconfig.json+++ b/packages/ui-gallery/tsconfig.json@@ -6,7 +6,7 @@"jsx": "react-jsx","useDefineForClassFields": true,"paths": {- "@lmliheng/penguin-server/api": ["../server/src/api/types.ts"]+ "@adelie/server/api": ["../server/src/api/types.ts"]}},"include": ["src", "test", "vite.config.ts", "vitest.config.ts"]diff --git a/packages/ui-gallery/vite.config.ts b/packages/ui-gallery/vite.config.tsindex b6abc034..9a295a4f 100644--- a/packages/ui-gallery/vite.config.ts+++ b/packages/ui-gallery/vite.config.ts@@ -12,7 +12,7 @@* serve and build time. The app's highlighting worker needs ES-format workers, as in the app's config,* and React is deduplicated so the app and the gallery never load two copies.*- * `@lmliheng/penguin-ui` resolves to the live `packages/ui/src` through the workspace link;+ * `@adelie/ui` resolves to the live `packages/ui/src` through the workspace link;* `penguinUi()` emits the bundled fonts' licence texts beside a build. Port 7372 is fixed and* strict: screenshot runs and quoted feedback links name it. BASE_PATH lets a static build be* served under a subpath. The vitest config stays separate (vitest's embedded vite typesdiff --git a/packages/ui/package.json b/packages/ui/package.jsonindex 2c3ae175..bde502c8 100644--- a/packages/ui/package.json+++ b/packages/ui/package.json@@ -1,5 +1,5 @@{- "name": "@lmliheng/penguin-ui",+ "name": "@adelie/ui","version": "0.4.2","private": true,"type": "module",diff --git a/packages/ui/scripts/sync-font-licenses.mjs b/packages/ui/scripts/sync-font-licenses.mjsindex 7644108f..e29fbad3 100644--- a/packages/ui/scripts/sync-font-licenses.mjs+++ b/packages/ui/scripts/sync-font-licenses.mjs@@ -1,5 +1,5 @@/**- * Mirrors the licence text of every font package @lmliheng/penguin-ui depends on into+ * Mirrors the licence text of every font package @adelie/ui depends on into* `src/fonts/LICENSES/<package>.txt` — verbatim except for whitespace: line endings become LF,* trailing spaces go and the file ends in one newline, because the repository stores text as LF* (.gitattributes) and a CRLF original would otherwise read as drift after every checkout.@@ -9,8 +9,8 @@* (`fonts-licenses/<package>.txt` in every consumer's dist) without reaching into node_modules at* build time.*- * pnpm --filter @lmliheng/penguin-ui sync:font-licenses rewrite the mirror- * pnpm --filter @lmliheng/penguin-ui sync:font-licenses --check exit 1 on any drift, write nothing+ * pnpm --filter @adelie/ui sync:font-licenses rewrite the mirror+ * pnpm --filter @adelie/ui sync:font-licenses --check exit 1 on any drift, write nothing** A font package is any `@fontsource/*` or `@fontsource-variable/*` dependency. Its file is named* after the package without its scope, so `@fontsource-variable/mona-sans` → `mona-sans.txt`.@@ -106,7 +106,7 @@ if (check) {if (problems.length > 0) {console.error(`Font licence mirror is out of date:\n ${problems.join("\n ")}\n` +- "Run `pnpm --filter @lmliheng/penguin-ui sync:font-licenses`.",+ "Run `pnpm --filter @adelie/ui sync:font-licenses`.",);}if (vendoredProblems.length > 0) {diff --git a/packages/ui/src/components/content/code-block/highlighter-core.ts b/packages/ui/src/components/content/code-block/highlighter-core.tsindex dd52139c..63e1b9c5 100644--- a/packages/ui/src/components/content/code-block/highlighter-core.ts+++ b/packages/ui/src/components/content/code-block/highlighter-core.ts@@ -3,7 +3,7 @@* dual-theme HTML. The package's code components never import it: `CodeSurface` asks a* {@link CodeHighlighter} it is handed (by prop or by `CodeHighlighterProvider`), and the app* decides where the engine runs — the Web App runs it on a worker and falls back to this thread.- * So it is published on its own subpath (`@lmliheng/penguin-ui/highlighter`), which a worker can+ * So it is published on its own subpath (`@adelie/ui/highlighter`), which a worker can* import without React, and kept out of the root barrel, so no static import of the barrel can put* a copy of Shiki in the entry chunk.*diff --git a/packages/ui/src/fonts/README.md b/packages/ui/src/fonts/README.mdindex 23f074f2..f966786d 100644--- a/packages/ui/src/fonts/README.md+++ b/packages/ui/src/fonts/README.md@@ -1,6 +1,6 @@# Fonts-The faces `@lmliheng/penguin-ui` bundles, which theme names each one, what they cost, the licence+The faces `@adelie/ui` bundles, which theme names each one, what they cost, the licenceeach one carries and what that licence asks of the app, and how to update them. Bundled rather thanfetched from a CDN, so the desktop build renders offline.@@ -89,7 +89,7 @@ The `penguinUi()` Vite plugin emits every text in `LICENSES/` beside the build a`fonts-licenses/<name>.txt`.**OFL-1.1 faces.** `scripts/sync-font-licenses.mjs` mirrors each fontsource package's `LICENSE` into-`LICENSES/<package>.txt` (`pnpm --filter @lmliheng/penguin-ui sync:font-licenses`, `--check` to+`LICENSES/<package>.txt` (`pnpm --filter @adelie/ui sync:font-licenses`, `--check` toverify without writing).**MiSans.** Xiaomi Inc. publishes MiSans under the MiSans Font Intellectual Property License@@ -117,7 +117,7 @@ What the licence asks, and where the app does it:- **MiSans:** download the official package from https://hyperos.mi.com/font/ (the site asks you toaccept the licence first), then from the repository root run`uv run packages/ui/scripts/build-misans.py <MiSans.zip>` (or `pnpm --filter- @lmliheng/penguin-ui fonts:misans /absolute/path/to/MiSans.zip`: pnpm runs the script in+ @adelie/ui fonts:misans /absolute/path/to/MiSans.zip`: pnpm runs the script in`packages/ui`, so a relative path would not resolve); `--check` rebuilds in a temporary directoryand compares byte for byte. The script pins the sha256 of the Regular and Medium TTFs it accepts,so a new MiSans release is a deliberate change: update the pins, rebuild, review the slices, anddiff --git a/packages/ui/src/index.ts b/packages/ui/src/index.tsindex 8e1eb4d1..4664b19e 100644--- a/packages/ui/src/index.ts+++ b/packages/ui/src/index.ts@@ -1,5 +1,5 @@/**- * @lmliheng/penguin-ui — the shared UI package: token contract, themes, fonts and the+ * @adelie/ui — the shared UI package: token contract, themes, fonts and the* component set. Source-only: a consumer's `workspace:*` dependency is linked to this directory,* so Vite, vitest and tsc read `src/` through the `exports` map in package.json, never a build.*diff --git a/packages/ui/src/theme.css b/packages/ui/src/theme.cssindex 08bf93c2..6a70c56a 100644--- a/packages/ui/src/theme.css+++ b/packages/ui/src/theme.css@@ -2,9 +2,9 @@* The theme foundation every consumer imports right after `@import "tailwindcss"`:** @import "tailwindcss";- * @import "@lmliheng/penguin-ui/theme.css";- * @import "@lmliheng/penguin-ui/themes/github.css"; (then modern.css, geek.css)- * @import "@lmliheng/penguin-ui/fonts.css";+ * @import "@adelie/ui/theme.css";+ * @import "@adelie/ui/themes/github.css"; (then modern.css, geek.css)+ * @import "@adelie/ui/fonts.css";** What lives here is theme-independent: the `dark` variant, the cascade layer order, the bridge* from the `--ui-*` token contract (tokens.ts) to Tailwind utilities, the base rules that readdiff --git a/packages/ui/test/entity-header.test.ts b/packages/ui/test/entity-header.test.tsindex e78bf0bf..5abaca55 100644--- a/packages/ui/test/entity-header.test.ts+++ b/packages/ui/test/entity-header.test.ts@@ -13,7 +13,7 @@ describe("EntityHeader", () => {EntityHeader,{media: createElement("img", { alt: "", src: "/logo.svg" }),- name: "@lmliheng/goal",+ name: "@adelie/goal",meta: "v0.2.9",description: "Keeps the agent on its goal.",actions: createElement("button", { type: "button" }, "Install"),@@ -23,7 +23,7 @@ describe("EntityHeader", () => {);it("names the thing with a level-1 heading on its rung, not in mono", () => {- expect(html).toMatch(/<h1 class="[^"]*--ui-h1-size[^"]*">@lmliheng\/goal<\/h1>/);+ expect(html).toMatch(/<h1 class="[^"]*--ui-h1-size[^"]*">@adelie\/goal<\/h1>/);expect(html).not.toContain("ui-display");expect(/<h1 class="([^"]*)"/.exec(html)![1]).not.toContain("font-mono");});diff --git a/packages/ui/test/font-licenses.test.ts b/packages/ui/test/font-licenses.test.tsindex 0e556b0f..25cfd208 100644--- a/packages/ui/test/font-licenses.test.ts+++ b/packages/ui/test/font-licenses.test.ts@@ -165,7 +165,7 @@ describe("font licences", () => {const missing = fontDependencies.filter((dependency) => !mirrored.includes(`${family(dependency)}.txt`)).map((dependency) => `${dependency} → src/fonts/LICENSES/${family(dependency)}.txt`);- expect(missing, "Run `pnpm --filter @lmliheng/penguin-ui sync:font-licenses`.").toEqual([]);+ expect(missing, "Run `pnpm --filter @adelie/ui sync:font-licenses`.").toEqual([]);});it("are not kept for fonts the package no longer depends on or vendors", () => {diff --git a/packages/ui/test/no-app-strings.test.ts b/packages/ui/test/no-app-strings.test.tsindex a28ee68e..210753a5 100644--- a/packages/ui/test/no-app-strings.test.ts+++ b/packages/ui/test/no-app-strings.test.ts@@ -20,7 +20,7 @@ import { scanSourceRoots, unscannedRoots } from "../src/testing";import { PACKAGE_DIR, REPO_ROOT, SRC_DIR } from "./helpers/paths";const APP_DICTIONARY = /(?:^|\/)(?:lib\/strings|strings-en)(?:\.tsx?)?$/;-const APP_PACKAGE = /^@lmliheng\/penguin-web(?:\/|$)/;+const APP_PACKAGE = /^@adelie\/web(?:\/|$)/;/** Every refused shape in one source text, as "line: what". `path` places relative specifiers. */function appStringReaches(path: string, text: string): string[] {@@ -98,8 +98,8 @@ describe("the package's copy", () => {expect(hits('import { zh } from "../../../../../web/src/i18n";')).toEqual(["1: imports ../../../../../web/src/i18n, outside packages/ui",]);- expect(hits('export { en } from "@lmliheng/penguin-web/strings-en";')).toEqual([- "1: imports @lmliheng/penguin-web/strings-en",+ expect(hits('export { en } from "@adelie/web/strings-en";')).toEqual([+ "1: imports @adelie/web/strings-en",]);expect(hits('const m = await import("../lib/strings");')).toEqual(["1: imports ../lib/strings",diff --git a/packages/ui/test/token-contract.test.ts b/packages/ui/test/token-contract.test.tsindex e1c1254d..4e1c194e 100644--- a/packages/ui/test/token-contract.test.ts+++ b/packages/ui/test/token-contract.test.ts@@ -851,7 +851,7 @@ describe("theme import order", () => {web: join(WEB_DIR, "src", "styles.css"),...(existsSync(GALLERY) ? { gallery: join(GALLERY, "src", "styles.css") } : {}),};- const IMPORT = /@import\s+["']@lmliheng\/penguin-ui\/themes\/([\w-]+)\.css["']/g;+ const IMPORT = /@import\s+["']@adelie\/ui\/themes\/([\w-]+)\.css["']/g;for (const [name, file] of Object.entries(entries)) {it(`${name}: imports every theme once, the default (${DEFAULT_THEME_ID}.css) first`, () => {diff --git a/packages/web/README.md b/packages/web/README.mdindex 0332cd84..56de4073 100644--- a/packages/web/README.md+++ b/packages/web/README.md@@ -1,4 +1,4 @@-# @lmliheng/penguin-web+# @adelie/webThe Adelie Web App — a React 19 + Vite + Tailwind CSS 4 SPA that renders the OmniMessage stream (same protocol and statistics as the CLI) and manages Agents, Skills, Models, usage and Traces. Feature tour: [Web App Guide](https://penguin.ooo/docs/web-app).@@ -16,7 +16,7 @@ src/└── features/ # chat / agents / plugins / skills / models / usage / traces / benchmark / admin```-DTO types are imported type-only from `@lmliheng/penguin-server/api`; no server code enters the bundle. Rendering rules for streaming partials (start/delta/stop aggregation, complete-message replacement, origin-chain nesting into subagent cards) live in `lib/omni/stream-model.ts`, which is fully unit-tested.+DTO types are imported type-only from `@adelie/server/api`; no server code enters the bundle. Rendering rules for streaming partials (start/delta/stop aggregation, complete-message replacement, origin-chain nesting into subagent cards) live in `lib/omni/stream-model.ts`, which is fully unit-tested.## Development@@ -30,14 +30,14 @@ pnpm dev:web # Vite dev server at 127.0.0.1:7365; /api proxied (SSE passesThe proxy target defaults to `http://127.0.0.1:7368` — the development backend, kept off the installed server's 4000 so the two can run at once (`PORT` moves both, `ADELIE_API_PROXY` overrides the target outright). Auth is a same-origin HttpOnly cookie, so the proxy keeps everything same-origin.```bash-pnpm --filter @lmliheng/penguin-web typecheck-pnpm --filter @lmliheng/penguin-web test # vitest (pure logic)-pnpm --filter @lmliheng/penguin-web test:e2e # Playwright against a mock LLM-pnpm --filter @lmliheng/penguin-web build # vite build → dist/+pnpm --filter @adelie/web typecheck+pnpm --filter @adelie/web test # vitest (pure logic)+pnpm --filter @adelie/web test:e2e # Playwright against a mock LLM+pnpm --filter @adelie/web build # vite build → dist/```## Production-No separate static server needed: `@lmliheng/penguin-server` auto-hosts `packages/web/dist` (or `ADELIE_WEB_DIST`) with an SPA fallback — build the web app, start the server, done. The published npm packages bundle the built front end.+No separate static server needed: `@adelie/server` auto-hosts `packages/web/dist` (or `ADELIE_WEB_DIST`) with an SPA fallback — build the web app, start the server, done. The published npm packages bundle the built front end.Part of [Adelie](https://github.com/Prism-Shadow/penguin-harness) · Apache-2.0diff --git a/packages/web/e2e/README.md b/packages/web/e2e/README.mdindex 8bda3874..5dadc61e 100644--- a/packages/web/e2e/README.md+++ b/packages/web/e2e/README.md@@ -8,8 +8,8 @@ rendering, path hidden by default). The LLM is driven by `mock-llm.mjs` (a mockMessages SSE endpoint) — no network access.```sh-pnpm --filter @lmliheng/penguin-web test:e2e # build + start the server + run the tests-SKIP_BUILD=1 pnpm --filter @lmliheng/penguin-web test:e2e # skip the build+pnpm --filter @adelie/web test:e2e # build + start the server + run the tests+SKIP_BUILD=1 pnpm --filter @adelie/web test:e2e # skip the build```The first run requires `npx playwright install chromium`.diff --git a/packages/web/e2e/run.sh b/packages/web/e2e/run.shindex a2d5f884..8c05b544 100644--- a/packages/web/e2e/run.sh+++ b/packages/web/e2e/run.sh@@ -22,9 +22,9 @@ trap cleanup EXITif [ "${SKIP_BUILD:-0}" != "1" ]; thenecho "== build core/server/web =="(cd "$ROOT" \- && pnpm --filter @lmliheng/penguin-core build \- && pnpm --filter @lmliheng/penguin-server build \- && pnpm --filter @lmliheng/penguin-web build) || { echo "BUILD FAILED"; exit 1; }+ && pnpm --filter @adelie/core build \+ && pnpm --filter @adelie/server build \+ && pnpm --filter @adelie/web build) || { echo "BUILD FAILED"; exit 1; }fiecho "== start mock LLM =="diff --git a/packages/web/index.html b/packages/web/index.htmlindex 4ed60c21..7699c7c5 100644--- a/packages/web/index.html+++ b/packages/web/index.html@@ -17,7 +17,7 @@<!-- Pre-paint theme: sets html.dark, data-theme, data-accent and the root font size from thestored preferences before the first frame, so a dark or non-default page never flashesthe light default and the first frame never renders at 16px and reflows. Must equal- BOOT_SCRIPT in @lmliheng/penguin-ui/boot byte for byte (a test compares them). -->+ BOOT_SCRIPT in @adelie/ui/boot byte for byte (a test compares them). --><!-- prettier-ignore --><script>(function(){try{var d=document.documentElement,s=localStorage,m=s.getItem("penguin.theme");if(m==="dark"||(m!=="light"&&matchMedia("(prefers-color-scheme: dark)").matches))d.classList.add("dark");var t=s.getItem("penguin.themeId");if(["modern","geek"].indexOf(t)>=0)d.dataset.theme=t;var a=s.getItem("penguin.accent");if(["blue","green","violet","rose","amber","ocean","clay","plum","honey","slate","orange","phosphor","cyan","magenta","gold","cobalt"].indexOf(a)>=0)d.dataset.accent=a;var l=s.getItem("penguin.fontLatin");if(["system","mona-sans","ibm-plex-sans","misans"].indexOf(l)>=0)d.dataset.fontLatin=l;var c=s.getItem("penguin.fontCjk");if(["system","noto-sans-sc","misans"].indexOf(c)>=0)d.dataset.fontCjk=c;var z=s.getItem("penguin.textSize"),g=null,o=-1;if(["xs","s","m","l","xl"].indexOf(z)<0){g=s.getItem("penguin.fontScale");o=["sm","md","lg"].indexOf(g);z=o<0?"m":["m","l","xl"][o]}d.style.fontSize={"xs":"14px","s":"15px","m":"16px","l":"18px","xl":"20px"}[z];if(g!==null){try{if(o>=0)s.setItem("penguin.textSize",z);s.removeItem("penguin.fontScale")}catch(e){}}}catch(e){}})()</script></head>diff --git a/packages/web/package.json b/packages/web/package.jsonindex 7289e44d..a46eec3c 100644--- a/packages/web/package.json+++ b/packages/web/package.json@@ -1,5 +1,5 @@{- "name": "@lmliheng/penguin-web",+ "name": "@adelie/web","version": "0.4.2","private": true,"type": "module",@@ -13,9 +13,9 @@"test:e2e": "bash e2e/run.sh"},"dependencies": {- "@lmliheng/amsp": "workspace:*",- "@lmliheng/penguin-core": "workspace:*",- "@lmliheng/penguin-ui": "workspace:*",+ "@adelie/amsp": "workspace:*",+ "@adelie/core": "workspace:*",+ "@adelie/ui": "workspace:*","@xterm/addon-clipboard": "^0.1.0","@xterm/addon-fit": "^0.10.0","@xterm/addon-web-links": "^0.11.0",@@ -30,7 +30,7 @@},"devDependencies": {"@playwright/test": "^1.61.1",- "@lmliheng/penguin-server": "workspace:*",+ "@adelie/server": "workspace:*","@tailwindcss/vite": "^4.1.0","@types/node": "^24.0.0","@types/react": "^19.1.0",diff --git a/packages/web/scripts/theme-shots.mjs b/packages/web/scripts/theme-shots.mjsindex 029dff67..60190a9c 100644--- a/packages/web/scripts/theme-shots.mjs+++ b/packages/web/scripts/theme-shots.mjs@@ -23,7 +23,7 @@* decoded in Chromium and compared exactly (threshold 0) — any differing pixel fails, and a diff* image with the differing pixels in red is written for inspection. Exit code 1 on any difference.*- * Prereqs: `pnpm --filter "@lmliheng/penguin-server..." build`, each variant's web dist, and+ * Prereqs: `pnpm --filter "@adelie/server..." build`, each variant's web dist, and* Playwright's Chromium. Local only; never committed output.*/import http from "node:http";diff --git a/packages/web/src/api/endpoints.ts b/packages/web/src/api/endpoints.tsindex 6ba29bdf..40308663 100644--- a/packages/web/src/api/endpoints.ts+++ b/packages/web/src/api/endpoints.ts@@ -1,6 +1,6 @@/*** API endpoint wrappers: one function per API.- * DTO types come from @lmliheng/penguin-server/api (**type import only**, resolved via+ * DTO types come from @adelie/server/api (**type import only**, resolved via* tsconfig paths to the server contract file types.ts; must not be a value import — server* code must not enter the browser bundle).*/@@ -257,9 +257,9 @@ import type {BuiltinBrowserStatus,BuiltinBrowserTab,DesktopBrowserCommand,-} from "@lmliheng/penguin-server/api";-import type { MCPServerConfig } from "@lmliheng/penguin-core/interfaces";-import type { RunRequest } from "@lmliheng/amsp";+} from "@adelie/server/api";+import type { MCPServerConfig } from "@adelie/core/interfaces";+import type { RunRequest } from "@adelie/amsp";import { apiFetch, apiFetchStream, apiFetchWithMeta } from "./client";import { machineForSession, rememberSessionMachine } from "../lib/session-machines";import { apiUrl } from "../lib/server-context";diff --git a/packages/web/src/api/sse.ts b/packages/web/src/api/sse.tsindex a48d751d..00ef8f2e 100644--- a/packages/web/src/api/sse.ts+++ b/packages/web/src/api/sse.ts@@ -16,8 +16,8 @@* that never pinged (an older server), or that the browser gave up on, is left as it is.* Docs: /docs/server-api § "Streaming (SSE)".*/-import type { OmniMessage } from "@lmliheng/penguin-core/omnimessage";-import type { ServerEvent } from "@lmliheng/penguin-server/api";+import type { OmniMessage } from "@adelie/core/omnimessage";+import type { ServerEvent } from "@adelie/server/api";import { apiUrl } from "../lib/server-context";import { machineForSession } from "../lib/session-machines";diff --git a/packages/web/src/api/workspace-files.ts b/packages/web/src/api/workspace-files.tsindex 14e9d079..fb82eb09 100644--- a/packages/web/src/api/workspace-files.ts+++ b/packages/web/src/api/workspace-files.ts@@ -17,7 +17,7 @@ import type {FilesMoveRequest,WorkspaceFilesResponse,WorkspaceSearchResponse,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import * as api from "./endpoints";import type { WorkspaceDir } from "./endpoints";diff --git a/packages/web/src/app.tsx b/packages/web/src/app.tsxindex 9866d75b..d025f78d 100644--- a/packages/web/src/app.tsx+++ b/packages/web/src/app.tsx@@ -17,7 +17,7 @@ import {CodeHighlighterProvider,Toaster,TooltipLayer,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import { LocaleProvider, LocaleScope } from "./state/locale";import { ThemeProvider } from "./state/theme";import { AuthProvider } from "./state/auth";diff --git a/packages/web/src/components/account/change-password-dialog.tsx b/packages/web/src/components/account/change-password-dialog.tsxindex 6b51bbbb..69af5862 100644--- a/packages/web/src/components/account/change-password-dialog.tsx+++ b/packages/web/src/components/account/change-password-dialog.tsx@@ -4,7 +4,7 @@* notice banner disappears once passwordIsInitial clears. Shared by the sidebar user menu and the notice banner.*/import { useEffect, useState } from "react";-import { Button, Modal, PasswordInput } from "@lmliheng/penguin-ui";+import { Button, Modal, PasswordInput } from "@adelie/ui";import * as api from "../../api/endpoints";import { ApiError } from "../../api/client";import { S } from "../../lib/strings";diff --git a/packages/web/src/components/account/feedback-dialog.tsx b/packages/web/src/components/account/feedback-dialog.tsxindex 5d952850..e737b822 100644--- a/packages/web/src/components/account/feedback-dialog.tsx+++ b/packages/web/src/components/account/feedback-dialog.tsx@@ -16,7 +16,7 @@* the dialog is open, and its own sentence says so rather than blaming the network.*/import { useEffect, useState } from "react";-import { Button, Input, Modal, Textarea, toastSuccess } from "@lmliheng/penguin-ui";+import { Button, Input, Modal, Textarea, toastSuccess } from "@adelie/ui";import * as api from "../../api/endpoints";import { ApiError } from "../../api/client";import { S } from "../../lib/strings";diff --git a/packages/web/src/components/account/update-modal.tsx b/packages/web/src/components/account/update-modal.tsxindex 258e071d..4e16b418 100644--- a/packages/web/src/components/account/update-modal.tsx+++ b/packages/web/src/components/account/update-modal.tsx@@ -14,7 +14,7 @@* The flow and the actions live in `use-update-flow.ts`; this file only renders.*/import type { ReactNode } from "react";-import { Button, Link, Modal, ProgressBar, Spinner } from "@lmliheng/penguin-ui";+import { Button, Link, Modal, ProgressBar, Spinner } from "@adelie/ui";import { S } from "../../lib/strings";import { stripAnsi } from "../../lib/strip-ansi";import { toneInk } from "../../lib/tone";diff --git a/packages/web/src/components/account/update-row.tsx b/packages/web/src/components/account/update-row.tsxindex 32837a4f..290661e3 100644--- a/packages/web/src/components/account/update-row.tsx+++ b/packages/web/src/components/account/update-row.tsx@@ -6,7 +6,7 @@* sits muted on the right. Renders nothing where this session can update nothing. A Menu row,* like the menu's other entries.*/-import { MenuItem, Spinner } from "@lmliheng/penguin-ui";+import { MenuItem, Spinner } from "@adelie/ui";import { S } from "../../lib/strings";import { updateRowModel } from "../../lib/update-flow";import type { UpdateFlow } from "../../lib/update-flow";diff --git a/packages/web/src/components/account/user-vault-dialog.tsx b/packages/web/src/components/account/user-vault-dialog.tsxindex 7fc94c4c..c8771508 100644--- a/packages/web/src/components/account/user-vault-dialog.tsx+++ b/packages/web/src/components/account/user-vault-dialog.tsx@@ -14,7 +14,7 @@* the account menu's own row closes the menu as it opens this.*/import { useCallback, useEffect, useState } from "react";-import type { VaultEntryInfo, VaultUpdateRequest } from "@lmliheng/penguin-server/api";+import type { VaultEntryInfo, VaultUpdateRequest } from "@adelie/server/api";import {Button,ConfirmModal,@@ -27,7 +27,7 @@ import {Textarea,toastError,toastSuccess,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import * as api from "../../api/endpoints";import { S } from "../../lib/strings";import { apiErrorText } from "../../lib/api-error";diff --git a/packages/web/src/components/layout/app-layout.tsx b/packages/web/src/components/layout/app-layout.tsxindex b61aa318..628df6ab 100644--- a/packages/web/src/components/layout/app-layout.tsx+++ b/packages/web/src/components/layout/app-layout.tsx@@ -23,7 +23,7 @@ import {Tooltip,UpdateDot,UserAvatar,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import * as api from "../../api/endpoints";import { nagsAboutInitialPassword } from "../../lib/account-menu";import { S } from "../../lib/strings";diff --git a/packages/web/src/components/layout/project-dialogs.tsx b/packages/web/src/components/layout/project-dialogs.tsxindex 843416c6..55120a58 100644--- a/packages/web/src/components/layout/project-dialogs.tsx+++ b/packages/web/src/components/layout/project-dialogs.tsx@@ -11,7 +11,7 @@ import type {MemberInfo,ModelRefDto,ModelsResponse,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import {Badge,Button,@@ -29,7 +29,7 @@ import {Switch,toastError,toastSuccess,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import * as api from "../../api/endpoints";import { S } from "../../lib/strings";import { apiErrorText } from "../../lib/api-error";diff --git a/packages/web/src/components/layout/router-link.tsx b/packages/web/src/components/layout/router-link.tsxindex f2dce2fd..1f1dcd69 100644--- a/packages/web/src/components/layout/router-link.tsx+++ b/packages/web/src/components/layout/router-link.tsx@@ -4,7 +4,7 @@* click navigates in place, and says which link is the current page.*/import { Link, matchPath } from "react-router";-import type { NavRowLinkProps } from "@lmliheng/penguin-ui";+import type { NavRowLinkProps } from "@adelie/ui";/** A package row's link as the router's own: the row's classes, state and content, navigating in place. */export function renderRouterLink(link: NavRowLinkProps) {diff --git a/packages/web/src/components/layout/sidebar.tsx b/packages/web/src/components/layout/sidebar.tsxindex c309fcb6..37afa8cd 100644--- a/packages/web/src/components/layout/sidebar.tsx+++ b/packages/web/src/components/layout/sidebar.tsx@@ -47,11 +47,7 @@import { useEffect, useMemo, useRef, useState } from "react";import type { DragEvent as ReactDragEvent, ReactNode } from "react";import { useLocation, useMatch, useNavigate } from "react-router";-import type {- SessionCategory,- SessionCategoryCounts,- SessionInfo,-} from "@lmliheng/penguin-server/api";+import type { SessionCategory, SessionCategoryCounts, SessionInfo } from "@adelie/server/api";import {AgentAvatar,Badge,@@ -90,8 +86,8 @@ import {toastError,toastInfo,toastSuccess,-} from "@lmliheng/penguin-ui";-import type { SidebarDropTarget } from "@lmliheng/penguin-ui";+} from "@adelie/ui";+import type { SidebarDropTarget } from "@adelie/ui";import * as api from "../../api/endpoints";import { S } from "../../lib/strings";import { formatRelativeShort } from "../../lib/format";diff --git a/packages/web/src/components/layout/user-menu.tsx b/packages/web/src/components/layout/user-menu.tsxindex d782d89b..55801401 100644--- a/packages/web/src/components/layout/user-menu.tsx+++ b/packages/web/src/components/layout/user-menu.tsx@@ -18,8 +18,8 @@import { useEffect, useState } from "react";import type { ReactNode } from "react";import { useNavigate } from "react-router";-import { ConfirmModal, Dropdown, ICON_GAP, Menu, MenuItem, UserAvatar } from "@lmliheng/penguin-ui";-import type { DropdownPortal } from "@lmliheng/penguin-ui";+import { ConfirmModal, Dropdown, ICON_GAP, Menu, MenuItem, UserAvatar } from "@adelie/ui";+import type { DropdownPortal } from "@adelie/ui";import { S } from "../../lib/strings";import { useAuth } from "../../state/auth";import { UpdateRow } from "../account/update-row";diff --git a/packages/web/src/components/ui/chord-kbd.tsx b/packages/web/src/components/ui/chord-kbd.tsxindex 123db583..2e291c2e 100644--- a/packages/web/src/components/ui/chord-kbd.tsx+++ b/packages/web/src/components/ui/chord-kbd.tsx@@ -4,7 +4,7 @@* app's to know, so this formats the chord and the shared `Kbd` draws it, in its plain look; the* caller supplies the colour.*/-import { Kbd } from "@lmliheng/penguin-ui";+import { Kbd } from "@adelie/ui";import { formatChord } from "../../lib/shortcuts/format";import { currentPlatform } from "../../lib/shortcuts/platform";import { keyboardLayout } from "../../lib/shortcuts/store";diff --git a/packages/web/src/components/ui/group-list.tsx b/packages/web/src/components/ui/group-list.tsxindex 86efb093..c24a512e 100644--- a/packages/web/src/components/ui/group-list.tsx+++ b/packages/web/src/components/ui/group-list.tsx@@ -4,7 +4,7 @@* icon, and the group pager in the sidebar's words. The rows themselves — the group header, the* lazy folder, the "more" row and the pager — are the shared UI package's.*/-import { GlyphIcon, ICONS, ICON_SIZE, Pager } from "@lmliheng/penguin-ui";+import { GlyphIcon, ICONS, ICON_SIZE, Pager } from "@adelie/ui";import { S } from "../../lib/strings";import type { SessionSortMode } from "../../lib/session-order";diff --git a/packages/web/src/components/ui/session-row-menu.tsx b/packages/web/src/components/ui/session-row-menu.tsxindex 0429964e..9f8ebbbf 100644--- a/packages/web/src/components/ui/session-row-menu.tsx+++ b/packages/web/src/components/ui/session-row-menu.tsx@@ -20,8 +20,8 @@* The surfaces themselves are the UI package's (`SessionRow`, `RowHoverActions`, the `MenuItem`* rows); this module says which actions they carry and in what words.*/-import { ICONS, MenuItem, RowHoverActions } from "@lmliheng/penguin-ui";-import type { AnchorRect, RowActionItem } from "@lmliheng/penguin-ui";+import { ICONS, MenuItem, RowHoverActions } from "@adelie/ui";+import type { AnchorRect, RowActionItem } from "@adelie/ui";import { S } from "../../lib/strings";/** One thing a Session row can do to its Session. */diff --git a/packages/web/src/components/ui/truncated.tsx b/packages/web/src/components/ui/truncated.tsxindex 81dd358b..c05f98a1 100644--- a/packages/web/src/components/ui/truncated.tsx+++ b/packages/web/src/components/ui/truncated.tsx@@ -34,7 +34,7 @@*/import { useLayoutEffect, useRef, useState } from "react";import type { CSSProperties } from "react";-import { Tooltip, usePrefersReducedMotion } from "@lmliheng/penguin-ui";+import { Tooltip, usePrefersReducedMotion } from "@adelie/ui";import { revealDistancePx, revealDurationMs, titleDisclosure } from "../../lib/title-reveal";export function Truncated({diff --git a/packages/web/src/features/admin/admin-users-page.tsx b/packages/web/src/features/admin/admin-users-page.tsxindex 91787f4c..f8e7b5cd 100644--- a/packages/web/src/features/admin/admin-users-page.tsx+++ b/packages/web/src/features/admin/admin-users-page.tsx@@ -13,8 +13,8 @@* `GET /api/admin/users` answers.*/import { useCallback, useEffect, useState } from "react";-import type { UserInfo } from "@lmliheng/penguin-server/api";-import { Badge, Button, Input, Modal, PasswordInput } from "@lmliheng/penguin-ui";+import type { UserInfo } from "@adelie/server/api";+import { Badge, Button, Input, Modal, PasswordInput } from "@adelie/ui";import * as api from "../../api/endpoints";import { ApiError } from "../../api/client";import { S } from "../../lib/strings";diff --git a/packages/web/src/features/agents/agent-settings-page.tsx b/packages/web/src/features/agents/agent-settings-page.tsxindex 56bb0328..3d2e0b91 100644--- a/packages/web/src/features/agents/agent-settings-page.tsx+++ b/packages/web/src/features/agents/agent-settings-page.tsx@@ -20,8 +20,8 @@ import type {AgentCompactionConfigDto,AgentKernelUpdateResponse,AgentModelConfigDto,-} from "@lmliheng/penguin-server/api";-import type { ToolDefinitionConfig, ToolPermission } from "@lmliheng/penguin-core/interfaces";+} from "@adelie/server/api";+import type { ToolDefinitionConfig, ToolPermission } from "@adelie/core/interfaces";import {Button,Card,@@ -49,8 +49,8 @@ import {toastError,toastInfo,toastSuccess,-} from "@lmliheng/penguin-ui";-import type { OptionMenuChoice } from "@lmliheng/penguin-ui";+} from "@adelie/ui";+import type { OptionMenuChoice } from "@adelie/ui";import * as api from "../../api/endpoints";import { ApiError } from "../../api/client";import { S } from "../../lib/strings";diff --git a/packages/web/src/features/agents/agents-page.tsx b/packages/web/src/features/agents/agents-page.tsxindex d1081c71..60073e9e 100644--- a/packages/web/src/features/agents/agents-page.tsx+++ b/packages/web/src/features/agents/agents-page.tsx@@ -21,11 +21,7 @@import { useEffect, useMemo, useRef, useState } from "react";import type { ChangeEvent } from "react";import { useLocation, useNavigate } from "react-router";-import type {- AgentCreateRequest,- PluginItem,- SkillMetadataItem,-} from "@lmliheng/penguin-server/api";+import type { AgentCreateRequest, PluginItem, SkillMetadataItem } from "@adelie/server/api";import {AgentAvatar,Badge,@@ -54,7 +50,7 @@ import {UpdatePill,toastError,toastSuccess,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import * as api from "../../api/endpoints";import { S } from "../../lib/strings";import { apiErrorText } from "../../lib/api-error";diff --git a/packages/web/src/features/agents/api-tab.tsx b/packages/web/src/features/agents/api-tab.tsxindex 3c347131..3970675f 100644--- a/packages/web/src/features/agents/api-tab.tsx+++ b/packages/web/src/features/agents/api-tab.tsx@@ -26,7 +26,7 @@ import type {AgentApiSettings,AgentApiUpdateRequest,ApprovalMode,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import {Button,CodeBlock,@@ -41,7 +41,7 @@ import {SkeletonList,ToggleRow,toastError,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import * as api from "../../api/endpoints";import { apiErrorText } from "../../lib/api-error";import { formatDateTime } from "../../lib/format";@@ -70,7 +70,7 @@ export function agentApiExamples(baseUrl: string, agentRef: string): { curl: str` -d '{"input":"Hello"}'`,].join("\n");const sdk = [- `import { AgentClient } from "@lmliheng/amsp";`,+ `import { AgentClient } from "@adelie/amsp";`,``,`const client = new AgentClient({`,` baseUrl: "${baseUrl}",`,diff --git a/packages/web/src/features/agents/api-try-log.ts b/packages/web/src/features/agents/api-try-log.tsindex 564e83fc..71379f1b 100644--- a/packages/web/src/features/agents/api-try-log.ts+++ b/packages/web/src/features/agents/api-try-log.ts@@ -20,8 +20,8 @@* run continues the conversation, the way a program passes `session_id`; New conversation* forgets it.*/-import { readSse, RunCollector } from "@lmliheng/amsp";-import type { AmspError, AmspEvent, RunRequest, RunResult, TokenCounts } from "@lmliheng/amsp";+import { readSse, RunCollector } from "@adelie/amsp";+import type { AmspError, AmspEvent, RunRequest, RunResult, TokenCounts } from "@adelie/amsp";import { ApiError } from "../../api/client";import * as api from "../../api/endpoints";diff --git a/packages/web/src/features/agents/api-try-panel.tsx b/packages/web/src/features/agents/api-try-panel.tsxindex bb0c8bda..f527aa01 100644--- a/packages/web/src/features/agents/api-try-panel.tsx+++ b/packages/web/src/features/agents/api-try-panel.tsx@@ -32,7 +32,7 @@ import {StreamingCaret,Text,toastError,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import { apiErrorText } from "../../lib/api-error";import { formatBytes } from "../../lib/format";import { S } from "../../lib/strings";diff --git a/packages/web/src/features/agents/hooks-tab.tsx b/packages/web/src/features/agents/hooks-tab.tsxindex 28592782..c3be0b2b 100644--- a/packages/web/src/features/agents/hooks-tab.tsx+++ b/packages/web/src/features/agents/hooks-tab.tsx@@ -21,7 +21,7 @@*/import { useCallback, useEffect, useState } from "react";import type { ChangeEvent } from "react";-import type { HookItem } from "@lmliheng/penguin-server/api";+import type { HookItem } from "@adelie/server/api";import {Badge,Button,@@ -41,7 +41,7 @@ import {toastError,toastSuccess,useCopied,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import * as api from "../../api/endpoints";import { ApiError } from "../../api/client";import { S } from "../../lib/strings";diff --git a/packages/web/src/features/agents/mcp-servers-form.ts b/packages/web/src/features/agents/mcp-servers-form.tsindex 8cc2270a..f45dcc37 100644--- a/packages/web/src/features/agents/mcp-servers-form.ts+++ b/packages/web/src/features/agents/mcp-servers-form.ts@@ -8,7 +8,7 @@* codes (plus a line number for the multiline fields); the component maps them to* localized messages.*/-import type { MCPServerConfig, ToolPermission } from "@lmliheng/penguin-core/interfaces";+import type { MCPServerConfig, ToolPermission } from "@adelie/core/interfaces";export type McpTransportKind = "stdio" | "http" | "sse";diff --git a/packages/web/src/features/agents/mcp-servers-section.tsx b/packages/web/src/features/agents/mcp-servers-section.tsxindex 44e39fe2..f0bf3dc3 100644--- a/packages/web/src/features/agents/mcp-servers-section.tsx+++ b/packages/web/src/features/agents/mcp-servers-section.tsx@@ -17,7 +17,7 @@* remote server is able to do.*/import { useState } from "react";-import type { MCPServerConfig } from "@lmliheng/penguin-core/interfaces";+import type { MCPServerConfig } from "@adelie/core/interfaces";import {Button,ConfirmModal,@@ -36,10 +36,10 @@ import {Textarea,toastError,toastSuccess,-} from "@lmliheng/penguin-ui";-import type { OptionMenuChoice } from "@lmliheng/penguin-ui";+} from "@adelie/ui";+import type { OptionMenuChoice } from "@adelie/ui";import * as api from "../../api/endpoints";-import type { McpServerTestResponse } from "@lmliheng/penguin-server/api";+import type { McpServerTestResponse } from "@adelie/server/api";import { S } from "../../lib/strings";import { apiErrorText } from "../../lib/api-error";import { useProject } from "../../state/project";diff --git a/packages/web/src/features/agents/memory-tab.tsx b/packages/web/src/features/agents/memory-tab.tsxindex 01071a56..b377ee7f 100644--- a/packages/web/src/features/agents/memory-tab.tsx+++ b/packages/web/src/features/agents/memory-tab.tsx@@ -28,7 +28,7 @@ import type {MemoryImportMode,MemoryScopeExport,MemoryScopeInfo,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import {Button,Card,@@ -59,8 +59,8 @@ import {toastError,toastSuccess,useCopied,-} from "@lmliheng/penguin-ui";-import type { SheetSnap } from "@lmliheng/penguin-ui";+} from "@adelie/ui";+import type { SheetSnap } from "@adelie/ui";import * as api from "../../api/endpoints";import { S } from "../../lib/strings";import { apiErrorText } from "../../lib/api-error";diff --git a/packages/web/src/features/agents/memory-transfer.ts b/packages/web/src/features/agents/memory-transfer.tsindex 22563c30..b3ce9c63 100644--- a/packages/web/src/features/agents/memory-transfer.ts+++ b/packages/web/src/features/agents/memory-transfer.ts@@ -11,11 +11,7 @@* Read `S` inside the functions, never at module top level: the dictionary binding is swapped* on language switch.*/-import type {- MemoryImportMode,- MemoryScopeExport,- MemoryTransferFile,-} from "@lmliheng/penguin-server/api";+import type { MemoryImportMode, MemoryScopeExport, MemoryTransferFile } from "@adelie/server/api";import { S } from "../../lib/strings";/** Format marker of a scope document, typed against the DTO so this literal cannot drift from the server's. */diff --git a/packages/web/src/features/agents/prompt-injection-controls.tsx b/packages/web/src/features/agents/prompt-injection-controls.tsxindex 074c6048..3c22e1cf 100644--- a/packages/web/src/features/agents/prompt-injection-controls.tsx+++ b/packages/web/src/features/agents/prompt-injection-controls.tsx@@ -27,7 +27,7 @@ import type {AgentSchedulesConfigDto,AgentSkillsConfigDto,AgentVaultConfigDto,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import {Button,Card,@@ -37,7 +37,7 @@ import {ToggleRow,toastError,toastSuccess,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import * as api from "../../api/endpoints";import { S } from "../../lib/strings";import { apiErrorText } from "../../lib/api-error";diff --git a/packages/web/src/features/agents/save-confirm.tsx b/packages/web/src/features/agents/save-confirm.tsxindex b86f7201..4e385191 100644--- a/packages/web/src/features/agents/save-confirm.tsx+++ b/packages/web/src/features/agents/save-confirm.tsx@@ -6,7 +6,7 @@*/import { useState } from "react";import type { ReactNode } from "react";-import { ConfirmModal } from "@lmliheng/penguin-ui";+import { ConfirmModal } from "@adelie/ui";import { S } from "../../lib/strings";export function useSaveConfirm(): {diff --git a/packages/web/src/features/agents/schedules-tab.tsx b/packages/web/src/features/agents/schedules-tab.tsxindex 1cce268a..879b3f5e 100644--- a/packages/web/src/features/agents/schedules-tab.tsx+++ b/packages/web/src/features/agents/schedules-tab.tsx@@ -19,7 +19,7 @@* task files itself; the toggle never stops the server from firing configured tasks.*/import { useCallback, useEffect, useState } from "react";-import type { ScheduleItem, SchedulesResponse, ScheduleStatus } from "@lmliheng/penguin-server/api";+import type { ScheduleItem, SchedulesResponse, ScheduleStatus } from "@adelie/server/api";import {Badge,Button,@@ -35,8 +35,8 @@ import {TableRow,toastError,toastSuccess,-} from "@lmliheng/penguin-ui";-import type { BadgeStyle } from "@lmliheng/penguin-ui";+} from "@adelie/ui";+import type { BadgeStyle } from "@adelie/ui";import * as api from "../../api/endpoints";import { S } from "../../lib/strings";import { apiErrorText } from "../../lib/api-error";diff --git a/packages/web/src/features/agents/skills-tab.tsx b/packages/web/src/features/agents/skills-tab.tsxindex 52747469..fa0d4312 100644--- a/packages/web/src/features/agents/skills-tab.tsx+++ b/packages/web/src/features/agents/skills-tab.tsx@@ -19,7 +19,7 @@*/import { useCallback, useEffect, useState } from "react";import type { ChangeEvent } from "react";-import type { SkillMetadataItem } from "@lmliheng/penguin-server/api";+import type { SkillMetadataItem } from "@adelie/server/api";import {Button,Card,@@ -41,7 +41,7 @@ import {toastError,toastSuccess,useCopied,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import * as api from "../../api/endpoints";import { ApiError } from "../../api/client";import { S } from "../../lib/strings";diff --git a/packages/web/src/features/agents/snapshot-file.ts b/packages/web/src/features/agents/snapshot-file.tsindex b24db4a5..c3f1973a 100644--- a/packages/web/src/features/agents/snapshot-file.ts+++ b/packages/web/src/features/agents/snapshot-file.ts@@ -1,5 +1,5 @@/** Picking and reading Agent State snapshot packages (`<agentId>-v<n>.tar.gz`). */-import { buttonClass } from "@lmliheng/penguin-ui";+import { buttonClass } from "@adelie/ui";/*** The button look on the `<a download>` / `<label>` the transfer actions and the snapshot pickerdiff --git a/packages/web/src/features/agents/vault-tab.tsx b/packages/web/src/features/agents/vault-tab.tsxindex b2e583d7..68eae719 100644--- a/packages/web/src/features/agents/vault-tab.tsx+++ b/packages/web/src/features/agents/vault-tab.tsx@@ -20,7 +20,7 @@* vault.prompt section, mirroring the Memory tab — owner-only, like the table edits.*/import { useCallback, useEffect, useState } from "react";-import type { VaultEntryInfo, VaultUpdateRequest } from "@lmliheng/penguin-server/api";+import type { VaultEntryInfo, VaultUpdateRequest } from "@adelie/server/api";import {Button,Checkbox,@@ -34,7 +34,7 @@ import {SkeletonList,toastError,toastSuccess,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import * as api from "../../api/endpoints";import { S } from "../../lib/strings";import { apiErrorText } from "../../lib/api-error";diff --git a/packages/web/src/features/ai-create/ai-bridge.ts b/packages/web/src/features/ai-create/ai-bridge.tsindex 60181a1f..2eabdcfa 100644--- a/packages/web/src/features/ai-create/ai-bridge.ts+++ b/packages/web/src/features/ai-create/ai-bridge.ts@@ -13,7 +13,7 @@*/import { useCallback } from "react";import { useNavigate } from "react-router";-import type { ModelRefDto } from "@lmliheng/penguin-server/api";+import type { ModelRefDto } from "@adelie/server/api";import { useAuth } from "../../state/auth";import { useProject } from "../../state/project";import { DRAFT_SESSION_ID } from "../chat/chat-page";diff --git a/packages/web/src/features/ai-create/ai-create-buttons.tsx b/packages/web/src/features/ai-create/ai-create-buttons.tsxindex eb8a039f..5aa25f34 100644--- a/packages/web/src/features/ai-create/ai-create-buttons.tsx+++ b/packages/web/src/features/ai-create/ai-create-buttons.tsx@@ -3,8 +3,8 @@* "Create with AI" / "Create manually" unless the object has a verb of its own ("Import with* AI" / "Import manually").*/-import { CreateButtons } from "@lmliheng/penguin-ui";-import type { CreateButtonsProps } from "@lmliheng/penguin-ui";+import { CreateButtons } from "@adelie/ui";+import type { CreateButtonsProps } from "@adelie/ui";import { S } from "../../lib/strings";export type AiCreateButtonsProps = Omit<CreateButtonsProps, "aiLabel" | "manualLabel"> & {diff --git a/packages/web/src/features/ai-create/ai-create-modal.tsx b/packages/web/src/features/ai-create/ai-create-modal.tsxindex 10642071..9ae94477 100644--- a/packages/web/src/features/ai-create/ai-create-modal.tsx+++ b/packages/web/src/features/ai-create/ai-create-modal.tsx@@ -6,7 +6,7 @@* dialog starts from `initialValue` again.*/import { useState } from "react";-import { Button, GlyphIcon, ICONS, Modal } from "@lmliheng/penguin-ui";+import { Button, GlyphIcon, ICONS, Modal } from "@adelie/ui";import { S } from "../../lib/strings";import { useAiBridge } from "./ai-bridge";import { AiCreatePanel } from "./ai-create-panel";diff --git a/packages/web/src/features/ai-create/ai-create-panel.tsx b/packages/web/src/features/ai-create/ai-create-panel.tsxindex c201e401..543f52ae 100644--- a/packages/web/src/features/ai-create/ai-create-panel.tsx+++ b/packages/web/src/features/ai-create/ai-create-panel.tsx@@ -7,8 +7,8 @@*/import { useLayoutEffect, useRef } from "react";import type { ReactNode } from "react";-import type { AgentSummary } from "@lmliheng/penguin-server/api";-import { CopyButton, HelpFold, Select, Textarea } from "@lmliheng/penguin-ui";+import type { AgentSummary } from "@adelie/server/api";+import { CopyButton, HelpFold, Select, Textarea } from "@adelie/ui";import { S } from "../../lib/strings";import { toneInk } from "../../lib/tone";import { agentDisplayName } from "../../state/project";diff --git a/packages/web/src/features/ai-create/default-agent.ts b/packages/web/src/features/ai-create/default-agent.tsindex 1d79ac33..9430a4b4 100644--- a/packages/web/src/features/ai-create/default-agent.ts+++ b/packages/web/src/features/ai-create/default-agent.ts@@ -8,7 +8,7 @@* any other agent may lack. The first agent is the fallback for a Project whose default agent* was deleted; an empty list yields null and the caller disables sending.*/-import type { AgentSummary } from "@lmliheng/penguin-server/api";+import type { AgentSummary } from "@adelie/server/api";export const DEFAULT_AGENT_ID = "default_agent";diff --git a/packages/web/src/features/benchmark/benchmark-case-browser.tsx b/packages/web/src/features/benchmark/benchmark-case-browser.tsxindex 0b9d6c75..7dd8f507 100644--- a/packages/web/src/features/benchmark/benchmark-case-browser.tsx+++ b/packages/web/src/features/benchmark/benchmark-case-browser.tsx@@ -12,13 +12,9 @@*/import { useCallback, useEffect, useRef, useState } from "react";import type { ReactNode } from "react";-import type {- BenchmarkCaseSummary,- CaseMaterial,- WorkspaceFileEntry,-} from "@lmliheng/penguin-server/api";-import { Badge, FileBrowser } from "@lmliheng/penguin-ui";-import type { FileBrowserPreview, FileTreeRow, TreeToggle } from "@lmliheng/penguin-ui";+import type { BenchmarkCaseSummary, CaseMaterial, WorkspaceFileEntry } from "@adelie/server/api";+import { Badge, FileBrowser } from "@adelie/ui";+import type { FileBrowserPreview, FileTreeRow, TreeToggle } from "@adelie/ui";import * as api from "../../api/endpoints";import { apiErrorText } from "../../lib/api-error";import { joinWorkspacePath } from "../../lib/file-path";diff --git a/packages/web/src/features/benchmark/benchmark-detail-page.tsx b/packages/web/src/features/benchmark/benchmark-detail-page.tsxindex 57935c59..c2e72ff1 100644--- a/packages/web/src/features/benchmark/benchmark-detail-page.tsx+++ b/packages/web/src/features/benchmark/benchmark-detail-page.tsx@@ -7,15 +7,8 @@*/import { useEffect, useState } from "react";import { useNavigate, useParams } from "react-router";-import type { ModelsResponse } from "@lmliheng/penguin-server/api";-import {- Button,- CopyButton,- EmptyState,- PageFrame,- PageHeader,- Skeleton,-} from "@lmliheng/penguin-ui";+import type { ModelsResponse } from "@adelie/server/api";+import { Button, CopyButton, EmptyState, PageFrame, PageHeader, Skeleton } from "@adelie/ui";import * as api from "../../api/endpoints";import type { MergedBenchmark } from "../../lib/benchmark-merge";import { nameOnMachine } from "../../lib/workspace-machines";diff --git a/packages/web/src/features/benchmark/benchmark-detail.tsx b/packages/web/src/features/benchmark/benchmark-detail.tsxindex 83b27846..4fb53cb3 100644--- a/packages/web/src/features/benchmark/benchmark-detail.tsx+++ b/packages/web/src/features/benchmark/benchmark-detail.tsx@@ -10,7 +10,7 @@* from when there is more than one, and a case's files come from the machine that listed it.*/import { useEffect, useState } from "react";-import type { BenchmarkCaseSummary, BenchmarkEvaluation } from "@lmliheng/penguin-server/api";+import type { BenchmarkCaseSummary, BenchmarkEvaluation } from "@adelie/server/api";import {AgentAvatar,Button,@@ -33,8 +33,8 @@ import {makeRangeGeom,segmentPoints,useChartWidth,-} from "@lmliheng/penguin-ui";-import type { ChartPaint } from "@lmliheng/penguin-ui";+} from "@adelie/ui";+import type { ChartPaint } from "@adelie/ui";import type { MergedBenchmark, MergedCase } from "../../lib/benchmark-merge";import { S } from "../../lib/strings";import { apiErrorText } from "../../lib/api-error";diff --git a/packages/web/src/features/benchmark/benchmark-metrics.ts b/packages/web/src/features/benchmark/benchmark-metrics.tsindex 18888f77..028bdd98 100644--- a/packages/web/src/features/benchmark/benchmark-metrics.ts+++ b/packages/web/src/features/benchmark/benchmark-metrics.ts@@ -7,7 +7,7 @@* runtime are the trend the loop exists to show, so they stay on one line, and each point* carries its version in the chart's hover label and in the evaluation table's own column.*/-import type { LinePoint } from "@lmliheng/penguin-ui";+import type { LinePoint } from "@adelie/ui";/** Minimal Evaluation shape needed to read Score (BenchmarkEvaluation is a superset). */export interface MetricSourceLike {diff --git a/packages/web/src/features/benchmark/benchmark-page.tsx b/packages/web/src/features/benchmark/benchmark-page.tsxindex 913e4570..4fd7dffa 100644--- a/packages/web/src/features/benchmark/benchmark-page.tsx+++ b/packages/web/src/features/benchmark/benchmark-page.tsx@@ -12,7 +12,7 @@*/import { useEffect, useState } from "react";import { useNavigate, useSearchParams } from "react-router";-import type { AgentSummary, BenchmarkSummary, ModelsResponse } from "@lmliheng/penguin-server/api";+import type { AgentSummary, BenchmarkSummary, ModelsResponse } from "@adelie/server/api";import {AgentAvatar,AvatarStack,@@ -33,7 +33,7 @@ import {Sparkline,toastError,toastSuccess,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import * as api from "../../api/endpoints";import { S } from "../../lib/strings";import { apiErrorText } from "../../lib/api-error";diff --git a/packages/web/src/features/benchmark/create-benchmark-modal.tsx b/packages/web/src/features/benchmark/create-benchmark-modal.tsxindex e32f8a1d..48fb8c0e 100644--- a/packages/web/src/features/benchmark/create-benchmark-modal.tsx+++ b/packages/web/src/features/benchmark/create-benchmark-modal.tsx@@ -7,7 +7,7 @@* discriminating) sit behind the "?" marks. Mounted fresh on every open.*/import { useRef, useState } from "react";-import type { BenchmarkSummary } from "@lmliheng/penguin-server/api";+import type { BenchmarkSummary } from "@adelie/server/api";import {Button,FieldLabel,@@ -20,7 +20,7 @@ import {PlusIcon,Textarea,toastSuccess,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import * as api from "../../api/endpoints";import { ApiError } from "../../api/client";import { S } from "../../lib/strings";diff --git a/packages/web/src/features/benchmark/evaluation-detail-modal.tsx b/packages/web/src/features/benchmark/evaluation-detail-modal.tsxindex 9c09761f..6fca9203 100644--- a/packages/web/src/features/benchmark/evaluation-detail-modal.tsx+++ b/packages/web/src/features/benchmark/evaluation-detail-modal.tsx@@ -9,7 +9,7 @@* result instead of explaining it on screen, since the explanation lives in the Traces.*/import { useState } from "react";-import type { BenchmarkCaseScore, BenchmarkEvaluation } from "@lmliheng/penguin-server/api";+import type { BenchmarkCaseScore, BenchmarkEvaluation } from "@adelie/server/api";import {AgentAvatar,Button,@@ -19,7 +19,7 @@ import {ICON_GAP,ICON_SIZE,Modal,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import { S } from "../../lib/strings";import { formatDateTime, formatMoney, formatScore, humanizeDuration } from "../../lib/format";import type { Currency } from "../../state/theme";diff --git a/packages/web/src/features/benchmark/use-benchmark-modal.tsx b/packages/web/src/features/benchmark/use-benchmark-modal.tsxindex 9cab154b..58936771 100644--- a/packages/web/src/features/benchmark/use-benchmark-modal.tsx+++ b/packages/web/src/features/benchmark/use-benchmark-modal.tsx@@ -26,7 +26,7 @@ import type {BenchmarkSummary,ModelRefDto,ModelsResponse,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import {Button,FieldHint,@@ -39,7 +39,7 @@ import {Segmented,Select,Textarea,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import * as api from "../../api/endpoints";import { S } from "../../lib/strings";import { formatScore } from "../../lib/format";diff --git a/packages/web/src/features/builtin-browser/address-bar.tsx b/packages/web/src/features/builtin-browser/address-bar.tsxindex 2bfd8761..d11af596 100644--- a/packages/web/src/features/builtin-browser/address-bar.tsx+++ b/packages/web/src/features/builtin-browser/address-bar.tsx@@ -12,8 +12,8 @@import { useEffect, useId, useRef, useState } from "react";import type { KeyboardEvent as ReactKeyboardEvent, Ref } from "react";import { createPortal } from "react-dom";-import type { BuiltinBrowserHistoryEntry } from "@lmliheng/penguin-server/api";-import { noAutofill, sizeTextClass } from "@lmliheng/penguin-ui";+import type { BuiltinBrowserHistoryEntry } from "@adelie/server/api";+import { noAutofill, sizeTextClass } from "@adelie/ui";import * as api from "../../api/endpoints";import { S } from "../../lib/strings";import { displayAddress, normalizeAddress } from "./address";diff --git a/packages/web/src/features/builtin-browser/browser-actions.ts b/packages/web/src/features/builtin-browser/browser-actions.tsindex 7a95f67f..7c5afcb7 100644--- a/packages/web/src/features/builtin-browser/browser-actions.ts+++ b/packages/web/src/features/builtin-browser/browser-actions.ts@@ -2,8 +2,8 @@* The built-in browser's round trips to the server, each paired with the local change that* makes it feel immediate. Components call these; none of them throws.*/-import type { BuiltinBrowserTab } from "@lmliheng/penguin-server/api";-import { toastError } from "@lmliheng/penguin-ui";+import type { BuiltinBrowserTab } from "@adelie/server/api";+import { toastError } from "@adelie/ui";import * as api from "../../api/endpoints";import { ApiError } from "../../api/client";import { apiErrorText } from "../../lib/api-error";diff --git a/packages/web/src/features/builtin-browser/browser-events.ts b/packages/web/src/features/builtin-browser/browser-events.tsindex a185c083..bb300c8e 100644--- a/packages/web/src/features/builtin-browser/browser-events.ts+++ b/packages/web/src/features/builtin-browser/browser-events.ts@@ -4,7 +4,7 @@* subscriber. Module level and free of dependencies, because the connection outlives every* page and the session list's store has no business knowing what the browser does with them.*/-import type { BuiltinBrowserServerEvent, ServerEvent } from "@lmliheng/penguin-server/api";+import type { BuiltinBrowserServerEvent, ServerEvent } from "@adelie/server/api";export function isBuiltinBrowserEvent(ev: ServerEvent): ev is BuiltinBrowserServerEvent {return (diff --git a/packages/web/src/features/builtin-browser/browser-layer.tsx b/packages/web/src/features/builtin-browser/browser-layer.tsxindex 80c53f39..4cdc3e6a 100644--- a/packages/web/src/features/builtin-browser/browser-layer.tsx+++ b/packages/web/src/features/builtin-browser/browser-layer.tsx@@ -40,8 +40,8 @@ import {useSyncExternalStore,} from "react";import type { CSSProperties } from "react";-import type { BuiltinBrowserLoadWarning } from "@lmliheng/penguin-server/api";-import { DOCK_FULLSCREEN_Z, toastAttention } from "@lmliheng/penguin-ui";+import type { BuiltinBrowserLoadWarning } from "@adelie/server/api";+import { DOCK_FULLSCREEN_Z, toastAttention } from "@adelie/ui";import { toneInk } from "../../lib/tone";import { currentDockScope, isTabShown, openPanel } from "../dock/dock-state";import { isBlankUrl } from "./address";diff --git a/packages/web/src/features/builtin-browser/browser-panel.tsx b/packages/web/src/features/builtin-browser/browser-panel.tsxindex b2151807..c85550bc 100644--- a/packages/web/src/features/builtin-browser/browser-panel.tsx+++ b/packages/web/src/features/builtin-browser/browser-panel.tsx@@ -12,7 +12,7 @@* desktop app, an older shell) the panel says so instead.*/import { useEffect, useLayoutEffect, useRef, useState, useSyncExternalStore } from "react";-import { Button, EmptyState } from "@lmliheng/penguin-ui";+import { Button, EmptyState } from "@adelie/ui";import { S } from "../../lib/strings";import { isBlankUrl, isWebUrl } from "./address";import { activateBrowserTab, closeBrowserTab, openBrowserTab } from "./browser-actions";diff --git a/packages/web/src/features/builtin-browser/browser-state.ts b/packages/web/src/features/builtin-browser/browser-state.tsindex ab9d26f8..4797a19d 100644--- a/packages/web/src/features/builtin-browser/browser-state.ts+++ b/packages/web/src/features/builtin-browser/browser-state.ts@@ -24,7 +24,7 @@ import type {BuiltinBrowserSettings,BuiltinBrowserStatus,BuiltinBrowserTab,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import { BLANK_URL, tabAddress } from "./address";/** One webview this window hosts. */diff --git a/packages/web/src/features/builtin-browser/browser-tab-strip.tsx b/packages/web/src/features/builtin-browser/browser-tab-strip.tsxindex df949c56..6de27e27 100644--- a/packages/web/src/features/builtin-browser/browser-tab-strip.tsx+++ b/packages/web/src/features/builtin-browser/browser-tab-strip.tsx@@ -12,8 +12,8 @@* warns about memory a small warning mark — each named in the tab's tooltip.*/import { useState } from "react";-import type { BuiltinBrowserTab } from "@lmliheng/penguin-server/api";-import { CloseIcon, GlyphIcon, ICONS, ICON_SIZE, PlusIcon, Spinner } from "@lmliheng/penguin-ui";+import type { BuiltinBrowserTab } from "@adelie/server/api";+import { CloseIcon, GlyphIcon, ICONS, ICON_SIZE, PlusIcon, Spinner } from "@adelie/ui";import { S } from "../../lib/strings";import { toneDot, toneInk } from "../../lib/tone";import { faviconSrc, isBlankUrl, tabLabel } from "./address";diff --git a/packages/web/src/features/builtin-browser/browser-toolbar.tsx b/packages/web/src/features/builtin-browser/browser-toolbar.tsxindex 0ea9e332..d1195fc3 100644--- a/packages/web/src/features/builtin-browser/browser-toolbar.tsx+++ b/packages/web/src/features/builtin-browser/browser-toolbar.tsx@@ -11,7 +11,7 @@*/import { useState } from "react";import type { ReactNode, Ref } from "react";-import type { BuiltinBrowserTab } from "@lmliheng/penguin-server/api";+import type { BuiltinBrowserTab } from "@adelie/server/api";import {CloseIcon,Dropdown,@@ -22,7 +22,7 @@ import {MenuItem,MenuSeparator,Tooltip,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import { S } from "../../lib/strings";import { toneInk } from "../../lib/tone";import { AddressBar } from "./address-bar";diff --git a/packages/web/src/features/builtin-browser/clear-data-dialog.tsx b/packages/web/src/features/builtin-browser/clear-data-dialog.tsxindex bf426274..b0965689 100644--- a/packages/web/src/features/builtin-browser/clear-data-dialog.tsx+++ b/packages/web/src/features/builtin-browser/clear-data-dialog.tsx@@ -4,7 +4,7 @@* on each opening; the confirm stays disabled while none is.*/import { useEffect, useState } from "react";-import { Checkbox, ConfirmModal, toastError, toastSuccess } from "@lmliheng/penguin-ui";+import { Checkbox, ConfirmModal, toastError, toastSuccess } from "@adelie/ui";import * as api from "../../api/endpoints";import type { BuiltinBrowserStorage } from "../../api/endpoints";import { apiErrorText } from "../../lib/api-error";diff --git a/packages/web/src/features/builtin-browser/homepage-dialog.tsx b/packages/web/src/features/builtin-browser/homepage-dialog.tsxindex a356c1d7..c0412bfa 100644--- a/packages/web/src/features/builtin-browser/homepage-dialog.tsx+++ b/packages/web/src/features/builtin-browser/homepage-dialog.tsx@@ -9,7 +9,7 @@* opening starts from the homepage as saved.*/import { useState } from "react";-import { Button, Input, Modal, toastError } from "@lmliheng/penguin-ui";+import { Button, Input, Modal, toastError } from "@adelie/ui";import * as api from "../../api/endpoints";import { apiErrorText } from "../../lib/api-error";import { S } from "../../lib/strings";diff --git a/packages/web/src/features/builtin-browser/import-dialog.tsx b/packages/web/src/features/builtin-browser/import-dialog.tsxindex 4eae4fc0..61fc79c3 100644--- a/packages/web/src/features/builtin-browser/import-dialog.tsx+++ b/packages/web/src/features/builtin-browser/import-dialog.tsx@@ -4,11 +4,8 @@* any warnings the import came back with. The browser imported from is only read.*/import { useEffect, useState } from "react";-import type {- BuiltinBrowserImportResult,- BuiltinBrowserImportSource,-} from "@lmliheng/penguin-server/api";-import { Button, Checkbox, FieldLabel, Input, Modal, Radio } from "@lmliheng/penguin-ui";+import type { BuiltinBrowserImportResult, BuiltinBrowserImportSource } from "@adelie/server/api";+import { Button, Checkbox, FieldLabel, Input, Modal, Radio } from "@adelie/ui";import * as api from "../../api/endpoints";import { apiErrorText } from "../../lib/api-error";import { S } from "../../lib/strings";diff --git a/packages/web/src/features/builtin-browser/import-options.ts b/packages/web/src/features/builtin-browser/import-options.tsindex 83784f1e..d0d06aa1 100644--- a/packages/web/src/features/builtin-browser/import-options.ts+++ b/packages/web/src/features/builtin-browser/import-options.ts@@ -7,7 +7,7 @@ import type {BuiltinBrowserImportBrowser,BuiltinBrowserImportRequest,BuiltinBrowserImportSource,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";export interface SourceGroup {browser: BuiltinBrowserImportBrowser;diff --git a/packages/web/src/features/builtin-browser/load.ts b/packages/web/src/features/builtin-browser/load.tsindex 615b53ad..ee67960e 100644--- a/packages/web/src/features/builtin-browser/load.ts+++ b/packages/web/src/features/builtin-browser/load.ts@@ -3,10 +3,7 @@* line in its tooltip, and which warnings just appeared (each gets one toast). What counts as too* much is the server's call (its builtin-browser/load.ts); nothing here judges, it only words.*/-import type {- BuiltinBrowserLoadWarning,- BuiltinBrowserMetrics,-} from "@lmliheng/penguin-server/api";+import type { BuiltinBrowserLoadWarning, BuiltinBrowserMetrics } from "@adelie/server/api";import { S } from "../../lib/strings";import type { Strings } from "../../lib/strings";diff --git a/packages/web/src/features/chat/agent-handoff.ts b/packages/web/src/features/chat/agent-handoff.tsindex 21adcc6d..150011d9 100644--- a/packages/web/src/features/chat/agent-handoff.ts+++ b/packages/web/src/features/chat/agent-handoff.ts@@ -10,24 +10,24 @@** The origin **marker blocks** these flows produce and render — `[handoff_from]`,* `[scheduled_task]`, `[model_switch_from]` — are defined in core's marker module- * (`@lmliheng/penguin-core/markers`) alongside every other message marker, and are+ * (`@adelie/core/markers`) alongside every other message marker, and are* re-exported below under this feature's existing names.*/-import { buildHandoffMessage, buildModelSwitchMessage } from "@lmliheng/penguin-core/markers";-import type { AgentSummary } from "@lmliheng/penguin-server/api";+import { buildHandoffMessage, buildModelSwitchMessage } from "@adelie/core/markers";+import type { AgentSummary } from "@adelie/server/api";export {parseBackgroundTaskDoneMessage,parseHandoffMessage,parseModelSwitchMessage,parseScheduledMessage,-} from "@lmliheng/penguin-core/markers";+} from "@adelie/core/markers";export type {BackgroundTaskDone,HandoffOrigin,ModelSwitchOrigin,ScheduledOrigin,-} from "@lmliheng/penguin-core/markers";+} from "@adelie/core/markers";/** First message of an `/agent` handoff conversation (core's `[handoff_from]` origin block). */export const handoffMessage = buildHandoffMessage;diff --git a/packages/web/src/features/chat/agent-topology-view.tsx b/packages/web/src/features/chat/agent-topology-view.tsxindex 7c1656e4..6c0becc8 100644--- a/packages/web/src/features/chat/agent-topology-view.tsx+++ b/packages/web/src/features/chat/agent-topology-view.tsx@@ -9,7 +9,7 @@* Each child node shows its wall-clock elapsed time (ticking while it runs, frozen at its last* activity when done — never a sum of its items); the root carries no stamps and shows none.*/-import { AgentAvatar, DurationSlot, StatusIcon } from "@lmliheng/penguin-ui";+import { AgentAvatar, DurationSlot, StatusIcon } from "@adelie/ui";import { S } from "../../lib/strings";import { layoutTopology, NODE_H, NODE_W } from "./agent-topology";import type { TopologyNode } from "./agent-topology";diff --git a/packages/web/src/features/chat/approval-mode.ts b/packages/web/src/features/chat/approval-mode.tsindex deb0039f..19a15616 100644--- a/packages/web/src/features/chat/approval-mode.ts+++ b/packages/web/src/features/chat/approval-mode.ts@@ -13,7 +13,7 @@* the mode in effect ticked instead of a list with nothing selected. Picking any other mode* drops it from the list.*/-import type { ApprovalMode, SessionInfo } from "@lmliheng/penguin-server/api";+import type { ApprovalMode, SessionInfo } from "@adelie/server/api";/** Every approval mode, in the picker's order. */export const APPROVAL_MODES: readonly ApprovalMode[] = [diff --git a/packages/web/src/features/chat/attached-files-banner.tsx b/packages/web/src/features/chat/attached-files-banner.tsxindex 96d7fb82..03296f65 100644--- a/packages/web/src/features/chat/attached-files-banner.tsx+++ b/packages/web/src/features/chat/attached-files-banner.tsx@@ -6,7 +6,7 @@* rendered as usual by the caller. It keeps the same visual language as message-level notices;* the caller owns its user-side alignment and timestamp footer.*/-import { GlyphIcon } from "@lmliheng/penguin-ui";+import { GlyphIcon } from "@adelie/ui";import { S } from "../../lib/strings";import { attachmentFileName } from "../../lib/attachments";diff --git a/packages/web/src/features/chat/background-done-banner.tsx b/packages/web/src/features/chat/background-done-banner.tsxindex a3bdc4bb..927d974c 100644--- a/packages/web/src/features/chat/background-done-banner.tsx+++ b/packages/web/src/features/chat/background-done-banner.tsx@@ -12,7 +12,7 @@ import {DISCLOSURE_OUTPUT_PRE_CLASS,DisclosureRow,StatusIcon,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import { S } from "../../lib/strings";import type { BackgroundTaskDone } from "./agent-handoff";diff --git a/packages/web/src/features/chat/builtin-dock-panels.tsx b/packages/web/src/features/chat/builtin-dock-panels.tsxindex f3dbf9e8..82ba3f6b 100644--- a/packages/web/src/features/chat/builtin-dock-panels.tsx+++ b/packages/web/src/features/chat/builtin-dock-panels.tsx@@ -8,7 +8,7 @@* Importing the module registers the seven — chat-page.tsx does, so they are in the registry* before any dock renders.*/-import { EmptyState, ICONS } from "@lmliheng/penguin-ui";+import { EmptyState, ICONS } from "@adelie/ui";import { S } from "../../lib/strings";import { NAV_ICONS } from "../../lib/nav-icons";import { dockPanelDefinition, panelLabel, registerDockPanel } from "../dock/panel-registry";diff --git a/packages/web/src/features/chat/chat-defaults-event.ts b/packages/web/src/features/chat/chat-defaults-event.tsindex d26287e9..600a5e7b 100644--- a/packages/web/src/features/chat/chat-defaults-event.ts+++ b/packages/web/src/features/chat/chat-defaults-event.ts@@ -7,7 +7,7 @@* already holds. Same-tab only by design — other tabs (and the stripped localStorage cache)* pick the new defaults up on their next /chat/new mount.*/-import type { ChatDefaultsDto, ModelRefDto } from "@lmliheng/penguin-server/api";+import type { ChatDefaultsDto, ModelRefDto } from "@adelie/server/api";export const CHAT_DEFAULTS_CHANGED_EVENT = "penguin:chat-defaults-changed";diff --git a/packages/web/src/features/chat/chat-dock-context.tsx b/packages/web/src/features/chat/chat-dock-context.tsxindex 2145e224..0876ef9a 100644--- a/packages/web/src/features/chat/chat-dock-context.tsx+++ b/packages/web/src/features/chat/chat-dock-context.tsx@@ -8,7 +8,7 @@*/import { createContext, useContext } from "react";import type { ReactNode } from "react";-import type { ModelsResponse, SessionInfo } from "@lmliheng/penguin-server/api";+import type { ModelsResponse, SessionInfo } from "@adelie/server/api";import type { PermissionPick } from "../../lib/permission-level";import type { StreamModel } from "../../lib/omni/stream-model";import type { MemoryChangeRow, MemoryLocateTarget } from "../../lib/omni/memory-changes";diff --git a/packages/web/src/features/chat/chat-input.tsx b/packages/web/src/features/chat/chat-input.tsxindex a1138f59..410e23a2 100644--- a/packages/web/src/features/chat/chat-input.tsx+++ b/packages/web/src/features/chat/chat-input.tsx@@ -94,7 +94,7 @@ import type {SessionStatus,SkillMetadataItem,TaskInputPart,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import {AgentAvatar,Button,@@ -119,8 +119,8 @@ import {noAutofill,toastError,toastInfo,-} from "@lmliheng/penguin-ui";-import type { MenuSelectOption, TagInputChip } from "@lmliheng/penguin-ui";+} from "@adelie/ui";+import type { MenuSelectOption, TagInputChip } from "@adelie/ui";import { S } from "../../lib/strings";import { formatBytes, humanizeTokens } from "../../lib/format";import { fitTextarea } from "../../lib/textarea-fit";diff --git a/packages/web/src/features/chat/chat-page.tsx b/packages/web/src/features/chat/chat-page.tsxindex f806de23..dd1df8b7 100644--- a/packages/web/src/features/chat/chat-page.tsx+++ b/packages/web/src/features/chat/chat-page.tsx@@ -29,7 +29,7 @@ import type {SessionStatus,SkillMetadataItem,TaskInputPart,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import {ActivityIcon,Button,@@ -49,7 +49,7 @@ import {toastError,toastInfo,toastSuccess,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import * as api from "../../api/endpoints";import { switchDeskModel } from "../company/desk-model";import { useCompany } from "../../state/company";@@ -134,7 +134,7 @@ import { modelLabel } from "./model-select";import { sessionModelPickerDisabled, sessionRowStale, switchContextShape } from "./model-switch";import type { SwitchContextShape } from "./model-switch";import { hasConfiguredKey, promotedPricing, sameModelRef } from "../models/model-grouping";-import { providerInfo } from "@lmliheng/penguin-core/model-catalog";+import { providerInfo } from "@adelie/core/model-catalog";import { useMemoryListing } from "./use-memory-listing";import { deletedChangeKeys } from "./memory-nav";import { noteScheduleEvent } from "../schedules/schedule-store";diff --git a/packages/web/src/features/chat/code-highlight.ts b/packages/web/src/features/chat/code-highlight.tsindex c6e70703..9d001308 100644--- a/packages/web/src/features/chat/code-highlight.ts+++ b/packages/web/src/features/chat/code-highlight.ts@@ -6,7 +6,7 @@* The worker client is imported on the first call, not up front, so it stays in a chunk of its own* that a session with no code block never fetches — as it did when the code block imported it.*/-import type { CodeHighlighter } from "@lmliheng/penguin-ui";+import type { CodeHighlighter } from "@adelie/ui";export const highlightCode: CodeHighlighter = (code, language, options) =>import("./highlighter").then((mod) => mod.highlightToHtml(code, language, options));diff --git a/packages/web/src/features/chat/compaction-banner.tsx b/packages/web/src/features/chat/compaction-banner.tsxindex 032b9971..895687f1 100644--- a/packages/web/src/features/chat/compaction-banner.tsx+++ b/packages/web/src/features/chat/compaction-banner.tsx@@ -51,7 +51,7 @@ import {Md,StatusIcon,StepBanner,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import { S } from "../../lib/strings";import { humanizeDuration } from "../../lib/format";import type { CompactionItem } from "../../lib/omni/stream-model";diff --git a/packages/web/src/features/chat/context-gauge.tsx b/packages/web/src/features/chat/context-gauge.tsxindex cde8c725..7166b814 100644--- a/packages/web/src/features/chat/context-gauge.tsx+++ b/packages/web/src/features/chat/context-gauge.tsx@@ -69,7 +69,7 @@import { useEffect, useId, useRef, useState } from "react";import type { RefObject } from "react";import { createPortal } from "react-dom";-import type { SessionContextResponse } from "@lmliheng/penguin-server/api";+import type { SessionContextResponse } from "@adelie/server/api";import {ConfirmModal,ContextRing,@@ -77,7 +77,7 @@ import {Legend,usePointerDrag,usePortalPanel,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import { getSessionContext } from "../../api/endpoints";import {MIN_COMPACTION_THRESHOLD,diff --git a/packages/web/src/features/chat/context-parts.ts b/packages/web/src/features/chat/context-parts.tsindex 36829350..40da13fc 100644--- a/packages/web/src/features/chat/context-parts.ts+++ b/packages/web/src/features/chat/context-parts.ts@@ -12,7 +12,7 @@** Pure, no React: unit-tested in test/context-parts.test.ts, rendered by context-gauge.tsx.*/-import type { SessionContextResponse } from "@lmliheng/penguin-server/api";+import type { SessionContextResponse } from "@adelie/server/api";import { CONTEXT_PART_COLORS } from "../../lib/category-colors";/** The six parts, by the DTO field each reads. Callers resolve a key to its label at render time — `S` is a live binding and must not be captured in a module constant. */diff --git a/packages/web/src/features/chat/conversation-outline.tsx b/packages/web/src/features/chat/conversation-outline.tsxindex 9a062ce6..382e55e1 100644--- a/packages/web/src/features/chat/conversation-outline.tsx+++ b/packages/web/src/features/chat/conversation-outline.tsx@@ -36,7 +36,7 @@*/import { useEffect, useRef, useState } from "react";import type { FocusEvent, MouseEvent, RefObject } from "react";-import { Dot, Dropdown, GlyphIcon } from "@lmliheng/penguin-ui";+import { Dot, Dropdown, GlyphIcon } from "@adelie/ui";import { S } from "../../lib/strings";import type { OutlineEntry } from "./outline-model";import {diff --git a/packages/web/src/features/chat/dock-toggles.tsx b/packages/web/src/features/chat/dock-toggles.tsxindex 6c2414eb..78abf7d7 100644--- a/packages/web/src/features/chat/dock-toggles.tsx+++ b/packages/web/src/features/chat/dock-toggles.tsx@@ -14,8 +14,8 @@* Workspace pill.*/import { useSyncExternalStore } from "react";-import { ICONS, PanelsToolbar } from "@lmliheng/penguin-ui";-import type { PanelsToolbarToggle } from "@lmliheng/penguin-ui";+import { ICONS, PanelsToolbar } from "@adelie/ui";+import type { PanelsToolbarToggle } from "@adelie/ui";import { S } from "../../lib/strings";import { useShortcutTitle } from "../../lib/shortcuts/use-keymap";import {diff --git a/packages/web/src/features/chat/draft-cache.ts b/packages/web/src/features/chat/draft-cache.tsindex b1e7339f..1dbd689d 100644--- a/packages/web/src/features/chat/draft-cache.ts+++ b/packages/web/src/features/chat/draft-cache.ts@@ -10,7 +10,7 @@* succession and the key only contains the Project/Session ID, the later user would recover the* previous user's text, Workspace, model selection, and handoff target — a cross-account information leak.*/-import type { ApprovalMode, SessionSandbox } from "@lmliheng/penguin-server/api";+import type { ApprovalMode, SessionSandbox } from "@adelie/server/api";const APPROVAL_MODES: ApprovalMode[] = ["always-ask", "read-only", "allow-all", "deny-all"];diff --git a/packages/web/src/features/chat/draft-view.tsx b/packages/web/src/features/chat/draft-view.tsxindex 90bf1e0d..6dd75ba3 100644--- a/packages/web/src/features/chat/draft-view.tsx+++ b/packages/web/src/features/chat/draft-view.tsx@@ -51,15 +51,8 @@ import type {SessionSandbox,SkillMetadataItem,TaskInputPart,-} from "@lmliheng/penguin-server/api";-import {- AgentAvatar,- Chevron,- Dropdown,- MenuItem,- AppLogo,- toastError,-} from "@lmliheng/penguin-ui";+} from "@adelie/server/api";+import { AgentAvatar, Chevron, Dropdown, MenuItem, AppLogo, toastError } from "@adelie/ui";import * as api from "../../api/endpoints";import { S } from "../../lib/strings";import { UNCONFINED, draftSandboxAfter } from "../../lib/permission-level";diff --git a/packages/web/src/features/chat/drop-zone.tsx b/packages/web/src/features/chat/drop-zone.tsxindex 757f5461..40bc56f4 100644--- a/packages/web/src/features/chat/drop-zone.tsx+++ b/packages/web/src/features/chat/drop-zone.tsx@@ -39,7 +39,7 @@import { createContext, useContext, useEffect, useRef, useState } from "react";import type { ReactNode } from "react";import { createPortal } from "react-dom";-import { DropOverlay } from "@lmliheng/penguin-ui";+import { DropOverlay } from "@adelie/ui";import { dropRegionAction, isFileDrag } from "../../lib/file-drop";import type { DragSignal, DropRegionAction } from "../../lib/file-drop";import { S } from "../../lib/strings";diff --git a/packages/web/src/features/chat/folder-row.tsx b/packages/web/src/features/chat/folder-row.tsxindex bf80aebd..2236efbe 100644--- a/packages/web/src/features/chat/folder-row.tsx+++ b/packages/web/src/features/chat/folder-row.tsx@@ -3,7 +3,7 @@* was a tab once — open it and it stayed open — and the row's own chevron then promised a* collapse it did not have, so the click now flips the state it shows.*/-import { Chevron, ICON_SIZE } from "@lmliheng/penguin-ui";+import { Chevron, ICON_SIZE } from "@adelie/ui";export function FolderRow({open,diff --git a/packages/web/src/features/chat/goal-banner.tsx b/packages/web/src/features/chat/goal-banner.tsxindex 7a31f81a..5eb21442 100644--- a/packages/web/src/features/chat/goal-banner.tsx+++ b/packages/web/src/features/chat/goal-banner.tsx@@ -5,7 +5,7 @@* (Round inputs themselves render as regular user messages with a harness-origin caption —* see message-item.tsx; no goal-specific message rendering remains.)*/-import { GlyphIcon } from "@lmliheng/penguin-ui";+import { GlyphIcon } from "@adelie/ui";import { S } from "../../lib/strings";import { humanizeTokens } from "../../lib/format";import { GOAL_ICON, UNLIMITED_BUDGET } from "./goal-use";diff --git a/packages/web/src/features/chat/harness-banner.tsx b/packages/web/src/features/chat/harness-banner.tsxindex d28e8f7e..6eb395a8 100644--- a/packages/web/src/features/chat/harness-banner.tsx+++ b/packages/web/src/features/chat/harness-banner.tsx@@ -11,7 +11,7 @@ import {DisclosureRow,GlyphIcon,ICONS,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import { S } from "../../lib/strings";export function HarnessInjectedBanner({ text }: { text: string }) {diff --git a/packages/web/src/features/chat/highlighter.ts b/packages/web/src/features/chat/highlighter.tsindex 23ee8bbe..eede6ea0 100644--- a/packages/web/src/features/chat/highlighter.ts+++ b/packages/web/src/features/chat/highlighter.ts@@ -12,7 +12,7 @@* CSP that forbids it, a construction that throws — the work falls back to this thread, which is* exactly the old behaviour and still correct, only blocking.*/-import type { HighlightOptions } from "@lmliheng/penguin-ui";+import type { HighlightOptions } from "@adelie/ui";import type { HighlightRequest, HighlightResponse } from "./highlighter.worker";/** undefined: not tried yet. null: unavailable here, use the main thread. */@@ -68,7 +68,7 @@ export async function highlightToHtml(// Imported here and not at the top: the engine is already in the worker's bundle, and a// static import would put a second copy of it on the main thread for every reader whose// worker works — which is all of them.- const { highlight } = await import("@lmliheng/penguin-ui/highlighter");+ const { highlight } = await import("@adelie/ui/highlighter");return highlight(code, language, options);}const id = (nextId += 1);diff --git a/packages/web/src/features/chat/highlighter.worker.ts b/packages/web/src/features/chat/highlighter.worker.tsindex 330d28b2..0d1b1c91 100644--- a/packages/web/src/features/chat/highlighter.worker.ts+++ b/packages/web/src/features/chat/highlighter.worker.ts@@ -10,8 +10,8 @@* The protocol is one message each way, correlated by an id the caller mints, because several* blocks can settle at once and their answers come back in whatever order they finish.*/-import { highlight } from "@lmliheng/penguin-ui/highlighter";-import type { HighlightOptions } from "@lmliheng/penguin-ui/highlighter";+import { highlight } from "@adelie/ui/highlighter";+import type { HighlightOptions } from "@adelie/ui/highlighter";export interface HighlightRequest {id: number;diff --git a/packages/web/src/features/chat/mcp-connect-banner.tsx b/packages/web/src/features/chat/mcp-connect-banner.tsxindex 898a66d2..ad51fa92 100644--- a/packages/web/src/features/chat/mcp-connect-banner.tsx+++ b/packages/web/src/features/chat/mcp-connect-banner.tsx@@ -11,7 +11,7 @@* warn-and-skip stance).*/import { useState } from "react";-import { Chevron, StatusIcon, StepBanner } from "@lmliheng/penguin-ui";+import { Chevron, StatusIcon, StepBanner } from "@adelie/ui";import { S } from "../../lib/strings";import { humanizeDuration } from "../../lib/format";import type { McpConnectItem, McpServerOutcome, McpToolSummary } from "../../lib/omni/stream-model";diff --git a/packages/web/src/features/chat/memory-changes-card.tsx b/packages/web/src/features/chat/memory-changes-card.tsxindex 5cd5ea81..c02fecda 100644--- a/packages/web/src/features/chat/memory-changes-card.tsx+++ b/packages/web/src/features/chat/memory-changes-card.tsx@@ -12,7 +12,7 @@* filtered out (deletedKeys) — the row disappears here just as it does from the panel's list;* the whole card hides when nothing survives.*/-import { ChangesCard, ICONS } from "@lmliheng/penguin-ui";+import { ChangesCard, ICONS } from "@adelie/ui";import { S } from "../../lib/strings";import type { MemoryChangeRow } from "../../lib/omni/memory-changes";import { memoryRowKey } from "../../lib/omni/memory-changes";diff --git a/packages/web/src/features/chat/memory-nav.ts b/packages/web/src/features/chat/memory-nav.tsindex 8930f0e3..7b1bc723 100644--- a/packages/web/src/features/chat/memory-nav.ts+++ b/packages/web/src/features/chat/memory-nav.ts@@ -8,7 +8,7 @@* memory's detail; entering through the panel toggle (or any entry without a target) lands* on the list. Back always returns to the list.*/-import type { MemoryFileInfo, MemoryScopeInfo } from "@lmliheng/penguin-server/api";+import type { MemoryFileInfo, MemoryScopeInfo } from "@adelie/server/api";import type {MemoryChangeOp,MemoryChangeRow,diff --git a/packages/web/src/features/chat/memory-view.tsx b/packages/web/src/features/chat/memory-view.tsxindex e434f52e..2d01cabb 100644--- a/packages/web/src/features/chat/memory-view.tsx+++ b/packages/web/src/features/chat/memory-view.tsx@@ -13,15 +13,8 @@* duplicates the bridge-modal flows.*/import { useEffect, useState } from "react";-import type { SessionInfo } from "@lmliheng/penguin-server/api";-import {- GlyphIcon,- ICONS,- ICON_SIZE,- Md,- SkeletonList,- bodyWithoutFrontmatter,-} from "@lmliheng/penguin-ui";+import type { SessionInfo } from "@adelie/server/api";+import { GlyphIcon, ICONS, ICON_SIZE, Md, SkeletonList, bodyWithoutFrontmatter } from "@adelie/ui";import * as api from "../../api/endpoints";import { S } from "../../lib/strings";import { formatRelativeDate } from "../../lib/format";diff --git a/packages/web/src/features/chat/message-files-card.tsx b/packages/web/src/features/chat/message-files-card.tsxindex ded7613a..0924fcc9 100644--- a/packages/web/src/features/chat/message-files-card.tsx+++ b/packages/web/src/features/chat/message-files-card.tsx@@ -12,7 +12,7 @@* currently openable.*/import { useEffect, useMemo, useState } from "react";-import { ChangesCard, ICONS } from "@lmliheng/penguin-ui";+import { ChangesCard, ICONS } from "@adelie/ui";import { S } from "../../lib/strings";import { isFilePathLike, toWorkspaceRelative } from "../../lib/file-path";diff --git a/packages/web/src/features/chat/message-item.tsx b/packages/web/src/features/chat/message-item.tsxindex 9ad2de47..ae951906 100644--- a/packages/web/src/features/chat/message-item.tsx+++ b/packages/web/src/features/chat/message-item.tsx@@ -10,13 +10,7 @@* line's countdown and controls.*/import { useEffect, useState } from "react";-import {- AssistantText,- MessageBubble,- MessageImage,- MessageMeta,- MessageRow,-} from "@lmliheng/penguin-ui";+import { AssistantText, MessageBubble, MessageImage, MessageMeta, MessageRow } from "@adelie/ui";import { S } from "../../lib/strings";import { useLocale } from "../../state/locale";import { formatMessageTime } from "../../lib/format";diff --git a/packages/web/src/features/chat/message-stream.tsx b/packages/web/src/features/chat/message-stream.tsxindex 5776cf86..a2437630 100644--- a/packages/web/src/features/chat/message-stream.tsx+++ b/packages/web/src/features/chat/message-stream.tsx@@ -9,7 +9,7 @@*/import { useEffect, useLayoutEffect, useRef, useState } from "react";import type { ReactNode, RefObject } from "react";-import { EmptyState, Spinner } from "@lmliheng/penguin-ui";+import { EmptyState, Spinner } from "@adelie/ui";import { S } from "../../lib/strings";import type { ChatItem } from "../../lib/omni/stream-model";import type { MemoryChangeRow } from "../../lib/omni/memory-changes";diff --git a/packages/web/src/features/chat/model-picker-logic.ts b/packages/web/src/features/chat/model-picker-logic.tsindex f5c1646d..f64f4fad 100644--- a/packages/web/src/features/chat/model-picker-logic.ts+++ b/packages/web/src/features/chat/model-picker-logic.ts@@ -13,8 +13,8 @@* `modelLabel` lives here too (model-select.tsx re-exports it for its existing importers), so* the modal and the triggers share it without importing each other.*/-import type { ModelProviderInfo } from "@lmliheng/penguin-core/model-catalog";-import type { ModelInfo } from "@lmliheng/penguin-server/api";+import type { ModelProviderInfo } from "@adelie/core/model-catalog";+import type { ModelInfo } from "@adelie/server/api";import {discountedPrice,groupModelRows,diff --git a/packages/web/src/features/chat/model-picker-modal.tsx b/packages/web/src/features/chat/model-picker-modal.tsxindex 4e8a14e1..6bebe37c 100644--- a/packages/web/src/features/chat/model-picker-modal.tsx+++ b/packages/web/src/features/chat/model-picker-modal.tsx@@ -31,7 +31,7 @@*/import { useEffect, useId, useMemo, useRef, useState } from "react";import type { KeyboardEvent as ReactKeyboardEvent } from "react";-import type { ModelInfo, ModelRefDto } from "@lmliheng/penguin-server/api";+import type { ModelInfo, ModelRefDto } from "@adelie/server/api";import {ChoiceCheck,CloseButton,@@ -41,7 +41,7 @@ import {Modal,ProviderLogo,SearchInput,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import { S } from "../../lib/strings";import { hasConfiguredKey, sameModelRef } from "../models/model-grouping";import { loadModelGroupOrder } from "../models/model-group-order";diff --git a/packages/web/src/features/chat/model-select.tsx b/packages/web/src/features/chat/model-select.tsxindex 5783ecbe..13113636 100644--- a/packages/web/src/features/chat/model-select.tsx+++ b/packages/web/src/features/chat/model-select.tsx@@ -7,8 +7,8 @@* composer's other switch picker, the `/agent` handoff, is the UI package's PickerList.*/import { useState } from "react";-import type { ModelInfo, ModelRefDto } from "@lmliheng/penguin-server/api";-import { ModelSelect } from "@lmliheng/penguin-ui";+import type { ModelInfo, ModelRefDto } from "@adelie/server/api";+import { ModelSelect } from "@adelie/ui";import { S } from "../../lib/strings";import { sameModelRef } from "../models/model-grouping";import { modelLabel } from "./model-picker-logic";diff --git a/packages/web/src/features/chat/model-switch.ts b/packages/web/src/features/chat/model-switch.tsindex 873af154..06ec043f 100644--- a/packages/web/src/features/chat/model-switch.ts+++ b/packages/web/src/features/chat/model-switch.ts@@ -12,7 +12,7 @@* names (see sessionRowStale). A compaction that fails streams no meta, and the Session stays* on the model it was on.*/-import type { ModelRefDto, SessionInfo, SessionStatus } from "@lmliheng/penguin-server/api";+import type { ModelRefDto, SessionInfo, SessionStatus } from "@adelie/server/api";import { sameModelRef } from "../models/model-grouping";import { trailingCompaction } from "./thinking-level";import type { ThinkingSwitchItem } from "./thinking-level";diff --git a/packages/web/src/features/chat/new-chat.ts b/packages/web/src/features/chat/new-chat.tsindex b28ccc2b..b7a027af 100644--- a/packages/web/src/features/chat/new-chat.ts+++ b/packages/web/src/features/chat/new-chat.ts@@ -10,7 +10,7 @@* not a source: prepareNewChatDraft releases it first, or the leftover of one "+" click would* stand in for the Project's defaults on every later "New chat".*/-import type { AgentSummary, ChatDefaultsDto } from "@lmliheng/penguin-server/api";+import type { AgentSummary, ChatDefaultsDto } from "@adelie/server/api";import { pickDefaultAgent } from "../ai-create/default-agent";import { clearDraft, draftKey, loadDraft, saveDraft } from "./draft-cache";import type { DraftCache, DraftStorage } from "./draft-cache";diff --git a/packages/web/src/features/chat/org-trigger-banner.tsx b/packages/web/src/features/chat/org-trigger-banner.tsxindex 78a1900d..7f0365c1 100644--- a/packages/web/src/features/chat/org-trigger-banner.tsx+++ b/packages/web/src/features/chat/org-trigger-banner.tsx@@ -4,7 +4,7 @@* trigger, the event / message / ticket it names, and the budget line — the same shape as the* scheduled-task banner beside it. The trigger's body renders as usual below.*/-import { Badge } from "@lmliheng/penguin-ui";+import { Badge } from "@adelie/ui";import { S } from "../../lib/strings";import { formatDateTime } from "../../lib/format";import { summarizeOrgTrigger } from "./org-trigger";diff --git a/packages/web/src/features/chat/org-trigger.ts b/packages/web/src/features/chat/org-trigger.tsindex 9d738739..48236727 100644--- a/packages/web/src/features/chat/org-trigger.ts+++ b/packages/web/src/features/chat/org-trigger.ts@@ -4,10 +4,10 @@* identifies it (the event, the chat message, the ticket and its change) and the budget line* the scheduler wrote. The banner (org-trigger-banner.tsx) only localizes these.*/-import type { OrgTriggerOrigin } from "@lmliheng/penguin-core/markers";+import type { OrgTriggerOrigin } from "@adelie/core/markers";-export { parseOrgTriggerMessage } from "@lmliheng/penguin-core/markers";-export type { OrgTriggerKind, OrgTriggerOrigin } from "@lmliheng/penguin-core/markers";+export { parseOrgTriggerMessage } from "@adelie/core/markers";+export type { OrgTriggerKind, OrgTriggerOrigin } from "@adelie/core/markers";export interface OrgTriggerSummary {org: string;diff --git a/packages/web/src/features/chat/permission-select.tsx b/packages/web/src/features/chat/permission-select.tsxindex ee121d67..ed2507dc 100644--- a/packages/web/src/features/chat/permission-select.tsx+++ b/packages/web/src/features/chat/permission-select.tsx@@ -28,11 +28,7 @@* chat input docked at the bottom of the screen opens upward.*/import { useState } from "react";-import type {- ApprovalMode,- SessionSandbox,- SessionSandboxPreset,-} from "@lmliheng/penguin-server/api";+import type { ApprovalMode, SessionSandbox, SessionSandboxPreset } from "@adelie/server/api";import {Dropdown,GlyphIcon,@@ -42,7 +38,7 @@ import {MenuItem,MenuRadioItem,MenuSeparator,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import { S } from "../../lib/strings";import { toneInk } from "../../lib/tone";import {diff --git a/packages/web/src/features/chat/process-list.ts b/packages/web/src/features/chat/process-list.tsindex e6039f5b..09fff68c 100644--- a/packages/web/src/features/chat/process-list.ts+++ b/packages/web/src/features/chat/process-list.ts@@ -4,7 +4,7 @@* requests is worth telling the user about. Kept out of the page so they are unit-testable* (vitest runs node-only, no DOM).*/-import type { SessionProcessInfo } from "@lmliheng/penguin-server/api";+import type { SessionProcessInfo } from "@adelie/server/api";import { ApiError } from "../../api/client";/**diff --git a/packages/web/src/features/chat/reference-chip.tsx b/packages/web/src/features/chat/reference-chip.tsxindex 9c5fa0ff..7d5b499c 100644--- a/packages/web/src/features/chat/reference-chip.tsx+++ b/packages/web/src/features/chat/reference-chip.tsx@@ -4,7 +4,7 @@* never the text the message will carry. The composer draws one per staged reference, above its* text body.*/-import { Chip, GlyphIcon, ICONS } from "@lmliheng/penguin-ui";+import { Chip, GlyphIcon, ICONS } from "@adelie/ui";import { S } from "../../lib/strings";import { excerptLabel } from "../../lib/selection-menu";import { lineSuffix } from "../../lib/workspace-tree";diff --git a/packages/web/src/features/chat/session-project.ts b/packages/web/src/features/chat/session-project.tsindex daf61ef2..94e6ff39 100644--- a/packages/web/src/features/chat/session-project.ts+++ b/packages/web/src/features/chat/session-project.ts@@ -1,4 +1,4 @@-import type { SessionInfo } from "@lmliheng/penguin-server/api";+import type { SessionInfo } from "@adelie/server/api";/*** The Session the route names: the loaded list's row when it holds one, otherwise the row adiff --git a/packages/web/src/features/chat/shortcuts-folder.tsx b/packages/web/src/features/chat/shortcuts-folder.tsxindex 19bc1cf7..2b0ff406 100644--- a/packages/web/src/features/chat/shortcuts-folder.tsx+++ b/packages/web/src/features/chat/shortcuts-folder.tsx@@ -27,7 +27,7 @@ import {PlusIcon,Textarea,toastError,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import * as api from "../../api/endpoints";import { S } from "../../lib/strings";import { apiErrorText } from "../../lib/api-error";diff --git a/packages/web/src/features/chat/skill-use.ts b/packages/web/src/features/chat/skill-use.tsindex 05efaffe..36d3352f 100644--- a/packages/web/src/features/chat/skill-use.ts+++ b/packages/web/src/features/chat/skill-use.ts@@ -4,14 +4,14 @@** The `[use_skills]` marker block itself is **not** defined here: it is a globally agreed* format shared by the frontend, the backend and the core prompt template, so its producer- * and parser live in core's marker module (`@lmliheng/penguin-core/markers`) and are+ * and parser live in core's marker module (`@adelie/core/markers`) and are* re-exported below for this feature's existing importers. What stays local is the UI-only* part: icon path, UI-language text selection, dropdown filtering and slash command items.*/-import type { SkillMetadataItem } from "@lmliheng/penguin-server/api";-import { ICONS } from "@lmliheng/penguin-ui";+import type { SkillMetadataItem } from "@adelie/server/api";+import { ICONS } from "@adelie/ui";-export { buildSkillsMessage, parseSkillsMessage } from "@lmliheng/penguin-core/markers";+export { buildSkillsMessage, parseSkillsMessage } from "@adelie/core/markers";/** Book icon (24×24 line path): the mark of skills as a kind — the composer's skills button, the "using skills" banner, the agents page's skill count, and what a skill draws when it carries no plugin icon (skill-icon-view.tsx). */export const BOOK_ICON = ICONS.bookOpen;diff --git a/packages/web/src/features/chat/skills-banner.tsx b/packages/web/src/features/chat/skills-banner.tsxindex f4f16d86..3d5b495b 100644--- a/packages/web/src/features/chat/skills-banner.tsx+++ b/packages/web/src/features/chat/skills-banner.tsx@@ -4,7 +4,7 @@* static text, no navigation — skill management lives on the skill library page); the body text* after the block is rendered as usual by the caller.*/-import { GlyphIcon } from "@lmliheng/penguin-ui";+import { GlyphIcon } from "@adelie/ui";import { S } from "../../lib/strings";import { BOOK_ICON } from "./skill-use";diff --git a/packages/web/src/features/chat/stream-selection-menu.tsx b/packages/web/src/features/chat/stream-selection-menu.tsxindex c54eea5b..6c0005bc 100644--- a/packages/web/src/features/chat/stream-selection-menu.tsx+++ b/packages/web/src/features/chat/stream-selection-menu.tsx@@ -38,8 +38,8 @@ import {isContextMenuKey,toastSuccess,useRowContextMenu,-} from "@lmliheng/penguin-ui";-import type { AnchorRect, ContextMenuEventLike } from "@lmliheng/penguin-ui";+} from "@adelie/ui";+import type { AnchorRect, ContextMenuEventLike } from "@adelie/ui";import { S } from "../../lib/strings";import { STAT_ICONS } from "../../lib/stat-icons";import { isDesktopShellWindow } from "../../lib/account-menu";diff --git a/packages/web/src/features/chat/subagent-chip.tsx b/packages/web/src/features/chat/subagent-chip.tsxindex 612e4650..8321828a 100644--- a/packages/web/src/features/chat/subagent-chip.tsx+++ b/packages/web/src/features/chat/subagent-chip.tsx@@ -5,7 +5,7 @@* discoverable with the panel closed, and is announced in the row's name), and opens the* subagents panel focused on the child through ctx.onOpenSubagent.*/-import { SubagentChip } from "@lmliheng/penguin-ui";+import { SubagentChip } from "@adelie/ui";import { S } from "../../lib/strings";import { hasPendingWithinOrigin } from "../../lib/omni/stream-model";import type { StreamModel } from "../../lib/omni/stream-model";diff --git a/packages/web/src/features/chat/subagents-view.tsx b/packages/web/src/features/chat/subagents-view.tsxindex cc4be445..d9183cf8 100644--- a/packages/web/src/features/chat/subagents-view.tsx+++ b/packages/web/src/features/chat/subagents-view.tsx@@ -32,7 +32,7 @@ import type {SkillMetadataItem,SubagentRuntimeInfo,TaskInputPart,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import {AgentAvatar,EmptyState,@@ -41,7 +41,7 @@ import {StatusIcon,Text,toastError,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import { ApiError } from "../../api/client";import { abortSubagent, getAgentSkills, messageSubagent, patchSession } from "../../api/endpoints";import { apiErrorText } from "../../lib/api-error";diff --git a/packages/web/src/features/chat/task-stats-line.tsx b/packages/web/src/features/chat/task-stats-line.tsxindex 6db1e035..3812eaee 100644--- a/packages/web/src/features/chat/task-stats-line.tsx+++ b/packages/web/src/features/chat/task-stats-line.tsx@@ -29,7 +29,7 @@* itself doesn't render a separate one (otherwise two copy buttons would pop up in the same spot).*/import { useState } from "react";-import type { TracePosition } from "@lmliheng/penguin-server/api";+import type { TracePosition } from "@adelie/server/api";import {ConfirmModal,CopyButton,@@ -37,7 +37,7 @@ import {Spinner,StatChip,markdownToPlainText,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import { formatTaskStats } from "../../lib/omni/task-stats";import type { TaskStats } from "../../lib/omni/task-stats";import {diff --git a/packages/web/src/features/chat/thinking-block.tsx b/packages/web/src/features/chat/thinking-block.tsxindex 3d3d6079..396ac382 100644--- a/packages/web/src/features/chat/thinking-block.tsx+++ b/packages/web/src/features/chat/thinking-block.tsx@@ -2,7 +2,7 @@* A thinking item of the session's stream, drawn by the shared UI package's `ThinkingBlock`:* this binds the item's streaming and stop state to the row's run state and labels.*/-import { ThinkingBlock } from "@lmliheng/penguin-ui";+import { ThinkingBlock } from "@adelie/ui";import { S } from "../../lib/strings";import type { ThinkingItem } from "../../lib/omni/stream-model";diff --git a/packages/web/src/features/chat/tool-call-card.tsx b/packages/web/src/features/chat/tool-call-card.tsxindex 6bbfa2a3..b7e84a0b 100644--- a/packages/web/src/features/chat/tool-call-card.tsx+++ b/packages/web/src/features/chat/tool-call-card.tsx@@ -12,9 +12,9 @@* block below the row is always on screen and names the tool and its arguments.*/import { useMemo } from "react";-import { DETACHED_TOOL_NOTE_PREFIX } from "@lmliheng/penguin-core/interfaces";-import { ToolCallCard, useElapsedPast } from "@lmliheng/penguin-ui";-import type { RunState, ToolCallDuration } from "@lmliheng/penguin-ui";+import { DETACHED_TOOL_NOTE_PREFIX } from "@adelie/core/interfaces";+import { ToolCallCard, useElapsedPast } from "@adelie/ui";+import type { RunState, ToolCallDuration } from "@adelie/ui";import { S } from "../../lib/strings";import { toolDisplayName } from "../../lib/tool-alias";import { stripAnsi } from "../../lib/strip-ansi";diff --git a/packages/web/src/features/chat/use-session-draft.ts b/packages/web/src/features/chat/use-session-draft.tsindex 3318474f..1e754724 100644--- a/packages/web/src/features/chat/use-session-draft.ts+++ b/packages/web/src/features/chat/use-session-draft.ts@@ -19,7 +19,7 @@* resets the refs to the new session's initial values.*/import { useCallback, useEffect, useMemo, useRef } from "react";-import type { ModelRefDto } from "@lmliheng/penguin-server/api";+import type { ModelRefDto } from "@adelie/server/api";import { useAuth } from "../../state/auth";import { clearDraft, loadDraft, saveDraft, sessionDraftKey } from "./draft-cache";import type { DraftCache } from "./draft-cache";diff --git a/packages/web/src/features/chat/use-session-stream.ts b/packages/web/src/features/chat/use-session-stream.tsindex 452f87f1..e61fde40 100644--- a/packages/web/src/features/chat/use-session-stream.ts+++ b/packages/web/src/features/chat/use-session-stream.ts@@ -23,7 +23,7 @@ import type {PendingSteeringInfo,SessionStatus,SubagentRuntimeInfo,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import { getGoal, getMessages } from "../../api/endpoints";import { probeSession } from "../../api/session-probe";import { openSessionStream } from "../../api/sse";diff --git a/packages/web/src/features/chat/user-shortcuts.ts b/packages/web/src/features/chat/user-shortcuts.tsindex 381f956d..5ab43141 100644--- a/packages/web/src/features/chat/user-shortcuts.ts+++ b/packages/web/src/features/chat/user-shortcuts.ts@@ -20,7 +20,7 @@* this editor is not a bound at all. The numbers here drive the counters and the disabled states;* `test/user-shortcuts.test.ts` fails if the two copies drift apart.*/-import type { DraftShortcut } from "@lmliheng/penguin-server/api";+import type { DraftShortcut } from "@adelie/server/api";import { randomHex } from "../../lib/random-id";/** A saved shortcut, as stored and as rendered. Re-exported from the API type so the two cannot drift. */diff --git a/packages/web/src/features/chat/work-group.tsx b/packages/web/src/features/chat/work-group.tsxindex 4afe9a82..bc739c08 100644--- a/packages/web/src/features/chat/work-group.tsx+++ b/packages/web/src/features/chat/work-group.tsx@@ -12,8 +12,8 @@* - A pending approval anywhere in the group forces it open: the approval buttons live inside.* - The duration is `summarizeWork`'s span; it ticks only while an item is in flight.*/-import { WorkGroup } from "@lmliheng/penguin-ui";-import type { WorkGroupProps } from "@lmliheng/penguin-ui";+import { WorkGroup } from "@adelie/ui";+import type { WorkGroupProps } from "@adelie/ui";import { S } from "../../lib/strings";import { approvalKey } from "../../lib/omni/stream-model";import type { ChatItem } from "../../lib/omni/stream-model";diff --git a/packages/web/src/features/chat/workspace-browser.tsx b/packages/web/src/features/chat/workspace-browser.tsxindex a312ef95..adfbffd3 100644--- a/packages/web/src/features/chat/workspace-browser.tsx+++ b/packages/web/src/features/chat/workspace-browser.tsx@@ -83,15 +83,15 @@ import {toastSuccess,useCopied,useRowContextMenu,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import type {EditorScroll,FileMenuTarget,PreviewView,TreeToggle,WorkspaceFileMenuLabels,-} from "@lmliheng/penguin-ui";-import type { WorkspaceSearchHit } from "@lmliheng/penguin-server/api";+} from "@adelie/ui";+import type { WorkspaceSearchHit } from "@adelie/server/api";import { ApiError } from "../../api/client";import { filesApi, filesScopeKey } from "../../api/workspace-files";import type { FilesScope } from "../../api/workspace-files";diff --git a/packages/web/src/features/chat/workspace-finder-model.ts b/packages/web/src/features/chat/workspace-finder-model.tsindex 54dc59c9..2fd33a03 100644--- a/packages/web/src/features/chat/workspace-finder-model.ts+++ b/packages/web/src/features/chat/workspace-finder-model.ts@@ -16,7 +16,7 @@ import type {DirEntryInfo,DirListResponse,DirLocation,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import {TEMP_WORKSPACE_GROUP_KEY,isTempWorkspace,diff --git a/packages/web/src/features/chat/workspace-finder.tsx b/packages/web/src/features/chat/workspace-finder.tsxindex ce07869a..40e67dd2 100644--- a/packages/web/src/features/chat/workspace-finder.tsx+++ b/packages/web/src/features/chat/workspace-finder.tsx@@ -40,7 +40,7 @@ import type {PointerEvent as ReactPointerEvent,ReactNode,} from "react";-import type { DesktopPrivacyPane, DirListResponse } from "@lmliheng/penguin-server/api";+import type { DesktopPrivacyPane, DirListResponse } from "@adelie/server/api";import {Button,ChevronDown,@@ -61,7 +61,7 @@ import {toastError,toastSuccess,useRowContextMenu,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import * as api from "../../api/endpoints";import { ApiError } from "../../api/client";import { writeClipboard } from "../../lib/clipboard";diff --git a/packages/web/src/features/chat/workspace-links.tsx b/packages/web/src/features/chat/workspace-links.tsxindex 10c11e61..bffbda99 100644--- a/packages/web/src/features/chat/workspace-links.tsx+++ b/packages/web/src/features/chat/workspace-links.tsx@@ -11,8 +11,8 @@*/import { useMemo } from "react";import type { ReactNode } from "react";-import { ProseLinksProvider } from "@lmliheng/penguin-ui";-import type { ProseLinkResolver } from "@lmliheng/penguin-ui";+import { ProseLinksProvider } from "@adelie/ui";+import type { ProseLinkResolver } from "@adelie/ui";import { replyLinkBehavior } from "../../lib/reply-link";export function WorkspaceLinksProvider({diff --git a/packages/web/src/features/chat/workspace-select.tsx b/packages/web/src/features/chat/workspace-select.tsxindex eaeaa5e0..0feece53 100644--- a/packages/web/src/features/chat/workspace-select.tsx+++ b/packages/web/src/features/chat/workspace-select.tsx@@ -12,7 +12,7 @@*/import { useState } from "react";import type { ReactNode } from "react";-import { Chevron, FormPickerTrigger, GlyphIcon, ICONS, ICON_SIZE } from "@lmliheng/penguin-ui";+import { Chevron, FormPickerTrigger, GlyphIcon, ICONS, ICON_SIZE } from "@adelie/ui";import { S } from "../../lib/strings";import { WorkspaceFinder } from "./workspace-finder";import { baseName } from "./workspace-finder-model";diff --git a/packages/web/src/features/chat/workspace-tree-view.tsx b/packages/web/src/features/chat/workspace-tree-view.tsxindex 06960538..7ef2e35c 100644--- a/packages/web/src/features/chat/workspace-tree-view.tsx+++ b/packages/web/src/features/chat/workspace-tree-view.tsx@@ -5,8 +5,8 @@* directory uploads land in standing in for a selection while no file is open, and the three* things an empty row list can mean.*/-import { FileTree } from "@lmliheng/penguin-ui";-import type { TreeToggle } from "@lmliheng/penguin-ui";+import { FileTree } from "@adelie/ui";+import type { TreeToggle } from "@adelie/ui";import { S } from "../../lib/strings";import { formatBytes, formatDateTime } from "../../lib/format";import type { TreeRow } from "../../lib/workspace-tree";diff --git a/packages/web/src/features/company/calendar-geom.ts b/packages/web/src/features/company/calendar-geom.tsindex cc84787e..c091f2fa 100644--- a/packages/web/src/features/company/calendar-geom.ts+++ b/packages/web/src/features/company/calendar-geom.ts@@ -8,7 +8,7 @@* on local calendar days through the Date API's local accessors, so a test built with* `new Date(y, m, d)` reads the same in every timezone.*/-import type { OrgCalendarItem, OrgCalendarOutcome } from "@lmliheng/penguin-server/api";+import type { OrgCalendarItem, OrgCalendarOutcome } from "@adelie/server/api";import { packToolLanes } from "../traces/lane-packing";export type CalendarView = "month" | "week" | "day";diff --git a/packages/web/src/features/company/calendar-page.tsx b/packages/web/src/features/company/calendar-page.tsxindex 056b3795..28a2c6b8 100644--- a/packages/web/src/features/company/calendar-page.tsx+++ b/packages/web/src/features/company/calendar-page.tsx@@ -21,11 +21,7 @@ import { useCallback, useEffect, useId, useMemo, useRef, useState } from "react"import type { ReactNode } from "react";import { createPortal } from "react-dom";import { useNavigate } from "react-router";-import type {- OrgCalendarItem,- OrgCalendarOutcome,- OrgChartResponse,-} from "@lmliheng/penguin-server/api";+import type { OrgCalendarItem, OrgCalendarOutcome, OrgChartResponse } from "@adelie/server/api";import {Button,Card,@@ -46,7 +42,7 @@ import {toastError,toastSuccess,usePortalPanel,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import * as api from "../../api/endpoints";import { S } from "../../lib/strings";import { apiErrorText } from "../../lib/api-error";diff --git a/packages/web/src/features/company/channel-composer.tsx b/packages/web/src/features/company/channel-composer.tsxindex 837fbcb5..d3ef87df 100644--- a/packages/web/src/features/company/channel-composer.tsx+++ b/packages/web/src/features/company/channel-composer.tsx@@ -47,7 +47,7 @@ import type {DragEvent as ReactDragEvent,KeyboardEvent as ReactKeyboardEvent,} from "react";-import { Button, Dropdown, ICON_GAP, MenuLabel, noAutofill } from "@lmliheng/penguin-ui";+import { Button, Dropdown, ICON_GAP, MenuLabel, noAutofill } from "@adelie/ui";import { S } from "../../lib/strings";import { fitTextarea } from "../../lib/textarea-fit";import { PrincipalChip } from "./shared";@@ -82,7 +82,7 @@ import type { DraftClip, DraftHistory, MentionDraft } from "./mention-draft";* The box grows with the draft up to this many pixels, then scrolls inside — the same cap the* development-mode composer sets in chat-input.tsx, and deliberately a pixel count rather than* `max-h-40`: the root font is the reader's own (14 to 20px, `TEXT_SIZE_PX` in- * @lmliheng/penguin-ui/boot), so a rem cap would let the box eat a different share of the+ * @adelie/ui/boot), so a rem cap would let the box eat a different share of the* stream at each scale. `max-h-40` is only the outer guard; this is the one that binds.*/const MAX_BOX_PX = 160;diff --git a/packages/web/src/features/company/channel-dialogs.tsx b/packages/web/src/features/company/channel-dialogs.tsxindex dfc3dc57..3f310277 100644--- a/packages/web/src/features/company/channel-dialogs.tsx+++ b/packages/web/src/features/company/channel-dialogs.tsx@@ -10,8 +10,8 @@* different questions.*/import { useEffect, useState } from "react";-import type { OrgChannelItem } from "@lmliheng/penguin-server/api";-import { Button, ConfirmModal, Input, Modal, Textarea } from "@lmliheng/penguin-ui";+import type { OrgChannelItem } from "@adelie/server/api";+import { Button, ConfirmModal, Input, Modal, Textarea } from "@adelie/ui";import * as api from "../../api/endpoints";import { ApiError } from "../../api/client";import { S } from "../../lib/strings";diff --git a/packages/web/src/features/company/channel-header.tsx b/packages/web/src/features/company/channel-header.tsxindex 9d28dcd6..58dd3d10 100644--- a/packages/web/src/features/company/channel-header.tsx+++ b/packages/web/src/features/company/channel-header.tsx@@ -16,7 +16,7 @@import { useEffect, useState } from "react";import { createPortal } from "react-dom";import { useNavigate } from "react-router";-import type { OrgChannelDetail, OrgChannelMember } from "@lmliheng/penguin-server/api";+import type { OrgChannelDetail, OrgChannelMember } from "@adelie/server/api";import {AgentAvatar,AvatarStack,@@ -38,8 +38,8 @@ import {toastError,toastSuccess,usePortalPanel,-} from "@lmliheng/penguin-ui";-import type { AvatarStackItem } from "@lmliheng/penguin-ui";+} from "@adelie/ui";+import type { AvatarStackItem } from "@adelie/ui";import * as api from "../../api/endpoints";import { S } from "../../lib/strings";import { apiErrorText } from "../../lib/api-error";diff --git a/packages/web/src/features/company/channel-list.ts b/packages/web/src/features/company/channel-list.tsindex c1c62cbe..0bb3e4f0 100644--- a/packages/web/src/features/company/channel-list.ts+++ b/packages/web/src/features/company/channel-list.ts@@ -9,7 +9,7 @@* the header and every reference to it render the localized 全员频道 / "All hands" label* instead, so one organization reads the same in both languages whatever its files say.*/-import type { OrgChannelItem, OrgChannelMember } from "@lmliheng/penguin-server/api";+import type { OrgChannelItem, OrgChannelMember } from "@adelie/server/api";/** The all-hands channel's id; reserved, so no other channel may take it. */export const DEFAULT_CHANNEL_ID = "default_channel";diff --git a/packages/web/src/features/company/channel-markdown.tsx b/packages/web/src/features/company/channel-markdown.tsxindex f097b0e4..ca6d2d19 100644--- a/packages/web/src/features/company/channel-markdown.tsx+++ b/packages/web/src/features/company/channel-markdown.tsx@@ -22,7 +22,7 @@import { createContext, useContext } from "react";import type { ReactNode } from "react";import type { Components, Options } from "react-markdown";-import { Md } from "@lmliheng/penguin-ui";+import { Md } from "@adelie/ui";import { S } from "../../lib/strings";import { toneSurface } from "../../lib/tone";import { mentionIsMe, mentionLabel, mentionRuns } from "./channel-mentions";diff --git a/packages/web/src/features/company/channel-notices.ts b/packages/web/src/features/company/channel-notices.tsindex 3956e384..04ede067 100644--- a/packages/web/src/features/company/channel-notices.ts+++ b/packages/web/src/features/company/channel-notices.ts@@ -14,7 +14,7 @@* `budget`. A parameter the server omitted renders as an empty string rather than throwing —* a malformed notice must not take the stream down with it.*/-import type { OrgChannelNotice, OrgChannelNoticeKind } from "@lmliheng/penguin-server/api";+import type { OrgChannelNotice, OrgChannelNoticeKind } from "@adelie/server/api";import type { Strings } from "../../lib/strings";import { parsePrincipal } from "./principals";diff --git a/packages/web/src/features/company/channel-sidebar.tsx b/packages/web/src/features/company/channel-sidebar.tsxindex 16e0ad67..2145d3b5 100644--- a/packages/web/src/features/company/channel-sidebar.tsx+++ b/packages/web/src/features/company/channel-sidebar.tsx@@ -15,7 +15,7 @@*/import { useState } from "react";import { NavLink, useNavigate } from "react-router";-import type { OrgChannelItem } from "@lmliheng/penguin-server/api";+import type { OrgChannelItem } from "@adelie/server/api";import {Button,FolderSection,@@ -29,7 +29,7 @@ import {railItemClass,toastError,toastSuccess,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import * as api from "../../api/endpoints";import { S } from "../../lib/strings";import { apiErrorText } from "../../lib/api-error";diff --git a/packages/web/src/features/company/channel-stream.ts b/packages/web/src/features/company/channel-stream.tsindex a1a1bed8..21eed1b0 100644--- a/packages/web/src/features/company/channel-stream.ts+++ b/packages/web/src/features/company/channel-stream.ts@@ -8,7 +8,7 @@* immutable append a live message goes through, and when a join made on another surface* obliges the view to re-read its own detail.*/-import type { OrgChannelMessage } from "@lmliheng/penguin-server/api";+import type { OrgChannelMessage } from "@adelie/server/api";import { parsePrincipal } from "./principals";/** One day file as loaded: the organization-timezone date and its messages in file order. */diff --git a/packages/web/src/features/company/channel-view.tsx b/packages/web/src/features/company/channel-view.tsxindex 3b39ea6f..9f1e91d8 100644--- a/packages/web/src/features/company/channel-view.tsx+++ b/packages/web/src/features/company/channel-view.tsx@@ -36,7 +36,7 @@*/import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";import { useNavigate, useParams } from "react-router";-import type { OrgChannelDetail, OrgChannelMessage } from "@lmliheng/penguin-server/api";+import type { OrgChannelDetail, OrgChannelMessage } from "@adelie/server/api";import {Button,ChannelBubble,@@ -49,8 +49,8 @@ import {Skeleton,toastError,toastSuccess,-} from "@lmliheng/penguin-ui";-import type { ChannelSender } from "@lmliheng/penguin-ui";+} from "@adelie/ui";+import type { ChannelSender } from "@adelie/ui";import * as api from "../../api/endpoints";import { S } from "../../lib/strings";import { apiErrorText } from "../../lib/api-error";diff --git a/packages/web/src/features/company/chart-card.tsx b/packages/web/src/features/company/chart-card.tsxindex d2f8e558..d0643ec3 100644--- a/packages/web/src/features/company/chart-card.tsx+++ b/packages/web/src/features/company/chart-card.tsx@@ -35,7 +35,7 @@*/import { useEffect } from "react";import type { ReactNode } from "react";-import type { OrgEmployeeItem, OrgEmployeeState } from "@lmliheng/penguin-server/api";+import type { OrgEmployeeItem, OrgEmployeeState } from "@adelie/server/api";import {AgentAvatar,Dot,@@ -45,8 +45,8 @@ import {ICON_SIZE,Legend,useRowContextMenu,-} from "@lmliheng/penguin-ui";-import type { ToneName } from "@lmliheng/penguin-ui";+} from "@adelie/ui";+import type { ToneName } from "@adelie/ui";import { S } from "../../lib/strings";import { formatMoney, formatPercent } from "../../lib/format";import { toneDot, toneInk } from "../../lib/tone";diff --git a/packages/web/src/features/company/chart-view.ts b/packages/web/src/features/company/chart-view.tsindex 4a2f9592..17d23e93 100644--- a/packages/web/src/features/company/chart-view.ts+++ b/packages/web/src/features/company/chart-view.ts@@ -3,7 +3,7 @@* tone its dot, its label and its finance row take. The canvas's pan and zoom arithmetic* lives in canvas-view.ts, the tree and its geometry in org-chart-tree.ts.*/-import type { OrgEmployeeState } from "@lmliheng/penguin-server/api";+import type { OrgEmployeeState } from "@adelie/server/api";import type { Tone } from "../../lib/tone";/** Busy while running, attention when its budget paused it, success on the desk — by meaning, as every status mark. */diff --git a/packages/web/src/features/company/company-beta.tsx b/packages/web/src/features/company/company-beta.tsxindex 41e67a9d..226dc6f6 100644--- a/packages/web/src/features/company/company-beta.tsx+++ b/packages/web/src/features/company/company-beta.tsx@@ -12,7 +12,7 @@* browser having shown a toast, not about the user: a second browser is a second first time,* and a preferences round trip would decide it too late to toast on the click that caused it.*/-import { BetaBadge } from "@lmliheng/penguin-ui";+import { BetaBadge } from "@adelie/ui";import { S } from "../../lib/strings";/** The localStorage key remembering that this browser has shown the beta notice. */diff --git a/packages/web/src/features/company/desk-model.ts b/packages/web/src/features/company/desk-model.tsindex 23d79220..7fba6142 100644--- a/packages/web/src/features/company/desk-model.ts+++ b/packages/web/src/features/company/desk-model.ts@@ -11,7 +11,7 @@* later desk and ticket Session of that employee is opened on), and the desk is renewed — a* new desk Session on that model, recorded as the desk, the previous one kept in its history.*/-import type { ModelRefDto, OrgDeskResponse } from "@lmliheng/penguin-server/api";+import type { ModelRefDto, OrgDeskResponse } from "@adelie/server/api";/** The three calls this needs, so a test can stand in for the API. */export interface DeskModelApi {diff --git a/packages/web/src/features/company/employee-dialogs.tsx b/packages/web/src/features/company/employee-dialogs.tsxindex 507633ce..a5643bc8 100644--- a/packages/web/src/features/company/employee-dialogs.tsx+++ b/packages/web/src/features/company/employee-dialogs.tsx@@ -10,7 +10,7 @@* calls the API; the renewal is its own confirmation and needs no second one.*/import { useEffect, useState } from "react";-import type { OrgEmployeeItem, OrgHireRequest } from "@lmliheng/penguin-server/api";+import type { OrgEmployeeItem, OrgHireRequest } from "@adelie/server/api";import {Button,ConfirmModal,@@ -27,7 +27,7 @@ import {Textarea,toastError,toastSuccess,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import * as api from "../../api/endpoints";import { ApiError } from "../../api/client";import { S } from "../../lib/strings";diff --git a/packages/web/src/features/company/finance-gauge.tsx b/packages/web/src/features/company/finance-gauge.tsxindex ee731371..500ea9f5 100644--- a/packages/web/src/features/company/finance-gauge.tsx+++ b/packages/web/src/features/company/finance-gauge.tsx@@ -7,8 +7,8 @@* the ratio and capped at a full circle when spend is over the budget; without a budget the track* stands alone. `SpendMeter` is the spend tree's bar, which carries its own percent.*/-import { Ring } from "@lmliheng/penguin-ui";-import type { ToneName } from "@lmliheng/penguin-ui";+import { Ring } from "@adelie/ui";+import type { ToneName } from "@adelie/ui";import { formatPercent } from "../../lib/format";import { toneDot, toneInk } from "../../lib/tone";import type { Tone } from "../../lib/tone";diff --git a/packages/web/src/features/company/finance-page.tsx b/packages/web/src/features/company/finance-page.tsxindex b74a9e7c..1989e000 100644--- a/packages/web/src/features/company/finance-page.tsx+++ b/packages/web/src/features/company/finance-page.tsx@@ -28,11 +28,7 @@import { useCallback, useEffect, useRef, useState } from "react";import type { ReactNode } from "react";import { useSearchParams } from "react-router";-import type {- OrgBudgetAlert,- OrgEmployeeState,- OrgFinanceResponse,-} from "@lmliheng/penguin-server/api";+import type { OrgBudgetAlert, OrgEmployeeState, OrgFinanceResponse } from "@adelie/server/api";import {AgentAvatar,Badge,@@ -58,7 +54,7 @@ import {noAutofill,toastError,toastSuccess,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import * as api from "../../api/endpoints";import { S } from "../../lib/strings";import { apiErrorText } from "../../lib/api-error";diff --git a/packages/web/src/features/company/finance-tree.ts b/packages/web/src/features/company/finance-tree.tsindex 8a3a4e28..e812fcfc 100644--- a/packages/web/src/features/company/finance-tree.ts+++ b/packages/web/src/features/company/finance-tree.ts@@ -13,7 +13,7 @@ import type {OrgFinanceResponse,OrgFinanceTicket,UsageSeriesPoint,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import type { Tone } from "../../lib/tone";import { employeeStateTone } from "./chart-view";diff --git a/packages/web/src/features/company/handbook-explorer.tsx b/packages/web/src/features/company/handbook-explorer.tsxindex acc0831b..81cd3529 100644--- a/packages/web/src/features/company/handbook-explorer.tsx+++ b/packages/web/src/features/company/handbook-explorer.tsx@@ -16,9 +16,9 @@* The rows themselves are `handbook-tree.ts`'s (`handbookTreeRows`); folders start collapsed and* the page expands the ones above the selected document.*/-import type { OrgHandbookFile } from "@lmliheng/penguin-server/api";-import { FileTree } from "@lmliheng/penguin-ui";-import type { TreeToggle } from "@lmliheng/penguin-ui";+import type { OrgHandbookFile } from "@adelie/server/api";+import { FileTree } from "@adelie/ui";+import type { TreeToggle } from "@adelie/ui";import { S } from "../../lib/strings";import { formatBytes, formatDateTime, formatRelativeShort } from "../../lib/format";import type { Locale } from "../../state/locale";diff --git a/packages/web/src/features/company/handbook-page.tsx b/packages/web/src/features/company/handbook-page.tsxindex d5cbcb9b..0b3adbc7 100644--- a/packages/web/src/features/company/handbook-page.tsx+++ b/packages/web/src/features/company/handbook-page.tsx@@ -19,7 +19,7 @@*/import { useCallback, useEffect, useMemo, useState } from "react";import type { KeyboardEvent as ReactKeyboardEvent, MouseEvent as ReactMouseEvent } from "react";-import type { OrgHandbookFile, OrgHandbookFileResponse } from "@lmliheng/penguin-server/api";+import type { OrgHandbookFile, OrgHandbookFileResponse } from "@adelie/server/api";import {Badge,Button,@@ -36,8 +36,8 @@ import {Textarea,toastError,toastSuccess,-} from "@lmliheng/penguin-ui";-import type { TreeToggle } from "@lmliheng/penguin-ui";+} from "@adelie/ui";+import type { TreeToggle } from "@adelie/ui";import * as api from "../../api/endpoints";import { S } from "../../lib/strings";import { apiErrorText } from "../../lib/api-error";diff --git a/packages/web/src/features/company/handbook-tree.ts b/packages/web/src/features/company/handbook-tree.tsindex 1c37922f..9bb592a4 100644--- a/packages/web/src/features/company/handbook-tree.ts+++ b/packages/web/src/features/company/handbook-tree.ts@@ -7,8 +7,8 @@* dialog refuses a bad path before the request; the body a new document starts with; and how a* relative link inside one document resolves to another document of the handbook.*/-import type { OrgHandbookFile } from "@lmliheng/penguin-server/api";-import type { FileTreeRow } from "@lmliheng/penguin-ui";+import type { OrgHandbookFile } from "@adelie/server/api";+import type { FileTreeRow } from "@adelie/ui";/** The index, `handbook/README.md`: pinned first in the list, and the one file that cannot be deleted. */export const HANDBOOK_INDEX = "README.md";diff --git a/packages/web/src/features/company/org-chart-page.tsx b/packages/web/src/features/company/org-chart-page.tsxindex 8e15224b..7d7819f4 100644--- a/packages/web/src/features/company/org-chart-page.tsx+++ b/packages/web/src/features/company/org-chart-page.tsx@@ -27,7 +27,7 @@import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";import type { KeyboardEvent as ReactKeyboardEvent } from "react";import { useNavigate } from "react-router";-import type { OrgChartResponse, OrgEmployeeItem } from "@lmliheng/penguin-server/api";+import type { OrgChartResponse, OrgEmployeeItem } from "@adelie/server/api";import {Button,ConfirmModal,@@ -42,7 +42,7 @@ import {toastError,toastSuccess,usePointerDrag,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import * as api from "../../api/endpoints";import { S } from "../../lib/strings";import { apiErrorText } from "../../lib/api-error";diff --git a/packages/web/src/features/company/org-dialogs.tsx b/packages/web/src/features/company/org-dialogs.tsxindex c0155e97..8cd4f976 100644--- a/packages/web/src/features/company/org-dialogs.tsx+++ b/packages/web/src/features/company/org-dialogs.tsx@@ -37,7 +37,7 @@ import type {OrganizationDetail,OrganizationPatchRequest,OrganizationSettings,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import {Button,ConfirmModal,@@ -52,7 +52,7 @@ import {Textarea,toastError,toastSuccess,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import * as api from "../../api/endpoints";import { ApiError } from "../../api/client";import { S } from "../../lib/strings";diff --git a/packages/web/src/features/company/org-draft.ts b/packages/web/src/features/company/org-draft.tsindex b029d5d8..3e2b52b8 100644--- a/packages/web/src/features/company/org-draft.ts+++ b/packages/web/src/features/company/org-draft.ts@@ -10,7 +10,7 @@* Project's). Storage is injectable (work-mode.ts convention: vitest runs in Node with no* localStorage) and every read degrades to "no draft" rather than throwing at a dialog open.*/-import type { ModelRefDto } from "@lmliheng/penguin-server/api";+import type { ModelRefDto } from "@adelie/server/api";/** Minimal storage interface (the subset of localStorage used here); tests inject an in-memory one. */export interface DraftStorage {diff --git a/packages/web/src/features/company/org-layout.tsx b/packages/web/src/features/company/org-layout.tsxindex c93a6c11..da2196d2 100644--- a/packages/web/src/features/company/org-layout.tsx+++ b/packages/web/src/features/company/org-layout.tsx@@ -26,7 +26,7 @@import { createContext, useContext, useEffect, useState } from "react";import type { ReactNode } from "react";import { Navigate, Outlet, useNavigate, useParams } from "react-router";-import type { OrganizationSummary } from "@lmliheng/penguin-server/api";+import type { OrganizationSummary } from "@adelie/server/api";import {Button,EmptyState,@@ -37,7 +37,7 @@ import {PageFrame,PageHeader,Skeleton,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import { S } from "../../lib/strings";import { useCompany } from "../../state/company";import { useProject } from "../../state/project";diff --git a/packages/web/src/features/company/org-session-groups.tsx b/packages/web/src/features/company/org-session-groups.tsxindex 06d481d5..44047671 100644--- a/packages/web/src/features/company/org-session-groups.tsx+++ b/packages/web/src/features/company/org-session-groups.tsx@@ -46,7 +46,7 @@ import {toastError,toastSuccess,useRowContextMenu,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import * as api from "../../api/endpoints";import { S } from "../../lib/strings";import { sessionActivityLabel } from "../../lib/session-activity";diff --git a/packages/web/src/features/company/org-sessions.ts b/packages/web/src/features/company/org-sessions.tsindex 39c462bd..b7597f79 100644--- a/packages/web/src/features/company/org-sessions.ts+++ b/packages/web/src/features/company/org-sessions.ts@@ -24,7 +24,7 @@ import type {OrgEmployeeState,OrgSessionsResponse,SessionStatus,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import type { SessionActivity } from "../../lib/session-activity";/**diff --git a/packages/web/src/features/company/org-switcher.tsx b/packages/web/src/features/company/org-switcher.tsxindex 2ea3bd06..b61a58af 100644--- a/packages/web/src/features/company/org-switcher.tsx+++ b/packages/web/src/features/company/org-switcher.tsx@@ -25,7 +25,7 @@ import {MenuRadioItem,MenuSeparator,SkeletonList,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import { S } from "../../lib/strings";import { toneSurface } from "../../lib/tone";import { useCompany } from "../../state/company";diff --git a/packages/web/src/features/company/overview-page.tsx b/packages/web/src/features/company/overview-page.tsxindex 3db389b4..a0094f5d 100644--- a/packages/web/src/features/company/overview-page.tsx+++ b/packages/web/src/features/company/overview-page.tsx@@ -25,11 +25,7 @@import { useCallback, useEffect, useId, useLayoutEffect, useRef, useState } from "react";import type { ReactNode } from "react";import { useNavigate } from "react-router";-import type {- OrgChartResponse,- OrgTicketStatus,- OrganizationDetail,-} from "@lmliheng/penguin-server/api";+import type { OrgChartResponse, OrgTicketStatus, OrganizationDetail } from "@adelie/server/api";import {Badge,Button,@@ -43,7 +39,7 @@ import {Segmented,Text,toastError,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import * as api from "../../api/endpoints";import { S } from "../../lib/strings";import { apiErrorText } from "../../lib/api-error";diff --git a/packages/web/src/features/company/overview-summary.ts b/packages/web/src/features/company/overview-summary.tsindex 3bdc21c6..1e94cbbd 100644--- a/packages/web/src/features/company/overview-summary.ts+++ b/packages/web/src/features/company/overview-summary.ts@@ -13,7 +13,7 @@ import type {OrgInbox,OrgTicketItem,OrgTicketStatus,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import type { Tone } from "../../lib/tone";import { DEFAULT_CHANNEL_ID } from "./channel-list";import { TICKET_COLUMNS } from "./ticket-board";diff --git a/packages/web/src/features/company/path-capsule.tsx b/packages/web/src/features/company/path-capsule.tsxindex 7e97ba62..b49f577e 100644--- a/packages/web/src/features/company/path-capsule.tsx+++ b/packages/web/src/features/company/path-capsule.tsx@@ -20,7 +20,7 @@import { useMemo } from "react";import type { ReactNode } from "react";import type { Components, Options } from "react-markdown";-import { CopiedStatus, GlyphIcon, ICONS, ICON_SIZE, Md, useCopied } from "@lmliheng/penguin-ui";+import { CopiedStatus, GlyphIcon, ICONS, ICON_SIZE, Md, useCopied } from "@adelie/ui";import { S } from "../../lib/strings";import { STAT_ICONS } from "../../lib/stat-icons";import { codePath, pathKind, pathLabel, spellAsWritten, splitPaths } from "./path-capsules";diff --git a/packages/web/src/features/company/shared.tsx b/packages/web/src/features/company/shared.tsxindex 0e6ac53d..5a3d1589 100644--- a/packages/web/src/features/company/shared.tsx+++ b/packages/web/src/features/company/shared.tsx@@ -9,7 +9,7 @@*/import { useId } from "react";import type { ReactNode } from "react";-import type { OrgStatus, OrgTicketPriority, OrgTicketStatus } from "@lmliheng/penguin-server/api";+import type { OrgStatus, OrgTicketPriority, OrgTicketStatus } from "@adelie/server/api";import {AgentAvatar,Badge,@@ -22,8 +22,8 @@ import {Notice,ProgressBar,Ring,-} from "@lmliheng/penguin-ui";-import type { BadgeStyle, ToneName } from "@lmliheng/penguin-ui";+} from "@adelie/ui";+import type { BadgeStyle, ToneName } from "@adelie/ui";import { S } from "../../lib/strings";import { formatMoney, formatPercent } from "../../lib/format";import { toneDot, toneInk } from "../../lib/tone";diff --git a/packages/web/src/features/company/ticket-board.ts b/packages/web/src/features/company/ticket-board.tsindex 1238c11b..f8406a34 100644--- a/packages/web/src/features/company/ticket-board.ts+++ b/packages/web/src/features/company/ticket-board.ts@@ -5,11 +5,7 @@* two facts a card reads off a ticket's own fields — whether its due date has passed and the* day its id was minted.*/-import type {- OrgTicketItem,- OrgTicketStatus,- OrgTicketsResponse,-} from "@lmliheng/penguin-server/api";+import type { OrgTicketItem, OrgTicketStatus, OrgTicketsResponse } from "@adelie/server/api";/** The five kanban columns, in lifecycle order. */export const TICKET_COLUMNS: readonly OrgTicketStatus[] = [diff --git a/packages/web/src/features/company/ticket-dialog.tsx b/packages/web/src/features/company/ticket-dialog.tsxindex 309f32b9..c8c71947 100644--- a/packages/web/src/features/company/ticket-dialog.tsx+++ b/packages/web/src/features/company/ticket-dialog.tsx@@ -34,7 +34,7 @@ import type {OrgTicketPriority,OrgTicketStatus,OrgTicketUpdateRequest,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import type { ReactNode } from "react";import {Button,@@ -59,7 +59,7 @@ import {toastError,toastInfo,toastSuccess,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import * as api from "../../api/endpoints";import { S } from "../../lib/strings";import { apiErrorText } from "../../lib/api-error";diff --git a/packages/web/src/features/company/ticket-drag.ts b/packages/web/src/features/company/ticket-drag.tsindex e9602104..d522a156 100644--- a/packages/web/src/features/company/ticket-drag.ts+++ b/packages/web/src/features/company/ticket-drag.ts@@ -16,7 +16,7 @@ import type {PointerEvent as ReactPointerEvent,RefObject,} from "react";-import type { OrgTicketItem, OrgTicketStatus } from "@lmliheng/penguin-server/api";+import type { OrgTicketItem, OrgTicketStatus } from "@adelie/server/api";import { canMove, isTicketStatus } from "./ticket-board";import { createTicketPress, edgeScrollStep } from "./ticket-press";diff --git a/packages/web/src/features/company/ticket-history.ts b/packages/web/src/features/company/ticket-history.tsindex 21aced30..2f2ffae9 100644--- a/packages/web/src/features/company/ticket-history.ts+++ b/packages/web/src/features/company/ticket-history.ts@@ -8,7 +8,7 @@ import type {OrgTicketDetail,OrgTicketHistoryAction,OrgTicketHistoryEntry,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";export interface TicketHistoryRow {/** Stable across refetches: the entries themselves carry no id. */diff --git a/packages/web/src/features/company/tickets-page.tsx b/packages/web/src/features/company/tickets-page.tsxindex eb094cfd..39374b97 100644--- a/packages/web/src/features/company/tickets-page.tsx+++ b/packages/web/src/features/company/tickets-page.tsx@@ -34,7 +34,7 @@ import type {OrgTicketPriority,OrgTicketStatus,OrgTicketsResponse,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import {Button,Count,@@ -53,7 +53,7 @@ import {Textarea,toastError,toastSuccess,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import * as api from "../../api/endpoints";import { S } from "../../lib/strings";import { apiErrorText } from "../../lib/api-error";diff --git a/packages/web/src/features/dock/dock-launcher-state.ts b/packages/web/src/features/dock/dock-launcher-state.tsindex 5327f7f3..ab4cb844 100644--- a/packages/web/src/features/dock/dock-launcher-state.ts+++ b/packages/web/src/features/dock/dock-launcher-state.ts@@ -12,7 +12,7 @@* toolbar and the composer — and its horizontal offset from the resting edge: 0 on the* edge, negative when pulled into the conversation.*/-import { rubberband } from "@lmliheng/penguin-ui";+import { rubberband } from "@adelie/ui";/** localStorage key of the resting position: the ball's centre as a ratio of the body's height. */export const LAUNCHER_Y_KEY = "penguin.dock.launcherY";diff --git a/packages/web/src/features/dock/dock-launcher.tsx b/packages/web/src/features/dock/dock-launcher.tsxindex 34fca2a7..7fc430cc 100644--- a/packages/web/src/features/dock/dock-launcher.tsx+++ b/packages/web/src/features/dock/dock-launcher.tsx@@ -50,8 +50,8 @@ import {toastInfo,usePointerDrag,usePrefersReducedMotion,-} from "@lmliheng/penguin-ui";-import type { SpringDriver } from "@lmliheng/penguin-ui";+} from "@adelie/ui";+import type { SpringDriver } from "@adelie/ui";import { S } from "../../lib/strings";import { NAV_ICONS } from "../../lib/nav-icons";import { toneInk } from "../../lib/tone";diff --git a/packages/web/src/features/dock/dock-panel.tsx b/packages/web/src/features/dock/dock-panel.tsxindex 252b1cf7..0f5ea7bc 100644--- a/packages/web/src/features/dock/dock-panel.tsx+++ b/packages/web/src/features/dock/dock-panel.tsx@@ -70,8 +70,8 @@ import {MenuSeparator,ResizeHandle,usePointerDrag,-} from "@lmliheng/penguin-ui";-import type { DockPickerChoice, DockTabItem } from "@lmliheng/penguin-ui";+} from "@adelie/ui";+import type { DockPickerChoice, DockTabItem } from "@adelie/ui";import { S } from "../../lib/strings";import { NAV_ICONS } from "../../lib/nav-icons";import { chordKeys } from "../../components/ui/chord-kbd";diff --git a/packages/web/src/features/dock/dock-terminal.ts b/packages/web/src/features/dock/dock-terminal.tsindex 1239ddb5..5d01009f 100644--- a/packages/web/src/features/dock/dock-terminal.ts+++ b/packages/web/src/features/dock/dock-terminal.ts@@ -3,7 +3,7 @@* global `terminal.toggle` command. Split from dock-state.ts so the store stays pure (unit-testable* without fetch); this module owns every server round-trip a terminal tab needs.*/-import { toastError } from "@lmliheng/penguin-ui";+import { toastError } from "@adelie/ui";import { S } from "../../lib/strings";import { onCommand } from "../../lib/shortcuts/dispatcher";import {diff --git a/packages/web/src/features/dock/panel-meta.tsx b/packages/web/src/features/dock/panel-meta.tsxindex 2c7c0a68..9f7629e9 100644--- a/packages/web/src/features/dock/panel-meta.tsx+++ b/packages/web/src/features/dock/panel-meta.tsx@@ -6,7 +6,7 @@* name or a mark keep their import, with the drawn form of the glyph beside them.*/import type { ReactNode } from "react";-import { GlyphIcon, ICON_SIZE } from "@lmliheng/penguin-ui";+import { GlyphIcon, ICON_SIZE } from "@adelie/ui";import { panelGlyphPath, panelLabel } from "./panel-registry";import type { PanelId } from "./panel-registry";diff --git a/packages/web/src/features/dock/panel-registry.ts b/packages/web/src/features/dock/panel-registry.tsindex 698f49a7..826427c5 100644--- a/packages/web/src/features/dock/panel-registry.ts+++ b/packages/web/src/features/dock/panel-registry.ts@@ -24,7 +24,7 @@*/import { useMemo, useSyncExternalStore } from "react";import type { ComponentType } from "react";-import { ICONS } from "@lmliheng/penguin-ui";+import { ICONS } from "@adelie/ui";/** A panel kind's id, also its tab's stored key. Built-ins keep their existing ids. */export type PanelId = string;diff --git a/packages/web/src/features/harness/harness-history-overlay.tsx b/packages/web/src/features/harness/harness-history-overlay.tsxindex 0403587d..aed22642 100644--- a/packages/web/src/features/harness/harness-history-overlay.tsx+++ b/packages/web/src/features/harness/harness-history-overlay.tsx@@ -12,7 +12,7 @@*/import { useEffect, useMemo, useRef, useState } from "react";import { createPortal } from "react-dom";-import { Badge, CloseIcon, NoticeStrip, Skeleton, useDialogLayer } from "@lmliheng/penguin-ui";+import { Badge, CloseIcon, NoticeStrip, Skeleton, useDialogLayer } from "@adelie/ui";import type {HarnessHistoryEntry,IfaceChange,@@ -20,7 +20,7 @@ import type {ModuleChange,VersionHistoryDiffResponse,VersionHistoryResponse,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import * as api from "../../api/endpoints";import { formatDateTime } from "../../lib/format";import { S } from "../../lib/strings";diff --git a/packages/web/src/features/harness/module-tree-view.tsx b/packages/web/src/features/harness/module-tree-view.tsxindex 1b4e46e4..02479c40 100644--- a/packages/web/src/features/harness/module-tree-view.tsx+++ b/packages/web/src/features/harness/module-tree-view.tsx@@ -4,8 +4,8 @@* Pure rendering over the table — the same data the CI page draws.*/import { useEffect, useMemo, useState } from "react";-import { Badge, NoticeStrip, Skeleton } from "@lmliheng/penguin-ui";-import type { BadgeStyle } from "@lmliheng/penguin-ui";+import { Badge, NoticeStrip, Skeleton } from "@adelie/ui";+import type { BadgeStyle } from "@adelie/ui";import * as api from "../../api/endpoints";import { S } from "../../lib/strings";diff --git a/packages/web/src/features/machines/machine-picker.tsx b/packages/web/src/features/machines/machine-picker.tsxindex 578e099a..d3e00e7c 100644--- a/packages/web/src/features/machines/machine-picker.tsx+++ b/packages/web/src/features/machines/machine-picker.tsx@@ -8,7 +8,7 @@* in-place panel.*/import { useState } from "react";-import { Button, ChevronDown, Dropdown, MenuItem } from "@lmliheng/penguin-ui";+import { Button, ChevronDown, Dropdown, MenuItem } from "@adelie/ui";export interface MachineChoice {value: string;diff --git a/packages/web/src/features/machines/machines-page.tsx b/packages/web/src/features/machines/machines-page.tsxindex be851f02..5db54fad 100644--- a/packages/web/src/features/machines/machines-page.tsx+++ b/packages/web/src/features/machines/machines-page.tsx@@ -24,7 +24,7 @@* schedule (probe-schedule.ts) so a machine that went quiet is noticed without a tap.*/import { useCallback, useEffect, useMemo, useRef, useState } from "react";-import type { MachineInfo, MachineJob, MachinesResponse } from "@lmliheng/penguin-server/api";+import type { MachineInfo, MachineJob, MachinesResponse } from "@adelie/server/api";import {Button,ChevronDown,@@ -38,7 +38,7 @@ import {SearchInput,Skeleton,toastError,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import * as api from "../../api/endpoints";import { useProject } from "../../state/project";import { useLocale } from "../../state/locale";diff --git a/packages/web/src/features/machines/machines-view.ts b/packages/web/src/features/machines/machines-view.tsindex ab638696..2459b109 100644--- a/packages/web/src/features/machines/machines-view.ts+++ b/packages/web/src/features/machines/machines-view.ts@@ -9,12 +9,7 @@* on is fixed by the same verb — use the machine — so the page never has to explain which* of install, update, start, connect a row needs.*/-import type {- MachineInfo,- MachineJob,- MachinePhase,- MachinesResponse,-} from "@lmliheng/penguin-server/api";+import type { MachineInfo, MachineJob, MachinePhase, MachinesResponse } from "@adelie/server/api";import type { Tone } from "../../lib/tone";export type MachineReading =diff --git a/packages/web/src/features/machines/ssh-host-dialog.tsx b/packages/web/src/features/machines/ssh-host-dialog.tsxindex 5c2cfdba..4c043c73 100644--- a/packages/web/src/features/machines/ssh-host-dialog.tsx+++ b/packages/web/src/features/machines/ssh-host-dialog.tsx@@ -11,12 +11,8 @@*/import { useState } from "react";import type { ChangeEvent, KeyboardEvent } from "react";-import type {- MachinesResponse,- SshHostRequest,- SshHostResponse,-} from "@lmliheng/penguin-server/api";-import { Button, Input, Modal, NoticeStrip, toastSuccess } from "@lmliheng/penguin-ui";+import type { MachinesResponse, SshHostRequest, SshHostResponse } from "@adelie/server/api";+import { Button, Input, Modal, NoticeStrip, toastSuccess } from "@adelie/ui";import * as api from "../../api/endpoints";import { S } from "../../lib/strings";import { apiErrorText } from "../../lib/api-error";diff --git a/packages/web/src/features/messaging/messaging-binding-editor.tsx b/packages/web/src/features/messaging/messaging-binding-editor.tsxindex 3515608b..20119a21 100644--- a/packages/web/src/features/messaging/messaging-binding-editor.tsx+++ b/packages/web/src/features/messaging/messaging-binding-editor.tsx@@ -47,7 +47,7 @@ import type {MessagingChannel,MessagingRuntimeStatus,TelegramTestResponse,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import {Button,Checkbox,@@ -61,7 +61,7 @@ import {toastError,toastInfo,toastSuccess,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import * as api from "../../api/endpoints";import { S } from "../../lib/strings";import { apiErrorText } from "../../lib/api-error";diff --git a/packages/web/src/features/messaging/messaging-binding-form.ts b/packages/web/src/features/messaging/messaging-binding-form.tsindex 822ad227..72c4b08b 100644--- a/packages/web/src/features/messaging/messaging-binding-form.ts+++ b/packages/web/src/features/messaging/messaging-binding-form.ts@@ -31,7 +31,7 @@ import type {TelegramBindingPutRequest,TelegramTestRequest,WeChatBindingPutRequest,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";/** Default Feishu open-platform domain (shown prefilled; Lark tenants overwrite it). */export const FEISHU_DEFAULT_DOMAIN = "https://open.feishu.cn";diff --git a/packages/web/src/features/messaging/messaging-binding-modal.tsx b/packages/web/src/features/messaging/messaging-binding-modal.tsxindex b924b49c..e7a02bbb 100644--- a/packages/web/src/features/messaging/messaging-binding-modal.tsx+++ b/packages/web/src/features/messaging/messaging-binding-modal.tsx@@ -10,8 +10,8 @@* in the editor. There is no unbind action — removing a credential is the secret field's* clear checkbox.*/-import type { MessagingChannel } from "@lmliheng/penguin-server/api";-import { Button, Modal } from "@lmliheng/penguin-ui";+import type { MessagingChannel } from "@adelie/server/api";+import { Button, Modal } from "@adelie/ui";import { S } from "../../lib/strings";import {MessagingBindingBody,diff --git a/packages/web/src/features/messaging/messaging-panel.tsx b/packages/web/src/features/messaging/messaging-panel.tsxindex 25155af6..fba3dfc9 100644--- a/packages/web/src/features/messaging/messaging-panel.tsx+++ b/packages/web/src/features/messaging/messaging-panel.tsx@@ -13,7 +13,7 @@* Status polling is gated on `active` (the dock keeps hidden tabs mounted): a hidden tab* neither polls nor loses the form state it accumulated.*/-import { Button, Skeleton } from "@lmliheng/penguin-ui";+import { Button, Skeleton } from "@adelie/ui";import { S } from "../../lib/strings";import {MessagingBindingBody,diff --git a/packages/web/src/features/messaging/qq-scan-connect.tsx b/packages/web/src/features/messaging/qq-scan-connect.tsxindex 30b13d93..fef81ab6 100644--- a/packages/web/src/features/messaging/qq-scan-connect.tsx+++ b/packages/web/src/features/messaging/qq-scan-connect.tsx@@ -20,12 +20,8 @@*/import { useCallback, useEffect, useRef, useState } from "react";import { encode } from "uqr";-import type {- MessagingBindingInfo,- QQBindingInfo,- QQScanPollResponse,-} from "@lmliheng/penguin-server/api";-import { Button, toastError, toastSuccess } from "@lmliheng/penguin-ui";+import type { MessagingBindingInfo, QQBindingInfo, QQScanPollResponse } from "@adelie/server/api";+import { Button, toastError, toastSuccess } from "@adelie/ui";import * as api from "../../api/endpoints";import { apiErrorText } from "../../lib/api-error";import { S } from "../../lib/strings";diff --git a/packages/web/src/features/messaging/wechat-scan-connect.tsx b/packages/web/src/features/messaging/wechat-scan-connect.tsxindex 38c64f42..08eed940 100644--- a/packages/web/src/features/messaging/wechat-scan-connect.tsx+++ b/packages/web/src/features/messaging/wechat-scan-connect.tsx@@ -29,8 +29,8 @@ import type {MessagingBindingInfo,WeChatBindingInfo,WeChatScanPollResponse,-} from "@lmliheng/penguin-server/api";-import { Button, Input, toastError, toastInfo, toastSuccess } from "@lmliheng/penguin-ui";+} from "@adelie/server/api";+import { Button, Input, toastError, toastInfo, toastSuccess } from "@adelie/ui";import * as api from "../../api/endpoints";import { apiErrorText } from "../../lib/api-error";import { S } from "../../lib/strings";diff --git a/packages/web/src/features/models/balance.ts b/packages/web/src/features/models/balance.tsindex 2dde147d..62338ac8 100644--- a/packages/web/src/features/models/balance.ts+++ b/packages/web/src/features/models/balance.ts@@ -20,7 +20,7 @@ import type {ModelBalanceReading,ModelBalanceResponse,PinnedBalance,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import * as api from "../../api/endpoints";import { apiErrorText } from "../../lib/api-error";import { formatMoney } from "../../lib/format";diff --git a/packages/web/src/features/models/catalog-sync.ts b/packages/web/src/features/models/catalog-sync.tsindex a12db7ce..a8ad7546 100644--- a/packages/web/src/features/models/catalog-sync.ts+++ b/packages/web/src/features/models/catalog-sync.ts@@ -33,8 +33,8 @@ import {PENGUIN_GO_PROVIDER_ID,catalogEntryFor,catalogModelEntries,-} from "@lmliheng/penguin-core/model-catalog";-import type { ModelsResponse } from "@lmliheng/penguin-server/api";+} from "@adelie/core/model-catalog";+import type { ModelsResponse } from "@adelie/server/api";import { fractionOff } from "./model-grouping";import type { RowState } from "./models-page";diff --git a/packages/web/src/features/models/group-balance.tsx b/packages/web/src/features/models/group-balance.tsxindex 2a05ffa2..5fa596f0 100644--- a/packages/web/src/features/models/group-balance.tsx+++ b/packages/web/src/features/models/group-balance.tsx@@ -11,9 +11,9 @@* information about an account, not an error the user made on this page.*/import { useEffect } from "react";-import type { ModelProviderInfo } from "@lmliheng/penguin-core/model-catalog";-import { providerInfo } from "@lmliheng/penguin-core/model-catalog";-import { GlyphIcon, ICONS, ICON_SIZE, IconButton, ProviderLogo } from "@lmliheng/penguin-ui";+import type { ModelProviderInfo } from "@adelie/core/model-catalog";+import { providerInfo } from "@adelie/core/model-catalog";+import { GlyphIcon, ICONS, ICON_SIZE, IconButton, ProviderLogo } from "@adelie/ui";import { S } from "../../lib/strings";import { formatDateTime } from "../../lib/format";import { useProject } from "../../state/project";diff --git a/packages/web/src/features/models/group-header.ts b/packages/web/src/features/models/group-header.tsindex 2095f421..777851ef 100644--- a/packages/web/src/features/models/group-header.ts+++ b/packages/web/src/features/models/group-header.ts@@ -12,8 +12,8 @@ import {MODEL_PROVIDERS,PENGUIN_GO_PROVIDER_ID,isAddableGroup,-} from "@lmliheng/penguin-core/model-catalog";-import type { ModelProviderInfo } from "@lmliheng/penguin-core/model-catalog";+} from "@adelie/core/model-catalog";+import type { ModelProviderInfo } from "@adelie/core/model-catalog";/*** One box for everything on the header's right side, so its items share one height, one insetdiff --git a/packages/web/src/features/models/key-auth-dialog.tsx b/packages/web/src/features/models/key-auth-dialog.tsxindex 2affbcd7..38c7252e 100644--- a/packages/web/src/features/models/key-auth-dialog.tsx+++ b/packages/web/src/features/models/key-auth-dialog.tsx@@ -3,13 +3,13 @@ import type {PlatformAuthFlowErrorCode,PlatformAuthFlowStatusResponse,PlatformAuthStartResponse,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import type { KeyAuthEndpoints } from "../../api/endpoints";import { ApiError } from "../../api/client";import { apiErrorText } from "../../lib/api-error";import { isElectronRenderer } from "../../lib/desktop-renderer";import { S } from "../../lib/strings";-import { Button, Modal, Spinner } from "@lmliheng/penguin-ui";+import { Button, Modal, Spinner } from "@adelie/ui";const POLL_MS = 3_000;diff --git a/packages/web/src/features/models/model-group-expansion.ts b/packages/web/src/features/models/model-group-expansion.tsindex 0dc51b60..97719317 100644--- a/packages/web/src/features/models/model-group-expansion.ts+++ b/packages/web/src/features/models/model-group-expansion.ts@@ -16,7 +16,7 @@* injectable (draft-cache.ts convention: vitest runs in Node, no localStorage); search* force-open below stays derived and never writes storage.*/-import { MODEL_PROVIDERS } from "@lmliheng/penguin-core/model-catalog";+import { MODEL_PROVIDERS } from "@adelie/core/model-catalog";/*** Provider ids expanded on first visit (nothing persisted yet): the leading group ofdiff --git a/packages/web/src/features/models/model-grouping.ts b/packages/web/src/features/models/model-grouping.tsindex 58381427..9eeba39f 100644--- a/packages/web/src/features/models/model-grouping.ts+++ b/packages/web/src/features/models/model-grouping.ts@@ -16,8 +16,8 @@* the identity, so a profile that has never dragged a group sees exactly the catalog* order. Storage stays out of this module: the caller loads the array and passes it in.*/-import { MODEL_PROVIDERS, catalogEntryFor, offPeakAt } from "@lmliheng/penguin-core/model-catalog";-import type { ModelProviderInfo, OffPeakDiscount } from "@lmliheng/penguin-core/model-catalog";+import { MODEL_PROVIDERS, catalogEntryFor, offPeakAt } from "@adelie/core/model-catalog";+import type { ModelProviderInfo, OffPeakDiscount } from "@adelie/core/model-catalog";import { orderModelGroups } from "./model-group-order";diff --git a/packages/web/src/features/models/models-page.tsx b/packages/web/src/features/models/models-page.tsxindex 807df1c3..86b598f3 100644--- a/packages/web/src/features/models/models-page.tsx+++ b/packages/web/src/features/models/models-page.tsx@@ -42,7 +42,7 @@ import type {ModelTestRequest,ModelUpdateEntry,ModelVisionDetectRequest,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import {Button,Checkbox,@@ -72,7 +72,7 @@ import {toastError,toastInfo,toastSuccess,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import * as api from "../../api/endpoints";import { ApiError } from "../../api/client";import { S } from "../../lib/strings";@@ -97,12 +97,12 @@ import {providerEnvFallbackKey,providerInfo,unroutableVendorModel,-} from "@lmliheng/penguin-core/model-catalog";+} from "@adelie/core/model-catalog";import type {FastModeProtocol,ModelProviderBridgeAuth,ModelProviderInfo,-} from "@lmliheng/penguin-core/model-catalog";+} from "@adelie/core/model-catalog";import {allGroupKeys,discountedPrice,diff --git a/packages/web/src/features/models/protocol-suffix.tsx b/packages/web/src/features/models/protocol-suffix.tsxindex e75fa09c..7fdf0ba7 100644--- a/packages/web/src/features/models/protocol-suffix.tsx+++ b/packages/web/src/features/models/protocol-suffix.tsx@@ -30,7 +30,7 @@* the call site — so no extra row appears in the happy path.*/import { useState } from "react";-import { ChevronDown, Dropdown, Menu, MenuRadioItem, Spinner } from "@lmliheng/penguin-ui";+import { ChevronDown, Dropdown, Menu, MenuRadioItem, Spinner } from "@adelie/ui";// This menu is an OptionMenu by hand (its trigger lives inside the base URL field, which// OptionMenu cannot do), so it takes its rows from the Menu family rather than re-spelling// them — a change to the family reaches it.diff --git a/packages/web/src/features/models/protocol-types.ts b/packages/web/src/features/models/protocol-types.tsindex 904ec2db..9989bd3d 100644--- a/packages/web/src/features/models/protocol-types.ts+++ b/packages/web/src/features/models/protocol-types.ts@@ -6,11 +6,7 @@* The probing itself is server-side (packages/server/src/services/protocol-detect.ts); these* only decide what the dialog shows and what is worth sending there.*/-import {- modelEnvPreviewKey,- providerClientType,- providerInfo,-} from "@lmliheng/penguin-core/model-catalog";+import { modelEnvPreviewKey, providerClientType, providerInfo } from "@adelie/core/model-catalog";/*** AgentHub's generic protocol client types, in detection order (custom / user-defineddiff --git a/packages/web/src/features/palette/app-palette.tsx b/packages/web/src/features/palette/app-palette.tsxindex 6a9b99f9..2140bc52 100644--- a/packages/web/src/features/palette/app-palette.tsx+++ b/packages/web/src/features/palette/app-palette.tsx@@ -6,8 +6,8 @@* rather than navigating — closing it leaves the user exactly where they were.*/import { useEffect, useMemo, useState } from "react";-import { CommandPalette } from "@lmliheng/penguin-ui";-import type { PaletteAction } from "@lmliheng/penguin-ui";+import { CommandPalette } from "@adelie/ui";+import type { PaletteAction } from "@adelie/ui";import { onCommand } from "../../lib/shortcuts/dispatcher";import { useShortcutLabel } from "../../lib/shortcuts/use-keymap";import { S } from "../../lib/strings";diff --git a/packages/web/src/features/plugins/plugin-detail-page.tsx b/packages/web/src/features/plugins/plugin-detail-page.tsxindex 4cae286e..d3456af8 100644--- a/packages/web/src/features/plugins/plugin-detail-page.tsx+++ b/packages/web/src/features/plugins/plugin-detail-page.tsx@@ -11,7 +11,7 @@*/import { useEffect, useState } from "react";import { Link, useParams } from "react-router";-import type { PluginIndexEntry } from "@lmliheng/penguin-server/api";+import type { PluginIndexEntry } from "@adelie/server/api";import ReactMarkdown from "react-markdown";import {Button,@@ -26,7 +26,7 @@ import {REMARK_PLUGINS,Skeleton,useCopied,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import * as api from "../../api/endpoints";import { S } from "../../lib/strings";import { apiErrorText } from "../../lib/api-error";diff --git a/packages/web/src/features/plugins/plugin-detail.tsx b/packages/web/src/features/plugins/plugin-detail.tsxindex 64fcd0fd..8d2c99b1 100644--- a/packages/web/src/features/plugins/plugin-detail.tsx+++ b/packages/web/src/features/plugins/plugin-detail.tsx@@ -10,14 +10,14 @@*/import { useEffect, useState } from "react";import { Link } from "react-router";-import { Badge, FileBrowser, GlyphIcon, ICONS, Modal } from "@lmliheng/penguin-ui";-import type { FileBrowserPreview, FileTreeRow, TreeToggle } from "@lmliheng/penguin-ui";+import { Badge, FileBrowser, GlyphIcon, ICONS, Modal } from "@adelie/ui";+import type { FileBrowserPreview, FileTreeRow, TreeToggle } from "@adelie/ui";import { S } from "../../lib/strings";import { apiErrorText } from "../../lib/api-error";import { baseName } from "../../lib/workspace-tree";import { useLocale } from "../../state/locale";import { getPluginFiles } from "../../api/endpoints";-import type { PluginItem } from "@lmliheng/penguin-server/api";+import type { PluginItem } from "@adelie/server/api";import { SkillTile } from "../skills/skill-icon-view";import { localizedText } from "../chat/skill-use";diff --git a/packages/web/src/features/plugins/plugin-import-dialog.tsx b/packages/web/src/features/plugins/plugin-import-dialog.tsxindex ce84ae12..151e8bba 100644--- a/packages/web/src/features/plugins/plugin-import-dialog.tsx+++ b/packages/web/src/features/plugins/plugin-import-dialog.tsx@@ -40,7 +40,7 @@ import {Modal,toastError,toastSuccess,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import * as api from "../../api/endpoints";import { ApiError } from "../../api/client";import { S } from "../../lib/strings";diff --git a/packages/web/src/features/plugins/plugins-page.tsx b/packages/web/src/features/plugins/plugins-page.tsxindex 186fc3ab..5ee0e603 100644--- a/packages/web/src/features/plugins/plugins-page.tsx+++ b/packages/web/src/features/plugins/plugins-page.tsx@@ -1,5 +1,5 @@/**- * Plugin library page: the built-in plugin library (loaded by core from the @lmliheng/* packages), shown sectioned by category.+ * Plugin library page: the built-in plugin library (loaded by core from the @adelie/* packages), shown sectioned by category.* A plugin ships skills and/or a hook package (scripts the harness runs at the loop's hook* points, e.g. after every Task), and is installed on an Agent as a whole. Each list is a* collapsible section whose head strip folds it (the theme's layout motion moves the fold). Cards@@ -55,7 +55,7 @@ import type {PluginIndexEntry,PluginItem,SkillMetadataItem,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import {AgentAvatar,Badge,@@ -80,7 +80,7 @@ import {UpdateDot,toastError,toastSuccess,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import * as api from "../../api/endpoints";import { ApiError } from "../../api/client";import { S } from "../../lib/strings";@@ -1186,7 +1186,7 @@ export function availablePluginRows(* The market entry that describes a library plugin, when the registry has one. The two lists* name the same package differently: the library by the directory its package was read from* (`csu-mail`), the market by the specifier a Project's list would take- * (`@lmliheng/csu-mail`) — and a plugin package's version is its own `plugin.json`'s in both,+ * (`@adelie/csu-mail`) — and a plugin package's version is its own `plugin.json`'s in both,* so a scoped entry of that name carrying the card's version is this plugin's package. A user* plugin has none: it is no package of the build's, and nothing on the shelf describes it.*/diff --git a/packages/web/src/features/schedules/schedule-ai-modal.tsx b/packages/web/src/features/schedules/schedule-ai-modal.tsxindex 9db73e98..a4dbc9ef 100644--- a/packages/web/src/features/schedules/schedule-ai-modal.tsx+++ b/packages/web/src/features/schedules/schedule-ai-modal.tsx@@ -8,8 +8,8 @@* move, on text they have read. Mounted fresh on every open, like AiCreateModal.*/import { useState } from "react";-import type { AgentSummary } from "@lmliheng/penguin-server/api";-import { Button, GlyphIcon, ICONS, Modal } from "@lmliheng/penguin-ui";+import type { AgentSummary } from "@adelie/server/api";+import { Button, GlyphIcon, ICONS, Modal } from "@adelie/ui";import { S } from "../../lib/strings";import { agentDisplayName } from "../../state/project";import { AiCreatePanel, composeAiPrompt } from "../ai-create";diff --git a/packages/web/src/features/schedules/schedule-describe.ts b/packages/web/src/features/schedules/schedule-describe.tsindex aa57e6d1..a4506cc7 100644--- a/packages/web/src/features/schedules/schedule-describe.ts+++ b/packages/web/src/features/schedules/schedule-describe.ts@@ -7,7 +7,7 @@* come from the active dictionary, the dates from the caller's locale, and "today" from the* `now` the caller passes.*/-import type { ScheduleItem } from "@lmliheng/penguin-server/api";+import type { ScheduleItem } from "@adelie/server/api";import { S } from "../../lib/strings";import { formatMonthDay, localYmd } from "../../lib/format";import type { Locale } from "../../state/locale";diff --git a/packages/web/src/features/schedules/schedule-form-modal.tsx b/packages/web/src/features/schedules/schedule-form-modal.tsxindex 5afe9598..2be01da7 100644--- a/packages/web/src/features/schedules/schedule-form-modal.tsx+++ b/packages/web/src/features/schedules/schedule-form-modal.tsx@@ -19,7 +19,7 @@ import type {ScheduleItem,ScheduleUpsertRequest,SessionInfo,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import {Button,Checkbox,@@ -33,7 +33,7 @@ import {Textarea,toastInfo,toastSuccess,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import * as api from "../../api/endpoints";import { S } from "../../lib/strings";import { apiErrorText } from "../../lib/api-error";diff --git a/packages/web/src/features/schedules/schedule-page-state.ts b/packages/web/src/features/schedules/schedule-page-state.tsindex fc759eaa..f2e270e6 100644--- a/packages/web/src/features/schedules/schedule-page-state.ts+++ b/packages/web/src/features/schedules/schedule-page-state.ts@@ -9,10 +9,7 @@* thing that says where a task's workspace, model and Session picker point. The filter and the* search box narrow the rows inside the groups; they never dissolve the groups.*/-import type {- AllProjectSchedulesResponse,- ProjectScheduleItem,-} from "@lmliheng/penguin-server/api";+import type { AllProjectSchedulesResponse, ProjectScheduleItem } from "@adelie/server/api";import { filterSchedules } from "./schedule-panel-state";import type { ScheduleFilter } from "./schedule-panel-state";diff --git a/packages/web/src/features/schedules/schedule-panel-state.ts b/packages/web/src/features/schedules/schedule-panel-state.tsindex 13e1b239..34c846f1 100644--- a/packages/web/src/features/schedules/schedule-panel-state.ts+++ b/packages/web/src/features/schedules/schedule-panel-state.ts@@ -5,7 +5,7 @@* node-only unit tests (test/schedule-panel-state.test.ts), and shared by both listers — the* chat dock's panel and the scheduled-tasks page — so the two filter one list the same way.*/-import type { ScheduleItem, ScheduleStatus } from "@lmliheng/penguin-server/api";+import type { ScheduleItem, ScheduleStatus } from "@adelie/server/api";import { S } from "../../lib/strings";export type ScheduleFilter = "all" | "active" | "paused" | "completed";diff --git a/packages/web/src/features/schedules/schedule-panel.tsx b/packages/web/src/features/schedules/schedule-panel.tsxindex 50e36d49..4be188e6 100644--- a/packages/web/src/features/schedules/schedule-panel.tsx+++ b/packages/web/src/features/schedules/schedule-panel.tsx@@ -16,7 +16,7 @@* while the AI path stays open to everyone — asking the agent is a message, not a write.*/import { useEffect, useState } from "react";-import type { ProjectScheduleItem, SessionInfo } from "@lmliheng/penguin-server/api";+import type { ProjectScheduleItem, SessionInfo } from "@adelie/server/api";import {ConfirmModal,SearchInput,@@ -25,7 +25,7 @@ import {SkeletonList,toastError,toastSuccess,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import * as api from "../../api/endpoints";import { S } from "../../lib/strings";import { apiErrorText } from "../../lib/api-error";diff --git a/packages/web/src/features/schedules/schedule-row.tsx b/packages/web/src/features/schedules/schedule-row.tsxindex 8c9fd3a5..0e0f8828 100644--- a/packages/web/src/features/schedules/schedule-row.tsx+++ b/packages/web/src/features/schedules/schedule-row.tsx@@ -10,17 +10,8 @@* has to name the Agent holding the file, so each one passes its own callbacks.*/import { useState } from "react";-import type { ScheduleItem } from "@lmliheng/penguin-server/api";-import {- Badge,- Dropdown,- GlyphIcon,- ICONS,- ICON_SIZE,- Menu,- MenuItem,- Switch,-} from "@lmliheng/penguin-ui";+import type { ScheduleItem } from "@adelie/server/api";+import { Badge, Dropdown, GlyphIcon, ICONS, ICON_SIZE, Menu, MenuItem, Switch } from "@adelie/ui";import { S } from "../../lib/strings";import { toneInk } from "../../lib/tone";import { useLocale } from "../../state/locale";diff --git a/packages/web/src/features/schedules/schedule-store.ts b/packages/web/src/features/schedules/schedule-store.tsindex e1ed7a11..32d43178 100644--- a/packages/web/src/features/schedules/schedule-store.ts+++ b/packages/web/src/features/schedules/schedule-store.ts@@ -33,7 +33,7 @@* kilobytes back for exactly the blank-then-refetch this cache exists to remove.*/import { useEffect, useSyncExternalStore } from "react";-import type { ProjectScheduleItem, ProjectSchedulesResponse } from "@lmliheng/penguin-server/api";+import type { ProjectScheduleItem, ProjectSchedulesResponse } from "@adelie/server/api";import * as api from "../../api/endpoints";import { apiErrorText } from "../../lib/api-error";diff --git a/packages/web/src/features/schedules/schedule-suggestions.tsx b/packages/web/src/features/schedules/schedule-suggestions.tsxindex e7466b89..9066b47d 100644--- a/packages/web/src/features/schedules/schedule-suggestions.tsx+++ b/packages/web/src/features/schedules/schedule-suggestions.tsx@@ -6,7 +6,7 @@* agent as a whole (the settings tab opens a new Session). Picking one opens the AI creation* dialog with that prompt filled in, and the same rows are the dialog's clickable examples.*/-import { GlyphIcon, ICONS, ICON_GAP, ICON_SIZE } from "@lmliheng/penguin-ui";+import { GlyphIcon, ICONS, ICON_GAP, ICON_SIZE } from "@adelie/ui";import { S } from "../../lib/strings";import type { AiExample } from "../ai-create";diff --git a/packages/web/src/features/schedules/schedule-upsert.ts b/packages/web/src/features/schedules/schedule-upsert.tsindex 5d8cfbcf..31ba0766 100644--- a/packages/web/src/features/schedules/schedule-upsert.ts+++ b/packages/web/src/features/schedules/schedule-upsert.ts@@ -4,11 +4,7 @@* holds — and a model reference is always the complete (provider, model_id) pair, never* half of one.*/-import type {- ModelRefDto,- ScheduleItem,- ScheduleUpsertRequest,-} from "@lmliheng/penguin-server/api";+import type { ModelRefDto, ScheduleItem, ScheduleUpsertRequest } from "@adelie/server/api";/*** Stored schedule fields → a model reference. The DTO types the two fields independently, sodiff --git a/packages/web/src/features/schedules/schedules-page.tsx b/packages/web/src/features/schedules/schedules-page.tsxindex 74187600..2eaa2dae 100644--- a/packages/web/src/features/schedules/schedules-page.tsx+++ b/packages/web/src/features/schedules/schedules-page.tsx@@ -38,10 +38,7 @@* has none of them: it reads and jumps, and changes nothing anywhere.*/import { useEffect, useState } from "react";-import type {- AllProjectSchedulesResponse,- ProjectScheduleItem,-} from "@lmliheng/penguin-server/api";+import type { AllProjectSchedulesResponse, ProjectScheduleItem } from "@adelie/server/api";import {AgentAvatar,Button,@@ -57,7 +54,7 @@ import {SkeletonList,toastError,toastSuccess,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import * as api from "../../api/endpoints";import { S } from "../../lib/strings";import { apiErrorText } from "../../lib/api-error";diff --git a/packages/web/src/features/semantic-id/id-suggest-notice.ts b/packages/web/src/features/semantic-id/id-suggest-notice.tsindex 47ab1fcf..7ae76ee0 100644--- a/packages/web/src/features/semantic-id/id-suggest-notice.ts+++ b/packages/web/src/features/semantic-id/id-suggest-notice.ts@@ -13,7 +13,7 @@* how the user learns the id in the box is a placeholder, and losing it over an unrecognized* code would be the worse failure.*/-import type { SemanticIdSuggestResponse } from "@lmliheng/penguin-server/api";+import type { SemanticIdSuggestResponse } from "@adelie/server/api";import type { Strings } from "../../lib/strings";/** The field's own dictionary slice — `S.semanticId.idSuggest`. */diff --git a/packages/web/src/features/semantic-id/semantic-id-field.tsx b/packages/web/src/features/semantic-id/semantic-id-field.tsxindex 659e7ab8..621843b8 100644--- a/packages/web/src/features/semantic-id/semantic-id-field.tsx+++ b/packages/web/src/features/semantic-id/semantic-id-field.tsx@@ -26,7 +26,7 @@*/import { useId, useState } from "react";import type { KeyboardEvent } from "react";-import type { SemanticIdKind } from "@lmliheng/penguin-server/api";+import type { SemanticIdKind } from "@adelie/server/api";import {Button,FieldError,@@ -36,7 +36,7 @@ import {ICON_SIZE,Input,toastError,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import * as api from "../../api/endpoints";import { S } from "../../lib/strings";import { apiErrorText } from "../../lib/api-error";diff --git a/packages/web/src/features/settings/account-section.tsx b/packages/web/src/features/settings/account-section.tsxindex a547b008..10f7d701 100644--- a/packages/web/src/features/settings/account-section.tsx+++ b/packages/web/src/features/settings/account-section.tsx@@ -5,7 +5,7 @@* offersChangePassword for the full rule).*/import { useState } from "react";-import { Button, PrefRow } from "@lmliheng/penguin-ui";+import { Button, PrefRow } from "@adelie/ui";import { S } from "../../lib/strings";import { ChangePasswordDialog } from "../../components/account/change-password-dialog";diff --git a/packages/web/src/features/settings/advanced-fold.tsx b/packages/web/src/features/settings/advanced-fold.tsxindex 16727765..047d920d 100644--- a/packages/web/src/features/settings/advanced-fold.tsx+++ b/packages/web/src/features/settings/advanced-fold.tsx@@ -7,7 +7,7 @@*/import { useId, useState } from "react";import type { ReactNode } from "react";-import { Chevron, ICON_GAP, ICON_SIZE } from "@lmliheng/penguin-ui";+import { Chevron, ICON_GAP, ICON_SIZE } from "@adelie/ui";import { S } from "../../lib/strings";export function AdvancedFold({diff --git a/packages/web/src/features/settings/agent-api-section.tsx b/packages/web/src/features/settings/agent-api-section.tsxindex 2f4cc91d..49e67803 100644--- a/packages/web/src/features/settings/agent-api-section.tsx+++ b/packages/web/src/features/settings/agent-api-section.tsx@@ -9,8 +9,8 @@* on the stored value and says why under it.*/import { useEffect, useState } from "react";-import type { ServerSettingsResponse } from "@lmliheng/penguin-server/api";-import { ConfirmModal, SettingsSection, ToggleRow, toastError } from "@lmliheng/penguin-ui";+import type { ServerSettingsResponse } from "@adelie/server/api";+import { ConfirmModal, SettingsSection, ToggleRow, toastError } from "@adelie/ui";import * as api from "../../api/endpoints";import { apiErrorText } from "../../lib/api-error";import { S } from "../../lib/strings";diff --git a/packages/web/src/features/settings/appearance-section.tsx b/packages/web/src/features/settings/appearance-section.tsxindex 65e3fc56..ca99e247 100644--- a/packages/web/src/features/settings/appearance-section.tsx+++ b/packages/web/src/features/settings/appearance-section.tsx@@ -12,15 +12,8 @@* browser.*/import { useEffect, useState, useSyncExternalStore } from "react";-import {- PrefRow,- Segmented,- Select,- SwatchPicker,- THEME_IDS,- ToggleRow,-} from "@lmliheng/penguin-ui";-import { FONT_CJK_OPTIONS, FONT_LATIN_OPTIONS, TEXT_SIZES } from "@lmliheng/penguin-ui/boot";+import { PrefRow, Segmented, Select, SwatchPicker, THEME_IDS, ToggleRow } from "@adelie/ui";+import { FONT_CJK_OPTIONS, FONT_LATIN_OPTIONS, TEXT_SIZES } from "@adelie/ui/boot";import { S } from "../../lib/strings";import * as api from "../../api/endpoints";import { isDesktopShellWindow } from "../../lib/account-menu";diff --git a/packages/web/src/features/settings/company-mode-write.ts b/packages/web/src/features/settings/company-mode-write.tsindex fe334ad5..895721bd 100644--- a/packages/web/src/features/settings/company-mode-write.ts+++ b/packages/web/src/features/settings/company-mode-write.ts@@ -7,10 +7,7 @@* The answer is adopted rather than assumed: a server that stored something other than what was* asked for is what the switch must show.*/-import type {- ServerSettingsResponse,- ServerSettingsUpdateRequest,-} from "@lmliheng/penguin-server/api";+import type { ServerSettingsResponse, ServerSettingsUpdateRequest } from "@adelie/server/api";/** What a flip settled on: the stored value now, or the value to revert to and why. */export type CompanyModeWriteResult =diff --git a/packages/web/src/features/settings/company-section.tsx b/packages/web/src/features/settings/company-section.tsxindex 7e8d0eac..badbb358 100644--- a/packages/web/src/features/settings/company-section.tsx+++ b/packages/web/src/features/settings/company-section.tsx@@ -13,7 +13,7 @@* wherever the switch stands.*/import { useEffect, useState } from "react";-import { SettingsSection, ToggleRow, toastError } from "@lmliheng/penguin-ui";+import { SettingsSection, ToggleRow, toastError } from "@adelie/ui";import * as api from "../../api/endpoints";import { S } from "../../lib/strings";import { apiErrorText } from "../../lib/api-error";diff --git a/packages/web/src/features/settings/credits-section.tsx b/packages/web/src/features/settings/credits-section.tsxindex 1c61fa7d..2e244ed8 100644--- a/packages/web/src/features/settings/credits-section.tsx+++ b/packages/web/src/features/settings/credits-section.tsx@@ -15,10 +15,10 @@* screen away.*/import { useId, useState } from "react";-import { FONT_CREDITS } from "@lmliheng/penguin-ui/fonts-credits";-import type { FontCredit } from "@lmliheng/penguin-ui/fonts-credits";-import type { ThemeId } from "@lmliheng/penguin-ui";-import { Chevron, ICON_GAP } from "@lmliheng/penguin-ui";+import { FONT_CREDITS } from "@adelie/ui/fonts-credits";+import type { FontCredit } from "@adelie/ui/fonts-credits";+import type { ThemeId } from "@adelie/ui";+import { Chevron, ICON_GAP } from "@adelie/ui";import { S } from "../../lib/strings";/** A theme id in the reader's words. */diff --git a/packages/web/src/features/settings/general-section.tsx b/packages/web/src/features/settings/general-section.tsxindex e48ec9bc..368195eb 100644--- a/packages/web/src/features/settings/general-section.tsx+++ b/packages/web/src/features/settings/general-section.tsx@@ -10,7 +10,7 @@* request answered rather than on what was clicked.*/import { useState, useSyncExternalStore } from "react";-import { PrefRow, Segmented, ToggleRow } from "@lmliheng/penguin-ui";+import { PrefRow, Segmented, ToggleRow } from "@adelie/ui";import { S } from "../../lib/strings";import {enableNotifications,diff --git a/packages/web/src/features/settings/plugin-config-draft.ts b/packages/web/src/features/settings/plugin-config-draft.tsindex 0ef90b61..871c21db 100644--- a/packages/web/src/features/settings/plugin-config-draft.ts+++ b/packages/web/src/features/settings/plugin-config-draft.ts@@ -4,7 +4,7 @@* sent — an untouched field would store its default as a value, pinning it against a later* change of the default.*/-import type { PluginConfigEntry, PluginConfigField } from "@lmliheng/penguin-server/api";+import type { PluginConfigEntry, PluginConfigField } from "@adelie/server/api";type Cells = Record<string, string | boolean>;diff --git a/packages/web/src/features/settings/plugin-config-enum-cell.tsx b/packages/web/src/features/settings/plugin-config-enum-cell.tsxindex d045deb9..980ce00c 100644--- a/packages/web/src/features/settings/plugin-config-enum-cell.tsx+++ b/packages/web/src/features/settings/plugin-config-enum-cell.tsx@@ -7,7 +7,7 @@* picks, Esc closes this menu only, not an enclosing dialog.*/import { useState } from "react";-import { Dropdown, Menu, MenuRadioItem } from "@lmliheng/penguin-ui";+import { Dropdown, Menu, MenuRadioItem } from "@adelie/ui";export interface EnumCellOption {value: string;diff --git a/packages/web/src/features/settings/plugin-config-field-cell.tsx b/packages/web/src/features/settings/plugin-config-field-cell.tsxindex 49940caa..27926553 100644--- a/packages/web/src/features/settings/plugin-config-field-cell.tsx+++ b/packages/web/src/features/settings/plugin-config-field-cell.tsx@@ -16,8 +16,8 @@ import type {PluginConfigField,PluginConfigTableColumn,PluginConfigTableRow,-} from "@lmliheng/penguin-server/api";-import { InfoPopover, Switch } from "@lmliheng/penguin-ui";+} from "@adelie/server/api";+import { InfoPopover, Switch } from "@adelie/ui";import { S } from "../../lib/strings";import { EnumCell } from "./plugin-config-enum-cell";import { PinToggle, WrappingNameBox } from "./plugin-config-table-cells";diff --git a/packages/web/src/features/settings/plugin-config-field.tsx b/packages/web/src/features/settings/plugin-config-field.tsxindex 68cce366..67d81071 100644--- a/packages/web/src/features/settings/plugin-config-field.tsx+++ b/packages/web/src/features/settings/plugin-config-field.tsx@@ -6,8 +6,8 @@* handed and reports each edit; the page owns the drafts, the errors and what a change sets in* motion.*/-import type { PluginConfigEntry, PluginConfigField } from "@lmliheng/penguin-server/api";-import { Checkbox, Input, PasswordInput, Select, Textarea, ToggleRow } from "@lmliheng/penguin-ui";+import type { PluginConfigEntry, PluginConfigField } from "@adelie/server/api";+import { Checkbox, Input, PasswordInput, Select, Textarea, ToggleRow } from "@adelie/ui";import { S } from "../../lib/strings";import type { Locale } from "../../state/locale";import { localizedText } from "../chat/skill-use";diff --git a/packages/web/src/features/settings/plugin-config-heading.tsx b/packages/web/src/features/settings/plugin-config-heading.tsxindex 0b2a9562..a7455076 100644--- a/packages/web/src/features/settings/plugin-config-heading.tsx+++ b/packages/web/src/features/settings/plugin-config-heading.tsx@@ -7,8 +7,8 @@* discloses why an installed backend is not in use). While the group's switch is off (as* drafted), only the title is drawn: the actions and notices concern the group in use.*/-import type { PluginConfigEntry } from "@lmliheng/penguin-server/api";-import { Button, HelpFold, InfoPopover, NoticeStrip, Spinner } from "@lmliheng/penguin-ui";+import type { PluginConfigEntry } from "@adelie/server/api";+import { Button, HelpFold, InfoPopover, NoticeStrip, Spinner } from "@adelie/ui";import { S } from "../../lib/strings";import { toneInk } from "../../lib/tone";import type { Locale } from "../../state/locale";diff --git a/packages/web/src/features/settings/plugin-config-live.ts b/packages/web/src/features/settings/plugin-config-live.tsindex dc08fece..847db2be 100644--- a/packages/web/src/features/settings/plugin-config-live.ts+++ b/packages/web/src/features/settings/plugin-config-live.ts@@ -4,7 +4,7 @@* after something changed the machine (an install from the Sandbox card's prompt), without* touching their values, so drafts being edited are kept.*/-import type { PluginConfigEntry } from "@lmliheng/penguin-server/api";+import type { PluginConfigEntry } from "@adelie/server/api";export function withLiveParts(entries: readonly PluginConfigEntry[],diff --git a/packages/web/src/features/settings/plugin-config-row-menu.tsx b/packages/web/src/features/settings/plugin-config-row-menu.tsxindex d3709222..e13d5798 100644--- a/packages/web/src/features/settings/plugin-config-row-menu.tsx+++ b/packages/web/src/features/settings/plugin-config-row-menu.tsx@@ -7,7 +7,7 @@* the arrow keys move, Enter picks, Esc closes this menu only.*/import { useState } from "react";-import { Dropdown, GlyphIcon, ICONS, ICON_SIZE, Menu, MenuItem } from "@lmliheng/penguin-ui";+import { Dropdown, GlyphIcon, ICONS, ICON_SIZE, Menu, MenuItem } from "@adelie/ui";import { S } from "../../lib/strings";import { ICON_BUTTON } from "./plugin-config-table-cells";diff --git a/packages/web/src/features/settings/plugin-config-table-cells.tsx b/packages/web/src/features/settings/plugin-config-table-cells.tsxindex 5f1d6ce5..57449bd4 100644--- a/packages/web/src/features/settings/plugin-config-table-cells.tsx+++ b/packages/web/src/features/settings/plugin-config-table-cells.tsx@@ -3,7 +3,7 @@* drag handle.*/import { useLayoutEffect, useRef } from "react";-import { GlyphIcon, ICONS, ICON_SIZE, Textarea } from "@lmliheng/penguin-ui";+import { GlyphIcon, ICONS, ICON_SIZE, Textarea } from "@adelie/ui";import { S } from "../../lib/strings";/** The one box every icon control in a table row takes, so a row's icons line up. */diff --git a/packages/web/src/features/settings/plugin-config-table.tsx b/packages/web/src/features/settings/plugin-config-table.tsxindex 2d3a53cf..8a575a1f 100644--- a/packages/web/src/features/settings/plugin-config-table.tsx+++ b/packages/web/src/features/settings/plugin-config-table.tsx@@ -25,8 +25,8 @@ import type {PluginConfigEntry,PluginConfigField,PluginConfigTableColumn,-} from "@lmliheng/penguin-server/api";-import { Button, InfoPopover } from "@lmliheng/penguin-ui";+} from "@adelie/server/api";+import { Button, InfoPopover } from "@adelie/ui";import { S } from "../../lib/strings";import { toneInk } from "../../lib/tone";import type { Locale } from "../../state/locale";diff --git a/packages/web/src/features/settings/plugins-section.tsx b/packages/web/src/features/settings/plugins-section.tsxindex 43079f00..82c222ea 100644--- a/packages/web/src/features/settings/plugins-section.tsx+++ b/packages/web/src/features/settings/plugins-section.tsx@@ -24,7 +24,7 @@* nothing here says "restart".*/import { useEffect, useRef, useState } from "react";-import type { PluginConfigEntry, PluginConfigField } from "@lmliheng/penguin-server/api";+import type { PluginConfigEntry, PluginConfigField } from "@adelie/server/api";import * as api from "../../api/endpoints";import { ApiError } from "../../api/client";import { S } from "../../lib/strings";@@ -63,7 +63,7 @@ import {toastError,toastInfo,toastSuccess,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";/*** Brings one card into view once the list has loaded — an opening that names a card (thediff --git a/packages/web/src/features/settings/profile-section.tsx b/packages/web/src/features/settings/profile-section.tsxindex fd4a75a6..5660f005 100644--- a/packages/web/src/features/settings/profile-section.tsx+++ b/packages/web/src/features/settings/profile-section.tsx@@ -27,7 +27,7 @@*/import { useState } from "react";import type { ChangeEvent } from "react";-import type { UpdateProfileRequest } from "@lmliheng/penguin-server/api";+import type { UpdateProfileRequest } from "@adelie/server/api";import {Button,HiddenFileInput,@@ -37,7 +37,7 @@ import {UserAvatar,buttonClass,toastSuccess,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import * as api from "../../api/endpoints";import { S } from "../../lib/strings";import { apiErrorText } from "../../lib/api-error";diff --git a/packages/web/src/features/settings/proxy-section.tsx b/packages/web/src/features/settings/proxy-section.tsxindex 4197d96f..f8d40536 100644--- a/packages/web/src/features/settings/proxy-section.tsx+++ b/packages/web/src/features/settings/proxy-section.tsx@@ -37,7 +37,7 @@ import type {ProxyProbeProvider,ProxyProbeTargetDto,ServerSettings,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import {Button,Input,@@ -46,7 +46,7 @@ import {toastError,toastInfo,toastSuccess,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import * as api from "../../api/endpoints";import { ApiError } from "../../api/client";import { S } from "../../lib/strings";diff --git a/packages/web/src/features/settings/sandbox-backend-prompt.tsx b/packages/web/src/features/settings/sandbox-backend-prompt.tsxindex cab0bb8d..ce830d46 100644--- a/packages/web/src/features/settings/sandbox-backend-prompt.tsx+++ b/packages/web/src/features/settings/sandbox-backend-prompt.tsx@@ -8,7 +8,7 @@* cost, which the body says: the App is re-assembled, stopping runs in progress.*/import { useState } from "react";-import { Checkbox, ConfirmModal, ICONS } from "@lmliheng/penguin-ui";+import { Checkbox, ConfirmModal, ICONS } from "@adelie/ui";import { S } from "../../lib/strings";export function SandboxBackendPrompt({diff --git a/packages/web/src/features/settings/settings-dialog.tsx b/packages/web/src/features/settings/settings-dialog.tsxindex bf934150..a5d57258 100644--- a/packages/web/src/features/settings/settings-dialog.tsx+++ b/packages/web/src/features/settings/settings-dialog.tsx@@ -8,8 +8,8 @@* anything not on it falls back to the first page they can actually open.*/import { useEffect, useState } from "react";-import { ICONS, PagedDialog } from "@lmliheng/penguin-ui";-import type { PagedDialogGroup } from "@lmliheng/penguin-ui";+import { ICONS, PagedDialog } from "@adelie/ui";+import type { PagedDialogGroup } from "@adelie/ui";import { S } from "../../lib/strings";import {resolveSettingsSection,diff --git a/packages/web/src/features/settings/shortcut-runtime.tsx b/packages/web/src/features/settings/shortcut-runtime.tsxindex 64afabca..ac864d9d 100644--- a/packages/web/src/features/settings/shortcut-runtime.tsx+++ b/packages/web/src/features/settings/shortcut-runtime.tsx@@ -7,7 +7,7 @@* mirror standing — the next hydrate reconciles.*/import { useEffect } from "react";-import { toastError } from "@lmliheng/penguin-ui";+import { toastError } from "@adelie/ui";import * as api from "../../api/endpoints";import { S } from "../../lib/strings";import { hydrateFromServer, setKeybindingsPersister } from "../../lib/shortcuts/store";diff --git a/packages/web/src/features/settings/shortcuts-section.tsx b/packages/web/src/features/settings/shortcuts-section.tsxindex f5efff53..76a816d8 100644--- a/packages/web/src/features/settings/shortcuts-section.tsx+++ b/packages/web/src/features/settings/shortcuts-section.tsx@@ -8,7 +8,7 @@* tab never receives ⌘W; ⌘P takes over the browser's Print; the desktop menu also carries ⌘R).*/import { useState } from "react";-import { Button, ConfirmModal, GlyphIcon, ICON_SIZE, SettingsSection } from "@lmliheng/penguin-ui";+import { Button, ConfirmModal, GlyphIcon, ICON_SIZE, SettingsSection } from "@adelie/ui";import { S } from "../../lib/strings";import { conflictsOf, findConflicts, type Conflict } from "../../lib/shortcuts/conflicts";import { currentHost, currentPlatform } from "../../lib/shortcuts/platform";diff --git a/packages/web/src/features/settings/storage-labels.ts b/packages/web/src/features/settings/storage-labels.tsindex 63d43584..e951b509 100644--- a/packages/web/src/features/settings/storage-labels.ts+++ b/packages/web/src/features/settings/storage-labels.ts@@ -3,7 +3,7 @@* draws it).** The ledger's classes and rules arrive as ids — `session_drafts`, `orphan` — because the API,- * the rules engine in `@lmliheng/penguin-core` (its `state/storage.ts` defines them) and the+ * the rules engine in `@adelie/core` (its `state/storage.ts` defines them) and the* cleanup plan a scan writes all have to agree on them. A person reading the report has to* recognise what `shared_env` or `budget` means, so every id is translated here, in one place,* and both dictionaries carry the words (`S.settings`), so the labels follow the UI language like@@ -25,7 +25,7 @@ import type {StorageEnvGroup,StoragePlanView,StorageTrashEntry,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import { S } from "../../lib/strings";/** The class of `entry` in the reader's words (`protected` → 用户资产 / "User assets"). */diff --git a/packages/web/src/features/settings/storage-review.ts b/packages/web/src/features/settings/storage-review.tsindex 7e35f009..3356d856 100644--- a/packages/web/src/features/settings/storage-review.ts+++ b/packages/web/src/features/settings/storage-review.ts@@ -25,7 +25,7 @@ import type {StorageClass,StoragePlanEntryView,StoragePlanView,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";/** The paths ticked on a bill; a fresh constant, so the page's default never mutates. */export const NO_SELECTION: ReadonlySet<string> = new Set<string>();diff --git a/packages/web/src/features/settings/storage-section.tsx b/packages/web/src/features/settings/storage-section.tsxindex ca915a89..16541d2a 100644--- a/packages/web/src/features/settings/storage-section.tsx+++ b/packages/web/src/features/settings/storage-section.tsx@@ -41,7 +41,7 @@ import type {StorageRestoreResponse,StorageSettings,StorageTrashEntry,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import {Button,Checkbox,@@ -57,7 +57,7 @@ import {TableRow,toastError,toastSuccess,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import * as api from "../../api/endpoints";import { S } from "../../lib/strings";import { apiErrorText } from "../../lib/api-error";diff --git a/packages/web/src/features/settings/trace-import-row.tsx b/packages/web/src/features/settings/trace-import-row.tsxindex 80628e6f..218a7179 100644--- a/packages/web/src/features/settings/trace-import-row.tsx+++ b/packages/web/src/features/settings/trace-import-row.tsx@@ -19,15 +19,8 @@*/import { useEffect, useState } from "react";import type { ChangeEvent } from "react";-import type { AgentSummary, ProjectSummary } from "@lmliheng/penguin-server/api";-import {- HiddenFileInput,- PrefRow,- Select,- UploadIcon,- toastError,- toastSuccess,-} from "@lmliheng/penguin-ui";+import type { AgentSummary, ProjectSummary } from "@adelie/server/api";+import { HiddenFileInput, PrefRow, Select, UploadIcon, toastError, toastSuccess } from "@adelie/ui";import * as api from "../../api/endpoints";import { S } from "../../lib/strings";import { apiErrorText } from "../../lib/api-error";diff --git a/packages/web/src/features/settings/uploads-section.tsx b/packages/web/src/features/settings/uploads-section.tsxindex 274d31ad..91be2119 100644--- a/packages/web/src/features/settings/uploads-section.tsx+++ b/packages/web/src/features/settings/uploads-section.tsx@@ -13,15 +13,8 @@* read the setting per request — so there is nothing to restart and nothing to warn about.*/import { useEffect, useState } from "react";-import type { ServerSettings } from "@lmliheng/penguin-server/api";-import {- Button,- Input,- SettingsSection,- toastError,- toastInfo,- toastSuccess,-} from "@lmliheng/penguin-ui";+import type { ServerSettings } from "@adelie/server/api";+import { Button, Input, SettingsSection, toastError, toastInfo, toastSuccess } from "@adelie/ui";import * as api from "../../api/endpoints";import { ApiError } from "../../api/client";import { S } from "../../lib/strings";diff --git a/packages/web/src/features/skills/skill-icon-view.tsx b/packages/web/src/features/skills/skill-icon-view.tsxindex 0a4c1a73..952aac86 100644--- a/packages/web/src/features/skills/skill-icon-view.tsx+++ b/packages/web/src/features/skills/skill-icon-view.tsx@@ -13,7 +13,7 @@* color).*/import { useMemo } from "react";-import { GlyphIcon } from "@lmliheng/penguin-ui";+import { GlyphIcon } from "@adelie/ui";import { BOOK_ICON } from "../chat/skill-use";import { sanitizeSkillIcon } from "./skill-icon";diff --git a/packages/web/src/features/skills/skill-pick-list.tsx b/packages/web/src/features/skills/skill-pick-list.tsxindex 22c8ee92..5ae085cd 100644--- a/packages/web/src/features/skills/skill-pick-list.tsx+++ b/packages/web/src/features/skills/skill-pick-list.tsx@@ -17,8 +17,8 @@* user can see.*/import { useState } from "react";-import type { SkillMetadataItem } from "@lmliheng/penguin-server/api";-import { ICON_SIZE, MenuItem, SearchInput } from "@lmliheng/penguin-ui";+import type { SkillMetadataItem } from "@adelie/server/api";+import { ICON_SIZE, MenuItem, SearchInput } from "@adelie/ui";import { S } from "../../lib/strings";import { useLocale } from "../../state/locale";import { filterSkills, localizedShortText } from "../chat/skill-use";diff --git a/packages/web/src/features/terminal/terminal-appearance.ts b/packages/web/src/features/terminal/terminal-appearance.tsindex afbcd55f..67bf8bd8 100644--- a/packages/web/src/features/terminal/terminal-appearance.ts+++ b/packages/web/src/features/terminal/terminal-appearance.ts@@ -1,7 +1,7 @@/*** The terminal's chrome palette, resolved in JS rather than through Tailwind's `dark:`.*- * That variant is anchored on the root class (`&:where(.dark, .dark *)` in @lmliheng/penguin-ui's theme.css), so+ * That variant is anchored on the root class (`&:where(.dark, .dark *)` in @adelie/ui's theme.css), so* a subtree can opt IN to dark but never out of it — and the terminal's appearance is its* own setting (see TerminalThemeMode), which means a light terminal inside a dark app has* to be expressible. Hence whole class strings picked by a resolved boolean.diff --git a/packages/web/src/features/terminal/terminal-keybar.tsx b/packages/web/src/features/terminal/terminal-keybar.tsxindex 6065a8ae..e7841fec 100644--- a/packages/web/src/features/terminal/terminal-keybar.tsx+++ b/packages/web/src/features/terminal/terminal-keybar.tsx@@ -20,7 +20,7 @@* so the copy cap shows up for exactly as long as there is something to copy, and costs* the other caps no width the rest of the time.*/-import { GlyphIcon, ICON_SIZE, ICONS } from "@lmliheng/penguin-ui";+import { GlyphIcon, ICON_SIZE, ICONS } from "@adelie/ui";import { useTerminalChrome } from "./terminal-appearance";import { S } from "../../lib/strings";import {diff --git a/packages/web/src/features/terminal/terminal-page.tsx b/packages/web/src/features/terminal/terminal-page.tsxindex 1e70abee..3eb5a2e2 100644--- a/packages/web/src/features/terminal/terminal-page.tsx+++ b/packages/web/src/features/terminal/terminal-page.tsx@@ -24,7 +24,7 @@* status dot, the "+") stay, each naming itself.*/import { useCallback, useMemo, useState } from "react";-import { ConfirmModal, GlyphIcon, ICONS, ICON_SIZE } from "@lmliheng/penguin-ui";+import { ConfirmModal, GlyphIcon, ICONS, ICON_SIZE } from "@adelie/ui";import { S } from "../../lib/strings";import { useCoarsePointer } from "../../lib/use-coarse-pointer";import { useVisualViewportHeight } from "../../lib/use-visual-viewport-height";diff --git a/packages/web/src/features/terminal/terminal-view.tsx b/packages/web/src/features/terminal/terminal-view.tsxindex a8820a1f..49015efd 100644--- a/packages/web/src/features/terminal/terminal-view.tsx+++ b/packages/web/src/features/terminal/terminal-view.tsx@@ -66,7 +66,7 @@ export type TerminalStatus = "connecting" | "ready" | "exited" | "error";* The screen's own palette, one per appearance. Two things matter here.** The surface colours are the app's, not a terminal's: `#121212`/`#ffffff` are the default- * theme's canvas (`themes/github.css` in @lmliheng/penguin-ui) and its neutral ink, and the+ * theme's canvas (`themes/github.css` in @adelie/ui) and its neutral ink, and the* selection matches its `::selection`. A panel docked inside the app that brought its* own charcoal along read as a foreign window sitting on top of it.*diff --git a/packages/web/src/features/traces/timeline-chart.tsx b/packages/web/src/features/traces/timeline-chart.tsxindex 00c9722f..f3c35433 100644--- a/packages/web/src/features/traces/timeline-chart.tsx+++ b/packages/web/src/features/traces/timeline-chart.tsx@@ -24,13 +24,9 @@*/import { Fragment, useCallback, useLayoutEffect, useMemo, useRef, useState } from "react";import type { CSSProperties, PointerEvent as ReactPointerEvent, ReactNode } from "react";-import type {- TraceModelSegment,- TraceOtherSpan,- TraceToolSpan,-} from "@lmliheng/penguin-server/api";-import { Dot, Legend, TimelineBar, namedHint } from "@lmliheng/penguin-ui";-import type { ChartPaint, LegendItem } from "@lmliheng/penguin-ui";+import type { TraceModelSegment, TraceOtherSpan, TraceToolSpan } from "@adelie/server/api";+import { Dot, Legend, TimelineBar, namedHint } from "@adelie/ui";+import type { ChartPaint, LegendItem } from "@adelie/ui";import { S } from "../../lib/strings";import { humanizeDuration } from "../../lib/format";import { packToolLanes, toolSpanBounds } from "./lane-packing";diff --git a/packages/web/src/features/traces/trace-event-row.tsx b/packages/web/src/features/traces/trace-event-row.tsxindex d4893bd5..8d49146f 100644--- a/packages/web/src/features/traces/trace-event-row.tsx+++ b/packages/web/src/features/traces/trace-event-row.tsx@@ -19,11 +19,11 @@ import {REMARK_PLUGINS,RequiredMark,ZoomableImage,-} from "@lmliheng/penguin-ui";-import type { BadgeStyle } from "@lmliheng/penguin-ui";+} from "@adelie/ui";+import type { BadgeStyle } from "@adelie/ui";import ReactMarkdown from "react-markdown";import { S } from "../../lib/strings";-import type { OmniMessage } from "@lmliheng/penguin-core/omnimessage";+import type { OmniMessage } from "@adelie/core/omnimessage";import { formatTime, humanizeTokens } from "../../lib/format";import { stopReasonTone } from "../../lib/stop-reason-tone";diff --git a/packages/web/src/features/traces/trace-file-view.tsx b/packages/web/src/features/traces/trace-file-view.tsxindex 72656cf7..3434026c 100644--- a/packages/web/src/features/traces/trace-file-view.tsx+++ b/packages/web/src/features/traces/trace-file-view.tsx@@ -31,14 +31,14 @@*/import { useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";import type { RefObject } from "react";-import type { OmniMessage } from "@lmliheng/penguin-core/omnimessage";+import type { OmniMessage } from "@adelie/core/omnimessage";import type {TraceAnalysisResponse,TraceModelSegment,TraceOtherSpan,TraceTaskStats,TraceToolSpan,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import {Badge,Card,@@ -48,7 +48,7 @@ import {Skeleton,StatChip,TokenDonut,-} from "@lmliheng/penguin-ui";+} from "@adelie/ui";import * as api from "../../api/endpoints";import { S } from "../../lib/strings";import { apiErrorText } from "../../lib/api-error";diff --git a/packages/web/src/features/traces/trace-panel.tsx b/packages/web/src/features/traces/trace-panel.tsxindex 11d751fe..568fa162 100644--- a/packages/web/src/features/traces/trace-panel.tsx+++ b/packages/web/src/features/traces/trace-panel.tsx@@ -14,8 +14,8 @@* refresh — while a hidden tab fetches nothing. trace-refresh.ts states the rule exactly.*/import { useEffect, useRef, useState } from "react";-import type { SessionInfo } from "@lmliheng/penguin-server/api";-import { DownloadIcon, EmptyState, ICON_SIZE, NoticeStrip, Skeleton } from "@lmliheng/penguin-ui";+import type { SessionInfo } from "@adelie/server/api";+import { DownloadIcon, EmptyState, ICON_SIZE, NoticeStrip, Skeleton } from "@adelie/ui";import * as api from "../../api/endpoints";import { S } from "../../lib/strings";import { apiErrorText } from "../../lib/api-error";diff --git a/packages/web/src/features/traces/trace-rounds.ts b/packages/web/src/features/traces/trace-rounds.tsindex d7ddec1d..3563ccfb 100644--- a/packages/web/src/features/traces/trace-rounds.ts+++ b/packages/web/src/features/traces/trace-rounds.ts@@ -9,8 +9,8 @@* the panel. Round cards are drawn a page at a time from the newest end, so the list itself* stays a bounded number of heads however long the file is.*/-import type { OmniMessage } from "@lmliheng/penguin-core/omnimessage";-import type { TraceEventsResponse } from "@lmliheng/penguin-server/api";+import type { OmniMessage } from "@adelie/core/omnimessage";+import type { TraceEventsResponse } from "@adelie/server/api";/** Round cards drawn per step: the panel opens on the newest this many, and each "earlier" click adds this many more. */export const TRACE_ROUNDS_PAGE = 50;diff --git a/packages/web/src/features/usage/errors-panel.tsx b/packages/web/src/features/usage/errors-panel.tsxindex 590a3f71..2a5cef9a 100644--- a/packages/web/src/features/usage/errors-panel.tsx+++ b/packages/web/src/features/usage/errors-panel.tsx@@ -14,8 +14,8 @@* The outer frame is provided by the caller's ChartCard (full width, below the four business charts).*/import { useEffect, useState } from "react";-import type { UsageErrorItem, UsageErrors } from "@lmliheng/penguin-server/api";-import { Badge, ConfirmModal, Pager, toastError, toastSuccess } from "@lmliheng/penguin-ui";+import type { UsageErrorItem, UsageErrors } from "@adelie/server/api";+import { Badge, ConfirmModal, Pager, toastError, toastSuccess } from "@adelie/ui";import * as api from "../../api/endpoints";import { S } from "../../lib/strings";import { apiErrorText } from "../../lib/api-error";diff --git a/packages/web/src/features/usage/trend-chart.tsx b/packages/web/src/features/usage/trend-chart.tsxindex ef240f0c..6383c524 100644--- a/packages/web/src/features/usage/trend-chart.tsx+++ b/packages/web/src/features/usage/trend-chart.tsx@@ -18,7 +18,7 @@* skipped an interval.*/import { useState } from "react";-import type { UsageGranularity, UsageSeriesPoint } from "@lmliheng/penguin-server/api";+import type { UsageGranularity, UsageSeriesPoint } from "@adelie/server/api";import {ChartArea,ChartFrame,@@ -27,8 +27,8 @@ import {makeGeom,seriesPoints,useChartWidth,-} from "@lmliheng/penguin-ui";-import type { ChartPaint } from "@lmliheng/penguin-ui";+} from "@adelie/ui";+import type { ChartPaint } from "@adelie/ui";import { formatMoney } from "../../lib/format";import type { Currency } from "../../state/theme";import { bucketAxisLabel, bucketFullLabel } from "./usage-controls";diff --git a/packages/web/src/features/usage/usage-charts.tsx b/packages/web/src/features/usage/usage-charts.tsxindex 16e7d689..8cd52bd9 100644--- a/packages/web/src/features/usage/usage-charts.tsx+++ b/packages/web/src/features/usage/usage-charts.tsx@@ -37,7 +37,7 @@* answers the pointer wherever it runs.*/import { useState } from "react";-import type { UsageGranularity, UsageSeriesPoint } from "@lmliheng/penguin-server/api";+import type { UsageGranularity, UsageSeriesPoint } from "@adelie/server/api";import {ChartBar,ChartBarHit,@@ -56,8 +56,8 @@ import {seriesPoints,stackSegments,useChartWidth,-} from "@lmliheng/penguin-ui";-import type { ChartPaint, LegendItem, TokenBucketKey } from "@lmliheng/penguin-ui";+} from "@adelie/ui";+import type { ChartPaint, LegendItem, TokenBucketKey } from "@adelie/ui";import { S } from "../../lib/strings";import { formatPercent, humanizeTokens } from "../../lib/format";import { NEUTRAL_SERIES } from "../../lib/category-colors";diff --git a/packages/web/src/features/usage/usage-controls.ts b/packages/web/src/features/usage/usage-controls.tsindex fbffd518..4491ce41 100644--- a/packages/web/src/features/usage/usage-controls.ts+++ b/packages/web/src/features/usage/usage-controls.ts@@ -11,7 +11,7 @@* "last 24 hours" serves hours, and every calendar range is drawn per day,* week or month by its length.*/-import type { UsageGranularity, UsageSeriesPoint } from "@lmliheng/penguin-server/api";+import type { UsageGranularity, UsageSeriesPoint } from "@adelie/server/api";import { cacheHitRate } from "../../lib/format";import { SERIES_COLORS } from "../../lib/category-colors";diff --git a/packages/web/src/features/usage/usage-page.tsx b/packages/web/src/features/usage/usage-page.tsxindex ecfcda4f..106abf6b 100644--- a/packages/web/src/features/usage/usage-page.tsx+++ b/packages/web/src/features/usage/usage-page.tsx@@ -27,8 +27,8 @@*/import { useCallback, useEffect, useMemo, useState } from "react";import { useSearchParams } from "react-router";-import type { ModelRefDto, UsageBucket, UsageResponse } from "@lmliheng/penguin-server/api";-import { Input, PageFrame, PageHeader, Select, Skeleton, TodoNotice } from "@lmliheng/penguin-ui";+import type { ModelRefDto, UsageBucket, UsageResponse } from "@adelie/server/api";+import { Input, PageFrame, PageHeader, Select, Skeleton, TodoNotice } from "@adelie/ui";import * as api from "../../api/endpoints";import { S } from "../../lib/strings";import { apiErrorText } from "../../lib/api-error";@@ -37,7 +37,7 @@ import { useUpdateBadges } from "../../lib/use-update-badges";import { dismissTodo } from "../../lib/todo-dismissals";import { refreshProjectTodos } from "../../lib/use-project-todos";import { formatMoney, humanizeTokens } from "../../lib/format";-import { catalogEntryFor } from "@lmliheng/penguin-core/model-catalog";+import { catalogEntryFor } from "@adelie/core/model-catalog";import { useProject } from "../../state/project";import { useTheme } from "../../state/theme";import { TrendChart } from "./trend-chart";diff --git a/packages/web/src/features/workflows/workflow-app-page.tsx b/packages/web/src/features/workflows/workflow-app-page.tsxindex ff7b1ad9..f82c1f7a 100644--- a/packages/web/src/features/workflows/workflow-app-page.tsx+++ b/packages/web/src/features/workflows/workflow-app-page.tsx@@ -12,7 +12,7 @@*/import { useEffect, useMemo, useState } from "react";import { useNavigate, useParams, useSearchParams } from "react-router";-import type { PaletteAction } from "@lmliheng/penguin-ui";+import type { PaletteAction } from "@adelie/ui";import * as api from "../../api/endpoints";import { useShortcutLabel } from "../../lib/shortcuts/use-keymap";import { S } from "../../lib/strings";diff --git a/packages/web/src/features/workflows/workflow-tabs.tsx b/packages/web/src/features/workflows/workflow-tabs.tsxindex e5afc7b6..c45adb51 100644--- a/packages/web/src/features/workflows/workflow-tabs.tsx+++ b/packages/web/src/features/workflows/workflow-tabs.tsx@@ -10,8 +10,8 @@*/import { useCallback, useEffect, useRef, useState } from "react";import { useNavigate } from "react-router";-import type { WorkflowInfo, WorkflowVersion } from "@lmliheng/penguin-server/api";-import { Button, NoticeStrip } from "@lmliheng/penguin-ui";+import type { WorkflowInfo, WorkflowVersion } from "@adelie/server/api";+import { Button, NoticeStrip } from "@adelie/ui";import * as api from "../../api/endpoints";import { formatDateTime } from "../../lib/format";import { useShortcutLabel } from "../../lib/shortcuts/use-keymap";diff --git a/packages/web/src/lib/account-menu.ts b/packages/web/src/lib/account-menu.tsindex a7db84a1..fabdc2d8 100644--- a/packages/web/src/lib/account-menu.ts+++ b/packages/web/src/lib/account-menu.ts@@ -6,7 +6,7 @@* nothing renders). The rule therefore lives here as a pure predicate that the menu* consumes — see test/account-menu.test.ts.*/-import type { MeResponse } from "@lmliheng/penguin-server/api";+import type { MeResponse } from "@adelie/server/api";/** The two fields of `GET /api/me` that describe who is asking, and from where. */export interface AccountMenuSession {diff --git a/packages/web/src/lib/attachments.ts b/packages/web/src/lib/attachments.tsindex e05fc167..010d91d0 100644--- a/packages/web/src/lib/attachments.ts+++ b/packages/web/src/lib/attachments.ts@@ -24,7 +24,7 @@ import {ATTACHED_IMAGE_PREFIX,matchAttachedFileLine,matchAttachedImageLine,-} from "@lmliheng/penguin-core/markers";+} from "@adelie/core/markers";export interface ParsedAttachments {/** Body text with restored attachment lines removed (unrecognized lines are kept). */diff --git a/packages/web/src/lib/benchmark-merge.ts b/packages/web/src/lib/benchmark-merge.tsindex 97e4f085..e2e17eeb 100644--- a/packages/web/src/lib/benchmark-merge.ts+++ b/packages/web/src/lib/benchmark-merge.ts@@ -29,7 +29,7 @@ import type {BenchmarkCaseSummary,BenchmarkEvaluation,BenchmarkSummary,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";/** One server's answer about a Project's Agents, with the machine that gave it. */export interface AgentSource {diff --git a/packages/web/src/lib/completion-notify.ts b/packages/web/src/lib/completion-notify.tsindex 38b01222..7f55ad8f 100644--- a/packages/web/src/lib/completion-notify.ts+++ b/packages/web/src/lib/completion-notify.ts@@ -10,7 +10,7 @@* list snapshot racing the live SSE flip briefly resurrects "running" and would* otherwise double-notify the same finish.*/-import type { SessionStatus } from "@lmliheng/penguin-server/api";+import type { SessionStatus } from "@adelie/server/api";export interface ObservedSession {sessionId: string;diff --git a/packages/web/src/lib/context.ts b/packages/web/src/lib/context.tsindex 387ea7cc..620075f0 100644--- a/packages/web/src/lib/context.ts+++ b/packages/web/src/lib/context.ts@@ -20,10 +20,7 @@* rounding or clamping mistake in a gesture that rewrites an Agent's configuration is not* something a render test would catch.*/-import {- DEFAULT_MAX_CONTEXT_LENGTH,- effectiveMaxContextLength,-} from "@lmliheng/penguin-core/context-limits";+import { DEFAULT_MAX_CONTEXT_LENGTH, effectiveMaxContextLength } from "@adelie/core/context-limits";/** Default upper bound when a model has no configured context window. */export const DEFAULT_CONTEXT_WINDOW = 128000;diff --git a/packages/web/src/lib/desktop-update.ts b/packages/web/src/lib/desktop-update.tsindex e52f1898..6f2afc1e 100644--- a/packages/web/src/lib/desktop-update.ts+++ b/packages/web/src/lib/desktop-update.ts@@ -4,7 +4,7 @@* use-desktop-update.ts owns the polling and the armed watch; these keep the decisions* pure (vitest runs node-only here, so nothing renders — same split as account-menu.ts).*/-import type { DesktopUpdateStatus } from "@lmliheng/penguin-server/api";+import type { DesktopUpdateStatus } from "@adelie/server/api";import { isDesktopShellWindow } from "./account-menu";import type { AccountMenuSession } from "./account-menu";diff --git a/packages/web/src/lib/install-scope.ts b/packages/web/src/lib/install-scope.tsindex b74fb039..a5462ed5 100644--- a/packages/web/src/lib/install-scope.ts+++ b/packages/web/src/lib/install-scope.ts@@ -99,7 +99,7 @@ export const KEY_RULES: readonly KeyRule[] = [kind: "exact",key: "penguin.themeId",scope: "browser",- why: "Which theme renders the app (the key lives in @lmliheng/penguin-ui/boot); pure appearance.",+ why: "Which theme renders the app (the key lives in @adelie/ui/boot); pure appearance.",},{kind: "exact",diff --git a/packages/web/src/lib/machine-cache.ts b/packages/web/src/lib/machine-cache.tsindex 2db08eb0..480eb9a8 100644--- a/packages/web/src/lib/machine-cache.ts+++ b/packages/web/src/lib/machine-cache.ts@@ -21,7 +21,7 @@* the same as having nothing — in every one of those cases the page degrades to exactly what* it did before there was a cache.*/-import type { AgentSummary, SessionInfo } from "@lmliheng/penguin-server/api";+import type { AgentSummary, SessionInfo } from "@adelie/server/api";const SESSIONS_PREFIX = "penguin.machineSessions.";const AGENTS_PREFIX = "penguin.machineAgents.";diff --git a/packages/web/src/lib/nav-icons.ts b/packages/web/src/lib/nav-icons.tsindex c885ffd0..57afa624 100644--- a/packages/web/src/lib/nav-icons.ts+++ b/packages/web/src/lib/nav-icons.ts@@ -4,7 +4,7 @@* drawings live in the shared registry, named for what they draw; which drawing stands for which* page is the app's knowledge, so the map lives here.*/-import { ICONS } from "@lmliheng/penguin-ui";+import { ICONS } from "@adelie/ui";export const NAV_ICONS = {/** Agents: the robot head, the one glyph in the app that means "agent". */diff --git a/packages/web/src/lib/omni/compaction-summary.ts b/packages/web/src/lib/omni/compaction-summary.tsindex ef3ba218..3a691029 100644--- a/packages/web/src/lib/omni/compaction-summary.ts+++ b/packages/web/src/lib/omni/compaction-summary.ts@@ -9,7 +9,7 @@* mid-stream (opening tag written, closing tag not yet) therefore reads as plain text* rather than disappearing until the model closes the block.*/-import { extractSummary } from "@lmliheng/penguin-core/markers";+import { extractSummary } from "@adelie/core/markers";import type { CompactionItem } from "./stream-model";/**diff --git a/packages/web/src/lib/omni/stream-controller.ts b/packages/web/src/lib/omni/stream-controller.tsindex a32bc83b..f099321f 100644--- a/packages/web/src/lib/omni/stream-controller.ts+++ b/packages/web/src/lib/omni/stream-controller.ts@@ -29,8 +29,8 @@* the buffer replays on top — so the in-progress message survives a refresh* with its streamed prefix intact and keeps streaming.*/-import { isEventMessage, isPartialPayload } from "@lmliheng/penguin-core/omnimessage";-import type { OmniMessage, ToolCallPayload } from "@lmliheng/penguin-core/omnimessage";+import { isEventMessage, isPartialPayload } from "@adelie/core/omnimessage";+import type { OmniMessage, ToolCallPayload } from "@adelie/core/omnimessage";import type {GoalServerEvent,MessagesLiveTail,@@ -40,7 +40,7 @@ import type {PendingSteeringInfo,ServerEvent,SessionStatus,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import {approvalKey,buildDedupIndex,diff --git a/packages/web/src/lib/omni/stream-model.ts b/packages/web/src/lib/omni/stream-model.tsindex f5194b3a..78a8e5eb 100644--- a/packages/web/src/lib/omni/stream-model.ts+++ b/packages/web/src/lib/omni/stream-model.ts@@ -56,7 +56,7 @@ import {normalizeSessionSource,parseBackgroundTaskDoneMessage,parseUserSteeringText,-} from "@lmliheng/penguin-core/omnimessage";+} from "@adelie/core/omnimessage";import type {ApprovalDecision,CompactionMode,@@ -69,8 +69,8 @@ import type {SessionSource,StopReason,TokenUsagePayload,-} from "@lmliheng/penguin-core/omnimessage";-import type { TracePosition } from "@lmliheng/penguin-server/api";+} from "@adelie/core/omnimessage";+import type { TracePosition } from "@adelie/server/api";import {addLlmDuration,addToolExecution,diff --git a/packages/web/src/lib/omni/task-stats.ts b/packages/web/src/lib/omni/task-stats.tsindex f9902c78..8ffc753c 100644--- a/packages/web/src/lib/omni/task-stats.ts+++ b/packages/web/src/lib/omni/task-stats.ts@@ -32,7 +32,7 @@** Pure logic module, no React dependency; driven by stream-model.ts.*/-import type { TokenUsagePayload } from "@lmliheng/penguin-core/omnimessage";+import type { TokenUsagePayload } from "@adelie/core/omnimessage";import { computeTps, formatTps, humanizeTokens } from "../format";/** Token three buckets (cached input / uncached input / output). */diff --git a/packages/web/src/lib/permission-level.ts b/packages/web/src/lib/permission-level.tsindex 7d57fee2..dee3a6e7 100644--- a/packages/web/src/lib/permission-level.ts+++ b/packages/web/src/lib/permission-level.ts@@ -10,12 +10,8 @@* tool call approved without asking.* - `partial`: some write permission, with something still holding it back.*/-import type {- ApprovalMode,- SessionSandbox,- SessionSandboxPreset,-} from "@lmliheng/penguin-server/api";-import { ICONS } from "@lmliheng/penguin-ui";+import type { ApprovalMode, SessionSandbox, SessionSandboxPreset } from "@adelie/server/api";+import { ICONS } from "@adelie/ui";import type { Tone } from "./tone";export type PermissionLevel = "all" | "partial" | "read-only" | "off";diff --git a/packages/web/src/lib/profile-form.ts b/packages/web/src/lib/profile-form.tsindex 3b8a891c..5aeb9506 100644--- a/packages/web/src/lib/profile-form.ts+++ b/packages/web/src/lib/profile-form.ts@@ -7,7 +7,7 @@* runs in Node with no DOM (the same reason `settings-sections.ts` holds the dialog's* visibility rules rather than the dialog), so the rules live here rather than inside the JSX.*/-import type { UserInfo } from "@lmliheng/penguin-server/api";+import type { UserInfo } from "@adelie/server/api";/** What the nickname row's two buttons would do, given the stored profile and the typed text. */export interface ProfileControls {diff --git a/packages/web/src/lib/sandbox-backend-prompt.ts b/packages/web/src/lib/sandbox-backend-prompt.tsindex e1b5ff92..02cf32c0 100644--- a/packages/web/src/lib/sandbox-backend-prompt.ts+++ b/packages/web/src/lib/sandbox-backend-prompt.ts@@ -9,7 +9,7 @@* a server. Storage that is unavailable or throws (a private window, blocked site data) reads* as "never dismissed" and drops the write: the prompt then asks again, which is the safe side.*/-import type { PluginConfigEntry } from "@lmliheng/penguin-server/api";+import type { PluginConfigEntry } from "@adelie/server/api";/** localStorage key: a JSON array of the machine keys whose prompt was dismissed for good. */export const BACKEND_PROMPT_DISMISSED_KEY = "penguin.sandboxBackendPromptDismissed";diff --git a/packages/web/src/lib/selection-menu.ts b/packages/web/src/lib/selection-menu.tsindex ef3d2187..f0833ae1 100644--- a/packages/web/src/lib/selection-menu.ts+++ b/packages/web/src/lib/selection-menu.ts@@ -5,8 +5,8 @@* keyboard asked for it, and what an excerpt becomes once it is added to the conversation.* Kept free of the DOM so they can be tested in this package's node-only vitest environment.*/-import { isLongPressPointer } from "@lmliheng/penguin-ui";-import type { AnchorRect } from "@lmliheng/penguin-ui";+import { isLongPressPointer } from "@adelie/ui";+import type { AnchorRect } from "@adelie/ui";import type { ExcerptReference } from "./workspace-tree";/** What the rules need to know about a gesture and the selection it found. */diff --git a/packages/web/src/lib/session-activity.ts b/packages/web/src/lib/session-activity.tsindex 5012bf12..a2c63b81 100644--- a/packages/web/src/lib/session-activity.ts+++ b/packages/web/src/lib/session-activity.ts@@ -1,4 +1,4 @@-import type { SessionInfo, SessionStatus } from "@lmliheng/penguin-server/api";+import type { SessionInfo, SessionStatus } from "@adelie/server/api";import { isSessionUnread } from "./session-seen";import type { SessionSeenState } from "./session-seen";import { S } from "./strings";diff --git a/packages/web/src/lib/session-grouping.ts b/packages/web/src/lib/session-grouping.tsindex 7ef67d71..32886066 100644--- a/packages/web/src/lib/session-grouping.ts+++ b/packages/web/src/lib/session-grouping.ts@@ -10,11 +10,7 @@* those is single-use, so per-path groups would be one-session noise — they are all* merged into ONE trailing "temporary workspaces" group instead.*/-import type {- SessionCategory,- SessionCategoryCounts,- SessionInfo,-} from "@lmliheng/penguin-server/api";+import type { SessionCategory, SessionCategoryCounts, SessionInfo } from "@adelie/server/api";/** Group key of the merged temporary-workspace group ("\0" can never appear in a filesystem path, so it never collides with a real Workspace). */export const TEMP_WORKSPACE_GROUP_KEY = "\0temp-workspaces";diff --git a/packages/web/src/lib/session-source-mark.ts b/packages/web/src/lib/session-source-mark.tsindex ca13fce9..ff094216 100644--- a/packages/web/src/lib/session-source-mark.ts+++ b/packages/web/src/lib/session-source-mark.ts@@ -7,8 +7,8 @@* of a scheduled task still to fire into a conversation (the row's `scheduledLabel`), and one* row must never show two alarms that mean different things.*/-import type { SessionInfo, SessionSource } from "@lmliheng/penguin-server/api";-import { ICONS } from "@lmliheng/penguin-ui";+import type { SessionInfo, SessionSource } from "@adelie/server/api";+import { ICONS } from "@adelie/ui";import { sessionCategory } from "./session-grouping";import { S } from "./strings";diff --git a/packages/web/src/lib/shortcuts/types.ts b/packages/web/src/lib/shortcuts/types.tsindex 4a20ce13..3654b02a 100644--- a/packages/web/src/lib/shortcuts/types.ts+++ b/packages/web/src/lib/shortcuts/types.ts@@ -82,7 +82,7 @@ export type Keymap = ReadonlyMap<CommandId, Chord | null>;* row equal to its default is absent. Unknown ids are carried through on write and never* applied, so a build that predates a command keeps its binding.*/-export type { StoredKeybindings } from "@lmliheng/penguin-server/api";+export type { StoredKeybindings } from "@adelie/server/api";/** The fields of a `KeyboardEvent` the matcher reads; React's synthetic event and a test literal both fit. */export interface KeyLike {diff --git a/packages/web/src/lib/stat-icons.ts b/packages/web/src/lib/stat-icons.tsindex 4b3b296a..1451eb2c 100644--- a/packages/web/src/lib/stat-icons.ts+++ b/packages/web/src/lib/stat-icons.ts@@ -7,7 +7,7 @@* made it easy to flip the direction in one place and leave the others wrong — so the choice is* made here once, and the drawings live in the shared registry.*/-import { ICONS } from "@lmliheng/penguin-ui";+import { ICONS } from "@adelie/ui";export const STAT_ICONS = {/** Input (arrow rising from the baseline: tokens sent up to the model) */diff --git a/packages/web/src/lib/stop-reason-tone.ts b/packages/web/src/lib/stop-reason-tone.tsindex 933eaad8..18b5098e 100644--- a/packages/web/src/lib/stop-reason-tone.ts+++ b/packages/web/src/lib/stop-reason-tone.ts@@ -1,4 +1,4 @@-import type { ToneName } from "@lmliheng/penguin-ui";+import type { ToneName } from "@adelie/ui";/*** A Task's `stop_reason` as a badge tone. A completed run usually shows no badge at all; andiff --git a/packages/web/src/lib/todo-badges.ts b/packages/web/src/lib/todo-badges.tsindex 52c6eb65..2068b978 100644--- a/packages/web/src/lib/todo-badges.ts+++ b/packages/web/src/lib/todo-badges.ts@@ -25,7 +25,7 @@* Pure decisions only (vitest runs node-only here, so nothing renders and nothing fetches);* `use-project-todos.ts` wires them to the live stores and turns a count into localized copy.*/-import type { AgentSummary, UsageErrorsPage } from "@lmliheng/penguin-server/api";+import type { AgentSummary, UsageErrorsPage } from "@adelie/server/api";import type { CatalogDelta } from "../features/models/catalog-sync";/** The four trails, in sidebar order. Also the key each dismissal is stored under. */diff --git a/packages/web/src/lib/todo-dismissals.ts b/packages/web/src/lib/todo-dismissals.tsindex ece03a01..fad9838f 100644--- a/packages/web/src/lib/todo-dismissals.ts+++ b/packages/web/src/lib/todo-dismissals.ts@@ -24,7 +24,7 @@import { useEffect } from "react";import { createStore } from "zustand/vanilla";import { useStore } from "zustand/react";-import { toastError } from "@lmliheng/penguin-ui";+import { toastError } from "@adelie/ui";import * as api from "../api/endpoints";import { apiErrorText } from "./api-error";import type { TodoKey } from "./todo-badges";diff --git a/packages/web/src/lib/tone.ts b/packages/web/src/lib/tone.tsindex 14a27dac..4942668e 100644--- a/packages/web/src/lib/tone.ts+++ b/packages/web/src/lib/tone.ts@@ -41,7 +41,7 @@ export type Tone = "busy" | "attention" | "success" | "link" | "danger" | "muted/*** Ink for a glyph or a line of status text. Measured as WCAG 2.x contrast ratios against the* four surfaces these marks actually sit on — white and gray-50 in light (chat surfaces and the- * sidebar), and the neutral scale the default theme overrides for dark (`@lmliheng/penguin-ui`+ * sidebar), and the neutral scale the default theme overrides for dark (`@adelie/ui`* `themes/github.css`): gray-950 `#000000` and gray-900 `#0d0d0d`. The lower number of each pair* is the sidebar, which is the worse case in both themes:*diff --git a/packages/web/src/lib/ui-strings.ts b/packages/web/src/lib/ui-strings.tsindex eb7d8a63..03364f6d 100644--- a/packages/web/src/lib/ui-strings.ts+++ b/packages/web/src/lib/ui-strings.ts@@ -6,7 +6,7 @@* Each value is read from the dictionary itself rather than from the live `S`, so the two objects* are built once and keep their identity across renders.*/-import type { UiStrings } from "@lmliheng/penguin-ui";+import type { UiStrings } from "@adelie/ui";import { zh } from "./strings";import type { Strings } from "./strings";import { en } from "./strings-en";diff --git a/packages/web/src/lib/update-flow.ts b/packages/web/src/lib/update-flow.tsindex 9c269407..8ab72fdd 100644--- a/packages/web/src/lib/update-flow.ts+++ b/packages/web/src/lib/update-flow.ts@@ -23,7 +23,7 @@ import type {UpdateJobPhase,UpdateJobStatus,VersionResponse,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import type { AccountMenuSession } from "./account-menu";import { offersClientUpdate } from "./desktop-update";import { updateCheckOutcome } from "./use-version-info";diff --git a/packages/web/src/lib/use-desktop-update.ts b/packages/web/src/lib/use-desktop-update.tsindex 4419866d..f4f708f7 100644--- a/packages/web/src/lib/use-desktop-update.ts+++ b/packages/web/src/lib/use-desktop-update.ts@@ -12,7 +12,7 @@* terminal snapshot (up to date, downloaded) cannot change between clicks.*/import { useEffect, useReducer } from "react";-import type { DesktopUpdateStatus } from "@lmliheng/penguin-server/api";+import type { DesktopUpdateStatus } from "@adelie/server/api";import * as api from "../api/endpoints";import { clientCheckSettle } from "./desktop-update";import type { ClientCheckSettle } from "./desktop-update";diff --git a/packages/web/src/lib/use-project-todos.ts b/packages/web/src/lib/use-project-todos.tsindex fcaf5e99..b0996551 100644--- a/packages/web/src/lib/use-project-todos.ts+++ b/packages/web/src/lib/use-project-todos.ts@@ -27,7 +27,7 @@* from after it.*/import { useEffect, useState } from "react";-import type { ModelsResponse, UsageErrorsPage } from "@lmliheng/penguin-server/api";+import type { ModelsResponse, UsageErrorsPage } from "@adelie/server/api";import * as api from "../api/endpoints";import { presetRange } from "../features/usage/usage-controls";diff --git a/packages/web/src/lib/use-update-flow.ts b/packages/web/src/lib/use-update-flow.tsindex ef53c7c2..eacd81ba 100644--- a/packages/web/src/lib/use-update-flow.ts+++ b/packages/web/src/lib/use-update-flow.ts@@ -13,8 +13,8 @@*/import { useEffect, useRef } from "react";import { createStore, useStore } from "zustand";-import type { UpdateJobStatus } from "@lmliheng/penguin-server/api";-import { toastError, toastInfo, toastSuccess } from "@lmliheng/penguin-ui";+import type { UpdateJobStatus } from "@adelie/server/api";+import { toastError, toastInfo, toastSuccess } from "@adelie/ui";import * as api from "../api/endpoints";import { S } from "./strings";import { apiErrorText } from "./api-error";diff --git a/packages/web/src/lib/use-version-info.ts b/packages/web/src/lib/use-version-info.tsindex ecb79ea9..5242b564 100644--- a/packages/web/src/lib/use-version-info.ts+++ b/packages/web/src/lib/use-version-info.ts@@ -15,7 +15,7 @@* every mounted hook.*/import { useEffect, useState } from "react";-import type { UpdateCheckResponse, VersionResponse } from "@lmliheng/penguin-server/api";+import type { UpdateCheckResponse, VersionResponse } from "@adelie/server/api";import * as api from "../api/endpoints";let versionCache: VersionResponse | null = null;diff --git a/packages/web/src/lib/workflow-tabs.ts b/packages/web/src/lib/workflow-tabs.tsindex 8e40cd58..229c88db 100644--- a/packages/web/src/lib/workflow-tabs.ts+++ b/packages/web/src/lib/workflow-tabs.ts@@ -12,7 +12,7 @@* disappearing (folder removed, Agent switched) falls back to Chat rather than leaving* the strip pointing at nothing.*/-import type { WorkflowInfo } from "@lmliheng/penguin-server/api";+import type { WorkflowInfo } from "@adelie/server/api";import { apiUrl } from "./server-context";export interface WorkflowTab {diff --git a/packages/web/src/lib/workspace-machines.ts b/packages/web/src/lib/workspace-machines.tsindex f3caf6c5..e2d5948f 100644--- a/packages/web/src/lib/workspace-machines.ts+++ b/packages/web/src/lib/workspace-machines.ts@@ -7,7 +7,7 @@* that silently omits its answer is indistinguishable from a broken feature. Identified by* machine id and labelled by ssh alias.*/-import type { MachineInfo, MachinesResponse } from "@lmliheng/penguin-server/api";+import type { MachineInfo, MachinesResponse } from "@adelie/server/api";import { S } from "./strings";/** One machine a workspace can live on, and whether it can be browsed right now. */diff --git a/packages/web/src/lib/workspace-tree.ts b/packages/web/src/lib/workspace-tree.tsindex 8c7ec41d..cb9a93df 100644--- a/packages/web/src/lib/workspace-tree.ts+++ b/packages/web/src/lib/workspace-tree.ts@@ -17,8 +17,8 @@* the fenced block a preview selection becomes, and where each of them may be spliced* into a draft that is already half typed.*/-import type { FileBrowserPreviewKind, FileTreeRow } from "@lmliheng/penguin-ui";-import type { WorkspaceFileEntry, WorkspaceSearchHit } from "@lmliheng/penguin-server/api";+import type { FileBrowserPreviewKind, FileTreeRow } from "@adelie/ui";+import type { WorkspaceFileEntry, WorkspaceSearchHit } from "@adelie/server/api";import { joinWorkspacePath } from "./file-path";// ------------------------------------------------------------------------------- layoutdiff --git a/packages/web/src/main.tsx b/packages/web/src/main.tsxindex 83450021..60ccceb0 100644--- a/packages/web/src/main.tsx+++ b/packages/web/src/main.tsx@@ -21,7 +21,7 @@*/import { StrictMode } from "react";import { createRoot } from "react-dom/client";-import { hasEscLayers } from "@lmliheng/penguin-ui";+import { hasEscLayers } from "@adelie/ui";import { App } from "./app";import { bootInstallScope, watchInstallScope } from "./lib/install-scope";// The global shortcut dispatcher installs itself at module evaluation (a React effect woulddiff --git a/packages/web/src/pages/login.tsx b/packages/web/src/pages/login.tsxindex d05d4c88..b7b9f333 100644--- a/packages/web/src/pages/login.tsx+++ b/packages/web/src/pages/login.tsx@@ -10,15 +10,7 @@*/import { useEffect, useState } from "react";import { useNavigate, useSearchParams } from "react-router";-import {- Button,- Input,- Modal,- Notice,- PasswordInput,- AppLogo,- Segmented,-} from "@lmliheng/penguin-ui";+import { Button, Input, Modal, Notice, PasswordInput, AppLogo, Segmented } from "@adelie/ui";import { S } from "../lib/strings";import { apiErrorText } from "../lib/api-error";import { useDocumentTitle } from "../lib/use-document-title";diff --git a/packages/web/src/state/auth.tsx b/packages/web/src/state/auth.tsxindex 091aee95..85479e35 100644--- a/packages/web/src/state/auth.tsx+++ b/packages/web/src/state/auth.tsx@@ -6,7 +6,7 @@*/import { createContext, useCallback, useContext, useEffect, useState } from "react";import type { ReactNode } from "react";-import type { MeResponse, UploadLimits, UserInfo } from "@lmliheng/penguin-server/api";+import type { MeResponse, UploadLimits, UserInfo } from "@adelie/server/api";import * as api from "../api/endpoints";import { ApiError, setUnauthorizedHandler } from "../api/client";import { probeSession } from "../api/session-probe";diff --git a/packages/web/src/state/company.tsx b/packages/web/src/state/company.tsxindex f59cfb85..d9d1b22c 100644--- a/packages/web/src/state/company.tsx+++ b/packages/web/src/state/company.tsx@@ -56,10 +56,10 @@ import type {OrganizationSummary,ServerEvent,UiPrefs,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import { useStore } from "zustand/react";import { createStore } from "zustand/vanilla";-import { toastAttention } from "@lmliheng/penguin-ui";+import { toastAttention } from "@adelie/ui";import * as api from "../api/endpoints";import { apiErrorText } from "../lib/api-error";import { S } from "../lib/strings";diff --git a/packages/web/src/state/locale.tsx b/packages/web/src/state/locale.tsxindex 3e8884b9..98a492e9 100644--- a/packages/web/src/state/locale.tsx+++ b/packages/web/src/state/locale.tsx@@ -11,7 +11,7 @@*/import { createContext, useCallback, useContext, useEffect, useState } from "react";import type { ReactNode } from "react";-import { UiStringsProvider } from "@lmliheng/penguin-ui";+import { UiStringsProvider } from "@adelie/ui";import { setActiveStrings, zh } from "../lib/strings";import { en } from "../lib/strings-en";import { uiStringsFor } from "../lib/ui-strings";diff --git a/packages/web/src/state/project.tsx b/packages/web/src/state/project.tsxindex 93b83d69..28f672fb 100644--- a/packages/web/src/state/project.tsx+++ b/packages/web/src/state/project.tsx@@ -11,7 +11,7 @@*/import { createContext, useContext, useEffect, useMemo, useState } from "react";import type { ReactNode } from "react";-import type { AgentSummary, ProjectSummary } from "@lmliheng/penguin-server/api";+import type { AgentSummary, ProjectSummary } from "@adelie/server/api";import { useStore } from "zustand/react";import { createStore } from "zustand/vanilla";import * as api from "../api/endpoints";diff --git a/packages/web/src/state/sessions.tsx b/packages/web/src/state/sessions.tsxindex 62bd7a8f..a054bd2d 100644--- a/packages/web/src/state/sessions.tsx+++ b/packages/web/src/state/sessions.tsx@@ -60,7 +60,7 @@ import type {SessionCategoryCounts,SessionInfo,SessionStatus,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import { useStore } from "zustand/react";import { createStore } from "zustand/vanilla";import * as api from "../api/endpoints";diff --git a/packages/web/src/state/theme-prefs.ts b/packages/web/src/state/theme-prefs.tsindex ffddb32c..bda781fe 100644--- a/packages/web/src/state/theme-prefs.ts+++ b/packages/web/src/state/theme-prefs.ts@@ -7,26 +7,15 @@* Every key and every value list comes from the shared UI package, which also owns the boot* script: the first frame and the running app then cannot disagree about a stored value.*/-import {- ACCENT_PRESET_IDS,- DEFAULT_THEME_ID,- THEME_IDS,- resolveAccent,-} from "@lmliheng/penguin-ui";-import type { ThemeId } from "@lmliheng/penguin-ui";+import { ACCENT_PRESET_IDS, DEFAULT_THEME_ID, THEME_IDS, resolveAccent } from "@adelie/ui";+import type { ThemeId } from "@adelie/ui";import {FONT_CJK_OPTIONS,FONT_LATIN_OPTIONS,THEME_STORAGE_KEYS,readTextSize,-} from "@lmliheng/penguin-ui/boot";-import type {- AccentChoice,- FontCjk,- FontLatin,- TextSize,- ThemeAttributes,-} from "@lmliheng/penguin-ui/boot";+} from "@adelie/ui/boot";+import type { AccentChoice, FontCjk, FontLatin, TextSize, ThemeAttributes } from "@adelie/ui/boot";export type { FontCjk, FontLatin, TextSize };diff --git a/packages/web/src/state/theme.tsx b/packages/web/src/state/theme.tsxindex 49f9aa9a..c186f65f 100644--- a/packages/web/src/state/theme.tsx+++ b/packages/web/src/state/theme.tsx@@ -26,10 +26,10 @@*/import { createContext, useCallback, useContext, useEffect, useState } from "react";import type { ReactNode } from "react";-import { ACCENT_PRESETS, THEME_OWN_ACCENTS } from "@lmliheng/penguin-ui";-import type { ThemeId } from "@lmliheng/penguin-ui";-import { applyThemeAttributes, THEME_STORAGE_KEYS } from "@lmliheng/penguin-ui/boot";-import type { AccentChoice } from "@lmliheng/penguin-ui/boot";+import { ACCENT_PRESETS, THEME_OWN_ACCENTS } from "@adelie/ui";+import type { ThemeId } from "@adelie/ui";+import { applyThemeAttributes, THEME_STORAGE_KEYS } from "@adelie/ui/boot";+import type { AccentChoice } from "@adelie/ui/boot";import { readThemePrefs } from "./theme-prefs";import type { FontCjk, FontLatin, TextSize } from "./theme-prefs";diff --git a/packages/web/src/state/use-tray-locale.ts b/packages/web/src/state/use-tray-locale.tsindex f22faeb9..d6baa530 100644--- a/packages/web/src/state/use-tray-locale.ts+++ b/packages/web/src/state/use-tray-locale.ts@@ -21,7 +21,7 @@ import { isDesktopShellWindow } from "../lib/account-menu";import { useAuth } from "./auth";import { useLocale } from "./locale";import type { Locale } from "./locale";-import type { DesktopTrayLocale } from "@lmliheng/penguin-server/api";+import type { DesktopTrayLocale } from "@adelie/server/api";// The Web App's languages and the ones the tray route accepts are the same set, and a// divergence would otherwise show up as a 400 nobody looks at. Compile-time, no runtime cost.diff --git a/packages/web/src/styles.css b/packages/web/src/styles.cssindex cea6da2f..c91cbc11 100644--- a/packages/web/src/styles.css+++ b/packages/web/src/styles.css@@ -4,7 +4,7 @@* no glassmorphism/gradients; the login page background is a circuit-trace animation (.login-trace, see* login-circuit.tsx). Dark theme is toggled via the html.dark class.*- * Theming comes from the shared UI package (@lmliheng/penguin-ui): `theme.css` declares the+ * Theming comes from the shared UI package (@adelie/ui): `theme.css` declares the* `dark` variant, the cascade layers, the token → utility bridge and the base rules that read* tokens (body colours and fonts, focus ring, selection, scrollbars); each `themes/*.css` holds* one theme's values, including the gray bridge the palette classes below resolve through. This@@ -15,11 +15,11 @@* create a stacking context; dropdown/user menus use z-40; modal and drawer overlays use z-50.*/@import "tailwindcss";-@import "@lmliheng/penguin-ui/theme.css";-@import "@lmliheng/penguin-ui/themes/github.css";-@import "@lmliheng/penguin-ui/themes/modern.css";-@import "@lmliheng/penguin-ui/themes/geek.css";-@import "@lmliheng/penguin-ui/fonts.css";+@import "@adelie/ui/theme.css";+@import "@adelie/ui/themes/github.css";+@import "@adelie/ui/themes/modern.css";+@import "@adelie/ui/themes/geek.css";+@import "@adelie/ui/fonts.css";/* Tailwind scans the Vite root only: the package's components carry class strings too. The testhelpers are excluded, so the class patterns they spell never enter the app's sheet. */diff --git a/packages/web/test/agent-api-tab.test.ts b/packages/web/test/agent-api-tab.test.tsindex a070688f..1512858b 100644--- a/packages/web/test/agent-api-tab.test.ts+++ b/packages/web/test/agent-api-tab.test.ts@@ -32,12 +32,8 @@ import { beforeEach, describe, expect, it, vi } from "vitest";import { createElement, isValidElement } from "react";import type { ReactElement, ReactNode } from "react";import { renderToStaticMarkup } from "react-dom/server";-import type {- AgentApiKeyInfo,- AgentApiResponse,- AgentApiSettings,-} from "@lmliheng/penguin-server/api";-import { Button, CopyButton, Select, ToggleRow } from "@lmliheng/penguin-ui";+import type { AgentApiKeyInfo, AgentApiResponse, AgentApiSettings } from "@adelie/server/api";+import { Button, CopyButton, Select, ToggleRow } from "@adelie/ui";import {AgentApiOffConfirm,KeylessOnConfirm,@@ -55,8 +51,8 @@ import { apiError, json, stubFetch } from "./helpers/fetch";const toasts = vi.hoisted(() => [] as string[]);-vi.mock("@lmliheng/penguin-ui", async (importOriginal) => {- const actual = await importOriginal<typeof import("@lmliheng/penguin-ui")>();+vi.mock("@adelie/ui", async (importOriginal) => {+ const actual = await importOriginal<typeof import("@adelie/ui")>();return {...actual,toastSuccess: (text: string) => toasts.push(`success: ${text}`),diff --git a/packages/web/test/agent-handoff.test.ts b/packages/web/test/agent-handoff.test.tsindex d31dd848..4dffd6d3 100644--- a/packages/web/test/agent-handoff.test.ts+++ b/packages/web/test/agent-handoff.test.ts@@ -10,7 +10,7 @@* where no fork is possible the chip cannot block a send; with both chips, the handoff wins.*/import { describe, expect, it } from "vitest";-import type { AgentSummary } from "@lmliheng/penguin-server/api";+import type { AgentSummary } from "@adelie/server/api";import { filterAgents, stagedSendRoute } from "../src/features/chat/agent-handoff";const agent = (agentId: string, name?: string): AgentSummary => ({diff --git a/packages/web/test/agent-topology.test.ts b/packages/web/test/agent-topology.test.tsindex f1e21152..63d4860e 100644--- a/packages/web/test/agent-topology.test.ts+++ b/packages/web/test/agent-topology.test.ts@@ -25,8 +25,8 @@ import {toolCallOutput,userText,withOrigin,-} from "@lmliheng/penguin-core/omnimessage";-import type { OmniMessage, SessionMetaPayload } from "@lmliheng/penguin-core/omnimessage";+} from "@adelie/core/omnimessage";+import type { OmniMessage, SessionMetaPayload } from "@adelie/core/omnimessage";import {agentIdFromStatePath,approvalKey,diff --git a/packages/web/test/ai-create-panel.test.ts b/packages/web/test/ai-create-panel.test.tsindex abb9667a..194715de 100644--- a/packages/web/test/ai-create-panel.test.ts+++ b/packages/web/test/ai-create-panel.test.ts@@ -6,7 +6,7 @@import { describe, expect, it } from "vitest";import { createElement } from "react";import { renderToStaticMarkup } from "react-dom/server";-import type { AgentSummary } from "@lmliheng/penguin-server/api";+import type { AgentSummary } from "@adelie/server/api";import { AiCreatePanel } from "../src/features/ai-create/ai-create-panel";import { composeAiPrompt } from "../src/features/ai-create/ai-create-prompt";import { S } from "../src/lib/strings";diff --git a/packages/web/test/api-try-log.test.ts b/packages/web/test/api-try-log.test.tsindex 26479da1..d740c359 100644--- a/packages/web/test/api-try-log.test.ts+++ b/packages/web/test/api-try-log.test.ts@@ -45,8 +45,8 @@ import { describe, expect, it, vi } from "vitest";import { createElement, isValidElement } from "react";import type { ReactElement, ReactNode } from "react";import { renderToStaticMarkup } from "react-dom/server";-import type { AmspEvent, TokenCounts } from "@lmliheng/amsp";-import { ApprovalButtons, Button, CopyButton } from "@lmliheng/penguin-ui";+import type { AmspEvent, TokenCounts } from "@adelie/amsp";+import { ApprovalButtons, Button, CopyButton } from "@adelie/ui";import {addPayload,answerApproval,diff --git a/packages/web/test/benchmark-case-tree.test.ts b/packages/web/test/benchmark-case-tree.test.tsindex 0dc69850..d0fa0716 100644--- a/packages/web/test/benchmark-case-tree.test.ts+++ b/packages/web/test/benchmark-case-tree.test.ts@@ -5,7 +5,7 @@* material it came from so the two file spaces cannot collide.*/import { describe, expect, it } from "vitest";-import type { WorkspaceFileEntry } from "@lmliheng/penguin-server/api";+import type { WorkspaceFileEntry } from "@adelie/server/api";import { caseTreeRows } from "../src/features/benchmark/benchmark-case-browser";import type { CaseMaterialSpec } from "../src/features/benchmark/benchmark-case-browser";diff --git a/packages/web/test/benchmark-merge.test.ts b/packages/web/test/benchmark-merge.test.tsindex e48db156..d65fda23 100644--- a/packages/web/test/benchmark-merge.test.ts+++ b/packages/web/test/benchmark-merge.test.ts@@ -6,7 +6,7 @@* it was written in, and only a history joined from two disks is ordered by time.*/import { describe, expect, it } from "vitest";-import type { BenchmarkEvaluation, BenchmarkSummary } from "@lmliheng/penguin-server/api";+import type { BenchmarkEvaluation, BenchmarkSummary } from "@adelie/server/api";import { mergeAgents, mergeBenchmarks, mergeBenchmarkCases } from "../src/lib/benchmark-merge";const MACHINE = "noeSE0FFHhNXl2J5";diff --git a/packages/web/test/benchmark-metrics.test.ts b/packages/web/test/benchmark-metrics.test.tsindex e04be699..d0bea729 100644--- a/packages/web/test/benchmark-metrics.test.ts+++ b/packages/web/test/benchmark-metrics.test.ts@@ -7,7 +7,7 @@* hold between them (seriesPoints, stroked by chart-geom's segmentPath).*/import { describe, expect, it } from "vitest";-import { makeRangeGeom, segmentPath } from "@lmliheng/penguin-ui";+import { makeRangeGeom, segmentPath } from "@adelie/ui";import {defaultTargetScore,evaluationLabel,diff --git a/packages/web/test/builtin-browser-events.test.ts b/packages/web/test/builtin-browser-events.test.tsindex d71f55e1..08b429b9 100644--- a/packages/web/test/builtin-browser-events.test.ts+++ b/packages/web/test/builtin-browser-events.test.ts@@ -5,7 +5,7 @@* this screen — and a resync tells the layer to re-read the registry.*/import { describe, expect, it } from "vitest";-import type { BuiltinBrowserServerEvent, ServerEvent } from "@lmliheng/penguin-server/api";+import type { BuiltinBrowserServerEvent, ServerEvent } from "@adelie/server/api";import { applyUserEvent, createSessionsStore } from "../src/state/sessions";import {isBuiltinBrowserEvent,diff --git a/packages/web/test/builtin-browser-import.test.ts b/packages/web/test/builtin-browser-import.test.tsindex 3a8790c4..3d46b683 100644--- a/packages/web/test/builtin-browser-import.test.ts+++ b/packages/web/test/builtin-browser-import.test.ts@@ -4,7 +4,7 @@* Keychain note, and the request the chosen options make.*/import { describe, expect, it } from "vitest";-import type { BuiltinBrowserImportSource } from "@lmliheng/penguin-server/api";+import type { BuiltinBrowserImportSource } from "@adelie/server/api";import {groupSources,importRequest,diff --git a/packages/web/test/builtin-browser-load.test.ts b/packages/web/test/builtin-browser-load.test.tsindex b4f6d498..ee15b759 100644--- a/packages/web/test/builtin-browser-load.test.ts+++ b/packages/web/test/builtin-browser-load.test.ts@@ -4,7 +4,7 @@* warnings are new (one toast each).*/import { describe, expect, it } from "vitest";-import type { BuiltinBrowserMetrics } from "@lmliheng/penguin-server/api";+import type { BuiltinBrowserMetrics } from "@adelie/server/api";import {formatMemory,heavyTabMemory,diff --git a/packages/web/test/builtin-browser-state.test.ts b/packages/web/test/builtin-browser-state.test.tsindex ad3f236a..95eaff99 100644--- a/packages/web/test/builtin-browser-state.test.ts+++ b/packages/web/test/builtin-browser-state.test.ts@@ -10,7 +10,7 @@ import type {BuiltinBrowserMetrics,BuiltinBrowserServerEvent,BuiltinBrowserTab,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import {INITIAL_BROWSER_STATE,activeTab,diff --git a/packages/web/test/calendar-geom.test.ts b/packages/web/test/calendar-geom.test.tsindex 5db4afe3..47036412 100644--- a/packages/web/test/calendar-geom.test.ts+++ b/packages/web/test/calendar-geom.test.ts@@ -7,7 +7,7 @@* built with the local Date constructor, so the assertions hold in every timezone.*/import { describe, expect, it } from "vitest";-import type { OrgCalendarItem } from "@lmliheng/penguin-server/api";+import type { OrgCalendarItem } from "@adelie/server/api";import {MAX_INSTANCES_PER_EVENT,addDays,diff --git a/packages/web/test/catalog-sync.test.ts b/packages/web/test/catalog-sync.test.tsindex 2ab72803..5b630422 100644--- a/packages/web/test/catalog-sync.test.ts+++ b/packages/web/test/catalog-sync.test.ts@@ -17,8 +17,8 @@ import {catalogEntryFor,catalogModelEntries,presetModelEntries,-} from "@lmliheng/penguin-core/model-catalog";-import type { ModelsResponse } from "@lmliheng/penguin-server/api";+} from "@adelie/core/model-catalog";+import type { ModelsResponse } from "@adelie/server/api";import { catalogDelta, syncRowsWithCatalog } from "../src/features/models/catalog-sync";import { presetUpdateTodo } from "../src/lib/todo-badges";import { noticeCounts } from "../src/lib/bulk-update";diff --git a/packages/web/test/channel-list.test.ts b/packages/web/test/channel-list.test.tsindex b80a8e96..b69a8dd6 100644--- a/packages/web/test/channel-list.test.ts+++ b/packages/web/test/channel-list.test.ts@@ -13,7 +13,7 @@* with an employee's title as detail, a prefix match ranked above a substring match.*/import { describe, expect, it } from "vitest";-import type { OrgChannelItem } from "@lmliheng/penguin-server/api";+import type { OrgChannelItem } from "@adelie/server/api";import {CHANNEL_ID_PATTERN,DEFAULT_CHANNEL_ID,diff --git a/packages/web/test/channel-notices.test.ts b/packages/web/test/channel-notices.test.tsindex 8f631079..976088fe 100644--- a/packages/web/test/channel-notices.test.ts+++ b/packages/web/test/channel-notices.test.ts@@ -10,7 +10,7 @@* English text.*/import { describe, expect, it } from "vitest";-import type { OrgChannelNotice } from "@lmliheng/penguin-server/api";+import type { OrgChannelNotice } from "@adelie/server/api";import { NOTICE_KINDS, noticeText } from "../src/features/company/channel-notices";import { zh } from "../src/lib/strings";import { en } from "../src/lib/strings-en";diff --git a/packages/web/test/channel-stream.test.ts b/packages/web/test/channel-stream.test.tsindex 0e7089ff..0da4d928 100644--- a/packages/web/test/channel-stream.test.ts+++ b/packages/web/test/channel-stream.test.ts@@ -6,7 +6,7 @@* join made elsewhere has to be re-read, and the immutable live append.*/import { describe, expect, it } from "vitest";-import type { OrgChannelMessage } from "@lmliheng/penguin-server/api";+import type { OrgChannelMessage } from "@adelie/server/api";import {INITIAL_DAYS_MAX,INITIAL_MESSAGES,diff --git a/packages/web/test/chart-marks.test.ts b/packages/web/test/chart-marks.test.tsindex e90aae16..70af4043 100644--- a/packages/web/test/chart-marks.test.ts+++ b/packages/web/test/chart-marks.test.ts@@ -1,6 +1,6 @@/*** The Web App's charts draw every mark through the package's chart primitives- * (`@lmliheng/penguin-ui`: ChartBar, ChartLine, ChartArc, TimelineBar, …) and the charts built+ * (`@adelie/ui`: ChartBar, ChartLine, ChartArc, TimelineBar, …) and the charts built* on them (ChartFrame, Ring, Sparkline, TokenDonut), never with shapes, paint or geometry of their* own. What each primitive draws is the package's `chart-marks.test.ts`, which holds the* package's own charts to the same rule.diff --git a/packages/web/test/company-mode-write.test.ts b/packages/web/test/company-mode-write.test.tsindex 848f85e3..df74c929 100644--- a/packages/web/test/company-mode-write.test.ts+++ b/packages/web/test/company-mode-write.test.ts@@ -12,7 +12,7 @@ import type {ServerSettings,ServerSettingsResponse,ServerSettingsUpdateRequest,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import { writeCompanyMode } from "../src/features/settings/company-mode-write";const settings = (companyMode: boolean): ServerSettings => ({diff --git a/packages/web/test/company-store.test.ts b/packages/web/test/company-store.test.tsindex 38874724..1be832eb 100644--- a/packages/web/test/company-store.test.ts+++ b/packages/web/test/company-store.test.ts@@ -16,7 +16,7 @@ import type {OrgChannelMessage,OrgSessionsResponse,OrganizationSummary,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import {createCompanyStore,isCompanyEvent,diff --git a/packages/web/test/completion-notify.test.ts b/packages/web/test/completion-notify.test.tsindex 348c81ba..4a6b4f1e 100644--- a/packages/web/test/completion-notify.test.ts+++ b/packages/web/test/completion-notify.test.ts@@ -1,7 +1,7 @@import { describe, expect, it } from "vitest";import { createCompletionTracker } from "../src/lib/completion-notify";import type { ObservedSession } from "../src/lib/completion-notify";-import type { SessionStatus } from "@lmliheng/penguin-server/api";+import type { SessionStatus } from "@adelie/server/api";const row = (sessionId: string, status: SessionStatus): ObservedSession => ({sessionId,diff --git a/packages/web/test/context-parts.test.ts b/packages/web/test/context-parts.test.tsindex d1c8cf98..f9ed75cc 100644--- a/packages/web/test/context-parts.test.ts+++ b/packages/web/test/context-parts.test.ts@@ -10,7 +10,7 @@* - A file path splits on either separator, a root keeping its own separator as the directory.*/import { describe, expect, it } from "vitest";-import type { SessionContextResponse } from "@lmliheng/penguin-server/api";+import type { SessionContextResponse } from "@adelie/server/api";import { contextComposition, splitFilePath } from "../src/features/chat/context-parts";function response(over: Partial<SessionContextResponse> = {}): SessionContextResponse {diff --git a/packages/web/test/current-agent.test.ts b/packages/web/test/current-agent.test.tsindex a5a5f6aa..67810ee9 100644--- a/packages/web/test/current-agent.test.ts+++ b/packages/web/test/current-agent.test.ts@@ -1,5 +1,5 @@import { describe, expect, it } from "vitest";-import type { AgentSummary } from "@lmliheng/penguin-server/api";+import type { AgentSummary } from "@adelie/server/api";import { agentOf } from "../src/state/project";const agent = (agentId: string) => ({ agentId }) as AgentSummary;diff --git a/packages/web/test/default-agent.test.ts b/packages/web/test/default-agent.test.tsindex 3ad8899f..aec163e1 100644--- a/packages/web/test/default-agent.test.ts+++ b/packages/web/test/default-agent.test.ts@@ -3,7 +3,7 @@* (src/features/ai-create/default-agent.ts).*/import { describe, expect, it } from "vitest";-import type { AgentSummary } from "@lmliheng/penguin-server/api";+import type { AgentSummary } from "@adelie/server/api";import { pickDefaultAgent } from "../src/features/ai-create/default-agent";const agent = (agentId: string) => ({ agentId }) as AgentSummary;diff --git a/packages/web/test/desk-model.test.ts b/packages/web/test/desk-model.test.tsindex 52a1fe02..2218e977 100644--- a/packages/web/test/desk-model.test.ts+++ b/packages/web/test/desk-model.test.ts@@ -1,5 +1,5 @@import { describe, expect, it } from "vitest";-import type { OrgDeskResponse } from "@lmliheng/penguin-server/api";+import type { OrgDeskResponse } from "@adelie/server/api";import { switchDeskModel } from "../src/features/company/desk-model";import type { DeskModelApi } from "../src/features/company/desk-model";diff --git a/packages/web/test/desktop-update.test.ts b/packages/web/test/desktop-update.test.tsindex fc7502f1..b4939241 100644--- a/packages/web/test/desktop-update.test.ts+++ b/packages/web/test/desktop-update.test.ts@@ -11,7 +11,7 @@* the pure helpers, not a rendered row (account-menu.test.ts convention).*/import { describe, expect, it } from "vitest";-import type { DesktopUpdateStatus } from "@lmliheng/penguin-server/api";+import type { DesktopUpdateStatus } from "@adelie/server/api";import {CLIENT_CHECK_TIMEOUT_MS,clientCheckSettle,diff --git a/packages/web/test/dialog-layers.test.ts b/packages/web/test/dialog-layers.test.tsindex 57aa7758..68e97864 100644--- a/packages/web/test/dialog-layers.test.ts+++ b/packages/web/test/dialog-layers.test.ts@@ -10,13 +10,7 @@* - Layers may be removed out of order, and a double pop is a no-op, never a throw.*/import { describe, expect, it } from "vitest";-import {- hasEscLayers,- isTopEscLayer,- nextFocusIndex,- popEscLayer,- pushEscLayer,-} from "@lmliheng/penguin-ui";+import { hasEscLayers, isTopEscLayer, nextFocusIndex, popEscLayer, pushEscLayer } from "@adelie/ui";describe("nextFocusIndex", () => {it("steps forward and wraps past the last element", () => {diff --git a/packages/web/test/errors-panel.test.ts b/packages/web/test/errors-panel.test.tsindex e341c340..8ca585b1 100644--- a/packages/web/test/errors-panel.test.ts+++ b/packages/web/test/errors-panel.test.ts@@ -14,7 +14,7 @@import { afterEach, describe, expect, it } from "vitest";import { createElement } from "react";import { renderToStaticMarkup } from "react-dom/server";-import type { UsageErrorItem, UsageErrors } from "@lmliheng/penguin-server/api";+import type { UsageErrorItem, UsageErrors } from "@adelie/server/api";import { ErrorsPanel, errorsClearScopeText } from "../src/features/usage/errors-panel";import type { ErrorsFilters } from "../src/features/usage/errors-panel";import { formatDateTime } from "../src/lib/format";diff --git a/packages/web/test/finance-tree.test.ts b/packages/web/test/finance-tree.test.tsindex c10e1e44..3cd92d52 100644--- a/packages/web/test/finance-tree.test.ts+++ b/packages/web/test/finance-tree.test.ts@@ -18,7 +18,7 @@* once however it is spelled, and stands on the budget alone without a live state.*/import { describe, expect, it } from "vitest";-import type { OrgFinanceEmployee, OrgFinanceTicket } from "@lmliheng/penguin-server/api";+import type { OrgFinanceEmployee, OrgFinanceTicket } from "@adelie/server/api";import {budgetTone,dailyBreaks,diff --git a/packages/web/test/handbook-explorer.test.ts b/packages/web/test/handbook-explorer.test.tsindex c5a04a77..071c2120 100644--- a/packages/web/test/handbook-explorer.test.ts+++ b/packages/web/test/handbook-explorer.test.ts@@ -11,7 +11,7 @@import { describe, expect, it } from "vitest";import { createElement } from "react";import { renderToStaticMarkup } from "react-dom/server";-import type { OrgHandbookFile } from "@lmliheng/penguin-server/api";+import type { OrgHandbookFile } from "@adelie/server/api";import { HandbookExplorer } from "../src/features/company/handbook-explorer";import {HANDBOOK_INDEX,diff --git a/packages/web/test/handbook-tree.test.ts b/packages/web/test/handbook-tree.test.tsindex 29ee5651..9ae4746e 100644--- a/packages/web/test/handbook-tree.test.ts+++ b/packages/web/test/handbook-tree.test.ts@@ -7,7 +7,7 @@* new document starts with; and how a relative link inside a document resolves to another.*/import { describe, expect, it } from "vitest";-import type { OrgHandbookFile } from "@lmliheng/penguin-server/api";+import type { OrgHandbookFile } from "@adelie/server/api";import {HANDBOOK_INDEX,ancestorFolders,diff --git a/packages/web/test/highlighter-worker.test.ts b/packages/web/test/highlighter-worker.test.tsindex 32ea6832..7440bf1d 100644--- a/packages/web/test/highlighter-worker.test.ts+++ b/packages/web/test/highlighter-worker.test.ts@@ -3,7 +3,7 @@** Tokenizing is linear in the size of the input and runs to completion once it starts, so the* viewer's responsiveness depends on it happening in a worker. The engine lives in the shared UI- * package on its own subpath (`@lmliheng/penguin-ui/highlighter`, which the package's code+ * package on its own subpath (`@adelie/ui/highlighter`, which the package's code* surfaces never import — they ask the highlighter the app hands them), and the app decides where* it runs. Three edits would quietly undo that without failing a build or looking wrong in* review: calling the engine directly from a component, turning the client's fallback@@ -46,16 +46,14 @@ describe("the highlighting worker", () => {it("owns the only static import of the engine", () => {const importers = sources(SRC)- .filter(([, src]) =>- /^import\s(?!type\s)[^;]*from "@lmliheng\/penguin-ui\/highlighter"/m.test(src),- )+ .filter(([, src]) => /^import\s(?!type\s)[^;]*from "@adelie\/ui\/highlighter"/m.test(src)).map(([path]) => path);expect(importers).toEqual(["features/chat/highlighter.worker.ts"]);});it("leaves the client's own use of the engine dynamic, as its fallback", () => {const client = readFileSync(join(CHAT, "highlighter.ts"), "utf8");- expect(client).toMatch(/await import\("@lmliheng\/penguin-ui\/highlighter"\)/);+ expect(client).toMatch(/await import\("@adelie\/ui\/highlighter"\)/);});it("is what the app hands the package's code surfaces, loaded on the first block", () => {diff --git a/packages/web/test/icon-registry.test.ts b/packages/web/test/icon-registry.test.tsindex bd3a3bd1..047c6beb 100644--- a/packages/web/test/icon-registry.test.ts+++ b/packages/web/test/icon-registry.test.ts@@ -164,7 +164,7 @@ describe("glyph paths outside the registry", () => {glyphHits("probe.tsx",[- 'import { ICONS } from "@lmliheng/penguin-ui";',+ 'import { ICONS } from "@adelie/ui";',"const TRASH_ICON = ICONS.trash;","export const Line = ({ d }: { d: string }) => <path d={d} />;",'const MENU_ICON = "Menu";',diff --git a/packages/web/test/icon-scale.test.ts b/packages/web/test/icon-scale.test.tsindex bde355fc..94b80243 100644--- a/packages/web/test/icon-scale.test.ts+++ b/packages/web/test/icon-scale.test.ts@@ -14,7 +14,7 @@*/import { existsSync, readFileSync } from "node:fs";import { describe, expect, it } from "vitest";-import { ICON_SIZE } from "@lmliheng/penguin-ui";+import { ICON_SIZE } from "@adelie/ui";import { DEFAULT_THEME_ID, THEME_IDS, THEME_MODES } from "../../ui/src/tokens";import { analyzeThemeFile, resolveThemeValue } from "../../ui/src/testing/theme-tokens";import { expectEveryRootScanned, expectSingleHome, scanSources } from "./helpers/roots";diff --git a/packages/web/test/id-suggest-notice.test.ts b/packages/web/test/id-suggest-notice.test.tsindex e40cdf38..efd8ce45 100644--- a/packages/web/test/id-suggest-notice.test.ts+++ b/packages/web/test/id-suggest-notice.test.ts@@ -5,10 +5,7 @@* rather than dropping the note that tells the user the box holds a placeholder.*/import { describe, expect, it } from "vitest";-import type {- SemanticIdSuggestReason,- SemanticIdSuggestResponse,-} from "@lmliheng/penguin-server/api";+import type { SemanticIdSuggestReason, SemanticIdSuggestResponse } from "@adelie/server/api";import { idSuggestNotice } from "../src/features/semantic-id/id-suggest-notice";import { zh } from "../src/lib/strings";import { en } from "../src/lib/strings-en";diff --git a/packages/web/test/input-history.test.ts b/packages/web/test/input-history.test.tsindex b9cfca3d..bbb74799 100644--- a/packages/web/test/input-history.test.ts+++ b/packages/web/test/input-history.test.ts@@ -7,10 +7,7 @@ import { describe, expect, it } from "vitest";import type { ChatItem } from "../src/lib/omni/stream-model";import { buildSkillsMessage } from "../src/features/chat/skill-use";import { handoffMessage } from "../src/features/chat/agent-handoff";-import {- buildBackgroundTaskDoneMessage,- buildScheduledMessage,-} from "@lmliheng/penguin-core/markers";+import { buildBackgroundTaskDoneMessage, buildScheduledMessage } from "@adelie/core/markers";import {buildInputHistory,caretOnFirstLine,diff --git a/packages/web/test/machine-cache.test.ts b/packages/web/test/machine-cache.test.tsindex 777e6eca..401e37b7 100644--- a/packages/web/test/machine-cache.test.ts+++ b/packages/web/test/machine-cache.test.ts@@ -9,7 +9,7 @@* - A storage that refuses is not an error: the answer is merely not remembered.*/import { beforeEach, describe, expect, it } from "vitest";-import type { AgentSummary, SessionInfo } from "@lmliheng/penguin-server/api";+import type { AgentSummary, SessionInfo } from "@adelie/server/api";import {CACHED_ROWS_PER_MACHINE,cachedMachineAgents,diff --git a/packages/web/test/machines-view.test.ts b/packages/web/test/machines-view.test.tsindex d67a71ac..986e1f57 100644--- a/packages/web/test/machines-view.test.ts+++ b/packages/web/test/machines-view.test.ts@@ -7,7 +7,7 @@* the machine's own persisted record, never from the job slot.*/import { describe, expect, it } from "vitest";-import type { MachineInfo, MachineJob, MachinesResponse } from "@lmliheng/penguin-server/api";+import type { MachineInfo, MachineJob, MachinesResponse } from "@adelie/server/api";import {anyJobPending,behindMachines,diff --git a/packages/web/test/markdown-pipeline.test.ts b/packages/web/test/markdown-pipeline.test.tsindex 4ce338a0..8929c78a 100644--- a/packages/web/test/markdown-pipeline.test.ts+++ b/packages/web/test/markdown-pipeline.test.ts@@ -19,7 +19,7 @@ const SHARED_MODULE = "packages/ui/src/components/content/prose/markdown-plugins/** Where a renderer in each root takes the lists from. */const HOME: Record<string, string> = {ui: 'from "./markdown-plugins"',- web: 'from "@lmliheng/penguin-ui"',+ web: 'from "@adelie/ui"',};describe("the Markdown pipeline every renderer shares", () => {diff --git a/packages/web/test/md.test.ts b/packages/web/test/md.test.tsindex 59313c39..57434121 100644--- a/packages/web/test/md.test.ts+++ b/packages/web/test/md.test.ts@@ -15,7 +15,7 @@ import { describe, expect, it, vi } from "vitest";import { createElement } from "react";import type { MouseEvent } from "react";import { renderToStaticMarkup } from "react-dom/server";-import { Md } from "@lmliheng/penguin-ui";+import { Md } from "@adelie/ui";import { WorkspaceLinksProvider } from "../src/features/chat/workspace-links";import { replyLinkBehavior, resolveReplyLink } from "../src/lib/reply-link";diff --git a/packages/web/test/memory-changes-card.test.ts b/packages/web/test/memory-changes-card.test.tsindex e13bc28a..70a7cd8f 100644--- a/packages/web/test/memory-changes-card.test.ts+++ b/packages/web/test/memory-changes-card.test.ts@@ -11,7 +11,7 @@import { afterEach, describe, expect, it } from "vitest";import { createElement } from "react";import { renderToStaticMarkup } from "react-dom/server";-import { ICONS } from "@lmliheng/penguin-ui";+import { ICONS } from "@adelie/ui";import { MemoryChangesCard } from "../src/features/chat/memory-changes-card";import type { MemoryChangeRow } from "../src/lib/omni/memory-changes";import { S, setActiveStrings, zh } from "../src/lib/strings";diff --git a/packages/web/test/memory-nav.test.ts b/packages/web/test/memory-nav.test.tsindex 19734b8b..3fc51cc2 100644--- a/packages/web/test/memory-nav.test.ts+++ b/packages/web/test/memory-nav.test.ts@@ -4,7 +4,7 @@* loaded; change-derived rows while it is not), and the deleted-key filter set.*/import { describe, expect, it } from "vitest";-import type { MemoryFileInfo, MemoryScopeInfo } from "@lmliheng/penguin-server/api";+import type { MemoryFileInfo, MemoryScopeInfo } from "@adelie/server/api";import type { MemoryChangeRow } from "../src/lib/omni/memory-changes";import {buildMemoryList,diff --git a/packages/web/test/memory-transfer.test.ts b/packages/web/test/memory-transfer.test.tsindex ce3fb51a..4fb35ba3 100644--- a/packages/web/test/memory-transfer.test.ts+++ b/packages/web/test/memory-transfer.test.ts@@ -6,7 +6,7 @@* default mode destroys nothing, and every mode that does report exactly which memories.*/import { afterEach, describe, expect, it } from "vitest";-import type { MemoryScopeExport } from "@lmliheng/penguin-server/api";+import type { MemoryScopeExport } from "@adelie/server/api";import { S, setActiveStrings, zh } from "../src/lib/strings";import { en } from "../src/lib/strings-en";import {diff --git a/packages/web/test/messaging-binding-editor.test.ts b/packages/web/test/messaging-binding-editor.test.tsindex 5306ef7b..858cc9ea 100644--- a/packages/web/test/messaging-binding-editor.test.ts+++ b/packages/web/test/messaging-binding-editor.test.ts@@ -24,7 +24,7 @@import { afterEach, describe, expect, it } from "vitest";import { createElement } from "react";import { renderToStaticMarkup } from "react-dom/server";-import type { MessagingChannel } from "@lmliheng/penguin-server/api";+import type { MessagingChannel } from "@adelie/server/api";import {MessagingBindingBody,MessagingBindingHelp,@@ -34,7 +34,7 @@ import {type MessagingChannelFacts,} from "../src/features/messaging/messaging-binding-editor";import { emptyMessagingForm } from "../src/features/messaging/messaging-binding-form";-import { UiStringsProvider } from "@lmliheng/penguin-ui";+import { UiStringsProvider } from "@adelie/ui";import { S, setActiveStrings, zh } from "../src/lib/strings";import { uiStringsOf } from "../src/lib/ui-strings";import { en } from "../src/lib/strings-en";diff --git a/packages/web/test/messaging-binding-form.test.ts b/packages/web/test/messaging-binding-form.test.tsindex 84aa3997..4cf8dd4f 100644--- a/packages/web/test/messaging-binding-form.test.ts+++ b/packages/web/test/messaging-binding-form.test.ts@@ -15,7 +15,7 @@ import type {QQBindingInfo,TelegramBindingInfo,WeChatBindingInfo,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import {FEISHU_DEFAULT_DOMAIN,bindingsToForm,diff --git a/packages/web/test/model-balance.test.ts b/packages/web/test/model-balance.test.tsindex 022f48f5..56730a63 100644--- a/packages/web/test/model-balance.test.ts+++ b/packages/web/test/model-balance.test.ts@@ -4,7 +4,7 @@* reading (group-balance.tsx), and how the per-account pin is read back out of the free-form prefs.*/import { describe, expect, it } from "vitest";-import type { ModelBalanceResponse } from "@lmliheng/penguin-server/api";+import type { ModelBalanceResponse } from "@adelie/server/api";import {displayBalance,formatAmount,diff --git a/packages/web/test/model-group-expansion.test.ts b/packages/web/test/model-group-expansion.test.tsindex c0a60d1d..6910fae5 100644--- a/packages/web/test/model-group-expansion.test.ts+++ b/packages/web/test/model-group-expansion.test.ts@@ -11,7 +11,7 @@* stay inert.*/import { describe, expect, it } from "vitest";-import { MODEL_PROVIDERS } from "@lmliheng/penguin-core/model-catalog";+import { MODEL_PROVIDERS } from "@adelie/core/model-catalog";import {defaultExpandedProviders,expandedGroupsKey,diff --git a/packages/web/test/model-group-header.test.ts b/packages/web/test/model-group-header.test.tsindex c878e733..4153ad65 100644--- a/packages/web/test/model-group-header.test.ts+++ b/packages/web/test/model-group-header.test.ts@@ -11,8 +11,8 @@* something comes after it.*/import { describe, expect, it } from "vitest";-import { MODEL_PROVIDERS, providerInfo } from "@lmliheng/penguin-core/model-catalog";-import type { ModelProviderInfo } from "@lmliheng/penguin-core/model-catalog";+import { MODEL_PROVIDERS, providerInfo } from "@adelie/core/model-catalog";+import type { ModelProviderInfo } from "@adelie/core/model-catalog";import {connectionStatus,dividerAfterBalance,diff --git a/packages/web/test/model-group-order.test.ts b/packages/web/test/model-group-order.test.tsindex 42cb24c0..c1badb21 100644--- a/packages/web/test/model-group-order.test.ts+++ b/packages/web/test/model-group-order.test.ts@@ -14,7 +14,7 @@* the ordering algebra, and the catalog's own membership is model-catalog.test.ts's.*/import { describe, expect, it } from "vitest";-import { MODEL_PROVIDERS } from "@lmliheng/penguin-core/model-catalog";+import { MODEL_PROVIDERS } from "@adelie/core/model-catalog";import {commitModelGroupOrder,diff --git a/packages/web/test/model-grouping.test.ts b/packages/web/test/model-grouping.test.tsindex 1fcb6148..a21d1b47 100644--- a/packages/web/test/model-grouping.test.ts+++ b/packages/web/test/model-grouping.test.ts@@ -19,7 +19,7 @@ import {QWEN_OFF_PEAK,catalogEntryFor,effectivePricing,-} from "@lmliheng/penguin-core/model-catalog";+} from "@adelie/core/model-catalog";import {discountedPrice,groupModelRows,diff --git a/packages/web/test/new-chat.test.ts b/packages/web/test/new-chat.test.tsindex 8311e1d2..d55cd753 100644--- a/packages/web/test/new-chat.test.ts+++ b/packages/web/test/new-chat.test.ts@@ -9,7 +9,7 @@* released, a slot holding nothing it keeps is emptied, and an empty slot is left alone.*/import { describe, expect, it } from "vitest";-import type { AgentSummary } from "@lmliheng/penguin-server/api";+import type { AgentSummary } from "@adelie/server/api";import { draftKey, loadDraft, saveDraft } from "../src/features/chat/draft-cache";import { getDraftSession } from "../src/features/chat/draft-sessions";import { newChatAgentId, prepareNewChatDraft } from "../src/features/chat/new-chat";diff --git a/packages/web/test/org-sessions.test.ts b/packages/web/test/org-sessions.test.tsindex 027c7f9c..cd35ca6a 100644--- a/packages/web/test/org-sessions.test.ts+++ b/packages/web/test/org-sessions.test.ts@@ -17,11 +17,7 @@* already leave them out; see sessions-store.test.ts).*/import { describe, expect, it } from "vitest";-import type {- OrgChartResponse,- OrgSessionsResponse,- SessionStatus,-} from "@lmliheng/penguin-server/api";+import type { OrgChartResponse, OrgSessionsResponse, SessionStatus } from "@adelie/server/api";import {deskRows,liveEmployeeStates,diff --git a/packages/web/test/org-trigger.test.ts b/packages/web/test/org-trigger.test.tsindex d1ba7746..f472799f 100644--- a/packages/web/test/org-trigger.test.ts+++ b/packages/web/test/org-trigger.test.ts@@ -5,7 +5,7 @@* parse chain's place for it in user-message-body (a trigger is never the user's own text).*/import { describe, expect, it } from "vitest";-import { buildOrgTriggerMessage } from "@lmliheng/penguin-core/markers";+import { buildOrgTriggerMessage } from "@adelie/core/markers";import {orgTriggerAgentId,parseOrgTriggerMessage,diff --git a/packages/web/test/outline-model.test.ts b/packages/web/test/outline-model.test.tsindex f06f12b8..b4fa6ef2 100644--- a/packages/web/test/outline-model.test.ts+++ b/packages/web/test/outline-model.test.ts@@ -6,10 +6,7 @@import { describe, expect, it } from "vitest";import type { ChatItem } from "../src/lib/omni/stream-model";import { handoffMessage } from "../src/features/chat/agent-handoff";-import {- buildBackgroundTaskDoneMessage,- buildScheduledMessage,-} from "@lmliheng/penguin-core/markers";+import { buildBackgroundTaskDoneMessage, buildScheduledMessage } from "@adelie/core/markers";import {OUTLINE_MIN_TURNS,OUTLINE_WINDOW_AFTER,diff --git a/packages/web/test/overview-summary.test.ts b/packages/web/test/overview-summary.test.tsindex be7bef18..73315f03 100644--- a/packages/web/test/overview-summary.test.ts+++ b/packages/web/test/overview-summary.test.ts@@ -23,7 +23,7 @@ import type {OrgEmployeeState,OrgInbox,OrgTicketItem,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import {INBOX_ROWS,boardSummary,diff --git a/packages/web/test/owner-only-actions.test.ts b/packages/web/test/owner-only-actions.test.tsindex 0df830cd..3f6b27da 100644--- a/packages/web/test/owner-only-actions.test.ts+++ b/packages/web/test/owner-only-actions.test.ts@@ -14,7 +14,7 @@import { createElement } from "react";import { renderToStaticMarkup } from "react-dom/server";import { describe, expect, it } from "vitest";-import type { BenchmarkSummary, ProjectSummary } from "@lmliheng/penguin-server/api";+import type { BenchmarkSummary, ProjectSummary } from "@adelie/server/api";import { UnpublishedNotice } from "../src/features/benchmark/benchmark-detail-page";import { BenchmarkCard, BenchmarkCreateButtons } from "../src/features/benchmark/benchmark-page";import { traceImportTargets } from "../src/features/settings/trace-import-row";diff --git a/packages/web/test/panel-registry.test.ts b/packages/web/test/panel-registry.test.tsindex 2d107620..da71b6c8 100644--- a/packages/web/test/panel-registry.test.ts+++ b/packages/web/test/panel-registry.test.ts@@ -11,7 +11,7 @@* puzzle glyph.*/import { afterEach, describe, expect, it, vi } from "vitest";-import { ICONS } from "@lmliheng/penguin-ui";+import { ICONS } from "@adelie/ui";import {dockPanelDefinition,dockPanels,diff --git a/packages/web/test/permission-level.test.ts b/packages/web/test/permission-level.test.tsindex c4669e0a..97fecf25 100644--- a/packages/web/test/permission-level.test.ts+++ b/packages/web/test/permission-level.test.ts@@ -11,7 +11,7 @@* Session keeps — whatever level the Session is at when the menu opens.*/import { describe, expect, it } from "vitest";-import type { ApprovalMode, SessionSandbox } from "@lmliheng/penguin-server/api";+import type { ApprovalMode, SessionSandbox } from "@adelie/server/api";import {BUILTIN_PRESETS,PERMISSION_LEVEL_GLYPH,diff --git a/packages/web/test/permission-menu.test.ts b/packages/web/test/permission-menu.test.tsindex b6818840..776f5dc4 100644--- a/packages/web/test/permission-menu.test.ts+++ b/packages/web/test/permission-menu.test.ts@@ -3,7 +3,7 @@* while it is off, presets while it is on or unreported. An approval-mode pick carries no policy.*/import { describe, expect, it } from "vitest";-import type { ApprovalMode, SessionSandbox } from "@lmliheng/penguin-server/api";+import type { ApprovalMode, SessionSandbox } from "@adelie/server/api";import {BUILTIN_PRESETS,approvalModePick,diff --git a/packages/web/test/pinned-sessions.test.ts b/packages/web/test/pinned-sessions.test.tsindex b94719ac..30b4d2d7 100644--- a/packages/web/test/pinned-sessions.test.ts+++ b/packages/web/test/pinned-sessions.test.ts@@ -13,7 +13,7 @@* rows ignore pins and a pin of a deleted Session surfaces nothing.*/import { describe, expect, it } from "vitest";-import type { SessionInfo } from "@lmliheng/penguin-server/api";+import type { SessionInfo } from "@adelie/server/api";import {loadPinnedSessions,pinnedSessionsKey,diff --git a/packages/web/test/placeholders-parity.test.ts b/packages/web/test/placeholders-parity.test.tsindex 305048fe..2d0af523 100644--- a/packages/web/test/placeholders-parity.test.ts+++ b/packages/web/test/placeholders-parity.test.ts@@ -6,7 +6,7 @@* and compare to both dictionaries.*/import { describe, expect, it } from "vitest";-import { defaultSystemConfig } from "@lmliheng/penguin-core";+import { defaultSystemConfig } from "@adelie/core";import { zh } from "../src/lib/strings";import { en } from "../src/lib/strings-en";diff --git a/packages/web/test/plugin-config-card.test.ts b/packages/web/test/plugin-config-card.test.tsindex 0cbd6dfc..e343398f 100644--- a/packages/web/test/plugin-config-card.test.ts+++ b/packages/web/test/plugin-config-card.test.ts@@ -7,7 +7,7 @@ import { afterAll, beforeAll, describe, expect, it } from "vitest";import type { ReactElement } from "react";import { createElement } from "react";import { renderToStaticMarkup } from "react-dom/server";-import type { PluginConfigEntry, PluginConfigField } from "@lmliheng/penguin-server/api";+import type { PluginConfigEntry, PluginConfigField } from "@adelie/server/api";import { setActiveStrings, zh } from "../src/lib/strings";import { en } from "../src/lib/strings-en";import { drawnFields } from "../src/features/settings/plugin-config-draft";diff --git a/packages/web/test/plugin-config-draft.test.ts b/packages/web/test/plugin-config-draft.test.tsindex ee33ca23..00d4be09 100644--- a/packages/web/test/plugin-config-draft.test.ts+++ b/packages/web/test/plugin-config-draft.test.ts@@ -1,7 +1,7 @@// A settings table's draft reads its stored value the way the server's `resolveTable` does:// locked or refused cells read as declared; malformed added rows are dropped.import { describe, expect, it } from "vitest";-import type { PluginConfigField } from "@lmliheng/penguin-server/api";+import type { PluginConfigField } from "@adelie/server/api";import { tableDraftOf } from "../src/features/settings/plugin-config-draft";const FIELD: PluginConfigField = {diff --git a/packages/web/test/plugin-config-switch.test.ts b/packages/web/test/plugin-config-switch.test.tsindex 2c928c09..cf1a61c8 100644--- a/packages/web/test/plugin-config-switch.test.ts+++ b/packages/web/test/plugin-config-switch.test.ts@@ -3,7 +3,7 @@import { afterAll, beforeAll, describe, expect, it } from "vitest";import { createElement } from "react";import { renderToStaticMarkup } from "react-dom/server";-import type { PluginConfigEntry, PluginConfigField } from "@lmliheng/penguin-server/api";+import type { PluginConfigEntry, PluginConfigField } from "@adelie/server/api";import { setActiveStrings, zh } from "../src/lib/strings";import { en } from "../src/lib/strings-en";import { ConfigField } from "../src/features/settings/plugin-config-field";diff --git a/packages/web/test/plugins-page.test.ts b/packages/web/test/plugins-page.test.tsindex d0586329..896c40bc 100644--- a/packages/web/test/plugins-page.test.ts+++ b/packages/web/test/plugins-page.test.ts@@ -26,11 +26,7 @@* every plugin it is behind on, and counts distinct plugins as the notice does.*/import { describe, expect, it } from "vitest";-import type {- InstalledPluginsResponse,- PluginIndexEntry,- PluginItem,-} from "@lmliheng/penguin-server/api";+import type { InstalledPluginsResponse, PluginIndexEntry, PluginItem } from "@adelie/server/api";import {availablePluginRows,installedPluginRows,@@ -125,13 +121,13 @@ const entry = (name: string, version = "0.2.2"): PluginIndexEntry => ({describe("availablePluginRows", () => {const shipped: InstalledPluginsResponse = {...deployment,- shipped: ["@lmliheng/sandbox-bwrap"],+ shipped: ["@adelie/sandbox-bwrap"],};it("offers what the deployment ships, with the registry's entry for it", () => {- const rows = availablePluginRows(shipped, [entry("@lmliheng/sandbox-bwrap")]);+ const rows = availablePluginRows(shipped, [entry("@adelie/sandbox-bwrap")]);expect(rows.map((r) => [r.specifier, r.entry?.name, r.shipped])).toEqual([- ["@lmliheng/sandbox-bwrap", "@lmliheng/sandbox-bwrap", true],+ ["@adelie/sandbox-bwrap", "@adelie/sandbox-bwrap", true],]);});@@ -140,16 +136,16 @@ describe("availablePluginRows", () => {// one of them — but a Project cannot ask for it: it installs to an Agent, and the install// endpoint answers `plugin_not_shipped` for anything outside the build's own list.const rows = availablePluginRows(shipped, [- entry("@lmliheng/csu-mail", "2026.10.05.1"),- entry("@lmliheng/sandbox-bwrap"),+ entry("@adelie/csu-mail", "2026.10.05.1"),+ entry("@adelie/sandbox-bwrap"),]);- expect(rows.map((r) => r.specifier)).toEqual(["@lmliheng/sandbox-bwrap"]);+ expect(rows.map((r) => r.specifier)).toEqual(["@adelie/sandbox-bwrap"]);});it("offers a shipped package the registry has no entry for, with nothing to describe it", () => {const rows = availablePluginRows(shipped, []);expect(rows.map((r) => [r.specifier, r.entry, r.shipped])).toEqual([- ["@lmliheng/sandbox-bwrap", undefined, true],+ ["@adelie/sandbox-bwrap", undefined, true],]);});});@@ -158,8 +154,8 @@ describe("marketEntryFor", () => {const card = { name: "csu-mail", version: "2026.10.05.1" };it("finds the entry by the package specifier, when it carries the card's version", () => {- const index = [entry("@lmliheng/csu-mail", "2026.10.05.1"), entry("@lmliheng/other")];- expect(marketEntryFor(card, index)?.name).toBe("@lmliheng/csu-mail");+ const index = [entry("@adelie/csu-mail", "2026.10.05.1"), entry("@adelie/other")];+ expect(marketEntryFor(card, index)?.name).toBe("@adelie/csu-mail");});it("takes an entry named by the bare name as it is", () => {@@ -167,7 +163,7 @@ describe("marketEntryFor", () => {});it("is undefined for a name and version no entry carries — a user plugin has no package of the build's", () => {- expect(marketEntryFor(card, [entry("@lmliheng/csu-mail", "2026.09.01.1")])).toBeUndefined();+ expect(marketEntryFor(card, [entry("@adelie/csu-mail", "2026.09.01.1")])).toBeUndefined();expect(marketEntryFor(card, [entry("@acme/other")])).toBeUndefined();expect(marketEntryFor(card, [])).toBeUndefined();});diff --git a/packages/web/test/profile-form.test.ts b/packages/web/test/profile-form.test.tsindex e154383e..02039c21 100644--- a/packages/web/test/profile-form.test.ts+++ b/packages/web/test/profile-form.test.ts@@ -7,7 +7,7 @@* writes, which is the half a regression would land on silently.*/import { describe, expect, it } from "vitest";-import type { UserInfo } from "@lmliheng/penguin-server/api";+import type { UserInfo } from "@adelie/server/api";import { profileControls } from "../src/lib/profile-form";/** An account with nothing set: the state every account predating the Profile page is in. */diff --git a/packages/web/test/protocol-detect.test.ts b/packages/web/test/protocol-detect.test.tsindex fcbcbe00..f40d5387 100644--- a/packages/web/test/protocol-detect.test.ts+++ b/packages/web/test/protocol-detect.test.ts@@ -7,11 +7,7 @@* composes.*/import { describe, expect, it } from "vitest";-import {- MODEL_CATALOG,- modelEnvPreviewKey,- resolveModelEnv,-} from "@lmliheng/penguin-core/model-catalog";+import { MODEL_CATALOG, modelEnvPreviewKey, resolveModelEnv } from "@adelie/core/model-catalog";import { zh as ZH } from "../src/lib/strings";import { en as EN } from "../src/lib/strings-en";import { clientTypeAfterProviderChange, rowToEntry } from "../src/features/models/models-page";diff --git a/packages/web/test/protocol-path.test.ts b/packages/web/test/protocol-path.test.tsindex 1fec4473..ffb5b4ba 100644--- a/packages/web/test/protocol-path.test.ts+++ b/packages/web/test/protocol-path.test.ts@@ -6,7 +6,7 @@* /v1beta/models/<id>:…, and every OpenAI-compatible client posts /chat/completions.*/import { describe, expect, it } from "vitest";-import { MODEL_CATALOG } from "@lmliheng/penguin-core/model-catalog";+import { MODEL_CATALOG } from "@adelie/core/model-catalog";import { protocolPathForModel } from "../src/features/models/protocol-path";describe("protocolPathForModel", () => {diff --git a/packages/web/test/qq-scan-connect.test.ts b/packages/web/test/qq-scan-connect.test.tsindex 416c701b..29ea5d3a 100644--- a/packages/web/test/qq-scan-connect.test.ts+++ b/packages/web/test/qq-scan-connect.test.ts@@ -15,7 +15,7 @@ import { describe, expect, it } from "vitest";import { createElement } from "react";import { renderToStaticMarkup } from "react-dom/server";import { encode } from "uqr";-import type { QQBindingInfo, QQScanPollResponse } from "@lmliheng/penguin-server/api";+import type { QQBindingInfo, QQScanPollResponse } from "@adelie/server/api";import { ApiError } from "../src/api/client";import { QQScanConnect, QrCode, qqScanStep } from "../src/features/messaging/qq-scan-connect";import type { QQScanTally } from "../src/features/messaging/qq-scan-connect";diff --git a/packages/web/test/reply-copy.test.ts b/packages/web/test/reply-copy.test.tsindex 728a2955..56f3a9da 100644--- a/packages/web/test/reply-copy.test.ts+++ b/packages/web/test/reply-copy.test.ts@@ -13,7 +13,7 @@import { afterEach, describe, expect, it, vi } from "vitest";import { createElement } from "react";import { renderToStaticMarkup } from "react-dom/server";-import { ICONS } from "@lmliheng/penguin-ui";+import { ICONS } from "@adelie/ui";import { TaskStatsLine } from "../src/features/chat/task-stats-line";import { S, setActiveStrings, zh } from "../src/lib/strings";import { en } from "../src/lib/strings-en";diff --git a/packages/web/test/route-session-hold.test.ts b/packages/web/test/route-session-hold.test.tsindex cf694204..c1b2ed79 100644--- a/packages/web/test/route-session-hold.test.ts+++ b/packages/web/test/route-session-hold.test.ts@@ -6,7 +6,7 @@* hold.*/import { describe, expect, it } from "vitest";-import type { SessionInfo } from "@lmliheng/penguin-server/api";+import type { SessionInfo } from "@adelie/server/api";import { heldRouteSession } from "../src/features/chat/session-project";const row = (sessionId: string) => ({ sessionId }) as SessionInfo;diff --git a/packages/web/test/sandbox-backend-prompt.test.ts b/packages/web/test/sandbox-backend-prompt.test.tsindex 8603a7a3..d501eb01 100644--- a/packages/web/test/sandbox-backend-prompt.test.ts+++ b/packages/web/test/sandbox-backend-prompt.test.ts@@ -18,7 +18,7 @@ function memoryStorage(): PromptStorage & { data: Map<string, string> } {return { data, getItem: (k) => data.get(k) ?? null, setItem: (k, v) => void data.set(k, v) };}-const LINUX = ["@lmliheng/penguin-plugin-sandbox-bwrap", "@lmliheng/penguin-plugin-sandbox-dsh"];+const LINUX = ["@adelie/sandbox-bwrap", "@adelie/sandbox-dsh"];const MISSING = { backend: { installed: false, recommended: LINUX } };describe("the default-backend prompt", () => {diff --git a/packages/web/test/schedule-panel-state.test.ts b/packages/web/test/schedule-panel-state.test.tsindex a49a8352..dc5e3323 100644--- a/packages/web/test/schedule-panel-state.test.ts+++ b/packages/web/test/schedule-panel-state.test.ts@@ -4,7 +4,7 @@* the display statuses, what the search matches, and the whole-file toggle body.*/import { describe, expect, it } from "vitest";-import type { ProjectScheduleItem, ScheduleItem } from "@lmliheng/penguin-server/api";+import type { ProjectScheduleItem, ScheduleItem } from "@adelie/server/api";import {SCHEDULE_FILTERS,pendingScheduleSessions,diff --git a/packages/web/test/schedule-store.test.ts b/packages/web/test/schedule-store.test.tsindex 42d00e12..8fea1de2 100644--- a/packages/web/test/schedule-store.test.ts+++ b/packages/web/test/schedule-store.test.ts@@ -16,7 +16,7 @@* - The session list marks the Sessions of every Agent out of one answer.*/import { beforeEach, describe, expect, it } from "vitest";-import type { ProjectScheduleItem, ProjectSchedulesResponse } from "@lmliheng/penguin-server/api";+import type { ProjectScheduleItem, ProjectSchedulesResponse } from "@adelie/server/api";import { pendingScheduleSessions } from "../src/features/schedules/schedule-panel-state";import {noteScheduleEvent,diff --git a/packages/web/test/schedules-page-state.test.ts b/packages/web/test/schedules-page-state.test.tsindex b953e587..d4b71936 100644--- a/packages/web/test/schedules-page-state.test.ts+++ b/packages/web/test/schedules-page-state.test.ts@@ -4,10 +4,7 @@* first, and how the cross-Project answer becomes the "all projects" overview's groups.*/import { describe, expect, it } from "vitest";-import type {- AllProjectSchedulesResponse,- ProjectScheduleItem,-} from "@lmliheng/penguin-server/api";+import type { AllProjectSchedulesResponse, ProjectScheduleItem } from "@adelie/server/api";import {crossProjectGroups,groupSchedulesByAgent,diff --git a/packages/web/test/session-grouping.test.ts b/packages/web/test/session-grouping.test.tsindex 6d90b500..6e2dbefe 100644--- a/packages/web/test/session-grouping.test.ts+++ b/packages/web/test/session-grouping.test.ts@@ -38,11 +38,7 @@* least a page more, or the rest.*/import { describe, expect, it } from "vitest";-import type {- SessionCategoryCounts,- SessionInfo,- SessionSource,-} from "@lmliheng/penguin-server/api";+import type { SessionCategoryCounts, SessionInfo, SessionSource } from "@adelie/server/api";import type { ActivityKey, StreamPosition } from "../src/lib/session-grouping";import {SIDEBAR_PAGE_SIZE,diff --git a/packages/web/test/session-project.test.ts b/packages/web/test/session-project.test.tsindex 958e6142..06b358f1 100644--- a/packages/web/test/session-project.test.ts+++ b/packages/web/test/session-project.test.ts@@ -4,7 +4,7 @@* the route names when the loaded list does not hold it.*/import { describe, expect, it } from "vitest";-import type { SessionInfo } from "@lmliheng/penguin-server/api";+import type { SessionInfo } from "@adelie/server/api";import {resolveRoutedSession,sessionForProject,diff --git a/packages/web/test/session-source-mark.test.ts b/packages/web/test/session-source-mark.test.tsindex 8c7eee14..adfeea4a 100644--- a/packages/web/test/session-source-mark.test.ts+++ b/packages/web/test/session-source-mark.test.ts@@ -10,8 +10,8 @@* - In English, no mark falls back to a Chinese name.*/import { afterEach, describe, expect, it } from "vitest";-import type { SessionInfo, SessionSource } from "@lmliheng/penguin-server/api";-import { ICONS } from "@lmliheng/penguin-ui";+import type { SessionInfo, SessionSource } from "@adelie/server/api";+import { ICONS } from "@adelie/ui";import { backgroundSourceMark } from "../src/lib/session-source-mark";import { setActiveStrings, zh } from "../src/lib/strings";import { en } from "../src/lib/strings-en";diff --git a/packages/web/test/session-status-events.test.ts b/packages/web/test/session-status-events.test.tsindex 766d5ff5..3d5eb610 100644--- a/packages/web/test/session-status-events.test.ts+++ b/packages/web/test/session-status-events.test.ts@@ -25,7 +25,7 @@* the list, and anything else is ignored.*/import { describe, expect, it } from "vitest";-import type { ServerEvent, SessionInfo, SessionStatus } from "@lmliheng/penguin-server/api";+import type { ServerEvent, SessionInfo, SessionStatus } from "@adelie/server/api";import { applyUserEvent, createSessionsStore } from "../src/state/sessions";import { isSessionUnread, markSessionSeen } from "../src/lib/session-seen";import type { SessionSeenState } from "../src/lib/session-seen";diff --git a/packages/web/test/sessions-store.test.ts b/packages/web/test/sessions-store.test.tsindex bbd0de7a..1bd179c7 100644--- a/packages/web/test/sessions-store.test.ts+++ b/packages/web/test/sessions-store.test.ts@@ -67,7 +67,7 @@ import type {SessionCategoryCounts,SessionInfo,SessionsResponse,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import {applyUserEvent,createSessionsStore,diff --git a/packages/web/test/skill-slash.test.ts b/packages/web/test/skill-slash.test.tsindex a7aa10ce..238d3a53 100644--- a/packages/web/test/skill-slash.test.ts+++ b/packages/web/test/skill-slash.test.ts@@ -13,7 +13,7 @@* uses, which names the picked skills in the UI language.*/import { describe, expect, it } from "vitest";-import type { SkillMetadataItem } from "@lmliheng/penguin-server/api";+import type { SkillMetadataItem } from "@adelie/server/api";import {filterSkills,localizedShortText,diff --git a/packages/web/test/storage-labels.test.ts b/packages/web/test/storage-labels.test.tsindex 8e6ee45b..017f630c 100644--- a/packages/web/test/storage-labels.test.ts+++ b/packages/web/test/storage-labels.test.ts@@ -41,7 +41,7 @@ import type {StorageClass,StoragePlanView,StorageTrashEntry,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";/** Every class the ledger accounts for (core's STORAGE_CLASSES, the API's StorageClass). */const CLASSES: StorageClass[] = [diff --git a/packages/web/test/storage-review.test.ts b/packages/web/test/storage-review.test.tsindex 47b2143b..0e3c0f04 100644--- a/packages/web/test/storage-review.test.ts+++ b/packages/web/test/storage-review.test.ts@@ -29,7 +29,7 @@ import {storageTogglePath,storageUnselectClass,} from "../src/features/settings/storage-review";-import type { StoragePlanEntryView, StoragePlanView } from "@lmliheng/penguin-server/api";+import type { StoragePlanEntryView, StoragePlanView } from "@adelie/server/api";const tmp1 = "proj/agents/docs/workspaces/tmp-11111111";const tmp2 = "proj/agents/docs/workspaces/tmp-22222222";diff --git a/packages/web/test/stream-controller.test.ts b/packages/web/test/stream-controller.test.tsindex 59e3599d..71529c01 100644--- a/packages/web/test/stream-controller.test.ts+++ b/packages/web/test/stream-controller.test.ts@@ -32,8 +32,8 @@ import {toolCallOutput,userText,withOrigin,-} from "@lmliheng/penguin-core/omnimessage";-import type { OmniMessage, TokenCounts } from "@lmliheng/penguin-core/omnimessage";+} from "@adelie/core/omnimessage";+import type { OmniMessage, TokenCounts } from "@adelie/core/omnimessage";import type {MessagesLiveTail,MessagesPageInfo,@@ -41,7 +41,7 @@ import type {PendingSteeringInfo,ServerEvent,SessionStatus,-} from "@lmliheng/penguin-server/api";+} from "@adelie/server/api";import { OLDER_UNITS, TAIL_UNITS, createStreamController } from "../src/lib/omni/stream-controller";import type { MessagesPageQuery, StreamController } from "../src/lib/omni/stream-controller";import { approvalKey, findToolCard } from "../src/lib/omni/stream-model";diff --git a/packages/web/test/stream-model.test.ts b/packages/web/test/stream-model.test.tsindex a5a84fa7..44ee6b2c 100644--- a/packages/web/test/stream-model.test.ts+++ b/packages/web/test/stream-model.test.ts@@ -63,12 +63,8 @@ import {toolCallOutput,userText,withOrigin,-} from "@lmliheng/penguin-core/omnimessage";-import type {- OmniMessage,- SessionMetaPayload,- TokenCounts,-} from "@lmliheng/penguin-core/omnimessage";+} from "@adelie/core/omnimessage";+import type { OmniMessage, SessionMetaPayload, TokenCounts } from "@adelie/core/omnimessage";import {approvalKey,buildDedupIndex,diff --git a/packages/web/test/stream-selection-menu.test.ts b/packages/web/test/stream-selection-menu.test.tsindex 8f5c0d63..d3271444 100644--- a/packages/web/test/stream-selection-menu.test.ts+++ b/packages/web/test/stream-selection-menu.test.ts@@ -14,7 +14,7 @@ import { afterEach, describe, expect, it, vi } from "vitest";import { createElement, isValidElement } from "react";import type { ReactElement, ReactNode } from "react";import { renderToStaticMarkup } from "react-dom/server";-import { ICONS } from "@lmliheng/penguin-ui";+import { ICONS } from "@adelie/ui";import { LinkMenuRows, SelectionMenuRows } from "../src/features/chat/stream-selection-menu";import type { CapturedSelection } from "../src/features/chat/stream-selection-menu";import type { ComposerControl } from "../src/features/chat/chat-input";@@ -27,8 +27,8 @@ import { en } from "../src/lib/strings-en";/** Toasts raised during a test (the real store would leave its dismiss timers running). */const toasts = vi.hoisted(() => [] as string[]);-vi.mock("@lmliheng/penguin-ui", async (importOriginal) => {- const actual = await importOriginal<typeof import("@lmliheng/penguin-ui")>();+vi.mock("@adelie/ui", async (importOriginal) => {+ const actual = await importOriginal<typeof import("@adelie/ui")>();return {...actual,toastSuccess: (text: string) => {diff --git a/packages/web/test/task-stats.test.ts b/packages/web/test/task-stats.test.tsindex 6a33355f..d455524d 100644--- a/packages/web/test/task-stats.test.ts+++ b/packages/web/test/task-stats.test.ts@@ -3,7 +3,7 @@* output item for item.*/import { describe, expect, it } from "vitest";-import type { TokenUsagePayload } from "@lmliheng/penguin-core/omnimessage";+import type { TokenUsagePayload } from "@adelie/core/omnimessage";import {addLlmDuration,addToolExecution,diff --git a/packages/web/test/theme-prefs.test.ts b/packages/web/test/theme-prefs.test.tsindex e3708108..8f0b6a92 100644--- a/packages/web/test/theme-prefs.test.ts+++ b/packages/web/test/theme-prefs.test.ts@@ -15,14 +15,14 @@* dictionary.*/import { afterEach, describe, expect, it } from "vitest";-import { ACCENT_PRESET_IDS, THEME_IDS } from "@lmliheng/penguin-ui";+import { ACCENT_PRESET_IDS, THEME_IDS } from "@adelie/ui";import {FONT_CJK_OPTIONS,FONT_LATIN_OPTIONS,TEXT_SIZES,THEME_STORAGE_KEYS,applyThemeAttributes,-} from "@lmliheng/penguin-ui/boot";+} from "@adelie/ui/boot";import { effectiveAccent, readThemePrefs } from "../src/state/theme-prefs";import { fontChoices } from "../src/features/settings/appearance-section";import { setActiveStrings, zh } from "../src/lib/strings";diff --git a/packages/web/test/thinking-level.test.ts b/packages/web/test/thinking-level.test.tsindex beec4106..89a9b49d 100644--- a/packages/web/test/thinking-level.test.ts+++ b/packages/web/test/thinking-level.test.ts@@ -22,7 +22,7 @@* - The in-session picker follows the Agent config until a level is pinned on the Session.*/import { describe, expect, it } from "vitest";-import { DEFAULT_CHAT_THINKING_LEVELS } from "@lmliheng/penguin-core";+import { DEFAULT_CHAT_THINKING_LEVELS } from "@adelie/core";import { en } from "../src/lib/strings-en";import { zh } from "../src/lib/strings";import {diff --git a/packages/web/test/ticket-board.test.ts b/packages/web/test/ticket-board.test.tsindex 9e7843ea..049304dd 100644--- a/packages/web/test/ticket-board.test.ts+++ b/packages/web/test/ticket-board.test.ts@@ -13,7 +13,7 @@* - The tickets the server flagged invalid are listed in column order.*/import { describe, expect, it } from "vitest";-import type { OrgTicketItem, OrgTicketsResponse } from "@lmliheng/penguin-server/api";+import type { OrgTicketItem, OrgTicketsResponse } from "@adelie/server/api";import {allTickets,boardColumns,diff --git a/packages/web/test/ticket-history.test.ts b/packages/web/test/ticket-history.test.tsindex 684a6ce9..375d09d5 100644--- a/packages/web/test/ticket-history.test.ts+++ b/packages/web/test/ticket-history.test.ts@@ -9,7 +9,7 @@* emptiness on its own.*/import { describe, expect, it } from "vitest";-import type { OrgTicketDetail, OrgTicketHistoryEntry } from "@lmliheng/penguin-server/api";+import type { OrgTicketDetail, OrgTicketHistoryEntry } from "@adelie/server/api";import { ticketHistoryRows, ticketSummaryCounts } from "../src/features/company/ticket-history";const entry = (over: Partial<OrgTicketHistoryEntry> = {}): OrgTicketHistoryEntry => ({diff --git a/packages/web/test/todo-badges.test.ts b/packages/web/test/todo-badges.test.tsindex f19d0d7d..1160a0c1 100644--- a/packages/web/test/todo-badges.test.ts+++ b/packages/web/test/todo-badges.test.ts@@ -8,7 +8,7 @@* version, a different model, a newer error — raises it again.*/import { describe, expect, it } from "vitest";-import type { AgentSummary, UsageErrorsPage } from "@lmliheng/penguin-server/api";+import type { AgentSummary, UsageErrorsPage } from "@adelie/server/api";import {kernelUpdateTodo,pluginUpdateTodo,diff --git a/packages/web/test/tool-alias.test.ts b/packages/web/test/tool-alias.test.tsindex a2e2e96e..cb0d1e1b 100644--- a/packages/web/test/tool-alias.test.ts+++ b/packages/web/test/tool-alias.test.ts@@ -9,7 +9,7 @@* without a short name fails here instead of shipping a card that reads as the wire name.*/import { afterEach, describe, expect, it } from "vitest";-import { BUILTIN_TOOL_FACTORIES } from "@lmliheng/penguin-core";+import { BUILTIN_TOOL_FACTORIES } from "@adelie/core";import { setActiveStrings, zh } from "../src/lib/strings";import { en } from "../src/lib/strings-en";import { toolDisplayName } from "../src/lib/tool-alias";diff --git a/packages/web/test/trace-file-view.test.ts b/packages/web/test/trace-file-view.test.tsindex 3d631d12..6c5c4560 100644--- a/packages/web/test/trace-file-view.test.ts+++ b/packages/web/test/trace-file-view.test.ts@@ -19,8 +19,8 @@import { createElement } from "react";import { renderToStaticMarkup } from "react-dom/server";import { describe, expect, it } from "vitest";-import type { OmniMessage } from "@lmliheng/penguin-core/omnimessage";-import type { TraceAnalysisResponse, TraceTaskStats } from "@lmliheng/penguin-server/api";+import type { OmniMessage } from "@adelie/core/omnimessage";+import type { TraceAnalysisResponse, TraceTaskStats } from "@adelie/server/api";import {EMPTY_FILE,TraceFileBody,diff --git a/packages/web/test/trace-rounds.test.ts b/packages/web/test/trace-rounds.test.tsindex cc376ef1..abd836e3 100644--- a/packages/web/test/trace-rounds.test.ts+++ b/packages/web/test/trace-rounds.test.ts@@ -16,8 +16,8 @@* opens only when the reader was following the newest one.*/import { describe, expect, it } from "vitest";-import type { OmniMessage } from "@lmliheng/penguin-core/omnimessage";-import type { TraceEventsResponse } from "@lmliheng/penguin-server/api";+import type { OmniMessage } from "@adelie/core/omnimessage";+import type { TraceEventsResponse } from "@adelie/server/api";import {TRACE_EVENT_PAGE_SIZE,TRACE_ROUNDS_PAGE,diff --git a/packages/web/test/ui-strings.test.ts b/packages/web/test/ui-strings.test.tsindex 69fc7045..45e1340f 100644--- a/packages/web/test/ui-strings.test.ts+++ b/packages/web/test/ui-strings.test.ts@@ -7,7 +7,7 @@* renders.*/import { describe, expect, it } from "vitest";-import { DEFAULT_UI_STRINGS } from "@lmliheng/penguin-ui";+import { DEFAULT_UI_STRINGS } from "@adelie/ui";import { uiStringsFor } from "../src/lib/ui-strings";const KEYS = Object.keys(DEFAULT_UI_STRINGS).sort();diff --git a/packages/web/test/update-check-outcome.test.ts b/packages/web/test/update-check-outcome.test.tsindex 46e10670..43a6bfad 100644--- a/packages/web/test/update-check-outcome.test.ts+++ b/packages/web/test/update-check-outcome.test.ts@@ -4,7 +4,7 @@* and "found" requires the release to be named so the toast and row have something to show.*/import { describe, expect, it } from "vitest";-import type { UpdateCheckResponse } from "@lmliheng/penguin-server/api";+import type { UpdateCheckResponse } from "@adelie/server/api";import { updateCheckOutcome } from "../src/lib/use-version-info";function response(overrides: Partial<UpdateCheckResponse>): UpdateCheckResponse {diff --git a/packages/web/test/update-flow.test.ts b/packages/web/test/update-flow.test.tsindex 7c3a20df..9ee6c713 100644--- a/packages/web/test/update-flow.test.ts+++ b/packages/web/test/update-flow.test.ts@@ -8,11 +8,7 @@* process cannot be restarted from the page, the modal says so instead of pretending.*/import { describe, expect, it } from "vitest";-import type {- DesktopUpdateStatus,- UpdateCheckResponse,- UpdateJobStatus,-} from "@lmliheng/penguin-server/api";+import type { DesktopUpdateStatus, UpdateCheckResponse, UpdateJobStatus } from "@adelie/server/api";import {NO_LOCAL,clientFlow,diff --git a/packages/web/test/usage-controls.test.ts b/packages/web/test/usage-controls.test.tsindex 371df0f5..37f6f6a9 100644--- a/packages/web/test/usage-controls.test.ts+++ b/packages/web/test/usage-controls.test.ts@@ -15,7 +15,7 @@* marking breaks where buckets were skipped; per-entity counts stay with their buckets.*/import { describe, expect, it } from "vitest";-import type { UsageSeriesPoint } from "@lmliheng/penguin-server/api";+import type { UsageSeriesPoint } from "@adelie/server/api";import {bucketAxisLabel,bucketFullLabel,diff --git a/packages/web/test/vendor-group-models.test.ts b/packages/web/test/vendor-group-models.test.tsindex d39d74bd..c8cb187a 100644--- a/packages/web/test/vendor-group-models.test.ts+++ b/packages/web/test/vendor-group-models.test.ts@@ -22,7 +22,7 @@ import {isAddableGroup,isVendorGroup,unroutableVendorModel,-} from "@lmliheng/penguin-core/model-catalog";+} from "@adelie/core/model-catalog";import { groupHeaderActions } from "../src/features/models/group-header";import { ModelCard, unroutableFix } from "../src/features/models/models-page";import type { RowState } from "../src/features/models/models-page";diff --git a/packages/web/test/wechat-scan-connect.test.ts b/packages/web/test/wechat-scan-connect.test.tsindex 1fb893db..8c7fc3a7 100644--- a/packages/web/test/wechat-scan-connect.test.ts+++ b/packages/web/test/wechat-scan-connect.test.ts@@ -14,7 +14,7 @@import { describe, expect, it } from "vitest";import { createElement } from "react";import { renderToStaticMarkup } from "react-dom/server";-import type { WeChatBindingInfo, WeChatScanPollResponse } from "@lmliheng/penguin-server/api";+import type { WeChatBindingInfo, WeChatScanPollResponse } from "@adelie/server/api";import { ApiError } from "../src/api/client";import { WeChatScanConnect, wechatScanStep } from "../src/features/messaging/wechat-scan-connect";import type { WeChatScanTally } from "../src/features/messaging/wechat-scan-connect";diff --git a/packages/web/test/workflow-tabs.test.ts b/packages/web/test/workflow-tabs.test.tsindex 0c3b9083..4f187bd9 100644--- a/packages/web/test/workflow-tabs.test.ts+++ b/packages/web/test/workflow-tabs.test.ts@@ -1,5 +1,5 @@import { describe, expect, it } from "vitest";-import type { WorkflowInfo } from "@lmliheng/penguin-server/api";+import type { WorkflowInfo } from "@adelie/server/api";import {appPageTab,settleActiveTab,diff --git a/packages/web/test/workspace-finder.test.ts b/packages/web/test/workspace-finder.test.tsindex e847e0a1..e388b62d 100644--- a/packages/web/test/workspace-finder.test.ts+++ b/packages/web/test/workspace-finder.test.ts@@ -31,7 +31,7 @@* layout.*/import { describe, expect, it } from "vitest";-import type { DirEntryInfo, DirListResponse, DirLocation } from "@lmliheng/penguin-server/api";+import type { DirEntryInfo, DirListResponse, DirLocation } from "@adelie/server/api";import {EMPTY_HISTORY,NO_EDITS,diff --git a/packages/web/test/workspace-machines.test.ts b/packages/web/test/workspace-machines.test.tsindex 0c609c83..178a8d69 100644--- a/packages/web/test/workspace-machines.test.ts+++ b/packages/web/test/workspace-machines.test.ts@@ -4,7 +4,7 @@* offering one that cannot be reached would fail at the first click instead of the choice.*/import { describe, expect, it } from "vitest";-import type { MachineInfo, MachinesResponse } from "@lmliheng/penguin-server/api";+import type { MachineInfo, MachinesResponse } from "@adelie/server/api";import {isElsewhere,machineLabel,diff --git a/packages/web/test/workspace-tree.test.ts b/packages/web/test/workspace-tree.test.tsindex 03d5416a..00029771 100644--- a/packages/web/test/workspace-tree.test.ts+++ b/packages/web/test/workspace-tree.test.ts@@ -23,7 +23,7 @@* still fenced as a quotation, never text for the draft.*/import { describe, expect, it } from "vitest";-import type { WorkspaceFileEntry, WorkspaceSearchHit } from "@lmliheng/penguin-server/api";+import type { WorkspaceFileEntry, WorkspaceSearchHit } from "@adelie/server/api";import { blockedStorage, memoryStorage } from "./helpers/storage";import {type ComposerReference,diff --git a/packages/web/tsconfig.json b/packages/web/tsconfig.jsonindex b2260a29..7c29cb61 100644--- a/packages/web/tsconfig.json+++ b/packages/web/tsconfig.json@@ -6,7 +6,7 @@"jsx": "react-jsx","useDefineForClassFields": true,"paths": {- "@lmliheng/penguin-server/api": ["../server/src/api/types.ts"]+ "@adelie/server/api": ["../server/src/api/types.ts"]}},"include": ["src", "test", "vite.config.ts", "vitest.config.ts"]diff --git a/plugins/README.md b/plugins/README.mdindex df7f7929..2e19acbb 100644--- a/plugins/README.md+++ b/plugins/README.md@@ -1,6 +1,6 @@# Built-in plugins-The Adelie plugin library. Each plugin is its own npm package — `@lmliheng/<name>`, a directory under `plugins/` — with a `plugin.json` manifest (and an `icon.svg` beside it: the icon of everything the plugin ships, which its installed skills and hook package inherit) plus the content it ships: **skills** (`skills/<name>/SKILL.md`, installed into an Agent's `agent_state/skills/`) and/or a **hook package** (`hooks/*.mjs`, installed into `agent_state/hooks/<plugin>/` with a generated `hooks.json`). The loader lives in `@lmliheng/penguin-core`, which depends on these packages and reads their directories at runtime — the files are the source of truth.+The Adelie plugin library. Each plugin is its own npm package — `@adelie/<name>`, a directory under `plugins/` — with a `plugin.json` manifest (and an `icon.svg` beside it: the icon of everything the plugin ships, which its installed skills and hook package inherit) plus the content it ships: **skills** (`skills/<name>/SKILL.md`, installed into an Agent's `agent_state/skills/`) and/or a **hook package** (`hooks/*.mjs`, installed into `agent_state/hooks/<plugin>/` with a generated `hooks.json`). The loader lives in `@adelie/core`, which depends on these packages and reads their directories at runtime — the files are the source of truth.Versions are dates with a sequence number — `YYYY.MM.DD.N` — on the manifest and on every skill a plugin ships (the manifest's dated version is the plugin's own; the package's npm version follows the release). Skills follow the "index first, body on demand" design: only their metadata is injected into an Agent's system prompt; the Agent reads the full `SKILL.md` via shell when it actually needs it. Hook scripts are plain Node (builtins only): the harness runs them as subprocesses at the loop's hook points with `{ hook, session_id, trace_path }` on stdin and reads their JSON answer from stdout.@@ -32,6 +32,6 @@ Included plugins, by category (`PLUGIN_CATEGORIES` in `packages/core/src/pluginsThe plugins are data, not code — there is nothing to build here. The loader, its types and their tests live in `packages/core`:```bash-pnpm --filter @lmliheng/penguin-core build # includes the plugin loader-pnpm --filter @lmliheng/penguin-core test # loader, README tables, the hook scripts against fake Traces+pnpm --filter @adelie/core build # includes the plugin loader+pnpm --filter @adelie/core test # loader, README tables, the hook scripts against fake Traces```diff --git a/plugins/agent-company/package.json b/plugins/agent-company/package.jsonindex 4b8e716a..48f1538c 100644--- a/plugins/agent-company/package.json+++ b/plugins/agent-company/package.json@@ -1,5 +1,5 @@{- "name": "@lmliheng/agent-company",+ "name": "@adelie/agent-company","version": "0.4.2","description": "Company mode for Adelie agents: creating the organization with the user, the employee protocol every desk and ticket session follows, plus the CEO, HR and finance playbooks for running an organization on calendar events, tickets, channels and budgets.","license": "Apache-2.0",diff --git a/plugins/agent-development/package.json b/plugins/agent-development/package.jsonindex 6de3f763..bade0c39 100644--- a/plugins/agent-development/package.json+++ b/plugins/agent-development/package.json@@ -1,5 +1,5 @@{- "name": "@lmliheng/agent-development",+ "name": "@adelie/agent-development","version": "0.4.2","description": "Agent development on Adelie: build agent apps on the SDK or connect them to an agent over the Agent API, call any model through one unified LLM API, manage models and secrets, and orchestrate agents, sessions, costs and schedules.","license": "Apache-2.0",diff --git a/plugins/agent-development/plugin.json b/plugins/agent-development/plugin.jsonindex fdd851dd..3dcbefec 100644--- a/plugins/agent-development/plugin.json+++ b/plugins/agent-development/plugin.json@@ -3,6 +3,6 @@"description_zh": "基于 Adelie 的智能体开发:用 SDK 构建应用或经 Agent API 接入智能体、经统一的 LLM API 调用任意模型、管理模型与密钥、编排智能体/会话/成本/定时任务。","short_description": "SDK, Agent API, unified LLM API, config and orchestration.","short_description_zh": "SDK、Agent API、统一 LLM API、配置与编排。",- "version": "2026.10.16.1",+ "version": "2026.10.17.1","category": "ai-app-development"}diff --git a/plugins/agent-development/skills/penguin-sdk/SKILL.md b/plugins/agent-development/skills/penguin-sdk/SKILL.mdindex fa1d5a0a..c3773b4f 100644--- a/plugins/agent-development/skills/penguin-sdk/SKILL.md+++ b/plugins/agent-development/skills/penguin-sdk/SKILL.md@@ -1,6 +1,6 @@---name: penguin-sdk-description: Use whenever the user wants to build an agent application — their own program with an agent in it, such as an AI app, an agentic app, a RAG app or a bot — or to connect a program to an Adelie agent. A program reaches an agent in one of two ways, and the skill asks the user which before building — embedded with the Penguin Harness SDK (`@lmliheng/penguin-core`, no server), or over the Adelie server's Agent API (AMSP, with the `@lmliheng/amsp` client or curl). This is writing application code, not configuring an Agent State inside Adelie. Covers self-contained projects, the createSession/run streaming loop with thinking and image messages, wiring the user's existing tools in as CLI commands, a complete RAG recipe that ingests documents into a knowledge base and answers with citations behind a web UI, and the Agent API client. Also use it for workflows — the tabs and pages beside the chat that an Agent keeps in its own `workflows/` folder inside Adelie: building one, changing it, restoring an earlier version, and removing a tab or a whole workflow when the user wants the custom UI gone.+description: Use whenever the user wants to build an agent application — their own program with an agent in it, such as an AI app, an agentic app, a RAG app or a bot — or to connect a program to an Adelie agent. A program reaches an agent in one of two ways, and the skill asks the user which before building — embedded with the Penguin Harness SDK (`@adelie/core`, no server), or over the Adelie server's Agent API (AMSP, with the `@adelie/amsp` client or curl). This is writing application code, not configuring an Agent State inside Adelie. Covers self-contained projects, the createSession/run streaming loop with thinking and image messages, wiring the user's existing tools in as CLI commands, a complete RAG recipe that ingests documents into a knowledge base and answers with citations behind a web UI, and the Agent API client. Also use it for workflows — the tabs and pages beside the chat that an Agent keeps in its own `workflows/` folder inside Adelie: building one, changing it, restoring an earlier version, and removing a tab or a whole workflow when the user wants the custom UI gone.---# Penguin Harness SDK and Agent API@@ -11,7 +11,7 @@ To have an agent perform a task for you, use the `run_subagent` tool: both ways## Two ways to reach an agent-**The SDK: `@lmliheng/penguin-core`, embedded in the program.**+**The SDK: `@adelie/core`, embedded in the program.**- *What it is.* The agent loop as a TypeScript library. The program creates its own Agent from a data directory inside the project and runs its Sessions in-process. No Adelie server is involved, at build time or at run time.- *What you get.* The basic agent loop: the Agent State files (`AGENTS.md`, Skills, tools), the streamed OmniMessages and an `approve` callback for every tool call, in a self-contained folder that runs wherever Node 24 does, on the program's own model key.@@ -20,7 +20,7 @@ To have an agent perform a task for you, use the `run_subagent` tool: both ways**The API: Adelie's Agent API, over AMSP.**-- *What it is.* The program calls an Agent that lives in Adelie, over HTTP. The Adelie server runs each turn and streams it back as AMSP events, and the program continues a conversation by its Session id. TypeScript uses the `@lmliheng/amsp` client (`AgentClient`); any other language, or curl, speaks HTTP and SSE directly.+- *What it is.* The program calls an Agent that lives in Adelie, over HTTP. The Adelie server runs each turn and streams it back as AMSP events, and the program continues a conversation by its Session id. TypeScript uses the `@adelie/amsp` client (`AgentClient`); any other language, or curl, speaks HTTP and SSE directly.- *What you get.* The Agent as Adelie runs it: its `AGENTS.md`, Skills and memory, on the Project's models and credentials, so the program holds no model key. The server keeps the conversations in the Agent's Background folder, where a person can read them and answer approvals, and their usage lands in the cost center.- *What it requires.* A running Adelie server that the program can reach over the network; API access turned on for that Agent by the Project's owner, on the Agent's **API** tab; and a key created there, shown once. You never turn these on yourself (see *The API path*).- *Choose it when* the Agent already exists in Adelie or should be managed there, people need to see its conversations or costs, or the program is not written in TypeScript.@@ -31,7 +31,7 @@ Whenever the user asks to connect a program to an agent, or to build a program wDo not ask when the way is already chosen:-- in the user's message: "use the SDK", "standalone", "without the Adelie server" or "embed the agent" chooses the SDK; "call it over the API", "through the Agent API", "with AMSP", "with `@lmliheng/amsp`" or "with curl" chooses the API;+- in the user's message: "use the SDK", "standalone", "without the Adelie server" or "embed the agent" chooses the SDK; "call it over the API", "through the Agent API", "with AMSP", "with `@adelie/amsp`" or "with curl" chooses the API;- earlier in this conversation, for the same program.Naming this skill does not choose a way. Workflows (below) take neither way and need no question; neither does connecting a Feishu, Telegram, QQ or WeChat bot to a conversation, which is the Web App's Remote control.@@ -69,13 +69,13 @@ The Web App shows the block as two buttons; the CLI and the messaging channels sIf the user's message only invokes this skill (e.g. "use penguin-sdk skill") without a concrete app to build, ask the user what they want to build. Once the request is concrete, settle the way first (see *Ask which way first*); a workflow needs none. Then do **not** ask follow-up questions: build it end to end with that way's defaults and list the assumptions you made in your final reply.- SDK path: a self-contained workspace project, the project default model, BM25 retrieval, a web UI styled per the web-design skill.-- API path: a self-contained workspace project in TypeScript on `@lmliheng/amsp` (plain HTTP when the user's program is in another language), calling the Agent the user named ("you" means this Agent) or, with none named, a new Agent created for the purpose with the agent-initialization skill.+- API path: a self-contained workspace project in TypeScript on `@adelie/amsp` (plain HTTP when the user's program is in another language), calling the Agent the user named ("you" means this Agent) or, with none named, a new Agent created for the purpose with the agent-initialization skill.Each path also needs one thing only the user can provide: a model credential on the SDK path (see *Keys and the data root*), and on the API path the Agent's API access and key (see *The API path*).## The SDK path-`@lmliheng/penguin-core` is the TypeScript SDK this agent itself runs on. Use it to build your own AI apps:+`@adelie/core` is the TypeScript SDK this agent itself runs on. Use it to build your own AI apps:- An **Agent** loads its state (prompts, tools, skills) from `<root>/<project_id>/agents/<agent_id>/`. Creating an Agent whose directory is empty initializes it with defaults.- A **Session** is one conversation of an Agent inside a **Workspace** directory.@@ -108,10 +108,10 @@ If neither counted source yields a key, **stop immediately and ask the user to c### Setup```bash-npm install @lmliheng/penguin-core tsx+npm install @adelie/core tsx```-If the package is not on your npm registry (it is developed in the Adelie monorepo and may not be published), develop inside a checkout of the Adelie repo instead: add your app as a workspace package under `packages/`, depend on `"@lmliheng/penguin-core": "workspace:*"`, then `pnpm install && pnpm build` at the repo root. Tell the user which route you took.+If the package is not on your npm registry (it is developed in the Adelie monorepo and may not be published), develop inside a checkout of the Adelie repo instead: add your app as a workspace package under `packages/`, depend on `"@adelie/core": "workspace:*"`, then `pnpm install && pnpm build` at the repo root. Tell the user which route you took.Configure a model for the app's data root, in this order — stop at the first that works:@@ -131,7 +131,7 @@ The raw `run()` stream mixes model, event and session-meta payloads — always n```tsimport path from "node:path";import readline from "node:readline/promises";-import { createAgent, isModelMessage, userText } from "@lmliheng/penguin-core";+import { createAgent, isModelMessage, userText } from "@adelie/core";const agent = await createAgent({ root: path.join(import.meta.dirname, "penguin_data") });const session = await agent.createSession({ workspaceDir: process.cwd() });@@ -172,7 +172,7 @@ Modern models think before answering and accept images; the stream and the input**Images in.** Build image input with `imageUrlMessage` (a web URL or a base64 data URL) beside `userText` in the same `run` input:```ts-import { imageUrlMessage, userText } from "@lmliheng/penguin-core";+import { imageUrlMessage, userText } from "@adelie/core";session.run([userText(question), ...images.map(imageUrlMessage)], { ... });```@@ -215,7 +215,7 @@ find corpus -type f ! -regex '.*\.\(md\|mdx\|txt\|html?\)$' -delete && rm -rf co```tsimport fs from "node:fs";import path from "node:path";-import { createAgent } from "@lmliheng/penguin-core";+import { createAgent } from "@adelie/core";const ROOT = import.meta.dirname;const walk = (d: string): string[] =>@@ -312,7 +312,7 @@ export function search(index: Index, query: string, k = 6): Chunk[] {import fs from "node:fs";import http from "node:http";import path from "node:path";-import { createAgent, isModelMessage, userText } from "@lmliheng/penguin-core";+import { createAgent, isModelMessage, userText } from "@adelie/core";import { loadIndex, search } from "./rag.ts";const ROOT = import.meta.dirname;@@ -466,8 +466,8 @@ The root manifest is named `Workflow`; it requires the host, provides the handle"modules": [{"name": "Workflow",- "requires": { "host": { "iface": "@lmliheng/penguin-server#WorkflowHost", "from": "Host" } },- "provides": { "main": "@lmliheng/penguin-server#WorkflowMain" },+ "requires": { "host": { "iface": "@adelie/server#WorkflowHost", "from": "Host" } },+ "provides": { "main": "@adelie/server#WorkflowMain" },"contributes": {"WebModule.sessionTabs": [{ "id": "demo.main", "key": "main", "title": "Demo", "titleZh": "演示", "renderer": { "iframe": { "src": "ui/index.html" } } }@@ -480,7 +480,7 @@ The root manifest is named `Workflow`; it requires the host, provides the handle``````ts-import type { WorkflowPackage } from "@lmliheng/penguin-server/plugin";+import type { WorkflowPackage } from "@adelie/server/plugin";export default {modules: {@@ -512,7 +512,7 @@ export default {**TypeScript, checked by the server.** There is no build step to run, no `tsconfig.json` to write and nothing to `npm install`: the server builds one program from `index.ts` (and the `.ts` files it imports, with `.js` in the import specifier as NodeNext asks) under options it fixes itself — `strict` among them — refuses the load on any diagnostic, reporting file, line and reason, and otherwise emits into `.build/<revision>/` and imports that. `satisfies WorkflowPackage` is what types `use.host` and `req`; without it `strict` refuses the untyped parameters. A folder holding `index.js` or `index.mjs` instead is refused outright.-**Types come from the harness that runs you.** One machine can run several harnesses — a release, a checkout, a platform someone pushed with interfaces of its own — and none of them is a version on npm, so `@lmliheng/penguin-server/plugin` is not a package here: the first time the server loads the folder it writes `.harness/plugin.d.ts`, rendered from ITS OWN interface table, and that is what the import resolves to. Create `package.json` and a minimal `index.ts`, let the server load it once, then read `.harness/plugin.d.ts` for the exact `WorkflowHost` this harness offers. The server then leaves `.harness/` alone: it is the record of what the workflow was written against, and a later generation of the platform is COMPARED with it, by the TypeScript compiler, both for what the workflow requires and what it provides — a host method you rely on that has since gone is a load error naming it, not a failure on the first call. To move a workflow onto the harness that runs it now, delete `.harness/` and fix what the compiler then reports.+**Types come from the harness that runs you.** One machine can run several harnesses — a release, a checkout, a platform someone pushed with interfaces of its own — and none of them is a version on npm, so `@adelie/server/plugin` is not a package here: the first time the server loads the folder it writes `.harness/plugin.d.ts`, rendered from ITS OWN interface table, and that is what the import resolves to. Create `package.json` and a minimal `index.ts`, let the server load it once, then read `.harness/plugin.d.ts` for the exact `WorkflowHost` this harness offers. The server then leaves `.harness/` alone: it is the record of what the workflow was written against, and a later generation of the platform is COMPARED with it, by the TypeScript compiler, both for what the workflow requires and what it provides — a host method you rely on that has since gone is a load error naming it, not a failure on the first call. To move a workflow onto the harness that runs it now, delete `.harness/` and fix what the compiler then reports.**Tabs are contributions.** Each entry under `WebModule.sessionTabs` is one tab beside the chat: `key` (unique in the workflow, part of the full-page URL), `title` / `titleZh`, and a `renderer` whose `iframe.src` is a file under `ui/`. Several entries make several tabs; none makes a server-only workflow. It is the same slot, written the same way, a plugin contributes to — the host opens it to workflows and scopes the tab to this Agent. A slot the host has not opened (`WebModule.pages`, say) is refused by name.diff --git a/plugins/agent-development/skills/penguin-sdk/reference/agent-api.md b/plugins/agent-development/skills/penguin-sdk/reference/agent-api.mdindex 935e36be..b45d413a 100644--- a/plugins/agent-development/skills/penguin-sdk/reference/agent-api.md+++ b/plugins/agent-development/skills/penguin-sdk/reference/agent-api.md@@ -41,7 +41,7 @@ Suggest the approval mode that fits the program, and say why in one line:| Shows every tool call to its own user | `always-ask` | Every call waits for the program's answer || Must never run a tool | `deny-all` | Every call is denied; the agent answers without tools |-A call that waits reaches the program as an `approval.requested` event, and the run waits, with no time limit, for an answer, an abort or a disconnect. The `@lmliheng/amsp` client answers it with `onApproval`, or with `deny` when there is none. The mode is read when an API conversation is created; a change on the tab applies to conversations created after it.+A call that waits reaches the program as an `approval.requested` event, and the run waits, with no time limit, for an answer, an abort or a disconnect. The `@adelie/amsp` client answers it with `onApproval`, or with `deny` when there is none. The mode is read when an API conversation is created; a change on the tab applies to conversations created after it.Leave **Allow keyless access** off unless the user asks for it. With it on, anything that can reach the server can run the Agent on the Project's models.@@ -58,16 +58,16 @@ To run the program yourself, you need the key in your environment. Ask the user- A local server's Base URL is `http://localhost:7364/api/amsp/v1`; `status` prints the server's real port. Use `localhost`, never `127.0.0.1`: a local server serves previews on `127.0.0.1` and answers every API request there with `401`.- Do not give the program's settings the names the harness sets inside a session: `ADELIE_API_URL`, `ADELIE_API_TOKEN`, `ADELIE_PROJECT_ID`, `ADELIE_AGENT_ID`, `ADELIE_SESSION_ID`. They name the session's own server and Agent, and they override a vault entry of the same name.-## 3. TypeScript: `@lmliheng/amsp`+## 3. TypeScript: `@adelie/amsp````bash-npm install @lmliheng/amsp+npm install @adelie/amsp```The client has no dependencies and runs in Node 24 and in current browsers. If your registry does not have the package, call the API over HTTP as in section 4.```ts-import { AgentClient, parseArguments } from "@lmliheng/amsp";+import { AgentClient, parseArguments } from "@adelie/amsp";const apiKey = process.env.ADELIE_AGENT_KEY;if (!apiKey) throw new Error("Set ADELIE_AGENT_KEY to the key from the agent's API tab.");diff --git a/plugins/agent-tuning/package.json b/plugins/agent-tuning/package.jsonindex 3adc5206..2b977e56 100644--- a/plugins/agent-tuning/package.json+++ b/plugins/agent-tuning/package.json@@ -1,5 +1,5 @@{- "name": "@lmliheng/agent-tuning",+ "name": "@adelie/agent-tuning","version": "0.4.2","description": "Agent tuning as a loop: initialize an agent from a requirement, design and calibrate a capability benchmark, run and score isolated cases, and improve the agent from measured results.","license": "Apache-2.0",diff --git a/plugins/agent-tuning/plugin.json b/plugins/agent-tuning/plugin.jsonindex a440c7b4..7f2ebae9 100644--- a/plugins/agent-tuning/plugin.json+++ b/plugins/agent-tuning/plugin.json@@ -3,6 +3,6 @@"description_zh": "闭环的 Agent 调优:依据需求初始化 Agent(供人使用,或供程序经 Agent API 接入)、设计并校准能力 Benchmark、隔离执行与评分、再根据测得结果改进 Agent。","short_description": "Initialize, benchmark, evaluate and improve agents, for people or over the Agent API.","short_description_zh": "初始化、评测、评分与改进 Agent:给人用,或经 Agent API 供程序接入。",- "version": "2026.10.16.1",+ "version": "2026.10.17.1","category": "ai-app-development"}diff --git a/plugins/agent-tuning/skills/agent-initialization/SKILL.md b/plugins/agent-tuning/skills/agent-initialization/SKILL.mdindex f9cadbbe..497881e5 100644--- a/plugins/agent-tuning/skills/agent-initialization/SKILL.md+++ b/plugins/agent-tuning/skills/agent-initialization/SKILL.md@@ -17,7 +17,7 @@ One question comes first even then: when the agent is for a program to use, askA program — an app, a service, a bot, a script — reaches an Adelie agent in one of two ways, and they put the agent in different places:-- **The SDK** (`@lmliheng/penguin-core`): the agent is embedded in the program and runs without the Adelie server, on the program's own model key. No Agent is created in this Project; the agent lives in the program's own data directory (see *The embedded agent of an SDK app*). The program gets no server-managed Sessions, no Web App visibility, no approvals UI and no cost center.+- **The SDK** (`@adelie/core`): the agent is embedded in the program and runs without the Adelie server, on the program's own model key. No Agent is created in this Project; the agent lives in the program's own data directory (see *The embedded agent of an SDK app*). The program gets no server-managed Sessions, no Web App visibility, no approvals UI and no cost center.- **The API** (Adelie's Agent API, over AMSP): the program calls an Agent of this Project through the running server, which keeps the conversations in the Agent's Background folder. You create or configure that Agent here as usual; the Project's owner then turns on its API access and creates a key for the program.Whenever the requested agent is for a program, ask which way before you create anything, even when the requirement is otherwise concrete. It is the one exception to the no-follow-up-questions default above. Do not ask when the user has already chosen ("embed it with the SDK", "call it over the API") or answered earlier in this conversation. An agent that people talk to, in the Web App, the CLI or a Remote-control bot, is not for a program and needs no question.diff --git a/plugins/browser-automation/package.json b/plugins/browser-automation/package.jsonindex e25df785..f291fe97 100644--- a/plugins/browser-automation/package.json+++ b/plugins/browser-automation/package.json@@ -1,5 +1,5 @@{- "name": "@lmliheng/browser-automation",+ "name": "@adelie/browser-automation","version": "0.4.2","description": "Drive the Adelie desktop app's built-in browser with penguin browser — read pages as simplified HTML or text, act with JavaScript and trusted clicks and typing, extract structured data, and import sign-ins from the system browser.","license": "Apache-2.0",diff --git a/plugins/continual-learning/package.json b/plugins/continual-learning/package.jsonindex 0ae4877a..7b002a78 100644--- a/plugins/continual-learning/package.json+++ b/plugins/continual-learning/package.json@@ -1,5 +1,5 @@{- "name": "@lmliheng/continual-learning",+ "name": "@adelie/continual-learning","version": "0.4.2","description": "Continual learning: a stop hook that, when the task that just ended ran more than 30 completed turns, hands a condensed excerpt of that task to a background subagent, which folds the durable findings into the agent's own skills.","license": "Apache-2.0",diff --git a/plugins/csu-mail/package.json b/plugins/csu-mail/package.jsonindex 9a14e832..4a1e8201 100644--- a/plugins/csu-mail/package.json+++ b/plugins/csu-mail/package.json@@ -1,5 +1,5 @@{- "name": "@lmliheng/csu-mail",+ "name": "@adelie/csu-mail","version": "0.4.2","description": "Manage a Coremail mailbox (CSU student mail, mail.csu.edu.cn) over IMAP/SMTP with a client app password instead of the unified auth portal — create the app password once, then list, search, read and send mail from the shell, with a copy kept in the Sent folder.","license": "Apache-2.0",diff --git a/plugins/data-analysis/package.json b/plugins/data-analysis/package.jsonindex a731f6e7..a215cc83 100644--- a/plugins/data-analysis/package.json+++ b/plugins/data-analysis/package.json@@ -1,5 +1,5 @@{- "name": "@lmliheng/data-analysis",+ "name": "@adelie/data-analysis","version": "0.4.2","description": "Complete data-analysis tasks with bounded inspection, correct data semantics, native artifact handling, complete delivery, and risk-based verification.","license": "Apache-2.0",diff --git a/plugins/goal/package.json b/plugins/goal/package.jsonindex f42ddbac..d97a6769 100644--- a/plugins/goal/package.json+++ b/plugins/goal/package.json@@ -1,5 +1,5 @@{- "name": "@lmliheng/goal",+ "name": "@adelie/goal","version": "0.4.2","description": "Goal mode: a stop hook that keeps the session working toward an objective — re-injecting it every round and checking the goal file — until the goal is complete, blocked, or out of token budget.","license": "Apache-2.0",diff --git a/plugins/humanizer/package.json b/plugins/humanizer/package.jsonindex 914e933a..8d43efdf 100644--- a/plugins/humanizer/package.json+++ b/plugins/humanizer/package.json@@ -1,5 +1,5 @@{- "name": "@lmliheng/humanizer",+ "name": "@adelie/humanizer","version": "0.4.2","description": "Rewrite or edit prose in any language so it reads like edited human writing in the register of books, newspapers and encyclopedias rather than default AI output. A small drafting core — vary every pattern, build density from anchored facts in whole grammar, cap the quotables, put a real writer with real material behind the text, let structure serve content, write each language from inside its idiom and typography, verify what you assert, and aim for the natural distribution of edited prose rather than a perfect scorecard — backed by a three-layer tell catalog, per-language cue files for six languages and a seven-round measured case study shipped as reference files for the diagnostic census.","license": "Apache-2.0",diff --git a/plugins/lesson-video/package.json b/plugins/lesson-video/package.jsonindex 7228b946..0c6bec95 100644--- a/plugins/lesson-video/package.json+++ b/plugins/lesson-video/package.json@@ -1,5 +1,5 @@{- "name": "@lmliheng/lesson-video",+ "name": "@adelie/lesson-video","version": "0.4.2","description": "Narrated vertical lesson videos (1080x1920) from a script: an HTML slide deck driven by time, edge-tts voice-over with word-level timing, Playwright frame capture, ffmpeg mux, cover art and publishing copy.","license": "Apache-2.0",diff --git a/plugins/model-development/package.json b/plugins/model-development/package.jsonindex e2ebe3e9..0cea05f2 100644--- a/plugins/model-development/package.json+++ b/plugins/model-development/package.json@@ -1,5 +1,5 @@{- "name": "@lmliheng/model-development",+ "name": "@adelie/model-development","version": "0.4.2","description": "Model development on your own hardware: fine-tune with LlamaFactory, run local models with Ollama, and serve them with vLLM.","license": "Apache-2.0",diff --git a/plugins/requirements-box/package.json b/plugins/requirements-box/package.jsonindex 61620e99..b60b85dd 100644--- a/plugins/requirements-box/package.json+++ b/plugins/requirements-box/package.json@@ -1,5 +1,5 @@{- "name": "@lmliheng/requirements-box",+ "name": "@adelie/requirements-box","version": "0.4.2","description": "A requirements box: one keyed page where the user files what they want done, a scheduled task that wakes the agent to work through them, and a per-round report by mail — the service being a single dependency-free Node file with a JSON store and a keyed API, the patrol protocol one markdown file.","license": "Apache-2.0",diff --git a/plugins/sandbox-bwrap/README.md b/plugins/sandbox-bwrap/README.mdindex 78257ef2..daa30470 100644--- a/plugins/sandbox-bwrap/README.md+++ b/plugins/sandbox-bwrap/README.md@@ -13,7 +13,7 @@ and closing the temporary directory (a policy that does not grant temp leaves `/asked. Ubuntu 23.10 and later (24.04 by default) grant them only to AppArmor-profiled programs(`kernel.apparmor_restrict_unprivileged_userns=1`): the desktop `.deb` installs such a profile;the CLI package, the one-line installer, npm and Docker cannot, because the profile needs root.- There `@lmliheng/penguin-plugin-sandbox-dsh`, which the Sandbox card installs beside this backend,+ There `@adelie/sandbox-dsh`, which the Sandbox card installs beside this backend,confines file writes through Landlock with no host step. The optional one-time root step thatlets this backend run, adding network isolation and masked paths, is in the CLI quickstart's"Sandbox on Ubuntu" section.@@ -60,7 +60,7 @@ run it: the App re-assembles itself, no restart. Written by hand, it is a row of```toml[plugins]-"@lmliheng/penguin-plugin-sandbox-bwrap" = "*"+"@adelie/sandbox-bwrap" = "*"```Installing is an operator-side action: the harness resolves the package from the installation,diff --git a/plugins/sandbox-bwrap/package.json b/plugins/sandbox-bwrap/package.jsonindex abe56dfb..ea346527 100644--- a/plugins/sandbox-bwrap/package.json+++ b/plugins/sandbox-bwrap/package.json@@ -1,5 +1,5 @@{- "name": "@lmliheng/penguin-plugin-sandbox-bwrap",+ "name": "@adelie/sandbox-bwrap","version": "0.2.3","private": true,"type": "module",@@ -25,7 +25,7 @@"build": "node ../../scripts/vendor-bwrap.mjs && node ../../scripts/gen-ifaces.mjs --project tsconfig.json --out ifaces.json && tsup"},"devDependencies": {- "@lmliheng/penguin-core": "workspace:*",+ "@adelie/core": "workspace:*","tsup": "^8.3.0","vitest": "^3.2.6"}diff --git a/plugins/sandbox-bwrap/src/index.ts b/plugins/sandbox-bwrap/src/index.tsindex 8c7afa66..6adc2447 100644--- a/plugins/sandbox-bwrap/src/index.ts+++ b/plugins/sandbox-bwrap/src/index.ts@@ -1,9 +1,9 @@/**- * @lmliheng/penguin-plugin-sandbox-bwrap — a bubblewrap sandbox backend.+ * @adelie/sandbox-bwrap — a bubblewrap sandbox backend.** A PLUGIN PACKAGE, not part of the platform: a Project asks for it on the Plugins page* and the harness resolves it from the installation (see the server's plugin/loader.ts).- * It compiles against the `@lmliheng/penguin-core/plugin` surface (types, plus the+ * It compiles against the `@adelie/core/plugin` surface (types, plus the* decorators its bundle carries) and has no runtime dependency on the harness — and* none on the DSH ecosystem either:* it talks to `bwrap` directly and implements every dimension of the sandbox interface,@@ -36,14 +36,14 @@ import { accessSync, constants, statSync } from "node:fs";import path from "node:path";import { fileURLToPath } from "node:url";import { tmpdir } from "node:os";-import { Bind, Component, Interface, Use } from "@lmliheng/penguin-core/plugin";+import { Bind, Component, Interface, Use } from "@adelie/core/plugin";import type {ConfinedArgv,Plugin,SandboxPolicy,SandboxProvider,SandboxProviderSource,-} from "@lmliheng/penguin-core/plugin";+} from "@adelie/core/plugin";/** Default probe budget; a probe that hangs must not hang the first spawn forever. */const PROBE_TIMEOUT_MS = 5_000;@@ -235,7 +235,7 @@ export async function loadPenguinBwrapProvider(// Ubuntu 23.10 and later lets only AppArmor-profiled programs create them (24.04's default).// Neither is needed for the sandbox to work: sandbox-dsh confines files through Landlock.throw new Error(- `'${runner}' is missing or refuses the base profile (${refusal}). Are unprivileged user namespaces allowed on this host? Debian: \`sysctl kernel.unprivileged_userns_clone\`; Ubuntu 23.10 and later: \`sysctl kernel.apparmor_restrict_unprivileged_userns\`. @lmliheng/penguin-plugin-sandbox-dsh confines file writes without them, through Landlock. Optional: a one-time root step lets bubblewrap run here, adding network isolation and masked paths — see "Sandbox on Ubuntu" in the CLI quickstart`,+ `'${runner}' is missing or refuses the base profile (${refusal}). Are unprivileged user namespaces allowed on this host? Debian: \`sysctl kernel.unprivileged_userns_clone\`; Ubuntu 23.10 and later: \`sysctl kernel.apparmor_restrict_unprivileged_userns\`. @adelie/sandbox-dsh confines file writes without them, through Landlock. Optional: a one-time root step lets bubblewrap run here, adding network isolation and masked paths — see "Sandbox on Ubuntu" in the CLI quickstart`,);}return createPenguinBwrapProvider(internals);diff --git a/plugins/sandbox-bwrap/test/live.test.ts b/plugins/sandbox-bwrap/test/live.test.tsindex 879ca202..4a67b3bf 100644--- a/plugins/sandbox-bwrap/test/live.test.ts+++ b/plugins/sandbox-bwrap/test/live.test.ts@@ -17,9 +17,9 @@ import { existsSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "noimport { homedir, tmpdir } from "node:os";import path from "node:path";import { fileURLToPath } from "node:url";-import { CommandSessionManager } from "@lmliheng/penguin-core";-import type { SpawnConfiner } from "@lmliheng/penguin-core";-import type { SandboxPolicy, SandboxProviderSource } from "@lmliheng/penguin-core/plugin";+import { CommandSessionManager } from "@adelie/core";+import type { SpawnConfiner } from "@adelie/core";+import type { SandboxPolicy, SandboxProviderSource } from "@adelie/core/plugin";import { createPenguinBwrapProvider, loadPenguinBwrapProvider } from "../src/index.js";import { mustRun } from "../../../scripts/must-run.mjs";diff --git a/plugins/sandbox-dsh/README.md b/plugins/sandbox-dsh/README.mdindex 86e100ff..bdea4a13 100644--- a/plugins/sandbox-dsh/README.md+++ b/plugins/sandbox-dsh/README.md@@ -100,7 +100,7 @@ run it: the App re-assembles itself, no restart. Written by hand, it is a row of```toml[plugins]-"@lmliheng/penguin-plugin-sandbox-dsh" = "*"+"@adelie/sandbox-dsh" = "*"```Installing is an operator-side action: the harness resolves the package from the installation,diff --git a/plugins/sandbox-dsh/package.json b/plugins/sandbox-dsh/package.jsonindex 2a1c3261..4ffd1b42 100644--- a/plugins/sandbox-dsh/package.json+++ b/plugins/sandbox-dsh/package.json@@ -1,5 +1,5 @@{- "name": "@lmliheng/penguin-plugin-sandbox-dsh",+ "name": "@adelie/sandbox-dsh","version": "0.2.3","private": true,"type": "module",@@ -31,7 +31,7 @@},"devDependencies": {"@deepseek-ai/dsh-sandbox": "0.1.0-rc.7",- "@lmliheng/penguin-core": "workspace:*",+ "@adelie/core": "workspace:*","tsup": "^8.3.0","vitest": "^3.2.6"}diff --git a/plugins/sandbox-dsh/src/index.ts b/plugins/sandbox-dsh/src/index.tsindex 6589bed4..06af6547 100644--- a/plugins/sandbox-dsh/src/index.ts+++ b/plugins/sandbox-dsh/src/index.ts@@ -1,5 +1,5 @@/**- * @lmliheng/penguin-plugin-sandbox-dsh — the DeepSeek Harness sandbox ecosystem+ * @adelie/sandbox-dsh — the DeepSeek Harness sandbox ecosystem* behind this harness's own sandbox interface.** A PLUGIN PACKAGE, not part of the platform: a Project asks for it on the Plugins page@@ -23,14 +23,14 @@*/import { tmpdir } from "node:os";import path from "node:path";-import { Bind, Component } from "@lmliheng/penguin-core/plugin";+import { Bind, Component } from "@adelie/core/plugin";import type {ConfinedArgv,Plugin,SandboxLimit,SandboxProvider,SandboxProviderSource,-} from "@lmliheng/penguin-core/plugin";+} from "@adelie/core/plugin";/*** Programs the Windows ACL restricted-token runner cannot start — and they include the harness's@@ -119,12 +119,12 @@ export function assertAclRunnerCanStart(/*** The host's plugin contract, named by a variable so this package's bundle leaves the import to- * run time: tsup inlines `@lmliheng/penguin-core/plugin` for the decorators (a literal+ * run time: tsup inlines `@adelie/core/plugin` for the decorators (a literal* specifier), and a second, bundled copy of the session shell would be this package's* resolution, not the harness's. Resolved where the plugin runs, from the installation; where* the host's core cannot be reached the import fails and `hostSessionShell` returns `null`.*/-const HOST_CORE: string = "@lmliheng/penguin-core/plugin";+const HOST_CORE: string = "@adelie/core/plugin";/*** The harness's session shell, from the host's core; `null` when that core does not exportdiff --git a/plugins/sandbox-dsh/test/live.test.ts b/plugins/sandbox-dsh/test/live.test.tsindex 52277924..3daeeb5d 100644--- a/plugins/sandbox-dsh/test/live.test.ts+++ b/plugins/sandbox-dsh/test/live.test.ts@@ -13,8 +13,8 @@ import { afterAll, describe, expect, it } from "vitest";import { existsSync, mkdtempSync, rmSync } from "node:fs";import { homedir, tmpdir } from "node:os";import path from "node:path";-import { CommandSessionManager } from "@lmliheng/penguin-core";-import type { SandboxProvider } from "@lmliheng/penguin-core/plugin";+import { CommandSessionManager } from "@adelie/core";+import type { SandboxProvider } from "@adelie/core/plugin";import { loadDshAdaptor } from "../src/index.js";import { mustRun } from "../../../scripts/must-run.mjs";diff --git a/plugins/sandbox-dsh/test/windows-shells.test.ts b/plugins/sandbox-dsh/test/windows-shells.test.tsindex 520bbdc9..945501f1 100644--- a/plugins/sandbox-dsh/test/windows-shells.test.ts+++ b/plugins/sandbox-dsh/test/windows-shells.test.ts@@ -5,7 +5,7 @@ import { spawnSync } from "node:child_process";import { existsSync, mkdtempSync, rmSync } from "node:fs";import { homedir, tmpdir } from "node:os";import path from "node:path";-import type { ConfinedArgv } from "@lmliheng/penguin-core/plugin";+import type { ConfinedArgv } from "@adelie/core/plugin";import {assertAclRunnerCanStart as check,assertSessionShellConfinable,diff --git a/plugins/sandbox-seatbelt/README.md b/plugins/sandbox-seatbelt/README.mdindex f68d0e3a..817d37c8 100644--- a/plugins/sandbox-seatbelt/README.md+++ b/plugins/sandbox-seatbelt/README.md@@ -58,7 +58,7 @@ run it: the App re-assembles itself, no restart. Written by hand, it is a row of```toml[plugins]-"@lmliheng/penguin-plugin-sandbox-seatbelt" = "*"+"@adelie/sandbox-seatbelt" = "*"```Installing is an operator-side action: the harness resolves the package from the installation,diff --git a/plugins/sandbox-seatbelt/package.json b/plugins/sandbox-seatbelt/package.jsonindex 426cf67f..2e159240 100644--- a/plugins/sandbox-seatbelt/package.json+++ b/plugins/sandbox-seatbelt/package.json@@ -1,5 +1,5 @@{- "name": "@lmliheng/penguin-plugin-sandbox-seatbelt",+ "name": "@adelie/sandbox-seatbelt","version": "0.2.3","private": true,"type": "module",@@ -24,7 +24,7 @@"build": "node ../../scripts/gen-ifaces.mjs --project tsconfig.json --out ifaces.json && tsup"},"devDependencies": {- "@lmliheng/penguin-core": "workspace:*",+ "@adelie/core": "workspace:*","tsup": "^8.3.0","vitest": "^3.2.6"}diff --git a/plugins/sandbox-seatbelt/src/index.ts b/plugins/sandbox-seatbelt/src/index.tsindex 50aa8a8d..04611fee 100644--- a/plugins/sandbox-seatbelt/src/index.ts+++ b/plugins/sandbox-seatbelt/src/index.ts@@ -1,9 +1,9 @@/**- * @lmliheng/penguin-plugin-sandbox-seatbelt — a macOS Seatbelt sandbox backend.+ * @adelie/sandbox-seatbelt — a macOS Seatbelt sandbox backend.** A PLUGIN PACKAGE, not part of the platform: a Project asks for it on the Plugins page* and the harness resolves it from the installation. It compiles against the- * `@lmliheng/penguin-core/plugin` surface (types, plus the decorators its bundle+ * `@adelie/core/plugin` surface (types, plus the decorators its bundle* carries) and has no runtime dependency on the* harness or on any other backend.*@@ -34,14 +34,14 @@ import { execFile, spawnSync } from "node:child_process";import { existsSync, realpathSync } from "node:fs";import { tmpdir } from "node:os";import path from "node:path";-import { Bind, Component, Interface, Use } from "@lmliheng/penguin-core/plugin";+import { Bind, Component, Interface, Use } from "@adelie/core/plugin";import type {ConfinedArgv,Plugin,SandboxPolicy,SandboxProvider,SandboxProviderSource,-} from "@lmliheng/penguin-core/plugin";+} from "@adelie/core/plugin";/** Default probe budget; a probe that hangs must not hang the first spawn forever. */const PROBE_TIMEOUT_MS = 5_000;diff --git a/plugins/sandbox-seatbelt/test/live.test.ts b/plugins/sandbox-seatbelt/test/live.test.tsindex c4020e56..b1efe054 100644--- a/plugins/sandbox-seatbelt/test/live.test.ts+++ b/plugins/sandbox-seatbelt/test/live.test.ts@@ -12,8 +12,8 @@ import { afterAll, describe, expect, it } from "vitest";import { existsSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";import { homedir, tmpdir } from "node:os";import path from "node:path";-import { CommandSessionManager } from "@lmliheng/penguin-core";-import type { SandboxPolicy } from "@lmliheng/penguin-core/plugin";+import { CommandSessionManager } from "@adelie/core";+import type { SandboxPolicy } from "@adelie/core/plugin";import { canonicalPath, createSeatbeltProvider } from "../src/index.js";import { mustRun } from "../../../scripts/must-run.mjs";diff --git a/plugins/sandbox-wsl/README.md b/plugins/sandbox-wsl/README.mdindex 1da8fa6d..7e73caf3 100644--- a/plugins/sandbox-wsl/README.md+++ b/plugins/sandbox-wsl/README.md@@ -1,4 +1,4 @@-# @lmliheng/penguin-plugin-sandbox-wsl+# @adelie/sandbox-wslA Windows sandbox backend for Adelie. Each agent command runs in a dedicated WSL2 distro (Ubuntu by default), as an unprivileged account, under [bubblewrap](https://github.com/containers/bubblewrap).diff --git a/plugins/sandbox-wsl/package.json b/plugins/sandbox-wsl/package.jsonindex c1266e91..d9349d30 100644--- a/plugins/sandbox-wsl/package.json+++ b/plugins/sandbox-wsl/package.json@@ -1,5 +1,5 @@{- "name": "@lmliheng/penguin-plugin-sandbox-wsl",+ "name": "@adelie/sandbox-wsl","version": "0.2.3","private": true,"type": "module",@@ -25,7 +25,7 @@"build": "node ../../scripts/gen-ifaces.mjs --project tsconfig.json --out ifaces.json && tsup"},"devDependencies": {- "@lmliheng/penguin-core": "workspace:*",+ "@adelie/core": "workspace:*","tsup": "^8.3.0","vitest": "^3.2.6"}diff --git a/plugins/sandbox-wsl/src/index.ts b/plugins/sandbox-wsl/src/index.tsindex f03cb9de..cd750a89 100644--- a/plugins/sandbox-wsl/src/index.ts+++ b/plugins/sandbox-wsl/src/index.ts@@ -1,11 +1,11 @@/**- * @lmliheng/penguin-plugin-sandbox-wsl — a Windows sandbox backend that confines in a Linux+ * @adelie/sandbox-wsl — a Windows sandbox backend that confines in a Linux* distro: each agent command runs in a dedicated WSL2 distro, as an unprivileged account, under* bubblewrap.** A PLUGIN PACKAGE, not part of the platform: a Project asks for it on the Plugins page and the* harness resolves it from the installation. It compiles against the- * `@lmliheng/penguin-core/plugin` surface and has no runtime dependency on the harness.+ * `@adelie/core/plugin` surface and has no runtime dependency on the harness.** fs-write → bwrap binds the Workspace (read-write or read-only) at its /mnt path; the* distro is read-only and every other Windows drive is hidden@@ -29,14 +29,14 @@* the card while it runs.*/import { fileURLToPath } from "node:url";-import { Bind, Component, Interface, Use } from "@lmliheng/penguin-core/plugin";+import { Bind, Component, Interface, Use } from "@adelie/core/plugin";import type {ConfinedArgv,Plugin,SandboxPolicy,SandboxProvider,SandboxProviderSource,-} from "@lmliheng/penguin-core/plugin";+} from "@adelie/core/plugin";import { readHost, readState } from "./host.js";import {BASE_TITLES,diff --git a/plugins/sandbox-wsl/src/profile.ts b/plugins/sandbox-wsl/src/profile.tsindex 7794fbe8..c3f8cc96 100644--- a/plugins/sandbox-wsl/src/profile.ts+++ b/plugins/sandbox-wsl/src/profile.ts@@ -38,7 +38,7 @@* distro uses one of them, not both.*/import path from "node:path";-import type { SandboxPolicy } from "@lmliheng/penguin-core/plugin";+import type { SandboxPolicy } from "@adelie/core/plugin";/** Where WSL mounts the Windows drives inside a distro (its default automount root). */export const MOUNT_ROOT = "/mnt";diff --git a/plugins/sandbox-wsl/src/tasks.ts b/plugins/sandbox-wsl/src/tasks.tsindex 02f885e9..0eb6d775 100644--- a/plugins/sandbox-wsl/src/tasks.ts+++ b/plugins/sandbox-wsl/src/tasks.ts@@ -8,7 +8,7 @@ import { createHash } from "node:crypto";import fs from "node:fs";import path from "node:path";import { fileURLToPath } from "node:url";-import type { SandboxPolicy } from "@lmliheng/penguin-core/plugin";+import type { SandboxPolicy } from "@adelie/core/plugin";import {decodeOutput,localDrives,diff --git a/plugins/skill-porting/package.json b/plugins/skill-porting/package.jsonindex f03cba83..b9757eb0 100644--- a/plugins/skill-porting/package.json+++ b/plugins/skill-porting/package.json@@ -1,5 +1,5 @@{- "name": "@lmliheng/skill-porting",+ "name": "@adelie/skill-porting","version": "0.4.2","description": "Install skills from external ecosystems into this agent's agent_state/skills/ — resolve Claude Code plugin marketplaces, the Codex plugin repo, skills.sh registry names, GitHub repos, or local folders to their skill directories, review every file, and normalize SKILL.md frontmatter to the Penguin format.","license": "Apache-2.0",diff --git a/plugins/software-development/package.json b/plugins/software-development/package.jsonindex 0b72376f..4248fa54 100644--- a/plugins/software-development/package.json+++ b/plugins/software-development/package.json@@ -1,5 +1,5 @@{- "name": "@lmliheng/software-development",+ "name": "@adelie/software-development","version": "0.4.2","description": "Software development end to end — disciplined software-engineering practice for real tasks, plus the Penguin visual language for every generated web page and app UI.","license": "Apache-2.0",diff --git a/plugins/use-bento-slides/package.json b/plugins/use-bento-slides/package.jsonindex ce111827..b2cefd34 100644--- a/plugins/use-bento-slides/package.json+++ b/plugins/use-bento-slides/package.json@@ -1,5 +1,5 @@{- "name": "@lmliheng/use-bento-slides",+ "name": "@adelie/use-bento-slides","version": "0.4.2","description": "Create and edit Bento presentations — self-contained .bento.html decks whose document is JSON. Use whenever the user wants a slide deck or presentation: from scratch, from source material, or by improving an existing file.","license": "Apache-2.0",diff --git a/plugins/use-claude-code/package.json b/plugins/use-claude-code/package.jsonindex e330178d..071087b5 100644--- a/plugins/use-claude-code/package.json+++ b/plugins/use-claude-code/package.json@@ -1,5 +1,5 @@{- "name": "@lmliheng/use-claude-code",+ "name": "@adelie/use-claude-code","version": "0.4.2","description": "Run Claude Code on a remote host over SSH — a persistent expect-driven login session, headless claude -p with the stdin fix, the interactive TUI inside a remote tmux driven by send-keys/capture-pane (one keystroke at a time, capture-verified; relayed user messages go through verbatim), and multi-turn continuity via --session-id/--resume or stream-json; hosts and credentials are placeholders resolved at runtime from the user or the vault, never hardcoded.","license": "Apache-2.0",diff --git a/plugins/use-firecrawl/package.json b/plugins/use-firecrawl/package.jsonindex bd88a0ff..90da9e60 100644--- a/plugins/use-firecrawl/package.json+++ b/plugins/use-firecrawl/package.json@@ -1,5 +1,5 @@{- "name": "@lmliheng/use-firecrawl",+ "name": "@adelie/use-firecrawl","version": "0.4.2","description": "Search the web and scrape pages into clean markdown with the Firecrawl API — query-based discovery, single-URL extraction including public PDFs, driven by curl with a vault-stored API key.","license": "Apache-2.0",diff --git a/plugins/use-offerdao/README.md b/plugins/use-offerdao/README.mdindex 304200c8..bbaa5b2c 100644--- a/plugins/use-offerdao/README.md+++ b/plugins/use-offerdao/README.md@@ -1,4 +1,4 @@-# Offer岛(`@lmliheng/use-offerdao`)+# Offer岛(`@adelie/use-offerdao`)把 **Offer岛**([offerdao.ai](https://offerdao.ai),聚合 AI 行业招聘信息的平台)接进 Adelie:一个 skill教会 Agent 用它的开放 API 找岗位、看公司、翻面经、读每日 AI 资讯,也能把你给的 JD 原文或帖子链接diff --git a/plugins/use-offerdao/package.json b/plugins/use-offerdao/package.jsonindex 15e49d25..75aefae3 100644--- a/plugins/use-offerdao/package.json+++ b/plugins/use-offerdao/package.json@@ -1,5 +1,5 @@{- "name": "@lmliheng/use-offerdao",+ "name": "@adelie/use-offerdao","version": "0.4.2","description": "Offer岛 (offerdao.ai) from the shell: search and publish AI-industry job postings, browse the AI company directory, find interview guides and read the daily AI news feed.","license": "Apache-2.0",diff --git a/plugins/use-offerdao/plugin.json b/plugins/use-offerdao/plugin.jsonindex c96146d6..96d188b0 100644--- a/plugins/use-offerdao/plugin.json+++ b/plugins/use-offerdao/plugin.json@@ -3,7 +3,7 @@"description_zh": "AI 方向求职与行业情报的一站式数据源(Offer岛):按公司 / 岗位 / 地点 / 类型搜岗位、把 JD 发布成岗位、查 AI 公司目录、找面经攻略、看每日 AI 资讯——用 shell 调它的开放 API,个人 key 存进 Agent 密钥库。","short_description": "Offer岛 job search and publishing, AI company directory, interview guides, daily AI news.","short_description_zh": "Offer岛的岗位搜索与发布、AI 公司目录、面经攻略与每日 AI 资讯。",- "version": "2026.10.15.1",+ "version": "2026.10.17.1","category": "office-productivity","preinstall": false}diff --git a/plugins/use-wps-office/README.md b/plugins/use-wps-office/README.mdindex 0304e29b..62686598 100644--- a/plugins/use-wps-office/README.md+++ b/plugins/use-wps-office/README.md@@ -1,4 +1,4 @@-# WPS(`@lmliheng/use-wps-office`)+# WPS(`@adelie/use-wps-office`)把 Adelie 的对话搬进 **WPS 文字**:功能区多一个「Adelie」按钮,点开是侧栏——问它、让它读、让它改当前这篇文档;同一套文档操作也作为 MCP 工具交给 Agent(`mcp__wps__*`)。diff --git a/plugins/use-wps-office/package.json b/plugins/use-wps-office/package.jsonindex 95a16021..e3086802 100644--- a/plugins/use-wps-office/package.json+++ b/plugins/use-wps-office/package.json@@ -1,5 +1,5 @@{- "name": "@lmliheng/use-wps-office",+ "name": "@adelie/use-wps-office","version": "0.4.2","description": "Adelie inside WPS Writer: a dependency-free bridge that hosts a WPS add-on panel, lets the Agent read and edit the open document through MCP tools, and registers the add-on with WPS's own local publish service — loopback only.","license": "Apache-2.0",diff --git a/plugins/use-wps-office/plugin.json b/plugins/use-wps-office/plugin.jsonindex fd17e3c4..014a6b0c 100644--- a/plugins/use-wps-office/plugin.json+++ b/plugins/use-wps-office/plugin.json@@ -3,7 +3,7 @@"description_zh": "把 Adelie 的对话搬进 WPS 文字。运行时就是一个零依赖的 Node 文件:它托管 WPS 加载项的面板页,用一条本机命令通道让面板去改那份打开的文档,把这九个文档操作(读、搜、替换、插入、删除、插分隔符、新建、定位)当作 MCP 工具交给 Agent,并通过 WPS 自己的本机上架服务登记加载项。全程不出这台机器,只走回环地址,不对网络开端口。","short_description": "Adelie inside WPS Writer: a side panel that reads and edits the open document.","short_description_zh": "在 WPS 文字里开一个 Adelie 侧栏,能读能改当前这篇文档。",- "version": "2026.10.15.3",+ "version": "2026.10.17.1","category": "office-productivity","preinstall": false}diff --git a/plugins/wechat-miniprogram/package.json b/plugins/wechat-miniprogram/package.jsonindex f904a5cb..d8ad938d 100644--- a/plugins/wechat-miniprogram/package.json+++ b/plugins/wechat-miniprogram/package.json@@ -1,5 +1,5 @@{- "name": "@lmliheng/wechat-miniprogram",+ "name": "@adelie/wechat-miniprogram","version": "0.4.2","description": "Publish a WeChat mini-program end to end from a headless Linux server: QR login to mp.weixin.qq.com, switching from a public account to the mini-program backend, the AppID and upload key, IP whitelisting, miniprogram-ci upload, the privacy policy, review and release.","license": "Apache-2.0",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex b3fbb6fe..ff508ba9 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -15,10 +15,10 @@ importers:.:devDependencies:- '@lmliheng/penguin-cli':+ '@adelie/cli':specifier: workspace:*version: file:packages/cli([email protected])- '@lmliheng/penguin-core':+ '@adelie/core':specifier: workspace:*version: file:packages/core([email protected])([email protected])'@types/node':@@ -60,70 +60,70 @@ importers:packages/cli:dependencies:- '@lmliheng/agent-company':+ '@adelie/agent-company':specifier: workspace:*version: link:../../plugins/agent-company- '@lmliheng/agent-development':+ '@adelie/agent-development':specifier: workspace:*version: link:../../plugins/agent-development- '@lmliheng/agent-tuning':+ '@adelie/agent-tuning':specifier: workspace:*version: link:../../plugins/agent-tuning- '@lmliheng/browser-automation':+ '@adelie/browser-automation':specifier: workspace:*version: link:../../plugins/browser-automation- '@lmliheng/continual-learning':+ '@adelie/continual-learning':specifier: workspace:*version: link:../../plugins/continual-learning- '@lmliheng/csu-mail':+ '@adelie/csu-mail':specifier: workspace:*version: link:../../plugins/csu-mail- '@lmliheng/data-analysis':+ '@adelie/data-analysis':specifier: workspace:*version: link:../../plugins/data-analysis- '@lmliheng/goal':+ '@adelie/goal':specifier: workspace:*version: link:../../plugins/goal- '@lmliheng/humanizer':+ '@adelie/humanizer':specifier: workspace:*version: link:../../plugins/humanizer- '@lmliheng/lesson-video':+ '@adelie/lesson-video':specifier: workspace:*version: link:../../plugins/lesson-video- '@lmliheng/model-development':+ '@adelie/model-development':specifier: workspace:*version: link:../../plugins/model-development- '@lmliheng/penguin-core':+ '@adelie/core':specifier: workspace:*version: link:../core- '@lmliheng/penguin-server':+ '@adelie/server':specifier: workspace:*version: file:packages/server([email protected])([email protected])- '@lmliheng/requirements-box':+ '@adelie/requirements-box':specifier: workspace:*version: link:../../plugins/requirements-box- '@lmliheng/skill-porting':+ '@adelie/skill-porting':specifier: workspace:*version: link:../../plugins/skill-porting- '@lmliheng/software-development':+ '@adelie/software-development':specifier: workspace:*version: link:../../plugins/software-development- '@lmliheng/use-bento-slides':+ '@adelie/use-bento-slides':specifier: workspace:*version: link:../../plugins/use-bento-slides- '@lmliheng/use-claude-code':+ '@adelie/use-claude-code':specifier: workspace:*version: link:../../plugins/use-claude-code- '@lmliheng/use-firecrawl':+ '@adelie/use-firecrawl':specifier: workspace:*version: link:../../plugins/use-firecrawl- '@lmliheng/use-offerdao':+ '@adelie/use-offerdao':specifier: workspace:*version: link:../../plugins/use-offerdao- '@lmliheng/use-wps-office':+ '@adelie/use-wps-office':specifier: workspace:*version: link:../../plugins/use-wps-office- '@lmliheng/wechat-miniprogram':+ '@adelie/wechat-miniprogram':specifier: workspace:*version: link:../../plugins/wechat-miniprogram'@modelcontextprotocol/client':@@ -163,64 +163,64 @@ importers:packages/core:dependencies:- '@lmliheng/agent-company':+ '@adelie/agent-company':specifier: workspace:*version: link:../../plugins/agent-company- '@lmliheng/agent-development':+ '@adelie/agent-development':specifier: workspace:*version: link:../../plugins/agent-development- '@lmliheng/agent-tuning':+ '@adelie/agent-tuning':specifier: workspace:*version: link:../../plugins/agent-tuning- '@lmliheng/browser-automation':+ '@adelie/browser-automation':specifier: workspace:*version: link:../../plugins/browser-automation- '@lmliheng/continual-learning':+ '@adelie/continual-learning':specifier: workspace:*version: link:../../plugins/continual-learning- '@lmliheng/csu-mail':+ '@adelie/csu-mail':specifier: workspace:*version: link:../../plugins/csu-mail- '@lmliheng/data-analysis':+ '@adelie/data-analysis':specifier: workspace:*version: link:../../plugins/data-analysis- '@lmliheng/goal':+ '@adelie/goal':specifier: workspace:*version: link:../../plugins/goal- '@lmliheng/humanizer':+ '@adelie/humanizer':specifier: workspace:*version: link:../../plugins/humanizer- '@lmliheng/lesson-video':+ '@adelie/lesson-video':specifier: workspace:*version: link:../../plugins/lesson-video- '@lmliheng/model-development':+ '@adelie/model-development':specifier: workspace:*version: link:../../plugins/model-development- '@lmliheng/requirements-box':+ '@adelie/requirements-box':specifier: workspace:*version: link:../../plugins/requirements-box- '@lmliheng/skill-porting':+ '@adelie/skill-porting':specifier: workspace:*version: link:../../plugins/skill-porting- '@lmliheng/software-development':+ '@adelie/software-development':specifier: workspace:*version: link:../../plugins/software-development- '@lmliheng/use-bento-slides':+ '@adelie/use-bento-slides':specifier: workspace:*version: link:../../plugins/use-bento-slides- '@lmliheng/use-claude-code':+ '@adelie/use-claude-code':specifier: workspace:*version: link:../../plugins/use-claude-code- '@lmliheng/use-firecrawl':+ '@adelie/use-firecrawl':specifier: workspace:*version: link:../../plugins/use-firecrawl- '@lmliheng/use-offerdao':+ '@adelie/use-offerdao':specifier: workspace:*version: link:../../plugins/use-offerdao- '@lmliheng/use-wps-office':+ '@adelie/use-wps-office':specifier: workspace:*version: link:../../plugins/use-wps-office- '@lmliheng/wechat-miniprogram':+ '@adelie/wechat-miniprogram':specifier: workspace:*version: link:../../plugins/wechat-miniprogram'@modelcontextprotocol/client':@@ -266,74 +266,74 @@ importers:packages/desktop:dependencies:- '@lmliheng/agent-company':+ '@adelie/agent-company':specifier: workspace:*version: link:../../plugins/agent-company- '@lmliheng/agent-development':+ '@adelie/agent-development':specifier: workspace:*version: link:../../plugins/agent-development- '@lmliheng/agent-tuning':+ '@adelie/agent-tuning':specifier: workspace:*version: link:../../plugins/agent-tuning- '@lmliheng/browser-automation':+ '@adelie/browser-automation':specifier: workspace:*version: link:../../plugins/browser-automation- '@lmliheng/continual-learning':+ '@adelie/continual-learning':specifier: workspace:*version: link:../../plugins/continual-learning- '@lmliheng/csu-mail':+ '@adelie/csu-mail':specifier: workspace:*version: link:../../plugins/csu-mail- '@lmliheng/data-analysis':+ '@adelie/data-analysis':specifier: workspace:*version: link:../../plugins/data-analysis- '@lmliheng/goal':+ '@adelie/goal':specifier: workspace:*version: link:../../plugins/goal- '@lmliheng/humanizer':+ '@adelie/humanizer':specifier: workspace:*version: link:../../plugins/humanizer- '@lmliheng/lesson-video':+ '@adelie/lesson-video':specifier: workspace:*version: link:../../plugins/lesson-video- '@lmliheng/model-development':+ '@adelie/model-development':specifier: workspace:*version: link:../../plugins/model-development- '@lmliheng/requirements-box':+ '@adelie/requirements-box':specifier: workspace:*version: link:../../plugins/requirements-box- '@lmliheng/skill-porting':+ '@adelie/skill-porting':specifier: workspace:*version: link:../../plugins/skill-porting- '@lmliheng/software-development':+ '@adelie/software-development':specifier: workspace:*version: link:../../plugins/software-development- '@lmliheng/use-bento-slides':+ '@adelie/use-bento-slides':specifier: workspace:*version: link:../../plugins/use-bento-slides- '@lmliheng/use-claude-code':+ '@adelie/use-claude-code':specifier: workspace:*version: link:../../plugins/use-claude-code- '@lmliheng/use-firecrawl':+ '@adelie/use-firecrawl':specifier: workspace:*version: link:../../plugins/use-firecrawl- '@lmliheng/use-offerdao':+ '@adelie/use-offerdao':specifier: workspace:*version: link:../../plugins/use-offerdao- '@lmliheng/use-wps-office':+ '@adelie/use-wps-office':specifier: workspace:*version: link:../../plugins/use-wps-office- '@lmliheng/wechat-miniprogram':+ '@adelie/wechat-miniprogram':specifier: workspace:*version: link:../../plugins/wechat-miniprogramdevDependencies:- '@lmliheng/penguin-cli':+ '@adelie/cli':specifier: workspace:*version: file:packages/cli([email protected])- '@lmliheng/penguin-core':+ '@adelie/core':specifier: workspace:*version: file:packages/core([email protected])([email protected])- '@lmliheng/penguin-server':+ '@adelie/server':specifier: workspace:*version: file:packages/server([email protected])'@types/node':@@ -409,7 +409,7 @@ importers:packages/hmr:dependencies:- '@lmliheng/penguin-core':+ '@adelie/core':specifier: workspace:*version: file:packages/core([email protected])([email protected])devDependencies:@@ -428,10 +428,10 @@ importers:'@larksuiteoapi/node-sdk':specifier: ^1.73.0- '@lmliheng/amsp':+ '@adelie/amsp':specifier: workspace:*version: link:../amsp- '@lmliheng/penguin-core':+ '@adelie/core':specifier: workspace:*version: file:packages/core([email protected])([email protected])'@xterm/headless':@@ -477,7 +477,7 @@ importers:specifier: ^2.5.0version: 2.9.0devDependencies:- '@lmliheng/penguin-hmr':+ '@adelie/hmr':specifier: workspace:*version: file:packages/hmr([email protected])([email protected])'@types/mdast':@@ -580,7 +580,7 @@ importers:packages/ui-gallery:dependencies:- '@lmliheng/penguin-ui':+ '@adelie/ui':specifier: workspace:*version: link:../uireact:@@ -590,10 +590,10 @@ importers:specifier: ^19.1.0version: 19.2.7([email protected])devDependencies:- '@lmliheng/penguin-core':+ '@adelie/core':specifier: workspace:*version: file:packages/core([email protected])([email protected])- '@lmliheng/penguin-web':+ '@adelie/web':specifier: workspace:*version: link:../web'@playwright/test':@@ -629,13 +629,13 @@ importers:packages/web:dependencies:- '@lmliheng/amsp':+ '@adelie/amsp':specifier: workspace:*version: link:../amsp- '@lmliheng/penguin-core':+ '@adelie/core':specifier: workspace:*version: file:packages/core([email protected])([email protected])- '@lmliheng/penguin-ui':+ '@adelie/ui':specifier: workspace:*version: link:../ui'@xterm/addon-clipboard':@@ -672,7 +672,7 @@ importers:specifier: ^5.0.15version: 5.0.15(@types/[email protected])([email protected])devDependencies:- '@lmliheng/penguin-server':+ '@adelie/server':specifier: workspace:*version: file:packages/server([email protected])'@playwright/test':@@ -735,7 +735,7 @@ importers:plugins/sandbox-bwrap:devDependencies:- '@lmliheng/penguin-core':+ '@adelie/core':specifier: workspace:*version: file:packages/core([email protected])([email protected])tsup:@@ -763,7 +763,7 @@ importers:'@deepseek-ai/dsh-sandbox':specifier: 0.1.0-rc.7version: 0.1.0-rc.7(@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected])))(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))(@deepseek-ai/[email protected](@deepseek-ai/[email protected])(@deepseek-ai/[email protected](@deepseek-ai/[email protected]))))(@deepseek-ai/[email protected](fbdb1d988541b64ff002d18c4ded7293))- '@lmliheng/penguin-core':+ '@adelie/core':specifier: workspace:*version: file:packages/core([email protected])([email protected])tsup:@@ -775,7 +775,7 @@ importers:plugins/sandbox-seatbelt:devDependencies:- '@lmliheng/penguin-core':+ '@adelie/core':specifier: workspace:*version: file:packages/core([email protected])([email protected])tsup:@@ -787,7 +787,7 @@ importers:plugins/sandbox-wsl:devDependencies:- '@lmliheng/penguin-core':+ '@adelie/core':specifier: workspace:*version: file:packages/core([email protected])([email protected])tsup:@@ -1504,84 +1504,84 @@ packages:'@larksuiteoapi/[email protected]':resolution: {integrity: sha512-gs4EiupJ6RdYAEJGtuYrCVsB7wSMBwtUDK+ilpmOHD6RTvbtciW6AWciQO9coOQVuBZfh7hvAi25dPfCsny/nA==}- '@lmliheng/agent-company@file:plugins/agent-company':+ '@adelie/agent-company@file:plugins/agent-company':resolution: {directory: plugins/agent-company, type: directory}- '@lmliheng/agent-development@file:plugins/agent-development':+ '@adelie/agent-development@file:plugins/agent-development':resolution: {directory: plugins/agent-development, type: directory}- '@lmliheng/agent-tuning@file:plugins/agent-tuning':+ '@adelie/agent-tuning@file:plugins/agent-tuning':resolution: {directory: plugins/agent-tuning, type: directory}- '@lmliheng/amsp@file:packages/amsp':+ '@adelie/amsp@file:packages/amsp':resolution: {directory: packages/amsp, type: directory}engines: {node: '>=24'}- '@lmliheng/browser-automation@file:plugins/browser-automation':+ '@adelie/browser-automation@file:plugins/browser-automation':resolution: {directory: plugins/browser-automation, type: directory}- '@lmliheng/continual-learning@file:plugins/continual-learning':+ '@adelie/continual-learning@file:plugins/continual-learning':resolution: {directory: plugins/continual-learning, type: directory}- '@lmliheng/csu-mail@file:plugins/csu-mail':+ '@adelie/csu-mail@file:plugins/csu-mail':resolution: {directory: plugins/csu-mail, type: directory}- '@lmliheng/data-analysis@file:plugins/data-analysis':+ '@adelie/data-analysis@file:plugins/data-analysis':resolution: {directory: plugins/data-analysis, type: directory}- '@lmliheng/goal@file:plugins/goal':+ '@adelie/goal@file:plugins/goal':resolution: {directory: plugins/goal, type: directory}- '@lmliheng/humanizer@file:plugins/humanizer':+ '@adelie/humanizer@file:plugins/humanizer':resolution: {directory: plugins/humanizer, type: directory}- '@lmliheng/lesson-video@file:plugins/lesson-video':+ '@adelie/lesson-video@file:plugins/lesson-video':resolution: {directory: plugins/lesson-video, type: directory}- '@lmliheng/model-development@file:plugins/model-development':+ '@adelie/model-development@file:plugins/model-development':resolution: {directory: plugins/model-development, type: directory}- '@lmliheng/penguin-cli@file:packages/cli':+ '@adelie/cli@file:packages/cli':resolution: {directory: packages/cli, type: directory}engines: {node: '>=24'}hasBin: true- '@lmliheng/penguin-core@file:packages/core':+ '@adelie/core@file:packages/core':resolution: {directory: packages/core, type: directory}engines: {node: '>=24'}- '@lmliheng/penguin-hmr@file:packages/hmr':+ '@adelie/hmr@file:packages/hmr':resolution: {directory: packages/hmr, type: directory}- '@lmliheng/penguin-server@file:packages/server':+ '@adelie/server@file:packages/server':resolution: {directory: packages/server, type: directory}engines: {node: '>=24'}- '@lmliheng/requirements-box@file:plugins/requirements-box':+ '@adelie/requirements-box@file:plugins/requirements-box':resolution: {directory: plugins/requirements-box, type: directory}- '@lmliheng/skill-porting@file:plugins/skill-porting':+ '@adelie/skill-porting@file:plugins/skill-porting':resolution: {directory: plugins/skill-porting, type: directory}- '@lmliheng/software-development@file:plugins/software-development':+ '@adelie/software-development@file:plugins/software-development':resolution: {directory: plugins/software-development, type: directory}- '@lmliheng/use-bento-slides@file:plugins/use-bento-slides':+ '@adelie/use-bento-slides@file:plugins/use-bento-slides':resolution: {directory: plugins/use-bento-slides, type: directory}- '@lmliheng/use-claude-code@file:plugins/use-claude-code':+ '@adelie/use-claude-code@file:plugins/use-claude-code':resolution: {directory: plugins/use-claude-code, type: directory}- '@lmliheng/use-firecrawl@file:plugins/use-firecrawl':+ '@adelie/use-firecrawl@file:plugins/use-firecrawl':resolution: {directory: plugins/use-firecrawl, type: directory}- '@lmliheng/use-offerdao@file:plugins/use-offerdao':+ '@adelie/use-offerdao@file:plugins/use-offerdao':resolution: {directory: plugins/use-offerdao, type: directory}- '@lmliheng/use-wps-office@file:plugins/use-wps-office':+ '@adelie/use-wps-office@file:plugins/use-wps-office':resolution: {directory: plugins/use-wps-office, type: directory}- '@lmliheng/wechat-miniprogram@file:plugins/wechat-miniprogram':+ '@adelie/wechat-miniprogram@file:plugins/wechat-miniprogram':resolution: {directory: plugins/wechat-miniprogram, type: directory}'@malept/[email protected]':@@ -5606,54 +5606,54 @@ snapshots:- supports-color- utf-8-validate- '@lmliheng/agent-company@file:plugins/agent-company': {}+ '@adelie/agent-company@file:plugins/agent-company': {}- '@lmliheng/agent-development@file:plugins/agent-development': {}+ '@adelie/agent-development@file:plugins/agent-development': {}- '@lmliheng/agent-tuning@file:plugins/agent-tuning': {}+ '@adelie/agent-tuning@file:plugins/agent-tuning': {}- '@lmliheng/amsp@file:packages/amsp': {}+ '@adelie/amsp@file:packages/amsp': {}- '@lmliheng/browser-automation@file:plugins/browser-automation': {}+ '@adelie/browser-automation@file:plugins/browser-automation': {}- '@lmliheng/continual-learning@file:plugins/continual-learning': {}+ '@adelie/continual-learning@file:plugins/continual-learning': {}- '@lmliheng/csu-mail@file:plugins/csu-mail': {}+ '@adelie/csu-mail@file:plugins/csu-mail': {}- '@lmliheng/data-analysis@file:plugins/data-analysis': {}+ '@adelie/data-analysis@file:plugins/data-analysis': {}- '@lmliheng/goal@file:plugins/goal': {}+ '@adelie/goal@file:plugins/goal': {}- '@lmliheng/humanizer@file:plugins/humanizer': {}+ '@adelie/humanizer@file:plugins/humanizer': {}- '@lmliheng/lesson-video@file:plugins/lesson-video': {}+ '@adelie/lesson-video@file:plugins/lesson-video': {}- '@lmliheng/model-development@file:plugins/model-development': {}+ '@adelie/model-development@file:plugins/model-development': {}- '@lmliheng/penguin-cli@file:packages/cli([email protected])':+ '@adelie/cli@file:packages/cli([email protected])':dependencies:- '@lmliheng/agent-company': file:plugins/agent-company- '@lmliheng/agent-development': file:plugins/agent-development- '@lmliheng/agent-tuning': file:plugins/agent-tuning- '@lmliheng/browser-automation': file:plugins/browser-automation- '@lmliheng/continual-learning': file:plugins/continual-learning- '@lmliheng/csu-mail': file:plugins/csu-mail- '@lmliheng/data-analysis': file:plugins/data-analysis- '@lmliheng/goal': file:plugins/goal- '@lmliheng/humanizer': file:plugins/humanizer- '@lmliheng/lesson-video': file:plugins/lesson-video- '@lmliheng/model-development': file:plugins/model-development- '@lmliheng/penguin-core': file:packages/core([email protected])([email protected])- '@lmliheng/penguin-server': file:packages/server([email protected])- '@lmliheng/requirements-box': file:plugins/requirements-box- '@lmliheng/skill-porting': file:plugins/skill-porting- '@lmliheng/software-development': file:plugins/software-development- '@lmliheng/use-bento-slides': file:plugins/use-bento-slides- '@lmliheng/use-claude-code': file:plugins/use-claude-code- '@lmliheng/use-firecrawl': file:plugins/use-firecrawl- '@lmliheng/use-offerdao': file:plugins/use-offerdao- '@lmliheng/use-wps-office': file:plugins/use-wps-office- '@lmliheng/wechat-miniprogram': file:plugins/wechat-miniprogram+ '@adelie/agent-company': file:plugins/agent-company+ '@adelie/agent-development': file:plugins/agent-development+ '@adelie/agent-tuning': file:plugins/agent-tuning+ '@adelie/browser-automation': file:plugins/browser-automation+ '@adelie/continual-learning': file:plugins/continual-learning+ '@adelie/csu-mail': file:plugins/csu-mail+ '@adelie/data-analysis': file:plugins/data-analysis+ '@adelie/goal': file:plugins/goal+ '@adelie/humanizer': file:plugins/humanizer+ '@adelie/lesson-video': file:plugins/lesson-video+ '@adelie/model-development': file:plugins/model-development+ '@adelie/core': file:packages/core([email protected])([email protected])+ '@adelie/server': file:packages/server([email protected])+ '@adelie/requirements-box': file:plugins/requirements-box+ '@adelie/skill-porting': file:plugins/skill-porting+ '@adelie/software-development': file:plugins/software-development+ '@adelie/use-bento-slides': file:plugins/use-bento-slides+ '@adelie/use-claude-code': file:plugins/use-claude-code+ '@adelie/use-firecrawl': file:plugins/use-firecrawl+ '@adelie/use-offerdao': file:plugins/use-offerdao+ '@adelie/use-wps-office': file:plugins/use-wps-office+ '@adelie/wechat-miniprogram': file:plugins/wechat-miniprogram'@modelcontextprotocol/client': 2.0.0'@prismshadow/agenthub': 0.4.15([email protected])([email protected])commander: 13.1.0@@ -5669,28 +5669,28 @@ snapshots:- ws- zod- '@lmliheng/penguin-core@file:packages/core([email protected])([email protected])':- dependencies:- '@lmliheng/agent-company': file:plugins/agent-company- '@lmliheng/agent-development': file:plugins/agent-development- '@lmliheng/agent-tuning': file:plugins/agent-tuning- '@lmliheng/browser-automation': file:plugins/browser-automation- '@lmliheng/continual-learning': file:plugins/continual-learning- '@lmliheng/csu-mail': file:plugins/csu-mail- '@lmliheng/data-analysis': file:plugins/data-analysis- '@lmliheng/goal': file:plugins/goal- '@lmliheng/humanizer': file:plugins/humanizer- '@lmliheng/lesson-video': file:plugins/lesson-video- '@lmliheng/model-development': file:plugins/model-development- '@lmliheng/requirements-box': file:plugins/requirements-box- '@lmliheng/skill-porting': file:plugins/skill-porting- '@lmliheng/software-development': file:plugins/software-development- '@lmliheng/use-bento-slides': file:plugins/use-bento-slides- '@lmliheng/use-claude-code': file:plugins/use-claude-code- '@lmliheng/use-firecrawl': file:plugins/use-firecrawl- '@lmliheng/use-offerdao': file:plugins/use-offerdao- '@lmliheng/use-wps-office': file:plugins/use-wps-office- '@lmliheng/wechat-miniprogram': file:plugins/wechat-miniprogram+ '@adelie/core@file:packages/core([email protected])([email protected])':+ dependencies:+ '@adelie/agent-company': file:plugins/agent-company+ '@adelie/agent-development': file:plugins/agent-development+ '@adelie/agent-tuning': file:plugins/agent-tuning+ '@adelie/browser-automation': file:plugins/browser-automation+ '@adelie/continual-learning': file:plugins/continual-learning+ '@adelie/csu-mail': file:plugins/csu-mail+ '@adelie/data-analysis': file:plugins/data-analysis+ '@adelie/goal': file:plugins/goal+ '@adelie/humanizer': file:plugins/humanizer+ '@adelie/lesson-video': file:plugins/lesson-video+ '@adelie/model-development': file:plugins/model-development+ '@adelie/requirements-box': file:plugins/requirements-box+ '@adelie/skill-porting': file:plugins/skill-porting+ '@adelie/software-development': file:plugins/software-development+ '@adelie/use-bento-slides': file:plugins/use-bento-slides+ '@adelie/use-claude-code': file:plugins/use-claude-code+ '@adelie/use-firecrawl': file:plugins/use-firecrawl+ '@adelie/use-offerdao': file:plugins/use-offerdao+ '@adelie/use-wps-office': file:plugins/use-wps-office+ '@adelie/wechat-miniprogram': file:plugins/wechat-miniprogram'@modelcontextprotocol/client': 2.0.0'@prismshadow/agenthub': 0.4.15([email protected])([email protected])arktype: 2.2.3@@ -5704,28 +5704,28 @@ snapshots:- ws- zod- '@lmliheng/penguin-core@file:packages/core([email protected])([email protected])([email protected])':- dependencies:- '@lmliheng/agent-company': file:plugins/agent-company- '@lmliheng/agent-development': file:plugins/agent-development- '@lmliheng/agent-tuning': file:plugins/agent-tuning- '@lmliheng/browser-automation': file:plugins/browser-automation- '@lmliheng/continual-learning': file:plugins/continual-learning- '@lmliheng/csu-mail': file:plugins/csu-mail- '@lmliheng/data-analysis': file:plugins/data-analysis- '@lmliheng/goal': file:plugins/goal- '@lmliheng/humanizer': file:plugins/humanizer- '@lmliheng/lesson-video': file:plugins/lesson-video- '@lmliheng/model-development': file:plugins/model-development- '@lmliheng/requirements-box': file:plugins/requirements-box- '@lmliheng/skill-porting': file:plugins/skill-porting- '@lmliheng/software-development': file:plugins/software-development- '@lmliheng/use-bento-slides': file:plugins/use-bento-slides- '@lmliheng/use-claude-code': file:plugins/use-claude-code- '@lmliheng/use-firecrawl': file:plugins/use-firecrawl- '@lmliheng/use-offerdao': file:plugins/use-offerdao- '@lmliheng/use-wps-office': file:plugins/use-wps-office- '@lmliheng/wechat-miniprogram': file:plugins/wechat-miniprogram+ dependencies:+ '@adelie/agent-company': file:plugins/agent-company+ '@adelie/agent-development': file:plugins/agent-development+ '@adelie/agent-tuning': file:plugins/agent-tuning+ '@adelie/browser-automation': file:plugins/browser-automation+ '@adelie/continual-learning': file:plugins/continual-learning+ '@adelie/csu-mail': file:plugins/csu-mail+ '@adelie/data-analysis': file:plugins/data-analysis+ '@adelie/goal': file:plugins/goal+ '@adelie/humanizer': file:plugins/humanizer+ '@adelie/lesson-video': file:plugins/lesson-video+ '@adelie/model-development': file:plugins/model-development+ '@adelie/requirements-box': file:plugins/requirements-box+ '@adelie/skill-porting': file:plugins/skill-porting+ '@adelie/software-development': file:plugins/software-development+ '@adelie/use-bento-slides': file:plugins/use-bento-slides+ '@adelie/use-claude-code': file:plugins/use-claude-code+ '@adelie/use-firecrawl': file:plugins/use-firecrawl+ '@adelie/use-offerdao': file:plugins/use-offerdao+ '@adelie/use-wps-office': file:plugins/use-wps-office+ '@adelie/wechat-miniprogram': file:plugins/wechat-miniprogram'@modelcontextprotocol/client': 2.0.0arktype: 2.2.3@@ -5739,9 +5739,9 @@ snapshots:- ws- zod- '@lmliheng/penguin-hmr@file:packages/hmr([email protected])([email protected])':+ '@adelie/hmr@file:packages/hmr([email protected])([email protected])':dependencies:- '@lmliheng/penguin-core': file:packages/core([email protected])([email protected])+ '@adelie/core': file:packages/core([email protected])([email protected])transitivePeerDependencies:- '@modelcontextprotocol/sdk'- bufferutil@@ -5750,12 +5750,12 @@ snapshots:- ws- zod- '@lmliheng/penguin-server@file:packages/server([email protected])':+ '@adelie/server@file:packages/server([email protected])':dependencies:'@hono/node-server': 2.0.12([email protected])- '@lmliheng/amsp': file:packages/amsp- '@lmliheng/penguin-core': file:packages/core([email protected])([email protected])+ '@adelie/amsp': file:packages/amsp+ '@adelie/core': file:packages/core([email protected])([email protected])'@xterm/headless': 5.5.0dotenv: 17.4.2fflate: 0.8.3@@ -5778,12 +5778,12 @@ snapshots:- utf-8-validate- zod- '@lmliheng/penguin-server@file:packages/server([email protected])([email protected])':+ '@adelie/server@file:packages/server([email protected])([email protected])':dependencies:'@hono/node-server': 2.0.12([email protected])- '@lmliheng/amsp': file:packages/amsp- '@lmliheng/penguin-core': file:packages/core([email protected])([email protected])([email protected])+ '@adelie/amsp': file:packages/amsp'@xterm/headless': 5.5.0dotenv: 17.4.2fflate: 0.8.3@@ -5806,23 +5806,23 @@ snapshots:- utf-8-validate- zod- '@lmliheng/requirements-box@file:plugins/requirements-box': {}+ '@adelie/requirements-box@file:plugins/requirements-box': {}- '@lmliheng/skill-porting@file:plugins/skill-porting': {}+ '@adelie/skill-porting@file:plugins/skill-porting': {}- '@lmliheng/software-development@file:plugins/software-development': {}+ '@adelie/software-development@file:plugins/software-development': {}- '@lmliheng/use-bento-slides@file:plugins/use-bento-slides': {}+ '@adelie/use-bento-slides@file:plugins/use-bento-slides': {}- '@lmliheng/use-claude-code@file:plugins/use-claude-code': {}+ '@adelie/use-claude-code@file:plugins/use-claude-code': {}- '@lmliheng/use-firecrawl@file:plugins/use-firecrawl': {}+ '@adelie/use-firecrawl@file:plugins/use-firecrawl': {}- '@lmliheng/use-offerdao@file:plugins/use-offerdao': {}+ '@adelie/use-offerdao@file:plugins/use-offerdao': {}- '@lmliheng/use-wps-office@file:plugins/use-wps-office': {}+ '@adelie/use-wps-office@file:plugins/use-wps-office': {}- '@lmliheng/wechat-miniprogram@file:plugins/wechat-miniprogram': {}+ '@adelie/wechat-miniprogram@file:plugins/wechat-miniprogram': {}'@malept/[email protected]':dependencies:diff --git a/scripts/build-plugins.mjs b/scripts/build-plugins.mjsindex d5dd765b..5ccbc3f0 100644--- a/scripts/build-plugins.mjs+++ b/scripts/build-plugins.mjs@@ -9,7 +9,7 @@* Nothing about a package is rewritten. Its `package.json`, its `exports`, its `dist/` and its* `README.md` reach the target as the package's own build produced them; a dependency it* declares is installed beside it the way npm installs it anywhere. The SDK's runtime is not- * among those dependencies — a plugin compiles against `@lmliheng/penguin-core`'s types+ * among those dependencies — a plugin compiles against `@adelie/core`'s types* (a devDependency) and shares the host's copy at run time.** A builtin plugin bundles what it runs. Every file in the prefix is a blob a push carriesdiff --git a/scripts/check-publishable.mjs b/scripts/check-publishable.mjsindex f7970b4f..4a6bc456 100755--- a/scripts/check-publishable.mjs+++ b/scripts/check-publishable.mjs@@ -9,7 +9,7 @@* `devDependencies` — bundling is a build-time input, and `devDependencies` are not rewritten* into the published manifest.*- * This is the shape that broke the 0.2.12 release: `packages/server` took `@lmliheng/penguin-hmr`+ * This is the shape that broke the 0.2.12 release: `packages/server` took `@adelie/hmr`* — private, and bundled — as a runtime dependency.** With `--registry`, it additionally asks npm which of the packages a release publishes do not@@ -74,9 +74,9 @@ console.log(if (!process.argv.includes("--registry")) process.exit(0);// Everything the release publishes: the non-private packages above, plus every plugin — the-// release loops `plugins/*/` and publishes each as `@lmliheng/<dir>`.+// release loops `plugins/*/` and publishes each as `@adelie/<dir>`.// Read each plugin's own name and private flag rather than deriving a name from its directory:-// `plugins/sandbox-*` are `@lmliheng/penguin-plugin-sandbox-*` and private, so a name built+// `plugins/sandbox-*` are `@adelie/sandbox-*` and private, so a name built// from the directory names a package that does not exist and never will.const pluginNames = [];for (const entry of readdirSync(path.join(root, "plugins"), { withFileTypes: true })) {diff --git a/scripts/deploy.mjs b/scripts/deploy.mjsindex 278e9314..a34fe04a 100644--- a/scripts/deploy.mjs+++ b/scripts/deploy.mjs@@ -189,7 +189,7 @@ async function compileEntry(entry, outfile) {logLevel: "silent",banner: { js: ESM_CJS_BANNER },alias: {- "@lmliheng/penguin-core/kernel": require.resolve("@lmliheng/penguin-core/kernel"),+ "@adelie/core/kernel": require.resolve("@adelie/core/kernel"),},// The pushed bundle lands under `<root>/hmr/store/`, outside any checkout, so its own// revision has to be inlined here or it can never be recovered: `penguin version` from@@ -293,7 +293,7 @@ async function main() {log("reusing the existing web dist");} else {log("building the web dist…");- execFileSync("pnpm", ["--filter", "@lmliheng/penguin-web", "build"], {+ execFileSync("pnpm", ["--filter", "@adelie/web", "build"], {cwd: ROOT,stdio: "inherit",});diff --git a/scripts/dev-prebuild.mjs b/scripts/dev-prebuild.mjsindex 2025cd70..cd6f4e3d 100644--- a/scripts/dev-prebuild.mjs+++ b/scripts/dev-prebuild.mjs@@ -219,7 +219,7 @@ try {// core, and core has to be rebuilt first for it to inline the current one.const res = spawnSync("pnpm",- ["--filter", "@lmliheng/penguin-core", "--filter", "@lmliheng/penguin-cli", "build"],+ ["--filter", "@adelie/core", "--filter", "@adelie/cli", "build"],// shell on Windows: pnpm is a .cmd shim there (see ensureInstalled).{ cwd: ROOT, stdio: "inherit", shell: process.platform === "win32" },);diff --git a/scripts/ui-migrate.json b/scripts/ui-migrate.jsonindex 1c8248da..382e9066 100644--- a/scripts/ui-migrate.json+++ b/scripts/ui-migrate.json@@ -5,7 +5,7 @@"packages/web/src/lib/icon-scale": [{"owner": "WP-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/icon-scale.ts","names": ["ICON_SIZE", "ICON_GAP"]}@@ -13,7 +13,7 @@"packages/web/src/components/ui/glyph-icon": [{"owner": "WP-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/icons/glyph-icon/glyph-icon.tsx","names": ["GlyphIcon"]}@@ -21,7 +21,7 @@"packages/web/src/components/ui/chevron": [{"owner": "WP-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/icons/chevron/chevron.tsx","names": ["Chevron"]}@@ -29,7 +29,7 @@"packages/web/src/components/ui/icons": [{"owner": "WP-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/icons/marks/marks.tsx","names": ["ChevronDown",@@ -42,13 +42,13 @@},{"owner": "WP-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/actions/close-button/close-button.tsx","names": ["CloseButton"]},{"owner": "WP-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/icons/icons.ts","names": ["INFO_ICON→ICONS.info",@@ -99,7 +99,7 @@"packages/web/src/components/ui/group-list": [{"owner": "WP-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/icons/icons.ts","names": ["FOLDER_ICON→ICONS.folder",@@ -114,7 +114,7 @@"packages/web/src/components/ui/session-row-menu": [{"owner": "WP-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/icons/icons.ts","names": ["PIN_ICON→ICONS.pin",@@ -129,7 +129,7 @@"packages/web/src/components/ui/agent-avatar": [{"owner": "WP-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/icons/avatars/agent-avatar.tsx","names": ["AgentAvatar"]}@@ -137,7 +137,7 @@"packages/web/src/components/ui/user-avatar": [{"owner": "WP-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/icons/avatars/user-avatar.tsx","names": ["UserAvatar", "USER_AVATAR_SIZE"]}@@ -145,7 +145,7 @@"packages/web/src/lib/avatar": [{"owner": "WP-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/icons/avatars/avatar.ts","names": ["avatarHue", "avatarTile", "avatarInitial"]}@@ -153,7 +153,7 @@"packages/web/src/components/ui/provider-logo": [{"owner": "WP-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/icons/logos/provider-logo.tsx","names": ["ProviderLogo"]}@@ -161,7 +161,7 @@"packages/web/src/components/ui/penguin-logo": [{"owner": "WP-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/icons/logos/penguin-logo.tsx","names": ["PenguinLogo"]}@@ -169,7 +169,7 @@"packages/web/src/components/ui/status-icon": [{"owner": "WP-B",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/icons/status-icon/status-icon.tsx","names": ["StatusIcon", "RunState"]}@@ -177,7 +177,7 @@"packages/web/src/components/ui/session-activity-icon": [{"owner": "WP-B",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/icons/activity-icon/activity-icon.tsx","names": ["SessionActivityIcon→ActivityIcon", "BackgroundTasksMark", "ScheduleMark"]},@@ -191,7 +191,7 @@"packages/web/src/components/ui/update-dot": [{"owner": "WP-B",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/icons/update-dot/update-dot.tsx","names": ["UpdateDot", "UpdatePill", "UPDATE_DOT_INLINE", "UpdateDotSize"]}@@ -199,13 +199,13 @@"packages/web/src/components/ui/badge": [{"owner": "WP-B",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/feedback/badge/badge.tsx","names": ["Badge"]},{"owner": "WP-B",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/tokens.ts","names": ["BadgeTone→ToneName"]},@@ -219,7 +219,7 @@"packages/web/src/components/ui/skeleton": [{"owner": "WP-B",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/feedback/skeleton/skeleton.tsx","names": ["Skeleton", "SkeletonList", "SkeletonCard"]}@@ -227,7 +227,7 @@"packages/web/src/components/ui/empty-state": [{"owner": "WP-B",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/feedback/empty-state/empty-state.tsx","names": ["EmptyState", "SettingsEmpty"]}@@ -235,7 +235,7 @@"packages/web/src/components/ui/button": [{"owner": "WP-C",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/actions/button/button.tsx","names": ["Button", "ButtonProps", "labelButtonClass→buttonClass"]}@@ -243,7 +243,7 @@"packages/web/src/components/ui/copy-button": [{"owner": "WP-C",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/actions/copy-button/copy-button.tsx","names": ["CopyButton", "useCopied", "CopiedStatus", "CopyCheckGlyph"]},@@ -257,7 +257,7 @@"packages/web/src/components/ui/hidden-file-input": [{"owner": "WP-C",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/actions/hidden-file-input/hidden-file-input.tsx","names": ["HiddenFileInput"]}@@ -267,13 +267,13 @@"packages/web/src/components/ui/field": [{"owner": "W2-0",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/overlays/menu-panel/menu-panel.tsx","names": ["menuPanelClass", "menuRowClass", "menuRowTone", "ChoiceCheck"]},{"owner": "W2-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/forms/field/field.tsx","names": ["Field", "FieldLabel", "FieldHint", "FieldError", "RequiredMark", "controlBase"]}@@ -281,7 +281,7 @@"packages/web/src/components/ui/input": [{"owner": "W2-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/forms/input/input.tsx","names": ["Input",@@ -300,7 +300,7 @@"packages/web/src/components/ui/password-input": [{"owner": "W2-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/forms/password-input/password-input.tsx","names": ["PasswordInput"]}@@ -308,7 +308,7 @@"packages/web/src/components/ui/use-portal-panel": [{"owner": "W2-B",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/overlays/portal-panel/use-portal-panel.ts","names": ["usePortalPanel", "PortalPanelPosition"]}@@ -316,7 +316,7 @@"packages/web/src/lib/context-menu": [{"owner": "W2-B",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/overlays/portal-panel/use-portal-panel.ts","names": ["scrollMovesAnchor"]}@@ -324,7 +324,7 @@"packages/web/src/components/ui/info-popover": [{"owner": "W2-B",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/overlays/info-popover/info-popover.tsx","names": ["InfoPopover"]}@@ -332,7 +332,7 @@"packages/web/src/components/ui/help-fold": [{"owner": "W2-B",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/overlays/info-popover/help-fold.tsx","names": ["HelpFold"]}@@ -340,7 +340,7 @@"packages/web/src/components/ui/select": [{"owner": "W2-B",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/forms/select/select.tsx","names": ["Select", "SelectProps"]}@@ -348,7 +348,7 @@"packages/web/src/components/ui/option-menu": [{"owner": "W2-B",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/forms/select/option-menu.tsx","names": ["OptionMenu", "OptionMenuChoice", "rowDescClass"]}@@ -356,7 +356,7 @@"packages/web/src/features/chat/model-select": [{"owner": "W2-B",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/forms/picker-list/picker-list.tsx","names": ["PickerList"]}@@ -364,7 +364,7 @@"packages/web/src/components/ui/switch": [{"owner": "W2-B",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/forms/switch/switch.tsx","names": ["Switch", "SwitchProps"]}@@ -372,7 +372,7 @@"packages/web/src/components/ui/segmented": [{"owner": "W2-B",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/forms/segmented/segmented.tsx","names": ["Segmented"]}@@ -380,7 +380,7 @@"packages/web/src/features/settings/setting-row": [{"owner": "W2-B",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/forms/pref-row/pref-row.tsx","names": ["PrefRow"]}@@ -388,7 +388,7 @@"packages/web/src/features/settings/section-shell": [{"owner": "W2-B",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/forms/pref-row/pref-row.tsx","names": ["SectionShell→SettingsSection"]}@@ -398,13 +398,13 @@"packages/web/src/components/ui/modal": [{"owner": "W3-B",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/overlays/modal/modal.tsx","names": ["Modal", "ModalProps"]},{"owner": "W3-B",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/overlays/esc-layers/esc-layers.ts","names": ["pushEscLayer",@@ -419,7 +419,7 @@"packages/web/src/components/ui/confirm-modal": [{"owner": "W3-B",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/overlays/confirm-modal/confirm-modal.tsx","names": ["ConfirmModal"]},@@ -433,7 +433,7 @@"packages/web/src/components/ui/paged-dialog": [{"owner": "W3-B",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/overlays/paged-dialog/paged-dialog.tsx","names": ["PagedDialog", "PagedDialogItem", "PagedDialogGroup"]}@@ -441,7 +441,7 @@"packages/web/src/components/ui/drawer": [{"owner": "W3-B",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/overlays/drawer/drawer.tsx","names": ["Drawer", "DrawerProps"]}@@ -449,7 +449,7 @@"packages/web/src/components/ui/sheet": [{"owner": "W3-B",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/overlays/drawer/sheet.tsx","names": ["Sheet", "SheetProps", "SheetSnap"]}@@ -457,7 +457,7 @@"packages/web/src/components/ui/image-zoom": [{"owner": "W3-B",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/overlays/lightbox/lightbox.tsx","names": ["ZoomableImage"]}@@ -465,7 +465,7 @@"packages/web/src/lib/spring": [{"owner": "W3-B",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/motion/spring.ts","names": ["SPRING_DEFAULT",@@ -481,7 +481,7 @@"packages/web/src/lib/sheet-physics": [{"owner": "W3-B",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/motion/sheet-physics.ts","names": ["project", "rubberband", "nearestSnap"]}@@ -489,7 +489,7 @@"packages/web/src/components/ui/use-reduced-motion": [{"owner": "W3-B",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/motion/use-reduced-motion.ts","names": ["usePrefersReducedMotion"]}@@ -497,7 +497,7 @@"packages/web/src/components/ui/dropdown": [{"owner": "W3-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/overlays/dropdown/dropdown.tsx","names": ["Dropdown", "DropdownPortal"]}@@ -505,7 +505,7 @@"packages/web/src/components/ui/form-picker": [{"owner": "W3-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/forms/select/form-picker.tsx","names": ["FormPicker"]}@@ -513,7 +513,7 @@"packages/web/src/components/ui/context-menu": [{"owner": "W3-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/overlays/portal-panel/use-row-context-menu.ts","names": ["useRowContextMenu", "RowContextMenu", "ContextMenuRowProps"]}@@ -521,7 +521,7 @@"packages/web/src/lib/context-menu": [{"owner": "W3-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/overlays/portal-panel/context-menu.ts","names": ["AnchorRect",@@ -548,7 +548,7 @@"packages/web/src/components/ui/tooltip": [{"owner": "W3-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/overlays/tooltip/tooltip.tsx","names": ["Tooltip",@@ -574,7 +574,7 @@"packages/web/src/components/ui/toast": [{"owner": "W3-C",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/overlays/toaster/toaster.tsx","names": ["Toaster", "toastSuccess", "toastError", "toastInfo", "toastAttention"]}@@ -582,7 +582,7 @@"packages/web/src/components/ui/notice-strip": [{"owner": "W3-C",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/feedback/notice/notice-strip.tsx","names": ["NoticeStrip", "NOTICE_TONE", "NoticeTone"]}@@ -592,7 +592,7 @@"packages/web/src/components/ui/tabs": [{"owner": "W4-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/navigation/tabs/tabs.tsx","names": ["Tabs", "TabItem"]}@@ -600,7 +600,7 @@"packages/web/src/components/ui/group-list": [{"owner": "W4-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/navigation/group-header/group-header.tsx","names": ["GroupHeader", "FolderSection", "MoreRow"]}@@ -608,7 +608,7 @@"packages/web/src/features/ai-create/create-buttons": [{"owner": "W4-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/actions/create-buttons/create-buttons.tsx","names": ["CreateButtons", "CreateButtonsProps"]}@@ -624,7 +624,7 @@"packages/web/src/components/ui/todo-notice": [{"owner": "W4-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/feedback/todo-notice/todo-notice.tsx","names": ["TodoNotice"]}@@ -646,7 +646,7 @@"packages/web/src/features/chat/disclosure-row": [{"owner": "W4-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/layout/disclosure-row/disclosure-row.tsx","names": ["DisclosureRow",@@ -668,7 +668,7 @@"packages/web/src/features/chat/live-duration": [{"owner": "W4-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/feedback/duration-slot/duration-slot.tsx","names": ["LiveDuration", "useElapsedPast"]}@@ -676,7 +676,7 @@"packages/web/src/features/company/shared": [{"owner": "W4-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/data/stat-tile/stat-tile.tsx","names": ["StatTile"]}@@ -684,7 +684,7 @@"packages/web/src/features/company/org-layout": [{"owner": "W4-B",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/layout/ruled-section/ruled-section.tsx","names": ["OrgSection→RuledSection"]}@@ -694,7 +694,7 @@"packages/web/src/features/chat/md": [{"owner": "W5-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/content/prose/prose.tsx","names": ["Md", "SETTLED_MD_COMPONENTS"]},@@ -708,7 +708,7 @@"packages/web/src/lib/markdown-plugins": [{"owner": "W5-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/content/prose/markdown-plugins.ts","names": ["REMARK_PLUGINS", "REHYPE_PLUGINS", "NO_REHYPE_PLUGINS"]}@@ -716,7 +716,7 @@"packages/web/src/features/chat/code-block": [{"owner": "W5-B",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/content/code-block/code-block.tsx","names": ["CodeBlock", "CodeSurface"]}@@ -724,7 +724,7 @@"packages/web/src/features/chat/code-languages": [{"owner": "W5-B",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/content/code-block/code-languages.ts","names": ["languageForExtension",@@ -741,7 +741,7 @@"packages/web/src/features/dock/use-pointer-drag": [{"owner": "W7-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/layout/resize-handle/use-pointer-drag.ts","names": ["usePointerDrag"]}@@ -749,7 +749,7 @@"packages/web/src/lib/file-tree": [{"owner": "W7-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/files/file-tree/tree-rows.ts","names": ["FileTreeRow", "TreeKeyAction", "subtreeEnd", "treeKeyStep"]}@@ -757,7 +757,7 @@"packages/web/src/components/ui/file-tree": [{"owner": "W7-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/files/file-tree/file-tree.tsx","names": ["FileTree", "TreeToggle"]}@@ -765,7 +765,7 @@"packages/web/src/components/ui/file-browser": [{"owner": "W7-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/files/file-browser/file-browser.tsx","names": ["FileBrowser", "FileBrowserPreview", "FileBrowserPreviewKind"]},@@ -779,7 +779,7 @@"packages/web/src/features/chat/workspace-file-menu": [{"owner": "W7-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/files/workspace-file-menu/workspace-file-menu.tsx","names": ["WorkspaceFileMenuRows", "FileMenuTarget"]}@@ -787,7 +787,7 @@"packages/web/src/features/chat/workspace-editor": [{"owner": "W7-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/content/workspace-file-editor/workspace-file-editor.tsx","names": ["WorkspaceFileEditor"]}@@ -795,13 +795,13 @@"packages/web/src/lib/workspace-tree": [{"owner": "W7-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/navigation/breadcrumbs/crumb-fit.ts","names": ["CRUMB_ELLIPSIS", "CrumbLayout", "visibleCrumbSegments", "splitFileName"]},{"owner": "W7-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/layout/resize-handle/resize-handle.tsx","names": ["TREE_DIVIDER_PX→RESIZE_HANDLE_PX"]}@@ -809,7 +809,7 @@"packages/web/src/lib/frontmatter": [{"owner": "W7-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/content/prose/frontmatter.ts","names": ["bodyWithoutFrontmatter"]}@@ -859,7 +859,7 @@"packages/web/src/features/chat/step-banner": [{"owner": "W6-A2",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/chat/step-banner/step-banner.tsx","names": ["StepBanner"]}@@ -867,7 +867,7 @@"packages/web/src/features/chat/approval-buttons": [{"owner": "W6-A2",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/chat/approval-block/approval-block.tsx","names": ["ApprovalButtons"]}@@ -875,7 +875,7 @@"packages/web/src/features/chat/assistant-reply-body": [{"owner": "W6-A1",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/chat/assistant-text/assistant-text.tsx","names": ["AssistantReplyBody→AssistantText"]}@@ -883,7 +883,7 @@"packages/web/src/features/chat/streaming-caret": [{"owner": "W6-A1",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/chat/assistant-text/streaming-caret.tsx","names": ["StreamingCaret"]}@@ -891,7 +891,7 @@"packages/web/src/features/chat/use-stream-reveal": [{"owner": "W6-A1",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/chat/assistant-text/use-stream-reveal.ts","names": ["useStreamReveal"]}@@ -899,7 +899,7 @@"packages/web/src/lib/stream-style": [{"owner": "W6-A1",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/chat/assistant-text/stream-style.ts","names": ["StreamStyle",@@ -913,7 +913,7 @@},{"owner": "W6-A1",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/tokens.ts","names": ["StreamRevealMode→StreamReveal"]}@@ -921,7 +921,7 @@"packages/web/src/features/chat/message-files-card": [{"owner": "W6-A1",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/chat/changes-card/changes-card.tsx","names": ["PathLabel"]}@@ -939,7 +939,7 @@"packages/web/src/features/palette/command-palette": [{"owner": "W8-B",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/overlays/command-palette/command-palette.tsx","names": ["CommandPalette"]}@@ -947,7 +947,7 @@"packages/web/src/lib/command-palette": [{"owner": "W8-B",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/overlays/command-palette/command-palette.tsx","names": ["PaletteAction", "filterPaletteActions"]}@@ -955,7 +955,7 @@"packages/web/src/components/ui/chart": [{"owner": "W8-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/charts/marks/marks.tsx","names": ["ChartArc",@@ -977,13 +977,13 @@},{"owner": "W8-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/charts/marks/timeline-bar.tsx","names": ["TimelineBar"]},{"owner": "W8-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/charts/marks/geom.ts","names": ["BAR_W", "curvePath", "fitBarWidth", "roundCoord"]}@@ -991,7 +991,7 @@"packages/web/src/components/ui/chart/marks": [{"owner": "W8-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/charts/marks/marks.tsx","names": ["ChartPaint",@@ -1016,7 +1016,7 @@"packages/web/src/components/ui/chart/geom": [{"owner": "W8-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/charts/marks/geom.ts","names": ["roundCoord", "curvePath", "BAR_W", "fitBarWidth"]}@@ -1024,7 +1024,7 @@"packages/web/src/components/ui/chart/timeline-bar": [{"owner": "W8-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/charts/marks/timeline-bar.tsx","names": ["TimelineBar"]}@@ -1032,7 +1032,7 @@"packages/web/src/lib/chart-style": [{"owner": "W8-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/charts/chart-style.ts","names": ["ChartCurve",@@ -1049,7 +1049,7 @@"packages/web/src/features/usage/chart-svg": [{"owner": "W8-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/charts/chart-frame/chart-frame.tsx","names": ["LINE_HIT_H", "LineHits", "useChartWidth", "ChartFrame"]}@@ -1057,7 +1057,7 @@"packages/web/src/features/usage/chart-geom": [{"owner": "W8-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/charts/chart-frame/chart-geom.ts","names": ["CHART_H",@@ -1090,7 +1090,7 @@"packages/web/src/components/ui/token-donut": [{"owner": "W8-A",- "target": "@lmliheng/penguin-ui",+ "target": "@adelie/ui","dest": "packages/ui/src/components/charts/token-donut/token-donut.tsx","names": ["TokenDonut"]}diff --git a/scripts/ui-migrate.mjs b/scripts/ui-migrate.mjsindex e3ac99e0..56c54737 100644--- a/scripts/ui-migrate.mjs+++ b/scripts/ui-migrate.mjs@@ -1,7 +1,7 @@#!/usr/bin/env node/*** ui-migrate: rewrite the imports of modules that moved out of the Web App into the shared UI- * package (`@lmliheng/penguin-ui`), or into a web module that took part of one over, across+ * package (`@adelie/ui`), or into a web module that took part of one over, across* the Web App and the gallery.** node scripts/ui-migrate.mjs rewrite in place@@ -40,7 +40,7 @@ import { fileURLToPath } from "node:url";const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");const MAP_FILE = path.join(ROOT, "scripts", "ui-migrate.json");-const PACKAGE = "@lmliheng/penguin-ui";+const PACKAGE = "@adelie/ui";const SCAN_ROOTS = ["packages/web/src","packages/web/test",