From e4b691c7d22360bbf462edb72ca2e91645511f73 Mon Sep 17 00:00:00 2001 From: radu-mocanu Date: Thu, 7 Aug 2025 11:35:28 +0300 Subject: [PATCH] chore: clean directory for cli new command --- pyproject.toml | 4 ++-- src/uipath_llamaindex/_cli/cli_new.py | 4 +++- uv.lock | 10 +++++----- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 2729a5c..f5ac646 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "uipath-llamaindex" -version = "0.0.32" +version = "0.0.33" description = "UiPath LlamaIndex SDK" readme = { file = "README.md", content-type = "text/markdown" } requires-python = ">=3.10" @@ -9,7 +9,7 @@ dependencies = [ "llama-index-embeddings-azure-openai>=0.3.8", "llama-index-llms-azure-openai>=0.3.2", "openinference-instrumentation-llama-index>=4.3.0", - "uipath>=2.1.10, <2.2.0", + "uipath>=2.1.14, <2.2.0", ] classifiers = [ "Development Status :: 3 - Alpha", diff --git a/src/uipath_llamaindex/_cli/cli_new.py b/src/uipath_llamaindex/_cli/cli_new.py index dd1710d..e9742c0 100644 --- a/src/uipath_llamaindex/_cli/cli_new.py +++ b/src/uipath_llamaindex/_cli/cli_new.py @@ -2,6 +2,7 @@ import shutil import click +from uipath._cli._utils._common import clean_directory from uipath._cli._utils._console import ConsoleLogger from uipath._cli.middlewares import MiddlewareResult @@ -31,7 +32,7 @@ def generate_pyproject(target_directory, project_name): description = "{project_name}" authors = [{{ name = "John Doe", email = "john.doe@myemail.com" }}] dependencies = [ - "uipath-llamaindex>=0.0.27", + "uipath-llamaindex>=0.0.33", "llama-index-llms-openai>=0.2.2" ] requires-python = ">=3.10" @@ -48,6 +49,7 @@ def llamaindex_new_middleware(name: str) -> MiddlewareResult: try: with console.spinner(f"Creating new agent {name} in current directory ..."): + clean_directory(directory) generate_pyproject(directory, name) generate_script(directory) console.success("Created 'main.py' file.") diff --git a/uv.lock b/uv.lock index b91e03e..9f944b9 100644 --- a/uv.lock +++ b/uv.lock @@ -3039,7 +3039,7 @@ wheels = [ [[package]] name = "uipath" -version = "2.1.10" +version = "2.1.14" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "azure-monitor-opentelemetry" }, @@ -3054,14 +3054,14 @@ dependencies = [ { name = "tomli" }, { name = "truststore" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/fa/33/616d6342d54c2f5ee7fea43836c15e0ce90fca9f3cc72739fdcba32fb024/uipath-2.1.10.tar.gz", hash = "sha256:b01e3e4118c311d79b5feefeb07ac0912f3dd1f4fe50463cd1827a50d2d39397", size = 1942026 } +sdist = { url = "https://files.pythonhosted.org/packages/cf/79/5f95d2451bdfd2a0511dda2114ca79beb0dfedeb5d7984a94ce07f41e3fc/uipath-2.1.14.tar.gz", hash = "sha256:9aaa4955ac557c06ac125020a2e225cae2c16cbca9d60d5b84b45e9d2c6f1ea5", size = 1938877 } wheels = [ - { url = "https://files.pythonhosted.org/packages/ba/a7/0c954a57d3559d5b35b80affa72e2f66490f12f29b14b2c792b402771c9f/uipath-2.1.10-py3-none-any.whl", hash = "sha256:ec1a8d5237c13b1dbb828613b36f3da7c3046d4119e8dc3d42c8bcef20ce817c", size = 174010 }, + { url = "https://files.pythonhosted.org/packages/f1/2b/7e4037a8747393ad3b983b30c4b5c71207c406e247b76d94fe3cf0fdbf2f/uipath-2.1.14-py3-none-any.whl", hash = "sha256:44e2802d50e008f71b702dc0bc1cd12c528d2df660127a689c65eae40f81d25b", size = 174963 }, ] [[package]] name = "uipath-llamaindex" -version = "0.0.32" +version = "0.0.33" source = { editable = "." } dependencies = [ { name = "llama-index" }, @@ -3089,7 +3089,7 @@ requires-dist = [ { name = "llama-index-embeddings-azure-openai", specifier = ">=0.3.8" }, { name = "llama-index-llms-azure-openai", specifier = ">=0.3.2" }, { name = "openinference-instrumentation-llama-index", specifier = ">=4.3.0" }, - { name = "uipath", specifier = ">=2.1.10,<2.2.0" }, + { name = "uipath", specifier = ">=2.1.14,<2.2.0" }, ] [package.metadata.requires-dev]