Jonathan Miller d5fa609f15
Universal: Pre-Release / Build Pre-Release (${{ inputs.stability || github.ref_name }}) (push) Successful in 10s
fix(version-bump): prevent dev from falling behind stable (#283)
version_bump.php now checks two additional sources before bumping:

1. --min-version argument: workflow can pass the current stable version
   so the bump is guaranteed to be above it
2. Auto-detect from git: scans commit messages and remote branch
   manifests (origin/main, origin/rc) to find the highest version
   released on any channel. If a higher version exists on another
   branch, uses that as the base instead of the local manifest.

This prevents the scenario where dev builds at 02.44.xx while stable
is at 02.45.00 — the bump will now use 02.45.00 as the base and
produce 02.45.01-dev or 02.46.00-dev depending on bump type.
2026-06-20 21:35:47 -05:00
2026-05-20 01:26:39 +00:00

mokoplatform Enterprise API

Version PHP License

PHP implementation of mokoplatform — enterprise standards, automation framework, workflow templates, and bulk sync tooling.

Primary platform: Gitea — git.mokoconsulting.tech Backup mirror: GitHub (read-only mirror)

What Lives Here

Directory Purpose
lib/Enterprise/ 38 PHP enterprise library classes (platform adapters, sync, validation, plugins)
cli/ CLI scripts (archive, create, release, sync rulesets, version management)
automation/ Bulk sync, push files, repo cleanup, Gitea migration
validate/ 18 validation scripts (health, structure, secrets, syntax, drift)
templates/ Workflow templates and config templates synced to governed repos
definitions/ Repository structure definitions (.tf format)
deploy/ Deployment scripts (SFTP, Joomla)
maintenance/ Labels, inventory, SHA pinning, version sync
tools/ Standalone tools (legal doc generator)
tests/ PHPUnit test suite

Installation

composer require mokoconsulting-tech/enterprise

Composer Registry

This package is served from Gitea package registry. Add this to your composer.json:

{
    "repositories": [
        {
            "type": "composer",
            "url": "https://git.mokoconsulting.tech/api/packages/MokoConsulting/composer"
        }
    ]
}

CLI Tools

# Health check
vendor/bin/moko health -- --path .

# Sync standards
vendor/bin/moko sync

# Inventory
vendor/bin/moko inventory -- --path .

Platform Configuration

Variable Purpose
GIT_PLATFORM gitea (default) or github
GA_TOKEN Gitea API / Gitea Actions token
GH_TOKEN GitHub API token (for mirror sync)
GITEA_URL Gitea instance URL (default: https://git.mokoconsulting.tech)
GITEA_ORG Gitea organization (default: MokoConsulting)

License

GPL-3.0-or-later — See LICENSE.md

S
Description
Enterprise CLI automation, validation, and governance engine for all Moko Consulting repositories — 45+ tools, shared CI workflows, 7 MCP servers
Readme
26 MiB
2026-06-21 04:46:39 +00:00
Languages
PHP 64.9%
JavaScript 15.2%
TypeScript 7.7%
Shell 4.6%
Markdown 4.2%
Other 3.4%