// Adapted from agentui (https://github.com/ashish200729/agentui), components/agents/prompt-input.tsx // Copyright (c) 2026 Saurabh Chauhan. MIT License, see ./LICENSE-agentui.md // 改造:保留自增高(隐藏测量层 + minRows/maxRows)、Enter 发送 / Shift+Enter 换行 / 输入法组字中不发送、 // loading 时发送键换成"停止";去掉模型选择与 MorphPopover 动作菜单; // AGUI-3:输入区只留输入框和发送 / 停止,新增 `/` 指令菜单(commands)与上下文标签(context,可移除); // 外框用 border + focus-within 提亮(不做玻璃叠玻璃),按钮用项目 ) : null} ) : null}
{`${value}​`}