travel-agent-cli 0.3.4 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "travel-agent-cli",
3
- "version": "0.3.4",
3
+ "version": "0.3.6",
4
4
  "description": "AI 驱动的旅行目的地推荐 Agent - 命令行工具(集成 FlyAI 旅行搜索)",
5
5
  "bin": {
6
6
  "travel-agent": "bin/cli.js",
@@ -163,12 +163,14 @@ class ChatScreen(Screen):
163
163
 
164
164
  def action_quit(self) -> None:
165
165
  """退出应用"""
166
- self.exit()
166
+ self.app.exit()
167
167
 
168
168
  def action_submit(self) -> None:
169
169
  """提交输入"""
170
170
  input_widget = self.query_one("#chat-input", Input)
171
- input_widget._submit()
171
+ # 手动触发提交事件
172
+ from textual.events import InputSubmitted
173
+ input_widget.post_message(InputSubmitted(input_widget))
172
174
 
173
175
  def action_clear(self) -> None:
174
176
  """清屏"""