@forge/cli

14.1.0-next.19-experimental-fd0ebbc14.1.0-next.32
out/command-line/dependency-injection.js
~out/command-line/dependency-injection.jsModified
+8−2
Index: package/out/command-line/dependency-injection.js
===================================================================
--- package/out/command-line/dependency-injection.js
+++ package/out/command-line/dependency-injection.js
@@ -49,16 +49,19 @@
 const autocomplete_controller_1 = require("./controller/autocomplete-controller");
 const deploy_controller_1 = require("./controller/deploy-controller");
 const feedback_controller_1 = require("./controller/feedback-controller");
 const install_controller_1 = require("./controller/install-controller");
+const global_install_controller_1 = require("./controller/global-install-controller");
 const lint_controller_1 = require("./controller/lint-controller");
 const pre_command_controller_1 = require("./controller/pre-command-controller");
 const settings_controller_1 = require("./controller/settings-controller");
 const tunnel_controller_1 = require("./controller/tunnel-controller");
 const assistant_controller_1 = require("./controller/assistant-controller");
 const analytics_settings_view_1 = require("./view/analytics-settings-view");
 const deploy_view_1 = require("./view/deploy-view");
 const install_view_1 = require("./view/install-view");
+const global_install_view_1 = require("./view/global-install-view");
+const identity_client_1 = require("../service/identity/identity-client");
 const lint_view_1 = require("./view/lint-view");
 const lite_lint_view_1 = require("./view/lite-lint-view");
 const settings_view_1 = require("./view/settings-view");
 const tunnel_view_1 = require("./view/tunnel-view");
@@ -189,9 +192,9 @@
     const uploaderArtifactClient = new deploy_1.ArtifactGraphQLClient(graphQLClient);
     const triggerDeployClient = new deploy_1.TriggerDeployGraphQLClient(graphQLClient);
     const archiveUploader = new deploy_1.AppArchiveUploader(assertiveAppConfigReader, uploaderArtifactClient, fileUploader, ui, archiverFactory, fileReader, process.cwd(), new resources_uploader_service_1.ResourcesUploaderService(fileReader));
     const deployer = new deploy_1.ArtifactDeployer(assertiveAppConfigReader, triggerDeployClient, deployMonitorClient, cli_shared_1.pause, ui);
-    const nodeBundle = (0, bundler_1.getNodeBundler)(ui, (0, bundler_1.getWrapperProvider)({ fileSystemReader: fileReader, statsigService }), configFile, statsigService);
+    const nodeBundle = (0, bundler_1.getNodeBundler)(ui, (0, bundler_1.getWrapperProvider)({ fileSystemReader: fileReader }), configFile, statsigService);
     const runtimeBundler = new runtime_bundler_1.RuntimeBundler(archiverFactory, ui, nodeBundle, fileReader, configFile);
     const nativeUiBundler = new bundler_1.NativeUIBundler(ui);
     const appPackager = new deploy_1.AppPackager(runtimeBundler, nativeUiBundler, ui, analyticsClientReporter);
     const getWebTriggerURLCommand = new get_webtrigger_url_1.GetWebTriggerURLCommand(assertiveAppConfigReader, installationsClient, appEnvironmentClient, webTriggerGraphqlClient);
@@ -201,9 +204,12 @@
     const installationsService = new installation_service_1.InstallationService(assertiveAppConfigReader, installationsClient, installationsClient, installationsClient, installationsClient, installationsClient);
     const deploymentsClient = new deployments_graphql_client_1.DeploymentsGraphqlClient(graphQLClient);
     const deploymentsService = new deployment_service_1.DeploymentService(assertiveAppConfigReader, deploymentsClient);
     const installView = new install_view_1.InstallView(ui);
-    const installController = new install_controller_1.InstallController(assertiveAppConfigReader, configFile, ui, installAppSiteCommand, installationsService, installView, supportedProductsService, statsigService, devSpaceService, siteService);
+    const identityClient = new identity_client_1.IdentityClient(authenticator, async () => (await credentialStore.getCredentials()).accountId, (0, identity_client_1.getIdentityBaseUrl)(), ui);
+    const globalInstallView = new global_install_view_1.GlobalInstallView(ui);
+    const globalInstallController = new global_install_controller_1.GlobalInstallController(globalInstallView, identityClient, installationsClient, installationsService, supportedProductsService);
+    const installController = new install_controller_1.InstallController(assertiveAppConfigReader, configFile, ui, installAppSiteCommand, installationsService, installView, supportedProductsService, statsigService, devSpaceService, siteService, globalInstallController);
     const feedbackController = new feedback_controller_1.FeedbackController(credentialStore, feedbackPostClient);
     const eligibilityController = new eligibility_controller_1.EligibilityController(new roa_service_1.RoaService(assertiveAppConfigReader, new graphql_client_8.RoaEligibilityClient(graphQLClient)), new eligibility_view_1.EligibilityView(ui));
     const versionController = new version_controller_1.VersionController(new version_service_1.VersionService(assertiveAppConfigReader, new graphql_client_9.AppVersionDetailsClient(graphQLClient)), new version_view_1.VersionView(ui));
     const rolloutController = new rollout_controller_1.RolloutController(new rollout_service_1.RolloutService(appEnvironmentClient, new graphql_client_10.RollingReleaseGraphqlClient(graphQLClient)), environmentClient, new rollout_view_1.RolloutView(ui));