mgmradar 0.36.0__tar.gz
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.
- mgmradar-0.36.0/.dockerignore +18 -0
- mgmradar-0.36.0/.env.example +298 -0
- mgmradar-0.36.0/.github/workflows/ci.yml +125 -0
- mgmradar-0.36.0/.github/workflows/deploy.yml +192 -0
- mgmradar-0.36.0/.github/workflows/release.yml +278 -0
- mgmradar-0.36.0/.gitignore +45 -0
- mgmradar-0.36.0/.opencode/commands/opsx-apply.md +177 -0
- mgmradar-0.36.0/.opencode/commands/opsx-archive.md +219 -0
- mgmradar-0.36.0/.opencode/commands/opsx-explore.md +165 -0
- mgmradar-0.36.0/.opencode/commands/opsx-propose.md +115 -0
- mgmradar-0.36.0/.opencode/commands/opsx-sync.md +215 -0
- mgmradar-0.36.0/.opencode/commands/opsx-update.md +82 -0
- mgmradar-0.36.0/.opencode/plugins/discord-alert-triage/.gitignore +1 -0
- mgmradar-0.36.0/.opencode/plugins/discord-alert-triage/README.md +108 -0
- mgmradar-0.36.0/.opencode/plugins/discord-alert-triage/config.example.json +13 -0
- mgmradar-0.36.0/.opencode/plugins/discord-alert-triage/index.js +766 -0
- mgmradar-0.36.0/.opencode/plugins/discord-alert-triage/package.json +7 -0
- mgmradar-0.36.0/.opencode/skills/commit-and-changelog/SKILL.md +288 -0
- mgmradar-0.36.0/.opencode/skills/openspec-apply-change/SKILL.md +185 -0
- mgmradar-0.36.0/.opencode/skills/openspec-archive-change/SKILL.md +180 -0
- mgmradar-0.36.0/.opencode/skills/openspec-explore/SKILL.md +252 -0
- mgmradar-0.36.0/.opencode/skills/openspec-propose/SKILL.md +123 -0
- mgmradar-0.36.0/.opencode/skills/openspec-sync-specs/SKILL.md +223 -0
- mgmradar-0.36.0/.opencode/skills/openspec-update-change/SKILL.md +90 -0
- mgmradar-0.36.0/AGENTS.md +15 -0
- mgmradar-0.36.0/ANSIBLE.md +560 -0
- mgmradar-0.36.0/CHANGELOG.md +1021 -0
- mgmradar-0.36.0/Dockerfile +27 -0
- mgmradar-0.36.0/PKG-INFO +258 -0
- mgmradar-0.36.0/README.md +218 -0
- mgmradar-0.36.0/ansible/.ansible-lint +5 -0
- mgmradar-0.36.0/ansible/ansible.cfg +11 -0
- mgmradar-0.36.0/ansible/group_vars/all/vars.yml.example +124 -0
- mgmradar-0.36.0/ansible/group_vars/all/vault.yml.example +65 -0
- mgmradar-0.36.0/ansible/inventory/hosts.yml.example +10 -0
- mgmradar-0.36.0/ansible/requirements.yml +8 -0
- mgmradar-0.36.0/ansible/roles/mgmradar/defaults/main.yml +180 -0
- mgmradar-0.36.0/ansible/roles/mgmradar/handlers/main.yml +6 -0
- mgmradar-0.36.0/ansible/roles/mgmradar/tasks/app.yml +269 -0
- mgmradar-0.36.0/ansible/roles/mgmradar/tasks/docker.yml +45 -0
- mgmradar-0.36.0/ansible/roles/mgmradar/tasks/firewall.yml +12 -0
- mgmradar-0.36.0/ansible/roles/mgmradar/tasks/housekeeping.yml +70 -0
- mgmradar-0.36.0/ansible/roles/mgmradar/tasks/main.yml +54 -0
- mgmradar-0.36.0/ansible/roles/mgmradar/tasks/tunnel.yml +77 -0
- mgmradar-0.36.0/ansible/roles/mgmradar/templates/cloudflared.service.j2 +18 -0
- mgmradar-0.36.0/ansible/roles/mgmradar/templates/env.j2 +169 -0
- mgmradar-0.36.0/ansible/roles/mgmradar/templates/housekeeping.env.j2 +18 -0
- mgmradar-0.36.0/ansible/roles/mgmradar/templates/mgmradar-housekeeping.service.j2 +13 -0
- mgmradar-0.36.0/ansible/roles/mgmradar/templates/mgmradar-housekeeping.timer.j2 +11 -0
- mgmradar-0.36.0/ansible/site.yml +7 -0
- mgmradar-0.36.0/config/billing.yaml +77 -0
- mgmradar-0.36.0/config/plans.yaml +60 -0
- mgmradar-0.36.0/deploy/README.md +119 -0
- mgmradar-0.36.0/deploy/cdn.md +62 -0
- mgmradar-0.36.0/deploy/compose.yaml +111 -0
- mgmradar-0.36.0/deploy/config/README.md +14 -0
- mgmradar-0.36.0/docs/accuracy.md +98 -0
- mgmradar-0.36.0/docs/agents.md +665 -0
- mgmradar-0.36.0/docs/api.md +1025 -0
- mgmradar-0.36.0/docs/architecture.md +113 -0
- mgmradar-0.36.0/docs/archive.md +124 -0
- mgmradar-0.36.0/docs/authentication.md +550 -0
- mgmradar-0.36.0/docs/billing.md +1030 -0
- mgmradar-0.36.0/docs/calibration.md +153 -0
- mgmradar-0.36.0/docs/email.md +327 -0
- mgmradar-0.36.0/docs/faq.md +117 -0
- mgmradar-0.36.0/docs/growth/README.md +84 -0
- mgmradar-0.36.0/docs/growth/channel-gate.md +60 -0
- mgmradar-0.36.0/docs/growth/checklist-2026-12.md +80 -0
- mgmradar-0.36.0/docs/growth/checklist-template.md +99 -0
- mgmradar-0.36.0/docs/growth/community-log.md +52 -0
- mgmradar-0.36.0/docs/growth/decision-memo.md +110 -0
- mgmradar-0.36.0/docs/growth/execution-log.md +60 -0
- mgmradar-0.36.0/docs/growth/licensing-watch.md +60 -0
- mgmradar-0.36.0/docs/growth/listing-audit.md +74 -0
- mgmradar-0.36.0/docs/growth/playbook.md +305 -0
- mgmradar-0.36.0/docs/growth/review-log.md +60 -0
- mgmradar-0.36.0/docs/growth/review-requests.md +187 -0
- mgmradar-0.36.0/docs/integrations/README.md +83 -0
- mgmradar-0.36.0/docs/integrations/home-assistant.md +161 -0
- mgmradar-0.36.0/docs/integrations/mcp-host.md +173 -0
- mgmradar-0.36.0/docs/integrations/scripts.md +262 -0
- mgmradar-0.36.0/docs/licensing.md +102 -0
- mgmradar-0.36.0/docs/mcp-discoverability.md +189 -0
- mgmradar-0.36.0/docs/mcp-listings.md +118 -0
- mgmradar-0.36.0/docs/mcp.md +622 -0
- mgmradar-0.36.0/docs/mgm-radar-api-icon.png +0 -0
- mgmradar-0.36.0/docs/nowcast-decision-criteria.md +132 -0
- mgmradar-0.36.0/docs/nowcast-spike.md +223 -0
- mgmradar-0.36.0/docs/oauth-chatgpt-spike.md +119 -0
- mgmradar-0.36.0/docs/oauth-consent-ux-spike.md +73 -0
- mgmradar-0.36.0/docs/oauth-metrics.md +126 -0
- mgmradar-0.36.0/docs/openapi.json +6719 -0
- mgmradar-0.36.0/docs/operations.md +1686 -0
- mgmradar-0.36.0/docs/paid-listing-decision.md +64 -0
- mgmradar-0.36.0/docs/performance.md +117 -0
- mgmradar-0.36.0/docs/pricing-decision.md +111 -0
- mgmradar-0.36.0/docs/pricing.md +210 -0
- mgmradar-0.36.0/docs/quickstart.md +122 -0
- mgmradar-0.36.0/docs/rain-alerts.md +293 -0
- mgmradar-0.36.0/docs/reference-comparison.md +133 -0
- mgmradar-0.36.0/docs/releasing.md +387 -0
- mgmradar-0.36.0/docs/retention.md +137 -0
- mgmradar-0.36.0/docs/routes.md +239 -0
- mgmradar-0.36.0/docs/runbook-rain-alerts.md +226 -0
- mgmradar-0.36.0/docs/self-hosting.md +214 -0
- mgmradar-0.36.0/docs/soak-report.md +160 -0
- mgmradar-0.36.0/docs/source.md +114 -0
- mgmradar-0.36.0/docs/validation-plan.md +103 -0
- mgmradar-0.36.0/docs/x402-decision.md +610 -0
- mgmradar-0.36.0/evals/README.md +135 -0
- mgmradar-0.36.0/evals/__init__.py +16 -0
- mgmradar-0.36.0/evals/cases.yaml +1262 -0
- mgmradar-0.36.0/evals/models.py +254 -0
- mgmradar-0.36.0/evals/providers.py +693 -0
- mgmradar-0.36.0/evals/runner.py +265 -0
- mgmradar-0.36.0/evals/scoring.py +486 -0
- mgmradar-0.36.0/openspec/changes/add-local-stdio-mcp-package/.openspec.yaml +2 -0
- mgmradar-0.36.0/openspec/changes/add-local-stdio-mcp-package/design.md +334 -0
- mgmradar-0.36.0/openspec/changes/add-local-stdio-mcp-package/proposal.md +87 -0
- mgmradar-0.36.0/openspec/changes/add-local-stdio-mcp-package/specs/local-mcp-package/spec.md +232 -0
- mgmradar-0.36.0/openspec/changes/add-local-stdio-mcp-package/specs/remote-mcp-server/spec.md +51 -0
- mgmradar-0.36.0/openspec/changes/add-local-stdio-mcp-package/specs/single-channel-documentation/spec.md +70 -0
- mgmradar-0.36.0/openspec/changes/add-local-stdio-mcp-package/tasks.md +78 -0
- mgmradar-0.36.0/openspec/changes/add-local-stdio-mcp-package/verification.md +207 -0
- mgmradar-0.36.0/openspec/changes/add-nowcast-api-prototype/.openspec.yaml +2 -0
- mgmradar-0.36.0/openspec/changes/add-nowcast-api-prototype/design.md +320 -0
- mgmradar-0.36.0/openspec/changes/add-nowcast-api-prototype/gate-evidence.md +108 -0
- mgmradar-0.36.0/openspec/changes/add-nowcast-api-prototype/proposal.md +97 -0
- mgmradar-0.36.0/openspec/changes/add-nowcast-api-prototype/specs/agent-readable-openapi/spec.md +63 -0
- mgmradar-0.36.0/openspec/changes/add-nowcast-api-prototype/specs/api-access-and-metering/spec.md +77 -0
- mgmradar-0.36.0/openspec/changes/add-nowcast-api-prototype/specs/nowcast-api/spec.md +460 -0
- mgmradar-0.36.0/openspec/changes/add-nowcast-api-prototype/specs/radar-frame-serving/spec.md +57 -0
- mgmradar-0.36.0/openspec/changes/add-nowcast-api-prototype/specs/single-channel-documentation/spec.md +57 -0
- mgmradar-0.36.0/openspec/changes/add-nowcast-api-prototype/tasks.md +42 -0
- mgmradar-0.36.0/openspec/changes/add-second-country-adapter/.openspec.yaml +2 -0
- mgmradar-0.36.0/openspec/changes/add-second-country-adapter/design.md +367 -0
- mgmradar-0.36.0/openspec/changes/add-second-country-adapter/proposal.md +98 -0
- mgmradar-0.36.0/openspec/changes/add-second-country-adapter/specs/mgm-radar-ingestion/spec.md +148 -0
- mgmradar-0.36.0/openspec/changes/add-second-country-adapter/specs/public-discovery-access/spec.md +119 -0
- mgmradar-0.36.0/openspec/changes/add-second-country-adapter/specs/radar-frame-processing/spec.md +169 -0
- mgmradar-0.36.0/openspec/changes/add-second-country-adapter/specs/second-country-source-adapter/spec.md +473 -0
- mgmradar-0.36.0/openspec/changes/add-second-country-adapter/specs/single-channel-documentation/spec.md +90 -0
- mgmradar-0.36.0/openspec/changes/add-second-country-adapter/tasks.md +91 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-09-expose-rate-limit-quota-headers/.openspec.yaml +2 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-09-expose-rate-limit-quota-headers/design.md +148 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-09-expose-rate-limit-quota-headers/proposal.md +65 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-09-expose-rate-limit-quota-headers/specs/api-limit-headers/spec.md +106 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-09-expose-rate-limit-quota-headers/tasks.md +28 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-09-gate-history-add-latest-endpoints/.openspec.yaml +2 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-09-gate-history-add-latest-endpoints/design.md +177 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-09-gate-history-add-latest-endpoints/proposal.md +95 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-09-gate-history-add-latest-endpoints/specs/history-entitlement-gating/spec.md +179 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-09-gate-history-add-latest-endpoints/specs/latest-frame-access/spec.md +79 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-09-gate-history-add-latest-endpoints/tasks.md +45 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-09-public-discovery-endpoints/.openspec.yaml +2 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-09-public-discovery-endpoints/design.md +152 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-09-public-discovery-endpoints/proposal.md +51 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-09-public-discovery-endpoints/specs/public-discovery-access/spec.md +145 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-09-public-discovery-endpoints/tasks.md +34 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-bbox-snapshot-endpoint/.openspec.yaml +2 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-bbox-snapshot-endpoint/README.md +3 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-bbox-snapshot-endpoint/design.md +210 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-bbox-snapshot-endpoint/proposal.md +83 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-bbox-snapshot-endpoint/specs/history-entitlement-gating/spec.md +38 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-bbox-snapshot-endpoint/specs/radar-snapshots/spec.md +222 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-bbox-snapshot-endpoint/tasks.md +39 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-idempotency-keys/.openspec.yaml +2 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-idempotency-keys/design.md +228 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-idempotency-keys/proposal.md +74 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-idempotency-keys/specs/request-idempotency/spec.md +191 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-idempotency-keys/tasks.md +46 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-place-resolution/.openspec.yaml +2 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-place-resolution/design.md +200 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-place-resolution/proposal.md +70 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-place-resolution/specs/place-resolution/spec.md +213 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-place-resolution/tasks.md +43 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-rain-summary-block/.openspec.yaml +2 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-rain-summary-block/README.md +3 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-rain-summary-block/design.md +184 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-rain-summary-block/proposal.md +63 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-rain-summary-block/specs/rain-summary/spec.md +170 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-10-add-rain-summary-block/tasks.md +29 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-10-openapi-agent-quality-pass/.openspec.yaml +2 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-10-openapi-agent-quality-pass/design.md +191 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-10-openapi-agent-quality-pass/proposal.md +61 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-10-openapi-agent-quality-pass/specs/agent-readable-openapi/spec.md +147 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-10-openapi-agent-quality-pass/tasks.md +45 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-10-spike-optical-flow-nowcast/.openspec.yaml +2 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-10-spike-optical-flow-nowcast/design.md +291 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-10-spike-optical-flow-nowcast/proposal.md +75 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-10-spike-optical-flow-nowcast/specs/nowcast-skill-evaluation/spec.md +205 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-10-spike-optical-flow-nowcast/tasks.md +46 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-10-spike-optical-flow-nowcast/validation.md +35 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-11-add-remote-mcp-server/.openspec.yaml +2 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-11-add-remote-mcp-server/design.md +270 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-11-add-remote-mcp-server/proposal.md +99 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-11-add-remote-mcp-server/specs/remote-mcp-server/spec.md +436 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-11-add-remote-mcp-server/tasks.md +59 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-18-add-transactional-email/.openspec.yaml +2 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-18-add-transactional-email/design.md +84 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-18-add-transactional-email/proposal.md +56 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-18-add-transactional-email/specs/transactional-email/spec.md +254 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-18-add-transactional-email/tasks.md +48 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-19-add-customers-subscriptions-api-keys/.openspec.yaml +2 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-19-add-customers-subscriptions-api-keys/design.md +70 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-19-add-customers-subscriptions-api-keys/proposal.md +88 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-19-add-customers-subscriptions-api-keys/specs/api-limit-headers/spec.md +29 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-19-add-customers-subscriptions-api-keys/specs/customer-subscriptions/spec.md +73 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-19-add-customers-subscriptions-api-keys/specs/subscription-usage/spec.md +69 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-19-add-customers-subscriptions-api-keys/tasks.md +62 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-19-tighten-customer-subscription-invariants/.openspec.yaml +2 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-19-tighten-customer-subscription-invariants/design.md +103 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-19-tighten-customer-subscription-invariants/proposal.md +59 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-19-tighten-customer-subscription-invariants/specs/customer-subscriptions/spec.md +84 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-19-tighten-customer-subscription-invariants/specs/subscription-usage/spec.md +25 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-19-tighten-customer-subscription-invariants/tasks.md +18 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-admin-cli/.openspec.yaml +2 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-admin-cli/design.md +196 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-admin-cli/proposal.md +76 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-admin-cli/specs/admin-cli/spec.md +324 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-admin-cli/specs/ops-customer-management/spec.md +66 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-admin-cli/tasks.md +54 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-api-key-lifecycle/.openspec.yaml +2 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-api-key-lifecycle/README.md +3 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-api-key-lifecycle/design.md +247 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-api-key-lifecycle/proposal.md +88 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-api-key-lifecycle/specs/api-credential-resolution/spec.md +47 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-api-key-lifecycle/specs/api-key-lifecycle/spec.md +228 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-api-key-lifecycle/specs/customer-subscriptions/spec.md +71 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-api-key-lifecycle/specs/ops-customer-management/spec.md +42 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-api-key-lifecycle/specs/transactional-email/spec.md +46 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-api-key-lifecycle/tasks.md +73 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-mcp-ops-visibility/.openspec.yaml +2 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-mcp-ops-visibility/design.md +257 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-mcp-ops-visibility/proposal.md +98 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-mcp-ops-visibility/specs/mcp-ops-visibility/spec.md +327 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-mcp-ops-visibility/tasks.md +51 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-ops-customer-management/.openspec.yaml +2 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-ops-customer-management/design.md +191 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-ops-customer-management/proposal.md +82 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-ops-customer-management/specs/customer-subscriptions/spec.md +73 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-ops-customer-management/specs/ops-customer-management/spec.md +327 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-ops-customer-management/tasks.md +67 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-portal-magic-link-auth/.openspec.yaml +2 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-portal-magic-link-auth/design.md +311 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-portal-magic-link-auth/proposal.md +70 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-portal-magic-link-auth/specs/portal-auth/spec.md +389 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-add-portal-magic-link-auth/tasks.md +76 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-bootstrap-mgm-radar-api/.openspec.yaml +4 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-bootstrap-mgm-radar-api/README.md +3 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-bootstrap-mgm-radar-api/design.md +238 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-bootstrap-mgm-radar-api/proposal.md +43 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-bootstrap-mgm-radar-api/specs/api-access-and-metering/spec.md +118 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-bootstrap-mgm-radar-api/specs/mgm-radar-ingestion/spec.md +102 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-bootstrap-mgm-radar-api/specs/radar-frame-processing/spec.md +110 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-bootstrap-mgm-radar-api/specs/radar-frame-serving/spec.md +147 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-bootstrap-mgm-radar-api/specs/radar-history-archive/spec.md +129 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-bootstrap-mgm-radar-api/tasks.md +102 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-remove-rapidapi-channel/.openspec.yaml +2 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-remove-rapidapi-channel/design.md +202 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-remove-rapidapi-channel/proposal.md +97 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-remove-rapidapi-channel/specs/agent-readable-openapi/spec.md +33 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-remove-rapidapi-channel/specs/api-access-and-metering/spec.md +59 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-remove-rapidapi-channel/specs/api-credential-resolution/spec.md +22 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-remove-rapidapi-channel/specs/customer-subscriptions/spec.md +25 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-remove-rapidapi-channel/specs/history-entitlement-gating/spec.md +29 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-remove-rapidapi-channel/specs/latest-frame-access/spec.md +28 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-remove-rapidapi-channel/specs/public-discovery-access/spec.md +72 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-remove-rapidapi-channel/specs/remote-mcp-server/spec.md +57 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-remove-rapidapi-channel/tasks.md +114 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-resolve-api-credentials/.openspec.yaml +2 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-resolve-api-credentials/design.md +129 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-resolve-api-credentials/proposal.md +47 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-resolve-api-credentials/specs/api-credential-resolution/spec.md +232 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-resolve-api-credentials/specs/api-limit-headers/spec.md +62 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-20-resolve-api-credentials/tasks.md +60 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-21-add-billing-reconciliation/.openspec.yaml +3 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-21-add-billing-reconciliation/README.md +3 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-21-add-billing-reconciliation/design.md +560 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-21-add-billing-reconciliation/proposal.md +81 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-21-add-billing-reconciliation/specs/billing-reconciliation/spec.md +382 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-21-add-billing-reconciliation/specs/billing-webhooks/spec.md +38 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-21-add-billing-reconciliation/tasks.md +119 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-21-add-polar-billing-adapter/.openspec.yaml +2 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-21-add-polar-billing-adapter/design.md +398 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-21-add-polar-billing-adapter/proposal.md +101 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-21-add-polar-billing-adapter/specs/billing-checkout/spec.md +133 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-21-add-polar-billing-adapter/specs/billing-provider-boundary/spec.md +165 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-21-add-polar-billing-adapter/specs/billing-webhooks/spec.md +261 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-21-add-polar-billing-adapter/specs/portal-auth/spec.md +36 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-21-add-polar-billing-adapter/tasks.md +78 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-22-add-lifecycle-notifications/.openspec.yaml +2 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-22-add-lifecycle-notifications/design.md +484 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-22-add-lifecycle-notifications/proposal.md +88 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-22-add-lifecycle-notifications/specs/lifecycle-notifications/spec.md +408 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-22-add-lifecycle-notifications/specs/transactional-email/spec.md +67 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-22-add-lifecycle-notifications/tasks.md +114 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-22-add-self-serve-signup/.openspec.yaml +2 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-22-add-self-serve-signup/design.md +486 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-22-add-self-serve-signup/proposal.md +98 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-22-add-self-serve-signup/specs/account-upgrade/spec.md +166 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-22-add-self-serve-signup/specs/billing-checkout/spec.md +106 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-22-add-self-serve-signup/specs/self-serve-signup/spec.md +328 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-22-add-self-serve-signup/tasks.md +45 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-22-build-customer-portal/.openspec.yaml +2 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-22-build-customer-portal/design.md +271 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-22-build-customer-portal/proposal.md +80 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-22-build-customer-portal/specs/billing-provider-boundary/spec.md +104 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-22-build-customer-portal/specs/customer-portal/spec.md +344 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-22-build-customer-portal/tasks.md +42 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-22-hide-billing-from-public-openapi/.openspec.yaml +2 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-22-hide-billing-from-public-openapi/design.md +124 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-22-hide-billing-from-public-openapi/proposal.md +70 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-22-hide-billing-from-public-openapi/specs/billing-checkout/spec.md +28 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-22-hide-billing-from-public-openapi/specs/billing-webhooks/spec.md +24 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-22-hide-billing-from-public-openapi/tasks.md +28 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-22-rewrite-single-channel-docs/.openspec.yaml +2 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-22-rewrite-single-channel-docs/design.md +222 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-22-rewrite-single-channel-docs/proposal.md +94 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-22-rewrite-single-channel-docs/specs/agent-readable-openapi/spec.md +47 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-22-rewrite-single-channel-docs/specs/api-credential-resolution/spec.md +30 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-22-rewrite-single-channel-docs/specs/single-channel-documentation/spec.md +188 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-22-rewrite-single-channel-docs/tasks.md +42 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-host-housekeeping/.openspec.yaml +2 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-host-housekeeping/design.md +133 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-host-housekeeping/proposal.md +57 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-host-housekeeping/specs/host-housekeeping/spec.md +126 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-host-housekeeping/tasks.md +26 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-rain-threshold-alerts/.openspec.yaml +2 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-rain-threshold-alerts/design.md +360 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-rain-threshold-alerts/proposal.md +85 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-rain-threshold-alerts/specs/api-access-and-metering/spec.md +47 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-rain-threshold-alerts/specs/rain-alerts/spec.md +696 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-rain-threshold-alerts/specs/single-channel-documentation/spec.md +114 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-rain-threshold-alerts/specs/subscription-usage/spec.md +73 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-rain-threshold-alerts/tasks.md +71 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-route-rain-query/.openspec.yaml +2 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-route-rain-query/design.md +126 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-route-rain-query/evidence.md +245 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-route-rain-query/proposal.md +43 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-route-rain-query/specs/agent-readable-openapi/spec.md +44 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-route-rain-query/specs/api-access-and-metering/spec.md +69 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-route-rain-query/specs/history-entitlement-gating/spec.md +37 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-route-rain-query/specs/radar-frame-serving/spec.md +34 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-route-rain-query/specs/rain-summary/spec.md +114 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-route-rain-query/specs/route-rain-query/spec.md +213 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-route-rain-query/specs/single-channel-documentation/spec.md +39 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-29-add-route-rain-query/tasks.md +40 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-29-instrument-agent-channel-usage/.openspec.yaml +2 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-29-instrument-agent-channel-usage/design.md +255 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-29-instrument-agent-channel-usage/proposal.md +89 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-29-instrument-agent-channel-usage/specs/agent-channel-analytics/spec.md +448 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-29-instrument-agent-channel-usage/specs/mcp-ops-visibility/spec.md +151 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-29-instrument-agent-channel-usage/specs/subscription-usage/spec.md +86 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-29-instrument-agent-channel-usage/tasks.md +41 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-29-modernize-customer-portal/.openspec.yaml +2 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-29-modernize-customer-portal/design.md +352 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-29-modernize-customer-portal/proposal.md +102 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-29-modernize-customer-portal/specs/customer-portal/spec.md +438 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-29-modernize-customer-portal/specs/portal-auth/spec.md +98 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-29-modernize-customer-portal/specs/self-serve-signup/spec.md +125 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-29-modernize-customer-portal/tasks.md +63 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-30-add-mcp-oauth/.openspec.yaml +2 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-30-add-mcp-oauth/design.md +364 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-30-add-mcp-oauth/evidence.md +560 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-30-add-mcp-oauth/proposal.md +104 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-30-add-mcp-oauth/specs/admin-cli/spec.md +43 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-30-add-mcp-oauth/specs/api-access-and-metering/spec.md +89 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-30-add-mcp-oauth/specs/customer-portal/spec.md +47 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-30-add-mcp-oauth/specs/mcp-oauth/spec.md +452 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-30-add-mcp-oauth/specs/mcp-ops-visibility/spec.md +73 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-30-add-mcp-oauth/specs/portal-auth/spec.md +82 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-30-add-mcp-oauth/specs/remote-mcp-server/spec.md +135 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-30-add-mcp-oauth/specs/self-serve-signup/spec.md +57 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-30-add-mcp-oauth/specs/single-channel-documentation/spec.md +106 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-30-add-mcp-oauth/specs/subscription-usage/spec.md +39 -0
- mgmradar-0.36.0/openspec/changes/archive/2026-11-30-add-mcp-oauth/tasks.md +119 -0
- mgmradar-0.36.0/openspec/changes/document-nowcast-accuracy/.openspec.yaml +2 -0
- mgmradar-0.36.0/openspec/changes/document-nowcast-accuracy/design.md +182 -0
- mgmradar-0.36.0/openspec/changes/document-nowcast-accuracy/gate-status.md +87 -0
- mgmradar-0.36.0/openspec/changes/document-nowcast-accuracy/proposal.md +83 -0
- mgmradar-0.36.0/openspec/changes/document-nowcast-accuracy/specs/api-access-and-metering/spec.md +90 -0
- mgmradar-0.36.0/openspec/changes/document-nowcast-accuracy/specs/nowcast-accuracy-publication/spec.md +285 -0
- mgmradar-0.36.0/openspec/changes/document-nowcast-accuracy/specs/nowcast-api/spec.md +89 -0
- mgmradar-0.36.0/openspec/changes/document-nowcast-accuracy/specs/single-channel-documentation/spec.md +109 -0
- mgmradar-0.36.0/openspec/changes/document-nowcast-accuracy/tasks.md +89 -0
- mgmradar-0.36.0/openspec/changes/evaluate-x402-pay-per-call/.openspec.yaml +2 -0
- mgmradar-0.36.0/openspec/changes/evaluate-x402-pay-per-call/design.md +417 -0
- mgmradar-0.36.0/openspec/changes/evaluate-x402-pay-per-call/proposal.md +43 -0
- mgmradar-0.36.0/openspec/changes/evaluate-x402-pay-per-call/specs/api-access-and-metering/spec.md +120 -0
- mgmradar-0.36.0/openspec/changes/evaluate-x402-pay-per-call/specs/x402-evaluation/spec.md +488 -0
- mgmradar-0.36.0/openspec/changes/evaluate-x402-pay-per-call/tasks.md +59 -0
- mgmradar-0.36.0/openspec/changes/offer-historical-data-packs/.openspec.yaml +2 -0
- mgmradar-0.36.0/openspec/changes/offer-historical-data-packs/design.md +576 -0
- mgmradar-0.36.0/openspec/changes/offer-historical-data-packs/proposal.md +96 -0
- mgmradar-0.36.0/openspec/changes/offer-historical-data-packs/specs/billing-checkout/spec.md +150 -0
- mgmradar-0.36.0/openspec/changes/offer-historical-data-packs/specs/billing-provider-boundary/spec.md +122 -0
- mgmradar-0.36.0/openspec/changes/offer-historical-data-packs/specs/billing-webhooks/spec.md +46 -0
- mgmradar-0.36.0/openspec/changes/offer-historical-data-packs/specs/historical-data-packs/spec.md +387 -0
- mgmradar-0.36.0/openspec/changes/offer-historical-data-packs/specs/history-entitlement-gating/spec.md +36 -0
- mgmradar-0.36.0/openspec/changes/offer-historical-data-packs/specs/radar-history-archive/spec.md +196 -0
- mgmradar-0.36.0/openspec/changes/offer-historical-data-packs/specs/single-channel-documentation/spec.md +171 -0
- mgmradar-0.36.0/openspec/changes/offer-historical-data-packs/tasks.md +56 -0
- mgmradar-0.36.0/openspec/changes/publish-mcp-registry-listings/.openspec.yaml +2 -0
- mgmradar-0.36.0/openspec/changes/publish-mcp-registry-listings/design.md +244 -0
- mgmradar-0.36.0/openspec/changes/publish-mcp-registry-listings/proposal.md +76 -0
- mgmradar-0.36.0/openspec/changes/publish-mcp-registry-listings/specs/mcp-registry-listing/spec.md +293 -0
- mgmradar-0.36.0/openspec/changes/publish-mcp-registry-listings/specs/single-channel-documentation/spec.md +44 -0
- mgmradar-0.36.0/openspec/changes/publish-mcp-registry-listings/tasks.md +40 -0
- mgmradar-0.36.0/openspec/changes/release-direct-channel-smoke-test/.openspec.yaml +6 -0
- mgmradar-0.36.0/openspec/changes/release-direct-channel-smoke-test/design.md +141 -0
- mgmradar-0.36.0/openspec/changes/release-direct-channel-smoke-test/evidence.md +117 -0
- mgmradar-0.36.0/openspec/changes/release-direct-channel-smoke-test/proposal.md +81 -0
- mgmradar-0.36.0/openspec/changes/release-direct-channel-smoke-test/tasks.md +57 -0
- mgmradar-0.36.0/openspec/changes/run-quiet-growth-loop/.openspec.yaml +2 -0
- mgmradar-0.36.0/openspec/changes/run-quiet-growth-loop/design.md +158 -0
- mgmradar-0.36.0/openspec/changes/run-quiet-growth-loop/proposal.md +90 -0
- mgmradar-0.36.0/openspec/changes/run-quiet-growth-loop/specs/quiet-growth/spec.md +497 -0
- mgmradar-0.36.0/openspec/changes/run-quiet-growth-loop/specs/single-channel-documentation/spec.md +98 -0
- mgmradar-0.36.0/openspec/changes/run-quiet-growth-loop/tasks.md +73 -0
- mgmradar-0.36.0/openspec/config.yaml +39 -0
- mgmradar-0.36.0/openspec/specs/account-upgrade/spec.md +168 -0
- mgmradar-0.36.0/openspec/specs/admin-cli/spec.md +367 -0
- mgmradar-0.36.0/openspec/specs/agent-channel-analytics/spec.md +448 -0
- mgmradar-0.36.0/openspec/specs/agent-readable-openapi/spec.md +212 -0
- mgmradar-0.36.0/openspec/specs/api-access-and-metering/spec.md +307 -0
- mgmradar-0.36.0/openspec/specs/api-credential-resolution/spec.md +295 -0
- mgmradar-0.36.0/openspec/specs/api-key-lifecycle/spec.md +178 -0
- mgmradar-0.36.0/openspec/specs/api-limit-headers/spec.md +138 -0
- mgmradar-0.36.0/openspec/specs/billing-checkout/spec.md +221 -0
- mgmradar-0.36.0/openspec/specs/billing-provider-boundary/spec.md +271 -0
- mgmradar-0.36.0/openspec/specs/billing-reconciliation/spec.md +384 -0
- mgmradar-0.36.0/openspec/specs/billing-webhooks/spec.md +276 -0
- mgmradar-0.36.0/openspec/specs/customer-portal/spec.md +750 -0
- mgmradar-0.36.0/openspec/specs/customer-subscriptions/spec.md +214 -0
- mgmradar-0.36.0/openspec/specs/history-entitlement-gating/spec.md +253 -0
- mgmradar-0.36.0/openspec/specs/host-housekeeping/spec.md +126 -0
- mgmradar-0.36.0/openspec/specs/latest-frame-access/spec.md +81 -0
- mgmradar-0.36.0/openspec/specs/lifecycle-notifications/spec.md +410 -0
- mgmradar-0.36.0/openspec/specs/mcp-oauth/spec.md +452 -0
- mgmradar-0.36.0/openspec/specs/mcp-ops-visibility/spec.md +520 -0
- mgmradar-0.36.0/openspec/specs/mgm-radar-ingestion/spec.md +104 -0
- mgmradar-0.36.0/openspec/specs/nowcast-skill-evaluation/spec.md +207 -0
- mgmradar-0.36.0/openspec/specs/ops-customer-management/spec.md +369 -0
- mgmradar-0.36.0/openspec/specs/place-resolution/spec.md +215 -0
- mgmradar-0.36.0/openspec/specs/portal-auth/spec.md +563 -0
- mgmradar-0.36.0/openspec/specs/public-discovery-access/spec.md +163 -0
- mgmradar-0.36.0/openspec/specs/radar-frame-processing/spec.md +112 -0
- mgmradar-0.36.0/openspec/specs/radar-frame-serving/spec.md +181 -0
- mgmradar-0.36.0/openspec/specs/radar-history-archive/spec.md +131 -0
- mgmradar-0.36.0/openspec/specs/radar-snapshots/spec.md +224 -0
- mgmradar-0.36.0/openspec/specs/rain-alerts/spec.md +696 -0
- mgmradar-0.36.0/openspec/specs/rain-summary/spec.md +284 -0
- mgmradar-0.36.0/openspec/specs/remote-mcp-server/spec.md +533 -0
- mgmradar-0.36.0/openspec/specs/request-idempotency/spec.md +193 -0
- mgmradar-0.36.0/openspec/specs/route-rain-query/spec.md +211 -0
- mgmradar-0.36.0/openspec/specs/self-serve-signup/spec.md +453 -0
- mgmradar-0.36.0/openspec/specs/single-channel-documentation/spec.md +388 -0
- mgmradar-0.36.0/openspec/specs/subscription-usage/spec.md +280 -0
- mgmradar-0.36.0/openspec/specs/transactional-email/spec.md +324 -0
- mgmradar-0.36.0/packages/mgmradar-mcp/README.md +18 -0
- mgmradar-0.36.0/packages/mgmradar-mcp/pyproject.toml +23 -0
- mgmradar-0.36.0/packages/mgmradar-mcp/src/mgmradar_mcp/__init__.py +5 -0
- mgmradar-0.36.0/packages/mgmradar-mcp/src/mgmradar_mcp/__main__.py +18 -0
- mgmradar-0.36.0/pyproject.toml +145 -0
- mgmradar-0.36.0/registry/listing.yaml +172 -0
- mgmradar-0.36.0/registry/schema/2025-12-11/server.schema.json +574 -0
- mgmradar-0.36.0/scripts/benchmark.py +173 -0
- mgmradar-0.36.0/scripts/build_localities_dataset.py +281 -0
- mgmradar-0.36.0/scripts/build_places_dataset.py +373 -0
- mgmradar-0.36.0/scripts/check_no_marketplace_refs.sh +53 -0
- mgmradar-0.36.0/scripts/check_pypi_names.py +162 -0
- mgmradar-0.36.0/scripts/housekeeping.py +1023 -0
- mgmradar-0.36.0/scripts/load_test.py +120 -0
- mgmradar-0.36.0/scripts/migrate_api_key_lifecycle.py +233 -0
- mgmradar-0.36.0/scripts/migrate_to_subscriptions.py +567 -0
- mgmradar-0.36.0/scripts/nowcast_backtest.py +381 -0
- mgmradar-0.36.0/scripts/reference_check.py +397 -0
- mgmradar-0.36.0/scripts/route_demo.py +134 -0
- mgmradar-0.36.0/scripts/seed_demo.py +125 -0
- mgmradar-0.36.0/scripts/seed_nowcast_fixture.py +168 -0
- mgmradar-0.36.0/scripts/smoke_mcp_stdio.py +260 -0
- mgmradar-0.36.0/scripts/smoke_test.py +142 -0
- mgmradar-0.36.0/scripts/sync_deploy_secrets.py +542 -0
- mgmradar-0.36.0/scripts/sync_mcp_listing.py +1031 -0
- mgmradar-0.36.0/server.json +26 -0
- mgmradar-0.36.0/spike-log.jsonl +6 -0
- mgmradar-0.36.0/src/README.md +18 -0
- mgmradar-0.36.0/src/mgmradar/__init__.py +8 -0
- mgmradar-0.36.0/src/mgmradar/access/__init__.py +1 -0
- mgmradar-0.36.0/src/mgmradar/access/auth.py +189 -0
- mgmradar-0.36.0/src/mgmradar/access/cache.py +179 -0
- mgmradar-0.36.0/src/mgmradar/access/key_issuance.py +230 -0
- mgmradar-0.36.0/src/mgmradar/access/ratelimit.py +120 -0
- mgmradar-0.36.0/src/mgmradar/alerts/__init__.py +23 -0
- mgmradar-0.36.0/src/mgmradar/alerts/evaluate.py +159 -0
- mgmradar-0.36.0/src/mgmradar/alerts/models.py +284 -0
- mgmradar-0.36.0/src/mgmradar/alerts/service.py +1254 -0
- mgmradar-0.36.0/src/mgmradar/alerts/signing.py +160 -0
- mgmradar-0.36.0/src/mgmradar/alerts/store.py +1194 -0
- mgmradar-0.36.0/src/mgmradar/alerts/validation.py +276 -0
- mgmradar-0.36.0/src/mgmradar/alerts/webhook.py +163 -0
- mgmradar-0.36.0/src/mgmradar/alerts/worker.py +157 -0
- mgmradar-0.36.0/src/mgmradar/api/__init__.py +1 -0
- mgmradar-0.36.0/src/mgmradar/api/alert_routes.py +608 -0
- mgmradar-0.36.0/src/mgmradar/api/app.py +315 -0
- mgmradar-0.36.0/src/mgmradar/api/billing_routes.py +319 -0
- mgmradar-0.36.0/src/mgmradar/api/deps.py +408 -0
- mgmradar-0.36.0/src/mgmradar/api/email_routes.py +157 -0
- mgmradar-0.36.0/src/mgmradar/api/errors.py +156 -0
- mgmradar-0.36.0/src/mgmradar/api/idempotency.py +163 -0
- mgmradar-0.36.0/src/mgmradar/api/llms.py +248 -0
- mgmradar-0.36.0/src/mgmradar/api/middleware.py +259 -0
- mgmradar-0.36.0/src/mgmradar/api/ops_routes.py +202 -0
- mgmradar-0.36.0/src/mgmradar/api/routes.py +2423 -0
- mgmradar-0.36.0/src/mgmradar/api/schemas.py +539 -0
- mgmradar-0.36.0/src/mgmradar/api/services.py +606 -0
- mgmradar-0.36.0/src/mgmradar/archive/__init__.py +1 -0
- mgmradar-0.36.0/src/mgmradar/archive/exports.py +591 -0
- mgmradar-0.36.0/src/mgmradar/archive/listing.py +149 -0
- mgmradar-0.36.0/src/mgmradar/archive/series.py +107 -0
- mgmradar-0.36.0/src/mgmradar/archive/signing.py +40 -0
- mgmradar-0.36.0/src/mgmradar/billing/__init__.py +247 -0
- mgmradar-0.36.0/src/mgmradar/billing/apply.py +189 -0
- mgmradar-0.36.0/src/mgmradar/billing/catalog.py +296 -0
- mgmradar-0.36.0/src/mgmradar/billing/checkout.py +144 -0
- mgmradar-0.36.0/src/mgmradar/billing/entitlements.py +227 -0
- mgmradar-0.36.0/src/mgmradar/billing/errors.py +36 -0
- mgmradar-0.36.0/src/mgmradar/billing/events.py +152 -0
- mgmradar-0.36.0/src/mgmradar/billing/health.py +147 -0
- mgmradar-0.36.0/src/mgmradar/billing/polar.py +831 -0
- mgmradar-0.36.0/src/mgmradar/billing/reconcile.py +679 -0
- mgmradar-0.36.0/src/mgmradar/billing/webhooks.py +406 -0
- mgmradar-0.36.0/src/mgmradar/billing/welcome.py +113 -0
- mgmradar-0.36.0/src/mgmradar/channels/__init__.py +25 -0
- mgmradar-0.36.0/src/mgmradar/channels/errors.py +32 -0
- mgmradar-0.36.0/src/mgmradar/channels/markdown.py +129 -0
- mgmradar-0.36.0/src/mgmradar/channels/reports.py +515 -0
- mgmradar-0.36.0/src/mgmradar/channels/taxonomy.py +115 -0
- mgmradar-0.36.0/src/mgmradar/channels/weeks.py +53 -0
- mgmradar-0.36.0/src/mgmradar/cli.py +1286 -0
- mgmradar-0.36.0/src/mgmradar/config.py +841 -0
- mgmradar-0.36.0/src/mgmradar/email/__init__.py +1 -0
- mgmradar-0.36.0/src/mgmradar/email/address.py +14 -0
- mgmradar-0.36.0/src/mgmradar/email/console.py +43 -0
- mgmradar-0.36.0/src/mgmradar/email/provider.py +40 -0
- mgmradar-0.36.0/src/mgmradar/email/render.py +50 -0
- mgmradar-0.36.0/src/mgmradar/email/resend.py +164 -0
- mgmradar-0.36.0/src/mgmradar/email/service.py +274 -0
- mgmradar-0.36.0/src/mgmradar/email/templates/cancellation.html +20 -0
- mgmradar-0.36.0/src/mgmradar/email/templates/cancellation.subject.txt +1 -0
- mgmradar-0.36.0/src/mgmradar/email/templates/cancellation.txt +14 -0
- mgmradar-0.36.0/src/mgmradar/email/templates/payment_failed.html +19 -0
- mgmradar-0.36.0/src/mgmradar/email/templates/payment_failed.subject.txt +1 -0
- mgmradar-0.36.0/src/mgmradar/email/templates/payment_failed.txt +15 -0
- mgmradar-0.36.0/src/mgmradar/email/templates/portal_login.html +14 -0
- mgmradar-0.36.0/src/mgmradar/email/templates/portal_login.subject.txt +1 -0
- mgmradar-0.36.0/src/mgmradar/email/templates/portal_login.txt +6 -0
- mgmradar-0.36.0/src/mgmradar/email/templates/quota_warning_100.html +16 -0
- mgmradar-0.36.0/src/mgmradar/email/templates/quota_warning_100.subject.txt +1 -0
- mgmradar-0.36.0/src/mgmradar/email/templates/quota_warning_100.txt +8 -0
- mgmradar-0.36.0/src/mgmradar/email/templates/quota_warning_80.html +21 -0
- mgmradar-0.36.0/src/mgmradar/email/templates/quota_warning_80.subject.txt +1 -0
- mgmradar-0.36.0/src/mgmradar/email/templates/quota_warning_80.txt +15 -0
- mgmradar-0.36.0/src/mgmradar/email/templates/signup_duplicate.html +15 -0
- mgmradar-0.36.0/src/mgmradar/email/templates/signup_duplicate.subject.txt +1 -0
- mgmradar-0.36.0/src/mgmradar/email/templates/signup_duplicate.txt +15 -0
- mgmradar-0.36.0/src/mgmradar/email/templates/signup_verification.html +14 -0
- mgmradar-0.36.0/src/mgmradar/email/templates/signup_verification.subject.txt +1 -0
- mgmradar-0.36.0/src/mgmradar/email/templates/signup_verification.txt +9 -0
- mgmradar-0.36.0/src/mgmradar/email/templates/test.html +11 -0
- mgmradar-0.36.0/src/mgmradar/email/templates/test.subject.txt +1 -0
- mgmradar-0.36.0/src/mgmradar/email/templates/test.txt +7 -0
- mgmradar-0.36.0/src/mgmradar/email/templates/welcome.html +16 -0
- mgmradar-0.36.0/src/mgmradar/email/templates/welcome.subject.txt +1 -0
- mgmradar-0.36.0/src/mgmradar/email/templates/welcome.txt +13 -0
- mgmradar-0.36.0/src/mgmradar/errors.py +169 -0
- mgmradar-0.36.0/src/mgmradar/ingest/__init__.py +1 -0
- mgmradar-0.36.0/src/mgmradar/ingest/lock.py +77 -0
- mgmradar-0.36.0/src/mgmradar/ingest/pipeline.py +419 -0
- mgmradar-0.36.0/src/mgmradar/ingest/poller.py +97 -0
- mgmradar-0.36.0/src/mgmradar/ingest/scan.py +71 -0
- mgmradar-0.36.0/src/mgmradar/ingest/source.py +175 -0
- mgmradar-0.36.0/src/mgmradar/internal.py +58 -0
- mgmradar-0.36.0/src/mgmradar/mcp/__init__.py +21 -0
- mgmradar-0.36.0/src/mgmradar/mcp/activity.py +526 -0
- mgmradar-0.36.0/src/mgmradar/mcp/auth.py +655 -0
- mgmradar-0.36.0/src/mgmradar/mcp/budget.py +114 -0
- mgmradar-0.36.0/src/mgmradar/mcp/client.py +205 -0
- mgmradar-0.36.0/src/mgmradar/mcp/constants.py +31 -0
- mgmradar-0.36.0/src/mgmradar/mcp/credentials.py +111 -0
- mgmradar-0.36.0/src/mgmradar/mcp/errors.py +218 -0
- mgmradar-0.36.0/src/mgmradar/mcp/freshness.py +53 -0
- mgmradar-0.36.0/src/mgmradar/mcp/http.py +238 -0
- mgmradar-0.36.0/src/mgmradar/mcp/interfaces.py +105 -0
- mgmradar-0.36.0/src/mgmradar/mcp/locations.py +115 -0
- mgmradar-0.36.0/src/mgmradar/mcp/registry.py +424 -0
- mgmradar-0.36.0/src/mgmradar/mcp/resolvers.py +86 -0
- mgmradar-0.36.0/src/mgmradar/mcp/results.py +185 -0
- mgmradar-0.36.0/src/mgmradar/mcp/server.py +169 -0
- mgmradar-0.36.0/src/mgmradar/mcp/stdio.py +174 -0
- mgmradar-0.36.0/src/mgmradar/mcp/tools.py +750 -0
- mgmradar-0.36.0/src/mgmradar/notifications/__init__.py +5 -0
- mgmradar-0.36.0/src/mgmradar/notifications/policy.py +83 -0
- mgmradar-0.36.0/src/mgmradar/notifications/service.py +713 -0
- mgmradar-0.36.0/src/mgmradar/notifications/unsubscribe.py +73 -0
- mgmradar-0.36.0/src/mgmradar/nowcast/__init__.py +7 -0
- mgmradar-0.36.0/src/mgmradar/nowcast/advect.py +100 -0
- mgmradar-0.36.0/src/mgmradar/nowcast/archive.py +92 -0
- mgmradar-0.36.0/src/mgmradar/nowcast/cases.py +289 -0
- mgmradar-0.36.0/src/mgmradar/nowcast/fields.py +93 -0
- mgmradar-0.36.0/src/mgmradar/nowcast/metrics.py +163 -0
- mgmradar-0.36.0/src/mgmradar/nowcast/motion.py +317 -0
- mgmradar-0.36.0/src/mgmradar/nowcast/regimes.py +67 -0
- mgmradar-0.36.0/src/mgmradar/nowcast/reporting.py +724 -0
- mgmradar-0.36.0/src/mgmradar/nowcast/runner.py +423 -0
- mgmradar-0.36.0/src/mgmradar/nowcast/stats.py +195 -0
- mgmradar-0.36.0/src/mgmradar/nowcast/verify.py +201 -0
- mgmradar-0.36.0/src/mgmradar/oauth/__init__.py +1 -0
- mgmradar-0.36.0/src/mgmradar/oauth/assertion.py +329 -0
- mgmradar-0.36.0/src/mgmradar/oauth/authorize.py +277 -0
- mgmradar-0.36.0/src/mgmradar/oauth/client_auth.py +222 -0
- mgmradar-0.36.0/src/mgmradar/oauth/client_secrets.py +42 -0
- mgmradar-0.36.0/src/mgmradar/oauth/codes.py +183 -0
- mgmradar-0.36.0/src/mgmradar/oauth/consent.py +499 -0
- mgmradar-0.36.0/src/mgmradar/oauth/constants.py +55 -0
- mgmradar-0.36.0/src/mgmradar/oauth/digests.py +18 -0
- mgmradar-0.36.0/src/mgmradar/oauth/metadata.py +138 -0
- mgmradar-0.36.0/src/mgmradar/oauth/metrics.py +93 -0
- mgmradar-0.36.0/src/mgmradar/oauth/redirects.py +28 -0
- mgmradar-0.36.0/src/mgmradar/oauth/registration.py +358 -0
- mgmradar-0.36.0/src/mgmradar/oauth/retention.py +75 -0
- mgmradar-0.36.0/src/mgmradar/oauth/revocation.py +153 -0
- mgmradar-0.36.0/src/mgmradar/oauth/tokens.py +357 -0
- mgmradar-0.36.0/src/mgmradar/oauth/verification.py +187 -0
- mgmradar-0.36.0/src/mgmradar/ops/__init__.py +1 -0
- mgmradar-0.36.0/src/mgmradar/ops/admin.py +812 -0
- mgmradar-0.36.0/src/mgmradar/ops/admin_routes.py +612 -0
- mgmradar-0.36.0/src/mgmradar/ops/alerts.py +119 -0
- mgmradar-0.36.0/src/mgmradar/ops/customers.py +685 -0
- mgmradar-0.36.0/src/mgmradar/ops/dashboard.py +1585 -0
- mgmradar-0.36.0/src/mgmradar/ops/guard.py +111 -0
- mgmradar-0.36.0/src/mgmradar/ops/health.py +57 -0
- mgmradar-0.36.0/src/mgmradar/ops/logging.py +98 -0
- mgmradar-0.36.0/src/mgmradar/ops/metrics.py +117 -0
- mgmradar-0.36.0/src/mgmradar/ops/metrics_server.py +59 -0
- mgmradar-0.36.0/src/mgmradar/ops/oauth.py +97 -0
- mgmradar-0.36.0/src/mgmradar/ops/pages.py +1002 -0
- mgmradar-0.36.0/src/mgmradar/ops/quarantine.py +38 -0
- mgmradar-0.36.0/src/mgmradar/ops/redaction.py +62 -0
- mgmradar-0.36.0/src/mgmradar/ops/status.py +86 -0
- mgmradar-0.36.0/src/mgmradar/places/__init__.py +58 -0
- mgmradar-0.36.0/src/mgmradar/places/data/tr_localities.json +1 -0
- mgmradar-0.36.0/src/mgmradar/places/data/tr_localities.manifest.json +33 -0
- mgmradar-0.36.0/src/mgmradar/places/data/tr_places.json +16897 -0
- mgmradar-0.36.0/src/mgmradar/places/data/tr_places.manifest.json +18 -0
- mgmradar-0.36.0/src/mgmradar/places/index.py +280 -0
- mgmradar-0.36.0/src/mgmradar/places/localities.py +262 -0
- mgmradar-0.36.0/src/mgmradar/places/models.py +69 -0
- mgmradar-0.36.0/src/mgmradar/places/normalize.py +59 -0
- mgmradar-0.36.0/src/mgmradar/places/resolve.py +457 -0
- mgmradar-0.36.0/src/mgmradar/plans.py +259 -0
- mgmradar-0.36.0/src/mgmradar/portal/__init__.py +1 -0
- mgmradar-0.36.0/src/mgmradar/portal/account.py +672 -0
- mgmradar-0.36.0/src/mgmradar/portal/cookies.py +71 -0
- mgmradar-0.36.0/src/mgmradar/portal/guard.py +198 -0
- mgmradar-0.36.0/src/mgmradar/portal/middleware.py +71 -0
- mgmradar-0.36.0/src/mgmradar/portal/pages.py +1579 -0
- mgmradar-0.36.0/src/mgmradar/portal/return_path.py +149 -0
- mgmradar-0.36.0/src/mgmradar/portal/routes.py +450 -0
- mgmradar-0.36.0/src/mgmradar/portal/service.py +306 -0
- mgmradar-0.36.0/src/mgmradar/portal/view.py +492 -0
- mgmradar-0.36.0/src/mgmradar/process/__init__.py +1 -0
- mgmradar-0.36.0/src/mgmradar/process/artifacts.py +54 -0
- mgmradar-0.36.0/src/mgmradar/process/calibration.py +315 -0
- mgmradar-0.36.0/src/mgmradar/process/classify.py +155 -0
- mgmradar-0.36.0/src/mgmradar/process/decode.py +47 -0
- mgmradar-0.36.0/src/mgmradar/process/legend.py +136 -0
- mgmradar-0.36.0/src/mgmradar/process/pipeline.py +405 -0
- mgmradar-0.36.0/src/mgmradar/process/rain.py +32 -0
- mgmradar-0.36.0/src/mgmradar/process/reader.py +104 -0
- mgmradar-0.36.0/src/mgmradar/process/render.py +212 -0
- mgmradar-0.36.0/src/mgmradar/process/route.py +855 -0
- mgmradar-0.36.0/src/mgmradar/process/sample.py +74 -0
- mgmradar-0.36.0/src/mgmradar/process/summary.py +91 -0
- mgmradar-0.36.0/src/mgmradar/process/validate.py +54 -0
- mgmradar-0.36.0/src/mgmradar/signup/__init__.py +1 -0
- mgmradar-0.36.0/src/mgmradar/signup/cookies.py +71 -0
- mgmradar-0.36.0/src/mgmradar/signup/pages.py +438 -0
- mgmradar-0.36.0/src/mgmradar/signup/routes.py +465 -0
- mgmradar-0.36.0/src/mgmradar/signup/service.py +578 -0
- mgmradar-0.36.0/src/mgmradar/store/__init__.py +1 -0
- mgmradar-0.36.0/src/mgmradar/store/db.py +5244 -0
- mgmradar-0.36.0/src/mgmradar/store/keys.py +47 -0
- mgmradar-0.36.0/src/mgmradar/store/models.py +987 -0
- mgmradar-0.36.0/src/mgmradar/store/objects.py +258 -0
- mgmradar-0.36.0/src/mgmradar/timeutil.py +112 -0
- mgmradar-0.36.0/src/mgmradar/web/__init__.py +11 -0
- mgmradar-0.36.0/src/mgmradar/web/components.py +400 -0
- mgmradar-0.36.0/src/mgmradar/web/html.py +37 -0
- mgmradar-0.36.0/src/mgmradar/web/layout.py +231 -0
- mgmradar-0.36.0/src/mgmradar/web/links.py +110 -0
- mgmradar-0.36.0/src/mgmradar/web/messages.py +117 -0
- mgmradar-0.36.0/src/mgmradar/web/panels.py +38 -0
- mgmradar-0.36.0/src/mgmradar/web/theme.py +319 -0
- mgmradar-0.36.0/tests/README.md +20 -0
- mgmradar-0.36.0/tests/conftest.py +325 -0
- mgmradar-0.36.0/tests/fixtures/golden.jpg +0 -0
- mgmradar-0.36.0/tests/golden/synthetic_frame.json +30 -0
- mgmradar-0.36.0/tests/htmltools.py +180 -0
- mgmradar-0.36.0/tests/nowcast_fixtures.py +133 -0
- mgmradar-0.36.0/tests/signup_support.py +234 -0
- mgmradar-0.36.0/tests/test_access.py +612 -0
- mgmradar-0.36.0/tests/test_account_upgrade.py +252 -0
- mgmradar-0.36.0/tests/test_admin_cli.py +945 -0
- mgmradar-0.36.0/tests/test_agent_surface.py +295 -0
- mgmradar-0.36.0/tests/test_api.py +1037 -0
- mgmradar-0.36.0/tests/test_api_key_lifecycle.py +778 -0
- mgmradar-0.36.0/tests/test_billing_catalog.py +334 -0
- mgmradar-0.36.0/tests/test_billing_checkout.py +418 -0
- mgmradar-0.36.0/tests/test_billing_entitlements.py +139 -0
- mgmradar-0.36.0/tests/test_billing_health.py +157 -0
- mgmradar-0.36.0/tests/test_billing_import_boundary.py +118 -0
- mgmradar-0.36.0/tests/test_billing_polar.py +641 -0
- mgmradar-0.36.0/tests/test_billing_reconcile.py +599 -0
- mgmradar-0.36.0/tests/test_billing_reconcile_cli.py +204 -0
- mgmradar-0.36.0/tests/test_billing_store.py +398 -0
- mgmradar-0.36.0/tests/test_billing_sync_store.py +244 -0
- mgmradar-0.36.0/tests/test_billing_webhook.py +489 -0
- mgmradar-0.36.0/tests/test_billing_webhook_retry.py +262 -0
- mgmradar-0.36.0/tests/test_channel_analytics.py +532 -0
- mgmradar-0.36.0/tests/test_channel_attribution.py +252 -0
- mgmradar-0.36.0/tests/test_channel_cli.py +267 -0
- mgmradar-0.36.0/tests/test_channel_config.py +67 -0
- mgmradar-0.36.0/tests/test_channel_e2e.py +117 -0
- mgmradar-0.36.0/tests/test_channel_ops.py +173 -0
- mgmradar-0.36.0/tests/test_channel_store.py +238 -0
- mgmradar-0.36.0/tests/test_channel_taxonomy.py +132 -0
- mgmradar-0.36.0/tests/test_check_pypi_names.py +114 -0
- mgmradar-0.36.0/tests/test_config.py +469 -0
- mgmradar-0.36.0/tests/test_credentials.py +829 -0
- mgmradar-0.36.0/tests/test_e2e.py +103 -0
- mgmradar-0.36.0/tests/test_email.py +747 -0
- mgmradar-0.36.0/tests/test_email_verification.py +258 -0
- mgmradar-0.36.0/tests/test_evals.py +186 -0
- mgmradar-0.36.0/tests/test_exports.py +295 -0
- mgmradar-0.36.0/tests/test_golden.py +77 -0
- mgmradar-0.36.0/tests/test_history_gating.py +428 -0
- mgmradar-0.36.0/tests/test_housekeeping.py +563 -0
- mgmradar-0.36.0/tests/test_html_surfaces.py +325 -0
- mgmradar-0.36.0/tests/test_idempotency.py +549 -0
- mgmradar-0.36.0/tests/test_ingest.py +465 -0
- mgmradar-0.36.0/tests/test_key_issuer.py +71 -0
- mgmradar-0.36.0/tests/test_mcp_activity.py +278 -0
- mgmradar-0.36.0/tests/test_mcp_credentials.py +109 -0
- mgmradar-0.36.0/tests/test_mcp_http.py +297 -0
- mgmradar-0.36.0/tests/test_mcp_listing.py +336 -0
- mgmradar-0.36.0/tests/test_mcp_oauth.py +367 -0
- mgmradar-0.36.0/tests/test_mcp_oauth_e2e.py +660 -0
- mgmradar-0.36.0/tests/test_mcp_oauth_tools.py +237 -0
- mgmradar-0.36.0/tests/test_mcp_server.py +1054 -0
- mgmradar-0.36.0/tests/test_mcp_stdio.py +165 -0
- mgmradar-0.36.0/tests/test_mcp_stdio_e2e.py +455 -0
- mgmradar-0.36.0/tests/test_mcp_tool_parity.py +141 -0
- mgmradar-0.36.0/tests/test_migration.py +525 -0
- mgmradar-0.36.0/tests/test_notification_cli.py +145 -0
- mgmradar-0.36.0/tests/test_notification_store.py +281 -0
- mgmradar-0.36.0/tests/test_notification_templates.py +61 -0
- mgmradar-0.36.0/tests/test_notification_webhook.py +103 -0
- mgmradar-0.36.0/tests/test_notifications.py +425 -0
- mgmradar-0.36.0/tests/test_nowcast_advect.py +79 -0
- mgmradar-0.36.0/tests/test_nowcast_cases.py +121 -0
- mgmradar-0.36.0/tests/test_nowcast_fields.py +51 -0
- mgmradar-0.36.0/tests/test_nowcast_metrics.py +114 -0
- mgmradar-0.36.0/tests/test_nowcast_motion.py +63 -0
- mgmradar-0.36.0/tests/test_nowcast_regimes.py +52 -0
- mgmradar-0.36.0/tests/test_nowcast_runner.py +134 -0
- mgmradar-0.36.0/tests/test_nowcast_stats.py +95 -0
- mgmradar-0.36.0/tests/test_oauth_authorize.py +500 -0
- mgmradar-0.36.0/tests/test_oauth_bridge.py +639 -0
- mgmradar-0.36.0/tests/test_oauth_cli.py +275 -0
- mgmradar-0.36.0/tests/test_oauth_codes.py +451 -0
- mgmradar-0.36.0/tests/test_oauth_consent.py +576 -0
- mgmradar-0.36.0/tests/test_oauth_metadata.py +174 -0
- mgmradar-0.36.0/tests/test_oauth_metrics.py +263 -0
- mgmradar-0.36.0/tests/test_oauth_protocol_errors.py +523 -0
- mgmradar-0.36.0/tests/test_oauth_registration.py +365 -0
- mgmradar-0.36.0/tests/test_oauth_retention.py +307 -0
- mgmradar-0.36.0/tests/test_oauth_retention_cli.py +124 -0
- mgmradar-0.36.0/tests/test_oauth_return_path.py +468 -0
- mgmradar-0.36.0/tests/test_oauth_revoke.py +388 -0
- mgmradar-0.36.0/tests/test_oauth_store.py +685 -0
- mgmradar-0.36.0/tests/test_oauth_token.py +702 -0
- mgmradar-0.36.0/tests/test_oauth_token_lifecycle.py +369 -0
- mgmradar-0.36.0/tests/test_oauth_verify.py +392 -0
- mgmradar-0.36.0/tests/test_openapi_contract.py +453 -0
- mgmradar-0.36.0/tests/test_ops.py +96 -0
- mgmradar-0.36.0/tests/test_ops_access_gate.py +191 -0
- mgmradar-0.36.0/tests/test_ops_admin_routes.py +930 -0
- mgmradar-0.36.0/tests/test_ops_customers.py +703 -0
- mgmradar-0.36.0/tests/test_ops_dashboard.py +501 -0
- mgmradar-0.36.0/tests/test_ops_guard.py +294 -0
- mgmradar-0.36.0/tests/test_ops_oauth.py +273 -0
- mgmradar-0.36.0/tests/test_ops_store.py +648 -0
- mgmradar-0.36.0/tests/test_places.py +293 -0
- mgmradar-0.36.0/tests/test_portal_account.py +422 -0
- mgmradar-0.36.0/tests/test_portal_cli.py +85 -0
- mgmradar-0.36.0/tests/test_portal_connected_apps.py +447 -0
- mgmradar-0.36.0/tests/test_portal_cookies.py +68 -0
- mgmradar-0.36.0/tests/test_portal_flows.py +440 -0
- mgmradar-0.36.0/tests/test_portal_guard.py +282 -0
- mgmradar-0.36.0/tests/test_portal_guidance.py +70 -0
- mgmradar-0.36.0/tests/test_portal_routes.py +1064 -0
- mgmradar-0.36.0/tests/test_portal_service.py +364 -0
- mgmradar-0.36.0/tests/test_portal_store.py +152 -0
- mgmradar-0.36.0/tests/test_portal_view.py +364 -0
- mgmradar-0.36.0/tests/test_processing.py +541 -0
- mgmradar-0.36.0/tests/test_public_discovery.py +214 -0
- mgmradar-0.36.0/tests/test_rain_alerts_api.py +447 -0
- mgmradar-0.36.0/tests/test_rain_alerts_config.py +234 -0
- mgmradar-0.36.0/tests/test_rain_alerts_core.py +571 -0
- mgmradar-0.36.0/tests/test_rain_alerts_e2e.py +255 -0
- mgmradar-0.36.0/tests/test_rain_alerts_pipeline.py +805 -0
- mgmradar-0.36.0/tests/test_release_workflow.py +112 -0
- mgmradar-0.36.0/tests/test_route.py +1031 -0
- mgmradar-0.36.0/tests/test_signup.py +374 -0
- mgmradar-0.36.0/tests/test_signup_cli.py +69 -0
- mgmradar-0.36.0/tests/test_signup_store.py +162 -0
- mgmradar-0.36.0/tests/test_smoke_mcp_stdio.py +83 -0
- mgmradar-0.36.0/tests/test_subscriptions.py +338 -0
- mgmradar-0.36.0/tests/test_summary.py +116 -0
- mgmradar-0.36.0/tests/test_sync_deploy_secrets.py +142 -0
- mgmradar-0.36.0/tests/test_unsubscribe.py +123 -0
- mgmradar-0.36.0/tests/test_web_links.py +39 -0
- mgmradar-0.36.0/tests/test_welcome.py +133 -0
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
# Runtime
|
|
2
|
+
MGMRADAR_ENV=development
|
|
3
|
+
MGMRADAR_BASE_URL=http://localhost:8000
|
|
4
|
+
# Public origin of the deployment. It becomes the OpenAPI server entry, the
|
|
5
|
+
# base for portal links, and one of the ops/MCP host allowlist origins.
|
|
6
|
+
# Leave empty to fall back to MGMRADAR_BASE_URL.
|
|
7
|
+
MGMRADAR_PUBLIC_BASE_URL=
|
|
8
|
+
DATA_DIR=./data
|
|
9
|
+
|
|
10
|
+
# Storage (local disk is the default single-host deployment; s3 is optional)
|
|
11
|
+
STORAGE_BACKEND=local
|
|
12
|
+
STORAGE_LOCAL_ROOT=./data/objects
|
|
13
|
+
S3_ENDPOINT=
|
|
14
|
+
S3_REGION=
|
|
15
|
+
S3_BUCKET=
|
|
16
|
+
S3_ACCESS_KEY_ID=
|
|
17
|
+
S3_SECRET_ACCESS_KEY=
|
|
18
|
+
|
|
19
|
+
# Index database (sqlite for the single-host deployment, postgresql optional)
|
|
20
|
+
DATABASE_URL=sqlite:///./data/mgmradar.db
|
|
21
|
+
DB_BUSY_TIMEOUT_MS=5000
|
|
22
|
+
|
|
23
|
+
# Upstream source adapter
|
|
24
|
+
SOURCE_ADAPTER=mgm
|
|
25
|
+
MGM_BASE_URL=https://www.mgm.gov.tr/FTPDATA/uzal/radar/comp
|
|
26
|
+
MGM_FRAME_COUNT=15
|
|
27
|
+
# How long a frame stays recoverable at its source URL. 0 = derive from
|
|
28
|
+
# MGM_FRAME_COUNT * SOURCE_CADENCE_MINUTES (15 * 10 = 150 minutes).
|
|
29
|
+
SOURCE_WINDOW_MINUTES=0
|
|
30
|
+
INGEST_INTERVAL_SECONDS=120
|
|
31
|
+
HTTP_TIMEOUT_SECONDS=15
|
|
32
|
+
HTTP_RETRIES=3
|
|
33
|
+
FRAME_STALE_AFTER_MINUTES=30
|
|
34
|
+
FRAME_DOWN_AFTER_MINUTES=60
|
|
35
|
+
|
|
36
|
+
# Calibration and rendering
|
|
37
|
+
CALIBRATION_VERSION=mgm-eq-1+legend-1
|
|
38
|
+
PROCESSING_VERSION=classify-1+zr-mp-1
|
|
39
|
+
ECHO_FRACTION_MAX=0.75
|
|
40
|
+
RENDER_MAX_WIDTH=1024
|
|
41
|
+
TILE_MAX_ZOOM=8
|
|
42
|
+
|
|
43
|
+
# Authentication and plans
|
|
44
|
+
# How long a resolved credential is cached in each process. Revocation and
|
|
45
|
+
# rotation are immediate in the process that performs them and become visible
|
|
46
|
+
# to other processes within this many seconds. 0 disables the cache; maximum 60.
|
|
47
|
+
API_KEY_CACHE_TTL_SECONDS=10
|
|
48
|
+
# First-party portal links returned in quota errors. Keep them on the deployment
|
|
49
|
+
# origin so a self-hosted instance never sends customers to another deployment.
|
|
50
|
+
UPGRADE_URL=http://localhost:8000/portal#plan
|
|
51
|
+
DOCS_URL=http://localhost:8000/portal#usage
|
|
52
|
+
PLANS_CONFIG=./config/plans.yaml
|
|
53
|
+
|
|
54
|
+
# Billing (Polar)
|
|
55
|
+
# Disabled by default. When enabled, the provider name, access token, webhook
|
|
56
|
+
# secret, API version, and the active environment's product ids are required in
|
|
57
|
+
# production. Sandbox and production are separate organizations with separate
|
|
58
|
+
# tokens, secrets, and product ids; POLAR_ENVIRONMENT must match MGMRADAR_ENV
|
|
59
|
+
# (production/production, everything else/sandbox). Never commit the token or
|
|
60
|
+
# secret; store both in the deployment secret store.
|
|
61
|
+
BILLING_ENABLED=false
|
|
62
|
+
BILLING_PROVIDER=polar
|
|
63
|
+
BILLING_PRODUCTS_CONFIG=./config/billing.yaml
|
|
64
|
+
POLAR_ACCESS_TOKEN=
|
|
65
|
+
POLAR_WEBHOOK_SECRET=
|
|
66
|
+
POLAR_ENVIRONMENT=sandbox
|
|
67
|
+
# Pinned Polar API version sent as the Polar-Version header.
|
|
68
|
+
POLAR_API_VERSION=2027-01
|
|
69
|
+
|
|
70
|
+
# Rate limiting (leave empty to use in-process counters)
|
|
71
|
+
REDIS_URL=
|
|
72
|
+
RATE_LIMIT_BURST_MULTIPLIER=2
|
|
73
|
+
# Anonymous per-IP limit for /v1/meta, /v1/status, and /v1/coverage.geojson only.
|
|
74
|
+
PUBLIC_RATE_LIMIT_PER_MINUTE=60
|
|
75
|
+
PUBLIC_RATE_LIMIT_BURST=20
|
|
76
|
+
MAX_BATCH_POINTS=500
|
|
77
|
+
MAX_RESPONSE_BYTES=8388608
|
|
78
|
+
|
|
79
|
+
# Routes (POST /v1/route)
|
|
80
|
+
ROUTE_DEFAULT_SPACING_M=1000
|
|
81
|
+
ROUTE_MIN_SPACING_M=100
|
|
82
|
+
ROUTE_MAX_SPACING_M=10000
|
|
83
|
+
ROUTE_MAX_VERTICES=100
|
|
84
|
+
ROUTE_MAX_LENGTH_KM=2000
|
|
85
|
+
ROUTE_MAX_BBOX_DEG2=400
|
|
86
|
+
ROUTE_MAX_SAMPLES=2000
|
|
87
|
+
ROUTE_MAX_ENCODED_POLYLINE_CHARS=20000
|
|
88
|
+
|
|
89
|
+
# Exports
|
|
90
|
+
EXPORT_MAX_BBOX_DEG2=25
|
|
91
|
+
EXPORT_MAX_DAYS=31
|
|
92
|
+
EXPORT_MAX_CELLS=2000000
|
|
93
|
+
EXPORT_MAX_CONCURRENT_PER_KEY=1
|
|
94
|
+
EXPORT_URL_TTL_MINUTES=60
|
|
95
|
+
EXPORT_RETENTION_DAYS=30
|
|
96
|
+
EXPORT_SIGNING_SECRET=replace-with-a-long-random-string
|
|
97
|
+
|
|
98
|
+
# Archive and retention
|
|
99
|
+
HISTORY_WINDOW_HOURS=3
|
|
100
|
+
SERIES_MAX_SAMPLES=1000
|
|
101
|
+
FRAMES_MAX_LIMIT=1000
|
|
102
|
+
RAW_RETENTION_DAYS=0
|
|
103
|
+
RENDER_RETENTION_DAYS=30
|
|
104
|
+
TILE_RETENTION_DAYS=7
|
|
105
|
+
USAGE_RETENTION_MONTHS=24
|
|
106
|
+
# Privacy-safe channel attribution (direct REST, MCP, other). Retention must be
|
|
107
|
+
# at least CHANNEL_FUNNEL_WINDOW_DAYS + 7 so one cohort can mature before its
|
|
108
|
+
# first-call rows are pruned. Both settings are independent of billing retention.
|
|
109
|
+
CHANNEL_ANALYTICS_RETENTION_DAYS=90
|
|
110
|
+
CHANNEL_FUNNEL_WINDOW_DAYS=30
|
|
111
|
+
|
|
112
|
+
# Observability
|
|
113
|
+
LOG_LEVEL=INFO
|
|
114
|
+
METRICS_ENABLED=true
|
|
115
|
+
# Discord webhook URL, or any endpoint that accepts the generic alert JSON.
|
|
116
|
+
# Create it in the target channel: Channel settings -> Integrations -> Webhooks.
|
|
117
|
+
ALERT_WEBHOOK_URL=
|
|
118
|
+
ALERT_COOLDOWN_SECONDS=900
|
|
119
|
+
|
|
120
|
+
# Rain threshold alerts (customer webhooks). Plan limits live in
|
|
121
|
+
# config/plans.yaml. Keep ALERTS_ENABLED=false until the worker is deployed and
|
|
122
|
+
# the smoke check passes.
|
|
123
|
+
ALERTS_ENABLED=false
|
|
124
|
+
# Master secret for webhook signatures and unsubscribe tokens. Required in
|
|
125
|
+
# production when alerts are enabled; generate at least 32 random bytes with
|
|
126
|
+
# python -c 'import secrets; print(secrets.token_urlsafe(32))'.
|
|
127
|
+
ALERT_SIGNING_SECRET=
|
|
128
|
+
ALERT_MAX_FRAME_AGE_SECONDS=1800
|
|
129
|
+
ALERT_MAX_GAP_SECONDS=1800
|
|
130
|
+
ALERT_MAX_ATTEMPTS=5
|
|
131
|
+
ALERT_SEND_TIMEOUT_SECONDS=5
|
|
132
|
+
ALERT_RESPONSE_BODY_LIMIT=4096
|
|
133
|
+
ALERT_DELIVERIES_PER_SECOND=20
|
|
134
|
+
ALERT_TEST_LIMIT_PER_HOUR=3
|
|
135
|
+
ALERT_DELIVERY_RETENTION_DAYS=30
|
|
136
|
+
ALERT_EVENT_RETENTION_DAYS=90
|
|
137
|
+
ALERT_JOB_RETENTION_DAYS=7
|
|
138
|
+
# Optional explicit egress proxy for alert webhooks. Empty disables environment
|
|
139
|
+
# proxy discovery so a delivery never traverses an unexpected proxy.
|
|
140
|
+
ALERT_EGRESS_PROXY=
|
|
141
|
+
|
|
142
|
+
# Transactional email. See docs/email.md. console writes .eml files and sends nothing.
|
|
143
|
+
EMAIL_PROVIDER=console
|
|
144
|
+
# resend: API key from the Resend dashboard (re_...)
|
|
145
|
+
EMAIL_API_TOKEN=
|
|
146
|
+
EMAIL_FROM_ADDRESS=
|
|
147
|
+
EMAIL_FROM_NAME=MGM Radar
|
|
148
|
+
EMAIL_REPLY_TO=
|
|
149
|
+
EMAIL_DEV_DIR=./data/email
|
|
150
|
+
EMAIL_MAX_ATTEMPTS=5
|
|
151
|
+
EMAIL_SEND_TIMEOUT_SECONDS=10
|
|
152
|
+
# Alert when a due message is this many minutes past its attempt (worker stopped).
|
|
153
|
+
EMAIL_BACKLOG_ALERT_MINUTES=15
|
|
154
|
+
# Resend webhook signing secret (whsec_...), from the webhook's details page
|
|
155
|
+
EMAIL_WEBHOOK_SIGNING_SECRET=
|
|
156
|
+
# HMAC key for one-click unsubscribe links. Required in production; generate
|
|
157
|
+
# at least 32 random bytes.
|
|
158
|
+
EMAIL_UNSUBSCRIBE_SECRET=
|
|
159
|
+
|
|
160
|
+
# Lifecycle notification sweep
|
|
161
|
+
NOTIFY_SWEEP_INTERVAL_SECONDS=300
|
|
162
|
+
NOTIFY_WELCOME_LOOKBACK_DAYS=7
|
|
163
|
+
NOTIFY_CLAIM_LEASE_SECONDS=600
|
|
164
|
+
NOTIFY_LOG_RETENTION_DAYS=400
|
|
165
|
+
|
|
166
|
+
# Operations dashboard (served by the API at /ops; no extra process)
|
|
167
|
+
OPS_DASHBOARD_ENABLED=true
|
|
168
|
+
# token: break-glass OPS_TOKEN flow. cloudflare: SSO via Cloudflare Access.
|
|
169
|
+
OPS_AUTH_MODE=token
|
|
170
|
+
# token mode only. Generate with: openssl rand -hex 32
|
|
171
|
+
OPS_TOKEN=
|
|
172
|
+
# cloudflare mode: the public hostname(s) allowed to serve /ops, e.g. ops.example.com
|
|
173
|
+
OPS_ALLOWED_HOSTS=
|
|
174
|
+
# cloudflare mode: team domain for the sign-out link, e.g. myteam.cloudflareaccess.com
|
|
175
|
+
OPS_TEAM_DOMAIN=
|
|
176
|
+
OPS_SAMPLE_INTERVAL_SECONDS=60
|
|
177
|
+
OPS_HISTORY_DAYS=30
|
|
178
|
+
DISK_ALERT_PERCENT=80
|
|
179
|
+
DISK_CRITICAL_PERCENT=90
|
|
180
|
+
|
|
181
|
+
# Customer portal (magic-link authentication at /portal)
|
|
182
|
+
# Required in production and must be at least 32 random bytes. Generate with:
|
|
183
|
+
# python -c 'import secrets; print(secrets.token_urlsafe(32))'
|
|
184
|
+
# Empty outside production generates a per-process secret, so sessions do not
|
|
185
|
+
# survive a restart. Set it in .env to keep development sessions stable.
|
|
186
|
+
PORTAL_SESSION_SECRET=
|
|
187
|
+
PORTAL_LOGIN_TOKEN_TTL_MINUTES=15
|
|
188
|
+
PORTAL_SESSION_IDLE_TTL_MINUTES=10080
|
|
189
|
+
PORTAL_SESSION_ABSOLUTE_TTL_HOURS=720
|
|
190
|
+
PORTAL_LOGIN_EMAIL_LIMIT_PER_HOUR=5
|
|
191
|
+
PORTAL_LOGIN_IP_LIMIT_PER_HOUR=20
|
|
192
|
+
PORTAL_CSRF_TTL_MINUTES=120
|
|
193
|
+
PORTAL_LOGIN_MIN_DURATION_MS=300
|
|
194
|
+
# Header/footer destinations. Docs and API reference fall back to this
|
|
195
|
+
# deployment's /docs; status and MCP fall back to /portal/status and
|
|
196
|
+
# /portal/mcp. Empty optional links are omitted, and duplicate URLs render once.
|
|
197
|
+
PORTAL_DOCS_URL=
|
|
198
|
+
PORTAL_API_REFERENCE_URL=
|
|
199
|
+
PORTAL_STATUS_URL=
|
|
200
|
+
PORTAL_QUICKSTART_URL=
|
|
201
|
+
PORTAL_MCP_URL=
|
|
202
|
+
PORTAL_SUPPORT_URL=https://app.velosophic.life/support
|
|
203
|
+
PORTAL_TERMS_URL=https://mgm-radar.velosophic.life/terms
|
|
204
|
+
PORTAL_ACCEPTABLE_USE_URL=https://mgm-radar.velosophic.life/acceptable-use
|
|
205
|
+
PORTAL_PRIVACY_URL=https://mgm-radar.velosophic.life/privacy
|
|
206
|
+
PORTAL_LICENSING_URL=https://mgm-radar.velosophic.life/licensing
|
|
207
|
+
|
|
208
|
+
# Self-serve signup and paid upgrade. Keep SIGNUP_ENABLED=false until the
|
|
209
|
+
# sender domain and email worker are ready. In production, enabling signup
|
|
210
|
+
# requires EMAIL_PROVIDER=resend, EMAIL_API_TOKEN, and EMAIL_FROM_ADDRESS.
|
|
211
|
+
SIGNUP_ENABLED=true
|
|
212
|
+
SIGNUP_PER_IP_PER_DAY=3
|
|
213
|
+
SIGNUP_GLOBAL_PER_DAY=100
|
|
214
|
+
# Independent switch for new paid checkouts; portal sign-in stays available.
|
|
215
|
+
CHECKOUT_ENABLED=true
|
|
216
|
+
|
|
217
|
+
# HTTP
|
|
218
|
+
CORS_ORIGINS=*
|
|
219
|
+
TRUST_FORWARDED_FOR=true
|
|
220
|
+
|
|
221
|
+
# Remote MCP server (Streamable HTTP at /mcp)
|
|
222
|
+
# Keep disabled until the endpoint has been verified on the host.
|
|
223
|
+
MCP_ENABLED=false
|
|
224
|
+
# Comma-separated Host header allowlist. Empty derives it from
|
|
225
|
+
# MGMRADAR_PUBLIC_BASE_URL and MGMRADAR_BASE_URL; localhost is added in development.
|
|
226
|
+
MCP_ALLOWED_HOSTS=
|
|
227
|
+
# Comma-separated browser Origin allowlist. Empty uses CORS_ORIGINS.
|
|
228
|
+
MCP_ALLOWED_ORIGINS=
|
|
229
|
+
MCP_TOOL_TIMEOUT_SECONDS=30
|
|
230
|
+
MCP_SERIES_MAX_SAMPLES=200
|
|
231
|
+
MCP_COMPARE_MAX_PLACES=50
|
|
232
|
+
MCP_SNAPSHOT_DEFAULT_WIDTH=768
|
|
233
|
+
MCP_SNAPSHOT_MIN_WIDTH=256
|
|
234
|
+
MCP_SNAPSHOT_MAX_WIDTH=1024
|
|
235
|
+
# Observation freshness bands published in every MCP result. Defaults are
|
|
236
|
+
# derived from the 10-minute source cadence (one, two, and three cycles); the
|
|
237
|
+
# last threshold matches FRAME_STALE_AFTER_MINUTES. Must be strictly increasing.
|
|
238
|
+
MCP_FRESHNESS_FRESH_SECONDS=600
|
|
239
|
+
MCP_FRESHNESS_SLIGHTLY_STALE_SECONDS=1200
|
|
240
|
+
MCP_FRESHNESS_STALE_SECONDS=1800
|
|
241
|
+
# Process-local MCP activity shown in /ops. A session is connected while its
|
|
242
|
+
# GET stream is open or it was last seen inside this window. The registry is
|
|
243
|
+
# bounded and prunes closed or idle records after the retention window.
|
|
244
|
+
MCP_CONNECTION_IDLE_SECONDS=300
|
|
245
|
+
MCP_ACTIVITY_MAX_CONNECTIONS=4096
|
|
246
|
+
MCP_ACTIVITY_RETENTION_HOURS=24
|
|
247
|
+
|
|
248
|
+
# OAuth 2.1 authorization server for the remote MCP server.
|
|
249
|
+
# Disabled by default. When enabled, MCP_ENABLED must be true and the issuer
|
|
250
|
+
# must be the deployment's public HTTPS origin. Localhost HTTP is accepted
|
|
251
|
+
# outside production only. Rollback is OAUTH_ENABLED=false plus a restart:
|
|
252
|
+
# discovery returns 404, API-key traffic is unchanged, OAuth tokens can no
|
|
253
|
+
# longer be used, and no table is dropped.
|
|
254
|
+
OAUTH_ENABLED=false
|
|
255
|
+
# Public issuer origin. Empty uses MGMRADAR_PUBLIC_BASE_URL, or
|
|
256
|
+
# MGMRADAR_BASE_URL outside production. No path, trailing slash, query, or
|
|
257
|
+
# fragment. This is a stable identifier: changing it changes the resource and
|
|
258
|
+
# requires every client to re-register and re-consent. Pin it explicitly in
|
|
259
|
+
# production instead of depending on a base-URL edit.
|
|
260
|
+
OAUTH_ISSUER=
|
|
261
|
+
# Exact MCP resource URL. Empty uses <issuer>/mcp; a configured value must match.
|
|
262
|
+
OAUTH_RESOURCE=
|
|
263
|
+
# Opaque token lifetimes. Public clients get a long-lived access token and no
|
|
264
|
+
# refresh token in v1. Refresh tokens are static (not rotated) in v1.
|
|
265
|
+
OAUTH_ACCESS_TOKEN_TTL_MINUTES=60
|
|
266
|
+
OAUTH_PUBLIC_ACCESS_TOKEN_TTL_DAYS=30
|
|
267
|
+
OAUTH_REFRESH_TOKEN_TTL_DAYS=30
|
|
268
|
+
OAUTH_CODE_TTL_MINUTES=10
|
|
269
|
+
# The consent request must survive the magic-link round trip; the login token
|
|
270
|
+
# defaults to 15 minutes.
|
|
271
|
+
OAUTH_REQUEST_TTL_MINUTES=30
|
|
272
|
+
# Dynamic clients with no consent, token, code, or request are removed after
|
|
273
|
+
# this window by `mgmradar cleanup-oauth` (run from host housekeeping). A client
|
|
274
|
+
# with any remaining consent, token, code, or request row is never removed;
|
|
275
|
+
# expired material is pruned first and revoked consents stay in place.
|
|
276
|
+
OAUTH_UNUSED_CLIENT_DAYS=90
|
|
277
|
+
# Dynamic client registration and the redirect URI host allowlist. Entries are
|
|
278
|
+
# bare hostnames: no scheme, port, path, or wildcard. When disabled,
|
|
279
|
+
# POST /oauth/register returns 404 and the metadata omits the registration
|
|
280
|
+
# endpoint. v1 has no operator client-creation command, so only clients
|
|
281
|
+
# registered before the toggle can connect; keep this enabled unless a
|
|
282
|
+
# pre-registration path is added.
|
|
283
|
+
OAUTH_DCR_ENABLED=true
|
|
284
|
+
OAUTH_REDIRECT_HOSTS=chatgpt.com,chat.openai.com,claude.ai,localhost,127.0.0.1
|
|
285
|
+
# Requests per minute per client IP for each OAuth endpoint.
|
|
286
|
+
OAUTH_REGISTER_RATE_LIMIT_PER_MINUTE=10
|
|
287
|
+
OAUTH_AUTHORIZE_RATE_LIMIT_PER_MINUTE=60
|
|
288
|
+
OAUTH_CONSENT_RATE_LIMIT_PER_MINUTE=60
|
|
289
|
+
OAUTH_TOKEN_RATE_LIMIT_PER_MINUTE=120
|
|
290
|
+
OAUTH_REVOKE_RATE_LIMIT_PER_MINUTE=60
|
|
291
|
+
# Short-lived HMAC assertion between /mcp and /v1. The key is derived from
|
|
292
|
+
# PORTAL_SESSION_SECRET unless OAUTH_ASSERTION_SECRET is set (at least 32
|
|
293
|
+
# bytes); the derived key is domain-separated from the portal session key.
|
|
294
|
+
# Rotating the assertion key only invalidates assertions already in flight (at
|
|
295
|
+
# most the TTL below); it does not revoke OAuth tokens. Keep it stable across
|
|
296
|
+
# restarts and restore the same value with a database backup.
|
|
297
|
+
OAUTH_ASSERTION_TTL_SECONDS=60
|
|
298
|
+
OAUTH_ASSERTION_SECRET=
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
workflow_call:
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
pull-requests: read
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
test:
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v4
|
|
18
|
+
- uses: actions/setup-python@v5
|
|
19
|
+
with:
|
|
20
|
+
python-version: "3.12"
|
|
21
|
+
cache: pip
|
|
22
|
+
- name: Install
|
|
23
|
+
run: |
|
|
24
|
+
python -m pip install --upgrade pip
|
|
25
|
+
pip install -e ".[dev]"
|
|
26
|
+
- name: MCP listing
|
|
27
|
+
run: python scripts/sync_mcp_listing.py --check
|
|
28
|
+
- name: Lint
|
|
29
|
+
run: ruff check src tests evals scripts/sync_mcp_listing.py
|
|
30
|
+
- name: Format
|
|
31
|
+
run: ruff format --check src tests evals scripts/sync_mcp_listing.py
|
|
32
|
+
- name: Type check
|
|
33
|
+
run: mypy src
|
|
34
|
+
- name: MCP evaluation corpus
|
|
35
|
+
run: python -m evals.runner --provider scripted --validate-only
|
|
36
|
+
- name: Retired channel gate
|
|
37
|
+
run: ./scripts/check_no_marketplace_refs.sh
|
|
38
|
+
- name: Tests
|
|
39
|
+
run: pytest --cov=mgmradar --cov-report=term-missing
|
|
40
|
+
|
|
41
|
+
package:
|
|
42
|
+
name: Local stdio package
|
|
43
|
+
runs-on: ubuntu-latest
|
|
44
|
+
steps:
|
|
45
|
+
- uses: actions/checkout@v4
|
|
46
|
+
- uses: actions/setup-python@v5
|
|
47
|
+
with:
|
|
48
|
+
python-version: "3.12"
|
|
49
|
+
cache: pip
|
|
50
|
+
- name: Install
|
|
51
|
+
run: |
|
|
52
|
+
python -m pip install --upgrade pip
|
|
53
|
+
pip install -e ".[dev]"
|
|
54
|
+
- name: Lint launcher
|
|
55
|
+
run: |
|
|
56
|
+
ruff check src tests packages/mgmradar-mcp/src \
|
|
57
|
+
scripts/smoke_mcp_stdio.py scripts/check_pypi_names.py
|
|
58
|
+
ruff format --check src tests packages/mgmradar-mcp/src \
|
|
59
|
+
scripts/smoke_mcp_stdio.py scripts/check_pypi_names.py
|
|
60
|
+
- name: Type-check launcher
|
|
61
|
+
run: |
|
|
62
|
+
MYPYPATH=src mypy packages/mgmradar-mcp/src \
|
|
63
|
+
scripts/smoke_mcp_stdio.py scripts/check_pypi_names.py
|
|
64
|
+
- name: Build both distributions
|
|
65
|
+
run: |
|
|
66
|
+
python -m build --outdir dist .
|
|
67
|
+
python -m build --outdir dist packages/mgmradar-mcp
|
|
68
|
+
- name: Inspect launcher wheel
|
|
69
|
+
run: |
|
|
70
|
+
python - <<'PY'
|
|
71
|
+
import glob
|
|
72
|
+
import zipfile
|
|
73
|
+
from pathlib import Path
|
|
74
|
+
|
|
75
|
+
wheel = Path(glob.glob("dist/mgmradar_mcp-*.whl")[0])
|
|
76
|
+
with zipfile.ZipFile(wheel) as archive:
|
|
77
|
+
names = archive.namelist()
|
|
78
|
+
payload = [name for name in names if name.startswith("mgmradar_mcp/")]
|
|
79
|
+
assert sorted(payload) == ["mgmradar_mcp/__init__.py", "mgmradar_mcp/__main__.py"]
|
|
80
|
+
metadata = archive.read(
|
|
81
|
+
next(name for name in names if name.endswith("METADATA"))
|
|
82
|
+
).decode()
|
|
83
|
+
assert "Requires-Dist: mgmradar" in metadata
|
|
84
|
+
entry_points = archive.read(
|
|
85
|
+
next(name for name in names if name.endswith("entry_points.txt"))
|
|
86
|
+
).decode()
|
|
87
|
+
assert "mgmradar-mcp = mgmradar_mcp.__main__:main" in entry_points
|
|
88
|
+
print(f"launcher wheel contains only the launcher: {wheel.name}")
|
|
89
|
+
PY
|
|
90
|
+
- name: Install the pair in a clean environment
|
|
91
|
+
run: |
|
|
92
|
+
python -m venv "$RUNNER_TEMP/install"
|
|
93
|
+
"$RUNNER_TEMP/install/bin/pip" install --upgrade pip
|
|
94
|
+
"$RUNNER_TEMP/install/bin/pip" install dist/mgmradar-*.whl
|
|
95
|
+
"$RUNNER_TEMP/install/bin/pip" install --no-deps dist/mgmradar_mcp-*.whl
|
|
96
|
+
cd "$RUNNER_TEMP"
|
|
97
|
+
"$RUNNER_TEMP/install/bin/mgmradar-mcp" --version
|
|
98
|
+
"$RUNNER_TEMP/install/bin/mgmradar-mcp" --help
|
|
99
|
+
- name: Verify installed versions match
|
|
100
|
+
run: |
|
|
101
|
+
python - <<'PY'
|
|
102
|
+
import os
|
|
103
|
+
import subprocess
|
|
104
|
+
|
|
105
|
+
binary = os.path.join(
|
|
106
|
+
os.environ["RUNNER_TEMP"], "install", "bin", "mgmradar-mcp"
|
|
107
|
+
)
|
|
108
|
+
output = subprocess.check_output([binary, "--version"], text=True)
|
|
109
|
+
lines = output.splitlines()
|
|
110
|
+
launcher = lines[0].split()[1]
|
|
111
|
+
core = lines[1].split()[1]
|
|
112
|
+
assert launcher == core, f"launcher {launcher} != core {core}"
|
|
113
|
+
print(output)
|
|
114
|
+
PY
|
|
115
|
+
|
|
116
|
+
semantic-pr-title:
|
|
117
|
+
name: Conventional PR title
|
|
118
|
+
if: github.event_name == 'pull_request'
|
|
119
|
+
runs-on: ubuntu-latest
|
|
120
|
+
permissions:
|
|
121
|
+
pull-requests: read
|
|
122
|
+
steps:
|
|
123
|
+
- uses: amannn/action-semantic-pull-request@v5
|
|
124
|
+
env:
|
|
125
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
name: Deploy
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
inputs:
|
|
6
|
+
tag:
|
|
7
|
+
description: Git tag to deploy, or "latest" for the newest release tag
|
|
8
|
+
required: true
|
|
9
|
+
default: latest
|
|
10
|
+
type: string
|
|
11
|
+
|
|
12
|
+
permissions:
|
|
13
|
+
contents: read
|
|
14
|
+
|
|
15
|
+
concurrency:
|
|
16
|
+
group: deploy-production
|
|
17
|
+
cancel-in-progress: false
|
|
18
|
+
|
|
19
|
+
jobs:
|
|
20
|
+
deploy:
|
|
21
|
+
name: Deploy ${{ inputs.tag }}
|
|
22
|
+
runs-on: ubuntu-latest
|
|
23
|
+
environment:
|
|
24
|
+
name: production
|
|
25
|
+
url: ${{ vars.APP_BASE_URL }}
|
|
26
|
+
steps:
|
|
27
|
+
- name: Check out repository
|
|
28
|
+
uses: actions/checkout@v4
|
|
29
|
+
with:
|
|
30
|
+
fetch-depth: 0
|
|
31
|
+
ref: ${{ inputs.tag == 'latest' && 'main' || inputs.tag }}
|
|
32
|
+
|
|
33
|
+
- name: Resolve release tag
|
|
34
|
+
id: release
|
|
35
|
+
run: |
|
|
36
|
+
set -euo pipefail
|
|
37
|
+
if [ "${{ inputs.tag }}" = "latest" ]; then
|
|
38
|
+
git fetch --tags --force
|
|
39
|
+
tag="$(git tag --list 'v*' --sort=-v:refname | head -n 1)"
|
|
40
|
+
else
|
|
41
|
+
tag="${{ inputs.tag }}"
|
|
42
|
+
fi
|
|
43
|
+
if [ -z "$tag" ]; then
|
|
44
|
+
echo "No release tag found to deploy." >&2
|
|
45
|
+
exit 1
|
|
46
|
+
fi
|
|
47
|
+
git checkout --force "$tag"
|
|
48
|
+
echo "tag=$tag" >> "$GITHUB_OUTPUT"
|
|
49
|
+
echo "version=${tag#v}" >> "$GITHUB_OUTPUT"
|
|
50
|
+
echo "Deploying \`$tag\` to production." >> "$GITHUB_STEP_SUMMARY"
|
|
51
|
+
|
|
52
|
+
- name: Validate deployment configuration
|
|
53
|
+
env:
|
|
54
|
+
ANSIBLE_INVENTORY: ${{ secrets.ANSIBLE_INVENTORY }}
|
|
55
|
+
ANSIBLE_VARS: ${{ secrets.ANSIBLE_VARS }}
|
|
56
|
+
DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}
|
|
57
|
+
DEPLOY_SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
|
|
58
|
+
run: |
|
|
59
|
+
set -euo pipefail
|
|
60
|
+
missing=()
|
|
61
|
+
[ -n "${DEPLOY_SSH_KEY:-}" ] || missing+=(DEPLOY_SSH_KEY)
|
|
62
|
+
if [ -z "${ANSIBLE_INVENTORY:-}" ] && [ -z "${DEPLOY_HOST:-}" ]; then
|
|
63
|
+
missing+=(DEPLOY_HOST)
|
|
64
|
+
fi
|
|
65
|
+
[ -n "${ANSIBLE_VARS:-}" ] || missing+=(ANSIBLE_VARS)
|
|
66
|
+
if [ "${#missing[@]}" -gt 0 ]; then
|
|
67
|
+
echo "Missing required deployment secrets: ${missing[*]}" >&2
|
|
68
|
+
exit 1
|
|
69
|
+
fi
|
|
70
|
+
|
|
71
|
+
- name: Set up Python
|
|
72
|
+
uses: actions/setup-python@v5
|
|
73
|
+
with:
|
|
74
|
+
python-version: "3.12"
|
|
75
|
+
|
|
76
|
+
- name: Install Ansible
|
|
77
|
+
run: |
|
|
78
|
+
python -m pip install --upgrade pip
|
|
79
|
+
pip install "ansible-core>=2.19,<3"
|
|
80
|
+
ansible-galaxy collection install -r ansible/requirements.yml
|
|
81
|
+
|
|
82
|
+
- name: Configure SSH
|
|
83
|
+
env:
|
|
84
|
+
DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}
|
|
85
|
+
DEPLOY_PORT: ${{ secrets.DEPLOY_PORT || '22' }}
|
|
86
|
+
DEPLOY_SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
|
|
87
|
+
DEPLOY_KNOWN_HOSTS: ${{ secrets.DEPLOY_KNOWN_HOSTS }}
|
|
88
|
+
run: |
|
|
89
|
+
set -euo pipefail
|
|
90
|
+
install -d -m 700 "$HOME/.ssh"
|
|
91
|
+
printf '%s\n' "$DEPLOY_SSH_KEY" > "$HOME/.ssh/deploy_key"
|
|
92
|
+
chmod 600 "$HOME/.ssh/deploy_key"
|
|
93
|
+
if [ -n "${DEPLOY_KNOWN_HOSTS:-}" ]; then
|
|
94
|
+
printf '%s\n' "$DEPLOY_KNOWN_HOSTS" > "$HOME/.ssh/known_hosts"
|
|
95
|
+
elif [ -n "${DEPLOY_HOST:-}" ]; then
|
|
96
|
+
ssh-keyscan -p "$DEPLOY_PORT" "$DEPLOY_HOST" >> "$HOME/.ssh/known_hosts"
|
|
97
|
+
else
|
|
98
|
+
echo "Set DEPLOY_HOST or DEPLOY_KNOWN_HOSTS so the runner can verify the host key." >&2
|
|
99
|
+
exit 1
|
|
100
|
+
fi
|
|
101
|
+
|
|
102
|
+
- name: Verify SSH access
|
|
103
|
+
env:
|
|
104
|
+
ANSIBLE_INVENTORY: ${{ secrets.ANSIBLE_INVENTORY }}
|
|
105
|
+
DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}
|
|
106
|
+
DEPLOY_USER: ${{ secrets.DEPLOY_USER || 'root' }}
|
|
107
|
+
DEPLOY_PORT: ${{ secrets.DEPLOY_PORT || '22' }}
|
|
108
|
+
run: |
|
|
109
|
+
set -euo pipefail
|
|
110
|
+
if [ -z "${ANSIBLE_INVENTORY:-}" ]; then
|
|
111
|
+
ssh -i "$HOME/.ssh/deploy_key" \
|
|
112
|
+
-p "$DEPLOY_PORT" \
|
|
113
|
+
-o BatchMode=yes \
|
|
114
|
+
-o ConnectTimeout=10 \
|
|
115
|
+
"$DEPLOY_USER@$DEPLOY_HOST" true
|
|
116
|
+
fi
|
|
117
|
+
|
|
118
|
+
- name: Write Ansible inventory and variables
|
|
119
|
+
env:
|
|
120
|
+
ANSIBLE_INVENTORY: ${{ secrets.ANSIBLE_INVENTORY }}
|
|
121
|
+
ANSIBLE_VARS: ${{ secrets.ANSIBLE_VARS }}
|
|
122
|
+
ANSIBLE_VAULT: ${{ secrets.ANSIBLE_VAULT }}
|
|
123
|
+
ANSIBLE_VAULT_PASSWORD: ${{ secrets.ANSIBLE_VAULT_PASSWORD }}
|
|
124
|
+
ANSIBLE_BECOME_PASSWORD: ${{ secrets.ANSIBLE_BECOME_PASSWORD }}
|
|
125
|
+
DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}
|
|
126
|
+
DEPLOY_USER: ${{ secrets.DEPLOY_USER || 'root' }}
|
|
127
|
+
DEPLOY_PORT: ${{ secrets.DEPLOY_PORT || '22' }}
|
|
128
|
+
run: |
|
|
129
|
+
set -euo pipefail
|
|
130
|
+
install -d -m 700 ansible/inventory ansible/group_vars/all
|
|
131
|
+
|
|
132
|
+
if [ -n "${ANSIBLE_INVENTORY:-}" ]; then
|
|
133
|
+
printf '%s\n' "$ANSIBLE_INVENTORY" > ansible/inventory/hosts.yml
|
|
134
|
+
else
|
|
135
|
+
cat > ansible/inventory/hosts.yml <<EOF
|
|
136
|
+
all:
|
|
137
|
+
children:
|
|
138
|
+
mgmradar:
|
|
139
|
+
hosts:
|
|
140
|
+
mgmradar-prod:
|
|
141
|
+
ansible_host: ${DEPLOY_HOST:?DEPLOY_HOST secret is required}
|
|
142
|
+
ansible_user: ${DEPLOY_USER}
|
|
143
|
+
ansible_port: ${DEPLOY_PORT}
|
|
144
|
+
ansible_ssh_private_key_file: $HOME/.ssh/deploy_key
|
|
145
|
+
EOF
|
|
146
|
+
fi
|
|
147
|
+
|
|
148
|
+
if [ -z "${ANSIBLE_VARS:-}" ]; then
|
|
149
|
+
echo "The ANSIBLE_VARS secret is required. Copy ansible/group_vars/all/vars.yml into it." >&2
|
|
150
|
+
exit 1
|
|
151
|
+
fi
|
|
152
|
+
printf '%s\n' "$ANSIBLE_VARS" > ansible/group_vars/all/vars.yml
|
|
153
|
+
|
|
154
|
+
if [ -n "${ANSIBLE_VAULT:-}" ]; then
|
|
155
|
+
printf '%s\n' "$ANSIBLE_VAULT" > ansible/group_vars/all/vault.yml
|
|
156
|
+
fi
|
|
157
|
+
|
|
158
|
+
if [ -n "${ANSIBLE_VAULT_PASSWORD:-}" ]; then
|
|
159
|
+
printf '%s\n' "$ANSIBLE_VAULT_PASSWORD" > "$RUNNER_TEMP/vault-password"
|
|
160
|
+
chmod 600 "$RUNNER_TEMP/vault-password"
|
|
161
|
+
fi
|
|
162
|
+
|
|
163
|
+
if [ -n "${ANSIBLE_BECOME_PASSWORD:-}" ]; then
|
|
164
|
+
printf '%s\n' "$ANSIBLE_BECOME_PASSWORD" > "$RUNNER_TEMP/become-password"
|
|
165
|
+
chmod 600 "$RUNNER_TEMP/become-password"
|
|
166
|
+
fi
|
|
167
|
+
|
|
168
|
+
- name: Deploy with Ansible
|
|
169
|
+
working-directory: ansible
|
|
170
|
+
env:
|
|
171
|
+
ANSIBLE_FORCE_COLOR: "1"
|
|
172
|
+
ANSIBLE_HOST_KEY_CHECKING: "True"
|
|
173
|
+
run: |
|
|
174
|
+
set -euo pipefail
|
|
175
|
+
args=(site.yml -e "app_version=${{ steps.release.outputs.tag }}" -e "compose_build=true")
|
|
176
|
+
if [ -f "$RUNNER_TEMP/vault-password" ]; then
|
|
177
|
+
args+=(--vault-password-file "$RUNNER_TEMP/vault-password")
|
|
178
|
+
fi
|
|
179
|
+
if [ -f "$RUNNER_TEMP/become-password" ]; then
|
|
180
|
+
args+=(--become-password-file "$RUNNER_TEMP/become-password")
|
|
181
|
+
fi
|
|
182
|
+
ansible-playbook "${args[@]}"
|
|
183
|
+
|
|
184
|
+
- name: Summarize deployment
|
|
185
|
+
run: |
|
|
186
|
+
{
|
|
187
|
+
echo "## Deployment"
|
|
188
|
+
echo
|
|
189
|
+
echo "- Version: \`${{ steps.release.outputs.version }}\`"
|
|
190
|
+
echo "- Tag: \`${{ steps.release.outputs.tag }}\`"
|
|
191
|
+
echo "- Endpoint: ${{ vars.APP_BASE_URL }}"
|
|
192
|
+
} >> "$GITHUB_STEP_SUMMARY"
|