Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
276 lines (262 loc) · 10 KB
/
Copy pathpyproject.toml
File metadata and controls
276 lines (262 loc) · 10 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
[project]
name = "openadapt"
version = "1.27.0"
description = "Give your agent a program, not a mouse: the open-source, verified execution layer for computer-use agents. Compile one run into a program that makes no model calls, reads each save back from the system of record, and stops instead of guessing."
# The package description is README.md with its lifecycle block swapped for a
# link to the live record; see hatch_build.py.
dynamic = ["readme"]
requires-python = ">=3.11"
license = "MIT"
authors = [
{name = "Richard Abrich", email = "richard@openadapt.ai"}
]
keywords = [
"computer-use",
"computer-use-agents",
"ai-agents",
"mcp",
"model-context-protocol",
"agent-verification",
"audit-trail",
"receipts",
"gui",
"automation",
"workflow",
"verification",
"desktop",
"rdp",
"citrix",
"emr",
"data-entry",
"mcp",
"a2a",
"agent2agent",
"agent-card",
"agent-handoff",
"receipts",
]
classifiers = [
"Intended Audience :: Developers",
"Intended Audience :: Financial and Insurance Industry",
"Intended Audience :: Healthcare Industry",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Office/Business",
"Topic :: Software Development :: Libraries :: Python Modules",
]
# Base install: the CLI, the flagship demonstration compiler, and the browser
# driver used by the bundled tutorial. `pip install openadapt` must make the
# public `openadapt quickstart` command work without a second package install.
# OpenAdapt asks Playwright to download Chromium on the first browser action.
# Linux system libraries remain host prerequisites; `openadapt doctor` and Flow
# check them before the browser download. All other capabilities (capture, ml,
# evals, ...) remain opt-in extras.
#
# Python 3.13 and newer: the engine (openadapt-flow), the agent bridge, and
# Flow's OCR dependency (rapidocr-onnxruntime) all publish Requires-Python
# <3.13. When this launcher also capped Requires-Python at <3.13, pip on 3.13
# and 3.14 backtracked to openadapt 1.3.0, the newest release with no cap and
# no engine dependency, and installed an unrelated pre-compiler CLI with no
# error. The launcher itself runs on any Python >=3.11, so it now installs
# everywhere and gates every engine dependency behind the marker below. On an
# unsupported interpreter the CLI prints how to install with Python 3.12
# instead of running. Widen the marker (and the classifiers, the CI guard
# matrix, and `_SUPPORTED_PYTHON` in openadapt/cli.py) together, and only
# after Flow and the agent bridge publish releases that support it.
# tests/test_python_support.py keeps these in step.
dependencies = [
"click>=8.0.0",
# The quickstart's terminal view (MIT). Pure Python; the engine doesn't
# depend on it. Gated like the engine: without it the quickstart can't run.
"rich>=13.0.0; python_version < '3.13'",
# Every Flow floor is 4.0.0: Launcher 1.24 ships encryption at rest by
# default (#2423), receipts, agent-to-agent handoffs, `openadapt wrap`,
# `openadapt flight`, and the headless quickstart (tests/test_flow_floor.py).
# Flow 3 moved its vision stack to the `vision` extra; its `browser` and
# other surface extras include it, and the `flow` extra below names it.
"openadapt-flow[browser,hosted]>=4.1.0,<5.0.0; python_version < '3.13'",
# Shared portable receipt/contract models (openadapt_types.receipt).
"openadapt-types>=0.24.2,<0.25.0; python_version < '3.13'",
# Day-1 partner kit: `pip install openadapt` must expose the
# `openadapt-agent` command without a second package. 2.2.4 widens its
# openadapt-flow cap to <5 so it resolves cleanly alongside Flow 4.0.0.
"openadapt-agent>=2.2.4,<3; python_version < '3.13'",
]
[project.optional-dependencies]
# Individual packages
# `openadapt wrap` runs OpenAdapt's built-in Claude agent on a cache miss:
# `uvx --python 3.12 'openadapt[wrap]@latest' wrap --example`. The base
# launcher stays lean; wrap imports the SDK only when it runs the agent.
wrap = [
"anthropic>=0.40; python_version < '3.13'",
]
browser = [
# Kept as a compatibility alias for existing install commands. The base
# launcher now selects this Flow contract because the bundled quickstart
# uses the browser. OpenAdapt requests Chromium on first browser use after
# the host dependency check passes.
"openadapt-flow[browser]>=4.1.0,<5.0.0; python_version < '3.13'",
]
# Local human desktop recording. Flow owns the supported capture adapter
# contract; the direct floor prevents an already-installed pre-1.0 Capture
# from satisfying the launcher's public recording path. FFmpeg remains a
# separately provisioned executable, not a Python-package dependency.
capture = [
"openadapt-capture>=1.2.0,<2.0.0",
"openadapt-flow[capture]>=4.1.0,<5.0.0; python_version < '3.13'",
]
# Replay substrate dependencies stay separate from capture: recording observes
# the human on the local interactive desktop, while replay may target a WAA
# agent, a native app, or a remote framebuffer.
windows = [
"openadapt-flow[windows]>=4.1.0,<5.0.0; python_version < '3.13'",
]
macos = [
"openadapt-flow[macos]>=4.1.0,<5.0.0; sys_platform == 'darwin' and python_version < '3.13'",
]
linux = [
"openadapt-flow[linux]>=4.1.0,<5.0.0; sys_platform == 'linux' and python_version < '3.13'",
]
rdp = [
"openadapt-flow[rdp]>=4.1.0,<5.0.0; python_version < '3.13'",
]
ml = [
"openadapt-ml>=0.2.0",
]
evals = [
"openadapt-evals>=0.1.0",
]
viewer = [
"openadapt-viewer>=0.1.0",
]
grounding = [
"openadapt-grounding>=0.1.0",
]
retrieval = [
"openadapt-retrieval>=0.1.0",
]
privacy = [
"openadapt-flow[privacy]>=4.1.0,<5.0.0; python_version < '3.13'",
]
# `flow` now ships in the base install (see `dependencies` above). This
# extra is kept for backward compatibility so `pip install openadapt[flow]`
# and the `all` bundle still resolve.
flow = [
"openadapt-flow[vision]>=4.1.0,<5.0.0; python_version < '3.13'",
]
# `openadapt-agent` also ships in the base install. Keep the extra so
# `pip install openadapt[agent]` still resolves.
agent = [
"openadapt-agent>=2.2.4,<3; python_version < '3.13'",
]
# The commit-boundary and shadow-to-autopilot runtime behind `openadapt kernel`.
# An alpha, so it is opt-in (`pip install 'openadapt[kernel]'`) and capped
# below its next minor release, which may break its API.
kernel = [
"openadapt-kernel>=0.1.0,<0.2",
]
# Agent-to-agent handoffs over the A2A (Agent2Agent) protocol:
# `openadapt agent serve --a2a`. Handoffs over MCP, HTTP and files need no extra.
# Listed directly, not as openadapt-flow[a2a], so the extra resolves the same
# whichever Flow release is installed; keep in step with Flow's a2a extra.
a2a = [
"a2a-sdk[http-server]>=1.3.1,<2; python_version < '3.13'",
"uvicorn>=0.29; python_version < '3.13'",
]
# Bundles
core = [
"openadapt[capture,ml,evals,viewer]",
]
all = [
# Cross-platform clients are always safe to resolve. Native bindings remain
# conditional so `openadapt[all]` never pulls PyObjC onto Linux/Windows or
# PyGObject onto macOS/Windows.
"openadapt[browser,core,grounding,retrieval,privacy,flow,windows,rdp,agent]",
"openadapt[macos]; sys_platform == 'darwin'",
"openadapt[linux]; sys_platform == 'linux'",
]
dev = [
"build>=1.2.0",
"cbor2>=5.6,<6; python_version < '3.13'",
"cwt>=3.3,<4; python_version < '3.13'",
"pytest>=8.0.0",
"ruff>=0.1.0",
]
[project.scripts]
openadapt = "openadapt.cli:main"
[project.urls]
Homepage = "https://openadapt.ai"
Documentation = "https://docs.openadapt.ai"
Repository = "https://github.com/OpenAdaptAI/OpenAdapt"
"Canonical Engine" = "https://github.com/OpenAdaptAI/OpenAdapt/tree/main/packages/flow"
"Bug Tracker" = "https://github.com/OpenAdaptAI/OpenAdapt/issues"
[build-system]
requires = ["hatchling==1.32.4"]
build-backend = "hatchling.build"
[tool.hatch.metadata.hooks.custom]
[tool.hatch.build.targets.wheel]
packages = ["openadapt"]
# Keep the public source archive as narrow as the launcher package. Hatch's
# broad default selection otherwise picks up ignored workstation artifacts
# such as `.env`, local databases, screenshots, and model-call caches.
[tool.hatch.build.targets.sdist]
include = [
"/openadapt",
"/hatch_build.py",
"/README.md",
"/LICENSE",
"/CHANGELOG.md",
"/pyproject.toml",
]
exclude = [
"/.cache",
"/.claude",
"/.env",
"/.worktrees",
"/build",
"/dist",
"/docs",
"/legacy",
"/openadapt.db",
"/output.png",
]
[tool.uv]
# Wheel-only dependencies drop old Pythons (onnxruntime 1.24 has no cp310
# wheel and no sdist), and a universal lock does not notice: it locked 1.24.3
# for Python 3.10, which no 3.10 interpreter can install. These environments
# make the resolver keep a version with a wheel for the oldest supported
# Python on each platform CI runs.
required-environments = [
"python_version == '3.11' and sys_platform == 'linux'",
"python_version == '3.11' and sys_platform == 'darwin'",
"python_version == '3.11' and sys_platform == 'win32'",
]
[tool.ruff]
line-length = 88
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "I", "W"]
ignore = ["E501"]
[tool.pytest.ini_options]
testpaths = ["tests"]
filterwarnings = [
"ignore::DeprecationWarning",
]
[tool.semantic_release]
version_toml = ["pyproject.toml:project.version"]
branch = "main"
commit_message = "{version}\n\nAutomatically generated by python-semantic-release"
# Dependencies are reviewed and locked before merge; semantic-release changes
# only the project version. Refresh that editable root in place with a
# dependency-free, offline script, then stage it in the generated version
# commit before the separate publish step builds it.
build_command = """
python scripts/verify_release_lock.py --write
git add uv.lock
"""
[tool.semantic_release.commit_parser_options]
allowed_tags = ["build", "chore", "ci", "docs", "feat", "fix", "perf", "refactor", "style", "test"]
minor_tags = ["feat"]
patch_tags = ["fix", "perf"]