Files
openworker/pyproject.toml
T
Devika Verma 5b74020108 feat(observability): Issues tab, the OB-3 checks and the 1.2 fields they read
Phase 2, OB-3. Every finished turn is checked against fixed rules (the
shared signals.yaml, 19 checks) and the result is stored with the turn.
The Steps panel gets an Issues tab, and the sidebar an amber ring for
warnings not yet looked at.

- The engine records the recording format 1.2 fields the checks read:
  the arguments' hash (RFC 8785), repeat_ok, result_error, error_kind,
  reaches_network and the todo plan on tool steps; max_iterations on the
  turn; max_output on model steps; inbox_at on waits; whether the
  machine expects a sandbox in the stamp.
- coworker/observability/signals.py holds the checks, the same ones that
  were validated on the in-app recordings and the shared golden test.
- The checks run when a turn ends; a result made by an older
  signals.yaml is worked out again on read. New endpoints serve a
  turn's issues and mark a session's issues seen.
- The Issues tab groups issues by check, warnings first, with the step's
  command and output line and Go to step; "Checked and fine" is folded.
- tests: the Phase 2 golden test (38 scenarios and hash vectors), the
  1.2 fields from a real turn, and the endpoints through the server.
2026-11-02 22:17:24 +05:30

109 lines
4.2 KiB
TOML

[build-system]
requires = ["setuptools>=68"]
build-backend = "setuptools.build_meta"
[project]
name = "openworker"
version = "0.3.4"
description = "OpenWorker — an open-source AI coworker you govern. The headless runtime and CLI."
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.10"
dependencies = [
"openai>=1.0",
"anthropic>=0.40", # native Claude Messages API provider
"google-genai>=1.0", # native Gemini provider
"google-auth>=2.23", # Vertex credentials (service account / ADC / MaaS bearer)
"textual>=1.0",
"fastapi>=0.110",
"uvicorn[standard]>=0.27",
# aisuite (tool metadata, toolkits, tracing). 0.2.0 is the first PyPI release with those modules.
"aisuite>=0.2.0",
"docstring_parser",
"pyyaml>=6", # persona manifest frontmatter (YAML)
"pydantic>=2",
"mcp>=1.28.1,<2", # MCP client (stdio + streamable-http); floor >=1.28.1 avoids PYSEC-2026-3481/3482/3483 (fixed in 1.27.2/1.28.1); <2 since 2.0.0 removed streamablehttp_client
"httpx>=0.27", # sync outbound senders for messaging connectors (send_message tool)
"websockets>=13", # managed Slack relay client transport (relay_client.py) + remote-home joiner
"cryptography>=42", # ed25519 machine identity for remote homes (already transitive via google-auth)
"ddgs>=9", # keyless default web-search provider (DuckDuckGo); Tavily/Brave use httpx
"croniter>=2", # cron next-fire math for the automation scheduler
# PDF attachments for models without native PDF support (pdf_support.py):
# pypdf = pure-python text extraction; pypdfium2 = page rasterization (BSD pdfium,
# ships its own libpdfium — NOT PyMuPDF, whose AGPL license can't ride in the DMG).
"pypdf>=5",
"pypdfium2>=4",
# IANA tz database for zoneinfo. Windows ships no system tz db, so without this every
# named schedule timezone (UTC, Asia/Kolkata, …) silently falls back to local time.
"tzdata; sys_platform == 'win32'",
# tomllib landed in the 3.11 stdlib; on the 3.10 floor config.py falls back to tomli.
"tomli>=2; python_version < '3.11'",
]
[project.urls]
Homepage = "https://openworker.com"
Source = "https://github.com/andrewyng/openworker"
[project.optional-dependencies]
dev = ["pytest>=8", "pytest-asyncio", "pytest-cov>=5", "httpx", "httpx2"]
# Inbound messaging listeners (outbound send_message needs only httpx, already a core dep).
# aiohttp is slack-bolt's Socket Mode transport at runtime (and the FakeSlack test harness
# drives the real handler) — declare it so CI installs it, not just transitively.
messaging = ["python-telegram-bot>=21", "slack-bolt>=1.18", "aiohttp>=3.9"]
# Interactive Cowork browser automation.
browser = ["playwright>=1.44"]
# AWS Bedrock provider (lazy-imported; desktop builds bundle it, pip users opt in).
bedrock = ["boto3>=1.34"]
# OpenShell sandbox provider: the runner's stream is a gRPC call to the OpenShell gateway.
openshell = ["grpcio>=1.60"]
# One command on the path. The server, the connectors tool, the acceptor and the team
# board stay runnable as modules (`python -m coworker.server.run`, …) for development.
[project.scripts]
openworker = "coworker.cli:main"
[tool.setuptools.packages.find]
where = ["."]
include = ["coworker*"]
[tool.setuptools.package-data]
coworker = [
"personas/builtin/*.md",
"personas/builtin/*/manifest.md",
"personas/builtin/*/skills/*/SKILL.md",
"headless/*.yaml",
"observability/*.yaml",
"providers/*.json",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
# The reviewer-eval tests import from the repo-root scripts/ package; the pytest
# console script (CI) does not put the root on sys.path the way `python -m pytest` does.
pythonpath = ["."]
asyncio_mode = "auto"
[tool.coverage.run]
source = ["coworker"]
branch = true
omit = [
"*/tests/*",
"*/__pycache__/*",
"*/migrations/*",
]
[tool.coverage.report]
show_missing = true
skip_covered = false
precision = 1
# Ratchet floor — only goes up, never down.
# Run `pytest tests --cov=coworker --cov-report=term-missing` to see current coverage.
fail_under = 0
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise NotImplementedError",
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
]