@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,114 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT license.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.bundledFloorDir = bundledFloorDir;
|
|
6
|
+
exports.bundledFloorFrom = bundledFloorFrom;
|
|
7
|
+
exports.loadBundledFloor = loadBundledFloor;
|
|
8
|
+
exports.loadBundledTemplateArtifacts = loadBundledTemplateArtifacts;
|
|
9
|
+
const tslib_1 = require("tslib");
|
|
10
|
+
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
11
|
+
const fs = tslib_1.__importStar(require("fs-extra"));
|
|
12
|
+
const path = tslib_1.__importStar(require("path"));
|
|
13
|
+
const folder_1 = require("../../folder");
|
|
14
|
+
const templateArtifacts_1 = require("./templateArtifacts");
|
|
15
|
+
const templateSource_1 = require("./templateSource");
|
|
16
|
+
/** Bundled v4 template floor for offline-by-default resolution. */
|
|
17
|
+
const SOURCE = "Scaffold";
|
|
18
|
+
/** The directory the build bakes the floor into. */
|
|
19
|
+
function bundledFloorDir() {
|
|
20
|
+
return path.join((0, folder_1.getTemplatesFolder)(), "v4");
|
|
21
|
+
}
|
|
22
|
+
/** Build a {@link BundledFloor} from raw bytes — digest computed, never baked. */
|
|
23
|
+
function bundledFloorFrom(version, bytes, location) {
|
|
24
|
+
return { version, digest: (0, templateSource_1.computeDigest)(bytes), location };
|
|
25
|
+
}
|
|
26
|
+
function isFloorManifest(value) {
|
|
27
|
+
return (typeof value === "object" &&
|
|
28
|
+
value !== null &&
|
|
29
|
+
typeof value.version === "string");
|
|
30
|
+
}
|
|
31
|
+
/** Load the baked floor; missing or malformed artifacts are hard errors. */
|
|
32
|
+
function loadBundledFloor(floorDir = bundledFloorDir()) {
|
|
33
|
+
const manifestPath = path.join(floorDir, "floor.json");
|
|
34
|
+
const zipPath = path.join(floorDir, "templates.zip");
|
|
35
|
+
let manifest;
|
|
36
|
+
try {
|
|
37
|
+
manifest = fs.readJsonSync(manifestPath);
|
|
38
|
+
}
|
|
39
|
+
catch {
|
|
40
|
+
throw new teamsfx_api_1.SystemError({
|
|
41
|
+
source: SOURCE,
|
|
42
|
+
name: "BundledFloorMissing",
|
|
43
|
+
message: `The bundled floor manifest is missing or unreadable at "${manifestPath}".`,
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
if (!isFloorManifest(manifest)) {
|
|
47
|
+
throw new teamsfx_api_1.SystemError({
|
|
48
|
+
source: SOURCE,
|
|
49
|
+
name: "BundledFloorMalformed",
|
|
50
|
+
message: `The bundled floor manifest at "${manifestPath}" has no string "version".`,
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
let bytes;
|
|
54
|
+
try {
|
|
55
|
+
bytes = fs.readFileSync(zipPath);
|
|
56
|
+
}
|
|
57
|
+
catch {
|
|
58
|
+
throw new teamsfx_api_1.SystemError({
|
|
59
|
+
source: SOURCE,
|
|
60
|
+
name: "BundledFloorMissing",
|
|
61
|
+
message: `The bundled floor package is missing or unreadable at "${zipPath}".`,
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
return bundledFloorFrom(manifest.version, bytes, zipPath);
|
|
65
|
+
}
|
|
66
|
+
function bundledArtifactDigest(floorDir, kind) {
|
|
67
|
+
const location = path.join(floorDir, (0, templateArtifacts_1.artifactFileName)(kind));
|
|
68
|
+
try {
|
|
69
|
+
return (0, templateArtifacts_1.computeArtifactDigest)(fs.readFileSync(location));
|
|
70
|
+
}
|
|
71
|
+
catch {
|
|
72
|
+
throw new teamsfx_api_1.SystemError({
|
|
73
|
+
source: SOURCE,
|
|
74
|
+
name: "BundledTemplateArtifactMissing",
|
|
75
|
+
message: `The bundled v4 template artifact is missing or unreadable at "${location}".`,
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
/** Load the baked staged artifacts used by the final v4 distribution resolver. */
|
|
80
|
+
function loadBundledTemplateArtifacts(floorDir = bundledFloorDir()) {
|
|
81
|
+
const floor = loadBundledFloor(floorDir);
|
|
82
|
+
const createSelectorFile = (0, templateArtifacts_1.artifactFileName)("create-selector");
|
|
83
|
+
const modifySelectorFile = (0, templateArtifacts_1.artifactFileName)("modify-selector");
|
|
84
|
+
const metadataFile = (0, templateArtifacts_1.artifactFileName)("metadata");
|
|
85
|
+
const templatesFile = (0, templateArtifacts_1.artifactFileName)("templates");
|
|
86
|
+
return {
|
|
87
|
+
version: floor.version,
|
|
88
|
+
artifacts: {
|
|
89
|
+
"create-selector": {
|
|
90
|
+
kind: "create-selector",
|
|
91
|
+
file: createSelectorFile,
|
|
92
|
+
digest: bundledArtifactDigest(floorDir, "create-selector"),
|
|
93
|
+
},
|
|
94
|
+
"modify-selector": {
|
|
95
|
+
kind: "modify-selector",
|
|
96
|
+
file: modifySelectorFile,
|
|
97
|
+
digest: bundledArtifactDigest(floorDir, "modify-selector"),
|
|
98
|
+
},
|
|
99
|
+
metadata: {
|
|
100
|
+
kind: "metadata",
|
|
101
|
+
file: metadataFile,
|
|
102
|
+
digest: bundledArtifactDigest(floorDir, "metadata"),
|
|
103
|
+
},
|
|
104
|
+
templates: { kind: "templates", file: templatesFile, digest: floor.digest },
|
|
105
|
+
},
|
|
106
|
+
locations: {
|
|
107
|
+
"create-selector": path.join(floorDir, createSelectorFile),
|
|
108
|
+
"modify-selector": path.join(floorDir, modifySelectorFile),
|
|
109
|
+
metadata: path.join(floorDir, metadataFile),
|
|
110
|
+
templates: floor.location,
|
|
111
|
+
},
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
//# sourceMappingURL=bundledFloor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundledFloor.js","sourceRoot":"","sources":["../../../src/v4/distribution/bundledFloor.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmBlC,0CAEC;AAGD,4CAEC;AAeD,4CAkCC;AAgBD,oEAmCC;;AA5HD,wDAAqD;AACrD,qDAA+B;AAC/B,mDAA6B;AAC7B,yCAAkD;AAClD,2DAK6B;AAC7B,qDAA+D;AAE/D,mEAAmE;AAEnE,MAAM,MAAM,GAAG,UAAU,CAAC;AAE1B,oDAAoD;AACpD,SAAgB,eAAe;IAC7B,OAAO,IAAI,CAAC,IAAI,CAAC,IAAA,2BAAkB,GAAE,EAAE,IAAI,CAAC,CAAC;AAC/C,CAAC;AAED,kFAAkF;AAClF,SAAgB,gBAAgB,CAAC,OAAe,EAAE,KAAa,EAAE,QAAgB;IAC/E,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAA,8BAAa,EAAC,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC;AAC7D,CAAC;AAMD,SAAS,eAAe,CAAC,KAAc;IACrC,OAAO,CACL,OAAO,KAAK,KAAK,QAAQ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EAAE,UAAU,CAAC;aACpD;YACD,SAAS,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE;SAC5E;QACD,SAAS,EAAE;YACT,iBAAiB,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,kBAAkB,CAAC;YAC1D,iBAAiB,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,kBAAkB,CAAC;YAC1D,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,YAAY,CAAC;YAC3C,SAAS,EAAE,KAAK,CAAC,QAAQ;SAC1B;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FxError } from "@microsoft/teamsfx-api";
|
|
2
|
+
import { Result } from "neverthrow";
|
|
3
|
+
import { QuestionSpec } from "../collectInputs/collectInputs";
|
|
4
|
+
import { DeclarativeLocator } from "../model/dataModel";
|
|
5
|
+
export declare function openCreateQuestions(bytes: Buffer, locator: DeclarativeLocator): Result<QuestionSpec[], FxError>;
|
|
6
|
+
//# sourceMappingURL=createQuestions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createQuestions.d.ts","sourceRoot":"","sources":["../../../src/v4/distribution/createQuestions.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAe,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,MAAM,EAAO,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAYxD,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,kBAAkB,GAC1B,MAAM,CAAC,YAAY,EAAE,EAAE,OAAO,CAAC,CAmDjC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT license.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.openCreateQuestions = openCreateQuestions;
|
|
6
|
+
const tslib_1 = require("tslib");
|
|
7
|
+
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
8
|
+
const adm_zip_1 = tslib_1.__importDefault(require("adm-zip"));
|
|
9
|
+
const neverthrow_1 = require("neverthrow");
|
|
10
|
+
const questionFragments_1 = require("./questionFragments");
|
|
11
|
+
/** Load one create template's `questions.json`. See collect-create-inputs spec. */
|
|
12
|
+
const SOURCE = "Scaffold";
|
|
13
|
+
/** The `v4/<kind>/<templateId>/questions.json` entry this locator resolves to. */
|
|
14
|
+
function questionsEntry(locator) {
|
|
15
|
+
return `v4/${locator.kind}/${locator.templateId}/questions.json`;
|
|
16
|
+
}
|
|
17
|
+
function openCreateQuestions(bytes, locator) {
|
|
18
|
+
let zip;
|
|
19
|
+
try {
|
|
20
|
+
zip = new adm_zip_1.default(bytes);
|
|
21
|
+
}
|
|
22
|
+
catch {
|
|
23
|
+
return (0, neverthrow_1.err)(new teamsfx_api_1.SystemError({
|
|
24
|
+
source: SOURCE,
|
|
25
|
+
name: "TemplatePackageCorrupt",
|
|
26
|
+
message: "The resolved template package is not a valid archive.",
|
|
27
|
+
}));
|
|
28
|
+
}
|
|
29
|
+
const entryPath = questionsEntry(locator);
|
|
30
|
+
let questionsRaw;
|
|
31
|
+
for (const entry of zip.getEntries()) {
|
|
32
|
+
if (entry.isDirectory) {
|
|
33
|
+
continue;
|
|
34
|
+
}
|
|
35
|
+
const name = entry.entryName.replace(/\\/g, "/");
|
|
36
|
+
if (name === entryPath) {
|
|
37
|
+
questionsRaw = entry.getData().toString("utf8");
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
if (questionsRaw === undefined) {
|
|
42
|
+
return (0, neverthrow_1.err)(new teamsfx_api_1.SystemError({
|
|
43
|
+
source: SOURCE,
|
|
44
|
+
name: "PackageFileMissing",
|
|
45
|
+
message: `The template package is missing "${entryPath}".`,
|
|
46
|
+
}));
|
|
47
|
+
}
|
|
48
|
+
let parsed;
|
|
49
|
+
try {
|
|
50
|
+
parsed = JSON.parse(questionsRaw);
|
|
51
|
+
}
|
|
52
|
+
catch {
|
|
53
|
+
return (0, neverthrow_1.err)(new teamsfx_api_1.SystemError({
|
|
54
|
+
source: SOURCE,
|
|
55
|
+
name: "PackageFileInvalid",
|
|
56
|
+
message: `The template package file "${entryPath}" is not valid JSON.`,
|
|
57
|
+
}));
|
|
58
|
+
}
|
|
59
|
+
return (0, questionFragments_1.resolveQuestions)(parsed, entryPath, (0, questionFragments_1.zipFragmentReader)(zip));
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=createQuestions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createQuestions.js","sourceRoot":"","sources":["../../../src/v4/distribution/createQuestions.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAkBlC,kDAsDC;;AAtED,wDAA8D;AAC9D,8DAA6B;AAC7B,2CAAyC;AAGzC,2DAA0E;AAE1E,mFAAmF;AAEnF,MAAM,MAAM,GAAG,UAAU,CAAC;AAE1B,kFAAkF;AAClF,SAAS,cAAc,CAAC,OAA2B;IACjD,OAAO,MAAM,OAAO,CAAC,IAAI,IAAI,OAAO,CAAC,UAAU,iBAAiB,CAAC;AACnE,CAAC;AAED,SAAgB,mBAAmB,CACjC,KAAa,EACb,OAA2B;IAE3B,IAAI,GAAW,CAAC;IAChB,IAAI,CAAC;QACH,GAAG,GAAG,IAAI,iBAAM,CAAC,KAAK,CAAC,CAAC;IAC1B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAA,gBAAG,EACR,IAAI,yBAAW,CAAC;YACd,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,wBAAwB;YAC9B,OAAO,EAAE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3
|
+
import { SelectorSpec } from "../buildTarget/resolveBuildTarget";
|
|
4
|
+
import { SelectorPresentation } from "../buildTarget/parseSelector";
|
|
5
|
+
export type SelectorKind = "create" | "modify";
|
|
6
|
+
export declare function openSelector(bytes: Buffer, kind: SelectorKind): Result<SelectorSpec, FxError>;
|
|
7
|
+
export declare function openSelectorPresentation(bytes: Buffer, kind: SelectorKind): Result<SelectorPresentation, FxError>;
|
|
8
|
+
export declare function openSelectorFromJsonBytes(bytes: Buffer, kind: SelectorKind): Result<SelectorSpec, FxError>;
|
|
9
|
+
export declare function openSelectorPresentationFromJsonBytes(bytes: Buffer, kind: SelectorKind): Result<SelectorPresentation, FxError>;
|
|
10
|
+
export declare function openCreateSelector(bytes: Buffer): Result<SelectorSpec, FxError>;
|
|
11
|
+
export declare function openModifySelector(bytes: Buffer): Result<SelectorSpec, FxError>;
|
|
12
|
+
/** Open the selector presentation projection for the live Q1 prompt face. */
|
|
13
|
+
export declare function openCreateSelectorPresentation(bytes: Buffer): Result<SelectorPresentation, FxError>;
|
|
14
|
+
export declare function openModifySelectorPresentation(bytes: Buffer): Result<SelectorPresentation, FxError>;
|
|
15
|
+
//# sourceMappingURL=createSelector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createSelector.d.ts","sourceRoot":"","sources":["../../../src/v4/distribution/createSelector.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAe,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,MAAM,EAAW,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EACL,oBAAoB,EAGrB,MAAM,8BAA8B,CAAC;AAMtC,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAiE/C,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,GAAG,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,CAM7F;AAED,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,YAAY,GACjB,MAAM,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAMvC;AAED,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,YAAY,GACjB,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,CAO/B;AAED,wBAAgB,qCAAqC,CACnD,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,YAAY,GACjB,MAAM,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAOvC;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,CAE/E;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,CAE/E;AAED,6EAA6E;AAC7E,wBAAgB,8BAA8B,CAC5C,KAAK,EAAE,MAAM,GACZ,MAAM,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAEvC;AAED,wBAAgB,8BAA8B,CAC5C,KAAK,EAAE,MAAM,GACZ,MAAM,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAEvC"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT license.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.openSelector = openSelector;
|
|
6
|
+
exports.openSelectorPresentation = openSelectorPresentation;
|
|
7
|
+
exports.openSelectorFromJsonBytes = openSelectorFromJsonBytes;
|
|
8
|
+
exports.openSelectorPresentationFromJsonBytes = openSelectorPresentationFromJsonBytes;
|
|
9
|
+
exports.openCreateSelector = openCreateSelector;
|
|
10
|
+
exports.openModifySelector = openModifySelector;
|
|
11
|
+
exports.openCreateSelectorPresentation = openCreateSelectorPresentation;
|
|
12
|
+
exports.openModifySelectorPresentation = openModifySelectorPresentation;
|
|
13
|
+
const tslib_1 = require("tslib");
|
|
14
|
+
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
15
|
+
const adm_zip_1 = tslib_1.__importDefault(require("adm-zip"));
|
|
16
|
+
const neverthrow_1 = require("neverthrow");
|
|
17
|
+
const parseSelector_1 = require("../buildTarget/parseSelector");
|
|
18
|
+
/** Load the v4 create/modify selectors. See resolve-build-target spec. */
|
|
19
|
+
const SOURCE = "Scaffold";
|
|
20
|
+
/** The selector's fixed entry path inside the channel `templates.zip`. */
|
|
21
|
+
function selectorEntry(kind) {
|
|
22
|
+
return `v4/${kind}/selector.json`;
|
|
23
|
+
}
|
|
24
|
+
function parseSelectorJson(selectorRaw, sourcePath) {
|
|
25
|
+
let parsed;
|
|
26
|
+
try {
|
|
27
|
+
parsed = JSON.parse(selectorRaw);
|
|
28
|
+
}
|
|
29
|
+
catch {
|
|
30
|
+
return (0, neverthrow_1.err)(new teamsfx_api_1.SystemError({
|
|
31
|
+
source: SOURCE,
|
|
32
|
+
name: "PackageFileInvalid",
|
|
33
|
+
message: `The template package file "${sourcePath}" is not valid JSON.`,
|
|
34
|
+
}));
|
|
35
|
+
}
|
|
36
|
+
return (0, neverthrow_1.ok)(parsed);
|
|
37
|
+
}
|
|
38
|
+
/** Read and JSON-parse the single selector entry from the full package zip. */
|
|
39
|
+
function readSelectorRawFromZip(bytes, kind) {
|
|
40
|
+
let zip;
|
|
41
|
+
try {
|
|
42
|
+
zip = new adm_zip_1.default(bytes);
|
|
43
|
+
}
|
|
44
|
+
catch {
|
|
45
|
+
return (0, neverthrow_1.err)(new teamsfx_api_1.SystemError({
|
|
46
|
+
source: SOURCE,
|
|
47
|
+
name: "TemplatePackageCorrupt",
|
|
48
|
+
message: "The resolved template package is not a valid archive.",
|
|
49
|
+
}));
|
|
50
|
+
}
|
|
51
|
+
const selectorPath = selectorEntry(kind);
|
|
52
|
+
let selectorRaw;
|
|
53
|
+
for (const entry of zip.getEntries()) {
|
|
54
|
+
if (entry.isDirectory) {
|
|
55
|
+
continue;
|
|
56
|
+
}
|
|
57
|
+
const name = entry.entryName.replace(/\\/g, "/");
|
|
58
|
+
if (name === selectorPath) {
|
|
59
|
+
selectorRaw = entry.getData().toString("utf8");
|
|
60
|
+
break;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
if (selectorRaw === undefined) {
|
|
64
|
+
return (0, neverthrow_1.err)(new teamsfx_api_1.SystemError({
|
|
65
|
+
source: SOURCE,
|
|
66
|
+
name: "PackageFileMissing",
|
|
67
|
+
message: `The template package is missing "${selectorPath}".`,
|
|
68
|
+
}));
|
|
69
|
+
}
|
|
70
|
+
return parseSelectorJson(selectorRaw, selectorPath);
|
|
71
|
+
}
|
|
72
|
+
function openSelector(bytes, kind) {
|
|
73
|
+
const raw = readSelectorRawFromZip(bytes, kind);
|
|
74
|
+
if (raw.isErr()) {
|
|
75
|
+
return (0, neverthrow_1.err)(raw.error);
|
|
76
|
+
}
|
|
77
|
+
return (0, parseSelector_1.parseSelectorSpec)(raw.value);
|
|
78
|
+
}
|
|
79
|
+
function openSelectorPresentation(bytes, kind) {
|
|
80
|
+
const raw = readSelectorRawFromZip(bytes, kind);
|
|
81
|
+
if (raw.isErr()) {
|
|
82
|
+
return (0, neverthrow_1.err)(raw.error);
|
|
83
|
+
}
|
|
84
|
+
return (0, parseSelector_1.parseSelectorPresentation)(raw.value);
|
|
85
|
+
}
|
|
86
|
+
function openSelectorFromJsonBytes(bytes, kind) {
|
|
87
|
+
const selectorPath = selectorEntry(kind);
|
|
88
|
+
const raw = parseSelectorJson(bytes.toString("utf8"), selectorPath);
|
|
89
|
+
if (raw.isErr()) {
|
|
90
|
+
return (0, neverthrow_1.err)(raw.error);
|
|
91
|
+
}
|
|
92
|
+
return (0, parseSelector_1.parseSelectorSpec)(raw.value);
|
|
93
|
+
}
|
|
94
|
+
function openSelectorPresentationFromJsonBytes(bytes, kind) {
|
|
95
|
+
const selectorPath = selectorEntry(kind);
|
|
96
|
+
const raw = parseSelectorJson(bytes.toString("utf8"), selectorPath);
|
|
97
|
+
if (raw.isErr()) {
|
|
98
|
+
return (0, neverthrow_1.err)(raw.error);
|
|
99
|
+
}
|
|
100
|
+
return (0, parseSelector_1.parseSelectorPresentation)(raw.value);
|
|
101
|
+
}
|
|
102
|
+
function openCreateSelector(bytes) {
|
|
103
|
+
return openSelector(bytes, "create");
|
|
104
|
+
}
|
|
105
|
+
function openModifySelector(bytes) {
|
|
106
|
+
return openSelector(bytes, "modify");
|
|
107
|
+
}
|
|
108
|
+
/** Open the selector presentation projection for the live Q1 prompt face. */
|
|
109
|
+
function openCreateSelectorPresentation(bytes) {
|
|
110
|
+
return openSelectorPresentation(bytes, "create");
|
|
111
|
+
}
|
|
112
|
+
function openModifySelectorPresentation(bytes) {
|
|
113
|
+
return openSelectorPresentation(bytes, "modify");
|
|
114
|
+
}
|
|
115
|
+
//# sourceMappingURL=createSelector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createSelector.js","sourceRoot":"","sources":["../../../src/v4/distribution/createSelector.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAiFlC,oCAMC;AAED,4DASC;AAED,8DAUC;AAED,sFAUC;AAED,gDAEC;AAED,gDAEC;AAGD,wEAIC;AAED,wEAIC;;AA7ID,wDAA8D;AAC9D,8DAA6B;AAC7B,2CAA6C;AAE7C,gEAIsC;AAEtC,0EAA0E;AAE1E,MAAM,MAAM,GAAG,UAAU,CAAC;AAI1B,0EAA0E;AAC1E,SAAS,aAAa,CAAC,IAAkB;IACvC,OAAO,MAAM,IAAI,gBAAgB,CAAC;AACpC,CAAC;AAED,SAAS,iBAAiB,CAAC,WAAmB,EAAE,UAAkB;IAChE,IAAI,MAAe,CAAC;IACpB,IAAI,CAAC;QACH,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IACnC,CAAC;IAAC,M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BAAiB,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC,CAAC;IACpE,IAAI,GAAG,CAAC,KAAK,EAAE,EAAE,CAAC;QAChB,OAAO,IAAA,gBAAG,EAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACxB,CAAC;IACD,OAAO,IAAA,yCAAyB,EAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AAC9C,CAAC;AAED,SAAgB,kBAAkB,CAAC,KAAa;IAC9C,OAAO,YAAY,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;AACvC,CAAC;AAED,SAAgB,kBAAkB,CAAC,KAAa;IAC9C,OAAO,YAAY,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;AACvC,CAAC;AAED,6EAA6E;AAC7E,SAAgB,8BAA8B,CAC5C,KAAa;IAEb,OAAO,wBAAwB,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;AACnD,CAAC;AAED,SAAgB,8BAA8B,CAC5C,KAAa;IAEb,OAAO,wBAAwB,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;AACnD,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FxError } from "@microsoft/teamsfx-api";
|
|
2
|
+
import { Result } from "neverthrow";
|
|
3
|
+
import { QuestionSpec } from "../collectInputs/collectInputs";
|
|
4
|
+
import { DeclarativeLocator } from "../model/dataModel";
|
|
5
|
+
import { LoadedPackage } from "./packageDir";
|
|
6
|
+
export interface LoadedPackageMetadata {
|
|
7
|
+
descriptor: unknown;
|
|
8
|
+
questions: QuestionSpec[];
|
|
9
|
+
pipeline: unknown;
|
|
10
|
+
}
|
|
11
|
+
/** Open the channel package and return the located declarative package. */
|
|
12
|
+
export declare function openDeclarativePackage(bytes: Buffer, locator: DeclarativeLocator): Result<LoadedPackage, FxError>;
|
|
13
|
+
export declare function openDeclarativePackageMetadata(bytes: Buffer, locator: DeclarativeLocator): Result<LoadedPackageMetadata, FxError>;
|
|
14
|
+
//# sourceMappingURL=declarativePackage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"declarativePackage.d.ts","sourceRoot":"","sources":["../../../src/v4/distribution/declarativePackage.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAe,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,MAAM,EAAW,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAqB,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AA+G7C,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,2EAA2E;AAC3E,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,kBAAkB,GAC1B,MAAM,CAAC,aAAa,EAAE,OAAO,CAAC,CA+BhC;AAED,wBAAgB,8BAA8B,CAC5C,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,kBAAkB,GAC1B,MAAM,CAAC,qBAAqB,EAAE,OAAO,CAAC,CA0CxC"}
|
|
@@ -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.openDeclarativePackage = openDeclarativePackage;
|
|
6
|
+
exports.openDeclarativePackageMetadata = openDeclarativePackageMetadata;
|
|
7
|
+
const tslib_1 = require("tslib");
|
|
8
|
+
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
9
|
+
const adm_zip_1 = tslib_1.__importDefault(require("adm-zip"));
|
|
10
|
+
const neverthrow_1 = require("neverthrow");
|
|
11
|
+
const questionFragments_1 = require("./questionFragments");
|
|
12
|
+
/** Open one declarative package subtree from channel zip bytes. See open-template-package spec. */
|
|
13
|
+
const SOURCE = "Scaffold";
|
|
14
|
+
/** The `v4/<kind>/<templateId>/` prefix this locator resolves to (trailing slash = boundary). */
|
|
15
|
+
function packageRoot(locator) {
|
|
16
|
+
return `v4/${locator.kind}/${locator.templateId}/`;
|
|
17
|
+
}
|
|
18
|
+
/** Zip-Slip guard for stripped content paths. */
|
|
19
|
+
function isSafeRelativePath(rel) {
|
|
20
|
+
return rel.split("/").every((seg) => seg.length > 0 && seg !== "." && seg !== "..");
|
|
21
|
+
}
|
|
22
|
+
/** Parse one raw JSON entry, mapping a parse failure to `PackageFileInvalid`. */
|
|
23
|
+
function parseEntryJson(raw, file) {
|
|
24
|
+
try {
|
|
25
|
+
const parsed = JSON.parse(raw);
|
|
26
|
+
return (0, neverthrow_1.ok)(parsed);
|
|
27
|
+
}
|
|
28
|
+
catch {
|
|
29
|
+
return (0, neverthrow_1.err)(new teamsfx_api_1.SystemError({
|
|
30
|
+
source: SOURCE,
|
|
31
|
+
name: "PackageFileInvalid",
|
|
32
|
+
message: `The template package file "${file}" is not valid JSON.`,
|
|
33
|
+
}));
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
/** A package shape file that the package set is required to carry. */
|
|
37
|
+
function missingFile(file) {
|
|
38
|
+
return new teamsfx_api_1.SystemError({
|
|
39
|
+
source: SOURCE,
|
|
40
|
+
name: "PackageFileMissing",
|
|
41
|
+
message: `The template package is missing "${file}".`,
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
function openZip(bytes) {
|
|
45
|
+
try {
|
|
46
|
+
return (0, neverthrow_1.ok)(new adm_zip_1.default(bytes));
|
|
47
|
+
}
|
|
48
|
+
catch {
|
|
49
|
+
return (0, neverthrow_1.err)(new teamsfx_api_1.SystemError({
|
|
50
|
+
source: SOURCE,
|
|
51
|
+
name: "TemplatePackageCorrupt",
|
|
52
|
+
message: "The resolved template package is not a valid archive.",
|
|
53
|
+
}));
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
function readPackageEntries(zip, locator, includeContent) {
|
|
57
|
+
const root = packageRoot(locator);
|
|
58
|
+
const contentPrefix = `${root}content/`;
|
|
59
|
+
const entries = { content: [] };
|
|
60
|
+
for (const entry of zip.getEntries()) {
|
|
61
|
+
if (entry.isDirectory) {
|
|
62
|
+
continue;
|
|
63
|
+
}
|
|
64
|
+
const name = entry.entryName.replace(/\\/g, "/");
|
|
65
|
+
if (!name.startsWith(root)) {
|
|
66
|
+
continue;
|
|
67
|
+
}
|
|
68
|
+
if (name.startsWith(contentPrefix)) {
|
|
69
|
+
if (!includeContent) {
|
|
70
|
+
continue;
|
|
71
|
+
}
|
|
72
|
+
const rel = name.slice(contentPrefix.length);
|
|
73
|
+
if (!isSafeRelativePath(rel)) {
|
|
74
|
+
return (0, neverthrow_1.err)(new teamsfx_api_1.SystemError({
|
|
75
|
+
source: SOURCE,
|
|
76
|
+
name: "TemplatePackageUnsafePath",
|
|
77
|
+
message: `The resolved template package contains an unsafe entry path: "${entry.entryName}".`,
|
|
78
|
+
}));
|
|
79
|
+
}
|
|
80
|
+
entries.content.push({ path: rel, data: entry.getData() });
|
|
81
|
+
continue;
|
|
82
|
+
}
|
|
83
|
+
const rel = name.slice(root.length);
|
|
84
|
+
if (rel === "descriptor.json") {
|
|
85
|
+
entries.descriptorRaw = entry.getData().toString("utf8");
|
|
86
|
+
}
|
|
87
|
+
else if (rel === "questions.json") {
|
|
88
|
+
entries.questionsRaw = entry.getData().toString("utf8");
|
|
89
|
+
}
|
|
90
|
+
else if (rel === "pipeline.json") {
|
|
91
|
+
entries.pipelineRaw = entry.getData().toString("utf8");
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
entries.content.sort((a, b) => (a.path < b.path ? -1 : a.path > b.path ? 1 : 0));
|
|
95
|
+
return (0, neverthrow_1.ok)(entries);
|
|
96
|
+
}
|
|
97
|
+
/** Open the channel package and return the located declarative package. */
|
|
98
|
+
function openDeclarativePackage(bytes, locator) {
|
|
99
|
+
const zip = openZip(bytes);
|
|
100
|
+
if (zip.isErr()) {
|
|
101
|
+
return (0, neverthrow_1.err)(zip.error);
|
|
102
|
+
}
|
|
103
|
+
const root = packageRoot(locator);
|
|
104
|
+
const entries = readPackageEntries(zip.value, locator, true);
|
|
105
|
+
if (entries.isErr()) {
|
|
106
|
+
return (0, neverthrow_1.err)(entries.error);
|
|
107
|
+
}
|
|
108
|
+
if (entries.value.descriptorRaw === undefined) {
|
|
109
|
+
return (0, neverthrow_1.err)(missingFile(`${root}descriptor.json`));
|
|
110
|
+
}
|
|
111
|
+
if (entries.value.pipelineRaw === undefined) {
|
|
112
|
+
return (0, neverthrow_1.err)(missingFile(`${root}pipeline.json`));
|
|
113
|
+
}
|
|
114
|
+
const descriptor = parseEntryJson(entries.value.descriptorRaw, `${root}descriptor.json`);
|
|
115
|
+
if (descriptor.isErr()) {
|
|
116
|
+
return (0, neverthrow_1.err)(descriptor.error);
|
|
117
|
+
}
|
|
118
|
+
const pipeline = parseEntryJson(entries.value.pipelineRaw, `${root}pipeline.json`);
|
|
119
|
+
if (pipeline.isErr()) {
|
|
120
|
+
return (0, neverthrow_1.err)(pipeline.error);
|
|
121
|
+
}
|
|
122
|
+
return (0, neverthrow_1.ok)({
|
|
123
|
+
descriptor: descriptor.value,
|
|
124
|
+
pipeline: pipeline.value,
|
|
125
|
+
content: entries.value.content,
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
function openDeclarativePackageMetadata(bytes, locator) {
|
|
129
|
+
const zip = openZip(bytes);
|
|
130
|
+
if (zip.isErr()) {
|
|
131
|
+
return (0, neverthrow_1.err)(zip.error);
|
|
132
|
+
}
|
|
133
|
+
const root = packageRoot(locator);
|
|
134
|
+
const entries = readPackageEntries(zip.value, locator, false);
|
|
135
|
+
if (entries.isErr()) {
|
|
136
|
+
return (0, neverthrow_1.err)(entries.error);
|
|
137
|
+
}
|
|
138
|
+
if (entries.value.descriptorRaw === undefined) {
|
|
139
|
+
return (0, neverthrow_1.err)(missingFile(`${root}descriptor.json`));
|
|
140
|
+
}
|
|
141
|
+
if (entries.value.questionsRaw === undefined) {
|
|
142
|
+
return (0, neverthrow_1.err)(missingFile(`${root}questions.json`));
|
|
143
|
+
}
|
|
144
|
+
if (entries.value.pipelineRaw === undefined) {
|
|
145
|
+
return (0, neverthrow_1.err)(missingFile(`${root}pipeline.json`));
|
|
146
|
+
}
|
|
147
|
+
const descriptor = parseEntryJson(entries.value.descriptorRaw, `${root}descriptor.json`);
|
|
148
|
+
if (descriptor.isErr()) {
|
|
149
|
+
return (0, neverthrow_1.err)(descriptor.error);
|
|
150
|
+
}
|
|
151
|
+
const questionsRaw = parseEntryJson(entries.value.questionsRaw, `${root}questions.json`);
|
|
152
|
+
if (questionsRaw.isErr()) {
|
|
153
|
+
return (0, neverthrow_1.err)(questionsRaw.error);
|
|
154
|
+
}
|
|
155
|
+
const questions = (0, questionFragments_1.resolveQuestions)(questionsRaw.value, `${root}questions.json`, (0, questionFragments_1.zipFragmentReader)(zip.value));
|
|
156
|
+
if (questions.isErr()) {
|
|
157
|
+
return (0, neverthrow_1.err)(questions.error);
|
|
158
|
+
}
|
|
159
|
+
const pipeline = parseEntryJson(entries.value.pipelineRaw, `${root}pipeline.json`);
|
|
160
|
+
if (pipeline.isErr()) {
|
|
161
|
+
return (0, neverthrow_1.err)(pipeline.error);
|
|
162
|
+
}
|
|
163
|
+
return (0, neverthrow_1.ok)({ descriptor: descriptor.value, questions: questions.value, pipeline: pipeline.value });
|
|
164
|
+
}
|
|
165
|
+
//# sourceMappingURL=declarativePackage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"declarativePackage.js","sourceRoot":"","sources":["../../../src/v4/distribution/declarativePackage.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA6HlC,wDAkCC;AAED,wEA6CC;;AA5MD,wDAA8D;AA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;IACzF,IAAI,YAAY,CAAC,KAAK,EAAE,EAAE,CAAC;QACzB,OAAO,IAAA,gBAAG,EAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC;IACD,MAAM,SAAS,GAAG,IAAA,oCAAgB,EAChC,YAAY,CAAC,KAAK,EAClB,GAAG,IAAI,gBAAgB,EACvB,IAAA,qCAAiB,EAAC,GAAG,CAAC,KAAK,CAAC,CAC7B,CAAC;IACF,IAAI,SAAS,CAAC,KAAK,EAAE,EAAE,CAAC;QACtB,OAAO,IAAA,gBAAG,EAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC;IACD,MAAM,QAAQ,GAAG,cAAc,CAAC,OAAO,CAAC,KAAK,CAAC,WAAW,EAAE,GAAG,IAAI,eAAe,CAAC,CAAC;IACnF,IAAI,QAAQ,CAAC,KAAK,EAAE,EAAE,CAAC;QACrB,OAAO,IAAA,gBAAG,EAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC;IAED,OAAO,IAAA,eAAE,EAAC,EAAE,UAAU,EAAE,UAAU,CAAC,KAAK,EAAE,SAAS,EAAE,SAAS,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC;AACpG,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FxError } from "@microsoft/teamsfx-api";
|
|
2
|
+
import { Result } from "neverthrow";
|
|
3
|
+
import { TemplateFileEntry } from "../model/dataModel";
|
|
4
|
+
/** A parsed declarative package: shape files plus optional raw content. */
|
|
5
|
+
export interface LoadedPackage {
|
|
6
|
+
/** The package's parsed `descriptor.json` (its `replaceMap` drives the render vars). */
|
|
7
|
+
descriptor: unknown;
|
|
8
|
+
/** The package's parsed `pipeline.json`. */
|
|
9
|
+
pipeline: unknown;
|
|
10
|
+
/** The opened `content/**` entries (raw bytes, `.tpl` suffix intact, sorted); empty for pipeline-only packages. */
|
|
11
|
+
content: TemplateFileEntry[];
|
|
12
|
+
}
|
|
13
|
+
/** Load a declarative template package from its authored directory. */
|
|
14
|
+
export declare function loadPackageDir(dir: string): Result<LoadedPackage, FxError>;
|
|
15
|
+
//# sourceMappingURL=packageDir.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"packageDir.d.ts","sourceRoot":"","sources":["../../../src/v4/distribution/packageDir.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAe,MAAM,wBAAwB,CAAC;AAG9D,OAAO,EAAE,MAAM,EAAW,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAMvD,2EAA2E;AAC3E,MAAM,WAAW,aAAa;IAC5B,wFAAwF;IACxF,UAAU,EAAE,OAAO,CAAC;IACpB,4CAA4C;IAC5C,QAAQ,EAAE,OAAO,CAAC;IAClB,mHAAmH;IACnH,OAAO,EAAE,iBAAiB,EAAE,CAAC;CAC9B;AA6ED,uEAAuE;AACvE,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,aAAa,EAAE,OAAO,CAAC,CAkB1E"}
|