Merge remote-tracking branch 'origin/master' into worktree/fix-multi-select-custom-answer

# Conflicts:
#	packages/host/apiproxy/README.i18n.yaml
#	packages/ui/tool-ask-user/README.i18n.yaml
#	packages/ui/tool-ask-user/README.zh.md
#	packages/ui/tui/README.i18n.yaml
#	packages/ui/user-interaction/README.i18n.yaml
#	packages/ui/user-interaction/README.zh.md
This commit is contained in:
Yichen Jiang
2026-07-30 00:24:24 +08:00
778 changed files with 24424 additions and 4438 deletions

View File

@@ -3,4 +3,4 @@
# after editing either side, bring the other along and re-record with:
# pnpm run verify-translation-pairing --write packages/ui/user-interaction/README.md
README.md: 2ff29f5fd6244ebcf7e29b86f5de1cde30944532
README.zh.md: 7d0d1b06db5be4353e42d1905c71d5dff963b97d
README.zh.md: c2e698b04872fd7be2fc3f9863ad72219bcb2dbc

View File

@@ -2,7 +2,7 @@
[English](README.md) | 中文
抽象用户交互 seam。它拥有 `ctx.userInteraction`:当面向模型的工具或权限插件需要暂停工作并询问人类决定时所使用的服务。
抽象用户交互 seam。它定义 `ctx.userInteraction`,供面向模型的工具或权限插件在需要暂停工作并询问人类决定时使用。
## 服务:`UserInteractionService`(ctx 键:`userInteraction`)
@@ -31,9 +31,9 @@
#### KV Cache 影响
不会直接使缓存失效;具名消费方拥有所有请求前缀变更。
不会直接使 KV Cache 失效;请求前缀的任何变更均由上述消费方负责。
## 已知限制与延期工作
## 已知限制与暂缓事项
- **每个上下文只能有一个提供方**:不支持路由或扇出到多个 UI;第二次注册会抛出 `DUPLICATE_PROVIDER`,未注册任何提供方时,`ask()` 会抛出 `NO_PROVIDER`,而不会降级。
- **词汇仅包含问题表单形态**:可选选项加可选自定义文本;更丰富的交互形态(文件选择器、diff 预览确认)尚无 seam 词汇。
- **词汇仅包含问题表单形态**:可供选择的选项加可选的自定义文本;更丰富的交互形态(文件选择器、diff 预览确认)尚无 seam 词汇。