Skip to content

Commit 7ed7664

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

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,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: 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-langchain>=0.0.106",
35+
"uipath-langchain>=0.0.123",
3536
"langchain-anthropic>=0.3.8",
3637
]
3738
requires-python = ">=3.10"
@@ -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)