feat: add manifest_detect.php CLI tool for auto-detecting manifest fields
Generic: Repo Health / Scripts governance (push) Has been cancelled
Generic: Repo Health / Repository health (push) Has been cancelled
Generic: Repo Health / Report Issues (push) Has been cancelled
Generic: Project CI / Tests (pull_request) Has been cancelled
Platform: mokoplatform CI / Gate 2: Unit Tests (8.1) (pull_request) Has been cancelled
Platform: mokoplatform CI / Gate 2: Unit Tests (8.2) (pull_request) Has been cancelled
Platform: mokoplatform CI / Gate 2: Unit Tests (8.3) (pull_request) Has been cancelled
Platform: mokoplatform CI / Gate 3: Self-Health Check (pull_request) Has been cancelled
Platform: mokoplatform CI / Gate 4: Governance (pull_request) Has been cancelled
Platform: mokoplatform CI / Gate 5: Template Integrity (pull_request) Has been cancelled
Platform: mokoplatform CI / CI Summary (pull_request) Has been cancelled
Universal: PR Check / Build RC Package (pull_request) Has been cancelled
Universal: PR Check / Report Issues (pull_request) Has been cancelled
Generic: Repo Health / Scripts governance (pull_request) Has been cancelled
Generic: Repo Health / Repository health (pull_request) Has been cancelled
Generic: Repo Health / Report Issues (pull_request) Has been cancelled
Generic: Repo Health / Access control (push) Has been cancelled
Generic: Repo Health / Site Health (push) Has been cancelled
Universal: PR Check / Branch Policy (pull_request) Has been cancelled
Generic: Repo Health / Access control (pull_request) Has been cancelled
Generic: Repo Health / Site Health (pull_request) Has been cancelled
Universal: Secret Scanning / Gitleaks Secret Scan (pull_request) Has been cancelled
Universal: PR Check / Validate PR (pull_request) Has been cancelled
Universal: Security Audit / Dependency Audit (pull_request) Has been cancelled
Generic: Project CI / Lint & Validate (pull_request) Has been cancelled
Platform: mokoplatform CI / Gate 1: Code Quality (pull_request) Has been cancelled

Scans source files to detect platform, name, version, element_name,
package_type, language, entry_point, description, and license_spdx.
Supports Joomla, Dolibarr, Go, MCP/Node, and generic platforms.

Includes --diff and --update modes for comparing against and pushing
to the Gitea manifest API. Warns on missing core fields.

Also removes deprecated mcp/servers/mokowaas_api (consolidated to
separate repo) and syncs dev branch changes.
This commit is contained in:
Jonathan Miller
2026-06-07 15:20:20 -05:00
parent e5ab1a4cd5
commit 767dcce137
482 changed files with 2489 additions and 1435 deletions
@@ -10,9 +10,9 @@
* FILE INFORMATION
* DEFGROUP: MokoPlatform.Templates.Scripts.Validate
* INGROUP: MokoPlatform.Templates
* REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
* PATH: /templates/scripts/validate/validate_structure.php
* BRIEF: Validate a repository structure against moko-platform requirements
* BRIEF: Validate a repository structure against mokoplatform requirements
* NOTE: Deployed to bin/validate_structure.php in governed generic/default repos.
* Run: php bin/validate_structure.php [--path DIR] [--verbose]
*/
@@ -25,7 +25,7 @@ require_once __DIR__ . '/../vendor/autoload.php';
use MokoEnterprise\CliFramework;
/**
* Validates a generic repository structure against moko-platform requirements.
* Validates a generic repository structure against mokoplatform requirements.
*
* Checks performed:
* - Required root files present (README.md, CHANGELOG.md, LICENSE, CONTRIBUTING.md,
@@ -40,7 +40,7 @@ class ValidateStructure extends CliFramework
{
protected function configure(): void
{
$this->setDescription('Validate a repository structure against moko-platform requirements');
$this->setDescription('Validate a repository structure against mokoplatform requirements');
$this->addArgument('--path', 'Repository root to validate', '.');
}
@@ -72,7 +72,7 @@ class ValidateStructure extends CliFramework
}
// ── Governance attachment ─────────────────────────────────────────
$this->section('moko-platform governance');
$this->section('mokoplatform governance');
$mokoFile = file_exists("{$path}/.mokogitea/manifest.xml")
|| file_exists("{$path}/.github/.mokostandards")
|| file_exists("{$path}/.mokostandards");
@@ -87,7 +87,7 @@ class ValidateStructure extends CliFramework
? "{$path}/.github/.mokostandards"
: "{$path}/.mokostandards");
$manifestContent = file_get_contents($manifestPath);
$isXml = str_contains($manifestContent, '<moko-platform') || str_contains($manifestContent, '<mokostandards');
$isXml = str_contains($manifestContent, '<mokoplatform') || str_contains($manifestContent, '<mokostandards');
$this->status($isXml, 'manifest.xml uses XML format');
$isXml ? $passed++ : $failed++;
}
@@ -172,5 +172,5 @@ class ValidateStructure extends CliFramework
}
}
$script = new ValidateStructure('validate_structure', 'Validate a repository structure against moko-platform requirements');
$script = new ValidateStructure('validate_structure', 'Validate a repository structure against mokoplatform requirements');
exit($script->execute());