-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
122 lines (112 loc) · 3.76 KB
/
Copy pathpyproject.toml
File metadata and controls
122 lines (112 loc) · 3.76 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "janus-guard"
version = "0.1.0"
description = "System-level security for LLM agents via fine-grained policy enforcement on tool calls."
readme = "README.md"
requires-python = ">=3.10"
license = { text = "MIT" }
keywords = ["llm", "security", "agents", "policy", "tool-calling"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Security",
"Topic :: Software Development :: Libraries",
]
dependencies = [
# Core — the minimum for the standalone PolicyEnforcer, static-policy
# loading, TaintTracker, and the hook-seam adapters. No provider SDKs, no
# SpiceDB/authzed, no web server: those live behind optional extras.
"jsonschema>=4.0",
"pydantic>=2.0",
]
[project.optional-dependencies]
# LLM-based policy generation (janus.policy.generator / janus.generate_policy).
generate = ["openai>=1.0,<2.0", "jinja2>=3.1"]
# SpiceDB-backed ReBAC enforcement with runtime taint tracking (PDEEnforcer).
pde = ["authzed>=1.24.3"]
# Example web demo UI (examples/app.py).
server = ["fastapi>=0.135.1", "uvicorn[standard]>=0.41.0"]
anthropic = ["anthropic>=0.25"]
google = ["google-genai>=1.0"]
bedrock = ["boto3>=1.26"]
# Claude Agent SDK adapter (janus.adapters.claude_agent_sdk). Enforces a policy
# at the SDK's PreToolUse hook / can_use_tool seams. Needs the `claude` CLI too.
claude = ["claude-agent-sdk>=0.2"]
langchain = [
"langchain>=0.3",
"langchain-core>=0.3",
"langchain-openai>=0.2",
]
adk = ["google-genai>=1.0"]
all = [
"openai>=1.0,<2.0",
"jinja2>=3.1",
"authzed>=1.24.3",
"fastapi>=0.135.1",
"uvicorn[standard]>=0.41.0",
"anthropic>=0.25",
"google-genai>=1.0",
"boto3>=1.26",
"claude-agent-sdk>=0.2",
"langchain>=0.3",
"langchain-core>=0.3",
"langchain-openai>=0.2",
]
dev = [
# generate + PDE + server extras included so the full test suite (including
# the generator and SpiceDB/taint paths) and demo webapp can run under
# `janus-guard[dev]`.
"openai>=1.0,<2.0",
"jinja2>=3.1",
"authzed>=1.24.3",
"fastapi>=0.135.1",
"uvicorn[standard]>=0.41.0",
"claude-agent-sdk>=0.2",
"pytest>=7.0",
"pytest-asyncio>=0.21",
"ruff>=0.4",
"mypy>=1.0",
]
docs = [
"mkdocs>=1.5",
"mkdocs-material>=9.0",
"pymdown-extensions>=10.0",
"mkdocs-mermaid2-plugin>=0.7.0",
]
[project.urls]
Documentation = "https://agentic-ai-risk-mitigation.github.io/Janus/"
Repository = "https://github.com/Agentic-AI-Risk-Mitigation/Janus"
Issues = "https://github.com/Agentic-AI-Risk-Mitigation/Janus/issues"
[tool.hatch.build.targets.sdist]
# Internal working material — not part of the published source distribution.
exclude = ["plans/", ".claude/"]
[tool.hatch.build.targets.wheel]
packages = ["janus"]
# ---------------------------------------------------------------------------
# Ruff (linting + formatting)
# ---------------------------------------------------------------------------
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "I", "UP"]
ignore = ["E501"]
# ---------------------------------------------------------------------------
# Mypy
# ---------------------------------------------------------------------------
[tool.mypy]
python_version = "3.10"
strict = false
ignore_missing_imports = true
# ---------------------------------------------------------------------------
# Pytest
# ---------------------------------------------------------------------------
[tool.pytest.ini_options]
asyncio_mode = "auto"
pythonpath = ["."]