Files
bernatsamperaandClaude Opus 4.6 ce6e7711af Strip API to install-counter service, add CLI install ping
API: replace the marketplace (submit/approve/reject/moderation) with a
minimal counter table (id + downloads). Single upsert endpoint auto-creates
rows on first ping, X-Source: site exclusion preserved. Inline migration
copies existing counts and drops legacy tables. Removes slowapi, pyyaml,
manifest validation, and all moderation routes.

CLI: gcontext add now pings the API after a successful registry install so
the download counter reflects real usage. Fire-and-forget with 3s timeout,
gated to skip when GCONTEXT_REGISTRY is overridden (tests, private registries).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-08-11 00:12:09 +02:00

10 lines
142 B
Python

import os
def database_url() -> str:
return os.environ["DATABASE_URL"]
def admin_token() -> str:
return os.environ["ADMIN_TOKEN"]