From f201124f2b835b8db293bcfb37dba10f65730312 Mon Sep 17 00:00:00 2001 From: LegGasai Date: Wed, 11 Nov 2026 17:11:38 +0800 Subject: [PATCH] docs(upgrade-guide): move the Session panel entries guide to v0.2.2-rc.2 The root version is now 0.2.2-rc.2, so the guide moves to that version's directory; it also records that ctx.forgeChanges.kinds drops panel and that forge.change-request.card.actions renders on the Session panel's cards. --- .../session-panel-entries/guide.i18n.yaml | 14 +++++++------- .../session-panel-entries/guide.md | 5 +++-- .../session-panel-entries/guide.zh.md | 5 +++-- 3 files changed, 13 insertions(+), 11 deletions(-) rename docs/upgrade-guide/{v0.2.2-rc.1 => v0.2.2-rc.2}/session-panel-entries/guide.i18n.yaml (74%) rename docs/upgrade-guide/{v0.2.2-rc.1 => v0.2.2-rc.2}/session-panel-entries/guide.md (75%) rename docs/upgrade-guide/{v0.2.2-rc.1 => v0.2.2-rc.2}/session-panel-entries/guide.zh.md (73%) diff --git a/docs/upgrade-guide/v0.2.2-rc.1/session-panel-entries/guide.i18n.yaml b/docs/upgrade-guide/v0.2.2-rc.2/session-panel-entries/guide.i18n.yaml similarity index 74% rename from docs/upgrade-guide/v0.2.2-rc.1/session-panel-entries/guide.i18n.yaml rename to docs/upgrade-guide/v0.2.2-rc.2/session-panel-entries/guide.i18n.yaml index 61fa93f12f..2af69869bd 100644 --- a/docs/upgrade-guide/v0.2.2-rc.1/session-panel-entries/guide.i18n.yaml +++ b/docs/upgrade-guide/v0.2.2-rc.2/session-panel-entries/guide.i18n.yaml @@ -1,16 +1,16 @@ # Bilingual-pair consistency record for guide.md (docs/i18n/README.md): per heading # section, a hash of its English and Chinese blocks outside code blocks and generated regions. # After editing either side, bring the other along and re-record with: -# pnpm run verify-translation-pairing --write docs/upgrade-guide/v0.2.2-rc.1/session-panel-entries/guide.md +# pnpm run verify-translation-pairing --write docs/upgrade-guide/v0.2.2-rc.2/session-panel-entries/guide.md /: en: 9036df7633bfa9a8 zh: 6509cb0a0a1d1d01 /session-header-entries-move-into-the-session-panel: - en: 734e00590192932a - zh: 09ac76ce818f1436 + en: 473b91d053f8e816 + zh: 9ce182beba99481a /session-header-entries-move-into-the-session-panel/change: - en: 90f16e14597e9a71 - zh: e81e9ad526238465 + en: b967d3f7d4292d8a + zh: 46371550a5458694 /session-header-entries-move-into-the-session-panel/migration: - en: e1d76738e07b2b28 - zh: 700f2931859ec17c + en: e87313ba54c260b4 + zh: 3147a7648d44dad2 diff --git a/docs/upgrade-guide/v0.2.2-rc.1/session-panel-entries/guide.md b/docs/upgrade-guide/v0.2.2-rc.2/session-panel-entries/guide.md similarity index 75% rename from docs/upgrade-guide/v0.2.2-rc.1/session-panel-entries/guide.md rename to docs/upgrade-guide/v0.2.2-rc.2/session-panel-entries/guide.md index 6d01913666..bf237de28c 100644 --- a/docs/upgrade-guide/v0.2.2-rc.1/session-panel-entries/guide.md +++ b/docs/upgrade-guide/v0.2.2-rc.2/session-panel-entries/guide.md @@ -13,13 +13,14 @@ The Web and Desktop Session header used to show a background-jobs button, a suba - [`dsh-client-ui-jobs`](../../../../packages/client/ui-jobs/README.md) and [`dsh-client-ui-subagent`](../../../../packages/client/ui-subagent/README.md) register Background jobs and Subagents sections; the subagent footer slot is removed, and the shared task board that filled it is now its own Shared tasks section. - [`dsh-experimental-client-ui-forge`](../../../../packages/experimental/client-ui-forge/README.md) registers a Change requests section, checkout and local changes rows in the Environment section, and an attention mark on the toggle. It no longer registers the `forge-panel` tab type, its tab title, or a `conversation.session.header.utilities` entry; the changes view keeps its `forge-changes` tab type. +- In the forge changes extension API, `ctx.forgeChanges.kinds` keeps only `changes`, because `panel` named the retired tab type; the `forge.change-request.card.actions` slot keeps its owner props and renders on each card of the Change requests section, before the card's actions menu. - Type exports follow the components: `JobsSection*` replaces `JobListAction*`/`JobListInjected`, `SubagentsSection*` replaces `SubagentCatalogAction*`, and the forge `ChangeRequestsSection*`, `ChangeRequestsActions*`, `CheckoutRow*`, `LocalChangesRow*`, and `AttentionIndicator*` types replace `ForgeTab*`, `HeaderButton*`, and `LocalChangesCardProps`. -Client plugins and runtime extensions that register into the old footer slot, open the `forge-panel` tab type, or import the removed types are affected. A right sidebar restored with a `forge-panel` tab no longer shows that tab. Session data and configuration keys are unchanged. +Client plugins and runtime extensions that register into the old footer slot, open the `forge-panel` tab type, read `ctx.forgeChanges.kinds.panel`, or import the removed types are affected. A right sidebar restored with a `forge-panel` tab no longer shows that tab. Session data and configuration keys are unchanged. ## Migration 1. In Client plugins and runtime extensions, replace every `conversation.session.header.actions.subagent.footer` registration with a `conversation.session.panel.section` registration that has its own `id`, `order`, and `label`, and remove child declarations of the old slot. -2. Replace calls such as `ctx.sidebarRight.openTab('forge-panel')` by asking the user to open the Session panel; to place content beside the change requests, register a `conversation.session.panel.section` entry, as the [Session panel README](../../../../packages/client/ui-session-panel/README.md) describes. +2. Replace calls such as `ctx.sidebarRight.openTab('forge-panel')` and reads of `ctx.forgeChanges.kinds.panel` by asking the user to open the Session panel; to place content beside the change requests, register a `conversation.session.panel.section` entry, as the [Session panel README](../../../../packages/client/ui-session-panel/README.md) describes. 3. Update type imports to the names listed under Change. 4. Confirm the migration by running `pnpm run typecheck`, then opening a Session in Web, clicking the Session panel toggle in the header, and finding the content in its own section. diff --git a/docs/upgrade-guide/v0.2.2-rc.1/session-panel-entries/guide.zh.md b/docs/upgrade-guide/v0.2.2-rc.2/session-panel-entries/guide.zh.md similarity index 73% rename from docs/upgrade-guide/v0.2.2-rc.1/session-panel-entries/guide.zh.md rename to docs/upgrade-guide/v0.2.2-rc.2/session-panel-entries/guide.zh.md index ad2f6963eb..5b60c6e8b1 100644 --- a/docs/upgrade-guide/v0.2.2-rc.1/session-panel-entries/guide.zh.md +++ b/docs/upgrade-guide/v0.2.2-rc.2/session-panel-entries/guide.zh.md @@ -13,13 +13,14 @@ Web 与 Desktop 的会话标题栏此前显示后台任务按钮、子智能体 - [`dsh-client-ui-jobs`](../../../../packages/client/ui-jobs/README.zh.md) 与 [`dsh-client-ui-subagent`](../../../../packages/client/ui-subagent/README.zh.md) 注册“后台任务”与“子智能体”分栏;子智能体页脚 slot 已移除,原来填充它的共享任务板现在是独立的“共享任务”分栏。 - [`dsh-experimental-client-ui-forge`](../../../../packages/experimental/client-ui-forge/README.zh.md) 注册“变更请求”分栏、“环境”分栏中的检出行与本地变更行,以及开关上的提醒标记。它不再注册 `forge-panel` 标签页类型及其标题,也不再注册 `conversation.session.header.utilities` 条目;变更视图仍使用 `forge-changes` 标签页类型。 +- forge 变更视图扩展 API 中,`ctx.forgeChanges.kinds` 只保留 `changes`,因为 `panel` 指的是已退役的标签页类型;`forge.change-request.card.actions` slot 的 owner props 不变,改为渲染在“变更请求”分栏每张卡片的操作菜单之前。 - 类型导出随组件改名:`JobsSection*` 取代 `JobListAction*`/`JobListInjected`,`SubagentsSection*` 取代 `SubagentCatalogAction*`,forge 的 `ChangeRequestsSection*`、`ChangeRequestsActions*`、`CheckoutRow*`、`LocalChangesRow*` 与 `AttentionIndicator*` 类型取代 `ForgeTab*`、`HeaderButton*` 与 `LocalChangesCardProps`。 -注册到旧页脚 slot、打开 `forge-panel` 标签页类型或导入已移除类型的 Client 插件与运行时扩展会受影响。恢复右侧边栏时,`forge-panel` 标签页不再显示。Session 数据与配置键不变。 +注册到旧页脚 slot、打开 `forge-panel` 标签页类型、读取 `ctx.forgeChanges.kinds.panel` 或导入已移除类型的 Client 插件与运行时扩展会受影响。恢复右侧边栏时,`forge-panel` 标签页不再显示。Session 数据与配置键不变。 ## 迁移 1. 在 Client 插件与运行时扩展中,把对 `conversation.session.header.actions.subagent.footer` 的注册改为带自己的 `id`、`order` 和 `label` 的 `conversation.session.panel.section` 注册,并移除旧 slot 的子 slot 声明。 -2. 把 `ctx.sidebarRight.openTab('forge-panel')` 之类的调用改为提示用户打开会话面板;如需在变更请求旁放置内容,按[会话面板 README](../../../../packages/client/ui-session-panel/README.zh.md) 的说明注册 `conversation.session.panel.section` 条目。 +2. 把 `ctx.sidebarRight.openTab('forge-panel')` 之类的调用与对 `ctx.forgeChanges.kinds.panel` 的读取改为提示用户打开会话面板;如需在变更请求旁放置内容,按[会话面板 README](../../../../packages/client/ui-session-panel/README.zh.md) 的说明注册 `conversation.session.panel.section` 条目。 3. 按“变更”中列出的名称更新类型导入。 4. 运行 `pnpm run typecheck`,然后在 Web 中打开一个 Session,点击标题栏中的会话面板开关,在其独立分栏中找到这些内容,即确认迁移完成。