You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sims-hq/docs
Thomas Joise 58c97994bd feat(d28): SMS gateway live balance sync (BalAlert API) + daily auto + low alert
Pull each SMS client's actual credit balance from the provider panel instead of
manual entry. sms.balance_api_url (dated setting, default 164.52.195.161/API/
BalAlert.aspx) returns pipe-delimited code|STATUS|payload; parseBalanceResponse
reads the trailing number and flags ERROR lines, never guessing. Uses each
subscription's already-imported username/password_enc — the automated path decrypts
directly (no reveal-audit spam) and audits sms_balance ONLY when it changes;
per-poll telemetry lands in the unaudited sms_balance_check table (SQLite schema +
PG migration 010). Managerial 'Refresh from gateway' button (POST /reports/sms-
balances/refresh) + per-client refresh; scheduler does one pass per day
(maybeRefreshSmsDaily). Low-balance alert on the Dashboard + cockpit tile. Needs
HQ_SECRET_KEY (import-time key) to decrypt — no-ops with a clear message otherwise,
never stores plaintext. Parser unit-tested; full suite 408 green.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
3 days ago
..
superpowers docs: feature roadmap from ultracode design pass (9 features speced + build order) 3 days ago
06-DECISIONS.md feat(d28): SMS gateway live balance sync (BalAlert API) + daily auto + low alert 3 days ago
07-DB-AND-CONFIG.md docs: HQ ops console spec (D15) + roadmap/decisions updates 2 weeks ago
11-ADMIN-SUPPORT-CONSOLE.md docs: HQ project identity (README, STATUS, CLAUDE) + fix cross-repo doc links 5 days ago
14-SPEC-HQ-CONSOLE.md docs: bring all documents current with the delivered redesign (D17) 5 days ago
16-PROJECT-RULES.md docs: HQ ops console spec (D15) + roadmap/decisions updates 2 weeks ago
DEPLOY-HQ.md docs: D20 — hq.simssoftware.com on the company EC2; runbook gets the decided target + RDS-first sequencing (D19 switch delivered) 4 days ago