Skip to content

Commit 47750e8

Browse files
Merge pull request #34 from askui/setup-telemetry
Setup telemetry
2 parents 3c62cfc + b6e41c1 commit 47750e8

35 files changed

Lines changed: 1652 additions & 74 deletions

.env.template

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@ TARS_API_KEY=
44

55
# Anthropic API
66
ANTHROPIC_API_KEY=
7+
8+
# Telemetry
9+
ASKUI__VA__TELEMETRY__ENABLED=True # Set to "False" to disable telemetry

.github/workflows/checks.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Checks
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
workflow_call:
8+
9+
jobs:
10+
checks:
11+
name: Run Checks
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 2
17+
- uses: pdm-project/setup-pdm@v4
18+
with:
19+
cache: true
20+
- run: pdm install
21+
- run: pdm run test:unit

.github/workflows/publish.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ on:
44

55

66
jobs:
7+
call-reusable:
8+
uses: ./.github/workflows/checks.yaml
79
pypi-publish:
810
name: upload release to PyPI
911
runs-on: ubuntu-latest
1012
permissions:
11-
# This permission is needed for private repositories.
12-
contents: read
1313
# IMPORTANT: this permission is mandatory for trusted publishing
1414
id-token: write
1515
steps:
1616
- uses: actions/checkout@v4
17-
1817
- uses: pdm-project/setup-pdm@v4
19-
18+
with:
19+
cache: true
2020
- name: Publish package distributions to PyPI
2121
run: pdm publish

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ It connects Agent OS with powerful computer use models like Anthropic's Claude S
302302

303303
**Agent OS** is a custom-built OS controller designed to enhance your automation experience.
304304

305-
It offers powerful features like
305+
It offers powerful features like
306306
- multi-screen support,
307307
- support for all major operating systems (incl. Windows, MacOS and Linux),
308308
- process visualizations,
@@ -311,6 +311,19 @@ It connects Agent OS with powerful computer use models like Anthropic's Claude S
311311
and more exciting features like application selection, in background automation and video streaming are to be released soon.
312312

313313

314+
## Telemetry
315+
316+
By default, we record usage data to detect and fix bugs inside the package and improve the UX of the package including
317+
- version of the `askui` package used
318+
- information about the environment, e.g., operating system, architecture, device id (hashed to protect privacy), python version
319+
- session id
320+
- some of the methods called including (non-sensitive) method parameters and responses, e.g., the click coordinates in `click(x=100, y=100)`
321+
- exceptions (types and messages)
322+
- AskUI workspace and user id if `ASKUI_WORKSPACE_ID` and `ASKUI_TOKEN` are set
323+
324+
If you would like to disable the recording of usage data, set the `ASKUI__VA__TELEMETRY__ENABLED` environment variable to `False`.
325+
326+
314327
## Experimental Features
315328

316329
### Chat

pdm.lock

Lines changed: 79 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[project]
22
name = "askui"
3-
version = "0.2.4"
43
description = "Automate computer tasks in Python"
54
authors = [
65
{name = "askui GmbH", email = "info@askui.com"},
@@ -10,7 +9,7 @@ dependencies = [
109
"grpcio-tools>=1.67.0",
1110
"pillow>=11.0.0",
1211
"pydantic>=2.9.2",
13-
"anthropic>=0.37.1",
12+
"anthropic>=0.49.0",
1413
"rich>=13.9.4",
1514
"pyperclip>=1.9.0",
1615
"gradio-client>=1.4.3",
@@ -20,20 +19,29 @@ dependencies = [
2019
"tenacity>=9.0.0",
2120
"python-dateutil>=2.9.0.post0",
2221
"openai>=1.61.1",
22+
"segment-analytics-python>=2.3.4",
23+
"py-machineid>=0.7.0",
24+
"httpx>=0.28.1",
2325
]
2426
requires-python = ">=3.10"
2527
readme = "README.md"
2628
license = {text = "MIT"}
29+
dynamic = ["version"]
2730

2831
[build-system]
2932
requires = ["hatchling"]
3033
build-backend = "hatchling.build"
3134

35+
[tool.hatch.version]
36+
path = "src/askui/__init__.py"
37+
3238
[tool.pdm]
3339
distribution = true
3440

3541
[tool.pdm.scripts]
3642
test = "pytest"
43+
"test:unit" = "pytest tests/unit"
44+
"test:integration" = "pytest tests/integration"
3745
sort = "isort ."
3846
format = "black ."
3947
lint = "ruff check ."
@@ -47,6 +55,7 @@ test = [
4755
"isort>=6.0.0",
4856
"black>=25.1.0",
4957
"ruff>=0.9.5",
58+
"pytest-mock>=3.14.0",
5059
]
5160
chat = [
5261
"streamlit>=1.42.0",

src/askui/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
"""AskUI Vision Agent"""
2+
3+
__version__ = "0.2.4"
4+
15
from .agent import VisionAgent
26

37
__all__ = [

0 commit comments

Comments
 (0)