uipath 2.1.87__py3-none-any.whl → 2.1.88__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of uipath might be problematic. Click here for more details.

uipath/_cli/__init__.py CHANGED
@@ -3,7 +3,7 @@ import sys
3
3
 
4
4
  import click
5
5
 
6
- from ._utils._common import load_environment_variables
6
+ from ._utils._common import add_cwd_to_path, load_environment_variables
7
7
  from .cli_auth import auth as auth
8
8
  from .cli_deploy import deploy as deploy # type: ignore
9
9
  from .cli_dev import dev as dev
@@ -45,6 +45,7 @@ def _get_safe_version() -> str:
45
45
  )
46
46
  def cli(lv: bool, v: bool) -> None:
47
47
  load_environment_variables()
48
+ add_cwd_to_path()
48
49
  if lv:
49
50
  try:
50
51
  version = importlib.metadata.version("uipath-langchain")
@@ -9,6 +9,14 @@ from ..._utils.constants import DOTENV_FILE
9
9
  from ..spinner import Spinner
10
10
 
11
11
 
12
+ def add_cwd_to_path():
13
+ import sys
14
+
15
+ cwd = os.getcwd()
16
+ if cwd not in sys.path:
17
+ sys.path.insert(0, cwd)
18
+
19
+
12
20
  def environment_options(function):
13
21
  function = click.option(
14
22
  "--alpha",
uipath/_cli/cli_init.py CHANGED
@@ -1,6 +1,7 @@
1
1
  # type: ignore
2
2
  import importlib.resources
3
3
  import json
4
+ import logging
4
5
  import os
5
6
  import shutil
6
7
  import uuid
@@ -18,6 +19,7 @@ from ._utils._parse_ast import generate_bindings_json
18
19
  from .middlewares import Middlewares
19
20
 
20
21
  console = ConsoleLogger()
22
+ logger = logging.getLogger(__name__)
21
23
 
22
24
  CONFIG_PATH = "uipath.json"
23
25
 
@@ -55,7 +57,7 @@ def generate_env_file(target_directory):
55
57
  relative_path = os.path.relpath(env_path, target_directory)
56
58
  with open(env_path, "w"):
57
59
  pass
58
- console.success(f" Created '{relative_path}' file.")
60
+ console.success(f"Created '{relative_path}' file.")
59
61
 
60
62
 
61
63
  def generate_agent_specific_file_md(target_directory: str, file_name: str) -> None:
@@ -65,10 +67,13 @@ def generate_agent_specific_file_md(target_directory: str, file_name: str) -> No
65
67
  target_directory: The directory where the file should be created.
66
68
  file_name: The name of the file should be created.
67
69
  """
68
- target_path = os.path.join(target_directory, file_name)
70
+ agent_dir = os.path.join(target_directory, ".agent")
71
+ os.makedirs(agent_dir, exist_ok=True)
72
+
73
+ target_path = os.path.join(agent_dir, file_name)
69
74
 
70
75
  if os.path.exists(target_path):
71
- console.info(f"Skipping '{file_name}' creation as it already exists.")
76
+ logger.debug(f"File '.agent/{target_path}' already exists.")
72
77
  return
73
78
 
74
79
  try:
@@ -77,7 +82,7 @@ def generate_agent_specific_file_md(target_directory: str, file_name: str) -> No
77
82
  with importlib.resources.as_file(source_path) as s_path:
78
83
  shutil.copy(s_path, target_path)
79
84
 
80
- console.success(f" Created '{file_name}' file.")
85
+ console.success(f"Created '{f'.agent/{file_name}'}' file.")
81
86
  except Exception as e:
82
87
  console.warning(f"Could not create {file_name}: {e}")
83
88
 
@@ -157,15 +162,9 @@ def init(entrypoint: str, infer_bindings: bool) -> None:
157
162
  generate_env_file(current_directory)
158
163
  create_telemetry_config_file(current_directory)
159
164
  generate_agent_specific_file_md(current_directory, "AGENTS.md")
160
- generate_agent_specific_file_md(
161
- os.path.join(current_directory, ".agent"), "CLI_REFERENCE.md"
162
- )
163
- generate_agent_specific_file_md(
164
- os.path.join(current_directory, ".agent"), "REQUIRED_STRUCTURE.md"
165
- )
166
- generate_agent_specific_file_md(
167
- os.path.join(current_directory, ".agent"), "SDK_REFERENCE.md"
168
- )
165
+ generate_agent_specific_file_md(current_directory, "CLI_REFERENCE.md")
166
+ generate_agent_specific_file_md(current_directory, "REQUIRED_STRUCTURE.md")
167
+ generate_agent_specific_file_md(current_directory, "SDK_REFERENCE.md")
169
168
  generate_agent_specific_file_md(current_directory, "CLAUDE.md")
170
169
 
171
170
  result = Middlewares.next(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: uipath
3
- Version: 2.1.87
3
+ Version: 2.1.88
4
4
  Summary: Python SDK and CLI for UiPath Platform, enabling programmatic interaction with automation services, process management, and deployment tools.
5
5
  Project-URL: Homepage, https://uipath.com
6
6
  Project-URL: Repository, https://github.com/UiPath/uipath-python
@@ -5,12 +5,12 @@ uipath/_folder_context.py,sha256=D-bgxdwpwJP4b_QdVKcPODYh15kMDrOar2xNonmMSm4,186
5
5
  uipath/_uipath.py,sha256=mhtdu36-A-2WhPGNFFrTmQWbE07Bn4IV_Vrqgf6kuVM,4900
6
6
  uipath/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  uipath/_cli/README.md,sha256=GLtCfbeIKZKNnGTCsfSVqRQ27V1btT1i2bSAyW_xZl4,474
8
- uipath/_cli/__init__.py,sha256=fd6pI3IzOUdojElbPGafFReJCQ3WrL2Tdw13sfUIamI,2264
8
+ uipath/_cli/__init__.py,sha256=9dqPdh8kgKwV-Y2Riz6411ikyKGWhKioMrqwJPQHi8w,2303
9
9
  uipath/_cli/cli_auth.py,sha256=CzetSRqSUvMs02PtI4w5Vi_0fv_ETA307bB2vXalWzY,2628
10
10
  uipath/_cli/cli_deploy.py,sha256=KPCmQ0c_NYD5JofSDao5r6QYxHshVCRxlWDVnQvlp5w,645
11
11
  uipath/_cli/cli_dev.py,sha256=nEfpjw1PZ72O6jmufYWVrueVwihFxDPOeJakdvNHdOA,2146
12
12
  uipath/_cli/cli_eval.py,sha256=oOMywGSUrHDQ1W_54ccbekzCeduPf-KHRyu_r0Dezd0,5444
13
- uipath/_cli/cli_init.py,sha256=i6n7CeAUdjgkVLcV8_xHpV7xAGcHcYuiQ4otd_UWzwY,7467
13
+ uipath/_cli/cli_init.py,sha256=An6l82fqTpz-7xBK8tq-cYyPl5f5X4wCNhUC3rWI7bM,7474
14
14
  uipath/_cli/cli_invoke.py,sha256=m-te-EjhDpk_fhFDkt-yQFzmjEHGo5lQDGEQWxSXisQ,4395
15
15
  uipath/_cli/cli_new.py,sha256=9378NYUBc9j-qKVXV7oja-jahfJhXBg8zKVyaon7ctY,2102
16
16
  uipath/_cli/cli_pack.py,sha256=NmwZTfwZ2fURiHyiX1BM0juAtBOjPB1Jmcpu-rD7p-4,11025
@@ -73,7 +73,7 @@ uipath/_cli/_templates/.rels.template,sha256=-fTcw7OA1AcymHr0LzBqbMAAtzZTRXLTNa_
73
73
  uipath/_cli/_templates/[Content_Types].xml.template,sha256=bYsKDz31PkIF9QksjgAY_bqm57YC8U_owsZeNZAiBxQ,584
74
74
  uipath/_cli/_templates/main.py.template,sha256=QB62qX5HKDbW4lFskxj7h9uuxBITnTWqu_DE6asCwcU,476
75
75
  uipath/_cli/_templates/package.nuspec.template,sha256=YZyLc-u_EsmIoKf42JsLQ55OGeFmb8VkIU2VF7DFbtw,359
76
- uipath/_cli/_utils/_common.py,sha256=bYgqIdlxxlB_4s8BlZsfGbSdbfm93MFtOj5ydptbkPI,3344
76
+ uipath/_cli/_utils/_common.py,sha256=fSZkps1sjOXRyWn8GqmQfGqYAZ_tVua6dgT18Lpscds,3467
77
77
  uipath/_cli/_utils/_console.py,sha256=scvnrrFoFX6CE451K-PXKV7UN0DUkInbOtDZ5jAdPP0,10070
78
78
  uipath/_cli/_utils/_constants.py,sha256=rS8lQ5Nzull8ytajK6lBsz398qiCp1REoAwlHtyBwF0,1415
79
79
  uipath/_cli/_utils/_debug.py,sha256=zamzIR4VgbdKADAE4gbmjxDsbgF7wvdr7C5Dqp744Oc,1739
@@ -177,8 +177,8 @@ uipath/tracing/_utils.py,sha256=X-LFsyIxDeNOGuHPvkb6T5o9Y8ElYhr_rP3CEBJSu4s,1383
177
177
  uipath/utils/__init__.py,sha256=VD-KXFpF_oWexFg6zyiWMkxl2HM4hYJMIUDZ1UEtGx0,105
178
178
  uipath/utils/_endpoints_manager.py,sha256=iRTl5Q0XAm_YgcnMcJOXtj-8052sr6jpWuPNz6CgT0Q,8408
179
179
  uipath/utils/dynamic_schema.py,sha256=w0u_54MoeIAB-mf3GmwX1A_X8_HDrRy6p998PvX9evY,3839
180
- uipath-2.1.87.dist-info/METADATA,sha256=RRuT8ZUpouvwIZgeDaGB86IMvCsgt21zXllpJ74NZyo,6593
181
- uipath-2.1.87.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
182
- uipath-2.1.87.dist-info/entry_points.txt,sha256=9C2_29U6Oq1ExFu7usihR-dnfIVNSKc-0EFbh0rskB4,43
183
- uipath-2.1.87.dist-info/licenses/LICENSE,sha256=-KBavWXepyDjimmzH5fVAsi-6jNVpIKFc2kZs0Ri4ng,1058
184
- uipath-2.1.87.dist-info/RECORD,,
180
+ uipath-2.1.88.dist-info/METADATA,sha256=JX0yF1aAsV4X2lENrcJ-Qa8I7QmghlGa-vNk57RerKc,6593
181
+ uipath-2.1.88.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
182
+ uipath-2.1.88.dist-info/entry_points.txt,sha256=9C2_29U6Oq1ExFu7usihR-dnfIVNSKc-0EFbh0rskB4,43
183
+ uipath-2.1.88.dist-info/licenses/LICENSE,sha256=-KBavWXepyDjimmzH5fVAsi-6jNVpIKFc2kZs0Ri4ng,1058
184
+ uipath-2.1.88.dist-info/RECORD,,