Skip to content

Commit e4b691c

Browse files
committed
chore: clean directory for cli new command
1 parent 8169c81 commit e4b691c

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "uipath-llamaindex"
3-
version = "0.0.32"
3+
version = "0.0.33"
44
description = "UiPath LlamaIndex SDK"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.10"
@@ -9,7 +9,7 @@ dependencies = [
99
"llama-index-embeddings-azure-openai>=0.3.8",
1010
"llama-index-llms-azure-openai>=0.3.2",
1111
"openinference-instrumentation-llama-index>=4.3.0",
12-
"uipath>=2.1.10, <2.2.0",
12+
"uipath>=2.1.14, <2.2.0",
1313
]
1414
classifiers = [
1515
"Development Status :: 3 - Alpha",

src/uipath_llamaindex/_cli/cli_new.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import shutil
33

44
import click
5+
from uipath._cli._utils._common import clean_directory
56
from uipath._cli._utils._console import ConsoleLogger
67
from uipath._cli.middlewares import MiddlewareResult
78

@@ -31,7 +32,7 @@ def generate_pyproject(target_directory, project_name):
3132
description = "{project_name}"
3233
authors = [{{ name = "John Doe", email = "[email protected]" }}]
3334
dependencies = [
34-
"uipath-llamaindex>=0.0.27",
35+
"uipath-llamaindex>=0.0.33",
3536
"llama-index-llms-openai>=0.2.2"
3637
]
3738
requires-python = ">=3.10"
@@ -48,6 +49,7 @@ def llamaindex_new_middleware(name: str) -> MiddlewareResult:
4849

4950
try:
5051
with console.spinner(f"Creating new agent {name} in current directory ..."):
52+
clean_directory(directory)
5153
generate_pyproject(directory, name)
5254
generate_script(directory)
5355
console.success("Created 'main.py' file.")

uv.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)