bbsbot 2026-03-04
Swarm state ownership refactored, routes reorganized, terminal hijack API tested
30 files · 2,133+ · 207-

Swarm state refactor

12 files changed
  • swarm_manager.py Swarm state ownership clarified; centralized swarm state management
  • app_setup.py App setup updated for new swarm state ownership
  • bot_process.py Bot process updated for new swarm state ownership
  • __init__.py Swarm API routes reorganized
  • __init__.py Bot sub-routes extracted (new module)
  • ops.py Bot operations route (new file)
  • update.py Bot update route (new file)
  • models.py Swarm API models updates
  • spawn.py Spawn route updates
  • status.py Status route updates
  • cli.py CLI consistency improvements
  • cli_swarm.py Swarm CLI consistency improvements
  • refactor: swarm state ownership, route layout, and CLI consistency — state ownership clarified, routes reorganized for consistency decouple behavioral
    3 files
    • swarm_manager.py
    • __init__.py
    • cli_swarm.py
  • New swarm.py module: 351 lines — centralized swarm state management instantiate internal
    1 file
    • swarm_manager.py

Terminal hijack tests

2 files changed
  • test_term_hijack_api.py Hijack API test coverage added (122 lines)
  • test_term_routes.py Terminal route tests (13 lines)
  • tests/test_term_hijack_api.py (122 lines) — hijack API test coverage added qualify behavioral
    1 file
    • test_term_hijack_api.py
  • tests/test_term_routes.py (13 lines) — terminal route tests qualify internal
    1 file
    • test_term_routes.py

Test suite expansion

3 files changed
  • test_swarm_routes_events.py Swarm route and event coverage expanded (469 lines)
  • test_swarm_shell.py Swarm shell command tests (67 lines)
  • swarm_shell.py Swarm shell updates
  • tests/test_swarm_routes_events.py (469 lines expanded) — swarm route and event coverage qualify behavioral
    1 file
    • test_swarm_routes_events.py
  • tests/test_swarm_shell.py (67 lines) — swarm shell command tests qualify behavioral
    1 file
    • test_swarm_shell.py