Skip to content
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
29 changes: 29 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Tests

on:
push:
pull_request:

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]

steps:
- uses: actions/checkout@v6

- name: Set up Python
uses: actions/setup-python@v6
with:
python-version-file: '.python-version'

- name: Install uv
uses: astral-sh/setup-uv@v7

- name: Install dependencies
run: uv sync --dev

- name: Run tests
run: uv run pytest tests/ -v
12 changes: 12 additions & 0 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,17 @@ def get_icon_file(system: str) -> str:


def run_pyinstaller(name: str, icon: str):
hiddenimports = [
"tools.ai_scriptless",
"tools.ai_scriptless.commands",
"tools.ai_scriptless.elements",
"tools.ai_scriptless.item_key",
"tools.ai_scriptless.persistence",
"tools.ai_scriptless.script",
"tools.ai_scriptless.step_path",
"tools.ai_scriptless.tree",
"tools.ai_scriptless.variables",
]
PyInstaller.__main__.run([
'main.py',
'--onefile',
Expand All @@ -99,6 +110,7 @@ def run_pyinstaller(name: str, icon: str):
f'--icon={icon}',
'--clean',
'--noconfirm',
*[f'--hidden-import={module}' for module in hiddenimports],
])


Expand Down
23 changes: 23 additions & 0 deletions config/perfecto.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@
HELP_BASE_CONTENT_URL = "https://help.perfecto.io/perfecto-help/content/"


def get_cloud_app_url(cloud_name: str) -> str:
return f"https://{cloud_name}.app.perfectomobile.com"


def get_ai_scriptless_lab_url(cloud_name: str) -> str:
return f"{get_cloud_app_url(cloud_name)}/lab/scriptless-mobile/"


def get_tenant_management_api_url(cloud_name: str) -> str:
return f"https://{cloud_name}.app.perfectomobile.com/tenant-management-webapp/rest/v1/tenant-management/tenants/current"

Expand Down Expand Up @@ -71,5 +79,20 @@ def get_ai_scriptless_api_url(cloud_name: str) -> str:
return f"https://{cloud_name}.app.perfectomobile.com/native-automation-webapp/rest/v1/native-automation"


def get_ai_scriptless_draft_api_url(cloud_name: str) -> str:
return f"https://{cloud_name}.app.perfectomobile.com/native-automation-webapp/rest/v1/draft-management/draft"


def get_ai_scriptless_execution_api_url(cloud_name: str) -> str:
return f"https://{cloud_name}.perfectomobile.com/scriptless-mobile-engine/script-executor/api/executions"


def get_ai_scriptless_command_repository_url(cloud_name: str) -> str:
return f"https://{cloud_name}.perfectomobile.com/scriptless-mobile-engine/command-repository/api"


def get_repository_management_api_url(cloud_name: str) -> str:
return (
f"https://{cloud_name}.app.perfectomobile.com"
"/repository-management-webapp/rest/v2/repository-management"
)
Binary file modified dist/perfecto-mcp-amd64.app/Contents/MacOS/perfecto-mcp
Binary file not shown.
Binary file modified dist/perfecto-mcp-arm64.app/Contents/MacOS/perfecto-mcp
Binary file not shown.
Binary file modified dist/perfecto-mcp-linux-amd64
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/perfecto-mcp-linux-amd64.sha256
Original file line number Diff line number Diff line change
@@ -1 +1 @@
891b5868edb7db6eeed2412bae6051452520d66393f1f93799835f6609f71761 perfecto-mcp-linux-amd64
f52839d8062d5b1602a40b1d7dd7a9e51a75fce60501e8c1e208a7af6e1022ab perfecto-mcp-linux-amd64
Binary file modified dist/perfecto-mcp-linux-arm64
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/perfecto-mcp-linux-arm64.sha256
Original file line number Diff line number Diff line change
@@ -1 +1 @@
f8ddcb5a3b77b3926d244be06ae1aff1024ba4f9db5c2b837002a3378e157a50 perfecto-mcp-linux-arm64
7271e3c6695e21d1164b97aa3a6aeb3fc7315f85912f80a97f19e36be9b92ea5 perfecto-mcp-linux-arm64
Binary file modified dist/perfecto-mcp-windows-amd64.exe
Binary file not shown.
Loading