Skip to content

clean directory for cli new command #142

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
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-langchain"
version = "0.0.122"
version = "0.0.123"
description = "UiPath Langchain"
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.10"
dependencies = [
"uipath>=2.1.10, <2.2.0",
"uipath>=2.1.14, <2.2.0",
"langgraph>=0.5.0, <0.7.0",
"langchain-core>=0.3.34",
"langgraph-checkpoint-sqlite>=2.0.3",
Expand Down
4 changes: 3 additions & 1 deletion src/uipath_langchain/_cli/cli_new.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -31,7 +32,7 @@ def generate_pyproject(target_directory, project_name):
description = "{project_name}"
authors = [{{ name = "John Doe", email = "[email protected]" }}]
dependencies = [
"uipath-langchain>=0.0.106",
"uipath-langchain>=0.0.123",
"langchain-anthropic>=0.3.8",
]
requires-python = ">=3.10"
Expand All @@ -48,6 +49,7 @@ def langgraph_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.")
Expand Down
10 changes: 5 additions & 5 deletions uv.lock

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

Loading