feat(PMEM-WP-0017): federated store management CLI and activity reports
Add phase_memory.management for cross-store discovery and windowed activity reporting. Extend the phase-memory CLI with stores list and report commands, plus make report-7d for the default weekly operator view.
This commit is contained in:
parent
0320b112fd
commit
feb60c1d96
16 changed files with 1150 additions and 4 deletions
14
Makefile
14
Makefile
|
|
@ -3,7 +3,7 @@ ROOT := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
|
|||
|
||||
.DEFAULT_GOAL := help
|
||||
|
||||
.PHONY: help install install-editable check test
|
||||
.PHONY: help install install-editable check test report-7d report
|
||||
|
||||
help:
|
||||
@echo "phase-memory make targets"
|
||||
|
|
@ -12,6 +12,8 @@ help:
|
|||
@echo " make install-editable # editable install for local development"
|
||||
@echo " make check # verify import and print version"
|
||||
@echo " make test # run pytest"
|
||||
@echo " make report-7d # federated activity report (last 7 days)"
|
||||
@echo " make report # federated report (REPORT_DAYS=7 default)"
|
||||
@echo ""
|
||||
@echo "For ops-warden integration, prefer: cd ../ops-warden && make install-all"
|
||||
|
||||
|
|
@ -24,4 +26,12 @@ check:
|
|||
@PYTHONPATH="$(ROOT)src" python3 -c "import phase_memory; print('phase-memory', phase_memory.__version__, 'ok')"
|
||||
|
||||
test:
|
||||
PYTHONPATH="$(ROOT)src" python3 -m pytest
|
||||
PYTHONPATH="$(ROOT)src" python3 -m pytest
|
||||
|
||||
REPORT_DAYS ?= 7
|
||||
|
||||
report-7d:
|
||||
PYTHONPATH="$(ROOT)src" python3 -m phase_memory.cli report --days 7 --format summary
|
||||
|
||||
report:
|
||||
PYTHONPATH="$(ROOT)src" python3 -m phase_memory.cli report --days $(REPORT_DAYS) --format summary
|
||||
Loading…
Add table
Add a link
Reference in a new issue