@microsoft/teamsfx-core 3.1.0 → 3.1.2-alpha.7d8ba7acc9.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/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 +3 -7
- package/build/client/teamsDevPortalClient.d.ts.map +1 -1
- package/build/client/teamsDevPortalClient.js +101 -122
- 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/permissionInterface.d.ts +12 -3
- package/build/common/permissionInterface.d.ts.map +1 -1
- package/build/common/permissionInterface.js +7 -1
- package/build/common/permissionInterface.js.map +1 -1
- 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 +2 -2
- package/build/component/configManager/lifecycle.d.ts.map +1 -1
- package/build/component/configManager/lifecycle.js +31 -8
- 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/botAadApp/create.js +1 -1
- package/build/component/driver/botAadApp/create.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 +39 -4
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js.map +1 -1
- package/build/component/driver/deploy/azure/impl/azureDeployImpl.js +2 -2
- package/build/component/driver/deploy/azure/impl/azureDeployImpl.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/interface/buildAndDeployArgs.d.ts +1 -1
- package/build/component/driver/interface/buildAndDeployArgs.d.ts.map +1 -1
- package/build/component/driver/interface/commonArgs.d.ts +2 -1
- package/build/component/driver/interface/commonArgs.d.ts.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/baseBuildDriver.d.ts +1 -2
- package/build/component/driver/script/baseBuildDriver.d.ts.map +1 -1
- package/build/component/driver/script/baseBuildDriver.js +0 -2
- package/build/component/driver/script/baseBuildDriver.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 +6 -0
- package/build/component/driver/teamsApp/teamsappMgr.d.ts.map +1 -1
- package/build/component/driver/teamsApp/teamsappMgr.js +38 -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 +13 -0
- package/build/component/driver/teamsApp/validateAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/validateAppPackage.js +58 -1
- 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/driver/util/utils.d.ts.map +1 -1
- package/build/component/driver/util/utils.js +1 -0
- package/build/component/driver/util/utils.js.map +1 -1
- package/build/component/feature/sso.js +2 -2
- package/build/component/feature/sso.js.map +1 -1
- 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/configFiles/configGenerator.js +1 -1
- package/build/component/generator/configFiles/configGenerator.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/common.js +1 -1
- package/build/component/generator/openApiSpec/common.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 +22 -60
- 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/spfxGenerator.js +5 -5
- package/build/component/generator/spfx/spfxGenerator.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 +11 -5
- package/build/component/m365/packageService.d.ts.map +1 -1
- package/build/component/m365/packageService.js +93 -103
- 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 -14
- 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/envFunctionUtils.js +1 -1
- package/build/component/utils/envFunctionUtils.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 +49 -16
- 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 +512 -325
- 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/FxCoreClient.d.ts +74 -0
- package/build/core/FxCoreClient.d.ts.map +1 -0
- package/build/core/FxCoreClient.js +141 -0
- package/build/core/FxCoreClient.js.map +1 -0
- package/build/core/collaborator.d.ts +1 -0
- package/build/core/collaborator.d.ts.map +1 -1
- package/build/core/collaborator.js +37 -0
- package/build/core/collaborator.js.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 +244 -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 +316 -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 +148 -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 +8 -4
- package/build/index.d.ts.map +1 -1
- package/build/index.js +21 -7
- 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 +198 -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 +222 -0
- package/build/v4/buildTarget/parseSelector.js.map +1 -0
- package/build/v4/buildTarget/resolveBuildTarget.d.ts +82 -0
- package/build/v4/buildTarget/resolveBuildTarget.d.ts.map +1 -0
- package/build/v4/buildTarget/resolveBuildTarget.js +243 -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 +140 -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 +112 -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 +49 -100
- 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 +128 -3
- package/templates/configs/playground/typescript/.vscode/tasks.json +1 -1
- package/templates/configs/remote/python/env/.env.dev +2 -1
- package/templates/configs/remote/python/m365agents.yml.tpl +1 -0
- package/templates/configs/remote/typescript/env/.env.dev +2 -1
- package/templates/configs/remote/typescript/m365agents.yml.tpl +1 -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/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
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { Inputs } from "@microsoft/teamsfx-api";
|
|
2
|
+
import { resolveMCPOAuthMetadata } from "./mcpToolFetcher";
|
|
3
|
+
/**
|
|
4
|
+
* Indirection seam for the `mcpToolFetcher` functions this scaffolder calls, so
|
|
5
|
+
* unit tests can stub them on a plain object. Sinon cannot reliably stub a
|
|
6
|
+
* module's named export under the vitest module transform; stubbing a property
|
|
7
|
+
* on this object always works.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Resolved authorization-server endpoints relevant to the MCP scaffolder.
|
|
11
|
+
* `wellKnownUrl` is what `oauth-dynamic` (`dcr/register`) uses for
|
|
12
|
+
* `wellKnownAuthorizationServer`; static `oauth` ignores it.
|
|
13
|
+
*/
|
|
14
|
+
export declare const mcpAuthScaffolderDeps: {
|
|
15
|
+
resolveMCPOAuthMetadata: typeof resolveMCPOAuthMetadata;
|
|
16
|
+
};
|
|
17
|
+
export interface ResolvedMCPAuthEndpoints {
|
|
18
|
+
authorizationUrl?: string;
|
|
19
|
+
tokenUrl?: string;
|
|
20
|
+
refreshUrl?: string;
|
|
21
|
+
wellKnownUrl?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Derive the `runtimes[0].auth` block for the ai-plugin manifest based on the
|
|
25
|
+
* user's `mcp-da-auth-type` choice. Returns the `OAuthPluginVault` block when
|
|
26
|
+
* auth is required and a registration id is available; returns `undefined` for
|
|
27
|
+
* `"none"` (or any state where no `oauth/register` / `dcr/register` action has
|
|
28
|
+
* been wired). Callers decide whether to omit the `auth` field or substitute
|
|
29
|
+
* `{ type: "None" }` based on their manifest convention.
|
|
30
|
+
*/
|
|
31
|
+
export declare function deriveMCPManifestOAuth(authType: string | undefined, registrationId: string | undefined): {
|
|
32
|
+
type: "OAuthPluginVault";
|
|
33
|
+
reference_id: string;
|
|
34
|
+
} | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Resolve OAuth endpoints based on the user's `mcp-da-auth-type` choice.
|
|
37
|
+
*
|
|
38
|
+
* - `oauth` and `oauth-dynamic`: probe `resource_metadata` /
|
|
39
|
+
* `.well-known/oauth-authorization-server` to discover authorization/token URLs.
|
|
40
|
+
* `oauth-dynamic` also needs the well-known URL itself for `dcr/register`.
|
|
41
|
+
* - `entra-sso` and `none`: returns empty (no static endpoints to resolve).
|
|
42
|
+
*/
|
|
43
|
+
export declare function resolveMCPAuthEndpoints(authType: string | undefined, inputs: Inputs): Promise<ResolvedMCPAuthEndpoints>;
|
|
44
|
+
/**
|
|
45
|
+
* Placeholder written to `wellKnownAuthorizationServer` when the
|
|
46
|
+
* `oauth-dynamic` flow can't auto-discover the URL at scaffold time. The
|
|
47
|
+
* developer must replace this before provisioning. Surfaced via the
|
|
48
|
+
* `wellKnownUrlPlaceholderUsed` return flag so callers can emit a warning.
|
|
49
|
+
*/
|
|
50
|
+
export declare const MCP_DCR_WELL_KNOWN_URL_PLACEHOLDER = "<PLEASE_FILL_IN_WELL_KNOWN_AUTHORIZATION_SERVER_URL>";
|
|
51
|
+
/**
|
|
52
|
+
* Placeholders written to `oauth/register` when endpoint discovery can't produce the
|
|
53
|
+
* authorization / token URLs for a static `oauth` (`identityProvider: Custom`) action.
|
|
54
|
+
* Omitting the fields instead would hide the gap entirely — the action looks complete but
|
|
55
|
+
* can never provision — so the placeholders make the missing values visible and editable,
|
|
56
|
+
* mirroring the `dcr/register` contract above.
|
|
57
|
+
*/
|
|
58
|
+
export declare const MCP_OAUTH_AUTHORIZATION_URL_PLACEHOLDER = "<PLEASE_FILL_IN_AUTHORIZATION_URL>";
|
|
59
|
+
export declare const MCP_OAUTH_TOKEN_URL_PLACEHOLDER = "<PLEASE_FILL_IN_TOKEN_URL>";
|
|
60
|
+
/**
|
|
61
|
+
* Every MCP scaffolding warning type is camelCased with this prefix (`mcpAuthRequired`,
|
|
62
|
+
* `mcpNoToolsFetched`, `mcpAuthDcrWellKnownUrlPlaceholder`, ...), while spec-parser warning
|
|
63
|
+
* types are kebab-cased (`operationid-missing`, `generate-card-failed`, ...). Surfaces use
|
|
64
|
+
* this predicate to let MCP warnings through the scaffolding summary without also leaking
|
|
65
|
+
* spec-parser warnings that the API-plugin flows deliberately suppress.
|
|
66
|
+
*/
|
|
67
|
+
export declare function isMCPScaffoldWarning(warning: {
|
|
68
|
+
type: string;
|
|
69
|
+
}): boolean;
|
|
70
|
+
/**
|
|
71
|
+
* The subset of MCP scaffolding warnings that mean the generated `m365agents.yml` still holds a
|
|
72
|
+
* placeholder and therefore cannot provision. Surfaces single these out for a blocking-looking
|
|
73
|
+
* notification instead of a summary line.
|
|
74
|
+
*/
|
|
75
|
+
export declare const MCP_AUTH_PLACEHOLDER_WARNING_TYPES: string[];
|
|
76
|
+
export interface InjectMCPAuthActionResult {
|
|
77
|
+
/** True when `oauth-dynamic` was injected with the placeholder URL because
|
|
78
|
+
* `endpoints.wellKnownUrl` was missing. */
|
|
79
|
+
wellKnownUrlPlaceholderUsed?: boolean;
|
|
80
|
+
/** True when `oauth` was injected with placeholder authorization / token URLs
|
|
81
|
+
* because endpoint discovery didn't return them. */
|
|
82
|
+
oauthUrlPlaceholderUsed?: boolean;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Inject the appropriate `oauth/register` or `dcr/register` action into
|
|
86
|
+
* `m365agents.yml` based on the user's `mcp-da-auth-type` choice. `none`
|
|
87
|
+
* is a no-op. `oauth-dynamic` routes to the DCR injector; `oauth` and
|
|
88
|
+
* `entra-sso` share the OAuth injector (the injector itself selects
|
|
89
|
+
* Custom vs. MicrosoftEntra based on `authType`).
|
|
90
|
+
*
|
|
91
|
+
* When `persistCredentialEnvRefs` is set (DT mode), the OAuth injector
|
|
92
|
+
* adds explicit `${{...}}` references to credential env vars derived from
|
|
93
|
+
* `serverName` so that `oauth/register` resolves credentials from env files
|
|
94
|
+
* persisted by the add-action flow instead of the in-process bridge. The scope
|
|
95
|
+
* reference is emitted only when `scopes` is non-empty, matching the conditional
|
|
96
|
+
* env-var write so provision never sees a dangling `${{...}}` reference.
|
|
97
|
+
*
|
|
98
|
+
* `oauth-dynamic` is always injected even when `endpoints.wellKnownUrl` is
|
|
99
|
+
* missing — a placeholder string is written instead so the action shows up in
|
|
100
|
+
* `m365agents.yml` for the developer to fix. The return flag tells the caller
|
|
101
|
+
* to emit a visible warning.
|
|
102
|
+
*/
|
|
103
|
+
export declare function injectMCPAuthActionToYml(args: {
|
|
104
|
+
ymlPath: string;
|
|
105
|
+
authType: string;
|
|
106
|
+
authName: string;
|
|
107
|
+
registrationId: string;
|
|
108
|
+
mcpServerUrl: string;
|
|
109
|
+
endpoints: ResolvedMCPAuthEndpoints;
|
|
110
|
+
persistCredentialEnvRefs?: boolean;
|
|
111
|
+
serverName?: string;
|
|
112
|
+
scopes?: string;
|
|
113
|
+
}): Promise<InjectMCPAuthActionResult>;
|
|
114
|
+
/**
|
|
115
|
+
* Persist user-provided MCP OAuth credentials into env files so the
|
|
116
|
+
* `oauth/register` action resolves them at provision time via the
|
|
117
|
+
* `${{MCP_DA_OAUTH_*_<SERVERNAME>}}` refs emitted by the injector.
|
|
118
|
+
*
|
|
119
|
+
* - `oauth`: writes `MCP_DA_OAUTH_CLIENT_ID_<NAME>` + optional
|
|
120
|
+
* `MCP_DA_OAUTH_SCOPE_<NAME>` to `env/.env.<env>`; writes
|
|
121
|
+
* `SECRET_MCP_DA_OAUTH_CLIENT_SECRET_<NAME>` (auto-encrypted + masked)
|
|
122
|
+
* to `env/.env.<env>.user`.
|
|
123
|
+
* - `entra-sso`: writes only `MCP_DA_OAUTH_CLIENT_ID_<NAME>`.
|
|
124
|
+
* - `oauth-dynamic` / `none`: no-op.
|
|
125
|
+
*
|
|
126
|
+
* Writes to every env folder entry returned by `envUtil.listEnv` (typically
|
|
127
|
+
* `dev` for fresh scaffolds; multiple envs for existing projects).
|
|
128
|
+
*/
|
|
129
|
+
export declare function persistMCPAuthCredentialEnvVars(args: {
|
|
130
|
+
projectPath: string;
|
|
131
|
+
authType: string;
|
|
132
|
+
serverName: string;
|
|
133
|
+
clientId?: string;
|
|
134
|
+
clientSecret?: string;
|
|
135
|
+
scopes?: string;
|
|
136
|
+
}): Promise<void>;
|
|
137
|
+
//# sourceMappingURL=mcpAuthScaffolder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcpAuthScaffolder.d.ts","sourceRoot":"","sources":["../../../src/component/utils/mcpAuthScaffolder.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,C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AAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,wBAAwB,CAAC;IACpC,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAqDrC;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,+BAA+B,CAAC,IAAI,EAAE;IAC1D,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,OAAO,CAAC,IAAI,CAAC,CAwBhB"}
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT license.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.MCP_AUTH_PLACEHOLDER_WARNING_TYPES = exports.MCP_OAUTH_TOKEN_URL_PLACEHOLDER = exports.MCP_OAUTH_AUTHORIZATION_URL_PLACEHOLDER = exports.MCP_DCR_WELL_KNOWN_URL_PLACEHOLDER = exports.mcpAuthScaffolderDeps = void 0;
|
|
6
|
+
exports.deriveMCPManifestOAuth = deriveMCPManifestOAuth;
|
|
7
|
+
exports.resolveMCPAuthEndpoints = resolveMCPAuthEndpoints;
|
|
8
|
+
exports.isMCPScaffoldWarning = isMCPScaffoldWarning;
|
|
9
|
+
exports.injectMCPAuthActionToYml = injectMCPAuthActionToYml;
|
|
10
|
+
exports.persistMCPAuthCredentialEnvVars = persistMCPAuthCredentialEnvVars;
|
|
11
|
+
const questionNames_1 = require("../../question/questionNames");
|
|
12
|
+
const actionInjector_1 = require("../configManager/actionInjector");
|
|
13
|
+
const envUtil_1 = require("./envUtil");
|
|
14
|
+
const mcpToolFetcher_1 = require("./mcpToolFetcher");
|
|
15
|
+
/**
|
|
16
|
+
* Indirection seam for the `mcpToolFetcher` functions this scaffolder calls, so
|
|
17
|
+
* unit tests can stub them on a plain object. Sinon cannot reliably stub a
|
|
18
|
+
* module's named export under the vitest module transform; stubbing a property
|
|
19
|
+
* on this object always works.
|
|
20
|
+
*/
|
|
21
|
+
/**
|
|
22
|
+
* Resolved authorization-server endpoints relevant to the MCP scaffolder.
|
|
23
|
+
* `wellKnownUrl` is what `oauth-dynamic` (`dcr/register`) uses for
|
|
24
|
+
* `wellKnownAuthorizationServer`; static `oauth` ignores it.
|
|
25
|
+
*/
|
|
26
|
+
exports.mcpAuthScaffolderDeps = {
|
|
27
|
+
resolveMCPOAuthMetadata: mcpToolFetcher_1.resolveMCPOAuthMetadata,
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Derive the `runtimes[0].auth` block for the ai-plugin manifest based on the
|
|
31
|
+
* user's `mcp-da-auth-type` choice. Returns the `OAuthPluginVault` block when
|
|
32
|
+
* auth is required and a registration id is available; returns `undefined` for
|
|
33
|
+
* `"none"` (or any state where no `oauth/register` / `dcr/register` action has
|
|
34
|
+
* been wired). Callers decide whether to omit the `auth` field or substitute
|
|
35
|
+
* `{ type: "None" }` based on their manifest convention.
|
|
36
|
+
*/
|
|
37
|
+
function deriveMCPManifestOAuth(authType, registrationId) {
|
|
38
|
+
if (authType && authType !== "none" && registrationId) {
|
|
39
|
+
return {
|
|
40
|
+
type: "OAuthPluginVault",
|
|
41
|
+
reference_id: `\${{${registrationId}}}`,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
return undefined;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Resolve OAuth endpoints based on the user's `mcp-da-auth-type` choice.
|
|
48
|
+
*
|
|
49
|
+
* - `oauth` and `oauth-dynamic`: probe `resource_metadata` /
|
|
50
|
+
* `.well-known/oauth-authorization-server` to discover authorization/token URLs.
|
|
51
|
+
* `oauth-dynamic` also needs the well-known URL itself for `dcr/register`.
|
|
52
|
+
* - `entra-sso` and `none`: returns empty (no static endpoints to resolve).
|
|
53
|
+
*/
|
|
54
|
+
async function resolveMCPAuthEndpoints(authType, inputs) {
|
|
55
|
+
if (authType !== "oauth" && authType !== "oauth-dynamic") {
|
|
56
|
+
return {};
|
|
57
|
+
}
|
|
58
|
+
const metadata = await exports.mcpAuthScaffolderDeps.resolveMCPOAuthMetadata(inputs[questionNames_1.QuestionNames.MCPForDAAuthMetadataUrl], inputs[questionNames_1.QuestionNames.MCPForDAAuthWellKnownUrl], inputs[questionNames_1.QuestionNames.MCPForDAServerUrl]);
|
|
59
|
+
return {
|
|
60
|
+
authorizationUrl: metadata.authorizationUrl,
|
|
61
|
+
tokenUrl: metadata.tokenUrl,
|
|
62
|
+
refreshUrl: metadata.refreshUrl,
|
|
63
|
+
wellKnownUrl: metadata.wellKnownUrl,
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Placeholder written to `wellKnownAuthorizationServer` when the
|
|
68
|
+
* `oauth-dynamic` flow can't auto-discover the URL at scaffold time. The
|
|
69
|
+
* developer must replace this before provisioning. Surfaced via the
|
|
70
|
+
* `wellKnownUrlPlaceholderUsed` return flag so callers can emit a warning.
|
|
71
|
+
*/
|
|
72
|
+
exports.MCP_DCR_WELL_KNOWN_URL_PLACEHOLDER = "<PLEASE_FILL_IN_WELL_KNOWN_AUTHORIZATION_SERVER_URL>";
|
|
73
|
+
/**
|
|
74
|
+
* Placeholders written to `oauth/register` when endpoint discovery can't produce the
|
|
75
|
+
* authorization / token URLs for a static `oauth` (`identityProvider: Custom`) action.
|
|
76
|
+
* Omitting the fields instead would hide the gap entirely — the action looks complete but
|
|
77
|
+
* can never provision — so the placeholders make the missing values visible and editable,
|
|
78
|
+
* mirroring the `dcr/register` contract above.
|
|
79
|
+
*/
|
|
80
|
+
exports.MCP_OAUTH_AUTHORIZATION_URL_PLACEHOLDER = "<PLEASE_FILL_IN_AUTHORIZATION_URL>";
|
|
81
|
+
exports.MCP_OAUTH_TOKEN_URL_PLACEHOLDER = "<PLEASE_FILL_IN_TOKEN_URL>";
|
|
82
|
+
/**
|
|
83
|
+
* Every MCP scaffolding warning type is camelCased with this prefix (`mcpAuthRequired`,
|
|
84
|
+
* `mcpNoToolsFetched`, `mcpAuthDcrWellKnownUrlPlaceholder`, ...), while spec-parser warning
|
|
85
|
+
* types are kebab-cased (`operationid-missing`, `generate-card-failed`, ...). Surfaces use
|
|
86
|
+
* this predicate to let MCP warnings through the scaffolding summary without also leaking
|
|
87
|
+
* spec-parser warnings that the API-plugin flows deliberately suppress.
|
|
88
|
+
*/
|
|
89
|
+
function isMCPScaffoldWarning(warning) {
|
|
90
|
+
return warning.type.startsWith("mcp");
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* The subset of MCP scaffolding warnings that mean the generated `m365agents.yml` still holds a
|
|
94
|
+
* placeholder and therefore cannot provision. Surfaces single these out for a blocking-looking
|
|
95
|
+
* notification instead of a summary line.
|
|
96
|
+
*/
|
|
97
|
+
exports.MCP_AUTH_PLACEHOLDER_WARNING_TYPES = [
|
|
98
|
+
"mcpAuthDcrWellKnownUrlPlaceholder",
|
|
99
|
+
"mcpAuthOAuthUrlPlaceholder",
|
|
100
|
+
];
|
|
101
|
+
/**
|
|
102
|
+
* Inject the appropriate `oauth/register` or `dcr/register` action into
|
|
103
|
+
* `m365agents.yml` based on the user's `mcp-da-auth-type` choice. `none`
|
|
104
|
+
* is a no-op. `oauth-dynamic` routes to the DCR injector; `oauth` and
|
|
105
|
+
* `entra-sso` share the OAuth injector (the injector itself selects
|
|
106
|
+
* Custom vs. MicrosoftEntra based on `authType`).
|
|
107
|
+
*
|
|
108
|
+
* When `persistCredentialEnvRefs` is set (DT mode), the OAuth injector
|
|
109
|
+
* adds explicit `${{...}}` references to credential env vars derived from
|
|
110
|
+
* `serverName` so that `oauth/register` resolves credentials from env files
|
|
111
|
+
* persisted by the add-action flow instead of the in-process bridge. The scope
|
|
112
|
+
* reference is emitted only when `scopes` is non-empty, matching the conditional
|
|
113
|
+
* env-var write so provision never sees a dangling `${{...}}` reference.
|
|
114
|
+
*
|
|
115
|
+
* `oauth-dynamic` is always injected even when `endpoints.wellKnownUrl` is
|
|
116
|
+
* missing — a placeholder string is written instead so the action shows up in
|
|
117
|
+
* `m365agents.yml` for the developer to fix. The return flag tells the caller
|
|
118
|
+
* to emit a visible warning.
|
|
119
|
+
*/
|
|
120
|
+
async function injectMCPAuthActionToYml(args) {
|
|
121
|
+
if (args.authType === "none")
|
|
122
|
+
return {};
|
|
123
|
+
if (args.authType === "oauth-dynamic") {
|
|
124
|
+
const placeholderUsed = !args.endpoints.wellKnownUrl;
|
|
125
|
+
const wellKnownUrl = args.endpoints.wellKnownUrl ?? exports.MCP_DCR_WELL_KNOWN_URL_PLACEHOLDER;
|
|
126
|
+
await actionInjector_1.ActionInjector.injectCreateDcrActionForMCP(args.ymlPath, args.authName, args.registrationId, args.mcpServerUrl, wellKnownUrl);
|
|
127
|
+
return placeholderUsed ? { wellKnownUrlPlaceholderUsed: true } : {};
|
|
128
|
+
}
|
|
129
|
+
let credentialEnvNames;
|
|
130
|
+
if (args.persistCredentialEnvRefs && args.serverName) {
|
|
131
|
+
if (args.authType === "oauth") {
|
|
132
|
+
credentialEnvNames = {
|
|
133
|
+
clientIdEnvName: `MCP_DA_OAUTH_CLIENT_ID_${args.serverName}`,
|
|
134
|
+
clientSecretEnvName: `SECRET_MCP_DA_OAUTH_CLIENT_SECRET_${args.serverName}`,
|
|
135
|
+
// Reference the scope env var only when a scope was actually provided.
|
|
136
|
+
// persistMCPAuthCredentialEnvVars writes MCP_DA_OAUTH_SCOPE_<NAME> only
|
|
137
|
+
// for a non-empty scope (scope is optional for OAuth); emitting the
|
|
138
|
+
// ${{...}} ref unconditionally leaves a dangling reference that fails to
|
|
139
|
+
// resolve and breaks provision.
|
|
140
|
+
...(args.scopes ? { scopeEnvName: `MCP_DA_OAUTH_SCOPE_${args.serverName}` } : {}),
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
else if (args.authType === "entra-sso") {
|
|
144
|
+
credentialEnvNames = {
|
|
145
|
+
clientIdEnvName: `MCP_DA_OAUTH_CLIENT_ID_${args.serverName}`,
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
// Only static `oauth` emits these endpoints; `entra-sso` resolves them from Entra.
|
|
150
|
+
const oauthUrlPlaceholderUsed = args.authType === "oauth" && (!args.endpoints.authorizationUrl || !args.endpoints.tokenUrl);
|
|
151
|
+
await actionInjector_1.ActionInjector.injectCreateOAuthActionForMCP(args.ymlPath, args.authType, args.authName, args.registrationId, args.mcpServerUrl, args.authType === "oauth"
|
|
152
|
+
? (args.endpoints.authorizationUrl ?? exports.MCP_OAUTH_AUTHORIZATION_URL_PLACEHOLDER)
|
|
153
|
+
: args.endpoints.authorizationUrl, args.authType === "oauth"
|
|
154
|
+
? (args.endpoints.tokenUrl ?? exports.MCP_OAUTH_TOKEN_URL_PLACEHOLDER)
|
|
155
|
+
: args.endpoints.tokenUrl, args.endpoints.refreshUrl, credentialEnvNames);
|
|
156
|
+
return oauthUrlPlaceholderUsed ? { oauthUrlPlaceholderUsed: true } : {};
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Persist user-provided MCP OAuth credentials into env files so the
|
|
160
|
+
* `oauth/register` action resolves them at provision time via the
|
|
161
|
+
* `${{MCP_DA_OAUTH_*_<SERVERNAME>}}` refs emitted by the injector.
|
|
162
|
+
*
|
|
163
|
+
* - `oauth`: writes `MCP_DA_OAUTH_CLIENT_ID_<NAME>` + optional
|
|
164
|
+
* `MCP_DA_OAUTH_SCOPE_<NAME>` to `env/.env.<env>`; writes
|
|
165
|
+
* `SECRET_MCP_DA_OAUTH_CLIENT_SECRET_<NAME>` (auto-encrypted + masked)
|
|
166
|
+
* to `env/.env.<env>.user`.
|
|
167
|
+
* - `entra-sso`: writes only `MCP_DA_OAUTH_CLIENT_ID_<NAME>`.
|
|
168
|
+
* - `oauth-dynamic` / `none`: no-op.
|
|
169
|
+
*
|
|
170
|
+
* Writes to every env folder entry returned by `envUtil.listEnv` (typically
|
|
171
|
+
* `dev` for fresh scaffolds; multiple envs for existing projects).
|
|
172
|
+
*/
|
|
173
|
+
async function persistMCPAuthCredentialEnvVars(args) {
|
|
174
|
+
if (args.authType !== "oauth" && args.authType !== "entra-sso")
|
|
175
|
+
return;
|
|
176
|
+
const envs = {};
|
|
177
|
+
if (args.clientId) {
|
|
178
|
+
envs[`MCP_DA_OAUTH_CLIENT_ID_${args.serverName}`] = args.clientId;
|
|
179
|
+
}
|
|
180
|
+
if (args.authType === "oauth") {
|
|
181
|
+
if (args.clientSecret) {
|
|
182
|
+
envs[`SECRET_MCP_DA_OAUTH_CLIENT_SECRET_${args.serverName}`] = args.clientSecret;
|
|
183
|
+
}
|
|
184
|
+
if (args.scopes) {
|
|
185
|
+
envs[`MCP_DA_OAUTH_SCOPE_${args.serverName}`] = args.scopes;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
if (Object.keys(envs).length === 0)
|
|
189
|
+
return;
|
|
190
|
+
const listRes = await envUtil_1.envUtil.listEnv(args.projectPath);
|
|
191
|
+
if (listRes.isErr())
|
|
192
|
+
throw listRes.error;
|
|
193
|
+
const envNames = listRes.value.length > 0 ? listRes.value : ["dev"];
|
|
194
|
+
for (const envName of envNames) {
|
|
195
|
+
const writeRes = await envUtil_1.envUtil.writeEnv(args.projectPath, envName, { ...envs });
|
|
196
|
+
if (writeRes.isErr())
|
|
197
|
+
throw writeRes.error;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
//# sourceMappingURL=mcpAuthScaffolder.js.map
|
|
@@ -0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AO,EAAE,EAAE,GAAG,IAAI,EAAE,CAAC,CAAC;QAChF,IAAI,QAAQ,CAAC,KAAK,EAAE;YAAE,MAAM,QAAQ,CAAC,KAAK,CAAC;IAC7C,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcpToolFetcher.d.ts","sourceRoot":"","sources":["../../../src/component/utils/mcpToolFetcher.ts"],"names":[],"mappings":"AAGA,cAAc,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT license.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
6
|
+
tslib_1.__exportStar(require("../../common/mcpToolFetcher"), exports);
|
|
7
|
+
//# sourceMappingURL=mcpToolFetcher.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcpToolFetcher.js","sourceRoot":"","sources":["../../../src/component/utils/mcpToolFetcher.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,sEAA4C"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { ProjectModel } from "../configManager/interface";
|
|
2
2
|
import { AADManifest } from "../driver/aad/interface/AADManifest";
|
|
3
|
+
import { getDetailedGraphPermissionMap } from "../driver/aad/permissions";
|
|
4
|
+
export declare const metadataGraphPermissionDeps: {
|
|
5
|
+
getDetailedGraphPermissionMap: typeof getDetailedGraphPermissionMap;
|
|
6
|
+
};
|
|
3
7
|
interface summary {
|
|
4
8
|
hasGraphPermission: boolean;
|
|
5
9
|
hasRole: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadataGraphPermssion.d.ts","sourceRoot":"","sources":["../../../src/component/utils/metadataGraphPermssion.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"metadataGraphPermssion.d.ts","sourceRoot":"","sources":["../../../src/component/utils/metadataGraphPermssion.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAClE,OAAO,EAAE,6BAA6B,EAA4B,MAAM,2BAA2B,CAAC;AAGpG,eAAO,MAAM,2BAA2B;;CAEvC,CAAC;AAEF,UAAU,OAAO;IACf,kBAAkB,EAAE,OAAO,CAAC;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,EAAE,OAAO,CAAC;IACvB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AACD,cAAM,2BAA2B;IACzB,gBAAgB,CACpB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,YAAY,EACnB,KAAK,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAC/B,OAAO,CAAC,IAAI,CAAC;IAgDhB,OAAO,CAAC,QAAQ,EAAE,WAAW,GAAG,OAAO,GAAG,SAAS;CAgDpD;AAED,eAAO,MAAM,2BAA2B,6BAAoC,CAAC"}
|
|
@@ -2,15 +2,18 @@
|
|
|
2
2
|
// Copyright (c) Microsoft Corporation.
|
|
3
3
|
// Licensed under the MIT license.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.metadataGraphPermissionUtil = void 0;
|
|
5
|
+
exports.metadataGraphPermissionUtil = exports.metadataGraphPermissionDeps = void 0;
|
|
6
6
|
const tslib_1 = require("tslib");
|
|
7
|
-
const path_1 = tslib_1.__importDefault(require("path"));
|
|
8
7
|
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
8
|
+
const path_1 = tslib_1.__importDefault(require("path"));
|
|
9
9
|
const isUUID_1 = tslib_1.__importDefault(require("validator/lib/isUUID"));
|
|
10
|
+
const telemetry_1 = require("../../common/telemetry");
|
|
10
11
|
const versionMetadata_1 = require("../../common/versionMetadata");
|
|
11
12
|
const permissions_1 = require("../driver/aad/permissions");
|
|
12
|
-
const telemetry_1 = require("../../common/telemetry");
|
|
13
13
|
const update_1 = require("../driver/aad/update");
|
|
14
|
+
exports.metadataGraphPermissionDeps = {
|
|
15
|
+
getDetailedGraphPermissionMap: permissions_1.getDetailedGraphPermissionMap,
|
|
16
|
+
};
|
|
14
17
|
class MetadataGraphPermissionUtil {
|
|
15
18
|
async parseAadManifest(ymlPath, model, props) {
|
|
16
19
|
let aadManifestName = versionMetadata_1.MetadataV3.aadManifestFileName;
|
|
@@ -65,7 +68,7 @@ class MetadataGraphPermissionUtil {
|
|
|
65
68
|
let hasAdminScope = false;
|
|
66
69
|
const scopes = [];
|
|
67
70
|
const roles = [];
|
|
68
|
-
const graphPermissionMap =
|
|
71
|
+
const graphPermissionMap = exports.metadataGraphPermissionDeps.getDetailedGraphPermissionMap();
|
|
69
72
|
if (!graphPermissionMap) {
|
|
70
73
|
return undefined;
|
|
71
74
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadataGraphPermssion.js","sourceRoot":"","sources":["../../../src/component/utils/metadataGraphPermssion.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,wDAAwB;AACxB,
|
|
1
|
+
{"version":3,"file":"metadataGraphPermssion.js","sourceRoot":"","sources":["../../../src/component/utils/metadataGraphPermssion.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,gEAA0B;AAC1B,wDAAwB;AACxB,0EAA0C;AAC1C,sDAA2D;AAC3D,kEAA0D;AAG1D,2DAAoG;AACpG,iDAAkD;AAErC,QAAA,2BAA2B,GAAG;IACzC,6BAA6B,EAA7B,2CAA6B;CAC9B,CAAC;AASF,MAAM,2BAA2B;IAC/B,KAAK,CAAC,gBAAgB,CACpB,OAAe,EACf,KAAmB,EACnB,KAAgC;QAEhC,IAAI,e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ACH,CAAC;YACH,CAAC;QACH,CAAC,CAAC,CAAC;QACH,OAAO;YACL,kBAAkB;YAClB,OAAO;YACP,aAAa;YACb,MAAM;YACN,KAAK;SACN,CAAC;IACJ,CAAC;CACF;AAEY,QAAA,2BAA2B,GAAG,IAAI,2BAA2B,EAAE,CAAC"}
|
|
@@ -1,49 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
name: string;
|
|
3
|
-
display_name: string;
|
|
4
|
-
description: string;
|
|
5
|
-
version: string;
|
|
6
|
-
identifier: string;
|
|
7
|
-
tools: ODRTool[];
|
|
8
|
-
packageFamily: string;
|
|
9
|
-
command: string;
|
|
10
|
-
args: string[];
|
|
11
|
-
}
|
|
12
|
-
export interface ODRTool {
|
|
13
|
-
name: string;
|
|
14
|
-
description: string;
|
|
15
|
-
inputSchema: any;
|
|
16
|
-
outputSchema?: any;
|
|
17
|
-
_meta?: any;
|
|
18
|
-
}
|
|
19
|
-
export declare class ODRProvider {
|
|
20
|
-
/**
|
|
21
|
-
* Check if a server configuration is ODR-based.
|
|
22
|
-
* @param serverConfig The server configuration object
|
|
23
|
-
* @returns True if the server is ODR-based, false otherwise
|
|
24
|
-
*/
|
|
25
|
-
static isODRServer(serverConfig: any): boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Parse the output of 'odr list' command
|
|
28
|
-
* @param jsonOutput The JSON output from 'odr list' command
|
|
29
|
-
* @returns Array of parsed ODR servers with their tools
|
|
30
|
-
*/
|
|
31
|
-
static parseODRListOutput(jsonOutput: any): ODRServer[];
|
|
32
|
-
/**
|
|
33
|
-
* List all available local MCP servers from Windows ODR.
|
|
34
|
-
* This is used during project creation to show available servers to the user.
|
|
35
|
-
* @returns Array of ODR servers. Returns empty array if:
|
|
36
|
-
* - Not on Windows platform
|
|
37
|
-
* - ODR command is not available (not installed)
|
|
38
|
-
* - ODR command fails or returns invalid output
|
|
39
|
-
*/
|
|
40
|
-
static listServers(): Promise<ODRServer[]>;
|
|
41
|
-
/**
|
|
42
|
-
* Get tools for a specific ODR server by matching command and arguments.
|
|
43
|
-
* @param command The command of the ODR server (e.g., "odr")
|
|
44
|
-
* @param args The arguments array for the ODR server
|
|
45
|
-
* @returns Array of tools from the matching ODR server, or empty array if no match found
|
|
46
|
-
*/
|
|
47
|
-
static getToolsForODRServer(command: string, args?: string[]): Promise<ODRTool[]>;
|
|
48
|
-
}
|
|
1
|
+
export * from "../../common/odrProvider";
|
|
49
2
|
//# sourceMappingURL=odrProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"odrProvider.d.ts","sourceRoot":"","sources":["../../../src/component/utils/odrProvider.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"odrProvider.d.ts","sourceRoot":"","sources":["../../../src/component/utils/odrProvider.ts"],"names":[],"mappings":"AAGA,cAAc,0BAA0B,CAAC"}
|
|
@@ -2,98 +2,6 @@
|
|
|
2
2
|
// Copyright (c) Microsoft Corporation.
|
|
3
3
|
// Licensed under the MIT license.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const util_1 = require("util");
|
|
8
|
-
class ODRProvider {
|
|
9
|
-
/**
|
|
10
|
-
* Check if a server configuration is ODR-based.
|
|
11
|
-
* @param serverConfig The server configuration object
|
|
12
|
-
* @returns True if the server is ODR-based, false otherwise
|
|
13
|
-
*/
|
|
14
|
-
static isODRServer(serverConfig) {
|
|
15
|
-
if (serverConfig?.type !== "stdio" || !serverConfig.command) {
|
|
16
|
-
return false;
|
|
17
|
-
}
|
|
18
|
-
const configCommand = serverConfig.command.toLowerCase();
|
|
19
|
-
return configCommand === "odr" || configCommand.endsWith("odr.exe");
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Parse the output of 'odr list' command
|
|
23
|
-
* @param jsonOutput The JSON output from 'odr list' command
|
|
24
|
-
* @returns Array of parsed ODR servers with their tools
|
|
25
|
-
*/
|
|
26
|
-
static parseODRListOutput(jsonOutput) {
|
|
27
|
-
const servers = [];
|
|
28
|
-
if (!jsonOutput || !jsonOutput.servers || !Array.isArray(jsonOutput.servers)) {
|
|
29
|
-
return servers;
|
|
30
|
-
}
|
|
31
|
-
for (const server of jsonOutput.servers) {
|
|
32
|
-
const manifest = server._meta?.["io.modelcontextprotocol.registry/publisher-provided"]?.["com.microsoft.windows"]?.manifest;
|
|
33
|
-
const staticResponses = manifest?._meta?.["com.microsoft.windows"]?.static_responses;
|
|
34
|
-
const toolsList = staticResponses?.["tools/list"]?.tools || [];
|
|
35
|
-
const packageFamily = manifest?._meta?.["com.microsoft.windows"]?.package_family_name;
|
|
36
|
-
const mcpConfig = manifest?.server?.mcp_config;
|
|
37
|
-
if (packageFamily && mcpConfig) {
|
|
38
|
-
servers.push({
|
|
39
|
-
name: server.name,
|
|
40
|
-
packageFamily: packageFamily,
|
|
41
|
-
display_name: manifest?.display_name || server.name,
|
|
42
|
-
description: server.description || "",
|
|
43
|
-
version: server.version || "1.0.0",
|
|
44
|
-
identifier: server.packages?.[0]?.identifier || "",
|
|
45
|
-
command: mcpConfig.command || "",
|
|
46
|
-
args: mcpConfig.args || [],
|
|
47
|
-
tools: toolsList.map((tool) => ({
|
|
48
|
-
name: tool.name,
|
|
49
|
-
description: tool.description || "",
|
|
50
|
-
inputSchema: tool.inputSchema,
|
|
51
|
-
outputSchema: tool.outputSchema,
|
|
52
|
-
})),
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
return servers;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* List all available local MCP servers from Windows ODR.
|
|
60
|
-
* This is used during project creation to show available servers to the user.
|
|
61
|
-
* @returns Array of ODR servers. Returns empty array if:
|
|
62
|
-
* - Not on Windows platform
|
|
63
|
-
* - ODR command is not available (not installed)
|
|
64
|
-
* - ODR command fails or returns invalid output
|
|
65
|
-
*/
|
|
66
|
-
static async listServers() {
|
|
67
|
-
if (process.platform !== "win32") {
|
|
68
|
-
return [];
|
|
69
|
-
}
|
|
70
|
-
const execAsync = (0, util_1.promisify)(child_process_1.exec);
|
|
71
|
-
try {
|
|
72
|
-
const { stdout } = await execAsync("odr list");
|
|
73
|
-
if (!stdout) {
|
|
74
|
-
return [];
|
|
75
|
-
}
|
|
76
|
-
const jsonOutput = JSON.parse(stdout);
|
|
77
|
-
return ODRProvider.parseODRListOutput(jsonOutput);
|
|
78
|
-
}
|
|
79
|
-
catch (error) {
|
|
80
|
-
console.error("Error executing odr list:", error);
|
|
81
|
-
return [];
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* Get tools for a specific ODR server by matching command and arguments.
|
|
86
|
-
* @param command The command of the ODR server (e.g., "odr")
|
|
87
|
-
* @param args The arguments array for the ODR server
|
|
88
|
-
* @returns Array of tools from the matching ODR server, or empty array if no match found
|
|
89
|
-
*/
|
|
90
|
-
static async getToolsForODRServer(command, args = []) {
|
|
91
|
-
const odrServers = await ODRProvider.listServers();
|
|
92
|
-
const matchingServer = odrServers.find((odrServer) => {
|
|
93
|
-
return (odrServer.command === command && JSON.stringify(odrServer.args) === JSON.stringify(args));
|
|
94
|
-
});
|
|
95
|
-
return matchingServer?.tools || [];
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
exports.ODRProvider = ODRProvider;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
6
|
+
tslib_1.__exportStar(require("../../common/odrProvider"), exports);
|
|
99
7
|
//# sourceMappingURL=odrProvider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"odrProvider.js","sourceRoot":"","sources":["../../../src/component/utils/odrProvider.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,
|
|
1
|
+
{"version":3,"file":"odrProvider.js","sourceRoot":"","sources":["../../../src/component/utils/odrProvider.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,mEAAyC"}
|