@microsoft/teamsfx-core 3.1.3 → 3.1.4-alpha.1df35c7d32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/client/devPortalClient.d.ts +43 -0
- package/build/client/devPortalClient.d.ts.map +1 -0
- package/build/client/devPortalClient.js +626 -0
- package/build/client/devPortalClient.js.map +1 -0
- package/build/client/graphClient.d.ts +1 -0
- package/build/client/graphClient.d.ts.map +1 -1
- package/build/client/graphClient.js +17 -2
- package/build/client/graphClient.js.map +1 -1
- package/build/client/teamsDevPortalClient.d.ts +14 -21
- package/build/client/teamsDevPortalClient.d.ts.map +1 -1
- package/build/client/teamsDevPortalClient.js +65 -112
- package/build/client/teamsDevPortalClient.js.map +1 -1
- package/build/client/teamsDevPortalClientProvider.d.ts +6 -0
- package/build/client/teamsDevPortalClientProvider.d.ts.map +1 -0
- package/build/client/teamsDevPortalClientProvider.js +76 -0
- package/build/client/teamsDevPortalClientProvider.js.map +1 -0
- package/build/common/featureFlags.d.ts +7 -2
- package/build/common/featureFlags.d.ts.map +1 -1
- package/build/common/featureFlags.js +8 -3
- package/build/common/featureFlags.js.map +1 -1
- package/build/common/localizeUtils.d.ts +1 -0
- package/build/common/localizeUtils.d.ts.map +1 -1
- package/build/common/localizeUtils.js +10 -0
- package/build/common/localizeUtils.js.map +1 -1
- package/build/common/templates-config.json +4 -4
- package/build/common/tools.js +2 -2
- package/build/common/tools.js.map +1 -1
- package/build/common/utils.d.ts.map +1 -1
- package/build/common/utils.js +1 -0
- package/build/common/utils.js.map +1 -1
- package/build/common/wrappedAxiosClient.d.ts.map +1 -1
- package/build/common/wrappedAxiosClient.js +87 -27
- package/build/common/wrappedAxiosClient.js.map +1 -1
- package/build/component/configManager/actionInjector.d.ts +13 -3
- package/build/component/configManager/actionInjector.d.ts.map +1 -1
- package/build/component/configManager/actionInjector.js +88 -5
- package/build/component/configManager/actionInjector.js.map +1 -1
- package/build/component/driver/interface/commonArgs.d.ts +1 -0
- package/build/component/driver/interface/commonArgs.d.ts.map +1 -1
- package/build/component/driver/teamsApp/appStudio.d.ts.map +1 -1
- package/build/component/driver/teamsApp/appStudio.js +10 -6
- 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 +12 -8
- package/build/component/driver/teamsApp/configure.js.map +1 -1
- package/build/component/driver/teamsApp/constants.d.ts +1 -0
- package/build/component/driver/teamsApp/constants.d.ts.map +1 -1
- package/build/component/driver/teamsApp/constants.js +1 -0
- 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 +28 -26
- package/build/component/driver/teamsApp/create.js.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.js +1 -1
- package/build/component/driver/teamsApp/createAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/interfaces/appdefinitions/appUser.d.ts +1 -0
- package/build/component/driver/teamsApp/interfaces/appdefinitions/appUser.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/telemetry.d.ts +0 -1
- package/build/component/driver/teamsApp/utils/telemetry.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/telemetry.js +0 -1
- package/build/component/driver/teamsApp/utils/telemetry.js.map +1 -1
- package/build/component/driver/teamsApp/utils/utils.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/utils.js +1 -18
- package/build/component/driver/teamsApp/utils/utils.js.map +1 -1
- package/build/component/driver/teamsApp/validateAppPackage.js +3 -3
- package/build/component/driver/teamsApp/validateAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/validateTestCases.js +4 -4
- package/build/component/driver/teamsApp/validateTestCases.js.map +1 -1
- package/build/component/driver/util/utils.d.ts.map +1 -1
- package/build/component/driver/util/utils.js +1 -0
- package/build/component/driver/util/utils.js.map +1 -1
- package/build/component/feature/collaboration.js +4 -4
- package/build/component/feature/collaboration.js.map +1 -1
- package/build/component/generator/openApiSpec/helper.d.ts +2 -2
- package/build/component/generator/openApiSpec/helper.d.ts.map +1 -1
- package/build/component/generator/openApiSpec/helper.js +65 -5
- package/build/component/generator/openApiSpec/helper.js.map +1 -1
- package/build/component/generator/openPlugin/authResolver.d.ts +2 -2
- package/build/component/generator/openPlugin/authResolver.d.ts.map +1 -1
- package/build/component/generator/openPlugin/authResolver.js +17 -7
- package/build/component/generator/openPlugin/authResolver.js.map +1 -1
- package/build/component/generator/openPlugin/errors.d.ts +4 -0
- package/build/component/generator/openPlugin/errors.d.ts.map +1 -0
- package/build/component/generator/openPlugin/errors.js +13 -0
- package/build/component/generator/openPlugin/errors.js.map +1 -0
- package/build/component/generator/openPlugin/exporter.d.ts +9 -6
- package/build/component/generator/openPlugin/exporter.d.ts.map +1 -1
- package/build/component/generator/openPlugin/exporter.js +502 -53
- package/build/component/generator/openPlugin/exporter.js.map +1 -1
- package/build/component/generator/openPlugin/fileSystem.d.ts +28 -0
- package/build/component/generator/openPlugin/fileSystem.d.ts.map +1 -0
- package/build/component/generator/openPlugin/fileSystem.js +181 -0
- package/build/component/generator/openPlugin/fileSystem.js.map +1 -0
- package/build/component/generator/openPlugin/iconStrategy.d.ts.map +1 -1
- package/build/component/generator/openPlugin/iconStrategy.js +30 -14
- package/build/component/generator/openPlugin/iconStrategy.js.map +1 -1
- package/build/component/generator/openPlugin/importer.d.ts.map +1 -1
- package/build/component/generator/openPlugin/importer.js +75 -12
- package/build/component/generator/openPlugin/importer.js.map +1 -1
- package/build/component/generator/openPlugin/mapper.d.ts +3 -2
- package/build/component/generator/openPlugin/mapper.d.ts.map +1 -1
- package/build/component/generator/openPlugin/mapper.js +188 -29
- package/build/component/generator/openPlugin/mapper.js.map +1 -1
- package/build/component/generator/openPlugin/parser.d.ts.map +1 -1
- package/build/component/generator/openPlugin/parser.js +264 -70
- package/build/component/generator/openPlugin/parser.js.map +1 -1
- package/build/component/generator/openPlugin/skillValidation.d.ts +2 -0
- package/build/component/generator/openPlugin/skillValidation.d.ts.map +1 -0
- package/build/component/generator/openPlugin/skillValidation.js +63 -0
- package/build/component/generator/openPlugin/skillValidation.js.map +1 -0
- package/build/component/generator/openPlugin/spec.d.ts +67 -0
- package/build/component/generator/openPlugin/spec.d.ts.map +1 -0
- package/build/component/generator/openPlugin/spec.js +157 -0
- package/build/component/generator/openPlugin/spec.js.map +1 -0
- package/build/component/generator/openPlugin/textUtils.d.ts +1 -1
- package/build/component/generator/openPlugin/textUtils.d.ts.map +1 -1
- package/build/component/generator/openPlugin/textUtils.js +8 -7
- package/build/component/generator/openPlugin/textUtils.js.map +1 -1
- package/build/component/generator/openPlugin/types.d.ts +76 -14
- package/build/component/generator/openPlugin/types.d.ts.map +1 -1
- package/build/component/generator/openPlugin/validation.d.ts +17 -0
- package/build/component/generator/openPlugin/validation.d.ts.map +1 -0
- package/build/component/generator/openPlugin/validation.js +563 -0
- package/build/component/generator/openPlugin/validation.js.map +1 -0
- package/build/component/generator/v4TemplateBridge.d.ts +1 -1
- package/build/component/generator/v4TemplateBridge.d.ts.map +1 -1
- package/build/component/generator/v4TemplateBridge.js +1 -4
- package/build/component/generator/v4TemplateBridge.js.map +1 -1
- package/build/component/middleware/questionMW.d.ts.map +1 -1
- package/build/component/middleware/questionMW.js +2 -0
- package/build/component/middleware/questionMW.js.map +1 -1
- package/build/component/resource/botService/botRegistration/botFrameworkRegistration.js +4 -4
- package/build/component/resource/botService/botRegistration/botFrameworkRegistration.js.map +1 -1
- package/build/component/utils/common.d.ts +1 -9
- package/build/component/utils/common.d.ts.map +1 -1
- package/build/component/utils/common.js +7 -37
- package/build/component/utils/common.js.map +1 -1
- package/build/component/utils/envFunctionUtils.d.ts +3 -8
- package/build/component/utils/envFunctionUtils.d.ts.map +1 -1
- package/build/component/utils/envFunctionUtils.js +46 -131
- package/build/component/utils/envFunctionUtils.js.map +1 -1
- package/build/component/utils/envUtil.d.ts.map +1 -1
- package/build/component/utils/envUtil.js +7 -6
- package/build/component/utils/envUtil.js.map +1 -1
- package/build/component/utils/mcpAuthScaffolder.d.ts +6 -0
- package/build/component/utils/mcpAuthScaffolder.d.ts.map +1 -1
- package/build/component/utils/mcpAuthScaffolder.js +17 -7
- package/build/component/utils/mcpAuthScaffolder.js.map +1 -1
- package/build/core/FxCore.d.ts +3 -2
- package/build/core/FxCore.d.ts.map +1 -1
- package/build/core/FxCore.declarativeAgent.d.ts +8 -2
- package/build/core/FxCore.declarativeAgent.d.ts.map +1 -1
- package/build/core/FxCore.declarativeAgent.js +109 -6
- package/build/core/FxCore.declarativeAgent.js.map +1 -1
- package/build/core/FxCore.js +49 -9
- package/build/core/FxCore.js.map +1 -1
- package/build/core/FxCore.openPlugin.d.ts +7 -6
- package/build/core/FxCore.openPlugin.d.ts.map +1 -1
- package/build/core/FxCore.openPlugin.js +7 -6
- package/build/core/FxCore.openPlugin.js.map +1 -1
- package/build/error/common.d.ts +9 -0
- package/build/error/common.d.ts.map +1 -1
- package/build/error/common.js +40 -1
- package/build/error/common.js.map +1 -1
- package/build/index.d.ts +2 -2
- package/build/index.d.ts.map +1 -1
- package/build/index.js +6 -5
- package/build/index.js.map +1 -1
- package/build/question/generator.d.ts.map +1 -1
- package/build/question/generator.js +9 -9
- package/build/question/generator.js.map +1 -1
- package/build/question/inputs/AddAuthActionInputs.d.ts +6 -0
- package/build/question/inputs/AddAuthActionInputs.d.ts.map +1 -1
- package/build/question/inputs/AddPluginInputs.d.ts +15 -1
- package/build/question/inputs/AddPluginInputs.d.ts.map +1 -1
- package/build/question/options/AddAuthActionOptions.d.ts.map +1 -1
- package/build/question/options/AddAuthActionOptions.js +19 -0
- package/build/question/options/AddAuthActionOptions.js.map +1 -1
- package/build/question/options/AddPluginOptions.d.ts.map +1 -1
- package/build/question/options/AddPluginOptions.js +45 -1
- package/build/question/options/AddPluginOptions.js.map +1 -1
- package/build/question/options/ExportOpenPluginOptions.js +2 -2
- package/build/question/options/ExportOpenPluginOptions.js.map +1 -1
- package/build/question/options/ImportOpenPluginOptions.js +4 -4
- package/build/question/options/ImportOpenPluginOptions.js.map +1 -1
- package/build/question/other.d.ts +2 -0
- package/build/question/other.d.ts.map +1 -1
- package/build/question/other.js +174 -8
- package/build/question/other.js.map +1 -1
- package/build/question/questionNames.d.ts +6 -0
- package/build/question/questionNames.d.ts.map +1 -1
- package/build/question/questionNames.js +6 -0
- package/build/question/questionNames.js.map +1 -1
- package/build/question/scaffold/vsc/CapabilityOptions.d.ts.map +1 -1
- package/build/question/scaffold/vsc/CapabilityOptions.js +5 -2
- package/build/question/scaffold/vsc/CapabilityOptions.js.map +1 -1
- package/build/question/scaffold/vsc/rootNode.js +1 -1
- package/build/question/scaffold/vsc/rootNode.js.map +1 -1
- package/build/question/scaffold/vsc/teamsProjectTypeNode.d.ts +2 -0
- package/build/question/scaffold/vsc/teamsProjectTypeNode.d.ts.map +1 -1
- package/build/question/scaffold/vsc/teamsProjectTypeNode.js +31 -1
- package/build/question/scaffold/vsc/teamsProjectTypeNode.js.map +1 -1
- package/build/question/share.js +2 -2
- package/build/question/share.js.map +1 -1
- package/build/ui/visitor.d.ts.map +1 -1
- package/build/ui/visitor.js +1 -0
- package/build/ui/visitor.js.map +1 -1
- package/build/v4/collectInputs/collectInputs.d.ts.map +1 -1
- package/build/v4/collectInputs/collectInputs.js +91 -215
- package/build/v4/collectInputs/collectInputs.js.map +1 -1
- package/build/v4/distribution/declarativePackage.d.ts +2 -2
- package/build/v4/distribution/declarativePackage.d.ts.map +1 -1
- package/build/v4/distribution/declarativePackage.js +2 -1
- package/build/v4/distribution/declarativePackage.js.map +1 -1
- package/build/v4/distribution/descriptorLanguages.d.ts +9 -0
- package/build/v4/distribution/descriptorLanguages.d.ts.map +1 -0
- package/build/v4/distribution/descriptorLanguages.js +44 -0
- package/build/v4/distribution/descriptorLanguages.js.map +1 -0
- package/build/v4/distribution/packageDir.d.ts +6 -1
- package/build/v4/distribution/packageDir.d.ts.map +1 -1
- package/build/v4/distribution/packageDir.js +6 -1
- package/build/v4/distribution/packageDir.js.map +1 -1
- package/build/v4/engineVersion.d.ts +1 -1
- package/build/v4/engineVersion.js +1 -1
- package/build/v4/mcp/mcpAuthAction.d.ts +2 -1
- package/build/v4/mcp/mcpAuthAction.d.ts.map +1 -1
- package/build/v4/mcp/mcpAuthAction.js +32 -5
- package/build/v4/mcp/mcpAuthAction.js.map +1 -1
- package/build/v4/mcp/mcpAuthScaffold.d.ts +3 -0
- package/build/v4/mcp/mcpAuthScaffold.d.ts.map +1 -1
- package/build/v4/mcp/mcpAuthScaffold.js +63 -40
- package/build/v4/mcp/mcpAuthScaffold.js.map +1 -1
- package/build/v4/pipeline/defineStep.d.ts +10 -0
- package/build/v4/pipeline/defineStep.d.ts.map +1 -0
- package/build/v4/pipeline/defineStep.js +28 -0
- package/build/v4/pipeline/defineStep.js.map +1 -0
- package/build/v4/pipeline/runScaffoldPipeline.d.ts +2 -0
- package/build/v4/pipeline/runScaffoldPipeline.d.ts.map +1 -1
- package/build/v4/pipeline/runScaffoldPipeline.js +5 -4
- package/build/v4/pipeline/runScaffoldPipeline.js.map +1 -1
- package/build/v4/pipeline/stepParams.d.ts +4 -0
- package/build/v4/pipeline/stepParams.d.ts.map +1 -0
- package/build/v4/pipeline/stepParams.js +17 -0
- package/build/v4/pipeline/stepParams.js.map +1 -0
- package/build/v4/providers/createLanguageOptionsProvider.d.ts +13 -0
- package/build/v4/providers/createLanguageOptionsProvider.d.ts.map +1 -0
- package/build/v4/providers/createLanguageOptionsProvider.js +60 -0
- package/build/v4/providers/createLanguageOptionsProvider.js.map +1 -0
- package/build/v4/providers/createOptionsProviders.d.ts +2 -1
- package/build/v4/providers/createOptionsProviders.d.ts.map +1 -1
- package/build/v4/providers/createOptionsProviders.js +5 -1
- package/build/v4/providers/createOptionsProviders.js.map +1 -1
- package/build/v4/runtime/compatibility/index.d.ts +4 -0
- package/build/v4/runtime/compatibility/index.d.ts.map +1 -0
- package/build/v4/runtime/compatibility/index.js +11 -0
- package/build/v4/runtime/compatibility/index.js.map +1 -0
- package/build/v4/runtime/compatibility/legacyOpenApiSearch.d.ts +4 -0
- package/build/v4/runtime/compatibility/legacyOpenApiSearch.d.ts.map +1 -0
- package/build/v4/runtime/compatibility/legacyOpenApiSearch.js +26 -0
- package/build/v4/runtime/compatibility/legacyOpenApiSearch.js.map +1 -0
- package/build/v4/runtime/functions/assets/officeAddin.json +48 -0
- package/build/v4/runtime/functions/generic.d.ts +10 -0
- package/build/v4/runtime/functions/generic.d.ts.map +1 -0
- package/build/v4/runtime/functions/generic.js +25 -0
- package/build/v4/runtime/functions/generic.js.map +1 -0
- package/build/v4/runtime/functions/mcp.d.ts +8 -0
- package/build/v4/runtime/functions/mcp.d.ts.map +1 -0
- package/build/v4/runtime/functions/mcp.js +28 -0
- package/build/v4/runtime/functions/mcp.js.map +1 -0
- package/build/v4/runtime/functions/officeAddin.d.ts +27 -0
- package/build/v4/runtime/functions/officeAddin.d.ts.map +1 -0
- package/build/v4/runtime/functions/officeAddin.js +120 -0
- package/build/v4/runtime/functions/officeAddin.js.map +1 -0
- package/build/v4/runtime/packageParse.d.ts +13 -8
- package/build/v4/runtime/packageParse.d.ts.map +1 -1
- package/build/v4/runtime/packageParse.js +13 -219
- package/build/v4/runtime/packageParse.js.map +1 -1
- package/build/v4/runtime/renderFragment.d.ts +2 -0
- package/build/v4/runtime/renderFragment.d.ts.map +1 -0
- package/build/v4/runtime/renderFragment.js +11 -0
- package/build/v4/runtime/renderFragment.js.map +1 -0
- package/build/v4/runtime/scaffold.d.ts +2 -0
- package/build/v4/runtime/scaffold.d.ts.map +1 -1
- package/build/v4/runtime/scaffold.js +15 -12
- package/build/v4/runtime/scaffold.js.map +1 -1
- package/build/v4/runtime/scaffoldFromPackageDir.d.ts.map +1 -1
- package/build/v4/runtime/scaffoldFromPackageDir.js +1 -4
- package/build/v4/runtime/scaffoldFromPackageDir.js.map +1 -1
- package/build/v4/runtime/selectLanguageContent.d.ts +1 -0
- package/build/v4/runtime/selectLanguageContent.d.ts.map +1 -1
- package/build/v4/runtime/selectLanguageContent.js +5 -1
- package/build/v4/runtime/selectLanguageContent.js.map +1 -1
- package/build/v4/runtime/steps/assets/metaOs.json +197 -0
- package/build/v4/runtime/steps/assets/openApiAuth.json +33 -0
- package/build/v4/runtime/steps/assets/openApiCustomApi.json +141 -0
- package/build/v4/runtime/steps/daAction.d.ts.map +1 -1
- package/build/v4/runtime/steps/daAction.js +14 -18
- package/build/v4/runtime/steps/daAction.js.map +1 -1
- package/build/v4/runtime/steps/daSensitivity.d.ts.map +1 -1
- package/build/v4/runtime/steps/daSensitivity.js +10 -11
- package/build/v4/runtime/steps/daSensitivity.js.map +1 -1
- package/build/v4/runtime/steps/mcpAuth.d.ts.map +1 -1
- package/build/v4/runtime/steps/mcpAuth.js +40 -48
- package/build/v4/runtime/steps/mcpAuth.js.map +1 -1
- package/build/v4/runtime/steps/mcpLocal.d.ts.map +1 -1
- package/build/v4/runtime/steps/mcpLocal.js +17 -30
- package/build/v4/runtime/steps/mcpLocal.js.map +1 -1
- package/build/v4/runtime/steps/mcpStatic.d.ts.map +1 -1
- package/build/v4/runtime/steps/mcpStatic.js +31 -38
- package/build/v4/runtime/steps/mcpStatic.js.map +1 -1
- package/build/v4/runtime/steps/metaOs.d.ts.map +1 -1
- package/build/v4/runtime/steps/metaOs.js +43 -167
- package/build/v4/runtime/steps/metaOs.js.map +1 -1
- package/build/v4/runtime/steps/officeAddin.d.ts.map +1 -1
- package/build/v4/runtime/steps/officeAddin.js +14 -19
- package/build/v4/runtime/steps/officeAddin.js.map +1 -1
- package/build/v4/runtime/steps/openApi.d.ts.map +1 -1
- package/build/v4/runtime/steps/openApi.js +41 -101
- package/build/v4/runtime/steps/openApi.js.map +1 -1
- package/build/v4/runtime/steps/openApiAuth.d.ts +9 -0
- package/build/v4/runtime/steps/openApiAuth.d.ts.map +1 -0
- package/build/v4/runtime/steps/openApiAuth.js +51 -0
- package/build/v4/runtime/steps/openApiAuth.js.map +1 -0
- package/build/v4/runtime/steps/openApiCustomApi.d.ts.map +1 -1
- package/build/v4/runtime/steps/openApiCustomApi.js +9 -119
- package/build/v4/runtime/steps/openApiCustomApi.js.map +1 -1
- package/build/v4/runtime/whitelist.d.ts +4 -38
- package/build/v4/runtime/whitelist.d.ts.map +1 -1
- package/build/v4/runtime/whitelist.js +30 -190
- package/build/v4/runtime/whitelist.js.map +1 -1
- package/build/v4/surface/createFloorTail.d.ts +2 -2
- package/build/v4/surface/createFloorTail.d.ts.map +1 -1
- package/build/v4/surface/createFloorTail.js +5 -22
- package/build/v4/surface/createFloorTail.js.map +1 -1
- package/build/v4/surface/createInputs.d.ts +2 -2
- package/build/v4/surface/createInputs.d.ts.map +1 -1
- package/build/v4/surface/createInputs.js +11 -44
- package/build/v4/surface/createInputs.js.map +1 -1
- package/build/v4/surface/createSelectorWalk.d.ts.map +1 -1
- package/build/v4/surface/createSelectorWalk.js +17 -3
- package/build/v4/surface/createSelectorWalk.js.map +1 -1
- package/build/v4/surface/localizePrompt.d.ts +2 -0
- package/build/v4/surface/localizePrompt.d.ts.map +1 -1
- package/build/v4/surface/localizePrompt.js +0 -1
- package/build/v4/surface/localizePrompt.js.map +1 -1
- package/build/v4/validation/capabilityCatalog.d.ts +1 -1
- package/build/v4/validation/capabilityCatalog.d.ts.map +1 -1
- package/build/v4/validation/capabilityCatalog.js +11 -1
- package/build/v4/validation/capabilityCatalog.js.map +1 -1
- package/build/v4/validation/packageParse.d.ts +27 -0
- package/build/v4/validation/packageParse.d.ts.map +1 -0
- package/build/v4/validation/packageParse.js +247 -0
- package/build/v4/validation/packageParse.js.map +1 -0
- package/build/v4/validation/templateArchiveValidation.d.ts +2 -2
- package/build/v4/validation/templateArchiveValidation.d.ts.map +1 -1
- package/build/v4/validation/templateArchiveValidation.js +7 -2
- package/build/v4/validation/templateArchiveValidation.js.map +1 -1
- package/build/v4/validation/validateTemplatePackage.d.ts +1 -1
- package/build/v4/validation/validateTemplatePackage.d.ts.map +1 -1
- package/build/v4/validation/validateTemplatePackage.js +23 -3
- package/build/v4/validation/validateTemplatePackage.js.map +1 -1
- package/package.json +37 -37
- package/resource/package.nls.json +35 -1
- package/templates/configs/local/typescript/.gitignore +1 -0
- package/templates/configs/playground/typescript/.gitignore +4 -0
- package/templates/fallback/common.zip +0 -0
- package/templates/fallback/csharp.zip +0 -0
- package/templates/fallback/js.zip +0 -0
- package/templates/fallback/python.zip +0 -0
- package/templates/fallback/ts.zip +0 -0
- package/templates/metadata.zip +0 -0
- package/templates/ui/tdpNode.json +1 -1
- package/templates/ui/wizardNode.json +1 -1
- package/templates/v4/create-selector.json +2 -2
- package/templates/v4/floor.json +1 -1
- package/templates/v4/templates-metadata.zip +0 -0
- package/templates/v4/templates.zip +0 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"apiKey": [
|
|
3
|
+
"# Register API KEY",
|
|
4
|
+
"uses: apiKey/register",
|
|
5
|
+
"with:",
|
|
6
|
+
" # Name of the API Key",
|
|
7
|
+
" name: ''",
|
|
8
|
+
" # app ID",
|
|
9
|
+
" appId: ${{TEAMS_APP_ID}}",
|
|
10
|
+
" # Path to OpenAPI description document",
|
|
11
|
+
" apiSpecPath: ''",
|
|
12
|
+
"# Write the registration information of API Key into environment file for",
|
|
13
|
+
"# the specified environment variable(s).",
|
|
14
|
+
"writeToEnvironmentFile:",
|
|
15
|
+
" registrationId: ''"
|
|
16
|
+
],
|
|
17
|
+
"oauth2": [
|
|
18
|
+
"uses: oauth/register",
|
|
19
|
+
"with:",
|
|
20
|
+
" name: ''",
|
|
21
|
+
" flow: authorizationCode",
|
|
22
|
+
" # app ID",
|
|
23
|
+
" appId: ${{TEAMS_APP_ID}}",
|
|
24
|
+
" # Path to OpenAPI description document",
|
|
25
|
+
" apiSpecPath: ''",
|
|
26
|
+
" # Use below property to change token exchange behaviour, BasicAuthorizationHeader: token exchange is done via HTTP headers. PostRequestBody: token exchange is done via request body",
|
|
27
|
+
" # tokenExchangeMethodType: BasicAuthorizationHeader",
|
|
28
|
+
" # Uncomment below property to use proof key for code exchange (PKCE)",
|
|
29
|
+
" # isPKCEEnabled: true",
|
|
30
|
+
"writeToEnvironmentFile:",
|
|
31
|
+
" configurationId: ''"
|
|
32
|
+
]
|
|
33
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
{
|
|
2
|
+
"functionDefinitionCode": {
|
|
3
|
+
"javascript": [
|
|
4
|
+
".function(",
|
|
5
|
+
" functionDefs.{{operationId}}.name,",
|
|
6
|
+
" functionDefs.{{operationId}}.description,",
|
|
7
|
+
" functionDefs.{{operationId}}.parameters,",
|
|
8
|
+
" async (parameter) => {",
|
|
9
|
+
" const result = await functionHandlers.{{operationId}}Handler(parameter);",
|
|
10
|
+
" if(result) {",
|
|
11
|
+
" await send(result);",
|
|
12
|
+
" return \"result showed\";",
|
|
13
|
+
" } else {",
|
|
14
|
+
" return \"no result\";",
|
|
15
|
+
" }",
|
|
16
|
+
" }",
|
|
17
|
+
" )"
|
|
18
|
+
],
|
|
19
|
+
"typescript": [
|
|
20
|
+
".function(",
|
|
21
|
+
" functionDefs.{{operationId}}.name,",
|
|
22
|
+
" functionDefs.{{operationId}}.description,",
|
|
23
|
+
" functionDefs.{{operationId}}.parameters,",
|
|
24
|
+
" async (parameter) => {",
|
|
25
|
+
" const result = await functionHandlers.{{operationId}}Handler(parameter);",
|
|
26
|
+
" if(result) {",
|
|
27
|
+
" await send(result);",
|
|
28
|
+
" return \"result showed\";",
|
|
29
|
+
" } else {",
|
|
30
|
+
" return \"no result\";",
|
|
31
|
+
" }",
|
|
32
|
+
" }",
|
|
33
|
+
" )"
|
|
34
|
+
],
|
|
35
|
+
"python": [
|
|
36
|
+
".with_function(",
|
|
37
|
+
" Function(",
|
|
38
|
+
" name=function_defs[\"{{operationId}}\"][\"name\"],",
|
|
39
|
+
" description=function_defs[\"{{operationId}}\"][\"description\"],",
|
|
40
|
+
" parameter_schema=function_defs[\"{{operationId}}\"][\"parameters\"],",
|
|
41
|
+
" handler=make_handler({{operationId}}, ctx)",
|
|
42
|
+
" )",
|
|
43
|
+
" )"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"functionHandlerCode": {
|
|
47
|
+
"javascript": [
|
|
48
|
+
"const {{operationId}}Handler = async (",
|
|
49
|
+
" parameters",
|
|
50
|
+
") => {",
|
|
51
|
+
" const client = await api.getClient();",
|
|
52
|
+
" // Add authentication configuration for the client",
|
|
53
|
+
" const apiPath = client.paths[\"{{pathUrl}}\"];",
|
|
54
|
+
" if (apiPath && apiPath.{{method}}) {",
|
|
55
|
+
" const result = await apiPath.{{method}}(parameters.path, parameters.body, {",
|
|
56
|
+
" params: parameters.query,",
|
|
57
|
+
" });",
|
|
58
|
+
" if (!result || !result.data) {",
|
|
59
|
+
" throw new Error(\"Get empty result from api call.\");",
|
|
60
|
+
" }",
|
|
61
|
+
" const cardName = \"{{operationId}}\".replace(/[^a-zA-Z0-9]/g, \"_\");",
|
|
62
|
+
" const cardTemplatePath = path.join(__dirname, '../adaptiveCards', cardName + '.json');",
|
|
63
|
+
" if (await fs.exists(cardTemplatePath)){",
|
|
64
|
+
" const card = generateAdaptiveCard(cardTemplatePath, result);",
|
|
65
|
+
" return card;",
|
|
66
|
+
" } else {",
|
|
67
|
+
" return JSON.stringify(result.data);",
|
|
68
|
+
" }",
|
|
69
|
+
" } else {",
|
|
70
|
+
" return \"\";",
|
|
71
|
+
" }",
|
|
72
|
+
"",
|
|
73
|
+
"};",
|
|
74
|
+
"",
|
|
75
|
+
"module.exports = { {{operationId}}Handler };"
|
|
76
|
+
],
|
|
77
|
+
"typescript": [
|
|
78
|
+
"export const {{operationId}}Handler = async (",
|
|
79
|
+
" parameter: any",
|
|
80
|
+
") => {",
|
|
81
|
+
" const client = await api.getClient();",
|
|
82
|
+
" // Add authentication configuration for the client",
|
|
83
|
+
" const apiPath = client.paths[\"{{pathUrl}}\"];",
|
|
84
|
+
" if (apiPath && apiPath.{{method}}) {",
|
|
85
|
+
" const result = await apiPath.{{method}}(parameter.path, parameter.body, {",
|
|
86
|
+
" params: parameter.query,",
|
|
87
|
+
" });",
|
|
88
|
+
" if (!result || !result.data) {",
|
|
89
|
+
" throw new Error(\"Get empty result from api call.\");",
|
|
90
|
+
" }",
|
|
91
|
+
" const cardName = \"{{operationId}}\".replace(/[^a-zA-Z0-9]/g, \"_\");",
|
|
92
|
+
" const cardTemplatePath = path.join(__dirname, '../adaptiveCards', cardName + '.json');",
|
|
93
|
+
" if (await fs.exists(cardTemplatePath)){",
|
|
94
|
+
" const card = generateAdaptiveCard(cardTemplatePath, result);",
|
|
95
|
+
" return card;",
|
|
96
|
+
" } else {",
|
|
97
|
+
" return JSON.stringify(result.data);",
|
|
98
|
+
" }",
|
|
99
|
+
" } else {",
|
|
100
|
+
" return \"\";",
|
|
101
|
+
" }",
|
|
102
|
+
" ",
|
|
103
|
+
"};"
|
|
104
|
+
],
|
|
105
|
+
"python": [
|
|
106
|
+
"async def {{operationId}}(",
|
|
107
|
+
" parameters,",
|
|
108
|
+
"):",
|
|
109
|
+
" path = getattr(parameters, \"path\", {})",
|
|
110
|
+
" body = getattr(parameters, \"body\", None)",
|
|
111
|
+
" query = getattr(parameters, \"query\", {}) or {}",
|
|
112
|
+
" resp = client.{{operationId}}(**path, json=body, _headers={}, _params=query, _cookies={})",
|
|
113
|
+
"",
|
|
114
|
+
" if resp.status_code != 200:",
|
|
115
|
+
" return resp.reason",
|
|
116
|
+
" else:",
|
|
117
|
+
" card_template_path = os.path.join(current_dir, 'adaptiveCards/{{operationId}}.json')",
|
|
118
|
+
" if not os.path.exists(card_template_path):",
|
|
119
|
+
" json_resoponse_str = resp.text",
|
|
120
|
+
" return json_resoponse_str",
|
|
121
|
+
" else:",
|
|
122
|
+
" with open(card_template_path) as card_template_file:",
|
|
123
|
+
" adaptive_card_template = card_template_file.read()",
|
|
124
|
+
"",
|
|
125
|
+
" renderer = AdaptiveCardRenderer(adaptive_card_template)",
|
|
126
|
+
"",
|
|
127
|
+
" json_resoponse_str = resp.text",
|
|
128
|
+
" rendered_card_str = renderer.render(json_resoponse_str)",
|
|
129
|
+
" rendered_card_json = json.loads(rendered_card_str)",
|
|
130
|
+
" return AdaptiveCard.model_validate(rendered_card_json)",
|
|
131
|
+
" "
|
|
132
|
+
]
|
|
133
|
+
},
|
|
134
|
+
"instructions": [
|
|
135
|
+
"The following is a conversation with an AI assistant.",
|
|
136
|
+
"The assistant can help to call APIs for the open api spec file{{description}}",
|
|
137
|
+
"If the API doesn't require parameters, invoke it with default JSON object {{emptyArgs}}.",
|
|
138
|
+
"",
|
|
139
|
+
""
|
|
140
|
+
]
|
|
141
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daAction.d.ts","sourceRoot":"","sources":["../../../../src/v4/runtime/steps/daAction.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"daAction.d.ts","sourceRoot":"","sources":["../../../../src/v4/runtime/steps/daAction.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAQpE,6DAA6D;AAC7D,eAAO,MAAM,6BAA6B,uCAAuC,CAAC;AAMlF,gFAAgF;AAChF,eAAO,MAAM,8BAA8B,EAAE,cAmB3C,CAAC"}
|
|
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.daActionRegisterPluginManifest = exports.STEP_REGISTER_PLUGIN_MANIFEST = void 0;
|
|
6
6
|
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
7
7
|
const neverthrow_1 = require("neverthrow");
|
|
8
|
+
const defineStep_1 = require("../../pipeline/defineStep");
|
|
9
|
+
const stepParams_1 = require("../../pipeline/stepParams");
|
|
8
10
|
/** Declarative Agent manifest mutation steps for modify flows. */
|
|
9
11
|
const SOURCE = "Scaffold";
|
|
10
12
|
/** Engine step name `da-action/register-plugin-manifest`. */
|
|
@@ -12,30 +14,24 @@ exports.STEP_REGISTER_PLUGIN_MANIFEST = "da-action/register-plugin-manifest";
|
|
|
12
14
|
function systemError(name, message) {
|
|
13
15
|
return new teamsfx_api_1.SystemError({ source: SOURCE, name, message });
|
|
14
16
|
}
|
|
15
|
-
function stringParam(params, key) {
|
|
16
|
-
const value = params[key];
|
|
17
|
-
return typeof value === "string" ? value : undefined;
|
|
18
|
-
}
|
|
19
17
|
/** Registered step for adding a rendered API plugin manifest as a DA action. */
|
|
20
|
-
exports.daActionRegisterPluginManifest = {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
exports.daActionRegisterPluginManifest = (0, defineStep_1.defineStep)({
|
|
19
|
+
parse(resolved) {
|
|
20
|
+
const teamsManifestPath = (0, stepParams_1.stringParam)(resolved, "teamsManifestPath");
|
|
21
|
+
if (teamsManifestPath === undefined) {
|
|
22
|
+
return (0, neverthrow_1.err)("missing string parameter 'teamsManifestPath'");
|
|
24
23
|
}
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
const pluginManifestPath = (0, stepParams_1.stringParam)(resolved, "pluginManifestPath");
|
|
25
|
+
if (pluginManifestPath === undefined) {
|
|
26
|
+
return (0, neverthrow_1.err)("missing string parameter 'pluginManifestPath'");
|
|
27
27
|
}
|
|
28
|
-
return
|
|
28
|
+
return (0, neverthrow_1.ok)({ teamsManifestPath, pluginManifestPath });
|
|
29
29
|
},
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
const pluginManifestPath = stringParam(resolved, "pluginManifestPath");
|
|
33
|
-
if (teamsManifestPath === undefined || pluginManifestPath === undefined) {
|
|
34
|
-
return (0, neverthrow_1.err)(systemError("DaActionRegisterParams", "resolved parameters are not all strings"));
|
|
35
|
-
}
|
|
30
|
+
invalidParams: () => systemError("DaActionRegisterParams", "resolved parameters are not all strings"),
|
|
31
|
+
apply({ teamsManifestPath, pluginManifestPath }, ctx) {
|
|
36
32
|
return ctx
|
|
37
33
|
.manifestWrapper("declarativeAgent")
|
|
38
34
|
.registerDeclarativeAgentAction(teamsManifestPath, pluginManifestPath);
|
|
39
35
|
},
|
|
40
|
-
};
|
|
36
|
+
});
|
|
41
37
|
//# sourceMappingURL=daAction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daAction.js","sourceRoot":"","sources":["../../../../src/v4/runtime/steps/daAction.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,wDAA8D;AAC9D,
|
|
1
|
+
{"version":3,"file":"daAction.js","sourceRoot":"","sources":["../../../../src/v4/runtime/steps/daAction.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,wDAA8D;AAC9D,2CAA6C;AAE7C,0DAAuD;AACvD,0DAAwD;AAExD,kEAAkE;AAElE,MAAM,MAAM,GAAG,UAAU,CAAC;AAE1B,6DAA6D;AAChD,QAAA,6BAA6B,GAAG,oCAAoC,CAAC;AAElF,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,gFAAgF;AACnE,QAAA,8BAA8B,GAAmB,IAAA,uBAAU,EAAC;IACvE,KAAK,CAAC,QAAQ;QACZ,MAAM,iBAAiB,GAAG,IAAA,wBAAW,EAAC,QAAQ,EAAE,mBAAmB,CAAC,CAAC;QACrE,IAAI,iBAAiB,KAAK,SAAS,EAAE,CAAC;YACpC,OAAO,IAAA,gBAAG,EAAC,8CAA8C,CAAC,CAAC;QAC7D,CAAC;QACD,MAAM,kBAAkB,GAAG,IAAA,wBAAW,EAAC,QAAQ,EAAE,oBAAoB,CAAC,CAAC;QACvE,IAAI,kBAAkB,KAAK,SAAS,EAAE,CAAC;YACrC,OAAO,IAAA,gBAAG,EAAC,+CAA+C,CAAC,CAAC;QAC9D,CAAC;QACD,OAAO,IAAA,eAAE,EAAC,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,CAAC,CAAC;IACvD,CAAC;IACD,aAAa,EAAE,GAAG,EAAE,CAClB,WAAW,CAAC,wBAAwB,EAAE,yCAAyC,CAAC;IAClF,KAAK,CAAC,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,EAAE,GAAG;QAClD,OAAO,GAAG;aACP,eAAe,CAAC,kBAAkB,CAAC;aACnC,8BAA8B,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAAC;IAC3E,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daSensitivity.d.ts","sourceRoot":"","sources":["../../../../src/v4/runtime/steps/daSensitivity.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"daSensitivity.d.ts","sourceRoot":"","sources":["../../../../src/v4/runtime/steps/daSensitivity.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAc,MAAM,oCAAoC,CAAC;AAKhF,mDAAmD;AACnD,eAAO,MAAM,0BAA0B,6BAA6B,CAAC;AAWrE,8DAA8D;AAC9D,MAAM,WAAW,8BAA8B;IAC7C,SAAS,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC1C;AAED,qFAAqF;AACrF,eAAO,MAAM,sCAAsC,EAAE,8BAEpD,CAAC;AAEF,yEAAyE;AACzE,wBAAgB,+BAA+B,CAC7C,uBAAuB,EAAE,8BAA8B,GACtD,cAAc,CA4BhB;AAED,6EAA6E;AAC7E,eAAO,MAAM,qBAAqB,gBAEjC,CAAC"}
|
|
@@ -6,6 +6,7 @@ exports.daSetSensitivityLabel = exports.NOOP_GENERAL_SENSITIVITY_LABEL_SERVICE =
|
|
|
6
6
|
exports.createDaSetSensitivityLabelStep = createDaSetSensitivityLabelStep;
|
|
7
7
|
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
8
8
|
const neverthrow_1 = require("neverthrow");
|
|
9
|
+
const defineStep_1 = require("../../pipeline/defineStep");
|
|
9
10
|
const SOURCE = "Scaffold";
|
|
10
11
|
/** Engine step name `da/set-sensitivity-label`. */
|
|
11
12
|
exports.STEP_SET_SENSITIVITY_LABEL = "da/set-sensitivity-label";
|
|
@@ -22,17 +23,15 @@ exports.NOOP_GENERAL_SENSITIVITY_LABEL_SERVICE = {
|
|
|
22
23
|
};
|
|
23
24
|
/** Bind the General-label lookup dependency into its registered step. */
|
|
24
25
|
function createDaSetSensitivityLabelStep(generalSensitivityLabel) {
|
|
25
|
-
return {
|
|
26
|
-
|
|
27
|
-
return manifestPath(resolved) === undefined
|
|
28
|
-
? "missing non-empty string parameter 'manifestPath'"
|
|
29
|
-
: undefined;
|
|
30
|
-
},
|
|
31
|
-
async apply(resolved, ctx) {
|
|
26
|
+
return (0, defineStep_1.defineStep)({
|
|
27
|
+
parse(resolved) {
|
|
32
28
|
const path = manifestPath(resolved);
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
29
|
+
return path === undefined
|
|
30
|
+
? (0, neverthrow_1.err)("missing non-empty string parameter 'manifestPath'")
|
|
31
|
+
: (0, neverthrow_1.ok)(path);
|
|
32
|
+
},
|
|
33
|
+
invalidParams: () => systemError("DaSensitivityLabelParams", "resolved manifestPath is not a non-empty string"),
|
|
34
|
+
async apply(path, ctx) {
|
|
36
35
|
const id = await generalSensitivityLabel.resolveId();
|
|
37
36
|
if (id === undefined) {
|
|
38
37
|
return (0, neverthrow_1.ok)(undefined);
|
|
@@ -43,7 +42,7 @@ function createDaSetSensitivityLabelStep(generalSensitivityLabel) {
|
|
|
43
42
|
}
|
|
44
43
|
return wrapper.setSensitivityLabel(path, id);
|
|
45
44
|
},
|
|
46
|
-
};
|
|
45
|
+
});
|
|
47
46
|
}
|
|
48
47
|
/** Default step binding for offline runtimes and compatibility consumers. */
|
|
49
48
|
exports.daSetSensitivityLabel = createDaSetSensitivityLabelStep(exports.NOOP_GENERAL_SENSITIVITY_LABEL_SERVICE);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daSensitivity.js","sourceRoot":"","sources":["../../../../src/v4/runtime/steps/daSensitivity.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;
|
|
1
|
+
{"version":3,"file":"daSensitivity.js","sourceRoot":"","sources":["../../../../src/v4/runtime/steps/daSensitivity.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAgClC,0EA8BC;AA5DD,wDAA8D;AAC9D,2CAA6C;AAE7C,0DAAuD;AAEvD,MAAM,MAAM,GAAG,UAAU,CAAC;AAE1B,mDAAmD;AACtC,QAAA,0BAA0B,GAAG,0BAA0B,CAAC;AAErE,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,YAAY,CAAC,MAAkB;IACtC,MAAM,KAAK,GAAG,MAAM,CAAC,YAAY,CAAC;IAClC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;AAClF,CAAC;AAOD,qFAAqF;AACxE,QAAA,sCAAsC,GAAmC;IACpF,SAAS,EAAE,GAAuB,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC;CAChE,CAAC;AAEF,yEAAyE;AACzE,SAAgB,+BAA+B,CAC7C,uBAAuD;IAEvD,OAAO,IAAA,uBAAU,EAAC;QAChB,KAAK,CAAC,QAAQ;YACZ,MAAM,IAAI,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAC;YACpC,OAAO,IAAI,KAAK,SAAS;gBACvB,CAAC,CAAC,IAAA,gBAAG,EAAC,mDAAmD,CAAC;gBAC1D,CAAC,CAAC,IAAA,eAAE,EAAC,IAAI,CAAC,CAAC;QACf,CAAC;QACD,aAAa,EAAE,GAAG,EAAE,CAClB,WAAW,CAAC,0BAA0B,EAAE,iDAAiD,CAAC;QAC5F,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,GAAG;YACnB,MAAM,EAAE,GAAG,MAAM,uBAAuB,CAAC,SAAS,EAAE,CAAC;YACrD,IAAI,EAAE,KAAK,SAAS,EAAE,CAAC;gBACrB,OAAO,IAAA,eAAE,EAAC,SAAS,CAAC,CAAC;YACvB,CAAC;YAED,MAAM,OAAO,GAAG,GAAG,CAAC,eAAe,CAAC,kBAAkB,CAAC,CAAC;YACxD,IAAI,OAAO,CAAC,mBAAmB,KAAK,SAAS,EAAE,CAAC;gBAC9C,OAAO,IAAA,gBAAG,EACR,WAAW,CACT,kCAAkC,EAClC,uEAAuE,CACxE,CACF,CAAC;YACJ,CAAC;YACD,OAAO,OAAO,CAAC,mBAAmB,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QAC/C,CAAC;KACF,CAAC,CAAC;AACL,CAAC;AAED,6EAA6E;AAChE,QAAA,qBAAqB,GAAG,+BAA+B,CAClE,8CAAsC,CACvC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcpAuth.d.ts","sourceRoot":"","sources":["../../../../src/v4/runtime/steps/mcpAuth.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"mcpAuth.d.ts","sourceRoot":"","sources":["../../../../src/v4/runtime/steps/mcpAuth.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AASpE,qDAAqD;AACrD,eAAO,MAAM,sBAAsB,+BAA+B,CAAC;AAEnE,0DAA0D;AAC1D,eAAO,MAAM,2BAA2B,oCAAoC,CAAC;AAM7E,yFAAyF;AACzF,eAAO,MAAM,sBAAsB,EAAE,cAkCnC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,2BAA2B,EAAE,cAuBxC,CAAC"}
|
|
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.mcpAuthPersistCredentialEnv = exports.mcpAuthInjectYmlAction = exports.STEP_PERSIST_CREDENTIAL_ENV = exports.STEP_INJECT_YML_ACTION = void 0;
|
|
6
6
|
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
7
7
|
const neverthrow_1 = require("neverthrow");
|
|
8
|
+
const defineStep_1 = require("../../pipeline/defineStep");
|
|
9
|
+
const stepParams_1 = require("../../pipeline/stepParams");
|
|
8
10
|
const mcpAuthScaffold_1 = require("../../mcp/mcpAuthScaffold");
|
|
9
11
|
/** MCP auth post-render steps for the create flow. See create-mcp-server scenario spec. */
|
|
10
12
|
const SOURCE = "Scaffold";
|
|
@@ -15,76 +17,66 @@ exports.STEP_PERSIST_CREDENTIAL_ENV = "mcp-auth/persist-credential-env";
|
|
|
15
17
|
function systemError(name, message) {
|
|
16
18
|
return new teamsfx_api_1.SystemError({ source: SOURCE, name, message });
|
|
17
19
|
}
|
|
18
|
-
/** Read a `with` value as a string, or `undefined` if it is absent / non-string. */
|
|
19
|
-
function stringParam(params, key) {
|
|
20
|
-
const value = params[key];
|
|
21
|
-
return typeof value === "string" ? value : undefined;
|
|
22
|
-
}
|
|
23
20
|
/** Registered step for injecting the shared v4 MCP auth action into `m365agents.yml`. */
|
|
24
|
-
exports.mcpAuthInjectYmlAction = {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
exports.mcpAuthInjectYmlAction = (0, defineStep_1.defineStep)({
|
|
22
|
+
parse(resolved) {
|
|
23
|
+
const ymlPath = (0, stepParams_1.stringParam)(resolved, "ymlPath");
|
|
24
|
+
if (ymlPath === undefined) {
|
|
25
|
+
return (0, neverthrow_1.err)("missing string parameter 'ymlPath'");
|
|
28
26
|
}
|
|
29
|
-
const authType = stringParam(resolved, "authType");
|
|
27
|
+
const authType = (0, stepParams_1.stringParam)(resolved, "authType");
|
|
30
28
|
if (authType === undefined) {
|
|
31
|
-
return "missing string parameter 'authType'";
|
|
29
|
+
return (0, neverthrow_1.err)("missing string parameter 'authType'");
|
|
32
30
|
}
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
const mcpServerUrl = (0, stepParams_1.stringParam)(resolved, "mcpServerUrl");
|
|
32
|
+
if (mcpServerUrl === undefined) {
|
|
33
|
+
return (0, neverthrow_1.err)("missing string parameter 'mcpServerUrl'");
|
|
35
34
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
const ymlPath = stringParam(resolved, "ymlPath");
|
|
40
|
-
const authType = stringParam(resolved, "authType");
|
|
41
|
-
const mcpServerUrl = stringParam(resolved, "mcpServerUrl");
|
|
42
|
-
if (ymlPath === undefined || authType === undefined || mcpServerUrl === undefined) {
|
|
43
|
-
return Promise.resolve((0, neverthrow_1.err)(systemError("McpAuthInjectParams", "resolved parameters are not all strings")));
|
|
35
|
+
const optionalYmlPaths = (0, stepParams_1.stringArrayParam)(resolved, "optionalYmlPaths");
|
|
36
|
+
if (resolved.optionalYmlPaths !== undefined && optionalYmlPaths === undefined) {
|
|
37
|
+
return (0, neverthrow_1.err)("parameter 'optionalYmlPaths' must be a string array");
|
|
44
38
|
}
|
|
45
|
-
return (0,
|
|
39
|
+
return (0, neverthrow_1.ok)({
|
|
46
40
|
ymlPath,
|
|
47
41
|
authType,
|
|
48
42
|
mcpServerUrl,
|
|
43
|
+
optionalYmlPaths,
|
|
49
44
|
credentialFields: {
|
|
50
|
-
clientId: authType === "oauth"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
scope: Boolean(stringParam(resolved, "oauthScopes")?.trim()),
|
|
45
|
+
clientId: authType === "oauth" || authType === "entra-sso",
|
|
46
|
+
clientSecret: authType === "oauth",
|
|
47
|
+
scope: Boolean((0, stepParams_1.stringParam)(resolved, "oauthScopes")?.trim()),
|
|
48
|
+
apiKey: authType === "bearer-token",
|
|
55
49
|
},
|
|
56
50
|
});
|
|
57
51
|
},
|
|
58
|
-
|
|
52
|
+
apply: (params, ctx) => (0, mcpAuthScaffold_1.injectMcpAuthAction)(ctx, params),
|
|
53
|
+
invalidParams: () => systemError("McpAuthInjectParams", "resolved parameters are not all strings"),
|
|
54
|
+
});
|
|
59
55
|
/**
|
|
60
56
|
* Registered step for writing the deterministic `MCP_DA_AUTH_ID_<NS>` registration placeholder into
|
|
61
57
|
* `env/.env.dev`.
|
|
62
58
|
*/
|
|
63
|
-
exports.mcpAuthPersistCredentialEnv = {
|
|
64
|
-
|
|
65
|
-
const authType = stringParam(resolved, "authType");
|
|
59
|
+
exports.mcpAuthPersistCredentialEnv = (0, defineStep_1.defineStep)({
|
|
60
|
+
parse(resolved) {
|
|
61
|
+
const authType = (0, stepParams_1.stringParam)(resolved, "authType");
|
|
66
62
|
if (authType === undefined) {
|
|
67
|
-
return "missing string parameter 'authType'";
|
|
63
|
+
return (0, neverthrow_1.err)("missing string parameter 'authType'");
|
|
68
64
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
return undefined;
|
|
73
|
-
},
|
|
74
|
-
apply(resolved, ctx) {
|
|
75
|
-
const authType = stringParam(resolved, "authType");
|
|
76
|
-
const mcpServerUrl = stringParam(resolved, "mcpServerUrl");
|
|
77
|
-
if (authType === undefined || mcpServerUrl === undefined) {
|
|
78
|
-
return Promise.resolve((0, neverthrow_1.err)(systemError("McpAuthPersistParams", "resolved parameters are not all strings")));
|
|
65
|
+
const mcpServerUrl = (0, stepParams_1.stringParam)(resolved, "mcpServerUrl");
|
|
66
|
+
if (mcpServerUrl === undefined) {
|
|
67
|
+
return (0, neverthrow_1.err)("missing string parameter 'mcpServerUrl'");
|
|
79
68
|
}
|
|
80
|
-
return (0,
|
|
69
|
+
return (0, neverthrow_1.ok)({
|
|
81
70
|
authType,
|
|
82
71
|
mcpServerUrl,
|
|
83
|
-
oauthClientId: stringParam(resolved, "oauthClientId"),
|
|
84
|
-
oauthClientSecret: stringParam(resolved, "oauthClientSecret"),
|
|
85
|
-
oauthScopes: stringParam(resolved, "oauthScopes"),
|
|
86
|
-
entraClientId: stringParam(resolved, "entraClientId"),
|
|
72
|
+
oauthClientId: (0, stepParams_1.stringParam)(resolved, "oauthClientId"),
|
|
73
|
+
oauthClientSecret: (0, stepParams_1.stringParam)(resolved, "oauthClientSecret"),
|
|
74
|
+
oauthScopes: (0, stepParams_1.stringParam)(resolved, "oauthScopes"),
|
|
75
|
+
entraClientId: (0, stepParams_1.stringParam)(resolved, "entraClientId"),
|
|
76
|
+
apiKey: (0, stepParams_1.stringParam)(resolved, "apiKey"),
|
|
87
77
|
});
|
|
88
78
|
},
|
|
89
|
-
|
|
79
|
+
apply: (params, ctx) => (0, mcpAuthScaffold_1.persistMcpAuthRegistrationEnv)(ctx, params),
|
|
80
|
+
invalidParams: () => systemError("McpAuthPersistParams", "resolved parameters are not all strings"),
|
|
81
|
+
});
|
|
90
82
|
//# sourceMappingURL=mcpAuth.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcpAuth.js","sourceRoot":"","sources":["../../../../src/v4/runtime/steps/mcpAuth.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,
|
|
1
|
+
{"version":3,"file":"mcpAuth.js","sourceRoot":"","sources":["../../../../src/v4/runtime/steps/mcpAuth.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,wDAAqD;AACrD,2CAA6C;AAE7C,0DAAuD;AACvD,0DAA0E;AAC1E,+DAA+F;AAE/F,2FAA2F;AAE3F,MAAM,MAAM,GAAG,UAAU,CAAC;AAE1B,qDAAqD;AACxC,QAAA,sBAAsB,GAAG,4BAA4B,CAAC;AAEnE,0DAA0D;AAC7C,QAAA,2BAA2B,GAAG,iCAAiC,CAAC;AAE7E,SAAS,WAAW,CAAC,IAAY,EAAE,OAAe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,+CAA6B,EAAC,GAAG,EAAE,MAAM,CAAC;IAClE,aAAa,EAAE,GAAG,EAAE,CAClB,WAAW,CAAC,sBAAsB,EAAE,yCAAyC,CAAC;CACjF,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcpLocal.d.ts","sourceRoot":"","sources":["../../../../src/v4/runtime/steps/mcpLocal.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"mcpLocal.d.ts","sourceRoot":"","sources":["../../../../src/v4/runtime/steps/mcpLocal.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAQpE,wDAAwD;AACxD,eAAO,MAAM,8BAA8B,kCAAkC,CAAC;AA8C9E,0EAA0E;AAC1E,eAAO,MAAM,0BAA0B,EAAE,cA4CvC,CAAC"}
|
|
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.mcpLocalMaterializeServers = exports.STEP_MATERIALIZE_LOCAL_SERVERS = void 0;
|
|
6
6
|
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
7
7
|
const neverthrow_1 = require("neverthrow");
|
|
8
|
+
const defineStep_1 = require("../../pipeline/defineStep");
|
|
9
|
+
const stepParams_1 = require("../../pipeline/stepParams");
|
|
8
10
|
/** Materialize local MCP stdio servers. See create-mcp-server scenario spec. */
|
|
9
11
|
const SOURCE = "Scaffold";
|
|
10
12
|
/** Engine step name `mcp-local/materialize-servers`. */
|
|
@@ -12,19 +14,6 @@ exports.STEP_MATERIALIZE_LOCAL_SERVERS = "mcp-local/materialize-servers";
|
|
|
12
14
|
function systemError(name, message) {
|
|
13
15
|
return new teamsfx_api_1.SystemError({ source: SOURCE, name, message });
|
|
14
16
|
}
|
|
15
|
-
/** Read a `with` value as a string, or `undefined` if it is absent / non-string. */
|
|
16
|
-
function stringParam(params, key) {
|
|
17
|
-
const value = params[key];
|
|
18
|
-
return typeof value === "string" ? value : undefined;
|
|
19
|
-
}
|
|
20
|
-
/** Read a `with` value as the multiSelect `string[]`, or `undefined`. */
|
|
21
|
-
function stringArrayParam(params, key) {
|
|
22
|
-
const value = params[key];
|
|
23
|
-
if (!Array.isArray(value) || !value.every((item) => typeof item === "string")) {
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
26
|
-
return value;
|
|
27
|
-
}
|
|
28
17
|
function isRecord(value) {
|
|
29
18
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
30
19
|
}
|
|
@@ -48,26 +37,24 @@ function toLocalServer(id, entry) {
|
|
|
48
37
|
return (0, neverthrow_1.ok)({ type: "stdio", command, args: rawArgs === undefined ? [] : rawArgs });
|
|
49
38
|
}
|
|
50
39
|
/** Registered step for writing `.vscode/mcp.json` in the local branch. */
|
|
51
|
-
exports.mcpLocalMaterializeServers = {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
40
|
+
exports.mcpLocalMaterializeServers = (0, defineStep_1.defineStep)({
|
|
41
|
+
parse(resolved) {
|
|
42
|
+
const target = (0, stepParams_1.stringParam)(resolved, "target");
|
|
43
|
+
if (target === undefined) {
|
|
44
|
+
return (0, neverthrow_1.err)("missing string parameter 'target'");
|
|
55
45
|
}
|
|
56
|
-
|
|
57
|
-
|
|
46
|
+
const selected = (0, stepParams_1.stringArrayParam)(resolved, "selected");
|
|
47
|
+
if (selected === undefined) {
|
|
48
|
+
return (0, neverthrow_1.err)("missing string[] parameter 'selected'");
|
|
58
49
|
}
|
|
59
|
-
|
|
60
|
-
|
|
50
|
+
const catalogRaw = (0, stepParams_1.stringParam)(resolved, "catalog");
|
|
51
|
+
if (catalogRaw === undefined) {
|
|
52
|
+
return (0, neverthrow_1.err)("missing string parameter 'catalog'");
|
|
61
53
|
}
|
|
62
|
-
return
|
|
54
|
+
return (0, neverthrow_1.ok)({ target, selected, catalogRaw });
|
|
63
55
|
},
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
const selected = stringArrayParam(resolved, "selected");
|
|
67
|
-
const catalogRaw = stringParam(resolved, "catalog");
|
|
68
|
-
if (target === undefined || selected === undefined || catalogRaw === undefined) {
|
|
69
|
-
return (0, neverthrow_1.err)(systemError("McpLocalParams", "resolved parameters are not all of the expected type"));
|
|
70
|
-
}
|
|
56
|
+
invalidParams: () => systemError("McpLocalParams", "resolved parameters are not all of the expected type"),
|
|
57
|
+
apply({ target, selected, catalogRaw }, ctx) {
|
|
71
58
|
let parsed;
|
|
72
59
|
try {
|
|
73
60
|
parsed = JSON.parse(catalogRaw);
|
|
@@ -89,5 +76,5 @@ exports.mcpLocalMaterializeServers = {
|
|
|
89
76
|
ctx.write(target, Buffer.from(JSON.stringify({ servers }, null, 2) + "\n", "utf8"));
|
|
90
77
|
return (0, neverthrow_1.ok)(undefined);
|
|
91
78
|
},
|
|
92
|
-
};
|
|
79
|
+
});
|
|
93
80
|
//# sourceMappingURL=mcpLocal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcpLocal.js","sourceRoot":"","sources":["../../../../src/v4/runtime/steps/mcpLocal.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,wDAA8D;AAC9D,2CAA6C;
|
|
1
|
+
{"version":3,"file":"mcpLocal.js","sourceRoot":"","sources":["../../../../src/v4/runtime/steps/mcpLocal.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,wDAA8D;AAC9D,2CAA6C;AAE7C,0DAAuD;AACvD,0DAA0E;AAE1E,gFAAgF;AAEhF,MAAM,MAAM,GAAG,UAAU,CAAC;AAE1B,wDAAwD;AAC3C,QAAA,8BAA8B,GAAG,+BAA+B,CAAC;AAE9E,SAAS,WAAW,CAAC,IAAY,EAAE,OAAe;IAChD,OAAO,IAAI,yBAAW,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;AAC5D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CAAC,EAAE,CAAC;YACtB,OAAO,IAAA,gBAAG,EAAC,WAAW,CAAC,sBAAsB,EAAE,2CAA2C,CAAC,CAAC,CAAC;QAC/F,CAAC;QACD,MAAM,OAAO,GAAgC,EAAE,CAAC;QAChD,KAAK,MAAM,EAAE,IAAI,QAAQ,EAAE,CAAC;YAC1B,MAAM,KAAK,GAAG,aAAa,CAAC,EAAE,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;YAC5C,IAAI,KAAK,CAAC,KAAK,EAAE,EAAE,CAAC;gBAClB,OAAO,IAAA,gBAAG,EAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YAC1B,CAAC;YACD,OAAO,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC;QAC5B,CAAC;QACD,GAAG,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC;QACpF,OAAO,IAAA,eAAE,EAAC,SAAS,CAAC,CAAC;IACvB,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcpStatic.d.ts","sourceRoot":"","sources":["../../../../src/v4/runtime/steps/mcpStatic.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,cAAc,EAAiB,MAAM,gCAAgC,CAAC;AAE/E,OAAO,EAAE,cAAc,EAA2B,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"mcpStatic.d.ts","sourceRoot":"","sources":["../../../../src/v4/runtime/steps/mcpStatic.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,cAAc,EAAiB,MAAM,gCAAgC,CAAC;AAE/E,OAAO,EAAE,cAAc,EAA2B,MAAM,oCAAoC,CAAC;AAQ7F,eAAO,MAAM,aAAa;4BACA,MAAM,KAAG,OAAO,CAAC,cAAc,CAAC;CACzD,CAAC;AAEF,uDAAuD;AACvD,eAAO,MAAM,iCAAiC,iCAAiC,CAAC;AAuIhF,0FAA0F;AAC1F,eAAO,MAAM,yBAAyB,EAAE,cAiFtC,CAAC"}
|