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
26 changes: 8 additions & 18 deletions demo/mock_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
from pathlib import Path

from uipath.runtime import (
UiPathRuntimeFactorySettings,
UiPathRuntimeProtocol,
UiPathRuntimeStorageProtocol,
)

from demo.mock_greeting_runtime import (
Expand Down Expand Up @@ -75,25 +77,13 @@ async def new_runtime(
)
return MockGreetingRuntime(entrypoint=entrypoint)

async def discover_runtimes(self) -> list[UiPathRuntimeProtocol]:
"""Return prototype instances for discovery (not really used by the UI)."""
runtimes: list[UiPathRuntimeProtocol] = [
MockGreetingRuntime(entrypoint=ENTRYPOINT_GREETING),
MockNumberAnalyticsRuntime(entrypoint=ENTRYPOINT_ANALYZE_NUMBERS),
MockSupportChatRuntime(entrypoint=ENTRYPOINT_SUPPORT_CHAT),
MockTelemetryRuntime(entrypoint=ENTRYPOINT_TELEMETRY),
]

for entrypoint in TEMPLATE_RUNTIMES.keys():
try:
runtime: UiPathRuntimeProtocol = await self.new_runtime(
entrypoint, runtime_id="discovery"
)
runtimes.append(runtime)
except Exception as e:
logger.error(f"Failed to load template runtime '{entrypoint}': {e}")
async def get_settings(self) -> UiPathRuntimeFactorySettings | None:
"""Return factory settings (no-op for mock)."""
return UiPathRuntimeFactorySettings()

return runtimes
async def get_storage(self) -> UiPathRuntimeStorageProtocol | None:
"""Return factory storage (no-op for mock)."""
return None

def discover_entrypoints(self) -> list[str]:
"""Return all available entrypoints."""
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[project]
name = "uipath-dev"
version = "0.0.19"
version = "0.0.20"
description = "UiPath Developer Console"
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.11"
dependencies = [
"uipath-runtime>=0.5.0, <0.6.0",
"uipath-runtime>=0.6.0, <0.7.0",
"textual>=7.2.0, <8.0.0",
"pyperclip>=1.11.0, <2.0.0",
]
Expand Down
40 changes: 20 additions & 20 deletions uv.lock

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