Step 0.1: поднял базовый каркас проекта и проверил, что добавленные Python-файлы компилируются

This commit is contained in:
Ilgiz Kalmetyev 2026-04-15 09:21:09 +05:00
parent 865eedde05
commit 2a07617c90
26 changed files with 102 additions and 0 deletions

29
.gitignore vendored Normal file
View File

@ -0,0 +1,29 @@
# Python bytecode
__pycache__/
*.py[cod]
*.pyo
*.pyd
# Packaging
build/
dist/
*.egg-info/
.eggs/
# Virtual environments
.venv/
venv/
env/
# Tool caches
.pytest_cache/
.ruff_cache/
.mypy_cache/
.coverage
htmlcov/
# Local environment files
.env
tmp*
pycache*

11
README.md Normal file
View File

@ -0,0 +1,11 @@
# wf-agent2
Project skeleton for a lightweight Linux event agent.
Current state:
- repository bootstrap only;
- src-layout package skeleton under `src/agent`;
- placeholder directories for protobuf definitions and tests;
- implementation steps will follow the phased plan in `AGENTS.md`.

1
proto/.gitkeep Normal file
View File

@ -0,0 +1 @@

21
pyproject.toml Normal file
View File

@ -0,0 +1,21 @@
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "wf-agent2"
version = "0.1.0"
description = "Linux event agent with collectors, commands, cache, and senders."
readme = "README.md"
requires-python = ">=3.11"
authors = [
{ name = "Codex" }
]
dependencies = []
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools.packages.find]
where = ["src"]

2
src/agent/__init__.py Normal file
View File

@ -0,0 +1,2 @@
"""wf-agent2 application package."""

2
src/agent/app.py Normal file
View File

@ -0,0 +1,2 @@
"""Application bootstrap placeholders."""

2
src/agent/cache/__init__.py vendored Normal file
View File

@ -0,0 +1,2 @@
"""In-memory cache core."""

2
src/agent/cli.py Normal file
View File

@ -0,0 +1,2 @@
"""CLI entrypoint placeholders."""

View File

@ -0,0 +1,2 @@
"""Collector abstractions and implementations."""

View File

@ -0,0 +1,2 @@
"""Command models and coordination."""

View File

@ -0,0 +1,2 @@
"""Core primitives."""

View File

@ -0,0 +1,2 @@
"""Derivation workers and workflows."""

View File

@ -0,0 +1,2 @@
"""Event routing director."""

2
src/agent/env.py Normal file
View File

@ -0,0 +1,2 @@
"""Environment loading placeholders."""

View File

@ -0,0 +1,2 @@
"""Command executors."""

View File

@ -0,0 +1,2 @@
"""Logging, metrics, and health reporting."""

View File

@ -0,0 +1,2 @@
"""Generated protobuf Python package."""

View File

@ -0,0 +1,2 @@
"""Scheduled task coordination."""

View File

@ -0,0 +1,2 @@
"""Outbox draining and transport sender logic."""

View File

@ -0,0 +1,2 @@
"""Outbound transport backends."""

2
src/agent/settings.py Normal file
View File

@ -0,0 +1,2 @@
"""Settings bootstrap placeholders."""

View File

@ -0,0 +1,2 @@
"""Utility helpers."""

1
tests/.gitkeep Normal file
View File

@ -0,0 +1 @@

1
tests/fixtures/.gitkeep vendored Normal file
View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

1
tests/unit/.gitkeep Normal file
View File

@ -0,0 +1 @@