@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
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT license.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.PACKAGE_PARSE_ERROR = void 0;
|
|
6
|
+
exports.parseReplaceMap = parseReplaceMap;
|
|
7
|
+
exports.parseDeclaredKeys = parseDeclaredKeys;
|
|
8
|
+
exports.parsePipeline = parsePipeline;
|
|
9
|
+
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
10
|
+
const neverthrow_1 = require("neverthrow");
|
|
11
|
+
/** Typed boundary parsers for descriptor and pipeline JSON. */
|
|
12
|
+
const SOURCE = "Scaffold";
|
|
13
|
+
/** `SystemError` name: a package file's shape is not the discriminated form (a build gate gap). */
|
|
14
|
+
exports.PACKAGE_PARSE_ERROR = "TemplatePackageParseError";
|
|
15
|
+
function systemError(message) {
|
|
16
|
+
return new teamsfx_api_1.SystemError({ source: SOURCE, name: exports.PACKAGE_PARSE_ERROR, message });
|
|
17
|
+
}
|
|
18
|
+
function isRecord(value) {
|
|
19
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
20
|
+
}
|
|
21
|
+
/** Read a record field as a string, or `undefined` when absent / non-string. */
|
|
22
|
+
function stringField(record, key) {
|
|
23
|
+
const value = record[key];
|
|
24
|
+
return typeof value === "string" ? value : undefined;
|
|
25
|
+
}
|
|
26
|
+
/** Discriminate one `replaceMap` entry by its present producer key (`const`/`from`/`expr`/`when`). */
|
|
27
|
+
function toReplaceMapEntry(item) {
|
|
28
|
+
if (!isRecord(item)) {
|
|
29
|
+
return undefined;
|
|
30
|
+
}
|
|
31
|
+
const varName = stringField(item, "var");
|
|
32
|
+
if (varName === undefined) {
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
const constVal = stringField(item, "const");
|
|
36
|
+
if (constVal !== undefined) {
|
|
37
|
+
return { var: varName, const: constVal };
|
|
38
|
+
}
|
|
39
|
+
const fromVal = stringField(item, "from");
|
|
40
|
+
if (fromVal !== undefined) {
|
|
41
|
+
return { var: varName, from: fromVal };
|
|
42
|
+
}
|
|
43
|
+
const exprVal = stringField(item, "expr");
|
|
44
|
+
if (exprVal !== undefined) {
|
|
45
|
+
return { var: varName, expr: exprVal };
|
|
46
|
+
}
|
|
47
|
+
const whenVal = stringField(item, "when");
|
|
48
|
+
const valueVal = stringField(item, "value");
|
|
49
|
+
if (whenVal !== undefined && valueVal !== undefined) {
|
|
50
|
+
return { var: varName, when: whenVal, value: valueVal };
|
|
51
|
+
}
|
|
52
|
+
return undefined;
|
|
53
|
+
}
|
|
54
|
+
/** Extract `descriptor.replaceMap` as a typed entry list (absent ⇒ empty). */
|
|
55
|
+
function parseReplaceMap(descriptor) {
|
|
56
|
+
if (!isRecord(descriptor)) {
|
|
57
|
+
return (0, neverthrow_1.err)(systemError("descriptor.json must be a JSON object"));
|
|
58
|
+
}
|
|
59
|
+
const raw = descriptor.replaceMap;
|
|
60
|
+
if (raw === undefined) {
|
|
61
|
+
return (0, neverthrow_1.ok)([]);
|
|
62
|
+
}
|
|
63
|
+
if (!Array.isArray(raw)) {
|
|
64
|
+
return (0, neverthrow_1.err)(systemError("descriptor.replaceMap must be an array"));
|
|
65
|
+
}
|
|
66
|
+
const entries = [];
|
|
67
|
+
for (const item of raw) {
|
|
68
|
+
const entry = toReplaceMapEntry(item);
|
|
69
|
+
if (entry === undefined) {
|
|
70
|
+
return (0, neverthrow_1.err)(systemError(`invalid replaceMap entry: ${JSON.stringify(item)}`));
|
|
71
|
+
}
|
|
72
|
+
entries.push(entry);
|
|
73
|
+
}
|
|
74
|
+
return (0, neverthrow_1.ok)(entries);
|
|
75
|
+
}
|
|
76
|
+
/** Extract declared option ids used to seed the render-context identifier domain. */
|
|
77
|
+
function parseDeclaredKeys(descriptor) {
|
|
78
|
+
if (!isRecord(descriptor)) {
|
|
79
|
+
return [];
|
|
80
|
+
}
|
|
81
|
+
const optionsSchema = descriptor.optionsSchema;
|
|
82
|
+
if (!isRecord(optionsSchema)) {
|
|
83
|
+
return [];
|
|
84
|
+
}
|
|
85
|
+
const properties = optionsSchema.properties;
|
|
86
|
+
if (!isRecord(properties)) {
|
|
87
|
+
return [];
|
|
88
|
+
}
|
|
89
|
+
return Object.keys(properties);
|
|
90
|
+
}
|
|
91
|
+
function toStringArray(raw) {
|
|
92
|
+
if (!Array.isArray(raw)) {
|
|
93
|
+
return undefined;
|
|
94
|
+
}
|
|
95
|
+
const out = [];
|
|
96
|
+
for (const value of raw) {
|
|
97
|
+
if (typeof value !== "string") {
|
|
98
|
+
return undefined;
|
|
99
|
+
}
|
|
100
|
+
out.push(value);
|
|
101
|
+
}
|
|
102
|
+
return out;
|
|
103
|
+
}
|
|
104
|
+
/** Coerce a `with` block to `StepParams` (string | boolean | string[] values only). */
|
|
105
|
+
function toStepParams(raw) {
|
|
106
|
+
if (!isRecord(raw)) {
|
|
107
|
+
return undefined;
|
|
108
|
+
}
|
|
109
|
+
const params = {};
|
|
110
|
+
for (const [key, value] of Object.entries(raw)) {
|
|
111
|
+
if (typeof value === "string" || typeof value === "boolean") {
|
|
112
|
+
params[key] = value;
|
|
113
|
+
continue;
|
|
114
|
+
}
|
|
115
|
+
const stringArray = toStringArray(value);
|
|
116
|
+
if (stringArray === undefined) {
|
|
117
|
+
return undefined;
|
|
118
|
+
}
|
|
119
|
+
params[key] = stringArray;
|
|
120
|
+
}
|
|
121
|
+
return params;
|
|
122
|
+
}
|
|
123
|
+
function applyConditionalMetadata(item, target, rejectMalformedWhen) {
|
|
124
|
+
const comment = stringField(item, "comment");
|
|
125
|
+
if (comment !== undefined) {
|
|
126
|
+
target.comment = comment;
|
|
127
|
+
}
|
|
128
|
+
const when = stringField(item, "when");
|
|
129
|
+
if (when !== undefined) {
|
|
130
|
+
target.when = when;
|
|
131
|
+
}
|
|
132
|
+
else if (rejectMalformedWhen && item.when !== undefined) {
|
|
133
|
+
return false;
|
|
134
|
+
}
|
|
135
|
+
return true;
|
|
136
|
+
}
|
|
137
|
+
function toPipelineStep(item) {
|
|
138
|
+
if (!isRecord(item)) {
|
|
139
|
+
return undefined;
|
|
140
|
+
}
|
|
141
|
+
const stepName = stringField(item, "step");
|
|
142
|
+
if (stepName === undefined) {
|
|
143
|
+
return undefined;
|
|
144
|
+
}
|
|
145
|
+
const result = { step: stepName };
|
|
146
|
+
if (!applyConditionalMetadata(item, result, false)) {
|
|
147
|
+
return undefined;
|
|
148
|
+
}
|
|
149
|
+
if (item.with !== undefined) {
|
|
150
|
+
const params = toStepParams(item.with);
|
|
151
|
+
if (params === undefined) {
|
|
152
|
+
return undefined;
|
|
153
|
+
}
|
|
154
|
+
result.with = params;
|
|
155
|
+
}
|
|
156
|
+
if (item.produces !== undefined) {
|
|
157
|
+
const produces = toStringArray(item.produces);
|
|
158
|
+
if (produces === undefined) {
|
|
159
|
+
return undefined;
|
|
160
|
+
}
|
|
161
|
+
result.produces = produces;
|
|
162
|
+
}
|
|
163
|
+
return result;
|
|
164
|
+
}
|
|
165
|
+
function toRenderFilter(item) {
|
|
166
|
+
if (!isRecord(item)) {
|
|
167
|
+
return undefined;
|
|
168
|
+
}
|
|
169
|
+
const exclude = toStringArray(item.exclude);
|
|
170
|
+
if (exclude === undefined) {
|
|
171
|
+
return undefined;
|
|
172
|
+
}
|
|
173
|
+
const result = { exclude };
|
|
174
|
+
if (!applyConditionalMetadata(item, result, true)) {
|
|
175
|
+
return undefined;
|
|
176
|
+
}
|
|
177
|
+
return result;
|
|
178
|
+
}
|
|
179
|
+
function toPipelineRender(raw) {
|
|
180
|
+
if (!isRecord(raw)) {
|
|
181
|
+
return undefined;
|
|
182
|
+
}
|
|
183
|
+
const result = {};
|
|
184
|
+
if (raw.filters !== undefined) {
|
|
185
|
+
if (!Array.isArray(raw.filters)) {
|
|
186
|
+
return undefined;
|
|
187
|
+
}
|
|
188
|
+
const filters = [];
|
|
189
|
+
for (const item of raw.filters) {
|
|
190
|
+
const filter = toRenderFilter(item);
|
|
191
|
+
if (filter === undefined) {
|
|
192
|
+
return undefined;
|
|
193
|
+
}
|
|
194
|
+
filters.push(filter);
|
|
195
|
+
}
|
|
196
|
+
result.filters = filters;
|
|
197
|
+
}
|
|
198
|
+
return result;
|
|
199
|
+
}
|
|
200
|
+
/** Extract a parsed `pipeline.json` as a typed `Pipeline`. */
|
|
201
|
+
function parsePipeline(raw) {
|
|
202
|
+
if (!isRecord(raw)) {
|
|
203
|
+
return (0, neverthrow_1.err)(systemError("pipeline.json must be a JSON object"));
|
|
204
|
+
}
|
|
205
|
+
const name = stringField(raw, "pipeline");
|
|
206
|
+
if (name === undefined) {
|
|
207
|
+
return (0, neverthrow_1.err)(systemError("pipeline.pipeline (the orchestration name) is required"));
|
|
208
|
+
}
|
|
209
|
+
if (!Array.isArray(raw.steps)) {
|
|
210
|
+
return (0, neverthrow_1.err)(systemError("pipeline.steps must be an array"));
|
|
211
|
+
}
|
|
212
|
+
const steps = [];
|
|
213
|
+
for (const item of raw.steps) {
|
|
214
|
+
const step = toPipelineStep(item);
|
|
215
|
+
if (step === undefined) {
|
|
216
|
+
return (0, neverthrow_1.err)(systemError(`invalid pipeline step: ${JSON.stringify(item)}`));
|
|
217
|
+
}
|
|
218
|
+
steps.push(step);
|
|
219
|
+
}
|
|
220
|
+
const comment = stringField(raw, "comment");
|
|
221
|
+
let render;
|
|
222
|
+
if (raw.render !== undefined) {
|
|
223
|
+
render = toPipelineRender(raw.render);
|
|
224
|
+
if (render === undefined) {
|
|
225
|
+
return (0, neverthrow_1.err)(systemError(`invalid pipeline render: ${JSON.stringify(raw.render)}`));
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
return (0, neverthrow_1.ok)({
|
|
229
|
+
pipeline: name,
|
|
230
|
+
...(comment !== undefined ? { comment } : {}),
|
|
231
|
+
...(render !== undefined ? { render } : {}),
|
|
232
|
+
steps,
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
//# sourceMappingURL=packageParse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"packageParse.js","sourceRoot":"","sources":["../../../src/v4/runtime/packageParse.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAiElC,0CAoBC;AAGD,8CAaC;AAyHD,sCAiCC;AA7PD,wDAA8D;AAC9D,2CAA6C;AAW7C,+DAA+D;AAE/D,MAAM,MAAM,GAAG,UAAU,CAAC;AAE1B,mGAAmG;AACtF,QAAA,mBAAmB,GAAG,2BAA2B,CAAC;AAE/D,SAAS,WAAW,CAAC,OAAe;IAClC,OAAO,IAAI,yBAAW,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,2BAAmB,EAAE,OAAO,EAAE,CAAC,CAAC;AACjF,CAAC;AAED,SAAS,QAAQ,CAAC,K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AClC,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACvB,OAAO,IAAA,gBAAG,EAAC,WAAW,CAAC,0BAA0B,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;QAC5E,CAAC;QACD,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACnB,CAAC;IACD,MAAM,OAAO,GAAG,WAAW,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;IAC5C,IAAI,MAAkC,CAAC;IACvC,IAAI,GAAG,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC;QAC7B,MAAM,GAAG,gBAAgB,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QACtC,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;YACzB,OAAO,IAAA,gBAAG,EAAC,WAAW,CAAC,4BAA4B,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;QACpF,CAAC;IACH,CAAC;IACD,OAAO,IAAA,eAAE,EAAC;QACR,QAAQ,EAAE,IAAI;QACd,GAAG,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC7C,GAAG,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC3C,KAAK;KACN,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Warning } from "@microsoft/teamsfx-api";
|
|
2
|
+
import { ScaffoldRuntime } from "./scaffold";
|
|
3
|
+
import { StepRegistry } from "./runtimeRegistry";
|
|
4
|
+
/** A composed on-disk runtime: the two ports `scaffold` needs, plus the output root. */
|
|
5
|
+
export interface RealRuntime extends ScaffoldRuntime {
|
|
6
|
+
/** The output directory every write/read is contained under. */
|
|
7
|
+
rootDir: string;
|
|
8
|
+
}
|
|
9
|
+
/** Build an on-disk runtime rooted at `rootDir`. */
|
|
10
|
+
export declare function createRealRuntime(rootDir: string, flagReader?: (name: string) => boolean, stepRegistry?: StepRegistry, warningSink?: (warning: Warning) => void): RealRuntime;
|
|
11
|
+
//# sourceMappingURL=realRuntime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"realRuntime.d.ts","sourceRoot":"","sources":["../../../src/v4/runtime/realRuntime.ts"],"names":[],"mappings":"AAGA,OAAO,EAAe,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAM9D,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAY,YAAY,EAAqB,MAAM,mBAAmB,CAAC;AAkC9E,wFAAwF;AACxF,MAAM,WAAW,WAAY,SAAQ,eAAe;IAClD,gEAAgE;IAChE,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,oDAAoD;AACpD,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,MAAM,EACf,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,EACtC,YAAY,CAAC,EAAE,YAAY,EAC3B,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,GACvC,WAAW,CA4Bb"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT license.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.createRealRuntime = createRealRuntime;
|
|
6
|
+
const tslib_1 = require("tslib");
|
|
7
|
+
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
8
|
+
const fs = tslib_1.__importStar(require("fs-extra"));
|
|
9
|
+
const path = tslib_1.__importStar(require("path"));
|
|
10
|
+
const envUtil_1 = require("../../component/utils/envUtil");
|
|
11
|
+
const whitelist_1 = require("./whitelist");
|
|
12
|
+
const runtimeRegistry_1 = require("./runtimeRegistry");
|
|
13
|
+
/** On-disk scaffold runtime with writes contained under one output root. */
|
|
14
|
+
const SOURCE = "Scaffold";
|
|
15
|
+
/** `UserError`-free engine bug: a write/read path escaped the scaffold root. */
|
|
16
|
+
const SCAFFOLD_PATH_ESCAPE = "ScaffoldPathEscape";
|
|
17
|
+
/** Resolve a target-relative path under `rootDir`, rejecting parent-directory escape. */
|
|
18
|
+
function containedPath(rootDir, entryPath) {
|
|
19
|
+
const base = path.resolve(rootDir);
|
|
20
|
+
const out = path.resolve(base, entryPath);
|
|
21
|
+
const rel = path.relative(base, out);
|
|
22
|
+
if (rel === "" || rel === ".." || rel.startsWith(".." + path.sep) || path.isAbsolute(rel)) {
|
|
23
|
+
throw new teamsfx_api_1.SystemError({
|
|
24
|
+
source: SOURCE,
|
|
25
|
+
name: SCAFFOLD_PATH_ESCAPE,
|
|
26
|
+
message: `The scaffold tried to write outside the output directory: "${entryPath}".`,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
return out;
|
|
30
|
+
}
|
|
31
|
+
/** Narrow an unknown thrown value to one carrying a string-ish `code` field. */
|
|
32
|
+
function hasCode(error) {
|
|
33
|
+
return typeof error === "object" && error !== null && "code" in error;
|
|
34
|
+
}
|
|
35
|
+
/** True for a "file does not exist" read failure (EAFP: read, don't stat first). */
|
|
36
|
+
function isFileNotFound(error) {
|
|
37
|
+
return hasCode(error) && error.code === "ENOENT";
|
|
38
|
+
}
|
|
39
|
+
/** Build an on-disk runtime rooted at `rootDir`. */
|
|
40
|
+
function createRealRuntime(rootDir, flagReader, stepRegistry, warningSink) {
|
|
41
|
+
const exprPort = (0, whitelist_1.createExpressionPort)(flagReader);
|
|
42
|
+
const sink = {
|
|
43
|
+
write: (entryPath, data) => {
|
|
44
|
+
const target = containedPath(rootDir, entryPath);
|
|
45
|
+
fs.ensureDirSync(path.dirname(target));
|
|
46
|
+
fs.writeFileSync(target, data);
|
|
47
|
+
},
|
|
48
|
+
read: (entryPath) => {
|
|
49
|
+
const target = containedPath(rootDir, entryPath);
|
|
50
|
+
try {
|
|
51
|
+
return fs.readFileSync(target);
|
|
52
|
+
}
|
|
53
|
+
catch (error) {
|
|
54
|
+
if (isFileNotFound(error)) {
|
|
55
|
+
return undefined;
|
|
56
|
+
}
|
|
57
|
+
throw error;
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
const port = (0, runtimeRegistry_1.buildPipelinePort)(exprPort, sink, (environment, values) => envUtil_1.envUtil.writeEnv(rootDir, environment, { ...values }), stepRegistry, warningSink);
|
|
62
|
+
return { rootDir, exprPort, port };
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=realRuntime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"realRuntime.js","sourceRoot":"","sources":["../../../src/v4/runtime/realRuntime.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAkDlC,8CAiCC;;AAjFD,wDAA8D;AAC9D,qDAA+B;AAC/B,mDAA6B;AAC7B,2DAAwD;AAExD,2CAAmD;AAEnD,uDAA8E;AAE9E,4EAA4E;AAE5E,MAAM,MAAM,GAAG,UAAU,CAAC;AAE1B,gFAAgF;AAChF,MAAM,oBAAoB,GAAG,oBAAoB,CAAC;AAElD,yFAAyF;AACzF,SAAS,aAAa,CAAC,OAAe,EAAE,SAAiB;IACvD,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACnC,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAC1C,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IACrC,IAAI,GAAG,KAAK,EAAE,IAAI,GAAG,KAAK,IAAI,IAAI,GAAG,CAAC,UAAU,CAAC,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,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AAS,CAAC;gBACnB,CAAC;gBACD,MAAM,KAAK,CAAC;YACd,CAAC;QACH,CAAC;KACF,CAAC;IACF,MAAM,IAAI,GAAG,IAAA,mCAAiB,EAC5B,QAAQ,EACR,IAAI,EACJ,CAAC,WAAW,EAAE,MAAM,EAAE,EAAE,CAAC,iBAAO,CAAC,QAAQ,CAAC,OAAO,EAAE,WAAW,EAAE,EAAE,GAAG,MAAM,EAAE,CAAC,EAC9E,YAAY,EACZ,WAAW,CACZ,CAAC;IACF,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AACrC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FxError } from "@microsoft/teamsfx-api";
|
|
2
|
+
import { Result } from "neverthrow";
|
|
3
|
+
import { RenderVars } from "../model/dataModel";
|
|
4
|
+
/** `SystemError` name — a malformed template body the render surface cannot parse. */
|
|
5
|
+
export declare const RENDER_PARSE_ERROR = "RenderParseError";
|
|
6
|
+
export declare function renderMustache(template: string, renderVars: RenderVars): Result<string, FxError>;
|
|
7
|
+
//# sourceMappingURL=renderMustache.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderMustache.d.ts","sourceRoot":"","sources":["../../../src/v4/runtime/renderMustache.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAe,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,MAAM,EAAW,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAMhD,sFAAsF;AACtF,eAAO,MAAM,kBAAkB,qBAAqB,CAAC;AAerD,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAqChG"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT license.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.RENDER_PARSE_ERROR = void 0;
|
|
6
|
+
exports.renderMustache = renderMustache;
|
|
7
|
+
const tslib_1 = require("tslib");
|
|
8
|
+
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
9
|
+
const mustache_1 = tslib_1.__importDefault(require("mustache"));
|
|
10
|
+
const neverthrow_1 = require("neverthrow");
|
|
11
|
+
/** Single Mustache surface for `.tpl` paths/bodies and step `with` values. */
|
|
12
|
+
const SOURCE = "Scaffold";
|
|
13
|
+
/** `SystemError` name — a malformed template body the render surface cannot parse. */
|
|
14
|
+
exports.RENDER_PARSE_ERROR = "RenderParseError";
|
|
15
|
+
const DELIMITERS = ["{{", "}}"];
|
|
16
|
+
// Private-use sentinels keep producer-less tokens inert through Mustache.
|
|
17
|
+
const SENTINEL_OPEN = "\uE000";
|
|
18
|
+
const SENTINEL_CLOSE = "\uE001";
|
|
19
|
+
const VALUE_SENTINEL_OPEN = "\uE002";
|
|
20
|
+
const VALUE_SENTINEL_CLOSE = "\uE003";
|
|
21
|
+
// Bare value tokens only; section/comment/partial tags carry a rejected sigil.
|
|
22
|
+
const VALUE_TOKEN = /\{\{\s*([A-Za-z_][A-Za-z0-9_.]*(?::[A-Za-z_][A-Za-z0-9_.]*)?)\s*\}\}/g;
|
|
23
|
+
const SENTINEL_TOKEN = /\uE000([^\uE001]+)\uE001/g;
|
|
24
|
+
const VALUE_SENTINEL_TOKEN = /\uE002([^\uE003]+)\uE003/g;
|
|
25
|
+
function renderMustache(template, renderVars) {
|
|
26
|
+
// Protect producer-less tokens and exact flat dotted keys from Mustache's nested lookup.
|
|
27
|
+
const guarded = template.replace(VALUE_TOKEN, (match, name) => {
|
|
28
|
+
if (!(name in renderVars)) {
|
|
29
|
+
return `${SENTINEL_OPEN}${name}${SENTINEL_CLOSE}`;
|
|
30
|
+
}
|
|
31
|
+
return name.includes(".") ? `${VALUE_SENTINEL_OPEN}${name}${VALUE_SENTINEL_CLOSE}` : match;
|
|
32
|
+
});
|
|
33
|
+
const previousEscape = mustache_1.default.escape;
|
|
34
|
+
mustache_1.default.escape = (value) => value; // no HTML escaping — URLs and ${{…}} refs pass through
|
|
35
|
+
let rendered;
|
|
36
|
+
try {
|
|
37
|
+
rendered = mustache_1.default.render(guarded, renderVars, {}, DELIMITERS);
|
|
38
|
+
}
|
|
39
|
+
catch (error) {
|
|
40
|
+
return (0, neverthrow_1.err)(new teamsfx_api_1.SystemError({
|
|
41
|
+
source: SOURCE,
|
|
42
|
+
name: exports.RENDER_PARSE_ERROR,
|
|
43
|
+
message: `Failed to render a template body: ${error instanceof Error ? error.message : String(error)}`,
|
|
44
|
+
}));
|
|
45
|
+
}
|
|
46
|
+
finally {
|
|
47
|
+
mustache_1.default.escape = previousEscape;
|
|
48
|
+
}
|
|
49
|
+
// Restore protected producer-less tokens verbatim.
|
|
50
|
+
const restoredMissing = rendered.replace(SENTINEL_TOKEN, (_match, name) => `{{${name}}}`);
|
|
51
|
+
const result = restoredMissing.replace(VALUE_SENTINEL_TOKEN, (_match, name) => String(renderVars[name]));
|
|
52
|
+
return (0, neverthrow_1.ok)(result);
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=renderMustache.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderMustache.js","sourceRoot":"","sources":["../../../src/v4/runtime/renderMustache.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AA2BlC,wCAqCC;;AA9DD,wDAA8D;AAC9D,gEAAgC;AAChC,2CAA6C;AAG7C,8EAA8E;AAE9E,MAAM,MAAM,GAAG,UAAU,CAAC;AAE1B,sFAAsF;AACzE,QAAA,kBAAkB,GAAG,kBAAkB,CAAC;AAErD,MAAM,UAAU,GAAqB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAElD,0EAA0E;AAC1E,MAAM,aAAa,GAAG,QAA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AAC,CAAC,MAAM,CAAC,KAAK,CACvD,EAAE;SACH,CAAC,CACH,CAAC;IACJ,CAAC;YAAS,CAAC;QACT,kBAAQ,CAAC,MAAM,GAAG,cAAc,CAAC;IACnC,CAAC;IAED,mDAAmD;IACnD,MAAM,eAAe,GAAG,QAAQ,CAAC,OAAO,CACtC,cAAc,EACd,CAAC,MAAc,EAAE,IAAY,EAAE,EAAE,CAAC,KAAK,IAAI,IAAI,CAChD,CAAC;IACF,MAAM,MAAM,GAAG,eAAe,CAAC,OAAO,CAAC,oBAAoB,EAAE,CAAC,MAAc,EAAE,IAAY,EAAE,EAAE,CAC5F,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CACzB,CAAC;IACF,OAAO,IAAA,eAAE,EAAC,MAAM,CAAC,CAAC;AACpB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { FxError, Warning } from "@microsoft/teamsfx-api";
|
|
2
|
+
import { Result } from "neverthrow";
|
|
3
|
+
import { ExpressionRuntimePort } from "../expression/evaluateExpression";
|
|
4
|
+
import { ManifestWrapper, PipelineRuntimePort, RegisteredStep } from "../pipeline/runScaffoldPipeline";
|
|
5
|
+
import { GeneralSensitivityLabelService } from "./steps/daSensitivity";
|
|
6
|
+
/** Shared v4 pipeline registry and port factory. See ADR-0017 for whitelist rules. */
|
|
7
|
+
/** The orchestration names the engine knows (ADR-0017 closed whitelist). */
|
|
8
|
+
export declare const KNOWN_PIPELINES: Set<string>;
|
|
9
|
+
/** Generic named-step lookup assembled at a runtime composition boundary. */
|
|
10
|
+
export type StepRegistry = ReadonlyMap<string, RegisteredStep>;
|
|
11
|
+
/** Bind runtime-owned business adapters into the closed post-render step whitelist. */
|
|
12
|
+
export declare function createStepRegistry(generalSensitivityLabel?: GeneralSensitivityLabelService): StepRegistry;
|
|
13
|
+
/** Default post-render step whitelist for offline runtimes and compatibility tests. */
|
|
14
|
+
export declare const STEP_REGISTRY: StepRegistry;
|
|
15
|
+
/** No-op wrapper for create flows that do not mutate a manifest. */
|
|
16
|
+
export declare const NOOP_MANIFEST_WRAPPER: ManifestWrapper;
|
|
17
|
+
/** Runtime-specific file sink injected behind the shared pipeline port. */
|
|
18
|
+
export interface FileSink {
|
|
19
|
+
/** Persist `data` at `path` (a target-relative, forward-slash path). */
|
|
20
|
+
write(path: string, data: Buffer): void;
|
|
21
|
+
/** Read back a previously written file, or `undefined` when absent (EAFP). */
|
|
22
|
+
read(path: string): Buffer | undefined;
|
|
23
|
+
}
|
|
24
|
+
/** Runtime-owned persistence boundary for regular and secret environment values. */
|
|
25
|
+
export type EnvironmentWriter = (environment: string, values: Record<string, string>) => Promise<Result<void, FxError>>;
|
|
26
|
+
/** Build the shared pipeline port over an injected file sink. */
|
|
27
|
+
export declare function buildPipelinePort(exprPort: ExpressionRuntimePort, sink: FileSink, environmentWriter: EnvironmentWriter, stepRegistry?: StepRegistry, warningSink?: (warning: Warning) => void): PipelineRuntimePort;
|
|
28
|
+
//# sourceMappingURL=runtimeRegistry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtimeRegistry.d.ts","sourceRoot":"","sources":["../../../src/v4/runtime/runtimeRegistry.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,OAAO,EAGP,OAAO,EACR,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,MAAM,EAAW,MAAM,YAAY,CAAC;AAG7C,OAAO,EAAE,qBAAqB,EAA6B,MAAM,kCAAkC,CAAC;AACpG,OAAO,EACL,eAAe,EAEf,mBAAmB,EACnB,cAAc,EACf,MAAM,iCAAiC,CAAC;AAGzC,OAAO,EACL,8BAA8B,EAI/B,MAAM,uBAAuB,CAAC;AAyB/B,sFAAsF;AAEtF,4EAA4E;AAC5E,eAAO,MAAM,eAAe,aAAqE,CAAC;AAElG,6EAA6E;AAC7E,MAAM,MAAM,YAAY,GAAG,WAAW,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;AAE/D,uFAAuF;AACvF,wBAAgB,kBAAkB,CAChC,uBAAuB,GAAE,8BAAuE,GAC/F,YAAY,CAcd;AAED,uFAAuF;AACvF,eAAO,MAAM,aAAa,cAAuB,CAAC;AAElD,oEAAoE;AACpE,eAAO,MAAM,qBAAqB,EAAE,eAQnC,CAAC;AA8JF,2EAA2E;AAC3E,MAAM,WAAW,QAAQ;IACvB,wEAAwE;IACxE,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACxC,8EAA8E;IAC9E,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CACxC;AAED,oFAAoF;AACpF,MAAM,MAAM,iBAAiB,GAAG,CAC9B,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAC3B,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;AAcpC,iEAAiE;AACjE,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,qBAAqB,EAC/B,IAAI,EAAE,QAAQ,EACd,iBAAiB,EAAE,iBAAiB,EACpC,YAAY,GAAE,YAA4B,EAC1C,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,GACvC,mBAAmB,CAiBrB"}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT license.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.NOOP_MANIFEST_WRAPPER = exports.STEP_REGISTRY = exports.KNOWN_PIPELINES = void 0;
|
|
6
|
+
exports.createStepRegistry = createStepRegistry;
|
|
7
|
+
exports.buildPipelinePort = buildPipelinePort;
|
|
8
|
+
const tslib_1 = require("tslib");
|
|
9
|
+
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
10
|
+
const neverthrow_1 = require("neverthrow");
|
|
11
|
+
const path_1 = tslib_1.__importDefault(require("path"));
|
|
12
|
+
const evaluateExpression_1 = require("../expression/evaluateExpression");
|
|
13
|
+
const renderMustache_1 = require("./renderMustache");
|
|
14
|
+
const daAction_1 = require("./steps/daAction");
|
|
15
|
+
const daSensitivity_1 = require("./steps/daSensitivity");
|
|
16
|
+
const mcpAuth_1 = require("./steps/mcpAuth");
|
|
17
|
+
const mcpLocal_1 = require("./steps/mcpLocal");
|
|
18
|
+
const mcpStatic_1 = require("./steps/mcpStatic");
|
|
19
|
+
const officeAddin_1 = require("./steps/officeAddin");
|
|
20
|
+
const openApi_1 = require("./steps/openApi");
|
|
21
|
+
const metaOs_1 = require("./steps/metaOs");
|
|
22
|
+
/** Shared v4 pipeline registry and port factory. See ADR-0017 for whitelist rules. */
|
|
23
|
+
/** The orchestration names the engine knows (ADR-0017 closed whitelist). */
|
|
24
|
+
exports.KNOWN_PIPELINES = new Set(["default", "openapi", "typespec", "officeAddin", "spfx"]);
|
|
25
|
+
/** Bind runtime-owned business adapters into the closed post-render step whitelist. */
|
|
26
|
+
function createStepRegistry(generalSensitivityLabel = daSensitivity_1.NOOP_GENERAL_SENSITIVITY_LABEL_SERVICE) {
|
|
27
|
+
return new Map([
|
|
28
|
+
[daAction_1.STEP_REGISTER_PLUGIN_MANIFEST, daAction_1.daActionRegisterPluginManifest],
|
|
29
|
+
[daSensitivity_1.STEP_SET_SENSITIVITY_LABEL, (0, daSensitivity_1.createDaSetSensitivityLabelStep)(generalSensitivityLabel)],
|
|
30
|
+
[mcpAuth_1.STEP_INJECT_YML_ACTION, mcpAuth_1.mcpAuthInjectYmlAction],
|
|
31
|
+
[mcpAuth_1.STEP_PERSIST_CREDENTIAL_ENV, mcpAuth_1.mcpAuthPersistCredentialEnv],
|
|
32
|
+
[mcpLocal_1.STEP_MATERIALIZE_LOCAL_SERVERS, mcpLocal_1.mcpLocalMaterializeServers],
|
|
33
|
+
[mcpStatic_1.STEP_MATERIALIZE_STATIC_MCP_TOOLS, mcpStatic_1.mcpStaticMaterializeTools],
|
|
34
|
+
[openApi_1.STEP_GENERATE_OPENAPI_PLUGIN_FILES, openApi_1.openApiGeneratePluginFiles],
|
|
35
|
+
[openApi_1.STEP_GENERATE_TEAMS_AI_CUSTOM_API_FILES, openApi_1.openApiGenerateTeamsAiCustomApiFiles],
|
|
36
|
+
[officeAddin_1.STEP_IMPORT_EXISTING_OFFICE_ADDIN_PROJECT, officeAddin_1.officeAddinImportExistingProject],
|
|
37
|
+
[metaOs_1.STEP_UNIFY_PROJECT_ID, metaOs_1.metaOsUnifyProjectId],
|
|
38
|
+
[metaOs_1.STEP_UPGRADE_EXISTING_PROJECT, metaOs_1.metaOsUpgradeExistingProject],
|
|
39
|
+
]);
|
|
40
|
+
}
|
|
41
|
+
/** Default post-render step whitelist for offline runtimes and compatibility tests. */
|
|
42
|
+
exports.STEP_REGISTRY = createStepRegistry();
|
|
43
|
+
/** No-op wrapper for create flows that do not mutate a manifest. */
|
|
44
|
+
exports.NOOP_MANIFEST_WRAPPER = {
|
|
45
|
+
registerDeclarativeAgentAction: () => (0, neverthrow_1.err)(manifestError("ManifestMutationUnavailable", "the current runtime does not provide manifest mutation")),
|
|
46
|
+
};
|
|
47
|
+
function manifestError(name, message, cause) {
|
|
48
|
+
return cause instanceof Error
|
|
49
|
+
? new teamsfx_api_1.SystemError({ source: "Scaffold", name, message, error: cause })
|
|
50
|
+
: new teamsfx_api_1.SystemError({ source: "Scaffold", name, message });
|
|
51
|
+
}
|
|
52
|
+
function normalizeTargetPath(entryPath) {
|
|
53
|
+
return entryPath.replace(/\\/g, "/");
|
|
54
|
+
}
|
|
55
|
+
function resolveSiblingPath(baseFile, relativeFile) {
|
|
56
|
+
return normalizeTargetPath(path_1.default.posix.normalize(path_1.default.posix.join(path_1.default.posix.dirname(baseFile), relativeFile)));
|
|
57
|
+
}
|
|
58
|
+
function pluginFileRelativeToAgent(agentManifestPath, pluginManifestPath) {
|
|
59
|
+
return normalizeTargetPath(path_1.default.posix.relative(path_1.default.posix.dirname(agentManifestPath), pluginManifestPath));
|
|
60
|
+
}
|
|
61
|
+
function actionId(pluginManifestPath) {
|
|
62
|
+
const basename = path_1.default.posix.basename(pluginManifestPath, path_1.default.posix.extname(pluginManifestPath));
|
|
63
|
+
return basename.startsWith("ai-plugin-") ? basename.substring("ai-plugin-".length) : basename;
|
|
64
|
+
}
|
|
65
|
+
function readManifest(sink, filePath, missingErrorName, readErrorName) {
|
|
66
|
+
try {
|
|
67
|
+
const contents = sink.read(filePath);
|
|
68
|
+
return contents === undefined
|
|
69
|
+
? (0, neverthrow_1.err)(manifestError(missingErrorName, `Cannot read '${filePath}'.`))
|
|
70
|
+
: (0, neverthrow_1.ok)(contents);
|
|
71
|
+
}
|
|
72
|
+
catch (error) {
|
|
73
|
+
return (0, neverthrow_1.err)(manifestError(readErrorName, `Cannot read '${filePath}'.`, error));
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
function registerDeclarativeAgentAction(sink, teamsManifestPath, pluginManifestPath) {
|
|
77
|
+
const teamsManifestContents = readManifest(sink, teamsManifestPath, "DaActionTeamsManifestMissing", "DaActionTeamsManifestReadFailed");
|
|
78
|
+
if (teamsManifestContents.isErr()) {
|
|
79
|
+
return (0, neverthrow_1.err)(teamsManifestContents.error);
|
|
80
|
+
}
|
|
81
|
+
let teamsManifest;
|
|
82
|
+
try {
|
|
83
|
+
teamsManifest = teamsfx_api_1.TeamsManifestWrapper.fromJSON(teamsManifestContents.value.toString("utf8"));
|
|
84
|
+
}
|
|
85
|
+
catch {
|
|
86
|
+
return (0, neverthrow_1.err)(manifestError("DaActionTeamsManifestInvalid", `'${teamsManifestPath}' is not valid JSON.`));
|
|
87
|
+
}
|
|
88
|
+
const agentFile = teamsManifest.getDeclarativeAgentPaths()[0];
|
|
89
|
+
if (agentFile === undefined) {
|
|
90
|
+
return (0, neverthrow_1.err)(manifestError("DaActionManifestFileMissing", `The Teams manifest '${teamsManifestPath}' does not reference a declarative agent manifest.`));
|
|
91
|
+
}
|
|
92
|
+
const agentManifestPath = resolveSiblingPath(teamsManifestPath, agentFile);
|
|
93
|
+
const agentManifestContents = readManifest(sink, agentManifestPath, "DaActionManifestMissing", "DaActionManifestReadFailed");
|
|
94
|
+
if (agentManifestContents.isErr()) {
|
|
95
|
+
return (0, neverthrow_1.err)(agentManifestContents.error);
|
|
96
|
+
}
|
|
97
|
+
let agentManifest;
|
|
98
|
+
try {
|
|
99
|
+
agentManifest = teamsfx_api_1.DeclarativeAgentManifestWrapper.fromJSON(agentManifestContents.value.toString("utf8"));
|
|
100
|
+
}
|
|
101
|
+
catch {
|
|
102
|
+
return (0, neverthrow_1.err)(manifestError("DaActionManifestInvalid", `'${agentManifestPath}' is not valid JSON.`));
|
|
103
|
+
}
|
|
104
|
+
agentManifest.upsertAction(actionId(pluginManifestPath), pluginFileRelativeToAgent(agentManifestPath, pluginManifestPath));
|
|
105
|
+
try {
|
|
106
|
+
sink.write(agentManifestPath, Buffer.from(agentManifest.toJSON(), "utf8"));
|
|
107
|
+
}
|
|
108
|
+
catch (error) {
|
|
109
|
+
return (0, neverthrow_1.err)(manifestError("DaActionManifestWriteFailed", `Cannot write '${agentManifestPath}'.`, error));
|
|
110
|
+
}
|
|
111
|
+
return (0, neverthrow_1.ok)(undefined);
|
|
112
|
+
}
|
|
113
|
+
function buildManifestWrapper(sink) {
|
|
114
|
+
return {
|
|
115
|
+
registerDeclarativeAgentAction: (teamsManifestPath, pluginManifestPath) => registerDeclarativeAgentAction(sink, teamsManifestPath, pluginManifestPath),
|
|
116
|
+
setSensitivityLabel: (manifestPath, id) => {
|
|
117
|
+
const contents = readManifest(sink, manifestPath, "DaSensitivityLabelManifestMissing", "DaSensitivityLabelManifestReadFailed");
|
|
118
|
+
if (contents.isErr()) {
|
|
119
|
+
return (0, neverthrow_1.err)(contents.error);
|
|
120
|
+
}
|
|
121
|
+
let serialized;
|
|
122
|
+
try {
|
|
123
|
+
const wrapper = teamsfx_api_1.DeclarativeAgentManifestWrapper.fromJSON(contents.value.toString("utf8"));
|
|
124
|
+
wrapper.setSensitivityLabel(id);
|
|
125
|
+
serialized = Buffer.from(wrapper.toJSON(), "utf8");
|
|
126
|
+
}
|
|
127
|
+
catch (error) {
|
|
128
|
+
return (0, neverthrow_1.err)(manifestError("DaSensitivityLabelManifestInvalid", "the Declarative Agent manifest to label is invalid", error));
|
|
129
|
+
}
|
|
130
|
+
try {
|
|
131
|
+
sink.write(manifestPath, serialized);
|
|
132
|
+
return (0, neverthrow_1.ok)(undefined);
|
|
133
|
+
}
|
|
134
|
+
catch (error) {
|
|
135
|
+
return (0, neverthrow_1.err)(manifestError("DaSensitivityLabelManifestWriteFailed", `Cannot write '${manifestPath}'.`, error));
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
/** Drop list-valued render vars before calling the scalar expression evaluator. */
|
|
141
|
+
function scalarScope(renderVars) {
|
|
142
|
+
const scope = {};
|
|
143
|
+
for (const [key, value] of Object.entries(renderVars)) {
|
|
144
|
+
if (Array.isArray(value)) {
|
|
145
|
+
continue;
|
|
146
|
+
}
|
|
147
|
+
scope[key] = value;
|
|
148
|
+
}
|
|
149
|
+
return scope;
|
|
150
|
+
}
|
|
151
|
+
/** Build the shared pipeline port over an injected file sink. */
|
|
152
|
+
function buildPipelinePort(exprPort, sink, environmentWriter, stepRegistry = exports.STEP_REGISTRY, warningSink) {
|
|
153
|
+
return {
|
|
154
|
+
pipelineRegistry: (name) => exports.KNOWN_PIPELINES.has(name) ? { name } : undefined,
|
|
155
|
+
stepRegistry: (name) => stepRegistry.get(name),
|
|
156
|
+
evalWhen: (expr, renderVars) => (0, evaluateExpression_1.evaluateExpression)({ expr }, scalarScope(renderVars), exprPort).map((value) => value === true),
|
|
157
|
+
render: (mustache, renderVars) => (0, renderMustache_1.renderMustache)(mustache, renderVars),
|
|
158
|
+
manifestWrapper: () => buildManifestWrapper(sink),
|
|
159
|
+
warn: warningSink,
|
|
160
|
+
write: (path, data) => sink.write(path, data),
|
|
161
|
+
writeEnvironment: environmentWriter,
|
|
162
|
+
read: (path) => sink.read(path),
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
//# sourceMappingURL=runtimeRegistry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtimeRegistry.js","sourceRoot":"","sources":["../../../src/v4/runtime/runtimeRegistry.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AA4DlC,gDAgBC;AAuMD,8CAuBC;;AAxSD,wDAMgC;AAChC,2CAA6C;AAC7C,wDAAwB;AAExB,yEAAoG;AAOpG,qDAAkD;AAClD,+CAAiG;AACjG,yDAK+B;AAC/B,6CAKyB;AACzB,+CAA8F;AAC9F,iDAAiG;AACjG,qDAG6B;AAC7B,6CAKyB;AACzB,2CAKwB;AACxB,sFAAsF;AAEtF,4EAA4E;AAC/D,QAAA,eAAe,GAAG,IAAI,GAAG,CAAC,CAAC,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,CAAC,CAAC,CAAC;AAKlG,uFAAuF;AACvF,SAAgB,kBAAkB,CAChC,0BAA0D,sDAAsC;IAEhG,OAAO,IAAI,GAAG,CAAyB;QACrC,CAAC,wCAA6B,EAAE,yCAA8B,CAAC;QAC/D,CAAC,0CAA0B,EAAE,IAAA,+CAA+B,EAAC,uBAAuB,CAAC,CAAC;QACtF,CAAC,gCAAsB,EAAE,gCAAsB,CAAC;QAChD,CAAC,qCAA2B,EAAE,qCAA2B,CAAC;QAC1D,CAAC,yCAA8B,EAAE,qCAA0B,CAAC;QAC5D,CAAC,6CAAiC,EAAE,qCAAyB,CAAC;QAC9D,CAAC,4CAAkC,EAAE,oCAA0B,CAAC;QAChE,CAAC,iDAAuC,EAAE,8CAAoC,CAAC;QAC/E,CAAC,uDAAyC,EAAE,8CAAgC,CAAC;QAC7E,CAAC,8BAAqB,EAAE,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