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.pySwarm state ownership clarified; centralized swarm state managementapp_setup.pyApp setup updated for new swarm state ownershipbot_process.pyBot process updated for new swarm state ownership__init__.pySwarm API routes reorganized__init__.pyBot sub-routes extracted (new module)ops.pyBot operations route (new file)update.pyBot update route (new file)models.pySwarm API models updatesspawn.pySpawn route updatesstatus.pyStatus route updatescli.pyCLI consistency improvementscli_swarm.pySwarm CLI consistency improvements
refactor: swarm state ownership, route layout, and CLI consistency— state ownership clarified, routes reorganized for consistency decouple behavioral3 files
swarm_manager.py__init__.pycli_swarm.py
- New
swarm.pymodule: 351 lines — centralized swarm state management instantiate internal1 file
swarm_manager.py
Terminal hijack tests
2 files changed
test_term_hijack_api.pyHijack API test coverage added (122 lines)test_term_routes.pyTerminal route tests (13 lines)
tests/test_term_hijack_api.py(122 lines) — hijack API test coverage added qualify behavioral1 file
test_term_hijack_api.py
tests/test_term_routes.py(13 lines) — terminal route tests qualify internal1 file
test_term_routes.py
Test suite expansion
3 files changed
test_swarm_routes_events.pySwarm route and event coverage expanded (469 lines)test_swarm_shell.pySwarm shell command tests (67 lines)swarm_shell.pySwarm shell updates
tests/test_swarm_routes_events.py(469 lines expanded) — swarm route and event coverage qualify behavioral1 file
test_swarm_routes_events.py
tests/test_swarm_shell.py(67 lines) — swarm shell command tests qualify behavioral1 file
test_swarm_shell.py