Rename: Add redirect stubs and backward-compatibility aliases #276

Closed
opened 2026-06-20 16:00:29 +00:00 by jmiller · 1 comment
Owner

Parent: #262

Task

Add redirect stubs and aliases for everything renamed so that old references continue to resolve during the transition period.

Scope

  • Composer package alias — add replace entry in composer.json so mokoconsulting-tech/enterprise still resolves to mokoconsulting-tech/mokocli
  • PHP class/namespace aliases — if any consumers reference MokoPlatform namespaces, add class_alias() stubs
  • CLI bin stubs — if any bin entry points are renamed, keep old names as thin wrappers that emit a deprecation notice and delegate
  • NPM package alias@mokoconsulting/moko-platform-mcp@mokoconsulting/mokocli-mcp
  • User-Agent strings — ensure API consumers still accept the old moko-platform user agent (or update server-side allowlists)
  • File header groups — old MokoPlatform.* DEFGROUP/INGROUP references in downstream repos should still be understood by any tooling that parses them
  • Git repo redirect — Gitea handles this natively on rename, but verify it works
  • Documentation URLs — any hardcoded links to /MokoConsulting/moko-platform in external repos/wikis

Notes

  • Stubs should log deprecation warnings so usage can be tracked and eventually removed
  • Coordinate with #270 (repo rename) — stubs should be in place before the final rename
  • Set a target date to remove stubs (e.g., 2 releases after rename)
Parent: #262 ## Task Add redirect stubs and aliases for everything renamed so that old references continue to resolve during the transition period. ### Scope - **Composer package alias** — add `replace` entry in `composer.json` so `mokoconsulting-tech/enterprise` still resolves to `mokoconsulting-tech/mokocli` - **PHP class/namespace aliases** — if any consumers reference `MokoPlatform` namespaces, add `class_alias()` stubs - **CLI bin stubs** — if any bin entry points are renamed, keep old names as thin wrappers that emit a deprecation notice and delegate - **NPM package alias** — `@mokoconsulting/moko-platform-mcp` → `@mokoconsulting/mokocli-mcp` - **User-Agent strings** — ensure API consumers still accept the old `moko-platform` user agent (or update server-side allowlists) - **File header groups** — old `MokoPlatform.*` DEFGROUP/INGROUP references in downstream repos should still be understood by any tooling that parses them - **Git repo redirect** — Gitea handles this natively on rename, but verify it works - **Documentation URLs** — any hardcoded links to `/MokoConsulting/moko-platform` in external repos/wikis ### Notes - Stubs should log deprecation warnings so usage can be tracked and eventually removed - Coordinate with #270 (repo rename) — stubs should be in place **before** the final rename - Set a target date to remove stubs (e.g., 2 releases after rename)
Author
Owner

Branch created: feature/276-rename-add-redirect-stubs-and-backward-c

git fetch origin
git checkout feature/276-rename-add-redirect-stubs-and-backward-c
Branch created: [`feature/276-rename-add-redirect-stubs-and-backward-c`](https://git.mokoconsulting.tech/MokoConsulting/mokoplatform/src/branch/feature/276-rename-add-redirect-stubs-and-backward-c) ```bash git fetch origin git checkout feature/276-rename-add-redirect-stubs-and-backward-c ```
Sign in to join this conversation.
No labels
Priority Medium
Type Feature
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/mokocli#276