From eaab149267931b399fddc8f82bdea09d6a34ceda Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 26 Nov 2026 15:18:08 +0000 Subject: [PATCH 1/2] Expose an application's source control provider The application resource now carries `source_control_provider_type` (`github`, `gitlab`, `gitlab_self_hosted`, `bitbucket`, or null). The Application DTO exposes it as `sourceControlProviderType`, so `--json` and `--fields` can surface it. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01T1Sq4Yc6BQ4S3vcDD6eqZ6 --- app/Dto/Application.php | 3 +++ tests/Feature/ApplicationCommandsTest.php | 27 +++++++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/app/Dto/Application.php b/app/Dto/Application.php index 1a5608f0..80a4d2d4 100644 --- a/app/Dto/Application.php +++ b/app/Dto/Application.php @@ -20,6 +20,8 @@ public function __construct( public readonly array $deploymentIds = [], public readonly ?string $repositoryFullName = null, public readonly ?string $repositoryBranch = null, + /** `github`, `gitlab`, `gitlab_self_hosted` or `bitbucket`; null without a connected repository. */ + public readonly ?string $sourceControlProviderType = null, public readonly ?string $slackChannel = null, public readonly ?string $avatarUrl = null, public readonly ?string $rootDirectory = null, @@ -52,6 +54,7 @@ public static function createFromResponse(array $response): self 'name' => $attributes['name'], 'slug' => $attributes['slug'], 'region' => $attributes['region'], + 'sourceControlProviderType' => $attributes['source_control_provider_type'] ?? null, 'slackChannel' => $attributes['slack_channel'] ?? null, 'avatarUrl' => $attributes['avatar_url'] ?? null, 'rootDirectory' => $attributes['root_directory'] ?? null, diff --git a/tests/Feature/ApplicationCommandsTest.php b/tests/Feature/ApplicationCommandsTest.php index a661f52d..59ed94d5 100644 --- a/tests/Feature/ApplicationCommandsTest.php +++ b/tests/Feature/ApplicationCommandsTest.php @@ -8,6 +8,7 @@ use App\Client\Resources\Meta\ListRegionsRequest; use App\ConfigRepository; use App\Git; +use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Sleep; use Laravel\Prompts\Prompt; use Saloon\Http\Faking\MockClient; @@ -30,6 +31,32 @@ MockClient::destroyGlobal(); }); +// ---- application:get ---- + +it('exposes the source control provider, and null without a repository', function (array $attributes, ?string $expected) { + MockClient::global([ + GetOrganizationRequest::class => MockResponse::make(organizationResponse(), 200), + GetApplicationRequest::class => MockResponse::make([ + 'data' => createApplicationResponse(['attributes' => $attributes]), + 'included' => [ + ['id' => 'org-1', 'type' => 'organizations', 'attributes' => ['name' => 'My Org', 'slug' => 'my-org']], + ], + ], 200), + ]); + + Artisan::call('application:get', [ + 'application' => 'app-123', + '--json' => true, + '--fields' => 'sourceControlProviderType', + '--no-interaction' => true, + ]); + + expect(json_decode(Artisan::output(), true))->toBe(['sourceControlProviderType' => $expected]); +})->with([ + 'gitlab' => [['source_control_provider_type' => 'gitlab'], 'gitlab'], + 'no repository' => [['repository' => null, 'source_control_provider_type' => null], null], +]); + // ---- application:list ---- it('lists applications successfully in interactive mode', function () { From 376953f049fe727eb8f34a0138d9c51a81e4fb42 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 30 Nov 2026 12:10:47 +0000 Subject: [PATCH 2/2] Offer the Rust and Go starter kits in new Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01T1Sq4XHhc6agf3Z2SuRBdi --- app/Commands/NewApplication.php | 2 +- app/Enums/StarterKit.php | 4 ++++ tests/Feature/NewApplicationTest.php | 5 +++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/app/Commands/NewApplication.php b/app/Commands/NewApplication.php index c001cd6f..ffb601cb 100644 --- a/app/Commands/NewApplication.php +++ b/app/Commands/NewApplication.php @@ -48,7 +48,7 @@ class NewApplication extends BaseCommand use WatchesDeployments; protected $signature = 'new - {--starter-kit= : Starter kit (laravel, laravel-react, laravel-vue, laravel-livewire, laravel-svelte, nextjs, nuxt, express, go, django, fastapi, rails, astro)} + {--starter-kit= : Starter kit (laravel, laravel-react, laravel-vue, laravel-livewire, laravel-svelte, laravel-rust, laravel-go, nextjs, nuxt, express, go, django, fastapi, rails, astro)} {--repository= : New GitHub repository to create (owner/name). Must not exist yet} {--name= : Application name. Default: the repository name} {--region= : Region. Default: most-used or us-east-2} diff --git a/app/Enums/StarterKit.php b/app/Enums/StarterKit.php index 139e8976..1b7ba356 100644 --- a/app/Enums/StarterKit.php +++ b/app/Enums/StarterKit.php @@ -12,6 +12,8 @@ enum StarterKit: string case LARAVEL_VUE = 'laravel-vue'; case LARAVEL_LIVEWIRE = 'laravel-livewire'; case LARAVEL_SVELTE = 'laravel-svelte'; + case LARAVEL_RUST = 'laravel-rust'; + case LARAVEL_GO = 'laravel-go'; case NEXTJS = 'nextjs'; case NUXT = 'nuxt'; case EXPRESS = 'express'; @@ -29,6 +31,8 @@ public function label(): string self::LARAVEL_VUE => 'Laravel + Vue', self::LARAVEL_LIVEWIRE => 'Laravel + Livewire', self::LARAVEL_SVELTE => 'Laravel + Svelte', + self::LARAVEL_RUST => 'Laravel (Rust)', + self::LARAVEL_GO => 'Laravel (Go)', self::NEXTJS => 'Next.js', self::NUXT => 'Nuxt', self::EXPRESS => 'Express', diff --git a/tests/Feature/NewApplicationTest.php b/tests/Feature/NewApplicationTest.php index 34da6b90..87519faf 100644 --- a/tests/Feature/NewApplicationTest.php +++ b/tests/Feature/NewApplicationTest.php @@ -237,6 +237,11 @@ function runNew(array $options = []): int ->and($this->sent)->toBe(['create-application']); }); +it('creates an application from the Rust and Go starter kits', function (string $kit) { + expect(runNew(['--starter-kit' => $kit, '--database' => 'none']))->toBe(0) + ->and($this->sentBody['starter_kit'])->toBe($kit); +})->with(['laravel-rust', 'laravel-go']); + it('skips the database for kits outside Laravel', function () { runNew(['--starter-kit' => 'nextjs']);