Skip to content

feat: complete Phase 2 lifespan + CLI collapse - #12

Merged
soos3d merged 3 commits into
mainfrom
feat/phase-2-finish
Aug 10, 2026
Merged

feat: complete Phase 2 lifespan + CLI collapse#12
soos3d merged 3 commits into
mainfrom
feat/phase-2-finish

Conversation

@soos3d

@soos3d soos3d commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

Finishes Phase 2 after the DI/settings merge:

  • Production lifespan (spectrax.runtime): optional managed MediaMTX child + detection/recording; clean shutdown (no os._exit)
  • CLI collapse (spectrax.cli): serve, doctor, admin, apikey, reset, credentials; deprecated config/start/quick; removed run/detect
  • surveillance.py is a thin re-export of cli for python -m spectrax.surveillance
  • mediamtx.process for launch/stop; systemd-oriented mediamtx.managed flag honored by serve --no-mediamtx

Test plan

  • 58 tests green (characterization, auth, config, secrets, app factory, runtime, layout)
  • CI Ubuntu 3.11/3.12
  • Optional local: spectrax doctor and spectrax serve with MediaMTX + [cv] extra

soos3d added 3 commits August 10, 2026 14:58
Own MediaMTX and the detection/recording stack in FastAPI lifespan
(spectrax.runtime), replace the fat SurveillanceSystem CLI with a thin
spectrax.cli (serve/doctor/admin/apikey/reset/credentials), hard-delete
run/detect, and keep config/start/quick as deprecation aliases. Add
mediamtx.process helpers and unit tests for runtime and CLI.
Rewrite README, ARCHITECTURE, API, CONFIGURATION_GUIDE, routes/README, and
models/README for src/spectrax layout, spectrax serve, auth, and DI. Fix
unused settings variable in deprecated start alias that broke CI.
@soos3d
soos3d merged commit 9cafd96 into main Aug 10, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant