-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
213 lines (196 loc) · 6.84 KB
/
Copy pathpyproject.toml
File metadata and controls
213 lines (196 loc) · 6.84 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
[project]
name = "ace-core"
version = "0.8.2"
description = "Open Intelligence Operating System with a guided Intelligence Builder"
readme = "README.md"
license = "Apache-2.0"
license-files = ["LICENSE", "NOTICE"]
authors = [{ name = "Eamirian" }]
requires-python = ">=3.12,<3.13"
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"fastapi>=0.136", # starlette>=1.0.1 compat (PYSEC-2026-161)
"uvicorn[standard]>=0.30",
"surrealdb>=2.0,<3.0",
"aiohttp>=3.14.3", # PYSEC-2026-3545/3546/3547 fixed in 3.14.3; SurrealDB uses aiohttp
"pydantic-settings>=2.0",
"PyJWT[crypto]>=2.13", # PYSEC-2026-175/177/178/179 fixed in 2.13.0
"cryptography>=50.0.0", # PYSEC-2026-3552 fixed in 50.0.0
"anthropic>=0.40",
"httpx>=0.27",
"click>=8.0",
"rich>=13.0",
"apscheduler>=3.11.2",
"croniter>=6.2.2",
"gitpython>=3.1.58", # Security floor: GHSA-9rj7-rf2p-w77r and related path/config injection advisories.
"h2>=4.4.1", # Security floor: CVE-2026-71554 (transitive httpx HTTP/2 dependency).
"sse-starlette>=2.0",
"fastmcp>=2.0",
"mcp>=1.28.1", # CVE-2026-59950 fixed in 1.28.1
"slowapi>=0.1.9",
"claude-agent-sdk>=0.1.0",
"onnxruntime>=1.17.0",
"tokenizers>=0.15.0",
"watchdog>=4.0.0",
"networkx>=3.0",
"scipy>=1.12",
"pyyaml>=6.0",
"pydriller>=2.6",
"ast-grep-py>=0.42.1",
"tree-sitter-language-pack>=1.2.0",
"qdrant-client>=1.7",
"curl-cffi>=0.7",
"lxml>=5.0",
"ddgs>=6.0",
"msgspec>=0.20.0",
"browserforge>=1.2.4",
"prometheus-client>=0.20",
"prometheus-fastapi-instrumentator>=7.0",
"opentelemetry-sdk>=1.20",
"opentelemetry-exporter-otlp-proto-grpc>=1.20",
"opentelemetry-instrumentation-fastapi>=0.45b0",
"opentelemetry-instrumentation-httpx>=0.45b0",
"python-docx>=1.1.0",
"pycrdt-websocket>=0.16.1",
"jinja2>=3.1",
]
[project.urls]
Homepage = "https://github.com/augmented-cognition-engine/core"
Documentation = "https://github.com/augmented-cognition-engine/core#readme"
Repository = "https://github.com/augmented-cognition-engine/core"
Issues = "https://github.com/augmented-cognition-engine/core/issues"
Changelog = "https://github.com/augmented-cognition-engine/core/blob/main/CHANGELOG.md"
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-asyncio>=0.24",
"httpx>=0.27",
]
discord = [
"discord.py>=2.3",
]
browser = [
"playwright>=1.40",
"patchright>=1.40",
"scrapling>=0.3",
"msgspec>=0.18",
"browserforge>=1.0",
]
# Optional 1.3B-parameter CodeSage backend. The default ONNX embedder does not
# need PyTorch; keeping this extra explicit avoids multi-gigabyte CUDA packages
# in the standard wheel/container install.
codesage = [
"sentence-transformers>=3.0",
]
# Optional LLM router extras — NOT part of the default install (the kernel's
# dependency set must stay lean and pip-audit-clean). Lazy-imported by
# core/engine/core/llm_litellm.py / llm_anyllm.py; activated only by the
# explicit LITELLM_MODEL / ANYLLM_MODEL settings.
litellm = [
# SECURITY FLOOR >=1.83.7: the March 2026 PyPI supply-chain compromise of
# litellm itself (1.82.7/1.82.8 shipped a credential stealer + RCE) and
# CVE-2026-42208 (pre-auth SQLi, CVSS 9.3, exploited in the wild within
# 36h of disclosure) are both fixed in 1.83.7 — never resolve below it.
"litellm>=1.83.7",
]
any-llm = [
"any-llm-sdk>=1.17", # Mozilla AI, Apache-2.0 — license-matched second router
]
[project.scripts]
ace = "core.engine.cli.main:cli"
ace-mcp = "core.engine.mcp.server:main"
ace-mcp-client = "ace_mcp_client.server:main"
[tool.pytest.ini_options]
# Only real test trees. Without this, bare `pytest` collects production modules
# whose names match the test glob (scripts/spec_lib/test_runner.py) and imports
# them under wrong module names with `core/` prepended to sys.path (no
# core/__init__.py). Two historical instances of the footgun are fixed:
# core/engine/intelligence/test_ref_indexer.py and
# core/engine/verification/checks/test_execution.py were renamed (ref_indexer.py,
# execution_check.py), and the worst case — core/mcp shadowing the `mcp` SDK —
# was retired when the thin client was extracted to top-level ace_mcp_client.
testpaths = ["tests", "extensions"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "session"
asyncio_default_test_loop_scope = "session"
markers = [
"unit: pure function tests, no mocks or DB",
"integration: tests with mocked DB pool",
"api: API route tests via httpx ASGI transport",
"e2e: end-to-end tests requiring live SurrealDB",
"requires_extensions: test depends on built-in extensions being loaded; excluded from the naked-kernel lane",
]
[tool.uv]
package = true
[build-system]
requires = ["setuptools==83.0.0"]
build-backend = "build_backend"
backend-path = ["."]
[tool.setuptools.packages.find]
include = ["ace", "ace.*", "ace_mcp_client*", "core*", "extensions*", "scripts*", "evaluations*"]
[tool.setuptools.package-data]
"ace" = ["py.typed", "intelligence/schemas/*.json"]
"core.schema" = ["*.surql"]
"core.engine.onboarding" = ["*.json"]
"core.engine.runtime" = ["*.yml", "*.example"]
"core.engine.grounded_state" = ["fixtures/*.json"]
"core.engine.cognition.recipes" = ["*.yaml"]
"core.engine.generation" = ["templates/*.j2"]
"core.engine.reports" = ["templates/*.html", "templates/*.css", "static/*.js"]
"core.engine.atrium" = ["static/index.html", "static/*.json", "static/assets/*", "static/brand/*"]
"evaluations" = ["*.md", "fixtures/*.json", "results/*.json", "results/*.md"]
[tool.setuptools.data-files]
"share/doc/ace" = [
"README.md",
"ROADMAP.md",
"CONTRIBUTING.md",
"SECURITY.md",
"CHANGELOG.md",
]
"share/doc/ace/docs" = [
"docs/*.md",
]
"share/doc/ace/docs/evidence" = [
"docs/evidence/*.md",
]
"share/doc/ace/docs/design" = [
"docs/design/*.md",
]
# Extensions discovered by core.engine.extensions.load_extensions().
# Built-in extensions are declared here; external extensions ship their own
# ace.extensions entry point (see docs/build-your-first-extension.md).
[project.entry-points."ace.extensions"]
product = "extensions.reference.extension:ProductExtension"
[dependency-groups]
dev = [
"build==1.5.0",
"pytest>=9.0.2",
"pytest-asyncio>=1.3.0",
"ruff>=0.9",
"pytest-cov>=6.0",
"pip-audit>=2.7",
"pre-commit>=4.0",
"setuptools>=68",
]
[tool.coverage.run]
source = ["engine"]
omit = ["engine/cli/*"]
[tool.coverage.report]
show_missing = true
skip_empty = true
[tool.ruff]
line-length = 120
target-version = "py312"
extend-exclude = [".claude"]
[tool.ruff.lint]
select = ["E", "F", "I"]
ignore = ["E402", "E501", "E701"]
[tool.ruff.lint.isort]
known-first-party = ["engine"]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["F811", "F841"]
"engine/api/main.py" = ["F401"]