2026-02-19 19:05:01 +00:00
|
|
|
[build-system]
|
2026-02-28 13:12:14 -05:00
|
|
|
requires = ["poetry-core>=1.0.0"]
|
|
|
|
|
build-backend = "poetry.core.masonry.api"
|
2026-02-19 19:05:01 +00:00
|
|
|
|
2026-02-28 13:12:14 -05:00
|
|
|
[tool.poetry]
|
2026-02-19 19:05:01 +00:00
|
|
|
name = "timmy-time"
|
|
|
|
|
version = "1.0.0"
|
|
|
|
|
description = "Mission Control for sovereign AI agents"
|
|
|
|
|
readme = "README.md"
|
2026-02-28 13:12:14 -05:00
|
|
|
license = "MIT"
|
|
|
|
|
packages = [
|
|
|
|
|
{ include = "config.py", from = "src" },
|
2026-03-02 07:31:15 -05:00
|
|
|
{ include = "brain", from = "src" },
|
2026-02-28 13:12:14 -05:00
|
|
|
{ include = "dashboard", from = "src" },
|
|
|
|
|
{ include = "infrastructure", from = "src" },
|
|
|
|
|
{ include = "integrations", from = "src" },
|
|
|
|
|
{ include = "spark", from = "src" },
|
|
|
|
|
{ include = "timmy", from = "src" },
|
|
|
|
|
{ include = "timmy_serve", from = "src" },
|
2026-02-19 19:05:01 +00:00
|
|
|
]
|
|
|
|
|
|
2026-02-28 13:12:14 -05:00
|
|
|
[tool.poetry.dependencies]
|
|
|
|
|
python = ">=3.11,<4"
|
|
|
|
|
agno = { version = ">=1.4.0", extras = ["sqlite"] }
|
|
|
|
|
ollama = ">=0.3.0"
|
|
|
|
|
openai = ">=1.0.0"
|
|
|
|
|
fastapi = ">=0.115.0"
|
|
|
|
|
uvicorn = { version = ">=0.32.0", extras = ["standard"] }
|
|
|
|
|
jinja2 = ">=3.1.0"
|
|
|
|
|
httpx = ">=0.27.0"
|
|
|
|
|
python-multipart = ">=0.0.12"
|
|
|
|
|
typer = ">=0.12.0"
|
|
|
|
|
rich = ">=13.0.0"
|
|
|
|
|
pydantic-settings = ">=2.0.0"
|
|
|
|
|
# Optional extras
|
|
|
|
|
redis = { version = ">=5.0.0", optional = true }
|
2026-03-05 12:09:51 -05:00
|
|
|
celery = { version = ">=5.3.0", extras = ["redis"], optional = true }
|
2026-02-28 13:12:14 -05:00
|
|
|
python-telegram-bot = { version = ">=21.0", optional = true }
|
|
|
|
|
"discord.py" = { version = ">=2.3.0", optional = true }
|
|
|
|
|
airllm = { version = ">=2.9.0", optional = true }
|
|
|
|
|
pyttsx3 = { version = ">=2.90", optional = true }
|
2026-03-05 18:07:59 -05:00
|
|
|
sentence-transformers = { version = ">=2.0.0", optional = true }
|
|
|
|
|
numpy = { version = ">=1.24.0", optional = true }
|
|
|
|
|
requests = { version = ">=2.31.0", optional = true }
|
|
|
|
|
GitPython = { version = ">=3.1.40", optional = true }
|
2026-02-28 15:01:48 -05:00
|
|
|
pytest = { version = ">=8.0.0", optional = true }
|
|
|
|
|
pytest-asyncio = { version = ">=0.24.0", optional = true }
|
|
|
|
|
pytest-cov = { version = ">=5.0.0", optional = true }
|
|
|
|
|
pytest-timeout = { version = ">=2.3.0", optional = true }
|
|
|
|
|
selenium = { version = ">=4.20.0", optional = true }
|
2026-02-28 16:11:58 -05:00
|
|
|
pytest-randomly = { version = ">=3.16.0", optional = true }
|
2026-02-28 19:27:48 -05:00
|
|
|
pytest-xdist = { version = ">=3.5.0", optional = true }
|
2026-02-28 13:12:14 -05:00
|
|
|
|
|
|
|
|
[tool.poetry.extras]
|
|
|
|
|
telegram = ["python-telegram-bot"]
|
|
|
|
|
discord = ["discord.py"]
|
|
|
|
|
bigbrain = ["airllm"]
|
|
|
|
|
voice = ["pyttsx3"]
|
2026-03-05 12:09:51 -05:00
|
|
|
celery = ["celery"]
|
2026-03-05 18:07:59 -05:00
|
|
|
embeddings = ["sentence-transformers", "numpy"]
|
|
|
|
|
git = ["GitPython"]
|
2026-02-28 19:27:48 -05:00
|
|
|
dev = ["pytest", "pytest-asyncio", "pytest-cov", "pytest-timeout", "pytest-randomly", "pytest-xdist", "selenium"]
|
2026-02-28 13:12:14 -05:00
|
|
|
|
|
|
|
|
[tool.poetry.group.dev.dependencies]
|
|
|
|
|
pytest = ">=8.0.0"
|
|
|
|
|
pytest-asyncio = ">=0.24.0"
|
|
|
|
|
pytest-cov = ">=5.0.0"
|
|
|
|
|
pytest-timeout = ">=2.3.0"
|
|
|
|
|
selenium = ">=4.20.0"
|
2026-02-28 16:11:58 -05:00
|
|
|
pytest-randomly = "^4.0.1"
|
2026-02-28 19:27:48 -05:00
|
|
|
pytest-xdist = "^3.8.0"
|
2026-02-19 19:05:01 +00:00
|
|
|
|
2026-02-28 13:12:14 -05:00
|
|
|
[tool.poetry.scripts]
|
2026-02-19 19:05:01 +00:00
|
|
|
timmy = "timmy.cli:main"
|
feat: Mission Control v2 — swarm, L402, voice, marketplace, React dashboard
Major expansion of the Timmy Time Dashboard:
Backend modules:
- Swarm subsystem: registry, manager, bidder, coordinator, agent_runner, swarm_node, tasks, comms
- L402/Lightning: payment_handler, l402_proxy with HMAC macaroons
- Voice NLU: regex-based intent detection (chat, status, swarm, task, help, voice)
- Notifications: push notifier for swarm events
- Shortcuts: Siri Shortcuts iOS integration endpoints
- WebSocket: live dashboard event manager
- Inter-agent: agent-to-agent messaging layer
Dashboard routes:
- /swarm/* — swarm management and agent registry
- /marketplace — agent catalog with sat pricing
- /voice/* — voice command processing
- /mobile — mobile status endpoint
- /swarm/live — WebSocket live feed
React web dashboard (dashboard-web/):
- Sovereign Terminal design — dark theme with Bitcoin orange accents
- Three-column layout: status sidebar, workspace tabs, context panel
- Chat, Swarm, Tasks, Marketplace tab views
- JetBrains Mono typography, terminal aesthetic
- Framer Motion animations throughout
Tests: 228 passing (expanded from 93)
Includes Kimi's additional templates and QA work.
2026-02-21 12:57:38 -05:00
|
|
|
timmy-serve = "timmy_serve.cli:main"
|
2026-02-19 19:05:01 +00:00
|
|
|
|
|
|
|
|
[tool.pytest.ini_options]
|
|
|
|
|
testpaths = ["tests"]
|
2026-02-24 16:48:14 +00:00
|
|
|
pythonpath = ["src", "tests"]
|
2026-02-19 19:05:01 +00:00
|
|
|
asyncio_mode = "auto"
|
feat: swarm E2E, MCP tools, timmy-serve L402, tests, notifications
Major Features:
- Auto-spawn persona agents (Echo, Forge, Seer) on app startup
- WebSocket broadcasts for real-time swarm UI updates
- MCP tool integration: web search, file I/O, shell, Python execution
- New /tools dashboard page showing agent capabilities
- Real timmy-serve start with L402 payment gating middleware
- Browser push notifications for briefings and task events
Tests:
- test_docker_agent.py: 9 tests for Docker agent runner
- test_swarm_integration_full.py: 18 E2E lifecycle tests
- Fixed all pytest warnings (436 tests, 0 warnings)
Improvements:
- Fixed coroutine warnings in coordinator broadcasts
- Fixed ResourceWarning for unclosed process pipes
- Added pytest-asyncio config to pyproject.toml
- Test isolation with proper event loop cleanup
2026-02-22 19:01:04 -05:00
|
|
|
asyncio_default_fixture_loop_scope = "function"
|
2026-03-05 19:45:38 -05:00
|
|
|
timeout = 30
|
|
|
|
|
timeout_method = "signal"
|
|
|
|
|
timeout_func_only = false
|
|
|
|
|
addopts = "-v --tb=short --strict-markers --disable-warnings -n auto --dist worksteal"
|
refactor: Phase 1/4/6 — doc cleanup, config fix, token optimization
Phase 1 — Documentation cleanup:
- Slim README 303→93 lines (remove duplicated architecture, config tables)
- Slim CLAUDE.md 267→80 lines (remove project layout, env vars, CI section)
- Slim AGENTS.md 342→72 lines (remove duplicated patterns, running locally)
- Delete MEMORY.md, WORKSET_PLAN.md, WORKSET_PLAN_PHASE2.md (session docs)
- Archive PLAN.md, IMPLEMENTATION_SUMMARY.md to docs/
- Move QUALITY_ANALYSIS.md, QUALITY_REVIEW_REPORT.md to docs/
- Move apply_security_fixes.py, activate_self_tdd.sh to scripts/
Phase 4 — Config & build cleanup:
- Fix wheel build: add 11 missing modules to pyproject.toml include list
- Add pytest markers (unit, integration, dashboard, swarm, slow)
- Add data/self_modify_reports/ and .handoff/ to .gitignore
Phase 6 — Token optimization:
- Add docstrings to 15 __init__.py files that were empty
- Create __init__.py for events/, memory/, upgrades/ modules
Root markdown: 87KB → ~18KB (79% reduction)
https://claude.ai/code/session_019oMFNvD8uSGSSmBMGkBfQN
2026-02-26 21:03:15 +00:00
|
|
|
markers = [
|
|
|
|
|
"unit: Unit tests (fast, no I/O)",
|
|
|
|
|
"integration: Integration tests (may use SQLite)",
|
2026-02-28 16:11:58 -05:00
|
|
|
"functional: Functional tests (real HTTP requests, no mocking)",
|
|
|
|
|
"e2e: End-to-end tests (full system, may be slow)",
|
refactor: Phase 1/4/6 — doc cleanup, config fix, token optimization
Phase 1 — Documentation cleanup:
- Slim README 303→93 lines (remove duplicated architecture, config tables)
- Slim CLAUDE.md 267→80 lines (remove project layout, env vars, CI section)
- Slim AGENTS.md 342→72 lines (remove duplicated patterns, running locally)
- Delete MEMORY.md, WORKSET_PLAN.md, WORKSET_PLAN_PHASE2.md (session docs)
- Archive PLAN.md, IMPLEMENTATION_SUMMARY.md to docs/
- Move QUALITY_ANALYSIS.md, QUALITY_REVIEW_REPORT.md to docs/
- Move apply_security_fixes.py, activate_self_tdd.sh to scripts/
Phase 4 — Config & build cleanup:
- Fix wheel build: add 11 missing modules to pyproject.toml include list
- Add pytest markers (unit, integration, dashboard, swarm, slow)
- Add data/self_modify_reports/ and .handoff/ to .gitignore
Phase 6 — Token optimization:
- Add docstrings to 15 __init__.py files that were empty
- Create __init__.py for events/, memory/, upgrades/ modules
Root markdown: 87KB → ~18KB (79% reduction)
https://claude.ai/code/session_019oMFNvD8uSGSSmBMGkBfQN
2026-02-26 21:03:15 +00:00
|
|
|
"dashboard: Dashboard route tests",
|
|
|
|
|
"slow: Tests that take >1 second",
|
2026-02-28 16:11:58 -05:00
|
|
|
"selenium: Requires Selenium and Chrome (browser automation)",
|
|
|
|
|
"docker: Requires Docker and docker-compose",
|
|
|
|
|
"ollama: Requires Ollama service running",
|
2026-03-05 19:45:38 -05:00
|
|
|
"external_api: Requires external API access",
|
2026-02-28 16:11:58 -05:00
|
|
|
"skip_ci: Skip in CI environment (local development only)",
|
refactor: Phase 1/4/6 — doc cleanup, config fix, token optimization
Phase 1 — Documentation cleanup:
- Slim README 303→93 lines (remove duplicated architecture, config tables)
- Slim CLAUDE.md 267→80 lines (remove project layout, env vars, CI section)
- Slim AGENTS.md 342→72 lines (remove duplicated patterns, running locally)
- Delete MEMORY.md, WORKSET_PLAN.md, WORKSET_PLAN_PHASE2.md (session docs)
- Archive PLAN.md, IMPLEMENTATION_SUMMARY.md to docs/
- Move QUALITY_ANALYSIS.md, QUALITY_REVIEW_REPORT.md to docs/
- Move apply_security_fixes.py, activate_self_tdd.sh to scripts/
Phase 4 — Config & build cleanup:
- Fix wheel build: add 11 missing modules to pyproject.toml include list
- Add pytest markers (unit, integration, dashboard, swarm, slow)
- Add data/self_modify_reports/ and .handoff/ to .gitignore
Phase 6 — Token optimization:
- Add docstrings to 15 __init__.py files that were empty
- Create __init__.py for events/, memory/, upgrades/ modules
Root markdown: 87KB → ~18KB (79% reduction)
https://claude.ai/code/session_019oMFNvD8uSGSSmBMGkBfQN
2026-02-26 21:03:15 +00:00
|
|
|
]
|
2026-02-19 19:05:01 +00:00
|
|
|
|
|
|
|
|
[tool.coverage.run]
|
|
|
|
|
source = ["src"]
|
2026-02-22 20:42:58 -05:00
|
|
|
omit = [
|
|
|
|
|
"*/tests/*",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
[tool.coverage.report]
|
|
|
|
|
show_missing = true
|
|
|
|
|
skip_empty = true
|
|
|
|
|
precision = 1
|
|
|
|
|
exclude_lines = [
|
|
|
|
|
"pragma: no cover",
|
|
|
|
|
"if __name__ == .__main__.",
|
|
|
|
|
"if TYPE_CHECKING:",
|
|
|
|
|
"raise NotImplementedError",
|
|
|
|
|
"@abstractmethod",
|
|
|
|
|
]
|
|
|
|
|
# Fail CI if coverage drops below this threshold
|
|
|
|
|
fail_under = 60
|
|
|
|
|
|
|
|
|
|
[tool.coverage.html]
|
|
|
|
|
directory = "htmlcov"
|
|
|
|
|
|
|
|
|
|
[tool.coverage.xml]
|
|
|
|
|
output = "coverage.xml"
|