@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 @@
|
|
|
1
|
+
{"version":3,"file":"officeAddin.d.ts","sourceRoot":"","sources":["../../../../src/v4/runtime/steps/officeAddin.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,cAAc,EAA2B,MAAM,oCAAoC,CAAC;AAO7F,eAAO,MAAM,yCAAyC,wCAAwC,CAAC;AAqK/F,eAAO,MAAM,gCAAgC,EAAE,cAoB9C,CAAC"}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT license.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.officeAddinImportExistingProject = exports.STEP_IMPORT_EXISTING_OFFICE_ADDIN_PROJECT = void 0;
|
|
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 officeAddinProject = tslib_1.__importStar(require("office-addin-project"));
|
|
10
|
+
const path = tslib_1.__importStar(require("path"));
|
|
11
|
+
const neverthrow_1 = require("neverthrow");
|
|
12
|
+
const withTempDirectory_1 = require("../withTempDirectory");
|
|
13
|
+
/** Office Add-in post-render import steps. */
|
|
14
|
+
const SOURCE = "Scaffold";
|
|
15
|
+
exports.STEP_IMPORT_EXISTING_OFFICE_ADDIN_PROJECT = "officeaddin/import-existing-project";
|
|
16
|
+
const RENDERED_CONFIG_FILES = [
|
|
17
|
+
".gitignore",
|
|
18
|
+
".vscode/extensions.json",
|
|
19
|
+
"env/.env.dev",
|
|
20
|
+
"infra/azure.bicep",
|
|
21
|
+
"infra/azure.parameters.json",
|
|
22
|
+
"m365agents.yml",
|
|
23
|
+
];
|
|
24
|
+
function systemError(name, message) {
|
|
25
|
+
return new teamsfx_api_1.SystemError({ source: SOURCE, name, message });
|
|
26
|
+
}
|
|
27
|
+
function userError(name, message) {
|
|
28
|
+
return new teamsfx_api_1.UserError({ source: SOURCE, name, message });
|
|
29
|
+
}
|
|
30
|
+
function stringParam(params, key) {
|
|
31
|
+
const value = params[key];
|
|
32
|
+
return typeof value === "string" ? value : undefined;
|
|
33
|
+
}
|
|
34
|
+
function isRecord(value) {
|
|
35
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
36
|
+
}
|
|
37
|
+
function isExcludedSourcePath(relativePath) {
|
|
38
|
+
return relativePath.split("/").includes("node_modules");
|
|
39
|
+
}
|
|
40
|
+
function resolveContainedPath(root, selectedPath) {
|
|
41
|
+
const resolvedRoot = path.resolve(root);
|
|
42
|
+
const resolvedPath = path.isAbsolute(selectedPath)
|
|
43
|
+
? path.resolve(selectedPath)
|
|
44
|
+
: path.resolve(resolvedRoot, selectedPath);
|
|
45
|
+
if (resolvedPath === resolvedRoot || resolvedPath.startsWith(resolvedRoot + path.sep)) {
|
|
46
|
+
return (0, neverthrow_1.ok)(resolvedPath);
|
|
47
|
+
}
|
|
48
|
+
return (0, neverthrow_1.err)(userError("OfficeAddinManifestOutsideSource", "The selected Office Add-in manifest must be inside the selected project folder."));
|
|
49
|
+
}
|
|
50
|
+
async function copySourceFiles(sourceFolder, destinationFolder) {
|
|
51
|
+
const root = path.resolve(sourceFolder);
|
|
52
|
+
const walk = async (dir) => {
|
|
53
|
+
for (const entry of await fs.readdir(dir, { withFileTypes: true })) {
|
|
54
|
+
if (entry.isSymbolicLink()) {
|
|
55
|
+
continue;
|
|
56
|
+
}
|
|
57
|
+
const fullPath = path.join(dir, entry.name);
|
|
58
|
+
const relativePath = path.relative(root, fullPath).replace(/\\/g, "/");
|
|
59
|
+
if (isExcludedSourcePath(relativePath)) {
|
|
60
|
+
continue;
|
|
61
|
+
}
|
|
62
|
+
if (entry.isDirectory()) {
|
|
63
|
+
await walk(fullPath);
|
|
64
|
+
continue;
|
|
65
|
+
}
|
|
66
|
+
const destinationPath = path.join(destinationFolder, relativePath);
|
|
67
|
+
await fs.ensureDir(path.dirname(destinationPath));
|
|
68
|
+
await fs.copyFile(fullPath, destinationPath);
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
await walk(root);
|
|
72
|
+
}
|
|
73
|
+
async function writeTempFile(root, relativePath, data) {
|
|
74
|
+
const destinationPath = path.join(root, relativePath);
|
|
75
|
+
await fs.ensureDir(path.dirname(destinationPath));
|
|
76
|
+
await fs.writeFile(destinationPath, data);
|
|
77
|
+
}
|
|
78
|
+
async function overlayRenderedConfig(ctx, destinationFolder) {
|
|
79
|
+
for (const filePath of RENDERED_CONFIG_FILES) {
|
|
80
|
+
const current = ctx.read(filePath);
|
|
81
|
+
if (current !== undefined) {
|
|
82
|
+
await writeTempFile(destinationFolder, filePath, current);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
async function writeTempTreeToContext(root, ctx) {
|
|
87
|
+
const walk = async (dir) => {
|
|
88
|
+
for (const entry of await fs.readdir(dir, { withFileTypes: true })) {
|
|
89
|
+
const fullPath = path.join(dir, entry.name);
|
|
90
|
+
if (entry.isDirectory()) {
|
|
91
|
+
await walk(fullPath);
|
|
92
|
+
continue;
|
|
93
|
+
}
|
|
94
|
+
const relativePath = path.relative(root, fullPath).replace(/\\/g, "/");
|
|
95
|
+
ctx.write(relativePath, await fs.readFile(fullPath));
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
await walk(root);
|
|
99
|
+
}
|
|
100
|
+
async function ensurePackageJsonForConvert(root) {
|
|
101
|
+
const packageJsonPath = path.join(root, "package.json");
|
|
102
|
+
let packageJson = {};
|
|
103
|
+
try {
|
|
104
|
+
packageJson = await fs.readJson(packageJsonPath);
|
|
105
|
+
}
|
|
106
|
+
catch {
|
|
107
|
+
packageJson = {};
|
|
108
|
+
}
|
|
109
|
+
const writablePackageJson = isRecord(packageJson) ? packageJson : {};
|
|
110
|
+
if (!isRecord(writablePackageJson.scripts)) {
|
|
111
|
+
writablePackageJson.scripts = {};
|
|
112
|
+
}
|
|
113
|
+
await fs.writeJson(packageJsonPath, writablePackageJson, { spaces: 2 });
|
|
114
|
+
}
|
|
115
|
+
async function convertXmlManifestIfNeeded(manifestPath, root) {
|
|
116
|
+
if (!manifestPath.toLowerCase().endsWith(".xml")) {
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
await ensurePackageJsonForConvert(root);
|
|
120
|
+
const previousCwd = process.cwd();
|
|
121
|
+
process.chdir(root);
|
|
122
|
+
try {
|
|
123
|
+
await officeAddinProject.convertProject(manifestPath, "./backup.zip", root, true);
|
|
124
|
+
}
|
|
125
|
+
finally {
|
|
126
|
+
process.chdir(previousCwd);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
async function importExistingOfficeAddinProject(ctx, sourceFolder, manifestPath) {
|
|
130
|
+
const containedManifest = resolveContainedPath(sourceFolder, manifestPath);
|
|
131
|
+
if (containedManifest.isErr()) {
|
|
132
|
+
return (0, neverthrow_1.err)(containedManifest.error);
|
|
133
|
+
}
|
|
134
|
+
const sourceRoot = path.resolve(sourceFolder);
|
|
135
|
+
const manifestRelativePath = path.relative(sourceRoot, containedManifest.value);
|
|
136
|
+
return (0, withTempDirectory_1.withTempDirectory)("m365atk-office-addin-", (phase) => phase === "operate"
|
|
137
|
+
? userError(
|
|
138
|
+
// eslint-disable-next-line no-secrets/no-secrets
|
|
139
|
+
"OfficeAddinSourceProjectInvalid", "The Office Add-in project folder could not be imported.")
|
|
140
|
+
: systemError("OfficeAddinTempDirectoryFailed", `The Office Add-in temporary directory could not complete ${phase}.`), async (tempRoot) => {
|
|
141
|
+
await copySourceFiles(sourceRoot, tempRoot);
|
|
142
|
+
await convertXmlManifestIfNeeded(path.join(tempRoot, manifestRelativePath), tempRoot);
|
|
143
|
+
await overlayRenderedConfig(ctx, tempRoot);
|
|
144
|
+
await writeTempTreeToContext(tempRoot, ctx);
|
|
145
|
+
return (0, neverthrow_1.ok)(undefined);
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
exports.officeAddinImportExistingProject = {
|
|
149
|
+
validateParams(resolved) {
|
|
150
|
+
if (stringParam(resolved, "sourceFolder") === undefined) {
|
|
151
|
+
return "missing string parameter 'sourceFolder'";
|
|
152
|
+
}
|
|
153
|
+
if (stringParam(resolved, "manifestPath") === undefined) {
|
|
154
|
+
return "missing string parameter 'manifestPath'";
|
|
155
|
+
}
|
|
156
|
+
return undefined;
|
|
157
|
+
},
|
|
158
|
+
async apply(resolved, ctx) {
|
|
159
|
+
const sourceFolder = stringParam(resolved, "sourceFolder");
|
|
160
|
+
const manifestPath = stringParam(resolved, "manifestPath");
|
|
161
|
+
if (sourceFolder === undefined || manifestPath === undefined) {
|
|
162
|
+
// eslint-disable-next-line no-secrets/no-secrets
|
|
163
|
+
return (0, neverthrow_1.err)(systemError("OfficeAddinImportParams", "resolved parameters are not all valid"));
|
|
164
|
+
}
|
|
165
|
+
return importExistingOfficeAddinProject(ctx, sourceFolder, manifestPath);
|
|
166
|
+
},
|
|
167
|
+
};
|
|
168
|
+
//# sourceMappingURL=officeAddin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"officeAddin.js","sourceRoot":"","sources":["../../../../src/v4/runtime/steps/officeAddin.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,wDAAyE;AACzE,qDAA+B;AAC/B,iFAA2D;AAC3D,mDAA6B;AAC7B,2CAA6C;AAE7C,4DAAyD;AAEzD,8CAA8C;AAE9C,MAAM,MAAM,GAAG,UAAU,CAAC;AAEb,QAAA,yCAAyC,GAAG,qCAAqC,CAAC;AAE/F,MAAM,qBAAqB,GAAG;IAC5B,YAAY;IACZ,yBAAyB;IACzB,cAAc;IACd,mBAAmB;IACnB,6BAA6B;IAC7B,gBAAgB;CACjB,CAAC;AAEF,SAAS,WAAW,CAAC,IAAY,EAAE,OAAe;IAChD,OAAO,IAAI,yBAAW,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;AAC5D,CAAC;AAED,SAAS,SAAS,CAAC,IAAY,EAAE,OAAe;IAC9C,OAAO,IAAI,uBAAS,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;AAC1D,CAAC;AAED,SAAS,WAAW,CAAC,MAAkB,EAAE,GAAW;IAClD,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;IAC1B,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;AACvD,CAAC;AAED,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,K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CACF,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { RegisteredStep } from "../../pipeline/runScaffoldPipeline";
|
|
2
|
+
export declare const STEP_GENERATE_OPENAPI_PLUGIN_FILES = "openapi/generate-plugin-files";
|
|
3
|
+
export declare const STEP_GENERATE_TEAMS_AI_CUSTOM_API_FILES = "openapi/generate-teams-ai-custom-api-files";
|
|
4
|
+
export declare const openApiGeneratePluginFiles: RegisteredStep;
|
|
5
|
+
export declare const openApiGenerateTeamsAiCustomApiFiles: RegisteredStep;
|
|
6
|
+
//# sourceMappingURL=openApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openApi.d.ts","sourceRoot":"","sources":["../../../../src/v4/runtime/steps/openApi.ts"],"names":[],"mappings":"AAsCA,OAAO,EAAE,cAAc,EAA2B,MAAM,oCAAoC,CAAC;AAQ7F,eAAO,MAAM,kCAAkC,kCAAkC,CAAC;AAClF,eAAO,MAAM,uCAAuC,+CAA+C,CAAC;AAmRpG,eAAO,MAAM,0BAA0B,EAAE,cAkIxC,CAAC;AAEF,eAAO,MAAM,oCAAoC,EAAE,cAyFlD,CAAC"}
|
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT license.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.openApiGenerateTeamsAiCustomApiFiles = exports.openApiGeneratePluginFiles = exports.STEP_GENERATE_TEAMS_AI_CUSTOM_API_FILES = exports.STEP_GENERATE_OPENAPI_PLUGIN_FILES = void 0;
|
|
6
|
+
const tslib_1 = require("tslib");
|
|
7
|
+
const m365_spec_parser_1 = require("@microsoft/m365-spec-parser");
|
|
8
|
+
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
9
|
+
const axios_1 = tslib_1.__importDefault(require("axios"));
|
|
10
|
+
const fs = tslib_1.__importStar(require("fs-extra"));
|
|
11
|
+
const path = tslib_1.__importStar(require("path"));
|
|
12
|
+
const neverthrow_1 = require("neverthrow");
|
|
13
|
+
const constants_1 = require("../../../common/constants");
|
|
14
|
+
const daSpecParser_1 = require("../../../common/daSpecParser");
|
|
15
|
+
const localizeUtils_1 = require("../../../common/localizeUtils");
|
|
16
|
+
const openApiParserOptions_1 = require("../../../common/openApiParserOptions");
|
|
17
|
+
const stringUtils_1 = require("../../../common/stringUtils");
|
|
18
|
+
const utils_1 = require("../../../common/utils");
|
|
19
|
+
const constants_2 = require("../../../question/constants");
|
|
20
|
+
const withTempDirectory_1 = require("../withTempDirectory");
|
|
21
|
+
const openApiCustomApi_1 = require("./openApiCustomApi");
|
|
22
|
+
/** Generate API plugin files through spec-parser, then copy artifacts back via `ctx.write`. */
|
|
23
|
+
const SOURCE = "Scaffold";
|
|
24
|
+
exports.STEP_GENERATE_OPENAPI_PLUGIN_FILES = "openapi/generate-plugin-files";
|
|
25
|
+
exports.STEP_GENERATE_TEAMS_AI_CUSTOM_API_FILES = "openapi/generate-teams-ai-custom-api-files";
|
|
26
|
+
const MANIFEST_PATH = `${teamsfx_api_1.AppPackageFolderName}/${teamsfx_api_1.ManifestTemplateFileName}`;
|
|
27
|
+
const AGENT_PATH = `${teamsfx_api_1.AppPackageFolderName}/declarativeAgent.json`;
|
|
28
|
+
const PLUGIN_PATH = `${teamsfx_api_1.AppPackageFolderName}/${teamsfx_api_1.DefaultPluginManifestFileName}`;
|
|
29
|
+
const API_SPEC_PATH = `${teamsfx_api_1.AppPackageFolderName}/${teamsfx_api_1.DefaultApiSpecFolderName}/${teamsfx_api_1.DefaultApiSpecYamlFileName}`;
|
|
30
|
+
const ORIGINAL_API_SPEC_PATH = `${API_SPEC_PATH}.original`;
|
|
31
|
+
const DEFAULT_ACTION_ID = "action_1";
|
|
32
|
+
/** Mirrors `invalidApiSpecErrorName` in the legacy openApiSpec helper, which v4 must not import. */
|
|
33
|
+
const INVALID_API_SPEC_ERROR_NAME = "invalid-api-spec";
|
|
34
|
+
const M365_AGENTS_YML = "m365agents.yml";
|
|
35
|
+
const M365_AGENTS_LOCAL_YML = "m365agents.local.yml";
|
|
36
|
+
function systemError(name, message) {
|
|
37
|
+
return new teamsfx_api_1.SystemError({ source: SOURCE, name, message });
|
|
38
|
+
}
|
|
39
|
+
function stringParam(params, key) {
|
|
40
|
+
const value = params[key];
|
|
41
|
+
return typeof value === "string" ? value : undefined;
|
|
42
|
+
}
|
|
43
|
+
function stringArrayParam(params, key) {
|
|
44
|
+
const value = params[key];
|
|
45
|
+
if (!Array.isArray(value) || !value.every((item) => typeof item === "string")) {
|
|
46
|
+
return undefined;
|
|
47
|
+
}
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
function readRequired(ctx, filePath) {
|
|
51
|
+
const current = ctx.read(filePath);
|
|
52
|
+
if (current === undefined) {
|
|
53
|
+
return (0, neverthrow_1.err)(systemError("OpenApiGeneratedBaseFileMissing", `Cannot generate OpenAPI plugin files because '${filePath}' was not produced by the render phase.`));
|
|
54
|
+
}
|
|
55
|
+
return (0, neverthrow_1.ok)(current);
|
|
56
|
+
}
|
|
57
|
+
function errorMessage(error) {
|
|
58
|
+
return error instanceof Error ? error.message : String(error);
|
|
59
|
+
}
|
|
60
|
+
function registrationIdEnvName(authName) {
|
|
61
|
+
return m365_spec_parser_1.Utils.getSafeRegistrationIdEnvName(`${authName}_${m365_spec_parser_1.ConstantString.RegistrationIdPostfix}`);
|
|
62
|
+
}
|
|
63
|
+
function authType(operation) {
|
|
64
|
+
if (!operation.auth) {
|
|
65
|
+
return undefined;
|
|
66
|
+
}
|
|
67
|
+
if (m365_spec_parser_1.Utils.isBearerTokenAuth(operation.auth.authScheme) ||
|
|
68
|
+
m365_spec_parser_1.Utils.isAPIKeyAuthButNotInCookie(operation.auth.authScheme)) {
|
|
69
|
+
return "apiKey";
|
|
70
|
+
}
|
|
71
|
+
if (m365_spec_parser_1.Utils.isOAuthWithAuthCodeFlow(operation.auth.authScheme)) {
|
|
72
|
+
return "oauth2";
|
|
73
|
+
}
|
|
74
|
+
return undefined;
|
|
75
|
+
}
|
|
76
|
+
function selectedAuthRegistrations(selectedOperations) {
|
|
77
|
+
const serverUrls = new Set();
|
|
78
|
+
const authNames = new Set();
|
|
79
|
+
const registrations = [];
|
|
80
|
+
for (const operation of selectedOperations) {
|
|
81
|
+
const type = authType(operation);
|
|
82
|
+
const authName = operation.auth?.name;
|
|
83
|
+
if (type === undefined || !authName) {
|
|
84
|
+
continue;
|
|
85
|
+
}
|
|
86
|
+
if (operation.server) {
|
|
87
|
+
serverUrls.add(operation.server);
|
|
88
|
+
}
|
|
89
|
+
if (authNames.has(authName)) {
|
|
90
|
+
continue;
|
|
91
|
+
}
|
|
92
|
+
authNames.add(authName);
|
|
93
|
+
registrations.push({
|
|
94
|
+
authName,
|
|
95
|
+
authType: type,
|
|
96
|
+
registrationIdEnvName: registrationIdEnvName(authName),
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
if (serverUrls.size > 1) {
|
|
100
|
+
return (0, neverthrow_1.err)(new teamsfx_api_1.UserError({
|
|
101
|
+
source: SOURCE,
|
|
102
|
+
name: "OpenApiMultipleAuthServers",
|
|
103
|
+
message: `Selected authenticated operations span multiple servers: ${Array.from(serverUrls).join(", ")}.`,
|
|
104
|
+
}));
|
|
105
|
+
}
|
|
106
|
+
return (0, neverthrow_1.ok)(registrations);
|
|
107
|
+
}
|
|
108
|
+
function conversationStarterText(operation) {
|
|
109
|
+
const text = operation.summary?.trim() || operation.description?.trim();
|
|
110
|
+
return text || undefined;
|
|
111
|
+
}
|
|
112
|
+
function authActionBlock(registration) {
|
|
113
|
+
if (registration.authType === "apiKey") {
|
|
114
|
+
return [
|
|
115
|
+
" # Register API KEY",
|
|
116
|
+
" - uses: apiKey/register",
|
|
117
|
+
" with:",
|
|
118
|
+
" # Name of the API Key",
|
|
119
|
+
` name: ${registration.authName}`,
|
|
120
|
+
" # app ID",
|
|
121
|
+
" appId: ${{TEAMS_APP_ID}}",
|
|
122
|
+
" # Path to OpenAPI description document",
|
|
123
|
+
` apiSpecPath: ./${API_SPEC_PATH}`,
|
|
124
|
+
" # Write the registration information of API Key into environment file for",
|
|
125
|
+
" # the specified environment variable(s).",
|
|
126
|
+
" writeToEnvironmentFile:",
|
|
127
|
+
` registrationId: ${registration.registrationIdEnvName}`,
|
|
128
|
+
].join("\n");
|
|
129
|
+
}
|
|
130
|
+
return [
|
|
131
|
+
" - uses: oauth/register",
|
|
132
|
+
" with:",
|
|
133
|
+
` name: ${registration.authName}`,
|
|
134
|
+
" flow: authorizationCode",
|
|
135
|
+
" # app ID",
|
|
136
|
+
" appId: ${{TEAMS_APP_ID}}",
|
|
137
|
+
" # Path to OpenAPI description document",
|
|
138
|
+
` apiSpecPath: ./${API_SPEC_PATH}`,
|
|
139
|
+
" # Use below property to change token exchange behaviour, BasicAuthorizationHeader: token exchange is done via HTTP headers. PostRequestBody: token exchange is done via request body",
|
|
140
|
+
" # tokenExchangeMethodType: BasicAuthorizationHeader",
|
|
141
|
+
" # Uncomment below property to use proof key for code exchange (PKCE)",
|
|
142
|
+
" # isPKCEEnabled: true",
|
|
143
|
+
" writeToEnvironmentFile:",
|
|
144
|
+
` configurationId: ${registration.registrationIdEnvName}`,
|
|
145
|
+
].join("\n");
|
|
146
|
+
}
|
|
147
|
+
function injectAuthActions(yml, registrations) {
|
|
148
|
+
if (registrations.length === 0) {
|
|
149
|
+
return yml;
|
|
150
|
+
}
|
|
151
|
+
const marker = " # Build app package with latest env value";
|
|
152
|
+
const block = registrations.map(authActionBlock).join("\n\n") + "\n\n";
|
|
153
|
+
const index = yml.indexOf(marker);
|
|
154
|
+
if (index === -1) {
|
|
155
|
+
return yml + (yml.endsWith("\n") ? "" : "\n") + block;
|
|
156
|
+
}
|
|
157
|
+
return yml.slice(0, index) + block + yml.slice(index);
|
|
158
|
+
}
|
|
159
|
+
function updateAuthYml(ctx, filePath, registrations) {
|
|
160
|
+
const current = ctx.read(filePath);
|
|
161
|
+
if (current === undefined) {
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
const updated = injectAuthActions(current.toString("utf8"), registrations);
|
|
165
|
+
ctx.write(filePath, Buffer.from(updated, "utf8"));
|
|
166
|
+
}
|
|
167
|
+
function openApiParseOptions() {
|
|
168
|
+
// Reuse the v3 Copilot parser options (single source of truth) instead of a v4 copy.
|
|
169
|
+
return (0, openApiParserOptions_1.getParserOptions)(m365_spec_parser_1.ProjectType.Copilot, true);
|
|
170
|
+
}
|
|
171
|
+
function teamsAiParseOptions() {
|
|
172
|
+
return (0, openApiParserOptions_1.getParserOptions)(m365_spec_parser_1.ProjectType.TeamsAi);
|
|
173
|
+
}
|
|
174
|
+
function languageParam(params) {
|
|
175
|
+
const language = stringParam(params, "language");
|
|
176
|
+
switch (language) {
|
|
177
|
+
case constants_2.ProgrammingLanguage.TS:
|
|
178
|
+
return constants_2.ProgrammingLanguage.TS;
|
|
179
|
+
case constants_2.ProgrammingLanguage.JS:
|
|
180
|
+
return constants_2.ProgrammingLanguage.JS;
|
|
181
|
+
case constants_2.ProgrammingLanguage.PY:
|
|
182
|
+
return constants_2.ProgrammingLanguage.PY;
|
|
183
|
+
default:
|
|
184
|
+
return undefined;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
function teamsAiLanguageFiles(language) {
|
|
188
|
+
if (language === constants_2.ProgrammingLanguage.TS) {
|
|
189
|
+
return { appPath: "src/app/app.ts", handlerPath: "src/app/handlers.ts" };
|
|
190
|
+
}
|
|
191
|
+
if (language === constants_2.ProgrammingLanguage.JS) {
|
|
192
|
+
return { appPath: "src/app/app.js", handlerPath: "src/app/handlers.js" };
|
|
193
|
+
}
|
|
194
|
+
return { appPath: "src/app.py", handlerPath: "src/handlers.py" };
|
|
195
|
+
}
|
|
196
|
+
async function writeTempFile(root, relativePath, data) {
|
|
197
|
+
const destination = path.join(root, relativePath);
|
|
198
|
+
await fs.ensureDir(path.dirname(destination));
|
|
199
|
+
await fs.writeFile(destination, data);
|
|
200
|
+
}
|
|
201
|
+
async function writeTeamsAiBaseFiles(ctx, root, languageFiles) {
|
|
202
|
+
for (const filePath of [MANIFEST_PATH, languageFiles.appPath, languageFiles.handlerPath]) {
|
|
203
|
+
const current = readRequired(ctx, filePath);
|
|
204
|
+
if (current.isErr()) {
|
|
205
|
+
return (0, neverthrow_1.err)(current.error);
|
|
206
|
+
}
|
|
207
|
+
await writeTempFile(root, filePath, current.value);
|
|
208
|
+
}
|
|
209
|
+
return (0, neverthrow_1.ok)(undefined);
|
|
210
|
+
}
|
|
211
|
+
async function writeTempTreeToContext(root, ctx) {
|
|
212
|
+
const walk = async (dir) => {
|
|
213
|
+
for (const entry of await fs.readdir(dir, { withFileTypes: true })) {
|
|
214
|
+
const fullPath = path.join(dir, entry.name);
|
|
215
|
+
if (entry.isDirectory()) {
|
|
216
|
+
await walk(fullPath);
|
|
217
|
+
continue;
|
|
218
|
+
}
|
|
219
|
+
const relativePath = path.relative(root, fullPath).replace(/\\/g, "/");
|
|
220
|
+
ctx.write(relativePath, await fs.readFile(fullPath));
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
await walk(root);
|
|
224
|
+
}
|
|
225
|
+
async function writeTempBaseFiles(root, manifest, agent) {
|
|
226
|
+
const manifestPath = path.join(root, MANIFEST_PATH);
|
|
227
|
+
const agentPath = path.join(root, AGENT_PATH);
|
|
228
|
+
const pluginPath = path.join(root, PLUGIN_PATH);
|
|
229
|
+
const apiSpecPath = path.join(root, API_SPEC_PATH);
|
|
230
|
+
await fs.ensureDir(path.dirname(manifestPath));
|
|
231
|
+
await fs.ensureDir(path.dirname(apiSpecPath));
|
|
232
|
+
await fs.writeFile(manifestPath, manifest);
|
|
233
|
+
await fs.writeFile(agentPath, agent);
|
|
234
|
+
return { manifestPath, pluginPath, apiSpecPath };
|
|
235
|
+
}
|
|
236
|
+
async function readOriginalOpenApiSpec(apiSpecLocation) {
|
|
237
|
+
if ((0, stringUtils_1.isValidHttpUrl)(apiSpecLocation)) {
|
|
238
|
+
const response = await axios_1.default.get(apiSpecLocation, { responseType: "arraybuffer" });
|
|
239
|
+
return Buffer.from(response.data);
|
|
240
|
+
}
|
|
241
|
+
return await fs.readFile(apiSpecLocation);
|
|
242
|
+
}
|
|
243
|
+
exports.openApiGeneratePluginFiles = {
|
|
244
|
+
validateParams(resolved) {
|
|
245
|
+
if (stringParam(resolved, "apiSpecLocation") === undefined) {
|
|
246
|
+
return "missing string parameter 'apiSpecLocation'";
|
|
247
|
+
}
|
|
248
|
+
if (stringArrayParam(resolved, "apiOperations") === undefined) {
|
|
249
|
+
return "missing string[] parameter 'apiOperations'";
|
|
250
|
+
}
|
|
251
|
+
return undefined;
|
|
252
|
+
},
|
|
253
|
+
async apply(resolved, ctx) {
|
|
254
|
+
const apiSpecLocation = stringParam(resolved, "apiSpecLocation");
|
|
255
|
+
const apiOperations = stringArrayParam(resolved, "apiOperations");
|
|
256
|
+
if (apiSpecLocation === undefined || apiOperations === undefined) {
|
|
257
|
+
return (0, neverthrow_1.err)(systemError("OpenApiGenerateParams", "resolved parameters are not all valid"));
|
|
258
|
+
}
|
|
259
|
+
const manifest = readRequired(ctx, MANIFEST_PATH);
|
|
260
|
+
if (manifest.isErr()) {
|
|
261
|
+
return (0, neverthrow_1.err)(manifest.error);
|
|
262
|
+
}
|
|
263
|
+
const agent = readRequired(ctx, AGENT_PATH);
|
|
264
|
+
if (agent.isErr()) {
|
|
265
|
+
return (0, neverthrow_1.err)(agent.error);
|
|
266
|
+
}
|
|
267
|
+
// Same shared gate the legacy path runs, so an incompatible document fails before generation.
|
|
268
|
+
const validation = await (0, daSpecParser_1.validateOpenAPISpec)(apiSpecLocation);
|
|
269
|
+
if (validation.status === m365_spec_parser_1.ValidationStatus.Error) {
|
|
270
|
+
const message = (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.apiSpec.multipleValidationErrors.message");
|
|
271
|
+
return (0, neverthrow_1.err)(new teamsfx_api_1.UserError(SOURCE, INVALID_API_SPEC_ERROR_NAME, message, message));
|
|
272
|
+
}
|
|
273
|
+
return (0, withTempDirectory_1.withTempDirectory)("m365atk-openapi-", (phase, error) => systemError("OpenApiGenerateFailed", `Failed to generate OpenAPI plugin files during temporary file ${phase}: ${errorMessage(error)}`), async (tempRoot) => {
|
|
274
|
+
const temp = await writeTempBaseFiles(tempRoot, manifest.value, agent.value);
|
|
275
|
+
const parser = new m365_spec_parser_1.SpecParser(apiSpecLocation, openApiParseOptions());
|
|
276
|
+
const listed = await parser.list();
|
|
277
|
+
const selectedOperations = listed.APIs.filter((operation) => apiOperations.includes(operation.api));
|
|
278
|
+
// Share the v3 declarative-agent generator so the Kiota-integration flag selects the same branch.
|
|
279
|
+
let generated;
|
|
280
|
+
try {
|
|
281
|
+
generated = await (0, daSpecParser_1.generatePlugin)(apiSpecLocation, temp.manifestPath, temp.apiSpecPath, temp.pluginPath, apiOperations, m365_spec_parser_1.AdaptiveCardUpdateStrategy.CreateNew);
|
|
282
|
+
}
|
|
283
|
+
catch (error) {
|
|
284
|
+
if (!(error instanceof m365_spec_parser_1.SpecParserError)) {
|
|
285
|
+
throw error;
|
|
286
|
+
}
|
|
287
|
+
return (0, neverthrow_1.err)(new teamsfx_api_1.SystemError(constants_1.SpecParserSource, error.errorType.toString(), error.message, error.message));
|
|
288
|
+
}
|
|
289
|
+
for (const warning of generated.warnings) {
|
|
290
|
+
ctx.warn?.({ type: String(warning.type), content: warning.content });
|
|
291
|
+
}
|
|
292
|
+
const agentManifestPath = path.join(tempRoot, AGENT_PATH);
|
|
293
|
+
let agentManifest;
|
|
294
|
+
try {
|
|
295
|
+
agentManifest = teamsfx_api_1.DeclarativeAgentManifestWrapper.fromJSON(await fs.readFile(agentManifestPath, "utf8"));
|
|
296
|
+
}
|
|
297
|
+
catch (error) {
|
|
298
|
+
return (0, neverthrow_1.err)(systemError("JSONSyntaxError", `The declarative agent manifest is not valid JSON: ${errorMessage(error)}`));
|
|
299
|
+
}
|
|
300
|
+
agentManifest.upsertAction(DEFAULT_ACTION_ID, teamsfx_api_1.DefaultPluginManifestFileName);
|
|
301
|
+
const remainingStarterSlots = Math.max(0, 6 - agentManifest.conversationStarters.length);
|
|
302
|
+
const seenStarterTexts = new Set(agentManifest.conversationStarters.map((starter) => starter.text));
|
|
303
|
+
const starterTexts = selectedOperations
|
|
304
|
+
.map(conversationStarterText)
|
|
305
|
+
.filter((text) => text !== undefined)
|
|
306
|
+
.filter((text) => {
|
|
307
|
+
if (seenStarterTexts.has(text)) {
|
|
308
|
+
return false;
|
|
309
|
+
}
|
|
310
|
+
seenStarterTexts.add(text);
|
|
311
|
+
return true;
|
|
312
|
+
})
|
|
313
|
+
.slice(0, remainingStarterSlots);
|
|
314
|
+
for (const text of starterTexts) {
|
|
315
|
+
agentManifest.addConversationStarter(text);
|
|
316
|
+
}
|
|
317
|
+
await fs.writeFile(agentManifestPath, agentManifest.toJSON(), "utf8");
|
|
318
|
+
const registrations = selectedAuthRegistrations(selectedOperations);
|
|
319
|
+
if (registrations.isErr()) {
|
|
320
|
+
return (0, neverthrow_1.err)(registrations.error);
|
|
321
|
+
}
|
|
322
|
+
await writeTempTreeToContext(tempRoot, ctx);
|
|
323
|
+
if (ctx.read(ORIGINAL_API_SPEC_PATH) === undefined) {
|
|
324
|
+
// The Kiota branch already emits the unfiltered document beside the generated spec.
|
|
325
|
+
ctx.write(ORIGINAL_API_SPEC_PATH, await readOriginalOpenApiSpec(apiSpecLocation));
|
|
326
|
+
}
|
|
327
|
+
updateAuthYml(ctx, M365_AGENTS_YML, registrations.value);
|
|
328
|
+
updateAuthYml(ctx, M365_AGENTS_LOCAL_YML, registrations.value);
|
|
329
|
+
return (0, neverthrow_1.ok)(undefined);
|
|
330
|
+
});
|
|
331
|
+
},
|
|
332
|
+
};
|
|
333
|
+
exports.openApiGenerateTeamsAiCustomApiFiles = {
|
|
334
|
+
validateParams(resolved) {
|
|
335
|
+
if (stringParam(resolved, "apiSpecLocation") === undefined) {
|
|
336
|
+
return "missing string parameter 'apiSpecLocation'";
|
|
337
|
+
}
|
|
338
|
+
if (stringArrayParam(resolved, "apiOperations") === undefined) {
|
|
339
|
+
return "missing string[] parameter 'apiOperations'";
|
|
340
|
+
}
|
|
341
|
+
if (languageParam(resolved) === undefined) {
|
|
342
|
+
return "missing supported language parameter 'language'";
|
|
343
|
+
}
|
|
344
|
+
return undefined;
|
|
345
|
+
},
|
|
346
|
+
async apply(resolved, ctx) {
|
|
347
|
+
const apiSpecLocation = stringParam(resolved, "apiSpecLocation");
|
|
348
|
+
const apiOperations = stringArrayParam(resolved, "apiOperations");
|
|
349
|
+
const language = languageParam(resolved);
|
|
350
|
+
if (apiSpecLocation === undefined || apiOperations === undefined || language === undefined) {
|
|
351
|
+
return (0, neverthrow_1.err)(systemError("OpenApiTeamsAiParams", "resolved parameters are not all valid"));
|
|
352
|
+
}
|
|
353
|
+
return (0, withTempDirectory_1.withTempDirectory)("m365atk-openapi-teams-ai-", (phase, error) => systemError("OpenApiTeamsAiGenerateFailed", `Failed to generate Teams AI custom API files during temporary file ${phase}: ${errorMessage(error)}`), async (tempRoot) => {
|
|
354
|
+
const languageFiles = teamsAiLanguageFiles(language);
|
|
355
|
+
const baseFiles = await writeTeamsAiBaseFiles(ctx, tempRoot, languageFiles);
|
|
356
|
+
if (baseFiles.isErr()) {
|
|
357
|
+
return (0, neverthrow_1.err)(baseFiles.error);
|
|
358
|
+
}
|
|
359
|
+
const openapiSpecFileName = (await (0, utils_1.isJsonSpecFile)(apiSpecLocation))
|
|
360
|
+
? teamsfx_api_1.DefaultApiSpecJsonFileName
|
|
361
|
+
: teamsfx_api_1.DefaultApiSpecYamlFileName;
|
|
362
|
+
const apiSpecPath = `${teamsfx_api_1.AppPackageFolderName}/${teamsfx_api_1.DefaultApiSpecFolderName}/${openapiSpecFileName}`;
|
|
363
|
+
const tempApiSpecPath = path.join(tempRoot, apiSpecPath);
|
|
364
|
+
await fs.ensureDir(path.dirname(tempApiSpecPath));
|
|
365
|
+
const parser = new m365_spec_parser_1.SpecParser(apiSpecLocation, teamsAiParseOptions());
|
|
366
|
+
const validation = await parser.validate();
|
|
367
|
+
if (validation.status === m365_spec_parser_1.ValidationStatus.Error) {
|
|
368
|
+
return (0, neverthrow_1.err)(new teamsfx_api_1.UserError({
|
|
369
|
+
source: SOURCE,
|
|
370
|
+
name: "OpenApiSpecInvalid",
|
|
371
|
+
message: "The OpenAPI description document is invalid or contains no supported operations.",
|
|
372
|
+
}));
|
|
373
|
+
}
|
|
374
|
+
await parser.generate(path.join(tempRoot, MANIFEST_PATH), apiOperations, tempApiSpecPath, undefined);
|
|
375
|
+
const specs = await parser.getFilteredSpecs(apiOperations);
|
|
376
|
+
const filteredSpec = specs[1];
|
|
377
|
+
if (filteredSpec === undefined) {
|
|
378
|
+
return (0, neverthrow_1.err)(systemError("OpenApiTeamsAiFilteredSpecMissing", "Failed to generate the filtered OpenAPI document for the selected operations."));
|
|
379
|
+
}
|
|
380
|
+
const warnings = await (0, openApiCustomApi_1.generateTeamsAiCustomApiFiles)(filteredSpec, language, tempRoot, openapiSpecFileName);
|
|
381
|
+
for (const warning of warnings) {
|
|
382
|
+
ctx.warn?.({ type: String(warning.type), content: warning.content });
|
|
383
|
+
}
|
|
384
|
+
await writeTempTreeToContext(tempRoot, ctx);
|
|
385
|
+
return (0, neverthrow_1.ok)(undefined);
|
|
386
|
+
});
|
|
387
|
+
},
|
|
388
|
+
};
|
|
389
|
+
//# sourceMappingURL=openApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openApi.js","sourceRoot":"","sources":["../../../../src/v4/runtime/steps/openApi.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,kEAWqC;AACrC,wDAWgC;AAChC,0DAA0B;AAC1B,qDAA+B;AAC/B,mDAA6B;AAC7B,2CAA6C;AAC7C,yDAA6D;AAC7D,+DAAmF;AACnF,iEAAmE;AACnE,+EAAwE;AACxE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ate the post-render Teams AI files declared by the custom API scenario. */
|
|
4
|
+
export declare function generateTeamsAiCustomApiFiles(spec: OpenAPIV3.Document, language: string, destinationPath: string, openapiSpecFileName: string): Promise<WarningResult[]>;
|
|
5
|
+
//# sourceMappingURL=openApiCustomApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openApiCustomApi.d.ts","sourceRoot":"","sources":["../../../../src/v4/runtime/steps/openApiCustomApi.ts"],"names":[],"mappings":"AAGA,OAAO,EAIL,aAAa,EAEd,MAAM,6BAA6B,CAAC;AAOrC,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAsc1C,mFAAmF;AACnF,wBAAsB,6BAA6B,CACjD,IAAI,EAAE,SAAS,CAAC,QAAQ,EACxB,QAAQ,EAAE,MAAM,EAChB,eAAe,EAAE,MAAM,EACvB,mBAAmB,EAAE,MAAM,GAC1B,OAAO,CAAC,aAAa,EAAE,CAAC,CAc1B"}
|