fix(critical): bin/moko COMMAND_MAP — remove api/ prefix, add all tools
Generic: Repo Health / Site Health (push) Has been cancelled
Generic: Repo Health / Access control (push) Has been cancelled
Generic: Repo Health / Release configuration (push) Has been cancelled
Generic: Repo Health / Scripts governance (push) Has been cancelled
Generic: Repo Health / Repository health (push) Has been cancelled
Platform: moko-platform CI / Gate 1: Code Quality (push) Has been cancelled
Universal: PR Check / Branch Policy (pull_request) Has been cancelled
Generic: Repo Health / Site Health (pull_request) Has been cancelled
Generic: Repo Health / Access control (pull_request) Has been cancelled
Universal: Secret Scanning / Gitleaks Secret Scan (pull_request) Has been cancelled
Generic: Repo Health / Release configuration (pull_request) Has been cancelled
Generic: Repo Health / Scripts governance (pull_request) Has been cancelled
Universal: PR Check / Validate PR (pull_request) Has been cancelled
Universal: PR Check / Build RC Package (pull_request) Has been cancelled
Generic: Repo Health / Repository health (pull_request) Has been cancelled
Platform: moko-platform CI / Gate 1: Code Quality (pull_request) Has been cancelled
Platform: moko-platform CI / Gate 5: Template Integrity (pull_request) Has been cancelled
Platform: moko-platform CI / Gate 2: Unit Tests (8.2) (pull_request) Has been cancelled
Platform: moko-platform CI / Gate 3: Self-Health Check (pull_request) Has been cancelled
Platform: moko-platform CI / Gate 4: Governance (pull_request) Has been cancelled
Platform: moko-platform CI / Gate 2: Unit Tests (8.1) (pull_request) Has been cancelled
Platform: moko-platform CI / Gate 2: Unit Tests (8.3) (pull_request) Has been cancelled
Platform: moko-platform CI / Gate 5: Template Integrity (push) Has been cancelled
Platform: moko-platform CI / Gate 3: Self-Health Check (push) Has been cancelled
Platform: moko-platform CI / Gate 2: Unit Tests (8.2) (push) Has been cancelled
Platform: moko-platform CI / Gate 4: Governance (push) Has been cancelled
Platform: moko-platform CI / Gate 2: Unit Tests (8.1) (push) Has been cancelled
Platform: moko-platform CI / Gate 2: Unit Tests (8.3) (push) Has been cancelled
Platform: moko-platform CI / CI Summary (push) Has been cancelled
Platform: moko-platform CI / CI Summary (pull_request) Has been cancelled

All paths pointed to non-existent api/ directory. Fixed to use actual
paths (automation/, validate/, cli/, maintenance/). Also added 20 missing
commands covering all CLI tools built this session.

Closes #100

Authored-by: Moko Consulting
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jonathan Miller
2026-05-25 20:36:09 -05:00
parent c53ab7e44c
commit 5c5c5e9ff2
+57 -26
View File
@@ -88,45 +88,76 @@ require_once $autoloader;
*/
const COMMAND_MAP = [
// Automation
'sync' => 'api/automation/bulk_sync.php',
'sync' => 'automation/bulk_sync.php',
// Maintenance
'inventory' => 'api/maintenance/update_repo_inventory.php',
'inventory' => 'maintenance/update_repo_inventory.php',
// Validation — general
'health' => 'api/validate/check_repo_health.php',
'check:syntax' => 'api/validate/check_php_syntax.php',
'check:version' => 'api/validate/check_version_consistency.php',
'check:changelog' => 'api/validate/check_changelog.php',
'check:structure' => 'api/validate/check_structure.php',
'check:headers' => 'api/validate/check_license_headers.php',
'check:secrets' => 'api/validate/check_no_secrets.php',
'check:tabs' => 'api/validate/check_tabs.php',
'check:paths' => 'api/validate/check_paths.php',
'check:xml' => 'api/validate/check_xml_wellformed.php',
'check:enterprise' => 'api/validate/check_enterprise_readiness.php',
'health' => 'validate/check_repo_health.php',
'check:syntax' => 'validate/check_php_syntax.php',
'check:version' => 'validate/check_version_consistency.php',
'check:changelog' => 'validate/check_changelog.php',
'check:structure' => 'validate/check_structure.php',
'check:headers' => 'validate/check_license_headers.php',
'check:secrets' => 'validate/check_no_secrets.php',
'check:tabs' => 'validate/check_tabs.php',
'check:paths' => 'validate/check_paths.php',
'check:xml' => 'validate/check_xml_wellformed.php',
'check:enterprise' => 'validate/check_enterprise_readiness.php',
// Validation — platform-specific
'check:dolibarr' => 'api/validate/check_dolibarr_module.php',
'check:joomla' => 'api/validate/check_joomla_manifest.php',
'check:language' => 'api/validate/check_language_structure.php',
'check:dolibarr' => 'validate/check_dolibarr_module.php',
'check:joomla' => 'validate/check_joomla_manifest.php',
'check:language' => 'validate/check_language_structure.php',
'check:client' => 'validate/check_client_theme.php',
'check:wiki' => 'validate/check_wiki_health.php',
// Detection
'detect' => 'api/validate/auto_detect_platform.php',
'detect' => 'validate/auto_detect_platform.php',
// Org-wide
'drift' => 'api/validate/scan_drift.php',
'drift' => 'validate/scan_drift.php',
// Release
'release' => 'api/cli/release.php',
'release' => 'cli/release.php',
'release:notes' => 'cli/release_notes.php',
'release:validate' => 'cli/release_validate.php',
'release:cascade' => 'cli/release_cascade.php',
'release:manage' => 'cli/release_manage.php',
// CLI utilities (used by workflows — centralized logic)
'version:read' => 'api/cli/version_read.php',
'version:bump' => 'api/cli/version_bump.php',
'version:propagate' => 'api/maintenance/update_version_from_readme.php',
'version:set-platform' => 'api/cli/version_set_platform.php',
'platform:detect' => 'api/cli/platform_detect.php',
'release:notes' => 'api/cli/release_notes.php',
// Version management
'version:read' => 'cli/version_read.php',
'version:bump' => 'cli/version_bump.php',
'version:propagate' => 'maintenance/update_version_from_readme.php',
'version:set-platform' => 'cli/version_set_platform.php',
// Build & package
'build:package' => 'cli/package_build.php',
'build:joomla' => 'cli/joomla_build.php',
'build:updates-xml' => 'cli/updates_xml_build.php',
// Platform detection
'platform:detect' => 'cli/platform_detect.php',
'manifest:read' => 'cli/manifest_read.php',
// Repository management
'repo:create' => 'cli/create_repo.php',
'repo:archive' => 'cli/archive_repo.php',
'repo:scaffold-client' => 'cli/scaffold_client.php',
'repo:provision' => 'cli/client_provision.php',
// Bulk operations
'bulk:push-workflow' => 'cli/bulk_workflow_push.php',
'bulk:trigger' => 'cli/bulk_workflow_trigger.php',
'bulk:sync-rulesets' => 'cli/sync_rulesets.php',
// Monitoring & dashboards
'dashboard' => 'cli/client_dashboard.php',
'grafana' => 'cli/grafana_dashboard.php',
'client:inventory' => 'cli/client_inventory.php',
// Module validation
'validate:module' => 'bin/validate-module',
];