File size: 1,878 Bytes
70f2179
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
df50ac7
 
 
 
70f2179
 
 
 
 
 
5cc6087
 
 
70f2179
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

[build-system]
requires = ["setuptools>=45", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "openenv-opencode-env"
version = "0.1.0"
description = "OpenCode coding-agent environment for OpenEnv — runs the OpenCode CLI in an E2B sandbox against any OpenAI-compatible LLM, optionally capturing per-token logprobs."
requires-python = ">=3.10"
dependencies = [
    # Core OpenEnv (server + MCP) — pulled from the ``opencode-harness``
    # branch of adithya-s-k/OpenEnv so we get RFC 5's ``openenv.core.harness``
    # module (PR #603), which is not yet on PyPI's ``openenv-core``.
    "openenv-core[core] @ git+https://github.com/adithya-s-k/OpenEnv.git@opencode-harness",
    "fastapi>=0.115.0",
    "uvicorn[standard]>=0.24.0",
    "pydantic>=2.0.0",
    "fastmcp>=2.0.0",
    "requests>=2.31.0",

    # Web UI — pin to current major (6.x) to match local dev and avoid
    # behavior drift on Space rebuilds.
    "gradio>=6.0.0",

    # OpenCode harness primitive — sandbox + proxy + agent driver
    "httpx>=0.27.0",
    "e2b>=1.0.0",
]

[project.optional-dependencies]
dev = [
    "pytest>=8.0.0",
    "pytest-asyncio>=0.23.0",
    "pytest-cov>=4.0.0",
]

[project.scripts]
# Server entrypoint — enables ``uv run --project . server``.
server = "opencode_env.server.app:main"

[tool.setuptools]
include-package-data = true
packages = [
    "opencode_env",
    "opencode_env.sandbox",
    "opencode_env.server",
    "opencode_env.tests",
]
package-dir = { "opencode_env" = ".", "opencode_env.sandbox" = "sandbox", "opencode_env.server" = "server", "opencode_env.tests" = "tests" }

[tool.setuptools.package-data]
opencode_env = ["**/*.md"]