diff --git a/.mokogitea/CLAUDE.md b/.mokogitea/CLAUDE.md index 7272e02..62ff862 100644 --- a/.mokogitea/CLAUDE.md +++ b/.mokogitea/CLAUDE.md @@ -1,4 +1,4 @@ -# moko-platform +# mokoplatform Enterprise automation, validation, sync, and governance engine for all Moko Consulting repositories. @@ -9,7 +9,7 @@ Enterprise automation, validation, sync, and governance engine for all Moko Cons | **Language** | PHP 8.1+ | | **Version** | 09.01.00 | | **Branch** | develop on `dev`, merge to `main` (protected) | -| **Wiki** | [moko-platform Wiki](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki) | +| **Wiki** | [mokoplatform Wiki](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki) | ## Commands @@ -73,4 +73,4 @@ PHPStan runs with `--memory-limit=512M`. CI enforces PHPCS errors; PHPStan is `c - **Workflow directory**: `.mokogitea/` (not `.gitea/` or `.github/`) - **Wiki**: documentation lives in the Gitea wiki, not `docs/` files - **New CLI tools**: extend `CliFramework`, not `CLIApp` (legacy) -- **Standards**: [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki/Home) +- **Standards**: [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki/Home) diff --git a/.mokogitea/ISSUE_TEMPLATE/config.yml b/.mokogitea/ISSUE_TEMPLATE/config.yml index 06221e2..d77a1bc 100644 --- a/.mokogitea/ISSUE_TEMPLATE/config.yml +++ b/.mokogitea/ISSUE_TEMPLATE/config.yml @@ -7,8 +7,8 @@ contact_links: - name: 💬 Ask a Question url: https://mokoconsulting.tech/ about: Get help or ask questions through our website - - name: 📚 moko-platform Documentation - url: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + - name: 📚 mokoplatform Documentation + url: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform about: View our coding standards and best practices - name: 🔒 Report a Security Vulnerability url: https://git.mokoconsulting.tech/mokoconsulting-tech/.github-private/security/advisories/new diff --git a/.mokogitea/ISSUE_TEMPLATE/documentation.md b/.mokogitea/ISSUE_TEMPLATE/documentation.md index 648dab9..6269db7 100644 --- a/.mokogitea/ISSUE_TEMPLATE/documentation.md +++ b/.mokogitea/ISSUE_TEMPLATE/documentation.md @@ -42,7 +42,7 @@ Suggested text here ## Standards Alignment -- [ ] Follows moko-platform documentation guidelines +- [ ] Follows mokoplatform documentation guidelines - [ ] Uses en_US/en_GB localization - [ ] Includes proper SPDX headers where applicable diff --git a/.mokogitea/ISSUE_TEMPLATE/feature_request.md b/.mokogitea/ISSUE_TEMPLATE/feature_request.md index 6d691a0..f7df007 100644 --- a/.mokogitea/ISSUE_TEMPLATE/feature_request.md +++ b/.mokogitea/ISSUE_TEMPLATE/feature_request.md @@ -37,7 +37,7 @@ If you have ideas about how this could be implemented, share them here: Add any other context, mockups, or screenshots about the feature request here. ## Relevant Standards -Does this relate to any standards in [moko-platform](https://git.mokoconsulting.tech/MokoConsulting/moko-platform)? +Does this relate to any standards in [mokoplatform](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform)? - [ ] Accessibility (WCAG 2.1 AA) - [ ] Localization (en_US/en_GB) - [ ] Security best practices diff --git a/.mokogitea/ISSUE_TEMPLATE/security.md b/.mokogitea/ISSUE_TEMPLATE/security.md index 56b6573..7d290fb 100644 --- a/.mokogitea/ISSUE_TEMPLATE/security.md +++ b/.mokogitea/ISSUE_TEMPLATE/security.md @@ -35,7 +35,7 @@ Use this template only for: ## Standards Reference -Does this relate to security standards in [moko-platform](https://git.mokoconsulting.tech/MokoConsulting/moko-platform)? +Does this relate to security standards in [mokoplatform](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform)? - [ ] SPDX license identifiers - [ ] Secret management - [ ] Dependency security diff --git a/.mokogitea/branch-protection.yml b/.mokogitea/branch-protection.yml index d1bbbaf..546a3c4 100644 --- a/.mokogitea/branch-protection.yml +++ b/.mokogitea/branch-protection.yml @@ -2,8 +2,8 @@ # SPDX-License-Identifier: GPL-3.0-or-later # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Automation -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# INGROUP: mokoplatform.Automation +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /.gitea/workflows/branch-protection.yml # BRIEF: Apply standardised branch protection rules to all governed repositories # @@ -62,7 +62,7 @@ jobs: API="${GITEA_URL}/api/v1" # Platform/standards/infra repos to exclude - EXCLUDE="gitea-org-config org-profile gitea-private .mokogitea-private moko-platform MokoTesting" + EXCLUDE="gitea-org-config org-profile gitea-private .mokogitea-private mokoplatform MokoTesting" EXCLUDE="$EXCLUDE MokoStandards-Template-Client MokoStandards-Template-Dolibarr MokoStandards-Template-Generic MokoStandards-Template-Joomla MokoDoliProjTemplate" if [ -n "${{ inputs.repos }}" ]; then diff --git a/.mokogitea/bulk-repo-sync.yml b/.mokogitea/bulk-repo-sync.yml index d0fdeb2..9a5b14f 100644 --- a/.mokogitea/bulk-repo-sync.yml +++ b/.mokogitea/bulk-repo-sync.yml @@ -2,8 +2,8 @@ # SPDX-License-Identifier: GPL-3.0-or-later # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Automation -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# INGROUP: mokoplatform.Automation +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /.gitea/workflows/bulk-repo-sync.yml # BRIEF: Bulk repo sync — runs from API repo, syncs standards to all governed repos diff --git a/.mokogitea/pr-branch-check.yml b/.mokogitea/pr-branch-check.yml index e8b1750..a56a3f8 100644 --- a/.mokogitea/pr-branch-check.yml +++ b/.mokogitea/pr-branch-check.yml @@ -2,9 +2,9 @@ # SPDX-License-Identifier: GPL-3.0-or-later # # FILE INFORMATION -# DEFGROUP: moko-platform.CI -# INGROUP: moko-platform -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# DEFGROUP: mokoplatform.CI +# INGROUP: mokoplatform +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /.gitea/workflows/pr-branch-check.yml # BRIEF: PR branch merge policy enforcement # diff --git a/.mokogitea/renovate.yml b/.mokogitea/renovate.yml index 726dd4f..d4f5cad 100644 --- a/.mokogitea/renovate.yml +++ b/.mokogitea/renovate.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Automation -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# INGROUP: mokoplatform.Automation +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /.gitea/workflows/renovate.yml # BRIEF: Run Renovate Bot across all governed repos for dependency updates # @@ -61,7 +61,7 @@ jobs: run: | API="${GITEA_URL}/api/v1" - EXCLUDE="gitea-org-config org-profile gitea-private .mokogitea-private moko-platform MokoTesting" + EXCLUDE="gitea-org-config org-profile gitea-private .mokogitea-private mokoplatform MokoTesting" EXCLUDE="$EXCLUDE MokoStandards-Template-Client MokoStandards-Template-Dolibarr MokoStandards-Template-Generic MokoStandards-Template-Joomla MokoDoliProjTemplate" if [ -n "${{ inputs.repos }}" ]; then diff --git a/.mokogitea/sync-wikis.yml b/.mokogitea/sync-wikis.yml index af71890..26f5e81 100644 --- a/.mokogitea/sync-wikis.yml +++ b/.mokogitea/sync-wikis.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Maintenance -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# INGROUP: mokoplatform.Maintenance +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /.gitea/workflows/sync-wikis.yml # BRIEF: Daily sync of all Gitea wikis to consolidated GitHub wiki repo diff --git a/.mokogitea/workflows/auto-bump.yml b/.mokogitea/workflows/auto-bump.yml index fb9dc82..54d6cad 100644 --- a/.mokogitea/workflows/auto-bump.yml +++ b/.mokogitea/workflows/auto-bump.yml @@ -4,10 +4,10 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Release -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# INGROUP: mokoplatform.Release +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /.mokogitea/workflows/auto-bump.yml -# VERSION: 09.02.00 +# VERSION: 09.23.00 # BRIEF: Auto patch-bump version on every push to dev (skips merge commits) name: "Universal: Auto Version Bump" @@ -43,19 +43,21 @@ jobs: token: ${{ secrets.MOKOGITEA_TOKEN }} fetch-depth: 1 - - name: Setup moko-platform tools + - name: Setup mokoplatform tools run: | - if ! command -v composer &> /dev/null; then - sudo apt-get update -qq && sudo apt-get install -y -qq php-cli php-mbstring php-xml php-zip php-curl composer >/dev/null 2>&1 - fi - if [ -d "/opt/moko-platform/cli" ]; then - echo "MOKO_CLI=/opt/moko-platform/cli" >> "$GITHUB_ENV" + if [ -f "/opt/mokoplatform/cli/version_bump.php" ] && [ -f "/opt/mokoplatform/vendor/autoload.php" ]; then + echo "Using pre-installed /opt/mokoplatform" + echo "MOKO_CLI=/opt/mokoplatform/cli" >> "$GITHUB_ENV" else + if ! command -v composer &> /dev/null; then + sudo apt-get update -qq && sudo apt-get install -y -qq php-cli php-mbstring php-xml php-zip php-curl composer >/dev/null 2>&1 + fi + rm -rf /tmp/mokoplatform-api git clone --depth 1 --branch main --quiet \ - "https://x-access-token:${{ secrets.MOKOGITEA_TOKEN }}@git.mokoconsulting.tech/MokoConsulting/moko-platform.git" \ - /tmp/moko-platform-api - cd /tmp/moko-platform-api && composer install --no-dev --no-interaction --quiet - echo "MOKO_CLI=/tmp/moko-platform-api/cli" >> "$GITHUB_ENV" + "https://x-access-token:${{ secrets.MOKOGITEA_TOKEN }}@git.mokoconsulting.tech/MokoConsulting/mokoplatform.git" \ + /tmp/mokoplatform-api + cd /tmp/mokoplatform-api && composer install --no-dev --no-interaction --quiet + echo "MOKO_CLI=/tmp/mokoplatform-api/cli" >> "$GITHUB_ENV" fi - name: Bump version diff --git a/.mokogitea/workflows/auto-release.yml b/.mokogitea/workflows/auto-release.yml index bec445b..a0ca422 100644 --- a/.mokogitea/workflows/auto-release.yml +++ b/.mokogitea/workflows/auto-release.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Release -# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/moko-platform +# INGROUP: mokoplatform.Release +# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/mokoplatform # PATH: /templates/workflows/universal/auto-release.yml.template # VERSION: 05.00.00 # BRIEF: Universal build & release � detects platform from manifest.xml @@ -66,25 +66,25 @@ jobs: token: ${{ secrets.MOKOGITEA_TOKEN }} fetch-depth: 1 - - name: Setup moko-platform tools + - name: Setup mokoplatform tools env: MOKO_CLONE_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} MOKO_CLONE_HOST: git.mokoconsulting.tech/MokoConsulting run: | - if [ -f /opt/moko-platform/cli/version_bump.php ] && [ -f /opt/moko-platform/vendor/autoload.php ]; then - echo Using pre-installed /opt/moko-platform - echo MOKO_CLI=/opt/moko-platform/cli >> $GITHUB_ENV + if [ -f /opt/mokoplatform/cli/version_bump.php ] && [ -f /opt/mokoplatform/vendor/autoload.php ]; then + echo Using pre-installed /opt/mokoplatform + echo MOKO_CLI=/opt/mokoplatform/cli >> $GITHUB_ENV else echo Falling back to fresh clone if ! command -v composer > /dev/null 2>&1; then sudo apt-get update -qq && sudo apt-get install -y -qq php-cli php-mbstring php-xml php-zip php-curl composer > /dev/null 2>&1 fi - rm -rf /tmp/moko-platform-api - CLONE_URL=https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/moko-platform.git - git clone --depth 1 --branch main --quiet $CLONE_URL /tmp/moko-platform-api - cd /tmp/moko-platform-api + rm -rf /tmp/mokoplatform-api + CLONE_URL=https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/mokoplatform.git + git clone --depth 1 --branch main --quiet $CLONE_URL /tmp/mokoplatform-api + cd /tmp/mokoplatform-api composer install --no-dev --no-interaction --quiet - echo MOKO_CLI=/tmp/moko-platform-api/cli >> $GITHUB_ENV + echo MOKO_CLI=/tmp/mokoplatform-api/cli >> $GITHUB_ENV fi - name: Rename branch to rc @@ -149,49 +149,32 @@ jobs: fi echo "No conflict markers found" - - name: Setup moko-platform tools + - name: Setup mokoplatform tools env: MOKO_CLONE_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} MOKO_CLONE_HOST: git.mokoconsulting.tech/MokoConsulting COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_MIRROR_TOKEN }}"}}' run: | - if [ -f /opt/moko-platform/cli/version_bump.php ] && [ -f /opt/moko-platform/vendor/autoload.php ]; then - echo Using pre-installed /opt/moko-platform - echo MOKO_CLI=/opt/moko-platform/cli >> $GITHUB_ENV + if [ -f /opt/mokoplatform/cli/version_bump.php ] && [ -f /opt/mokoplatform/vendor/autoload.php ]; then + echo Using pre-installed /opt/mokoplatform + echo MOKO_CLI=/opt/mokoplatform/cli >> $GITHUB_ENV else echo Falling back to fresh clone if ! command -v composer > /dev/null 2>&1; then sudo apt-get update -qq && sudo apt-get install -y -qq php-cli php-mbstring php-xml php-zip php-curl composer > /dev/null 2>&1 fi - rm -rf /tmp/moko-platform-api - CLONE_URL=https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/moko-platform.git - git clone --depth 1 --branch main --quiet $CLONE_URL /tmp/moko-platform-api - cd /tmp/moko-platform-api + rm -rf /tmp/mokoplatform-api + CLONE_URL=https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/mokoplatform.git + git clone --depth 1 --branch main --quiet $CLONE_URL /tmp/mokoplatform-api + cd /tmp/mokoplatform-api composer install --no-dev --no-interaction --quiet - echo MOKO_CLI=/tmp/moko-platform-api/cli >> $GITHUB_ENV + echo MOKO_CLI=/tmp/mokoplatform-api/cli >> $GITHUB_ENV fi - - name: "Determine version bump level" - id: bump - run: | - # Fix/patch branches: version was already bumped by pre-release, just strip suffix - # Feature/dev branches: bump minor for the new stable release - HEAD_REF="${{ github.event.pull_request.head.ref || 'dev' }}" - case "$HEAD_REF" in - fix/*|patch/*|hotfix/*|bugfix/*) BUMP="none" ;; - *) BUMP="minor" ;; - esac - echo "level=${BUMP}" >> "$GITHUB_OUTPUT" - echo "Bump level: ${BUMP} (from branch: ${HEAD_REF})" - - name: "Publish stable release" run: | - BUMP_FLAG="" - if [ "${{ steps.bump.outputs.level }}" != "none" ]; then - BUMP_FLAG="--bump ${{ steps.bump.outputs.level }}" - fi php ${MOKO_CLI}/release_publish.php \ - --path . --stability stable ${BUMP_FLAG} --branch main \ + --path . --stability stable --bump minor --branch main \ --token "${{ secrets.MOKOGITEA_TOKEN }}" - name: Update release notes from CHANGELOG.md diff --git a/.mokogitea/workflows/branch-cleanup.yml b/.mokogitea/workflows/branch-cleanup.yml index e0ba128..fc0f4c3 100644 --- a/.mokogitea/workflows/branch-cleanup.yml +++ b/.mokogitea/workflows/branch-cleanup.yml @@ -4,10 +4,10 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: MokoStandards.Universal -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# INGROUP: MokoPlatform.Universal +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /.mokogitea/workflows/branch-cleanup.yml -# VERSION: 01.00.00 +# VERSION: 09.23.00 # BRIEF: Delete feature branches after PR merge name: "Branch Cleanup" diff --git a/.mokogitea/workflows/ci-platform.yml b/.mokogitea/workflows/ci-platform.yml index 2d274ea..a4bbeeb 100644 --- a/.mokogitea/workflows/ci-platform.yml +++ b/.mokogitea/workflows/ci-platform.yml @@ -4,18 +4,18 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.CI -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# INGROUP: mokoplatform.CI +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /.mokogitea/workflows/ci-platform.yml # VERSION: 09.23.00 -# BRIEF: moko-platform CI — the standards engine validates itself +# BRIEF: mokoplatform CI — the standards engine validates itself # # +========================================================================+ # | MOKO-PLATFORM CI | # +========================================================================+ # | | # | This is NOT a generic CI workflow. This is the self-validation | -# | pipeline for the central moko-platform enterprise engine. | +# | pipeline for the central mokoplatform enterprise engine. | # | | # | It dogfoods every tool the platform ships to governed repos: | # | | @@ -29,7 +29,7 @@ # | | # +========================================================================+ -name: "Platform: moko-platform CI" +name: "Platform: mokoplatform CI" on: push: @@ -421,7 +421,7 @@ jobs: - name: Check gate results run: | { - echo "# moko-platform CI" + echo "# mokoplatform CI" echo "" echo "| Gate | Job | Status |" echo "|---|---|---|" diff --git a/.mokogitea/workflows/cleanup.yml b/.mokogitea/workflows/cleanup.yml index 3a81856..42ce661 100644 --- a/.mokogitea/workflows/cleanup.yml +++ b/.mokogitea/workflows/cleanup.yml @@ -4,10 +4,10 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: MokoStandards.Maintenance -# REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoStandards -# PATH: /.gitea/workflows/cleanup.yml -# VERSION: 01.00.00 +# INGROUP: mokoplatform.Maintenance +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform +# PATH: /.mokogitea/workflows/cleanup.yml +# VERSION: 09.23.00 # BRIEF: Scheduled cleanup — delete merged branches and old workflow runs name: "Universal: Repository Cleanup" @@ -33,17 +33,17 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - token: ${{ secrets.GA_TOKEN }} + token: ${{ secrets.MOKOGITEA_TOKEN }} - name: Delete merged branches env: - GA_TOKEN: ${{ secrets.GA_TOKEN }} + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} run: | echo "=== Merged Branch Cleanup ===" API="${GITEA_URL}/api/v1/repos/${{ github.repository }}" # List branches via API - BRANCHES=$(curl -sS -H "Authorization: token ${GA_TOKEN}" \ + BRANCHES=$(curl -sS -H "Authorization: token ${GITEA_TOKEN}" \ "${API}/branches?limit=50" | jq -r '.[].name') DELETED=0 @@ -56,7 +56,7 @@ jobs: # Check if branch is merged into main if git merge-base --is-ancestor "origin/${BRANCH}" origin/main 2>/dev/null; then echo " Deleting merged branch: ${BRANCH}" - curl -sS -X DELETE -H "Authorization: token ${GA_TOKEN}" \ + curl -sS -X DELETE -H "Authorization: token ${GITEA_TOKEN}" \ "${API}/branches/${BRANCH}" 2>/dev/null || true DELETED=$((DELETED + 1)) fi @@ -66,20 +66,20 @@ jobs: - name: Clean old workflow runs env: - GA_TOKEN: ${{ secrets.GA_TOKEN }} + GA_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} run: | echo "=== Workflow Run Cleanup ===" API="${GITEA_URL}/api/v1/repos/${{ github.repository }}" CUTOFF=$(date -d "30 days ago" +%Y-%m-%dT%H:%M:%SZ 2>/dev/null || date -v-30d +%Y-%m-%dT%H:%M:%SZ) # Get old completed runs - RUNS=$(curl -sS -H "Authorization: token ${GA_TOKEN}" \ + RUNS=$(curl -sS -H "Authorization: token ${GITEA_TOKEN}" \ "${API}/actions/runs?status=completed&limit=50" | \ jq -r ".workflow_runs[] | select(.created_at < \"${CUTOFF}\") | .id" 2>/dev/null) DELETED=0 for RUN_ID in $RUNS; do - curl -sS -X DELETE -H "Authorization: token ${GA_TOKEN}" \ + curl -sS -X DELETE -H "Authorization: token ${GITEA_TOKEN}" \ "${API}/actions/runs/${RUN_ID}" 2>/dev/null || true DELETED=$((DELETED + 1)) done diff --git a/.mokogitea/workflows/gitleaks.yml b/.mokogitea/workflows/gitleaks.yml index 0c07612..c2951e2 100644 --- a/.mokogitea/workflows/gitleaks.yml +++ b/.mokogitea/workflows/gitleaks.yml @@ -4,10 +4,10 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: MokoStandards.Security -# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/MokoStandards-API +# INGROUP: mokoplatform.Security +# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/mokoplatform # PATH: /templates/workflows/gitleaks.yml.template -# VERSION: 01.00.00 +# VERSION: 09.23.00 # BRIEF: Secret scanning — detect leaked credentials, API keys, and tokens # # +========================================================================+ diff --git a/.mokogitea/workflows/issue-branch.yml b/.mokogitea/workflows/issue-branch.yml index c2b02a6..23c7334 100644 --- a/.mokogitea/workflows/issue-branch.yml +++ b/.mokogitea/workflows/issue-branch.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Automation -# VERSION: 01.00.00 +# INGROUP: mokoplatform.Automation +# VERSION: 09.25.00 # BRIEF: Auto-create feature branch when an issue is opened name: "Universal: Issue Branch" @@ -28,7 +28,7 @@ jobs: steps: - name: Create branch and comment run: | - TOKEN="${{ secrets.GA_TOKEN }}" + TOKEN="${{ secrets.MOKOGITEA_TOKEN }}" API="${GITEA_URL}/api/v1/repos/${{ github.repository }}" ISSUE_NUM="${{ github.event.issue.number }}" ISSUE_TITLE="${{ github.event.issue.title }}" diff --git a/.mokogitea/workflows/notify.yml b/.mokogitea/workflows/notify.yml index 51dfcb5..fed4bb7 100644 --- a/.mokogitea/workflows/notify.yml +++ b/.mokogitea/workflows/notify.yml @@ -4,10 +4,10 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: MokoStandards.Notifications -# REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoStandards -# PATH: /.gitea/workflows/notify.yml -# VERSION: 01.00.00 +# INGROUP: mokoplatform.Notifications +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform +# PATH: /.mokogitea/workflows/notify.yml +# VERSION: 09.23.00 # BRIEF: Push notifications via ntfy on release success or workflow failure name: "Universal: Notifications" diff --git a/.mokogitea/workflows/pr-check.yml b/.mokogitea/workflows/pr-check.yml index 4d78d7a..36a23ea 100644 --- a/.mokogitea/workflows/pr-check.yml +++ b/.mokogitea/workflows/pr-check.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.CI -# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/moko-platform +# INGROUP: mokoplatform.CI +# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/mokoplatform # PATH: /templates/workflows/universal/pr-check.yml.template # VERSION: 09.23.00 # BRIEF: PR gate — branch policy + code validation before merge diff --git a/.mokogitea/workflows/pre-release.yml b/.mokogitea/workflows/pre-release.yml index bc53b7f..f98bd0c 100644 --- a/.mokogitea/workflows/pre-release.yml +++ b/.mokogitea/workflows/pre-release.yml @@ -4,8 +4,240 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Release -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# INGROUP: mokoplatform.Release +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /templates/workflows/universal/pre-release.yml.template # VERSION: 05.01.00 -# BRIEF: Auto pre-release on push to dev/alpha/beta/rc branches \ No newline at end of file +# BRIEF: Manual pre-release -- builds dev/alpha/beta/rc packages from any branch + +name: "Universal: Pre-Release" + +on: + pull_request: + types: [closed] + branches: + - dev + pull_request_target: + types: [synchronize, opened, reopened] + branches: + - main + workflow_dispatch: + inputs: + stability: + description: 'Pre-release channel' + required: true + type: choice + options: + - development + - alpha + - beta + - release-candidate + +permissions: + contents: write + +env: + GITEA_URL: ${{ vars.GITEA_URL || 'https://git.mokoconsulting.tech' }} + GITEA_ORG: ${{ vars.GITEA_ORG || github.repository_owner }} + GITEA_REPO: ${{ vars.GITEA_REPO || github.event.repository.name }} + +jobs: + build: + name: "Build Pre-Release (${{ inputs.stability || 'development' }})" + runs-on: release + if: >- + github.event_name == 'workflow_dispatch' || + (github.event_name == 'pull_request' && github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'dev') || + (github.event_name == 'pull_request_target' && github.event.pull_request.base.ref == 'main') + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + token: ${{ secrets.MOKOGITEA_TOKEN }} + ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || '' }} + + - name: Setup mokoplatform tools + env: + MOKO_CLONE_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} + MOKO_CLONE_HOST: git.mokoconsulting.tech/MokoConsulting + run: | + # Use pre-installed /opt/mokoplatform if available (updated by cron every 6h) + if [ -f /opt/mokoplatform/cli/version_bump.php ] && [ -f /opt/mokoplatform/cli/manifest_element.php ] && [ -f /opt/mokoplatform/vendor/autoload.php ]; then + echo Using pre-installed /opt/mokoplatform + echo MOKO_CLI=/opt/mokoplatform/cli >> $GITHUB_ENV + else + echo Falling back to fresh clone + if ! command -v composer > /dev/null 2>&1; then + sudo apt-get update -qq && sudo apt-get install -y -qq php-cli php-mbstring php-xml php-zip php-curl composer > /dev/null 2>&1 + fi + rm -rf /tmp/mokoplatform-api + CLONE_URL=https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/mokoplatform.git + git clone --depth 1 --branch main --quiet $CLONE_URL /tmp/mokoplatform-api + cd /tmp/mokoplatform-api && composer install --no-dev --no-interaction --quiet + echo MOKO_CLI=/tmp/mokoplatform-api/cli >> $GITHUB_ENV + fi + + - name: Detect platform + id: platform + run: | + php ${MOKO_CLI}/manifest_read.php --path . --github-output + + - name: Resolve metadata and bump version + id: meta + run: | + # Auto-detect stability: RC for PRs targeting main, else use input or default to development + if [ "${{ github.event_name }}" = "pull_request_target" ] && [ "${{ github.event.pull_request.base.ref }}" = "main" ]; then + STABILITY="release-candidate" + else + STABILITY="${{ inputs.stability || 'development' }}" + fi + + case "$STABILITY" in + development) SUFFIX="-dev"; TAG="development" ;; + alpha) SUFFIX="-alpha"; TAG="alpha" ;; + beta) SUFFIX="-beta"; TAG="beta" ;; + release-candidate) SUFFIX="-rc"; TAG="release-candidate" ;; + esac + + # Bump version via CLI: patch for dev/alpha/beta, minor for RC + case "$STABILITY" in + release-candidate) BUMP="minor" ;; + *) BUMP="patch" ;; + esac + + php ${MOKO_CLI}/version_bump.php --path . $([ "$BUMP" = "minor" ] && echo "--minor") 2>/dev/null || true + + # Set stability suffix and verify consistency + VERSION=$(php ${MOKO_CLI}/version_read.php --path . 2>/dev/null || echo "00.00.01") + VERSION=$(echo "$VERSION" | sed 's/-\(dev\|alpha\|beta\|rc\)$//') + + php ${MOKO_CLI}/version_set_platform.php \ + --path . --version "$VERSION" --branch "${{ github.ref_name }}" --stability "$STABILITY" 2>/dev/null || true + php ${MOKO_CLI}/version_check.php --path . --fix 2>/dev/null || true + + # Ensure licensing tags (updateservers, dlid) if enabled in manifest.xml + php ${MOKO_CLI}/manifest_licensing.php --path . --fix 2>/dev/null || true + + # Append suffix for output + if [ -n "$SUFFIX" ]; then + VERSION="${VERSION}${SUFFIX}" + fi + + # Commit version bump + git config --local user.email "gitea-actions[bot]@mokoconsulting.tech" + git config --local user.name "gitea-actions[bot]" + git remote set-url origin "https://x-access-token:${{ secrets.MOKOGITEA_TOKEN }}@git.mokoconsulting.tech/${{ github.repository }}.git" + git add -A + git diff --cached --quiet || { + git commit -m "chore(version): pre-release bump to ${VERSION} [skip ci]" + git push origin HEAD 2>&1 + } + + # Auto-detect element via manifest_element.php + php ${MOKO_CLI}/manifest_element.php \ + --path . --version "$VERSION" --stability "$STABILITY" \ + --repo "${GITEA_REPO}" --github-output + + # Read back element outputs + EXT_ELEMENT=$(grep '^ext_element=' "$GITHUB_OUTPUT" | tail -1 | cut -d= -f2) + ZIP_NAME=$(grep '^zip_name=' "$GITHUB_OUTPUT" | tail -1 | cut -d= -f2) + [ -z "$EXT_ELEMENT" ] && EXT_ELEMENT=$(echo "${GITEA_REPO}" | tr '[:upper:]' '[:lower:]' | tr -d ' -') + [ -z "$ZIP_NAME" ] && ZIP_NAME="${EXT_ELEMENT}-${VERSION}.zip" + + echo "version=${VERSION}" >> "$GITHUB_OUTPUT" + echo "stability=${STABILITY}" >> "$GITHUB_OUTPUT" + echo "suffix=${SUFFIX}" >> "$GITHUB_OUTPUT" + echo "tag=${TAG}" >> "$GITHUB_OUTPUT" + echo "zip_name=${ZIP_NAME}" >> "$GITHUB_OUTPUT" + echo "ext_element=${EXT_ELEMENT}" >> "$GITHUB_OUTPUT" + + echo "=== Pre-Release: ${EXT_ELEMENT} ${VERSION}${SUFFIX} ===" + + - name: Create release + id: release + run: | + TAG="${{ steps.meta.outputs.tag }}" + VERSION="${{ steps.meta.outputs.version }}" + API_BASE="${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" + php ${MOKO_CLI}/release_create.php \ + --path . --version "$VERSION" --tag "$TAG" \ + --token "${{ secrets.MOKOGITEA_TOKEN }}" --api-base "$API_BASE" \ + --repo "${GITEA_REPO}" --branch dev --prerelease + + - name: Update release notes from CHANGELOG.md + run: | + TAG="${{ steps.meta.outputs.tag }}" + VERSION="${{ steps.meta.outputs.version }}" + API_BASE="${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" + + # Extract [Unreleased] section from changelog (everything between [Unreleased] and next ## heading) + if [ -f "CHANGELOG.md" ]; then + NOTES=$(awk '/^## \[Unreleased\]/{found=1; next} /^## \[/{if(found) exit} found{print}' CHANGELOG.md) + [ -z "$NOTES" ] && NOTES="Release ${VERSION}" + else + NOTES="Release ${VERSION}" + fi + + # Update release body via API + RELEASE_ID=$(curl -sf -H "Authorization: token ${{ secrets.MOKOGITEA_TOKEN }}" \ + "${API_BASE}/releases/tags/${TAG}" | python3 -c "import json,sys; print(json.load(sys.stdin).get('id',''))" 2>/dev/null || true) + + if [ -n "$RELEASE_ID" ]; then + python3 -c " + import json, urllib.request + body = open('/dev/stdin').read() + payload = json.dumps({'body': body}).encode() + req = urllib.request.Request( + '${API_BASE}/releases/${RELEASE_ID}', + data=payload, method='PATCH', + headers={ + 'Authorization': 'token ${{ secrets.MOKOGITEA_TOKEN }}', + 'Content-Type': 'application/json' + }) + urllib.request.urlopen(req) + " <<< "$NOTES" + echo "Release notes updated from CHANGELOG.md" + fi + + - name: Build package and upload + id: package + run: | + VERSION="${{ steps.meta.outputs.version }}" + TAG="${{ steps.meta.outputs.tag }}" + API_BASE="${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" + php ${MOKO_CLI}/release_package.php \ + --path . --version "$VERSION" --tag "$TAG" \ + --token "${{ secrets.MOKOGITEA_TOKEN }}" --api-base "$API_BASE" \ + --repo "${GITEA_REPO}" --output /tmp || true + + # updates.xml is generated dynamically by MokoGitea license server + # No need to build, commit, or sync updates.xml from workflows + + - name: "Delete lesser pre-release channels (cascade)" + continue-on-error: true + run: | + API_BASE="${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" + TOKEN="${{ secrets.MOKOGITEA_TOKEN }}" + + php ${MOKO_CLI}/release_cascade.php \ + --stability "${{ steps.meta.outputs.stability }}" \ + --token "${TOKEN}" \ + --api-base "${API_BASE}" + + - name: Summary + if: always() + run: | + VERSION="${{ steps.meta.outputs.version }}" + STABILITY="${{ steps.meta.outputs.stability }}" + ZIP_NAME="${{ steps.meta.outputs.zip_name }}" + SHA256="${{ steps.package.outputs.sha256_zip }}" + echo "## Pre-Release Complete" >> $GITHUB_STEP_SUMMARY + echo "" >> $GITHUB_STEP_SUMMARY + echo "| Field | Value |" >> $GITHUB_STEP_SUMMARY + echo "|-------|-------|" >> $GITHUB_STEP_SUMMARY + echo "| Version | \`${VERSION}\` |" >> $GITHUB_STEP_SUMMARY + echo "| Channel | ${STABILITY} |" >> $GITHUB_STEP_SUMMARY + echo "| Package | \`${ZIP_NAME}\` |" >> $GITHUB_STEP_SUMMARY + echo "| SHA-256 | \`${SHA256:-n/a}\` |" >> $GITHUB_STEP_SUMMARY diff --git a/.mokogitea/workflows/rc-revert.yml b/.mokogitea/workflows/rc-revert.yml new file mode 100644 index 0000000..f54b184 --- /dev/null +++ b/.mokogitea/workflows/rc-revert.yml @@ -0,0 +1,66 @@ +# Copyright (C) 2026 Moko Consulting +# +# SPDX-License-Identifier: GPL-3.0-or-later +# +# FILE INFORMATION +# DEFGROUP: Gitea.Workflow +# INGROUP: MokoPlatform.Universal +# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# PATH: /.mokogitea/workflows/rc-revert.yml +# VERSION: 09.23.00 +# BRIEF: Rename rc/ branch back to dev/ when PR is closed without merge + +name: "RC Revert" + +on: + pull_request: + types: [closed] + +env: + FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true + +jobs: + revert: + name: Rename rc/ back to dev/ + runs-on: ubuntu-latest + if: >- + github.event.pull_request.merged == false && + startsWith(github.event.pull_request.head.ref, 'rc/') + + steps: + - name: Rename branch + run: | + BRANCH="${{ github.event.pull_request.head.ref }}" + SUFFIX="${BRANCH#rc/}" + DEV_BRANCH="dev/${SUFFIX}" + API="${{ vars.GITEA_URL || 'https://git.mokoconsulting.tech' }}/api/v1/repos/${{ github.repository }}/branches" + TOKEN="${{ secrets.MOKOGITEA_TOKEN }}" + + # Create dev/ branch from rc/ branch + STATUS=$(curl -sf -o /dev/null -w "%{http_code}" -X POST \ + -H "Authorization: token ${TOKEN}" \ + -H "Content-Type: application/json" \ + -d "{\"new_branch_name\": \"${DEV_BRANCH}\", \"old_branch_name\": \"${BRANCH}\"}" \ + "${API}" 2>/dev/null || true) + + if [ "$STATUS" = "201" ]; then + echo "Created branch: ${DEV_BRANCH}" >> $GITHUB_STEP_SUMMARY + else + echo "::error::Failed to create ${DEV_BRANCH} from ${BRANCH} (HTTP ${STATUS})" + exit 1 + fi + + # Delete rc/ branch + ENCODED=$(php -r "echo rawurlencode('${BRANCH}');") + STATUS=$(curl -sf -o /dev/null -w "%{http_code}" -X DELETE \ + -H "Authorization: token ${TOKEN}" \ + "${API}/${ENCODED}" 2>/dev/null || true) + + if [ "$STATUS" = "204" ]; then + echo "Deleted branch: ${BRANCH}" >> $GITHUB_STEP_SUMMARY + else + echo "::warning::Failed to delete ${BRANCH} (HTTP ${STATUS})" + fi + + echo "### RC Reverted" >> $GITHUB_STEP_SUMMARY + echo "${BRANCH} → ${DEV_BRANCH}" >> $GITHUB_STEP_SUMMARY diff --git a/.mokogitea/workflows/repo-health.yml b/.mokogitea/workflows/repo-health.yml index 8d57aaf..3977dee 100644 --- a/.mokogitea/workflows/repo-health.yml +++ b/.mokogitea/workflows/repo-health.yml @@ -7,8 +7,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Validation -# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/moko-platform +# INGROUP: mokoplatform.Validation +# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/mokoplatform # PATH: /templates/workflows/joomla/repo_health.yml.template # VERSION: 09.23.00 # BRIEF: Enforces repository guardrails by validating scripts governance, tooling availability, and core repository health artifacts. diff --git a/.mokogitea/workflows/security-audit.yml b/.mokogitea/workflows/security-audit.yml index 789325a..299b97f 100644 --- a/.mokogitea/workflows/security-audit.yml +++ b/.mokogitea/workflows/security-audit.yml @@ -4,10 +4,10 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: MokoStandards.Security -# REPO: https://git.mokoconsulting.tech/MokoConsulting/MokoStandards -# PATH: /.gitea/workflows/security-audit.yml -# VERSION: 01.00.00 +# INGROUP: mokoplatform.Security +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform +# PATH: /.mokogitea/workflows/security-audit.yml +# VERSION: 09.23.00 # BRIEF: Dependency vulnerability scanning for composer and npm packages name: "Universal: Security Audit" @@ -80,3 +80,19 @@ jobs: -H "Priority: high" \ -d "Security audit found vulnerabilities. Review dependency updates." \ "${NTFY_URL}/${NTFY_TOPIC}" || true + + + - name: Joomla version audit + if: always() + run: | + if [ -f "monitoring/joomla-version-audit.php" ] && [ -n "$JOOMLA_SITES" ]; then + echo "$JOOMLA_SITES" > /tmp/sites.json + php monitoring/joomla-version-audit.php --sites /tmp/sites.json || true + echo "### Joomla Version Audit" >> $GITHUB_STEP_SUMMARY + rm -f /tmp/sites.json + else + echo "Joomla audit skipped (no script or JOOMLA_SITES_JSON not configured)" + fi + env: + JOOMLA_SITES: ${{ vars.JOOMLA_SITES_JSON }} + diff --git a/.script-registry.json b/.script-registry.json index 2281cfb..4bb8034 100644 --- a/.script-registry.json +++ b/.script-registry.json @@ -1,7 +1,7 @@ { "metadata": { "generated_at": "2026-03-10T19:51:42.238134Z", - "repository": "MokoConsulting/moko-platform", + "repository": "MokoConsulting/mokoplatform", "version": "1.0.0" }, "scripts": [ diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e52eb1..51a933a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ SPDX-License-Identifier: GPL-3.0-or-later FILE INFORMATION DEFGROUP: MokoStandards.Root INGROUP: MokoStandards -REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PATH: /CHANGELOG.md BRIEF: Release changelog --> @@ -24,6 +24,16 @@ BRIEF: Release changelog - `pre-release.yml` — triggers on push to dev, fix/**, patch/**, hotfix/**, bugfix/**, alpha, beta, rc branches - Version format standardized: `[prefix]XX.YY.ZZ` in source files, suffix (`-dev`, `-rc`) added by release system only +## [09.26.00] --- 2026-06-07 + +### Added +- `cli/manifest_detect.php` — auto-detect manifest fields from source files (Joomla, Dolibarr, Go, MCP/Node, generic) +- Supports `--json`, `--diff`, `--update`, `--github-output` modes +- Warns on missing core fields (platform, name, version, package_type, language, entry_point) + +### Removed +- `mcp/servers/mokowaas_api/` — consolidated into mcp-mokowaas-api repo + ## [09.25.00] --- 2026-06-04 ## [09.23] --- 2026-05-31 diff --git a/PLUGIN_SCRIPTS.md b/PLUGIN_SCRIPTS.md index d016426..758459b 100644 --- a/PLUGIN_SCRIPTS.md +++ b/PLUGIN_SCRIPTS.md @@ -4,14 +4,14 @@ SPDX-License-Identifier: GPL-3.0-or-later FILE INFORMATION DEFGROUP: MokoPlatform.Root INGROUP: MokoPlatform -REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PATH: /PLUGIN_SCRIPTS.md BRIEF: Plugin system CLI documentation --> # Plugin System CLI Scripts -Command-line scripts for validating, health checking, and managing projects using the moko-platform plugin system. +Command-line scripts for validating, health checking, and managing projects using the mokoplatform plugin system. ## Available Scripts diff --git a/README.md b/README.md index c6bf850..a2efb51 100644 --- a/README.md +++ b/README.md @@ -4,17 +4,17 @@ SPDX-License-Identifier: GPL-3.0-or-later FILE INFORMATION DEFGROUP: MokoPlatform.Root INGROUP: MokoPlatform -REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PATH: /README.md VERSION: 09.25.02 BRIEF: Project overview and documentation --> -# moko-platform Enterprise API +# mokoplatform Enterprise API ![Version](https://img.shields.io/badge/version-09.01.00-blue) ![PHP](https://img.shields.io/badge/PHP-8.1%2B-777BB4) ![License](https://img.shields.io/badge/license-GPL--3.0--or--later-green) -PHP implementation of moko-platform — enterprise standards, automation framework, workflow templates, and bulk sync tooling. +PHP implementation of mokoplatform — enterprise standards, automation framework, workflow templates, and bulk sync tooling. > **Primary platform**: [Gitea — git.mokoconsulting.tech](https://git.mokoconsulting.tech/MokoConsulting/MokoStandards-API) > **Backup mirror**: [GitHub](https://github.com/MokoConsulting/MokoStandards-API) *(read-only mirror)* diff --git a/analysis/index.md b/analysis/index.md index 8e02640..9b2fe1d 100644 --- a/analysis/index.md +++ b/analysis/index.md @@ -4,7 +4,7 @@ SPDX-License-Identifier: GPL-3.0-or-later FILE INFORMATION DEFGROUP: MokoPlatform.Index INGROUP: MokoPlatform.Analysis -REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PATH: /analysis/index.md BRIEF: Analysis directory index --> diff --git a/automation/bulk_joomla_template.php b/automation/bulk_joomla_template.php index 30c9c2c..17fc272 100644 --- a/automation/bulk_joomla_template.php +++ b/automation/bulk_joomla_template.php @@ -11,7 +11,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Automation * INGROUP: MokoPlatform.Scripts - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /automation/bulk_joomla_template.php * BRIEF: Bulk scaffold and sync Joomla template repositories * @@ -42,7 +42,7 @@ use MokoEnterprise\{ * * Provides three operations for Joomla template projects: * --scaffold: Create a new template repository with the full directory structure - * --sync: Push moko-platform files to existing template repositories + * --sync: Push mokoplatform files to existing template repositories * --list: List all repositories tagged as joomla-template * * Works with both GitHub and Gitea via the PlatformAdapterFactory. @@ -318,7 +318,7 @@ class BulkJoomlaTemplate extends CliFramework $name, $path, $content, - "chore: update {$path} from moko-platform", + "chore: update {$path} from mokoplatform", $existingSha, $branch ); diff --git a/automation/bulk_sync.php b/automation/bulk_sync.php index ed99ee6..dc026b1 100755 --- a/automation/bulk_sync.php +++ b/automation/bulk_sync.php @@ -11,7 +11,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Automation * INGROUP: MokoPlatform.Scripts - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /automation/bulk_sync.php * BRIEF: Enterprise-grade bulk repository synchronization */ @@ -42,7 +42,7 @@ use MokoEnterprise\{ /** * Bulk Repository Synchronization Tool * - * Synchronizes moko-platform files across multiple repositories using + * Synchronizes mokoplatform files across multiple repositories using * the Enterprise library for robust, audited operations. */ class BulkSync extends CliFramework @@ -95,7 +95,7 @@ class BulkSync extends CliFramework */ protected function run(): int { - $this->log("🚀 moko-platform Bulk Synchronization v" . self::VERSION, 'INFO'); + $this->log("🚀 mokoplatform Bulk Synchronization v" . self::VERSION, 'INFO'); // Initialize enterprise components if (!$this->initializeComponents()) { @@ -180,7 +180,7 @@ class BulkSync extends CliFramework $results['health'] = $this->runHealthChecksAll($org, $repositories); } - // Create/update tracking issue in moko-platform + // Create/update tracking issue in mokoplatform $this->createSyncIssue($org, $results); // Create/update a failure issue when any repos failed @@ -244,7 +244,7 @@ class BulkSync extends CliFramework * Filter repositories based on include/exclude lists */ /** Repositories that are permanently excluded from bulk sync. */ - private const ALWAYS_EXCLUDE = ['moko-platform', '.github-private']; + private const ALWAYS_EXCLUDE = ['mokoplatform', '.github-private']; private function filterRepositories(array $repositories, array $include, array $exclude): array { @@ -426,7 +426,7 @@ class BulkSync extends CliFramework $this->log("", 'ERROR'); $this->log("Required Implementation:", 'ERROR'); $this->log(" 1. Clone/fetch target repository", 'ERROR'); - $this->log(" 2. Apply file updates based on moko-platform configuration", 'ERROR'); + $this->log(" 2. Apply file updates based on mokoplatform configuration", 'ERROR'); $this->log(" 3. Create pull request with changes", 'ERROR'); $this->log(" 4. Handle merge conflicts and validation", 'ERROR'); $this->log("", 'ERROR'); @@ -837,7 +837,7 @@ class BulkSync extends CliFramework } /** - * Ensure all standard moko-platform labels exist on a target repository. + * Ensure all standard mokoplatform labels exist on a target repository. * * Fetches existing labels first (GET) and only POSTs the ones that are * missing. This avoids the 422 "already exists" responses that would @@ -872,7 +872,7 @@ class BulkSync extends CliFramework // Workflow / Process ['automation', '8B4513', 'Automated processes or scripts'], - ['moko-platform', 'B60205', 'moko-platform compliance'], + ['mokoplatform', 'B60205', 'mokoplatform compliance'], ['needs-review', 'FBCA04', 'Awaiting code review'], ['work-in-progress', 'D93F0B', 'Work in progress, not ready for merge'], ['breaking-change', 'D73A4A', 'Breaking API or functionality change'], @@ -912,8 +912,8 @@ class BulkSync extends CliFramework ['health: poor', 'FF6B6B', 'Health score below 50'], // Sync / Automation (used by bulk_sync, scan_drift, check_repo_health) - ['standards-update', 'B60205', 'moko-platform sync update'], - ['standards-drift', 'FBCA04', 'Repository drifted from moko-platform'], + ['standards-update', 'B60205', 'mokoplatform sync update'], + ['standards-drift', 'FBCA04', 'Repository drifted from mokoplatform'], ['sync-report', '0075CA', 'Bulk sync run report'], ['sync-failure', 'D73A4A', 'Bulk sync failure requiring attention'], ['push-failure', 'D73A4A', 'File push failure requiring attention'], @@ -925,10 +925,10 @@ class BulkSync extends CliFramework ['type: version', '0E8A16', 'Version-related change'], ]; - // Quick check: if the repo already has the 'moko-platform' label, it was + // Quick check: if the repo already has the 'mokoplatform' label, it was // provisioned previously — skip the expensive full label provisioning. try { - $probe = $this->api->get("/repos/{$org}/{$repo}/labels/moko-platform"); + $probe = $this->api->get("/repos/{$org}/{$repo}/labels/mokoplatform"); if (!empty($probe['name'])) { return; // already provisioned } @@ -1024,7 +1024,7 @@ class BulkSync extends CliFramework */ private function updateOpenBranches(string $org, string $repo): void { - $syncBranchPrefix = 'chore/sync-moko-platform-'; + $syncBranchPrefix = 'chore/sync-mokoplatform-'; try { $defaultBranch = 'main'; @@ -1055,7 +1055,7 @@ class BulkSync extends CliFramework $this->api->post("/repos/{$org}/{$repo}/merges", [ 'base' => $branch, 'head' => $defaultBranch, - 'commit_message' => "chore: merge {$defaultBranch} into {$branch} (moko-platform sync)", + 'commit_message' => "chore: merge {$defaultBranch} into {$branch} (mokoplatform sync)", ]); $this->log(" 🔀 Merged {$defaultBranch} → {$branch} (PR #{$prNum})", 'INFO'); } catch (\Exception $e) { @@ -1076,7 +1076,7 @@ class BulkSync extends CliFramework /** * Records which sync run touched the repo, the PR number, and the - * moko-platform version that was applied — giving each repo a clear audit + * mokoplatform version that was applied — giving each repo a clear audit * trail of what was changed and why. */ /** @@ -1119,16 +1119,16 @@ class BulkSync extends CliFramework $minor = self::VERSION_MINOR; $force = isset($this->options['force']) ? ' *(--force)*' : ''; $prLink = $this->adapter->getPullRequestWebUrl($org, $repo, $prNumber); - $source = $this->adapter->getRepoWebUrl($org, 'moko-platform'); - $branchName = 'chore/sync-moko-platform-v' . $minor; + $source = $this->adapter->getRepoWebUrl($org, 'mokoplatform'); + $branchName = 'chore/sync-mokoplatform-v' . $minor; $branchLink = $this->adapter->getBranchWebUrl($org, $repo, $branchName); - $title = "chore: moko-platform v{$minor} sync tracking"; + $title = "chore: mokoplatform v{$minor} sync tracking"; $body = <<resolveLabelIds($org, $repo, $labelNames); try { @@ -1213,7 +1213,7 @@ class BulkSync extends CliFramework } /** - * Create a tracking issue in moko-platform for this sync run. + * Create a tracking issue in mokoplatform for this sync run. */ private function createSyncIssue(string $org, array $results): void { @@ -1232,7 +1232,7 @@ class BulkSync extends CliFramework $issues = $results['issues'] ?? []; // Stable title — no timestamp so repeated runs update a single issue - $title = "sync: moko-platform v" . self::VERSION_MINOR . " bulk sync report"; + $title = "sync: mokoplatform v" . self::VERSION_MINOR . " bulk sync report"; $protection = $results['protection'] ?? []; $hasProtect = !empty($protection); @@ -1281,7 +1281,7 @@ class BulkSync extends CliFramework : "|---|---|---|---|"; $body = <<api->get("/repos/{$org}/moko-platform/issues", [ + $existing = $this->api->get("/repos/{$org}/mokoplatform/issues", [ 'labels' => 'sync-report', 'state' => 'all', 'per_page' => 1, @@ -1309,8 +1309,8 @@ class BulkSync extends CliFramework 'direction' => 'desc', ]); - $labelNames = ['sync-report', 'moko-platform', 'type: chore', 'automation']; - $labels = $this->resolveLabelIds($org, 'moko-platform', $labelNames); + $labelNames = ['sync-report', 'mokoplatform', 'type: chore', 'automation']; + $labels = $this->resolveLabelIds($org, 'mokoplatform', $labelNames); $existing = array_values($existing); if (!empty($existing) && isset($existing[0]['number'])) { @@ -1319,22 +1319,22 @@ class BulkSync extends CliFramework if (($existing[0]['state'] ?? 'open') === 'closed') { $patch['state'] = 'open'; } - $this->api->patch("/repos/{$org}/moko-platform/issues/{$issueNumber}", $patch); + $this->api->patch("/repos/{$org}/mokoplatform/issues/{$issueNumber}", $patch); try { - $this->api->post("/repos/{$org}/moko-platform/issues/{$issueNumber}/labels", ['labels' => $labels]); + $this->api->post("/repos/{$org}/mokoplatform/issues/{$issueNumber}/labels", ['labels' => $labels]); } catch (\Exception $le) { /* non-fatal */ } - $this->log("📋 Sync report issue updated: {$org}/moko-platform#{$issueNumber}", 'INFO'); + $this->log("📋 Sync report issue updated: {$org}/mokoplatform#{$issueNumber}", 'INFO'); } else { - $issue = $this->api->post("/repos/{$org}/moko-platform/issues", [ + $issue = $this->api->post("/repos/{$org}/mokoplatform/issues", [ 'title' => $title, 'body' => $body, 'labels' => $labels, 'assignees' => ['jmiller'], ]); $issueNumber = $issue['number'] ?? '?'; - $this->log("📋 Sync report issue created: {$org}/moko-platform#{$issueNumber}", 'INFO'); + $this->log("📋 Sync report issue created: {$org}/mokoplatform#{$issueNumber}", 'INFO'); } } catch (\Exception $e) { $this->log("⚠️ Failed to create/update sync report issue: " . $e->getMessage(), 'WARN'); @@ -1342,7 +1342,7 @@ class BulkSync extends CliFramework } /** - * Create or update a failure issue in moko-platform when repos fail to sync. + * Create or update a failure issue in mokoplatform when repos fail to sync. * Uses the 'sync-failure' label so it is distinct from the run-report issue. * Reopens a closed issue rather than creating a duplicate. */ @@ -1388,7 +1388,7 @@ class BulkSync extends CliFramework $body = preg_replace('/^ /m', '', $body); try { - $existing = $this->api->get("/repos/{$org}/moko-platform/issues", [ + $existing = $this->api->get("/repos/{$org}/mokoplatform/issues", [ 'labels' => 'sync-failure', 'state' => 'all', 'per_page' => 1, @@ -1403,17 +1403,17 @@ class BulkSync extends CliFramework if (($existing[0]['state'] ?? 'open') === 'closed') { $patch['state'] = 'open'; } - $this->api->patch("/repos/{$org}/moko-platform/issues/{$num}", $patch); - $this->log("🚨 Failure issue #{$num} updated: {$org}/moko-platform#{$num}", 'WARN'); + $this->api->patch("/repos/{$org}/mokoplatform/issues/{$num}", $patch); + $this->log("🚨 Failure issue #{$num} updated: {$org}/mokoplatform#{$num}", 'WARN'); } else { - $issue = $this->api->post("/repos/{$org}/moko-platform/issues", [ + $issue = $this->api->post("/repos/{$org}/mokoplatform/issues", [ 'title' => $title, 'body' => $body, - 'labels' => $this->resolveLabelIds($org, 'moko-platform', ['sync-failure']), + 'labels' => $this->resolveLabelIds($org, 'mokoplatform', ['sync-failure']), 'assignees' => ['jmiller'], ]); $num = $issue['number'] ?? '?'; - $this->log("🚨 Failure issue created: {$org}/moko-platform#{$num}", 'WARN'); + $this->log("🚨 Failure issue created: {$org}/mokoplatform#{$num}", 'WARN'); } } catch (\Exception $e) { $this->log("⚠️ Could not create/update failure issue: " . $e->getMessage(), 'WARN'); diff --git a/automation/enrich_manifest_xml.php b/automation/enrich_manifest_xml.php index 26c6afb..2c9d160 100644 --- a/automation/enrich_manifest_xml.php +++ b/automation/enrich_manifest_xml.php @@ -8,7 +8,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Automation * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /automation/enrich_manifest_xml.php * BRIEF: Enrich XML manifests with repo-specific build and deploy details * @@ -46,7 +46,7 @@ class EnrichManifestXmlCli extends CliFramework $parser = new MokoStandardsParser(); $tmpBase = sys_get_temp_dir() . '/moko-enrich-' . getmypid(); - echo "=== moko-platform XML Manifest Enrichment ===\n"; + echo "=== mokoplatform XML Manifest Enrichment ===\n"; echo "Mode: " . ($this->dryRun ? "DRY RUN" : "LIVE") . "\n"; if (!empty($skipRepos)) { echo "Skipping: " . implode(', ', $skipRepos) . "\n"; @@ -97,7 +97,7 @@ class EnrichManifestXmlCli extends CliFramework } $manifestPath = "{$workDir}/.mokogitea/manifest.xml"; - if (!file_exists($manifestPath) || !str_contains(file_get_contents($manifestPath), 'rmTree($workDir); diff --git a/automation/enrich_mokostandards_xml.php b/automation/enrich_mokostandards_xml.php index 43dc8a6..7baa3f2 100644 --- a/automation/enrich_mokostandards_xml.php +++ b/automation/enrich_mokostandards_xml.php @@ -8,7 +8,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Automation * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /automation/enrich_mokostandards_xml.php * BRIEF: Enrich XML manifests with repo-specific build and deploy details * @@ -46,7 +46,7 @@ class EnrichMokostandardsXmlCli extends CliFramework $parser = new MokoStandardsParser(); $tmpBase = sys_get_temp_dir() . '/moko-enrich-' . getmypid(); - echo "=== moko-platform XML Manifest Enrichment ===\n"; + echo "=== mokoplatform XML Manifest Enrichment ===\n"; echo "Mode: " . ($this->dryRun ? "DRY RUN" : "LIVE") . "\n"; if (!empty($skipRepos)) { echo "Skipping: " . implode(', ', $skipRepos) . "\n"; @@ -97,7 +97,7 @@ class EnrichMokostandardsXmlCli extends CliFramework } $manifestPath = "{$workDir}/.mokogitea/manifest.xml"; - if (!file_exists($manifestPath) || !str_contains(file_get_contents($manifestPath), 'rmTree($workDir); diff --git a/automation/index.md b/automation/index.md index f61d3d6..872f34e 100644 --- a/automation/index.md +++ b/automation/index.md @@ -4,7 +4,7 @@ SPDX-License-Identifier: GPL-3.0-or-later FILE INFORMATION DEFGROUP: MokoPlatform.Index INGROUP: MokoPlatform.Automation -REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PATH: /automation/index.md BRIEF: Automation directory index --> diff --git a/automation/migrate_to_gitea.php b/automation/migrate_to_gitea.php index d2f1c51..7b0d8af 100644 --- a/automation/migrate_to_gitea.php +++ b/automation/migrate_to_gitea.php @@ -10,14 +10,14 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Automation * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /automation/migrate_to_gitea.php * BRIEF: Migrate repositories from GitHub to self-hosted Gitea instance * * USAGE * php automation/migrate_to_gitea.php --dry-run * php automation/migrate_to_gitea.php --repos MokoCRM MokoDoliMods - * php automation/migrate_to_gitea.php --exclude moko-platform --skip-archived + * php automation/migrate_to_gitea.php --exclude mokoplatform --skip-archived * php automation/migrate_to_gitea.php --resume */ @@ -278,7 +278,7 @@ class MigrateToGitea extends CliFramework try { $this->gitea->createIssue( $giteaOrg, - 'moko-platform', + 'mokoplatform', 'chore: GitHub → Gitea migration report — ' . count($results['migrated']) . ' repos migrated', $report, ['labels' => ['automation', 'type: chore']] diff --git a/automation/push_files.php b/automation/push_files.php index f6cdc19..cac9645 100644 --- a/automation/push_files.php +++ b/automation/push_files.php @@ -11,7 +11,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Automation * INGROUP: MokoPlatform.Scripts - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /automation/push_files.php * BRIEF: Push one or more specific files to one or more remote repositories */ @@ -35,7 +35,7 @@ use MokoEnterprise\{ /** * Targeted File Push Tool * - * Pushes one or more specific files from moko-platform templates to one or + * Pushes one or more specific files from mokoplatform templates to one or * more remote repositories — without running a full sync. * * Files are specified by their destination path as they appear in the target @@ -81,7 +81,7 @@ class PushFiles extends CliFramework */ protected function run(): int { - $this->log('📦 moko-platform File Push v' . self::VERSION, 'INFO'); + $this->log('📦 mokoplatform File Push v' . self::VERSION, 'INFO'); if (!$this->initializeComponents()) { return 1; @@ -337,7 +337,7 @@ class PushFiles extends CliFramework $prNumber = null; if (!$direct) { - $prTitle = "chore: push " . count($entries) . " file(s) from moko-platform"; + $prTitle = "chore: push " . count($entries) . " file(s) from mokoplatform"; $prBody = $this->buildPRBody($entries); $pr = $this->adapter->createPullRequest( $org, @@ -414,7 +414,7 @@ class PushFiles extends CliFramework $message = !empty($customMessage) ? $customMessage - : "chore: update {$destPath} from moko-platform"; + : "chore: update {$destPath} from mokoplatform"; // Fetch existing file SHA (needed for updates) $existingSha = null; @@ -457,9 +457,9 @@ class PushFiles extends CliFramework ): void { $now = gmdate('Y-m-d H:i:s') . ' UTC'; $version = self::VERSION; - $source = $this->adapter->getRepoWebUrl($org, 'moko-platform'); + $source = $this->adapter->getRepoWebUrl($org, 'mokoplatform'); - $title = "chore: moko-platform file push tracking"; + $title = "chore: mokoplatform file push tracking"; $deliveryLine = $prNumber !== null ? "| **Pull request** | [#{$prNumber}](" . $this->adapter->getPullRequestWebUrl($org, $repo, $prNumber) . ") |" @@ -471,9 +471,9 @@ class PushFiles extends CliFramework )); $body = <<api->get("/repos/{$org}/{$repo}/issues", [ @@ -550,7 +550,7 @@ class PushFiles extends CliFramework } /** - * Create or update a failure issue in moko-platform when repos fail to receive files. + * Create or update a failure issue in mokoplatform when repos fail to receive files. * Uses the 'push-failure' label. Reopens a closed issue rather than creating a duplicate. */ private function createFailureIssue(string $org, array $results): void @@ -598,7 +598,7 @@ class PushFiles extends CliFramework $body = preg_replace('/^ /m', '', $body); try { - $existing = $this->api->get("/repos/{$org}/moko-platform/issues", [ + $existing = $this->api->get("/repos/{$org}/mokoplatform/issues", [ 'labels' => 'push-failure', 'state' => 'all', 'per_page' => 1, @@ -613,17 +613,17 @@ class PushFiles extends CliFramework if (($existing[0]['state'] ?? 'open') === 'closed') { $patch['state'] = 'open'; } - $this->api->patch("/repos/{$org}/moko-platform/issues/{$num}", $patch); - $this->log("🚨 Failure issue #{$num} updated: {$org}/moko-platform#{$num}", 'WARN'); + $this->api->patch("/repos/{$org}/mokoplatform/issues/{$num}", $patch); + $this->log("🚨 Failure issue #{$num} updated: {$org}/mokoplatform#{$num}", 'WARN'); } else { - $issue = $this->api->post("/repos/{$org}/moko-platform/issues", [ + $issue = $this->api->post("/repos/{$org}/mokoplatform/issues", [ 'title' => $title, 'body' => $body, 'labels' => ['push-failure'], 'assignees' => ['jmiller'], ]); $num = $issue['number'] ?? '?'; - $this->log("🚨 Failure issue created: {$org}/moko-platform#{$num}", 'WARN'); + $this->log("🚨 Failure issue created: {$org}/mokoplatform#{$num}", 'WARN'); } } catch (\Exception $e) { $this->log("⚠️ Could not create/update failure issue: " . $e->getMessage(), 'WARN'); @@ -638,14 +638,14 @@ class PushFiles extends CliFramework private function buildPRBody(array $entries): string { $now = gmdate('Y-m-d H:i:s') . ' UTC'; - $lines = ["## moko-platform File Push\n", "**Pushed:** {$now}\n", '### Files\n']; + $lines = ["## mokoplatform File Push\n", "**Pushed:** {$now}\n", '### Files\n']; foreach ($entries as $entry) { $lines[] = "- `{$entry['destination']}`"; } - $sourceUrl = $this->adapter->getRepoWebUrl(self::DEFAULT_ORG, 'moko-platform'); - $lines[] = "\n---\n*Generated by [moko-platform]({$sourceUrl}) `push_files.php`*"; + $sourceUrl = $this->adapter->getRepoWebUrl(self::DEFAULT_ORG, 'mokoplatform'); + $lines[] = "\n---\n*Generated by [mokoplatform]({$sourceUrl}) `push_files.php`*"; return implode("\n", $lines); } diff --git a/automation/push_manifest_xml.php b/automation/push_manifest_xml.php index 988755a..62fc581 100644 --- a/automation/push_manifest_xml.php +++ b/automation/push_manifest_xml.php @@ -8,7 +8,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Automation * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /automation/push_manifest_xml.php * BRIEF: Push XML manifests to all governed repositories */ @@ -47,7 +47,7 @@ class PushManifestXmlCli extends CliFramework $parser = new MokoStandardsParser(); $tmpBase = sys_get_temp_dir() . '/moko-manifest-push-' . getmypid(); - echo "=== moko-platform XML Manifest Push ===\n"; + echo "=== mokoplatform XML Manifest Push ===\n"; echo "Org: {$giteaOrg}\n"; echo "Mode: " . ($this->dryRun ? "DRY RUN" : "LIVE") . "\n"; if ($repoFilter) { @@ -125,7 +125,7 @@ class PushManifestXmlCli extends CliFramework // Check if already XML and up-to-date $manifestPath = "{$workDir}/.mokogitea/manifest.xml"; - $existingIsXml = file_exists($manifestPath) && str_contains(file_get_contents($manifestPath), 'extractPlatform(file_get_contents($manifestPath)); if ($existingPlatform === $platform) { diff --git a/automation/push_mokostandards_xml.php b/automation/push_mokostandards_xml.php index 09150b4..2a96517 100644 --- a/automation/push_mokostandards_xml.php +++ b/automation/push_mokostandards_xml.php @@ -8,7 +8,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Automation * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /automation/push_mokostandards_xml.php * BRIEF: Push XML manifests to all governed repositories */ @@ -47,7 +47,7 @@ class PushMokostandardsXmlCli extends CliFramework $parser = new MokoStandardsParser(); $tmpBase = sys_get_temp_dir() . '/moko-manifest-push-' . getmypid(); - echo "=== moko-platform XML Manifest Push ===\n"; + echo "=== mokoplatform XML Manifest Push ===\n"; echo "Org: {$giteaOrg}\n"; echo "Mode: " . ($this->dryRun ? "DRY RUN" : "LIVE") . "\n"; if ($repoFilter) { @@ -125,7 +125,7 @@ class PushMokostandardsXmlCli extends CliFramework // Check if already XML and up-to-date $manifestPath = "{$workDir}/.mokogitea/manifest.xml"; - $existingIsXml = file_exists($manifestPath) && str_contains(file_get_contents($manifestPath), 'extractPlatform(file_get_contents($manifestPath)); if ($existingPlatform === $platform) { diff --git a/automation/repo_cleanup.php b/automation/repo_cleanup.php index 0e223bd..8a8a75b 100644 --- a/automation/repo_cleanup.php +++ b/automation/repo_cleanup.php @@ -11,7 +11,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Automation * INGROUP: MokoPlatform.Scripts - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /automation/repo_cleanup.php * BRIEF: Enterprise repository cleanup — branches, PRs, issues, workflows, labels, logs */ @@ -39,14 +39,14 @@ use MokoEnterprise\{ApiClient, AuditLogger, CliFramework, Config, GitPlatformAda class RepoCleanup extends CliFramework { private const VERSION = '09.23.00'; - private const SYNC_PREFIX = 'chore/sync-moko-platform-'; - private const CURRENT_BRANCH = 'chore/sync-moko-platform-v04.02.00'; + private const SYNC_PREFIX = 'chore/sync-mokoplatform-'; + private const CURRENT_BRANCH = 'chore/sync-mokoplatform-v04.02.00'; /** Workflow files that have been retired and should be deleted from governed repos. */ private const RETIRED_WORKFLOWS = [ 'build.yml', 'code-quality.yml', 'release-cycle.yml', 'release-pipeline.yml', 'branch-cleanup.yml', 'auto-update-changelog.yml', 'enterprise-issue-manager.yml', - 'flush-actions-cache.yml', 'moko-platform-script-runner.yml', 'unified-ci.yml', + 'flush-actions-cache.yml', 'mokoplatform-script-runner.yml', 'unified-ci.yml', 'unified-platform-testing.yml', 'reusable-build.yml', 'reusable-ci-validation.yml', 'reusable-deploy.yml', 'reusable-php-quality.yml', 'reusable-platform-testing.yml', 'reusable-project-detector.yml', 'reusable-release.yml', 'reusable-script-executor.yml', @@ -98,7 +98,7 @@ class RepoCleanup extends CliFramework } - $this->logMsg("🧹 moko-platform Repository Cleanup v" . self::VERSION); + $this->logMsg("🧹 mokoplatform Repository Cleanup v" . self::VERSION); $this->logMsg("Organization: {$org}"); $this->logMsg("Current sync branch: " . self::CURRENT_BRANCH); if ($this->dryRun) { @@ -225,7 +225,7 @@ class RepoCleanup extends CliFramework } $allRepos = $this->adapter->listOrgRepos($org, $skipArchived); - return array_filter($allRepos, fn($r) => !in_array($r['name'], ['moko-platform', '.github-private'], true)); + return array_filter($allRepos, fn($r) => !in_array($r['name'], ['mokoplatform', '.github-private'], true)); } // ─── Cleanup operations ────────────────────────────────────────────── @@ -463,9 +463,9 @@ class RepoCleanup extends CliFramework private function checkLabels(string $org, string $repo, array &$results): void { try { - $this->api->get("/repos/{$org}/{$repo}/labels/moko-platform"); + $this->api->get("/repos/{$org}/{$repo}/labels/mokoplatform"); } catch (\Exception $e) { - $this->logMsg(" ⚠️ Missing 'moko-platform' label"); + $this->logMsg(" ⚠️ Missing 'mokoplatform' label"); $results['labels_missing']++; $this->api->resetCircuitBreaker(); } @@ -479,7 +479,7 @@ class RepoCleanup extends CliFramework if (preg_match('/^\s*VERSION:\s*(\d{2}\.\d{2}\.\d{2})/m', $content, $m)) { $version = $m[1]; - // Check manifest.xml for the tracked moko-platform version + // Check manifest.xml for the tracked mokoplatform version try { $mokoFile = $this->api->get("/repos/{$org}/{$repo}/contents/.mokogitea/manifest.xml"); $mokoContent = base64_decode($mokoFile['content'] ?? ''); diff --git a/cli/archive_repo.php b/cli/archive_repo.php index 8b262c6..89c2b01 100644 --- a/cli/archive_repo.php +++ b/cli/archive_repo.php @@ -8,9 +8,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/archive_repo.php * BRIEF: Gracefully retire a governed repository — archive, close issues/PRs, remove sync def */ @@ -135,7 +135,7 @@ class ArchiveRepoCli extends CliFramework try { $issue = $adapter->createIssue( $org, - 'moko-platform', + 'mokoplatform', "chore: archived repository {$repoName}", "## Repository Archived\n\n" . "**Repository:** `{$org}/{$repoName}`\n" @@ -150,7 +150,7 @@ class ArchiveRepoCli extends CliFramework ] ); if (isset($issue['number'])) { - echo " Archival record: moko-platform#{$issue['number']}\n"; + echo " Archival record: mokoplatform#{$issue['number']}\n"; } } catch (\Exception $e) { echo " Warning: could not create archival record: " . $e->getMessage() . "\n"; diff --git a/cli/audit_query.php b/cli/audit_query.php index 57bb875..4b28232 100644 --- a/cli/audit_query.php +++ b/cli/audit_query.php @@ -16,7 +16,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise.CLI * INGROUP: MokoPlatform.Enterprise - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/audit_query.php * BRIEF: Search, filter, and export audit logs */ diff --git a/cli/badge_update.php b/cli/badge_update.php index d7d529b..aa4658b 100644 --- a/cli/badge_update.php +++ b/cli/badge_update.php @@ -6,9 +6,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/badge_update.php * BRIEF: Update [VERSION: XX.XX.XX] badges in all markdown files */ diff --git a/cli/branch_rename.php b/cli/branch_rename.php index 61b7967..96f2912 100644 --- a/cli/branch_rename.php +++ b/cli/branch_rename.php @@ -6,9 +6,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/branch_rename.php * VERSION: 09.25.02 * BRIEF: Rename a git branch via Gitea API (create new, update PR, delete old) diff --git a/cli/bulk_workflow_push.php b/cli/bulk_workflow_push.php index cc56f77..fd4ceed 100644 --- a/cli/bulk_workflow_push.php +++ b/cli/bulk_workflow_push.php @@ -8,9 +8,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/bulk_workflow_push.php * VERSION: 09.25.02 * BRIEF: Push a workflow file to all governed repos via the Gitea Contents API @@ -154,7 +154,7 @@ class BulkWorkflowPushCli extends CliFramework 'content' => $encodedContent, 'sha' => $remoteSha, 'message' => "chore: sync {$destPath} " - . "from moko-platform [skip ci]", + . "from mokoplatform [skip ci]", 'branch' => $branch, ]); @@ -184,7 +184,7 @@ class BulkWorkflowPushCli extends CliFramework $payload = json_encode([ 'content' => $encodedContent, 'message' => "chore: add {$destPath} " - . "from moko-platform [skip ci]", + . "from mokoplatform [skip ci]", 'branch' => $branch, ]); diff --git a/cli/bulk_workflow_trigger.php b/cli/bulk_workflow_trigger.php index 3f4df33..f5f7f5d 100644 --- a/cli/bulk_workflow_trigger.php +++ b/cli/bulk_workflow_trigger.php @@ -8,9 +8,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/bulk_workflow_trigger.php * VERSION: 09.25.02 * BRIEF: Trigger a workflow across multiple repos at once diff --git a/cli/changelog_promote.php b/cli/changelog_promote.php index e5dc3db..41188d4 100644 --- a/cli/changelog_promote.php +++ b/cli/changelog_promote.php @@ -6,9 +6,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/changelog_promote.php * BRIEF: Promote [Unreleased] section in CHANGELOG.md to a versioned entry */ diff --git a/cli/changelog_prune.php b/cli/changelog_prune.php index d6fe85d..2a7c8bb 100644 --- a/cli/changelog_prune.php +++ b/cli/changelog_prune.php @@ -6,9 +6,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/changelog_prune.php * BRIEF: Prune old CHANGELOG.md entries — keeps [Unreleased] + last N releases */ diff --git a/cli/client_dashboard.php b/cli/client_dashboard.php index 3fb51e5..485338e 100644 --- a/cli/client_dashboard.php +++ b/cli/client_dashboard.php @@ -8,9 +8,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/client_dashboard.php * VERSION: 09.25.02 * BRIEF: Generate unified client dashboard HTML diff --git a/cli/client_health_check.php b/cli/client_health_check.php index ac7145d..dc84e10 100644 --- a/cli/client_health_check.php +++ b/cli/client_health_check.php @@ -6,9 +6,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/client_health_check.php * BRIEF: Verify a client site's update server, installed version, and release availability */ diff --git a/cli/client_inventory.php b/cli/client_inventory.php index b40f30c..095ef6a 100644 --- a/cli/client_inventory.php +++ b/cli/client_inventory.php @@ -8,9 +8,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/client_inventory.php * VERSION: 09.25.02 * BRIEF: Discover and list all client-waas repos with their server configuration status diff --git a/cli/client_provision.php b/cli/client_provision.php index fdfa4d1..fb753d8 100644 --- a/cli/client_provision.php +++ b/cli/client_provision.php @@ -8,9 +8,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/client_provision.php * VERSION: 09.25.02 * BRIEF: Provision a new client environment end-to-end diff --git a/cli/completion.php b/cli/completion.php index 5f3ad4d..5025a97 100644 --- a/cli/completion.php +++ b/cli/completion.php @@ -6,9 +6,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/completion.php * BRIEF: Generate bash/zsh tab completion scripts for bin/moko */ diff --git a/cli/create_project.php b/cli/create_project.php index e57363f..299045c 100644 --- a/cli/create_project.php +++ b/cli/create_project.php @@ -8,9 +8,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/create_project.php * BRIEF: Create baseline GitHub Projects for repositories with standard fields and views */ @@ -24,7 +24,7 @@ use MokoEnterprise\CliFramework; class CreateProjectCli extends CliFramework { /** @var string[] */ - private array $ALWAYS_EXCLUDE = ['moko-platform', '.github-private']; + private array $ALWAYS_EXCLUDE = ['mokoplatform', '.github-private']; /** @var array */ private array $PLATFORM_TO_TYPE = [ @@ -183,7 +183,7 @@ class CreateProjectCli extends CliFramework CURLOPT_HTTPHEADER => [ 'Authorization: bearer ' . $token, 'Content-Type: application/json', - 'User-Agent: moko-platform-CreateProject', + 'User-Agent: mokoplatform-CreateProject', ], ]); $body = (string) curl_exec($ch); @@ -422,14 +422,14 @@ class CreateProjectCli extends CliFramework updateProjectV2(input: { projectId: $projectId, shortDescription: $shortDescription, - readme: "Managed by moko-platform. Run `php cli/create_project.php` to regenerate." + readme: "Managed by mokoplatform. Run `php cli/create_project.php` to regenerate." }) { projectV2 { id } } }', [ 'projectId' => $projectId, - 'shortDescription' => "Standard project board for {$repo}. Auto-created by moko-platform.", + 'shortDescription' => "Standard project board for {$repo}. Auto-created by mokoplatform.", ], $token ); diff --git a/cli/create_repo.php b/cli/create_repo.php index 38add2b..26f4d7f 100644 --- a/cli/create_repo.php +++ b/cli/create_repo.php @@ -8,11 +8,11 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/create_repo.php - * BRIEF: Scaffold a new governed repository with full moko-platform baseline + * BRIEF: Scaffold a new governed repository with full mokoplatform baseline */ declare(strict_types=1); @@ -28,7 +28,7 @@ class CreateRepoCli extends CliFramework { protected function configure(): void { - $this->setDescription('Scaffold a new governed repository with full moko-platform baseline'); + $this->setDescription('Scaffold a new governed repository with full mokoplatform baseline'); $this->addArgument('--name', 'Repository name', null); $this->addArgument('--type', 'Project type', null); $this->addArgument('--description', 'Repository description', ''); @@ -60,16 +60,16 @@ class CreateRepoCli extends CliFramework 'generic' => 'generic', ]; $TYPE_TO_TOPICS = [ - 'dolibarr' => ['dolibarr', 'erp', 'crm', 'php', 'moko-platform'], - 'joomla' => ['joomla', 'cms', 'php', 'moko-platform'], - 'nodejs' => ['nodejs', 'javascript', 'typescript', 'moko-platform'], - 'terraform' => ['terraform', 'infrastructure', 'iac', 'moko-platform'], - 'python' => ['python', 'moko-platform'], - 'wordpress' => ['wordpress', 'php', 'cms', 'moko-platform'], - 'generic' => ['moko-platform'], + 'dolibarr' => ['dolibarr', 'erp', 'crm', 'php', 'mokoplatform'], + 'joomla' => ['joomla', 'cms', 'php', 'mokoplatform'], + 'nodejs' => ['nodejs', 'javascript', 'typescript', 'mokoplatform'], + 'terraform' => ['terraform', 'infrastructure', 'iac', 'mokoplatform'], + 'python' => ['python', 'mokoplatform'], + 'wordpress' => ['wordpress', 'php', 'cms', 'mokoplatform'], + 'generic' => ['mokoplatform'], ]; $platform = $TYPE_TO_PLATFORM[$type] ?? 'generic'; - $topics = $TYPE_TO_TOPICS[$type] ?? ['moko-platform']; + $topics = $TYPE_TO_TOPICS[$type] ?? ['mokoplatform']; $platformName = $adapter->getPlatformName(); $vis = $private ? 'private' : 'public'; echo "Scaffolding new repository: {$org}/{$name}" @@ -84,7 +84,7 @@ class CreateRepoCli extends CliFramework if (!$this->dryRun) { try { $data = $adapter->createOrgRepo($org, $name, [ - 'description' => $description ?: "Managed by moko-platform ({$type})", + 'description' => $description ?: "Managed by mokoplatform ({$type})", 'private' => $private, 'has_issues' => true, 'has_projects' => true, @@ -143,7 +143,7 @@ class CreateRepoCli extends CliFramework . "Copyright (C) 2026 Moko Consulting \n" . "SPDX-License-Identifier: GPL-3.0-or-later\n" . "DEFGROUP: {$name}\n" - . "INGROUP: moko-platform\n" + . "INGROUP: mokoplatform\n" . "REPO: {$repoUrl}\n" . "PATH: /README.md\n" . "BRIEF: {$description}\n" @@ -152,7 +152,7 @@ class CreateRepoCli extends CliFramework . "{$description}\n\n" . "## Getting Started\n\n" . "This repository is governed by" - . " [moko-platform]({$standardsUrl}).\n\n" + . " [mokoplatform]({$standardsUrl}).\n\n" . "## License\n\n" . "GPL-3.0-or-later. See [LICENSE](LICENSE)" . " for details.\n"; @@ -169,7 +169,7 @@ class CreateRepoCli extends CliFramework $name, 'README.md', $readmeContent, - 'docs: initialize README with moko-platform header [skip ci]', + 'docs: initialize README with mokoplatform header [skip ci]', $sha ); echo " README.md created\n"; diff --git a/cli/deploy_joomla.php b/cli/deploy_joomla.php index d361fbf..207d8ec 100644 --- a/cli/deploy_joomla.php +++ b/cli/deploy_joomla.php @@ -10,7 +10,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.CLI * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/deploy_joomla.php * BRIEF: Smart Joomla deploy — routes files to correct server directories by extension type * diff --git a/cli/dev_branch_reset.php b/cli/dev_branch_reset.php index 92d5704..00e6890 100644 --- a/cli/dev_branch_reset.php +++ b/cli/dev_branch_reset.php @@ -6,9 +6,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/dev_branch_reset.php * BRIEF: Delete and recreate dev branch from main via Gitea API */ diff --git a/cli/grafana_dashboard.php b/cli/grafana_dashboard.php index 596f776..9529b1a 100644 --- a/cli/grafana_dashboard.php +++ b/cli/grafana_dashboard.php @@ -8,9 +8,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/grafana_dashboard.php * VERSION: 09.25.02 * BRIEF: Manage Grafana dashboards via API diff --git a/cli/joomla_build.php b/cli/joomla_build.php index 66f4a5b..0e768a9 100644 --- a/cli/joomla_build.php +++ b/cli/joomla_build.php @@ -6,9 +6,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/joomla_build.php * VERSION: 09.25.02 * BRIEF: Build a Joomla extension ZIP from manifest — all types supported diff --git a/cli/joomla_compat_check.php b/cli/joomla_compat_check.php index 0c1a9c5..ca93f48 100644 --- a/cli/joomla_compat_check.php +++ b/cli/joomla_compat_check.php @@ -6,9 +6,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/joomla_compat_check.php * BRIEF: Check if extension targetplatform regex matches the latest Joomla version */ diff --git a/cli/joomla_release.php b/cli/joomla_release.php index b763e62..a0e2798 100644 --- a/cli/joomla_release.php +++ b/cli/joomla_release.php @@ -8,9 +8,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/joomla_release.php * BRIEF: Joomla release pipeline — build ZIP+tar.gz, upload to GitHub Release, update updates.xml * @@ -407,7 +407,7 @@ class JoomlaRelease extends CliFramework $this->api->post("/repos/{$repo}/releases", [ 'tag_name' => $tag, 'name' => $releaseName, - 'body' => "## {$version}\n\nCreated by moko-platform release pipeline.", + 'body' => "## {$version}\n\nCreated by mokoplatform release pipeline.", 'prerelease' => ($stability !== 'stable'), ]); } diff --git a/cli/license_manage.php b/cli/license_manage.php index 01fe260..52cf9cc 100644 --- a/cli/license_manage.php +++ b/cli/license_manage.php @@ -6,9 +6,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/license_manage.php * BRIEF: Manage license packages and keys via MokoGitea licensing API * diff --git a/cli/manifest_detect.php b/cli/manifest_detect.php new file mode 100644 index 0000000..c3251d3 --- /dev/null +++ b/cli/manifest_detect.php @@ -0,0 +1,716 @@ +#!/usr/bin/env php + + * + * SPDX-License-Identifier: GPL-3.0-or-later + * + * FILE INFORMATION + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform + * PATH: /cli/manifest_detect.php + * VERSION: 09.26.00 + * BRIEF: Auto-detect manifest fields from source files and optionally push to API + */ + +declare(strict_types=1); + +require_once __DIR__ . '/../lib/Enterprise/CliFramework.php'; + +use MokoEnterprise\{CliFramework, SourceResolver}; + +class ManifestDetectCli extends CliFramework +{ + protected function configure(): void + { + $this->setDescription('Auto-detect manifest fields from source files'); + $this->addArgument('--path', 'Repository root path', '.'); + $this->addArgument('--json', 'Output as JSON', false); + $this->addArgument('--diff', 'Show diff against current manifest API values', false); + $this->addArgument('--update', 'Push detected fields to manifest API', false); + $this->addArgument('--token', 'Gitea API token (or GITEA_TOKEN env)', ''); + $this->addArgument('--api-base', 'Gitea API base URL', 'https://git.mokoconsulting.tech/api/v1'); + $this->addArgument('--org', 'Gitea org', 'MokoConsulting'); + $this->addArgument('--repo', 'Gitea repo name (auto-detected from remote if empty)', ''); + $this->addArgument('--github-output', 'Append fields to $GITHUB_OUTPUT', false); + } + + protected function run(): int + { + $path = $this->getArgument('--path'); + $jsonMode = (bool) $this->getArgument('--json'); + $diffMode = (bool) $this->getArgument('--diff'); + $updateMode = (bool) $this->getArgument('--update'); + $ghOutput = (bool) $this->getArgument('--github-output'); + $token = $this->getArgument('--token') ?: getenv('GITEA_TOKEN') ?: ''; + $apiBase = rtrim($this->getArgument('--api-base'), '/'); + $org = $this->getArgument('--org'); + $repoName = $this->getArgument('--repo'); + + $root = realpath($path) ?: $path; + + if (!is_dir($root)) { + $this->log('ERROR', "Path does not exist: {$path}"); + return 1; + } + + // Auto-detect repo name from git remote + if ($repoName === '') { + $repoName = $this->detectRepoName($root); + } + + // ── Detect all fields ─────────────────────────────────────── + $detected = $this->detectAll($root, $repoName); + + // ── Warn about missing fields ──────────────────────────────── + $expected = ['platform', 'name', 'version', 'package_type', 'language', 'entry_point']; + foreach ($expected as $field) { + if (!isset($detected[$field]) || $detected[$field] === '') { + $this->log('WARN', "Could not detect: {$field}"); + } + } + + // ── Output ────────────────────────────────────────────────── + if ($diffMode || $updateMode) { + if ($token === '') { + $this->log('ERROR', 'API token required for --diff/--update (use --token or GITEA_TOKEN env)'); + return 1; + } + if ($repoName === '') { + $this->log('ERROR', 'Could not determine repo name (use --repo)'); + return 1; + } + + $current = $this->fetchManifest($apiBase, $org, $repoName, $token); + if ($current === null) { + $this->log('ERROR', 'Failed to fetch current manifest from API'); + return 1; + } + + $changes = $this->computeDiff($current, $detected); + + if ($diffMode) { + if (empty($changes)) { + $this->log('INFO', 'No differences — manifest matches source'); + } else { + $this->sectionHeader('Manifest Drift'); + foreach ($changes as $field => $info) { + $this->log('WARN', sprintf( + '%-20s API: %-30s Detected: %s', + $field, + $info['current'] === '' ? '(empty)' : $info['current'], + $info['detected'] + )); + } + } + } + + if ($updateMode) { + if (empty($changes)) { + $this->log('INFO', 'Nothing to update'); + } else { + $update = array_map(fn($i) => $i['detected'], $changes); + $ok = $this->pushManifest($apiBase, $org, $repoName, $token, $current, $update); + if ($ok) { + $this->log('OK', 'Updated ' . count($update) . ' field(s): ' . implode(', ', array_keys($update))); + } else { + $this->log('ERROR', 'Failed to push manifest update'); + return 1; + } + } + } + + return 0; + } + + if ($ghOutput) { + $outputFile = getenv('GITHUB_OUTPUT'); + $lines = []; + foreach ($detected as $k => $v) { + $envKey = str_replace('-', '_', $k); + $lines[] = "{$envKey}={$v}"; + } + if ($outputFile !== false && $outputFile !== '') { + file_put_contents($outputFile, implode("\n", $lines) . "\n", FILE_APPEND); + $this->log('INFO', 'Wrote ' . count($detected) . ' fields to GITHUB_OUTPUT'); + } else { + $this->log('WARN', 'GITHUB_OUTPUT not set — printing to stdout instead'); + echo implode("\n", $lines) . "\n"; + } + return 0; + } + + if ($jsonMode) { + echo json_encode($detected, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . "\n"; + } else { + foreach ($detected as $k => $v) { + echo "{$k}={$v}\n"; + } + } + + return 0; + } + + // ===================================================================== + // Detection engine + // ===================================================================== + + private function detectAll(string $root, string $repoName): array + { + $platform = $this->detectPlatform($root); + + $fields = [ + 'platform' => $platform, + 'name' => '', + 'description' => '', + 'version' => '', + 'element_name' => '', + 'package_type' => '', + 'language' => '', + 'entry_point' => '', + 'license_spdx' => '', + ]; + + switch ($platform) { + case 'joomla': + $this->detectJoomla($root, $repoName, $fields); + break; + case 'dolibarr': + $this->detectDolibarr($root, $repoName, $fields); + break; + case 'go': + $this->detectGo($root, $repoName, $fields); + break; + case 'mcp': + $this->detectNode($root, $repoName, $fields); + break; + case 'node': + $this->detectNode($root, $repoName, $fields); + $fields['platform'] = 'node'; + break; + default: + $this->detectGeneric($root, $repoName, $fields); + break; + } + + // Fallbacks + if ($fields['name'] === '') { + $fields['name'] = $repoName ?: basename($root); + } + if ($fields['entry_point'] === '') { + $fields['entry_point'] = $this->detectEntryPoint($root); + } + if ($fields['license_spdx'] === '') { + $fields['license_spdx'] = $this->detectLicense($root); + } + // description: only from platform-specific source, never guessed + + // Strip empty values + return array_filter($fields, fn($v) => $v !== ''); + } + + // ── Platform detection ────────────────────────────────────────── + + private function detectPlatform(string $root): string + { + // Joomla: look for pkg_*.xml or extension XML in source dirs + $joomlaXmls = array_merge( + SourceResolver::globSource($root, 'pkg_*.xml'), + glob("{$root}/pkg_*.xml") ?: [] + ); + if (!empty($joomlaXmls)) { + return 'joomla'; + } + + // Check source dirs for any Joomla extension XML + foreach (SourceResolver::globSource($root, '*.xml') as $xmlFile) { + $content = file_get_contents($xmlFile); + if (strpos($content, 'findJoomlaManifest($root); + if ($extManifest === null) { + return; + } + + $xml = file_get_contents($extManifest); + + // Type + $extType = ''; + if (preg_match('/type="([^"]*)"/', $xml, $m)) { + $extType = $m[1]; + } + $fields['package_type'] = $extType; + + // Element name + $element = ''; + if (preg_match('/([^<]+)<\/element>/', $xml, $m)) { + $element = $m[1]; + } + if ($element === '' && preg_match('/module="([^"]*)"/', $xml, $m)) { + $element = $m[1]; + } + if ($element === '' && preg_match('/plugin="([^"]*)"/', $xml, $m)) { + $element = $m[1]; + } + if ($extType === 'package' && preg_match('/([^<]+)<\/packagename>/', $xml, $m)) { + $element = $m[1]; + } + if ($element === '') { + $element = strtolower(basename($extManifest, '.xml')); + } + + // Ensure element has type prefix (API stores full element_name like pkg_mokosuite) + $prefixMap = [ + 'package' => 'pkg_', 'component' => 'com_', 'module' => 'mod_', + 'template' => 'tpl_', 'library' => 'lib_', 'file' => 'file_', + ]; + if (isset($prefixMap[$extType])) { + $prefix = $prefixMap[$extType]; + if (strpos($element, $prefix) !== 0 && strpos($element, '_') === false) { + $element = $prefix . $element; + } + } elseif ($extType === 'plugin') { + $folder = ''; + if (preg_match('/group="([^"]*)"/', $xml, $gm)) { + $folder = $gm[1]; + } + if ($folder !== '' && strpos($element, 'plg_') !== 0) { + $element = "plg_{$folder}_" . $element; + } + } + $fields['element_name'] = $element; + + // Name + if (preg_match('/([^<]+)<\/name>/', $xml, $m)) { + $fields['name'] = trim($m[1]); + } + + // Version + if (preg_match('/([^<]+)<\/version>/', $xml, $m)) { + $fields['version'] = trim($m[1]); + } + + // Description + if (preg_match('/([^<]+)<\/description>/', $xml, $m)) { + $desc = trim($m[1]); + // Skip language string keys like COM_MOKOSUITE_DESCRIPTION + if (strpos($desc, '_') === false || strlen($desc) > 60) { + $fields['description'] = $desc; + } + } + + // License + if (preg_match('/([^<]+)<\/license>/', $xml, $m)) { + $fields['license_spdx'] = $this->normalizeLicense(trim($m[1])); + } + } + + private function findJoomlaManifest(string $root): ?string + { + // Priority: pkg_*.xml (package manifest) + $pkgXmls = array_merge( + SourceResolver::globSource($root, 'pkg_*.xml'), + glob("{$root}/pkg_*.xml") ?: [] + ); + if (!empty($pkgXmls)) { + return $pkgXmls[0]; + } + + // Any extension XML in source dir + foreach (SourceResolver::globSource($root, '*.xml') as $file) { + $content = file_get_contents($file); + if (strpos($content, 'findDolibarrModule($root); + if ($modFile === null) { + return; + } + + $content = file_get_contents($modFile); + + // Element name from class file + $modBasename = basename($modFile, '.class.php'); + $fields['element_name'] = strtolower(preg_replace('/^mod/', '', $modBasename)); + + // Name + if (preg_match('/\$this->name\s*=\s*[\'"]([^\'"]+)[\'"]/', $content, $m)) { + $fields['name'] = $m[1]; + } + + // Version + if (preg_match('/\$this->version\s*=\s*[\'"]([^\'"]+)[\'"]/', $content, $m)) { + $fields['version'] = $m[1]; + } + + // Description + if (preg_match('/\$this->description\s*=\s*[\'"]([^\'"]+)[\'"]/', $content, $m)) { + $desc = $m[1]; + if (strpos($desc, '$') === false) { + $fields['description'] = $desc; + } + } + + // License + if (preg_match('/SPDX-License-Identifier:\s*(\S+)/', $content, $m)) { + $fields['license_spdx'] = $m[1]; + } + } + + private function findDolibarrModule(string $root): ?string + { + $candidates = array_merge( + SourceResolver::globSource($root, 'core/modules/mod*.class.php'), + glob("{$root}/core/modules/mod*.class.php") ?: [] + ); + foreach ($candidates as $file) { + if (strpos(file_get_contents($file), 'DolibarrModules') !== false) { + return $file; + } + } + return null; + } + + // ── Go ────────────────────────────────────────────────────────── + + private function detectGo(string $root, string $repoName, array &$fields): void + { + $fields['language'] = 'Go'; + $fields['package_type'] = 'application'; + $fields['entry_point'] = './'; + + $goMod = "{$root}/go.mod"; + if (!file_exists($goMod)) { + return; + } + + $content = file_get_contents($goMod); + + // Module path → name + if (preg_match('/^module\s+(\S+)/m', $content, $m)) { + $modulePath = $m[1]; + $parts = explode('/', $modulePath); + $fields['name'] = end($parts); + } + + // Go version + if (preg_match('/^go\s+(\S+)/m', $content, $m)) { + // This is Go language version, not the project version + // Project version comes from git tags or source files + } + + // License + $fields['license_spdx'] = $this->detectLicense($root); + } + + // ── Node / MCP ────────────────────────────────────────────────── + + private function detectNode(string $root, string $repoName, array &$fields): void + { + $pkgFile = "{$root}/package.json"; + if (!file_exists($pkgFile)) { + return; + } + + $pkg = json_decode(file_get_contents($pkgFile), true) ?? []; + + $fields['name'] = $pkg['name'] ?? ''; + // Strip npm scope + if (strpos($fields['name'], '/') !== false) { + $fields['name'] = explode('/', $fields['name'])[1]; + } + + $fields['version'] = $pkg['version'] ?? ''; + $fields['description'] = $pkg['description'] ?? ''; + $fields['license_spdx'] = $pkg['license'] ?? ''; + + // Language detection + if (file_exists("{$root}/tsconfig.json")) { + $fields['language'] = 'TypeScript'; + } else { + $fields['language'] = 'JavaScript'; + } + + // Package type + $deps = array_merge( + array_keys($pkg['dependencies'] ?? []), + array_keys($pkg['devDependencies'] ?? []) + ); + $isMcp = false; + foreach ($deps as $dep) { + if (strpos($dep, '@modelcontextprotocol/') === 0 || $dep === '@anthropic/mcp-sdk') { + $isMcp = true; + break; + } + } + $fields['package_type'] = $isMcp ? 'mcp-server' : 'application'; + + // Entry point + if (file_exists("{$root}/dist")) { + $fields['entry_point'] = 'dist/'; + } elseif (file_exists("{$root}/src")) { + $fields['entry_point'] = 'src/'; + } else { + $fields['entry_point'] = './'; + } + } + + // ── Generic ───────────────────────────────────────────────────── + + private function detectGeneric(string $root, string $repoName, array &$fields): void + { + $fields['package_type'] = 'generic'; + + // Try to detect language from file extensions + $fields['language'] = $this->detectLanguageFromFiles($root); + $fields['license_spdx'] = $this->detectLicense($root); + } + + // ===================================================================== + // Shared detection helpers + // ===================================================================== + + private function detectEntryPoint(string $root): string + { + $abs = SourceResolver::resolveAbsolute($root); + if ($abs !== null) { + return basename($abs) . '/'; + } + if (is_dir("{$root}/dist")) return 'dist/'; + if (is_dir("{$root}/src")) return 'src/'; + return './'; + } + + private function detectLicense(string $root): string + { + // Check LICENSE file + foreach (['LICENSE', 'LICENSE.md', 'LICENSE.txt', 'COPYING'] as $name) { + $file = "{$root}/{$name}"; + if (!file_exists($file)) continue; + $content = file_get_contents($file); + + // SPDX header + if (preg_match('/SPDX-License-Identifier:\s*(\S+)/', $content, $m)) { + return $m[1]; + } + + // Common license patterns + if (strpos($content, 'GNU GENERAL PUBLIC LICENSE') !== false) { + if (strpos($content, 'Version 3') !== false) return 'GPL-3.0-or-later'; + if (strpos($content, 'Version 2') !== false) return 'GPL-2.0-or-later'; + } + if (strpos($content, 'MIT License') !== false) return 'MIT'; + if (strpos($content, 'Apache License') !== false && strpos($content, 'Version 2.0') !== false) return 'Apache-2.0'; + } + + return ''; + } + + + private function detectLanguageFromFiles(string $root): string + { + $counts = ['PHP' => 0, 'Go' => 0, 'TypeScript' => 0, 'JavaScript' => 0, 'Python' => 0, 'Shell' => 0]; + + $extensions = [ + 'php' => 'PHP', 'go' => 'Go', 'ts' => 'TypeScript', + 'js' => 'JavaScript', 'py' => 'Python', 'sh' => 'Shell', + ]; + + // Quick scan: only check top two levels + foreach (glob("{$root}/*") ?: [] as $item) { + $ext = pathinfo($item, PATHINFO_EXTENSION); + if (isset($extensions[$ext])) { + $counts[$extensions[$ext]]++; + } + if (is_dir($item) && basename($item)[0] !== '.') { + foreach (glob("{$item}/*") ?: [] as $subItem) { + $ext = pathinfo($subItem, PATHINFO_EXTENSION); + if (isset($extensions[$ext])) { + $counts[$extensions[$ext]]++; + } + } + } + } + + arsort($counts); + $top = key($counts); + return $counts[$top] > 0 ? $top : ''; + } + + private function normalizeLicense(string $license): string + { + $lower = strtolower($license); + $isGpl = strpos($lower, 'gpl') !== false || strpos($lower, 'general public license') !== false; + if ($isGpl && strpos($lower, '3') !== false) return 'GPL-3.0-or-later'; + if ($isGpl && strpos($lower, '2') !== false) return 'GPL-2.0-or-later'; + if ($lower === 'mit' || strpos($lower, 'mit license') !== false) return 'MIT'; + if (strpos($lower, 'apache') !== false) return 'Apache-2.0'; + return $license; + } + + private function detectRepoName(string $root): string + { + $gitConfig = "{$root}/.git/config"; + if (!file_exists($gitConfig)) { + return basename($root); + } + + $content = file_get_contents($gitConfig); + if (preg_match('/url\s*=\s*.*\/([^\/\s]+?)(?:\.git)?\s*$/m', $content, $m)) { + return $m[1]; + } + + return basename($root); + } + + // ===================================================================== + // API interaction + // ===================================================================== + + private function fetchManifest(string $apiBase, string $org, string $repo, string $token): ?array + { + $url = "{$apiBase}/repos/{$org}/{$repo}/manifest"; + $ctx = stream_context_create([ + 'http' => [ + 'header' => "Authorization: token {$token}\r\nAccept: application/json\r\n", + 'timeout' => 10, + ], + ]); + + $body = @file_get_contents($url, false, $ctx); + if ($body === false) return null; + + return json_decode($body, true); + } + + private function computeDiff(array $current, array $detected): array + { + // Map detected keys to API keys (underscores match) + $changes = []; + + foreach ($detected as $key => $value) { + $apiKey = $key; + $currentVal = $current[$apiKey] ?? ''; + + // Only flag as changed if detected value is non-empty and differs + if ($value !== '' && $value !== $currentVal) { + // Don't overwrite a non-empty API value with a detected value + // unless the API value is actually empty + if ($currentVal === '' || $this->shouldOverride($key, $currentVal, $value)) { + $changes[$key] = [ + 'current' => $currentVal, + 'detected' => $value, + ]; + } + } + } + + return $changes; + } + + private function shouldOverride(string $field, string $current, string $detected): bool + { + // Version: detected from source is authoritative + if ($field === 'version') return true; + + // These fields: source files are authoritative + if (in_array($field, ['element_name', 'package_type', 'language', 'entry_point'], true)) { + return true; + } + + // For other fields, only fill empty — don't overwrite manual edits + return false; + } + + private function pushManifest(string $apiBase, string $org, string $repo, string $token, array $current, array $update): bool + { + $merged = array_merge($current, $update); + $url = "{$apiBase}/repos/{$org}/{$repo}/manifest"; + $payload = json_encode($merged); + + $ctx = stream_context_create([ + 'http' => [ + 'method' => 'PUT', + 'header' => "Authorization: token {$token}\r\nContent-Type: application/json\r\nAccept: application/json\r\n", + 'content' => $payload, + 'timeout' => 10, + ], + ]); + + $body = @file_get_contents($url, false, $ctx); + return $body !== false; + } +} + +$app = new ManifestDetectCli(); +exit($app->execute()); diff --git a/cli/manifest_element.php b/cli/manifest_element.php index 9cf9580..3be1ee1 100644 --- a/cli/manifest_element.php +++ b/cli/manifest_element.php @@ -6,9 +6,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/manifest_element.php * BRIEF: Extract element name, type, type prefix, and ZIP name from manifest */ diff --git a/cli/manifest_licensing.php b/cli/manifest_licensing.php index 5c8096b..158f9d0 100644 --- a/cli/manifest_licensing.php +++ b/cli/manifest_licensing.php @@ -6,9 +6,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/manifest_licensing.php * VERSION: 09.25.02 * BRIEF: Ensure licensing tags (updateservers, dlid) in Joomla extension manifests diff --git a/cli/manifest_read.php b/cli/manifest_read.php index 3572920..17dbb09 100644 --- a/cli/manifest_read.php +++ b/cli/manifest_read.php @@ -6,9 +6,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/manifest_read.php * VERSION: 09.25.02 * BRIEF: Parse .manifest.xml and output requested field(s) for CI consumption @@ -59,7 +59,7 @@ class ManifestReadCli extends CliFramework $candidates = [ "{$root}/.mokogitea/manifest.xml", "{$root}/.mokogitea/.manifest.xml", // legacy (dot-prefixed) - "{$root}/.mokogitea/.moko-platform", // legacy v4 + "{$root}/.mokogitea/.mokoplatform", // legacy v4 ]; foreach ($candidates as $candidate) { diff --git a/cli/package_build.php b/cli/package_build.php index abf89a1..fd989d9 100644 --- a/cli/package_build.php +++ b/cli/package_build.php @@ -6,9 +6,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/package_build.php * BRIEF: Build ZIP and tar.gz install packages for Joomla/Dolibarr/generic projects * diff --git a/cli/platform_detect.php b/cli/platform_detect.php index b07c6cb..efaf83b 100644 --- a/cli/platform_detect.php +++ b/cli/platform_detect.php @@ -6,9 +6,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/platform_detect.php * VERSION: 09.25.02 * BRIEF: Auto-detect repository platform type and optionally update manifest diff --git a/cli/release.php b/cli/release.php index 4ef6b7c..f4dbf14 100644 --- a/cli/release.php +++ b/cli/release.php @@ -6,11 +6,11 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/release.php - * BRIEF: Automate the moko-platform version branch release flow + * BRIEF: Automate the mokoplatform version branch release flow */ declare(strict_types=1); @@ -23,7 +23,7 @@ class ReleaseCli extends CliFramework { protected function configure(): void { - $this->setDescription('Automate the moko-platform version branch release flow'); + $this->setDescription('Automate the mokoplatform version branch release flow'); $this->addArgument('--bump', 'Bump type: patch, minor, or major', ''); } diff --git a/cli/release_body_update.php b/cli/release_body_update.php index 54c9b79..f99c1c3 100644 --- a/cli/release_body_update.php +++ b/cli/release_body_update.php @@ -6,9 +6,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/release_body_update.php * BRIEF: Update Gitea release body with changelog extract and checksums */ diff --git a/cli/release_cascade.php b/cli/release_cascade.php index 432947e..3618f64 100644 --- a/cli/release_cascade.php +++ b/cli/release_cascade.php @@ -6,9 +6,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/release_cascade.php * VERSION: 09.25.02 * BRIEF: DEPRECATED — cascade behavior removed. Each release stream is independent. diff --git a/cli/release_create.php b/cli/release_create.php index c7d6b61..154a2cb 100644 --- a/cli/release_create.php +++ b/cli/release_create.php @@ -6,9 +6,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/release_create.php * BRIEF: Create or overwrite a Gitea release with proper naming */ diff --git a/cli/release_manage.php b/cli/release_manage.php index e665d3e..410d121 100644 --- a/cli/release_manage.php +++ b/cli/release_manage.php @@ -6,9 +6,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/release_manage.php * BRIEF: Create/update Gitea releases, upload assets, update release body */ diff --git a/cli/release_mirror.php b/cli/release_mirror.php index de1481c..88a1edc 100644 --- a/cli/release_mirror.php +++ b/cli/release_mirror.php @@ -6,9 +6,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/release_mirror.php * BRIEF: Mirror a Gitea release (with assets) to a GitHub repository */ @@ -201,7 +201,7 @@ class ReleaseMirrorCli extends CliFramework CURLOPT_HTTPHEADER => [ "Authorization: token {$token}", 'Accept: application/vnd.github+json', - 'User-Agent: moko-platform', + 'User-Agent: mokoplatform', 'Content-Type: application/json', ], CURLOPT_TIMEOUT => 30, @@ -229,7 +229,7 @@ class ReleaseMirrorCli extends CliFramework CURLOPT_HTTPHEADER => [ "Authorization: token {$token}", 'Accept: application/vnd.github+json', - 'User-Agent: moko-platform', + 'User-Agent: mokoplatform', 'Content-Type: application/octet-stream', ], CURLOPT_POSTFIELDS => file_get_contents($filePath), diff --git a/cli/release_notes.php b/cli/release_notes.php index dd31520..d699826 100644 --- a/cli/release_notes.php +++ b/cli/release_notes.php @@ -6,9 +6,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/release_notes.php * BRIEF: Extract release notes from CHANGELOG.md for a given version */ diff --git a/cli/release_package.php b/cli/release_package.php index 2eb7035..d2c89f0 100644 --- a/cli/release_package.php +++ b/cli/release_package.php @@ -6,9 +6,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/release_package.php * BRIEF: Build packages (ZIP + tar.gz) with SHA-256 and upload to Gitea release */ diff --git a/cli/release_promote.php b/cli/release_promote.php index faf779e..098cd06 100644 --- a/cli/release_promote.php +++ b/cli/release_promote.php @@ -6,9 +6,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/release_promote.php * BRIEF: Promote a Gitea release from one channel to another (rename release, tag, assets) */ diff --git a/cli/release_publish.php b/cli/release_publish.php index 7b12819..ae6222b 100644 --- a/cli/release_publish.php +++ b/cli/release_publish.php @@ -6,9 +6,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/release_publish.php * VERSION: 09.25.02 * BRIEF: Publish a release and create copies for all lesser stability streams. diff --git a/cli/release_validate.php b/cli/release_validate.php index 63d5a88..5c711dd 100644 --- a/cli/release_validate.php +++ b/cli/release_validate.php @@ -6,9 +6,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/release_validate.php * BRIEF: Pre-release validation -- version consistency, required files, manifest checks */ diff --git a/cli/release_verify.php b/cli/release_verify.php index 1166ab2..51156d2 100644 --- a/cli/release_verify.php +++ b/cli/release_verify.php @@ -6,9 +6,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/release_verify.php * BRIEF: Verify a built release artifact — version, SHA256, disallowed files */ diff --git a/cli/scaffold_client.php b/cli/scaffold_client.php index 0bd2998..18c25ca 100644 --- a/cli/scaffold_client.php +++ b/cli/scaffold_client.php @@ -8,9 +8,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/scaffold_client.php * VERSION: 09.25.02 * BRIEF: Scaffold a new client-waas repo from Template-Client-WaaS with pre-configured settings diff --git a/cli/sync_rulesets.php b/cli/sync_rulesets.php index 1c6e264..92a3f5b 100644 --- a/cli/sync_rulesets.php +++ b/cli/sync_rulesets.php @@ -8,9 +8,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/sync_rulesets.php * BRIEF: Apply branch protection rules to all repos via platform adapter */ @@ -46,7 +46,7 @@ class SyncRulesetsCli extends CliFramework ); $platformName = $adapter->getPlatformName(); - $ALWAYS_EXCLUDE = ['moko-platform', '.github-private']; + $ALWAYS_EXCLUDE = ['mokoplatform', '.github-private']; // -- Protection rules (platform-agnostic format) -- $PROTECTIONS = [ diff --git a/cli/theme_lint.php b/cli/theme_lint.php index aa910fb..d1b74d1 100644 --- a/cli/theme_lint.php +++ b/cli/theme_lint.php @@ -6,9 +6,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/theme_lint.php * BRIEF: Lint theme files -- CSS syntax, image sizes, hardcoded URLs */ diff --git a/cli/updates_xml_build.php b/cli/updates_xml_build.php index 86f47d7..89175db 100644 --- a/cli/updates_xml_build.php +++ b/cli/updates_xml_build.php @@ -6,9 +6,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/updates_xml_build.php * BRIEF: Generate Joomla updates.xml from extension manifest metadata */ diff --git a/cli/updates_xml_sync.php b/cli/updates_xml_sync.php index 193d9d4..70c72a3 100644 --- a/cli/updates_xml_sync.php +++ b/cli/updates_xml_sync.php @@ -6,9 +6,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/updates_xml_sync.php * VERSION: 09.25.02 * BRIEF: Sync updates.xml to target branches via Gitea API diff --git a/cli/version_auto_bump.php b/cli/version_auto_bump.php index 9333d53..6e5728e 100644 --- a/cli/version_auto_bump.php +++ b/cli/version_auto_bump.php @@ -6,9 +6,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/version_auto_bump.php * VERSION: 09.25.02 * BRIEF: Auto patch-bump, set stability suffix, and commit — single CLI replacing inline workflow bash diff --git a/cli/version_bump.php b/cli/version_bump.php index b8698f7..4007bc9 100644 --- a/cli/version_bump.php +++ b/cli/version_bump.php @@ -6,9 +6,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/version_bump.php * BRIEF: Auto-increment version -- manifest.xml is canonical, cascades to all XML and MD files */ diff --git a/cli/version_bump_remote.php b/cli/version_bump_remote.php index d154467..0e65ecb 100644 --- a/cli/version_bump_remote.php +++ b/cli/version_bump_remote.php @@ -6,9 +6,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/version_bump_remote.php * BRIEF: Bump version in manifest XML and CHANGELOG.md on a remote branch via Gitea API */ diff --git a/cli/version_check.php b/cli/version_check.php index 35db0da..339c905 100644 --- a/cli/version_check.php +++ b/cli/version_check.php @@ -6,9 +6,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/version_check.php * VERSION: 09.25.02 * BRIEF: Validate version consistency across README, manifests, and sub-packages diff --git a/cli/version_read.php b/cli/version_read.php index 22a2fde..7245a58 100644 --- a/cli/version_read.php +++ b/cli/version_read.php @@ -6,9 +6,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/version_read.php * BRIEF: Read version — manifest.xml is canonical, falls back to README.md and Joomla XML */ diff --git a/cli/version_reset_dev.php b/cli/version_reset_dev.php index 8b0d8f3..2cb0cd6 100644 --- a/cli/version_reset_dev.php +++ b/cli/version_reset_dev.php @@ -6,9 +6,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/version_reset_dev.php * BRIEF: Reset platform version to 'development' on a branch via Gitea API */ diff --git a/cli/version_set_platform.php b/cli/version_set_platform.php index 0133b8d..0932061 100644 --- a/cli/version_set_platform.php +++ b/cli/version_set_platform.php @@ -6,9 +6,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/version_set_platform.php * BRIEF: Set version in platform-specific files (Dolibarr $this->version, Joomla ) */ diff --git a/cli/wiki_sync.php b/cli/wiki_sync.php index 4d156e0..b2c2ccc 100644 --- a/cli/wiki_sync.php +++ b/cli/wiki_sync.php @@ -6,12 +6,12 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.CLI - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.CLI + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /cli/wiki_sync.php - * VERSION: 09.25.02 - * BRIEF: Sync select wiki pages from moko-platform to all template repos + * VERSION: 09.25.00 + * BRIEF: Sync select wiki pages from mokoplatform to all template repos */ declare(strict_types=1); @@ -25,7 +25,7 @@ class WikiSyncCli extends CliFramework private string $giteaUrl = 'https://git.mokoconsulting.tech'; private string $token = ''; private string $org = 'MokoConsulting'; - private string $sourceRepo = 'moko-platform'; + private string $sourceRepo = 'mokoplatform'; private array $targetRepos = []; private array $pages = []; private bool $allTemplates = false; @@ -38,10 +38,10 @@ class WikiSyncCli extends CliFramework protected function configure(): void { - $this->setDescription('Sync wiki pages from moko-platform to template repos'); + $this->setDescription('Sync wiki pages from mokoplatform to template repos'); $this->addArgument('--token', 'Gitea API token (required)', ''); $this->addArgument('--org', 'Organization (default: MokoConsulting)', 'MokoConsulting'); - $this->addArgument('--source', 'Source repo (default: moko-platform)', 'moko-platform'); + $this->addArgument('--source', 'Source repo (default: mokoplatform)', 'mokoplatform'); $this->addArgument('--target', 'Target repo (can repeat)', ''); $this->addArgument('--page', 'Page to sync (can repeat)', ''); $this->addArgument('--all-standards', 'Sync all UPPERCASE standards pages', false); diff --git a/composer.json b/composer.json index 1354d5f..389668d 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "mokoconsulting-tech/enterprise", - "description": "moko-platform Enterprise API \u2014 PHP implementation", + "description": "mokoplatform Enterprise API \u2014 PHP implementation", "type": "library", "version": "09.23.00", "license": "GPL-3.0-or-later", diff --git a/deploy/backup-before-deploy.php b/deploy/backup-before-deploy.php index 4c8fb07..ad0b759 100644 --- a/deploy/backup-before-deploy.php +++ b/deploy/backup-before-deploy.php @@ -10,7 +10,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Scripts.Deploy * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /deploy/backup-before-deploy.php * VERSION: 09.25.02 * BRIEF: Snapshot Joomla directories before deployment for rollback capability diff --git a/deploy/deploy-dolibarr.php b/deploy/deploy-dolibarr.php index 9e0f256..ef96f4f 100644 --- a/deploy/deploy-dolibarr.php +++ b/deploy/deploy-dolibarr.php @@ -10,7 +10,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Scripts.Deploy * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /deploy/deploy-dolibarr.php * VERSION: 09.25.02 * BRIEF: Deploy Dolibarr module files to a remote server via SFTP/rsync diff --git a/deploy/deploy-joomla.php b/deploy/deploy-joomla.php index 645de96..e476453 100644 --- a/deploy/deploy-joomla.php +++ b/deploy/deploy-joomla.php @@ -10,7 +10,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Scripts.Deploy * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /deploy/deploy-joomla.php * BRIEF: Smart Joomla deploy — routes files to correct Joomla directories based on XML manifest * diff --git a/deploy/deploy-sftp.php b/deploy/deploy-sftp.php index d39492a..cbd993a 100644 --- a/deploy/deploy-sftp.php +++ b/deploy/deploy-sftp.php @@ -10,7 +10,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Scripts.Deploy * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /deploy/deploy-sftp.php * BRIEF: Deploy a repository src/ directory to a remote web server via SFTP */ diff --git a/deploy/health-check.php b/deploy/health-check.php index 0fd771d..44e4c61 100644 --- a/deploy/health-check.php +++ b/deploy/health-check.php @@ -10,7 +10,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Scripts.Deploy * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /deploy/health-check.php * VERSION: 09.25.02 * BRIEF: Post-deploy health check — verify a Joomla site is responding correctly diff --git a/deploy/rollback-joomla.php b/deploy/rollback-joomla.php index 6250b70..f6b905b 100644 --- a/deploy/rollback-joomla.php +++ b/deploy/rollback-joomla.php @@ -10,7 +10,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Scripts.Deploy * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /deploy/rollback-joomla.php * VERSION: 09.25.02 * BRIEF: Rollback a Joomla deployment by restoring from a pre-deploy snapshot diff --git a/deploy/sync-joomla.php b/deploy/sync-joomla.php index 804acd7..ff16858 100644 --- a/deploy/sync-joomla.php +++ b/deploy/sync-joomla.php @@ -10,7 +10,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Scripts.Deploy * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /deploy/sync-joomla.php * VERSION: 09.25.02 * BRIEF: Sync Joomla site directories between two servers via rsync over SSH diff --git a/fix/fix_line_endings.php b/fix/fix_line_endings.php index 6f5d4d6..71c04c4 100644 --- a/fix/fix_line_endings.php +++ b/fix/fix_line_endings.php @@ -9,7 +9,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Scripts.Fix * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /fix/fix_line_endings.php * BRIEF: CLI script to normalise CRLF/CR to LF in tracked source files */ diff --git a/fix/fix_permissions.php b/fix/fix_permissions.php index 615c915..fe6a889 100644 --- a/fix/fix_permissions.php +++ b/fix/fix_permissions.php @@ -9,7 +9,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Scripts.Fix * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /fix/fix_permissions.php * BRIEF: CLI script to normalise file permissions (dirs 755, files 644, scripts 755) */ diff --git a/fix/fix_tabs.php b/fix/fix_tabs.php index 13f5709..b7d8918 100644 --- a/fix/fix_tabs.php +++ b/fix/fix_tabs.php @@ -9,7 +9,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Scripts.Fix * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /fix/fix_tabs.php * BRIEF: CLI script to convert tabs to spaces in tracked source files */ diff --git a/fix/fix_trailing_spaces.php b/fix/fix_trailing_spaces.php index 699163b..025e9a7 100644 --- a/fix/fix_trailing_spaces.php +++ b/fix/fix_trailing_spaces.php @@ -9,7 +9,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Scripts.Fix * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /fix/fix_trailing_spaces.php * BRIEF: CLI script to remove trailing whitespace from tracked source files */ diff --git a/fix/index.md b/fix/index.md index d632e0b..ae5caa6 100644 --- a/fix/index.md +++ b/fix/index.md @@ -4,7 +4,7 @@ SPDX-License-Identifier: GPL-3.0-or-later FILE INFORMATION DEFGROUP: MokoPlatform.Index INGROUP: MokoPlatform.Fix -REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PATH: /fix/index.md BRIEF: Fix directory index --> diff --git a/index.md b/index.md index a70f6be..978c16e 100644 --- a/index.md +++ b/index.md @@ -4,14 +4,14 @@ SPDX-License-Identifier: GPL-3.0-or-later FILE INFORMATION DEFGROUP: MokoPlatform.Root INGROUP: MokoPlatform -REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PATH: /index.md BRIEF: Scripts directory index --> # Scripts Index -Quick navigation for moko-platform scripts organized by function. +Quick navigation for mokoplatform scripts organized by function. ## Core Categories @@ -60,7 +60,7 @@ Shared library code - Extension utilities - GitHub client -### [Wiki](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki) +### [Wiki](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki) All documentation lives in the Gitea wiki. ### [Tests](tests/) @@ -93,4 +93,4 @@ All three languages may coexist in the same directory for the same functionality ## See Also - [README.md](README.md) - Comprehensive scripts documentation -- [Wiki](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki) - Documentation (wiki-first) +- [Wiki](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki) - Documentation (wiki-first) diff --git a/lib/CliBase.php b/lib/CliBase.php index 2151b44..210d79c 100644 --- a/lib/CliBase.php +++ b/lib/CliBase.php @@ -9,7 +9,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Lib * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/CliBase.php * BRIEF: Standalone base CLI class for scripts that do not use CliFramework */ diff --git a/lib/Common.php b/lib/Common.php index 6621891..4dd6222 100644 --- a/lib/Common.php +++ b/lib/Common.php @@ -9,7 +9,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Lib * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Common.php * BRIEF: Common utility functions for scripts * NOTE: Version format used throughout is zero-padded semver: XX.YY.ZZ (e.g. 04.00.04). @@ -33,7 +33,7 @@ class Common const FALLBACK_VERSION = '04.00.00'; const REPO_URL = 'https://git.mokoconsulting.tech/MokoConsulting/MokoStandards-API'; - const REPO_URL_GITHUB = 'https://git.mokoconsulting.tech/MokoConsulting/moko-platform'; + const REPO_URL_GITHUB = 'https://git.mokoconsulting.tech/MokoConsulting/mokoplatform'; const COPYRIGHT = 'Copyright (C) 2026 Moko Consulting '; const LICENSE = 'GPL-3.0-or-later'; diff --git a/lib/Enterprise/AbstractProjectPlugin.php b/lib/Enterprise/AbstractProjectPlugin.php index 9a3794a..dd099a7 100644 --- a/lib/Enterprise/AbstractProjectPlugin.php +++ b/lib/Enterprise/AbstractProjectPlugin.php @@ -11,7 +11,7 @@ declare(strict_types=1); * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise.Plugins * INGROUP: MokoPlatform.Enterprise - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/AbstractProjectPlugin.php * BRIEF: Abstract base class for project plugins */ diff --git a/lib/Enterprise/ApiClient.php b/lib/Enterprise/ApiClient.php index a6d8e7d..d70e3c2 100644 --- a/lib/Enterprise/ApiClient.php +++ b/lib/Enterprise/ApiClient.php @@ -11,7 +11,7 @@ declare(strict_types=1); * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise.API * INGROUP: MokoPlatform.Enterprise - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/ApiClient.php * BRIEF: HTTP API client library */ @@ -33,7 +33,7 @@ declare(strict_types=1); * * @package MokoPlatform\Enterprise * @version 04.00.04 - * @author moko-platform Team + * @author mokoplatform Team * @license GPL-3.0-or-later */ diff --git a/lib/Enterprise/AuditLogger.php b/lib/Enterprise/AuditLogger.php index 1b90dc6..e221989 100644 --- a/lib/Enterprise/AuditLogger.php +++ b/lib/Enterprise/AuditLogger.php @@ -24,13 +24,13 @@ declare(strict_types=1); * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise.Audit * INGROUP: MokoPlatform.Enterprise - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/AuditLogger.php * BRIEF: Enterprise audit logging * * @package MokoPlatform\Enterprise * @version 04.00.04 - * @author moko-platform Team + * @author mokoplatform Team * @license GPL-3.0-or-later */ diff --git a/lib/Enterprise/CheckpointManager.php b/lib/Enterprise/CheckpointManager.php index 7d447f8..c278c27 100644 --- a/lib/Enterprise/CheckpointManager.php +++ b/lib/Enterprise/CheckpointManager.php @@ -12,13 +12,13 @@ declare(strict_types=1); * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise.Checkpoint * INGROUP: MokoPlatform.Enterprise - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/CheckpointManager.php * BRIEF: Checkpoint manager for resumable operations * * @package MokoPlatform\Enterprise * @version 04.00.04 - * @author moko-platform Team + * @author mokoplatform Team * @license GPL-3.0-or-later */ diff --git a/lib/Enterprise/CliFramework.php b/lib/Enterprise/CliFramework.php index ab4534e..1b6cf61 100644 --- a/lib/Enterprise/CliFramework.php +++ b/lib/Enterprise/CliFramework.php @@ -9,9 +9,9 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise.CLI * INGROUP: MokoPlatform.Enterprise - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/CliFramework.php - * BRIEF: CliFramework — unified base class for all moko-platform CLI scripts + * BRIEF: CliFramework — unified base class for all mokoplatform CLI scripts */ declare(strict_types=1); @@ -23,11 +23,11 @@ use DateTimeZone; use Exception; // ============================================================================= -// CliFramework — current base class for all moko-platform CLI scripts +// CliFramework — current base class for all mokoplatform CLI scripts // ============================================================================= /** - * Base class for moko-platform CLI scripts. + * Base class for mokoplatform CLI scripts. * * Provides argument parsing, a structured lifecycle, and a full console * graphics system (banners, coloured log levels, progress bars, status diff --git a/lib/Enterprise/Config.php b/lib/Enterprise/Config.php index 6fa909e..5c6c0b1 100644 --- a/lib/Enterprise/Config.php +++ b/lib/Enterprise/Config.php @@ -11,7 +11,7 @@ declare(strict_types=1); * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise.Config * INGROUP: MokoPlatform.Enterprise - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/Config.php * BRIEF: Configuration manager */ @@ -34,7 +34,7 @@ declare(strict_types=1); * * @package MokoPlatform\Enterprise * @version 04.00.04 - * @author moko-platform Team + * @author mokoplatform Team * @license GPL-3.0-or-later */ diff --git a/lib/Enterprise/ConfigValidator.php b/lib/Enterprise/ConfigValidator.php index 941f105..1f71c8c 100644 --- a/lib/Enterprise/ConfigValidator.php +++ b/lib/Enterprise/ConfigValidator.php @@ -9,7 +9,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise * INGROUP: MokoPlatform.Enterprise - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/ConfigValidator.php * BRIEF: Validate project config against plugin JSON schema */ @@ -21,7 +21,7 @@ namespace MokoEnterprise; /** * Configuration Validator * - * Validates moko-platform configuration files (YAML, JSON, HCL) + * Validates mokoplatform configuration files (YAML, JSON, HCL) * against expected schemas and reports errors. * * @since 04.00.00 diff --git a/lib/Enterprise/EnterpriseReadinessValidator.php b/lib/Enterprise/EnterpriseReadinessValidator.php index 398ebf8..a28c134 100644 --- a/lib/Enterprise/EnterpriseReadinessValidator.php +++ b/lib/Enterprise/EnterpriseReadinessValidator.php @@ -10,7 +10,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/EnterpriseReadinessValidator.php * BRIEF: Enterprise readiness validation library */ diff --git a/lib/Enterprise/ErrorRecovery.php b/lib/Enterprise/ErrorRecovery.php index 03817b8..508f920 100644 --- a/lib/Enterprise/ErrorRecovery.php +++ b/lib/Enterprise/ErrorRecovery.php @@ -19,13 +19,13 @@ declare(strict_types=1); * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise.Recovery * INGROUP: MokoPlatform.Enterprise - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/ErrorRecovery.php * BRIEF: Error recovery framework * * @package MokoPlatform\Enterprise * @version 04.00.04 - * @author moko-platform Team + * @author mokoplatform Team * @license GPL-3.0-or-later * @deprecated Individual class files should be used instead */ diff --git a/lib/Enterprise/FileFixUtility.php b/lib/Enterprise/FileFixUtility.php index e58b08e..6874abf 100644 --- a/lib/Enterprise/FileFixUtility.php +++ b/lib/Enterprise/FileFixUtility.php @@ -9,7 +9,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise * INGROUP: MokoPlatform.Lib - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/FileFixUtility.php * BRIEF: Utility class for fixing file formatting issues (line endings, permissions, tabs, trailing spaces) */ diff --git a/lib/Enterprise/GitHubAdapter.php b/lib/Enterprise/GitHubAdapter.php index 0dad9b3..2aa2dc4 100644 --- a/lib/Enterprise/GitHubAdapter.php +++ b/lib/Enterprise/GitHubAdapter.php @@ -9,7 +9,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise.Platform * INGROUP: MokoPlatform.Enterprise - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/GitHubAdapter.php * BRIEF: GitHub implementation of GitPlatformAdapter */ diff --git a/lib/Enterprise/GitPlatformAdapter.php b/lib/Enterprise/GitPlatformAdapter.php index c359f33..6360377 100644 --- a/lib/Enterprise/GitPlatformAdapter.php +++ b/lib/Enterprise/GitPlatformAdapter.php @@ -9,7 +9,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise.Platform * INGROUP: MokoPlatform.Enterprise - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/GitPlatformAdapter.php * BRIEF: Interface defining all git platform operations for GitHub/Gitea abstraction */ @@ -21,7 +21,7 @@ namespace MokoEnterprise; /** * Git Platform Adapter Interface * - * Defines all platform operations required by moko-platform automation. + * Defines all platform operations required by mokoplatform automation. * Implementations exist for GitHub (GitHubAdapter) and Gitea (MokoGiteaAdapter), * allowing scripts to work against either platform transparently. * diff --git a/lib/Enterprise/InputValidator.php b/lib/Enterprise/InputValidator.php index 8980b8e..118f0ec 100644 --- a/lib/Enterprise/InputValidator.php +++ b/lib/Enterprise/InputValidator.php @@ -11,7 +11,7 @@ declare(strict_types=1); * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise.Validation * INGROUP: MokoPlatform.Enterprise - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/InputValidator.php * BRIEF: Input validation library */ @@ -33,7 +33,7 @@ declare(strict_types=1); * * @package MokoPlatform\Enterprise * @version 04.00.04 - * @author moko-platform Team + * @author mokoplatform Team * @license GPL-3.0-or-later */ @@ -161,11 +161,11 @@ class InputValidator break; case 'moko': - // moko-platform format: XX.YY.ZZ + // mokoplatform format: XX.YY.ZZ $pattern = '/^\d{2}\.\d{2}\.\d{2}$/'; if (!preg_match($pattern, $version)) { throw new ValidationError( - "Invalid moko-platform version format: {$version}. Expected: XX.YY.ZZ" + "Invalid mokoplatform version format: {$version}. Expected: XX.YY.ZZ" ); } break; diff --git a/lib/Enterprise/ManifestReader.php b/lib/Enterprise/ManifestReader.php index f33d24e..ea73c9a 100644 --- a/lib/Enterprise/ManifestReader.php +++ b/lib/Enterprise/ManifestReader.php @@ -7,9 +7,9 @@ * SPDX-License-Identifier: GPL-3.0-or-later * * FILE INFORMATION - * DEFGROUP: moko-platform.Enterprise - * INGROUP: moko-platform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * DEFGROUP: mokoplatform.Enterprise + * INGROUP: mokoplatform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/ManifestReader.php * BRIEF: Read and parse .mokogitea/manifest.xml — shared across all CLI tools */ @@ -58,7 +58,7 @@ class ManifestReader $candidates = [ "{$root}/.mokogitea/manifest.xml", "{$root}/.mokogitea/.manifest.xml", - "{$root}/.mokogitea/.moko-platform", + "{$root}/.mokogitea/.mokoplatform", ]; $manifestFile = null; diff --git a/lib/Enterprise/MetricsCollector.php b/lib/Enterprise/MetricsCollector.php index 8c9de43..8a25b2d 100644 --- a/lib/Enterprise/MetricsCollector.php +++ b/lib/Enterprise/MetricsCollector.php @@ -11,13 +11,13 @@ declare(strict_types=1); * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise.Metrics * INGROUP: MokoPlatform.Enterprise - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/MetricsCollector.php * BRIEF: Metrics collection framework */ /** - * Metrics Collector for moko-platform + * Metrics Collector for mokoplatform * * Provides observability and monitoring capabilities: * - Execution time tracking with timers @@ -48,7 +48,7 @@ declare(strict_types=1); * * @package MokoPlatform\Enterprise * @version 04.00.04 - * @author moko-platform Team + * @author mokoplatform Team * @license GPL-3.0-or-later */ diff --git a/lib/Enterprise/MokoGiteaAdapter.php b/lib/Enterprise/MokoGiteaAdapter.php index f379b41..bb13070 100644 --- a/lib/Enterprise/MokoGiteaAdapter.php +++ b/lib/Enterprise/MokoGiteaAdapter.php @@ -9,7 +9,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise.Platform * INGROUP: MokoPlatform.Enterprise - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/MokoGiteaAdapter.php * BRIEF: Gitea implementation of GitPlatformAdapter */ diff --git a/lib/Enterprise/MokoStandardsParser.php b/lib/Enterprise/MokoStandardsParser.php index ad9427e..ae8443b 100644 --- a/lib/Enterprise/MokoStandardsParser.php +++ b/lib/Enterprise/MokoStandardsParser.php @@ -10,7 +10,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/MokoStandardsParser.php * BRIEF: Parser for the XML-based manifest.xml repository manifest */ @@ -34,8 +34,8 @@ use SimpleXMLElement; class MokoStandardsParser { public const SCHEMA_VERSION = '1.0'; - public const NAMESPACE_URI = 'https://standards.mokoconsulting.tech/moko-platform/1.0'; - public const STANDARDS_SOURCE = 'https://git.mokoconsulting.tech/MokoConsulting/moko-platform'; + public const NAMESPACE_URI = 'https://standards.mokoconsulting.tech/mokoplatform/1.0'; + public const STANDARDS_SOURCE = 'https://git.mokoconsulting.tech/MokoConsulting/mokoplatform'; /** Valid platform slugs — must match Template-* repo names. */ public const VALID_PLATFORMS = [ @@ -180,7 +180,7 @@ class MokoStandardsParser * @type string $name Repository name (required) * @type string $org Organization (required) * @type string $platform Platform slug (required) - * @type string $standards_version moko-platform version + * @type string $standards_version mokoplatform version * @type string $description Repo description * @type string $license SPDX license identifier * @type list $topics Repo topics @@ -205,7 +205,7 @@ class MokoStandardsParser // Add comment header $dom->appendChild($dom->createComment( "\n MokoStandards Repository Manifest\n" - . " Auto-generated by moko-platform bulk sync.\n" + . " Auto-generated by mokoplatform bulk sync.\n" . " Manual edits to and may be overwritten.\n" . " See: docs/standards/mokostandards-file-spec.md\n" )); diff --git a/lib/Enterprise/PackageBuilder.php b/lib/Enterprise/PackageBuilder.php index e224389..9ba4254 100644 --- a/lib/Enterprise/PackageBuilder.php +++ b/lib/Enterprise/PackageBuilder.php @@ -9,7 +9,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise * INGROUP: MokoPlatform.Lib - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/PackageBuilder.php * BRIEF: Builds release packages for generic, Dolibarr module, and Joomla component projects */ diff --git a/lib/Enterprise/PlatformAdapterFactory.php b/lib/Enterprise/PlatformAdapterFactory.php index 9bf4d4e..c6482ce 100644 --- a/lib/Enterprise/PlatformAdapterFactory.php +++ b/lib/Enterprise/PlatformAdapterFactory.php @@ -9,7 +9,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise.Platform * INGROUP: MokoPlatform.Enterprise - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/PlatformAdapterFactory.php * BRIEF: Factory for creating platform-specific GitPlatformAdapter instances */ diff --git a/lib/Enterprise/PluginFactory.php b/lib/Enterprise/PluginFactory.php index a41eb01..f8a8793 100644 --- a/lib/Enterprise/PluginFactory.php +++ b/lib/Enterprise/PluginFactory.php @@ -11,7 +11,7 @@ declare(strict_types=1); * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise.Plugins * INGROUP: MokoPlatform.Enterprise - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/PluginFactory.php * BRIEF: Plugin factory for project type detection */ diff --git a/lib/Enterprise/PluginRegistry.php b/lib/Enterprise/PluginRegistry.php index 72812c9..098318c 100644 --- a/lib/Enterprise/PluginRegistry.php +++ b/lib/Enterprise/PluginRegistry.php @@ -11,7 +11,7 @@ declare(strict_types=1); * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise.Plugins * INGROUP: MokoPlatform.Enterprise - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/PluginRegistry.php * BRIEF: Plugin registry for available project plugins */ diff --git a/lib/Enterprise/Plugins/ApiPlugin.php b/lib/Enterprise/Plugins/ApiPlugin.php index 5b26bdf..16cf50e 100644 --- a/lib/Enterprise/Plugins/ApiPlugin.php +++ b/lib/Enterprise/Plugins/ApiPlugin.php @@ -10,7 +10,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise.Plugins * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/Plugins/ApiPlugin.php * BRIEF: Enterprise plugin for API/Microservices projects */ diff --git a/lib/Enterprise/Plugins/DocumentationPlugin.php b/lib/Enterprise/Plugins/DocumentationPlugin.php index f559fbf..f01d096 100644 --- a/lib/Enterprise/Plugins/DocumentationPlugin.php +++ b/lib/Enterprise/Plugins/DocumentationPlugin.php @@ -10,7 +10,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise.Plugins * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/Plugins/DocumentationPlugin.php * BRIEF: Enterprise plugin for documentation projects */ diff --git a/lib/Enterprise/Plugins/DolibarrPlugin.php b/lib/Enterprise/Plugins/DolibarrPlugin.php index b54dedd..107bcf6 100644 --- a/lib/Enterprise/Plugins/DolibarrPlugin.php +++ b/lib/Enterprise/Plugins/DolibarrPlugin.php @@ -10,7 +10,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise.Plugins * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/Plugins/DolibarrPlugin.php * BRIEF: Enterprise plugin for Dolibarr modules */ diff --git a/lib/Enterprise/Plugins/GenericPlugin.php b/lib/Enterprise/Plugins/GenericPlugin.php index 5774606..447de8e 100644 --- a/lib/Enterprise/Plugins/GenericPlugin.php +++ b/lib/Enterprise/Plugins/GenericPlugin.php @@ -10,7 +10,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise.Plugins * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/Plugins/GenericPlugin.php * BRIEF: Enterprise plugin for generic projects */ diff --git a/lib/Enterprise/Plugins/JoomlaPlugin.php b/lib/Enterprise/Plugins/JoomlaPlugin.php index ae5a6c2..8d1a4e4 100644 --- a/lib/Enterprise/Plugins/JoomlaPlugin.php +++ b/lib/Enterprise/Plugins/JoomlaPlugin.php @@ -10,7 +10,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise.Plugins * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/Plugins/JoomlaPlugin.php * BRIEF: Enterprise plugin for Joomla projects */ diff --git a/lib/Enterprise/Plugins/McpServerPlugin.php b/lib/Enterprise/Plugins/McpServerPlugin.php index 51c4a23..66520d2 100644 --- a/lib/Enterprise/Plugins/McpServerPlugin.php +++ b/lib/Enterprise/Plugins/McpServerPlugin.php @@ -10,7 +10,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise.Plugins * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/Plugins/McpServerPlugin.php * BRIEF: Enterprise plugin for MCP (Model Context Protocol) server projects */ diff --git a/lib/Enterprise/Plugins/MobilePlugin.php b/lib/Enterprise/Plugins/MobilePlugin.php index e3c0e6d..5f24795 100644 --- a/lib/Enterprise/Plugins/MobilePlugin.php +++ b/lib/Enterprise/Plugins/MobilePlugin.php @@ -10,7 +10,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise.Plugins * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/Plugins/MobilePlugin.php * BRIEF: Enterprise plugin for mobile app projects */ diff --git a/lib/Enterprise/Plugins/NodeJsPlugin.php b/lib/Enterprise/Plugins/NodeJsPlugin.php index b226d01..8a5ace3 100644 --- a/lib/Enterprise/Plugins/NodeJsPlugin.php +++ b/lib/Enterprise/Plugins/NodeJsPlugin.php @@ -10,7 +10,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise.Plugins * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/Plugins/NodeJsPlugin.php * BRIEF: Enterprise plugin for Node.js/TypeScript projects */ diff --git a/lib/Enterprise/Plugins/PythonPlugin.php b/lib/Enterprise/Plugins/PythonPlugin.php index 9cc3995..cc8a095 100644 --- a/lib/Enterprise/Plugins/PythonPlugin.php +++ b/lib/Enterprise/Plugins/PythonPlugin.php @@ -10,7 +10,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise.Plugins * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/Plugins/PythonPlugin.php * BRIEF: Enterprise plugin for Python projects */ diff --git a/lib/Enterprise/Plugins/TerraformPlugin.php b/lib/Enterprise/Plugins/TerraformPlugin.php index 8a64280..6f6b209 100644 --- a/lib/Enterprise/Plugins/TerraformPlugin.php +++ b/lib/Enterprise/Plugins/TerraformPlugin.php @@ -10,7 +10,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise.Plugins * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/Plugins/TerraformPlugin.php * BRIEF: Enterprise plugin for Terraform projects */ diff --git a/lib/Enterprise/Plugins/WordPressPlugin.php b/lib/Enterprise/Plugins/WordPressPlugin.php index 2aa8763..1b4ea03 100644 --- a/lib/Enterprise/Plugins/WordPressPlugin.php +++ b/lib/Enterprise/Plugins/WordPressPlugin.php @@ -10,7 +10,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise.Plugins * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/Plugins/WordPressPlugin.php * BRIEF: Enterprise plugin for WordPress projects */ diff --git a/lib/Enterprise/ProjectConfigValidator.php b/lib/Enterprise/ProjectConfigValidator.php index 6851e7b..7de30e8 100644 --- a/lib/Enterprise/ProjectConfigValidator.php +++ b/lib/Enterprise/ProjectConfigValidator.php @@ -10,7 +10,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise.ProjectTypes * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/ProjectConfigValidator.php * BRIEF: Enterprise library for validating project configurations */ diff --git a/lib/Enterprise/ProjectMetricsCollector.php b/lib/Enterprise/ProjectMetricsCollector.php index becf791..a170f91 100644 --- a/lib/Enterprise/ProjectMetricsCollector.php +++ b/lib/Enterprise/ProjectMetricsCollector.php @@ -10,7 +10,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise.ProjectTypes * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/ProjectMetricsCollector.php * BRIEF: Enterprise library for collecting project-specific metrics */ diff --git a/lib/Enterprise/ProjectPluginInterface.php b/lib/Enterprise/ProjectPluginInterface.php index 0a7f895..b9659cc 100644 --- a/lib/Enterprise/ProjectPluginInterface.php +++ b/lib/Enterprise/ProjectPluginInterface.php @@ -11,7 +11,7 @@ declare(strict_types=1); * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise.Plugins * INGROUP: MokoPlatform.Enterprise - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/ProjectPluginInterface.php * BRIEF: Interface for project type plugins */ diff --git a/lib/Enterprise/ProjectTypeDetector.php b/lib/Enterprise/ProjectTypeDetector.php index 63c8090..82b3641 100644 --- a/lib/Enterprise/ProjectTypeDetector.php +++ b/lib/Enterprise/ProjectTypeDetector.php @@ -10,7 +10,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise.ProjectTypes * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/ProjectTypeDetector.php * BRIEF: Enterprise library for detecting project types */ diff --git a/lib/Enterprise/RecoveryError.php b/lib/Enterprise/RecoveryError.php index 6effaae..484d2a9 100644 --- a/lib/Enterprise/RecoveryError.php +++ b/lib/Enterprise/RecoveryError.php @@ -12,13 +12,13 @@ declare(strict_types=1); * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise.Recovery * INGROUP: MokoPlatform.Enterprise - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/RecoveryError.php * BRIEF: Recovery error exception class * * @package MokoPlatform\Enterprise * @version 04.00.04 - * @author moko-platform Team + * @author mokoplatform Team * @license GPL-3.0-or-later */ diff --git a/lib/Enterprise/RecoveryManager.php b/lib/Enterprise/RecoveryManager.php index 5f8f03e..03d253d 100644 --- a/lib/Enterprise/RecoveryManager.php +++ b/lib/Enterprise/RecoveryManager.php @@ -12,13 +12,13 @@ declare(strict_types=1); * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise.Recovery * INGROUP: MokoPlatform.Enterprise - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/RecoveryManager.php * BRIEF: Recovery manager for failed operations * * @package MokoPlatform\Enterprise * @version 04.00.04 - * @author moko-platform Team + * @author mokoplatform Team * @license GPL-3.0-or-later */ diff --git a/lib/Enterprise/RepositoryHealthChecker.php b/lib/Enterprise/RepositoryHealthChecker.php index a181cbb..809b046 100644 --- a/lib/Enterprise/RepositoryHealthChecker.php +++ b/lib/Enterprise/RepositoryHealthChecker.php @@ -10,7 +10,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/RepositoryHealthChecker.php * BRIEF: Repository health checking enterprise library */ diff --git a/lib/Enterprise/RepositorySynchronizer.php b/lib/Enterprise/RepositorySynchronizer.php index ff3dc38..b892cf4 100644 --- a/lib/Enterprise/RepositorySynchronizer.php +++ b/lib/Enterprise/RepositorySynchronizer.php @@ -10,7 +10,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/RepositorySynchronizer.php * BRIEF: Repository synchronization enterprise library */ @@ -165,8 +165,8 @@ class RepositorySynchronizer // Resolve repo root (three levels up from this file: Enterprise/ → lib/ → root) // API repo root (definitions, sync code) $repoRoot = dirname(dirname(__DIR__)); - // moko-platform repo root (templates, configs) - $standardsRoot = getenv('MOKOSTANDARDS_ROOT') ?: dirname($repoRoot) . '/moko-platform'; + // mokoplatform repo root (templates, configs) + $standardsRoot = getenv('MOKOSTANDARDS_ROOT') ?: dirname($repoRoot) . '/mokoplatform'; // Detect platform from repo metadata $repoInfo = $this->adapter->getRepo($org, $repo); @@ -364,7 +364,7 @@ class RepositorySynchronizer * @param string $repo * @param string $platform Detected platform slug (e.g. 'dolibarr') * @param array $filesToSync - * @param string $repoRoot Absolute path to the moko-platform repository root + * @param string $repoRoot Absolute path to the mokoplatform repository root * @param bool $force When true, overwrite files even when always_overwrite = false * @return array{number: ?int, summary: array} */ @@ -421,7 +421,7 @@ class RepositorySynchronizer // Create tracking issue (no PR — files pushed directly to default branch) $issueBody = $this->generatePRBody($summary); - $issueTitle = 'chore: moko-platform v' . self::STANDARDS_MINOR . ' sync — ' . count($summary['copied']) . ' files updated'; + $issueTitle = 'chore: mokoplatform v' . self::STANDARDS_MINOR . ' sync — ' . count($summary['copied']) . ' files updated'; $issueNumber = null; try { @@ -478,7 +478,7 @@ class RepositorySynchronizer * never added. * * @param string $existing Current file content from the remote repo - * @param string $template Template file content from moko-platform + * @param string $template Template file content from mokoplatform * @return string Merged content */ /** @@ -501,7 +501,7 @@ class RepositorySynchronizer * @param string $repo Repository name * @param string $platform Detected platform type * @param array $filesToSync Files to synchronize - * @param string $repoRoot Path to moko-platform root + * @param string $repoRoot Path to mokoplatform root * @param bool $force Force overwrite * @param string $branchName Target branch * @param string|null $moduleId Dolibarr module ID (pre-fetched) @@ -583,7 +583,7 @@ class RepositorySynchronizer $repo, $targetPath, $content, - "chore: update {$targetPath} from moko-platform", + "chore: update {$targetPath} from mokoplatform", $existingFile['sha'] ?? null, $branchName ); @@ -597,7 +597,7 @@ class RepositorySynchronizer $repo, $targetPath, $content, - "chore: add {$targetPath} from moko-platform", + "chore: add {$targetPath} from mokoplatform", null, $branchName ); @@ -613,7 +613,7 @@ class RepositorySynchronizer $repo, $targetPath, $content, - "chore: update {$targetPath} from moko-platform", + "chore: update {$targetPath} from mokoplatform", $existing['sha'] ?? null, $branchName ); @@ -782,7 +782,7 @@ class RepositorySynchronizer 'license' => 'GPL-3.0-or-later', 'topics' => $repoInfo['topics'] ?? [], 'language' => $repoInfo['language'] ?? MokoStandardsParser::platformLanguage($platform), - 'package_type' => moko-platformParser::platformPackageType($platform), + 'package_type' => mokoplatformParser::platformPackageType($platform), 'last_synced' => date('c'), ]; @@ -1110,7 +1110,7 @@ class RepositorySynchronizer // so repos have a safe place for custom workflows that sync won't touch. $entries[] = [ 'inline_content' => "# Custom Workflows\n\nPlace repo-specific workflows here.\n\n" - . "- **Never overwritten** by moko-platform bulk sync\n" + . "- **Never overwritten** by mokoplatform bulk sync\n" . "- **Never deleted** by the repository-cleanup workflow\n" . "- Safe for custom CI, notifications, or repo-specific automation\n\n" . "Synced workflows live in the parent `{$wfDir}/` directory.\n", @@ -1261,7 +1261,7 @@ class RepositorySynchronizer // Append missing lines with a clear separator $merged = rtrim($existing) . "\n\n" - . "# ── moko-platform sync (auto-appended) ────────────────────────────────\n" + . "# ── mokoplatform sync (auto-appended) ────────────────────────────────\n" . implode("\n", $missing) . "\n"; return $merged; @@ -1313,7 +1313,7 @@ class RepositorySynchronizer '{{standards_version}}' => self::STANDARDS_VERSION, '{{standards_minor}}' => self::STANDARDS_MINOR, '{{standards_branch}}' => self::VERSION_BRANCH, - // Single-brace tokens — used by GitHub repository templates and older moko-platform stubs + // Single-brace tokens — used by GitHub repository templates and older mokoplatform stubs '{REPO_NAME}' => $repoInfo['name'] ?? $repo, '{REPO_URL}' => "https://github.com/{$org}/{$repo}", '{REPO_DESCRIPTION}' => $repoInfo['description'] ?? '', @@ -1383,8 +1383,8 @@ class RepositorySynchronizer */ private function generatePRBody(array $summary): string { - $body = "## moko-platform Synchronization\n\n"; - $body .= "This PR synchronizes workflows, configurations, and scripts from the moko-platform repository.\n\n"; + $body = "## mokoplatform Synchronization\n\n"; + $body .= "This PR synchronizes workflows, configurations, and scripts from the mokoplatform repository.\n\n"; // Summary statistics $body .= "### Summary\n"; @@ -1419,7 +1419,7 @@ class RepositorySynchronizer $body .= "- Verify issue templates render correctly\n\n"; $body .= "---\n"; - $body .= "*This PR was automatically generated by the moko-platform bulk sync process.*\n"; + $body .= "*This PR was automatically generated by the mokoplatform bulk sync process.*\n"; return $body; } @@ -1524,7 +1524,7 @@ class RepositorySynchronizer default => 'EDEDED', }, match ($label) { - 'mokostandards' => 'moko-platform compliance', + 'mokostandards' => 'mokoplatform compliance', 'type: chore' => 'Maintenance tasks', 'automation' => 'Automated processes or scripts', default => '', diff --git a/lib/Enterprise/RetryHelper.php b/lib/Enterprise/RetryHelper.php index 84810b2..0a7d303 100644 --- a/lib/Enterprise/RetryHelper.php +++ b/lib/Enterprise/RetryHelper.php @@ -12,13 +12,13 @@ declare(strict_types=1); * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise.Recovery * INGROUP: MokoPlatform.Enterprise - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/RetryHelper.php * BRIEF: Retry helper with exponential backoff * * @package MokoPlatform\Enterprise * @version 04.00.04 - * @author moko-platform Team + * @author mokoplatform Team * @license GPL-3.0-or-later */ diff --git a/lib/Enterprise/SecurityValidator.php b/lib/Enterprise/SecurityValidator.php index 3926cb7..971eeab 100644 --- a/lib/Enterprise/SecurityValidator.php +++ b/lib/Enterprise/SecurityValidator.php @@ -11,13 +11,13 @@ declare(strict_types=1); * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise.Security * INGROUP: MokoPlatform.Enterprise - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/SecurityValidator.php * BRIEF: Security validation library */ /** - * Security Validator for moko-platform + * Security Validator for mokoplatform * * Provides security scanning and validation: * - Credential detection in code/config files @@ -47,7 +47,7 @@ declare(strict_types=1); * * @package MokoPlatform\Enterprise * @version 04.00.04 - * @author moko-platform Team + * @author mokoplatform Team * @license GPL-3.0-or-later */ diff --git a/lib/Enterprise/SourceResolver.php b/lib/Enterprise/SourceResolver.php index c94d111..b81dcba 100644 --- a/lib/Enterprise/SourceResolver.php +++ b/lib/Enterprise/SourceResolver.php @@ -9,7 +9,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise * INGROUP: MokoPlatform.Lib - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/SourceResolver.php * BRIEF: Resolve the root-level source directory across repos (source/, src/, htdocs/) */ diff --git a/lib/Enterprise/SynchronizationException.php b/lib/Enterprise/SynchronizationException.php index 2761b38..8d23458 100644 --- a/lib/Enterprise/SynchronizationException.php +++ b/lib/Enterprise/SynchronizationException.php @@ -10,7 +10,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/SynchronizationException.php * BRIEF: Custom exception for repository synchronization errors */ diff --git a/lib/Enterprise/TransactionManager.php b/lib/Enterprise/TransactionManager.php index 093ca6c..12e2ae7 100644 --- a/lib/Enterprise/TransactionManager.php +++ b/lib/Enterprise/TransactionManager.php @@ -11,13 +11,13 @@ declare(strict_types=1); * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise.Transaction * INGROUP: MokoPlatform.Enterprise - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/TransactionManager.php * BRIEF: Transaction manager for atomic operations */ /** - * Transaction Manager for moko-platform + * Transaction Manager for mokoplatform * * Provides atomic multi-step operations with automatic rollback: * - Transaction boundaries for ACID operations @@ -54,7 +54,7 @@ declare(strict_types=1); * * @package MokoPlatform\Enterprise * @version 04.00.04 - * @author moko-platform Team + * @author mokoplatform Team * @license GPL-3.0-or-later */ diff --git a/lib/Enterprise/UnifiedValidation.php b/lib/Enterprise/UnifiedValidation.php index f159bb2..1f0d5ea 100644 --- a/lib/Enterprise/UnifiedValidation.php +++ b/lib/Enterprise/UnifiedValidation.php @@ -11,13 +11,13 @@ declare(strict_types=1); * FILE INFORMATION * DEFGROUP: MokoPlatform.Enterprise.Validation * INGROUP: MokoPlatform.Enterprise - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/Enterprise/UnifiedValidation.php * BRIEF: Unified validation framework */ /** - * Unified Validation Framework for moko-platform + * Unified Validation Framework for mokoplatform * * Consolidates all validation logic into a single framework with plugins. * Replaces 12+ individual validator scripts with a unified approach. @@ -53,7 +53,7 @@ declare(strict_types=1); * * @package MokoPlatform\Enterprise * @version 04.00.04 - * @author moko-platform Team + * @author mokoplatform Team * @license GPL-3.0-or-later */ diff --git a/lib/index.md b/lib/index.md index 0feff20..e1196af 100644 --- a/lib/index.md +++ b/lib/index.md @@ -4,7 +4,7 @@ SPDX-License-Identifier: GPL-3.0-or-later FILE INFORMATION DEFGROUP: MokoPlatform.Index INGROUP: MokoPlatform.Lib -REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PATH: /lib/index.md BRIEF: Library directory index --> diff --git a/lib/plugins/Joomla/UpdateXmlGenerator.php b/lib/plugins/Joomla/UpdateXmlGenerator.php index 12cfada..2f25a4d 100644 --- a/lib/plugins/Joomla/UpdateXmlGenerator.php +++ b/lib/plugins/Joomla/UpdateXmlGenerator.php @@ -10,7 +10,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Joomla * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /lib/plugins/Joomla/UpdateXmlGenerator.php * BRIEF: Generates and updates Joomla extension updates.xml files */ diff --git a/maintenance/index.md b/maintenance/index.md index 17da4a4..a18d20e 100644 --- a/maintenance/index.md +++ b/maintenance/index.md @@ -4,7 +4,7 @@ SPDX-License-Identifier: GPL-3.0-or-later FILE INFORMATION DEFGROUP: MokoPlatform.Index INGROUP: MokoPlatform.Maintenance -REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PATH: /maintenance/index.md BRIEF: Maintenance directory index --> diff --git a/maintenance/pin_action_shas.php b/maintenance/pin_action_shas.php index dbee8a8..4fc1677 100644 --- a/maintenance/pin_action_shas.php +++ b/maintenance/pin_action_shas.php @@ -11,7 +11,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Scripts.Maintenance * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /maintenance/pin_action_shas.php * BRIEF: Pin GitHub Actions to immutable commit SHAs in workflow files * NOTE: Resolves tag/branch refs to commit SHAs via the GitHub API to satisfy diff --git a/maintenance/repo_inventory.php b/maintenance/repo_inventory.php index 73352bd..913f47a 100644 --- a/maintenance/repo_inventory.php +++ b/maintenance/repo_inventory.php @@ -10,7 +10,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Maintenance * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /maintenance/repo_inventory.php * BRIEF: Generate a live inventory dashboard of all governed repos as a GitHub issue */ @@ -26,7 +26,7 @@ class RepoInventoryCli extends CliFramework private $api = null; private string $token = ''; private $platformConfig = null; - private const ALWAYS_EXCLUDE = ['moko-platform', '.github-private']; + private const ALWAYS_EXCLUDE = ['mokoplatform', '.github-private']; protected function configure(): void { @@ -161,7 +161,7 @@ class RepoInventoryCli extends CliFramework if (!$this->dryRun) { $title = "dashboard: repository inventory ({$org})"; - $issueQuery = "repos/{$org}/moko-platform/issues" + $issueQuery = "repos/{$org}/mokoplatform/issues" . "?labels=inventory&state=all&per_page=1" . "&sort=created&direction=desc"; [$_, $existing] = $this->ghApi('GET', $issueQuery, null); @@ -169,7 +169,7 @@ class RepoInventoryCli extends CliFramework $num = $existing[0]['number']; $this->ghApi( 'PATCH', - "repos/{$org}/moko-platform/issues/{$num}", + "repos/{$org}/mokoplatform/issues/{$num}", [ 'title' => $title, 'body' => $body, @@ -181,7 +181,7 @@ class RepoInventoryCli extends CliFramework } else { [$_, $issue] = $this->ghApi( 'POST', - "repos/{$org}/moko-platform/issues", + "repos/{$org}/mokoplatform/issues", [ 'title' => $title, 'body' => $body, @@ -226,7 +226,7 @@ class RepoInventoryCli extends CliFramework CURLOPT_HTTPHEADER => [ 'Authorization: bearer ' . $this->token, 'Content-Type: application/json', - 'User-Agent: moko-platform-Inventory', + 'User-Agent: mokoplatform-Inventory', ], ]); $body = (string) curl_exec($ch); diff --git a/maintenance/rotate_secrets.php b/maintenance/rotate_secrets.php index e145955..60e7793 100644 --- a/maintenance/rotate_secrets.php +++ b/maintenance/rotate_secrets.php @@ -10,7 +10,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Maintenance * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /maintenance/rotate_secrets.php * BRIEF: Audit FTP secrets and variables across all governed repos -- report missing or stale */ @@ -25,7 +25,7 @@ class RotateSecretsCli extends CliFramework { private $api = null; private string $token = ''; - private const ALWAYS_EXCLUDE = ['moko-platform', '.github-private']; + private const ALWAYS_EXCLUDE = ['mokoplatform', '.github-private']; private const ENVS = [ 'DEV' => [ 'vars' => ['DEV_FTP_HOST', 'DEV_FTP_PATH', 'DEV_FTP_USERNAME', 'DEV_FTP_SUFFIX'], @@ -186,7 +186,7 @@ class RotateSecretsCli extends CliFramework . "| Repository | Issue |\n|---|---|\n" . "{$table}\n\n---\n" . "*Auto-created by `rotate_secrets.php`*\n"; - $auditQuery = "repos/{$org}/moko-platform/issues" + $auditQuery = "repos/{$org}/mokoplatform/issues" . "?labels=secret-audit&state=all" . "&per_page=1&sort=created&direction=desc"; [$_, $existing] = $this->ghApi('GET', $auditQuery, null); @@ -196,7 +196,7 @@ class RotateSecretsCli extends CliFramework $num = $existing[0]['number']; $this->ghApi( 'PATCH', - "repos/{$org}/moko-platform/issues/{$num}", + "repos/{$org}/mokoplatform/issues/{$num}", [ 'title' => $auditTitle, 'body' => $body, @@ -210,7 +210,7 @@ class RotateSecretsCli extends CliFramework } else { [$_, $issue] = $this->ghApi( 'POST', - "repos/{$org}/moko-platform/issues", + "repos/{$org}/mokoplatform/issues", [ 'title' => $auditTitle, 'body' => $body, diff --git a/maintenance/setup_labels.php b/maintenance/setup_labels.php index e2a131e..412849a 100644 --- a/maintenance/setup_labels.php +++ b/maintenance/setup_labels.php @@ -3,7 +3,7 @@ /* Copyright (C) 2026 Moko Consulting * - * REQUIRED FILE: This file must be present in all moko-platform-compliant repositories + * REQUIRED FILE: This file must be present in all mokoplatform-compliant repositories * * This file is part of a Moko Consulting project. * @@ -12,9 +12,9 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Scripts.Maintenance * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /maintenance/setup_labels.php - * BRIEF: REQUIRED label deployment script for all moko-platform-governed repositories + * BRIEF: REQUIRED label deployment script for all mokoplatform-governed repositories */ declare(strict_types=1); @@ -27,7 +27,7 @@ use MokoEnterprise\GitPlatformAdapter; use MokoEnterprise\PlatformAdapterFactory; /** - * Deploys the standard set of repository labels required by moko-platform. + * Deploys the standard set of repository labels required by mokoplatform. * * Uses the platform adapter (GitHub or Gitea) to create or update each label. * Supports --dry-run mode to preview without making changes. @@ -66,7 +66,7 @@ class SetupLabels extends CliFramework // Workflow / Process ['automation', '8B4513', 'Automated processes or scripts'], - ['moko-platform', 'B60205', 'moko-platform compliance'], + ['mokoplatform', 'B60205', 'mokoplatform compliance'], ['needs-review', 'FBCA04', 'Awaiting code review'], ['work-in-progress', 'D93F0B', 'Work in progress, not ready for merge'], ['breaking-change', 'D73A4A', 'Breaking API or functionality change'], @@ -106,8 +106,8 @@ class SetupLabels extends CliFramework ['health: poor', 'FF6B6B', 'Health score below 50'], // Sync / Automation - ['standards-update', 'B60205', 'moko-platform sync update'], - ['standards-drift', 'FBCA04', 'Repository drifted from moko-platform'], + ['standards-update', 'B60205', 'mokoplatform sync update'], + ['standards-drift', 'FBCA04', 'Repository drifted from mokoplatform'], ['sync-report', '0075CA', 'Bulk sync run report'], ['sync-failure', 'D73A4A', 'Bulk sync failure requiring attention'], ['push-failure', 'D73A4A', 'File push failure requiring attention'], diff --git a/maintenance/sync_dolibarr_readmes.php b/maintenance/sync_dolibarr_readmes.php index 12565dc..1f752b2 100644 --- a/maintenance/sync_dolibarr_readmes.php +++ b/maintenance/sync_dolibarr_readmes.php @@ -10,7 +10,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Scripts.Maintenance * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /maintenance/sync_dolibarr_readmes.php * BRIEF: Keeps root README.md and src/README.md in sync for Dolibarr module repositories * NOTE: Version format is zero-padded semver: XX.YY.ZZ (e.g. 04.00.04). All version regex @@ -78,7 +78,7 @@ class SyncDolibarrReadmes extends CliFramework $moduleName = $this->extractModuleName($rootContent, $repoRoot); $repoUrl = $this->extractField($rootContent, 'REPO', 'https://git.mokoconsulting.tech/MokoConsulting'); $defgroup = $this->extractField($rootContent, 'DEFGROUP', 'MokoPlatform.Module'); - $ingroup = $this->extractField($rootContent, 'INGROUP', 'moko-platform'); + $ingroup = $this->extractField($rootContent, 'INGROUP', 'mokoplatform'); $brief = $this->extractField($rootContent, 'BRIEF', "{$moduleName} end-user documentation"); $installSection = $this->extractSection($rootContent, 'Installation'); @@ -272,7 +272,7 @@ NOTE: This file is auto-generated by sync_dolibarr_readmes.php from root README. Last synced: {$today} --> -[![moko-platform](https://img.shields.io/badge/moko--platform-{$version}-blue)]({$repoUrl}) +[![mokoplatform](https://img.shields.io/badge/moko--platform-{$version}-blue)]({$repoUrl}) # {$moduleName} diff --git a/maintenance/update_repo_inventory.php b/maintenance/update_repo_inventory.php index ae53df6..724b424 100644 --- a/maintenance/update_repo_inventory.php +++ b/maintenance/update_repo_inventory.php @@ -11,7 +11,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Scripts.Maintenance * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /maintenance/update_repo_inventory.php * BRIEF: Queries GitHub org repos and rewrites the auto-generated section of REPOSITORY_INVENTORY.md */ @@ -205,7 +205,7 @@ class UpdateRepoInventory extends CliFramework $lower = strtolower($name); - if (in_array('mokostandards-core', $topics, true) || $name === 'moko-platform' || $name === '.github-private') { + if (in_array('mokostandards-core', $topics, true) || $name === 'mokoplatform' || $name === '.github-private') { $groups['core'][] = $repo; } elseif ( in_array('dolibarr-module', $topics, true) diff --git a/maintenance/update_sha_hashes.php b/maintenance/update_sha_hashes.php index fc68a9b..45fd83c 100755 --- a/maintenance/update_sha_hashes.php +++ b/maintenance/update_sha_hashes.php @@ -11,7 +11,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Scripts.Maintenance * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /maintenance/update_sha_hashes.php * BRIEF: Update SHA-256 hashes in script registry */ diff --git a/maintenance/update_version_from_readme.php b/maintenance/update_version_from_readme.php index 469f7c0..29c7b15 100644 --- a/maintenance/update_version_from_readme.php +++ b/maintenance/update_version_from_readme.php @@ -10,7 +10,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Scripts.Maintenance * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /maintenance/update_version_from_readme.php * BRIEF: Reads VERSION from README.md FILE INFORMATION block and propagates it to all badges and FILE INFORMATION headers * NOTE: README.md is the single source of truth for the repository version. @@ -29,7 +29,7 @@ use MokoEnterprise\{ApiClient, AuditLogger, CliFramework}; * badge and FILE INFORMATION VERSION field in the repository. * * Sources updated: - * - Markdown badge: [![moko-platform](https://img.shields.io/badge/moko--platform-OLD-blue)] + * - Markdown badge: [![mokoplatform](https://img.shields.io/badge/moko--platform-OLD-blue)] * - Markdown header: VERSION: OLD (inside comment blocks) * - PHP header: * VERSION: OLD (inside block comments) * - YAML/Shell header:# VERSION: OLD @@ -220,7 +220,7 @@ class UpdateVersionFromReadme extends CliFramework $updated = $original; // ── Badge replacement (all file types) ─────────────────────────── - // shields.io badge: [![moko-platform](...badge/moko--platform-XX.YY.ZZ-color)] + // shields.io badge: [![mokoplatform](...badge/moko--platform-XX.YY.ZZ-color)] $updated = preg_replace( '/(\[!\[MokoStandards\]\(https:\/\/img\.shields\.io\/badge\/MokoStandards-)[0-9]{2}\.[0-9]{2}\.[0-9]{2}(-[a-z]+\)\])/', '${1}' . $version . '${2}', diff --git a/mcp/config.example.json b/mcp/config.example.json index 82769cf..47de388 100644 --- a/mcp/config.example.json +++ b/mcp/config.example.json @@ -1,6 +1,6 @@ { - "apiPath": "A:/moko-platform", - "standardsPath": "A:/moko-platform", + "apiPath": "A:/mokoplatform", + "standardsPath": "A:/mokoplatform", "giteaUrl": "https://git.mokoconsulting.tech", "giteaToken": "your-gitea-api-token" } diff --git a/mcp/package.json b/mcp/package.json index 4bdc885..e59563a 100644 --- a/mcp/package.json +++ b/mcp/package.json @@ -1,11 +1,11 @@ { - "name": "@mokoconsulting/moko-platform-mcp", + "name": "@mokoconsulting/mokoplatform-mcp", "version": "1.0.0", - "description": "MCP server for moko-platform governance — validation, compliance, platform detection, definitions browser", + "description": "MCP server for mokoplatform governance — validation, compliance, platform detection, definitions browser", "type": "module", "main": "dist/index.js", "bin": { - "moko-platform-mcp": "dist/index.js" + "mokoplatform-mcp": "dist/index.js" }, "scripts": { "build": "tsc", diff --git a/mcp/servers/mokobackup/.mokogitea/CLAUDE.md b/mcp/servers/mokobackup/.mokogitea/CLAUDE.md index f59eb1e..ae85f8b 100644 --- a/mcp/servers/mokobackup/.mokogitea/CLAUDE.md +++ b/mcp/servers/mokobackup/.mokogitea/CLAUDE.md @@ -46,4 +46,4 @@ Default config at `~/.mcp_mokobackup.json`. Client repos override via `BACKUP_MC - **Attribution**: `Authored-by: Moko Consulting` - **Workflow directory**: `.mokogitea/` (not `.gitea/` or `.github/`) - **Wiki**: documentation lives in the Gitea wiki, not `docs/` files -- **Standards**: [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki/Home) +- **Standards**: [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki/Home) diff --git a/mcp/servers/mokobackup/.mokogitea/workflows/pr-check.yml b/mcp/servers/mokobackup/.mokogitea/workflows/pr-check.yml index ce64a27..a92189f 100644 --- a/mcp/servers/mokobackup/.mokogitea/workflows/pr-check.yml +++ b/mcp/servers/mokobackup/.mokogitea/workflows/pr-check.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.CI -# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/moko-platform +# INGROUP: mokoplatform.CI +# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/mokoplatform # PATH: /templates/workflows/universal/pr-check.yml.template # VERSION: 05.00.00 # BRIEF: PR gate — branch policy + code validation before merge diff --git a/mcp/servers/mokobackup/CONTRIBUTING.md b/mcp/servers/mokobackup/CONTRIBUTING.md index d443e53..2b4ccb8 100644 --- a/mcp/servers/mokobackup/CONTRIBUTING.md +++ b/mcp/servers/mokobackup/CONTRIBUTING.md @@ -1,3 +1,3 @@ # Contributing -See [standards](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki). +See [standards](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki). diff --git a/mcp/servers/mokobackup/README.md b/mcp/servers/mokobackup/README.md index f05f342..8f60641 100644 --- a/mcp/servers/mokobackup/README.md +++ b/mcp/servers/mokobackup/README.md @@ -51,7 +51,7 @@ Each client repo has its own `.backup-mcp.json` scoped via the `BACKUP_MCP_CONFI --- -> **[MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki)** -- central standards hub for all Moko Consulting projects. +> **[MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki)** -- central standards hub for all Moko Consulting projects. --- @@ -73,4 +73,4 @@ This project is licensed under the GNU General Public License v3.0 or later -- s --- -*[Moko Consulting](https://mokoconsulting.tech) -- [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki/Home)* +*[Moko Consulting](https://mokoconsulting.tech) -- [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki/Home)* diff --git a/mcp/servers/mokocrm_api/.mokogitea/CLAUDE.md b/mcp/servers/mokocrm_api/.mokogitea/CLAUDE.md index 8a83ef2..9be048b 100644 --- a/mcp/servers/mokocrm_api/.mokogitea/CLAUDE.md +++ b/mcp/servers/mokocrm_api/.mokogitea/CLAUDE.md @@ -41,4 +41,4 @@ src/ - **Attribution**: `Authored-by: Moko Consulting` - **Workflow directory**: `.mokogitea/` (not `.gitea/` or `.github/`) - **Wiki**: documentation lives in the Gitea wiki, not `docs/` files -- **Standards**: [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki/Home) +- **Standards**: [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki/Home) diff --git a/mcp/servers/mokocrm_api/README.md b/mcp/servers/mokocrm_api/README.md index 5a85940..c207119 100644 --- a/mcp/servers/mokocrm_api/README.md +++ b/mcp/servers/mokocrm_api/README.md @@ -367,4 +367,4 @@ This project is licensed under the GNU General Public License v3.0 or later -- s --- -*[Moko Consulting](https://mokoconsulting.tech) -- [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki/Home)* +*[Moko Consulting](https://mokoconsulting.tech) -- [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki/Home)* diff --git a/mcp/servers/mokodreamhost/.mokogitea/CLAUDE.md b/mcp/servers/mokodreamhost/.mokogitea/CLAUDE.md index 20dcf5d..7926d19 100644 --- a/mcp/servers/mokodreamhost/.mokogitea/CLAUDE.md +++ b/mcp/servers/mokodreamhost/.mokogitea/CLAUDE.md @@ -39,4 +39,4 @@ src/ - **Attribution**: `Authored-by: Moko Consulting` - **Workflow directory**: `.mokogitea/` (not `.gitea/` or `.github/`) - **Wiki**: documentation lives in the Gitea wiki, not `docs/` files -- **Standards**: [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki/Home) +- **Standards**: [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki/Home) diff --git a/mcp/servers/mokodreamhost/CONTRIBUTING.md b/mcp/servers/mokodreamhost/CONTRIBUTING.md index d443e53..2b4ccb8 100644 --- a/mcp/servers/mokodreamhost/CONTRIBUTING.md +++ b/mcp/servers/mokodreamhost/CONTRIBUTING.md @@ -1,3 +1,3 @@ # Contributing -See [standards](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki). +See [standards](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki). diff --git a/mcp/servers/mokodreamhost/README.md b/mcp/servers/mokodreamhost/README.md index 5517bc2..0660b66 100644 --- a/mcp/servers/mokodreamhost/README.md +++ b/mcp/servers/mokodreamhost/README.md @@ -156,4 +156,4 @@ Full documentation is available on the [Wiki](https://git.mokoconsulting.tech/Mo --- -*[Moko Consulting](https://mokoconsulting.tech) -- [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki/Home)* +*[Moko Consulting](https://mokoconsulting.tech) -- [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki/Home)* diff --git a/mcp/servers/mokogitea_skill/skills/mokogitea/SKILL.md b/mcp/servers/mokogitea_skill/skills/mokogitea/SKILL.md index d8469fd..7a91058 100644 --- a/mcp/servers/mokogitea_skill/skills/mokogitea/SKILL.md +++ b/mcp/servers/mokogitea_skill/skills/mokogitea/SKILL.md @@ -185,6 +185,6 @@ All repos mirror to GitHub (mokoconsulting-tech org) as backup: - Port 2918 on GIT server is **shell SSH** (not just git protocol) — full command execution - Gitea repo names on server use **hyphens** (e.g. `mcp-mokobackup`), local dirs use **underscores** -- `moko-platform` CLI tools handle CI checks — don't inline bash in workflows +- `mokoplatform` CLI tools handle CI checks — don't inline bash in workflows - All infra docs live in **mokogitea-private wiki**, not public repos - Two master SSH keys (jmiller + moko) on all servers diff --git a/mcp/servers/mokomonitor/.mokogitea/CLAUDE.md b/mcp/servers/mokomonitor/.mokogitea/CLAUDE.md index 6397ab5..0ec3c30 100644 --- a/mcp/servers/mokomonitor/.mokogitea/CLAUDE.md +++ b/mcp/servers/mokomonitor/.mokogitea/CLAUDE.md @@ -32,7 +32,7 @@ src/ ``` - Config defines **connections** for health checks + optional **Grafana** config -- Sites list at `A:/moko-platform/monitoring/sites.json` for bulk monitoring +- Sites list at `A:/mokoplatform/monitoring/sites.json` for bulk monitoring - Grafana at bench.mokoconsulting.tech — WaaS dashboard for uptime/performance ## Rules @@ -41,4 +41,4 @@ src/ - **Attribution**: `Authored-by: Moko Consulting` - **Workflow directory**: `.mokogitea/` (not `.gitea/` or `.github/`) - **Wiki**: documentation lives in the Gitea wiki, not `docs/` files -- **Standards**: [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki/Home) +- **Standards**: [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki/Home) diff --git a/mcp/servers/mokomonitor/CONTRIBUTING.md b/mcp/servers/mokomonitor/CONTRIBUTING.md index d443e53..2b4ccb8 100644 --- a/mcp/servers/mokomonitor/CONTRIBUTING.md +++ b/mcp/servers/mokomonitor/CONTRIBUTING.md @@ -1,3 +1,3 @@ # Contributing -See [standards](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki). +See [standards](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki). diff --git a/mcp/servers/mokomonitor/README.md b/mcp/servers/mokomonitor/README.md index 46dc7ae..37a04eb 100644 --- a/mcp/servers/mokomonitor/README.md +++ b/mcp/servers/mokomonitor/README.md @@ -48,7 +48,7 @@ monitor-mcp provides MCP tools for monitoring server infrastructure and Grafana --- -> **[MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki)** -- central standards hub for all Moko Consulting projects. +> **[MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki)** -- central standards hub for all Moko Consulting projects. --- @@ -70,4 +70,4 @@ This project is licensed under the GNU General Public License v3.0 or later -- s --- -*[Moko Consulting](https://mokoconsulting.tech) -- [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki/Home)* +*[Moko Consulting](https://mokoconsulting.tech) -- [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki/Home)* diff --git a/mcp/servers/mokomonitor/mcp_mokomonitor/.mokogitea/CLAUDE.md b/mcp/servers/mokomonitor/mcp_mokomonitor/.mokogitea/CLAUDE.md index 6397ab5..0ec3c30 100644 --- a/mcp/servers/mokomonitor/mcp_mokomonitor/.mokogitea/CLAUDE.md +++ b/mcp/servers/mokomonitor/mcp_mokomonitor/.mokogitea/CLAUDE.md @@ -32,7 +32,7 @@ src/ ``` - Config defines **connections** for health checks + optional **Grafana** config -- Sites list at `A:/moko-platform/monitoring/sites.json` for bulk monitoring +- Sites list at `A:/mokoplatform/monitoring/sites.json` for bulk monitoring - Grafana at bench.mokoconsulting.tech — WaaS dashboard for uptime/performance ## Rules @@ -41,4 +41,4 @@ src/ - **Attribution**: `Authored-by: Moko Consulting` - **Workflow directory**: `.mokogitea/` (not `.gitea/` or `.github/`) - **Wiki**: documentation lives in the Gitea wiki, not `docs/` files -- **Standards**: [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki/Home) +- **Standards**: [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki/Home) diff --git a/mcp/servers/mokossh/.mokogitea/CLAUDE.md b/mcp/servers/mokossh/.mokogitea/CLAUDE.md index b76afb3..ad843ea 100644 --- a/mcp/servers/mokossh/.mokogitea/CLAUDE.md +++ b/mcp/servers/mokossh/.mokogitea/CLAUDE.md @@ -65,4 +65,4 @@ SSH key: `jmiller_private.openssh` - **Never commit** `.env`, `.claude/`, `.mcp.json`, `TODO.md` - **Attribution**: `Authored-by: Moko Consulting` - **Workflow directory**: `.mokogitea/` (not `.gitea/` or `.github/`) -- **Standards**: [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki/Home) +- **Standards**: [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki/Home) diff --git a/mcp/servers/mokossh/.mokogitea/ISSUE_TEMPLATE/config.yml b/mcp/servers/mokossh/.mokogitea/ISSUE_TEMPLATE/config.yml index d4d49ec..7c403f1 100644 --- a/mcp/servers/mokossh/.mokogitea/ISSUE_TEMPLATE/config.yml +++ b/mcp/servers/mokossh/.mokogitea/ISSUE_TEMPLATE/config.yml @@ -8,7 +8,7 @@ contact_links: url: https://mokoconsulting.tech/ about: Get help or ask questions through our website - name: 📚 MokoStandards Documentation - url: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + url: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform about: View our coding standards and best practices - name: 🔒 Report a Security Vulnerability url: https://git.mokoconsulting.tech/mokoconsulting-tech/.github-private/security/advisories/new diff --git a/mcp/servers/mokossh/.mokogitea/workflows/auto-release.yml b/mcp/servers/mokossh/.mokogitea/workflows/auto-release.yml index 1b26bd1..63e12d1 100644 --- a/mcp/servers/mokossh/.mokogitea/workflows/auto-release.yml +++ b/mcp/servers/mokossh/.mokogitea/workflows/auto-release.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Release -# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/moko-platform +# INGROUP: mokoplatform.Release +# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/mokoplatform # PATH: /templates/workflows/universal/auto-release.yml.template # VERSION: 05.00.00 # BRIEF: Universal build & release � detects platform from manifest.xml @@ -58,7 +58,7 @@ jobs: token: ${{ secrets.GA_TOKEN }} fetch-depth: 0 - - name: Setup moko-platform tools + - name: Setup mokoplatform tools env: MOKO_CLONE_TOKEN: ${{ secrets.GA_TOKEN }} MOKO_CLONE_HOST: git.mokoconsulting.tech/MokoConsulting @@ -69,9 +69,9 @@ jobs: sudo apt-get update -qq && sudo apt-get install -y -qq php-cli php-mbstring php-xml php-zip php-curl composer >/dev/null 2>&1 fi git clone --depth 1 --branch main --quiet \ - "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/moko-platform.git" \ - /tmp/moko-platform-api - cd /tmp/moko-platform-api + "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/mokoplatform.git" \ + /tmp/mokoplatform-api + cd /tmp/mokoplatform-api composer install --no-dev --no-interaction --quiet @@ -79,7 +79,7 @@ jobs: - name: Detect platform id: platform run: | - php /tmp/moko-platform-api/cli/manifest_read.php --path . --github-output + php /tmp/mokoplatform-api/cli/manifest_read.php --path . --github-output MANIFEST=$(find . -maxdepth 3 -name "*.xml" ! -path "./.git/*" -exec grep -l '/dev/null | head -1 || true) MOD_FILE=$(find . -maxdepth 4 -name "mod*.class.php" ! -path "./.git/*" -exec grep -l 'extends DolibarrModules' {} \; 2>/dev/null | head -1 || true) echo "manifest=${MANIFEST}" >> "$GITHUB_OUTPUT" @@ -88,7 +88,7 @@ jobs: - name: "Step 1: Read version" id: version run: | - VERSION=$(php /tmp/moko-platform-api/cli/version_read.php --path .) + VERSION=$(php /tmp/mokoplatform-api/cli/version_read.php --path .) if [ -z "$VERSION" ]; then echo "::error::No VERSION in README.md" echo "skip=true" >> "$GITHUB_OUTPUT" @@ -103,7 +103,7 @@ jobs: id: bump if: steps.version.outputs.skip != 'true' run: | - MOKO_API="/tmp/moko-platform-api/cli" + MOKO_API="/tmp/mokoplatform-api/cli" BUMP=$(php ${MOKO_API}/version_bump.php --path . --minor) VERSION=$(echo "$BUMP" | grep -oP '\d{2}\.\d{2}\.\d{2}$' || true) [ -z "$VERSION" ] && VERSION=$(php ${MOKO_API}/version_read.php --path .) @@ -253,7 +253,7 @@ jobs: steps.check.outputs.already_released != 'true' run: | VERSION="${{ steps.bump.outputs.version || steps.version.outputs.version }}" - php /tmp/moko-platform-api/cli/version_set_platform.php \ + php /tmp/mokoplatform-api/cli/version_set_platform.php \ --path . --version "$VERSION" --branch main # -- STEP 4: Update version badges ---------------------------------------- @@ -261,7 +261,7 @@ jobs: if: steps.version.outputs.skip != 'true' run: | VERSION="${{ steps.bump.outputs.version || steps.version.outputs.version }}" - php /tmp/moko-platform-api/cli/badge_update.php --path . --version "${VERSION}" 2>/dev/null || true + php /tmp/mokoplatform-api/cli/badge_update.php --path . --version "${VERSION}" 2>/dev/null || true - name: "Step 5: Write update stream" if: >- @@ -269,7 +269,7 @@ jobs: steps.platform.outputs.platform == 'joomla' run: | VERSION="${{ steps.bump.outputs.version || steps.version.outputs.version }}" - php /tmp/moko-platform-api/cli/updates_xml_build.php \ + php /tmp/mokoplatform-api/cli/updates_xml_build.php \ --path . --version "${VERSION}" --stability stable \ --gitea-url "${GITEA_URL}" --org "${GITEA_ORG}" --repo "${GITEA_REPO}" \ --github-output @@ -334,7 +334,7 @@ jobs: fi [ -z "$EXT_NAME" ] && EXT_NAME="${GITEA_REPO}" - NOTES=$(php /tmp/moko-platform-api/cli/release_notes.php --path . --version "$VERSION" 2>/dev/null) + NOTES=$(php /tmp/mokoplatform-api/cli/release_notes.php --path . --version "$VERSION" 2>/dev/null) [ -z "$NOTES" ] && NOTES="Release ${VERSION}" # Build release name: "Pretty Name VERSION (type_element-VERSION)" @@ -425,8 +425,8 @@ jobs: [ ! -d "$SOURCE_DIR" ] && SOURCE_DIR="htdocs" [ ! -d "$SOURCE_DIR" ] && { echo "No src/ or htdocs/"; exit 0; } - # ZIP package (type-aware via moko-platform PHP API) - php /tmp/moko-platform-api/cli/joomla_build.php --path . --version "${VERSION}" --output /tmp + # ZIP package (type-aware via mokoplatform PHP API) + php /tmp/mokoplatform-api/cli/joomla_build.php --path . --version "${VERSION}" --output /tmp # Match the expected ZIP_NAME for upload BUILT_ZIP=$(ls /tmp/${TYPE_PREFIX}${EXT_ELEMENT}-${VERSION}.zip 2>/dev/null | head -1 || true) if [ -n "$BUILT_ZIP" ] && [ "$BUILT_ZIP" != "/tmp/${ZIP_NAME}" ]; then @@ -640,7 +640,7 @@ jobs: BRANCH="${{ steps.version.outputs.branch }}" GH_REPO="${{ vars.GH_MIRROR_REPO || github.repository }}" - NOTES=$(php /tmp/moko-platform-api/cli/release_notes.php --path . --version "$VERSION" 2>/dev/null || true) + NOTES=$(php /tmp/mokoplatform-api/cli/release_notes.php --path . --version "$VERSION" 2>/dev/null || true) [ -z "$NOTES" ] && NOTES="Release ${VERSION}" echo "$NOTES" > /tmp/release_notes.md @@ -689,7 +689,7 @@ jobs: - name: "Delete lesser pre-release channels" continue-on-error: true run: | - php /tmp/moko-platform-api/cli/release_cascade.php \ + php /tmp/mokoplatform-api/cli/release_cascade.php \ --stability stable \ --token "${{ secrets.GA_TOKEN }}" \ --org "${GITEA_ORG}" --repo "${GITEA_REPO}" \ diff --git a/mcp/servers/mokossh/.mokogitea/workflows/cascade-dev.yml b/mcp/servers/mokossh/.mokogitea/workflows/cascade-dev.yml index 23b11a2..a690e21 100644 --- a/mcp/servers/mokossh/.mokogitea/workflows/cascade-dev.yml +++ b/mcp/servers/mokossh/.mokogitea/workflows/cascade-dev.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Maintenance -# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/moko-platform +# INGROUP: mokoplatform.Maintenance +# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/mokoplatform # PATH: /templates/workflows/cascade-dev.yml.template # VERSION: 02.00.00 # BRIEF: Forward-merge main → all open branches after every push to main diff --git a/mcp/servers/mokossh/.mokogitea/workflows/cleanup.yml b/mcp/servers/mokossh/.mokogitea/workflows/cleanup.yml index a890001..ae3e017 100644 --- a/mcp/servers/mokossh/.mokogitea/workflows/cleanup.yml +++ b/mcp/servers/mokossh/.mokogitea/workflows/cleanup.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Maintenance -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# INGROUP: mokoplatform.Maintenance +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /.gitea/workflows/cleanup.yml # VERSION: 01.00.00 # BRIEF: Scheduled cleanup — delete merged branches and old workflow runs diff --git a/mcp/servers/mokossh/.mokogitea/workflows/deploy-manual.yml b/mcp/servers/mokossh/.mokogitea/workflows/deploy-manual.yml index 6429460..a660ce8 100644 --- a/mcp/servers/mokossh/.mokogitea/workflows/deploy-manual.yml +++ b/mcp/servers/mokossh/.mokogitea/workflows/deploy-manual.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Deploy -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# INGROUP: mokoplatform.Deploy +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /templates/workflows/joomla/deploy-manual.yml.template # VERSION: 04.07.00 # BRIEF: Manual SFTP deploy to dev server for Joomla repos @@ -40,7 +40,7 @@ jobs: run: | php -v && composer --version - - name: Setup moko-platform tools + - name: Setup mokoplatform tools env: GA_TOKEN: ${{ secrets.GA_TOKEN || secrets.GA_TOKEN || github.token }} MOKO_CLONE_TOKEN: ${{ secrets.GA_TOKEN || secrets.GA_TOKEN || github.token }} @@ -48,10 +48,10 @@ jobs: COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GA_TOKEN || github.token }}"}}' run: | git clone --depth 1 --branch main --quiet \ - "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/moko-platform.git" \ - /tmp/moko-platform-api 2>/dev/null || true - if [ -d "/tmp/moko-platform-api" ] && [ -f "/tmp/moko-platform-api/composer.json" ]; then - cd /tmp/moko-platform-api && composer install --no-dev --no-interaction --quiet 2>/dev/null || true + "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/mokoplatform.git" \ + /tmp/mokoplatform-api 2>/dev/null || true + if [ -d "/tmp/mokoplatform-api" ] && [ -f "/tmp/mokoplatform-api/composer.json" ]; then + cd /tmp/mokoplatform-api && composer install --no-dev --no-interaction --quiet 2>/dev/null || true fi - name: Check FTP configuration @@ -101,11 +101,11 @@ jobs: DEPLOY_ARGS=(--path . --src-dir "$SOURCE_DIR" --config /tmp/sftp-config.json) [ "${{ inputs.clear_remote }}" = "true" ] && DEPLOY_ARGS+=(--clear-remote) - PLATFORM=$(php /tmp/moko-platform-api/cli/platform_detect.php --path . 2>/dev/null || true) - if [ "$PLATFORM" = "waas-component" ] && [ -f "/tmp/moko-platform-api/deploy/deploy-joomla.php" ]; then - php /tmp/moko-platform-api/deploy/deploy-joomla.php "${DEPLOY_ARGS[@]}" + PLATFORM=$(php /tmp/mokoplatform-api/cli/platform_detect.php --path . 2>/dev/null || true) + if [ "$PLATFORM" = "waas-component" ] && [ -f "/tmp/mokoplatform-api/deploy/deploy-joomla.php" ]; then + php /tmp/mokoplatform-api/deploy/deploy-joomla.php "${DEPLOY_ARGS[@]}" else - php /tmp/moko-platform-api/deploy/deploy-sftp.php "${DEPLOY_ARGS[@]}" + php /tmp/mokoplatform-api/deploy/deploy-sftp.php "${DEPLOY_ARGS[@]}" fi rm -f /tmp/deploy_key /tmp/sftp-config.json diff --git a/mcp/servers/mokossh/.mokogitea/workflows/gitleaks.yml b/mcp/servers/mokossh/.mokogitea/workflows/gitleaks.yml index e0fdd1d..3a62123 100644 --- a/mcp/servers/mokossh/.mokogitea/workflows/gitleaks.yml +++ b/mcp/servers/mokossh/.mokogitea/workflows/gitleaks.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Security -# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/moko-platform +# INGROUP: mokoplatform.Security +# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/mokoplatform # PATH: /templates/workflows/gitleaks.yml.template # VERSION: 01.00.00 # BRIEF: Secret scanning — detect leaked credentials, API keys, and tokens diff --git a/mcp/servers/mokossh/.mokogitea/workflows/notify.yml b/mcp/servers/mokossh/.mokogitea/workflows/notify.yml index cde4541..dd2eb8d 100644 --- a/mcp/servers/mokossh/.mokogitea/workflows/notify.yml +++ b/mcp/servers/mokossh/.mokogitea/workflows/notify.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Notifications -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# INGROUP: mokoplatform.Notifications +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /.gitea/workflows/notify.yml # VERSION: 01.00.00 # BRIEF: Push notifications via ntfy on release success or workflow failure diff --git a/mcp/servers/mokossh/.mokogitea/workflows/pr-check.yml b/mcp/servers/mokossh/.mokogitea/workflows/pr-check.yml index bc1a001..f869c88 100644 --- a/mcp/servers/mokossh/.mokogitea/workflows/pr-check.yml +++ b/mcp/servers/mokossh/.mokogitea/workflows/pr-check.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.CI -# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/moko-platform +# INGROUP: mokoplatform.CI +# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/mokoplatform # PATH: /templates/workflows/universal/pr-check.yml.template # VERSION: 05.00.00 # BRIEF: PR gate — branch policy + code validation before merge diff --git a/mcp/servers/mokossh/.mokogitea/workflows/pre-release.yml b/mcp/servers/mokossh/.mokogitea/workflows/pre-release.yml index 57d3380..bc28df7 100644 --- a/mcp/servers/mokossh/.mokogitea/workflows/pre-release.yml +++ b/mcp/servers/mokossh/.mokogitea/workflows/pre-release.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Release -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# INGROUP: mokoplatform.Release +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /templates/workflows/universal/pre-release.yml.template # VERSION: 05.00.00 # BRIEF: Manual pre-release — builds dev/alpha/beta/rc packages from any branch @@ -52,23 +52,23 @@ jobs: sudo apt-get install -y -qq php-cli php-mbstring php-xml php-zip php-curl >/dev/null 2>&1 fi - - name: Setup moko-platform tools + - name: Setup mokoplatform tools env: MOKO_CLONE_TOKEN: ${{ secrets.GA_TOKEN }} MOKO_CLONE_HOST: git.mokoconsulting.tech/MokoConsulting run: | - git clone --depth 1 --branch main --quiet "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/moko-platform.git" /tmp/moko-platform-api + git clone --depth 1 --branch main --quiet "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/mokoplatform.git" /tmp/mokoplatform-api - name: Detect platform id: platform run: | - php /tmp/moko-platform-api/cli/manifest_read.php --path . --github-output + php /tmp/mokoplatform-api/cli/manifest_read.php --path . --github-output - name: Resolve metadata id: meta run: | STABILITY="${{ inputs.stability }}" - MOKO_API="/tmp/moko-platform-api/cli" + MOKO_API="/tmp/mokoplatform-api/cli" case "$STABILITY" in development) SUFFIX="-dev"; TAG="development" ;; @@ -128,7 +128,7 @@ jobs: PLATFORM="${{ steps.platform.outputs.platform }}" if [ "$PLATFORM" = "joomla" ]; then - php /tmp/moko-platform-api/cli/joomla_build.php --path . --version "${VERSION}" --suffix "${SUFFIX}" --output build --github-output + php /tmp/mokoplatform-api/cli/joomla_build.php --path . --version "${VERSION}" --suffix "${SUFFIX}" --output build --github-output else # Generic build: zip src/ directory SOURCE_DIR="src" @@ -200,7 +200,7 @@ jobs: VERSION="${{ steps.meta.outputs.version }}" STABILITY="${{ steps.meta.outputs.stability }}" SHA256="${{ steps.zip.outputs.sha256 }}" - php /tmp/moko-platform-api/cli/updates_xml_build.php --path . --version "$VERSION" --stability "$STABILITY" --sha "$SHA256" --gitea-url "$GITEA_URL" --org "$GITEA_ORG" --repo "$GITEA_REPO" + php /tmp/mokoplatform-api/cli/updates_xml_build.php --path . --version "$VERSION" --stability "$STABILITY" --sha "$SHA256" --gitea-url "$GITEA_URL" --org "$GITEA_ORG" --repo "$GITEA_REPO" if ! git diff --quiet updates.xml 2>/dev/null; then git config --local user.email "gitea-actions[bot]@mokoconsulting.tech" git config --local user.name "gitea-actions[bot]" @@ -212,7 +212,7 @@ jobs: - name: "Sync updates.xml to all branches" if: steps.platform.outputs.platform == 'joomla' run: | - php /tmp/moko-platform-api/cli/updates_xml_sync.php --path . --current "${{ github.ref_name }}" --branches main,dev --version "${{ steps.meta.outputs.version }}" --token "${{ secrets.GA_TOKEN }}" --org "${GITEA_ORG}" --repo "${GITEA_REPO}" --gitea-url "${GITEA_URL}" + php /tmp/mokoplatform-api/cli/updates_xml_sync.php --path . --current "${{ github.ref_name }}" --branches main,dev --version "${{ steps.meta.outputs.version }}" --token "${{ secrets.GA_TOKEN }}" --org "${GITEA_ORG}" --repo "${GITEA_REPO}" --gitea-url "${GITEA_URL}" - name: "Delete lesser pre-release channels (cascade)" continue-on-error: true diff --git a/mcp/servers/mokossh/.mokogitea/workflows/repo-health.yml b/mcp/servers/mokossh/.mokogitea/workflows/repo-health.yml index d738ad7..4371829 100644 --- a/mcp/servers/mokossh/.mokogitea/workflows/repo-health.yml +++ b/mcp/servers/mokossh/.mokogitea/workflows/repo-health.yml @@ -7,8 +7,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Validation -# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/moko-platform +# INGROUP: mokoplatform.Validation +# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/mokoplatform # PATH: /templates/workflows/joomla/repo_health.yml.template # VERSION: 04.06.00 # BRIEF: Enforces repository guardrails by validating release configuration, scripts governance, tooling availability, and core repository health artifacts. diff --git a/mcp/servers/mokossh/.mokogitea/workflows/security-audit.yml b/mcp/servers/mokossh/.mokogitea/workflows/security-audit.yml index 714d407..f377378 100644 --- a/mcp/servers/mokossh/.mokogitea/workflows/security-audit.yml +++ b/mcp/servers/mokossh/.mokogitea/workflows/security-audit.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Security -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# INGROUP: mokoplatform.Security +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /.gitea/workflows/security-audit.yml # VERSION: 01.00.00 # BRIEF: Dependency vulnerability scanning for composer and npm packages diff --git a/mcp/servers/mokossh/README.md b/mcp/servers/mokossh/README.md index d437eb4..427dcbe 100644 --- a/mcp/servers/mokossh/README.md +++ b/mcp/servers/mokossh/README.md @@ -72,7 +72,7 @@ ssh-mcp exposes 37 tools that let Claude Code manage remote servers over SSH. Ca --- -> **[MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki)** -- central standards hub for all Moko Consulting projects. +> **[MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki)** -- central standards hub for all Moko Consulting projects. --- @@ -94,4 +94,4 @@ This project is licensed under the GNU General Public License v3.0 or later -- s --- -*[Moko Consulting](https://mokoconsulting.tech) -- [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki/Home)* +*[Moko Consulting](https://mokoconsulting.tech) -- [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki/Home)* diff --git a/mcp/servers/mokowaas_api/.mokogitea/CLAUDE.md b/mcp/servers/mokosuite_api/.mokogitea/CLAUDE.md similarity index 82% rename from mcp/servers/mokowaas_api/.mokogitea/CLAUDE.md rename to mcp/servers/mokosuite_api/.mokogitea/CLAUDE.md index 9101d92..1838600 100644 --- a/mcp/servers/mokowaas_api/.mokogitea/CLAUDE.md +++ b/mcp/servers/mokosuite_api/.mokogitea/CLAUDE.md @@ -1,4 +1,4 @@ -# mcp_mokowaas +# mcp_mokosuite MCP server for Joomla Web Services API operations — articles, categories, menus, modules, users, media, and content management. @@ -6,9 +6,9 @@ MCP server for Joomla Web Services API operations — articles, categories, menu | Field | Value | |---|---| -| **Package** | `@mokoconsulting/mcp-mokowaas-api` | +| **Package** | `@mokoconsulting/mcp-mokosuite-api` | | **Entry** | `dist/index.js` | -| **Config** | `~/.mcp_mokowaas.json` (override: `JOOMLA_API_MCP_CONFIG` env var) | +| **Config** | `~/.mcp_mokosuite.json` (override: `JOOMLA_API_MCP_CONFIG` env var) | | **Language** | TypeScript | | **Branch** | develop on `dev`, merge to `main` (protected) | @@ -25,7 +25,7 @@ npm run dev # Watch mode ``` src/ ├── index.ts # MCP server entry, tool registration -├── config.ts # Loads ~/.mcp_mokowaas.json, resolves connections +├── config.ts # Loads ~/.mcp_mokosuite.json, resolves connections ├── client.ts # Joomla Web Services API client wrapper └── types.ts # JoomlaConfig, JoomlaConnection types ``` @@ -40,4 +40,4 @@ src/ - **Attribution**: `Authored-by: Moko Consulting` - **Workflow directory**: `.mokogitea/` (not `.gitea/` or `.github/`) - **Wiki**: documentation lives in the Gitea wiki, not `docs/` files -- **Standards**: [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki/Home) +- **Standards**: [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki/Home) diff --git a/mcp/servers/mokowaas_api/.mokogitea/ISSUE_TEMPLATE/adr.md b/mcp/servers/mokosuite_api/.mokogitea/ISSUE_TEMPLATE/adr.md similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/ISSUE_TEMPLATE/adr.md rename to mcp/servers/mokosuite_api/.mokogitea/ISSUE_TEMPLATE/adr.md diff --git a/mcp/servers/mokowaas_api/.mokogitea/ISSUE_TEMPLATE/bug_report.md b/mcp/servers/mokosuite_api/.mokogitea/ISSUE_TEMPLATE/bug_report.md similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/ISSUE_TEMPLATE/bug_report.md rename to mcp/servers/mokosuite_api/.mokogitea/ISSUE_TEMPLATE/bug_report.md diff --git a/mcp/servers/mokowaas_api/.mokogitea/ISSUE_TEMPLATE/config.yml b/mcp/servers/mokosuite_api/.mokogitea/ISSUE_TEMPLATE/config.yml similarity index 91% rename from mcp/servers/mokowaas_api/.mokogitea/ISSUE_TEMPLATE/config.yml rename to mcp/servers/mokosuite_api/.mokogitea/ISSUE_TEMPLATE/config.yml index d4d49ec..7c403f1 100644 --- a/mcp/servers/mokowaas_api/.mokogitea/ISSUE_TEMPLATE/config.yml +++ b/mcp/servers/mokosuite_api/.mokogitea/ISSUE_TEMPLATE/config.yml @@ -8,7 +8,7 @@ contact_links: url: https://mokoconsulting.tech/ about: Get help or ask questions through our website - name: 📚 MokoStandards Documentation - url: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + url: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform about: View our coding standards and best practices - name: 🔒 Report a Security Vulnerability url: https://git.mokoconsulting.tech/mokoconsulting-tech/.github-private/security/advisories/new diff --git a/mcp/servers/mokowaas_api/.mokogitea/ISSUE_TEMPLATE/documentation.md b/mcp/servers/mokosuite_api/.mokogitea/ISSUE_TEMPLATE/documentation.md similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/ISSUE_TEMPLATE/documentation.md rename to mcp/servers/mokosuite_api/.mokogitea/ISSUE_TEMPLATE/documentation.md diff --git a/mcp/servers/mokowaas_api/.mokogitea/ISSUE_TEMPLATE/enterprise_support.md b/mcp/servers/mokosuite_api/.mokogitea/ISSUE_TEMPLATE/enterprise_support.md similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/ISSUE_TEMPLATE/enterprise_support.md rename to mcp/servers/mokosuite_api/.mokogitea/ISSUE_TEMPLATE/enterprise_support.md diff --git a/mcp/servers/mokowaas_api/.mokogitea/ISSUE_TEMPLATE/feature_request.md b/mcp/servers/mokosuite_api/.mokogitea/ISSUE_TEMPLATE/feature_request.md similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/ISSUE_TEMPLATE/feature_request.md rename to mcp/servers/mokosuite_api/.mokogitea/ISSUE_TEMPLATE/feature_request.md diff --git a/mcp/servers/mokowaas_api/.mokogitea/ISSUE_TEMPLATE/firewall-request.md b/mcp/servers/mokosuite_api/.mokogitea/ISSUE_TEMPLATE/firewall-request.md similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/ISSUE_TEMPLATE/firewall-request.md rename to mcp/servers/mokosuite_api/.mokogitea/ISSUE_TEMPLATE/firewall-request.md diff --git a/mcp/servers/mokowaas_api/.mokogitea/ISSUE_TEMPLATE/mcp_api_integration.md b/mcp/servers/mokosuite_api/.mokogitea/ISSUE_TEMPLATE/mcp_api_integration.md similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/ISSUE_TEMPLATE/mcp_api_integration.md rename to mcp/servers/mokosuite_api/.mokogitea/ISSUE_TEMPLATE/mcp_api_integration.md diff --git a/mcp/servers/mokowaas_api/.mokogitea/ISSUE_TEMPLATE/mcp_connection_issue.md b/mcp/servers/mokosuite_api/.mokogitea/ISSUE_TEMPLATE/mcp_connection_issue.md similarity index 97% rename from mcp/servers/mokowaas_api/.mokogitea/ISSUE_TEMPLATE/mcp_connection_issue.md rename to mcp/servers/mokosuite_api/.mokogitea/ISSUE_TEMPLATE/mcp_connection_issue.md index e7031a8..7f77801 100644 --- a/mcp/servers/mokowaas_api/.mokogitea/ISSUE_TEMPLATE/mcp_connection_issue.md +++ b/mcp/servers/mokosuite_api/.mokogitea/ISSUE_TEMPLATE/mcp_connection_issue.md @@ -18,7 +18,7 @@ assignees: '' - [ ] API response error (4xx / 5xx) ### MCP Server -- **Server Name**: [e.g., mcp_mokowaas] +- **Server Name**: [e.g., mcp_mokosuite] - **Server Version**: [e.g., 1.0.0] - **Node.js Version**: [e.g., 20.x] diff --git a/mcp/servers/mokowaas_api/.mokogitea/ISSUE_TEMPLATE/mcp_tool_request.md b/mcp/servers/mokosuite_api/.mokogitea/ISSUE_TEMPLATE/mcp_tool_request.md similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/ISSUE_TEMPLATE/mcp_tool_request.md rename to mcp/servers/mokosuite_api/.mokogitea/ISSUE_TEMPLATE/mcp_tool_request.md diff --git a/mcp/servers/mokowaas_api/.mokogitea/ISSUE_TEMPLATE/question.md b/mcp/servers/mokosuite_api/.mokogitea/ISSUE_TEMPLATE/question.md similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/ISSUE_TEMPLATE/question.md rename to mcp/servers/mokosuite_api/.mokogitea/ISSUE_TEMPLATE/question.md diff --git a/mcp/servers/mokowaas_api/.mokogitea/ISSUE_TEMPLATE/rfc.md b/mcp/servers/mokosuite_api/.mokogitea/ISSUE_TEMPLATE/rfc.md similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/ISSUE_TEMPLATE/rfc.md rename to mcp/servers/mokosuite_api/.mokogitea/ISSUE_TEMPLATE/rfc.md diff --git a/mcp/servers/mokowaas_api/.mokogitea/ISSUE_TEMPLATE/security.md b/mcp/servers/mokosuite_api/.mokogitea/ISSUE_TEMPLATE/security.md similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/ISSUE_TEMPLATE/security.md rename to mcp/servers/mokosuite_api/.mokogitea/ISSUE_TEMPLATE/security.md diff --git a/mcp/servers/mokowaas_api/.mokogitea/ISSUE_TEMPLATE/version.md b/mcp/servers/mokosuite_api/.mokogitea/ISSUE_TEMPLATE/version.md similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/ISSUE_TEMPLATE/version.md rename to mcp/servers/mokosuite_api/.mokogitea/ISSUE_TEMPLATE/version.md diff --git a/mcp/servers/mokowaas_api/.mokogitea/auto-assign.yml b/mcp/servers/mokosuite_api/.mokogitea/auto-assign.yml similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/auto-assign.yml rename to mcp/servers/mokosuite_api/.mokogitea/auto-assign.yml diff --git a/mcp/servers/mokowaas_api/.mokogitea/auto-dev-issue.yml b/mcp/servers/mokosuite_api/.mokogitea/auto-dev-issue.yml similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/auto-dev-issue.yml rename to mcp/servers/mokosuite_api/.mokogitea/auto-dev-issue.yml diff --git a/mcp/servers/mokowaas_api/.mokogitea/auto-release.yml b/mcp/servers/mokosuite_api/.mokogitea/auto-release.yml similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/auto-release.yml rename to mcp/servers/mokosuite_api/.mokogitea/auto-release.yml diff --git a/mcp/servers/mokowaas_api/.mokogitea/cascade-dev.yml b/mcp/servers/mokosuite_api/.mokogitea/cascade-dev.yml similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/cascade-dev.yml rename to mcp/servers/mokosuite_api/.mokogitea/cascade-dev.yml diff --git a/mcp/servers/mokowaas_api/.mokogitea/changelog-validation.yml b/mcp/servers/mokosuite_api/.mokogitea/changelog-validation.yml similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/changelog-validation.yml rename to mcp/servers/mokosuite_api/.mokogitea/changelog-validation.yml diff --git a/mcp/servers/mokowaas_api/.mokogitea/codeql-analysis.yml b/mcp/servers/mokosuite_api/.mokogitea/codeql-analysis.yml similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/codeql-analysis.yml rename to mcp/servers/mokosuite_api/.mokogitea/codeql-analysis.yml diff --git a/mcp/servers/mokowaas_api/.mokogitea/copilot-agent.yml b/mcp/servers/mokosuite_api/.mokogitea/copilot-agent.yml similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/copilot-agent.yml rename to mcp/servers/mokosuite_api/.mokogitea/copilot-agent.yml diff --git a/mcp/servers/mokowaas_api/.mokogitea/deploy-demo.yml b/mcp/servers/mokosuite_api/.mokogitea/deploy-demo.yml similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/deploy-demo.yml rename to mcp/servers/mokosuite_api/.mokogitea/deploy-demo.yml diff --git a/mcp/servers/mokowaas_api/.mokogitea/deploy-dev.yml b/mcp/servers/mokosuite_api/.mokogitea/deploy-dev.yml similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/deploy-dev.yml rename to mcp/servers/mokosuite_api/.mokogitea/deploy-dev.yml diff --git a/mcp/servers/mokowaas_api/.mokogitea/enterprise-firewall-setup.yml b/mcp/servers/mokosuite_api/.mokogitea/enterprise-firewall-setup.yml similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/enterprise-firewall-setup.yml rename to mcp/servers/mokosuite_api/.mokogitea/enterprise-firewall-setup.yml diff --git a/mcp/servers/mokowaas_api/.mokogitea/gitleaks.yml b/mcp/servers/mokosuite_api/.mokogitea/gitleaks.yml similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/gitleaks.yml rename to mcp/servers/mokosuite_api/.mokogitea/gitleaks.yml diff --git a/mcp/servers/mokowaas_api/.mokogitea/manifest.xml b/mcp/servers/mokosuite_api/.mokogitea/manifest.xml similarity index 75% rename from mcp/servers/mokowaas_api/.mokogitea/manifest.xml rename to mcp/servers/mokosuite_api/.mokogitea/manifest.xml index 6a1ab3d..e5a63dd 100644 --- a/mcp/servers/mokowaas_api/.mokogitea/manifest.xml +++ b/mcp/servers/mokosuite_api/.mokogitea/manifest.xml @@ -2,9 +2,9 @@ - + joomla-api-mcp MokoConsulting @@ -14,7 +14,7 @@ nodejs 04.07.00 - https://git.mokoconsulting.tech/MokoConsulting/moko-platform + https://git.mokoconsulting.tech/MokoConsulting/mokoplatform 2026-05-10T19:51:10+00:00 @@ -22,4 +22,4 @@ mcp-server src/ - + diff --git a/mcp/servers/mokowaas_api/.mokogitea/mcp-auto-release.yml b/mcp/servers/mokosuite_api/.mokogitea/mcp-auto-release.yml similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/mcp-auto-release.yml rename to mcp/servers/mokosuite_api/.mokogitea/mcp-auto-release.yml diff --git a/mcp/servers/mokowaas_api/.mokogitea/mcp-build-test.yml b/mcp/servers/mokosuite_api/.mokogitea/mcp-build-test.yml similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/mcp-build-test.yml rename to mcp/servers/mokosuite_api/.mokogitea/mcp-build-test.yml diff --git a/mcp/servers/mokowaas_api/.mokogitea/mcp-sdk-check.yml b/mcp/servers/mokosuite_api/.mokogitea/mcp-sdk-check.yml similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/mcp-sdk-check.yml rename to mcp/servers/mokosuite_api/.mokogitea/mcp-sdk-check.yml diff --git a/mcp/servers/mokowaas_api/.mokogitea/mcp-tool-inventory.yml b/mcp/servers/mokosuite_api/.mokogitea/mcp-tool-inventory.yml similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/mcp-tool-inventory.yml rename to mcp/servers/mokosuite_api/.mokogitea/mcp-tool-inventory.yml diff --git a/mcp/servers/mokowaas_api/.mokogitea/pr-branch-check.yml b/mcp/servers/mokosuite_api/.mokogitea/pr-branch-check.yml similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/pr-branch-check.yml rename to mcp/servers/mokosuite_api/.mokogitea/pr-branch-check.yml diff --git a/mcp/servers/mokowaas_api/.mokogitea/repository-cleanup.yml b/mcp/servers/mokosuite_api/.mokogitea/repository-cleanup.yml similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/repository-cleanup.yml rename to mcp/servers/mokosuite_api/.mokogitea/repository-cleanup.yml diff --git a/mcp/servers/mokowaas_api/.mokogitea/standards-compliance.yml b/mcp/servers/mokosuite_api/.mokogitea/standards-compliance.yml similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/standards-compliance.yml rename to mcp/servers/mokosuite_api/.mokogitea/standards-compliance.yml diff --git a/mcp/servers/mokowaas_api/.mokogitea/sync-version-on-merge.yml b/mcp/servers/mokosuite_api/.mokogitea/sync-version-on-merge.yml similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/sync-version-on-merge.yml rename to mcp/servers/mokosuite_api/.mokogitea/sync-version-on-merge.yml diff --git a/mcp/servers/mokowaas_api/.mokogitea/workflows/auto-assign.yml b/mcp/servers/mokosuite_api/.mokogitea/workflows/auto-assign.yml similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/workflows/auto-assign.yml rename to mcp/servers/mokosuite_api/.mokogitea/workflows/auto-assign.yml diff --git a/mcp/servers/mokowaas_api/.mokogitea/workflows/auto-dev-issue.yml b/mcp/servers/mokosuite_api/.mokogitea/workflows/auto-dev-issue.yml similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/workflows/auto-dev-issue.yml rename to mcp/servers/mokosuite_api/.mokogitea/workflows/auto-dev-issue.yml diff --git a/mcp/servers/mokowaas_api/.mokogitea/workflows/auto-release.yml b/mcp/servers/mokosuite_api/.mokogitea/workflows/auto-release.yml similarity index 96% rename from mcp/servers/mokowaas_api/.mokogitea/workflows/auto-release.yml rename to mcp/servers/mokosuite_api/.mokogitea/workflows/auto-release.yml index 1b26bd1..121f0e5 100644 --- a/mcp/servers/mokowaas_api/.mokogitea/workflows/auto-release.yml +++ b/mcp/servers/mokosuite_api/.mokogitea/workflows/auto-release.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Release -# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/moko-platform +# INGROUP: mokoplatform.Release +# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/mokoplatform # PATH: /templates/workflows/universal/auto-release.yml.template # VERSION: 05.00.00 # BRIEF: Universal build & release � detects platform from manifest.xml @@ -58,7 +58,7 @@ jobs: token: ${{ secrets.GA_TOKEN }} fetch-depth: 0 - - name: Setup moko-platform tools + - name: Setup mokoplatform tools env: MOKO_CLONE_TOKEN: ${{ secrets.GA_TOKEN }} MOKO_CLONE_HOST: git.mokoconsulting.tech/MokoConsulting @@ -69,9 +69,9 @@ jobs: sudo apt-get update -qq && sudo apt-get install -y -qq php-cli php-mbstring php-xml php-zip php-curl composer >/dev/null 2>&1 fi git clone --depth 1 --branch main --quiet \ - "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/moko-platform.git" \ - /tmp/moko-platform-api - cd /tmp/moko-platform-api + "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/mokoplatform.git" \ + /tmp/mokoplatform-api + cd /tmp/mokoplatform-api composer install --no-dev --no-interaction --quiet @@ -79,7 +79,7 @@ jobs: - name: Detect platform id: platform run: | - php /tmp/moko-platform-api/cli/manifest_read.php --path . --github-output + php /tmp/mokoplatform-api/cli/manifest_read.php --path . --github-output MANIFEST=$(find . -maxdepth 3 -name "*.xml" ! -path "./.git/*" -exec grep -l '/dev/null | head -1 || true) MOD_FILE=$(find . -maxdepth 4 -name "mod*.class.php" ! -path "./.git/*" -exec grep -l 'extends DolibarrModules' {} \; 2>/dev/null | head -1 || true) echo "manifest=${MANIFEST}" >> "$GITHUB_OUTPUT" @@ -88,7 +88,7 @@ jobs: - name: "Step 1: Read version" id: version run: | - VERSION=$(php /tmp/moko-platform-api/cli/version_read.php --path .) + VERSION=$(php /tmp/mokoplatform-api/cli/version_read.php --path .) if [ -z "$VERSION" ]; then echo "::error::No VERSION in README.md" echo "skip=true" >> "$GITHUB_OUTPUT" @@ -103,7 +103,7 @@ jobs: id: bump if: steps.version.outputs.skip != 'true' run: | - MOKO_API="/tmp/moko-platform-api/cli" + MOKO_API="/tmp/mokoplatform-api/cli" BUMP=$(php ${MOKO_API}/version_bump.php --path . --minor) VERSION=$(echo "$BUMP" | grep -oP '\d{2}\.\d{2}\.\d{2}$' || true) [ -z "$VERSION" ] && VERSION=$(php ${MOKO_API}/version_read.php --path .) @@ -197,7 +197,7 @@ jobs: TYPE=$(sed -n 's/.*]*type="\([^"]*\)".*/\1/p' "$MANIFEST" 2>/dev/null) echo "- Extension type: ${TYPE:-unknown}" >> $GITHUB_STEP_SUMMARY else - echo "- No Joomla XML manifest (WaaS site)" >> $GITHUB_STEP_SUMMARY + echo "- No Joomla XML manifest (Suite site)" >> $GITHUB_STEP_SUMMARY fi ;; dolibarr) if [ -n "$MOD_FILE" ]; then @@ -253,7 +253,7 @@ jobs: steps.check.outputs.already_released != 'true' run: | VERSION="${{ steps.bump.outputs.version || steps.version.outputs.version }}" - php /tmp/moko-platform-api/cli/version_set_platform.php \ + php /tmp/mokoplatform-api/cli/version_set_platform.php \ --path . --version "$VERSION" --branch main # -- STEP 4: Update version badges ---------------------------------------- @@ -261,7 +261,7 @@ jobs: if: steps.version.outputs.skip != 'true' run: | VERSION="${{ steps.bump.outputs.version || steps.version.outputs.version }}" - php /tmp/moko-platform-api/cli/badge_update.php --path . --version "${VERSION}" 2>/dev/null || true + php /tmp/mokoplatform-api/cli/badge_update.php --path . --version "${VERSION}" 2>/dev/null || true - name: "Step 5: Write update stream" if: >- @@ -269,7 +269,7 @@ jobs: steps.platform.outputs.platform == 'joomla' run: | VERSION="${{ steps.bump.outputs.version || steps.version.outputs.version }}" - php /tmp/moko-platform-api/cli/updates_xml_build.php \ + php /tmp/mokoplatform-api/cli/updates_xml_build.php \ --path . --version "${VERSION}" --stability stable \ --gitea-url "${GITEA_URL}" --org "${GITEA_ORG}" --repo "${GITEA_REPO}" \ --github-output @@ -334,7 +334,7 @@ jobs: fi [ -z "$EXT_NAME" ] && EXT_NAME="${GITEA_REPO}" - NOTES=$(php /tmp/moko-platform-api/cli/release_notes.php --path . --version "$VERSION" 2>/dev/null) + NOTES=$(php /tmp/mokoplatform-api/cli/release_notes.php --path . --version "$VERSION" 2>/dev/null) [ -z "$NOTES" ] && NOTES="Release ${VERSION}" # Build release name: "Pretty Name VERSION (type_element-VERSION)" @@ -425,8 +425,8 @@ jobs: [ ! -d "$SOURCE_DIR" ] && SOURCE_DIR="htdocs" [ ! -d "$SOURCE_DIR" ] && { echo "No src/ or htdocs/"; exit 0; } - # ZIP package (type-aware via moko-platform PHP API) - php /tmp/moko-platform-api/cli/joomla_build.php --path . --version "${VERSION}" --output /tmp + # ZIP package (type-aware via mokoplatform PHP API) + php /tmp/mokoplatform-api/cli/joomla_build.php --path . --version "${VERSION}" --output /tmp # Match the expected ZIP_NAME for upload BUILT_ZIP=$(ls /tmp/${TYPE_PREFIX}${EXT_ELEMENT}-${VERSION}.zip 2>/dev/null | head -1 || true) if [ -n "$BUILT_ZIP" ] && [ "$BUILT_ZIP" != "/tmp/${ZIP_NAME}" ]; then @@ -640,7 +640,7 @@ jobs: BRANCH="${{ steps.version.outputs.branch }}" GH_REPO="${{ vars.GH_MIRROR_REPO || github.repository }}" - NOTES=$(php /tmp/moko-platform-api/cli/release_notes.php --path . --version "$VERSION" 2>/dev/null || true) + NOTES=$(php /tmp/mokoplatform-api/cli/release_notes.php --path . --version "$VERSION" 2>/dev/null || true) [ -z "$NOTES" ] && NOTES="Release ${VERSION}" echo "$NOTES" > /tmp/release_notes.md @@ -689,7 +689,7 @@ jobs: - name: "Delete lesser pre-release channels" continue-on-error: true run: | - php /tmp/moko-platform-api/cli/release_cascade.php \ + php /tmp/mokoplatform-api/cli/release_cascade.php \ --stability stable \ --token "${{ secrets.GA_TOKEN }}" \ --org "${GITEA_ORG}" --repo "${GITEA_REPO}" \ diff --git a/mcp/servers/mokowaas_api/.mokogitea/workflows/cascade-dev.yml b/mcp/servers/mokosuite_api/.mokogitea/workflows/cascade-dev.yml similarity index 99% rename from mcp/servers/mokowaas_api/.mokogitea/workflows/cascade-dev.yml rename to mcp/servers/mokosuite_api/.mokogitea/workflows/cascade-dev.yml index 23b11a2..a690e21 100644 --- a/mcp/servers/mokowaas_api/.mokogitea/workflows/cascade-dev.yml +++ b/mcp/servers/mokosuite_api/.mokogitea/workflows/cascade-dev.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Maintenance -# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/moko-platform +# INGROUP: mokoplatform.Maintenance +# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/mokoplatform # PATH: /templates/workflows/cascade-dev.yml.template # VERSION: 02.00.00 # BRIEF: Forward-merge main → all open branches after every push to main diff --git a/mcp/servers/mokowaas_api/.mokogitea/workflows/changelog-validation.yml b/mcp/servers/mokosuite_api/.mokogitea/workflows/changelog-validation.yml similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/workflows/changelog-validation.yml rename to mcp/servers/mokosuite_api/.mokogitea/workflows/changelog-validation.yml diff --git a/mcp/servers/mokowaas_api/.mokogitea/workflows/cleanup.yml b/mcp/servers/mokosuite_api/.mokogitea/workflows/cleanup.yml similarity index 96% rename from mcp/servers/mokowaas_api/.mokogitea/workflows/cleanup.yml rename to mcp/servers/mokosuite_api/.mokogitea/workflows/cleanup.yml index a890001..ae3e017 100644 --- a/mcp/servers/mokowaas_api/.mokogitea/workflows/cleanup.yml +++ b/mcp/servers/mokosuite_api/.mokogitea/workflows/cleanup.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Maintenance -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# INGROUP: mokoplatform.Maintenance +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /.gitea/workflows/cleanup.yml # VERSION: 01.00.00 # BRIEF: Scheduled cleanup — delete merged branches and old workflow runs diff --git a/mcp/servers/mokowaas_api/.mokogitea/workflows/codeql-analysis.yml b/mcp/servers/mokosuite_api/.mokogitea/workflows/codeql-analysis.yml similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/workflows/codeql-analysis.yml rename to mcp/servers/mokosuite_api/.mokogitea/workflows/codeql-analysis.yml diff --git a/mcp/servers/mokowaas_api/.mokogitea/workflows/copilot-agent.yml b/mcp/servers/mokosuite_api/.mokogitea/workflows/copilot-agent.yml similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/workflows/copilot-agent.yml rename to mcp/servers/mokosuite_api/.mokogitea/workflows/copilot-agent.yml diff --git a/mcp/servers/mokowaas_api/.mokogitea/workflows/deploy-manual.yml b/mcp/servers/mokosuite_api/.mokogitea/workflows/deploy-manual.yml similarity index 86% rename from mcp/servers/mokowaas_api/.mokogitea/workflows/deploy-manual.yml rename to mcp/servers/mokosuite_api/.mokogitea/workflows/deploy-manual.yml index 6429460..a660ce8 100644 --- a/mcp/servers/mokowaas_api/.mokogitea/workflows/deploy-manual.yml +++ b/mcp/servers/mokosuite_api/.mokogitea/workflows/deploy-manual.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Deploy -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# INGROUP: mokoplatform.Deploy +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /templates/workflows/joomla/deploy-manual.yml.template # VERSION: 04.07.00 # BRIEF: Manual SFTP deploy to dev server for Joomla repos @@ -40,7 +40,7 @@ jobs: run: | php -v && composer --version - - name: Setup moko-platform tools + - name: Setup mokoplatform tools env: GA_TOKEN: ${{ secrets.GA_TOKEN || secrets.GA_TOKEN || github.token }} MOKO_CLONE_TOKEN: ${{ secrets.GA_TOKEN || secrets.GA_TOKEN || github.token }} @@ -48,10 +48,10 @@ jobs: COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GA_TOKEN || github.token }}"}}' run: | git clone --depth 1 --branch main --quiet \ - "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/moko-platform.git" \ - /tmp/moko-platform-api 2>/dev/null || true - if [ -d "/tmp/moko-platform-api" ] && [ -f "/tmp/moko-platform-api/composer.json" ]; then - cd /tmp/moko-platform-api && composer install --no-dev --no-interaction --quiet 2>/dev/null || true + "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/mokoplatform.git" \ + /tmp/mokoplatform-api 2>/dev/null || true + if [ -d "/tmp/mokoplatform-api" ] && [ -f "/tmp/mokoplatform-api/composer.json" ]; then + cd /tmp/mokoplatform-api && composer install --no-dev --no-interaction --quiet 2>/dev/null || true fi - name: Check FTP configuration @@ -101,11 +101,11 @@ jobs: DEPLOY_ARGS=(--path . --src-dir "$SOURCE_DIR" --config /tmp/sftp-config.json) [ "${{ inputs.clear_remote }}" = "true" ] && DEPLOY_ARGS+=(--clear-remote) - PLATFORM=$(php /tmp/moko-platform-api/cli/platform_detect.php --path . 2>/dev/null || true) - if [ "$PLATFORM" = "waas-component" ] && [ -f "/tmp/moko-platform-api/deploy/deploy-joomla.php" ]; then - php /tmp/moko-platform-api/deploy/deploy-joomla.php "${DEPLOY_ARGS[@]}" + PLATFORM=$(php /tmp/mokoplatform-api/cli/platform_detect.php --path . 2>/dev/null || true) + if [ "$PLATFORM" = "waas-component" ] && [ -f "/tmp/mokoplatform-api/deploy/deploy-joomla.php" ]; then + php /tmp/mokoplatform-api/deploy/deploy-joomla.php "${DEPLOY_ARGS[@]}" else - php /tmp/moko-platform-api/deploy/deploy-sftp.php "${DEPLOY_ARGS[@]}" + php /tmp/mokoplatform-api/deploy/deploy-sftp.php "${DEPLOY_ARGS[@]}" fi rm -f /tmp/deploy_key /tmp/sftp-config.json diff --git a/mcp/servers/mokowaas_api/.mokogitea/workflows/enterprise-firewall-setup.yml b/mcp/servers/mokosuite_api/.mokogitea/workflows/enterprise-firewall-setup.yml similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/workflows/enterprise-firewall-setup.yml rename to mcp/servers/mokosuite_api/.mokogitea/workflows/enterprise-firewall-setup.yml diff --git a/mcp/servers/mokowaas_api/.mokogitea/workflows/gitleaks.yml b/mcp/servers/mokosuite_api/.mokogitea/workflows/gitleaks.yml similarity index 98% rename from mcp/servers/mokowaas_api/.mokogitea/workflows/gitleaks.yml rename to mcp/servers/mokosuite_api/.mokogitea/workflows/gitleaks.yml index e0fdd1d..3a62123 100644 --- a/mcp/servers/mokowaas_api/.mokogitea/workflows/gitleaks.yml +++ b/mcp/servers/mokosuite_api/.mokogitea/workflows/gitleaks.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Security -# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/moko-platform +# INGROUP: mokoplatform.Security +# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/mokoplatform # PATH: /templates/workflows/gitleaks.yml.template # VERSION: 01.00.00 # BRIEF: Secret scanning — detect leaked credentials, API keys, and tokens diff --git a/mcp/servers/mokowaas_api/.mokogitea/workflows/mcp-auto-release.yml b/mcp/servers/mokosuite_api/.mokogitea/workflows/mcp-auto-release.yml similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/workflows/mcp-auto-release.yml rename to mcp/servers/mokosuite_api/.mokogitea/workflows/mcp-auto-release.yml diff --git a/mcp/servers/mokowaas_api/.mokogitea/workflows/mcp-build-test.yml b/mcp/servers/mokosuite_api/.mokogitea/workflows/mcp-build-test.yml similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/workflows/mcp-build-test.yml rename to mcp/servers/mokosuite_api/.mokogitea/workflows/mcp-build-test.yml diff --git a/mcp/servers/mokowaas_api/.mokogitea/workflows/mcp-sdk-check.yml b/mcp/servers/mokosuite_api/.mokogitea/workflows/mcp-sdk-check.yml similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/workflows/mcp-sdk-check.yml rename to mcp/servers/mokosuite_api/.mokogitea/workflows/mcp-sdk-check.yml diff --git a/mcp/servers/mokowaas_api/.mokogitea/workflows/mcp-tool-inventory.yml b/mcp/servers/mokosuite_api/.mokogitea/workflows/mcp-tool-inventory.yml similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/workflows/mcp-tool-inventory.yml rename to mcp/servers/mokosuite_api/.mokogitea/workflows/mcp-tool-inventory.yml diff --git a/mcp/servers/mokowaas_api/.mokogitea/workflows/notify.yml b/mcp/servers/mokosuite_api/.mokogitea/workflows/notify.yml similarity index 95% rename from mcp/servers/mokowaas_api/.mokogitea/workflows/notify.yml rename to mcp/servers/mokosuite_api/.mokogitea/workflows/notify.yml index cde4541..dd2eb8d 100644 --- a/mcp/servers/mokowaas_api/.mokogitea/workflows/notify.yml +++ b/mcp/servers/mokosuite_api/.mokogitea/workflows/notify.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Notifications -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# INGROUP: mokoplatform.Notifications +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /.gitea/workflows/notify.yml # VERSION: 01.00.00 # BRIEF: Push notifications via ntfy on release success or workflow failure diff --git a/mcp/servers/mokowaas_api/.mokogitea/workflows/pr-check.yml b/mcp/servers/mokosuite_api/.mokogitea/workflows/pr-check.yml similarity index 98% rename from mcp/servers/mokowaas_api/.mokogitea/workflows/pr-check.yml rename to mcp/servers/mokosuite_api/.mokogitea/workflows/pr-check.yml index bc1a001..cc2455d 100644 --- a/mcp/servers/mokowaas_api/.mokogitea/workflows/pr-check.yml +++ b/mcp/servers/mokosuite_api/.mokogitea/workflows/pr-check.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.CI -# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/moko-platform +# INGROUP: mokoplatform.CI +# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/mokoplatform # PATH: /templates/workflows/universal/pr-check.yml.template # VERSION: 05.00.00 # BRIEF: PR gate — branch policy + code validation before merge @@ -141,7 +141,7 @@ jobs: joomla) MANIFEST=$(find . -maxdepth 3 -name "*.xml" ! -path "./.git/*" -exec grep -l '/dev/null | head -1) if [ -z "$MANIFEST" ]; then - echo "::warning::No Joomla manifest found (WaaS site)" + echo "::warning::No Joomla manifest found (Suite site)" exit 0 fi echo "Manifest: ${MANIFEST}" diff --git a/mcp/servers/mokowaas_api/.mokogitea/workflows/pre-release.yml b/mcp/servers/mokosuite_api/.mokogitea/workflows/pre-release.yml similarity index 89% rename from mcp/servers/mokowaas_api/.mokogitea/workflows/pre-release.yml rename to mcp/servers/mokosuite_api/.mokogitea/workflows/pre-release.yml index 57d3380..bc28df7 100644 --- a/mcp/servers/mokowaas_api/.mokogitea/workflows/pre-release.yml +++ b/mcp/servers/mokosuite_api/.mokogitea/workflows/pre-release.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Release -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# INGROUP: mokoplatform.Release +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /templates/workflows/universal/pre-release.yml.template # VERSION: 05.00.00 # BRIEF: Manual pre-release — builds dev/alpha/beta/rc packages from any branch @@ -52,23 +52,23 @@ jobs: sudo apt-get install -y -qq php-cli php-mbstring php-xml php-zip php-curl >/dev/null 2>&1 fi - - name: Setup moko-platform tools + - name: Setup mokoplatform tools env: MOKO_CLONE_TOKEN: ${{ secrets.GA_TOKEN }} MOKO_CLONE_HOST: git.mokoconsulting.tech/MokoConsulting run: | - git clone --depth 1 --branch main --quiet "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/moko-platform.git" /tmp/moko-platform-api + git clone --depth 1 --branch main --quiet "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/mokoplatform.git" /tmp/mokoplatform-api - name: Detect platform id: platform run: | - php /tmp/moko-platform-api/cli/manifest_read.php --path . --github-output + php /tmp/mokoplatform-api/cli/manifest_read.php --path . --github-output - name: Resolve metadata id: meta run: | STABILITY="${{ inputs.stability }}" - MOKO_API="/tmp/moko-platform-api/cli" + MOKO_API="/tmp/mokoplatform-api/cli" case "$STABILITY" in development) SUFFIX="-dev"; TAG="development" ;; @@ -128,7 +128,7 @@ jobs: PLATFORM="${{ steps.platform.outputs.platform }}" if [ "$PLATFORM" = "joomla" ]; then - php /tmp/moko-platform-api/cli/joomla_build.php --path . --version "${VERSION}" --suffix "${SUFFIX}" --output build --github-output + php /tmp/mokoplatform-api/cli/joomla_build.php --path . --version "${VERSION}" --suffix "${SUFFIX}" --output build --github-output else # Generic build: zip src/ directory SOURCE_DIR="src" @@ -200,7 +200,7 @@ jobs: VERSION="${{ steps.meta.outputs.version }}" STABILITY="${{ steps.meta.outputs.stability }}" SHA256="${{ steps.zip.outputs.sha256 }}" - php /tmp/moko-platform-api/cli/updates_xml_build.php --path . --version "$VERSION" --stability "$STABILITY" --sha "$SHA256" --gitea-url "$GITEA_URL" --org "$GITEA_ORG" --repo "$GITEA_REPO" + php /tmp/mokoplatform-api/cli/updates_xml_build.php --path . --version "$VERSION" --stability "$STABILITY" --sha "$SHA256" --gitea-url "$GITEA_URL" --org "$GITEA_ORG" --repo "$GITEA_REPO" if ! git diff --quiet updates.xml 2>/dev/null; then git config --local user.email "gitea-actions[bot]@mokoconsulting.tech" git config --local user.name "gitea-actions[bot]" @@ -212,7 +212,7 @@ jobs: - name: "Sync updates.xml to all branches" if: steps.platform.outputs.platform == 'joomla' run: | - php /tmp/moko-platform-api/cli/updates_xml_sync.php --path . --current "${{ github.ref_name }}" --branches main,dev --version "${{ steps.meta.outputs.version }}" --token "${{ secrets.GA_TOKEN }}" --org "${GITEA_ORG}" --repo "${GITEA_REPO}" --gitea-url "${GITEA_URL}" + php /tmp/mokoplatform-api/cli/updates_xml_sync.php --path . --current "${{ github.ref_name }}" --branches main,dev --version "${{ steps.meta.outputs.version }}" --token "${{ secrets.GA_TOKEN }}" --org "${GITEA_ORG}" --repo "${GITEA_REPO}" --gitea-url "${GITEA_URL}" - name: "Delete lesser pre-release channels (cascade)" continue-on-error: true diff --git a/mcp/servers/mokowaas_api/.mokogitea/workflows/repo-health.yml b/mcp/servers/mokosuite_api/.mokogitea/workflows/repo-health.yml similarity index 99% rename from mcp/servers/mokowaas_api/.mokogitea/workflows/repo-health.yml rename to mcp/servers/mokosuite_api/.mokogitea/workflows/repo-health.yml index d738ad7..4371829 100644 --- a/mcp/servers/mokowaas_api/.mokogitea/workflows/repo-health.yml +++ b/mcp/servers/mokosuite_api/.mokogitea/workflows/repo-health.yml @@ -7,8 +7,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Validation -# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/moko-platform +# INGROUP: mokoplatform.Validation +# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/mokoplatform # PATH: /templates/workflows/joomla/repo_health.yml.template # VERSION: 04.06.00 # BRIEF: Enforces repository guardrails by validating release configuration, scripts governance, tooling availability, and core repository health artifacts. diff --git a/mcp/servers/mokowaas_api/.mokogitea/workflows/repository-cleanup.yml b/mcp/servers/mokosuite_api/.mokogitea/workflows/repository-cleanup.yml similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/workflows/repository-cleanup.yml rename to mcp/servers/mokosuite_api/.mokogitea/workflows/repository-cleanup.yml diff --git a/mcp/servers/mokowaas_api/.mokogitea/workflows/security-audit.yml b/mcp/servers/mokosuite_api/.mokogitea/workflows/security-audit.yml similarity index 96% rename from mcp/servers/mokowaas_api/.mokogitea/workflows/security-audit.yml rename to mcp/servers/mokosuite_api/.mokogitea/workflows/security-audit.yml index 714d407..f377378 100644 --- a/mcp/servers/mokowaas_api/.mokogitea/workflows/security-audit.yml +++ b/mcp/servers/mokosuite_api/.mokogitea/workflows/security-audit.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Security -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# INGROUP: mokoplatform.Security +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /.gitea/workflows/security-audit.yml # VERSION: 01.00.00 # BRIEF: Dependency vulnerability scanning for composer and npm packages diff --git a/mcp/servers/mokowaas_api/.mokogitea/workflows/standards-compliance.yml b/mcp/servers/mokosuite_api/.mokogitea/workflows/standards-compliance.yml similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/workflows/standards-compliance.yml rename to mcp/servers/mokosuite_api/.mokogitea/workflows/standards-compliance.yml diff --git a/mcp/servers/mokowaas_api/.mokogitea/workflows/sync-version-on-merge.yml b/mcp/servers/mokosuite_api/.mokogitea/workflows/sync-version-on-merge.yml similarity index 100% rename from mcp/servers/mokowaas_api/.mokogitea/workflows/sync-version-on-merge.yml rename to mcp/servers/mokosuite_api/.mokogitea/workflows/sync-version-on-merge.yml diff --git a/mcp/servers/mokowaas_api/CHANGELOG.md b/mcp/servers/mokosuite_api/CHANGELOG.md similarity index 100% rename from mcp/servers/mokowaas_api/CHANGELOG.md rename to mcp/servers/mokosuite_api/CHANGELOG.md diff --git a/mcp/servers/mokowaas_api/CONTRIBUTING.md b/mcp/servers/mokosuite_api/CONTRIBUTING.md similarity index 100% rename from mcp/servers/mokowaas_api/CONTRIBUTING.md rename to mcp/servers/mokosuite_api/CONTRIBUTING.md diff --git a/mcp/servers/mokowaas_api/README.md b/mcp/servers/mokosuite_api/README.md similarity index 89% rename from mcp/servers/mokowaas_api/README.md rename to mcp/servers/mokosuite_api/README.md index 063c130..91200e1 100644 --- a/mcp/servers/mokowaas_api/README.md +++ b/mcp/servers/mokosuite_api/README.md @@ -73,13 +73,13 @@ joomla-api-mcp wraps the entire Joomla Web Services REST API into MCP tools that | Repo | Purpose | |------|---------| | [backup-mcp](https://git.mokoconsulting.tech/MokoConsulting/backup-mcp/wiki) | Backup MCP (uses Joomla API for Akeeba) | -| [MokoWaaS](https://git.mokoconsulting.tech/MokoConsulting/MokoWaaS/wiki) | Joomla WaaS system plugin | -| [Template-Client-WaaS](https://git.mokoconsulting.tech/MokoConsulting/Template-Client-WaaS/wiki) | Client site template | +| [MokoSuite](https://git.mokoconsulting.tech/MokoConsulting/MokoSuite/wiki) | Joomla Suite system plugin | +| [Template-Client-Suite](https://git.mokoconsulting.tech/MokoConsulting/Template-Client-Suite/wiki) | Client site template | | [MokoOnyx](https://git.mokoconsulting.tech/MokoConsulting/MokoOnyx/wiki) | Joomla admin template | --- -> **[MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki)** -- central standards hub for all Moko Consulting projects. +> **[MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki)** -- central standards hub for all Moko Consulting projects. --- @@ -101,4 +101,4 @@ This project is licensed under the GNU General Public License v3.0 or later -- s --- -*[Moko Consulting](https://mokoconsulting.tech) -- [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki/Home)* +*[Moko Consulting](https://mokoconsulting.tech) -- [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki/Home)* diff --git a/mcp/servers/mokowaas_api/SECURITY.md b/mcp/servers/mokosuite_api/SECURITY.md similarity index 100% rename from mcp/servers/mokowaas_api/SECURITY.md rename to mcp/servers/mokosuite_api/SECURITY.md diff --git a/mcp/servers/mokowaas_api/config.example.json b/mcp/servers/mokosuite_api/config.example.json similarity index 100% rename from mcp/servers/mokowaas_api/config.example.json rename to mcp/servers/mokosuite_api/config.example.json diff --git a/mcp/servers/mokosuite_api/package.json b/mcp/servers/mokosuite_api/package.json new file mode 100644 index 0000000..a471f65 --- /dev/null +++ b/mcp/servers/mokosuite_api/package.json @@ -0,0 +1,44 @@ +{ + "name": "@mokoconsulting/mokosuite-mcp", + "version": "1.0.0", + "description": "MCP server for Joomla Web Services API operations", + "type": "module", + "main": "dist/index.js", + "bin": { + "joomla-api-mcp": "dist/index.js" + }, + "scripts": { + "build": "tsc", + "dev": "tsc --watch", + "start": "node dist/index.js", + "lint": "eslint src/", + "setup": "node scripts/setup.mjs", + "clean": "rm -rf dist/" + }, + "dependencies": { + "@modelcontextprotocol/sdk": "^1.12.1", + "zod": "^3.24.4" + }, + "devDependencies": { + "@types/node": "^22.15.3", + "typescript": "^5.8.3" + }, + "engines": { + "node": ">=20.0.0" + }, + "license": "GPL-3.0-or-later", + "author": "Moko Consulting ", + "repository": { + "type": "git", + "url": "https://git.mokoconsulting.tech/MokoConsulting/joomla-api-mcp.git" + }, + "publishConfig": { + "access": "public" + }, + "files": [ + "dist/", + "config.example.json", + "README.md", + "LICENSE" + ] +} \ No newline at end of file diff --git a/mcp/servers/mokowaas_api/scripts/!.gitkeep b/mcp/servers/mokosuite_api/scripts/!.gitkeep similarity index 100% rename from mcp/servers/mokowaas_api/scripts/!.gitkeep rename to mcp/servers/mokosuite_api/scripts/!.gitkeep diff --git a/mcp/servers/mokowaas_api/scripts/index.md b/mcp/servers/mokosuite_api/scripts/index.md similarity index 100% rename from mcp/servers/mokowaas_api/scripts/index.md rename to mcp/servers/mokosuite_api/scripts/index.md diff --git a/mcp/servers/mokowaas_api/scripts/setup.mjs b/mcp/servers/mokosuite_api/scripts/setup.mjs similarity index 100% rename from mcp/servers/mokowaas_api/scripts/setup.mjs rename to mcp/servers/mokosuite_api/scripts/setup.mjs diff --git a/mcp/servers/mokowaas_api/src/client.ts b/mcp/servers/mokosuite_api/src/client.ts similarity index 100% rename from mcp/servers/mokowaas_api/src/client.ts rename to mcp/servers/mokosuite_api/src/client.ts diff --git a/mcp/servers/mokowaas_api/src/config.ts b/mcp/servers/mokosuite_api/src/config.ts similarity index 97% rename from mcp/servers/mokowaas_api/src/config.ts rename to mcp/servers/mokosuite_api/src/config.ts index 9436228..b829d73 100644 --- a/mcp/servers/mokowaas_api/src/config.ts +++ b/mcp/servers/mokosuite_api/src/config.ts @@ -18,7 +18,7 @@ import { resolve } from 'node:path'; import { homedir } from 'node:os'; import type { JoomlaConfig, JoomlaConnection } from './types.js'; -const CONFIG_FILENAME = '.mcp_mokowaas.json'; +const CONFIG_FILENAME = '.mcp_mokosuite.json'; export async function loadConfig(): Promise { const config_path = process.env.JOOMLA_API_MCP_CONFIG diff --git a/mcp/servers/mokowaas_api/src/index.ts b/mcp/servers/mokosuite_api/src/index.ts similarity index 99% rename from mcp/servers/mokowaas_api/src/index.ts rename to mcp/servers/mokosuite_api/src/index.ts index 19ff5be..1262449 100644 --- a/mcp/servers/mokowaas_api/src/index.ts +++ b/mcp/servers/mokosuite_api/src/index.ts @@ -1205,14 +1205,14 @@ server.tool( server.tool( 'joomla_health_check', - 'Call the MokoWaaS health endpoint (/?mokowaas=health) on a connected site', + 'Call the MokoSuite health endpoint (/?mokosuite=health) on a connected site', { token: z.string().describe('Health API bearer token'), ...ConnectionParam, }, async ({ token, connection }) => { const conn = getConnection(config, connection); - const url = conn.baseUrl.replace(/\/+$/, '') + '/?mokowaas=health'; + const url = conn.baseUrl.replace(/\/+$/, '') + '/?mokosuite=health'; try { const res = await fetch(url, { headers: { 'Authorization': `Bearer ${token}` }, @@ -1232,7 +1232,7 @@ server.tool( server.tool( 'joomla_heartbeat_status', - 'Check if a site is registered with the MokoWaaS heartbeat receiver', + 'Check if a site is registered with the MokoSuite heartbeat receiver', { site_url: z.string().describe('Site URL to check'), ...ConnectionParam, @@ -1244,7 +1244,7 @@ server.tool( method: 'POST', headers: { 'Content-Type': 'application/json', - 'X-MokoWaaS-Key': 'moko-waas-hb-2026-x9k4m', + 'X-MokoSuite-Key': 'moko-waas-hb-2026-x9k4m', }, body: JSON.stringify({ site_url }), signal: AbortSignal.timeout(10000), diff --git a/mcp/servers/mokowaas_api/src/types.ts b/mcp/servers/mokosuite_api/src/types.ts similarity index 100% rename from mcp/servers/mokowaas_api/src/types.ts rename to mcp/servers/mokosuite_api/src/types.ts diff --git a/mcp/servers/mokowaas_api/tsconfig.json b/mcp/servers/mokosuite_api/tsconfig.json similarity index 100% rename from mcp/servers/mokowaas_api/tsconfig.json rename to mcp/servers/mokosuite_api/tsconfig.json diff --git a/mcp/servers/mokowaas_api/package.json b/mcp/servers/mokowaas_api/package.json deleted file mode 100644 index 9e35c2d..0000000 --- a/mcp/servers/mokowaas_api/package.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "@mokoconsulting/mcp-mokowaas-api", - "version": "1.0.0", - "description": "MCP server for Joomla Web Services API operations", - "type": "module", - "main": "dist/index.js", - "bin": { - "joomla-api-mcp": "dist/index.js" - }, - "scripts": { - "build": "tsc", - "dev": "tsc --watch", - "start": "node dist/index.js", - "lint": "eslint src/", - "setup": "node scripts/setup.mjs", - "clean": "rm -rf dist/" - }, - "dependencies": { - "@modelcontextprotocol/sdk": "^1.12.1", - "zod": "^3.24.4" - }, - "devDependencies": { - "@types/node": "^22.15.3", - "typescript": "^5.8.3" - }, - "engines": { - "node": ">=20.0.0" - }, - "license": "GPL-3.0-or-later", - "author": "Moko Consulting ", - "repository": { - "type": "git", - "url": "https://git.mokoconsulting.tech/MokoConsulting/joomla-api-mcp.git" - } -} diff --git a/mcp/servers/windows/.mokogitea/CLAUDE.md b/mcp/servers/windows/.mokogitea/CLAUDE.md index 38fdb1d..88835f8 100644 --- a/mcp/servers/windows/.mokogitea/CLAUDE.md +++ b/mcp/servers/windows/.mokogitea/CLAUDE.md @@ -41,4 +41,4 @@ src/ - **Attribution**: `Authored-by: Moko Consulting` - **Workflow directory**: `.mokogitea/` (not `.gitea/` or `.github/`) - **Wiki**: documentation lives in the Gitea wiki, not `docs/` files -- **Standards**: [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki/Home) +- **Standards**: [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki/Home) diff --git a/mcp/servers/windows/.mokogitea/ISSUE_TEMPLATE/config.yml b/mcp/servers/windows/.mokogitea/ISSUE_TEMPLATE/config.yml index d4d49ec..7c403f1 100644 --- a/mcp/servers/windows/.mokogitea/ISSUE_TEMPLATE/config.yml +++ b/mcp/servers/windows/.mokogitea/ISSUE_TEMPLATE/config.yml @@ -8,7 +8,7 @@ contact_links: url: https://mokoconsulting.tech/ about: Get help or ask questions through our website - name: 📚 MokoStandards Documentation - url: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + url: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform about: View our coding standards and best practices - name: 🔒 Report a Security Vulnerability url: https://git.mokoconsulting.tech/mokoconsulting-tech/.github-private/security/advisories/new diff --git a/mcp/servers/windows/.mokogitea/manifest.xml b/mcp/servers/windows/.mokogitea/manifest.xml index 223c587..a030851 100644 --- a/mcp/servers/windows/.mokogitea/manifest.xml +++ b/mcp/servers/windows/.mokogitea/manifest.xml @@ -2,9 +2,9 @@ - + mcp-windows MokoConsulting @@ -14,11 +14,11 @@ mcp 05.00.00 - https://git.mokoconsulting.tech/MokoConsulting/moko-platform + https://git.mokoconsulting.tech/MokoConsulting/mokoplatform TypeScript mcp-server src/ - + diff --git a/mcp/servers/windows/.mokogitea/workflows/auto-release.yml b/mcp/servers/windows/.mokogitea/workflows/auto-release.yml index 2201100..e318e7a 100644 --- a/mcp/servers/windows/.mokogitea/workflows/auto-release.yml +++ b/mcp/servers/windows/.mokogitea/workflows/auto-release.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Release -# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/moko-platform +# INGROUP: mokoplatform.Release +# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/mokoplatform # PATH: /templates/workflows/universal/auto-release.yml.template # VERSION: 05.00.00 # BRIEF: Universal build & release � detects platform from manifest.xml @@ -56,7 +56,7 @@ jobs: token: ${{ secrets.GA_TOKEN }} fetch-depth: 0 - - name: Setup moko-platform tools + - name: Setup mokoplatform tools env: MOKO_CLONE_TOKEN: ${{ secrets.GA_TOKEN }} MOKO_CLONE_HOST: git.mokoconsulting.tech/MokoConsulting @@ -67,9 +67,9 @@ jobs: sudo apt-get update -qq && sudo apt-get install -y -qq php-cli php-mbstring php-xml php-zip php-curl composer >/dev/null 2>&1 fi git clone --depth 1 --branch main --quiet \ - "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/moko-platform.git" \ - /tmp/moko-platform-api - cd /tmp/moko-platform-api + "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/mokoplatform.git" \ + /tmp/mokoplatform-api + cd /tmp/mokoplatform-api composer install --no-dev --no-interaction --quiet @@ -77,7 +77,7 @@ jobs: - name: Detect platform id: platform run: | - php /tmp/moko-platform-api/cli/manifest_read.php --path . --github-output + php /tmp/mokoplatform-api/cli/manifest_read.php --path . --github-output MANIFEST=$(find . -maxdepth 3 -name "*.xml" ! -path "./.git/*" -exec grep -l '/dev/null | head -1 || true) MOD_FILE=$(find . -maxdepth 4 -name "mod*.class.php" ! -path "./.git/*" -exec grep -l 'extends DolibarrModules' {} \; 2>/dev/null | head -1 || true) echo "manifest=${MANIFEST}" >> "$GITHUB_OUTPUT" @@ -86,7 +86,7 @@ jobs: - name: "Step 1: Read version" id: version run: | - VERSION=$(php /tmp/moko-platform-api/cli/version_read.php --path .) + VERSION=$(php /tmp/mokoplatform-api/cli/version_read.php --path .) if [ -z "$VERSION" ]; then echo "::error::No VERSION in README.md" echo "skip=true" >> "$GITHUB_OUTPUT" @@ -102,7 +102,7 @@ jobs: id: bump if: steps.version.outputs.skip != 'true' run: | - MOKO_API="/tmp/moko-platform-api/cli" + MOKO_API="/tmp/mokoplatform-api/cli" BUMP=$(php ${MOKO_API}/version_bump.php --path . --minor) VERSION=$(echo "$BUMP" | grep -oP '\d{2}\.\d{2}\.\d{2}$' || true) [ -z "$VERSION" ] && VERSION=$(php ${MOKO_API}/version_read.php --path .) @@ -252,7 +252,7 @@ jobs: steps.check.outputs.already_released != 'true' run: | VERSION="${{ steps.bump.outputs.version || steps.version.outputs.version }}" - php /tmp/moko-platform-api/cli/version_set_platform.php \ + php /tmp/mokoplatform-api/cli/version_set_platform.php \ --path . --version "$VERSION" --branch main # -- STEP 4: Update version badges ---------------------------------------- @@ -260,7 +260,7 @@ jobs: if: steps.version.outputs.skip != 'true' run: | VERSION="${{ steps.bump.outputs.version || steps.version.outputs.version }}" - php /tmp/moko-platform-api/cli/badge_update.php --path . --version "${VERSION}" 2>/dev/null || true + php /tmp/mokoplatform-api/cli/badge_update.php --path . --version "${VERSION}" 2>/dev/null || true - name: "Step 5: Write update stream" if: >- @@ -268,7 +268,7 @@ jobs: steps.platform.outputs.platform == 'joomla' run: | VERSION="${{ steps.bump.outputs.version || steps.version.outputs.version }}" - php /tmp/moko-platform-api/cli/updates_xml_build.php \ + php /tmp/mokoplatform-api/cli/updates_xml_build.php \ --path . --version "${VERSION}" --stability stable \ --gitea-url "${GITEA_URL}" --org "${GITEA_ORG}" --repo "${GITEA_REPO}" \ --github-output @@ -333,7 +333,7 @@ jobs: fi [ -z "$EXT_NAME" ] && EXT_NAME="${GITEA_REPO}" - NOTES=$(php /tmp/moko-platform-api/cli/release_notes.php --path . --version "$VERSION" 2>/dev/null) + NOTES=$(php /tmp/mokoplatform-api/cli/release_notes.php --path . --version "$VERSION" 2>/dev/null) [ -z "$NOTES" ] && NOTES="Release ${VERSION}" # Build release name: "Pretty Name VERSION (type_element-VERSION)" @@ -424,8 +424,8 @@ jobs: [ ! -d "$SOURCE_DIR" ] && SOURCE_DIR="htdocs" [ ! -d "$SOURCE_DIR" ] && { echo "No src/ or htdocs/"; exit 0; } - # ZIP package (type-aware via moko-platform PHP API) - php /tmp/moko-platform-api/cli/joomla_build.php --path . --version "${VERSION}" --output /tmp + # ZIP package (type-aware via mokoplatform PHP API) + php /tmp/mokoplatform-api/cli/joomla_build.php --path . --version "${VERSION}" --output /tmp # Match the expected ZIP_NAME for upload BUILT_ZIP=$(ls /tmp/${TYPE_PREFIX}${EXT_ELEMENT}-${VERSION}.zip 2>/dev/null | head -1 || true) if [ -n "$BUILT_ZIP" ] && [ "$BUILT_ZIP" != "/tmp/${ZIP_NAME}" ]; then @@ -639,7 +639,7 @@ jobs: BRANCH="${{ steps.version.outputs.branch }}" GH_REPO="${{ vars.GH_MIRROR_REPO || github.repository }}" - NOTES=$(php /tmp/moko-platform-api/cli/release_notes.php --path . --version "$VERSION" 2>/dev/null || true) + NOTES=$(php /tmp/mokoplatform-api/cli/release_notes.php --path . --version "$VERSION" 2>/dev/null || true) [ -z "$NOTES" ] && NOTES="Release ${VERSION}" echo "$NOTES" > /tmp/release_notes.md @@ -688,7 +688,7 @@ jobs: - name: "Delete lesser pre-release channels" continue-on-error: true run: | - php /tmp/moko-platform-api/cli/release_cascade.php \ + php /tmp/mokoplatform-api/cli/release_cascade.php \ --stability stable \ --token "${{ secrets.GA_TOKEN }}" \ --org "${GITEA_ORG}" --repo "${GITEA_REPO}" \ diff --git a/mcp/servers/windows/.mokogitea/workflows/mcp-auto-release.yml b/mcp/servers/windows/.mokogitea/workflows/mcp-auto-release.yml index 4aab368..14c565c 100644 --- a/mcp/servers/windows/.mokogitea/workflows/mcp-auto-release.yml +++ b/mcp/servers/windows/.mokogitea/workflows/mcp-auto-release.yml @@ -87,13 +87,13 @@ jobs: done # ── Version ────────────────────────────────────────────────────── - - name: Setup moko-platform tools + - name: Setup mokoplatform tools env: GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_TOKEN || github.token }}"}}' run: | git clone --depth 1 --branch version/04 --quiet \ - "https://x-access-token:${GH_TOKEN}@github.com/MokoConsulting/moko-platform.git" \ + "https://x-access-token:${GH_TOKEN}@github.com/MokoConsulting/mokoplatform.git" \ /tmp/mokostandards cd /tmp/mokostandards composer install --no-dev --no-interaction --quiet diff --git a/mcp/servers/windows/.mokogitea/workflows/pre-release.yml b/mcp/servers/windows/.mokogitea/workflows/pre-release.yml index 44d3de6..dc7001f 100644 --- a/mcp/servers/windows/.mokogitea/workflows/pre-release.yml +++ b/mcp/servers/windows/.mokogitea/workflows/pre-release.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Release -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# INGROUP: mokoplatform.Release +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /templates/workflows/universal/pre-release.yml.template # VERSION: 05.01.00 # BRIEF: Manual pre-release -- builds dev/alpha/beta/rc packages from any branch @@ -47,25 +47,25 @@ jobs: - name: Setup tools run: | - # Update moko-platform CLI tools if available; install PHP if missing - if command -v moko-platform-update &> /dev/null; then - moko-platform-update - elif [ -d "/opt/moko-platform" ]; then - cd /opt/moko-platform && git pull origin main --quiet 2>/dev/null || true + # Update mokoplatform CLI tools if available; install PHP if missing + if command -v mokoplatform-update &> /dev/null; then + mokoplatform-update + elif [ -d "/opt/mokoplatform" ]; then + cd /opt/mokoplatform && git pull origin main --quiet 2>/dev/null || true else if ! command -v php &> /dev/null; then sudo apt-get update -qq sudo apt-get install -y -qq php-cli php-mbstring php-xml php-zip php-curl >/dev/null 2>&1 fi git clone --depth 1 --branch main --quiet \ - "https://x-access-token:${{ secrets.GA_TOKEN }}@git.mokoconsulting.tech/MokoConsulting/moko-platform.git" \ - /tmp/moko-platform-api + "https://x-access-token:${{ secrets.GA_TOKEN }}@git.mokoconsulting.tech/MokoConsulting/mokoplatform.git" \ + /tmp/mokoplatform-api fi # Set MOKO_CLI to whichever path exists - if [ -d "/opt/moko-platform/cli" ]; then - echo "MOKO_CLI=/opt/moko-platform/cli" >> "$GITHUB_ENV" + if [ -d "/opt/mokoplatform/cli" ]; then + echo "MOKO_CLI=/opt/mokoplatform/cli" >> "$GITHUB_ENV" else - echo "MOKO_CLI=/tmp/moko-platform-api/cli" >> "$GITHUB_ENV" + echo "MOKO_CLI=/tmp/mokoplatform-api/cli" >> "$GITHUB_ENV" fi - name: Detect platform diff --git a/mcp/servers/windows/README.md b/mcp/servers/windows/README.md index 268c8da..da2e99d 100644 --- a/mcp/servers/windows/README.md +++ b/mcp/servers/windows/README.md @@ -77,4 +77,4 @@ This project is licensed under the GNU General Public License v3.0 or later -- s --- -*[Moko Consulting](https://mokoconsulting.tech) -- [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki/Home)* +*[Moko Consulting](https://mokoconsulting.tech) -- [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki/Home)* diff --git a/mcp/src/config.ts b/mcp/src/config.ts index 5f399a4..b62052a 100644 --- a/mcp/src/config.ts +++ b/mcp/src/config.ts @@ -7,7 +7,7 @@ * FILE INFORMATION * DEFGROUP: mokostandards-mcp.Config * INGROUP: MokoStandards-API - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /mcp/src/config.ts * BRIEF: Configuration loader for MokoStandards MCP server */ diff --git a/mcp/src/index.ts b/mcp/src/index.ts index 78006a8..ebc74fb 100644 --- a/mcp/src/index.ts +++ b/mcp/src/index.ts @@ -8,7 +8,7 @@ * FILE INFORMATION * DEFGROUP: mokostandards-mcp.Server * INGROUP: MokoStandards-API - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /mcp/src/index.ts * BRIEF: MCP server entry point — exposes MokoStandards governance tools */ diff --git a/mcp/src/runner.ts b/mcp/src/runner.ts index 1dab7ab..528a37d 100644 --- a/mcp/src/runner.ts +++ b/mcp/src/runner.ts @@ -7,7 +7,7 @@ * FILE INFORMATION * DEFGROUP: mokostandards-mcp.Runner * INGROUP: MokoStandards-API - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /mcp/src/runner.ts * BRIEF: PHP CLI command runner for MokoStandards tools — uses execFile (no shell injection) */ diff --git a/mcp/src/types.ts b/mcp/src/types.ts index 06229c0..275273e 100644 --- a/mcp/src/types.ts +++ b/mcp/src/types.ts @@ -7,7 +7,7 @@ * FILE INFORMATION * DEFGROUP: mokostandards-mcp.Types * INGROUP: MokoStandards-API - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /mcp/src/types.ts * BRIEF: TypeScript type definitions for MokoStandards MCP server */ diff --git a/phpcs.xml b/phpcs.xml index be6b24c..87386bb 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -6,8 +6,8 @@ This file is part of a Moko Consulting project. SPDX-License-Identifier: GPL-3.0-or-later --> - - PHP_CodeSniffer configuration for moko-platform projects + + PHP_CodeSniffer configuration for mokoplatform projects lib diff --git a/plugin_health_check.php b/plugin_health_check.php index 7bedb76..eb5a27d 100755 --- a/plugin_health_check.php +++ b/plugin_health_check.php @@ -9,7 +9,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Scripts.Plugin * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /plugin_health_check.php * BRIEF: Run health checks on a project using the auto-detected or specified plugin */ diff --git a/plugin_list.php b/plugin_list.php index 4f55a51..4f1adda 100755 --- a/plugin_list.php +++ b/plugin_list.php @@ -9,7 +9,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Scripts.Plugin * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /plugin_list.php * BRIEF: List all available project-type plugins and their capabilities */ diff --git a/plugin_metrics.php b/plugin_metrics.php index 63214a5..ea22e60 100755 --- a/plugin_metrics.php +++ b/plugin_metrics.php @@ -9,7 +9,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Scripts.Plugin * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /plugin_metrics.php * BRIEF: Collect project metrics using the auto-detected or specified plugin */ diff --git a/plugin_readiness.php b/plugin_readiness.php index ee55eb9..33b06bd 100755 --- a/plugin_readiness.php +++ b/plugin_readiness.php @@ -9,7 +9,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Scripts.Plugin * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /plugin_readiness.php * BRIEF: Check release readiness of a project using the auto-detected or specified plugin */ diff --git a/plugin_validate.php b/plugin_validate.php index 24bd666..1f95f6f 100755 --- a/plugin_validate.php +++ b/plugin_validate.php @@ -9,7 +9,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Scripts.Plugin * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /plugin_validate.php * BRIEF: Validate a project's structure and standards using the auto-detected or specified plugin */ diff --git a/release/generate_dolibarr_version_txt.php b/release/generate_dolibarr_version_txt.php index fa5efbb..2164614 100644 --- a/release/generate_dolibarr_version_txt.php +++ b/release/generate_dolibarr_version_txt.php @@ -10,7 +10,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Release * INGROUP: MokoPlatform.Scripts - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /release/generate_dolibarr_version_txt.php * BRIEF: Create or update version.txt on Dolibarr module release * diff --git a/release/generate_joomla_update_xml.php b/release/generate_joomla_update_xml.php index 59e834c..12a5cb7 100644 --- a/release/generate_joomla_update_xml.php +++ b/release/generate_joomla_update_xml.php @@ -10,7 +10,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Release * INGROUP: MokoPlatform.Scripts - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /release/generate_joomla_update_xml.php * BRIEF: Create or update the in updates.xml on release * @@ -35,7 +35,7 @@ * [--zip-url=https://github.com/org/repo/releases/download/v1.2.0/mod_foo-1.2.0.zip] \ * [--inject-updateserver] * - * Usage (remote — from moko-platform): + * Usage (remote — from mokoplatform): * php generate_joomla_update_xml.php \ * --repo=mokoconsulting-tech/WaasComponent \ * --tag=v1.2.0 \ diff --git a/src/functions.php b/src/functions.php index 62d05c9..674c8d6 100644 --- a/src/functions.php +++ b/src/functions.php @@ -1,6 +1,6 @@ * @@ -9,11 +9,11 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Common * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /src/functions.php * BRIEF: Common utility functions * - * This file provides global helper functions for moko-platform. + * This file provides global helper functions for mokoplatform. * * @package MokoPlatform * @version 04.00.04 @@ -23,7 +23,7 @@ declare(strict_types=1); if (!function_exists('mokostandards_version')) { /** - * Get the moko-platform version + * Get the mokoplatform version * * @return string Version number */ @@ -35,7 +35,7 @@ if (!function_exists('mokostandards_version')) { if (!function_exists('mokostandards_root_dir')) { /** - * Get the moko-platform root directory + * Get the mokoplatform root directory * * @return string Root directory path */ diff --git a/templates/configs/README.md b/templates/configs/README.md index 1a0aef2..090343d 100644 --- a/templates/configs/README.md +++ b/templates/configs/README.md @@ -8,14 +8,14 @@ SPDX-License-Identifier: GPL-3.0-or-later # FILE INFORMATION DEFGROUP: MokoPlatform.Templates INGROUP: MokoPlatform -REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PATH: /templates/configs/README.md BRIEF: Code quality and security tool configuration templates --> # Code Quality Configuration Templates -This directory contains standardized configuration files for code quality, linting, and security tools used across moko-platform projects. +This directory contains standardized configuration files for code quality, linting, and security tools used across mokoplatform projects. ## Available Configurations @@ -296,9 +296,9 @@ These tools work seamlessly with: ## Support and Updates -Configuration templates are maintained in the moko-platform repository: -- **Repository**: https://git.mokoconsulting.tech/MokoConsulting/moko-platform -- **Documentation**: https://git.mokoconsulting.tech/MokoConsulting/moko-platform/tree/main/docs +Configuration templates are maintained in the mokoplatform repository: +- **Repository**: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform +- **Documentation**: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/tree/main/docs - **Issues**: Report problems or suggest improvements via GitHub Issues ## Version History diff --git a/templates/configs/index.md b/templates/configs/index.md index f6e7e5d..5694b82 100644 --- a/templates/configs/index.md +++ b/templates/configs/index.md @@ -4,7 +4,7 @@ SPDX-License-Identifier: GPL-3.0-or-later FILE INFORMATION DEFGROUP: MokoPlatform.Index INGROUP: MokoPlatform.Templates.Configs -REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PATH: /templates/configs/index.md BRIEF: Configuration templates directory index --> diff --git a/templates/configs/manifest.xml.template b/templates/configs/manifest.xml.template index 926fde8..72dd4f6 100644 --- a/templates/configs/manifest.xml.template +++ b/templates/configs/manifest.xml.template @@ -5,17 +5,17 @@ FILE INFORMATION DEFGROUP: MokoPlatform.Templates.Config INGROUP: MokoPlatform.Templates - REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PATH: /templates/configs/manifest.xml.template BRIEF: XML manifest template — synced to .mokogitea/manifest.xml in every governed repository NOTE: This template is a reference only. The bulk sync generates XML via MokoStandardsParser::generate(). - moko-platform Repository Manifest - Auto-generated by moko-platform bulk sync. + mokoplatform Repository Manifest + Auto-generated by mokoplatform bulk sync. Manual edits to and may be overwritten. See: docs/standards/manifest-file-spec.md --> - @@ -28,11 +28,11 @@ {{platform}} {{standards_version}} - https://git.mokoconsulting.tech/MokoConsulting/moko-platform + https://git.mokoconsulting.tech/MokoConsulting/mokoplatform {{PRIMARY_LANGUAGE}} - + diff --git a/templates/configs/manifest.yml.template b/templates/configs/manifest.yml.template index 4db407f..7960eb1 100644 --- a/templates/configs/manifest.yml.template +++ b/templates/configs/manifest.yml.template @@ -3,17 +3,17 @@ # FILE INFORMATION # DEFGROUP: MokoPlatform.Templates.Config # INGROUP: MokoPlatform.Templates -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /templates/configs/manifest.yml.template # BRIEF: Governance attachment template — synced to .mokogitea/manifest.xml in every governed repository # NOTE: Tokens replaced at sync time: {{org}}, {{repo_name}}, {{platform}}, {{standards_version}} # -# This file is managed automatically by moko-platform bulk sync. +# This file is managed automatically by mokoplatform bulk sync. # Do not edit manually — changes will be overwritten on the next sync. -# To update governance settings, open a PR in moko-platform instead: -# https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# To update governance settings, open a PR in mokoplatform instead: +# https://git.mokoconsulting.tech/MokoConsulting/mokoplatform -standards_source: "https://git.mokoconsulting.tech/MokoConsulting/moko-platform" +standards_source: "https://git.mokoconsulting.tech/MokoConsulting/mokoplatform" standards_version: "{{standards_version}}" platform: "{{platform}}" governed_repo: "{{org}}/{{repo_name}}" diff --git a/templates/configs/mokostandards.xml.template b/templates/configs/mokostandards.xml.template index dbfc296..f9974ad 100644 --- a/templates/configs/mokostandards.xml.template +++ b/templates/configs/mokostandards.xml.template @@ -5,17 +5,17 @@ FILE INFORMATION DEFGROUP: MokoPlatform.Templates.Config INGROUP: MokoPlatform.Templates - REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PATH: /templates/configs/manifest.xml.template BRIEF: XML manifest template — synced to .mokogitea/manifest.xml in every governed repository NOTE: This template is a reference only. The bulk sync generates XML via MokoStandardsParser::generate(). - moko-platform Repository Manifest - Auto-generated by moko-platform bulk sync. + mokoplatform Repository Manifest + Auto-generated by mokoplatform bulk sync. Manual edits to and may be overwritten. See: docs/standards/manifest-file-spec.md --> - @@ -28,11 +28,11 @@ {{platform}} {{standards_version}} - https://git.mokoconsulting.tech/MokoConsulting/moko-platform + https://git.mokoconsulting.tech/MokoConsulting/mokoplatform {{PRIMARY_LANGUAGE}} - + diff --git a/templates/configs/mokostandards.yml.template b/templates/configs/mokostandards.yml.template index 4e3378c..9788a42 100644 --- a/templates/configs/mokostandards.yml.template +++ b/templates/configs/mokostandards.yml.template @@ -3,17 +3,17 @@ # FILE INFORMATION # DEFGROUP: MokoPlatform.Templates.Config # INGROUP: MokoPlatform.Templates -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /templates/configs/moko-standards.yml.template # BRIEF: Governance attachment template — synced to .mokostandards in every governed repository # NOTE: Tokens replaced at sync time: {{org}}, {{repo_name}}, {{platform}}, {{standards_version}} # -# This file is managed automatically by moko-platform bulk sync. +# This file is managed automatically by mokoplatform bulk sync. # Do not edit manually — changes will be overwritten on the next sync. -# To update governance settings, open a PR in moko-platform instead: -# https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# To update governance settings, open a PR in mokoplatform instead: +# https://git.mokoconsulting.tech/MokoConsulting/mokoplatform -standards_source: "https://git.mokoconsulting.tech/MokoConsulting/moko-platform" +standards_source: "https://git.mokoconsulting.tech/MokoConsulting/mokoplatform" standards_version: "{{standards_version}}" platform: "{{platform}}" governed_repo: "{{org}}/{{repo_name}}" diff --git a/templates/configs/phpcs.xml b/templates/configs/phpcs.xml index ddb471f..16c0166 100644 --- a/templates/configs/phpcs.xml +++ b/templates/configs/phpcs.xml @@ -6,8 +6,8 @@ This file is part of a Moko Consulting project. SPDX-License-Identifier: GPL-3.0-or-later --> - - PHP_CodeSniffer configuration for moko-platform projects + + PHP_CodeSniffer configuration for mokoplatform projects src diff --git a/templates/docs/README.md b/templates/docs/README.md index dfec43a..0ee1d65 100644 --- a/templates/docs/README.md +++ b/templates/docs/README.md @@ -4,7 +4,7 @@ SPDX-License-Identifier: GPL-3.0-or-later FILE INFORMATION DEFGROUP: MokoPlatform.Index INGROUP: MokoPlatform.Templates.Docs -REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PATH: /templates/docs/README.md BRIEF: Documentation templates README --> @@ -13,7 +13,7 @@ BRIEF: Documentation templates README ## Purpose -This directory contains governed documentation templates for the moko-platform organization. These templates ensure consistency, completeness, and compliance across all documentation artifacts. +This directory contains governed documentation templates for the mokoplatform organization. These templates ensure consistency, completeness, and compliance across all documentation artifacts. ## Intended Use diff --git a/templates/docs/extra/README.md b/templates/docs/extra/README.md index edafb43..4f14c08 100644 --- a/templates/docs/extra/README.md +++ b/templates/docs/extra/README.md @@ -4,7 +4,7 @@ SPDX-License-Identifier: GPL-3.0-or-later FILE INFORMATION DEFGROUP: MokoPlatform.Index INGROUP: MokoPlatform.Templates.Docs.Extra -REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PATH: /templates/docs/extra/README.md BRIEF: Extra documentation templates README --> diff --git a/templates/docs/extra/index.md b/templates/docs/extra/index.md index 5d85e61..5106b13 100644 --- a/templates/docs/extra/index.md +++ b/templates/docs/extra/index.md @@ -4,7 +4,7 @@ SPDX-License-Identifier: GPL-3.0-or-later FILE INFORMATION DEFGROUP: MokoPlatform.Index INGROUP: MokoPlatform.Templates.Docs.Extra -REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PATH: /templates/docs/extra/index.md BRIEF: Extra documentation templates directory index --> diff --git a/templates/docs/index.md b/templates/docs/index.md index b224004..cc4bf25 100644 --- a/templates/docs/index.md +++ b/templates/docs/index.md @@ -4,7 +4,7 @@ SPDX-License-Identifier: GPL-3.0-or-later FILE INFORMATION DEFGROUP: MokoPlatform.Index INGROUP: MokoPlatform.Templates.Docs -REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PATH: /templates/docs/index.md BRIEF: Documentation templates directory index --> diff --git a/templates/docs/required/GOVERNANCE.md b/templates/docs/required/GOVERNANCE.md index 270eddd..50ff3ef 100644 --- a/templates/docs/required/GOVERNANCE.md +++ b/templates/docs/required/GOVERNANCE.md @@ -24,7 +24,7 @@ BRIEF: Project governance rules, roles, and decision process for {{repo_name}} --> -[![moko-platform](https://img.shields.io/badge/moko--platform-{{standards_version}}-blue)](https://git.mokoconsulting.tech/MokoConsulting/moko-platform) +[![mokoplatform](https://img.shields.io/badge/moko--platform-{{standards_version}}-blue)](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform) # Project Governance @@ -32,10 +32,10 @@ This document defines the governance model for the `{{repo_name}}` repository within the `{{org}}` organization. It is automatically maintained by -[moko-platform](https://git.mokoconsulting.tech/MokoConsulting/moko-platform) v{{standards_version}}. +[mokoplatform](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform) v{{standards_version}}. -Full governance policy is defined in the moko-platform source repository: -[docs/policy/GOVERNANCE.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/policy/GOVERNANCE.md) +Full governance policy is defined in the mokoplatform source repository: +[docs/policy/GOVERNANCE.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/policy/GOVERNANCE.md) --- @@ -80,7 +80,7 @@ available. The following requirements remain mandatory regardless: 4. **Documentation** — changes are documented in `CHANGELOG.md`. See the full policy: -[Sole Operator Policy](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/policy/GOVERNANCE.md#sole-operator-policy) +[Sole Operator Policy](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/policy/GOVERNANCE.md#sole-operator-policy) --- @@ -113,7 +113,7 @@ See the full policy: | Applies To | {{org}}/{{repo_name}} | | Jurisdiction | Tennessee, USA | | Maintainer | @mokoconsulting-tech | -| Standards | moko-platform v{{standards_version}} | +| Standards | mokoplatform v{{standards_version}} | | Repo | https://github.com/{{org}}/{{repo_name}} | | Path | /GOVERNANCE.md | -| Status | Active — auto-maintained by moko-platform | +| Status | Active — auto-maintained by mokoplatform | diff --git a/templates/docs/required/README.md b/templates/docs/required/README.md index 0c0a053..310aa4a 100644 --- a/templates/docs/required/README.md +++ b/templates/docs/required/README.md @@ -4,7 +4,7 @@ SPDX-License-Identifier: GPL-3.0-or-later FILE INFORMATION DEFGROUP: MokoPlatform.Index INGROUP: MokoPlatform.Templates.Docs.Required -REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PATH: /templates/docs/required/README.md BRIEF: Required documentation templates README --> @@ -13,7 +13,7 @@ BRIEF: Required documentation templates README ## Purpose -This directory contains mandatory documentation templates that MUST be present in all repositories governed by moko-platform documentation policies. These templates ensure baseline documentation compliance and organizational consistency. +This directory contains mandatory documentation templates that MUST be present in all repositories governed by mokoplatform documentation policies. These templates ensure baseline documentation compliance and organizational consistency. ## Intended Use diff --git a/templates/docs/required/index.md b/templates/docs/required/index.md index 50e3e38..17cef8b 100644 --- a/templates/docs/required/index.md +++ b/templates/docs/required/index.md @@ -4,7 +4,7 @@ SPDX-License-Identifier: GPL-3.0-or-later FILE INFORMATION DEFGROUP: MokoPlatform.Index INGROUP: MokoPlatform.Templates.Docs.Required -REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PATH: /templates/docs/required/index.md BRIEF: Required documentation templates directory index --> diff --git a/templates/docs/required/template-CONTRIBUTING.md b/templates/docs/required/template-CONTRIBUTING.md index 16263db..920b1bf 100644 --- a/templates/docs/required/template-CONTRIBUTING.md +++ b/templates/docs/required/template-CONTRIBUTING.md @@ -24,7 +24,7 @@ Thank you for your interest in contributing to **{{REPO_NAME}}**! -This repository is governed by **[moko-platform](https://git.mokoconsulting.tech/MokoConsulting/moko-platform)** — the authoritative source of coding standards, workflows, and policies for all Moko Consulting repositories. +This repository is governed by **[mokoplatform](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform)** — the authoritative source of coding standards, workflows, and policies for all Moko Consulting repositories. ## Branch Strategy @@ -49,9 +49,9 @@ This repository is governed by **[moko-platform](https://git.mokoconsulting.tech |--------|-----| | `dev/XX.YY.ZZ` | Feature development (e.g., `dev/02.00.00/add-extrafields`) | | `version/XX` | Stable release (auto-created, never manually pushed) | -| `chore/` | Automated sync branches (managed by moko-platform) | +| `chore/` | Automated sync branches (managed by mokoplatform) | -> **Never use** `feature/`, `hotfix/`, or `release/` prefixes — they are not part of the moko-platform branch strategy. +> **Never use** `feature/`, `hotfix/`, or `release/` prefixes — they are not part of the mokoplatform branch strategy. ## Commit Conventions @@ -84,16 +84,16 @@ When your PR is merged to `main`, these workflows run automatically: ## Coding Standards -All contributions must follow [moko-platform](https://git.mokoconsulting.tech/MokoConsulting/moko-platform): +All contributions must follow [mokoplatform](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform): | Standard | Reference | |----------|-----------| -| Coding Style | [coding-style-guide.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/policy/coding-style-guide.md) | -| File Headers | [file-header-standards.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/policy/file-header-standards.md) | -| Branching | [branch-release-strategy.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/policy/branch-release-strategy.md) | -| Merge Strategy | [merge-strategy.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/policy/merge-strategy.md) | -| Scripting | [scripting-standards.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/policy/scripting-standards.md) | -| Build & Release | [build-release.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/workflows/build-release.md) | +| Coding Style | [coding-style-guide.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/policy/coding-style-guide.md) | +| File Headers | [file-header-standards.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/policy/file-header-standards.md) | +| Branching | [branch-release-strategy.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/policy/branch-release-strategy.md) | +| Merge Strategy | [merge-strategy.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/policy/merge-strategy.md) | +| Scripting | [scripting-standards.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/policy/scripting-standards.md) | +| Build & Release | [build-release.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/workflows/build-release.md) | ## PR Checklist @@ -109,12 +109,12 @@ All contributions must follow [moko-platform](https://git.mokoconsulting.tech/Mo ## Custom Workflows -Place repo-specific workflows in `.mokogitea/workflows/custom/` — they are **never overwritten or deleted** by moko-platform sync: +Place repo-specific workflows in `.mokogitea/workflows/custom/` — they are **never overwritten or deleted** by mokoplatform sync: ``` .mokogitea/workflows/ -├── deploy-dev.yml ← Synced from moko-platform -├── auto-release.yml ← Synced from moko-platform +├── deploy-dev.yml ← Synced from mokoplatform +├── auto-release.yml ← Synced from mokoplatform └── custom/ ← Your custom workflows (safe) └── my-custom-ci.yml ``` @@ -125,4 +125,4 @@ By contributing, you agree that your contributions will be licensed under the [G --- -*This file is synced from [moko-platform](https://git.mokoconsulting.tech/MokoConsulting/moko-platform). Do not edit directly — changes will be overwritten on the next sync.* +*This file is synced from [mokoplatform](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform). Do not edit directly — changes will be overwritten on the next sync.* diff --git a/templates/docs/required/template-README.md b/templates/docs/required/template-README.md index 2a1f408..18b3e89 100644 --- a/templates/docs/required/template-README.md +++ b/templates/docs/required/template-README.md @@ -22,7 +22,7 @@ BRIEF: {{REPO_DESCRIPTION}} # {{REPO_NAME}} [![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0) -[![moko-platform](https://img.shields.io/badge/moko--platform-{{standards_version}}-orange)](https://git.mokoconsulting.tech/MokoConsulting/moko-platform) +[![mokoplatform](https://img.shields.io/badge/moko--platform-{{standards_version}}-orange)](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform) > {{REPO_DESCRIPTION}} @@ -40,7 +40,7 @@ BRIEF: {{REPO_DESCRIPTION}} ## Contributing -See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines. This repository follows [moko-platform](https://git.mokoconsulting.tech/MokoConsulting/moko-platform). +See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines. This repository follows [mokoplatform](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform). ## License diff --git a/templates/docs/required/template-SECURITY.md b/templates/docs/required/template-SECURITY.md index 43d2940..aa8a400 100644 --- a/templates/docs/required/template-SECURITY.md +++ b/templates/docs/required/template-SECURITY.md @@ -130,7 +130,7 @@ Advisories include: ## Security Best Practices -For repositories adopting moko-platform: +For repositories adopting mokoplatform: ### Required Controls @@ -188,7 +188,7 @@ See [Security Scanning Policy](docs/policy/security-scanning.md) for detailed re ## Compliance and Governance -This security policy is binding for all repositories governed by moko-platform. Deviations require documented justification and approval from the Security Owner. +This security policy is binding for all repositories governed by mokoplatform. Deviations require documented justification and approval from the Security Owner. Security policies are reviewed and updated at least annually or following significant security incidents. @@ -228,7 +228,7 @@ The following are explicitly out of scope: | Repository | [REPOSITORY_URL] | | Owner | [OWNER_NAME] | | Scope | Security vulnerability handling | -| Applies To | All repositories governed by moko-platform | +| Applies To | All repositories governed by mokoplatform | | Status | Active | | Effective | [YYYY-MM-DD] | diff --git a/templates/index.md b/templates/index.md index 1af4170..0614797 100644 --- a/templates/index.md +++ b/templates/index.md @@ -21,16 +21,16 @@ along with this program. If not, see . # FILE INFORMATION DEFGROUP: MokoPlatform.Templates INGROUP: MokoPlatform -REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PATH: /templates/index.md -BRIEF: Comprehensive catalog of all templates in moko-platform +BRIEF: Comprehensive catalog of all templates in mokoplatform --> # Templates Catalog ## Overview -This directory contains all templates and reference implementations provided by moko-platform. Templates are non-authoritative examples that demonstrate how to implement the standards defined in `/docs/policy/`. +This directory contains all templates and reference implementations provided by mokoplatform. Templates are non-authoritative examples that demonstrate how to implement the standards defined in `/docs/policy/`. ## Purpose @@ -102,7 +102,7 @@ Configuration file templates for common tools. ### Documentation (`docs/`) -Documentation file templates aligned with moko-platform policies. +Documentation file templates aligned with mokoplatform policies. **Templates:** - `README.md.template` - Repository README template @@ -396,7 +396,7 @@ To deprecate a template: ### Getting Help - Browse existing templates for examples -- Review moko-platform repository as reference implementation +- Review mokoplatform repository as reference implementation - Consult with repository maintainers - Submit issues for template problems or requests @@ -416,7 +416,7 @@ To contribute new templates or improvements: ## Metadata * **Document**: templates/index.md -* **Repository**: [moko-platform](https://git.mokoconsulting.tech/MokoConsulting/moko-platform) +* **Repository**: [mokoplatform](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform) * **Owner**: Moko Consulting Engineering Team * **Scope**: Template catalog and usage guide * **Lifecycle**: Active diff --git a/templates/licenses/README.md b/templates/licenses/README.md index 75345a2..9a5be86 100644 --- a/templates/licenses/README.md +++ b/templates/licenses/README.md @@ -4,7 +4,7 @@ SPDX-License-Identifier: GPL-3.0-or-later FILE INFORMATION DEFGROUP: MokoPlatform.Index INGROUP: MokoPlatform.Templates.Licenses -REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PATH: /templates/licenses/README.md BRIEF: License templates README --> @@ -73,7 +73,7 @@ The following license files are maintained as authoritative sources: 1. **Copy the license file** to your repository root: ```bash # From your repository root - cp /path/to/moko-platform/templates/licenses/GPL-3.0 ./LICENSE + cp /path/to/mokoplatform/templates/licenses/GPL-3.0 ./LICENSE ``` 2. **No file extension**: The LICENSE file must not have an extension (use `LICENSE`, not `LICENSE.txt` or `LICENSE.md`) @@ -173,7 +173,7 @@ along with this program. If not, see . ```bash # Check if your LICENSE matches the authoritative version -diff LICENSE /path/to/moko-platform/templates/licenses/GPL-3.0 +diff LICENSE /path/to/mokoplatform/templates/licenses/GPL-3.0 # Calculate checksum for verification sha256sum LICENSE @@ -193,7 +193,7 @@ The repository health workflow automatically verifies: - [SPDX License List](https://spdx.org/licenses/) - [Choose a License](https://choosealicense.com/) - [GPL Compliance Guide](https://www.gnu.org/licenses/gpl-compliance.html) -- [moko-platform License Policy](../../docs/policy/license-compliance.md) +- [mokoplatform License Policy](../../docs/policy/license-compliance.md) ## Maintenance @@ -213,4 +213,4 @@ The repository health workflow automatically verifies: For questions about license selection or compliance: - **Email**: legal@mokoconsulting.tech - **Documentation**: See [License Compliance Policy](../../docs/policy/license-compliance.md) -- **Issues**: Open an issue in moko-platform repository +- **Issues**: Open an issue in mokoplatform repository diff --git a/templates/licenses/index.md b/templates/licenses/index.md index 0c39d9e..fb3e5c8 100644 --- a/templates/licenses/index.md +++ b/templates/licenses/index.md @@ -4,7 +4,7 @@ SPDX-License-Identifier: GPL-3.0-or-later FILE INFORMATION DEFGROUP: MokoPlatform.Index INGROUP: MokoPlatform.Templates.Licenses -REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PATH: /templates/licenses/index.md BRIEF: License templates directory index --> diff --git a/templates/makefiles/README.md b/templates/makefiles/README.md index e4fdc8a..7938cab 100644 --- a/templates/makefiles/README.md +++ b/templates/makefiles/README.md @@ -4,7 +4,7 @@ SPDX-License-Identifier: GPL-3.0-or-later FILE INFORMATION DEFGROUP: MokoPlatform.Index INGROUP: MokoPlatform.Templates.Makefiles -REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PATH: /templates/makefiles/README.md BRIEF: Makefile templates README --> @@ -98,6 +98,6 @@ Platform-specific templates may include additional targets relevant to their eco ## Support For questions or issues with Makefile templates: -- See main moko-platform documentation +- See main mokoplatform documentation - Check the platform-specific guides (Joomla, Dolibarr) - Review the schema documentation for source/destination details diff --git a/templates/mokogitea/CLAUDE.dolibarr.md.template b/templates/mokogitea/CLAUDE.dolibarr.md.template index 1a94d67..145965e 100644 --- a/templates/mokogitea/CLAUDE.dolibarr.md.template +++ b/templates/mokogitea/CLAUDE.dolibarr.md.template @@ -8,7 +8,7 @@ SPDX-License-Identifier: GPL-3.0-or-later # FILE INFORMATION DEFGROUP: MokoPlatform.Templates.GitHub INGROUP: MokoPlatform.Templates -REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PATH: /templates/mokogitea/CLAUDE.dolibarr.md.template VERSION: XX.YY.ZZ BRIEF: Claude AI assistant context template for Dolibarr/MokoCRM module repositories @@ -20,7 +20,7 @@ NOTE: Synced to .gitea/CLAUDE.md in all Dolibarr/CRM repos via bulk sync. > [!IMPORTANT] > **🔧 AI Self-Update Required on First Use** > -> This file may contain unfilled `{{TOKEN}}` placeholders. The moko-platform bulk-sync system +> This file may contain unfilled `{{TOKEN}}` placeholders. The mokoplatform bulk-sync system > replaces them automatically at sync time; if you can still see them, sync has not yet run for > this repository — or this is a brand-new repo. > @@ -41,7 +41,7 @@ NOTE: Synced to .gitea/CLAUDE.md in all Dolibarr/CRM repos via bulk sync. > | `{{REPO_DESCRIPTION}}` | First paragraph of `README.md` body, or the GitHub repo description | > | `{{MODULE_NAME}}` | The module name as used in Dolibarr (lowercase, e.g. `mymodule`) — from the `langs/en_US/*.lang` filename or `$this->rights_class` in the module descriptor | > | `{{MODULE_CLASS}}` | PascalCase module class name (e.g. `MyModule`) — from the `src/core/modules/mod*.class.php` filename | -> | `{{MODULE_ID}}` | The `$this->numero` value in `src/core/modules/mod*.class.php`; check [module-registry.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/development/crm/module-registry.md) if creating a new module | +> | `{{MODULE_ID}}` | The `$this->numero` value in `src/core/modules/mod*.class.php`; check [module-registry.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/development/crm/module-registry.md) if creating a new module | > > --- @@ -53,10 +53,10 @@ NOTE: Synced to .gitea/CLAUDE.md in all Dolibarr/CRM repos via bulk sync. Module name: **{{MODULE_NAME}}** Module class: **{{MODULE_CLASS}}** -Module ID: **{{MODULE_ID}}** *(unique, immutable — registered in [module-registry.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/development/crm/module-registry.md))* +Module ID: **{{MODULE_ID}}** *(unique, immutable — registered in [module-registry.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/development/crm/module-registry.md))* Repository URL: {{REPO_URL}} -This repository is governed by [moko-platform](https://git.mokoconsulting.tech/MokoConsulting/moko-platform) — the single source of truth for coding standards, file-header policies, GitHub Actions workflows, and Terraform configuration templates across all Moko Consulting repositories. +This repository is governed by [mokoplatform](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform) — the single source of truth for coding standards, file-header policies, GitHub Actions workflows, and Terraform configuration templates across all Moko Consulting repositories. --- @@ -89,7 +89,7 @@ This repository is governed by [moko-platform](https://git.mokoconsulting.tech/M │ ├── unit/ │ └── integration/ ├── .gitea/ -│ ├── workflows/ # CI/CD workflows (synced from moko-platform) +│ ├── workflows/ # CI/CD workflows (synced from mokoplatform) │ ├── copilot-instructions.md │ └── CLAUDE.md # This file ├── README.md # Version source of truth @@ -155,7 +155,7 @@ public $numero = {{MODULE_ID}}; // IMMUTABLE — never change; registered public $version = 'XX.YY.ZZ'; // Must match README.md version exactly ``` -**`$numero` is permanent.** It was registered in [module-registry.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/development/crm/module-registry.md) when this module was created. Changing it would break all Dolibarr installations that have this module activated. +**`$numero` is permanent.** It was registered in [module-registry.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/development/crm/module-registry.md) when this module was created. Changing it would break all Dolibarr installations that have this module activated. Before creating a new module, always check the registry for the next available ID. @@ -282,15 +282,15 @@ Before opening a PR, verify: --- -# Key Policy Documents (moko-platform) +# Key Policy Documents (mokoplatform) | Document | Purpose | |----------|---------| -| [file-header-standards.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/policy/file-header-standards.md) | Copyright-header rules for every file type | -| [coding-style-guide.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/policy/coding-style-guide.md) | Naming and formatting conventions | -| [branching-strategy.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/policy/branching-strategy.md) | Branch naming, hierarchy, and release workflow | -| [merge-strategy.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/policy/merge-strategy.md) | Squash-merge policy and PR conventions | -| [changelog-standards.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/policy/changelog-standards.md) | How and when to update CHANGELOG.md | -| [module-registry.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/development/crm/module-registry.md) | Dolibarr module ID registry — check before reserving a new ID | -| [crm/development-standards.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/policy/crm/development-standards.md) | MokoCRM Dolibarr module development standards | -| [dolibarr-development-guide.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/guide/crm/dolibarr-development-guide.md) | MokoCRM full development guide | +| [file-header-standards.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/policy/file-header-standards.md) | Copyright-header rules for every file type | +| [coding-style-guide.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/policy/coding-style-guide.md) | Naming and formatting conventions | +| [branching-strategy.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/policy/branching-strategy.md) | Branch naming, hierarchy, and release workflow | +| [merge-strategy.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/policy/merge-strategy.md) | Squash-merge policy and PR conventions | +| [changelog-standards.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/policy/changelog-standards.md) | How and when to update CHANGELOG.md | +| [module-registry.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/development/crm/module-registry.md) | Dolibarr module ID registry — check before reserving a new ID | +| [crm/development-standards.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/policy/crm/development-standards.md) | MokoCRM Dolibarr module development standards | +| [dolibarr-development-guide.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/guide/crm/dolibarr-development-guide.md) | MokoCRM full development guide | diff --git a/templates/mokogitea/CLAUDE.joomla.md.template b/templates/mokogitea/CLAUDE.joomla.md.template index b14c4bc..1e33a66 100644 --- a/templates/mokogitea/CLAUDE.joomla.md.template +++ b/templates/mokogitea/CLAUDE.joomla.md.template @@ -8,7 +8,7 @@ SPDX-License-Identifier: GPL-3.0-or-later # FILE INFORMATION DEFGROUP: MokoPlatform.Templates.GitHub INGROUP: MokoPlatform.Templates -REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PATH: /templates/mokogitea/CLAUDE.joomla.md.template VERSION: XX.YY.ZZ BRIEF: Claude AI assistant context template for Joomla/MokoWaaS governed repositories @@ -20,7 +20,7 @@ NOTE: Synced to .gitea/CLAUDE.md in all Joomla/WaaS repos via bulk sync. > [!IMPORTANT] > **🔧 AI Self-Update Required on First Use** > -> This file may contain unfilled `{{TOKEN}}` placeholders. The moko-platform bulk-sync system +> This file may contain unfilled `{{TOKEN}}` placeholders. The mokoplatform bulk-sync system > replaces them automatically at sync time; if you can still see them, sync has not yet run for > this repository — or this is a brand-new repo. > @@ -55,7 +55,7 @@ Extension name: **{{EXTENSION_NAME}}** Extension type: **{{EXTENSION_TYPE}}** (`{{EXTENSION_ELEMENT}}`) Repository URL: {{REPO_URL}} -This repository is governed by [moko-platform](https://git.mokoconsulting.tech/MokoConsulting/moko-platform) — the single source of truth for coding standards, file-header policies, GitHub Actions workflows, and Terraform configuration templates across all Moko Consulting repositories. +This repository is governed by [mokoplatform](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform) — the single source of truth for coding standards, file-header policies, GitHub Actions workflows, and Terraform configuration templates across all Moko Consulting repositories. --- @@ -81,7 +81,7 @@ This repository is governed by [moko-platform](https://git.mokoconsulting.tech/M ├── docs/ # Technical documentation ├── tests/ # Test suite ├── .gitea/ -│ ├── workflows/ # CI/CD workflows (synced from moko-platform) +│ ├── workflows/ # CI/CD workflows (synced from mokoplatform) │ ├── copilot-instructions.md │ └── CLAUDE.md # This file ├── README.md # Version source of truth @@ -284,16 +284,16 @@ Before opening a PR, verify: --- -# Key Policy Documents (moko-platform) +# Key Policy Documents (mokoplatform) | Document | Purpose | |----------|---------| -| [file-header-standards.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/policy/file-header-standards.md) | Copyright-header rules for every file type | -| [coding-style-guide.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/policy/coding-style-guide.md) | Naming and formatting conventions | -| [branching-strategy.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/policy/branching-strategy.md) | Branch naming, hierarchy, and release workflow | -| [merge-strategy.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/policy/merge-strategy.md) | Squash-merge policy and PR conventions | -| [changelog-standards.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/policy/changelog-standards.md) | How and when to update CHANGELOG.md | -| [joomla-development-guide.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/guide/waas/joomla-development-guide.md) | MokoWaaS Joomla extension development guide | +| [file-header-standards.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/policy/file-header-standards.md) | Copyright-header rules for every file type | +| [coding-style-guide.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/policy/coding-style-guide.md) | Naming and formatting conventions | +| [branching-strategy.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/policy/branching-strategy.md) | Branch naming, hierarchy, and release workflow | +| [merge-strategy.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/policy/merge-strategy.md) | Squash-merge policy and PR conventions | +| [changelog-standards.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/policy/changelog-standards.md) | How and when to update CHANGELOG.md | +| [joomla-development-guide.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/guide/waas/joomla-development-guide.md) | MokoWaaS Joomla extension development guide | ### Update Server Priority diff --git a/templates/mokogitea/CLAUDE.md.template b/templates/mokogitea/CLAUDE.md.template index cfc5c54..b275df9 100644 --- a/templates/mokogitea/CLAUDE.md.template +++ b/templates/mokogitea/CLAUDE.md.template @@ -31,4 +31,4 @@ make clean # Clean build artifacts - **Attribution**: `Authored-by: Moko Consulting` - **Workflow directory**: `.mokogitea/` (not `.gitea/` or `.github/`) - **Wiki**: documentation lives in the Gitea wiki, not `docs/` files -- **Standards**: [moko-platform](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki/Home) +- **Standards**: [mokoplatform](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki/Home) diff --git a/templates/mokogitea/ISSUE_TEMPLATE/config.yml b/templates/mokogitea/ISSUE_TEMPLATE/config.yml index 06221e2..d77a1bc 100644 --- a/templates/mokogitea/ISSUE_TEMPLATE/config.yml +++ b/templates/mokogitea/ISSUE_TEMPLATE/config.yml @@ -7,8 +7,8 @@ contact_links: - name: 💬 Ask a Question url: https://mokoconsulting.tech/ about: Get help or ask questions through our website - - name: 📚 moko-platform Documentation - url: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + - name: 📚 mokoplatform Documentation + url: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform about: View our coding standards and best practices - name: 🔒 Report a Security Vulnerability url: https://git.mokoconsulting.tech/mokoconsulting-tech/.github-private/security/advisories/new diff --git a/templates/mokogitea/ISSUE_TEMPLATE/documentation.md b/templates/mokogitea/ISSUE_TEMPLATE/documentation.md index 648dab9..6269db7 100644 --- a/templates/mokogitea/ISSUE_TEMPLATE/documentation.md +++ b/templates/mokogitea/ISSUE_TEMPLATE/documentation.md @@ -42,7 +42,7 @@ Suggested text here ## Standards Alignment -- [ ] Follows moko-platform documentation guidelines +- [ ] Follows mokoplatform documentation guidelines - [ ] Uses en_US/en_GB localization - [ ] Includes proper SPDX headers where applicable diff --git a/templates/mokogitea/ISSUE_TEMPLATE/dolibarr_module_id_request.md b/templates/mokogitea/ISSUE_TEMPLATE/dolibarr_module_id_request.md index 407fcb3..3e76e2b 100644 --- a/templates/mokogitea/ISSUE_TEMPLATE/dolibarr_module_id_request.md +++ b/templates/mokogitea/ISSUE_TEMPLATE/dolibarr_module_id_request.md @@ -92,7 +92,7 @@ List Dolibarr hooks this module will use: ### ID Range Preference -Based on the [Dolibarr Module ID Policy](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/policy/DOLIBARR_MODULE_ID_REQUEST.md): +Based on the [Dolibarr Module ID Policy](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/policy/DOLIBARR_MODULE_ID_REQUEST.md): **Preferred Range** (will be assigned by coordinator): - [ ] Internal module (100000-109999) @@ -104,7 +104,7 @@ Based on the [Dolibarr Module ID Policy](https://git.mokoconsulting.tech/MokoCon ### Security and Compliance **For Public Modules** (required before external registration): -- [ ] Code follows moko-platform +- [ ] Code follows mokoplatform - [ ] Security review completed - [ ] No sensitive data or credentials in code - [ ] License properly defined (GPL-3.0-or-later) @@ -143,7 +143,7 @@ If similar modules exist, explain why a new module is needed: ### Acknowledgments -- [ ] I have read the [Dolibarr Module ID Policy](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/policy/DOLIBARR_MODULE_ID_REQUEST.md) +- [ ] I have read the [Dolibarr Module ID Policy](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/policy/DOLIBARR_MODULE_ID_REQUEST.md) - [ ] I understand internal modules use range 100000-119999 - [ ] I understand public modules require external registration with Dolibarr Foundation - [ ] I understand module IDs are never reused once allocated diff --git a/templates/mokogitea/ISSUE_TEMPLATE/feature_request.md b/templates/mokogitea/ISSUE_TEMPLATE/feature_request.md index 6d691a0..f7df007 100644 --- a/templates/mokogitea/ISSUE_TEMPLATE/feature_request.md +++ b/templates/mokogitea/ISSUE_TEMPLATE/feature_request.md @@ -37,7 +37,7 @@ If you have ideas about how this could be implemented, share them here: Add any other context, mockups, or screenshots about the feature request here. ## Relevant Standards -Does this relate to any standards in [moko-platform](https://git.mokoconsulting.tech/MokoConsulting/moko-platform)? +Does this relate to any standards in [mokoplatform](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform)? - [ ] Accessibility (WCAG 2.1 AA) - [ ] Localization (en_US/en_GB) - [ ] Security best practices diff --git a/templates/mokogitea/ISSUE_TEMPLATE/security.md b/templates/mokogitea/ISSUE_TEMPLATE/security.md index 56b6573..7d290fb 100644 --- a/templates/mokogitea/ISSUE_TEMPLATE/security.md +++ b/templates/mokogitea/ISSUE_TEMPLATE/security.md @@ -35,7 +35,7 @@ Use this template only for: ## Standards Reference -Does this relate to security standards in [moko-platform](https://git.mokoconsulting.tech/MokoConsulting/moko-platform)? +Does this relate to security standards in [mokoplatform](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform)? - [ ] SPDX license identifiers - [ ] Secret management - [ ] Dependency security diff --git a/templates/mokogitea/README.md b/templates/mokogitea/README.md index 1d7a831..c4e1bcb 100644 --- a/templates/mokogitea/README.md +++ b/templates/mokogitea/README.md @@ -21,7 +21,7 @@ along with this program. If not, see . # FILE INFORMATION DEFGROUP: MokoPlatform.Templates INGROUP: MokoPlatform.GitHub -REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PATH: /templates/mokogitea/README.md BRIEF: GitHub-specific templates including issues, PRs, and CODEOWNERS --> @@ -149,10 +149,10 @@ your-repository/ blank_issues_enabled: false contact_links: - name: "📚 Documentation" - url: https://git.mokoconsulting.tech/MokoConsulting/moko-platform/docs + url: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/docs about: "Check the documentation first" - name: "💬 Discussions" - url: https://git.mokoconsulting.tech/MokoConsulting/moko-platform/discussions + url: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/discussions about: "Ask questions and discuss ideas" ``` @@ -367,12 +367,12 @@ Require status checks that verify: - [GitHub Issue Templates Documentation](https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository) - [GitHub PR Templates Documentation](https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/creating-a-pull-request-template-for-your-repository) - [GitHub CODEOWNERS Documentation](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners) -- [moko-platform Repository](https://git.mokoconsulting.tech/MokoConsulting/moko-platform) +- [mokoplatform Repository](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform) ## Metadata * **Document**: templates/mokogitea/README.md -* **Repository**: [moko-platform](https://git.mokoconsulting.tech/MokoConsulting/moko-platform) +* **Repository**: [mokoplatform](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform) * **Owner**: Moko Consulting Engineering Team * **Scope**: GitHub templates and configuration * **Lifecycle**: Active diff --git a/templates/mokogitea/copilot-instructions.dolibarr.md.template b/templates/mokogitea/copilot-instructions.dolibarr.md.template index 55006cd..b5b522c 100644 --- a/templates/mokogitea/copilot-instructions.dolibarr.md.template +++ b/templates/mokogitea/copilot-instructions.dolibarr.md.template @@ -8,7 +8,7 @@ SPDX-License-Identifier: GPL-3.0-or-later # FILE INFORMATION DEFGROUP: MokoPlatform.Templates.GitHub INGROUP: MokoPlatform.Templates -REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PATH: /templates/mokogitea/copilot-instructions.dolibarr.md.template VERSION: XX.YY.ZZ BRIEF: GitHub Copilot custom instructions template for Dolibarr/MokoCRM module repositories @@ -20,7 +20,7 @@ NOTE: Synced to .gitea/copilot-instructions.md in all Dolibarr/CRM module repos > [!IMPORTANT] > **🔧 AI Self-Update Required on First Use** > -> This file may contain unfilled `{{TOKEN}}` placeholders. The moko-platform bulk-sync system +> This file may contain unfilled `{{TOKEN}}` placeholders. The mokoplatform bulk-sync system > replaces them automatically at sync time; if you can still see them, sync has not yet run for > this repository — or this is a brand-new repo. > @@ -40,7 +40,7 @@ NOTE: Synced to .gitea/copilot-instructions.md in all Dolibarr/CRM module repos > | `{{REPO_URL}}` | Full GitHub URL, e.g. `https://git.mokoconsulting.tech/mokoconsulting-tech/` | > | `{{MODULE_NAME}}` | The module name as used in Dolibarr (lowercase, e.g. `mymodule`) — from the `langs/en_US/*.lang` filename or `$this->rights_class` in the module descriptor | > | `{{MODULE_CLASS}}` | PascalCase module class name (e.g. `MyModule`) — from the `src/core/modules/mod*.class.php` filename | -> | `{{MODULE_ID}}` | The `$this->numero` value in `src/core/modules/mod*.class.php`; check [module-registry.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/development/crm/module-registry.md) if creating a new module | +> | `{{MODULE_ID}}` | The `$this->numero` value in `src/core/modules/mod*.class.php`; check [module-registry.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/development/crm/module-registry.md) if creating a new module | > | `{{PRIMARY_LANGUAGE}}` | Primary programming language (usually `PHP`) | > > --- @@ -49,7 +49,7 @@ NOTE: Synced to .gitea/copilot-instructions.md in all Dolibarr/CRM module repos ## What This Repo Is -This is a **Moko Consulting MokoCRM** (Dolibarr) module repository governed by [moko-platform](https://git.mokoconsulting.tech/MokoConsulting/moko-platform). All coding standards, workflows, and policies are defined there and enforced here via bulk sync. +This is a **Moko Consulting MokoCRM** (Dolibarr) module repository governed by [mokoplatform](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform). All coding standards, workflows, and policies are defined there and enforced here via bulk sync. Repository URL: {{REPO_URL}} Module name: **{{MODULE_NAME}}** @@ -232,7 +232,7 @@ class mod{{MODULE_CLASS}} extends DolibarrModules ``` **Key rules for the module descriptor:** -- `$this->numero` is a globally unique ID registered in [module-registry.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/development/crm/module-registry.md) — **never change it**. +- `$this->numero` is a globally unique ID registered in [module-registry.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/development/crm/module-registry.md) — **never change it**. - `$this->version` must exactly match the version in `README.md`. - Register new modules in the module registry before using any ID. @@ -262,19 +262,19 @@ PHP scripts read the token with: `getenv('GH_TOKEN') ?: getenv('GITHUB_TOKEN')` --- -## moko-platform Reference +## mokoplatform Reference -This repository is governed by [moko-platform](https://git.mokoconsulting.tech/MokoConsulting/moko-platform). Authoritative policies: +This repository is governed by [mokoplatform](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform). Authoritative policies: | Document | Purpose | |----------|---------| -| [file-header-standards.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/policy/file-header-standards.md) | Copyright-header rules for every file type | -| [coding-style-guide.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/policy/coding-style-guide.md) | Naming and formatting conventions | -| [branching-strategy.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/policy/branching-strategy.md) | Branch naming, hierarchy, and release workflow | -| [merge-strategy.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/policy/merge-strategy.md) | Squash-merge policy and PR title/body conventions | -| [changelog-standards.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/policy/changelog-standards.md) | How and when to update CHANGELOG.md | -| [module-registry.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/development/crm/module-registry.md) | Dolibarr module ID registry — check before reserving a new ID | -| [crm-development-standards.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/policy/crm/development-standards.md) | MokoCRM Dolibarr module development standards | +| [file-header-standards.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/policy/file-header-standards.md) | Copyright-header rules for every file type | +| [coding-style-guide.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/policy/coding-style-guide.md) | Naming and formatting conventions | +| [branching-strategy.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/policy/branching-strategy.md) | Branch naming, hierarchy, and release workflow | +| [merge-strategy.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/policy/merge-strategy.md) | Squash-merge policy and PR title/body conventions | +| [changelog-standards.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/policy/changelog-standards.md) | How and when to update CHANGELOG.md | +| [module-registry.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/development/crm/module-registry.md) | Dolibarr module ID registry — check before reserving a new ID | +| [crm-development-standards.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/policy/crm/development-standards.md) | MokoCRM Dolibarr module development standards | --- diff --git a/templates/mokogitea/copilot-instructions.joomla.md.template b/templates/mokogitea/copilot-instructions.joomla.md.template index 23107af..fe44ef8 100644 --- a/templates/mokogitea/copilot-instructions.joomla.md.template +++ b/templates/mokogitea/copilot-instructions.joomla.md.template @@ -8,7 +8,7 @@ SPDX-License-Identifier: GPL-3.0-or-later # FILE INFORMATION DEFGROUP: MokoPlatform.Templates.GitHub INGROUP: MokoPlatform.Templates -REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PATH: /templates/mokogitea/copilot-instructions.joomla.md.template VERSION: XX.YY.ZZ BRIEF: GitHub Copilot custom instructions template for Joomla/MokoWaaS governed repositories @@ -20,7 +20,7 @@ NOTE: Synced to .gitea/copilot-instructions.md in all Joomla/WaaS repos via bulk > [!IMPORTANT] > **🔧 AI Self-Update Required on First Use** > -> This file may contain unfilled `{{TOKEN}}` placeholders. The moko-platform bulk-sync system +> This file may contain unfilled `{{TOKEN}}` placeholders. The mokoplatform bulk-sync system > replaces them automatically at sync time; if you can still see them, sync has not yet run for > this repository — or this is a brand-new repo. > @@ -48,7 +48,7 @@ NOTE: Synced to .gitea/copilot-instructions.md in all Joomla/WaaS repos via bulk ## What This Repo Is -This is a **Moko Consulting MokoWaaS** (Joomla) repository governed by [moko-platform](https://git.mokoconsulting.tech/MokoConsulting/moko-platform). All coding standards, workflows, and policies are defined there and enforced here via bulk sync. +This is a **Moko Consulting MokoWaaS** (Joomla) repository governed by [mokoplatform](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform). All coding standards, workflows, and policies are defined there and enforced here via bulk sync. Repository URL: {{REPO_URL}} Extension name: **{{EXTENSION_NAME}}** @@ -239,18 +239,18 @@ token: ${{ secrets.GITHUB_TOKEN }} --- -## moko-platform Reference +## mokoplatform Reference -This repository is governed by [moko-platform](https://git.mokoconsulting.tech/MokoConsulting/moko-platform). Authoritative policies: +This repository is governed by [mokoplatform](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform). Authoritative policies: | Document | Purpose | |----------|---------| -| [file-header-standards.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/policy/file-header-standards.md) | Copyright-header rules for every file type | -| [coding-style-guide.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/policy/coding-style-guide.md) | Naming and formatting conventions | -| [branching-strategy.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/policy/branching-strategy.md) | Branch naming, hierarchy, and release workflow | -| [merge-strategy.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/policy/merge-strategy.md) | Squash-merge policy and PR title/body conventions | -| [changelog-standards.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/policy/changelog-standards.md) | How and when to update CHANGELOG.md | -| [joomla-development-guide.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/guide/waas/joomla-development-guide.md) | MokoWaaS Joomla extension development guide | +| [file-header-standards.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/policy/file-header-standards.md) | Copyright-header rules for every file type | +| [coding-style-guide.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/policy/coding-style-guide.md) | Naming and formatting conventions | +| [branching-strategy.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/policy/branching-strategy.md) | Branch naming, hierarchy, and release workflow | +| [merge-strategy.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/policy/merge-strategy.md) | Squash-merge policy and PR title/body conventions | +| [changelog-standards.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/policy/changelog-standards.md) | How and when to update CHANGELOG.md | +| [joomla-development-guide.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/guide/waas/joomla-development-guide.md) | MokoWaaS Joomla extension development guide | --- diff --git a/templates/mokogitea/copilot-instructions.md.template b/templates/mokogitea/copilot-instructions.md.template index fc93f28..48e325e 100644 --- a/templates/mokogitea/copilot-instructions.md.template +++ b/templates/mokogitea/copilot-instructions.md.template @@ -8,7 +8,7 @@ SPDX-License-Identifier: GPL-3.0-or-later # FILE INFORMATION DEFGROUP: MokoPlatform.Templates.GitHub INGROUP: MokoPlatform.Templates -REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PATH: /templates/mokogitea/copilot-instructions.md.template VERSION: XX.YY.ZZ BRIEF: Standard GitHub Copilot custom instructions template for Moko Consulting governed repositories @@ -19,7 +19,7 @@ NOTE: Synced to .gitea/copilot-instructions.md in all governed repositories via > [!IMPORTANT] > **🔧 AI Self-Update Required on First Use** > -> This file may contain unfilled `{{TOKEN}}` placeholders. The moko-platform bulk-sync system +> This file may contain unfilled `{{TOKEN}}` placeholders. The mokoplatform bulk-sync system > replaces them automatically at sync time; if you can still see them, sync has not yet run for > this repository — or this is a brand-new repo. > @@ -46,7 +46,7 @@ NOTE: Synced to .gitea/copilot-instructions.md in all governed repositories via ## What This Repo Is -This is a **Moko Consulting** repository governed by [moko-platform](https://git.mokoconsulting.tech/MokoConsulting/moko-platform). All coding standards, workflows, and policies are defined there and enforced here via bulk sync. +This is a **Moko Consulting** repository governed by [mokoplatform](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform). All coding standards, workflows, and policies are defined there and enforced here via bulk sync. Repository URL: {{REPO_URL}} Primary language: **{{PRIMARY_LANGUAGE}}** @@ -56,7 +56,7 @@ Platform type: **{{PLATFORM_TYPE}}** ## Primary Language -**{{PRIMARY_LANGUAGE}} is the primary language for this repository.** Follow the conventions documented in [moko-platform coding-style-guide](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/policy/coding-style-guide.md). +**{{PRIMARY_LANGUAGE}} is the primary language for this repository.** Follow the conventions documented in [mokoplatform coding-style-guide](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/policy/coding-style-guide.md). YAML uses 2-space indentation (spaces, not tabs). All other text files use tabs per `.editorconfig`. @@ -131,7 +131,7 @@ Each badge type has a designated color — no two types share the same color: | PHP | `777BB4` | `badge/PHP-8.2%2B-777BB4?logo=php` | | Joomla | `red` | `badge/Joomla-5.x-red?logo=joomla` | | Dolibarr | `red` | `badge/Dolibarr-20.x-red` | -| moko-platform | `orange` | `badge/moko--platform-04.06.00-orange` | +| mokoplatform | `orange` | `badge/moko--platform-04.06.00-orange` | --- @@ -161,14 +161,14 @@ PHP scripts read the token with: `getenv('GH_TOKEN') ?: getenv('GITHUB_TOKEN')` ## Composer Package (PHP repositories) -This repository requires the moko-platform enterprise library. The `composer.json` must include: +This repository requires the mokoplatform enterprise library. The `composer.json` must include: ```json { "repositories": [ { "type": "vcs", - "url": "https://git.mokoconsulting.tech/MokoConsulting/moko-platform" + "url": "https://git.mokoconsulting.tech/MokoConsulting/mokoplatform" } ], "require": { @@ -177,7 +177,7 @@ This repository requires the moko-platform enterprise library. The `composer.jso } ``` -Run `composer install` after adding the dependency. See [package-installation.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/guide/package-installation.md) for full instructions. +Run `composer install` after adding the dependency. See [package-installation.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/guide/package-installation.md) for full instructions. --- @@ -313,16 +313,16 @@ If your code change makes any existing doc sentence false or incomplete, fix the --- -## moko-platform Reference +## mokoplatform Reference -This repository is governed by [moko-platform](https://git.mokoconsulting.tech/MokoConsulting/moko-platform). Authoritative policies: +This repository is governed by [mokoplatform](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform). Authoritative policies: | Document | Purpose | |----------|---------| -| [file-header-standards.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/policy/file-header-standards.md) | Copyright-header rules for every file type | -| [coding-style-guide.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/policy/coding-style-guide.md) | Naming and formatting conventions | -| [branching-strategy.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/policy/branching-strategy.md) | Branch naming, hierarchy, and release workflow | -| [merge-strategy.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/policy/merge-strategy.md) | Squash-merge policy and PR title/body conventions | -| [changelog-standards.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/policy/changelog-standards.md) | How and when to update CHANGELOG.md | -| [scripting-standards.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/policy/scripting-standards.md) | PHP script requirements and CliFramework usage | -| [package-installation.md](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/blob/main/docs/guide/package-installation.md) | Installing `mokoconsulting/mokostandards` via Composer | +| [file-header-standards.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/policy/file-header-standards.md) | Copyright-header rules for every file type | +| [coding-style-guide.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/policy/coding-style-guide.md) | Naming and formatting conventions | +| [branching-strategy.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/policy/branching-strategy.md) | Branch naming, hierarchy, and release workflow | +| [merge-strategy.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/policy/merge-strategy.md) | Squash-merge policy and PR title/body conventions | +| [changelog-standards.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/policy/changelog-standards.md) | How and when to update CHANGELOG.md | +| [scripting-standards.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/policy/scripting-standards.md) | PHP script requirements and CliFramework usage | +| [package-installation.md](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/blob/main/docs/guide/package-installation.md) | Installing `mokoconsulting/mokostandards` via Composer | diff --git a/templates/mokogitea/dependabot.yml.template b/templates/mokogitea/dependabot.yml.template index f4b3f02..4b2c05e 100644 --- a/templates/mokogitea/dependabot.yml.template +++ b/templates/mokogitea/dependabot.yml.template @@ -7,7 +7,7 @@ # FILE INFORMATION # DEFGROUP: GitHub.Dependabot # INGROUP: MokoPlatform.Security -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /templates/mokogitea/dependabot.yml.template # VERSION: XX.YY.ZZ # BRIEF: Template Dependabot configuration for governed repositories diff --git a/templates/mokogitea/override.tf.template b/templates/mokogitea/override.tf.template index 43df6fd..2ef9554 100644 --- a/templates/mokogitea/override.tf.template +++ b/templates/mokogitea/override.tf.template @@ -2,9 +2,9 @@ # Location: .gitea/override.tf # # This file allows repository-specific customization of health checks. -# It overrides the default configuration from moko-platform. +# It overrides the default configuration from mokoplatform. # -# AUTO-GENERATED: This file is automatically synced from moko-platform +# AUTO-GENERATED: This file is automatically synced from mokoplatform # To customize: Edit this file and it will be preserved on future syncs locals { diff --git a/templates/repos/client-waas/.mokogitea/CLAUDE.md b/templates/repos/client-waas/.mokogitea/CLAUDE.md index 79b16a1..530744e 100644 --- a/templates/repos/client-waas/.mokogitea/CLAUDE.md +++ b/templates/repos/client-waas/.mokogitea/CLAUDE.md @@ -23,4 +23,4 @@ Template files copied when creating new client repos: - **Never commit** `.claude/`, `.mcp.json`, `TODO.md`, `*.min.css`/`*.min.js` - **Attribution**: `Authored-by: Moko Consulting` - **Workflow directory**: `.mokogitea/` -- **Standards**: [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki/Home) +- **Standards**: [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki/Home) diff --git a/templates/repos/client-waas/.mokogitea/ISSUE_TEMPLATE/config.yml b/templates/repos/client-waas/.mokogitea/ISSUE_TEMPLATE/config.yml index d4d49ec..7c403f1 100644 --- a/templates/repos/client-waas/.mokogitea/ISSUE_TEMPLATE/config.yml +++ b/templates/repos/client-waas/.mokogitea/ISSUE_TEMPLATE/config.yml @@ -8,7 +8,7 @@ contact_links: url: https://mokoconsulting.tech/ about: Get help or ask questions through our website - name: 📚 MokoStandards Documentation - url: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + url: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform about: View our coding standards and best practices - name: 🔒 Report a Security Vulnerability url: https://git.mokoconsulting.tech/mokoconsulting-tech/.github-private/security/advisories/new diff --git a/templates/repos/client-waas/.mokogitea/branch-protection.yml b/templates/repos/client-waas/.mokogitea/branch-protection.yml index 2dff8b9..8adde0a 100644 --- a/templates/repos/client-waas/.mokogitea/branch-protection.yml +++ b/templates/repos/client-waas/.mokogitea/branch-protection.yml @@ -2,8 +2,8 @@ # SPDX-License-Identifier: GPL-3.0-or-later # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Automation -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# INGROUP: mokoplatform.Automation +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /.gitea/workflows/branch-protection.yml # BRIEF: Apply standardised branch protection rules to all governed repositories # @@ -62,7 +62,7 @@ jobs: API="${GITEA_URL}/api/v1" # Platform/standards/infra repos to exclude - EXCLUDE="gitea-org-config org-profile gitea-private .mokogitea-private MokoStandards moko-platform MokoTesting" + EXCLUDE="gitea-org-config org-profile gitea-private .mokogitea-private MokoStandards mokoplatform MokoTesting" EXCLUDE="$EXCLUDE MokoStandards-Template-Client MokoStandards-Template-Dolibarr MokoStandards-Template-Generic MokoStandards-Template-Joomla MokoDoliProjTemplate" if [ -n "${{ inputs.repos }}" ]; then diff --git a/templates/repos/client-waas/.mokogitea/manifest.xml b/templates/repos/client-waas/.mokogitea/manifest.xml index 9b69d8f..74d9f8e 100644 --- a/templates/repos/client-waas/.mokogitea/manifest.xml +++ b/templates/repos/client-waas/.mokogitea/manifest.xml @@ -2,9 +2,9 @@ - + Template-Client-WaaS MokoConsulting @@ -14,11 +14,11 @@ joomla 05.00.00 - https://git.mokoconsulting.tech/MokoConsulting/moko-platform + https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PHP joomla-site htdocs/ - + diff --git a/templates/repos/client-waas/.mokogitea/workflows/auto-bump.yml b/templates/repos/client-waas/.mokogitea/workflows/auto-bump.yml index 34953b1..022148e 100644 --- a/templates/repos/client-waas/.mokogitea/workflows/auto-bump.yml +++ b/templates/repos/client-waas/.mokogitea/workflows/auto-bump.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Release -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# INGROUP: mokoplatform.Release +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /.mokogitea/workflows/auto-bump.yml # VERSION: 09.02.00 # BRIEF: Auto patch-bump version on every push to dev (skips merge commits) @@ -43,19 +43,19 @@ jobs: token: ${{ secrets.MOKOGITEA_TOKEN }} fetch-depth: 1 - - name: Setup moko-platform tools + - name: Setup mokoplatform tools run: | if ! command -v composer &> /dev/null; then sudo apt-get update -qq && sudo apt-get install -y -qq php-cli php-mbstring php-xml php-zip php-curl composer >/dev/null 2>&1 fi - if [ -d "/opt/moko-platform/cli" ]; then - echo "MOKO_CLI=/opt/moko-platform/cli" >> "$GITHUB_ENV" + if [ -d "/opt/mokoplatform/cli" ]; then + echo "MOKO_CLI=/opt/mokoplatform/cli" >> "$GITHUB_ENV" else git clone --depth 1 --branch main --quiet \ - "https://x-access-token:${{ secrets.MOKOGITEA_TOKEN }}@git.mokoconsulting.tech/MokoConsulting/moko-platform.git" \ - /tmp/moko-platform-api - cd /tmp/moko-platform-api && composer install --no-dev --no-interaction --quiet - echo "MOKO_CLI=/tmp/moko-platform-api/cli" >> "$GITHUB_ENV" + "https://x-access-token:${{ secrets.MOKOGITEA_TOKEN }}@git.mokoconsulting.tech/MokoConsulting/mokoplatform.git" \ + /tmp/mokoplatform-api + cd /tmp/mokoplatform-api && composer install --no-dev --no-interaction --quiet + echo "MOKO_CLI=/tmp/mokoplatform-api/cli" >> "$GITHUB_ENV" fi - name: Bump version diff --git a/templates/repos/client-waas/.mokogitea/workflows/auto-release.yml b/templates/repos/client-waas/.mokogitea/workflows/auto-release.yml index 78dec4b..8030e58 100644 --- a/templates/repos/client-waas/.mokogitea/workflows/auto-release.yml +++ b/templates/repos/client-waas/.mokogitea/workflows/auto-release.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Release -# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/moko-platform +# INGROUP: mokoplatform.Release +# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/mokoplatform # PATH: /templates/workflows/universal/auto-release.yml.template # VERSION: 05.00.00 # BRIEF: Universal build & release � detects platform from manifest.xml @@ -66,7 +66,7 @@ jobs: token: ${{ secrets.MOKOGITEA_TOKEN }} fetch-depth: 1 - - name: Setup moko-platform tools + - name: Setup mokoplatform tools env: MOKO_CLONE_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} MOKO_CLONE_HOST: git.mokoconsulting.tech/MokoConsulting @@ -75,16 +75,16 @@ jobs: sudo apt-get update -qq && sudo apt-get install -y -qq php-cli php-mbstring php-xml php-zip php-curl composer >/dev/null 2>&1 fi # Always fetch latest CLI tools — never use stale cache from previous runs - rm -rf /tmp/moko-platform-api + rm -rf /tmp/mokoplatform-api git clone --depth 1 --branch main --quiet \ - "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/moko-platform.git" \ - /tmp/moko-platform-api - cd /tmp/moko-platform-api + "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/mokoplatform.git" \ + /tmp/mokoplatform-api + cd /tmp/mokoplatform-api composer install --no-dev --no-interaction --quiet - name: Rename branch to rc run: | - php /tmp/moko-platform-api/cli/branch_rename.php \ + php /tmp/mokoplatform-api/cli/branch_rename.php \ --from "${{ github.event.pull_request.head.ref || 'dev' }}" --to rc \ --token "${{ secrets.MOKOGITEA_TOKEN }}" \ --api-base "${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" \ @@ -100,7 +100,7 @@ jobs: - name: Publish RC release run: | - php /tmp/moko-platform-api/cli/release_publish.php \ + php /tmp/mokoplatform-api/cli/release_publish.php \ --path . --stability rc --bump minor --branch rc \ --token "${{ secrets.MOKOGITEA_TOKEN }}" @@ -144,7 +144,7 @@ jobs: fi echo "No conflict markers found" - - name: Setup moko-platform tools + - name: Setup mokoplatform tools env: MOKO_CLONE_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} MOKO_CLONE_HOST: git.mokoconsulting.tech/MokoConsulting @@ -155,17 +155,17 @@ jobs: sudo apt-get update -qq && sudo apt-get install -y -qq php-cli php-mbstring php-xml php-zip php-curl composer >/dev/null 2>&1 fi # Always fetch latest CLI tools — never use stale cache from previous runs - rm -rf /tmp/moko-platform-api + rm -rf /tmp/mokoplatform-api git clone --depth 1 --branch main --quiet \ - "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/moko-platform.git" \ - /tmp/moko-platform-api - cd /tmp/moko-platform-api + "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/mokoplatform.git" \ + /tmp/mokoplatform-api + cd /tmp/mokoplatform-api composer install --no-dev --no-interaction --quiet - name: "Publish stable release" run: | - php /tmp/moko-platform-api/cli/release_publish.php \ + php /tmp/mokoplatform-api/cli/release_publish.php \ --path . --stability stable --bump minor --branch main \ --token "${{ secrets.MOKOGITEA_TOKEN }}" @@ -180,7 +180,7 @@ jobs: RELEASE_TAG="${{ steps.version.outputs.release_tag }}" GH_REPO="${{ vars.GH_MIRROR_REPO || github.repository }}" API_BASE="${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" - php /tmp/moko-platform-api/cli/release_mirror.php \ + php /tmp/mokoplatform-api/cli/release_mirror.php \ --version "$VERSION" --tag "$RELEASE_TAG" \ --token "${{ secrets.MOKOGITEA_TOKEN }}" --api-base "$API_BASE" \ --gh-token "${{ secrets.GH_MIRROR_TOKEN }}" --gh-repo "$GH_REPO" \ @@ -254,7 +254,7 @@ jobs: continue-on-error: true run: | API_BASE="${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" - php /tmp/moko-platform-api/cli/version_reset_dev.php \ + php /tmp/mokoplatform-api/cli/version_reset_dev.php \ --token "${{ secrets.MOKOGITEA_TOKEN }}" --api-base "${API_BASE}" \ --branch dev --path . 2>&1 || true diff --git a/templates/repos/client-waas/.mokogitea/workflows/branch-cleanup.yml b/templates/repos/client-waas/.mokogitea/workflows/branch-cleanup.yml index e0ba128..28d1d47 100644 --- a/templates/repos/client-waas/.mokogitea/workflows/branch-cleanup.yml +++ b/templates/repos/client-waas/.mokogitea/workflows/branch-cleanup.yml @@ -5,7 +5,7 @@ # FILE INFORMATION # DEFGROUP: Gitea.Workflow # INGROUP: MokoStandards.Universal -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /.mokogitea/workflows/branch-cleanup.yml # VERSION: 01.00.00 # BRIEF: Delete feature branches after PR merge diff --git a/templates/repos/client-waas/.mokogitea/workflows/ci-client.yml b/templates/repos/client-waas/.mokogitea/workflows/ci-client.yml index 3a68fa2..66fa840 100644 --- a/templates/repos/client-waas/.mokogitea/workflows/ci-client.yml +++ b/templates/repos/client-waas/.mokogitea/workflows/ci-client.yml @@ -34,28 +34,28 @@ jobs: - uses: actions/checkout@v4 - - name: Setup moko-platform + - name: Setup mokoplatform run: | git clone --depth 1 --branch main --quiet \ - "https://x-access-token:${{ secrets.GA_TOKEN }}@git.mokoconsulting.tech/MokoConsulting/moko-platform.git" \ - /tmp/moko-platform 2>/dev/null || true + "https://x-access-token:${{ secrets.GA_TOKEN }}@git.mokoconsulting.tech/MokoConsulting/mokoplatform.git" \ + /tmp/mokoplatform 2>/dev/null || true - name: Read version id: version run: | - VERSION=$(php /tmp/moko-platform/cli/version_read.php --path .) + VERSION=$(php /tmp/mokoplatform/cli/version_read.php --path .) echo "version=$VERSION" >> "$GITHUB_OUTPUT" echo "Version: $VERSION" - name: Build ZIP (dry-run) run: | - php /tmp/moko-platform/cli/joomla_build.php \ + php /tmp/mokoplatform/cli/joomla_build.php \ --path . --version "${{ steps.version.outputs.version }}" --output /tmp echo "ZIP build successful" - name: Validate manifest run: | - php /tmp/moko-platform/cli/updates_xml_build.php \ + php /tmp/mokoplatform/cli/updates_xml_build.php \ --path . \ --version "${{ steps.version.outputs.version }}" \ --stability stable \ diff --git a/templates/repos/client-waas/.mokogitea/workflows/client-release.yml b/templates/repos/client-waas/.mokogitea/workflows/client-release.yml index f5beebb..c8a9fb2 100644 --- a/templates/repos/client-waas/.mokogitea/workflows/client-release.yml +++ b/templates/repos/client-waas/.mokogitea/workflows/client-release.yml @@ -11,10 +11,10 @@ # | Triggers on PR merge to main or manual dispatch. | # | | # | Pipeline: | -# | 1. Read version via moko-platform CLI | +# | 1. Read version via mokoplatform CLI | # | 2. Build installable ZIP from src/ | # | 3. Create/update stream releases (stable, rc, beta, alpha, dev) | -# | 4. Generate updates.xml via moko-platform CLI | +# | 4. Generate updates.xml via mokoplatform CLI | # | 5. Bump dev branch version via CLI (minor bump) | # | | # +========================================================================+ @@ -73,12 +73,12 @@ jobs: apt-get update -qq && apt-get install -y -qq php-cli php-xml php-curl php-zip zip unzip > /dev/null 2>&1 || true fi - # ── Setup moko-platform CLI tools ────────────────────────── - - name: Setup moko-platform + # ── Setup mokoplatform CLI tools ────────────────────────── + - name: Setup mokoplatform run: | git clone --depth 1 --branch main --quiet \ - "https://x-access-token:${{ secrets.GA_TOKEN }}@git.mokoconsulting.tech/MokoConsulting/moko-platform.git" \ - /tmp/moko-platform 2>/dev/null || true + "https://x-access-token:${{ secrets.GA_TOKEN }}@git.mokoconsulting.tech/MokoConsulting/mokoplatform.git" \ + /tmp/mokoplatform 2>/dev/null || true # ── Step 1: Read version from manifest ──────────────────── - name: Read version @@ -92,8 +92,8 @@ jobs: fi # Read version and extension metadata via CLI - VERSION=$(php /tmp/moko-platform/cli/version_read.php --path .) - php /tmp/moko-platform/cli/updates_xml_build.php \ + VERSION=$(php /tmp/mokoplatform/cli/version_read.php --path .) + php /tmp/mokoplatform/cli/updates_xml_build.php \ --path . --version "$VERSION" --stability stable --github-output # ext_name, ext_element, ext_type, ext_folder, type_prefix now in GITHUB_OUTPUT @@ -119,7 +119,7 @@ jobs: if: steps.version.outputs.skip != 'true' id: build run: | - php /tmp/moko-platform/cli/joomla_build.php \ + php /tmp/mokoplatform/cli/joomla_build.php \ --path . \ --version "${{ steps.version.outputs.version }}" \ --output /tmp \ @@ -134,10 +134,10 @@ jobs: ZIP_PATH="${{ steps.build.outputs.zip_path }}" API_BASE="${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" TOKEN="${{ secrets.GA_TOKEN }}" - CLI="/tmp/moko-platform/cli/release_manage.php" + CLI="/tmp/mokoplatform/cli/release_manage.php" # Extract release notes via CLI - php /tmp/moko-platform/cli/release_notes.php \ + php /tmp/mokoplatform/cli/release_notes.php \ --path . --version "$VERSION" > /tmp/release_notes.txt 2>/dev/null || echo "Release ${VERSION}" > /tmp/release_notes.txt for STREAM in stable rc beta alpha development; do @@ -169,7 +169,7 @@ jobs: VERSION="${{ steps.version.outputs.version }}" SHA256="${{ steps.build.outputs.sha256 }}" - php /tmp/moko-platform/cli/updates_xml_build.php \ + php /tmp/mokoplatform/cli/updates_xml_build.php \ --path . \ --version "$VERSION" \ --stability stable \ @@ -180,7 +180,7 @@ jobs: --output updates.xml # Sync updates.xml to main and dev via Gitea contents API - php /tmp/moko-platform/cli/updates_xml_sync.php \ + php /tmp/mokoplatform/cli/updates_xml_sync.php \ --path . \ --branches main,dev \ --current "$(git branch --show-current)" \ @@ -191,7 +191,7 @@ jobs: - name: Bump dev version if: steps.version.outputs.skip != 'true' run: | - php /tmp/moko-platform/cli/version_bump_remote.php \ + php /tmp/mokoplatform/cli/version_bump_remote.php \ --path . \ --branch dev \ --bump minor \ diff --git a/templates/repos/client-waas/.mokogitea/workflows/health-check.yml b/templates/repos/client-waas/.mokogitea/workflows/health-check.yml index f053b8a..2f8af01 100644 --- a/templates/repos/client-waas/.mokogitea/workflows/health-check.yml +++ b/templates/repos/client-waas/.mokogitea/workflows/health-check.yml @@ -31,11 +31,11 @@ jobs: - uses: actions/checkout@v4 - - name: Setup moko-platform + - name: Setup mokoplatform run: | git clone --depth 1 --branch main --quiet \ - "https://x-access-token:${{ secrets.GA_TOKEN }}@git.mokoconsulting.tech/MokoConsulting/moko-platform.git" \ - /tmp/moko-platform 2>/dev/null || true + "https://x-access-token:${{ secrets.GA_TOKEN }}@git.mokoconsulting.tech/MokoConsulting/mokoplatform.git" \ + /tmp/mokoplatform 2>/dev/null || true - name: Run health check env: @@ -44,7 +44,7 @@ jobs: # Get update URL from manifest, use API with auth for private repos UPDATE_URL=$(grep -m1 '/dev/null | sed 's/.*>\(http[^<]*\)<.*/\1/' || echo "") if [ -n "$UPDATE_URL" ]; then - php /tmp/moko-platform/cli/client_health_check.php \ + php /tmp/mokoplatform/cli/client_health_check.php \ --update-url "$UPDATE_URL" --github-output else echo "No update server URL found in manifest" diff --git a/templates/repos/client-waas/.mokogitea/workflows/issue-branch.yml b/templates/repos/client-waas/.mokogitea/workflows/issue-branch.yml index c2b02a6..29efe39 100644 --- a/templates/repos/client-waas/.mokogitea/workflows/issue-branch.yml +++ b/templates/repos/client-waas/.mokogitea/workflows/issue-branch.yml @@ -4,7 +4,7 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Automation +# INGROUP: mokoplatform.Automation # VERSION: 01.00.00 # BRIEF: Auto-create feature branch when an issue is opened diff --git a/templates/repos/client-waas/.mokogitea/workflows/joomla-compat.yml b/templates/repos/client-waas/.mokogitea/workflows/joomla-compat.yml index 2a4881e..50313a2 100644 --- a/templates/repos/client-waas/.mokogitea/workflows/joomla-compat.yml +++ b/templates/repos/client-waas/.mokogitea/workflows/joomla-compat.yml @@ -34,13 +34,13 @@ jobs: - uses: actions/checkout@v4 - - name: Setup moko-platform + - name: Setup mokoplatform run: | git clone --depth 1 --branch main --quiet \ - "https://x-access-token:${{ secrets.GA_TOKEN }}@git.mokoconsulting.tech/MokoConsulting/moko-platform.git" \ - /tmp/moko-platform 2>/dev/null || true + "https://x-access-token:${{ secrets.GA_TOKEN }}@git.mokoconsulting.tech/MokoConsulting/mokoplatform.git" \ + /tmp/mokoplatform 2>/dev/null || true - name: Check compatibility continue-on-error: true run: | - php /tmp/moko-platform/cli/joomla_compat_check.php --path . --github-output + php /tmp/mokoplatform/cli/joomla_compat_check.php --path . --github-output diff --git a/templates/repos/client-waas/.mokogitea/workflows/pr-check.yml b/templates/repos/client-waas/.mokogitea/workflows/pr-check.yml index 6625857..5e391db 100644 --- a/templates/repos/client-waas/.mokogitea/workflows/pr-check.yml +++ b/templates/repos/client-waas/.mokogitea/workflows/pr-check.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.CI -# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/moko-platform +# INGROUP: mokoplatform.CI +# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/mokoplatform # PATH: /templates/workflows/universal/pr-check.yml.template # VERSION: 09.23.00 # BRIEF: PR gate — branch policy + code validation before merge diff --git a/templates/repos/client-waas/.mokogitea/workflows/pre-release.yml b/templates/repos/client-waas/.mokogitea/workflows/pre-release.yml index 162b08f..b5b7bde 100644 --- a/templates/repos/client-waas/.mokogitea/workflows/pre-release.yml +++ b/templates/repos/client-waas/.mokogitea/workflows/pre-release.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Release -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# INGROUP: mokoplatform.Release +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /templates/workflows/universal/pre-release.yml.template # VERSION: 05.01.00 # BRIEF: Manual pre-release -- builds dev/alpha/beta/rc packages from any branch @@ -52,7 +52,7 @@ jobs: fetch-depth: 0 token: ${{ secrets.MOKOGITEA_TOKEN }} - - name: Setup moko-platform tools + - name: Setup mokoplatform tools env: MOKO_CLONE_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} MOKO_CLONE_HOST: git.mokoconsulting.tech/MokoConsulting @@ -61,12 +61,12 @@ jobs: sudo apt-get update -qq && sudo apt-get install -y -qq php-cli php-mbstring php-xml php-zip php-curl composer >/dev/null 2>&1 fi # Always fetch latest CLI tools — never use stale cache from previous runs - rm -rf /tmp/moko-platform-api + rm -rf /tmp/mokoplatform-api git clone --depth 1 --branch main --quiet \ - "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/moko-platform.git" \ - /tmp/moko-platform-api - cd /tmp/moko-platform-api && composer install --no-dev --no-interaction --quiet - echo "MOKO_CLI=/tmp/moko-platform-api/cli" >> "$GITHUB_ENV" + "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/mokoplatform.git" \ + /tmp/mokoplatform-api + cd /tmp/mokoplatform-api && composer install --no-dev --no-interaction --quiet + echo "MOKO_CLI=/tmp/mokoplatform-api/cli" >> "$GITHUB_ENV" - name: Detect platform id: platform diff --git a/templates/repos/client-waas/.mokogitea/workflows/release-verify.yml b/templates/repos/client-waas/.mokogitea/workflows/release-verify.yml index 3da3115..2f6e753 100644 --- a/templates/repos/client-waas/.mokogitea/workflows/release-verify.yml +++ b/templates/repos/client-waas/.mokogitea/workflows/release-verify.yml @@ -33,24 +33,24 @@ jobs: - uses: actions/checkout@v4 - - name: Setup moko-platform + - name: Setup mokoplatform run: | git clone --depth 1 --branch main --quiet \ - "https://x-access-token:${{ secrets.GA_TOKEN }}@git.mokoconsulting.tech/MokoConsulting/moko-platform.git" \ - /tmp/moko-platform 2>/dev/null || true + "https://x-access-token:${{ secrets.GA_TOKEN }}@git.mokoconsulting.tech/MokoConsulting/mokoplatform.git" \ + /tmp/mokoplatform 2>/dev/null || true - name: Read version id: version run: | # Read the stable version from updates.xml (what was actually released) - VERSION=$(grep -m1 'stable' -A5 updates.xml | grep '' | sed 's/.*\(.*\)<\/version>.*/\1/' || php /tmp/moko-platform/cli/version_read.php --path .) + VERSION=$(grep -m1 'stable' -A5 updates.xml | grep '' | sed 's/.*\(.*\)<\/version>.*/\1/' || php /tmp/mokoplatform/cli/version_read.php --path .) echo "version=$VERSION" >> "$GITHUB_OUTPUT" echo "Verifying version: $VERSION" - name: Verify stream releases continue-on-error: true run: | - php /tmp/moko-platform/cli/release_validate.php \ + php /tmp/mokoplatform/cli/release_validate.php \ --token "${{ secrets.GA_TOKEN }}" \ --api-base "${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" \ --version "${{ steps.version.outputs.version }}" \ diff --git a/templates/repos/client-waas/.mokogitea/workflows/repo-health.yml b/templates/repos/client-waas/.mokogitea/workflows/repo-health.yml index d0538d5..b2b9263 100644 --- a/templates/repos/client-waas/.mokogitea/workflows/repo-health.yml +++ b/templates/repos/client-waas/.mokogitea/workflows/repo-health.yml @@ -7,8 +7,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Validation -# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/moko-platform +# INGROUP: mokoplatform.Validation +# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/mokoplatform # PATH: /templates/workflows/joomla/repo_health.yml.template # VERSION: 09.23.00 # BRIEF: Enforces repository guardrails by validating scripts governance, tooling availability, and core repository health artifacts. diff --git a/templates/repos/client-waas/.mokogitea/workflows/theme-lint.yml b/templates/repos/client-waas/.mokogitea/workflows/theme-lint.yml index 4c33030..dbed263 100644 --- a/templates/repos/client-waas/.mokogitea/workflows/theme-lint.yml +++ b/templates/repos/client-waas/.mokogitea/workflows/theme-lint.yml @@ -32,12 +32,12 @@ jobs: - uses: actions/checkout@v4 - - name: Setup moko-platform + - name: Setup mokoplatform run: | git clone --depth 1 --branch main --quiet \ - "https://x-access-token:${{ secrets.GA_TOKEN }}@git.mokoconsulting.tech/MokoConsulting/moko-platform.git" \ - /tmp/moko-platform 2>/dev/null || true + "https://x-access-token:${{ secrets.GA_TOKEN }}@git.mokoconsulting.tech/MokoConsulting/mokoplatform.git" \ + /tmp/mokoplatform 2>/dev/null || true - name: Lint theme run: | - php /tmp/moko-platform/cli/theme_lint.php --path . --github-output + php /tmp/mokoplatform/cli/theme_lint.php --path . --github-output diff --git a/templates/repos/client-waas/Makefile b/templates/repos/client-waas/Makefile index 8d3da5d..3240c3d 100644 --- a/templates/repos/client-waas/Makefile +++ b/templates/repos/client-waas/Makefile @@ -197,7 +197,7 @@ clean: ## Clean build artifacts @echo "$(COLOR_GREEN)✓ Build artifacts cleaned$(COLOR_RESET)" # MokoStandards platform path (for shared tools like minify) -MOKO_PLATFORM ?= $(or $(wildcard ../moko-platform),$(wildcard $(HOME)/moko-platform),$(wildcard /opt/moko-platform)) +MOKO_PLATFORM ?= $(or $(wildcard ../mokoplatform),$(wildcard $(HOME)/mokoplatform),$(wildcard /opt/mokoplatform)) MINIFY_SCRIPT := $(MOKO_PLATFORM)/build/minify.js .PHONY: minify @@ -208,7 +208,7 @@ minify: ## Minify CSS/JS assets (requires terser + clean-css) elif [ -f "scripts/minify.js" ]; then \ $(NODE) scripts/minify.js; \ else \ - echo "$(COLOR_YELLOW)⚠ No minify script found. Install moko-platform or add scripts/minify.js$(COLOR_RESET)"; \ + echo "$(COLOR_YELLOW)⚠ No minify script found. Install mokoplatform or add scripts/minify.js$(COLOR_RESET)"; \ fi .PHONY: build diff --git a/templates/repos/client-waas/README.md b/templates/repos/client-waas/README.md index 605bc19..e06e3e7 100644 --- a/templates/repos/client-waas/README.md +++ b/templates/repos/client-waas/README.md @@ -57,7 +57,7 @@ The template includes: --- -> **[MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki)** -- central standards hub for all Moko Consulting projects. +> **[MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki)** -- central standards hub for all Moko Consulting projects. --- @@ -79,4 +79,4 @@ This project is licensed under the GNU General Public License v3.0 or later -- s --- -*[Moko Consulting](https://mokoconsulting.tech) -- [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki/Home)* +*[Moko Consulting](https://mokoconsulting.tech) -- [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki/Home)* diff --git a/templates/repos/client-waas/automation/ci-issue-reporter.sh b/templates/repos/client-waas/automation/ci-issue-reporter.sh index 65c47ba..4789391 100644 --- a/templates/repos/client-waas/automation/ci-issue-reporter.sh +++ b/templates/repos/client-waas/automation/ci-issue-reporter.sh @@ -6,8 +6,8 @@ # # FILE INFORMATION # DEFGROUP: Automation.CI -# INGROUP: moko-platform.Automation -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# INGROUP: mokoplatform.Automation +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /automation/ci-issue-reporter.sh # VERSION: 09.23.00 # BRIEF: Creates or updates a Gitea issue when a CI gate fails. diff --git a/templates/repos/dolibarr/.mokogitea/ISSUE_TEMPLATE/config.yml b/templates/repos/dolibarr/.mokogitea/ISSUE_TEMPLATE/config.yml index d4d49ec..7c403f1 100644 --- a/templates/repos/dolibarr/.mokogitea/ISSUE_TEMPLATE/config.yml +++ b/templates/repos/dolibarr/.mokogitea/ISSUE_TEMPLATE/config.yml @@ -8,7 +8,7 @@ contact_links: url: https://mokoconsulting.tech/ about: Get help or ask questions through our website - name: 📚 MokoStandards Documentation - url: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + url: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform about: View our coding standards and best practices - name: 🔒 Report a Security Vulnerability url: https://git.mokoconsulting.tech/mokoconsulting-tech/.github-private/security/advisories/new diff --git a/templates/repos/dolibarr/.mokogitea/branch-protection.yml b/templates/repos/dolibarr/.mokogitea/branch-protection.yml index 2dff8b9..8adde0a 100644 --- a/templates/repos/dolibarr/.mokogitea/branch-protection.yml +++ b/templates/repos/dolibarr/.mokogitea/branch-protection.yml @@ -2,8 +2,8 @@ # SPDX-License-Identifier: GPL-3.0-or-later # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Automation -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# INGROUP: mokoplatform.Automation +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /.gitea/workflows/branch-protection.yml # BRIEF: Apply standardised branch protection rules to all governed repositories # @@ -62,7 +62,7 @@ jobs: API="${GITEA_URL}/api/v1" # Platform/standards/infra repos to exclude - EXCLUDE="gitea-org-config org-profile gitea-private .mokogitea-private MokoStandards moko-platform MokoTesting" + EXCLUDE="gitea-org-config org-profile gitea-private .mokogitea-private MokoStandards mokoplatform MokoTesting" EXCLUDE="$EXCLUDE MokoStandards-Template-Client MokoStandards-Template-Dolibarr MokoStandards-Template-Generic MokoStandards-Template-Joomla MokoDoliProjTemplate" if [ -n "${{ inputs.repos }}" ]; then diff --git a/templates/repos/dolibarr/.mokogitea/manifest.xml b/templates/repos/dolibarr/.mokogitea/manifest.xml index ef3daf4..9f846f1 100644 --- a/templates/repos/dolibarr/.mokogitea/manifest.xml +++ b/templates/repos/dolibarr/.mokogitea/manifest.xml @@ -2,9 +2,9 @@ - + Template-Dolibarr MokoConsulting @@ -14,11 +14,11 @@ dolibarr 05.00.00 - https://git.mokoconsulting.tech/MokoConsulting/moko-platform + https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PHP dolibarr htdocs/custom/ - + diff --git a/templates/repos/dolibarr/.mokogitea/workflows/auto-bump.yml b/templates/repos/dolibarr/.mokogitea/workflows/auto-bump.yml index 34953b1..022148e 100644 --- a/templates/repos/dolibarr/.mokogitea/workflows/auto-bump.yml +++ b/templates/repos/dolibarr/.mokogitea/workflows/auto-bump.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Release -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# INGROUP: mokoplatform.Release +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /.mokogitea/workflows/auto-bump.yml # VERSION: 09.02.00 # BRIEF: Auto patch-bump version on every push to dev (skips merge commits) @@ -43,19 +43,19 @@ jobs: token: ${{ secrets.MOKOGITEA_TOKEN }} fetch-depth: 1 - - name: Setup moko-platform tools + - name: Setup mokoplatform tools run: | if ! command -v composer &> /dev/null; then sudo apt-get update -qq && sudo apt-get install -y -qq php-cli php-mbstring php-xml php-zip php-curl composer >/dev/null 2>&1 fi - if [ -d "/opt/moko-platform/cli" ]; then - echo "MOKO_CLI=/opt/moko-platform/cli" >> "$GITHUB_ENV" + if [ -d "/opt/mokoplatform/cli" ]; then + echo "MOKO_CLI=/opt/mokoplatform/cli" >> "$GITHUB_ENV" else git clone --depth 1 --branch main --quiet \ - "https://x-access-token:${{ secrets.MOKOGITEA_TOKEN }}@git.mokoconsulting.tech/MokoConsulting/moko-platform.git" \ - /tmp/moko-platform-api - cd /tmp/moko-platform-api && composer install --no-dev --no-interaction --quiet - echo "MOKO_CLI=/tmp/moko-platform-api/cli" >> "$GITHUB_ENV" + "https://x-access-token:${{ secrets.MOKOGITEA_TOKEN }}@git.mokoconsulting.tech/MokoConsulting/mokoplatform.git" \ + /tmp/mokoplatform-api + cd /tmp/mokoplatform-api && composer install --no-dev --no-interaction --quiet + echo "MOKO_CLI=/tmp/mokoplatform-api/cli" >> "$GITHUB_ENV" fi - name: Bump version diff --git a/templates/repos/dolibarr/.mokogitea/workflows/auto-release.yml b/templates/repos/dolibarr/.mokogitea/workflows/auto-release.yml index 78dec4b..8030e58 100644 --- a/templates/repos/dolibarr/.mokogitea/workflows/auto-release.yml +++ b/templates/repos/dolibarr/.mokogitea/workflows/auto-release.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Release -# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/moko-platform +# INGROUP: mokoplatform.Release +# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/mokoplatform # PATH: /templates/workflows/universal/auto-release.yml.template # VERSION: 05.00.00 # BRIEF: Universal build & release � detects platform from manifest.xml @@ -66,7 +66,7 @@ jobs: token: ${{ secrets.MOKOGITEA_TOKEN }} fetch-depth: 1 - - name: Setup moko-platform tools + - name: Setup mokoplatform tools env: MOKO_CLONE_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} MOKO_CLONE_HOST: git.mokoconsulting.tech/MokoConsulting @@ -75,16 +75,16 @@ jobs: sudo apt-get update -qq && sudo apt-get install -y -qq php-cli php-mbstring php-xml php-zip php-curl composer >/dev/null 2>&1 fi # Always fetch latest CLI tools — never use stale cache from previous runs - rm -rf /tmp/moko-platform-api + rm -rf /tmp/mokoplatform-api git clone --depth 1 --branch main --quiet \ - "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/moko-platform.git" \ - /tmp/moko-platform-api - cd /tmp/moko-platform-api + "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/mokoplatform.git" \ + /tmp/mokoplatform-api + cd /tmp/mokoplatform-api composer install --no-dev --no-interaction --quiet - name: Rename branch to rc run: | - php /tmp/moko-platform-api/cli/branch_rename.php \ + php /tmp/mokoplatform-api/cli/branch_rename.php \ --from "${{ github.event.pull_request.head.ref || 'dev' }}" --to rc \ --token "${{ secrets.MOKOGITEA_TOKEN }}" \ --api-base "${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" \ @@ -100,7 +100,7 @@ jobs: - name: Publish RC release run: | - php /tmp/moko-platform-api/cli/release_publish.php \ + php /tmp/mokoplatform-api/cli/release_publish.php \ --path . --stability rc --bump minor --branch rc \ --token "${{ secrets.MOKOGITEA_TOKEN }}" @@ -144,7 +144,7 @@ jobs: fi echo "No conflict markers found" - - name: Setup moko-platform tools + - name: Setup mokoplatform tools env: MOKO_CLONE_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} MOKO_CLONE_HOST: git.mokoconsulting.tech/MokoConsulting @@ -155,17 +155,17 @@ jobs: sudo apt-get update -qq && sudo apt-get install -y -qq php-cli php-mbstring php-xml php-zip php-curl composer >/dev/null 2>&1 fi # Always fetch latest CLI tools — never use stale cache from previous runs - rm -rf /tmp/moko-platform-api + rm -rf /tmp/mokoplatform-api git clone --depth 1 --branch main --quiet \ - "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/moko-platform.git" \ - /tmp/moko-platform-api - cd /tmp/moko-platform-api + "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/mokoplatform.git" \ + /tmp/mokoplatform-api + cd /tmp/mokoplatform-api composer install --no-dev --no-interaction --quiet - name: "Publish stable release" run: | - php /tmp/moko-platform-api/cli/release_publish.php \ + php /tmp/mokoplatform-api/cli/release_publish.php \ --path . --stability stable --bump minor --branch main \ --token "${{ secrets.MOKOGITEA_TOKEN }}" @@ -180,7 +180,7 @@ jobs: RELEASE_TAG="${{ steps.version.outputs.release_tag }}" GH_REPO="${{ vars.GH_MIRROR_REPO || github.repository }}" API_BASE="${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" - php /tmp/moko-platform-api/cli/release_mirror.php \ + php /tmp/mokoplatform-api/cli/release_mirror.php \ --version "$VERSION" --tag "$RELEASE_TAG" \ --token "${{ secrets.MOKOGITEA_TOKEN }}" --api-base "$API_BASE" \ --gh-token "${{ secrets.GH_MIRROR_TOKEN }}" --gh-repo "$GH_REPO" \ @@ -254,7 +254,7 @@ jobs: continue-on-error: true run: | API_BASE="${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" - php /tmp/moko-platform-api/cli/version_reset_dev.php \ + php /tmp/mokoplatform-api/cli/version_reset_dev.php \ --token "${{ secrets.MOKOGITEA_TOKEN }}" --api-base "${API_BASE}" \ --branch dev --path . 2>&1 || true diff --git a/templates/repos/dolibarr/.mokogitea/workflows/branch-cleanup.yml b/templates/repos/dolibarr/.mokogitea/workflows/branch-cleanup.yml index e0ba128..28d1d47 100644 --- a/templates/repos/dolibarr/.mokogitea/workflows/branch-cleanup.yml +++ b/templates/repos/dolibarr/.mokogitea/workflows/branch-cleanup.yml @@ -5,7 +5,7 @@ # FILE INFORMATION # DEFGROUP: Gitea.Workflow # INGROUP: MokoStandards.Universal -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /.mokogitea/workflows/branch-cleanup.yml # VERSION: 01.00.00 # BRIEF: Delete feature branches after PR merge diff --git a/templates/repos/dolibarr/.mokogitea/workflows/issue-branch.yml b/templates/repos/dolibarr/.mokogitea/workflows/issue-branch.yml index c2b02a6..29efe39 100644 --- a/templates/repos/dolibarr/.mokogitea/workflows/issue-branch.yml +++ b/templates/repos/dolibarr/.mokogitea/workflows/issue-branch.yml @@ -4,7 +4,7 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Automation +# INGROUP: mokoplatform.Automation # VERSION: 01.00.00 # BRIEF: Auto-create feature branch when an issue is opened diff --git a/templates/repos/dolibarr/.mokogitea/workflows/pr-check.yml b/templates/repos/dolibarr/.mokogitea/workflows/pr-check.yml index 6625857..5e391db 100644 --- a/templates/repos/dolibarr/.mokogitea/workflows/pr-check.yml +++ b/templates/repos/dolibarr/.mokogitea/workflows/pr-check.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.CI -# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/moko-platform +# INGROUP: mokoplatform.CI +# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/mokoplatform # PATH: /templates/workflows/universal/pr-check.yml.template # VERSION: 09.23.00 # BRIEF: PR gate — branch policy + code validation before merge diff --git a/templates/repos/dolibarr/.mokogitea/workflows/pre-release.yml b/templates/repos/dolibarr/.mokogitea/workflows/pre-release.yml index 162b08f..b5b7bde 100644 --- a/templates/repos/dolibarr/.mokogitea/workflows/pre-release.yml +++ b/templates/repos/dolibarr/.mokogitea/workflows/pre-release.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Release -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# INGROUP: mokoplatform.Release +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /templates/workflows/universal/pre-release.yml.template # VERSION: 05.01.00 # BRIEF: Manual pre-release -- builds dev/alpha/beta/rc packages from any branch @@ -52,7 +52,7 @@ jobs: fetch-depth: 0 token: ${{ secrets.MOKOGITEA_TOKEN }} - - name: Setup moko-platform tools + - name: Setup mokoplatform tools env: MOKO_CLONE_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} MOKO_CLONE_HOST: git.mokoconsulting.tech/MokoConsulting @@ -61,12 +61,12 @@ jobs: sudo apt-get update -qq && sudo apt-get install -y -qq php-cli php-mbstring php-xml php-zip php-curl composer >/dev/null 2>&1 fi # Always fetch latest CLI tools — never use stale cache from previous runs - rm -rf /tmp/moko-platform-api + rm -rf /tmp/mokoplatform-api git clone --depth 1 --branch main --quiet \ - "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/moko-platform.git" \ - /tmp/moko-platform-api - cd /tmp/moko-platform-api && composer install --no-dev --no-interaction --quiet - echo "MOKO_CLI=/tmp/moko-platform-api/cli" >> "$GITHUB_ENV" + "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/mokoplatform.git" \ + /tmp/mokoplatform-api + cd /tmp/mokoplatform-api && composer install --no-dev --no-interaction --quiet + echo "MOKO_CLI=/tmp/mokoplatform-api/cli" >> "$GITHUB_ENV" - name: Detect platform id: platform diff --git a/templates/repos/dolibarr/.mokogitea/workflows/repo-health.yml b/templates/repos/dolibarr/.mokogitea/workflows/repo-health.yml index d0538d5..b2b9263 100644 --- a/templates/repos/dolibarr/.mokogitea/workflows/repo-health.yml +++ b/templates/repos/dolibarr/.mokogitea/workflows/repo-health.yml @@ -7,8 +7,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Validation -# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/moko-platform +# INGROUP: mokoplatform.Validation +# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/mokoplatform # PATH: /templates/workflows/joomla/repo_health.yml.template # VERSION: 09.23.00 # BRIEF: Enforces repository guardrails by validating scripts governance, tooling availability, and core repository health artifacts. diff --git a/templates/repos/dolibarr/CLAUDE.md b/templates/repos/dolibarr/CLAUDE.md index bcb8f27..bff5ff5 100644 --- a/templates/repos/dolibarr/CLAUDE.md +++ b/templates/repos/dolibarr/CLAUDE.md @@ -13,7 +13,7 @@ This file provides guidance to Claude Code when working with this repository. | **Default branch** | main | | **License** | GPL-3.0-or-later | | **Wiki** | [Template-Dolibarr Wiki](https://git.mokoconsulting.tech/MokoConsulting/Template-Dolibarr/wiki) | -| **Standards** | [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki/Home) | +| **Standards** | [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki/Home) | ## Common Commands @@ -44,4 +44,4 @@ This is a project template. Files are copied when creating new repos. - **Branch strategy**: develop on `dev`, merge to `main` for release - **Minification**: handled at build time (CI) and runtime (MokoMinifyHelper for Joomla templates) - **Wiki**: documentation lives in the Gitea wiki, not in `docs/` files -- **Standards**: this repo follows [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki/Home) +- **Standards**: this repo follows [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki/Home) diff --git a/templates/repos/dolibarr/README.md b/templates/repos/dolibarr/README.md index a28f88f..77d9415 100644 --- a/templates/repos/dolibarr/README.md +++ b/templates/repos/dolibarr/README.md @@ -9,7 +9,7 @@ A repository template for building Dolibarr ERP/CRM modules following MokoStanda | **Language** | PHP | | **License** | GPL-3.0-or-later | | **Platform** | [Gitea](https://git.mokoconsulting.tech/MokoConsulting/Template-Dolibarr) | -| **Standards** | [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki/Home) | +| **Standards** | [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki/Home) | --- @@ -239,4 +239,4 @@ This project is licensed under the GNU General Public License v3.0 or later -- s --- -*[Moko Consulting](https://mokoconsulting.tech) -- [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki/Home)* +*[Moko Consulting](https://mokoconsulting.tech) -- [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki/Home)* diff --git a/templates/repos/dolibarr/automation/ci-issue-reporter.sh b/templates/repos/dolibarr/automation/ci-issue-reporter.sh index 65c47ba..4789391 100644 --- a/templates/repos/dolibarr/automation/ci-issue-reporter.sh +++ b/templates/repos/dolibarr/automation/ci-issue-reporter.sh @@ -6,8 +6,8 @@ # # FILE INFORMATION # DEFGROUP: Automation.CI -# INGROUP: moko-platform.Automation -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# INGROUP: mokoplatform.Automation +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /automation/ci-issue-reporter.sh # VERSION: 09.23.00 # BRIEF: Creates or updates a Gitea issue when a CI gate fails. diff --git a/templates/repos/generic/.mokogitea/ISSUE_TEMPLATE/config.yml b/templates/repos/generic/.mokogitea/ISSUE_TEMPLATE/config.yml index d4d49ec..7c403f1 100644 --- a/templates/repos/generic/.mokogitea/ISSUE_TEMPLATE/config.yml +++ b/templates/repos/generic/.mokogitea/ISSUE_TEMPLATE/config.yml @@ -8,7 +8,7 @@ contact_links: url: https://mokoconsulting.tech/ about: Get help or ask questions through our website - name: 📚 MokoStandards Documentation - url: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + url: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform about: View our coding standards and best practices - name: 🔒 Report a Security Vulnerability url: https://git.mokoconsulting.tech/mokoconsulting-tech/.github-private/security/advisories/new diff --git a/templates/repos/generic/.mokogitea/branch-protection.yml b/templates/repos/generic/.mokogitea/branch-protection.yml index 2dff8b9..8adde0a 100644 --- a/templates/repos/generic/.mokogitea/branch-protection.yml +++ b/templates/repos/generic/.mokogitea/branch-protection.yml @@ -2,8 +2,8 @@ # SPDX-License-Identifier: GPL-3.0-or-later # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Automation -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# INGROUP: mokoplatform.Automation +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /.gitea/workflows/branch-protection.yml # BRIEF: Apply standardised branch protection rules to all governed repositories # @@ -62,7 +62,7 @@ jobs: API="${GITEA_URL}/api/v1" # Platform/standards/infra repos to exclude - EXCLUDE="gitea-org-config org-profile gitea-private .mokogitea-private MokoStandards moko-platform MokoTesting" + EXCLUDE="gitea-org-config org-profile gitea-private .mokogitea-private MokoStandards mokoplatform MokoTesting" EXCLUDE="$EXCLUDE MokoStandards-Template-Client MokoStandards-Template-Dolibarr MokoStandards-Template-Generic MokoStandards-Template-Joomla MokoDoliProjTemplate" if [ -n "${{ inputs.repos }}" ]; then diff --git a/templates/repos/generic/.mokogitea/manifest.xml b/templates/repos/generic/.mokogitea/manifest.xml index 5654fd5..ab2c135 100644 --- a/templates/repos/generic/.mokogitea/manifest.xml +++ b/templates/repos/generic/.mokogitea/manifest.xml @@ -2,9 +2,9 @@ - + Template-Generic MokoConsulting @@ -14,11 +14,11 @@ generic 05.00.00 - https://git.mokoconsulting.tech/MokoConsulting/moko-platform + https://git.mokoconsulting.tech/MokoConsulting/mokoplatform Shell generic source/ - + diff --git a/templates/repos/generic/.mokogitea/workflows/auto-bump.yml b/templates/repos/generic/.mokogitea/workflows/auto-bump.yml index 34953b1..022148e 100644 --- a/templates/repos/generic/.mokogitea/workflows/auto-bump.yml +++ b/templates/repos/generic/.mokogitea/workflows/auto-bump.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Release -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# INGROUP: mokoplatform.Release +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /.mokogitea/workflows/auto-bump.yml # VERSION: 09.02.00 # BRIEF: Auto patch-bump version on every push to dev (skips merge commits) @@ -43,19 +43,19 @@ jobs: token: ${{ secrets.MOKOGITEA_TOKEN }} fetch-depth: 1 - - name: Setup moko-platform tools + - name: Setup mokoplatform tools run: | if ! command -v composer &> /dev/null; then sudo apt-get update -qq && sudo apt-get install -y -qq php-cli php-mbstring php-xml php-zip php-curl composer >/dev/null 2>&1 fi - if [ -d "/opt/moko-platform/cli" ]; then - echo "MOKO_CLI=/opt/moko-platform/cli" >> "$GITHUB_ENV" + if [ -d "/opt/mokoplatform/cli" ]; then + echo "MOKO_CLI=/opt/mokoplatform/cli" >> "$GITHUB_ENV" else git clone --depth 1 --branch main --quiet \ - "https://x-access-token:${{ secrets.MOKOGITEA_TOKEN }}@git.mokoconsulting.tech/MokoConsulting/moko-platform.git" \ - /tmp/moko-platform-api - cd /tmp/moko-platform-api && composer install --no-dev --no-interaction --quiet - echo "MOKO_CLI=/tmp/moko-platform-api/cli" >> "$GITHUB_ENV" + "https://x-access-token:${{ secrets.MOKOGITEA_TOKEN }}@git.mokoconsulting.tech/MokoConsulting/mokoplatform.git" \ + /tmp/mokoplatform-api + cd /tmp/mokoplatform-api && composer install --no-dev --no-interaction --quiet + echo "MOKO_CLI=/tmp/mokoplatform-api/cli" >> "$GITHUB_ENV" fi - name: Bump version diff --git a/templates/repos/generic/.mokogitea/workflows/auto-release.yml b/templates/repos/generic/.mokogitea/workflows/auto-release.yml index 141fdcc..850b53c 100644 --- a/templates/repos/generic/.mokogitea/workflows/auto-release.yml +++ b/templates/repos/generic/.mokogitea/workflows/auto-release.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Release -# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/moko-platform +# INGROUP: mokoplatform.Release +# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/mokoplatform # PATH: /templates/workflows/universal/auto-release.yml.template # VERSION: 05.00.00 # BRIEF: Universal build & release � detects platform from manifest.xml @@ -66,7 +66,7 @@ jobs: token: ${{ secrets.MOKOGITEA_TOKEN }} fetch-depth: 1 - - name: Setup moko-platform tools + - name: Setup mokoplatform tools env: MOKO_CLONE_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} MOKO_CLONE_HOST: git.mokoconsulting.tech/MokoConsulting @@ -75,16 +75,16 @@ jobs: sudo apt-get update -qq && sudo apt-get install -y -qq php-cli php-mbstring php-xml php-zip php-curl composer >/dev/null 2>&1 fi # Always fetch latest CLI tools — never use stale cache from previous runs - rm -rf /tmp/moko-platform-api + rm -rf /tmp/mokoplatform-api git clone --depth 1 --branch main --quiet \ - "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/moko-platform.git" \ - /tmp/moko-platform-api - cd /tmp/moko-platform-api + "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/mokoplatform.git" \ + /tmp/mokoplatform-api + cd /tmp/mokoplatform-api composer install --no-dev --no-interaction --quiet - name: Rename branch to rc run: | - php /tmp/moko-platform-api/cli/branch_rename.php \ + php /tmp/mokoplatform-api/cli/branch_rename.php \ --from "${{ github.event.pull_request.head.ref || 'dev' }}" --to rc \ --token "${{ secrets.MOKOGITEA_TOKEN }}" \ --api-base "${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" \ @@ -100,7 +100,7 @@ jobs: - name: Publish RC release run: | - php /tmp/moko-platform-api/cli/release_publish.php \ + php /tmp/mokoplatform-api/cli/release_publish.php \ --path . --stability rc --bump minor --branch rc \ --token "${{ secrets.MOKOGITEA_TOKEN }}" \ --skip-update-stream @@ -145,7 +145,7 @@ jobs: fi echo "No conflict markers found" - - name: Setup moko-platform tools + - name: Setup mokoplatform tools env: MOKO_CLONE_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} MOKO_CLONE_HOST: git.mokoconsulting.tech/MokoConsulting @@ -156,17 +156,17 @@ jobs: sudo apt-get update -qq && sudo apt-get install -y -qq php-cli php-mbstring php-xml php-zip php-curl composer >/dev/null 2>&1 fi # Always fetch latest CLI tools — never use stale cache from previous runs - rm -rf /tmp/moko-platform-api + rm -rf /tmp/mokoplatform-api git clone --depth 1 --branch main --quiet \ - "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/moko-platform.git" \ - /tmp/moko-platform-api - cd /tmp/moko-platform-api + "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/mokoplatform.git" \ + /tmp/mokoplatform-api + cd /tmp/mokoplatform-api composer install --no-dev --no-interaction --quiet - name: "Publish stable release" run: | - php /tmp/moko-platform-api/cli/release_publish.php \ + php /tmp/mokoplatform-api/cli/release_publish.php \ --path . --stability stable --bump minor --branch main \ --token "${{ secrets.MOKOGITEA_TOKEN }}" \ --skip-update-stream @@ -182,7 +182,7 @@ jobs: RELEASE_TAG="${{ steps.version.outputs.release_tag }}" GH_REPO="${{ vars.GH_MIRROR_REPO || github.repository }}" API_BASE="${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" - php /tmp/moko-platform-api/cli/release_mirror.php \ + php /tmp/mokoplatform-api/cli/release_mirror.php \ --version "$VERSION" --tag "$RELEASE_TAG" \ --token "${{ secrets.MOKOGITEA_TOKEN }}" --api-base "$API_BASE" \ --gh-token "${{ secrets.GH_MIRROR_TOKEN }}" --gh-repo "$GH_REPO" \ @@ -256,7 +256,7 @@ jobs: continue-on-error: true run: | API_BASE="${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" - php /tmp/moko-platform-api/cli/version_reset_dev.php \ + php /tmp/mokoplatform-api/cli/version_reset_dev.php \ --token "${{ secrets.MOKOGITEA_TOKEN }}" --api-base "${API_BASE}" \ --branch dev --path . 2>&1 || true diff --git a/templates/repos/generic/.mokogitea/workflows/branch-cleanup.yml b/templates/repos/generic/.mokogitea/workflows/branch-cleanup.yml index e0ba128..28d1d47 100644 --- a/templates/repos/generic/.mokogitea/workflows/branch-cleanup.yml +++ b/templates/repos/generic/.mokogitea/workflows/branch-cleanup.yml @@ -5,7 +5,7 @@ # FILE INFORMATION # DEFGROUP: Gitea.Workflow # INGROUP: MokoStandards.Universal -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /.mokogitea/workflows/branch-cleanup.yml # VERSION: 01.00.00 # BRIEF: Delete feature branches after PR merge diff --git a/templates/repos/generic/.mokogitea/workflows/issue-branch.yml b/templates/repos/generic/.mokogitea/workflows/issue-branch.yml index c2b02a6..29efe39 100644 --- a/templates/repos/generic/.mokogitea/workflows/issue-branch.yml +++ b/templates/repos/generic/.mokogitea/workflows/issue-branch.yml @@ -4,7 +4,7 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Automation +# INGROUP: mokoplatform.Automation # VERSION: 01.00.00 # BRIEF: Auto-create feature branch when an issue is opened diff --git a/templates/repos/generic/.mokogitea/workflows/pr-check.yml b/templates/repos/generic/.mokogitea/workflows/pr-check.yml index 8ad7eef..89eebc8 100644 --- a/templates/repos/generic/.mokogitea/workflows/pr-check.yml +++ b/templates/repos/generic/.mokogitea/workflows/pr-check.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.CI -# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/moko-platform +# INGROUP: mokoplatform.CI +# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/mokoplatform # PATH: /templates/workflows/universal/pr-check.yml.template # VERSION: 09.23.00 # BRIEF: PR gate — branch policy + code validation before merge diff --git a/templates/repos/generic/.mokogitea/workflows/pre-release.yml b/templates/repos/generic/.mokogitea/workflows/pre-release.yml index 162b08f..b5b7bde 100644 --- a/templates/repos/generic/.mokogitea/workflows/pre-release.yml +++ b/templates/repos/generic/.mokogitea/workflows/pre-release.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Release -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# INGROUP: mokoplatform.Release +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /templates/workflows/universal/pre-release.yml.template # VERSION: 05.01.00 # BRIEF: Manual pre-release -- builds dev/alpha/beta/rc packages from any branch @@ -52,7 +52,7 @@ jobs: fetch-depth: 0 token: ${{ secrets.MOKOGITEA_TOKEN }} - - name: Setup moko-platform tools + - name: Setup mokoplatform tools env: MOKO_CLONE_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} MOKO_CLONE_HOST: git.mokoconsulting.tech/MokoConsulting @@ -61,12 +61,12 @@ jobs: sudo apt-get update -qq && sudo apt-get install -y -qq php-cli php-mbstring php-xml php-zip php-curl composer >/dev/null 2>&1 fi # Always fetch latest CLI tools — never use stale cache from previous runs - rm -rf /tmp/moko-platform-api + rm -rf /tmp/mokoplatform-api git clone --depth 1 --branch main --quiet \ - "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/moko-platform.git" \ - /tmp/moko-platform-api - cd /tmp/moko-platform-api && composer install --no-dev --no-interaction --quiet - echo "MOKO_CLI=/tmp/moko-platform-api/cli" >> "$GITHUB_ENV" + "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/mokoplatform.git" \ + /tmp/mokoplatform-api + cd /tmp/mokoplatform-api && composer install --no-dev --no-interaction --quiet + echo "MOKO_CLI=/tmp/mokoplatform-api/cli" >> "$GITHUB_ENV" - name: Detect platform id: platform diff --git a/templates/repos/generic/.mokogitea/workflows/repo-health.yml b/templates/repos/generic/.mokogitea/workflows/repo-health.yml index 41ae492..0ee59d4 100644 --- a/templates/repos/generic/.mokogitea/workflows/repo-health.yml +++ b/templates/repos/generic/.mokogitea/workflows/repo-health.yml @@ -7,8 +7,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Validation -# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/moko-platform +# INGROUP: mokoplatform.Validation +# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/mokoplatform # PATH: /templates/workflows/joomla/repo_health.yml.template # VERSION: 09.23.00 # BRIEF: Enforces repository guardrails by validating scripts governance, tooling availability, and core repository health artifacts. diff --git a/templates/repos/generic/CLAUDE.md b/templates/repos/generic/CLAUDE.md index 13926fc..894d46b 100644 --- a/templates/repos/generic/CLAUDE.md +++ b/templates/repos/generic/CLAUDE.md @@ -13,7 +13,7 @@ This file provides guidance to Claude Code when working with this repository. | **Default branch** | main | | **License** | GPL-3.0-or-later | | **Wiki** | [Template-Generic Wiki](https://git.mokoconsulting.tech/MokoConsulting/Template-Generic/wiki) | -| **Standards** | [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki/Home) | +| **Standards** | [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki/Home) | ## Common Commands @@ -46,4 +46,4 @@ This is a project template. Files are copied when creating new repos. - **Branch strategy**: develop on `dev`, merge to `main` for release - **Minification**: handled at build time (CI) and runtime (MokoMinifyHelper for Joomla templates) - **Wiki**: documentation lives in the Gitea wiki, not in `docs/` files -- **Standards**: this repo follows [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki/Home) +- **Standards**: this repo follows [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki/Home) diff --git a/templates/repos/generic/README.md b/templates/repos/generic/README.md index caa95f3..c53faed 100644 --- a/templates/repos/generic/README.md +++ b/templates/repos/generic/README.md @@ -9,7 +9,7 @@ A generic project template conforming to MokoStandards. Use this repository as a | **Language** | Markdown | | **License** | GPL-3.0-or-later | | **Platform** | [Gitea](https://git.mokoconsulting.tech/MokoConsulting/Template-Generic) | -| **Standards** | [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki/Home) | +| **Standards** | [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki/Home) | --- @@ -153,7 +153,7 @@ This template is governed by MokoStandards. The `.gitea/.mokostandards` manifest - **Governance** -- Platform type, standards version, and last sync timestamp. - **Build** -- Language, package type, and script phases (`lint`, `validate`, `test`, `build`, `package`, `release`). -For details on MokoStandards policies and conventions, see the [moko-platform wiki](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki/Home). +For details on MokoStandards policies and conventions, see the [mokoplatform wiki](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki/Home). ## Documentation @@ -176,4 +176,4 @@ This project is licensed under the GNU General Public License v3.0 or later -- s --- -*[Moko Consulting](https://mokoconsulting.tech) -- [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki/Home)* +*[Moko Consulting](https://mokoconsulting.tech) -- [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki/Home)* diff --git a/templates/repos/generic/automation/ci-issue-reporter.sh b/templates/repos/generic/automation/ci-issue-reporter.sh index 65c47ba..4789391 100644 --- a/templates/repos/generic/automation/ci-issue-reporter.sh +++ b/templates/repos/generic/automation/ci-issue-reporter.sh @@ -6,8 +6,8 @@ # # FILE INFORMATION # DEFGROUP: Automation.CI -# INGROUP: moko-platform.Automation -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# INGROUP: mokoplatform.Automation +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /automation/ci-issue-reporter.sh # VERSION: 09.23.00 # BRIEF: Creates or updates a Gitea issue when a CI gate fails. diff --git a/templates/repos/joomla/.mokogitea/CLAUDE.md b/templates/repos/joomla/.mokogitea/CLAUDE.md index aef61d2..ab4dd2b 100644 --- a/templates/repos/joomla/.mokogitea/CLAUDE.md +++ b/templates/repos/joomla/.mokogitea/CLAUDE.md @@ -27,4 +27,4 @@ Template files for all Joomla extension types: - **Never commit** `.claude/`, `.mcp.json`, `TODO.md`, `*.min.css`/`*.min.js` - **Attribution**: `Authored-by: Moko Consulting` - **Workflow directory**: `.mokogitea/` -- **Standards**: [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki/Home) +- **Standards**: [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki/Home) diff --git a/templates/repos/joomla/.mokogitea/ISSUE_TEMPLATE/config.yml b/templates/repos/joomla/.mokogitea/ISSUE_TEMPLATE/config.yml index d4d49ec..7c403f1 100644 --- a/templates/repos/joomla/.mokogitea/ISSUE_TEMPLATE/config.yml +++ b/templates/repos/joomla/.mokogitea/ISSUE_TEMPLATE/config.yml @@ -8,7 +8,7 @@ contact_links: url: https://mokoconsulting.tech/ about: Get help or ask questions through our website - name: 📚 MokoStandards Documentation - url: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + url: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform about: View our coding standards and best practices - name: 🔒 Report a Security Vulnerability url: https://git.mokoconsulting.tech/mokoconsulting-tech/.github-private/security/advisories/new diff --git a/templates/repos/joomla/.mokogitea/branch-protection.yml b/templates/repos/joomla/.mokogitea/branch-protection.yml index 2dff8b9..8adde0a 100644 --- a/templates/repos/joomla/.mokogitea/branch-protection.yml +++ b/templates/repos/joomla/.mokogitea/branch-protection.yml @@ -2,8 +2,8 @@ # SPDX-License-Identifier: GPL-3.0-or-later # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Automation -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# INGROUP: mokoplatform.Automation +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /.gitea/workflows/branch-protection.yml # BRIEF: Apply standardised branch protection rules to all governed repositories # @@ -62,7 +62,7 @@ jobs: API="${GITEA_URL}/api/v1" # Platform/standards/infra repos to exclude - EXCLUDE="gitea-org-config org-profile gitea-private .mokogitea-private MokoStandards moko-platform MokoTesting" + EXCLUDE="gitea-org-config org-profile gitea-private .mokogitea-private MokoStandards mokoplatform MokoTesting" EXCLUDE="$EXCLUDE MokoStandards-Template-Client MokoStandards-Template-Dolibarr MokoStandards-Template-Generic MokoStandards-Template-Joomla MokoDoliProjTemplate" if [ -n "${{ inputs.repos }}" ]; then diff --git a/templates/repos/joomla/.mokogitea/manifest.xml b/templates/repos/joomla/.mokogitea/manifest.xml index 23beccb..73ef691 100644 --- a/templates/repos/joomla/.mokogitea/manifest.xml +++ b/templates/repos/joomla/.mokogitea/manifest.xml @@ -2,9 +2,9 @@ - + Template-Joomla MokoConsulting @@ -14,11 +14,11 @@ joomla 05.00.00 - https://git.mokoconsulting.tech/MokoConsulting/moko-platform + https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PHP joomla-extension src/ - + diff --git a/templates/repos/joomla/.mokogitea/workflows/auto-bump.yml b/templates/repos/joomla/.mokogitea/workflows/auto-bump.yml index 34953b1..022148e 100644 --- a/templates/repos/joomla/.mokogitea/workflows/auto-bump.yml +++ b/templates/repos/joomla/.mokogitea/workflows/auto-bump.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Release -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# INGROUP: mokoplatform.Release +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /.mokogitea/workflows/auto-bump.yml # VERSION: 09.02.00 # BRIEF: Auto patch-bump version on every push to dev (skips merge commits) @@ -43,19 +43,19 @@ jobs: token: ${{ secrets.MOKOGITEA_TOKEN }} fetch-depth: 1 - - name: Setup moko-platform tools + - name: Setup mokoplatform tools run: | if ! command -v composer &> /dev/null; then sudo apt-get update -qq && sudo apt-get install -y -qq php-cli php-mbstring php-xml php-zip php-curl composer >/dev/null 2>&1 fi - if [ -d "/opt/moko-platform/cli" ]; then - echo "MOKO_CLI=/opt/moko-platform/cli" >> "$GITHUB_ENV" + if [ -d "/opt/mokoplatform/cli" ]; then + echo "MOKO_CLI=/opt/mokoplatform/cli" >> "$GITHUB_ENV" else git clone --depth 1 --branch main --quiet \ - "https://x-access-token:${{ secrets.MOKOGITEA_TOKEN }}@git.mokoconsulting.tech/MokoConsulting/moko-platform.git" \ - /tmp/moko-platform-api - cd /tmp/moko-platform-api && composer install --no-dev --no-interaction --quiet - echo "MOKO_CLI=/tmp/moko-platform-api/cli" >> "$GITHUB_ENV" + "https://x-access-token:${{ secrets.MOKOGITEA_TOKEN }}@git.mokoconsulting.tech/MokoConsulting/mokoplatform.git" \ + /tmp/mokoplatform-api + cd /tmp/mokoplatform-api && composer install --no-dev --no-interaction --quiet + echo "MOKO_CLI=/tmp/mokoplatform-api/cli" >> "$GITHUB_ENV" fi - name: Bump version diff --git a/templates/repos/joomla/.mokogitea/workflows/auto-release.yml b/templates/repos/joomla/.mokogitea/workflows/auto-release.yml index 141fdcc..850b53c 100644 --- a/templates/repos/joomla/.mokogitea/workflows/auto-release.yml +++ b/templates/repos/joomla/.mokogitea/workflows/auto-release.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Release -# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/moko-platform +# INGROUP: mokoplatform.Release +# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/mokoplatform # PATH: /templates/workflows/universal/auto-release.yml.template # VERSION: 05.00.00 # BRIEF: Universal build & release � detects platform from manifest.xml @@ -66,7 +66,7 @@ jobs: token: ${{ secrets.MOKOGITEA_TOKEN }} fetch-depth: 1 - - name: Setup moko-platform tools + - name: Setup mokoplatform tools env: MOKO_CLONE_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} MOKO_CLONE_HOST: git.mokoconsulting.tech/MokoConsulting @@ -75,16 +75,16 @@ jobs: sudo apt-get update -qq && sudo apt-get install -y -qq php-cli php-mbstring php-xml php-zip php-curl composer >/dev/null 2>&1 fi # Always fetch latest CLI tools — never use stale cache from previous runs - rm -rf /tmp/moko-platform-api + rm -rf /tmp/mokoplatform-api git clone --depth 1 --branch main --quiet \ - "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/moko-platform.git" \ - /tmp/moko-platform-api - cd /tmp/moko-platform-api + "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/mokoplatform.git" \ + /tmp/mokoplatform-api + cd /tmp/mokoplatform-api composer install --no-dev --no-interaction --quiet - name: Rename branch to rc run: | - php /tmp/moko-platform-api/cli/branch_rename.php \ + php /tmp/mokoplatform-api/cli/branch_rename.php \ --from "${{ github.event.pull_request.head.ref || 'dev' }}" --to rc \ --token "${{ secrets.MOKOGITEA_TOKEN }}" \ --api-base "${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" \ @@ -100,7 +100,7 @@ jobs: - name: Publish RC release run: | - php /tmp/moko-platform-api/cli/release_publish.php \ + php /tmp/mokoplatform-api/cli/release_publish.php \ --path . --stability rc --bump minor --branch rc \ --token "${{ secrets.MOKOGITEA_TOKEN }}" \ --skip-update-stream @@ -145,7 +145,7 @@ jobs: fi echo "No conflict markers found" - - name: Setup moko-platform tools + - name: Setup mokoplatform tools env: MOKO_CLONE_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} MOKO_CLONE_HOST: git.mokoconsulting.tech/MokoConsulting @@ -156,17 +156,17 @@ jobs: sudo apt-get update -qq && sudo apt-get install -y -qq php-cli php-mbstring php-xml php-zip php-curl composer >/dev/null 2>&1 fi # Always fetch latest CLI tools — never use stale cache from previous runs - rm -rf /tmp/moko-platform-api + rm -rf /tmp/mokoplatform-api git clone --depth 1 --branch main --quiet \ - "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/moko-platform.git" \ - /tmp/moko-platform-api - cd /tmp/moko-platform-api + "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/mokoplatform.git" \ + /tmp/mokoplatform-api + cd /tmp/mokoplatform-api composer install --no-dev --no-interaction --quiet - name: "Publish stable release" run: | - php /tmp/moko-platform-api/cli/release_publish.php \ + php /tmp/mokoplatform-api/cli/release_publish.php \ --path . --stability stable --bump minor --branch main \ --token "${{ secrets.MOKOGITEA_TOKEN }}" \ --skip-update-stream @@ -182,7 +182,7 @@ jobs: RELEASE_TAG="${{ steps.version.outputs.release_tag }}" GH_REPO="${{ vars.GH_MIRROR_REPO || github.repository }}" API_BASE="${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" - php /tmp/moko-platform-api/cli/release_mirror.php \ + php /tmp/mokoplatform-api/cli/release_mirror.php \ --version "$VERSION" --tag "$RELEASE_TAG" \ --token "${{ secrets.MOKOGITEA_TOKEN }}" --api-base "$API_BASE" \ --gh-token "${{ secrets.GH_MIRROR_TOKEN }}" --gh-repo "$GH_REPO" \ @@ -256,7 +256,7 @@ jobs: continue-on-error: true run: | API_BASE="${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" - php /tmp/moko-platform-api/cli/version_reset_dev.php \ + php /tmp/mokoplatform-api/cli/version_reset_dev.php \ --token "${{ secrets.MOKOGITEA_TOKEN }}" --api-base "${API_BASE}" \ --branch dev --path . 2>&1 || true diff --git a/templates/repos/joomla/.mokogitea/workflows/branch-cleanup.yml b/templates/repos/joomla/.mokogitea/workflows/branch-cleanup.yml index e0ba128..28d1d47 100644 --- a/templates/repos/joomla/.mokogitea/workflows/branch-cleanup.yml +++ b/templates/repos/joomla/.mokogitea/workflows/branch-cleanup.yml @@ -5,7 +5,7 @@ # FILE INFORMATION # DEFGROUP: Gitea.Workflow # INGROUP: MokoStandards.Universal -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /.mokogitea/workflows/branch-cleanup.yml # VERSION: 01.00.00 # BRIEF: Delete feature branches after PR merge diff --git a/templates/repos/joomla/.mokogitea/workflows/ci-joomla.yml b/templates/repos/joomla/.mokogitea/workflows/ci-joomla.yml index f5200a1..4156095 100644 --- a/templates/repos/joomla/.mokogitea/workflows/ci-joomla.yml +++ b/templates/repos/joomla/.mokogitea/workflows/ci-joomla.yml @@ -45,17 +45,17 @@ jobs: fi php -v && composer --version - - name: Setup moko-platform tools + - name: Setup mokoplatform tools env: MOKO_CLONE_TOKEN: ${{ secrets.GA_TOKEN || github.token }} MOKO_CLONE_HOST: ${{ secrets.GA_TOKEN && 'git.mokoconsulting.tech/MokoConsulting' || 'github.com/mokoconsulting-tech' }} run: | - if [ -d "/tmp/moko-platform" ] || [ -d "/opt/moko-platform" ]; then - echo "moko-platform already available on runner — skipping clone" + if [ -d "/tmp/mokoplatform" ] || [ -d "/opt/mokoplatform" ]; then + echo "mokoplatform already available on runner — skipping clone" else git clone --depth 1 --branch main --quiet \ - "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/moko-platform.git" \ - /tmp/moko-platform 2>/dev/null || echo "moko-platform clone skipped — continuing without it" + "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/mokoplatform.git" \ + /tmp/mokoplatform 2>/dev/null || echo "mokoplatform clone skipped — continuing without it" fi - name: Install dependencies diff --git a/templates/repos/joomla/.mokogitea/workflows/issue-branch.yml b/templates/repos/joomla/.mokogitea/workflows/issue-branch.yml index c2b02a6..29efe39 100644 --- a/templates/repos/joomla/.mokogitea/workflows/issue-branch.yml +++ b/templates/repos/joomla/.mokogitea/workflows/issue-branch.yml @@ -4,7 +4,7 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Automation +# INGROUP: mokoplatform.Automation # VERSION: 01.00.00 # BRIEF: Auto-create feature branch when an issue is opened diff --git a/templates/repos/joomla/.mokogitea/workflows/pr-check.yml b/templates/repos/joomla/.mokogitea/workflows/pr-check.yml index 6625857..5e391db 100644 --- a/templates/repos/joomla/.mokogitea/workflows/pr-check.yml +++ b/templates/repos/joomla/.mokogitea/workflows/pr-check.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.CI -# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/moko-platform +# INGROUP: mokoplatform.CI +# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/mokoplatform # PATH: /templates/workflows/universal/pr-check.yml.template # VERSION: 09.23.00 # BRIEF: PR gate — branch policy + code validation before merge diff --git a/templates/repos/joomla/.mokogitea/workflows/pre-release.yml b/templates/repos/joomla/.mokogitea/workflows/pre-release.yml index 162b08f..b5b7bde 100644 --- a/templates/repos/joomla/.mokogitea/workflows/pre-release.yml +++ b/templates/repos/joomla/.mokogitea/workflows/pre-release.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Release -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# INGROUP: mokoplatform.Release +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /templates/workflows/universal/pre-release.yml.template # VERSION: 05.01.00 # BRIEF: Manual pre-release -- builds dev/alpha/beta/rc packages from any branch @@ -52,7 +52,7 @@ jobs: fetch-depth: 0 token: ${{ secrets.MOKOGITEA_TOKEN }} - - name: Setup moko-platform tools + - name: Setup mokoplatform tools env: MOKO_CLONE_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} MOKO_CLONE_HOST: git.mokoconsulting.tech/MokoConsulting @@ -61,12 +61,12 @@ jobs: sudo apt-get update -qq && sudo apt-get install -y -qq php-cli php-mbstring php-xml php-zip php-curl composer >/dev/null 2>&1 fi # Always fetch latest CLI tools — never use stale cache from previous runs - rm -rf /tmp/moko-platform-api + rm -rf /tmp/mokoplatform-api git clone --depth 1 --branch main --quiet \ - "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/moko-platform.git" \ - /tmp/moko-platform-api - cd /tmp/moko-platform-api && composer install --no-dev --no-interaction --quiet - echo "MOKO_CLI=/tmp/moko-platform-api/cli" >> "$GITHUB_ENV" + "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/mokoplatform.git" \ + /tmp/mokoplatform-api + cd /tmp/mokoplatform-api && composer install --no-dev --no-interaction --quiet + echo "MOKO_CLI=/tmp/mokoplatform-api/cli" >> "$GITHUB_ENV" - name: Detect platform id: platform diff --git a/templates/repos/joomla/.mokogitea/workflows/repo-health.yml b/templates/repos/joomla/.mokogitea/workflows/repo-health.yml index 7357413..84a8f0d 100644 --- a/templates/repos/joomla/.mokogitea/workflows/repo-health.yml +++ b/templates/repos/joomla/.mokogitea/workflows/repo-health.yml @@ -7,8 +7,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Validation -# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/moko-platform +# INGROUP: mokoplatform.Validation +# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/mokoplatform # PATH: /templates/workflows/joomla/repo_health.yml.template # VERSION: 09.23.00 # BRIEF: Enforces repository guardrails by validating scripts governance, tooling availability, and core repository health artifacts. diff --git a/templates/repos/joomla/Makefile b/templates/repos/joomla/Makefile index 3ebe6a2..15fbfde 100644 --- a/templates/repos/joomla/Makefile +++ b/templates/repos/joomla/Makefile @@ -101,7 +101,7 @@ clean: ## Clean build artifacts @rm -rf $(BUILD_DIR) $(DIST_DIR) @echo "$(COLOR_GREEN)✓ Build artifacts cleaned$(COLOR_RESET)" -MOKO_PLATFORM ?= $(or $(wildcard ../moko-platform),$(wildcard $(HOME)/moko-platform),$(wildcard /opt/moko-platform)) +MOKO_PLATFORM ?= $(or $(wildcard ../mokoplatform),$(wildcard $(HOME)/mokoplatform),$(wildcard /opt/mokoplatform)) MINIFY_SCRIPT := $(MOKO_PLATFORM)/build/minify.js .PHONY: minify diff --git a/templates/repos/joomla/automation/ci-issue-reporter.sh b/templates/repos/joomla/automation/ci-issue-reporter.sh index 65c47ba..4789391 100644 --- a/templates/repos/joomla/automation/ci-issue-reporter.sh +++ b/templates/repos/joomla/automation/ci-issue-reporter.sh @@ -6,8 +6,8 @@ # # FILE INFORMATION # DEFGROUP: Automation.CI -# INGROUP: moko-platform.Automation -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# INGROUP: mokoplatform.Automation +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /automation/ci-issue-reporter.sh # VERSION: 09.23.00 # BRIEF: Creates or updates a Gitea issue when a CI gate fails. diff --git a/templates/repos/mcp/.mokogitea/CLAUDE.md b/templates/repos/mcp/.mokogitea/CLAUDE.md index d630765..6ad8024 100644 --- a/templates/repos/mcp/.mokogitea/CLAUDE.md +++ b/templates/repos/mcp/.mokogitea/CLAUDE.md @@ -34,4 +34,4 @@ npm run dev # Watch mode - **Never commit** `.claude/`, `.mcp.json`, `TODO.md`, `*.min.css`/`*.min.js` - **Attribution**: `Authored-by: Moko Consulting` - **Workflow directory**: `.mokogitea/` -- **Standards**: [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki/Home) +- **Standards**: [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki/Home) diff --git a/templates/repos/mcp/.mokogitea/ISSUE_TEMPLATE/config.yml b/templates/repos/mcp/.mokogitea/ISSUE_TEMPLATE/config.yml index d4d49ec..7c403f1 100644 --- a/templates/repos/mcp/.mokogitea/ISSUE_TEMPLATE/config.yml +++ b/templates/repos/mcp/.mokogitea/ISSUE_TEMPLATE/config.yml @@ -8,7 +8,7 @@ contact_links: url: https://mokoconsulting.tech/ about: Get help or ask questions through our website - name: 📚 MokoStandards Documentation - url: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + url: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform about: View our coding standards and best practices - name: 🔒 Report a Security Vulnerability url: https://git.mokoconsulting.tech/mokoconsulting-tech/.github-private/security/advisories/new diff --git a/templates/repos/mcp/.mokogitea/branch-protection.yml b/templates/repos/mcp/.mokogitea/branch-protection.yml index 2dff8b9..8adde0a 100644 --- a/templates/repos/mcp/.mokogitea/branch-protection.yml +++ b/templates/repos/mcp/.mokogitea/branch-protection.yml @@ -2,8 +2,8 @@ # SPDX-License-Identifier: GPL-3.0-or-later # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Automation -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# INGROUP: mokoplatform.Automation +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /.gitea/workflows/branch-protection.yml # BRIEF: Apply standardised branch protection rules to all governed repositories # @@ -62,7 +62,7 @@ jobs: API="${GITEA_URL}/api/v1" # Platform/standards/infra repos to exclude - EXCLUDE="gitea-org-config org-profile gitea-private .mokogitea-private MokoStandards moko-platform MokoTesting" + EXCLUDE="gitea-org-config org-profile gitea-private .mokogitea-private MokoStandards mokoplatform MokoTesting" EXCLUDE="$EXCLUDE MokoStandards-Template-Client MokoStandards-Template-Dolibarr MokoStandards-Template-Generic MokoStandards-Template-Joomla MokoDoliProjTemplate" if [ -n "${{ inputs.repos }}" ]; then diff --git a/templates/repos/mcp/.mokogitea/manifest.xml b/templates/repos/mcp/.mokogitea/manifest.xml index aafd284..7586ac4 100644 --- a/templates/repos/mcp/.mokogitea/manifest.xml +++ b/templates/repos/mcp/.mokogitea/manifest.xml @@ -2,9 +2,9 @@ - + Template-MCP MokoConsulting @@ -14,11 +14,11 @@ mcp 05.00.00 - https://git.mokoconsulting.tech/MokoConsulting/moko-platform + https://git.mokoconsulting.tech/MokoConsulting/mokoplatform TypeScript mcp-server source/ - + diff --git a/templates/repos/mcp/.mokogitea/workflows/auto-bump.yml b/templates/repos/mcp/.mokogitea/workflows/auto-bump.yml index 34953b1..022148e 100644 --- a/templates/repos/mcp/.mokogitea/workflows/auto-bump.yml +++ b/templates/repos/mcp/.mokogitea/workflows/auto-bump.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Release -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# INGROUP: mokoplatform.Release +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /.mokogitea/workflows/auto-bump.yml # VERSION: 09.02.00 # BRIEF: Auto patch-bump version on every push to dev (skips merge commits) @@ -43,19 +43,19 @@ jobs: token: ${{ secrets.MOKOGITEA_TOKEN }} fetch-depth: 1 - - name: Setup moko-platform tools + - name: Setup mokoplatform tools run: | if ! command -v composer &> /dev/null; then sudo apt-get update -qq && sudo apt-get install -y -qq php-cli php-mbstring php-xml php-zip php-curl composer >/dev/null 2>&1 fi - if [ -d "/opt/moko-platform/cli" ]; then - echo "MOKO_CLI=/opt/moko-platform/cli" >> "$GITHUB_ENV" + if [ -d "/opt/mokoplatform/cli" ]; then + echo "MOKO_CLI=/opt/mokoplatform/cli" >> "$GITHUB_ENV" else git clone --depth 1 --branch main --quiet \ - "https://x-access-token:${{ secrets.MOKOGITEA_TOKEN }}@git.mokoconsulting.tech/MokoConsulting/moko-platform.git" \ - /tmp/moko-platform-api - cd /tmp/moko-platform-api && composer install --no-dev --no-interaction --quiet - echo "MOKO_CLI=/tmp/moko-platform-api/cli" >> "$GITHUB_ENV" + "https://x-access-token:${{ secrets.MOKOGITEA_TOKEN }}@git.mokoconsulting.tech/MokoConsulting/mokoplatform.git" \ + /tmp/mokoplatform-api + cd /tmp/mokoplatform-api && composer install --no-dev --no-interaction --quiet + echo "MOKO_CLI=/tmp/mokoplatform-api/cli" >> "$GITHUB_ENV" fi - name: Bump version diff --git a/templates/repos/mcp/.mokogitea/workflows/auto-release.yml b/templates/repos/mcp/.mokogitea/workflows/auto-release.yml index 141fdcc..850b53c 100644 --- a/templates/repos/mcp/.mokogitea/workflows/auto-release.yml +++ b/templates/repos/mcp/.mokogitea/workflows/auto-release.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Release -# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/moko-platform +# INGROUP: mokoplatform.Release +# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/mokoplatform # PATH: /templates/workflows/universal/auto-release.yml.template # VERSION: 05.00.00 # BRIEF: Universal build & release � detects platform from manifest.xml @@ -66,7 +66,7 @@ jobs: token: ${{ secrets.MOKOGITEA_TOKEN }} fetch-depth: 1 - - name: Setup moko-platform tools + - name: Setup mokoplatform tools env: MOKO_CLONE_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} MOKO_CLONE_HOST: git.mokoconsulting.tech/MokoConsulting @@ -75,16 +75,16 @@ jobs: sudo apt-get update -qq && sudo apt-get install -y -qq php-cli php-mbstring php-xml php-zip php-curl composer >/dev/null 2>&1 fi # Always fetch latest CLI tools — never use stale cache from previous runs - rm -rf /tmp/moko-platform-api + rm -rf /tmp/mokoplatform-api git clone --depth 1 --branch main --quiet \ - "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/moko-platform.git" \ - /tmp/moko-platform-api - cd /tmp/moko-platform-api + "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/mokoplatform.git" \ + /tmp/mokoplatform-api + cd /tmp/mokoplatform-api composer install --no-dev --no-interaction --quiet - name: Rename branch to rc run: | - php /tmp/moko-platform-api/cli/branch_rename.php \ + php /tmp/mokoplatform-api/cli/branch_rename.php \ --from "${{ github.event.pull_request.head.ref || 'dev' }}" --to rc \ --token "${{ secrets.MOKOGITEA_TOKEN }}" \ --api-base "${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" \ @@ -100,7 +100,7 @@ jobs: - name: Publish RC release run: | - php /tmp/moko-platform-api/cli/release_publish.php \ + php /tmp/mokoplatform-api/cli/release_publish.php \ --path . --stability rc --bump minor --branch rc \ --token "${{ secrets.MOKOGITEA_TOKEN }}" \ --skip-update-stream @@ -145,7 +145,7 @@ jobs: fi echo "No conflict markers found" - - name: Setup moko-platform tools + - name: Setup mokoplatform tools env: MOKO_CLONE_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} MOKO_CLONE_HOST: git.mokoconsulting.tech/MokoConsulting @@ -156,17 +156,17 @@ jobs: sudo apt-get update -qq && sudo apt-get install -y -qq php-cli php-mbstring php-xml php-zip php-curl composer >/dev/null 2>&1 fi # Always fetch latest CLI tools — never use stale cache from previous runs - rm -rf /tmp/moko-platform-api + rm -rf /tmp/mokoplatform-api git clone --depth 1 --branch main --quiet \ - "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/moko-platform.git" \ - /tmp/moko-platform-api - cd /tmp/moko-platform-api + "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/mokoplatform.git" \ + /tmp/mokoplatform-api + cd /tmp/mokoplatform-api composer install --no-dev --no-interaction --quiet - name: "Publish stable release" run: | - php /tmp/moko-platform-api/cli/release_publish.php \ + php /tmp/mokoplatform-api/cli/release_publish.php \ --path . --stability stable --bump minor --branch main \ --token "${{ secrets.MOKOGITEA_TOKEN }}" \ --skip-update-stream @@ -182,7 +182,7 @@ jobs: RELEASE_TAG="${{ steps.version.outputs.release_tag }}" GH_REPO="${{ vars.GH_MIRROR_REPO || github.repository }}" API_BASE="${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" - php /tmp/moko-platform-api/cli/release_mirror.php \ + php /tmp/mokoplatform-api/cli/release_mirror.php \ --version "$VERSION" --tag "$RELEASE_TAG" \ --token "${{ secrets.MOKOGITEA_TOKEN }}" --api-base "$API_BASE" \ --gh-token "${{ secrets.GH_MIRROR_TOKEN }}" --gh-repo "$GH_REPO" \ @@ -256,7 +256,7 @@ jobs: continue-on-error: true run: | API_BASE="${GITEA_URL}/api/v1/repos/${GITEA_ORG}/${GITEA_REPO}" - php /tmp/moko-platform-api/cli/version_reset_dev.php \ + php /tmp/mokoplatform-api/cli/version_reset_dev.php \ --token "${{ secrets.MOKOGITEA_TOKEN }}" --api-base "${API_BASE}" \ --branch dev --path . 2>&1 || true diff --git a/templates/repos/mcp/.mokogitea/workflows/branch-cleanup.yml b/templates/repos/mcp/.mokogitea/workflows/branch-cleanup.yml index e0ba128..28d1d47 100644 --- a/templates/repos/mcp/.mokogitea/workflows/branch-cleanup.yml +++ b/templates/repos/mcp/.mokogitea/workflows/branch-cleanup.yml @@ -5,7 +5,7 @@ # FILE INFORMATION # DEFGROUP: Gitea.Workflow # INGROUP: MokoStandards.Universal -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /.mokogitea/workflows/branch-cleanup.yml # VERSION: 01.00.00 # BRIEF: Delete feature branches after PR merge diff --git a/templates/repos/mcp/.mokogitea/workflows/issue-branch.yml b/templates/repos/mcp/.mokogitea/workflows/issue-branch.yml index c2b02a6..29efe39 100644 --- a/templates/repos/mcp/.mokogitea/workflows/issue-branch.yml +++ b/templates/repos/mcp/.mokogitea/workflows/issue-branch.yml @@ -4,7 +4,7 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Automation +# INGROUP: mokoplatform.Automation # VERSION: 01.00.00 # BRIEF: Auto-create feature branch when an issue is opened diff --git a/templates/repos/mcp/.mokogitea/workflows/mcp-auto-release.yml b/templates/repos/mcp/.mokogitea/workflows/mcp-auto-release.yml index 4aab368..14c565c 100644 --- a/templates/repos/mcp/.mokogitea/workflows/mcp-auto-release.yml +++ b/templates/repos/mcp/.mokogitea/workflows/mcp-auto-release.yml @@ -87,13 +87,13 @@ jobs: done # ── Version ────────────────────────────────────────────────────── - - name: Setup moko-platform tools + - name: Setup mokoplatform tools env: GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} COMPOSER_AUTH: '{"github-oauth":{"github.com":"${{ secrets.GH_TOKEN || github.token }}"}}' run: | git clone --depth 1 --branch version/04 --quiet \ - "https://x-access-token:${GH_TOKEN}@github.com/MokoConsulting/moko-platform.git" \ + "https://x-access-token:${GH_TOKEN}@github.com/MokoConsulting/mokoplatform.git" \ /tmp/mokostandards cd /tmp/mokostandards composer install --no-dev --no-interaction --quiet diff --git a/templates/repos/mcp/.mokogitea/workflows/pr-check.yml b/templates/repos/mcp/.mokogitea/workflows/pr-check.yml index 6625857..5e391db 100644 --- a/templates/repos/mcp/.mokogitea/workflows/pr-check.yml +++ b/templates/repos/mcp/.mokogitea/workflows/pr-check.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.CI -# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/moko-platform +# INGROUP: mokoplatform.CI +# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/mokoplatform # PATH: /templates/workflows/universal/pr-check.yml.template # VERSION: 09.23.00 # BRIEF: PR gate — branch policy + code validation before merge diff --git a/templates/repos/mcp/.mokogitea/workflows/pre-release.yml b/templates/repos/mcp/.mokogitea/workflows/pre-release.yml index 162b08f..b5b7bde 100644 --- a/templates/repos/mcp/.mokogitea/workflows/pre-release.yml +++ b/templates/repos/mcp/.mokogitea/workflows/pre-release.yml @@ -4,8 +4,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Release -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# INGROUP: mokoplatform.Release +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /templates/workflows/universal/pre-release.yml.template # VERSION: 05.01.00 # BRIEF: Manual pre-release -- builds dev/alpha/beta/rc packages from any branch @@ -52,7 +52,7 @@ jobs: fetch-depth: 0 token: ${{ secrets.MOKOGITEA_TOKEN }} - - name: Setup moko-platform tools + - name: Setup mokoplatform tools env: MOKO_CLONE_TOKEN: ${{ secrets.MOKOGITEA_TOKEN }} MOKO_CLONE_HOST: git.mokoconsulting.tech/MokoConsulting @@ -61,12 +61,12 @@ jobs: sudo apt-get update -qq && sudo apt-get install -y -qq php-cli php-mbstring php-xml php-zip php-curl composer >/dev/null 2>&1 fi # Always fetch latest CLI tools — never use stale cache from previous runs - rm -rf /tmp/moko-platform-api + rm -rf /tmp/mokoplatform-api git clone --depth 1 --branch main --quiet \ - "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/moko-platform.git" \ - /tmp/moko-platform-api - cd /tmp/moko-platform-api && composer install --no-dev --no-interaction --quiet - echo "MOKO_CLI=/tmp/moko-platform-api/cli" >> "$GITHUB_ENV" + "https://x-access-token:${MOKO_CLONE_TOKEN}@${MOKO_CLONE_HOST}/mokoplatform.git" \ + /tmp/mokoplatform-api + cd /tmp/mokoplatform-api && composer install --no-dev --no-interaction --quiet + echo "MOKO_CLI=/tmp/mokoplatform-api/cli" >> "$GITHUB_ENV" - name: Detect platform id: platform diff --git a/templates/repos/mcp/.mokogitea/workflows/repo-health.yml b/templates/repos/mcp/.mokogitea/workflows/repo-health.yml index d0538d5..b2b9263 100644 --- a/templates/repos/mcp/.mokogitea/workflows/repo-health.yml +++ b/templates/repos/mcp/.mokogitea/workflows/repo-health.yml @@ -7,8 +7,8 @@ # # FILE INFORMATION # DEFGROUP: Gitea.Workflow -# INGROUP: moko-platform.Validation -# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/moko-platform +# INGROUP: mokoplatform.Validation +# REPO: https://git.mokoconsulting.tech/mokoconsulting-tech/mokoplatform # PATH: /templates/workflows/joomla/repo_health.yml.template # VERSION: 09.23.00 # BRIEF: Enforces repository guardrails by validating scripts governance, tooling availability, and core repository health artifacts. diff --git a/templates/repos/mcp/CLAUDE.md b/templates/repos/mcp/CLAUDE.md index 24a1d92..bb7f802 100644 --- a/templates/repos/mcp/CLAUDE.md +++ b/templates/repos/mcp/CLAUDE.md @@ -13,7 +13,7 @@ This file provides guidance to Claude Code when working with this repository. | **Default branch** | main | | **License** | GPL-3.0-or-later | | **Wiki** | [Template-MCP Wiki](https://git.mokoconsulting.tech/MokoConsulting/Template-MCP/wiki) | -| **Standards** | [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki/Home) | +| **Standards** | [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki/Home) | ## Common Commands @@ -49,4 +49,4 @@ This is an MCP (Model Context Protocol) server. Key files: - **Branch strategy**: develop on `dev`, merge to `main` for release - **Minification**: handled at build time (CI) and runtime (MokoMinifyHelper for Joomla templates) - **Wiki**: documentation lives in the Gitea wiki, not in `docs/` files -- **Standards**: this repo follows [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki/Home) +- **Standards**: this repo follows [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki/Home) diff --git a/templates/repos/mcp/Makefile b/templates/repos/mcp/Makefile index 79907b1..74fa638 100644 --- a/templates/repos/mcp/Makefile +++ b/templates/repos/mcp/Makefile @@ -23,7 +23,7 @@ install-deps: ## Install dependencies @$(NPM) install @echo "$(COLOR_GREEN)✓ Dependencies installed$(COLOR_RESET)" -MOKO_PLATFORM ?= $(or $(wildcard ../moko-platform),$(wildcard $(HOME)/moko-platform),$(wildcard /opt/moko-platform)) +MOKO_PLATFORM ?= $(or $(wildcard ../mokoplatform),$(wildcard $(HOME)/mokoplatform),$(wildcard /opt/mokoplatform)) MINIFY_SCRIPT := $(MOKO_PLATFORM)/build/minify.js .PHONY: minify diff --git a/templates/repos/mcp/README.md b/templates/repos/mcp/README.md index fb2dbcc..0173033 100644 --- a/templates/repos/mcp/README.md +++ b/templates/repos/mcp/README.md @@ -77,4 +77,4 @@ This project is licensed under the GNU General Public License v3.0 or later -- s --- -*[Moko Consulting](https://mokoconsulting.tech) -- [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/moko-platform/wiki/Home)* +*[Moko Consulting](https://mokoconsulting.tech) -- [MokoStandards](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/wiki/Home)* diff --git a/templates/repos/mcp/automation/ci-issue-reporter.sh b/templates/repos/mcp/automation/ci-issue-reporter.sh index 65c47ba..4789391 100644 --- a/templates/repos/mcp/automation/ci-issue-reporter.sh +++ b/templates/repos/mcp/automation/ci-issue-reporter.sh @@ -6,8 +6,8 @@ # # FILE INFORMATION # DEFGROUP: Automation.CI -# INGROUP: moko-platform.Automation -# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# INGROUP: mokoplatform.Automation +# REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform # PATH: /automation/ci-issue-reporter.sh # VERSION: 09.23.00 # BRIEF: Creates or updates a Gitea issue when a CI gate fails. diff --git a/templates/required/README.md b/templates/required/README.md index d74edc3..2010a6e 100644 --- a/templates/required/README.md +++ b/templates/required/README.md @@ -4,18 +4,18 @@ SPDX-License-Identifier: GPL-3.0-or-later FILE INFORMATION DEFGROUP: MokoPlatform.Index INGROUP: MokoPlatform.Templates.Required -REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PATH: /templates/required/README.md BRIEF: Required templates README --> # Required Templates -This directory contains **REQUIRED** files that must be present in all moko-platform-compliant repositories. +This directory contains **REQUIRED** files that must be present in all mokoplatform-compliant repositories. ## Overview -Required templates are essential files that provide core functionality and ensure consistency across all repositories in the organization. These files must be copied to target repositories and kept synchronized with moko-platform updates. +Required templates are essential files that provide core functionality and ensure consistency across all repositories in the organization. These files must be copied to target repositories and kept synchronized with mokoplatform updates. ## Required Files @@ -28,11 +28,11 @@ Required templates are essential files that provide core functionality and ensur **Installation**: ```bash # Quick install -curl -fsSL https://raw.githubusercontent.com/MokoConsulting/moko-platform/main/templates/required/setup-labels.sh > scripts/maintenance/setup-labels.sh +curl -fsSL https://raw.githubusercontent.com/MokoConsulting/mokoplatform/main/templates/required/setup-labels.sh > scripts/maintenance/setup-labels.sh chmod +x scripts/maintenance/setup-labels.sh -# Or copy from moko-platform -cp /path/to/moko-platform/templates/required/setup-labels.sh scripts/maintenance/setup-labels.sh +# Or copy from mokoplatform +cp /path/to/mokoplatform/templates/required/setup-labels.sh scripts/maintenance/setup-labels.sh chmod +x scripts/maintenance/setup-labels.sh ``` @@ -50,7 +50,7 @@ chmod +x scripts/maintenance/setup-labels.sh - Project types (joomla, dolibarr, generic) - Languages (php, javascript, typescript, python, css, html) - Components (documentation, ci-cd, docker, tests, security, dependencies, config, build) -- Workflow (automation, moko-platform, needs-review, work-in-progress, breaking-change) +- Workflow (automation, mokoplatform, needs-review, work-in-progress, breaking-change) - Priority (critical, high, medium, low) - Type (bug, feature, enhancement, refactor, chore) - Status (pending, in-progress, blocked, on-hold, wontfix) @@ -95,10 +95,10 @@ done ### Automated Compliance -Use the moko-platform validation scripts: +Use the mokoplatform validation scripts: ```bash -# From moko-platform repository +# From mokoplatform repository python3 scripts/validate/validate_repo_health.py --check-required-files # Or use bulk validation @@ -107,14 +107,14 @@ php scripts/automation/bulk_update_repos.php --validate-only ## Syncing Updates -Required files should be kept in sync with moko-platform: +Required files should be kept in sync with mokoplatform: ```bash # Update single file -curl -fsSL https://raw.githubusercontent.com/MokoConsulting/moko-platform/main/templates/required/setup-labels.sh > scripts/maintenance/setup-labels.sh +curl -fsSL https://raw.githubusercontent.com/MokoConsulting/mokoplatform/main/templates/required/setup-labels.sh > scripts/maintenance/setup-labels.sh # Or use bulk sync -cd /path/to/moko-platform +cd /path/to/mokoplatform ./scripts/automation/bulk_update_repos.sh --org MokoConsulting --sync-required ``` @@ -123,26 +123,26 @@ cd /path/to/moko-platform To deploy required files to a repository using GitHub Copilot: ```markdown -Deploy required moko-platform files to this repository. +Deploy required mokoplatform files to this repository. Required files to deploy: 1. setup-labels.sh - Label deployment script Process: 1. Create scripts/maintenance/ directory if not exists -2. Download setup-labels.sh from MokoConsulting/moko-platform +2. Download setup-labels.sh from MokoConsulting/mokoplatform 3. Copy to scripts/maintenance/setup-labels.sh 4. Make executable: chmod +x scripts/maintenance/setup-labels.sh 5. Test with dry-run: ./scripts/maintenance/setup-labels.sh --dry-run 6. Deploy labels: ./scripts/maintenance/setup-labels.sh 7. Verify labels in repository settings -Source: https://git.mokoconsulting.tech/MokoConsulting/moko-platform/tree/main/templates/required +Source: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/tree/main/templates/required ``` ## Future Required Files -As moko-platform evolves, additional required files may be added: +As mokoplatform evolves, additional required files may be added: - **PLANNED**: `.github/labeler.yml` - Auto-labeling configuration - **PLANNED**: `.editorconfig` - Editor configuration @@ -153,7 +153,7 @@ As moko-platform evolves, additional required files may be added: - **Documentation**: [Copilot Sync Standards Guide](../../docs/guide/copilot-sync-standards.md) - **Label Guide**: [Label Deployment Guide](../../docs/guides/label-deployment.md) -- **Issues**: https://git.mokoconsulting.tech/MokoConsulting/moko-platform/issues +- **Issues**: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/issues - **Contact**: hello@mokoconsulting.tech ## Related Documentation @@ -167,4 +167,4 @@ As moko-platform evolves, additional required files may be added: **Last Updated**: 2026-01-28 **Version**: 03.01.00 -**Maintained By**: moko-platform Team +**Maintained By**: mokoplatform Team diff --git a/templates/schemas/README.md b/templates/schemas/README.md index b6dd2aa..a910d6a 100644 --- a/templates/schemas/README.md +++ b/templates/schemas/README.md @@ -4,7 +4,7 @@ SPDX-License-Identifier: GPL-3.0-or-later FILE INFORMATION DEFGROUP: MokoPlatform.Index INGROUP: MokoPlatform.Templates.Schemas -REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PATH: /templates/schemas/README.md BRIEF: Schema templates README --> diff --git a/templates/schemas/manifest-schema.xsd b/templates/schemas/manifest-schema.xsd index b866f5b..64e38bb 100644 --- a/templates/schemas/manifest-schema.xsd +++ b/templates/schemas/manifest-schema.xsd @@ -3,19 +3,19 @@ Copyright (C) 2026 Moko Consulting SPDX-License-Identifier: GPL-3.0-or-later - moko-platform Manifest Schema v09.01.00 + mokoplatform Manifest Schema v09.01.00 Defines the structure of .mokogitea/manifest.xml Validate: xmllint - -schema definitions/manifest-schema.xsd .mokogitea/manifest.xml --> - + diff --git a/templates/schemas/moko-platform-schema.xsd b/templates/schemas/moko-platform-schema.xsd index 537535f..675348d 100644 --- a/templates/schemas/moko-platform-schema.xsd +++ b/templates/schemas/moko-platform-schema.xsd @@ -5,20 +5,20 @@ FILE INFORMATION DEFGROUP: MokoPlatform.Schema INGROUP: MokoPlatform.Governance - REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform - PATH: /templates/schemas/moko-platform-schema.xsd + REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform + PATH: /templates/schemas/mokoplatform-schema.xsd BRIEF: XML Schema Definition for the manifest.xml repository manifest file --> - + Root element of the manifest.xml repository manifest. @@ -76,12 +76,12 @@ - Binds this repository to a moko-platform platform definition and + Binds this repository to a mokoplatform platform definition and tracks the governance source and version. diff --git a/templates/schemas/mokostandards-schema.xsd b/templates/schemas/mokostandards-schema.xsd index 79dc408..78d2626 100644 --- a/templates/schemas/mokostandards-schema.xsd +++ b/templates/schemas/mokostandards-schema.xsd @@ -5,20 +5,20 @@ FILE INFORMATION DEFGROUP: MokoPlatform.Schema INGROUP: MokoPlatform.Governance - REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PATH: /docs/standards/mokostandards-schema.xsd BRIEF: XML Schema Definition for the .mokostandards repository manifest file --> - + Root element of the .mokostandards repository manifest. @@ -76,12 +76,12 @@ - Binds this repository to a moko-platform platform definition and + Binds this repository to a mokoplatform platform definition and tracks the governance source and version. diff --git a/templates/schemas/schemas/README.md b/templates/schemas/schemas/README.md index 40e4113..a489e74 100644 --- a/templates/schemas/schemas/README.md +++ b/templates/schemas/schemas/README.md @@ -4,7 +4,7 @@ SPDX-License-Identifier: GPL-3.0-or-later FILE INFORMATION DEFGROUP: MokoPlatform.Index INGROUP: MokoPlatform.Templates.Schemas -REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PATH: /templates/schemas/schemas/README.md BRIEF: Deprecated schema directory README --> diff --git a/templates/schemas/template-repository-structure.xml b/templates/schemas/template-repository-structure.xml index 9e656ca..41ba91c 100644 --- a/templates/schemas/template-repository-structure.xml +++ b/templates/schemas/template-repository-structure.xml @@ -22,7 +22,7 @@ along with this program. If not, see . FILE INFORMATION DEFGROUP: MokoPlatform.Templates.Schemas INGROUP: MokoPlatform.Templates -REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PATH: /templates/schemas/template-repository-structure.xml BRIEF: Template for defining custom repository structure schemas --> @@ -126,8 +126,8 @@ BRIEF: Template for defining custom repository structure schemas - moko-platform.override.xml - moko-platform sync override configuration + mokoplatform.override.xml + mokoplatform sync override configuration optional false @@ -150,7 +150,7 @@ BRIEF: Template for defining custom repository structure schemas standards-compliance.yml - moko-platform compliance validation + mokoplatform compliance validation required diff --git a/templates/scripts/README.md b/templates/scripts/README.md index feb6bf0..37f0f36 100644 --- a/templates/scripts/README.md +++ b/templates/scripts/README.md @@ -4,7 +4,7 @@ SPDX-License-Identifier: GPL-3.0-or-later FILE INFORMATION DEFGROUP: MokoPlatform.Index INGROUP: MokoPlatform.Templates.Scripts -REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PATH: /templates/scripts/README.md BRIEF: Script templates README --> @@ -116,7 +116,7 @@ These are template scripts. Adapt them to your project's specific needs: ## Standards Compliance -All scripts follow moko-platform requirements: +All scripts follow mokoplatform requirements: - SPDX license headers - GPL-3.0-or-later license diff --git a/templates/scripts/common/CliBase.template.php b/templates/scripts/common/CliBase.template.php index 15f013d..e2027e1 100644 --- a/templates/scripts/common/CliBase.template.php +++ b/templates/scripts/common/CliBase.template.php @@ -10,7 +10,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Templates.Common * INGROUP: MokoPlatform.Templates - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /templates/scripts/common/CliBase.template.php * BRIEF: PHP CLI script template — extends MokoEnterprise\CliFramework * NOTE: Copy this file as a starting point for new PHP CLI scripts in governed repos. diff --git a/templates/scripts/fix/index.md b/templates/scripts/fix/index.md index 53c323c..c04b146 100644 --- a/templates/scripts/fix/index.md +++ b/templates/scripts/fix/index.md @@ -4,7 +4,7 @@ SPDX-License-Identifier: GPL-3.0-or-later FILE INFORMATION DEFGROUP: MokoPlatform.Index INGROUP: MokoPlatform.Templates.Scripts.Fix -REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PATH: /templates/scripts/fix/index.md BRIEF: Fix scripts directory index --> diff --git a/templates/scripts/index.md b/templates/scripts/index.md index ad222e3..86aefc6 100644 --- a/templates/scripts/index.md +++ b/templates/scripts/index.md @@ -4,7 +4,7 @@ SPDX-License-Identifier: GPL-3.0-or-later FILE INFORMATION DEFGROUP: MokoPlatform.Index INGROUP: MokoPlatform.Templates.Scripts -REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PATH: /templates/scripts/index.md BRIEF: Script templates directory index --> diff --git a/templates/scripts/release/index.md b/templates/scripts/release/index.md index ba6b630..93e54d7 100644 --- a/templates/scripts/release/index.md +++ b/templates/scripts/release/index.md @@ -4,7 +4,7 @@ SPDX-License-Identifier: GPL-3.0-or-later FILE INFORMATION DEFGROUP: MokoPlatform.Index INGROUP: MokoPlatform.Templates.Scripts.Release -REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PATH: /templates/scripts/release/index.md BRIEF: Release scripts directory index --> diff --git a/templates/scripts/release/package_dolibarr.php b/templates/scripts/release/package_dolibarr.php index 5109f1b..be812ab 100644 --- a/templates/scripts/release/package_dolibarr.php +++ b/templates/scripts/release/package_dolibarr.php @@ -10,7 +10,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Templates.Scripts.Release * INGROUP: MokoPlatform.Templates - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /templates/scripts/release/package_dolibarr.php * BRIEF: Build a distributable ZIP package for a Dolibarr module * NOTE: Deployed to bin/build_package.php in governed Dolibarr module repos. diff --git a/templates/scripts/release/package_joomla.php b/templates/scripts/release/package_joomla.php index 9b8352c..137f089 100644 --- a/templates/scripts/release/package_joomla.php +++ b/templates/scripts/release/package_joomla.php @@ -10,7 +10,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Templates.Scripts.Release * INGROUP: MokoPlatform.Templates - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /templates/scripts/release/package_joomla.php * BRIEF: Build a distributable ZIP package for a Joomla component * NOTE: Deployed to bin/build_package.php in governed WaaS component repos. diff --git a/templates/scripts/sftp-config/README.md b/templates/scripts/sftp-config/README.md index 1a4c1f3..e586a18 100644 --- a/templates/scripts/sftp-config/README.md +++ b/templates/scripts/sftp-config/README.md @@ -8,7 +8,7 @@ SPDX-License-Identifier: GPL-3.0-or-later # FILE INFORMATION DEFGROUP: MokoPlatform.Templates.Scripts INGROUP: MokoPlatform.Templates -REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PATH: /templates/scripts/sftp-config/README.md BRIEF: Setup guide for local SFTP deployment configuration files --> @@ -26,14 +26,14 @@ GitHub Actions workflows. ## Quick Setup -1. **Copy the example templates** from moko-platform: +1. **Copy the example templates** from mokoplatform: ```bash # From your repo root mkdir -p scripts/sftp-config scripts/keys - cp path/to/moko-platform/templates/scripts/deploy/sftp-config.dev.json.example \ + cp path/to/mokoplatform/templates/scripts/deploy/sftp-config.dev.json.example \ scripts/sftp-config/sftp-config.dev.json - cp path/to/moko-platform/templates/scripts/deploy/sftp-config.rs.json.example \ + cp path/to/mokoplatform/templates/scripts/deploy/sftp-config.rs.json.example \ scripts/sftp-config/sftp-config.rs.json ``` @@ -76,21 +76,21 @@ GitHub Actions workflows. ```bash # Preview what would be uploaded (no connection made) -php path/to/moko-platform/api/deploy/deploy-sftp.php \ +php path/to/mokoplatform/api/deploy/deploy-sftp.php \ --path . --env dev --dry-run --verbose # Deploy src/ to dev -php path/to/moko-platform/api/deploy/deploy-sftp.php \ +php path/to/mokoplatform/api/deploy/deploy-sftp.php \ --path . --env dev # Deploy src/ to production -php path/to/moko-platform/api/deploy/deploy-sftp.php \ +php path/to/mokoplatform/api/deploy/deploy-sftp.php \ --path . --env rs ``` For full option reference run: ```bash -php path/to/moko-platform/api/deploy/deploy-sftp.php --help +php path/to/mokoplatform/api/deploy/deploy-sftp.php --help ``` --- diff --git a/templates/scripts/validate/dolibarr_module.php b/templates/scripts/validate/dolibarr_module.php index d9e3e87..3278f85 100644 --- a/templates/scripts/validate/dolibarr_module.php +++ b/templates/scripts/validate/dolibarr_module.php @@ -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/dolibarr_module.php - * BRIEF: Validate a Dolibarr module repository against moko-platform requirements + * BRIEF: Validate a Dolibarr module repository against mokoplatform requirements * NOTE: Deployed to bin/validate_module.php in governed Dolibarr module repos. * Run: php bin/validate_module.php [--path DIR] [--verbose] [--json] */ @@ -25,7 +25,7 @@ require_once __DIR__ . '/../vendor/autoload.php'; use MokoEnterprise\CliFramework; /** - * Validates a Dolibarr module repository against moko-platform requirements. + * Validates a Dolibarr module repository against mokoplatform requirements. * * Checks performed: * - Required directories (src/, src/core/modules/, langs/en_US/, img/) @@ -39,7 +39,7 @@ class ValidateDolibarrModule extends CliFramework { protected function configure(): void { - $this->setDescription('Validate a Dolibarr module repository against moko-platform requirements'); + $this->setDescription('Validate a Dolibarr module repository against mokoplatform requirements'); $this->addArgument('--path', 'Repository root to validate', '.'); } @@ -173,5 +173,5 @@ class ValidateDolibarrModule extends CliFramework } } -$script = new ValidateDolibarrModule('validate_module', 'Validate a Dolibarr module repository against moko-platform requirements'); +$script = new ValidateDolibarrModule('validate_module', 'Validate a Dolibarr module repository against mokoplatform requirements'); exit($script->execute()); diff --git a/templates/scripts/validate/index.md b/templates/scripts/validate/index.md index c2562b7..e0f0f0e 100644 --- a/templates/scripts/validate/index.md +++ b/templates/scripts/validate/index.md @@ -4,7 +4,7 @@ SPDX-License-Identifier: GPL-3.0-or-later FILE INFORMATION DEFGROUP: MokoPlatform.Index INGROUP: MokoPlatform.Templates.Scripts.Validate -REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PATH: /templates/scripts/validate/index.md BRIEF: Validate scripts directory index --> diff --git a/templates/scripts/validate/validate_manifest.php b/templates/scripts/validate/validate_manifest.php index e6b7dea..333344e 100644 --- a/templates/scripts/validate/validate_manifest.php +++ b/templates/scripts/validate/validate_manifest.php @@ -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_manifest.php - * BRIEF: Validate a Joomla component XML manifest against moko-platform requirements + * BRIEF: Validate a Joomla component XML manifest against mokoplatform requirements * NOTE: Deployed to bin/validate_manifest.php in governed WaaS component repos. * Run: php bin/validate_manifest.php [--path DIR] [--verbose] */ @@ -25,7 +25,7 @@ require_once __DIR__ . '/../vendor/autoload.php'; use MokoEnterprise\CliFramework; /** - * Validates a Joomla component XML manifest against moko-platform requirements. + * Validates a Joomla component XML manifest against mokoplatform requirements. * * Checks performed: * - XML manifest exists and is well-formed @@ -41,7 +41,7 @@ class ValidateJoomlaManifest extends CliFramework { protected function configure(): void { - $this->setDescription('Validate a Joomla component XML manifest against moko-platform requirements'); + $this->setDescription('Validate a Joomla component XML manifest against mokoplatform requirements'); $this->addArgument('--path', 'Repository root to validate', '.'); } @@ -188,5 +188,5 @@ class ValidateJoomlaManifest extends CliFramework } } -$script = new ValidateJoomlaManifest('validate_manifest', 'Validate a Joomla component XML manifest against moko-platform requirements'); +$script = new ValidateJoomlaManifest('validate_manifest', 'Validate a Joomla component XML manifest against mokoplatform requirements'); exit($script->execute()); diff --git a/templates/scripts/validate/validate_structure.php b/templates/scripts/validate/validate_structure.php index f1dbf08..3bc40bc 100644 --- a/templates/scripts/validate/validate_structure.php +++ b/templates/scripts/validate/validate_structure.php @@ -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, '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()); diff --git a/templates/security/README.md b/templates/security/README.md index b39bff8..5b5dd81 100644 --- a/templates/security/README.md +++ b/templates/security/README.md @@ -4,14 +4,14 @@ SPDX-License-Identifier: GPL-3.0-or-later FILE INFORMATION DEFGROUP: MokoPlatform.Index INGROUP: MokoPlatform.Templates.Security -REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform PATH: /templates/security/README.md BRIEF: Security templates README --> # Security Templates -This directory contains security-related templates for moko-platform repositories. +This directory contains security-related templates for mokoplatform repositories. ## index.html - Directory Listing Prevention (Static) diff --git a/templates/security/index.php b/templates/security/index.php index 5abfa6a..05334ac 100644 --- a/templates/security/index.php +++ b/templates/security/index.php @@ -8,7 +8,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Templates.Security * INGROUP: MokoPlatform.Templates - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /templates/security/index.php * BRIEF: Directory listing prevention script * diff --git a/templates/stubs/dolibarr.php b/templates/stubs/dolibarr.php index 44fe174..815aae1 100644 --- a/templates/stubs/dolibarr.php +++ b/templates/stubs/dolibarr.php @@ -7,7 +7,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Stubs * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /templates/stubs/dolibarr.php * BRIEF: PHPStan stub declarations for Dolibarr core classes * diff --git a/templates/stubs/joomla.php b/templates/stubs/joomla.php index 4a32846..4f8668d 100644 --- a/templates/stubs/joomla.php +++ b/templates/stubs/joomla.php @@ -7,7 +7,7 @@ * FILE INFORMATION * DEFGROUP: MokoPlatform.Stubs * INGROUP: MokoPlatform - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /templates/stubs/joomla.php * BRIEF: PHPStan stub declarations for Joomla framework classes * diff --git a/templates/web/assets/css/app.css b/templates/web/assets/css/app.css index 94b7eef..489d323 100644 --- a/templates/web/assets/css/app.css +++ b/templates/web/assets/css/app.css @@ -7,7 +7,7 @@ * FILE INFORMATION * DEFGROUP: MokoStandards.Templates.Web * INGROUP: MokoStandards.Templates - * REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform + * REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform * PATH: /templates/web/assets/css/app.css * BRIEF: Material Design 3 web interface stylesheet * diff --git a/templates/web/index.php b/templates/web/index.php index c2ce465..661ed34 100644 --- a/templates/web/index.php +++ b/templates/web/index.php @@ -5,7 +5,7 @@ declare(strict_types=1); /** * Web Application Entry Point * - * This is the main entry point for the moko-platform web-based management system. + * This is the main entry point for the mokoplatform web-based management system. * Handles all HTTP requests and routes them to appropriate controllers. * * Copyright (C) 2026 Moko Consulting @@ -90,7 +90,7 @@ function handleDashboard(): Response - moko-platform - Repository Management + mokoplatform - Repository Management