Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[project]
name = "uipath-dev"
version = "0.0.8"
version = "0.0.9"
description = "UiPath Developer Console"
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.11"
dependencies = [
"uipath-core>=0.0.6, <0.1.0",
"uipath-runtime>=0.1.2, <0.2.0",
"textual>=6.6.0, <7.0.0",
"textual>=6.7.1, <7.0.0",
"pyperclip>=1.11.0, <2.0.0",
]
classifiers = [
Expand Down
2 changes: 2 additions & 0 deletions src/uipath/dev/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,15 @@ async def handle_chat_input(self, event: Input.Submitted) -> None:
msg_ev = get_user_message_event(
user_text, conversation_id=details_panel.current_run.id
)

self._on_chat_for_ui(
ChatMessage(
event=msg_ev,
message=msg,
run_id=details_panel.current_run.id,
)
)
details_panel.current_run.add_event(msg_ev)
details_panel.current_run.input_data = {"messages": [msg]}

asyncio.create_task(self._execute_runtime(details_panel.current_run))
Expand Down
7 changes: 7 additions & 0 deletions src/uipath/dev/ui/panels/run_details_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ def show_run(self, run: ExecutionRun):
"""Display traces and logs for a specific run."""
self._show_run_details(run)

self._show_run_chat(run)

logs_log = self.query_one("#logs-log", RichLog)
logs_log.clear()
for log in run.logs:
Expand Down Expand Up @@ -236,6 +238,7 @@ def _write_block(
def _show_run_details(self, run: ExecutionRun):
"""Display detailed information about the run in the Details tab."""
self.update_debug_controls_visibility(run)

run_details_log = self.query_one("#run-details-log", RichLog)
run_details_log.clear()

Expand Down Expand Up @@ -302,6 +305,10 @@ def _show_run_details(self, run: ExecutionRun):
run_details_log.write(f"[red]\n{run.error.detail}[/red]")
run_details_log.write("")

def _show_run_chat(self, run: ExecutionRun) -> None:
chat_panel = self.query_one("#chat-panel", ChatPanel)
chat_panel.update_messages(run)

def _rebuild_spans_tree(self):
"""Rebuild the spans tree from current run's traces."""
spans_tree = self.query_one("#spans-tree", Tree)
Expand Down
1 change: 1 addition & 0 deletions src/uipath/dev/ui/styles/terminal.tcss
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ Response, Tool {

#chat-container{
background: $surface;
margin-bottom: 1;
}

#chat-input{
Expand Down
10 changes: 5 additions & 5 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.