mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-08 07:17:39 +00:00
feat: add support for Codex's request_user_input tool
Implement full support for the request_user_input tool with both Web UI and CLI
components. This includes:
- New view and footer components for request_user_input tool UI
- Tool registration in knownTools and view registries
- Nested answer format support (Record<string, { answers: string[] }>)
- Backward compatibility with flat answer format (Record<string, string[]>)
- Permission handler updates for CLI request_user_input acceptance
- Type definitions and schema updates across shared/cli/server/web packages
- Translation strings for request_user_input UI elements
- Conditional footer rendering in ToolCard for question tools
This commit is contained in:
@@ -186,6 +186,9 @@ export default {
|
||||
'tool.askUserQuestion.fallback': 'AskUserQuestion 格式不正确。请输入您的答案:',
|
||||
'tool.askUserQuestion.placeholder': '输入您的答案…',
|
||||
'tool.askUserQuestion.otherPlaceholder': '或输入您自己的答案…',
|
||||
'tool.requestUserInput.textPlaceholder': '输入您的答案…',
|
||||
'tool.requestUserInput.noteLabel': '补充说明(可选)',
|
||||
'tool.requestUserInput.notePlaceholder': '添加备注…',
|
||||
|
||||
// Composer buttons
|
||||
'composer.settings': '设置',
|
||||
|
||||
Reference in New Issue
Block a user