2 Commits

Author SHA1 Message Date
255863aa66 fix: AgentInput 用 bricks.UiCode 替代 Form,消除嵌套Form 2026-08-06 14:05:44 +08:00
0a6baa0d52 feat: AgentInput控件 — TextFiles+UiCode模型选择一体化
- 新增 agent_input.js: bricks.AgentInput extends VBox
  - 内部结构: UiFile + DynamicColumn + UiText + [add_btn | model_selector(UiCode) | filler | submit_btn]
  - options: model_dataurl(模型列表API), model_cwidth, placeholder
  - event inputed: {prompt, add_files, model_id}
  - 自动注册 bricks.Factory.register('AgentInput', ...)
- index.ui/index_cockpit.ui: chat_input 改用 widgettype=AgentInput
- 利用 bricks 的 jsfiles() 机制自动加载 agent_input.js
2026-08-06 13:43:11 +08:00