Skip to content

Commit e028d52

Browse files
committed
chore: clean app platform vocabulary residue
1 parent 82edebb commit e028d52

491 files changed

Lines changed: 3580 additions & 3580 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.chat/add-cli-shell-product/2026-05-08-runtime-progress.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# add-cli-shell-product runtime progress
1+
# add-cli-shell-app runtime progress
22

33
## Objective facts
44

@@ -15,39 +15,39 @@
1515

1616
## Remaining platform gaps
1717

18-
- `cli-shell` does not yet consume product attention and product delegation APIs in product code.
18+
- `cli-shell` does not yet consume app attention and app delegation APIs in app code.
1919
- Managed/takeover state is not yet projected from platform truth on reconnect.
20-
- Managed/takeover enable/disable does not yet commit hosting attention or create/revoke product delegations.
20+
- Managed/takeover enable/disable does not yet commit hosting attention or create/revoke app delegations.
2121
- Real daemon integration coverage for repeated attach / `@default` / `--session=2` is still missing.
2222
- TUI group is not started yet.
2323

2424
## Evidence and blockers
2525

2626
- Current targeted `cli-shell` and launcher tests are green.
27-
- `openspec validate add-cli-shell-product --strict` is green.
27+
- `openspec validate add-cli-shell-app --strict` is green.
2828
- Package-level `bunx tsc --noEmit -p packages/cli/tsconfig.json` is still blocked by pre-existing drift in `packages/tui/src/run-tui.tsx` (`ChatMessageRole` includes `system` while the local consumer expects only `user | assistant`).
2929

3030
## Runtime tensions observed during managed/integration closure
3131

3232
- Real daemon room grants keep the bootstrap superadmin membership alongside the summoned Avatar grants. The durable contract for cli-shell is "selected Avatar grants are ensured", not "the room contains only cli-shell avatars".
3333
- Global terminal and room catalog order is not a stable contract. Integration assertions should sort by durable keys (`terminalId`, `metadata.resourceKey`) instead of assuming creation order.
34-
- The cli-shell package boundary stayed clean during managed-mode implementation: product code consumed `@agenter/client-sdk` and `@agenter/product-extension-runtime` only. The remaining cross-package typecheck blocker lives in pre-existing `packages/tui/src/run-tui.tsx`, which should not be misattributed to cli-shell runtime work.
34+
- The cli-shell package boundary stayed clean during managed-mode implementation: app code consumed `@agenter/client-sdk` and `@agenter/app-runtime` only. The remaining cross-package typecheck blocker lives in pre-existing `packages/tui/src/run-tui.tsx`, which should not be misattributed to cli-shell runtime work.
3535

3636
## TUI substrate notes
3737

38-
- The collapsed shell-terminal TUI can stay product-orthogonal by reading only runtime-store projections: `focusedTerminalId`, `terminalSnapshots`, `heartbeatGroups`, and `unreadBySession`. No `@agenter/tui` dashboard/session-list reuse is needed.
38+
- The collapsed shell-terminal TUI can stay app-orthogonal by reading only runtime-store projections: `focusedTerminalId`, `terminalSnapshots`, `heartbeatGroups`, and `unreadBySession`. No `@agenter/tui` dashboard/session-list reuse is needed.
3939
- This workspace needed an explicit `bun install` before `@opentui/core` and `@opentui/react` became resolvable in `packages/cli-shell`. The package declarations were correct, but the local install state was missing.
40-
- `@opentui/react/test-utils` currently leaves a React `act(...)` warning on renderer teardown even though the collapsed TUI assertions pass. This is test-harness noise, not a product-contract failure, and should not be confused with a cli-shell runtime regression.
40+
- `@opentui/react/test-utils` currently leaves a React `act(...)` warning on renderer teardown even though the collapsed TUI assertions pass. This is test-harness noise, not a app-contract failure, and should not be confused with a cli-shell runtime regression.
4141

4242
## Next steps
4343

44-
1. Add product-side managed runtime helpers around hosting attention and product delegation.
44+
1. Add app-side managed runtime helpers around hosting attention and app delegation.
4545
2. Add real daemon integration tests for repeated attach / avatar override / session isolation.
4646
3. Use those helpers as the substrate for the bottom-only TUI instead of inventing local managed state.
4747

4848
## Interactive TUI closure facts
4949

50-
- The interactive TUI now routes product interaction through a controller layer instead of a renderer-heavy test harness. This was necessary because the Bun + OpenTUI test renderer teardown kept producing unstable behavior unrelated to cli-shell product contracts.
50+
- The interactive TUI now routes app interaction through a controller layer instead of a renderer-heavy test harness. This was necessary because the Bun + OpenTUI test renderer teardown kept producing unstable behavior unrelated to cli-shell app contracts.
5151
- The cli-shell frame now renders as a styled cell grid, including gray user-message rows and gray focused input rows, while preserving deterministic column accounting for CJK and emoji glyphs.
5252
- Focused TUI tests now cover:
5353
- toolbar status / heartbeat summaries
@@ -60,7 +60,7 @@
6060

6161
## Remaining gap after TUI closure
6262

63-
- Task 4.21 is intentionally still open. Cli-shell now creates and projects product delegations correctly, but the remaining acceptance requirement is stronger: confirm that autonomous terminal writes in managed execution use the Avatar actor identity and preserve delegation/lease provenance in the real write path, rather than only in cli-shell's own projection state.
63+
- Task 4.21 is intentionally still open. Cli-shell now creates and projects app delegations correctly, but the remaining acceptance requirement is stronger: confirm that autonomous terminal writes in managed execution use the Avatar actor identity and preserve delegation/lease provenance in the real write path, rather than only in cli-shell's own projection state.
6464
- Real local walkthrough (`5.5`) and long-running real AI semantic validation (`5.7`-`5.11`) remain pending after the TUI task group.
6565

6666
## 2026-05-08 real walkthrough closure facts for 5.5
@@ -162,16 +162,16 @@
162162
- model-response cache file observation
163163

164164
- The semantic suite input path was corrected to follow durable platform law.
165-
- Earlier assumption: cli-shell product room could be used as the conversational wake source.
166-
- Verified correction: self-evolution chat turns must use the session primary room path, not the product room metadata room.
165+
- Earlier assumption: cli-shell app room could be used as the conversational wake source.
166+
- Verified correction: self-evolution chat turns must use the session primary room path, not the app room metadata room.
167167
- Real fixture change:
168168
- attach the session primary room before chat sends
169169
- read back assistant-visible replies from the attached primary room rather than from optimistic chat-only projections
170170

171171
- Deterministic verification for the semantic suite scaffolding is green:
172172
- `bunx tsc --noEmit -p packages/cli-shell/tsconfig.json`
173173
- `bun test packages/cli-shell/test/cli-shell.test.ts packages/cli-shell/test/cli-shell.integration.test.ts packages/cli-shell/test/cli-shell-tui.test.tsx packages/cli-shell/test/package-boundary.test.ts packages/cli-shell/test/real-cli-shell-semantic.integration.test.ts`
174-
- `openspec validate add-cli-shell-product --strict`
174+
- `openspec validate add-cli-shell-app --strict`
175175

176176
- Real-provider acceptance remains objectively blocked on this machine as of 2026-05-08:
177177
- `glm` (`https://api.z.ai/api/anthropic`)
@@ -190,7 +190,7 @@
190190

191191
- Because the long-running suite cannot complete a full real semantic pass with any currently available provider on this machine:
192192
- `5.7` and `5.8` are supportable as implemented suite capability
193-
- `5.9` and `5.11` remain blocked as real acceptance tasks, not as missing cli-shell product code
193+
- `5.9` and `5.11` remain blocked as real acceptance tasks, not as missing cli-shell app code
194194

195195
## 2026-05-08 semantic acceptance reopen and closure for 5.9 / 5.11
196196

@@ -200,7 +200,7 @@
200200
- `AGENTER_REAL_AI_MODEL=deepseek-chat`
201201
- `AGENTER_REAL_AI_VENDOR=deepseek`
202202

203-
- Real acceptance failures after that switch were suite/fixture law mismatches, not missing cli-shell product behavior:
203+
- Real acceptance failures after that switch were suite/fixture law mismatches, not missing cli-shell app behavior:
204204
- room-reply wait originally used chat timestamp ordering against primary-room durable messages; real runtime ordering is not guaranteed across those two surfaces
205205
- assistant-room detection originally required `senderActorId` only; real primary-room snapshots are more stable when `from` is also accepted as Avatar identity evidence
206206
- model-call wait originally used recent-array length, which is not durable because the debug list is a sliding window; stable `modelCall.id` is the correct anchor
@@ -212,7 +212,7 @@
212212

213213
- Closure evidence on the current suite revision:
214214
- `bunx tsc --noEmit -p packages/cli-shell/tsconfig.json`
215-
- `openspec validate add-cli-shell-product --strict`
215+
- `openspec validate add-cli-shell-app --strict`
216216
- `bun test packages/cli-shell/test/real-cli-shell-semantic.integration.test.ts --test-name-pattern "senior-led"`
217217
- pass in ~75s
218218
- `bun test packages/cli-shell/test/real-cli-shell-semantic.integration.test.ts --test-name-pattern "requirement-led"`
@@ -223,7 +223,7 @@
223223
- These three passing real-AI traces now support `5.9`:
224224
- `senior-led`: result-first / terse preference learned from correction and reused after compact+reconnect
225225
- `requirement-led`: strict `result:` / `next:` format learned from evidence instead of role archetype
226-
- `playful`: relaxed companion-like tone learned without turning playfulness into a product mode or breaking engineering boundaries
226+
- `playful`: relaxed companion-like tone learned without turning playfulness into a app mode or breaking engineering boundaries
227227

228228
- The same suite now supports `5.11` because each passing scenario includes the required long-script behaviors:
229229
- many-turn terminal-adjacent exchange
@@ -240,12 +240,12 @@
240240

241241
## 2026-05-08 publish-surface closure facts
242242

243-
- The product implementation had already closed functionally; the remaining work was npm publish-surface hardening for `agenter` and `@agenter/cli-shell`.
243+
- The app implementation had already closed functionally; the remaining work was npm publish-surface hardening for `agenter` and `@agenter/cli-shell`.
244244

245245
- The `agenter` public wrapper now avoids loading daemon/runtime chunks for pure metadata flows:
246246
- `packages/cli/src/run-cli.ts` moved daemon/auth-service startup imports behind dynamic boundaries
247-
- descriptor-launched product metadata argv (`--help`, `--version`, `help`, `version`) now skip daemon bootstrap
248-
- objective effect: `agenter shell --help` no longer triggers daemon/runtime side effects just to print product help
247+
- descriptor-launched app metadata argv (`--help`, `--version`, `help`, `version`) now skip daemon bootstrap
248+
- objective effect: `agenter shell --help` no longer triggers daemon/runtime side effects just to print app help
249249

250250
- The bundled prompt/i18n asset blocker was closed without adding ad-hoc package-root file copying:
251251
- `packages/i18n-en/src/index.ts` and `packages/i18n-zh-Hans/src/index.ts` now use bundled JSON payloads as the non-workspace fallback while preserving live `prompts/` dir loading in the workspace
@@ -256,7 +256,7 @@
256256
- `packages/terminal-system/src/xterm-bridge.ts` now uses that static module boundary instead of `createRequire("@xterm/headless")`
257257
- objective effect: `agenter` dist now carries the already-validated headless terminal implementation inside the bundle, so installed tarballs can start the daemon without missing-module failure
258258

259-
- The `@agenter/cli-shell` help/runtime blocker was closed in product code:
259+
- The `@agenter/cli-shell` help/runtime blocker was closed in app code:
260260
- `packages/cli-shell/src/run-cli-shell.ts` now short-circuits metadata-only argv and lazy-loads the TUI runner only for real TTY attach flows
261261
- `packages/cli-shell/scripts/build.ts` now enables chunk splitting so the OpenTUI platform code stays out of help/non-TTY startup
262262
- objective effect: `agenter-cli-shell --help` and `agenter shell --help` both exit cleanly without resolving OpenTUI platform modules early

.chat/cli-shell/2026-05-16-cli-shell-terminal-interaction-closure.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@
4444
本轮同步到长期 spec:
4545

4646
- `openspec/specs/terminal-screen-projection-law/spec.md`
47-
- `openspec/specs/cli-shell-product/spec.md`
47+
- `openspec/specs/cli-shell-app/spec.md`
4848

4949
当前 `openspec list --json` 剩余状态:
5050

51-
- `separate-cli-shell-product-from-terminal-view-components`:82/86,in-progress
51+
- `separate-cli-shell-app-from-terminal-view-components`:82/86,in-progress
5252
- `add-cli-shell-web-host`:26/26,complete
5353
- `promote-ghostty-native-terminal-backend`:8/8,complete
5454
- `promote-ghostty-native-cli-shell`:14/14,complete

.chat/dev-log-04-22/09-openspec-archive.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ finish the OpenSpec lifecycle for the workspace-first runtime tool surface after
1616
- all checklist items are marked `- [x]`
1717
- delta spec assessment
1818
- corresponding main specs already contain the workspace-first law in their durable expanded form
19-
- no additional product-code changes were needed before archive
19+
- no additional app-code changes were needed before archive
2020

2121
## Archive Target
2222

.chat/fullstack-review-and-plan-04-12.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ Workspaces 现在不再只是一个目录下拉,而是明确的 global workben
303303
- `packages/app-server/src/session-notifications.ts` 当前 `SessionNotificationItem` 结构里还没有 quick-action metadata
304304
- `packages/webui/src/lib/features/runtime/runtime-stage-attention.svelte` 当前动作是通用按钮集
305305

306-
所以这里属于“架构方向已定,但 product payload 还没补完”。
306+
所以这里属于“架构方向已定,但 app payload 还没补完”。
307307

308308
### 5.3 Workspace 前端还偏 root-centric,不是完整 mount/detach control plane
309309

@@ -326,7 +326,7 @@ Workspaces 现在不再只是一个目录下拉,而是明确的 global workben
326326
- 搜索结果里没有对应的 workspace detach/unmount UI surface
327327
- backend/kernel 已经有 mount/grant facts,但前端没有等价的 mount lifecycle 操作面
328328

329-
这部分是下一阶段最自然的 product 补完点。
329+
这部分是下一阶段最自然的 app 补完点。
330330

331331
### 5.4 内部仍残留一层旧式 `/workspace` 执行语义
332332

AGENTS.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
- 组件真实交互:走 Storybook DOM;
4141
- 跨页面/跨进程链路:走 Playwright E2E。
4242
- **实现方式**:优先在 story 的 `play` 中描述用户行为与断言,再在 `test/storybook/*` 中以 `Story.run()` 复用。
43-
- **回归入口**:Studio 至少维护 `bun run --filter 'agenter-ext-studio' test:dom` 作为高价值 DOM 回归入口。
43+
- **回归入口**:Studio 至少维护 `bun run --filter 'agenter-app-studio' test:dom` 作为高价值 DOM 回归入口。
4444
- **串行执行纪律**`Vitest browser``storybook dev``storybook:build` 不能并行运行;需要串行执行,避免浏览器会话与 Vite 端口资源冲突。
4545

4646
## 3.2) Storybook DOM 技能手册(上下文清空后直接照做)
@@ -53,22 +53,22 @@
5353

5454
### 3.2.2 当前仓库约定
5555

56-
- Storybook 配置目录:`extensions/studio/.storybook/`
57-
- Storybook 主配置:`extensions/studio/.storybook/main.ts`
58-
- Storybook 全局预览:`extensions/studio/.storybook/preview.tsx`
59-
- Storybook + Vitest 初始化:`extensions/studio/.storybook/vitest.setup.ts`
60-
- Vitest 配置:`extensions/studio/vitest.config.ts`
56+
- Storybook 配置目录:`apps/studio/.storybook/`
57+
- Storybook 主配置:`apps/studio/.storybook/main.ts`
58+
- Storybook 全局预览:`apps/studio/.storybook/preview.tsx`
59+
- Storybook + Vitest 初始化:`apps/studio/.storybook/vitest.setup.ts`
60+
- Vitest 配置:`apps/studio/vitest.config.ts`
6161
- stories 位置:优先与组件同目录,命名为 `*.stories.tsx`
62-
- Story 驱动的 DOM 测试位置:`extensions/studio/test/storybook/*.test.tsx`
62+
- Story 驱动的 DOM 测试位置:`apps/studio/test/storybook/*.test.tsx`
6363

6464
### 3.2.3 命令
6565

6666
```bash
67-
bun run --filter 'agenter-ext-studio' storybook
68-
bun run --filter 'agenter-ext-studio' storybook:build
69-
bun run --filter 'agenter-ext-studio' test:unit
70-
bun run --filter 'agenter-ext-studio' test:dom
71-
bun run --filter 'agenter-ext-studio' test
67+
bun run --filter 'agenter-app-studio' storybook
68+
bun run --filter 'agenter-app-studio' storybook:build
69+
bun run --filter 'agenter-app-studio' test:unit
70+
bun run --filter 'agenter-app-studio' test:dom
71+
bun run --filter 'agenter-app-studio' test
7272
```
7373

7474
- `test:unit`:保留 jsdom/unit 层,适合纯逻辑与轻交互。
@@ -143,7 +143,7 @@ describe("Feature: Storybook DOM contract for AI input", () => {
143143

144144
- **桌面端 + 移动端都是强制验收项**:Studio 走查、Playwright E2E、关键 shell/layout 回归,默认都必须同时覆盖 desktop 和 mobile,不能只看桌面端。
145145
- **移动端默认基线**:统一使用 `iPhone 14` 作为默认移动端环境;本项目当前的强制移动 viewport 基线就是 `390px` 宽。
146-
- **Playwright 默认双 project**`extensions/studio` 的 E2E 默认必须跑 `desktop-chromium` + `mobile-iphone14`;单 project 只允许本地调试,不算最终验收。
146+
- **Playwright 默认双 project**`apps/studio` 的 E2E 默认必须跑 `desktop-chromium` + `mobile-iphone14`;单 project 只允许本地调试,不算最终验收。
147147
- **验收按能力,不按 DOM 同构**:桌面与移动可以有不同导航结构(如 sidebar vs sheet / tabs vs bottom nav),但关键能力与主路径必须双端都可达、可操作、可观察。
148148
- **高风险面板补 compact stories**:Quick Start、Workspace shell、Chat、Devtools、Settings 这类在移动端会折叠、重排或切换导航方式的界面,默认需要至少一个 compact Storybook DOM contract。
149149

TESTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
- `@agenter/tui`
2020
- unit/integration:ws 消息解析契约(snapshot/updated/deleted/chat)。
2121
- 不做脆弱的渲染细节断言。
22-
- `agenter-ext-studio`
22+
- `agenter-app-studio`
2323
- DOM contract:Storybook v10 + Vitest 真实组件交互(输入、弹层、列表、消息渲染)。
2424
- contract:html shell 包含 viewport/ws/bootstrap 关键标记。
2525
- `@agenter/terminal-system`
@@ -47,8 +47,8 @@ bun run test
4747
## Storybook DOM Baseline
4848

4949
```bash
50-
bun run --filter "agenter-ext-studio" storybook
51-
bun run --filter "agenter-ext-studio" test:dom
50+
bun run --filter "agenter-app-studio" storybook
51+
bun run --filter "agenter-app-studio" test:dom
5252
```
5353

5454
- Storybook stories 是 Studio 组件状态与交互夹具的单一真源。
@@ -58,7 +58,7 @@ bun run --filter "agenter-ext-studio" test:dom
5858
## Browser Performance Evidence
5959

6060
```bash
61-
pnpm --filter "agenter-ext-studio" perf:reverse-flow-conversation
61+
pnpm --filter "agenter-app-studio" perf:reverse-flow-conversation
6262
```
6363

6464
- 该工作流对 `Heartbeat` 与 shared room chat 采集同一组 desktop + iPhone 14 Chromium traces。

0 commit comments

Comments
 (0)