Skip to content

Commit b972010

Browse files
committed
chore: clean directory for cli new command
1 parent 4ec9c1c commit b972010

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[project]
22
name = "uipath-langchain"
3-
version = "0.0.122"
3+
version = "0.0.123"
44
description = "UiPath Langchain"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.10"
77
dependencies = [
8-
"uipath>=2.1.10, <2.2.0",
8+
"uipath>=2.1.14, <2.2.0",
99
"langgraph>=0.5.0, <0.7.0",
1010
"langchain-core>=0.3.34",
1111
"langgraph-checkpoint-sqlite>=2.0.3",

src/uipath_langchain/_cli/cli_new.py

Lines changed: 2 additions & 0 deletions
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

@@ -48,6 +49,7 @@ def langgraph_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)