// 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 动作菜单,换成 `toolbar` 槽(放模式切换等); // 外框用 border + focus-within 提亮(不做玻璃叠玻璃),按钮用项目