@microsoft/teamsfx-core 3.1.0 → 3.1.1
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/client/aadAppClient.d.ts +0 -6
- package/build/client/aadAppClient.d.ts.map +1 -1
- package/build/client/aadAppClient.js +8 -6
- package/build/client/aadAppClient.js.map +1 -1
- package/build/client/graphClient.d.ts +4 -4
- package/build/client/graphClient.d.ts.map +1 -1
- package/build/client/graphClient.js +91 -23
- package/build/client/graphClient.js.map +1 -1
- package/build/client/teamsDevPortalClient.d.ts +2 -6
- package/build/client/teamsDevPortalClient.d.ts.map +1 -1
- package/build/client/teamsDevPortalClient.js +97 -120
- package/build/client/teamsDevPortalClient.js.map +1 -1
- package/build/client/teamsGraphClient.d.ts +20 -0
- package/build/client/teamsGraphClient.d.ts.map +1 -0
- package/build/client/teamsGraphClient.js +152 -0
- package/build/client/teamsGraphClient.js.map +1 -0
- package/build/common/accountUtils.d.ts +3 -2
- package/build/common/accountUtils.d.ts.map +1 -1
- package/build/common/accountUtils.js +7 -2
- package/build/common/accountUtils.js.map +1 -1
- package/build/common/constants.d.ts +5 -1
- package/build/common/constants.d.ts.map +1 -1
- package/build/common/constants.js +20 -5
- package/build/common/constants.js.map +1 -1
- package/build/common/daSpecParser.d.ts +2 -1
- package/build/common/daSpecParser.d.ts.map +1 -1
- package/build/common/daSpecParser.js +214 -21
- package/build/common/daSpecParser.js.map +1 -1
- package/build/common/featureFlags.d.ts +22 -5
- package/build/common/featureFlags.d.ts.map +1 -1
- package/build/common/featureFlags.js +40 -9
- package/build/common/featureFlags.js.map +1 -1
- package/build/common/fetchHelper.d.ts.map +1 -1
- package/build/common/fetchHelper.js +41 -3
- package/build/common/fetchHelper.js.map +1 -1
- package/build/common/globalVars.d.ts +1 -1
- package/build/common/globalVars.d.ts.map +1 -1
- package/build/common/globalVars.js.map +1 -1
- package/build/common/httpProxy.d.ts +21 -0
- package/build/common/httpProxy.d.ts.map +1 -0
- package/build/common/httpProxy.js +117 -0
- package/build/common/httpProxy.js.map +1 -0
- package/build/common/kiotaClient.d.ts +3 -3
- package/build/common/kiotaClient.d.ts.map +1 -1
- package/build/common/kiotaClient.js +10 -10
- package/build/common/kiotaClient.js.map +1 -1
- package/build/common/mcpToolFetcher.d.ts +90 -0
- package/build/common/mcpToolFetcher.d.ts.map +1 -0
- package/build/common/mcpToolFetcher.js +404 -0
- package/build/common/mcpToolFetcher.js.map +1 -0
- package/build/common/odrProvider.d.ts +43 -0
- package/build/common/odrProvider.d.ts.map +1 -0
- package/build/common/odrProvider.js +154 -0
- package/build/common/odrProvider.js.map +1 -0
- package/build/common/openApiParserOptions.d.ts +3 -0
- package/build/common/openApiParserOptions.d.ts.map +1 -0
- package/build/common/openApiParserOptions.js +61 -0
- package/build/common/openApiParserOptions.js.map +1 -0
- package/build/common/projectSettingsHelper.d.ts +0 -2
- package/build/common/projectSettingsHelper.d.ts.map +1 -1
- package/build/common/projectSettingsHelper.js +1 -59
- package/build/common/projectSettingsHelper.js.map +1 -1
- package/build/common/retryHandler.d.ts +5 -0
- package/build/common/retryHandler.d.ts.map +1 -0
- package/build/common/retryHandler.js +27 -0
- package/build/common/retryHandler.js.map +1 -0
- package/build/common/samples.d.ts +1 -1
- package/build/common/samples.js +1 -1
- package/build/common/secretmasker/dict.d.ts.map +1 -1
- package/build/common/secretmasker/dict.js +5 -2
- package/build/common/secretmasker/dict.js.map +1 -1
- package/build/common/secretmasker/feature.js.map +1 -1
- package/build/common/teamsGraphApiNames.d.ts +10 -0
- package/build/common/teamsGraphApiNames.d.ts.map +1 -0
- package/build/common/teamsGraphApiNames.js +16 -0
- package/build/common/teamsGraphApiNames.js.map +1 -0
- package/build/common/telemetry.d.ts +6 -15
- package/build/common/telemetry.d.ts.map +1 -1
- package/build/common/telemetry.js +9 -20
- package/build/common/telemetry.js.map +1 -1
- package/build/common/templates-config.json +10 -3
- package/build/common/tools.d.ts +1 -1
- package/build/common/tools.d.ts.map +1 -1
- package/build/common/tools.js +6 -6
- package/build/common/tools.js.map +1 -1
- package/build/common/wrappedAxiosClient.d.ts +11 -2
- package/build/common/wrappedAxiosClient.d.ts.map +1 -1
- package/build/common/wrappedAxiosClient.js +147 -59
- package/build/common/wrappedAxiosClient.js.map +1 -1
- package/build/component/configManager/actionInjector.d.ts +16 -1
- package/build/component/configManager/actionInjector.d.ts.map +1 -1
- package/build/component/configManager/actionInjector.js +106 -1
- package/build/component/configManager/actionInjector.js.map +1 -1
- package/build/component/configManager/lifecycle.d.ts.map +1 -1
- package/build/component/configManager/lifecycle.js +9 -0
- package/build/component/configManager/lifecycle.js.map +1 -1
- package/build/component/configManager/parser.js.map +1 -1
- package/build/component/configManager/validator.d.ts.map +1 -1
- package/build/component/configManager/validator.js +2 -0
- package/build/component/configManager/validator.js.map +1 -1
- package/build/component/coordinator/index.d.ts.map +1 -1
- package/build/component/coordinator/index.js +13 -11
- package/build/component/coordinator/index.js.map +1 -1
- package/build/component/deps-checker/internal/dotnetChecker.js.map +1 -1
- package/build/component/deps-checker/internal/funcToolChecker.js +6 -7
- package/build/component/deps-checker/internal/funcToolChecker.js.map +1 -1
- package/build/component/deps-checker/internal/nodeChecker.js +1 -1
- package/build/component/deps-checker/internal/nodeChecker.js.map +1 -1
- package/build/component/deps-checker/internal/testToolChecker.js +13 -13
- package/build/component/deps-checker/internal/testToolChecker.js.map +1 -1
- package/build/component/developerPortalScaffoldUtils.d.ts.map +1 -1
- package/build/component/developerPortalScaffoldUtils.js +5 -5
- package/build/component/developerPortalScaffoldUtils.js.map +1 -1
- package/build/component/driver/aad/utility/aadManifestHelper.d.ts +1 -1
- package/build/component/driver/aad/utility/aadManifestHelper.d.ts.map +1 -1
- package/build/component/driver/aad/utility/aadManifestHelper.js +7 -4
- package/build/component/driver/aad/utility/aadManifestHelper.js.map +1 -1
- package/build/component/driver/add/addWebPart.js +3 -3
- package/build/component/driver/add/addWebPart.js.map +1 -1
- package/build/component/driver/apiKey/create.d.ts.map +1 -1
- package/build/component/driver/apiKey/create.js +4 -4
- package/build/component/driver/apiKey/create.js.map +1 -1
- package/build/component/driver/apiKey/update.d.ts.map +1 -1
- package/build/component/driver/apiKey/update.js +4 -4
- package/build/component/driver/apiKey/update.js.map +1 -1
- package/build/component/driver/arm/util/handleError.js +5 -4
- package/build/component/driver/arm/util/handleError.js.map +1 -1
- package/build/component/driver/copilotAgent/interfaces/PublishArgs.d.ts +14 -0
- package/build/component/driver/copilotAgent/interfaces/PublishArgs.d.ts.map +1 -0
- package/build/component/driver/copilotAgent/interfaces/PublishArgs.js +5 -0
- package/build/component/driver/copilotAgent/interfaces/PublishArgs.js.map +1 -0
- package/build/component/driver/copilotAgent/publish.d.ts +16 -0
- package/build/component/driver/copilotAgent/publish.d.ts.map +1 -0
- package/build/component/driver/copilotAgent/publish.js +175 -0
- package/build/component/driver/copilotAgent/publish.js.map +1 -0
- package/build/component/driver/dcr/create.d.ts +10 -0
- package/build/component/driver/dcr/create.d.ts.map +1 -0
- package/build/component/driver/dcr/create.js +142 -0
- package/build/component/driver/dcr/create.js.map +1 -0
- package/build/component/driver/dcr/error/dcrNameTooLong.d.ts +5 -0
- package/build/component/driver/dcr/error/dcrNameTooLong.d.ts.map +1 -0
- package/build/component/driver/dcr/error/dcrNameTooLong.js +21 -0
- package/build/component/driver/dcr/error/dcrNameTooLong.js.map +1 -0
- package/build/component/driver/dcr/error/dcrWellKnownInvalid.d.ts +5 -0
- package/build/component/driver/dcr/error/dcrWellKnownInvalid.d.ts.map +1 -0
- package/build/component/driver/dcr/error/dcrWellKnownInvalid.js +21 -0
- package/build/component/driver/dcr/error/dcrWellKnownInvalid.js.map +1 -0
- package/build/component/driver/dcr/interface/createDcrArgs.d.ts +9 -0
- package/build/component/driver/dcr/interface/createDcrArgs.d.ts.map +1 -0
- package/build/component/driver/dcr/interface/createDcrArgs.js +5 -0
- package/build/component/driver/dcr/interface/createDcrArgs.js.map +1 -0
- package/build/component/driver/dcr/interface/createDcrOutputs.d.ts +7 -0
- package/build/component/driver/dcr/interface/createDcrOutputs.d.ts.map +1 -0
- package/build/component/driver/dcr/interface/createDcrOutputs.js +10 -0
- package/build/component/driver/dcr/interface/createDcrOutputs.js.map +1 -0
- package/build/component/driver/dcr/utility/constants.d.ts +7 -0
- package/build/component/driver/dcr/utility/constants.d.ts.map +1 -0
- package/build/component/driver/dcr/utility/constants.js +12 -0
- package/build/component/driver/dcr/utility/constants.js.map +1 -0
- package/build/component/driver/deploy/azure/azureStaticWebAppGetDeploymentTokenDriver.d.ts +3 -1
- package/build/component/driver/deploy/azure/azureStaticWebAppGetDeploymentTokenDriver.d.ts.map +1 -1
- package/build/component/driver/deploy/azure/azureStaticWebAppGetDeploymentTokenDriver.js +12 -9
- package/build/component/driver/deploy/azure/azureStaticWebAppGetDeploymentTokenDriver.js.map +1 -1
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.d.ts +3 -0
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.d.ts.map +1 -1
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js +38 -3
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js.map +1 -1
- package/build/component/driver/devTool/httpClient.d.ts +4 -0
- package/build/component/driver/devTool/httpClient.d.ts.map +1 -1
- package/build/component/driver/devTool/httpClient.js +6 -3
- package/build/component/driver/devTool/httpClient.js.map +1 -1
- package/build/component/driver/index.d.ts +2 -0
- package/build/component/driver/index.d.ts.map +1 -1
- package/build/component/driver/index.js +2 -0
- package/build/component/driver/index.js.map +1 -1
- package/build/component/driver/m365/acquire.d.ts.map +1 -1
- package/build/component/driver/m365/acquire.js +4 -3
- package/build/component/driver/m365/acquire.js.map +1 -1
- package/build/component/driver/oauth/create.d.ts.map +1 -1
- package/build/component/driver/oauth/create.js +5 -4
- package/build/component/driver/oauth/create.js.map +1 -1
- package/build/component/driver/oauth/update.d.ts.map +1 -1
- package/build/component/driver/oauth/update.js +5 -5
- package/build/component/driver/oauth/update.js.map +1 -1
- package/build/component/driver/script/scriptDriver.d.ts.map +1 -1
- package/build/component/driver/script/scriptDriver.js +3 -2
- package/build/component/driver/script/scriptDriver.js.map +1 -1
- package/build/component/driver/share/utils.d.ts.map +1 -1
- package/build/component/driver/share/utils.js +9 -7
- package/build/component/driver/share/utils.js.map +1 -1
- package/build/component/driver/teamsApp/appStudio.d.ts.map +1 -1
- package/build/component/driver/teamsApp/appStudio.js +1 -1
- package/build/component/driver/teamsApp/appStudio.js.map +1 -1
- package/build/component/driver/teamsApp/configure.d.ts.map +1 -1
- package/build/component/driver/teamsApp/configure.js +7 -0
- package/build/component/driver/teamsApp/configure.js.map +1 -1
- package/build/component/driver/teamsApp/constants.d.ts +9 -3
- package/build/component/driver/teamsApp/constants.d.ts.map +1 -1
- package/build/component/driver/teamsApp/constants.js +11 -4
- package/build/component/driver/teamsApp/constants.js.map +1 -1
- package/build/component/driver/teamsApp/create.d.ts.map +1 -1
- package/build/component/driver/teamsApp/create.js +19 -1
- package/build/component/driver/teamsApp/create.js.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.d.ts +3 -0
- package/build/component/driver/teamsApp/createAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.js +130 -11
- package/build/component/driver/teamsApp/createAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/interfaces/DcrRegistration.d.ts +10 -0
- package/build/component/driver/teamsApp/interfaces/DcrRegistration.d.ts.map +1 -0
- package/build/component/driver/teamsApp/interfaces/DcrRegistration.js +5 -0
- package/build/component/driver/teamsApp/interfaces/DcrRegistration.js.map +1 -0
- package/build/component/driver/teamsApp/interfaces/OauthRegistration.d.ts +4 -0
- package/build/component/driver/teamsApp/interfaces/OauthRegistration.d.ts.map +1 -1
- package/build/component/driver/teamsApp/interfaces/OauthRegistration.js.map +1 -1
- package/build/component/driver/teamsApp/interfaces/ValidationResult.d.ts +6 -0
- package/build/component/driver/teamsApp/interfaces/ValidationResult.d.ts.map +1 -1
- package/build/component/driver/teamsApp/publishAppPackage.d.ts +0 -2
- package/build/component/driver/teamsApp/publishAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/publishAppPackage.js +19 -60
- package/build/component/driver/teamsApp/publishAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/syncManifest.d.ts +3 -3
- package/build/component/driver/teamsApp/syncManifest.d.ts.map +1 -1
- package/build/component/driver/teamsApp/syncManifest.js +8 -8
- package/build/component/driver/teamsApp/syncManifest.js.map +1 -1
- package/build/component/driver/teamsApp/teamsappMgr.d.ts +4 -0
- package/build/component/driver/teamsApp/teamsappMgr.d.ts.map +1 -1
- package/build/component/driver/teamsApp/teamsappMgr.js +6 -3
- package/build/component/driver/teamsApp/teamsappMgr.js.map +1 -1
- package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.d.ts +2 -0
- package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.js +120 -5
- package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.js.map +1 -1
- package/build/component/driver/teamsApp/utils/ManifestUtils.d.ts +1 -1
- package/build/component/driver/teamsApp/utils/ManifestUtils.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/ManifestUtils.js +10 -2
- package/build/component/driver/teamsApp/utils/ManifestUtils.js.map +1 -1
- package/build/component/driver/teamsApp/utils/McpCertVerification.d.ts +17 -0
- package/build/component/driver/teamsApp/utils/McpCertVerification.d.ts.map +1 -0
- package/build/component/driver/teamsApp/utils/McpCertVerification.js +72 -0
- package/build/component/driver/teamsApp/utils/McpCertVerification.js.map +1 -0
- package/build/component/driver/teamsApp/utils/PluginManifestUtils.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/PluginManifestUtils.js +1 -1
- package/build/component/driver/teamsApp/utils/PluginManifestUtils.js.map +1 -1
- package/build/component/driver/teamsApp/utils/telemetry.d.ts +1 -0
- package/build/component/driver/teamsApp/utils/telemetry.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/telemetry.js +1 -0
- package/build/component/driver/teamsApp/utils/telemetry.js.map +1 -1
- package/build/component/driver/teamsApp/utils/utils.d.ts +1 -4
- package/build/component/driver/teamsApp/utils/utils.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/utils.js +3 -25
- package/build/component/driver/teamsApp/utils/utils.js.map +1 -1
- package/build/component/driver/teamsApp/validate.d.ts.map +1 -1
- package/build/component/driver/teamsApp/validate.js +16 -5
- package/build/component/driver/teamsApp/validate.js.map +1 -1
- package/build/component/driver/teamsApp/validateAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/validateAppPackage.js +7 -0
- package/build/component/driver/teamsApp/validateAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/validateTestCases.d.ts.map +1 -1
- package/build/component/driver/typeSpec/compile.d.ts.map +1 -1
- package/build/component/driver/typeSpec/compile.js +23 -7
- package/build/component/driver/typeSpec/compile.js.map +1 -1
- package/build/component/driver/typeSpec/error/typeSpecCompileError.d.ts +5 -0
- package/build/component/driver/typeSpec/error/typeSpecCompileError.d.ts.map +1 -0
- package/build/component/driver/typeSpec/error/typeSpecCompileError.js +21 -0
- package/build/component/driver/typeSpec/error/typeSpecCompileError.js.map +1 -0
- package/build/component/generator/combinedProject/generator.d.ts.map +1 -1
- package/build/component/generator/combinedProject/generator.js +9 -1
- package/build/component/generator/combinedProject/generator.js.map +1 -1
- package/build/component/generator/declarativeAgent/generator.d.ts +7 -0
- package/build/component/generator/declarativeAgent/generator.d.ts.map +1 -1
- package/build/component/generator/declarativeAgent/generator.js +23 -15
- package/build/component/generator/declarativeAgent/generator.js.map +1 -1
- package/build/component/generator/declarativeAgent/helper.d.ts +52 -0
- package/build/component/generator/declarativeAgent/helper.d.ts.map +1 -1
- package/build/component/generator/declarativeAgent/helper.js +469 -63
- package/build/component/generator/declarativeAgent/helper.js.map +1 -1
- package/build/component/generator/defaultGenerator.d.ts.map +1 -1
- package/build/component/generator/defaultGenerator.js +17 -1
- package/build/component/generator/defaultGenerator.js.map +1 -1
- package/build/component/generator/error.d.ts +3 -0
- package/build/component/generator/error.d.ts.map +1 -1
- package/build/component/generator/error.js +7 -1
- package/build/component/generator/error.js.map +1 -1
- package/build/component/generator/generatorAction.d.ts +12 -1
- package/build/component/generator/generatorAction.d.ts.map +1 -1
- package/build/component/generator/generatorAction.js +16 -8
- package/build/component/generator/generatorAction.js.map +1 -1
- package/build/component/generator/officeAddin/generator.d.ts +13 -0
- package/build/component/generator/officeAddin/generator.d.ts.map +1 -1
- package/build/component/generator/officeAddin/generator.js +159 -35
- package/build/component/generator/officeAddin/generator.js.map +1 -1
- package/build/component/generator/officeAddin/helperMethods.d.ts +4 -0
- package/build/component/generator/officeAddin/helperMethods.d.ts.map +1 -1
- package/build/component/generator/officeAddin/helperMethods.js +6 -3
- package/build/component/generator/officeAddin/helperMethods.js.map +1 -1
- package/build/component/generator/openApiSpec/customEngineAgentGenerator.d.ts +8 -0
- package/build/component/generator/openApiSpec/customEngineAgentGenerator.d.ts.map +1 -1
- package/build/component/generator/openApiSpec/customEngineAgentGenerator.js +9 -4
- package/build/component/generator/openApiSpec/customEngineAgentGenerator.js.map +1 -1
- package/build/component/generator/openApiSpec/helper.d.ts +2 -3
- package/build/component/generator/openApiSpec/helper.d.ts.map +1 -1
- package/build/component/generator/openApiSpec/helper.js +19 -57
- package/build/component/generator/openApiSpec/helper.js.map +1 -1
- package/build/component/generator/openPlugin/authorParser.d.ts +8 -0
- package/build/component/generator/openPlugin/authorParser.d.ts.map +1 -0
- package/build/component/generator/openPlugin/authorParser.js +49 -0
- package/build/component/generator/openPlugin/authorParser.js.map +1 -0
- package/build/component/generator/openPlugin/deterministicId.d.ts +6 -0
- package/build/component/generator/openPlugin/deterministicId.d.ts.map +1 -0
- package/build/component/generator/openPlugin/deterministicId.js +31 -0
- package/build/component/generator/openPlugin/deterministicId.js.map +1 -0
- package/build/component/generator/openPlugin/exporter.d.ts +18 -0
- package/build/component/generator/openPlugin/exporter.d.ts.map +1 -0
- package/build/component/generator/openPlugin/exporter.js +233 -0
- package/build/component/generator/openPlugin/exporter.js.map +1 -0
- package/build/component/generator/openPlugin/iconStrategy.d.ts +8 -0
- package/build/component/generator/openPlugin/iconStrategy.d.ts.map +1 -0
- package/build/component/generator/openPlugin/iconStrategy.js +62 -0
- package/build/component/generator/openPlugin/iconStrategy.js.map +1 -0
- package/build/component/generator/openPlugin/importer.d.ts +25 -0
- package/build/component/generator/openPlugin/importer.d.ts.map +1 -0
- package/build/component/generator/openPlugin/importer.js +140 -0
- package/build/component/generator/openPlugin/importer.js.map +1 -0
- package/build/component/generator/openPlugin/mapper.d.ts +6 -0
- package/build/component/generator/openPlugin/mapper.d.ts.map +1 -0
- package/build/component/generator/openPlugin/mapper.js +141 -0
- package/build/component/generator/openPlugin/mapper.js.map +1 -0
- package/build/component/generator/openPlugin/parser.d.ts +3 -0
- package/build/component/generator/openPlugin/parser.d.ts.map +1 -0
- package/build/component/generator/openPlugin/parser.js +153 -0
- package/build/component/generator/openPlugin/parser.js.map +1 -0
- package/build/component/generator/openPlugin/placeholderPng.d.ts +6 -0
- package/build/component/generator/openPlugin/placeholderPng.d.ts.map +1 -0
- package/build/component/generator/openPlugin/placeholderPng.js +71 -0
- package/build/component/generator/openPlugin/placeholderPng.js.map +1 -0
- package/build/component/generator/openPlugin/textUtils.d.ts +12 -0
- package/build/component/generator/openPlugin/textUtils.d.ts.map +1 -0
- package/build/component/generator/openPlugin/textUtils.js +43 -0
- package/build/component/generator/openPlugin/textUtils.js.map +1 -0
- package/build/component/generator/openPlugin/types.d.ts +128 -0
- package/build/component/generator/openPlugin/types.d.ts.map +1 -0
- package/build/component/generator/openPlugin/types.js.map +1 -0
- package/build/component/generator/other/tdpGenerator.d.ts +1 -0
- package/build/component/generator/other/tdpGenerator.d.ts.map +1 -1
- package/build/component/generator/other/tdpGenerator.js +24 -2
- package/build/component/generator/other/tdpGenerator.js.map +1 -1
- package/build/component/generator/spfx/utils/constants.d.ts +1 -1
- package/build/component/generator/spfx/utils/constants.js +1 -1
- package/build/component/generator/spfx/utils/utils.js +1 -1
- package/build/component/generator/spfx/utils/utils.js.map +1 -1
- package/build/component/generator/templateHelper.d.ts +17 -2
- package/build/component/generator/templateHelper.d.ts.map +1 -1
- package/build/component/generator/templateHelper.js +36 -3
- package/build/component/generator/templateHelper.js.map +1 -1
- package/build/component/generator/templates/metadata/index.d.ts +15 -0
- package/build/component/generator/templates/metadata/index.d.ts.map +1 -1
- package/build/component/generator/templates/metadata/index.js +51 -5
- package/build/component/generator/templates/metadata/index.js.map +1 -1
- package/build/component/generator/templates/templateNames.d.ts +6 -3
- package/build/component/generator/templates/templateNames.d.ts.map +1 -1
- package/build/component/generator/templates/templateNames.js +7 -2
- package/build/component/generator/templates/templateNames.js.map +1 -1
- package/build/component/generator/templates/templateReplaceMap.d.ts.map +1 -1
- package/build/component/generator/templates/templateReplaceMap.js +4 -1
- package/build/component/generator/templates/templateReplaceMap.js.map +1 -1
- package/build/component/generator/utils.d.ts.map +1 -1
- package/build/component/generator/utils.js +14 -8
- package/build/component/generator/utils.js.map +1 -1
- package/build/component/generator/v4MetadataSource.d.ts +16 -0
- package/build/component/generator/v4MetadataSource.d.ts.map +1 -0
- package/build/component/generator/v4MetadataSource.js +35 -0
- package/build/component/generator/v4MetadataSource.js.map +1 -0
- package/build/component/generator/v4TemplateBridge.d.ts +55 -0
- package/build/component/generator/v4TemplateBridge.d.ts.map +1 -0
- package/build/component/generator/v4TemplateBridge.js +224 -0
- package/build/component/generator/v4TemplateBridge.js.map +1 -0
- package/build/component/local/localCertificateManager.d.ts +16 -1
- package/build/component/local/localCertificateManager.d.ts.map +1 -1
- package/build/component/local/localCertificateManager.js +47 -31
- package/build/component/local/localCertificateManager.js.map +1 -1
- package/build/component/m365/constants.d.ts +2 -1
- package/build/component/m365/constants.d.ts.map +1 -1
- package/build/component/m365/constants.js +1 -0
- package/build/component/m365/constants.js.map +1 -1
- package/build/component/m365/launchHelper.d.ts.map +1 -1
- package/build/component/m365/launchHelper.js +7 -2
- package/build/component/m365/launchHelper.js.map +1 -1
- package/build/component/m365/packageService.d.ts +7 -0
- package/build/component/m365/packageService.d.ts.map +1 -1
- package/build/component/m365/packageService.js +79 -13
- package/build/component/m365/packageService.js.map +1 -1
- package/build/component/m365/serviceConstant.d.ts.map +1 -1
- package/build/component/m365/serviceConstant.js +24 -4
- package/build/component/m365/serviceConstant.js.map +1 -1
- package/build/component/middleware/envMW.d.ts.map +1 -1
- package/build/component/middleware/envMW.js +5 -0
- package/build/component/middleware/envMW.js.map +1 -1
- package/build/component/provisionUtils.d.ts.map +1 -1
- package/build/component/provisionUtils.js +5 -2
- package/build/component/provisionUtils.js.map +1 -1
- package/build/component/utils/ResourceGroupHelper.d.ts +4 -0
- package/build/component/utils/ResourceGroupHelper.d.ts.map +1 -1
- package/build/component/utils/ResourceGroupHelper.js +8 -4
- package/build/component/utils/ResourceGroupHelper.js.map +1 -1
- package/build/component/utils/charsetUtils.js +3 -3
- package/build/component/utils/charsetUtils.js.map +1 -1
- package/build/component/utils/envUtil.d.ts.map +1 -1
- package/build/component/utils/envUtil.js +2 -2
- package/build/component/utils/envUtil.js.map +1 -1
- package/build/component/utils/fileOperation.d.ts +9 -0
- package/build/component/utils/fileOperation.d.ts.map +1 -1
- package/build/component/utils/fileOperation.js +31 -17
- package/build/component/utils/fileOperation.js.map +1 -1
- package/build/component/utils/mcpAuthScaffolder.d.ts +137 -0
- package/build/component/utils/mcpAuthScaffolder.d.ts.map +1 -0
- package/build/component/utils/mcpAuthScaffolder.js +200 -0
- package/build/component/utils/mcpAuthScaffolder.js.map +1 -0
- package/build/component/utils/mcpToolFetcher.d.ts +2 -0
- package/build/component/utils/mcpToolFetcher.d.ts.map +1 -0
- package/build/component/utils/mcpToolFetcher.js +7 -0
- package/build/component/utils/mcpToolFetcher.js.map +1 -0
- package/build/component/utils/metadataGraphPermssion.d.ts +4 -0
- package/build/component/utils/metadataGraphPermssion.d.ts.map +1 -1
- package/build/component/utils/metadataGraphPermssion.js +7 -4
- package/build/component/utils/metadataGraphPermssion.js.map +1 -1
- package/build/component/utils/odrProvider.d.ts +1 -48
- package/build/component/utils/odrProvider.d.ts.map +1 -1
- package/build/component/utils/odrProvider.js +2 -94
- package/build/component/utils/odrProvider.js.map +1 -1
- package/build/core/FxCore.d.ts +45 -13
- package/build/core/FxCore.d.ts.map +1 -1
- package/build/core/FxCore.declarativeAgent.d.ts +45 -1
- package/build/core/FxCore.declarativeAgent.d.ts.map +1 -1
- package/build/core/FxCore.declarativeAgent.js +747 -56
- package/build/core/FxCore.declarativeAgent.js.map +1 -1
- package/build/core/FxCore.js +462 -305
- package/build/core/FxCore.js.map +1 -1
- package/build/core/FxCore.openPlugin.d.ts +23 -0
- package/build/core/FxCore.openPlugin.d.ts.map +1 -0
- package/build/core/FxCore.openPlugin.js +131 -0
- package/build/core/FxCore.openPlugin.js.map +1 -0
- package/build/core/collaborator.d.ts.map +1 -1
- package/build/core/createFrontDoorAdapters.d.ts +39 -0
- package/build/core/createFrontDoorAdapters.d.ts.map +1 -0
- package/build/core/createFrontDoorAdapters.js +210 -0
- package/build/core/createFrontDoorAdapters.js.map +1 -0
- package/build/core/createProjectFrontDoor.d.ts +49 -0
- package/build/core/createProjectFrontDoor.d.ts.map +1 -0
- package/build/core/createProjectFrontDoor.js +351 -0
- package/build/core/createProjectFrontDoor.js.map +1 -0
- package/build/core/middleware/concurrentLocker.d.ts.map +1 -1
- package/build/core/middleware/concurrentLocker.js +7 -10
- package/build/core/middleware/concurrentLocker.js.map +1 -1
- package/build/core/middleware/errorHandler.d.ts.map +1 -1
- package/build/core/middleware/errorHandler.js +9 -0
- package/build/core/middleware/errorHandler.js.map +1 -1
- package/build/core/middleware/fileLocker.js +6 -6
- package/build/core/middleware/fileLocker.js.map +1 -1
- package/build/core/middleware/utils/v3MigrationUtils.d.ts +1 -34
- package/build/core/middleware/utils/v3MigrationUtils.d.ts.map +1 -1
- package/build/core/middleware/utils/v3MigrationUtils.js +6 -245
- package/build/core/middleware/utils/v3MigrationUtils.js.map +1 -1
- package/build/core/modifyProjectFrontDoor.d.ts +27 -0
- package/build/core/modifyProjectFrontDoor.d.ts.map +1 -0
- package/build/core/modifyProjectFrontDoor.js +149 -0
- package/build/core/modifyProjectFrontDoor.js.map +1 -0
- package/build/core/v4ArtifactSnapshot.d.ts +5 -0
- package/build/core/v4ArtifactSnapshot.d.ts.map +1 -0
- package/build/core/v4ArtifactSnapshot.js +23 -0
- package/build/core/v4ArtifactSnapshot.js.map +1 -0
- package/build/error/common.d.ts.map +1 -1
- package/build/error/common.js +3 -0
- package/build/error/common.js.map +1 -1
- package/build/error/teamsApp.d.ts +3 -0
- package/build/error/teamsApp.d.ts.map +1 -1
- package/build/error/teamsApp.js +15 -1
- package/build/error/teamsApp.js.map +1 -1
- package/build/error/teamsGraph.d.ts +5 -0
- package/build/error/teamsGraph.d.ts.map +1 -0
- package/build/error/teamsGraph.js +24 -0
- package/build/error/teamsGraph.js.map +1 -0
- package/build/index.d.ts +5 -2
- package/build/index.d.ts.map +1 -1
- package/build/index.js +15 -2
- package/build/index.js.map +1 -1
- package/build/question/constants.d.ts +1 -0
- package/build/question/constants.d.ts.map +1 -1
- package/build/question/constants.js +15 -8
- package/build/question/constants.js.map +1 -1
- package/build/question/create.d.ts +18 -0
- package/build/question/create.d.ts.map +1 -1
- package/build/question/create.js +121 -14
- package/build/question/create.js.map +1 -1
- package/build/question/index.d.ts +1 -1
- package/build/question/index.d.ts.map +1 -1
- package/build/question/index.js +4 -4
- package/build/question/index.js.map +1 -1
- package/build/question/inputs/AddKnowledgeInputs.d.ts.map +1 -1
- package/build/question/inputs/AddPluginInputs.d.ts +17 -5
- package/build/question/inputs/AddPluginInputs.d.ts.map +1 -1
- package/build/question/inputs/AddSkillInputs.d.ts +10 -0
- package/build/question/inputs/AddSkillInputs.d.ts.map +1 -0
- package/build/question/inputs/AddSkillInputs.js +5 -0
- package/build/question/inputs/AddSkillInputs.js.map +1 -0
- package/build/question/inputs/CreateProjectInputs.d.ts +19 -1
- package/build/question/inputs/CreateProjectInputs.d.ts.map +1 -1
- package/build/question/inputs/ExportOpenPluginInputs.d.ts +10 -0
- package/build/question/inputs/ExportOpenPluginInputs.d.ts.map +1 -0
- package/build/question/inputs/ExportOpenPluginInputs.js +5 -0
- package/build/question/inputs/ExportOpenPluginInputs.js.map +1 -0
- package/build/question/inputs/ImportOpenPluginInputs.d.ts +28 -0
- package/build/question/inputs/ImportOpenPluginInputs.d.ts.map +1 -0
- package/build/question/inputs/ImportOpenPluginInputs.js +5 -0
- package/build/question/inputs/ImportOpenPluginInputs.js.map +1 -0
- package/build/question/inputs/index.d.ts +4 -1
- package/build/question/inputs/index.d.ts.map +1 -1
- package/build/question/inputs/index.js +4 -1
- package/build/question/inputs/index.js.map +1 -1
- package/build/question/options/AddPluginOptions.d.ts.map +1 -1
- package/build/question/options/AddPluginOptions.js +38 -6
- package/build/question/options/AddPluginOptions.js.map +1 -1
- package/build/question/options/AddSkillOptions.d.ts +4 -0
- package/build/question/options/AddSkillOptions.d.ts.map +1 -0
- package/build/question/options/AddSkillOptions.js +47 -0
- package/build/question/options/AddSkillOptions.js.map +1 -0
- package/build/question/options/CreateProjectOptions.d.ts.map +1 -1
- package/build/question/options/CreateProjectOptions.js +53 -1
- package/build/question/options/CreateProjectOptions.js.map +1 -1
- package/build/question/options/ExportOpenPluginOptions.d.ts +4 -0
- package/build/question/options/ExportOpenPluginOptions.d.ts.map +1 -0
- package/build/question/options/ExportOpenPluginOptions.js +29 -0
- package/build/question/options/ExportOpenPluginOptions.js.map +1 -0
- package/build/question/options/ImportOpenPluginOptions.d.ts +4 -0
- package/build/question/options/ImportOpenPluginOptions.d.ts.map +1 -0
- package/build/question/options/ImportOpenPluginOptions.js +54 -0
- package/build/question/options/ImportOpenPluginOptions.js.map +1 -0
- package/build/question/options/index.d.ts +3 -0
- package/build/question/options/index.d.ts.map +1 -1
- package/build/question/options/index.js +3 -0
- package/build/question/options/index.js.map +1 -1
- package/build/question/other.d.ts +1 -1
- package/build/question/other.d.ts.map +1 -1
- package/build/question/other.js +195 -17
- package/build/question/other.js.map +1 -1
- package/build/question/questionNames.d.ts +14 -1
- package/build/question/questionNames.d.ts.map +1 -1
- package/build/question/questionNames.js +13 -0
- package/build/question/questionNames.js.map +1 -1
- package/build/question/scaffold/commonNodes.d.ts.map +1 -1
- package/build/question/scaffold/commonNodes.js +14 -2
- package/build/question/scaffold/commonNodes.js.map +1 -1
- package/build/question/scaffold/constructNode.d.ts +3 -1
- package/build/question/scaffold/constructNode.d.ts.map +1 -1
- package/build/question/scaffold/constructNode.js +55 -2
- package/build/question/scaffold/constructNode.js.map +1 -1
- package/build/question/scaffold/vsc/CapabilityOptions.d.ts +3 -5
- package/build/question/scaffold/vsc/CapabilityOptions.d.ts.map +1 -1
- package/build/question/scaffold/vsc/CapabilityOptions.js +46 -46
- package/build/question/scaffold/vsc/CapabilityOptions.js.map +1 -1
- package/build/question/scaffold/vsc/ProjectTypeOptions.d.ts +2 -0
- package/build/question/scaffold/vsc/ProjectTypeOptions.d.ts.map +1 -1
- package/build/question/scaffold/vsc/ProjectTypeOptions.js +9 -0
- package/build/question/scaffold/vsc/ProjectTypeOptions.js.map +1 -1
- package/build/question/scaffold/vsc/createRootNode.d.ts.map +1 -1
- package/build/question/scaffold/vsc/createRootNode.js +3 -0
- package/build/question/scaffold/vsc/createRootNode.js.map +1 -1
- package/build/question/scaffold/vsc/daProjectTypeNode.d.ts.map +1 -1
- package/build/question/scaffold/vsc/daProjectTypeNode.js +1 -6
- package/build/question/scaffold/vsc/daProjectTypeNode.js.map +1 -1
- package/build/question/scaffold/vsc/rootNode.d.ts.map +1 -1
- package/build/question/scaffold/vsc/rootNode.js +17 -4
- package/build/question/scaffold/vsc/rootNode.js.map +1 -1
- package/build/question/scaffold/vsc/teamsProjectTypeNode.d.ts +66 -0
- package/build/question/scaffold/vsc/teamsProjectTypeNode.d.ts.map +1 -1
- package/build/question/scaffold/vsc/teamsProjectTypeNode.js +408 -21
- package/build/question/scaffold/vsc/teamsProjectTypeNode.js.map +1 -1
- package/build/question/share.js +3 -2
- package/build/question/share.js.map +1 -1
- package/build/ui/visitor.d.ts.map +1 -1
- package/build/ui/visitor.js +10 -0
- package/build/ui/visitor.js.map +1 -1
- package/build/v4/buildTarget/parseSelector.d.ts +35 -0
- package/build/v4/buildTarget/parseSelector.d.ts.map +1 -0
- package/build/v4/buildTarget/parseSelector.js +226 -0
- package/build/v4/buildTarget/parseSelector.js.map +1 -0
- package/build/v4/buildTarget/resolveBuildTarget.d.ts +85 -0
- package/build/v4/buildTarget/resolveBuildTarget.d.ts.map +1 -0
- package/build/v4/buildTarget/resolveBuildTarget.js +260 -0
- package/build/v4/buildTarget/resolveBuildTarget.js.map +1 -0
- package/build/v4/collectInputs/collectInputs.d.ts +151 -0
- package/build/v4/collectInputs/collectInputs.d.ts.map +1 -0
- package/build/v4/collectInputs/collectInputs.js +533 -0
- package/build/v4/collectInputs/collectInputs.js.map +1 -0
- package/build/v4/distribution/bundledFloor.d.ts +11 -0
- package/build/v4/distribution/bundledFloor.d.ts.map +1 -0
- package/build/v4/distribution/bundledFloor.js +114 -0
- package/build/v4/distribution/bundledFloor.js.map +1 -0
- package/build/v4/distribution/createQuestions.d.ts +6 -0
- package/build/v4/distribution/createQuestions.d.ts.map +1 -0
- package/build/v4/distribution/createQuestions.js +61 -0
- package/build/v4/distribution/createQuestions.js.map +1 -0
- package/build/v4/distribution/createSelector.d.ts +15 -0
- package/build/v4/distribution/createSelector.d.ts.map +1 -0
- package/build/v4/distribution/createSelector.js +115 -0
- package/build/v4/distribution/createSelector.js.map +1 -0
- package/build/v4/distribution/declarativePackage.d.ts +14 -0
- package/build/v4/distribution/declarativePackage.d.ts.map +1 -0
- package/build/v4/distribution/declarativePackage.js +165 -0
- package/build/v4/distribution/declarativePackage.js.map +1 -0
- package/build/v4/distribution/packageDir.d.ts +15 -0
- package/build/v4/distribution/packageDir.d.ts.map +1 -0
- package/build/v4/distribution/packageDir.js +101 -0
- package/build/v4/distribution/packageDir.js.map +1 -0
- package/build/v4/distribution/questionFragments.d.ts +11 -0
- package/build/v4/distribution/questionFragments.d.ts.map +1 -0
- package/build/v4/distribution/questionFragments.js +130 -0
- package/build/v4/distribution/questionFragments.js.map +1 -0
- package/build/v4/distribution/templateArtifacts.d.ts +61 -0
- package/build/v4/distribution/templateArtifacts.d.ts.map +1 -0
- package/build/v4/distribution/templateArtifacts.js +459 -0
- package/build/v4/distribution/templateArtifacts.js.map +1 -0
- package/build/v4/distribution/templateConfig.d.ts +43 -0
- package/build/v4/distribution/templateConfig.d.ts.map +1 -0
- package/build/v4/distribution/templateConfig.js +70 -0
- package/build/v4/distribution/templateConfig.js.map +1 -0
- package/build/v4/distribution/templatePackage.d.ts +6 -0
- package/build/v4/distribution/templatePackage.d.ts.map +1 -0
- package/build/v4/distribution/templatePackage.js +63 -0
- package/build/v4/distribution/templatePackage.js.map +1 -0
- package/build/v4/distribution/templateSource.d.ts +66 -0
- package/build/v4/distribution/templateSource.d.ts.map +1 -0
- package/build/v4/distribution/templateSource.js +233 -0
- package/build/v4/distribution/templateSource.js.map +1 -0
- package/build/v4/distribution/templateSourcePort.d.ts +27 -0
- package/build/v4/distribution/templateSourcePort.d.ts.map +1 -0
- package/build/v4/distribution/templateSourcePort.js +175 -0
- package/build/v4/distribution/templateSourcePort.js.map +1 -0
- package/build/v4/engineVersion.d.ts +7 -0
- package/build/v4/engineVersion.d.ts.map +1 -0
- package/build/v4/engineVersion.js +12 -0
- package/build/v4/engineVersion.js.map +1 -0
- package/build/v4/expression/evaluateExpression.d.ts +55 -0
- package/build/v4/expression/evaluateExpression.d.ts.map +1 -0
- package/build/v4/expression/evaluateExpression.js +338 -0
- package/build/v4/expression/evaluateExpression.js.map +1 -0
- package/build/v4/index.d.ts +41 -0
- package/build/v4/index.d.ts.map +1 -0
- package/build/v4/index.js +46 -0
- package/build/v4/index.js.map +1 -0
- package/build/v4/inspection/scaffoldCatalog.d.ts +28 -0
- package/build/v4/inspection/scaffoldCatalog.d.ts.map +1 -0
- package/build/v4/inspection/scaffoldCatalog.js +66 -0
- package/build/v4/inspection/scaffoldCatalog.js.map +1 -0
- package/build/v4/inspection/scaffoldMetadataSource.d.ts +6 -0
- package/build/v4/inspection/scaffoldMetadataSource.d.ts.map +1 -0
- package/build/v4/inspection/scaffoldMetadataSource.js +78 -0
- package/build/v4/inspection/scaffoldMetadataSource.js.map +1 -0
- package/build/v4/mcp/mcpAuthAction.d.ts +36 -0
- package/build/v4/mcp/mcpAuthAction.d.ts.map +1 -0
- package/build/v4/mcp/mcpAuthAction.js +177 -0
- package/build/v4/mcp/mcpAuthAction.js.map +1 -0
- package/build/v4/mcp/mcpAuthScaffold.d.ts +37 -0
- package/build/v4/mcp/mcpAuthScaffold.d.ts.map +1 -0
- package/build/v4/mcp/mcpAuthScaffold.js +162 -0
- package/build/v4/mcp/mcpAuthScaffold.js.map +1 -0
- package/build/v4/mcp/mcpStaticTools.d.ts +17 -0
- package/build/v4/mcp/mcpStaticTools.d.ts.map +1 -0
- package/build/v4/mcp/mcpStaticTools.js +70 -0
- package/build/v4/mcp/mcpStaticTools.js.map +1 -0
- package/build/v4/model/dataModel.d.ts +27 -0
- package/build/v4/model/dataModel.d.ts.map +1 -0
- package/build/v4/model/dataModel.js +5 -0
- package/build/v4/model/dataModel.js.map +1 -0
- package/build/v4/pipeline/runScaffoldPipeline.d.ts +101 -0
- package/build/v4/pipeline/runScaffoldPipeline.d.ts.map +1 -0
- package/build/v4/pipeline/runScaffoldPipeline.js +212 -0
- package/build/v4/pipeline/runScaffoldPipeline.js.map +1 -0
- package/build/v4/providers/createOptionsProviders.d.ts +11 -0
- package/build/v4/providers/createOptionsProviders.d.ts.map +1 -0
- package/build/v4/providers/createOptionsProviders.js +268 -0
- package/build/v4/providers/createOptionsProviders.js.map +1 -0
- package/build/v4/renderContext/buildRenderContext.d.ts +24 -0
- package/build/v4/renderContext/buildRenderContext.d.ts.map +1 -0
- package/build/v4/renderContext/buildRenderContext.js +75 -0
- package/build/v4/renderContext/buildRenderContext.js.map +1 -0
- package/build/v4/runtime/generalSensitivityLabel.d.ts +5 -0
- package/build/v4/runtime/generalSensitivityLabel.d.ts.map +1 -0
- package/build/v4/runtime/generalSensitivityLabel.js +36 -0
- package/build/v4/runtime/generalSensitivityLabel.js.map +1 -0
- package/build/v4/runtime/inMemoryRuntime.d.ts +21 -0
- package/build/v4/runtime/inMemoryRuntime.d.ts.map +1 -0
- package/build/v4/runtime/inMemoryRuntime.js +43 -0
- package/build/v4/runtime/inMemoryRuntime.js.map +1 -0
- package/build/v4/runtime/packageParse.d.ts +13 -0
- package/build/v4/runtime/packageParse.d.ts.map +1 -0
- package/build/v4/runtime/packageParse.js +235 -0
- package/build/v4/runtime/packageParse.js.map +1 -0
- package/build/v4/runtime/realRuntime.d.ts +11 -0
- package/build/v4/runtime/realRuntime.d.ts.map +1 -0
- package/build/v4/runtime/realRuntime.js +64 -0
- package/build/v4/runtime/realRuntime.js.map +1 -0
- package/build/v4/runtime/renderMustache.d.ts +7 -0
- package/build/v4/runtime/renderMustache.d.ts.map +1 -0
- package/build/v4/runtime/renderMustache.js +54 -0
- package/build/v4/runtime/renderMustache.js.map +1 -0
- package/build/v4/runtime/runtimeRegistry.d.ts +28 -0
- package/build/v4/runtime/runtimeRegistry.d.ts.map +1 -0
- package/build/v4/runtime/runtimeRegistry.js +165 -0
- package/build/v4/runtime/runtimeRegistry.js.map +1 -0
- package/build/v4/runtime/scaffold.d.ts +31 -0
- package/build/v4/runtime/scaffold.d.ts.map +1 -0
- package/build/v4/runtime/scaffold.js +34 -0
- package/build/v4/runtime/scaffold.js.map +1 -0
- package/build/v4/runtime/scaffoldFromPackageDir.d.ts +7 -0
- package/build/v4/runtime/scaffoldFromPackageDir.d.ts.map +1 -0
- package/build/v4/runtime/scaffoldFromPackageDir.js +43 -0
- package/build/v4/runtime/scaffoldFromPackageDir.js.map +1 -0
- package/build/v4/runtime/selectLanguageContent.d.ts +7 -0
- package/build/v4/runtime/selectLanguageContent.d.ts.map +1 -0
- package/build/v4/runtime/selectLanguageContent.js +39 -0
- package/build/v4/runtime/selectLanguageContent.js.map +1 -0
- package/build/v4/runtime/steps/daAction.d.ts +6 -0
- package/build/v4/runtime/steps/daAction.d.ts.map +1 -0
- package/build/v4/runtime/steps/daAction.js +41 -0
- package/build/v4/runtime/steps/daAction.js.map +1 -0
- package/build/v4/runtime/steps/daSensitivity.d.ts +14 -0
- package/build/v4/runtime/steps/daSensitivity.d.ts.map +1 -0
- package/build/v4/runtime/steps/daSensitivity.js +50 -0
- package/build/v4/runtime/steps/daSensitivity.js.map +1 -0
- package/build/v4/runtime/steps/mcpAuth.d.ts +13 -0
- package/build/v4/runtime/steps/mcpAuth.d.ts.map +1 -0
- package/build/v4/runtime/steps/mcpAuth.js +90 -0
- package/build/v4/runtime/steps/mcpAuth.js.map +1 -0
- package/build/v4/runtime/steps/mcpLocal.d.ts +6 -0
- package/build/v4/runtime/steps/mcpLocal.d.ts.map +1 -0
- package/build/v4/runtime/steps/mcpLocal.js +93 -0
- package/build/v4/runtime/steps/mcpLocal.js.map +1 -0
- package/build/v4/runtime/steps/mcpStatic.d.ts +10 -0
- package/build/v4/runtime/steps/mcpStatic.d.ts.map +1 -0
- package/build/v4/runtime/steps/mcpStatic.js +182 -0
- package/build/v4/runtime/steps/mcpStatic.js.map +1 -0
- package/build/v4/runtime/steps/metaOs.d.ts +10 -0
- package/build/v4/runtime/steps/metaOs.d.ts.map +1 -0
- package/build/v4/runtime/steps/metaOs.js +422 -0
- package/build/v4/runtime/steps/metaOs.js.map +1 -0
- package/build/v4/runtime/steps/officeAddin.d.ts +4 -0
- package/build/v4/runtime/steps/officeAddin.d.ts.map +1 -0
- package/build/v4/runtime/steps/officeAddin.js +168 -0
- package/build/v4/runtime/steps/officeAddin.js.map +1 -0
- package/build/v4/runtime/steps/openApi.d.ts +6 -0
- package/build/v4/runtime/steps/openApi.d.ts.map +1 -0
- package/build/v4/runtime/steps/openApi.js +389 -0
- package/build/v4/runtime/steps/openApi.js.map +1 -0
- package/build/v4/runtime/steps/openApiCustomApi.d.ts +5 -0
- package/build/v4/runtime/steps/openApiCustomApi.d.ts.map +1 -0
- package/build/v4/runtime/steps/openApiCustomApi.js +385 -0
- package/build/v4/runtime/steps/openApiCustomApi.js.map +1 -0
- package/build/v4/runtime/whitelist.d.ts +41 -0
- package/build/v4/runtime/whitelist.d.ts.map +1 -0
- package/build/v4/runtime/whitelist.js +211 -0
- package/build/v4/runtime/whitelist.js.map +1 -0
- package/build/v4/runtime/withTempDirectory.d.ts +10 -0
- package/build/v4/runtime/withTempDirectory.d.ts.map +1 -0
- package/build/v4/runtime/withTempDirectory.js +41 -0
- package/build/v4/runtime/withTempDirectory.js.map +1 -0
- package/build/v4/surface/createFloorTail.d.ts +12 -0
- package/build/v4/surface/createFloorTail.d.ts.map +1 -0
- package/build/v4/surface/createFloorTail.js +138 -0
- package/build/v4/surface/createFloorTail.js.map +1 -0
- package/build/v4/surface/createInputs.d.ts +51 -0
- package/build/v4/surface/createInputs.d.ts.map +1 -0
- package/build/v4/surface/createInputs.js +153 -0
- package/build/v4/surface/createInputs.js.map +1 -0
- package/build/v4/surface/createSelectorWalk.d.ts +26 -0
- package/build/v4/surface/createSelectorWalk.d.ts.map +1 -0
- package/build/v4/surface/createSelectorWalk.js +143 -0
- package/build/v4/surface/createSelectorWalk.js.map +1 -0
- package/build/v4/surface/deriveCreateOptions.d.ts +5 -0
- package/build/v4/surface/deriveCreateOptions.d.ts.map +1 -0
- package/build/v4/surface/deriveCreateOptions.js +212 -0
- package/build/v4/surface/deriveCreateOptions.js.map +1 -0
- package/build/v4/surface/localizePrompt.d.ts +11 -0
- package/build/v4/surface/localizePrompt.d.ts.map +1 -0
- package/build/v4/surface/localizePrompt.js +32 -0
- package/build/v4/surface/localizePrompt.js.map +1 -0
- package/build/v4/surface/modifySelectorWalk.d.ts +12 -0
- package/build/v4/surface/modifySelectorWalk.d.ts.map +1 -0
- package/build/v4/surface/modifySelectorWalk.js +115 -0
- package/build/v4/surface/modifySelectorWalk.js.map +1 -0
- package/build/v4/surface/uiPromptUI.d.ts +5 -0
- package/build/v4/surface/uiPromptUI.d.ts.map +1 -0
- package/build/v4/surface/uiPromptUI.js +220 -0
- package/build/v4/surface/uiPromptUI.js.map +1 -0
- package/build/v4/validation/capabilityCatalog.d.ts +8 -0
- package/build/v4/validation/capabilityCatalog.d.ts.map +1 -0
- package/build/v4/validation/capabilityCatalog.js +62 -0
- package/build/v4/validation/capabilityCatalog.js.map +1 -0
- package/build/v4/validation/templateArchiveValidation.d.ts +15 -0
- package/build/v4/validation/templateArchiveValidation.d.ts.map +1 -0
- package/build/v4/validation/templateArchiveValidation.js +297 -0
- package/build/v4/validation/templateArchiveValidation.js.map +1 -0
- package/build/v4/validation/validateTemplatePackage.d.ts +83 -0
- package/build/v4/validation/validateTemplatePackage.d.ts.map +1 -0
- package/build/v4/validation/validateTemplatePackage.js +313 -0
- package/build/v4/validation/validateTemplatePackage.js.map +1 -0
- package/build/v4/validators/createInputValidators.d.ts +7 -0
- package/build/v4/validators/createInputValidators.d.ts.map +1 -0
- package/build/v4/validators/createInputValidators.js +77 -0
- package/build/v4/validators/createInputValidators.js.map +1 -0
- package/build/v4/validators/mcpCredentialValidators.d.ts +5 -0
- package/build/v4/validators/mcpCredentialValidators.d.ts.map +1 -0
- package/build/v4/validators/mcpCredentialValidators.js +13 -0
- package/build/v4/validators/mcpCredentialValidators.js.map +1 -0
- package/build/v4/validators/mcpServerUrlValidator.d.ts +9 -0
- package/build/v4/validators/mcpServerUrlValidator.d.ts.map +1 -0
- package/build/v4/validators/mcpServerUrlValidator.js +15 -0
- package/build/v4/validators/mcpServerUrlValidator.js.map +1 -0
- package/package.json +46 -97
- package/resource/package.nls.cs.json +1176 -1095
- package/resource/package.nls.de.json +1176 -1095
- package/resource/package.nls.es.json +1176 -1095
- package/resource/package.nls.fr.json +1176 -1095
- package/resource/package.nls.it.json +1176 -1095
- package/resource/package.nls.ja.json +1176 -1095
- package/resource/package.nls.json +116 -28
- package/resource/package.nls.ko.json +1176 -1095
- package/resource/package.nls.pl.json +1176 -1095
- package/resource/package.nls.pt-BR.json +1176 -1095
- package/resource/package.nls.ru.json +1176 -1095
- package/resource/package.nls.tr.json +1176 -1095
- package/resource/package.nls.zh-Hans.json +1176 -1095
- package/resource/package.nls.zh-Hant.json +1176 -1095
- package/resource/templates/package.nls.cs.json +39 -24
- package/resource/templates/package.nls.de.json +37 -22
- package/resource/templates/package.nls.es.json +35 -20
- package/resource/templates/package.nls.fr.json +45 -30
- package/resource/templates/package.nls.it.json +42 -27
- package/resource/templates/package.nls.ja.json +35 -20
- package/resource/templates/package.nls.json +27 -12
- package/resource/templates/package.nls.ko.json +33 -18
- package/resource/templates/package.nls.pl.json +38 -23
- package/resource/templates/package.nls.pt-BR.json +34 -19
- package/resource/templates/package.nls.ru.json +33 -18
- package/resource/templates/package.nls.tr.json +38 -23
- package/resource/templates/package.nls.zh-Hans.json +44 -29
- package/resource/templates/package.nls.zh-Hant.json +45 -30
- package/resource/templates/package.nls.zh-cn.json +7 -8
- package/resource/templates/package.nls.zh-tw.json +7 -8
- package/resource/yaml-schema/v1.11/yaml.schema.json +3 -0
- package/resource/yaml-schema/v1.12/yaml.schema.json +2132 -0
- package/resource/yaml-schema/v1.13/yaml.schema.json +2193 -0
- package/resource/yaml-schema/yaml.schema.json +127 -2
- package/templates/configs/playground/typescript/.vscode/tasks.json +1 -1
- package/templates/fallback/common.zip +0 -0
- package/templates/fallback/csharp.zip +0 -0
- package/templates/fallback/js.zip +0 -0
- package/templates/fallback/python.zip +0 -0
- package/templates/fallback/ts.zip +0 -0
- package/templates/metadata/allTemplates.json +32 -16
- package/templates/metadata/defaultGeneratorTemplates.json +8 -0
- package/templates/metadata.zip +0 -0
- package/templates/ui/ceaNode.json +30 -0
- package/templates/ui/tdpNode.json +13 -14
- package/templates/ui/teamsNode.json +124 -0
- package/templates/ui/wizardNode.json +56 -46
- package/templates/v4/create-selector.json +392 -0
- package/templates/v4/floor.json +3 -0
- package/templates/v4/modify-selector.json +78 -0
- package/templates/v4/templates-metadata.zip +0 -0
- package/templates/v4/templates.zip +0 -0
- package/build/core/middleware/projectMigratorV3.d.ts +0 -39
- package/build/core/middleware/projectMigratorV3.d.ts.map +0 -1
- package/build/core/middleware/projectMigratorV3.js +0 -694
- package/build/core/middleware/projectMigratorV3.js.map +0 -1
- package/build/core/middleware/projectVersionChecker.d.ts +0 -3
- package/build/core/middleware/projectVersionChecker.d.ts.map +0 -1
- package/build/core/middleware/projectVersionChecker.js +0 -60
- package/build/core/middleware/projectVersionChecker.js.map +0 -1
- package/build/core/middleware/types.d.ts +0 -9
- package/build/core/middleware/types.d.ts.map +0 -1
- package/build/core/middleware/types.js.map +0 -1
- package/build/core/middleware/utils/MigrationUtils.d.ts +0 -13
- package/build/core/middleware/utils/MigrationUtils.d.ts.map +0 -1
- package/build/core/middleware/utils/MigrationUtils.js +0 -212
- package/build/core/middleware/utils/MigrationUtils.js.map +0 -1
- package/build/core/middleware/utils/appYmlGenerator.d.ts +0 -34
- package/build/core/middleware/utils/appYmlGenerator.d.ts.map +0 -1
- package/build/core/middleware/utils/appYmlGenerator.js +0 -158
- package/build/core/middleware/utils/appYmlGenerator.js.map +0 -1
- package/build/core/middleware/utils/debug/appLocalYmlGenerator.d.ts +0 -65
- package/build/core/middleware/utils/debug/appLocalYmlGenerator.d.ts.map +0 -1
- package/build/core/middleware/utils/debug/appLocalYmlGenerator.js +0 -61
- package/build/core/middleware/utils/debug/appLocalYmlGenerator.js.map +0 -1
- package/build/core/middleware/utils/debug/constants.d.ts +0 -20
- package/build/core/middleware/utils/debug/constants.d.ts.map +0 -1
- package/build/core/middleware/utils/debug/constants.js +0 -28
- package/build/core/middleware/utils/debug/constants.js.map +0 -1
- package/build/core/middleware/utils/debug/debugMigrationContext.d.ts +0 -14
- package/build/core/middleware/utils/debug/debugMigrationContext.d.ts.map +0 -1
- package/build/core/middleware/utils/debug/debugMigrationContext.js +0 -23
- package/build/core/middleware/utils/debug/debugMigrationContext.js.map +0 -1
- package/build/core/middleware/utils/debug/debugV3MigrationUtils.d.ts +0 -37
- package/build/core/middleware/utils/debug/debugV3MigrationUtils.d.ts.map +0 -1
- package/build/core/middleware/utils/debug/debugV3MigrationUtils.js +0 -291
- package/build/core/middleware/utils/debug/debugV3MigrationUtils.js.map +0 -1
- package/build/core/middleware/utils/debug/taskMigrator.d.ts +0 -22
- package/build/core/middleware/utils/debug/taskMigrator.d.ts.map +0 -1
- package/build/core/middleware/utils/debug/taskMigrator.js +0 -935
- package/build/core/middleware/utils/debug/taskMigrator.js.map +0 -1
- package/build/core/middleware/utils/migrationContext.d.ts +0 -32
- package/build/core/middleware/utils/migrationContext.d.ts.map +0 -1
- package/build/core/middleware/utils/migrationContext.js +0 -104
- package/build/core/middleware/utils/migrationContext.js.map +0 -1
- package/templates/configs/local/typescript/.gitignore +0 -1
- package/templates/configs/playground/typescript/.gitignore +0 -4
- /package/build/{core/middleware → component/generator/openPlugin}/types.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rootNode.js","sourceRoot":"","sources":["../../../../src/question/scaffold/vsc/rootNode.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;
|
|
1
|
+
{"version":3,"file":"rootNode.js","sourceRoot":"","sources":["../../../../src/question/scaffold/vsc/rootNode.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAgBlC,wDAEC;AAMD,sDAEC;;AAxBD,wDAAgF;AAChF,gEAA0B;AAC1B,oDAAoB;AACpB,wDAAwB;AACxB,+DAAgF;AAChF,2DAAmD;AACnD,oGAA8E;AAC9E,gEAA0C;AAC1C,oDAAiD;AAEjD;;;GAGG;AACH,SAAgB,sBAAsB,CAAC,WAAqB,sBAAQ,CAAC,MAAM;IACzE,OAAO,UAAU,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CAAC;AACjD,CAAC;AAED;;;GAGG;AACH,SAAgB,qBAAqB,CAAC,WAAqB,sBAAQ,CAAC,MAAM;IACxE,OAAO,UAAU,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC;AAC9C,CAAC;AAED,SAAS,UAAU,CAAC,QAAgB,EAAE,QAAkB;IACtD,MAAM,cAAc,GAAG,cAAI,CAAC,IAAI,CAAC,YAAE,CAAC,OAAO,EAAE,EAAE,IAAI,MAAM,CAAC,8BAAgB,CAAC,EAAE,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;IAE/F,6EAA6E;IAC7E,4EAA4E;IAC5E,4EAA4E;IAC5E,8EAA8E;IAC9E,2EAA2E;IAC3E,0EAA0E;IAC1E,0EAA0E;IAC1E,+EAA+E;IAC/E,0EAA0E;IAC1E,gFAAgF;IAChF,0EAA0E;IAC1E,MAAM,SAAS,GAAG,iCAAkB,CAAC,eAAe,CAAC,2BAAY,CAAC,SAAS,CAAC,CAAC;IAE7E,IAAI,QAAgB,CAAC;IACrB,IAAI,MAAc,CAAC;IACnB,IAAI,CAAC,SAAS,IAAI,CAAC,cAAc,CAAC,gBAAgB,EAAE,IAAI,kBAAE,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,CAAC;QAC1F,QAAQ,GAAG,cAAc,CAAC;QAC1B,MAAM,GAAG,OAAO,CAAC;IACnB,CAAC;SAAM,CAAC;QACN,QAAQ,GAAG,cAAI,CAAC,IAAI,CAAC,MAAM,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;QAClE,MAAM,GAAG,SAAS,CAAC;IACrB,CAAC;IAED,MAAM,OAAO,GAAG,kBAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IACnD,kBAAK,EAAE,WAAW,EAAE,IAAI,CAAC,6BAA6B,QAAQ,SAAS,MAAM,KAAK,QAAQ,EAAE,CAAC,CAAC;IAC9F,OAAO,IAAA,6BAAa,EAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;AAC1C,CAAC"}
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import { IQTreeNode, OptionItem, Platform } from "@microsoft/teamsfx-api";
|
|
2
|
+
import * as fs from "fs-extra";
|
|
3
|
+
import { fetchMCPTools, readMCPToolsFromFile, probeMCPServerAuth } from "../../../component/utils/mcpToolFetcher";
|
|
4
|
+
export declare const teamsProjectTypeDeps: {
|
|
5
|
+
pathExists: typeof fs.pathExists;
|
|
6
|
+
readJSON: typeof fs.readJSON;
|
|
7
|
+
fetchMCPTools: typeof fetchMCPTools;
|
|
8
|
+
readMCPToolsFromFile: typeof readMCPToolsFromFile;
|
|
9
|
+
probeMCPServerAuth: typeof probeMCPServerAuth;
|
|
10
|
+
};
|
|
2
11
|
/**
|
|
3
12
|
* Extract the Teams Agents and Apps sub-tree from the combined wizardNode.json.
|
|
4
13
|
* Used by TDP (Teams Developer Portal) flow.
|
|
@@ -19,7 +28,64 @@ export declare function tabProjectTypeNode(platform?: Platform): IQTreeNode;
|
|
|
19
28
|
export declare function meProjectTypeNode(): IQTreeNode;
|
|
20
29
|
export declare function m365SearchMeSubNode(): IQTreeNode;
|
|
21
30
|
export declare function MCPServerTypeNode(): IQTreeNode;
|
|
31
|
+
/**
|
|
32
|
+
* Question node for providing an MCP tools definition file.
|
|
33
|
+
* Shown when:
|
|
34
|
+
* - The MCP server requires auth (auto-detected), or
|
|
35
|
+
* - The user wants to provide tools manually.
|
|
36
|
+
* In CLI non-interactive mode, this is provided via --mcp-tools-file.
|
|
37
|
+
*/
|
|
38
|
+
export declare function MCPToolsFileNode(): IQTreeNode;
|
|
39
|
+
/**
|
|
40
|
+
* Question node for CLI pre-fetch tool selection.
|
|
41
|
+
* Attempts to auto-fetch tools from the MCP server URL, then presents them for selection.
|
|
42
|
+
* For CLI platform only — VS Code has its own tool fetching via vscode.lm.tools.
|
|
43
|
+
*/
|
|
44
|
+
export declare function MCPCliPreFetchToolsNode(): IQTreeNode;
|
|
22
45
|
export declare function MCPLocalServerSelectionNode(): IQTreeNode;
|
|
46
|
+
/**
|
|
47
|
+
* Shared static option list for the `mcp-da-auth-type` single-select question.
|
|
48
|
+
* Kebab-case values so CLI flags (`--mcp-da-auth-type entra-sso` etc.) match the
|
|
49
|
+
* scaffold inputs and the scenario doc.
|
|
50
|
+
*
|
|
51
|
+
* `oauth-dynamic` (Dynamic Client Registration) is gated behind both
|
|
52
|
+
* `TEAMSFX_MCP_FOR_DA_DT` and `TEAMSFX_MCP_FOR_DA_DCR` because the DCR
|
|
53
|
+
* provisioning flow currently piggybacks on the DT-mode env-file plumbing.
|
|
54
|
+
*/
|
|
55
|
+
export declare function MCPForDAAuthTypeStaticOptions(): OptionItem[];
|
|
56
|
+
export declare function MCPForDAFetchAuthTypeStaticOptions(): OptionItem[];
|
|
57
|
+
/**
|
|
58
|
+
* Follow-up question nodes shown after the user picks an `mcp-da-auth-type`
|
|
59
|
+
* value. Unconditional per SCN-DA-CREATE-WITH-MCP-SERVER step 6a/6b: the
|
|
60
|
+
* answers are always collected; the TEAMSFX_MCP_FOR_DA_DT flag only governs
|
|
61
|
+
* how the answers reach `oauth/register` (env-file persistence + ${{...}}
|
|
62
|
+
* refs when on; in-process bridge `process.env["oauth-client-id"]` etc. when
|
|
63
|
+
* off).
|
|
64
|
+
*
|
|
65
|
+
* - `oauth` (static OAuth): client id (required) + client secret (required, password)
|
|
66
|
+
* + scopes (optional).
|
|
67
|
+
* - `entra-sso`: only client id (required).
|
|
68
|
+
* - `oauth-dynamic` / `none`: no follow-up questions.
|
|
69
|
+
*/
|
|
70
|
+
export declare function MCPForDAAuthCredentialNodes(): IQTreeNode[];
|
|
71
|
+
/**
|
|
72
|
+
* Reject an MCP server URL that cannot be one.
|
|
73
|
+
*
|
|
74
|
+
* A value with no scheme never reaches the network: axios cannot build a request from it, so
|
|
75
|
+
* the probe throws, reports no status, and would be classified `undetermined` — letting a
|
|
76
|
+
* plainly malformed URL through. Rule it out syntactically first.
|
|
77
|
+
*
|
|
78
|
+
* ADR-0020: of the answers a server actually gives, block only on 404, the one no valid MCP
|
|
79
|
+
* endpoint was ever measured giving. The other `notEndpoint` shapes (403, 405, 200 without a
|
|
80
|
+
* JSON-RPC envelope) only warn after scaffolding, because a 403 can come from a WAF sitting in
|
|
81
|
+
* front of a perfectly good endpoint and wrongly blocking a legitimate URL is worse than
|
|
82
|
+
* missing a wrong one. `undetermined` — 5xx, timeouts, unreachable hosts — never blocks, so
|
|
83
|
+
* scaffolding does not fail closed because the network did.
|
|
84
|
+
*
|
|
85
|
+
* Shared by the create flow and the "add MCP server" action flow so both reject the same URLs.
|
|
86
|
+
*/
|
|
87
|
+
export declare function validateMCPServerUrl(value: string): Promise<string | undefined>;
|
|
23
88
|
export declare function MCPForDAServerUrlNode(): IQTreeNode;
|
|
89
|
+
export declare const CreateNewPluginManifestSentinel = "__createNewPluginManifest__";
|
|
24
90
|
export declare function updateActionWithMCP(): IQTreeNode;
|
|
25
91
|
//# sourceMappingURL=teamsProjectTypeNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"teamsProjectTypeNode.d.ts","sourceRoot":"","sources":["../../../../src/question/scaffold/vsc/teamsProjectTypeNode.ts"],"names":[],"mappings":"AAGA,OAAO,EAIL,UAAU,
|
|
1
|
+
{"version":3,"file":"teamsProjectTypeNode.d.ts","sourceRoot":"","sources":["../../../../src/question/scaffold/vsc/teamsProjectTypeNode.ts"],"names":[],"mappings":"AAGA,OAAO,EAIL,UAAU,EAEV,UAAU,EACV,QAAQ,EACT,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,MAAM,UAAU,CAAC;AAI/B,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,kBAAkB,EACnB,MAAM,yCAAyC,CAAC;AAyBjD,eAAO,MAAM,oBAAoB;;;;;;CAMhC,CAAC;AAEF;;;GAGG;AACH,wBAAgB,mBAAmB,IAAI,UAAU,CAMhD;AAED,qBAAa,uBAAuB;IAClC,MAAM,CAAC,WAAW,SAAc;IAChC,MAAM,CAAC,WAAW,SAAc;IAChC,MAAM,CAAC,UAAU,SAAa;IAE9B,MAAM,CAAC,GAAG,CAAC,QAAQ,GAAE,QAA0B,GAAG,UAAU;IAU5D,MAAM,CAAC,GAAG,CAAC,QAAQ,GAAE,QAA0B,GAAG,UAAU;IAU5D,MAAM,CAAC,EAAE,CAAC,QAAQ,GAAE,QAA0B,GAAG,UAAU;CAW5D;AAED,wBAAgB,oBAAoB,IAAI,UAAU,CAmBjD;AAwBD,wBAAgB,0BAA0B,CAAC,QAAQ,GAAE,QAA0B,GAAG,UAAU,CAwB3F;AAED,wBAAgB,kBAAkB,IAAI,UAAU,CAmB/C;AAED,wBAAgB,kBAAkB,CAAC,QAAQ,GAAE,QAA0B,GAAG,UAAU,CAwCnF;AAED,wBAAgB,iBAAiB,IAAI,UAAU,CAkB9C;AAED,wBAAgB,mBAAmB,IAAI,UAAU,CA4ChD;AAED,wBAAgB,iBAAiB,IAAI,UAAU,CA8D9C;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,IAAI,UAAU,CAqC7C;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,IAAI,UAAU,CA2BpD;AAED,wBAAgB,2BAA2B,IAAI,UAAU,CA+BxD;AAED;;;;;;;;GAQG;AACH,wBAAgB,6BAA6B,IAAI,UAAU,EAAE,CA+B5D;AAED,wBAAgB,kCAAkC,IAAI,UAAU,EAAE,CAsBjE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,2BAA2B,IAAI,UAAU,EAAE,CA4D1D;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAerF;AAED,wBAAgB,qBAAqB,IAAI,UAAU,CA4ClD;AAED,eAAO,MAAM,+BAA+B,gCAAgC,CAAC;AAE7E,wBAAgB,mBAAmB,IAAI,UAAU,CAyKhD"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Copyright (c) Microsoft Corporation.
|
|
3
3
|
// Licensed under the MIT license.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.TeamsProjectTypeOptions = void 0;
|
|
5
|
+
exports.CreateNewPluginManifestSentinel = exports.TeamsProjectTypeOptions = exports.teamsProjectTypeDeps = void 0;
|
|
6
6
|
exports.getTeamsProjectNode = getTeamsProjectNode;
|
|
7
7
|
exports.customCopilotRagNode = customCopilotRagNode;
|
|
8
8
|
exports.notificationBotTriggerNode = notificationBotTriggerNode;
|
|
@@ -11,20 +11,35 @@ exports.tabProjectTypeNode = tabProjectTypeNode;
|
|
|
11
11
|
exports.meProjectTypeNode = meProjectTypeNode;
|
|
12
12
|
exports.m365SearchMeSubNode = m365SearchMeSubNode;
|
|
13
13
|
exports.MCPServerTypeNode = MCPServerTypeNode;
|
|
14
|
+
exports.MCPToolsFileNode = MCPToolsFileNode;
|
|
15
|
+
exports.MCPCliPreFetchToolsNode = MCPCliPreFetchToolsNode;
|
|
14
16
|
exports.MCPLocalServerSelectionNode = MCPLocalServerSelectionNode;
|
|
17
|
+
exports.MCPForDAAuthTypeStaticOptions = MCPForDAAuthTypeStaticOptions;
|
|
18
|
+
exports.MCPForDAFetchAuthTypeStaticOptions = MCPForDAFetchAuthTypeStaticOptions;
|
|
19
|
+
exports.MCPForDAAuthCredentialNodes = MCPForDAAuthCredentialNodes;
|
|
20
|
+
exports.validateMCPServerUrl = validateMCPServerUrl;
|
|
15
21
|
exports.MCPForDAServerUrlNode = MCPForDAServerUrlNode;
|
|
16
22
|
exports.updateActionWithMCP = updateActionWithMCP;
|
|
17
23
|
const tslib_1 = require("tslib");
|
|
18
24
|
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
19
25
|
const fs = tslib_1.__importStar(require("fs-extra"));
|
|
20
26
|
const path_1 = tslib_1.__importDefault(require("path"));
|
|
27
|
+
const featureFlags_1 = require("../../../common/featureFlags");
|
|
21
28
|
const localizeUtils_1 = require("../../../common/localizeUtils");
|
|
29
|
+
const mcpToolFetcher_1 = require("../../../component/utils/mcpToolFetcher");
|
|
22
30
|
const odrProvider_1 = require("../../../component/utils/odrProvider");
|
|
23
31
|
const create_1 = require("../../create");
|
|
24
32
|
const questionNames_1 = require("../../questionNames");
|
|
25
33
|
const commonNodes_1 = require("../commonNodes");
|
|
26
34
|
const CapabilityOptions_1 = require("./CapabilityOptions");
|
|
27
35
|
const rootNode_1 = require("./rootNode");
|
|
36
|
+
exports.teamsProjectTypeDeps = {
|
|
37
|
+
pathExists: fs.pathExists,
|
|
38
|
+
readJSON: fs.readJSON,
|
|
39
|
+
fetchMCPTools: mcpToolFetcher_1.fetchMCPTools,
|
|
40
|
+
readMCPToolsFromFile: mcpToolFetcher_1.readMCPToolsFromFile,
|
|
41
|
+
probeMCPServerAuth: mcpToolFetcher_1.probeMCPServerAuth,
|
|
42
|
+
};
|
|
28
43
|
/**
|
|
29
44
|
* Extract the Teams Agents and Apps sub-tree from the combined wizardNode.json.
|
|
30
45
|
* Used by TDP (Teams Developer Portal) flow.
|
|
@@ -67,8 +82,8 @@ function customCopilotRagNode() {
|
|
|
67
82
|
data: {
|
|
68
83
|
type: "singleSelect",
|
|
69
84
|
name: questionNames_1.QuestionNames.CustomCopilotRag,
|
|
70
|
-
title: (0, localizeUtils_1.getLocalizedString)("
|
|
71
|
-
placeholder: (0, localizeUtils_1.getLocalizedString)("
|
|
85
|
+
title: (0, localizeUtils_1.getLocalizedString)("template.teams.rag.label"),
|
|
86
|
+
placeholder: (0, localizeUtils_1.getLocalizedString)("template.teams.rag.source.placeholder"),
|
|
72
87
|
staticOptions: [
|
|
73
88
|
CapabilityOptions_1.CustomCopilotRagOptions.customize(),
|
|
74
89
|
CapabilityOptions_1.CustomCopilotRagOptions.azureAISearch(),
|
|
@@ -282,11 +297,112 @@ function MCPServerTypeNode() {
|
|
|
282
297
|
{
|
|
283
298
|
condition: { equals: "remote" },
|
|
284
299
|
data: MCPForDAServerUrlNode().data,
|
|
300
|
+
children: [
|
|
301
|
+
MCPToolsFileNode(),
|
|
302
|
+
MCPCliPreFetchToolsNode(),
|
|
303
|
+
{
|
|
304
|
+
// VS Code: gated on TEAMSFX_MCP_FOR_DA_DT — shipped behavior (DT off)
|
|
305
|
+
// defers auth-type pick to the post-create fetch-mcp-tools CodeLens
|
|
306
|
+
// flow per SCN-DA-CREATE-WITH-MCP-SERVER. CLI keeps the inline pick.
|
|
307
|
+
condition: (inputs) => inputs.platform !== teamsfx_api_1.Platform.VSCode ||
|
|
308
|
+
featureFlags_1.featureFlagManager.getBooleanValue(featureFlags_1.FeatureFlags.MCPForDADT),
|
|
309
|
+
data: {
|
|
310
|
+
type: "singleSelect",
|
|
311
|
+
name: questionNames_1.QuestionNames.MCPForDAAuthType,
|
|
312
|
+
title: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.mcpForDa.AuthType.title"),
|
|
313
|
+
staticOptions: MCPForDAAuthTypeStaticOptions(),
|
|
314
|
+
default: "oauth",
|
|
315
|
+
},
|
|
316
|
+
children: MCPForDAAuthCredentialNodes(),
|
|
317
|
+
},
|
|
318
|
+
],
|
|
285
319
|
},
|
|
286
320
|
MCPLocalServerSelectionNode(),
|
|
287
321
|
],
|
|
288
322
|
};
|
|
289
323
|
}
|
|
324
|
+
/**
|
|
325
|
+
* Question node for providing an MCP tools definition file.
|
|
326
|
+
* Shown when:
|
|
327
|
+
* - The MCP server requires auth (auto-detected), or
|
|
328
|
+
* - The user wants to provide tools manually.
|
|
329
|
+
* In CLI non-interactive mode, this is provided via --mcp-tools-file.
|
|
330
|
+
*/
|
|
331
|
+
function MCPToolsFileNode() {
|
|
332
|
+
return {
|
|
333
|
+
data: {
|
|
334
|
+
name: questionNames_1.QuestionNames.MCPToolsFilePath,
|
|
335
|
+
title: (0, localizeUtils_1.getLocalizedString)("core.MCPForDA.toolsFilePath.title"),
|
|
336
|
+
type: "text",
|
|
337
|
+
placeholder: (0, localizeUtils_1.getLocalizedString)("core.MCPForDA.toolsFilePath.placeholder"),
|
|
338
|
+
additionalValidationOnAccept: {
|
|
339
|
+
validFunc: async (value, inputs) => {
|
|
340
|
+
if (!value)
|
|
341
|
+
return undefined;
|
|
342
|
+
const filePath = value;
|
|
343
|
+
if (!(await exports.teamsProjectTypeDeps.pathExists(filePath))) {
|
|
344
|
+
return (0, localizeUtils_1.getLocalizedString)("core.MCPForDA.toolsFileNotFound", filePath);
|
|
345
|
+
}
|
|
346
|
+
try {
|
|
347
|
+
const tools = await exports.teamsProjectTypeDeps.readMCPToolsFromFile(filePath);
|
|
348
|
+
if (inputs) {
|
|
349
|
+
inputs[questionNames_1.QuestionNames.MCPForDAAvailableTools] = tools;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
catch (e) {
|
|
353
|
+
return e.message;
|
|
354
|
+
}
|
|
355
|
+
return undefined;
|
|
356
|
+
},
|
|
357
|
+
},
|
|
358
|
+
},
|
|
359
|
+
// This node is only shown when:
|
|
360
|
+
// 1. CLI platform (no VS Code MCP gateway), AND
|
|
361
|
+
// 2. Either auth is required, or auto-fetch returned no tools
|
|
362
|
+
condition: (inputs) => {
|
|
363
|
+
// In VS Code, tools are fetched by the extension handler, so skip this node
|
|
364
|
+
if (inputs.platform === teamsfx_api_1.Platform.VSCode)
|
|
365
|
+
return false;
|
|
366
|
+
// Show if no available tools were populated by auto-fetch
|
|
367
|
+
const tools = inputs[questionNames_1.QuestionNames.MCPForDAAvailableTools];
|
|
368
|
+
return !tools || (Array.isArray(tools) && tools.length === 0);
|
|
369
|
+
},
|
|
370
|
+
};
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* Question node for CLI pre-fetch tool selection.
|
|
374
|
+
* Attempts to auto-fetch tools from the MCP server URL, then presents them for selection.
|
|
375
|
+
* For CLI platform only — VS Code has its own tool fetching via vscode.lm.tools.
|
|
376
|
+
*/
|
|
377
|
+
function MCPCliPreFetchToolsNode() {
|
|
378
|
+
return {
|
|
379
|
+
condition: (inputs) => {
|
|
380
|
+
// Only show in CLI when tools are available (either fetched or loaded from file)
|
|
381
|
+
if (inputs.platform === teamsfx_api_1.Platform.VSCode)
|
|
382
|
+
return false;
|
|
383
|
+
const tools = inputs[questionNames_1.QuestionNames.MCPForDAAvailableTools];
|
|
384
|
+
return tools && Array.isArray(tools) && tools.length > 0;
|
|
385
|
+
},
|
|
386
|
+
data: {
|
|
387
|
+
type: "multiSelect",
|
|
388
|
+
name: questionNames_1.QuestionNames.MCPForDAPreFetchTools,
|
|
389
|
+
title: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.mcpForDa.PreFetchTools.title"),
|
|
390
|
+
staticOptions: [],
|
|
391
|
+
dynamicOptions: (inputs) => {
|
|
392
|
+
const availableTools = inputs[questionNames_1.QuestionNames.MCPForDAAvailableTools];
|
|
393
|
+
return availableTools.map((tool) => ({
|
|
394
|
+
id: tool.name,
|
|
395
|
+
label: tool.name,
|
|
396
|
+
detail: tool.description || "",
|
|
397
|
+
}));
|
|
398
|
+
},
|
|
399
|
+
default: (inputs) => {
|
|
400
|
+
const availableTools = inputs[questionNames_1.QuestionNames.MCPForDAAvailableTools] || [];
|
|
401
|
+
return availableTools.map((tool) => tool.name);
|
|
402
|
+
},
|
|
403
|
+
},
|
|
404
|
+
};
|
|
405
|
+
}
|
|
290
406
|
function MCPLocalServerSelectionNode() {
|
|
291
407
|
return {
|
|
292
408
|
condition: { equals: "local" },
|
|
@@ -316,6 +432,166 @@ function MCPLocalServerSelectionNode() {
|
|
|
316
432
|
children: [],
|
|
317
433
|
};
|
|
318
434
|
}
|
|
435
|
+
/**
|
|
436
|
+
* Shared static option list for the `mcp-da-auth-type` single-select question.
|
|
437
|
+
* Kebab-case values so CLI flags (`--mcp-da-auth-type entra-sso` etc.) match the
|
|
438
|
+
* scaffold inputs and the scenario doc.
|
|
439
|
+
*
|
|
440
|
+
* `oauth-dynamic` (Dynamic Client Registration) is gated behind both
|
|
441
|
+
* `TEAMSFX_MCP_FOR_DA_DT` and `TEAMSFX_MCP_FOR_DA_DCR` because the DCR
|
|
442
|
+
* provisioning flow currently piggybacks on the DT-mode env-file plumbing.
|
|
443
|
+
*/
|
|
444
|
+
function MCPForDAAuthTypeStaticOptions() {
|
|
445
|
+
const showDCR = featureFlags_1.featureFlagManager.getBooleanValue(featureFlags_1.FeatureFlags.MCPForDADT) &&
|
|
446
|
+
featureFlags_1.featureFlagManager.getBooleanValue(featureFlags_1.FeatureFlags.MCPForDADCR);
|
|
447
|
+
const options = [
|
|
448
|
+
{
|
|
449
|
+
id: "oauth",
|
|
450
|
+
label: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.mcpForDa.Auth.OAuth"),
|
|
451
|
+
detail: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.mcpForDa.Auth.OAuth.Detail"),
|
|
452
|
+
},
|
|
453
|
+
];
|
|
454
|
+
if (showDCR) {
|
|
455
|
+
options.push({
|
|
456
|
+
id: "oauth-dynamic",
|
|
457
|
+
label: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.mcpForDa.Auth.OAuthDynamic"),
|
|
458
|
+
detail: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.mcpForDa.Auth.OAuthDynamic.Detail"),
|
|
459
|
+
});
|
|
460
|
+
}
|
|
461
|
+
options.push({
|
|
462
|
+
id: "entra-sso",
|
|
463
|
+
label: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.mcpForDa.Auth.EntraSSO"),
|
|
464
|
+
detail: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.mcpForDa.Auth.EntraSSO.Detail"),
|
|
465
|
+
}, {
|
|
466
|
+
id: "none",
|
|
467
|
+
label: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.mcpForDa.Auth.None"),
|
|
468
|
+
detail: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.mcpForDa.Auth.None.Detail"),
|
|
469
|
+
});
|
|
470
|
+
return options;
|
|
471
|
+
}
|
|
472
|
+
function MCPForDAFetchAuthTypeStaticOptions() {
|
|
473
|
+
const options = [];
|
|
474
|
+
if (featureFlags_1.featureFlagManager.getBooleanValue(featureFlags_1.FeatureFlags.MCPForDADCR)) {
|
|
475
|
+
options.push({
|
|
476
|
+
id: "oauth-dynamic",
|
|
477
|
+
label: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.mcpForDa.Auth.OAuthDynamic"),
|
|
478
|
+
detail: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.mcpForDa.Auth.OAuthDynamic.Detail"),
|
|
479
|
+
});
|
|
480
|
+
}
|
|
481
|
+
options.push({
|
|
482
|
+
id: "oauth",
|
|
483
|
+
label: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.mcpForDa.Auth.OAuth"),
|
|
484
|
+
detail: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.mcpForDa.Auth.OAuth.Detail"),
|
|
485
|
+
}, {
|
|
486
|
+
id: "entra-sso",
|
|
487
|
+
label: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.mcpForDa.Auth.EntraSSO"),
|
|
488
|
+
detail: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.mcpForDa.Auth.EntraSSO.Detail"),
|
|
489
|
+
});
|
|
490
|
+
return options;
|
|
491
|
+
}
|
|
492
|
+
/**
|
|
493
|
+
* Follow-up question nodes shown after the user picks an `mcp-da-auth-type`
|
|
494
|
+
* value. Unconditional per SCN-DA-CREATE-WITH-MCP-SERVER step 6a/6b: the
|
|
495
|
+
* answers are always collected; the TEAMSFX_MCP_FOR_DA_DT flag only governs
|
|
496
|
+
* how the answers reach `oauth/register` (env-file persistence + ${{...}}
|
|
497
|
+
* refs when on; in-process bridge `process.env["oauth-client-id"]` etc. when
|
|
498
|
+
* off).
|
|
499
|
+
*
|
|
500
|
+
* - `oauth` (static OAuth): client id (required) + client secret (required, password)
|
|
501
|
+
* + scopes (optional).
|
|
502
|
+
* - `entra-sso`: only client id (required).
|
|
503
|
+
* - `oauth-dynamic` / `none`: no follow-up questions.
|
|
504
|
+
*/
|
|
505
|
+
function MCPForDAAuthCredentialNodes() {
|
|
506
|
+
const clientIdNode = {
|
|
507
|
+
condition: (inputs) => {
|
|
508
|
+
const authType = inputs[questionNames_1.QuestionNames.MCPForDAAuthType];
|
|
509
|
+
return authType === "oauth" || authType === "entra-sso";
|
|
510
|
+
},
|
|
511
|
+
data: {
|
|
512
|
+
name: questionNames_1.QuestionNames.MCPForDAClientId,
|
|
513
|
+
type: "text",
|
|
514
|
+
title: (inputs) => inputs[questionNames_1.QuestionNames.MCPForDAAuthType] === "entra-sso"
|
|
515
|
+
? (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.mcpForDa.EntraClientId.title")
|
|
516
|
+
: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.mcpForDa.ClientId.title"),
|
|
517
|
+
placeholder: (inputs) => inputs[questionNames_1.QuestionNames.MCPForDAAuthType] === "entra-sso"
|
|
518
|
+
? (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.mcpForDa.EntraClientId.placeholder")
|
|
519
|
+
: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.mcpForDa.ClientId.placeholder"),
|
|
520
|
+
validation: {
|
|
521
|
+
validFunc: (value, inputs) => {
|
|
522
|
+
if (!value || value.trim().length === 0) {
|
|
523
|
+
return inputs?.[questionNames_1.QuestionNames.MCPForDAAuthType] === "entra-sso"
|
|
524
|
+
? (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.mcpForDa.EntraClientId.required")
|
|
525
|
+
: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.mcpForDa.ClientId.required");
|
|
526
|
+
}
|
|
527
|
+
return undefined;
|
|
528
|
+
},
|
|
529
|
+
},
|
|
530
|
+
},
|
|
531
|
+
};
|
|
532
|
+
const clientSecretNode = {
|
|
533
|
+
condition: (inputs) => inputs[questionNames_1.QuestionNames.MCPForDAAuthType] === "oauth",
|
|
534
|
+
data: {
|
|
535
|
+
name: questionNames_1.QuestionNames.MCPForDAClientSecret,
|
|
536
|
+
type: "text",
|
|
537
|
+
password: true,
|
|
538
|
+
title: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.mcpForDa.ClientSecret.title"),
|
|
539
|
+
placeholder: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.mcpForDa.ClientSecret.placeholder"),
|
|
540
|
+
validation: {
|
|
541
|
+
validFunc: (value) => {
|
|
542
|
+
if (!value || value.trim().length === 0) {
|
|
543
|
+
return (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.mcpForDa.ClientSecret.required");
|
|
544
|
+
}
|
|
545
|
+
return undefined;
|
|
546
|
+
},
|
|
547
|
+
},
|
|
548
|
+
},
|
|
549
|
+
};
|
|
550
|
+
const scopesNode = {
|
|
551
|
+
condition: (inputs) => inputs[questionNames_1.QuestionNames.MCPForDAAuthType] === "oauth",
|
|
552
|
+
data: {
|
|
553
|
+
name: questionNames_1.QuestionNames.MCPForDAScopes,
|
|
554
|
+
type: "text",
|
|
555
|
+
title: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.mcpForDa.Scopes.title"),
|
|
556
|
+
placeholder: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.mcpForDa.Scopes.placeholder"),
|
|
557
|
+
required: false,
|
|
558
|
+
},
|
|
559
|
+
};
|
|
560
|
+
return [clientIdNode, clientSecretNode, scopesNode];
|
|
561
|
+
}
|
|
562
|
+
/**
|
|
563
|
+
* Reject an MCP server URL that cannot be one.
|
|
564
|
+
*
|
|
565
|
+
* A value with no scheme never reaches the network: axios cannot build a request from it, so
|
|
566
|
+
* the probe throws, reports no status, and would be classified `undetermined` — letting a
|
|
567
|
+
* plainly malformed URL through. Rule it out syntactically first.
|
|
568
|
+
*
|
|
569
|
+
* ADR-0020: of the answers a server actually gives, block only on 404, the one no valid MCP
|
|
570
|
+
* endpoint was ever measured giving. The other `notEndpoint` shapes (403, 405, 200 without a
|
|
571
|
+
* JSON-RPC envelope) only warn after scaffolding, because a 403 can come from a WAF sitting in
|
|
572
|
+
* front of a perfectly good endpoint and wrongly blocking a legitimate URL is worse than
|
|
573
|
+
* missing a wrong one. `undetermined` — 5xx, timeouts, unreachable hosts — never blocks, so
|
|
574
|
+
* scaffolding does not fail closed because the network did.
|
|
575
|
+
*
|
|
576
|
+
* Shared by the create flow and the "add MCP server" action flow so both reject the same URLs.
|
|
577
|
+
*/
|
|
578
|
+
async function validateMCPServerUrl(value) {
|
|
579
|
+
let parsed;
|
|
580
|
+
try {
|
|
581
|
+
parsed = new URL(value);
|
|
582
|
+
}
|
|
583
|
+
catch {
|
|
584
|
+
return (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.mcpForDa.ServerUrl.invalidUrl");
|
|
585
|
+
}
|
|
586
|
+
if (parsed.protocol !== "https:" && parsed.protocol !== "http:") {
|
|
587
|
+
return (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.mcpForDa.ServerUrl.invalidUrl");
|
|
588
|
+
}
|
|
589
|
+
const probe = await exports.teamsProjectTypeDeps.probeMCPServerAuth(value);
|
|
590
|
+
if (probe.endpointStatus === "notEndpoint" && probe.responseStatus === 404) {
|
|
591
|
+
return (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.mcpForDa.ServerUrl.notAnMcpEndpoint");
|
|
592
|
+
}
|
|
593
|
+
return undefined;
|
|
594
|
+
}
|
|
319
595
|
function MCPForDAServerUrlNode() {
|
|
320
596
|
return {
|
|
321
597
|
condition: { equals: CapabilityOptions_1.ActionStartOptions.mcp().id },
|
|
@@ -324,19 +600,132 @@ function MCPForDAServerUrlNode() {
|
|
|
324
600
|
title: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.mcpForDa.ServerUrl.title"),
|
|
325
601
|
type: "text",
|
|
326
602
|
placeholder: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.mcpForDa.ServerUrl.placeholder"),
|
|
603
|
+
additionalValidationOnAccept: {
|
|
604
|
+
validFunc: async (value, inputs) => {
|
|
605
|
+
if (!value || !inputs)
|
|
606
|
+
return undefined;
|
|
607
|
+
const rejection = await validateMCPServerUrl(value);
|
|
608
|
+
if (rejection) {
|
|
609
|
+
return rejection;
|
|
610
|
+
}
|
|
611
|
+
// For CLI: attempt to auto-fetch tools from the server
|
|
612
|
+
if (inputs.platform !== teamsfx_api_1.Platform.VSCode) {
|
|
613
|
+
try {
|
|
614
|
+
const result = await exports.teamsProjectTypeDeps.fetchMCPTools(value);
|
|
615
|
+
if (result.requiresAuth) {
|
|
616
|
+
inputs["_mcpAuthRequired"] = true;
|
|
617
|
+
inputs[questionNames_1.QuestionNames.MCPForDAAvailableTools] = [];
|
|
618
|
+
if (result.authMetadataUrl) {
|
|
619
|
+
inputs[questionNames_1.QuestionNames.MCPForDAAuthMetadataUrl] = result.authMetadataUrl;
|
|
620
|
+
}
|
|
621
|
+
inputs[questionNames_1.QuestionNames.MCPForDAAuth] = "OAuthPluginVault";
|
|
622
|
+
}
|
|
623
|
+
else if (result.tools.length > 0) {
|
|
624
|
+
inputs[questionNames_1.QuestionNames.MCPForDAAvailableTools] = result.tools;
|
|
625
|
+
inputs[questionNames_1.QuestionNames.MCPForDATool] = "pre-fetch";
|
|
626
|
+
inputs[questionNames_1.QuestionNames.MCPForDAAuth] = "NoneAuth";
|
|
627
|
+
}
|
|
628
|
+
else {
|
|
629
|
+
inputs[questionNames_1.QuestionNames.MCPForDAAvailableTools] = [];
|
|
630
|
+
inputs[questionNames_1.QuestionNames.MCPForDAAuth] = "NoneAuth";
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
catch {
|
|
634
|
+
inputs[questionNames_1.QuestionNames.MCPForDAAvailableTools] = [];
|
|
635
|
+
inputs[questionNames_1.QuestionNames.MCPForDAAuth] = "NoneAuth";
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
return undefined;
|
|
639
|
+
},
|
|
640
|
+
},
|
|
327
641
|
},
|
|
328
642
|
};
|
|
329
643
|
}
|
|
644
|
+
exports.CreateNewPluginManifestSentinel = "__createNewPluginManifest__";
|
|
330
645
|
function updateActionWithMCP() {
|
|
331
646
|
return {
|
|
332
647
|
data: {
|
|
333
648
|
type: "singleFile",
|
|
334
649
|
name: questionNames_1.QuestionNames.PluginManifestFilePath,
|
|
335
650
|
title: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.mcpForDa.File.title"),
|
|
336
|
-
defaultFolder: (inputs) => path_1.default.normalize(inputs.projectPath),
|
|
337
|
-
|
|
651
|
+
defaultFolder: (inputs) => path_1.default.normalize(path_1.default.join(inputs.projectPath, teamsfx_api_1.AppPackageFolderName)),
|
|
652
|
+
filters: { files: ["json"] },
|
|
653
|
+
possibleFiles: async (inputs) => {
|
|
654
|
+
const projectPath = inputs.projectPath;
|
|
655
|
+
const items = [];
|
|
656
|
+
// List every action plugin file referenced by the declarative agent
|
|
657
|
+
// manifest so the user can update an existing one.
|
|
658
|
+
try {
|
|
659
|
+
const teamsManifestPath = path_1.default.join(projectPath, teamsfx_api_1.AppPackageFolderName, teamsfx_api_1.ManifestTemplateFileName);
|
|
660
|
+
if (await exports.teamsProjectTypeDeps.pathExists(teamsManifestPath)) {
|
|
661
|
+
const teamsManifest = await exports.teamsProjectTypeDeps.readJSON(teamsManifestPath);
|
|
662
|
+
const declarativeAgentRelativePath = teamsManifest?.copilotAgents?.declarativeAgents?.[0]?.file;
|
|
663
|
+
if (declarativeAgentRelativePath) {
|
|
664
|
+
const declarativeAgentPath = path_1.default.join(projectPath, teamsfx_api_1.AppPackageFolderName, declarativeAgentRelativePath);
|
|
665
|
+
if (await exports.teamsProjectTypeDeps.pathExists(declarativeAgentPath)) {
|
|
666
|
+
const da = await exports.teamsProjectTypeDeps.readJSON(declarativeAgentPath);
|
|
667
|
+
const actions = da?.actions ?? [];
|
|
668
|
+
const seen = new Set();
|
|
669
|
+
for (const action of actions) {
|
|
670
|
+
if (!action?.file)
|
|
671
|
+
continue;
|
|
672
|
+
const absPath = path_1.default.normalize(path_1.default.join(path_1.default.dirname(declarativeAgentPath), action.file));
|
|
673
|
+
if (seen.has(absPath))
|
|
674
|
+
continue;
|
|
675
|
+
seen.add(absPath);
|
|
676
|
+
items.push({
|
|
677
|
+
id: absPath,
|
|
678
|
+
label: `$(file) ${path_1.default.basename(absPath)}`,
|
|
679
|
+
description: path_1.default.dirname(absPath),
|
|
680
|
+
});
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
catch {
|
|
687
|
+
// best-effort — fall through to just the create-new option
|
|
688
|
+
}
|
|
689
|
+
items.push({
|
|
690
|
+
id: exports.CreateNewPluginManifestSentinel,
|
|
691
|
+
label: `$(new-file) ${(0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.mcpForDa.File.createNew.label")}`,
|
|
692
|
+
});
|
|
693
|
+
return items;
|
|
694
|
+
},
|
|
338
695
|
},
|
|
339
696
|
children: [
|
|
697
|
+
{
|
|
698
|
+
condition: (inputs) => inputs[questionNames_1.QuestionNames.PluginManifestFilePath] === exports.CreateNewPluginManifestSentinel,
|
|
699
|
+
data: {
|
|
700
|
+
type: "text",
|
|
701
|
+
name: questionNames_1.QuestionNames.NewPluginManifestFileName,
|
|
702
|
+
title: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.mcpForDa.File.createNew.title"),
|
|
703
|
+
placeholder: teamsfx_api_1.DefaultPluginManifestFileName,
|
|
704
|
+
default: teamsfx_api_1.DefaultPluginManifestFileName,
|
|
705
|
+
validation: {
|
|
706
|
+
validFunc: async (input, inputs) => {
|
|
707
|
+
const trimmed = input.trim();
|
|
708
|
+
if (!trimmed) {
|
|
709
|
+
return (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.mcpForDa.File.createNew.validation.empty");
|
|
710
|
+
}
|
|
711
|
+
if (!trimmed.toLowerCase().endsWith(".json")) {
|
|
712
|
+
return (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.mcpForDa.File.createNew.validation.extension");
|
|
713
|
+
}
|
|
714
|
+
if (path_1.default.isAbsolute(trimmed) || trimmed.includes("/") || trimmed.includes("\\")) {
|
|
715
|
+
return (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.mcpForDa.File.createNew.validation.relative");
|
|
716
|
+
}
|
|
717
|
+
const projectPath = inputs?.projectPath;
|
|
718
|
+
if (projectPath) {
|
|
719
|
+
const target = path_1.default.join(projectPath, teamsfx_api_1.AppPackageFolderName, trimmed);
|
|
720
|
+
if (await exports.teamsProjectTypeDeps.pathExists(target)) {
|
|
721
|
+
return (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.mcpForDa.File.createNew.validation.exists", trimmed);
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
return undefined;
|
|
725
|
+
},
|
|
726
|
+
},
|
|
727
|
+
},
|
|
728
|
+
},
|
|
340
729
|
{
|
|
341
730
|
data: {
|
|
342
731
|
type: "multiSelect",
|
|
@@ -356,16 +745,20 @@ function updateActionWithMCP() {
|
|
|
356
745
|
},
|
|
357
746
|
default: async (inputs) => {
|
|
358
747
|
const pluginManifestFilePath = inputs[questionNames_1.QuestionNames.PluginManifestFilePath];
|
|
359
|
-
|
|
748
|
+
// Skip when the user chose "Create a new ai-plugin.json" (the value
|
|
749
|
+
// is a sentinel id, not a real path) or when the file doesn't exist
|
|
750
|
+
// yet. The plugin manifest will be created later in addPluginFromMCP /
|
|
751
|
+
// updateActionWithMCP, so there are no pre-selected tools to default.
|
|
752
|
+
if (!pluginManifestFilePath ||
|
|
753
|
+
pluginManifestFilePath === exports.CreateNewPluginManifestSentinel ||
|
|
754
|
+
!(await exports.teamsProjectTypeDeps.pathExists(pluginManifestFilePath))) {
|
|
360
755
|
return [];
|
|
361
756
|
}
|
|
362
|
-
const pluginManifest = await
|
|
757
|
+
const pluginManifest = await exports.teamsProjectTypeDeps.readJSON(pluginManifestFilePath);
|
|
363
758
|
const serverUrl = inputs[questionNames_1.QuestionNames.MCPForDAServerUrl];
|
|
364
759
|
const result = [];
|
|
365
760
|
pluginManifest.runtimes
|
|
366
|
-
.filter((runtime) => runtime.type === "RemoteMCPServer" &&
|
|
367
|
-
runtime.spec.url === serverUrl &&
|
|
368
|
-
!runtime.spec["enable_dynamic_discovery"])
|
|
761
|
+
.filter((runtime) => runtime.type === "RemoteMCPServer" && runtime.spec.url === serverUrl)
|
|
369
762
|
.forEach((runtime) => {
|
|
370
763
|
result.push(...runtime["run_for_functions"]);
|
|
371
764
|
});
|
|
@@ -381,18 +774,12 @@ function updateActionWithMCP() {
|
|
|
381
774
|
type: "singleSelect",
|
|
382
775
|
name: questionNames_1.QuestionNames.MCPForDAAuthType,
|
|
383
776
|
title: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.mcpForDa.AuthType.title"),
|
|
384
|
-
staticOptions:
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
},
|
|
389
|
-
{
|
|
390
|
-
id: "entraSSO",
|
|
391
|
-
label: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.mcpForDa.Auth.EntraSSO"),
|
|
392
|
-
},
|
|
393
|
-
],
|
|
394
|
-
default: "oauth",
|
|
777
|
+
staticOptions: MCPForDAFetchAuthTypeStaticOptions(),
|
|
778
|
+
default: featureFlags_1.featureFlagManager.getBooleanValue(featureFlags_1.FeatureFlags.MCPForDADCR)
|
|
779
|
+
? "oauth-dynamic"
|
|
780
|
+
: "oauth",
|
|
395
781
|
},
|
|
782
|
+
children: [],
|
|
396
783
|
},
|
|
397
784
|
],
|
|
398
785
|
};
|