This commit is contained in:
Javier Casares 2026-08-10 16:21:45 +00:00
commit cc1bca74fa

View file

@ -2,8 +2,18 @@
/**
* Generic JSON-based updater for ROBOTSTXT plugins.
*
* This file is designed to be copied to any ROBOTSTXT plugin.
* It auto-configures itself by reading the plugin headers.
* EXTERNAL DEPENDENCY — vendored, not part of the iDrivee2Media namespace.
*
* This file is a shared library copied verbatim across ROBOTSTXT plugins.
* It provides automatic update checks against a Gitea instance
* (git.robotstxt.es) by reading plugin headers and constructing the
* update-check URL. Cached responses are HMAC-signed with AUTH_SALT.
*
* Justification for inclusion (per AGENTS-compatibility-architecture.md):
* - Enables automatic updates from the private Gitea registry without
* manual ZIP uploads.
* - Self-contained: no Composer/npm dependency, reads headers only.
* - Uses the WP HTTP API (wp_remote_get) and transients for caching.
*
* @package ROBOTSTXT
* @version 1.0.0