@microsoft/teamsfx-core 2.0.4-alpha.dc097d3df.0 → 2.0.4-alpha.e432bab97.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/deps-checker/checkerFactory.d.ts +1 -2
- package/build/common/deps-checker/checkerFactory.d.ts.map +1 -1
- package/build/common/deps-checker/checkerFactory.js +2 -2
- package/build/common/deps-checker/checkerFactory.js.map +1 -1
- package/build/common/deps-checker/depsLogger.d.ts +14 -14
- package/build/common/deps-checker/depsLogger.d.ts.map +1 -1
- package/build/common/deps-checker/depsLogger.js +7 -21
- package/build/common/deps-checker/depsLogger.js.map +1 -1
- package/build/common/deps-checker/internal/dotnetChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/dotnetChecker.js +42 -37
- 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 -2
- package/build/common/deps-checker/internal/funcToolChecker.js.map +1 -1
- package/build/common/deps-checker/internal/nodeChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/nodeChecker.js +8 -8
- package/build/common/deps-checker/internal/nodeChecker.js.map +1 -1
- package/build/common/deps-checker/internal/vxTestAppChecker.js +1 -1
- package/build/common/deps-checker/internal/vxTestAppChecker.js.map +1 -1
- package/build/common/deps-checker/util/cpUtils.d.ts +1 -1
- package/build/common/deps-checker/util/cpUtils.d.ts.map +1 -1
- package/build/common/deps-checker/util/cpUtils.js +5 -5
- package/build/common/deps-checker/util/cpUtils.js.map +1 -1
- package/build/common/deps-checker/util/fileHelper.d.ts.map +1 -1
- package/build/common/deps-checker/util/fileHelper.js +2 -0
- package/build/common/deps-checker/util/fileHelper.js.map +1 -1
- package/build/common/deps-checker/util/progressIndicator.js +2 -2
- package/build/common/deps-checker/util/progressIndicator.js.map +1 -1
- package/build/common/featureFlags.d.ts +1 -0
- package/build/common/featureFlags.d.ts.map +1 -1
- package/build/common/featureFlags.js +7 -2
- package/build/common/featureFlags.js.map +1 -1
- package/build/common/jsonUtils.d.ts.map +1 -1
- package/build/common/jsonUtils.js +2 -0
- package/build/common/jsonUtils.js.map +1 -1
- package/build/common/local/localCertificateManager.d.ts.map +1 -1
- package/build/common/local/localCertificateManager.js +4 -1
- package/build/common/local/localCertificateManager.js.map +1 -1
- package/build/common/local/packageJsonHelper.d.ts.map +1 -1
- package/build/common/local/packageJsonHelper.js +1 -0
- package/build/common/local/packageJsonHelper.js.map +1 -1
- package/build/common/local/portChecker.js.map +1 -1
- package/build/common/m365/launchHelper.d.ts +2 -2
- package/build/common/m365/launchHelper.d.ts.map +1 -1
- package/build/common/m365/launchHelper.js +13 -4
- package/build/common/m365/launchHelper.js.map +1 -1
- package/build/common/m365/packageService.d.ts.map +1 -1
- package/build/common/m365/packageService.js +38 -0
- package/build/common/m365/packageService.js.map +1 -1
- package/build/common/projectSettingsHelper.d.ts.map +1 -1
- package/build/common/projectSettingsHelper.js +1 -0
- package/build/common/projectSettingsHelper.js.map +1 -1
- package/build/common/samples-config-v3.json +234 -27
- package/build/common/samples.d.ts +10 -6
- package/build/common/samples.d.ts.map +1 -1
- package/build/common/samples.js +31 -29
- package/build/common/samples.js.map +1 -1
- package/build/common/spec-parser/adaptiveCardGenerator.d.ts +5 -0
- package/build/common/spec-parser/adaptiveCardGenerator.d.ts.map +1 -0
- package/build/common/spec-parser/adaptiveCardGenerator.js +119 -0
- package/build/common/spec-parser/adaptiveCardGenerator.js.map +1 -0
- package/build/common/spec-parser/constants.d.ts +20 -0
- package/build/common/spec-parser/constants.d.ts.map +1 -0
- package/build/common/spec-parser/constants.js +27 -0
- package/build/common/spec-parser/constants.js.map +1 -0
- package/build/common/spec-parser/interfaces.d.ts +133 -0
- package/build/common/spec-parser/interfaces.d.ts.map +1 -0
- package/build/common/spec-parser/interfaces.js +46 -0
- package/build/common/spec-parser/interfaces.js.map +1 -0
- package/build/common/spec-parser/manifestUpdater.d.ts +5 -0
- package/build/common/spec-parser/manifestUpdater.d.ts.map +1 -0
- package/build/common/spec-parser/manifestUpdater.js +81 -0
- package/build/common/spec-parser/manifestUpdater.js.map +1 -0
- package/build/common/spec-parser/specFilter.d.ts +3 -0
- package/build/common/spec-parser/specFilter.d.ts.map +1 -0
- package/build/common/spec-parser/specFilter.js +40 -0
- package/build/common/spec-parser/specFilter.js.map +1 -0
- package/build/common/spec-parser/specParser.d.ts +45 -0
- package/build/common/spec-parser/specParser.d.ts.map +1 -0
- package/build/common/spec-parser/specParser.js +247 -0
- package/build/common/spec-parser/specParser.js.map +1 -0
- package/build/common/spec-parser/specParserError.d.ts +6 -0
- package/build/common/spec-parser/specParserError.d.ts.map +1 -0
- package/build/common/spec-parser/specParserError.js +13 -0
- package/build/common/spec-parser/specParserError.js.map +1 -0
- package/build/common/spec-parser/utils.d.ts +8 -0
- package/build/common/spec-parser/utils.d.ts.map +1 -0
- package/build/common/spec-parser/utils.js +91 -0
- package/build/common/spec-parser/utils.js.map +1 -0
- package/build/common/telemetry.d.ts +7 -5
- package/build/common/telemetry.d.ts.map +1 -1
- package/build/common/telemetry.js +40 -15
- package/build/common/telemetry.js.map +1 -1
- package/build/common/tools.js +3 -3
- package/build/common/tools.js.map +1 -1
- package/build/common/utils.d.ts +1 -0
- package/build/common/utils.d.ts.map +1 -1
- package/build/common/utils.js +5 -1
- package/build/common/utils.js.map +1 -1
- package/build/component/configManager/constant.d.ts.map +1 -1
- package/build/component/configManager/constant.js +4 -2
- package/build/component/configManager/constant.js.map +1 -1
- package/build/component/configManager/interface.d.ts +5 -0
- package/build/component/configManager/interface.d.ts.map +1 -1
- package/build/component/configManager/interface.js +2 -3
- package/build/component/configManager/interface.js.map +1 -1
- package/build/component/configManager/lifecycle.d.ts.map +1 -1
- package/build/component/configManager/lifecycle.js +22 -13
- package/build/component/configManager/lifecycle.js.map +1 -1
- package/build/component/configManager/parser.d.ts.map +1 -1
- package/build/component/configManager/parser.js +17 -9
- package/build/component/configManager/parser.js.map +1 -1
- package/build/component/configManager/validator.d.ts +0 -3
- package/build/component/configManager/validator.d.ts.map +1 -1
- package/build/component/configManager/validator.js +4 -12
- package/build/component/configManager/validator.js.map +1 -1
- package/build/component/constants.d.ts +10 -23
- package/build/component/constants.d.ts.map +1 -1
- package/build/component/constants.js +11 -24
- package/build/component/constants.js.map +1 -1
- package/build/component/coordinator/index.d.ts +12 -8
- package/build/component/coordinator/index.d.ts.map +1 -1
- package/build/component/coordinator/index.js +76 -59
- package/build/component/coordinator/index.js.map +1 -1
- package/build/component/coordinator/summary.d.ts.map +1 -1
- package/build/component/coordinator/summary.js +4 -1
- package/build/component/coordinator/summary.js.map +1 -1
- package/build/component/developerPortalScaffoldUtils.d.ts +1 -1
- package/build/component/developerPortalScaffoldUtils.d.ts.map +1 -1
- package/build/component/developerPortalScaffoldUtils.js +7 -7
- package/build/component/developerPortalScaffoldUtils.js.map +1 -1
- package/build/component/driver/aad/create.d.ts +1 -0
- package/build/component/driver/aad/create.d.ts.map +1 -1
- package/build/component/driver/aad/create.js +2 -5
- package/build/component/driver/aad/create.js.map +1 -1
- package/build/component/driver/aad/error/aadManifestError.d.ts +13 -3
- package/build/component/driver/aad/error/aadManifestError.d.ts.map +1 -1
- package/build/component/driver/aad/error/aadManifestError.js +51 -5
- package/build/component/driver/aad/error/aadManifestError.js.map +1 -1
- package/build/component/driver/aad/interface/AADApplication.js +1 -1
- package/build/component/driver/aad/interface/AADApplication.js.map +1 -1
- package/build/component/driver/aad/interface/AADManifest.js +1 -1
- package/build/component/driver/aad/interface/AADManifest.js.map +1 -1
- package/build/component/driver/aad/update.d.ts +1 -0
- package/build/component/driver/aad/update.d.ts.map +1 -1
- package/build/component/driver/aad/update.js +2 -5
- package/build/component/driver/aad/update.js.map +1 -1
- package/build/component/driver/aad/utility/aadAppClient.d.ts +1 -1
- package/build/component/driver/aad/utility/aadAppClient.d.ts.map +1 -1
- package/build/component/driver/aad/utility/aadAppClient.js +58 -13
- package/build/component/driver/aad/utility/aadAppClient.js.map +1 -1
- package/build/component/driver/aad/utility/aadManifestHelper.d.ts.map +1 -1
- package/build/component/driver/aad/utility/aadManifestHelper.js +14 -19
- package/build/component/driver/aad/utility/aadManifestHelper.js.map +1 -1
- package/build/component/driver/aad/utility/buildAadManifest.d.ts.map +1 -1
- package/build/component/driver/aad/utility/buildAadManifest.js +12 -2
- package/build/component/driver/aad/utility/buildAadManifest.js.map +1 -1
- package/build/component/driver/aad/utility/constants.d.ts +3 -0
- package/build/component/driver/aad/utility/constants.d.ts.map +1 -1
- package/build/component/driver/aad/utility/constants.js +4 -1
- package/build/component/driver/aad/utility/constants.js.map +1 -1
- package/build/component/driver/add/addWebPart.js +1 -1
- package/build/component/driver/add/addWebPart.js.map +1 -1
- package/build/component/driver/arm/deploy.d.ts +1 -0
- package/build/component/driver/arm/deploy.d.ts.map +1 -1
- package/build/component/driver/arm/deploy.js +1 -8
- package/build/component/driver/arm/deploy.js.map +1 -1
- package/build/component/driver/arm/deployImpl.d.ts +2 -1
- package/build/component/driver/arm/deployImpl.d.ts.map +1 -1
- package/build/component/driver/arm/deployImpl.js +15 -0
- package/build/component/driver/arm/deployImpl.js.map +1 -1
- package/build/component/driver/arm/util/bicepChecker.d.ts.map +1 -1
- package/build/component/driver/arm/util/bicepChecker.js +9 -6
- package/build/component/driver/arm/util/bicepChecker.js.map +1 -1
- package/build/component/driver/arm/util/handleError.js.map +1 -1
- package/build/component/driver/arm/validator.d.ts.map +1 -1
- package/build/component/driver/arm/validator.js +3 -3
- package/build/component/driver/arm/validator.js.map +1 -1
- package/build/component/driver/botAadApp/create.d.ts +1 -0
- package/build/component/driver/botAadApp/create.d.ts.map +1 -1
- package/build/component/driver/botAadApp/create.js +4 -7
- package/build/component/driver/botAadApp/create.js.map +1 -1
- package/build/component/driver/botFramework/createOrUpdateBot.d.ts +1 -0
- package/build/component/driver/botFramework/createOrUpdateBot.d.ts.map +1 -1
- package/build/component/driver/botFramework/createOrUpdateBot.js +7 -11
- package/build/component/driver/botFramework/createOrUpdateBot.js.map +1 -1
- package/build/component/driver/deploy/azure/azureStorageDeployDriver.d.ts.map +1 -1
- package/build/component/driver/deploy/azure/azureStorageDeployDriver.js +12 -5
- package/build/component/driver/deploy/azure/azureStorageDeployDriver.js.map +1 -1
- package/build/component/driver/deploy/azure/azureStorageStaticWebsiteConfigDriver.d.ts.map +1 -1
- package/build/component/driver/deploy/azure/azureStorageStaticWebsiteConfigDriver.js +11 -4
- package/build/component/driver/deploy/azure/azureStorageStaticWebsiteConfigDriver.js.map +1 -1
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.d.ts.map +1 -1
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js +22 -14
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js.map +1 -1
- package/build/component/driver/deploy/azure/impl/azureDeployImpl.d.ts.map +1 -1
- package/build/component/driver/deploy/azure/impl/azureDeployImpl.js +8 -8
- package/build/component/driver/deploy/azure/impl/azureDeployImpl.js.map +1 -1
- package/build/component/driver/deploy/azure/impl/baseDeployImpl.js +4 -4
- package/build/component/driver/deploy/azure/impl/baseDeployImpl.js.map +1 -1
- package/build/component/driver/deploy/spfx/deployDriver.d.ts +1 -0
- package/build/component/driver/deploy/spfx/deployDriver.d.ts.map +1 -1
- package/build/component/driver/deploy/spfx/deployDriver.js +11 -5
- package/build/component/driver/deploy/spfx/deployDriver.js.map +1 -1
- package/build/component/driver/devTool/installDriver.d.ts +1 -0
- package/build/component/driver/devTool/installDriver.d.ts.map +1 -1
- package/build/component/driver/devTool/installDriver.js +10 -6
- package/build/component/driver/devTool/installDriver.js.map +1 -1
- package/build/component/driver/file/createOrUpdateEnvironmentFile.d.ts +1 -0
- package/build/component/driver/file/createOrUpdateEnvironmentFile.d.ts.map +1 -1
- package/build/component/driver/file/createOrUpdateEnvironmentFile.js +5 -11
- package/build/component/driver/file/createOrUpdateEnvironmentFile.js.map +1 -1
- package/build/component/driver/file/createOrUpdateJsonFile.d.ts +1 -0
- package/build/component/driver/file/createOrUpdateJsonFile.d.ts.map +1 -1
- package/build/component/driver/file/createOrUpdateJsonFile.js +5 -11
- package/build/component/driver/file/createOrUpdateJsonFile.js.map +1 -1
- package/build/component/driver/interface/buildAndDeployArgs.d.ts +3 -6
- package/build/component/driver/interface/buildAndDeployArgs.d.ts.map +1 -1
- package/build/component/driver/interface/stepDriver.d.ts +1 -0
- package/build/component/driver/interface/stepDriver.d.ts.map +1 -1
- package/build/component/driver/m365/acquire.d.ts +1 -0
- package/build/component/driver/m365/acquire.d.ts.map +1 -1
- package/build/component/driver/m365/acquire.js +5 -11
- package/build/component/driver/m365/acquire.js.map +1 -1
- package/build/component/driver/script/baseBuildDriver.d.ts.map +1 -1
- package/build/component/driver/script/baseBuildDriver.js +1 -0
- package/build/component/driver/script/baseBuildDriver.js.map +1 -1
- package/build/component/driver/script/scriptDriver.d.ts +1 -0
- package/build/component/driver/script/scriptDriver.d.ts.map +1 -1
- package/build/component/driver/script/scriptDriver.js +30 -21
- package/build/component/driver/script/scriptDriver.js.map +1 -1
- package/build/component/driver/teamsApp/appStudio.d.ts.map +1 -1
- package/build/component/driver/teamsApp/appStudio.js +6 -6
- package/build/component/driver/teamsApp/appStudio.js.map +1 -1
- package/build/component/driver/teamsApp/clients/appStudioClient.d.ts.map +1 -1
- package/build/component/driver/teamsApp/clients/appStudioClient.js +21 -5
- package/build/component/driver/teamsApp/clients/appStudioClient.js.map +1 -1
- package/build/component/driver/teamsApp/clients/authSvcClient.d.ts +1 -1
- package/build/component/driver/teamsApp/clients/authSvcClient.d.ts.map +1 -1
- package/build/component/driver/teamsApp/clients/authSvcClient.js +3 -1
- package/build/component/driver/teamsApp/clients/authSvcClient.js.map +1 -1
- package/build/component/driver/teamsApp/configure.d.ts +1 -0
- package/build/component/driver/teamsApp/configure.d.ts.map +1 -1
- package/build/component/driver/teamsApp/configure.js +4 -17
- package/build/component/driver/teamsApp/configure.js.map +1 -1
- package/build/component/driver/teamsApp/constants.d.ts +0 -1
- package/build/component/driver/teamsApp/constants.d.ts.map +1 -1
- package/build/component/driver/teamsApp/constants.js +1 -2
- package/build/component/driver/teamsApp/constants.js.map +1 -1
- package/build/component/driver/teamsApp/copyAppPackageToSPFx.d.ts +1 -0
- package/build/component/driver/teamsApp/copyAppPackageToSPFx.d.ts.map +1 -1
- package/build/component/driver/teamsApp/copyAppPackageToSPFx.js +3 -6
- package/build/component/driver/teamsApp/copyAppPackageToSPFx.js.map +1 -1
- package/build/component/driver/teamsApp/create.d.ts +1 -0
- package/build/component/driver/teamsApp/create.d.ts.map +1 -1
- package/build/component/driver/teamsApp/create.js +4 -5
- package/build/component/driver/teamsApp/create.js.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.d.ts +3 -2
- package/build/component/driver/teamsApp/createAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.js +47 -23
- package/build/component/driver/teamsApp/createAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/errors.d.ts.map +1 -1
- package/build/component/driver/teamsApp/errors.js +2 -0
- package/build/component/driver/teamsApp/errors.js.map +1 -1
- package/build/component/driver/teamsApp/interfaces/appdefinitions/messagingExtension.d.ts +3 -0
- package/build/component/driver/teamsApp/interfaces/appdefinitions/messagingExtension.d.ts.map +1 -1
- package/build/component/driver/teamsApp/interfaces/appdefinitions/messagingExtensionCommand.d.ts +1 -0
- package/build/component/driver/teamsApp/interfaces/appdefinitions/messagingExtensionCommand.d.ts.map +1 -1
- package/build/component/driver/teamsApp/publishAppPackage.d.ts +1 -0
- package/build/component/driver/teamsApp/publishAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/publishAppPackage.js +2 -5
- package/build/component/driver/teamsApp/publishAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/results.d.ts.map +1 -1
- package/build/component/driver/teamsApp/results.js +2 -0
- package/build/component/driver/teamsApp/results.js.map +1 -1
- package/build/component/driver/teamsApp/utils/ManifestUtils.d.ts +6 -1
- package/build/component/driver/teamsApp/utils/ManifestUtils.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/ManifestUtils.js +19 -2
- package/build/component/driver/teamsApp/utils/ManifestUtils.js.map +1 -1
- package/build/component/driver/teamsApp/utils/utils.d.ts +2 -3
- package/build/component/driver/teamsApp/utils/utils.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/utils.js +21 -19
- package/build/component/driver/teamsApp/utils/utils.js.map +1 -1
- package/build/component/driver/teamsApp/validate.d.ts +1 -0
- package/build/component/driver/teamsApp/validate.d.ts.map +1 -1
- package/build/component/driver/teamsApp/validate.js +8 -5
- package/build/component/driver/teamsApp/validate.js.map +1 -1
- package/build/component/driver/teamsApp/validateAppPackage.d.ts +1 -0
- package/build/component/driver/teamsApp/validateAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/validateAppPackage.js +26 -18
- package/build/component/driver/teamsApp/validateAppPackage.js.map +1 -1
- package/build/component/error/componentError.d.ts +2 -5
- package/build/component/error/componentError.d.ts.map +1 -1
- package/build/component/error/componentError.js +9 -14
- package/build/component/error/componentError.js.map +1 -1
- package/build/component/feature/collaboration.d.ts.map +1 -1
- package/build/component/feature/collaboration.js +50 -21
- package/build/component/feature/collaboration.js.map +1 -1
- package/build/component/feature/createAuthFiles.js.map +1 -1
- package/build/component/generator/copilotPlugin/generator.d.ts +8 -0
- package/build/component/generator/copilotPlugin/generator.d.ts.map +1 -0
- package/build/component/generator/copilotPlugin/generator.js +142 -0
- package/build/component/generator/copilotPlugin/generator.js.map +1 -0
- package/build/component/generator/copilotPlugin/helper.d.ts +30 -0
- package/build/component/generator/copilotPlugin/helper.d.ts.map +1 -0
- package/build/component/generator/copilotPlugin/helper.js +261 -0
- package/build/component/generator/copilotPlugin/helper.js.map +1 -0
- package/build/component/generator/error.d.ts +1 -1
- package/build/component/generator/error.d.ts.map +1 -1
- package/build/component/generator/error.js +2 -2
- package/build/component/generator/error.js.map +1 -1
- package/build/component/generator/generator.d.ts.map +1 -1
- package/build/component/generator/generator.js +24 -20
- package/build/component/generator/generator.js.map +1 -1
- package/build/component/generator/generatorAction.d.ts.map +1 -1
- package/build/component/generator/generatorAction.js +4 -3
- package/build/component/generator/generatorAction.js.map +1 -1
- package/build/component/generator/officeAddin/config/projectProperties.d.ts.map +1 -1
- package/build/component/generator/officeAddin/config/projectProperties.js +2 -0
- package/build/component/generator/officeAddin/config/projectProperties.js.map +1 -1
- package/build/component/generator/officeAddin/config/projectsJsonData.d.ts.map +1 -1
- package/build/component/generator/officeAddin/config/projectsJsonData.js +2 -0
- package/build/component/generator/officeAddin/config/projectsJsonData.js.map +1 -1
- package/build/component/generator/officeAddin/generator.d.ts.map +1 -1
- package/build/component/generator/officeAddin/generator.js +17 -9
- package/build/component/generator/officeAddin/generator.js.map +1 -1
- package/build/component/generator/officeAddin/helperMethods.d.ts.map +1 -1
- package/build/component/generator/officeAddin/helperMethods.js +11 -5
- package/build/component/generator/officeAddin/helperMethods.js.map +1 -1
- package/build/component/generator/spfx/depsChecker/generatorChecker.d.ts +1 -1
- package/build/component/generator/spfx/depsChecker/generatorChecker.d.ts.map +1 -1
- package/build/component/generator/spfx/depsChecker/generatorChecker.js +12 -12
- package/build/component/generator/spfx/depsChecker/generatorChecker.js.map +1 -1
- package/build/component/generator/spfx/depsChecker/yoChecker.d.ts +1 -1
- package/build/component/generator/spfx/depsChecker/yoChecker.d.ts.map +1 -1
- package/build/component/generator/spfx/depsChecker/yoChecker.js +10 -10
- package/build/component/generator/spfx/depsChecker/yoChecker.js.map +1 -1
- package/build/component/generator/spfx/error.d.ts +2 -0
- package/build/component/generator/spfx/error.d.ts.map +1 -1
- package/build/component/generator/spfx/error.js +21 -1
- package/build/component/generator/spfx/error.js.map +1 -1
- package/build/component/generator/spfx/spfxGenerator.d.ts +4 -1
- package/build/component/generator/spfx/spfxGenerator.d.ts.map +1 -1
- package/build/component/generator/spfx/spfxGenerator.js +141 -117
- package/build/component/generator/spfx/spfxGenerator.js.map +1 -1
- package/build/component/generator/spfx/utils/constants.d.ts +1 -0
- package/build/component/generator/spfx/utils/constants.d.ts.map +1 -1
- package/build/component/generator/spfx/utils/constants.js +2 -0
- package/build/component/generator/spfx/utils/constants.js.map +1 -1
- package/build/component/generator/spfx/utils/telemetryEvents.d.ts +2 -1
- package/build/component/generator/spfx/utils/telemetryEvents.d.ts.map +1 -1
- package/build/component/generator/spfx/utils/telemetryEvents.js +1 -0
- package/build/component/generator/spfx/utils/telemetryEvents.js.map +1 -1
- package/build/component/generator/spfx/utils/utils.js +3 -3
- package/build/component/generator/spfx/utils/utils.js.map +1 -1
- package/build/component/generator/utils.d.ts +10 -3
- package/build/component/generator/utils.d.ts.map +1 -1
- package/build/component/generator/utils.js +6 -9
- package/build/component/generator/utils.js.map +1 -1
- package/build/component/messages.d.ts +2 -3
- package/build/component/messages.d.ts.map +1 -1
- package/build/component/messages.js +3 -4
- package/build/component/messages.js.map +1 -1
- package/build/component/middleware/questionMW.d.ts +2 -2
- package/build/component/middleware/questionMW.d.ts.map +1 -1
- package/build/component/middleware/questionMW.js +7 -11
- package/build/component/middleware/questionMW.js.map +1 -1
- package/build/component/migrate.d.ts.map +1 -1
- package/build/component/migrate.js +2 -0
- package/build/component/migrate.js.map +1 -1
- package/build/component/provisionUtils.d.ts +3 -3
- package/build/component/provisionUtils.d.ts.map +1 -1
- package/build/component/provisionUtils.js +3 -3
- package/build/component/provisionUtils.js.map +1 -1
- package/build/component/registerService.d.ts +0 -1
- package/build/component/registerService.d.ts.map +1 -1
- package/build/component/registerService.js +0 -1
- package/build/component/registerService.js.map +1 -1
- package/build/component/resource/botService/appStudio/appStudioClient.d.ts.map +1 -1
- package/build/component/resource/botService/appStudio/appStudioClient.js +24 -2
- package/build/component/resource/botService/appStudio/appStudioClient.js.map +1 -1
- package/build/component/telemetry.d.ts.map +1 -1
- package/build/component/telemetry.js +3 -6
- package/build/component/telemetry.js.map +1 -1
- package/build/component/utils/ResourceGroupHelper.d.ts +2 -2
- package/build/component/utils/ResourceGroupHelper.d.ts.map +1 -1
- package/build/component/utils/ResourceGroupHelper.js +1 -4
- package/build/component/utils/ResourceGroupHelper.js.map +1 -1
- package/build/component/utils/azureResourceOperation.js +2 -2
- package/build/component/utils/azureResourceOperation.js.map +1 -1
- package/build/component/utils/charsetUtils.d.ts.map +1 -1
- package/build/component/utils/charsetUtils.js +5 -3
- package/build/component/utils/charsetUtils.js.map +1 -1
- package/build/component/utils/common.d.ts +1 -1
- package/build/component/utils/common.d.ts.map +1 -1
- package/build/component/utils/common.js +5 -6
- package/build/component/utils/common.js.map +1 -1
- package/build/component/utils/depsChecker/common.d.ts.map +1 -1
- package/build/component/utils/depsChecker/common.js +1 -1
- package/build/component/utils/depsChecker/common.js.map +1 -1
- package/build/component/utils/depsChecker/cpUtils.d.ts.map +1 -1
- package/build/component/utils/depsChecker/cpUtils.js +9 -5
- package/build/component/utils/depsChecker/cpUtils.js.map +1 -1
- package/build/component/utils/envUtil.d.ts.map +1 -1
- package/build/component/utils/envUtil.js +4 -2
- package/build/component/utils/envUtil.js.map +1 -1
- package/build/component/utils/metadataUtil.d.ts +3 -0
- package/build/component/utils/metadataUtil.d.ts.map +1 -1
- package/build/component/utils/metadataUtil.js +18 -4
- package/build/component/utils/metadataUtil.js.map +1 -1
- package/build/component/utils/pathUtils.d.ts.map +1 -1
- package/build/component/utils/pathUtils.js +2 -0
- package/build/component/utils/pathUtils.js.map +1 -1
- package/build/component/utils/teamsFxTelemetryReporter.d.ts.map +1 -1
- package/build/component/utils/teamsFxTelemetryReporter.js +3 -6
- package/build/component/utils/teamsFxTelemetryReporter.js.map +1 -1
- package/build/component/utils.js.map +1 -1
- package/build/core/FxCore.d.ts +43 -32
- package/build/core/FxCore.d.ts.map +1 -1
- package/build/core/FxCore.js +816 -63
- package/build/core/FxCore.js.map +1 -1
- package/build/core/collaborator.d.ts +1 -1
- package/build/core/collaborator.d.ts.map +1 -1
- package/build/core/collaborator.js +16 -10
- package/build/core/collaborator.js.map +1 -1
- package/build/core/error.d.ts +6 -0
- package/build/core/error.d.ts.map +1 -1
- package/build/core/error.js +23 -1
- package/build/core/error.js.map +1 -1
- package/build/core/globalVars.d.ts +16 -0
- package/build/core/globalVars.d.ts.map +1 -1
- package/build/core/globalVars.js +34 -1
- package/build/core/globalVars.js.map +1 -1
- package/build/core/index.js +1 -0
- package/build/core/index.js.map +1 -1
- package/build/core/middleware/concurrentLocker.d.ts.map +1 -1
- package/build/core/middleware/concurrentLocker.js +7 -3
- package/build/core/middleware/concurrentLocker.js.map +1 -1
- package/build/core/middleware/errorHandler.d.ts +2 -0
- package/build/core/middleware/errorHandler.d.ts.map +1 -1
- package/build/core/middleware/errorHandler.js +16 -25
- package/build/core/middleware/errorHandler.js.map +1 -1
- package/build/core/middleware/projectMigratorV3.d.ts +7 -1
- package/build/core/middleware/projectMigratorV3.d.ts.map +1 -1
- package/build/core/middleware/projectMigratorV3.js +35 -34
- package/build/core/middleware/projectMigratorV3.js.map +1 -1
- package/build/core/middleware/projectVersionChecker.js +8 -8
- package/build/core/middleware/projectVersionChecker.js.map +1 -1
- package/build/core/middleware/utils/appYmlGenerator.d.ts.map +1 -1
- package/build/core/middleware/utils/appYmlGenerator.js +2 -1
- package/build/core/middleware/utils/appYmlGenerator.js.map +1 -1
- package/build/core/middleware/utils/debug/appLocalYmlGenerator.d.ts.map +1 -1
- package/build/core/middleware/utils/debug/appLocalYmlGenerator.js +3 -2
- package/build/core/middleware/utils/debug/appLocalYmlGenerator.js.map +1 -1
- package/build/core/middleware/utils/debug/debugV3MigrationUtils.js.map +1 -1
- package/build/core/middleware/utils/debug/taskMigrator.d.ts.map +1 -1
- package/build/core/middleware/utils/debug/taskMigrator.js +33 -15
- package/build/core/middleware/utils/debug/taskMigrator.js.map +1 -1
- package/build/core/middleware/utils/migrationContext.d.ts +1 -0
- package/build/core/middleware/utils/migrationContext.d.ts.map +1 -1
- package/build/core/middleware/utils/migrationContext.js.map +1 -1
- package/build/core/middleware/utils/v3MigrationUtils.d.ts.map +1 -1
- package/build/core/middleware/utils/v3MigrationUtils.js +6 -2
- package/build/core/middleware/utils/v3MigrationUtils.js.map +1 -1
- package/build/error/arm.d.ts.map +1 -1
- package/build/error/arm.js +2 -0
- package/build/error/arm.js.map +1 -1
- package/build/error/azure.d.ts.map +1 -1
- package/build/error/azure.js +2 -0
- package/build/error/azure.js.map +1 -1
- package/build/error/common.d.ts +8 -2
- package/build/error/common.d.ts.map +1 -1
- package/build/error/common.js +129 -22
- package/build/error/common.js.map +1 -1
- package/build/error/deploy.d.ts.map +1 -1
- package/build/error/deploy.js +10 -8
- package/build/error/deploy.js.map +1 -1
- package/build/error/index.d.ts.map +1 -1
- package/build/error/index.js +2 -0
- package/build/error/index.js.map +1 -1
- package/build/error/m365.d.ts.map +1 -1
- package/build/error/m365.js +2 -0
- package/build/error/m365.js.map +1 -1
- package/build/error/script.d.ts.map +1 -1
- package/build/error/script.js +2 -0
- package/build/error/script.js.map +1 -1
- package/build/error/upgrade.d.ts.map +1 -1
- package/build/error/upgrade.js +2 -0
- package/build/error/upgrade.js.map +1 -1
- package/build/error/yml.d.ts.map +1 -1
- package/build/error/yml.js +2 -0
- package/build/error/yml.js.map +1 -1
- package/build/failpoint/index.d.ts.map +1 -1
- package/build/failpoint/index.js +2 -0
- package/build/failpoint/index.js.map +1 -1
- package/build/failpoint/marker.d.ts.map +1 -1
- package/build/failpoint/marker.js +2 -0
- package/build/failpoint/marker.js.map +1 -1
- package/build/failpoint/runtime.d.ts.map +1 -1
- package/build/failpoint/runtime.js +3 -4
- package/build/failpoint/runtime.js.map +1 -1
- package/build/index.d.ts +3 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +4 -1
- package/build/index.js.map +1 -1
- package/build/question/constants.d.ts +4 -0
- package/build/question/constants.d.ts.map +1 -0
- package/build/question/constants.js +12 -0
- package/build/question/constants.js.map +1 -0
- package/build/question/create.d.ts +14 -15
- package/build/question/create.d.ts.map +1 -1
- package/build/question/create.js +478 -332
- package/build/question/create.js.map +1 -1
- package/build/question/generator.d.ts +4 -0
- package/build/question/generator.d.ts.map +1 -0
- package/build/question/generator.js +371 -0
- package/build/question/generator.js.map +1 -0
- package/build/question/index.d.ts +18 -28
- package/build/question/index.d.ts.map +1 -1
- package/build/question/index.js +18 -44
- package/build/question/index.js.map +1 -1
- package/build/question/inputs/CreateEnvInputs.d.ts +14 -0
- package/build/question/inputs/CreateEnvInputs.d.ts.map +1 -0
- package/build/question/inputs/CreateEnvInputs.js +5 -0
- package/build/question/inputs/CreateEnvInputs.js.map +1 -0
- package/build/question/inputs/CreateProjectInputs.d.ts +40 -0
- package/build/question/inputs/CreateProjectInputs.d.ts.map +1 -0
- package/build/question/inputs/CreateProjectInputs.js +5 -0
- package/build/question/inputs/CreateProjectInputs.js.map +1 -0
- package/build/question/inputs/CreateSampleProjectInputs.d.ts +12 -0
- package/build/question/inputs/CreateSampleProjectInputs.d.ts.map +1 -0
- package/build/question/inputs/CreateSampleProjectInputs.js +5 -0
- package/build/question/inputs/CreateSampleProjectInputs.js.map +1 -0
- package/build/question/inputs/DeployAadManifestInputs.d.ts +14 -0
- package/build/question/inputs/DeployAadManifestInputs.d.ts.map +1 -0
- package/build/question/inputs/DeployAadManifestInputs.js +5 -0
- package/build/question/inputs/DeployAadManifestInputs.js.map +1 -0
- package/build/question/inputs/PermissionGrantInputs.d.ts +18 -0
- package/build/question/inputs/PermissionGrantInputs.d.ts.map +1 -0
- package/build/question/inputs/PermissionGrantInputs.js +5 -0
- package/build/question/inputs/PermissionGrantInputs.js.map +1 -0
- package/build/question/inputs/PermissionListInputs.d.ts +16 -0
- package/build/question/inputs/PermissionListInputs.d.ts.map +1 -0
- package/build/question/inputs/PermissionListInputs.js +5 -0
- package/build/question/inputs/PermissionListInputs.js.map +1 -0
- package/build/question/inputs/PreviewTeamsAppInputs.d.ts +14 -0
- package/build/question/inputs/PreviewTeamsAppInputs.d.ts.map +1 -0
- package/build/question/inputs/PreviewTeamsAppInputs.js +5 -0
- package/build/question/inputs/PreviewTeamsAppInputs.js.map +1 -0
- package/build/question/inputs/SPFxAddWebpartInputs.d.ts +18 -0
- package/build/question/inputs/SPFxAddWebpartInputs.d.ts.map +1 -0
- package/build/question/inputs/SPFxAddWebpartInputs.js +5 -0
- package/build/question/inputs/SPFxAddWebpartInputs.js.map +1 -0
- package/build/question/inputs/SelectTeamsManifestInputs.d.ts +12 -0
- package/build/question/inputs/SelectTeamsManifestInputs.d.ts.map +1 -0
- package/build/question/inputs/SelectTeamsManifestInputs.js +5 -0
- package/build/question/inputs/SelectTeamsManifestInputs.js.map +1 -0
- package/build/question/inputs/ValidateTeamsAppInputs.d.ts +14 -0
- package/build/question/inputs/ValidateTeamsAppInputs.d.ts.map +1 -0
- package/build/question/inputs/ValidateTeamsAppInputs.js +5 -0
- package/build/question/inputs/ValidateTeamsAppInputs.js.map +1 -0
- package/build/question/inputs/index.d.ts +11 -0
- package/build/question/inputs/index.d.ts.map +1 -0
- package/build/question/inputs/index.js +16 -0
- package/build/question/inputs/index.js.map +1 -0
- package/build/question/options/CreateEnvOptions.d.ts +10 -0
- package/build/question/options/CreateEnvOptions.d.ts.map +1 -0
- package/build/question/options/CreateEnvOptions.js +24 -0
- package/build/question/options/CreateEnvOptions.js.map +1 -0
- package/build/question/options/CreateProjectOptions.d.ts +10 -0
- package/build/question/options/CreateProjectOptions.d.ts.map +1 -0
- package/build/question/options/CreateProjectOptions.js +139 -0
- package/build/question/options/CreateProjectOptions.js.map +1 -0
- package/build/question/options/CreateSampleProjectOptions.d.ts +10 -0
- package/build/question/options/CreateSampleProjectOptions.d.ts.map +1 -0
- package/build/question/options/CreateSampleProjectOptions.js +52 -0
- package/build/question/options/CreateSampleProjectOptions.js.map +1 -0
- package/build/question/options/DeployAadManifestOptions.d.ts +10 -0
- package/build/question/options/DeployAadManifestOptions.d.ts.map +1 -0
- package/build/question/options/DeployAadManifestOptions.js +21 -0
- package/build/question/options/DeployAadManifestOptions.js.map +1 -0
- package/build/question/options/PermissionGrantOptions.d.ts +10 -0
- package/build/question/options/PermissionGrantOptions.d.ts.map +1 -0
- package/build/question/options/PermissionGrantOptions.js +33 -0
- package/build/question/options/PermissionGrantOptions.js.map +1 -0
- package/build/question/options/PermissionListOptions.d.ts +10 -0
- package/build/question/options/PermissionListOptions.d.ts.map +1 -0
- package/build/question/options/PermissionListOptions.js +28 -0
- package/build/question/options/PermissionListOptions.js.map +1 -0
- package/build/question/options/PreviewTeamsAppOptions.d.ts +10 -0
- package/build/question/options/PreviewTeamsAppOptions.d.ts.map +1 -0
- package/build/question/options/PreviewTeamsAppOptions.js +26 -0
- package/build/question/options/PreviewTeamsAppOptions.js.map +1 -0
- package/build/question/options/SPFxAddWebpartOptions.d.ts +10 -0
- package/build/question/options/SPFxAddWebpartOptions.d.ts.map +1 -0
- package/build/question/options/SPFxAddWebpartOptions.js +38 -0
- package/build/question/options/SPFxAddWebpartOptions.js.map +1 -0
- package/build/question/options/SelectTeamsManifestOptions.d.ts +10 -0
- package/build/question/options/SelectTeamsManifestOptions.d.ts.map +1 -0
- package/build/question/options/SelectTeamsManifestOptions.js +17 -0
- package/build/question/options/SelectTeamsManifestOptions.js.map +1 -0
- package/build/question/options/ValidateTeamsAppOptions.d.ts +10 -0
- package/build/question/options/ValidateTeamsAppOptions.d.ts.map +1 -0
- package/build/question/options/ValidateTeamsAppOptions.js +23 -0
- package/build/question/options/ValidateTeamsAppOptions.js.map +1 -0
- package/build/question/options/index.d.ts +11 -0
- package/build/question/options/index.d.ts.map +1 -0
- package/build/question/options/index.js +16 -0
- package/build/question/options/index.js.map +1 -0
- package/build/question/other.d.ts +13 -1
- package/build/question/other.d.ts.map +1 -1
- package/build/question/other.js +132 -26
- package/build/question/other.js.map +1 -1
- package/build/question/questionNames.d.ts +6 -2
- package/build/question/questionNames.d.ts.map +1 -1
- package/build/question/questionNames.js +10 -3
- package/build/question/questionNames.js.map +1 -1
- package/build/question/util.d.ts +1 -1
- package/build/question/util.d.ts.map +1 -1
- package/build/question/util.js +7 -5
- package/build/question/util.js.map +1 -1
- package/build/ui/validationUtils.d.ts +15 -0
- package/build/ui/validationUtils.d.ts.map +1 -0
- package/build/ui/validationUtils.js +95 -0
- package/build/ui/validationUtils.js.map +1 -0
- package/build/ui/visitor.d.ts +13 -1
- package/build/ui/visitor.d.ts.map +1 -1
- package/build/ui/visitor.js +259 -213
- package/build/ui/visitor.js.map +1 -1
- package/package.json +15 -9
- package/resource/package.nls.cs.json +30 -56
- package/resource/package.nls.de.json +30 -56
- package/resource/package.nls.es.json +30 -56
- package/resource/package.nls.fr.json +30 -56
- package/resource/package.nls.it.json +30 -56
- package/resource/package.nls.ja.json +30 -56
- package/resource/package.nls.json +57 -19
- package/resource/package.nls.ko.json +30 -56
- package/resource/package.nls.pl.json +30 -56
- package/resource/package.nls.pt-BR.json +31 -57
- package/resource/package.nls.ru.json +34 -60
- package/resource/package.nls.tr.json +31 -57
- package/resource/package.nls.zh-Hans.json +31 -57
- package/resource/package.nls.zh-Hant.json +30 -56
- package/resource/package.nls.zh-cn.json +232 -712
- package/resource/package.nls.zh-tw.json +230 -710
- package/resource/yaml-schema/v1.2/yaml.schema.json +1474 -0
- package/templates/fallback/common.zip +0 -0
- package/templates/fallback/csharp.zip +0 -0
- package/templates/fallback/js.zip +0 -0
- package/templates/fallback/ts.zip +0 -0
- package/templates/plugins/resource/aad/auth/V3/Tab/GetUserProfile.razor +1 -2
- package/templates/plugins/resource/aad/auth/bot/README.md +281 -263
- package/templates/plugins/resource/aad/auth/bot/js/sso/handleMessageExtensionQueryWithToken.js +13 -3
- package/templates/plugins/resource/aad/auth/bot/js/sso/profileSsoCommandHandler.js +14 -5
- package/templates/plugins/resource/aad/auth/bot/ts/sso/handleMessageExtensionQueryWithToken.ts +11 -3
- package/templates/plugins/resource/aad/auth/bot/ts/sso/profileSsoCommandHandler.ts +12 -3
- package/templates/plugins/resource/aad/auth/tab/csharp/GetUserProfile.razor +1 -2
- package/build/component/configManager/diagnostic.d.ts +0 -9
- package/build/component/configManager/diagnostic.d.ts.map +0 -1
- package/build/component/configManager/diagnostic.js +0 -47
- package/build/component/configManager/diagnostic.js.map +0 -1
- package/build/component/driver/middleware/updateProgress.d.ts +0 -6
- package/build/component/driver/middleware/updateProgress.d.ts.map +0 -1
- package/build/component/driver/middleware/updateProgress.js +0 -15
- package/build/component/driver/middleware/updateProgress.js.map +0 -1
- package/build/component/generator/officeAddin/question.d.ts +0 -10
- package/build/component/generator/officeAddin/question.d.ts.map +0 -1
- package/build/component/generator/officeAddin/question.js +0 -118
- package/build/component/generator/officeAddin/question.js.map +0 -1
- package/build/core/FxCoreImplementV3.d.ts +0 -43
- package/build/core/FxCoreImplementV3.d.ts.map +0 -1
- package/build/core/FxCoreImplementV3.js +0 -653
- package/build/core/FxCoreImplementV3.js.map +0 -1
- package/templates/plugins/resource/apim/README.md +0 -92
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT license.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.CopilotPluginGenerator = void 0;
|
|
6
|
+
const tslib_1 = require("tslib");
|
|
7
|
+
/**
|
|
8
|
+
* @author yuqzho@microsoft.com
|
|
9
|
+
*/
|
|
10
|
+
const lib_1 = require("@feathersjs/hooks/lib");
|
|
11
|
+
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
12
|
+
const generator_1 = require("../generator");
|
|
13
|
+
const path_1 = tslib_1.__importDefault(require("path"));
|
|
14
|
+
const actionExecutionMW_1 = require("../../middleware/actionExecutionMW");
|
|
15
|
+
const telemetryEvents_1 = require("../spfx/utils/telemetryEvents");
|
|
16
|
+
const specParser_1 = require("../../../common/spec-parser/specParser");
|
|
17
|
+
const questionNames_1 = require("../../../question/questionNames");
|
|
18
|
+
const helper_1 = require("./helper");
|
|
19
|
+
const interfaces_1 = require("../../../common/spec-parser/interfaces");
|
|
20
|
+
const localizeUtils_1 = require("../../../common/localizeUtils");
|
|
21
|
+
const ManifestUtils_1 = require("../../driver/teamsApp/utils/ManifestUtils");
|
|
22
|
+
const create_1 = require("../../../question/create");
|
|
23
|
+
const fs = tslib_1.__importStar(require("fs-extra"));
|
|
24
|
+
const error_1 = require("../../../error");
|
|
25
|
+
const utils_1 = require("../../../common/spec-parser/utils");
|
|
26
|
+
const constants_1 = require("../../../common/spec-parser/constants");
|
|
27
|
+
const util = tslib_1.__importStar(require("util"));
|
|
28
|
+
const specParserError_1 = require("../../../common/spec-parser/specParserError");
|
|
29
|
+
const componentName = "simplified-message-extension-existing-api";
|
|
30
|
+
const templateName = "simplified-message-extension-existing-api";
|
|
31
|
+
const apiSpecFolderName = "apiSpecFiles";
|
|
32
|
+
const apiSpecYamlFileName = "openapi.yaml";
|
|
33
|
+
const apiSpecJsonFileName = "openapi.json";
|
|
34
|
+
const invalidApiSpecErrorName = "invalid-api-spec";
|
|
35
|
+
class CopilotPluginGenerator {
|
|
36
|
+
static async generate(context, inputs, destinationPath) {
|
|
37
|
+
var _a, _b;
|
|
38
|
+
try {
|
|
39
|
+
const appName = inputs[questionNames_1.QuestionNames.AppName];
|
|
40
|
+
const language = inputs[questionNames_1.QuestionNames.ProgrammingLanguage];
|
|
41
|
+
const safeProjectNameFromVS = language === "csharp" ? inputs[questionNames_1.QuestionNames.SafeProjectName] : undefined;
|
|
42
|
+
context.templateVariables = generator_1.Generator.getDefaultVariables(appName, safeProjectNameFromVS);
|
|
43
|
+
const filters = inputs[questionNames_1.QuestionNames.ApiOperation];
|
|
44
|
+
// download template
|
|
45
|
+
const templateRes = await generator_1.Generator.generateTemplate(context, destinationPath, templateName, language === create_1.ProgrammingLanguage.CSharp ? create_1.ProgrammingLanguage.CSharp : undefined);
|
|
46
|
+
if (templateRes.isErr())
|
|
47
|
+
return teamsfx_api_1.err(templateRes.error);
|
|
48
|
+
const url = (_a = inputs[questionNames_1.QuestionNames.ApiSpecLocation]) !== null && _a !== void 0 ? _a : (_b = inputs.openAIPluginManifest) === null || _b === void 0 ? void 0 : _b.api.url;
|
|
49
|
+
// validate API spec
|
|
50
|
+
const specParser = new specParser_1.SpecParser(url);
|
|
51
|
+
const validationRes = await specParser.validate();
|
|
52
|
+
const specWarnings = validationRes.warnings;
|
|
53
|
+
const operationIdWarning = specWarnings.find((w) => w.type === interfaces_1.WarningType.OperationIdMissing);
|
|
54
|
+
if (operationIdWarning && operationIdWarning.data) {
|
|
55
|
+
const apisMissingOperationId = operationIdWarning.data.filter((api) => filters.includes(api));
|
|
56
|
+
if (apisMissingOperationId.length > 0) {
|
|
57
|
+
operationIdWarning.content = util.format(constants_1.ConstantString.MissingOperationId, apisMissingOperationId.join(", "));
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
specWarnings.splice(specWarnings.indexOf(operationIdWarning), 1);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
if (validationRes.status === interfaces_1.ValidationStatus.Error) {
|
|
64
|
+
helper_1.logValidationResults(validationRes.errors, specWarnings, context, true, false, true);
|
|
65
|
+
const errorMessage = inputs.platform === teamsfx_api_1.Platform.VSCode
|
|
66
|
+
? localizeUtils_1.getLocalizedString("core.createProjectQuestion.apiSpec.multipleValidationErrors.vscode.message")
|
|
67
|
+
: localizeUtils_1.getLocalizedString("core.createProjectQuestion.apiSpec.multipleValidationErrors.message");
|
|
68
|
+
return teamsfx_api_1.err(new teamsfx_api_1.UserError(componentName, invalidApiSpecErrorName, errorMessage, errorMessage));
|
|
69
|
+
}
|
|
70
|
+
// generate files
|
|
71
|
+
const manifestPath = path_1.default.join(destinationPath, teamsfx_api_1.AppPackageFolderName, teamsfx_api_1.ManifestTemplateFileName);
|
|
72
|
+
const apiSpecFolderPath = path_1.default.join(destinationPath, teamsfx_api_1.AppPackageFolderName, apiSpecFolderName);
|
|
73
|
+
await fs.ensureDir(apiSpecFolderPath);
|
|
74
|
+
let isYaml;
|
|
75
|
+
try {
|
|
76
|
+
isYaml = await utils_1.isYamlSpecFile(url);
|
|
77
|
+
}
|
|
78
|
+
catch (e) {
|
|
79
|
+
isYaml = false;
|
|
80
|
+
}
|
|
81
|
+
const openapiSpecPath = path_1.default.join(apiSpecFolderPath, isYaml ? apiSpecYamlFileName : apiSpecJsonFileName);
|
|
82
|
+
const adaptiveCardFolder = path_1.default.join(destinationPath, teamsfx_api_1.AppPackageFolderName, teamsfx_api_1.AdaptiveFolderName);
|
|
83
|
+
await specParser.generate(manifestPath, filters, openapiSpecPath, adaptiveCardFolder);
|
|
84
|
+
// update manifest based on openAI plugin manifest
|
|
85
|
+
const manifestRes = await ManifestUtils_1.manifestUtils._readAppManifest(manifestPath);
|
|
86
|
+
if (manifestRes.isErr()) {
|
|
87
|
+
return teamsfx_api_1.err(manifestRes.error);
|
|
88
|
+
}
|
|
89
|
+
const teamsManifest = manifestRes.value;
|
|
90
|
+
if (inputs.openAIPluginManifest) {
|
|
91
|
+
const updateManifestRes = await helper_1.OpenAIPluginManifestHelper.updateManifest(inputs.openAIPluginManifest, teamsManifest, manifestPath);
|
|
92
|
+
if (updateManifestRes.isErr())
|
|
93
|
+
return teamsfx_api_1.err(updateManifestRes.error);
|
|
94
|
+
}
|
|
95
|
+
// log warnings
|
|
96
|
+
if (inputs.platform === teamsfx_api_1.Platform.CLI || inputs.platform === teamsfx_api_1.Platform.VS) {
|
|
97
|
+
const warnSummary = helper_1.generateScaffoldingSummary(specWarnings, teamsManifest, destinationPath);
|
|
98
|
+
if (warnSummary) {
|
|
99
|
+
void context.logProvider.info(warnSummary);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
if (inputs.platform === teamsfx_api_1.Platform.VSCode) {
|
|
103
|
+
return teamsfx_api_1.ok({
|
|
104
|
+
warnings: specWarnings.map((specWarning) => {
|
|
105
|
+
return {
|
|
106
|
+
type: specWarning.type,
|
|
107
|
+
content: specWarning.content,
|
|
108
|
+
};
|
|
109
|
+
}),
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
else {
|
|
113
|
+
return teamsfx_api_1.ok({ warnings: undefined });
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
catch (e) {
|
|
117
|
+
let error;
|
|
118
|
+
if (e instanceof specParserError_1.SpecParserError) {
|
|
119
|
+
error = helper_1.convertSpecParserErrorToFxError(e);
|
|
120
|
+
}
|
|
121
|
+
else {
|
|
122
|
+
error = error_1.assembleError(e);
|
|
123
|
+
}
|
|
124
|
+
return teamsfx_api_1.err(error);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
tslib_1.__decorate([
|
|
129
|
+
lib_1.hooks([
|
|
130
|
+
actionExecutionMW_1.ActionExecutionMW({
|
|
131
|
+
enableTelemetry: true,
|
|
132
|
+
telemetryComponentName: componentName,
|
|
133
|
+
telemetryEventName: telemetryEvents_1.TelemetryEvents.Generate,
|
|
134
|
+
errorSource: componentName,
|
|
135
|
+
}),
|
|
136
|
+
]),
|
|
137
|
+
tslib_1.__metadata("design:type", Function),
|
|
138
|
+
tslib_1.__metadata("design:paramtypes", [Object, Object, String]),
|
|
139
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
140
|
+
], CopilotPluginGenerator, "generate", null);
|
|
141
|
+
exports.CopilotPluginGenerator = CopilotPluginGenerator;
|
|
142
|
+
//# sourceMappingURL=generator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../src/component/generator/copilotPlugin/generator.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC;;GAEG;AAEH,+CAA8C;AAC9C,wDAagC;AAChC,4CAAyC;AACzC,wDAAwB;AACxB,0EAAuE;AACvE,mEAAgE;AAChE,uEAAoE;AACpE,mEAAgE;AAChE,qCAKkB;AAClB,uEAAuF;AACvF,iEAAmE;AACnE,6EAA0E;AAC1E,qDAA+D;AAC/D,qDAA+B;AAC/B,0CAA+C;AAC/C,6DA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,EAAE,aAAa;SAC3B,CAAC;KACH,CAAC;;;;4CA2ID;AAnJH,wDAoJC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author yuqzho@microsoft.com
|
|
3
|
+
*/
|
|
4
|
+
import { Context, FxError, OpenAIPluginManifest, Result, TeamsAppManifest, ApiOperation, Warning } from "@microsoft/teamsfx-api";
|
|
5
|
+
import { ErrorType as ApiSpecErrorType, WarningResult } from "../../../common/spec-parser/interfaces";
|
|
6
|
+
import { SpecParserError } from "../../../common/spec-parser/specParserError";
|
|
7
|
+
declare enum OpenAIPluginManifestErrorType {
|
|
8
|
+
AuthNotSupported = "openai-pliugin-auth-not-supported",
|
|
9
|
+
ApiUrlMissing = "openai-plugin-api-url-missing"
|
|
10
|
+
}
|
|
11
|
+
export interface ErrorResult {
|
|
12
|
+
/**
|
|
13
|
+
* The type of error.
|
|
14
|
+
*/
|
|
15
|
+
type: ApiSpecErrorType | OpenAIPluginManifestErrorType;
|
|
16
|
+
/**
|
|
17
|
+
* The content of the error.
|
|
18
|
+
*/
|
|
19
|
+
content: string;
|
|
20
|
+
}
|
|
21
|
+
export declare class OpenAIPluginManifestHelper {
|
|
22
|
+
static loadOpenAIPluginManifest(input: string): Promise<OpenAIPluginManifest>;
|
|
23
|
+
static updateManifest(openAiPluginManifest: OpenAIPluginManifest, teamsAppManifest: TeamsAppManifest, manifestPath: string): Promise<Result<undefined, FxError>>;
|
|
24
|
+
}
|
|
25
|
+
export declare function listOperations(context: Context, manifest: OpenAIPluginManifest | undefined, apiSpecUrl: string | undefined, teamsManifestPath: string | undefined, includeExistingAPIs?: boolean, shouldLogWarning?: boolean): Promise<Result<ApiOperation[], ErrorResult[]>>;
|
|
26
|
+
export declare function logValidationResults(errors: ErrorResult[], warnings: WarningResult[], context: Context, isApiSpec: boolean, shouldLogWarning: boolean, shouldSkipTelemetry?: boolean): void;
|
|
27
|
+
export declare function generateScaffoldingSummary(specWarnings: Warning[], teamsManifest: TeamsAppManifest, projectPath: string): string;
|
|
28
|
+
export declare function convertSpecParserErrorToFxError(error: SpecParserError): FxError;
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=helper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../../src/component/generator/copilotPlugin/helper.ts"],"names":[],"mappings":"AAGA;;GAEG;AAEH,OAAO,EACL,OAAO,EACP,OAAO,EAEP,oBAAoB,EACpB,MAAM,EAIN,gBAAgB,EAChB,YAAY,EAEZ,OAAO,EAKR,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EACL,SAAS,IAAI,gBAAgB,EAE7B,aAAa,EAEd,MAAM,wCAAwC,CAAC;AAShD,OAAO,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAC;AAgB9E,aAAK,6BAA6B;IAChC,gBAAgB,sCAAsC;IACtD,aAAa,kCAAkC;CAChD;AAED,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,IAAI,EAAE,gBAAgB,GAAG,6BAA6B,CAAC;IAEvD;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,0BAA0B;WACxB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC;WAuBtE,cAAc,CACzB,oBAAoB,EAAE,oBAAoB,EAC1C,gBAAgB,EAAE,gBAAgB,EAClC,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;CAUvC;AAED,wBAAsB,cAAc,CAClC,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,oBAAoB,GAAG,SAAS,EAC1C,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,iBAAiB,EAAE,MAAM,GAAG,SAAS,EACrC,mBAAmB,UAAO,EAC1B,gBAAgB,UAAO,GACtB,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,EAAE,WAAW,EAAE,CAAC,CAAC,CAoDhD;AAoBD,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,WAAW,EAAE,EACrB,QAAQ,EAAE,aAAa,EAAE,EACzB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,OAAO,EAClB,gBAAgB,EAAE,OAAO,EACzB,mBAAmB,UAAQ,GAC1B,IAAI,CAmEN;AAoBD,wBAAgB,0BAA0B,CACxC,YAAY,EAAE,OAAO,EAAE,EACvB,aAAa,EAAE,gBAAgB,EAC/B,WAAW,EAAE,MAAM,GAClB,MAAM,CAqBR;AAsHD,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAE/E"}
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT license.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.convertSpecParserErrorToFxError = exports.generateScaffoldingSummary = exports.logValidationResults = exports.listOperations = exports.OpenAIPluginManifestHelper = void 0;
|
|
6
|
+
const tslib_1 = require("tslib");
|
|
7
|
+
/**
|
|
8
|
+
* @author yuqzho@microsoft.com
|
|
9
|
+
*/
|
|
10
|
+
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
11
|
+
const axios_1 = tslib_1.__importDefault(require("axios"));
|
|
12
|
+
const utils_1 = require("../utils");
|
|
13
|
+
const interfaces_1 = require("../../../common/spec-parser/interfaces");
|
|
14
|
+
const specParser_1 = require("../../../common/spec-parser/specParser");
|
|
15
|
+
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
16
|
+
const localizeUtils_1 = require("../../../common/localizeUtils");
|
|
17
|
+
const error_1 = require("../../../error");
|
|
18
|
+
const os_1 = require("os");
|
|
19
|
+
const constant_1 = require("../../configManager/constant");
|
|
20
|
+
const ManifestUtils_1 = require("../../driver/teamsApp/utils/ManifestUtils");
|
|
21
|
+
const path_1 = tslib_1.__importDefault(require("path"));
|
|
22
|
+
const specParserError_1 = require("../../../common/spec-parser/specParserError");
|
|
23
|
+
const manifestFilePath = "/.well-known/ai-plugin.json";
|
|
24
|
+
const componentName = "OpenAIPluginManifestHelper";
|
|
25
|
+
var OpenAIPluginManifestErrorType;
|
|
26
|
+
(function (OpenAIPluginManifestErrorType) {
|
|
27
|
+
OpenAIPluginManifestErrorType["AuthNotSupported"] = "openai-pliugin-auth-not-supported";
|
|
28
|
+
OpenAIPluginManifestErrorType["ApiUrlMissing"] = "openai-plugin-api-url-missing";
|
|
29
|
+
})(OpenAIPluginManifestErrorType || (OpenAIPluginManifestErrorType = {}));
|
|
30
|
+
class OpenAIPluginManifestHelper {
|
|
31
|
+
static async loadOpenAIPluginManifest(input) {
|
|
32
|
+
let path = (input.endsWith("/") ? input.substring(0, input.length - 1) : input) + manifestFilePath;
|
|
33
|
+
if (!input.toLowerCase().startsWith("https://") && !input.toLowerCase().startsWith("http://")) {
|
|
34
|
+
path = "https://" + path;
|
|
35
|
+
}
|
|
36
|
+
try {
|
|
37
|
+
const res = await utils_1.sendRequestWithRetry(async () => {
|
|
38
|
+
return await axios_1.default.get(path);
|
|
39
|
+
}, 3);
|
|
40
|
+
return res.data;
|
|
41
|
+
}
|
|
42
|
+
catch (e) {
|
|
43
|
+
throw new teamsfx_api_1.UserError(componentName, "loadOpenAIPluginManifest", localizeUtils_1.getLocalizedString("error.copilotPlugin.openAiPluginManifest.CannotGetManifest", path), localizeUtils_1.getLocalizedString("error.copilotPlugin.openAiPluginManifest.CannotGetManifest", path));
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
static async updateManifest(openAiPluginManifest, teamsAppManifest, manifestPath) {
|
|
47
|
+
teamsAppManifest.description.full = openAiPluginManifest.description_for_human;
|
|
48
|
+
teamsAppManifest.description.short = openAiPluginManifest.description_for_human;
|
|
49
|
+
teamsAppManifest.developer.websiteUrl = openAiPluginManifest.legal_info_url;
|
|
50
|
+
teamsAppManifest.developer.privacyUrl = openAiPluginManifest.legal_info_url;
|
|
51
|
+
teamsAppManifest.developer.termsOfUseUrl = openAiPluginManifest.legal_info_url;
|
|
52
|
+
await fs_extra_1.default.writeFile(manifestPath, JSON.stringify(teamsAppManifest, null, "\t"), "utf-8");
|
|
53
|
+
return teamsfx_api_1.ok(undefined);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.OpenAIPluginManifestHelper = OpenAIPluginManifestHelper;
|
|
57
|
+
async function listOperations(context, manifest, apiSpecUrl, teamsManifestPath, includeExistingAPIs = true, shouldLogWarning = true) {
|
|
58
|
+
if (manifest) {
|
|
59
|
+
const errors = validateOpenAIPluginManifest(manifest);
|
|
60
|
+
logValidationResults(errors, [], context, false, shouldLogWarning);
|
|
61
|
+
if (errors.length > 0) {
|
|
62
|
+
return teamsfx_api_1.err(errors);
|
|
63
|
+
}
|
|
64
|
+
apiSpecUrl = manifest.api.url;
|
|
65
|
+
}
|
|
66
|
+
try {
|
|
67
|
+
const specParser = new specParser_1.SpecParser(apiSpecUrl);
|
|
68
|
+
const validationRes = await specParser.validate();
|
|
69
|
+
logValidationResults(validationRes.errors, validationRes.warnings, context, true, shouldLogWarning);
|
|
70
|
+
if (validationRes.status === interfaces_1.ValidationStatus.Error) {
|
|
71
|
+
return teamsfx_api_1.err(validationRes.errors);
|
|
72
|
+
}
|
|
73
|
+
let operations = await specParser.list();
|
|
74
|
+
// Filter out exsiting APIs
|
|
75
|
+
if (!includeExistingAPIs) {
|
|
76
|
+
if (!teamsManifestPath) {
|
|
77
|
+
throw new error_1.MissingRequiredInputError("teamsManifestPath", "inputs");
|
|
78
|
+
}
|
|
79
|
+
const manifest = await ManifestUtils_1.manifestUtils._readAppManifest(teamsManifestPath);
|
|
80
|
+
if (manifest.isOk()) {
|
|
81
|
+
const existingOperationIds = ManifestUtils_1.manifestUtils.getOperationIds(manifest.value);
|
|
82
|
+
operations = operations.filter((operation) => !existingOperationIds.includes(operation));
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
throw manifest.error;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
const sortedOperations = sortOperations(operations);
|
|
89
|
+
return teamsfx_api_1.ok(sortedOperations);
|
|
90
|
+
}
|
|
91
|
+
catch (e) {
|
|
92
|
+
if (e instanceof specParserError_1.SpecParserError) {
|
|
93
|
+
throw convertSpecParserErrorToFxError(e);
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
throw e;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
exports.listOperations = listOperations;
|
|
101
|
+
function sortOperations(operations) {
|
|
102
|
+
const operationsWithSeparator = [];
|
|
103
|
+
for (const operation of operations) {
|
|
104
|
+
const arr = operation.toUpperCase().split(" ");
|
|
105
|
+
operationsWithSeparator.push({ id: operation, label: operation, groupName: arr[0] });
|
|
106
|
+
}
|
|
107
|
+
return operationsWithSeparator.sort((operation1, operation2) => {
|
|
108
|
+
const arr1 = operation1.id.toLowerCase().split(" ");
|
|
109
|
+
const arr2 = operation2.id.toLowerCase().split(" ");
|
|
110
|
+
return arr1[0] < arr2[0] ? -1 : arr1[0] > arr2[0] ? 1 : arr1[1].localeCompare(arr2[1]);
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
function formatTelemetryValidationProperty(result) {
|
|
114
|
+
return result.type.toString() + ": " + result.content;
|
|
115
|
+
}
|
|
116
|
+
function logValidationResults(errors, warnings, context, isApiSpec, shouldLogWarning, shouldSkipTelemetry = false) {
|
|
117
|
+
if (!shouldSkipTelemetry) {
|
|
118
|
+
context.telemetryReporter.sendTelemetryEvent(isApiSpec ? "validate-api-spec" /* validateApiSpec */ : "validate-openai-plugin-manifest" /* validateOpenAiPluginManifest */, {
|
|
119
|
+
["validation-status" /* validationStatus */]: errors.length !== 0 ? "error" : warnings.length !== 0 ? "warning" : "success",
|
|
120
|
+
["validation-errors" /* validationErrors */]: errors
|
|
121
|
+
.map((error) => formatTelemetryValidationProperty(error))
|
|
122
|
+
.join(";"),
|
|
123
|
+
["validation-warnings" /* validationWarnings */]: warnings
|
|
124
|
+
.map((warn) => formatTelemetryValidationProperty(warn))
|
|
125
|
+
.join(";"),
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
if (errors.length === 0 && (warnings.length === 0 || !shouldLogWarning)) {
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
// errors > 0 || (warnings > 0 && shouldLogWarning)
|
|
132
|
+
const errorMessage = errors
|
|
133
|
+
.map((error) => {
|
|
134
|
+
return `${constant_1.SummaryConstant.Failed} ${error.content}`;
|
|
135
|
+
})
|
|
136
|
+
.join(os_1.EOL);
|
|
137
|
+
const warningMessage = shouldLogWarning
|
|
138
|
+
? warnings
|
|
139
|
+
.map((warning) => {
|
|
140
|
+
return `${constant_1.SummaryConstant.NotExecuted} ${warning.content}`;
|
|
141
|
+
})
|
|
142
|
+
.join(os_1.EOL)
|
|
143
|
+
: "";
|
|
144
|
+
const failed = errors.length;
|
|
145
|
+
const warns = warnings.length;
|
|
146
|
+
const summaryStr = [];
|
|
147
|
+
if (failed > 0) {
|
|
148
|
+
summaryStr.push(localizeUtils_1.getLocalizedString("core.copilotPlugin.validate.summary.validate.failed", failed));
|
|
149
|
+
}
|
|
150
|
+
if (warns > 0 && shouldLogWarning) {
|
|
151
|
+
summaryStr.push(localizeUtils_1.getLocalizedString("core.copilotPlugin.validate.summary.validate.warning", warns));
|
|
152
|
+
}
|
|
153
|
+
const outputMessage = isApiSpec
|
|
154
|
+
? os_1.EOL +
|
|
155
|
+
localizeUtils_1.getLocalizedString("core.copilotPlugin.validate.apiSpec.summary", summaryStr.join(", "), errorMessage, warningMessage)
|
|
156
|
+
: os_1.EOL +
|
|
157
|
+
localizeUtils_1.getLocalizedString("core.copilotPlugin.validate.openAIPluginManifest.summary", summaryStr.join(", "), errorMessage, warningMessage);
|
|
158
|
+
void context.logProvider.info(outputMessage);
|
|
159
|
+
}
|
|
160
|
+
exports.logValidationResults = logValidationResults;
|
|
161
|
+
function validateOpenAIPluginManifest(manifest) {
|
|
162
|
+
var _a, _b;
|
|
163
|
+
const errors = [];
|
|
164
|
+
if (!((_a = manifest.api) === null || _a === void 0 ? void 0 : _a.url)) {
|
|
165
|
+
errors.push({
|
|
166
|
+
type: OpenAIPluginManifestErrorType.ApiUrlMissing,
|
|
167
|
+
content: "Missing url in manifest",
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
if (((_b = manifest.auth) === null || _b === void 0 ? void 0 : _b.type) !== teamsfx_api_1.OpenAIManifestAuthType.None) {
|
|
171
|
+
errors.push({
|
|
172
|
+
type: OpenAIPluginManifestErrorType.AuthNotSupported,
|
|
173
|
+
content: "Auth type not supported",
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
return errors;
|
|
177
|
+
}
|
|
178
|
+
function generateScaffoldingSummary(specWarnings, teamsManifest, projectPath) {
|
|
179
|
+
const apiSpecWarningMessage = formatApiSpecValidationWarningMessage(specWarnings);
|
|
180
|
+
const manifestWarningResult = validateTeamsManifestLength(teamsManifest, projectPath);
|
|
181
|
+
const manifestWarningMessage = manifestWarningResult.map((warn) => {
|
|
182
|
+
return `${constant_1.SummaryConstant.NotExecuted} ${warn}`;
|
|
183
|
+
});
|
|
184
|
+
if (apiSpecWarningMessage || manifestWarningMessage.length) {
|
|
185
|
+
let details = "";
|
|
186
|
+
if (apiSpecWarningMessage) {
|
|
187
|
+
details += os_1.EOL + apiSpecWarningMessage;
|
|
188
|
+
}
|
|
189
|
+
if (manifestWarningMessage.length) {
|
|
190
|
+
details += os_1.EOL + manifestWarningMessage.join(os_1.EOL);
|
|
191
|
+
}
|
|
192
|
+
return localizeUtils_1.getLocalizedString("core.copilotPlugin.scaffold.summary", details);
|
|
193
|
+
}
|
|
194
|
+
else {
|
|
195
|
+
return "";
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
exports.generateScaffoldingSummary = generateScaffoldingSummary;
|
|
199
|
+
function formatApiSpecValidationWarningMessage(specWarnings) {
|
|
200
|
+
const apiSpecWarning = specWarnings.length > 0 && specWarnings[0].type === interfaces_1.WarningType.OperationIdMissing
|
|
201
|
+
? `${constant_1.SummaryConstant.NotExecuted} ${specWarnings[0].content}`
|
|
202
|
+
: "";
|
|
203
|
+
return apiSpecWarning
|
|
204
|
+
? localizeUtils_1.getLocalizedString("core.copilotPlugin.scaffold.summary.warning.operationId", apiSpecWarning, teamsfx_api_1.ManifestTemplateFileName)
|
|
205
|
+
: "";
|
|
206
|
+
}
|
|
207
|
+
function validateTeamsManifestLength(teamsManifest, projectPath) {
|
|
208
|
+
var _a, _b, _c;
|
|
209
|
+
const nameShortLimit = 30;
|
|
210
|
+
const nameFullLimit = 100;
|
|
211
|
+
const descriptionShortLimit = 80;
|
|
212
|
+
const descriptionFullLimit = 4000;
|
|
213
|
+
const warnings = [];
|
|
214
|
+
// validate name
|
|
215
|
+
if (teamsManifest.name.short.length > nameShortLimit) {
|
|
216
|
+
warnings.push(formatLengthExceedingErrorMessage("/name/short", nameShortLimit));
|
|
217
|
+
}
|
|
218
|
+
if (!!teamsManifest.name.full && ((_a = teamsManifest.name.full) === null || _a === void 0 ? void 0 : _a.length) > nameFullLimit) {
|
|
219
|
+
warnings.push(formatLengthExceedingErrorMessage("/name/full", nameFullLimit));
|
|
220
|
+
}
|
|
221
|
+
// validate description
|
|
222
|
+
if (teamsManifest.description.short.length > descriptionShortLimit) {
|
|
223
|
+
warnings.push(formatLengthExceedingErrorMessage("/description/short", descriptionShortLimit));
|
|
224
|
+
}
|
|
225
|
+
if (!((_b = teamsManifest.description.full) === null || _b === void 0 ? void 0 : _b.length)) {
|
|
226
|
+
warnings.push(localizeUtils_1.getLocalizedString("core.copilotPlugin.scaffold.summary.warning.teamsManifest.missingFullDescription") +
|
|
227
|
+
localizeUtils_1.getLocalizedString("core.copilotPlugin.scaffold.summary.warning.teamsManifest.mitigation", "full/description", path_1.default.join(teamsfx_api_1.AppPackageFolderName, teamsfx_api_1.ManifestTemplateFileName)));
|
|
228
|
+
}
|
|
229
|
+
if (teamsManifest.description.full.length > descriptionFullLimit) {
|
|
230
|
+
warnings.push(formatLengthExceedingErrorMessage("/description/full", descriptionFullLimit));
|
|
231
|
+
}
|
|
232
|
+
// validate card
|
|
233
|
+
if (teamsfx_api_1.ManifestUtil.parseCommonProperties(teamsManifest).isCopilotPlugin) {
|
|
234
|
+
const commands = ((_c = teamsManifest.composeExtensions) === null || _c === void 0 ? void 0 : _c[0]).commands;
|
|
235
|
+
for (const command of commands) {
|
|
236
|
+
if (command.type === "query") {
|
|
237
|
+
if (!command.apiResponseRenderingTemplate) {
|
|
238
|
+
warnings.push(localizeUtils_1.getLocalizedString("core.copilotPlugin.scaffold.summary.warning.teamsManifest.missingCardTemlate", "apiResponseRenderingTemplateFile", command.id) +
|
|
239
|
+
localizeUtils_1.getLocalizedString("core.copilotPlugin.scaffold.summary.warning.teamsManifest.missingCardTemlate.mitigation", teamsfx_api_1.AppPackageFolderName, `composeExtensions/commands/${command.id}/apiResponseRenderingTemplateFile`, path_1.default.join(teamsfx_api_1.AppPackageFolderName, teamsfx_api_1.ManifestTemplateFileName)));
|
|
240
|
+
}
|
|
241
|
+
else {
|
|
242
|
+
const cardPath = path_1.default.join(projectPath, teamsfx_api_1.AppPackageFolderName, command.apiResponseRenderingTemplate);
|
|
243
|
+
if (!fs_extra_1.default.existsSync(cardPath)) {
|
|
244
|
+
warnings.push(localizeUtils_1.getLocalizedString("core.copilotPlugin.scaffold.summary.warning.teamsAppPackagePackage.cannotFindCard", command.apiResponseRenderingTemplate, teamsfx_api_1.AppPackageFolderName) +
|
|
245
|
+
localizeUtils_1.getLocalizedString("core.copilotPlugin.scaffold.summary.warning.teamsAppPackagePackage.cannotFindCard.mitigation", command.apiResponseRenderingTemplate, teamsfx_api_1.AppPackageFolderName));
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
return warnings;
|
|
252
|
+
}
|
|
253
|
+
function formatLengthExceedingErrorMessage(field, limit) {
|
|
254
|
+
return (localizeUtils_1.getLocalizedString("core.copilotPlugin.scaffold.summary.warning.teamsManifest.lengthExceeding", field, limit.toString()) +
|
|
255
|
+
localizeUtils_1.getLocalizedString("core.copilotPlugin.scaffold.summary.warning.teamsManifest.mitigation", field, path_1.default.join(teamsfx_api_1.AppPackageFolderName, teamsfx_api_1.ManifestTemplateFileName)));
|
|
256
|
+
}
|
|
257
|
+
function convertSpecParserErrorToFxError(error) {
|
|
258
|
+
return new teamsfx_api_1.SystemError("SpecParser", error.errorType.toString(), error.message, error.message);
|
|
259
|
+
}
|
|
260
|
+
exports.convertSpecParserErrorToFxError = convertSpecParserErrorToFxError;
|
|
261
|
+
//# sourceMappingURL=helper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helper.js","sourceRoot":"","sources":["../../../../src/component/generator/copilotPlugin/helper.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC;;GAEG;AAEH,wDAiBgC;AAChC,0DAA6C;AAC7C,oCAAgD;AAChD,uEAKgD;AAChD,uEAAoE;AACpE,gEAA0B;AAC1B,iEAAmE;AACnE,0CAA2D;AAC3D,2BAAyB;AACzB,2DAA+D;AAC/D,6EAA0E;AAC1E,wDAAwB;AACxB,iFAA8E;AAE9E,MAAM,gBAAgB,GAAG,6BAA6B,CAAC;AACvD,MAAM,aAAa,GAAG,4BAA4B,CAAC;AAanD,IAAK,6BAGJ;AAHD,WAAK,6BAA6B;IAChC,uFAAsD,CAAA;IACtD,gFAA+C,CAAA;AACjD,CAAC,EAHI,6BAA6B,KAA7B,6BAA6B,QAGjC;AAcD,MAAa,0BAA0B;IACrC,MAAM,CAAC,KAAK,CAAC,wBAAwB,CAAC,KAAa;QACjD,IAAI,IAAI,GACN,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KA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CACxB,WAAW,EACX,kCAAoB,EACpB,OAAO,CAAC,4BAA4B,CACrC,CAAC;oBACF,IAAI,CAAC,kBAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;wBAC5B,QAAQ,CAAC,IAAI,CACX,kCAAkB,CAChB,mFAAmF,EACnF,OAAO,CAAC,4BAA4B,EACpC,kCAAoB,CACrB;4BACC,kCAAkB,CAChB,8FAA8F,EAC9F,OAAO,CAAC,4BAA4B,EACpC,kCAAoB,CACrB,CACJ,CAAC;qBACH;iBACF;aACF;SACF;KACF;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,SAAS,iCAAiC,CAAC,KAAa,EAAE,KAAa;IACrE,OAAO,CACL,kCAAkB,CAChB,2EAA2E,EAC3E,KAAK,EACL,KAAK,CAAC,QAAQ,EAAE,CACjB;QACD,kCAAkB,CAChB,sEAAsE,EACtE,KAAK,EACL,cAAI,CAAC,IAAI,CAAC,kCAAoB,EAAE,sCAAwB,CAAC,CAC1D,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,+BAA+B,CAAC,KAAsB;IACpE,OAAO,IAAI,yBAAW,CAAC,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC,QAAQ,EAAE,EAAE,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;AACjG,CAAC;AAFD,0EAEC"}
|
|
@@ -17,7 +17,7 @@ export declare class ParseUrlError extends BaseComponentInnerError {
|
|
|
17
17
|
constructor(url: string);
|
|
18
18
|
}
|
|
19
19
|
export declare class FetchZipFromUrlError extends BaseComponentInnerError {
|
|
20
|
-
constructor(url: string);
|
|
20
|
+
constructor(url: string, error?: Error);
|
|
21
21
|
}
|
|
22
22
|
export declare class MissKeyError extends BaseComponentInnerError {
|
|
23
23
|
constructor(keyName: string);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../src/component/generator/error.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAGlE,qBAAa,iBAAkB,SAAQ,KAAK;CAAG;AAE/C,qBAAa,wBAAyB,SAAQ,uBAAuB;;CASpE;AAED,qBAAa,UAAW,SAAQ,uBAAuB;;CAMtD;AAED,qBAAa,0BAA2B,SAAQ,uBAAuB;gBACzD,GAAG,EAAE,MAAM;CASxB;AAED,qBAAa,2BAA4B,SAAQ,uBAAuB;gBAC1D,GAAG,EAAE,MAAM;CASxB;AAED,qBAAa,aAAc,SAAQ,uBAAuB;gBAC5C,GAAG,EAAE,MAAM;CAGxB;AAED,qBAAa,oBAAqB,SAAQ,uBAAuB;gBACnD,GAAG,EAAE,MAAM;
|
|
1
|
+
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../src/component/generator/error.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAGlE,qBAAa,iBAAkB,SAAQ,KAAK;CAAG;AAE/C,qBAAa,wBAAyB,SAAQ,uBAAuB;;CASpE;AAED,qBAAa,UAAW,SAAQ,uBAAuB;;CAMtD;AAED,qBAAa,0BAA2B,SAAQ,uBAAuB;gBACzD,GAAG,EAAE,MAAM;CASxB;AAED,qBAAa,2BAA4B,SAAQ,uBAAuB;gBAC1D,GAAG,EAAE,MAAM;CASxB;AAED,qBAAa,aAAc,SAAQ,uBAAuB;gBAC5C,GAAG,EAAE,MAAM;CAGxB;AAED,qBAAa,oBAAqB,SAAQ,uBAAuB;gBACnD,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK;CAavC;AAED,qBAAa,YAAa,SAAQ,uBAAuB;gBAC3C,OAAO,EAAE,MAAM;CAG5B"}
|
|
@@ -41,8 +41,8 @@ class ParseUrlError extends componentError_1.BaseComponentInnerError {
|
|
|
41
41
|
}
|
|
42
42
|
exports.ParseUrlError = ParseUrlError;
|
|
43
43
|
class FetchZipFromUrlError extends componentError_1.BaseComponentInnerError {
|
|
44
|
-
constructor(url) {
|
|
45
|
-
super(constant_1.errorSource, "SystemError", "FetchZipFromUrlError", "error.generator.FetchZipFromUrlError", [url], ["plugins.frontend.checkNetworkTip"]);
|
|
44
|
+
constructor(url, error) {
|
|
45
|
+
super(constant_1.errorSource, "SystemError", "FetchZipFromUrlError", "error.generator.FetchZipFromUrlError", [url], ["plugins.frontend.checkNetworkTip"], undefined, undefined, error);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
exports.FetchZipFromUrlError = FetchZipFromUrlError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.js","sourceRoot":"","sources":["../../../src/component/generator/error.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,4DAAkE;AAClE,yCAAyC;AAEzC,MAAa,iBAAkB,SAAQ,KAAK;CAAG;AAA/C,8CAA+C;AAE/C,MAAa,wBAAyB,SAAQ,wCAAuB;IACnE;QACE,KAAK,CACH,sBAAW,EACX,aAAa,EACb,0BAA0B,EAC1B,0CAA0C,CAC3C,CAAC;IACJ,CAAC;CACF;AATD,4DASC;AAED,MAAa,UAAW,SAAQ,wCAAuB;IACrD;QACE,KAAK,CAAC,sBAAW,EAAE,aAAa,EAAE,YAAY,EAAE,4BAA4B,EAAE,SAAS,EAAE;YACvF,wCAAwC;SACzC,CAAC,CAAC;IACL,CAAC;CACF;AAND,gCAMC;AAED,MAAa,0BAA2B,SAAQ,wCAAuB;IACrE,YAAY,GAAW;QACrB,KAAK,CACH,sBAAW,EACX,WAAW,EACX,4BAA4B,EAC5B,4CAA4C,EAC5C,CAAC,GAAG,CAAC,CACN,CAAC;IACJ,CAAC;CACF;AAVD,gEAUC;AAED,MAAa,2BAA4B,SAAQ,wCAAuB;IACtE,YAAY,GAAW;QACrB,KAAK,CACH,sBAAW,EACX,WAAW,EACX,6BAA6B,EAC7B,6CAA6C,EAC7C,CAAC,GAAG,CAAC,CACN,CAAC;IACJ,CAAC;CACF;AAVD,kEAUC;AAED,MAAa,aAAc,SAAQ,wCAAuB;IACxD,YAAY,GAAW;QACrB,KAAK,CAAC,sBAAW,EAAE,aAAa,EAAE,eAAe,EAAE,+BAA+B,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC7F,CAAC;CACF;AAJD,sCAIC;AAED,MAAa,oBAAqB,SAAQ,wCAAuB;IAC/D,YAAY,GAAW;
|
|
1
|
+
{"version":3,"file":"error.js","sourceRoot":"","sources":["../../../src/component/generator/error.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,4DAAkE;AAClE,yCAAyC;AAEzC,MAAa,iBAAkB,SAAQ,KAAK;CAAG;AAA/C,8CAA+C;AAE/C,MAAa,wBAAyB,SAAQ,wCAAuB;IACnE;QACE,KAAK,CACH,sBAAW,EACX,aAAa,EACb,0BAA0B,EAC1B,0CAA0C,CAC3C,CAAC;IACJ,CAAC;CACF;AATD,4DASC;AAED,MAAa,UAAW,SAAQ,wCAAuB;IACrD;QACE,KAAK,CAAC,sBAAW,EAAE,aAAa,EAAE,YAAY,EAAE,4BAA4B,EAAE,SAAS,EAAE;YACvF,wCAAwC;SACzC,CAAC,CAAC;IACL,CAAC;CACF;AAND,gCAMC;AAED,MAAa,0BAA2B,SAAQ,wCAAuB;IACrE,YAAY,GAAW;QACrB,KAAK,CACH,sBAAW,EACX,WAAW,EACX,4BAA4B,EAC5B,4CAA4C,EAC5C,CAAC,GAAG,CAAC,CACN,CAAC;IACJ,CAAC;CACF;AAVD,gEAUC;AAED,MAAa,2BAA4B,SAAQ,wCAAuB;IACtE,YAAY,GAAW;QACrB,KAAK,CACH,sBAAW,EACX,WAAW,EACX,6BAA6B,EAC7B,6CAA6C,EAC7C,CAAC,GAAG,CAAC,CACN,CAAC;IACJ,CAAC;CACF;AAVD,kEAUC;AAED,MAAa,aAAc,SAAQ,wCAAuB;IACxD,YAAY,GAAW;QACrB,KAAK,CAAC,sBAAW,EAAE,aAAa,EAAE,eAAe,EAAE,+BAA+B,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC7F,CAAC;CACF;AAJD,sCAIC;AAED,MAAa,oBAAqB,SAAQ,wCAAuB;IAC/D,YAAY,GAAW,EAAE,KAAa;QACpC,KAAK,CACH,sBAAW,EACX,aAAa,EACb,sBAAsB,EACtB,sCAAsC,EACtC,CAAC,GAAG,CAAC,EACL,CAAC,kCAAkC,CAAC,EACpC,SAAS,EACT,SAAS,EACT,KAAK,CACN,CAAC;IACJ,CAAC;CACF;AAdD,oDAcC;AAED,MAAa,YAAa,SAAQ,wCAAuB;IACvD,YAAY,OAAe;QACzB,KAAK,CAAC,sBAAW,EAAE,aAAa,EAAE,cAAc,EAAE,8BAA8B,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAC/F,CAAC;CACF;AAJD,oCAIC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../../src/component/generator/generator.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAM,MAAM,wBAAwB,CAAC;AAOtE,OAAO,EAAE,aAAa,EAAqB,MAAM,iCAAiC,CAAC;AAenF,OAAO,EAEL,eAAe,EAEf,gBAAgB,EAEjB,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../../src/component/generator/generator.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAM,MAAM,wBAAwB,CAAC;AAOtE,OAAO,EAAE,aAAa,EAAqB,MAAM,iCAAiC,CAAC;AAenF,OAAO,EAEL,eAAe,EAEf,gBAAgB,EAEjB,MAAM,mBAAmB,CAAC;AAG3B,qBAAa,SAAS;WACN,mBAAmB,CAC/B,OAAO,EAAE,MAAM,EACf,qBAAqB,CAAC,EAAE,MAAM,GAC7B;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,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