From 88acf572788399a5bfad427dc99820aca72f5797 Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Sun, 5 Jul 2026 23:56:36 +0000 Subject: [PATCH] feat(client): accept client-mokosuite-* prefix (backward-compat with client-waas-) Discovery (client_dashboard, client_inventory) matches BOTH client-waas- and client-mokosuite-; provisioning emits client-mokosuite-. Enables the live client repo renames without breaking discovery. Refs Template-Client#59. Authored-by: Moko Consulting --- cli/client_dashboard.php | 4 ++-- cli/client_inventory.php | 2 +- cli/client_provision.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cli/client_dashboard.php b/cli/client_dashboard.php index a7468bd..02e4054 100644 --- a/cli/client_dashboard.php +++ b/cli/client_dashboard.php @@ -127,7 +127,7 @@ class ClientDashboardCli extends CliFramework $name = $repo['name'] ?? ''; if ( - !str_starts_with($name, 'client-waas-') + !str_starts_with($name, 'client-waas-') && !str_starts_with($name, 'client-mokosuite-') || !empty($repo['archived']) ) { continue; @@ -135,7 +135,7 @@ class ClientDashboardCli extends CliFramework $clients[] = [ 'repo' => $repo['full_name'] ?? '', - 'name' => str_replace('client-waas-', '', $name), + 'name' => str_replace(['client-waas-', 'client-mokosuite-'], '', $name), 'description' => $repo['description'] ?? '', 'updated' => $repo['updated_at'] ?? '', 'url' => $repo['html_url'] ?? '', diff --git a/cli/client_inventory.php b/cli/client_inventory.php index 0102baf..e6de097 100644 --- a/cli/client_inventory.php +++ b/cli/client_inventory.php @@ -79,7 +79,7 @@ class ClientInventoryCli extends CliFramework foreach ($repos as $repo) { $repoName = $repo['name'] ?? ''; - if (strpos($repoName, 'client-waas') === false) { + if (strpos($repoName, 'client-waas') === false && strpos($repoName, 'client-mokosuite') === false) { continue; } diff --git a/cli/client_provision.php b/cli/client_provision.php index c4b5a47..1aa2206 100644 --- a/cli/client_provision.php +++ b/cli/client_provision.php @@ -87,7 +87,7 @@ class ClientProvisionCli extends CliFramework return 1; } - $this->repoName = 'client-waas-' . $clientName; + $this->repoName = 'client-mokosuite-' . $clientName; $this->log('INFO', "=== Client Provisioning: {$clientName} ==="); $this->log('INFO', " Org: {$this->org}");