-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpyproject.toml
More file actions
120 lines (107 loc) · 2.89 KB
/
Copy pathpyproject.toml
File metadata and controls
120 lines (107 loc) · 2.89 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
[project]
name = "xsafeclaw"
version = "1.1.1"
description = "XSafeClaw - Keeping Your Claw Safe. Real-time monitoring and security for OpenClaw, Hermes, and nanobot AI agents."
readme = "README.md"
requires-python = ">=3.11"
keywords = [
"agent-security",
"ai-safety",
"openclaw",
"hermes",
"hermes-agent",
"nanobot",
"multi-runtime",
"guardrails",
"fastapi",
]
classifiers = [
"Development Status :: 4 - Beta",
"Framework :: FastAPI",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Security",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
"fastapi>=0.109.0",
"uvicorn[standard]>=0.27.0",
"sqlalchemy>=2.0.25",
"aiosqlite>=0.19.0",
"pydantic>=2.5.3",
"pydantic-settings>=2.1.0",
"watchdog>=4.0.0",
"psutil>=5.9.0",
"python-dotenv>=1.0.0",
"httpx>=0.26.0",
"typer>=0.9.0",
"rich>=13.7.0",
"greenlet>=3.3.1",
"pynvml>=13.0.1",
"cryptography>=46.0.5",
"websockets>=16.0",
]
[project.scripts]
xsafeclaw = "xsafeclaw.cli:app"
[project.urls]
Homepage = "https://xsafeclaw.ai"
Repository = "https://github.com/XSafeAI/XSafeClaw"
Documentation = "https://github.com/XSafeAI/XSafeClaw/blob/main/docs/installation.md"
Issues = "https://github.com/XSafeAI/XSafeClaw/issues"
[project.optional-dependencies]
nanobot = [
"nanobot-ai",
]
dev = [
"pytest>=7.4.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.1.0",
"black>=23.12.0",
"ruff>=0.1.9",
"mypy>=1.8.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.hooks.custom]
# hatch_build.py at project root — auto-runs `npm run build` before packaging
# so src/xsafeclaw/static/{index,agent-town,agent-valley}.html are always present.
[tool.hatch.build.targets.wheel]
packages = ["src/xsafeclaw"]
artifacts = [
"src/xsafeclaw/static/index.html",
"src/xsafeclaw/static/agent-town.html",
"src/xsafeclaw/static/agent-valley.html",
"src/xsafeclaw/static/assets/**",
]
[tool.hatch.build.targets.wheel.force-include]
"plugins" = "plugins"
[tool.hatch.build.targets.sdist]
exclude = ["frontend"]
artifacts = [
"src/xsafeclaw/static/index.html",
"src/xsafeclaw/static/agent-town.html",
"src/xsafeclaw/static/agent-valley.html",
"src/xsafeclaw/static/assets/**",
]
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "I", "N", "W", "UP"]
ignore = []
[tool.black]
line-length = 100
target-version = ["py311"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false