uipath 2.1.98__py3-none-any.whl → 2.1.99__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/cli_init.py CHANGED
@@ -60,18 +60,25 @@ def generate_env_file(target_directory):
60
60
  console.success(f"Created '{relative_path}' file.")
61
61
 
62
62
 
63
- def generate_agent_md_file(target_directory: str, file_name: str) -> None:
63
+ def generate_agent_md_file(
64
+ target_directory: str, file_name: str, no_agents_md_override: bool
65
+ ) -> bool:
64
66
  """Generate an agent-specific file from the packaged resource.
65
67
 
66
68
  Args:
67
69
  target_directory: The directory where the file should be created.
68
70
  file_name: The name of the file should be created.
71
+ no_agents_md_override: Whether to override existing files.
69
72
  """
70
73
  target_path = os.path.join(target_directory, file_name)
71
74
 
72
- if os.path.exists(target_path):
73
- logger.debug(f"File '{target_path}' already exists.")
74
- return
75
+ will_override = os.path.exists(target_path)
76
+
77
+ if will_override and no_agents_md_override:
78
+ console.success(
79
+ f"File {click.style(target_path, fg='cyan')} already exists. Skipping."
80
+ )
81
+ return False
75
82
 
76
83
  try:
77
84
  source_path = importlib.resources.files("uipath._resources").joinpath(file_name)
@@ -79,15 +86,23 @@ def generate_agent_md_file(target_directory: str, file_name: str) -> None:
79
86
  with importlib.resources.as_file(source_path) as s_path:
80
87
  shutil.copy(s_path, target_path)
81
88
 
89
+ if will_override:
90
+ logger.debug(f"File '{target_path}' has been overridden.")
91
+
92
+ return will_override
93
+
82
94
  except Exception as e:
83
95
  console.warning(f"Could not create {file_name}: {e}")
84
96
 
97
+ return False
98
+
85
99
 
86
- def generate_agent_md_files(target_directory: str) -> None:
100
+ def generate_agent_md_files(target_directory: str, no_agents_md_override: bool) -> None:
87
101
  """Generate an agent-specific file from the packaged resource.
88
102
 
89
103
  Args:
90
104
  target_directory: The directory where the files should be created.
105
+ no_agents_md_override: Whether to override existing files.
91
106
  """
92
107
  agent_dir = os.path.join(target_directory, ".agent")
93
108
  os.makedirs(agent_dir, exist_ok=True)
@@ -96,13 +111,21 @@ def generate_agent_md_files(target_directory: str) -> None:
96
111
 
97
112
  agent_files = ["CLI_REFERENCE.md", "REQUIRED_STRUCTURE.md", "SDK_REFERENCE.md"]
98
113
 
114
+ any_overridden = False
115
+
99
116
  for file_name in root_files:
100
- generate_agent_md_file(target_directory, file_name)
117
+ if generate_agent_md_file(target_directory, file_name, no_agents_md_override):
118
+ any_overridden = True
101
119
 
102
120
  for file_name in agent_files:
103
- generate_agent_md_file(agent_dir, file_name)
121
+ if generate_agent_md_file(agent_dir, file_name, no_agents_md_override):
122
+ any_overridden = True
104
123
 
105
- console.success(f"Created {click.style('AGENTS.md', fg='cyan')} file.")
124
+ if any_overridden:
125
+ console.success(f"Updated {click.style('AGENTS.md', fg='cyan')} related files.")
126
+ return
127
+
128
+ console.success(f"Created {click.style('AGENTS.md', fg='cyan')} related files.")
106
129
 
107
130
 
108
131
  def get_existing_settings(config_path: str) -> Optional[Dict[str, Any]]:
@@ -149,8 +172,15 @@ def write_config_file(config_data: Dict[str, Any] | RuntimeSchema) -> None:
149
172
  default=True,
150
173
  help="Infer bindings from the script.",
151
174
  )
175
+ @click.option(
176
+ "--no-agents-md-override",
177
+ is_flag=True,
178
+ required=False,
179
+ default=False,
180
+ help="Won't override existing .agent files and AGENTS.md file.",
181
+ )
152
182
  @track
153
- def init(entrypoint: str, infer_bindings: bool) -> None:
183
+ def init(entrypoint: str, infer_bindings: bool, no_agents_md_override: bool) -> None:
154
184
  """Create uipath.json with input/output schemas and bindings."""
155
185
  with console.spinner("Initializing UiPath project ..."):
156
186
  current_directory = os.getcwd()
@@ -175,7 +205,7 @@ def init(entrypoint: str, infer_bindings: bool) -> None:
175
205
  if not result.should_continue:
176
206
  return
177
207
 
178
- generate_agent_md_files(current_directory)
208
+ generate_agent_md_files(current_directory, no_agents_md_override)
179
209
  script_path = get_user_script(current_directory, entrypoint=entrypoint)
180
210
  if not script_path:
181
211
  return
@@ -27,6 +27,7 @@ The UiPath Python SDK provides a comprehensive CLI for managing coded agents and
27
27
  | Option | Type | Default | Description |
28
28
  |--------|------|---------|-------------|
29
29
  | `--infer-bindings` | flag | false | Infer bindings from the script. |
30
+ | `--no-agents-md-override` | flag | false | Won't override existing .agent files and AGENTS.md file. |
30
31
 
31
32
  **Usage Examples:**
32
33
 
@@ -27,6 +27,10 @@ class DocumentsService(FolderContext, BaseService):
27
27
  """Service for managing UiPath DocumentUnderstanding Document Operations.
28
28
 
29
29
  This service provides methods to extract data from documents using UiPath's Document Understanding capabilities.
30
+
31
+ !!! warning "Preview Feature"
32
+ This function is currently experimental.
33
+ Behavior and parameters are subject to change in future versions.
30
34
  """
31
35
 
32
36
  def __init__(self, config: Config, execution_context: ExecutionContext) -> None:
uipath/models/job.py CHANGED
@@ -15,7 +15,7 @@ class JobErrorInfo(BaseModel):
15
15
  title: Optional[str] = Field(default=None, alias="Title")
16
16
  detail: Optional[str] = Field(default=None, alias="Detail")
17
17
  category: Optional[str] = Field(default=None, alias="Category")
18
- status: Optional[str] = Field(default=None, alias="Status")
18
+ status: Optional[int] = Field(default=None, alias="Status")
19
19
 
20
20
 
21
21
  class Job(BaseModel):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: uipath
3
- Version: 2.1.98
3
+ Version: 2.1.99
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
@@ -11,7 +11,7 @@ uipath/_cli/cli_debug.py,sha256=-s6Nmy0DnDyITjZAf6f71hZ1YDDt0Yl57XklEkuL0FU,4068
11
11
  uipath/_cli/cli_deploy.py,sha256=KPCmQ0c_NYD5JofSDao5r6QYxHshVCRxlWDVnQvlp5w,645
12
12
  uipath/_cli/cli_dev.py,sha256=nEfpjw1PZ72O6jmufYWVrueVwihFxDPOeJakdvNHdOA,2146
13
13
  uipath/_cli/cli_eval.py,sha256=6evrUtaHnQ1NTEQKZKltgH7mpYOy6YP88L2LZcnnnfs,5139
14
- uipath/_cli/cli_init.py,sha256=PpD9IwHClCqBD-hPWTxnaV39eWU0MPlwSOTu_GY843I,6411
14
+ uipath/_cli/cli_init.py,sha256=kCwAHzrTrerptInGx8-eWbh3SdwYdFqlmIsKNPhhnjA,7392
15
15
  uipath/_cli/cli_invoke.py,sha256=m-te-EjhDpk_fhFDkt-yQFzmjEHGo5lQDGEQWxSXisQ,4395
16
16
  uipath/_cli/cli_new.py,sha256=9378NYUBc9j-qKVXV7oja-jahfJhXBg8zKVyaon7ctY,2102
17
17
  uipath/_cli/cli_pack.py,sha256=U5rXVbUnHFgdEsXyhkjmWza8dfob1wU9lyl4yrYnUss,11076
@@ -98,7 +98,7 @@ uipath/_events/_event_bus.py,sha256=4-VzstyX69cr7wT1EY7ywp-Ndyz2CyemD3Wk_-QmRpo,
98
98
  uipath/_events/_events.py,sha256=eCgqEP4rzDgZShXMC9wgBVx-AcpwaJZlo2yiL7OyxdA,4441
99
99
  uipath/_resources/AGENTS.md,sha256=nRQNAVeEBaBvuMzXw8uXtMnGebLClUgwIMlgb8_qU9o,1039
100
100
  uipath/_resources/CLAUDE.md,sha256=kYsckFWTVe948z_fNWLysCHvi9_YpchBXl3s1Ek03lU,10
101
- uipath/_resources/CLI_REFERENCE.md,sha256=stB6W2aUr0o9UzZ49h7ZXvltaLhnwPUe4_erko4Nr9k,6262
101
+ uipath/_resources/CLI_REFERENCE.md,sha256=-eCe1hZSRvv9QGLltE3xl8muGWGNzmaHX8htRt3cgy8,6366
102
102
  uipath/_resources/REQUIRED_STRUCTURE.md,sha256=3laqGiNa3kauJ7jRI1d7w_fWKUDkqYBjcTT_6_8FAGk,1417
103
103
  uipath/_resources/SDK_REFERENCE.md,sha256=4wX8a1W5EJCta-iEHy_cDRahn0ENpJykwn-w4k_Lh6s,23245
104
104
  uipath/_services/__init__.py,sha256=_LNy4u--VlhVtTO66bULbCoBjyJBTuyh9jnzjWrv-h4,1140
@@ -110,7 +110,7 @@ uipath/_services/attachments_service.py,sha256=NPQYK7CGjfBaNT_1S5vEAfODmOChTbQZf
110
110
  uipath/_services/buckets_service.py,sha256=5s8tuivd7GUZYj774DDUYTa0axxlUuesc4EBY1V5sdk,18496
111
111
  uipath/_services/connections_service.py,sha256=tKJHHOKQYKR6LkgB-V_2d0vFpLEdFeMzwj_xmBVHUDw,18416
112
112
  uipath/_services/context_grounding_service.py,sha256=Pjx-QQQEiSKD-hY6ityj3QUSALN3fIcKLLHr_NZ0d_g,37117
113
- uipath/_services/documents_service.py,sha256=UnFS8EpOZ_Ng2TZk3OiJJ3iNANvFs7QxuoG_v-lQj6c,24815
113
+ uipath/_services/documents_service.py,sha256=dVv7kYT2wm4gbtqulSAQhtn418xgzV2yt7gB7JvDsWU,24973
114
114
  uipath/_services/entities_service.py,sha256=QKCLE6wRgq3HZraF-M2mljy-8il4vsNHrQhUgkewVVk,14028
115
115
  uipath/_services/external_application_service.py,sha256=gZhnGgLn7ZYUZzZF7AumB14QEPanVY-D_02FqEcAFtw,5478
116
116
  uipath/_services/folder_service.py,sha256=9JqgjKhWD-G_KUnfUTP2BADxL6OK9QNZsBsWZHAULdE,2749
@@ -174,7 +174,7 @@ uipath/models/entities.py,sha256=x6jbq4o_QhgL_pCgvHFsp9O8l333kQhn8e9ZCBs72UM,982
174
174
  uipath/models/errors.py,sha256=WCxxHBlLzLF17YxjqsFkkyBLwEQM_dc6fFU5qmBjD4A,597
175
175
  uipath/models/exceptions.py,sha256=F0ITAhJsl6Agvmnv4nxvgY5oC_lrYIlxWTLs0yx859M,1636
176
176
  uipath/models/interrupt_models.py,sha256=UzuVTMVesI204YQ4qFQFaN-gN3kksddkrujofcaC7zQ,881
177
- uipath/models/job.py,sha256=HOvWS3I2BkiuM9jvg_PF0MezKa_C_8g7tndZpjJ1w50,3063
177
+ uipath/models/job.py,sha256=h1S-ErUk4-oIdrxo4nEBEJdSv1NTTF4AF8LfXx5Exak,3063
178
178
  uipath/models/llm_gateway.py,sha256=rUIus7BrUuuRriXqSJUE9FnjOyQ7pYpaX6hWEYvA6AA,1923
179
179
  uipath/models/processes.py,sha256=bV31xTyF0hRWZmwy3bWj5L8dBD9wttWxfJjwzhjETmk,1924
180
180
  uipath/models/queues.py,sha256=gnbeEyYlHtdqdxBalio0lw8mq-78YBG9MPMSkv1BWOg,6934
@@ -188,8 +188,8 @@ uipath/tracing/_utils.py,sha256=X-LFsyIxDeNOGuHPvkb6T5o9Y8ElYhr_rP3CEBJSu4s,1383
188
188
  uipath/utils/__init__.py,sha256=VD-KXFpF_oWexFg6zyiWMkxl2HM4hYJMIUDZ1UEtGx0,105
189
189
  uipath/utils/_endpoints_manager.py,sha256=tnF_FiCx8qI2XaJDQgYkMN_gl9V0VqNR1uX7iawuLp8,8230
190
190
  uipath/utils/dynamic_schema.py,sha256=w0u_54MoeIAB-mf3GmwX1A_X8_HDrRy6p998PvX9evY,3839
191
- uipath-2.1.98.dist-info/METADATA,sha256=jMCpjpybJ5VbSSuEyMJob7C8xMHNj3QKwVjpR7mc5Nw,6625
192
- uipath-2.1.98.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
193
- uipath-2.1.98.dist-info/entry_points.txt,sha256=9C2_29U6Oq1ExFu7usihR-dnfIVNSKc-0EFbh0rskB4,43
194
- uipath-2.1.98.dist-info/licenses/LICENSE,sha256=-KBavWXepyDjimmzH5fVAsi-6jNVpIKFc2kZs0Ri4ng,1058
195
- uipath-2.1.98.dist-info/RECORD,,
191
+ uipath-2.1.99.dist-info/METADATA,sha256=uzQOaz08OQ0caJ37TK1DW-SC2oGIk-BHNnOMVVe1hVE,6625
192
+ uipath-2.1.99.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
193
+ uipath-2.1.99.dist-info/entry_points.txt,sha256=9C2_29U6Oq1ExFu7usihR-dnfIVNSKc-0EFbh0rskB4,43
194
+ uipath-2.1.99.dist-info/licenses/LICENSE,sha256=-KBavWXepyDjimmzH5fVAsi-6jNVpIKFc2kZs0Ri4ng,1058
195
+ uipath-2.1.99.dist-info/RECORD,,