simplex 1.2.79__tar.gz → 1.2.82__tar.gz

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 simplex might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: simplex
3
- Version: 1.2.79
3
+ Version: 1.2.82
4
4
  Summary: Official Python SDK for Simplex API
5
5
  Home-page: https://simplex.sh
6
6
  Author: Simplex Labs, Inc.
@@ -22,7 +22,7 @@ class PostInstallCommand(install):
22
22
 
23
23
  setup(
24
24
  name="simplex",
25
- version="1.2.79",
25
+ version="1.2.82",
26
26
  packages=find_packages(),
27
27
  package_data={
28
28
  "simplex": ["browser_agent/dom/*.js"], # Include JS files in the dom directory
@@ -24,7 +24,7 @@ except ImportError:
24
24
  ImportWarning
25
25
  )
26
26
 
27
- # BASE_URL = "https://simplex-dev-shreya--api-server-and-container-service-fas-bba69e.modal.run"
27
+ # BASE_URL="https://simplex-dev-shreya--api-server-and-container-service-fas-bba69e.modal.run"
28
28
  # BASE_URL = "https://simplex-dev--api-server-and-container-service-fastapi-app.modal.run"
29
29
  BASE_URL = "https://api.simplex.sh"
30
30
 
@@ -284,7 +284,7 @@ class Simplex:
284
284
  if 'succeeded' not in response.json():
285
285
  raise ValueError(f"It looks like the agentic action failed to return a response. Did you set your api_key when creating the Simplex class?")
286
286
  if response.json()['succeeded']:
287
- return
287
+ return response.json()['agent_response']
288
288
  else:
289
289
  raise ValueError(f"Failed to complete agentic task: {response.json()['error']}")
290
290
 
@@ -424,7 +424,7 @@ class Simplex:
424
424
  else:
425
425
  raise ValueError(f"Failed to hover: {response.json()['error']}")
426
426
 
427
- def type(self, text: str, override_fail_state: bool = False):
427
+ def type(self, text: str, is_password: bool = False, override_fail_state: bool = False):
428
428
  if not text or not text.strip():
429
429
  raise ValueError("text cannot be empty")
430
430
  if not self.session_id:
@@ -433,7 +433,8 @@ class Simplex:
433
433
  data = {
434
434
  'text': text,
435
435
  'session_id': self.session_id,
436
- 'override_fail_state': override_fail_state
436
+ 'override_fail_state': override_fail_state,
437
+ 'is_password': is_password
437
438
  }
438
439
 
439
440
  response = requests.post(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: simplex
3
- Version: 1.2.79
3
+ Version: 1.2.82
4
4
  Summary: Official Python SDK for Simplex API
5
5
  Home-page: https://simplex.sh
6
6
  Author: Simplex Labs, Inc.
File without changes
File without changes
File without changes
File without changes
File without changes