cctally 1.60.0 → 1.62.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/bin/_cctally_cache.py +479 -54
- package/bin/_cctally_core.py +8 -0
- package/bin/_cctally_dashboard.py +1467 -234
- package/bin/_cctally_db.py +27 -1
- package/bin/_cctally_doctor.py +2 -0
- package/bin/_cctally_forecast.py +24 -2
- package/bin/_cctally_parser.py +28 -2
- package/bin/_cctally_tui.py +708 -16
- package/bin/_cctally_update.py +49 -9
- package/bin/_cctally_weekrefs.py +101 -2
- package/bin/_lib_aggregators.py +98 -71
- package/bin/_lib_cache_report.py +455 -67
- package/bin/_lib_doctor.py +10 -0
- package/bin/_lib_pricing.py +31 -4
- package/bin/_lib_snapshot_cache.py +1797 -0
- package/bin/_lib_view_models.py +107 -12
- package/bin/cctally +57 -0
- package/dashboard/static/assets/index-0jzYm75p.css +1 -0
- package/dashboard/static/assets/{index-DQH6UPc_.js → index-D_Ylyqsf.js} +1 -1
- package/dashboard/static/dashboard.html +2 -2
- package/package.json +2 -1
- package/dashboard/static/assets/index-uGwZSssU.css +0 -1
package/bin/_cctally_core.py
CHANGED
|
@@ -160,6 +160,14 @@ def _is_dev_checkout() -> bool:
|
|
|
160
160
|
return (_repo_root() / ".git").exists()
|
|
161
161
|
|
|
162
162
|
|
|
163
|
+
def is_preview_channel() -> bool:
|
|
164
|
+
"""True when running under the maintainer-local preview channel
|
|
165
|
+
(the `cctally-preview` wrapper sets CCTALLY_CHANNEL=preview). Single
|
|
166
|
+
source of truth for every preview-marker surface (dashboard port +
|
|
167
|
+
envelope, TUI header, --version, doctor) so the gate can't drift."""
|
|
168
|
+
return os.environ.get("CCTALLY_CHANNEL") == "preview"
|
|
169
|
+
|
|
170
|
+
|
|
163
171
|
def _real_prod_data_dir() -> pathlib.Path:
|
|
164
172
|
"""The REAL user's prod data dir (~/.local/share/cctally), resolved from
|
|
165
173
|
the password database rather than $HOME so it is immune to a faked HOME.
|