@microsoft/teamsfx-core 1.2.0 → 1.2.2-alpha.eb4575da.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/common/armInterface.d.ts +0 -20
- package/build/common/armInterface.d.ts.map +1 -1
- package/build/common/deps-checker/depsChecker.d.ts +1 -0
- package/build/common/deps-checker/depsChecker.d.ts.map +1 -1
- package/build/common/deps-checker/depsChecker.js.map +1 -1
- package/build/common/deps-checker/depsManager.d.ts +2 -1
- package/build/common/deps-checker/depsManager.d.ts.map +1 -1
- package/build/common/deps-checker/depsManager.js +12 -7
- package/build/common/deps-checker/depsManager.js.map +1 -1
- package/build/common/deps-checker/index.d.ts +1 -0
- package/build/common/deps-checker/index.d.ts.map +1 -1
- package/build/common/deps-checker/index.js +1 -0
- package/build/common/deps-checker/index.js.map +1 -1
- package/build/common/deps-checker/internal/dotnetChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/dotnetChecker.js +2 -1
- package/build/common/deps-checker/internal/dotnetChecker.js.map +1 -1
- package/build/common/deps-checker/internal/funcToolChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/funcToolChecker.js +2 -1
- package/build/common/deps-checker/internal/funcToolChecker.js.map +1 -1
- package/build/common/deps-checker/internal/ngrokChecker.d.ts +1 -1
- package/build/common/deps-checker/internal/ngrokChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/ngrokChecker.js +2 -4
- package/build/common/deps-checker/internal/ngrokChecker.js.map +1 -1
- package/build/common/deps-checker/internal/nodeChecker.d.ts +1 -0
- package/build/common/deps-checker/internal/nodeChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/nodeChecker.js +9 -1
- package/build/common/deps-checker/internal/nodeChecker.js.map +1 -1
- package/build/common/deps-checker/util/extensionInstaller.d.ts +3 -0
- package/build/common/deps-checker/util/extensionInstaller.d.ts.map +1 -0
- package/build/common/deps-checker/util/extensionInstaller.js +47 -0
- package/build/common/deps-checker/util/extensionInstaller.js.map +1 -0
- package/build/common/deps-checker/util/index.d.ts +5 -0
- package/build/common/deps-checker/util/index.d.ts.map +1 -0
- package/build/common/deps-checker/util/index.js +10 -0
- package/build/common/deps-checker/util/index.js.map +1 -0
- package/build/common/index.d.ts +1 -3
- package/build/common/index.d.ts.map +1 -1
- package/build/common/index.js +1 -3
- package/build/common/index.js.map +1 -1
- package/build/common/local/constants.d.ts +5 -0
- package/build/common/local/constants.d.ts.map +1 -1
- package/build/common/local/constants.js +7 -1
- package/build/common/local/constants.js.map +1 -1
- package/build/common/local/index.d.ts +5 -0
- package/build/common/local/index.d.ts.map +1 -0
- package/build/common/local/index.js +10 -0
- package/build/common/local/index.js.map +1 -0
- package/build/{plugins/solution/fx-solution/debug/util/certificate.d.ts → common/local/localCertificateManager.d.ts} +4 -6
- package/build/common/local/localCertificateManager.d.ts.map +1 -0
- package/build/{plugins/solution/fx-solution/debug/util/certificate.js → common/local/localCertificateManager.js} +37 -47
- package/build/common/local/localCertificateManager.js.map +1 -0
- package/build/common/local/localEnvManager.d.ts +6 -2
- package/build/common/local/localEnvManager.d.ts.map +1 -1
- package/build/common/local/localEnvManager.js +41 -1
- package/build/common/local/localEnvManager.js.map +1 -1
- package/build/{plugins/solution/fx-solution/debug/util → common/local}/process.d.ts +0 -0
- package/build/common/local/process.d.ts.map +1 -0
- package/build/{plugins/solution/fx-solution/debug/util → common/local}/process.js +0 -0
- package/build/common/local/process.js.map +1 -0
- package/build/common/local/projectSettingsHelper.d.ts +5 -5
- package/build/common/local/projectSettingsHelper.d.ts.map +1 -1
- package/build/common/local/projectSettingsHelper.js +28 -21
- package/build/common/local/projectSettingsHelper.js.map +1 -1
- package/build/common/local/taskDefinition.d.ts +1 -1
- package/build/common/local/taskDefinition.d.ts.map +1 -1
- package/build/common/local/taskDefinition.js +6 -4
- package/build/common/local/taskDefinition.js.map +1 -1
- package/build/common/localSettingsConstants.d.ts +1 -0
- package/build/common/localSettingsConstants.d.ts.map +1 -1
- package/build/common/localSettingsConstants.js +1 -0
- package/build/common/localSettingsConstants.js.map +1 -1
- package/build/common/localSettingsProvider.d.ts.map +1 -1
- package/build/common/localSettingsProvider.js +1 -0
- package/build/common/localSettingsProvider.js.map +1 -1
- package/build/common/permissionInterface.d.ts +1 -0
- package/build/common/permissionInterface.d.ts.map +1 -1
- package/build/common/permissionInterface.js +1 -0
- package/build/common/permissionInterface.js.map +1 -1
- package/build/common/telemetry.d.ts +7 -2
- package/build/common/telemetry.d.ts.map +1 -1
- package/build/common/telemetry.js +10 -4
- package/build/common/telemetry.js.map +1 -1
- package/build/common/{templates.d.ts → template-utils/templates.d.ts} +0 -0
- package/build/common/template-utils/templates.d.ts.map +1 -0
- package/build/common/{templates.js → template-utils/templates.js} +1 -1
- package/build/common/template-utils/templates.js.map +1 -0
- package/build/common/{templatesActions.d.ts → template-utils/templatesActions.d.ts} +0 -0
- package/build/common/template-utils/templatesActions.d.ts.map +1 -0
- package/build/common/{templatesActions.js → template-utils/templatesActions.js} +3 -3
- package/build/common/template-utils/templatesActions.js.map +1 -0
- package/build/common/{templatesUtils.d.ts → template-utils/templatesUtils.d.ts} +0 -0
- package/build/common/template-utils/templatesUtils.d.ts.map +1 -0
- package/build/common/{templatesUtils.js → template-utils/templatesUtils.js} +1 -1
- package/build/common/template-utils/templatesUtils.js.map +1 -0
- package/build/common/tools.d.ts +1 -4
- package/build/common/tools.d.ts.map +1 -1
- package/build/common/tools.js +41 -12
- package/build/common/tools.js.map +1 -1
- package/build/core/index.d.ts +2 -2
- package/build/core/index.d.ts.map +1 -1
- package/build/core/index.js +14 -6
- package/build/core/index.js.map +1 -1
- package/build/core/middleware/index.d.ts +0 -1
- package/build/core/middleware/index.d.ts.map +1 -1
- package/build/core/middleware/index.js +0 -1
- package/build/core/middleware/index.js.map +1 -1
- package/build/core/middleware/projectMigrator.d.ts.map +1 -1
- package/build/core/middleware/projectMigrator.js +0 -9
- package/build/core/middleware/projectMigrator.js.map +1 -1
- package/build/core/permissionRequest.js +2 -2
- package/build/core/permissionRequest.js.map +1 -1
- package/build/core/question.d.ts.map +1 -1
- package/build/core/question.js +7 -4
- package/build/core/question.js.map +1 -1
- package/build/plugins/resource/aad/aadAppClient.d.ts +2 -2
- package/build/plugins/resource/aad/aadAppClient.d.ts.map +1 -1
- package/build/plugins/resource/aad/aadAppClient.js +3 -4
- package/build/plugins/resource/aad/aadAppClient.js.map +1 -1
- package/build/plugins/resource/aad/errors.d.ts.map +1 -1
- package/build/plugins/resource/aad/errors.js +1 -2
- package/build/plugins/resource/aad/errors.js.map +1 -1
- package/build/plugins/resource/aad/interfaces/IAADDefinition.d.ts +4 -0
- package/build/plugins/resource/aad/interfaces/IAADDefinition.d.ts.map +1 -1
- package/build/plugins/resource/aad/plugin.d.ts.map +1 -1
- package/build/plugins/resource/aad/plugin.js +33 -46
- package/build/plugins/resource/aad/plugin.js.map +1 -1
- package/build/plugins/resource/aad/utils/common.d.ts +2 -0
- package/build/plugins/resource/aad/utils/common.d.ts.map +1 -1
- package/build/plugins/resource/aad/utils/common.js +14 -14
- package/build/plugins/resource/aad/utils/common.js.map +1 -1
- package/build/plugins/resource/aad/utils/configs.d.ts +1 -0
- package/build/plugins/resource/aad/utils/configs.d.ts.map +1 -1
- package/build/plugins/resource/aad/utils/configs.js +20 -38
- package/build/plugins/resource/aad/utils/configs.js.map +1 -1
- package/build/plugins/resource/apim/error.d.ts.map +1 -1
- package/build/plugins/resource/apim/error.js +1 -4
- package/build/plugins/resource/apim/error.js.map +1 -1
- package/build/plugins/resource/apim/managers/apimManager.d.ts.map +1 -1
- package/build/plugins/resource/apim/managers/apimManager.js +21 -58
- package/build/plugins/resource/apim/managers/apimManager.js.map +1 -1
- package/build/plugins/resource/apim/managers/questionManager.d.ts.map +1 -1
- package/build/plugins/resource/apim/managers/questionManager.js +0 -7
- package/build/plugins/resource/apim/managers/questionManager.js.map +1 -1
- package/build/plugins/resource/apim/questions/vscodeQuestion.d.ts.map +1 -1
- package/build/plugins/resource/apim/questions/vscodeQuestion.js +6 -13
- package/build/plugins/resource/apim/questions/vscodeQuestion.js.map +1 -1
- package/build/plugins/resource/appstudio/constants.d.ts +3 -2
- package/build/plugins/resource/appstudio/constants.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/constants.js +12 -11
- package/build/plugins/resource/appstudio/constants.js.map +1 -1
- package/build/plugins/resource/appstudio/index.d.ts +2 -36
- package/build/plugins/resource/appstudio/index.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/index.js +1 -31
- package/build/plugins/resource/appstudio/index.js.map +1 -1
- package/build/plugins/resource/appstudio/manifestTemplate.d.ts +1 -1
- package/build/plugins/resource/appstudio/manifestTemplate.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/manifestTemplate.js +16 -8
- package/build/plugins/resource/appstudio/manifestTemplate.js.map +1 -1
- package/build/plugins/resource/appstudio/plugin.d.ts +1 -0
- package/build/plugins/resource/appstudio/plugin.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/plugin.js +14 -1
- package/build/plugins/resource/appstudio/plugin.js.map +1 -1
- package/build/plugins/resource/appstudio/v3/index.d.ts +1 -3
- package/build/plugins/resource/appstudio/v3/index.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/v3/index.js +28 -16
- package/build/plugins/resource/appstudio/v3/index.js.map +1 -1
- package/build/plugins/resource/bot/configs/provisionConfig.d.ts.map +1 -1
- package/build/plugins/resource/bot/configs/provisionConfig.js +0 -10
- package/build/plugins/resource/bot/configs/provisionConfig.js.map +1 -1
- package/build/plugins/resource/bot/languageStrategy.d.ts +1 -1
- package/build/plugins/resource/bot/languageStrategy.d.ts.map +1 -1
- package/build/plugins/resource/bot/languageStrategy.js +1 -1
- package/build/plugins/resource/bot/languageStrategy.js.map +1 -1
- package/build/plugins/resource/bot/plugin.d.ts.map +1 -1
- package/build/plugins/resource/bot/plugin.js +14 -131
- package/build/plugins/resource/bot/plugin.js.map +1 -1
- package/build/plugins/resource/frontend/configs.d.ts +1 -1
- package/build/plugins/resource/frontend/configs.d.ts.map +1 -1
- package/build/plugins/resource/frontend/configs.js +3 -9
- package/build/plugins/resource/frontend/configs.js.map +1 -1
- package/build/plugins/resource/frontend/constants.d.ts +2 -8
- package/build/plugins/resource/frontend/constants.d.ts.map +1 -1
- package/build/plugins/resource/frontend/constants.js +3 -11
- package/build/plugins/resource/frontend/constants.js.map +1 -1
- package/build/plugins/resource/frontend/dotnet/constants.d.ts +52 -0
- package/build/plugins/resource/frontend/dotnet/constants.d.ts.map +1 -0
- package/build/plugins/resource/frontend/dotnet/constants.js +69 -0
- package/build/plugins/resource/frontend/dotnet/constants.js.map +1 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/enum.d.ts +1 -1
- package/build/plugins/resource/frontend/{blazor → dotnet}/enum.d.ts.map +1 -1
- package/build/plugins/resource/frontend/dotnet/enum.js +39 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/enum.js.map +1 -1
- package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.d.ts +0 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.d.ts.map +1 -1
- package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.js +3 -3
- package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.js.map +1 -1
- package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.d.ts +0 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.d.ts.map +1 -1
- package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.js +3 -3
- package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.js.map +1 -1
- package/build/plugins/resource/frontend/dotnet/plugin.d.ts +34 -0
- package/build/plugins/resource/frontend/dotnet/plugin.d.ts.map +1 -0
- package/build/plugins/resource/frontend/dotnet/plugin.js +126 -0
- package/build/plugins/resource/frontend/dotnet/plugin.js.map +1 -0
- package/build/plugins/resource/frontend/dotnet/resources/errors.d.ts +35 -0
- package/build/plugins/resource/frontend/dotnet/resources/errors.d.ts.map +1 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/resources/errors.js +10 -22
- package/build/plugins/resource/frontend/dotnet/resources/errors.js.map +1 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/resources/messages.d.ts +0 -4
- package/build/plugins/resource/frontend/dotnet/resources/messages.d.ts.map +1 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/resources/messages.js +0 -4
- package/build/plugins/resource/frontend/dotnet/resources/messages.js.map +1 -0
- package/build/plugins/resource/frontend/dotnet/utils/azure-client.d.ts +6 -0
- package/build/plugins/resource/frontend/dotnet/utils/azure-client.d.ts.map +1 -0
- package/build/plugins/resource/frontend/dotnet/utils/azure-client.js +11 -0
- package/build/plugins/resource/frontend/dotnet/utils/azure-client.js.map +1 -0
- package/build/plugins/resource/frontend/index.d.ts +6 -3
- package/build/plugins/resource/frontend/index.d.ts.map +1 -1
- package/build/plugins/resource/frontend/index.js +27 -45
- package/build/plugins/resource/frontend/index.js.map +1 -1
- package/build/plugins/resource/frontend/interface.d.ts +13 -0
- package/build/plugins/resource/frontend/interface.d.ts.map +1 -0
- package/build/plugins/resource/frontend/interface.js +3 -0
- package/build/plugins/resource/frontend/interface.js.map +1 -0
- package/build/plugins/resource/frontend/ops/deploy.d.ts +3 -0
- package/build/plugins/resource/frontend/ops/deploy.d.ts.map +1 -1
- package/build/plugins/resource/frontend/ops/deploy.js +43 -0
- package/build/plugins/resource/frontend/ops/deploy.js.map +1 -1
- package/build/plugins/resource/frontend/ops/scaffold.d.ts.map +1 -1
- package/build/plugins/resource/frontend/ops/scaffold.js +1 -1
- package/build/plugins/resource/frontend/ops/scaffold.js.map +1 -1
- package/build/plugins/resource/frontend/plugin.d.ts +3 -3
- package/build/plugins/resource/frontend/plugin.d.ts.map +1 -1
- package/build/plugins/resource/frontend/plugin.js +13 -44
- package/build/plugins/resource/frontend/plugin.js.map +1 -1
- package/build/plugins/resource/frontend/resources/errors.d.ts +23 -20
- package/build/plugins/resource/frontend/resources/errors.d.ts.map +1 -1
- package/build/plugins/resource/frontend/resources/errors.js +31 -67
- package/build/plugins/resource/frontend/resources/errors.js.map +1 -1
- package/build/plugins/resource/frontend/resources/templateInfo.js +1 -1
- package/build/plugins/resource/frontend/resources/templateInfo.js.map +1 -1
- package/build/plugins/resource/frontend/utils/logger.d.ts +3 -1
- package/build/plugins/resource/frontend/utils/logger.d.ts.map +1 -1
- package/build/plugins/resource/frontend/utils/logger.js +9 -6
- package/build/plugins/resource/frontend/utils/logger.js.map +1 -1
- package/build/plugins/resource/frontend/utils/progress-helper.d.ts +0 -8
- package/build/plugins/resource/frontend/utils/progress-helper.d.ts.map +1 -1
- package/build/plugins/resource/frontend/utils/progress-helper.js +1 -19
- package/build/plugins/resource/frontend/utils/progress-helper.js.map +1 -1
- package/build/plugins/resource/frontend/v2/index.d.ts +1 -0
- package/build/plugins/resource/frontend/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/frontend/v2/index.js +3 -0
- package/build/plugins/resource/frontend/v2/index.js.map +1 -1
- package/build/plugins/resource/frontend/v3/AzureStoragePlugin.d.ts +15 -0
- package/build/plugins/resource/frontend/v3/AzureStoragePlugin.d.ts.map +1 -0
- package/build/plugins/resource/frontend/v3/AzureStoragePlugin.js +149 -0
- package/build/plugins/resource/frontend/v3/AzureStoragePlugin.js.map +1 -0
- package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.d.ts +8 -0
- package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.d.ts.map +1 -0
- package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.js +95 -0
- package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.js.map +1 -0
- package/build/plugins/resource/frontend/v3/error.d.ts +23 -0
- package/build/plugins/resource/frontend/v3/error.d.ts.map +1 -0
- package/build/plugins/resource/frontend/v3/error.js +66 -0
- package/build/plugins/resource/frontend/v3/error.js.map +1 -0
- package/build/plugins/resource/frontend/v3/index.d.ts +3 -0
- package/build/plugins/resource/frontend/v3/index.d.ts.map +1 -0
- package/build/plugins/resource/frontend/v3/index.js +7 -0
- package/build/plugins/resource/frontend/v3/index.js.map +1 -0
- package/build/plugins/resource/function/index.d.ts +1 -1
- package/build/plugins/resource/function/index.d.ts.map +1 -1
- package/build/plugins/resource/function/index.js +8 -21
- package/build/plugins/resource/function/index.js.map +1 -1
- package/build/plugins/resource/function/ops/deploy.d.ts.map +1 -1
- package/build/plugins/resource/function/ops/deploy.js +8 -9
- package/build/plugins/resource/function/ops/deploy.js.map +1 -1
- package/build/plugins/resource/function/ops/scaffold.js +1 -1
- package/build/plugins/resource/function/ops/scaffold.js.map +1 -1
- package/build/plugins/resource/function/plugin.d.ts.map +1 -1
- package/build/plugins/resource/function/plugin.js +33 -134
- package/build/plugins/resource/function/plugin.js.map +1 -1
- package/build/plugins/resource/function/resources/message.d.ts +0 -1
- package/build/plugins/resource/function/resources/message.d.ts.map +1 -1
- package/build/plugins/resource/function/resources/message.js +0 -1
- package/build/plugins/resource/function/resources/message.js.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/funcHelper.d.ts +11 -0
- package/build/plugins/resource/function/utils/depsChecker/funcHelper.d.ts.map +1 -0
- package/build/plugins/resource/function/utils/depsChecker/funcHelper.js +48 -0
- package/build/plugins/resource/function/utils/depsChecker/funcHelper.js.map +1 -0
- package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.d.ts +6 -4
- package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.d.ts.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.js +15 -8
- package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.js.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.d.ts +4 -3
- package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.d.ts.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.js +5 -4
- package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.js.map +1 -1
- package/build/plugins/resource/function/utils/telemetry-helper.d.ts +1 -1
- package/build/plugins/resource/function/utils/telemetry-helper.d.ts.map +1 -1
- package/build/plugins/resource/identity/index.d.ts +0 -1
- package/build/plugins/resource/identity/index.d.ts.map +1 -1
- package/build/plugins/resource/identity/index.js +2 -20
- package/build/plugins/resource/identity/index.js.map +1 -1
- package/build/plugins/resource/simpleauth/index.d.ts.map +1 -1
- package/build/plugins/resource/simpleauth/index.js +1 -6
- package/build/plugins/resource/simpleauth/index.js.map +1 -1
- package/build/plugins/resource/simpleauth/plugin.d.ts.map +1 -1
- package/build/plugins/resource/simpleauth/plugin.js +0 -3
- package/build/plugins/resource/simpleauth/plugin.js.map +1 -1
- package/build/plugins/resource/spfx/plugin.d.ts.map +1 -1
- package/build/plugins/resource/spfx/plugin.js +14 -9
- package/build/plugins/resource/spfx/plugin.js.map +1 -1
- package/build/plugins/resource/spfx/utils/constants.d.ts +5 -4
- package/build/plugins/resource/spfx/utils/constants.d.ts.map +1 -1
- package/build/plugins/resource/spfx/utils/constants.js +5 -4
- package/build/plugins/resource/spfx/utils/constants.js.map +1 -1
- package/build/plugins/resource/spfx/utils/progress-helper.d.ts.map +1 -1
- package/build/plugins/resource/spfx/utils/progress-helper.js +1 -1
- package/build/plugins/resource/spfx/utils/progress-helper.js.map +1 -1
- package/build/plugins/resource/sql/index.d.ts.map +1 -1
- package/build/plugins/resource/sql/index.js +1 -9
- package/build/plugins/resource/sql/index.js.map +1 -1
- package/build/plugins/resource/sql/plugin.d.ts.map +1 -1
- package/build/plugins/resource/sql/plugin.js +26 -58
- package/build/plugins/resource/sql/plugin.js.map +1 -1
- package/build/plugins/resource/utils4v2.d.ts +1 -1
- package/build/plugins/resource/utils4v2.d.ts.map +1 -1
- package/build/plugins/resource/utils4v2.js +3 -3
- package/build/plugins/resource/utils4v2.js.map +1 -1
- package/build/plugins/solution/fx-solution/arm.d.ts +9 -2
- package/build/plugins/solution/fx-solution/arm.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/arm.js +45 -11
- package/build/plugins/solution/fx-solution/arm.js.map +1 -1
- package/build/plugins/solution/fx-solution/commonQuestions.d.ts +4 -3
- package/build/plugins/solution/fx-solution/commonQuestions.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/commonQuestions.js +11 -10
- package/build/plugins/solution/fx-solution/commonQuestions.js.map +1 -1
- package/build/plugins/solution/fx-solution/constants.d.ts +1 -0
- package/build/plugins/solution/fx-solution/constants.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/constants.js +1 -0
- package/build/plugins/solution/fx-solution/constants.js.map +1 -1
- package/build/plugins/solution/fx-solution/debug/constants.d.ts +0 -5
- package/build/plugins/solution/fx-solution/debug/constants.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/debug/constants.js +1 -7
- package/build/plugins/solution/fx-solution/debug/constants.js.map +1 -1
- package/build/plugins/solution/fx-solution/debug/provisionLocal.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/debug/provisionLocal.js +2 -2
- package/build/plugins/solution/fx-solution/debug/provisionLocal.js.map +1 -1
- package/build/plugins/solution/fx-solution/debug/scaffolding.d.ts +2 -2
- package/build/plugins/solution/fx-solution/debug/scaffolding.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/debug/scaffolding.js +5 -3
- package/build/plugins/solution/fx-solution/debug/scaffolding.js.map +1 -1
- package/build/plugins/solution/fx-solution/question.d.ts +2 -2
- package/build/plugins/solution/fx-solution/question.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/question.js +32 -22
- package/build/plugins/solution/fx-solution/question.js.map +1 -1
- package/build/plugins/solution/fx-solution/solution.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/solution.js +15 -15
- package/build/plugins/solution/fx-solution/solution.js.map +1 -1
- package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.d.ts +31 -0
- package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.js +222 -0
- package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.js.map +1 -0
- package/build/plugins/solution/fx-solution/v2/adaptor.js +1 -1
- package/build/plugins/solution/fx-solution/v2/adaptor.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/createEnv.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/createEnv.js +1 -3
- package/build/plugins/solution/fx-solution/v2/createEnv.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts +2 -2
- package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/executeUserTask.js +196 -122
- package/build/plugins/solution/fx-solution/v2/executeUserTask.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.d.ts +2 -2
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.js +9 -14
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/getQuestions.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/getQuestions.js +81 -96
- package/build/plugins/solution/fx-solution/v2/getQuestions.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provision.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provision.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/scaffolding.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/scaffolding.js +6 -0
- package/build/plugins/solution/fx-solution/v2/scaffolding.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/utils.js +1 -1
- package/build/plugins/solution/fx-solution/v2/utils.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/addModule.d.ts +2 -4
- package/build/plugins/solution/fx-solution/v3/addModule.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/addModule.js +29 -6
- package/build/plugins/solution/fx-solution/v3/addModule.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/addResource.d.ts +6 -14
- package/build/plugins/solution/fx-solution/v3/addResource.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/addResource.js +23 -51
- package/build/plugins/solution/fx-solution/v3/addResource.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/constants.d.ts +2 -0
- package/build/plugins/solution/fx-solution/v3/constants.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/constants.js +2 -0
- package/build/plugins/solution/fx-solution/v3/constants.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/deploy.d.ts +1 -3
- package/build/plugins/solution/fx-solution/v3/deploy.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/deploy.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/init.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/init.js +9 -0
- package/build/plugins/solution/fx-solution/v3/init.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/provision.d.ts +8 -1
- package/build/plugins/solution/fx-solution/v3/provision.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/provision.js +219 -16
- package/build/plugins/solution/fx-solution/v3/provision.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/provisionLocal.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/provisionLocal.js +96 -1
- package/build/plugins/solution/fx-solution/v3/provisionLocal.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/scaffold.d.ts +8 -13
- package/build/plugins/solution/fx-solution/v3/scaffold.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/scaffold.js +30 -52
- package/build/plugins/solution/fx-solution/v3/scaffold.js.map +1 -1
- package/build/plugins/solution/spfx-solution/addModule.d.ts +2 -4
- package/build/plugins/solution/spfx-solution/addModule.d.ts.map +1 -1
- package/build/plugins/solution/spfx-solution/addModule.js +1 -1
- package/build/plugins/solution/spfx-solution/addModule.js.map +1 -1
- package/build/plugins/solution/spfx-solution/scaffold.d.ts +2 -10
- package/build/plugins/solution/spfx-solution/scaffold.d.ts.map +1 -1
- package/build/plugins/solution/spfx-solution/scaffold.js +3 -39
- package/build/plugins/solution/spfx-solution/scaffold.js.map +1 -1
- package/build/plugins/solution/spfx-solution/solution.d.ts +12 -17
- package/build/plugins/solution/spfx-solution/solution.d.ts.map +1 -1
- package/build/plugins/solution/spfx-solution/solution.js +7 -7
- package/build/plugins/solution/spfx-solution/solution.js.map +1 -1
- package/package.json +6 -7
- package/resource/strings.json +17 -7
- package/templates/plugins/resource/apim/bicep/apimConfiguration.bicep +1 -0
- package/templates/plugins/resource/apim/bicep/apimProvision.bicep +7 -5
- package/templates/plugins/resource/apim/bicep/config.template.bicep +1 -0
- package/templates/plugins/resource/bot/bicep/botConfiguration.template.bicep +12 -12
- package/templates/plugins/resource/bot/bicep/botProvision.template.bicep +15 -11
- package/templates/plugins/resource/bot/bicep/config.template.bicep +2 -0
- package/templates/plugins/resource/frontend/bicep/frontendHostingProvision.bicep +4 -2
- package/templates/plugins/resource/frontend/bicep/provision.template.bicep +1 -0
- package/templates/plugins/resource/function/bicep/config.template.bicep +2 -0
- package/templates/plugins/resource/function/bicep/functionConfiguration.template.bicep +15 -15
- package/templates/plugins/resource/function/bicep/functionProvision.template.bicep +17 -14
- package/templates/plugins/resource/identity/bicep/identityProvision.template.bicep +2 -1
- package/templates/plugins/resource/keyvault/bicep/keyVaultProvision.template.bicep +9 -7
- package/templates/plugins/resource/simpleauth/bicep/config.template.bicep +2 -0
- package/templates/plugins/resource/simpleauth/bicep/simpleAuthConfiguration.template.bicep +7 -7
- package/templates/plugins/resource/simpleauth/bicep/simpleAuthProvision.template.bicep +9 -6
- package/templates/plugins/resource/sql/bicep/sqlProvision.template.bicep +8 -5
- package/templates/plugins/resource/webapp/bicep/config.template.bicep +10 -0
- package/templates/plugins/resource/webapp/bicep/provision.template.bicep +16 -0
- package/templates/plugins/resource/webapp/bicep/webappConfiguration.template.bicep +74 -0
- package/templates/plugins/resource/webapp/bicep/webappProvision.template.bicep +48 -0
- package/build/common/templates.d.ts.map +0 -1
- package/build/common/templates.js.map +0 -1
- package/build/common/templatesActions.d.ts.map +0 -1
- package/build/common/templatesActions.js.map +0 -1
- package/build/common/templatesUtils.d.ts.map +0 -1
- package/build/common/templatesUtils.js.map +0 -1
- package/build/core/middleware/projectUpgrader.d.ts +0 -6
- package/build/core/middleware/projectUpgrader.d.ts.map +0 -1
- package/build/core/middleware/projectUpgrader.js +0 -224
- package/build/core/middleware/projectUpgrader.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/constants.d.ts +0 -75
- package/build/plugins/resource/frontend/blazor/constants.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/constants.js +0 -98
- package/build/plugins/resource/frontend/blazor/constants.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/enum.js +0 -39
- package/build/plugins/resource/frontend/blazor/ops/provision.d.ts +0 -8
- package/build/plugins/resource/frontend/blazor/ops/provision.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/ops/provision.js +0 -42
- package/build/plugins/resource/frontend/blazor/ops/provision.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/plugin.d.ts +0 -35
- package/build/plugins/resource/frontend/blazor/plugin.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/plugin.js +0 -190
- package/build/plugins/resource/frontend/blazor/plugin.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/resources/errors.d.ts +0 -41
- package/build/plugins/resource/frontend/blazor/resources/errors.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/resources/errors.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/resources/messages.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/resources/messages.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/utils/azure-client.d.ts +0 -21
- package/build/plugins/resource/frontend/blazor/utils/azure-client.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/utils/azure-client.js +0 -47
- package/build/plugins/resource/frontend/blazor/utils/azure-client.js.map +0 -1
- package/build/plugins/resource/frontend/utils/azure-client.d.ts +0 -12
- package/build/plugins/resource/frontend/utils/azure-client.d.ts.map +0 -1
- package/build/plugins/resource/frontend/utils/azure-client.js +0 -29
- package/build/plugins/resource/frontend/utils/azure-client.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.d.ts +0 -9
- package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.js +0 -55
- package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/checker.d.ts +0 -54
- package/build/plugins/resource/function/utils/depsChecker/checker.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/checker.js +0 -104
- package/build/plugins/resource/function/utils/depsChecker/checker.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/common.d.ts +0 -84
- package/build/plugins/resource/function/utils/depsChecker/common.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/common.js +0 -136
- package/build/plugins/resource/function/utils/depsChecker/common.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/cpUtils.d.ts +0 -22
- package/build/plugins/resource/function/utils/depsChecker/cpUtils.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/cpUtils.js +0 -105
- package/build/plugins/resource/function/utils/depsChecker/cpUtils.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.d.ts +0 -53
- package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.js +0 -387
- package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/errors.d.ts +0 -14
- package/build/plugins/resource/function/utils/depsChecker/errors.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/errors.js +0 -41
- package/build/plugins/resource/function/utils/depsChecker/errors.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.d.ts +0 -26
- package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.js +0 -111
- package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.js.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/certificate.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/certificate.js.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/process.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/process.js.map +0 -1
- package/resource/plugins/resource/function/dotnet-install.ps1 +0 -1095
- package/resource/plugins/resource/function/dotnet-install.sh +0 -1222
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright (c) Microsoft Corporation.
|
|
3
|
-
// Licensed under the MIT license.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.BackendExtensionsInstaller = void 0;
|
|
6
|
-
// NOTE:
|
|
7
|
-
// DO NOT EDIT this file in function plugin.
|
|
8
|
-
// The source of truth of this file is in packages/vscode-extension/src/debug/depsChecker.
|
|
9
|
-
// If you need to edit this file, please edit it in the above folder
|
|
10
|
-
// and run the scripts (tools/depsChecker/copyfiles.sh or tools/depsChecker/copyfiles.ps1 according to your OS)
|
|
11
|
-
// to copy you changes to function plugin.
|
|
12
|
-
const common_1 = require("./common");
|
|
13
|
-
const errors_1 = require("./errors");
|
|
14
|
-
const cpUtils_1 = require("./cpUtils");
|
|
15
|
-
// NOTE: change these constants if function plugin scaffold changes
|
|
16
|
-
const defaultOutputPath = "bin";
|
|
17
|
-
const defaultCsprojPath = "extensions.csproj";
|
|
18
|
-
class BackendExtensionsInstaller {
|
|
19
|
-
constructor(dotnetChecker, logger) {
|
|
20
|
-
this._dotnetChecker = dotnetChecker;
|
|
21
|
-
this._logger = logger;
|
|
22
|
-
}
|
|
23
|
-
async install(backendRoot, csprojPath = defaultCsprojPath, outputPath = defaultOutputPath) {
|
|
24
|
-
if (!outputPath) {
|
|
25
|
-
outputPath = defaultOutputPath;
|
|
26
|
-
}
|
|
27
|
-
const dotnetExecPath = await this._dotnetChecker.getDotnetExecPath();
|
|
28
|
-
if (dotnetExecPath === "") {
|
|
29
|
-
await this._logger.printDetailLog();
|
|
30
|
-
this._logger.cleanup();
|
|
31
|
-
await this._logger.error(`Failed to run backend extension install, .NET SDK executable not found`);
|
|
32
|
-
throw new errors_1.BackendExtensionsInstallError("Failed to run backend extension install, .NET SDK executable not found", common_1.defaultHelpLink);
|
|
33
|
-
}
|
|
34
|
-
try {
|
|
35
|
-
const result = await cpUtils_1.cpUtils.tryExecuteCommand(backendRoot, this._logger, { shell: false }, dotnetExecPath, "build", csprojPath, "-o", outputPath, "--ignore-failed-sources");
|
|
36
|
-
if (result.code !== 0) {
|
|
37
|
-
throw new Error(`Failed to run "${dotnetExecPath} build" command. output = ${result.cmdOutput}, err = ${result.cmdOutputIncludingStderr}`);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
catch (error) {
|
|
41
|
-
await this._logger.printDetailLog();
|
|
42
|
-
await this._logger.error(`Failed to run backend extension install: error = '${error}'`);
|
|
43
|
-
if (error.message.includes("NETSDK1045")) {
|
|
44
|
-
// refer to https://docs.microsoft.com/en-us/dotnet/core/tools/sdk-errors/netsdk1045
|
|
45
|
-
throw new errors_1.BackendExtensionsInstallError(`NETSDK1045: The current .NET SDK does not support 'newer version' as a target`, common_1.dotnetNotSupportTargetVersionHelpLink);
|
|
46
|
-
}
|
|
47
|
-
throw new errors_1.BackendExtensionsInstallError(`Failed to run backend extension install: error = '${error}'`, common_1.defaultHelpLink);
|
|
48
|
-
}
|
|
49
|
-
finally {
|
|
50
|
-
this._logger.cleanup();
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
exports.BackendExtensionsInstaller = BackendExtensionsInstaller;
|
|
55
|
-
//# sourceMappingURL=backendExtensionsInstall.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"backendExtensionsInstall.js","sourceRoot":"","sources":["../../../../../../src/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,QAAQ;AACR,4CAA4C;AAC5C,0FAA0F;AAC1F,oEAAoE;AACpE,+GAA+G;AAC/G,0CAA0C;AAE1C,qCAAkF;AAElF,qCAAyD;AACzD,uCAAoC;AAGpC,mEAAmE;AACnE,MAAM,iBAAiB,GAAG,KAAK,CAAC;AAChC,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;AAE9C,MAAa,0BAA0B;IAIrC,YAAY,aAA4B,EAAE,MAAmB;QAC3D,IAAI,CAAC,cAAc,GAAG,aAAa,CAAC;QACpC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;IAEM,KAAK,CAAC,OAAO,CAClB,WAAmB,EACnB,aAAqB,iBAAiB,EACtC,aAAqB,iBAAiB;QAEtC,IAAI,CAAC,UAAU,EAAE;YACf,UAAU,GAAG,iBAAiB,CAAC;SAChC;QAED,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,iBAAiB,EAAE,CAAC;QAErE,IAAI,cAAc,KAAK,EAAE,EAAE;YACzB,MAAM,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;YACpC,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;YACvB,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,CACtB,wEAAwE,CACzE,CAAC;YACF,MAAM,IAAI,sCAA6B,CACrC,wEAAwE,EACxE,wBAAe,CAChB,CAAC;SACH;QAED,IAAI;YACF,MAAM,MAAM,GAA2B,MAAM,iBAAO,CAAC,iBAAiB,CACpE,WAAW,EACX,IAAI,CAAC,OAAO,EACZ,EAAE,KAAK,EAAE,KAAK,EAAE,EAChB,cAAc,EACd,OAAO,EACP,UAAU,EACV,IAAI,EACJ,UAAU,EACV,yBAAyB,CAC1B,CAAC;YACF,IAAI,MAAM,CAAC,IAAI,KAAK,CAAC,EAAE;gBACrB,MAAM,IAAI,KAAK,CACb,kBAAkB,cAAc,6BAA6B,MAAM,CAAC,SAAS,WAAW,MAAM,CAAC,wBAAwB,EAAE,CAC1H,CAAC;aACH;SACF;QAAC,OAAO,KAAK,EAAE;YACd,MAAM,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;YACpC,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,qDAAqD,KAAK,GAAG,CAAC,CAAC;YAExF,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE;gBACxC,oFAAoF;gBACpF,MAAM,IAAI,sCAA6B,CACrC,+EAA+E,EAC/E,8CAAqC,CACtC,CAAC;aACH;YACD,MAAM,IAAI,sCAA6B,CACrC,qDAAqD,KAAK,GAAG,EAC7D,wBAAe,CAChB,CAAC;SACH;gBAAS;YACR,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;SACxB;IACH,CAAC;CACF;AApED,gEAoEC"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { DepsCheckerEvent } from "./common";
|
|
2
|
-
export interface IDepsChecker {
|
|
3
|
-
isEnabled(): Promise<boolean>;
|
|
4
|
-
isInstalled(): Promise<boolean>;
|
|
5
|
-
install(): Promise<void>;
|
|
6
|
-
getDepsInfo(): Promise<DepsInfo>;
|
|
7
|
-
}
|
|
8
|
-
export interface IDepsAdapter {
|
|
9
|
-
displayLearnMore: (message: string, link: string) => Promise<boolean>;
|
|
10
|
-
displayWarningMessage: (message: string, buttonText: string, action: () => Promise<boolean>) => Promise<boolean>;
|
|
11
|
-
showOutputChannel: () => void;
|
|
12
|
-
hasTeamsfxBackend(): Promise<boolean>;
|
|
13
|
-
hasTeamsfxBot(): Promise<boolean>;
|
|
14
|
-
dotnetCheckerEnabled(): Promise<boolean>;
|
|
15
|
-
funcToolCheckerEnabled(): Promise<boolean>;
|
|
16
|
-
ngrokCheckerEnabled(): Promise<boolean>;
|
|
17
|
-
nodeCheckerEnabled(): Promise<boolean>;
|
|
18
|
-
runWithProgressIndicator(callback: () => Promise<void>): Promise<void>;
|
|
19
|
-
getResourceDir(): string;
|
|
20
|
-
}
|
|
21
|
-
export interface IDepsLogger {
|
|
22
|
-
debug(message: string): Promise<boolean>;
|
|
23
|
-
info(message: string): Promise<boolean>;
|
|
24
|
-
warning(message: string): Promise<boolean>;
|
|
25
|
-
error(message: string): Promise<boolean>;
|
|
26
|
-
printDetailLog(): Promise<void>;
|
|
27
|
-
cleanup(): void;
|
|
28
|
-
}
|
|
29
|
-
export interface IDepsTelemetry {
|
|
30
|
-
sendEvent(eventName: DepsCheckerEvent, properties?: {
|
|
31
|
-
[p: string]: string;
|
|
32
|
-
}, timecost?: number): void;
|
|
33
|
-
sendEventWithDuration(eventName: DepsCheckerEvent, action: () => Promise<void>): Promise<void>;
|
|
34
|
-
sendUserErrorEvent(eventName: DepsCheckerEvent, errorMessage: string): void;
|
|
35
|
-
sendSystemErrorEvent(eventName: DepsCheckerEvent, errorMessage: string, errorStack: string): void;
|
|
36
|
-
}
|
|
37
|
-
export interface DepsInfo {
|
|
38
|
-
name: string;
|
|
39
|
-
installVersion?: string;
|
|
40
|
-
supportedVersions: string[];
|
|
41
|
-
details: Map<string, string>;
|
|
42
|
-
}
|
|
43
|
-
export declare class DepsChecker {
|
|
44
|
-
private readonly _adapter;
|
|
45
|
-
private readonly _logger;
|
|
46
|
-
private readonly _checkers;
|
|
47
|
-
constructor(logger: IDepsLogger, adapter: IDepsAdapter, checkers: Array<IDepsChecker>);
|
|
48
|
-
resolve(): Promise<boolean>;
|
|
49
|
-
private check;
|
|
50
|
-
private generateMsg;
|
|
51
|
-
private handleError;
|
|
52
|
-
static handleErrorWithDisplay(error: Error, adapter: IDepsAdapter): Promise<boolean>;
|
|
53
|
-
}
|
|
54
|
-
//# sourceMappingURL=checker.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checker.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/resource/function/utils/depsChecker/checker.ts"],"names":[],"mappings":"AAUA,OAAO,EAAsC,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAGhF,MAAM,WAAW,YAAY;IAC3B,SAAS,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAC9B,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAChC,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACzB,WAAW,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,YAAY;IAC3B,gBAAgB,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IACtE,qBAAqB,EAAE,CACrB,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,KAC3B,OAAO,CAAC,OAAO,CAAC,CAAC;IACtB,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAE9B,iBAAiB,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IACtC,aAAa,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAClC,oBAAoB,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IACzC,sBAAsB,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAC3C,mBAAmB,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IACxC,kBAAkB,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IACvC,wBAAwB,CAAC,QAAQ,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACvE,cAAc,IAAI,MAAM,C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OAAO,CAAC,QAAQ,CAAC,SAAS,CAAsB;gBAEpC,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC;IAOxE,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC;YA2C1B,KAAK;YAoBL,WAAW;YAYX,WAAW;WAIL,sBAAsB,CACxC,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,YAAY,GACpB,OAAO,CAAC,OAAO,CAAC;CAcpB"}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright (c) Microsoft Corporation.
|
|
3
|
-
// Licensed under the MIT license.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.DepsChecker = void 0;
|
|
6
|
-
// NOTE:
|
|
7
|
-
// DO NOT EDIT this file in function plugin.
|
|
8
|
-
// The source of truth of this file is in packages/vscode-extension/src/debug/depsChecker.
|
|
9
|
-
// If you need to edit this file, please edit it in the above folder
|
|
10
|
-
// and run the scripts (tools/depsChecker/copyfiles.sh or tools/depsChecker/copyfiles.ps1 according to your OS)
|
|
11
|
-
// to copy you changes to function plugin.
|
|
12
|
-
const common_1 = require("./common");
|
|
13
|
-
const errors_1 = require("./errors");
|
|
14
|
-
class DepsChecker {
|
|
15
|
-
constructor(logger, adapter, checkers) {
|
|
16
|
-
this._logger = logger;
|
|
17
|
-
this._adapter = adapter;
|
|
18
|
-
this._checkers = checkers;
|
|
19
|
-
}
|
|
20
|
-
// check & install
|
|
21
|
-
async resolve() {
|
|
22
|
-
const shouldContinue = true;
|
|
23
|
-
const validCheckers = await this.check();
|
|
24
|
-
// stop the process when validChecker is null.
|
|
25
|
-
if (validCheckers === null) {
|
|
26
|
-
return !shouldContinue;
|
|
27
|
-
}
|
|
28
|
-
// go to next step when no need to check.
|
|
29
|
-
if (validCheckers.length === 0) {
|
|
30
|
-
this._logger.cleanup();
|
|
31
|
-
return shouldContinue;
|
|
32
|
-
}
|
|
33
|
-
if (common_1.isLinux()) {
|
|
34
|
-
const confirmMessage = await this.generateMsg(validCheckers);
|
|
35
|
-
this._logger.cleanup();
|
|
36
|
-
return await this._adapter.displayLearnMore(confirmMessage, common_1.defaultHelpLink);
|
|
37
|
-
}
|
|
38
|
-
this._adapter.showOutputChannel();
|
|
39
|
-
for (const checker of validCheckers) {
|
|
40
|
-
try {
|
|
41
|
-
await checker.install();
|
|
42
|
-
}
|
|
43
|
-
catch (error) {
|
|
44
|
-
await this._logger.printDetailLog();
|
|
45
|
-
this._logger.cleanup();
|
|
46
|
-
await this._logger.error(`Failed to install '${checker.constructor.name}', error = '${error}'`);
|
|
47
|
-
const continueNext = await this.handleError(error);
|
|
48
|
-
if (!continueNext) {
|
|
49
|
-
return !shouldContinue;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
this._logger.cleanup();
|
|
54
|
-
return shouldContinue;
|
|
55
|
-
}
|
|
56
|
-
async check() {
|
|
57
|
-
const validCheckers = new Array();
|
|
58
|
-
for (const checker of this._checkers) {
|
|
59
|
-
try {
|
|
60
|
-
if ((await checker.isEnabled()) && !(await checker.isInstalled())) {
|
|
61
|
-
validCheckers.push(checker);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
catch (error) {
|
|
65
|
-
await this._logger.debug(`Failed to check '${checker.constructor.name}', error = '${error}'`);
|
|
66
|
-
const continueNext = await this.handleError(error);
|
|
67
|
-
if (!continueNext) {
|
|
68
|
-
return null;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
return validCheckers;
|
|
73
|
-
}
|
|
74
|
-
async generateMsg(checkers) {
|
|
75
|
-
const supportedPackages = [];
|
|
76
|
-
for (const checker of checkers) {
|
|
77
|
-
const info = await checker.getDepsInfo();
|
|
78
|
-
const supportedVersions = info.supportedVersions.map((version) => "v" + version).join(" or ");
|
|
79
|
-
const supportedPackage = `${info.name} (${supportedVersions})`;
|
|
80
|
-
supportedPackages.push(supportedPackage);
|
|
81
|
-
}
|
|
82
|
-
const supportedMessage = supportedPackages.join(" and ");
|
|
83
|
-
return common_1.Messages.linuxDepsNotFound.split("@SupportedPackages").join(supportedMessage);
|
|
84
|
-
}
|
|
85
|
-
async handleError(error) {
|
|
86
|
-
return DepsChecker.handleErrorWithDisplay(error, this._adapter);
|
|
87
|
-
}
|
|
88
|
-
static async handleErrorWithDisplay(error, adapter) {
|
|
89
|
-
if (error instanceof errors_1.NodeNotSupportedError) {
|
|
90
|
-
return await adapter.displayLearnMore(error.message, error.helpLink);
|
|
91
|
-
}
|
|
92
|
-
else if (error instanceof errors_1.NodeNotFoundError) {
|
|
93
|
-
return await adapter.displayLearnMore(error.message, error.helpLink);
|
|
94
|
-
}
|
|
95
|
-
else if (error instanceof errors_1.DepsCheckerError) {
|
|
96
|
-
return await adapter.displayLearnMore(error.message, error.helpLink);
|
|
97
|
-
}
|
|
98
|
-
else {
|
|
99
|
-
return await adapter.displayLearnMore(common_1.Messages.defaultErrorMessage, common_1.defaultHelpLink);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
exports.DepsChecker = DepsChecker;
|
|
104
|
-
//# sourceMappingURL=checker.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checker.js","sourceRoot":"","sources":["../../../../../../src/plugins/resource/function/utils/depsChecker/checker.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,QAAQ;AACR,4CAA4C;AAC5C,0FAA0F;AAC1F,oEAAoE;AACpE,+GAA+G;AAC/G,0CAA0C;AAE1C,qCAAgF;AAChF,qCAAsF;AAwDtF,MAAa,WAAW;IAKtB,YAAY,MAAmB,EAAE,OAAqB,EAAE,QAA6B;QACnF,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,SAAS,GAAG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AO,iBAAQ,CAAC,iBAAiB,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IACvF,CAAC;IAEO,KAAK,CAAC,WAAW,CAAC,KAAY;QACpC,OAAO,WAAW,CAAC,sBAAsB,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IAClE,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,sBAAsB,CACxC,KAAY,EACZ,OAAqB;QAErB,IAAI,KAAK,YAAY,8BAAqB,EAAE;YAC1C,OAAO,MAAM,OAAO,CAAC,gBAAgB,CACnC,KAAK,CAAC,OAAO,EACZ,KAA+B,CAAC,QAAQ,CAC1C,CAAC;SACH;aAAM,IAAI,KAAK,YAAY,0BAAiB,EAAE;YAC7C,OAAO,MAAM,OAAO,CAAC,gBAAgB,CAAC,KAAK,CAAC,OAAO,EAAG,KAA2B,CAAC,QAAQ,CAAC,CAAC;SAC7F;aAAM,IAAI,KAAK,YAAY,yBAAgB,EAAE;YAC5C,OAAO,MAAM,OAAO,CAAC,gBAAgB,CAAC,KAAK,CAAC,OAAO,EAAG,KAA0B,CAAC,QAAQ,CAAC,CAAC;SAC5F;aAAM;YACL,OAAO,MAAM,OAAO,CAAC,gBAAgB,CAAC,iBAAQ,CAAC,mBAAmB,EAAE,wBAAe,CAAC,CAAC;SACtF;IACH,CAAC;CACF;AA5GD,kCA4GC"}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
export declare function isWindows(): boolean;
|
|
2
|
-
export declare function isMacOS(): boolean;
|
|
3
|
-
export declare function isLinux(): boolean;
|
|
4
|
-
export declare function isArm64(): boolean;
|
|
5
|
-
export declare const defaultHelpLink = "https://aka.ms/teamsfx-envchecker-help";
|
|
6
|
-
export declare const nodeNotFoundHelpLink: string;
|
|
7
|
-
export declare const nodeNotSupportedForAzureHelpLink: string;
|
|
8
|
-
export declare const nodeNotSupportedForFunctionsHelpLink: string;
|
|
9
|
-
export declare const nodeNotSupportedForSPFxHelpLink: string;
|
|
10
|
-
export declare const dotnetExplanationHelpLink: string;
|
|
11
|
-
export declare const dotnetFailToInstallHelpLink: string;
|
|
12
|
-
export declare const dotnetManualInstallHelpLink: string;
|
|
13
|
-
export declare const dotnetNotSupportTargetVersionHelpLink: string;
|
|
14
|
-
export declare const ngrokInstallHelpLink: string;
|
|
15
|
-
export declare const Messages: {
|
|
16
|
-
learnMoreButtonText: string;
|
|
17
|
-
defaultErrorMessage: string;
|
|
18
|
-
startInstallFunctionCoreTool: string;
|
|
19
|
-
finishInstallFunctionCoreTool: string;
|
|
20
|
-
needReplaceWithFuncCoreToolV3: string;
|
|
21
|
-
needInstallFuncCoreTool: string;
|
|
22
|
-
failToInstallFuncCoreTool: string;
|
|
23
|
-
failToValidateFuncCoreTool: string;
|
|
24
|
-
startInstallNgrok: string;
|
|
25
|
-
finishInstallNgrok: string;
|
|
26
|
-
needInstallNgrok: string;
|
|
27
|
-
failToInstallNgrok: string;
|
|
28
|
-
failToValidateNgrok: string;
|
|
29
|
-
downloadDotnet: string;
|
|
30
|
-
finishInstallDotnet: string;
|
|
31
|
-
useGlobalDotnet: string;
|
|
32
|
-
dotnetInstallStderr: string;
|
|
33
|
-
dotnetInstallErrorCode: string;
|
|
34
|
-
failToInstallDotnet: string;
|
|
35
|
-
NodeNotFound: string;
|
|
36
|
-
NodeNotSupported: string;
|
|
37
|
-
dotnetNotFound: string;
|
|
38
|
-
depsNotFound: string;
|
|
39
|
-
linuxDepsNotFound: string;
|
|
40
|
-
linuxDepsNotFoundHelpLinkMessage: string;
|
|
41
|
-
};
|
|
42
|
-
export declare enum DepsCheckerEvent {
|
|
43
|
-
funcCheckSkipped = "func-check-skipped",
|
|
44
|
-
funcAlreadyInstalled = "func-already-installed",
|
|
45
|
-
funcInstallCompleted = "func-install-completed",
|
|
46
|
-
funcInstallError = "func-install-error",
|
|
47
|
-
funcInstallScriptCompleted = "func-install-script-completed",
|
|
48
|
-
funcInstallScriptError = "func-install-script-error",
|
|
49
|
-
funcValidationError = "func-validation-error",
|
|
50
|
-
dotnetCheckSkipped = "dotnet-check-skipped",
|
|
51
|
-
dotnetAlreadyInstalled = "dotnet-already-installed",
|
|
52
|
-
dotnetInstallCompleted = "dotnet-install-completed",
|
|
53
|
-
dotnetInstallError = "dotnet-install-error",
|
|
54
|
-
dotnetInstallScriptCompleted = "dotnet-install-script-completed",
|
|
55
|
-
dotnetInstallScriptError = "dotnet-install-script-error",
|
|
56
|
-
dotnetValidationError = "dotnet-validation-error",
|
|
57
|
-
dotnetSearchDotnetSdks = "dotnet-search-dotnet-sdks",
|
|
58
|
-
clickLearnMore = "env-checker-click-learn-more",
|
|
59
|
-
clickCancel = "env-checker-click-cancel",
|
|
60
|
-
ngrokInstallCompleted = "ngrok-install-completed",
|
|
61
|
-
ngrokInstallError = "ngrok-install-error",
|
|
62
|
-
ngrokInstallScriptCompleted = "ngrok-install-script-completed",
|
|
63
|
-
ngrokInstallScriptError = "ngrok-install-script-error",
|
|
64
|
-
ngrokValidationError = "ngrok-validation-error",
|
|
65
|
-
nodeNotFound = "node-not-found",
|
|
66
|
-
nodeNotSupportedForAzure = "node-not-supported-for-azure",
|
|
67
|
-
nodeNotSupportedForSPFx = "node-not-supported-for-spfx",
|
|
68
|
-
npmNotFound = "npm-not-found",
|
|
69
|
-
npmAlreadyInstalled = "npm-already-installed"
|
|
70
|
-
}
|
|
71
|
-
export declare enum TelemtryMessages {
|
|
72
|
-
failedToInstallFunc = "failed to install Func core tools.",
|
|
73
|
-
failedToValidateFunc = "failed to validate func.",
|
|
74
|
-
NPMNotFound = "npm is not found.",
|
|
75
|
-
failedToExecDotnetScript = "failed to exec dotnet script.",
|
|
76
|
-
failedToValidateDotnet = "failed to validate dotnet.",
|
|
77
|
-
failedToSearchDotnetSdks = "failed to search dotnet sdks.",
|
|
78
|
-
failedToInstallNgrok = "failed to install ngrok.",
|
|
79
|
-
failedToValidateNgrok = "failed to validate ngrok."
|
|
80
|
-
}
|
|
81
|
-
export declare enum TelemetryMessurement {
|
|
82
|
-
completionTime = "completion-time"
|
|
83
|
-
}
|
|
84
|
-
//# sourceMappingURL=common.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/resource/function/utils/depsChecker/common.ts"],"names":[],"mappings":"AAaA,wBAAgB,SAAS,IAAI,OAAO,CAEnC;AAED,wBAAgB,OAAO,IAAI,OAAO,CAEjC;AAED,wBAAgB,OAAO,IAAI,OAAO,CAEjC;AAED,wBAAgB,OAAO,IAAI,OAAO,CAEjC;AAGD,eAAO,MAAM,eAAe,2CAA2C,CAAC;AAExE,eAAO,MAAM,oBAAoB,QAAoC,CAAC;AACtE,eAAO,MAAM,gCAAgC,QAAqD,CAAC;AACnG,eAAO,MAAM,oCAAoC,QAAuD,CAAC;AACzG,eAAO,MAAM,+BAA+B,QAAoD,CAAC;AAEjG,eAAO,MAAM,yBAAyB,QAA+B,CAAC;AACtE,eAAO,MAAM,2BAA2B,QAA2C,CAAC;AACpF,eAAO,MAAM,2BAA2B,QAAsC,CAAC;AAC/E,eAAO,MAAM,qCAAqC,QAAqD,CAAC;AAExG,eAAO,MAAM,oBAAoB,QAA0C,CAAC;AAE5E,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;CAsDpB,CAAC;AAEF,oBAAY,gBAAgB;IAG1B,gBAAgB,uBAAuB;IACvC,oBAAoB,2BAA2B;IAC/C,oBAAoB,2BAA2B;IAC/C,gBAAgB,uBAAuB;IACvC,0BAA0B,kCAAkC;IAC5D,sBAAsB,8BAA8B;IACpD,mBAAmB,0BAA0B;IAE7C,kBAAkB,yBAAyB;IAC3C,sBAAsB,6BAA6B;IACnD,sBAAsB,6BAA6B;IACnD,kBAAkB,yBAAyB;IAC3C,4BAA4B,oCAAoC;IAChE,wBAAwB,gCAAgC;IACxD,qBAAqB,4BAA4B;IACjD,sBAAsB,8BAA8B;IAEpD,cAAc,iCAAiC;IAC/C,WAAW,6BAA6B;IAExC,qBAAqB,4BAA4B;IACjD,iBAAiB,wBAAwB;IACzC,2BAA2B,mCAAmC;IAC9D,uBAAuB,+BAA+B;IACtD,oBAAoB,2BAA2B;IAE/C,YAAY,mBAAmB;IAC/B,wBAAwB,iCAAiC;IACzD,uBAAuB,gCAAgC;IAEvD,WAAW,kBAAkB;IAC7B,mBAAmB,0BAA0B;CAC9C;AAED,oBAAY,gBAAgB;IAC1B,mBAAmB,uCAAuC;IAC1D,oBAAoB,6BAA6B;IACjD,WAAW,sBAAsB;IACjC,wBAAwB,kCAAkC;IAC1D,sBAAsB,+BAA+B;IACrD,wBAAwB,kCAAkC;IAC1D,oBAAoB,6BAA6B;IACjD,qBAAqB,8BAA8B;CACpD;AAED,oBAAY,oBAAoB;IAC9B,cAAc,oBAAoB;CACnC"}
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
3
|
-
// Copyright (c) Microsoft Corporation.
|
|
4
|
-
// Licensed under the MIT license.
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.TelemetryMessurement = exports.TelemtryMessages = exports.DepsCheckerEvent = exports.Messages = exports.ngrokInstallHelpLink = exports.dotnetNotSupportTargetVersionHelpLink = exports.dotnetManualInstallHelpLink = exports.dotnetFailToInstallHelpLink = exports.dotnetExplanationHelpLink = exports.nodeNotSupportedForSPFxHelpLink = exports.nodeNotSupportedForFunctionsHelpLink = exports.nodeNotSupportedForAzureHelpLink = exports.nodeNotFoundHelpLink = exports.defaultHelpLink = exports.isArm64 = exports.isLinux = exports.isMacOS = exports.isWindows = void 0;
|
|
7
|
-
const tslib_1 = require("tslib");
|
|
8
|
-
// NOTE:
|
|
9
|
-
// DO NOT EDIT this file in function plugin.
|
|
10
|
-
// The source of truth of this file is in packages/vscode-extension/src/debug/depsChecker.
|
|
11
|
-
// If you need to edit this file, please edit it in the above folder
|
|
12
|
-
// and run the scripts (tools/depsChecker/copyfiles.sh or tools/depsChecker/copyfiles.ps1 according to your OS)
|
|
13
|
-
// to copy you changes to function plugin.
|
|
14
|
-
const os = tslib_1.__importStar(require("os"));
|
|
15
|
-
function isWindows() {
|
|
16
|
-
return os.type() === "Windows_NT";
|
|
17
|
-
}
|
|
18
|
-
exports.isWindows = isWindows;
|
|
19
|
-
function isMacOS() {
|
|
20
|
-
return os.type() === "Darwin";
|
|
21
|
-
}
|
|
22
|
-
exports.isMacOS = isMacOS;
|
|
23
|
-
function isLinux() {
|
|
24
|
-
return os.type() === "Linux";
|
|
25
|
-
}
|
|
26
|
-
exports.isLinux = isLinux;
|
|
27
|
-
function isArm64() {
|
|
28
|
-
return os.arch() === "arm64";
|
|
29
|
-
}
|
|
30
|
-
exports.isArm64 = isArm64;
|
|
31
|
-
// help links
|
|
32
|
-
exports.defaultHelpLink = "https://aka.ms/teamsfx-envchecker-help";
|
|
33
|
-
exports.nodeNotFoundHelpLink = `${exports.defaultHelpLink}#nodenotfound`;
|
|
34
|
-
exports.nodeNotSupportedForAzureHelpLink = `${exports.defaultHelpLink}#nodenotsupportedazure-hosting`;
|
|
35
|
-
exports.nodeNotSupportedForFunctionsHelpLink = `${exports.defaultHelpLink}#nodenotsupportedazure-functions`;
|
|
36
|
-
exports.nodeNotSupportedForSPFxHelpLink = `${exports.defaultHelpLink}#nodenotsupportedspfx-hosting`;
|
|
37
|
-
exports.dotnetExplanationHelpLink = `${exports.defaultHelpLink}#overall`;
|
|
38
|
-
exports.dotnetFailToInstallHelpLink = `${exports.defaultHelpLink}#failtoinstalldotnet`;
|
|
39
|
-
exports.dotnetManualInstallHelpLink = `${exports.defaultHelpLink}#dotnetnotfound`;
|
|
40
|
-
exports.dotnetNotSupportTargetVersionHelpLink = `${exports.defaultHelpLink}#dotnetnotsupporttargetversion`;
|
|
41
|
-
exports.ngrokInstallHelpLink = `${exports.defaultHelpLink}#failtoinstallngrok`;
|
|
42
|
-
exports.Messages = {
|
|
43
|
-
learnMoreButtonText: "Learn more",
|
|
44
|
-
defaultErrorMessage: "Install the required dependencies manually.",
|
|
45
|
-
startInstallFunctionCoreTool: `Downloading and installing @NameVersion.`,
|
|
46
|
-
finishInstallFunctionCoreTool: `Successfully installed @NameVersion.`,
|
|
47
|
-
needReplaceWithFuncCoreToolV3: `You must update to @NameVersion to debug your local functions.`,
|
|
48
|
-
needInstallFuncCoreTool: `You must have @NameVersion installed to debug your local functions.`,
|
|
49
|
-
failToInstallFuncCoreTool: `Failed to install @NameVersion. Install @NameVersion manually.`,
|
|
50
|
-
failToValidateFuncCoreTool: `Failed to validate @NameVersion after installation.`,
|
|
51
|
-
startInstallNgrok: `Downloading and installing @NameVersion.`,
|
|
52
|
-
finishInstallNgrok: `Successfully installed @NameVersion.`,
|
|
53
|
-
needInstallNgrok: `You must have @NameVersion installed to debug your local bot.`,
|
|
54
|
-
failToInstallNgrok: `Failed to install @NameVersion. Install @NameVersion manually.`,
|
|
55
|
-
failToValidateNgrok: `Failed to validate @NameVersion after installation.`,
|
|
56
|
-
downloadDotnet: `Downloading and installing the portable version of @NameVersion, which will be installed to @InstallDir and will not affect your environment.`,
|
|
57
|
-
finishInstallDotnet: `Successfully installed @NameVersion.`,
|
|
58
|
-
useGlobalDotnet: `Using dotnet from PATH:`,
|
|
59
|
-
dotnetInstallStderr: `dotnet-install command failed without error exit code but with non-empty standard error.`,
|
|
60
|
-
dotnetInstallErrorCode: `dotnet-install command failed.`,
|
|
61
|
-
failToInstallDotnet: `Failed to install @NameVersion. Install @NameVersion manually and restart Visual Studio Code.`,
|
|
62
|
-
NodeNotFound: `Cannot find Node.js.
|
|
63
|
-
|
|
64
|
-
Teams Toolkit requires Node.js; the recommended version is v14.
|
|
65
|
-
|
|
66
|
-
Click "Learn more" to learn how to install the Node.js.
|
|
67
|
-
|
|
68
|
-
(If you just installed Node.js, restart Visual Studio Code for the change to take effect.)`,
|
|
69
|
-
NodeNotSupported: `Node.js (@CurrentVersion) is not in the supported version list (@SupportedVersions).
|
|
70
|
-
|
|
71
|
-
Click "Learn more" to learn more about the supported Node.js versions.
|
|
72
|
-
|
|
73
|
-
(If you just installed Node.js (@SupportedVersions), restart Visual Studio Code for the change to take effect.)`,
|
|
74
|
-
dotnetNotFound: `Cannot find @NameVersion. For the details why .NET SDK is needed, refer to ${exports.dotnetExplanationHelpLink}`,
|
|
75
|
-
depsNotFound: `Cannot find @SupportedPackages.
|
|
76
|
-
|
|
77
|
-
Teams Toolkit requires these dependencies.
|
|
78
|
-
|
|
79
|
-
Click "Install" to install @InstallPackages.`,
|
|
80
|
-
linuxDepsNotFound: `Cannot find @SupportedPackages.
|
|
81
|
-
|
|
82
|
-
Teams Toolkit requires these dependencies.
|
|
83
|
-
|
|
84
|
-
(If you just installed @SupportedPackages, restart Visual Studio Code for the change to take effect.)`,
|
|
85
|
-
linuxDepsNotFoundHelpLinkMessage: `Cannot find @SupportedPackages.
|
|
86
|
-
|
|
87
|
-
Teams Toolkit requires these dependencies.`,
|
|
88
|
-
};
|
|
89
|
-
var DepsCheckerEvent;
|
|
90
|
-
(function (DepsCheckerEvent) {
|
|
91
|
-
// since FuncToolChecker is disabled and azure functions core tools will be installed as devDependencies now,
|
|
92
|
-
// below events related to FuncToolChecker won't be displayed to end user.
|
|
93
|
-
DepsCheckerEvent["funcCheckSkipped"] = "func-check-skipped";
|
|
94
|
-
DepsCheckerEvent["funcAlreadyInstalled"] = "func-already-installed";
|
|
95
|
-
DepsCheckerEvent["funcInstallCompleted"] = "func-install-completed";
|
|
96
|
-
DepsCheckerEvent["funcInstallError"] = "func-install-error";
|
|
97
|
-
DepsCheckerEvent["funcInstallScriptCompleted"] = "func-install-script-completed";
|
|
98
|
-
DepsCheckerEvent["funcInstallScriptError"] = "func-install-script-error";
|
|
99
|
-
DepsCheckerEvent["funcValidationError"] = "func-validation-error";
|
|
100
|
-
DepsCheckerEvent["dotnetCheckSkipped"] = "dotnet-check-skipped";
|
|
101
|
-
DepsCheckerEvent["dotnetAlreadyInstalled"] = "dotnet-already-installed";
|
|
102
|
-
DepsCheckerEvent["dotnetInstallCompleted"] = "dotnet-install-completed";
|
|
103
|
-
DepsCheckerEvent["dotnetInstallError"] = "dotnet-install-error";
|
|
104
|
-
DepsCheckerEvent["dotnetInstallScriptCompleted"] = "dotnet-install-script-completed";
|
|
105
|
-
DepsCheckerEvent["dotnetInstallScriptError"] = "dotnet-install-script-error";
|
|
106
|
-
DepsCheckerEvent["dotnetValidationError"] = "dotnet-validation-error";
|
|
107
|
-
DepsCheckerEvent["dotnetSearchDotnetSdks"] = "dotnet-search-dotnet-sdks";
|
|
108
|
-
DepsCheckerEvent["clickLearnMore"] = "env-checker-click-learn-more";
|
|
109
|
-
DepsCheckerEvent["clickCancel"] = "env-checker-click-cancel";
|
|
110
|
-
DepsCheckerEvent["ngrokInstallCompleted"] = "ngrok-install-completed";
|
|
111
|
-
DepsCheckerEvent["ngrokInstallError"] = "ngrok-install-error";
|
|
112
|
-
DepsCheckerEvent["ngrokInstallScriptCompleted"] = "ngrok-install-script-completed";
|
|
113
|
-
DepsCheckerEvent["ngrokInstallScriptError"] = "ngrok-install-script-error";
|
|
114
|
-
DepsCheckerEvent["ngrokValidationError"] = "ngrok-validation-error";
|
|
115
|
-
DepsCheckerEvent["nodeNotFound"] = "node-not-found";
|
|
116
|
-
DepsCheckerEvent["nodeNotSupportedForAzure"] = "node-not-supported-for-azure";
|
|
117
|
-
DepsCheckerEvent["nodeNotSupportedForSPFx"] = "node-not-supported-for-spfx";
|
|
118
|
-
DepsCheckerEvent["npmNotFound"] = "npm-not-found";
|
|
119
|
-
DepsCheckerEvent["npmAlreadyInstalled"] = "npm-already-installed";
|
|
120
|
-
})(DepsCheckerEvent = exports.DepsCheckerEvent || (exports.DepsCheckerEvent = {}));
|
|
121
|
-
var TelemtryMessages;
|
|
122
|
-
(function (TelemtryMessages) {
|
|
123
|
-
TelemtryMessages["failedToInstallFunc"] = "failed to install Func core tools.";
|
|
124
|
-
TelemtryMessages["failedToValidateFunc"] = "failed to validate func.";
|
|
125
|
-
TelemtryMessages["NPMNotFound"] = "npm is not found.";
|
|
126
|
-
TelemtryMessages["failedToExecDotnetScript"] = "failed to exec dotnet script.";
|
|
127
|
-
TelemtryMessages["failedToValidateDotnet"] = "failed to validate dotnet.";
|
|
128
|
-
TelemtryMessages["failedToSearchDotnetSdks"] = "failed to search dotnet sdks.";
|
|
129
|
-
TelemtryMessages["failedToInstallNgrok"] = "failed to install ngrok.";
|
|
130
|
-
TelemtryMessages["failedToValidateNgrok"] = "failed to validate ngrok.";
|
|
131
|
-
})(TelemtryMessages = exports.TelemtryMessages || (exports.TelemtryMessages = {}));
|
|
132
|
-
var TelemetryMessurement;
|
|
133
|
-
(function (TelemetryMessurement) {
|
|
134
|
-
TelemetryMessurement["completionTime"] = "completion-time";
|
|
135
|
-
})(TelemetryMessurement = exports.TelemetryMessurement || (exports.TelemetryMessurement = {}));
|
|
136
|
-
//# sourceMappingURL=common.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../../src/plugins/resource/function/utils/depsChecker/common.ts"],"names":[],"mappings":";AAAA,uDAAuD;AACvD,uCAAuC;AACvC,kCAAkC;;;;AAElC,QAAQ;AACR,4CAA4C;AAC5C,0FAA0F;AAC1F,oEAAoE;AACpE,+GAA+G;AAC/G,0CAA0C;AAE1C,+CAAyB;AAEzB,SAAgB,SAAS;IACvB,OAAO,EAAE,CAAC,IAAI,EAAE,KAAK,YAAY,CAAC;AACpC,CAAC;AAFD,8BAEC;AAED,SAAgB,OAAO;IACrB,OAAO,EAAE,CAAC,IAAI,EAAE,KAAK,QAAQ,CAAC;AAChC,CAAC;AAFD,0BAEC;AAED,SAAgB,OAAO;IACrB,OAAO,EAAE,CAAC,IAAI,EAAE,KAAK,OAAO,CAAC;AAC/B,CAAC;AAFD,0BAEC;AAED,SAAgB,OAAO;IACrB,OAAO,E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B,GAApB,4BAAoB,KAApB,4BAAoB,QAE/B"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import * as cp from "child_process";
|
|
3
|
-
import { IDepsLogger } from "./checker";
|
|
4
|
-
export declare namespace cpUtils {
|
|
5
|
-
function executeCommand(workingDirectory: string | undefined, logger: IDepsLogger | undefined, options: cp.SpawnOptions | undefined, command: string, ...args: string[]): Promise<string>;
|
|
6
|
-
function tryExecuteCommand(workingDirectory: string | undefined, logger: IDepsLogger | undefined, additionalOptions: cp.SpawnOptions | undefined, command: string, ...args: string[]): Promise<ICommandResult>;
|
|
7
|
-
interface ICommandResult {
|
|
8
|
-
code: number;
|
|
9
|
-
cmdOutput: string;
|
|
10
|
-
cmdOutputIncludingStderr: string;
|
|
11
|
-
formattedArgs: string;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Ensures spaces and special characters (most notably $) are preserved
|
|
15
|
-
*/
|
|
16
|
-
function wrapArgInQuotes(arg: string): string;
|
|
17
|
-
/**
|
|
18
|
-
* timeout with millisecond
|
|
19
|
-
*/
|
|
20
|
-
function withTimeout(millis: number, promise: Promise<any>, msg: string): Promise<any>;
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=cpUtils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cpUtils.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/resource/function/utils/depsChecker/cpUtils.ts"],"names":[],"mappings":";AAWA,OAAO,KAAK,EAAE,MAAM,eAAe,CAAC;AAEpC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC,yBAAiB,OAAO,CAAC;IACvB,SAAsB,cAAc,CAClC,gBAAgB,EAAE,MAAM,GAAG,SAAS,EACpC,MAAM,EAAE,WAAW,GAAG,SAAS,EAC/B,OAAO,EAAE,EAAE,CAAC,YAAY,GAAG,SAAS,EACpC,OAAO,EAAE,MAAM,EACf,GAAG,IAAI,EAAE,MAAM,EAAE,GAChB,OAAO,CAAC,MAAM,CAAC,CAkBjB;IAED,SAAsB,iBAAiB,CACrC,gBAAgB,EAAE,MAAM,GAAG,SAAS,EACpC,MAAM,EAAE,WAAW,GAAG,SAAS,EAC/B,iBAAiB,EAAE,EAAE,CAAC,YAAY,GAAG,SAAS,EAC9C,OAAO,EAAE,MAAM,EACf,GAAG,IAAI,EAAE,MAAM,EAAE,GAChB,OAAO,CAAC,cAAc,CAAC,CAwEzB;IAED,UAAiB,cAAc;QAC7B,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;QAClB,wBAAwB,EAAE,MAAM,CAAC;QACjC,aAAa,EAAE,MAAM,CAAC;KACvB;IAGD;;OAEG;IACH,SAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEnD;IAED;;OAEG;IACH,SAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAO5F;CACF"}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* eslint-disable @typescript-eslint/no-namespace */
|
|
3
|
-
// Copyright (c) Microsoft Corporation.
|
|
4
|
-
// Licensed under the MIT license.
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.cpUtils = void 0;
|
|
7
|
-
const tslib_1 = require("tslib");
|
|
8
|
-
// NOTE:
|
|
9
|
-
// DO NOT EDIT this file in function plugin.
|
|
10
|
-
// The source of truth of this file is in packages/vscode-extension/src/debug/depsChecker.
|
|
11
|
-
// If you need to edit this file, please edit it in the above folder
|
|
12
|
-
// and run the scripts (tools/depsChecker/copyfiles.sh or tools/depsChecker/copyfiles.ps1 according to your OS)
|
|
13
|
-
// to copy you changes to function plugin.
|
|
14
|
-
const cp = tslib_1.__importStar(require("child_process"));
|
|
15
|
-
const os = tslib_1.__importStar(require("os"));
|
|
16
|
-
var cpUtils;
|
|
17
|
-
(function (cpUtils) {
|
|
18
|
-
async function executeCommand(workingDirectory, logger, options, command, ...args) {
|
|
19
|
-
const result = await tryExecuteCommand(workingDirectory, logger, options, command, ...args);
|
|
20
|
-
if (result.code !== 0) {
|
|
21
|
-
const errorMessage = `Failed to run command: "${command} ${result.formattedArgs}", code: "${result.code}",
|
|
22
|
-
output: "${result.cmdOutput}", error: "${result.cmdOutputIncludingStderr}"`;
|
|
23
|
-
await (logger === null || logger === void 0 ? void 0 : logger.debug(errorMessage));
|
|
24
|
-
throw new Error(errorMessage);
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
await (logger === null || logger === void 0 ? void 0 : logger.debug(`Finished running command: "${command} ${result.formattedArgs}".`));
|
|
28
|
-
}
|
|
29
|
-
return result.cmdOutput;
|
|
30
|
-
}
|
|
31
|
-
cpUtils.executeCommand = executeCommand;
|
|
32
|
-
async function tryExecuteCommand(workingDirectory, logger, additionalOptions, command, ...args) {
|
|
33
|
-
return await new Promise((resolve, reject) => {
|
|
34
|
-
var _a, _b;
|
|
35
|
-
let cmdOutput = "";
|
|
36
|
-
let cmdOutputIncludingStderr = "";
|
|
37
|
-
const formattedArgs = args.join(" ");
|
|
38
|
-
workingDirectory = workingDirectory || os.tmpdir();
|
|
39
|
-
const options = {
|
|
40
|
-
cwd: workingDirectory,
|
|
41
|
-
shell: true,
|
|
42
|
-
};
|
|
43
|
-
Object.assign(options, additionalOptions);
|
|
44
|
-
const childProc = cp.spawn(command, args, options);
|
|
45
|
-
let timer;
|
|
46
|
-
if (options.timeout && options.timeout > 0) {
|
|
47
|
-
// timeout only exists for exec not spawn
|
|
48
|
-
timer = setTimeout(() => {
|
|
49
|
-
childProc.kill();
|
|
50
|
-
logger === null || logger === void 0 ? void 0 : logger.debug(`Stop exec due to timeout, command: "${command} ${formattedArgs}", options = '${JSON.stringify(options)}'`);
|
|
51
|
-
reject(new Error(`Exec command: "${command} ${formattedArgs}" timeout, ${options.timeout} ms`));
|
|
52
|
-
}, options.timeout);
|
|
53
|
-
}
|
|
54
|
-
logger === null || logger === void 0 ? void 0 : logger.debug(`Running command: "${command} ${formattedArgs}", options = '${JSON.stringify(options)}'`);
|
|
55
|
-
(_a = childProc.stdout) === null || _a === void 0 ? void 0 : _a.on("data", (data) => {
|
|
56
|
-
data = data.toString();
|
|
57
|
-
cmdOutput = cmdOutput.concat(data);
|
|
58
|
-
cmdOutputIncludingStderr = cmdOutputIncludingStderr.concat(data);
|
|
59
|
-
});
|
|
60
|
-
(_b = childProc.stderr) === null || _b === void 0 ? void 0 : _b.on("data", (data) => {
|
|
61
|
-
data = data.toString();
|
|
62
|
-
cmdOutputIncludingStderr = cmdOutputIncludingStderr.concat(data);
|
|
63
|
-
});
|
|
64
|
-
childProc.on("error", (error) => {
|
|
65
|
-
logger === null || logger === void 0 ? void 0 : logger.debug(`Failed to run command '${command} ${formattedArgs}': cmdOutputIncludingStderr: '${cmdOutputIncludingStderr}', error: ${error}`);
|
|
66
|
-
if (timer) {
|
|
67
|
-
clearTimeout(timer);
|
|
68
|
-
}
|
|
69
|
-
reject(error);
|
|
70
|
-
});
|
|
71
|
-
childProc.on("close", (code) => {
|
|
72
|
-
logger === null || logger === void 0 ? void 0 : logger.debug(`Command finished with outputs, cmdOutputIncludingStderr: '${cmdOutputIncludingStderr}'`);
|
|
73
|
-
if (timer) {
|
|
74
|
-
clearTimeout(timer);
|
|
75
|
-
}
|
|
76
|
-
resolve({
|
|
77
|
-
code,
|
|
78
|
-
cmdOutput,
|
|
79
|
-
cmdOutputIncludingStderr,
|
|
80
|
-
formattedArgs,
|
|
81
|
-
});
|
|
82
|
-
});
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
cpUtils.tryExecuteCommand = tryExecuteCommand;
|
|
86
|
-
const quotationMark = process.platform === "win32" ? '"' : "'";
|
|
87
|
-
/**
|
|
88
|
-
* Ensures spaces and special characters (most notably $) are preserved
|
|
89
|
-
*/
|
|
90
|
-
function wrapArgInQuotes(arg) {
|
|
91
|
-
return quotationMark + arg + quotationMark;
|
|
92
|
-
}
|
|
93
|
-
cpUtils.wrapArgInQuotes = wrapArgInQuotes;
|
|
94
|
-
/**
|
|
95
|
-
* timeout with millisecond
|
|
96
|
-
*/
|
|
97
|
-
function withTimeout(millis, promise, msg) {
|
|
98
|
-
return Promise.race([
|
|
99
|
-
promise,
|
|
100
|
-
new Promise((resolve, reject) => setTimeout(() => reject(new Error(`${msg}, ${millis} ms`)), millis)),
|
|
101
|
-
]);
|
|
102
|
-
}
|
|
103
|
-
cpUtils.withTimeout = withTimeout;
|
|
104
|
-
})(cpUtils = exports.cpUtils || (exports.cpUtils = {}));
|
|
105
|
-
//# sourceMappingURL=cpUtils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cpUtils.js","sourceRoot":"","sources":["../../../../../../src/plugins/resource/function/utils/depsChecker/cpUtils.ts"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,uCAAuC;AACvC,kCAAkC;;;;AAElC,QAAQ;AACR,4CAA4C;AAC5C,0FAA0F;AAC1F,oEAAoE;AACpE,+GAA+G;AAC/G,0CAA0C;AAE1C,0DAAoC;AACpC,+CAAyB;AAGzB,IAAiB,OAAO,CAqIvB;AArID,WAAiB,OAAO;IACf,KAAK,UAAU,cAAc,CAClC,gBAAoC,EACpC,MAA+B,EAC/B,OAAoC,EACpC,OAAe,EACf,GAAG,IAAc;QAEjB,MAAM,MAAM,GAAmB,MAAM,iBAAiB,CACpD,gBAAgB,EAChB,MAAM,EACN,OAAO,EACP,OAAO,EACP,GAAG,IAAI,CACR,CAAC;QACF,IAAI,MAAM,CAAC,IAAI,KAAK,CAAC,EAAE;YACrB,MAAM,YAAY,GAAG,2BAA2B,OAAO,IAAI,MAAM,CAAC,aAAa,aAAa,MAAM,CAAC,IAAI;uCACtE,MAAM,CAAC,SAAS,cAAc,MAAM,CAAC,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