Merge remote-tracking branch 'origin/master' into refactor/llm-route-credential
This commit is contained in:
commit
a1c0299977
256 files changed
+10159
-8527
No files matched your search
@@ -1206,7 +1206,7 @@ export interface Config {
|
||||
worktreePrefix?: string
|
||||
/** Largest diff, file read to show unchanged lines, or list of base branch refs, in bytes. */
|
||||
maxDiffBytes?: number
|
||||
/** Most untracked files a local diff or the local changes card includes. */
|
||||
/** Most untracked files a local diff or the local changes row includes. */
|
||||
maxUntrackedFiles?: number
|
||||
/** Most UTF-8 bytes of change request diffs kept in memory for later reads at the same head commit and base branch. */
|
||||
maxCachedDiffBytes?: number
|
||||
@@ -4717,7 +4717,7 @@ export interface Config {
|
||||
|
||||
- `inject`: `tools` · `subagents` · `systemPrompt` · `sessionProjections`
|
||||
- `refs`: [`AgentOptions`](subsystems/core.md)
|
||||
- `source`: [`packages/subagent/tool-subagent/src/index.ts:46`](../packages/subagent/tool-subagent/src/index.ts)
|
||||
- `source`: [`packages/subagent/tool-subagent/src/index.ts:47`](../packages/subagent/tool-subagent/src/index.ts)
|
||||
|
||||
```ts config-catalog
|
||||
/** Config: which registered provider this tool delegates to, plus child defaults. */
|
||||
|
||||
@@ -1208,7 +1208,7 @@ export interface Config {
|
||||
worktreePrefix?: string
|
||||
/** Largest diff, file read to show unchanged lines, or list of base branch refs, in bytes. */
|
||||
maxDiffBytes?: number
|
||||
/** Most untracked files a local diff or the local changes card includes. */
|
||||
/** Most untracked files a local diff or the local changes row includes. */
|
||||
maxUntrackedFiles?: number
|
||||
/** Most UTF-8 bytes of change request diffs kept in memory for later reads at the same head commit and base branch. */
|
||||
maxCachedDiffBytes?: number
|
||||
@@ -4719,7 +4719,7 @@ export interface Config {
|
||||
|
||||
- `inject`: `tools` · `subagents` · `systemPrompt` · `sessionProjections`
|
||||
- `refs`: [`AgentOptions`](subsystems/core.zh.md)
|
||||
- `source`: [`packages/subagent/tool-subagent/src/index.ts:46`](../packages/subagent/tool-subagent/src/index.ts)
|
||||
- `source`: [`packages/subagent/tool-subagent/src/index.ts:47`](../packages/subagent/tool-subagent/src/index.ts)
|
||||
|
||||
```ts config-catalog
|
||||
/** Config: which registered provider this tool delegates to, plus child defaults. */
|
||||
|
||||
@@ -1104,8 +1104,8 @@
|
||||
en: f604eebb973fe2cf
|
||||
zh: 0c0aba1e17ecf66e
|
||||
/session-persistence-event-catalog/resolved-persistence-types/jobsettlecause:
|
||||
en: 748a4269d86e007a
|
||||
zh: 4ce04c4451bdcfe8
|
||||
en: 3f193f1c8bbae065
|
||||
zh: b8c828959d28480d
|
||||
/session-persistence-event-catalog/resolved-persistence-types/jobsettleddata:
|
||||
en: fc8caf270a7581f7
|
||||
zh: b467e1d4191106eb
|
||||
|
||||
@@ -3895,7 +3895,7 @@ Sources: [`packages/jobs/jobs/src/types.ts:24`](../packages/jobs/jobs/src/types.
|
||||
|
||||
SHA-256: `750a2b129d67704df675c06823c20c80b65cbae89d5aaa914fd5a72e3df395b5`
|
||||
|
||||
Sources: [`packages/jobs/jobs/src/types.ts:247`](../packages/jobs/jobs/src/types.ts)
|
||||
Sources: [`packages/jobs/jobs/src/types.ts:253`](../packages/jobs/jobs/src/types.ts)
|
||||
|
||||
One of:
|
||||
|
||||
|
||||
@@ -3897,7 +3897,7 @@ SHA-256: `e3056e0dda3a379e895386e368c3ce42131460ea65e410e1d091cca98a347305`
|
||||
|
||||
SHA-256: `750a2b129d67704df675c06823c20c80b65cbae89d5aaa914fd5a72e3df395b5`
|
||||
|
||||
来源:[`packages/jobs/jobs/src/types.ts:247`](../packages/jobs/jobs/src/types.ts)
|
||||
来源:[`packages/jobs/jobs/src/types.ts:253`](../packages/jobs/jobs/src/types.ts)
|
||||
|
||||
以下类型之一:
|
||||
|
||||
|
||||
Generated
+1
-1
@@ -361,7 +361,7 @@
|
||||
{"digest":"71bb3254ec8f1e491ce63b762a7b5f18709de23aa4e8abcc8b886f4b6ce051dd","names":[],"sources":["packages/llm/llm/src/assistant-stream.ts:27"]},
|
||||
{"digest":"72ec79127a9c0d0241b1106a74cc2b24c81ce467170f1c3c93f7b71a9496d227","names":[],"sources":[]},
|
||||
{"digest":"7382c4fc95fe8c5db65ca4d9da572b115d0dbb818b7f32c22ab040318ffbb4bc","names":[],"sources":[]},
|
||||
{"digest":"750a2b129d67704df675c06823c20c80b65cbae89d5aaa914fd5a72e3df395b5","names":["packages/jobs/jobs/src/types.ts#JobSettleCause"],"sources":["packages/jobs/jobs/src/types.ts:247"]},
|
||||
{"digest":"750a2b129d67704df675c06823c20c80b65cbae89d5aaa914fd5a72e3df395b5","names":["packages/jobs/jobs/src/types.ts#JobSettleCause"],"sources":["packages/jobs/jobs/src/types.ts:253"]},
|
||||
{"digest":"7554565be416b0342053ee6a46256c9dab07c487349b4a5f10bab1edc151c619","names":[],"sources":[]},
|
||||
{"digest":"756b5e23a5cb2c7f486f366a828f7461c88902af21125bd6810881f4ccbff6cc","names":[],"sources":[]},
|
||||
{"digest":"7624ca28c61ca0eaa4f015140f3cea6e0c16cce2f2960fab5f531203d253903e","names":[],"sources":[]},
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
en: 74255d6005e1c9e8
|
||||
zh: 252d0d552f1e26a1
|
||||
/forges/panel:
|
||||
en: 7dcefe2825490257
|
||||
zh: 38cec4d1ae3b0d6e
|
||||
en: 0fc2e5a367d0a3ad
|
||||
zh: a1028e4ecf61b70c
|
||||
/forges/extension-api:
|
||||
en: f35345e482e84f4f
|
||||
zh: 2ecb7d9498decb31
|
||||
@@ -1121,7 +1121,7 @@ type ForgeChangeRequestStatesFrame =
|
||||
| { readonly type: 'changed'; readonly states: readonly ForgeChangeRequestListState[] }
|
||||
```
|
||||
|
||||
The changes view reads through the same Remote. `localDiff` reads one `ForgeLocalScope` of the Session's checkout, and `changeRequestDiff` reads a bound change request at the head of its latest status through the provider's `diff`, which returns a patch only for that head commit, or the `ForgeCommitRange` it names through the provider's `compare`; both return files that the Host parsed into `ForgeDiffFile` hunks, each with its review layer and change digest. `localCommits` and `changeRequestCommits` list the commits a range can name, the latter as null when the provider does not read commits. `localText` and `changeRequestText` read the new side of one file, which supplies the unchanged lines between hunks. Each inspection also sizes the `branch` scope as `ForgePanelState.local` for the panel's local changes card, always against the automatic fork point. A `branch` scope whose `base` names a ref compares with the merge base of HEAD and that branch instead; `diffBases` lists the branches the view offers, with the automatic fork point. When the head moved past the latest status, the provider returns `stale` and `ctx.forge.diff` polls the change request at once, once per head commit; `changeRequestDiff` rejects with `forgePanel/stale-head` and caches nothing, and the changes view keeps loading until a later status arrives, then reads again at that status's head. Review comments therefore always address the commit whose lines the view shows.
|
||||
The changes view reads through the same Remote. `localDiff` reads one `ForgeLocalScope` of the Session's checkout, and `changeRequestDiff` reads a bound change request at the head of its latest status through the provider's `diff`, which returns a patch only for that head commit, or the `ForgeCommitRange` it names through the provider's `compare`; both return files that the Host parsed into `ForgeDiffFile` hunks, each with its review layer and change digest. `localCommits` and `changeRequestCommits` list the commits a range can name, the latter as null when the provider does not read commits. `localText` and `changeRequestText` read the new side of one file, which supplies the unchanged lines between hunks. Each inspection also sizes the `branch` scope as `ForgePanelState.local` for the Session panel's local changes row, always against the automatic fork point. A `branch` scope whose `base` names a ref compares with the merge base of HEAD and that branch instead; `diffBases` lists the branches the view offers, with the automatic fork point. When the head moved past the latest status, the provider returns `stale` and `ctx.forge.diff` polls the change request at once, once per head commit; `changeRequestDiff` rejects with `forgePanel/stale-head` and caches nothing, and the changes view keeps loading until a later status arrives, then reads again at that status's head. Review comments therefore always address the commit whose lines the view shows.
|
||||
|
||||
`changeRequestReview(session, url, headSha, fresh)` reads the threads of a bound change request at the head of the diff the view shows and refuses another head with `forgePanel/stale-head`, `forgePanel/review-unsupported` for a provider without review reads, and `forgePanel/review-failed` otherwise. It keeps one read per change request in memory, keyed by head commit and the status's update time and bounded by `maxCachedReviewBytes`, and reads again once the kept read is `reviewRefreshMs` old or when `fresh` asks for it, as the first read after the reader refreshes the view does: on GitHub a new comment or reply changes a pull request's update time, but resolving a thread does not. The changes view asks again at every status it receives while visible, and overlays the threads on the files the [panel README](../../packages/experimental/client-ui-forge/README.md#use-this-package) describes.
|
||||
|
||||
@@ -1309,7 +1309,7 @@ interface ForgeChangedFile {
|
||||
```
|
||||
|
||||
```ts type-equiv
|
||||
/** Size of the `branch` scope, which the panel's local changes card shows. */
|
||||
/** Size of the `branch` scope, which the Session panel's local changes row shows. */
|
||||
interface ForgeLocalChanges {
|
||||
/** Ref or abbreviated commit the scope compares with. */
|
||||
readonly base: string
|
||||
|
||||
@@ -1123,7 +1123,7 @@ type ForgeChangeRequestStatesFrame =
|
||||
| { readonly type: 'changed'; readonly states: readonly ForgeChangeRequestListState[] }
|
||||
```
|
||||
|
||||
变更视图经同一个 Remote 读取。`localDiff` 读取 Session 检出的某个 `ForgeLocalScope`;`changeRequestDiff` 经提供方的 `diff` 读取已绑定变更请求在其最新状态 head 处的变更(提供方只返回描述该 head 提交的补丁),或经提供方的 `compare` 读取它指定的 `ForgeCommitRange`;两者返回的文件都已在宿主上解析为 `ForgeDiffFile` 的 hunk,并带有分层与改动摘要。`localCommits` 与 `changeRequestCommits` 列出范围可以指定的提交,提供方不读取提交时后者返回 null。`localText` 与 `changeRequestText` 读取一个文件的新版本,用来补出 hunk 之间未变更的行。每次检查还会把 `branch` 范围的规模统计为 `ForgePanelState.local`,供面板的变更卡片使用,始终以自动分叉点为准。`base` 指定了引用的 `branch` 范围改为与 HEAD 和该分支的合并基准比较;`diffBases` 列出视图可选的分支以及自动分叉点。head 已越过最新状态时,提供方返回 `stale`,`ctx.forge.diff` 立即重新轮询该变更请求(每个 head 提交一次);`changeRequestDiff` 以 `forgePanel/stale-head` 拒绝且不缓存任何内容,变更视图保持加载,直到更新的状态到达后按该状态的 head 重新读取。因此评审评论始终指向视图所显示行的那个提交。
|
||||
变更视图经同一个 Remote 读取。`localDiff` 读取 Session 检出的某个 `ForgeLocalScope`;`changeRequestDiff` 经提供方的 `diff` 读取已绑定变更请求在其最新状态 head 处的变更(提供方只返回描述该 head 提交的补丁),或经提供方的 `compare` 读取它指定的 `ForgeCommitRange`;两者返回的文件都已在宿主上解析为 `ForgeDiffFile` 的 hunk,并带有分层与改动摘要。`localCommits` 与 `changeRequestCommits` 列出范围可以指定的提交,提供方不读取提交时后者返回 null。`localText` 与 `changeRequestText` 读取一个文件的新版本,用来补出 hunk 之间未变更的行。每次检查还会把 `branch` 范围的规模统计为 `ForgePanelState.local`,供会话面板的本地变更行使用,始终以自动分叉点为准。`base` 指定了引用的 `branch` 范围改为与 HEAD 和该分支的合并基准比较;`diffBases` 列出视图可选的分支以及自动分叉点。head 已越过最新状态时,提供方返回 `stale`,`ctx.forge.diff` 立即重新轮询该变更请求(每个 head 提交一次);`changeRequestDiff` 以 `forgePanel/stale-head` 拒绝且不缓存任何内容,变更视图保持加载,直到更新的状态到达后按该状态的 head 重新读取。因此评审评论始终指向视图所显示行的那个提交。
|
||||
|
||||
`changeRequestReview(session, url, headSha, fresh)` 在视图所显示 diff 的 head 处读取已绑定变更请求的讨论;head 不同时以 `forgePanel/stale-head` 拒绝,提供方不支持读取讨论时返回 `forgePanel/review-unsupported`,其他失败返回 `forgePanel/review-failed`。每个变更请求在内存里保留一次读取结果,以 head 提交和状态的更新时间为键、受 `maxCachedReviewBytes` 约束,保留时间达到 `reviewRefreshMs` 后,或 `fresh` 要求时(读者刷新视图后的第一次读取就是这样)重新读取:在 GitHub 上,新评论和回复会改变 PR 的更新时间,解决讨论则不会。变更视图可见时,每收到一次状态就重新请求一次,并按[面板 README](../../packages/experimental/client-ui-forge/README.zh.md#use-this-package) 所述把讨论叠加到文件上。
|
||||
|
||||
@@ -1311,7 +1311,7 @@ interface ForgeChangedFile {
|
||||
```
|
||||
|
||||
```ts type-equiv
|
||||
/** Size of the `branch` scope, which the panel's local changes card shows. */
|
||||
/** Size of the `branch` scope, which the Session panel's local changes row shows. */
|
||||
interface ForgeLocalChanges {
|
||||
/** Ref or abbreviated commit the scope compares with. */
|
||||
readonly base: string
|
||||
|
||||
@@ -181,6 +181,12 @@ interface JobOutcome {
|
||||
* reason, the registry appends that reason.
|
||||
*/
|
||||
detail?: string
|
||||
/**
|
||||
* Exit code of the process the job ran, for a producer that runs one. A
|
||||
* nonzero code on a `completed` job means the command reported failure while
|
||||
* the job itself finished.
|
||||
*/
|
||||
exitCode?: number
|
||||
/**
|
||||
* Return value for jobs whose result is a value rather than a stream (a
|
||||
* workflow's rendered result, a subagent's report). The output ring carries
|
||||
@@ -295,6 +301,8 @@ interface JobView {
|
||||
readonly progress?: string
|
||||
/** Terminal reason (`exit code: 3`); a recorded kill reason is merged in. */
|
||||
readonly detail?: string
|
||||
/** Exit code of the process the job ran, once settled, for a producer that reports one. */
|
||||
readonly exitCode?: number
|
||||
/** Epoch ms when the job was registered. */
|
||||
readonly startedAt: number
|
||||
/** Epoch ms when the job settled; absent while live. */
|
||||
|
||||
@@ -181,6 +181,12 @@ interface JobOutcome {
|
||||
* reason, the registry appends that reason.
|
||||
*/
|
||||
detail?: string
|
||||
/**
|
||||
* Exit code of the process the job ran, for a producer that runs one. A
|
||||
* nonzero code on a `completed` job means the command reported failure while
|
||||
* the job itself finished.
|
||||
*/
|
||||
exitCode?: number
|
||||
/**
|
||||
* Return value for jobs whose result is a value rather than a stream (a
|
||||
* workflow's rendered result, a subagent's report). The output ring carries
|
||||
@@ -295,6 +301,8 @@ interface JobView {
|
||||
readonly progress?: string
|
||||
/** Terminal reason (`exit code: 3`); a recorded kill reason is merged in. */
|
||||
readonly detail?: string
|
||||
/** Exit code of the process the job ran, once settled, for a producer that reports one. */
|
||||
readonly exitCode?: number
|
||||
/** Epoch ms when the job was registered. */
|
||||
readonly startedAt: number
|
||||
/** Epoch ms when the job settled; absent while live. */
|
||||
|
||||
@@ -264,8 +264,8 @@
|
||||
en: 841abe0dd5913ea7
|
||||
zh: 841abe0dd5913ea7
|
||||
/tool-schema-catalog/deepseek-ai-dsh-tool-subagent/list-subagent-models:
|
||||
en: 0e21650bbe8c71c7
|
||||
zh: fe4033efb38d51a3
|
||||
en: 1fa8a23ffccd029f
|
||||
zh: 5d1b9d618976d580
|
||||
/tool-schema-catalog/deepseek-ai-dsh-tool-subagent/subagent:
|
||||
en: 9912eeda5bc40b43
|
||||
zh: 0cb70f9a0d923bee
|
||||
|
||||
@@ -2199,7 +2199,7 @@ The subagent_oar tool selects among configured aliases for external providers. T
|
||||
|
||||
### `list_subagent_models`
|
||||
|
||||
Inspect the routes available for explicit subagent model selection. No arguments: authorized providers. `provider`: that provider's authorized models. `provider` + `model`: that model and its reasoning efforts. Query when choosing an explicit child route or reasoning effort. Omit optional fields rather than sending empty strings.
|
||||
Inspect the routes available for explicit subagent model selection. No arguments: authorized providers. `provider`: that provider's authorized models. `provider` + `model`: that model and its reasoning efforts.
|
||||
|
||||
```json
|
||||
{
|
||||
@@ -2207,7 +2207,7 @@ Inspect the routes available for explicit subagent model selection. No arguments
|
||||
"properties": {
|
||||
"provider": {
|
||||
"type": "string",
|
||||
"description": "Registered LLM provider id."
|
||||
"description": "Provider id from the no-argument listing."
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
|
||||
@@ -2205,7 +2205,7 @@ subagent_oar 工具在为外部提供方配置的别名之间选择。本目录
|
||||
|
||||
### `list_subagent_models`
|
||||
|
||||
查询允许为 subagent 显式选择的路由。无参数:提供方;`provider`:允许的模型;`provider` + `model`:该模型及其推理强度。选择子级提供方和模型前先在此查询选项,再将返回的 id 用于委派。
|
||||
查询允许为 subagent 显式选择的路由。无参数:提供方;`provider`:允许的模型;`provider` + `model`:该模型及其推理强度。
|
||||
|
||||
```json
|
||||
{
|
||||
@@ -2213,7 +2213,7 @@ subagent_oar 工具在为外部提供方配置的别名之间选择。本目录
|
||||
"properties": {
|
||||
"provider": {
|
||||
"type": "string",
|
||||
"description": "Registered LLM provider id."
|
||||
"description": "Provider id from the no-argument listing."
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
en: fb6d50f3139ad186
|
||||
zh: 668cb0c02bd22167
|
||||
/dsh-unified-corner-radius-standard/nested-geometry-and-hover:
|
||||
en: 7fe4eb7707e6a9f3
|
||||
zh: be7530a05c205e27
|
||||
en: 76037a56b0e1bf64
|
||||
zh: 890f512cc1db5263
|
||||
/dsh-unified-corner-radius-standard/settings-card-materials:
|
||||
en: 126066f9c638433c
|
||||
zh: a7416d255f838b92
|
||||
|
||||
+1
-1
@@ -68,7 +68,7 @@ Distinguish these three arrangements before changing a child radius:
|
||||
| Fill flush against an enclosing edge | The enclosure owns the visible corner; clip the fill or inherit the matching corner | A split-button card with two independent hover regions |
|
||||
| Separate card or form group inside another surface | Choose the child's semantic tier; do not subtract all parent padding mechanically | R16 editor within an R20 settings card |
|
||||
|
||||
Standard menus use outer R16, 4px padding, and R12 items, including command selection, task menus, and the exposed highlights in subagent and background-job menus. Tree disclosure gutters retain their indentation; controls inside a filled job row keep their own compact geometry. Compact menus use outer R12, 4px padding, and R8 items. Shared `SegmentedControl` uses outer R12, 4px inset, and R8 segments/indicator; `SegmentedTabs` uses outer R16, 4px inset, and R12 segments/indicator. Keep indicator offsets, width calculations, submenu alignment, and pointer bridges consistent when changing padding.
|
||||
Standard menus use outer R16, 4px padding, and R12 items, including command selection, task menus, and the exposed highlights in the subagent switcher menu. Tree disclosure gutters retain their indentation. Compact menus use outer R12, 4px padding, and R8 items. Shared `SegmentedControl` uses outer R12, 4px inset, and R8 segments/indicator; `SegmentedTabs` uses outer R16, 4px inset, and R12 segments/indicator. Keep indicator offsets, width calculations, submenu alignment, and pointer bridges consistent when changing padding.
|
||||
|
||||
The radius subtraction is also the nominal sizing rule for nested superellipses. Equal exponents do not make them exact offset curves, so their diagonal gap may differ from the side inset. Keep the shared superellipse menu and segmented-control treatments; use circular arcs when strict equal radial spacing is required.
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ H 表示以 CSS 像素计、包含边框的设计外部高度。R 表示浏览
|
||||
| 底色紧贴容器边缘 | 由外框决定可见圆角;裁切底色或继承相应圆角 | 两个独立 hover 区域组成的分体按钮卡片 |
|
||||
| 容器内独立的卡片或表单组 | 按子元素用途选择档位;不机械减去全部父级内边距 | R20 设置卡片内的 R16 编辑器 |
|
||||
|
||||
标准菜单使用外层 R16、4px 内边距、R12 菜单项,包含命令选择、任务菜单,以及子会话和后台任务菜单的外露高亮区域。树形展开操作保留缩进;带底色任务行内的控件保留各自的紧凑几何。紧凑菜单使用外层 R12、4px 内边距、R8 菜单项。公共 `SegmentedControl` 使用外层 R12、4px 内缩、R8 分段和指示器;`SegmentedTabs` 使用外层 R16、4px 内缩、R12 分段和指示器。修改内边距时,同步保持指示器偏移、宽度计算、子菜单对齐与指针桥接区域一致。
|
||||
标准菜单使用外层 R16、4px 内边距、R12 菜单项,包含命令选择、任务菜单,以及子会话切换菜单的外露高亮区域。树形展开操作保留缩进。紧凑菜单使用外层 R12、4px 内边距、R8 菜单项。公共 `SegmentedControl` 使用外层 R12、4px 内缩、R8 分段和指示器;`SegmentedTabs` 使用外层 R16、4px 内缩、R12 分段和指示器。修改内边距时,同步保持指示器偏移、宽度计算、子菜单对齐与指针桥接区域一致。
|
||||
|
||||
半径相减也用于嵌套超级椭圆的名义尺寸关系。相同指数不意味着两条曲线严格等距,因此对角线间隙可能不同于侧边内缩。菜单与分段控件保留公共的超级椭圆样式;要求径向严格等距时使用圆弧。
|
||||
|
||||
|
||||
@@ -0,0 +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.3/session-panel-entries/guide.md
|
||||
/:
|
||||
en: 9036df7633bfa9a8
|
||||
zh: 6509cb0a0a1d1d01
|
||||
/session-header-entries-move-into-the-session-panel:
|
||||
en: 8ac9f4ef04cd1f1b
|
||||
zh: 63cd71f51f8acd3e
|
||||
/session-header-entries-move-into-the-session-panel/change:
|
||||
en: b967d3f7d4292d8a
|
||||
zh: 46371550a5458694
|
||||
/session-header-entries-move-into-the-session-panel/migration:
|
||||
en: e87313ba54c260b4
|
||||
zh: 3147a7648d44dad2
|
||||
@@ -0,0 +1,26 @@
|
||||
---
|
||||
kind: upgrade-guide
|
||||
description: "Background jobs, subagents, and forge change requests move from the Session header and right sidebar into the Session panel, which removes the subagent footer slot and retires the forge tab type."
|
||||
---
|
||||
|
||||
# Session header entries move into the Session panel
|
||||
|
||||
English | [中文](guide.zh.md)
|
||||
|
||||
## Change
|
||||
|
||||
The Web and Desktop Session header used to show a background-jobs button, a subagents button whose menu ended with the `conversation.session.header.actions.subagent.footer` slot, and, with the forge bundle, a change requests button that opened the `forge-panel` right-sidebar tab. These entries now live in the [Session panel](../../../../packages/client/ui-session-panel/README.md) that the header toggle opens:
|
||||
|
||||
- [`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, 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')` 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.
|
||||
@@ -0,0 +1,26 @@
|
||||
---
|
||||
kind: upgrade-guide
|
||||
description: "后台任务、子智能体与 forge 变更请求从会话标题栏和右侧边栏移入会话面板,子智能体页脚 slot 随之移除,forge 标签页类型退役。"
|
||||
---
|
||||
|
||||
# 会话标题栏入口移入会话面板
|
||||
|
||||
[English](guide.md) | 中文
|
||||
|
||||
## 变更
|
||||
|
||||
Web 与 Desktop 的会话标题栏此前显示后台任务按钮、子智能体按钮(其菜单末尾是 `conversation.session.header.actions.subagent.footer` slot),以及启用 forge 套件时打开 `forge-panel` 右侧边栏标签页的变更请求按钮。这些入口现在位于由标题栏开关打开的[会话面板](../../../../packages/client/ui-session-panel/README.zh.md)中:
|
||||
|
||||
- [`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` 标签页类型、读取 `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')` 之类的调用与对 `ctx.forgeChanges.kinds.panel` 的读取改为提示用户打开会话面板;如需在变更请求旁放置内容,按[会话面板 README](../../../../packages/client/ui-session-panel/README.zh.md) 的说明注册 `conversation.session.panel.section` 条目。
|
||||
3. 按“变更”中列出的名称更新类型导入。
|
||||
4. 运行 `pnpm run typecheck`,然后在 Web 中打开一个 Session,点击标题栏中的会话面板开关,在其独立分栏中找到这些内容,即确认迁移完成。
|
||||
Reference in new issue
Block a user