spidey121 commited on
Commit
54a7970
Β·
1 Parent(s): e77506b

fix multi mode deployment

Browse files
Files changed (4) hide show
  1. README.md +21 -7
  2. pyproject.toml +7 -8
  3. server/app.py +7 -0
  4. uv.lock +0 -0
README.md CHANGED
@@ -177,16 +177,30 @@ ai-deception-openenv/
177
  β”‚ β”œβ”€β”€ hard.py
178
  β”‚ └── test_tasks.py
179
  β”‚
180
- β”œβ”€β”€ inference.py
181
- β”œβ”€β”€ app.py
182
- β”œβ”€β”€ models.py
183
- β”œβ”€β”€ openenv.yaml
184
- β”œβ”€β”€ Dockerfile
185
- β”œβ”€β”€ requirements.txt
186
- β”œβ”€β”€ README.md
 
 
 
 
 
187
  β”œβ”€β”€ .gitignore
188
  └── .gitattributes
189
 
 
 
 
 
 
 
 
 
 
190
 
191
  βœ… OpenEnv Compliance
192
  reset() implemented
 
177
  β”‚ β”œβ”€β”€ hard.py
178
  β”‚ └── test_tasks.py
179
  β”‚
180
+ β”œβ”€β”€ server/
181
+ β”‚ └── app.py # OpenEnv server entry point
182
+ β”‚
183
+ β”œβ”€β”€ inference.py # Baseline inference script
184
+ β”œβ”€β”€ app.py # Flask app
185
+ β”œβ”€β”€ models.py # Pydantic models
186
+ β”œβ”€β”€ openenv.yaml # OpenEnv configuration
187
+ β”œβ”€β”€ Dockerfile # Container setup
188
+ β”œβ”€β”€ requirements.txt # Dependencies
189
+ β”œβ”€β”€ pyproject.toml # Multi-mode deployment config
190
+ β”œβ”€β”€ uv.lock # Dependency lock file
191
+ β”œβ”€β”€ README.md # Documentation
192
  β”œβ”€β”€ .gitignore
193
  └── .gitattributes
194
 
195
+ This environment implements a real-world AI cyber deception system:
196
+
197
+ - env/ β†’ Core simulation environment
198
+ - tasks/ β†’ Graded tasks (easy β†’ medium β†’ hard)
199
+ - server/ β†’ OpenEnv server entrypoint
200
+ - inference.py β†’ Baseline AI agent
201
+ - openenv.yaml β†’ OpenEnv metadata
202
+ - models.py β†’ Typed API models
203
+ - Dockerfile β†’ HuggingFace deployment
204
 
205
  βœ… OpenEnv Compliance
206
  reset() implemented
pyproject.toml CHANGED
@@ -1,21 +1,20 @@
1
  [project]
2
  name = "ai-deception-openenv"
3
  version = "0.1.0"
4
- description = "AI Cyber Deception OpenEnv environment"
5
- readme = "README.md"
6
- requires-python = ">=3.9"
7
 
8
  dependencies = [
9
  "flask",
10
  "requests",
11
  "pydantic",
12
  "openai",
13
- "uvicorn"
14
  ]
15
 
 
 
 
16
  [build-system]
17
- requires = ["setuptools>=61.0"]
18
  build-backend = "setuptools.build_meta"
19
-
20
- [tool.setuptools]
21
- packages = ["env", "tasks"]
 
1
  [project]
2
  name = "ai-deception-openenv"
3
  version = "0.1.0"
4
+ description = "AI Cyber Deception OpenEnv"
5
+ requires-python = ">=3.10"
 
6
 
7
  dependencies = [
8
  "flask",
9
  "requests",
10
  "pydantic",
11
  "openai",
12
+ "openenv-core>=0.2.0"
13
  ]
14
 
15
+ [project.scripts]
16
+ server = "server.app:main"
17
+
18
  [build-system]
19
+ requires = ["setuptools", "wheel"]
20
  build-backend = "setuptools.build_meta"
 
 
 
server/app.py ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ from env.fake_server import run_server
2
+
3
+ def main():
4
+ run_server()
5
+
6
+ if __name__ == "__main__":
7
+ main()
uv.lock ADDED
The diff for this file is too large to render. See raw diff