@microsoft/teamsfx-core 2.0.8-alpha.87f45d762.0 → 2.0.8-alpha.8da24c130.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/common/constants.d.ts +4 -18
- package/build/common/constants.d.ts.map +1 -1
- package/build/common/constants.js +4 -19
- package/build/common/constants.js.map +1 -1
- package/build/common/featureFlags.d.ts +68 -7
- package/build/common/featureFlags.d.ts.map +1 -1
- package/build/common/featureFlags.js +62 -99
- package/build/common/featureFlags.js.map +1 -1
- package/build/common/m365/launchHelper.d.ts +1 -1
- package/build/common/m365/launchHelper.d.ts.map +1 -1
- package/build/common/m365/launchHelper.js +3 -6
- package/build/common/m365/launchHelper.js.map +1 -1
- package/build/common/m365/packageService.d.ts +1 -1
- package/build/common/m365/packageService.d.ts.map +1 -1
- package/build/common/m365/packageService.js +18 -39
- package/build/common/m365/packageService.js.map +1 -1
- package/build/common/projectTypeChecker.d.ts.map +1 -1
- package/build/common/projectTypeChecker.js +6 -0
- package/build/common/projectTypeChecker.js.map +1 -1
- package/build/common/samples.d.ts +1 -1
- package/build/common/samples.js +1 -1
- package/build/common/stringUtils.d.ts +10 -0
- package/build/common/stringUtils.d.ts.map +1 -0
- package/build/common/stringUtils.js +121 -0
- package/build/common/stringUtils.js.map +1 -0
- package/build/common/telemetry.d.ts +15 -1
- package/build/common/telemetry.d.ts.map +1 -1
- package/build/common/telemetry.js +32 -3
- package/build/common/telemetry.js.map +1 -1
- package/build/common/templates-config.json +1 -1
- package/build/component/constants.js +2 -2
- package/build/component/constants.js.map +1 -1
- package/build/component/coordinator/index.d.ts +0 -40
- package/build/component/coordinator/index.d.ts.map +1 -1
- package/build/component/coordinator/index.js +126 -179
- package/build/component/coordinator/index.js.map +1 -1
- package/build/component/driver/apiKey/create.d.ts.map +1 -1
- package/build/component/driver/apiKey/create.js.map +1 -1
- package/build/component/driver/apiKey/update.js +1 -1
- package/build/component/driver/apiKey/update.js.map +1 -1
- package/build/component/driver/apiKey/utility/utility.d.ts.map +1 -1
- package/build/component/driver/apiKey/utility/utility.js +2 -3
- package/build/component/driver/apiKey/utility/utility.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/middleware/addSWADeployTelemetry.js +2 -2
- package/build/component/driver/middleware/addSWADeployTelemetry.js.map +1 -1
- package/build/component/driver/oauth/create.d.ts +12 -0
- package/build/component/driver/oauth/create.d.ts.map +1 -0
- package/build/component/driver/oauth/create.js +193 -0
- package/build/component/driver/oauth/create.js.map +1 -0
- package/build/component/driver/oauth/error/oauthAuthInfoInvalid.d.ts +5 -0
- package/build/component/driver/oauth/error/oauthAuthInfoInvalid.d.ts.map +1 -0
- package/build/component/driver/oauth/error/oauthAuthInfoInvalid.js +21 -0
- package/build/component/driver/oauth/error/oauthAuthInfoInvalid.js.map +1 -0
- package/build/component/driver/oauth/error/oauthDomainInvalid.d.ts +5 -0
- package/build/component/driver/oauth/error/oauthDomainInvalid.d.ts.map +1 -0
- package/build/component/driver/oauth/error/oauthDomainInvalid.js +22 -0
- package/build/component/driver/oauth/error/oauthDomainInvalid.js.map +1 -0
- package/build/component/driver/oauth/error/oauthFailedToGetDomain.d.ts +5 -0
- package/build/component/driver/oauth/error/oauthFailedToGetDomain.d.ts.map +1 -0
- package/build/component/driver/oauth/error/oauthFailedToGetDomain.js +21 -0
- package/build/component/driver/oauth/error/oauthFailedToGetDomain.js.map +1 -0
- package/build/component/driver/oauth/error/oauthNameTooLong.d.ts +5 -0
- package/build/component/driver/oauth/error/oauthNameTooLong.d.ts.map +1 -0
- package/build/component/driver/oauth/error/oauthNameTooLong.js +21 -0
- package/build/component/driver/oauth/error/oauthNameTooLong.js.map +1 -0
- package/build/component/driver/oauth/interface/createOauthArgs.d.ts +12 -0
- package/build/component/driver/oauth/interface/createOauthArgs.d.ts.map +1 -0
- package/build/component/driver/oauth/interface/createOauthArgs.js +5 -0
- package/build/component/driver/oauth/interface/createOauthArgs.js.map +1 -0
- package/build/component/driver/oauth/interface/createOauthOutputs.d.ts +7 -0
- package/build/component/driver/oauth/interface/createOauthOutputs.d.ts.map +1 -0
- package/build/component/driver/oauth/interface/createOauthOutputs.js +10 -0
- package/build/component/driver/oauth/interface/createOauthOutputs.js.map +1 -0
- package/build/component/driver/oauth/interface/updateOauthArgs.d.ts +9 -0
- package/build/component/driver/oauth/interface/updateOauthArgs.d.ts.map +1 -0
- package/build/component/driver/oauth/interface/updateOauthArgs.js +5 -0
- package/build/component/driver/oauth/interface/updateOauthArgs.js.map +1 -0
- package/build/component/driver/oauth/update.d.ts +13 -0
- package/build/component/driver/oauth/update.d.ts.map +1 -0
- package/build/component/driver/oauth/update.js +181 -0
- package/build/component/driver/oauth/update.js.map +1 -0
- package/build/component/driver/oauth/utility/constants.d.ts +13 -0
- package/build/component/driver/oauth/utility/constants.d.ts.map +1 -0
- package/build/component/driver/oauth/utility/constants.js +18 -0
- package/build/component/driver/oauth/utility/constants.js.map +1 -0
- package/build/component/driver/oauth/utility/utility.d.ts +12 -0
- package/build/component/driver/oauth/utility/utility.d.ts.map +1 -0
- package/build/component/driver/oauth/utility/utility.js +90 -0
- package/build/component/driver/oauth/utility/utility.js.map +1 -0
- package/build/component/driver/script/scriptDriver.d.ts.map +1 -1
- package/build/component/driver/script/scriptDriver.js +6 -6
- package/build/component/driver/script/scriptDriver.js.map +1 -1
- package/build/component/driver/teamsApp/clients/appStudioClient.d.ts +5 -0
- package/build/component/driver/teamsApp/clients/appStudioClient.d.ts.map +1 -1
- package/build/component/driver/teamsApp/clients/appStudioClient.js +36 -0
- package/build/component/driver/teamsApp/clients/appStudioClient.js.map +1 -1
- package/build/component/driver/teamsApp/constants.d.ts +3 -0
- package/build/component/driver/teamsApp/constants.d.ts.map +1 -1
- package/build/component/driver/teamsApp/constants.js +3 -0
- package/build/component/driver/teamsApp/constants.js.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.d.ts +17 -0
- package/build/component/driver/teamsApp/createAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.js +62 -6
- package/build/component/driver/teamsApp/createAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/interfaces/OauthConfigurationId.d.ts +7 -0
- package/build/component/driver/teamsApp/interfaces/OauthConfigurationId.d.ts.map +1 -0
- package/build/component/driver/teamsApp/interfaces/OauthConfigurationId.js +5 -0
- package/build/component/driver/teamsApp/interfaces/OauthConfigurationId.js.map +1 -0
- package/build/component/driver/teamsApp/interfaces/OauthRegistration.d.ts +44 -0
- package/build/component/driver/teamsApp/interfaces/OauthRegistration.d.ts.map +1 -0
- package/build/component/driver/teamsApp/interfaces/OauthRegistration.js +21 -0
- package/build/component/driver/teamsApp/interfaces/OauthRegistration.js.map +1 -0
- package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.d.ts +8 -0
- package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.d.ts.map +1 -0
- package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.js +65 -0
- package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.js.map +1 -0
- package/build/component/driver/teamsApp/utils/ManifestUtils.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/ManifestUtils.js +2 -14
- package/build/component/driver/teamsApp/utils/ManifestUtils.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/generator/copilotPlugin/generator.d.ts.map +1 -1
- package/build/component/generator/copilotPlugin/generator.js +20 -26
- package/build/component/generator/copilotPlugin/generator.js.map +1 -1
- package/build/component/generator/copilotPlugin/helper.d.ts +7 -2
- package/build/component/generator/copilotPlugin/helper.d.ts.map +1 -1
- package/build/component/generator/copilotPlugin/helper.js +66 -38
- package/build/component/generator/copilotPlugin/helper.js.map +1 -1
- package/build/component/generator/generator.d.ts +4 -2
- package/build/component/generator/generator.d.ts.map +1 -1
- package/build/component/generator/generator.js +10 -7
- package/build/component/generator/generator.js.map +1 -1
- package/build/component/generator/generatorProvider.d.ts +3 -0
- package/build/component/generator/generatorProvider.d.ts.map +1 -0
- package/build/component/generator/generatorProvider.js +18 -0
- package/build/component/generator/generatorProvider.js.map +1 -0
- package/build/component/generator/officeAddin/generator.d.ts +9 -0
- package/build/component/generator/officeAddin/generator.d.ts.map +1 -1
- package/build/component/generator/officeAddin/generator.js +33 -2
- package/build/component/generator/officeAddin/generator.js.map +1 -1
- package/build/component/generator/officeAddin/helperMethods.d.ts +0 -3
- package/build/component/generator/officeAddin/helperMethods.d.ts.map +1 -1
- package/build/component/generator/officeAddin/helperMethods.js +1 -67
- package/build/component/generator/officeAddin/helperMethods.js.map +1 -1
- package/build/component/generator/officeXMLAddin/generator.d.ts.map +1 -1
- package/build/component/generator/officeXMLAddin/generator.js +5 -2
- package/build/component/generator/officeXMLAddin/generator.js.map +1 -1
- package/build/component/generator/spfx/spfxGenerator.d.ts +18 -5
- package/build/component/generator/spfx/spfxGenerator.d.ts.map +1 -1
- package/build/component/generator/spfx/spfxGenerator.js +123 -20
- package/build/component/generator/spfx/spfxGenerator.js.map +1 -1
- package/build/component/generator/templates/ssrTabGenerator.d.ts +12 -0
- package/build/component/generator/templates/ssrTabGenerator.d.ts.map +1 -0
- package/build/component/generator/templates/ssrTabGenerator.js +36 -0
- package/build/component/generator/templates/ssrTabGenerator.js.map +1 -0
- package/build/component/generator/templates/templateGenerator.d.ts +12 -0
- package/build/component/generator/templates/templateGenerator.d.ts.map +1 -0
- package/build/component/generator/templates/templateGenerator.js +99 -0
- package/build/component/generator/templates/templateGenerator.js.map +1 -0
- package/build/component/generator/templates/templateInfo.d.ts +10 -0
- package/build/component/generator/templates/templateInfo.d.ts.map +1 -0
- package/build/component/generator/templates/templateInfo.js +3 -0
- package/build/component/generator/templates/templateInfo.js.map +1 -0
- package/build/component/generator/templates/templateNames.d.ts +52 -0
- package/build/component/generator/templates/templateNames.d.ts.map +1 -0
- package/build/component/generator/templates/templateNames.js +304 -0
- package/build/component/generator/templates/templateNames.js.map +1 -0
- package/build/component/generator/templates/templateReplaceMap.d.ts +5 -0
- package/build/component/generator/templates/templateReplaceMap.d.ts.map +1 -0
- package/build/component/generator/templates/templateReplaceMap.js +39 -0
- package/build/component/generator/templates/templateReplaceMap.js.map +1 -0
- package/build/component/generator/utils.d.ts +1 -0
- package/build/component/generator/utils.d.ts.map +1 -1
- package/build/component/generator/utils.js +2 -1
- package/build/component/generator/utils.js.map +1 -1
- package/build/component/middleware/actionExecutionMW.d.ts.map +1 -1
- package/build/component/middleware/actionExecutionMW.js +5 -4
- package/build/component/middleware/actionExecutionMW.js.map +1 -1
- package/build/component/middleware/questionMW.d.ts.map +1 -1
- package/build/component/middleware/questionMW.js +9 -1
- package/build/component/middleware/questionMW.js.map +1 -1
- package/build/component/utils/envUtil.d.ts +0 -1
- package/build/component/utils/envUtil.d.ts.map +1 -1
- package/build/component/utils/envUtil.js +1 -13
- package/build/component/utils/envUtil.js.map +1 -1
- package/build/component/utils/metadataRscPermission.d.ts +1 -0
- package/build/component/utils/metadataRscPermission.d.ts.map +1 -1
- package/build/component/utils/metadataRscPermission.js +15 -3
- package/build/component/utils/metadataRscPermission.js.map +1 -1
- package/build/component/utils.d.ts +2 -1
- package/build/component/utils.d.ts.map +1 -1
- package/build/component/utils.js +43 -1
- package/build/component/utils.js.map +1 -1
- package/build/core/FxCore.d.ts +8 -3
- package/build/core/FxCore.d.ts.map +1 -1
- package/build/core/FxCore.js +229 -27
- package/build/core/FxCore.js.map +1 -1
- package/build/error/common.js +1 -1
- package/build/error/common.js.map +1 -1
- package/build/error/index.d.ts +1 -0
- package/build/error/index.d.ts.map +1 -1
- package/build/error/index.js +1 -0
- package/build/error/index.js.map +1 -1
- package/build/index.d.ts +4 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +7 -1
- package/build/index.js.map +1 -1
- package/build/question/constants.d.ts.map +1 -1
- package/build/question/constants.js +6 -1
- package/build/question/constants.js.map +1 -1
- package/build/question/create.d.ts +8 -1
- package/build/question/create.d.ts.map +1 -1
- package/build/question/create.js +137 -48
- package/build/question/create.js.map +1 -1
- package/build/question/generator.js +2 -0
- package/build/question/generator.js.map +1 -1
- package/build/question/index.d.ts +2 -0
- package/build/question/index.d.ts.map +1 -1
- package/build/question/index.js +6 -0
- package/build/question/index.js.map +1 -1
- package/build/question/inputs/AddPluginInputs.d.ts +18 -0
- package/build/question/inputs/AddPluginInputs.d.ts.map +1 -0
- package/build/question/inputs/AddPluginInputs.js +5 -0
- package/build/question/inputs/AddPluginInputs.js.map +1 -0
- package/build/question/inputs/CreateProjectInputs.d.ts +4 -2
- package/build/question/inputs/CreateProjectInputs.d.ts.map +1 -1
- package/build/question/inputs/PermissionGrantInputs.d.ts +1 -1
- package/build/question/inputs/PermissionListInputs.d.ts +1 -1
- package/build/question/inputs/PreviewTeamsAppInputs.d.ts +1 -1
- package/build/question/inputs/SPFxAddWebpartInputs.d.ts +1 -1
- package/build/question/inputs/SelectTeamsManifestInputs.d.ts +1 -1
- package/build/question/inputs/ValidateTeamsAppInputs.d.ts +2 -2
- package/build/question/inputs/index.d.ts +1 -0
- package/build/question/inputs/index.d.ts.map +1 -1
- package/build/question/inputs/index.js +1 -0
- package/build/question/inputs/index.js.map +1 -1
- package/build/question/options/AddPluginOptions.d.ts +10 -0
- package/build/question/options/AddPluginOptions.d.ts.map +1 -0
- package/build/question/options/AddPluginOptions.js +39 -0
- package/build/question/options/AddPluginOptions.js.map +1 -0
- package/build/question/options/CreateProjectOptions.d.ts.map +1 -1
- package/build/question/options/CreateProjectOptions.js +9 -1
- package/build/question/options/CreateProjectOptions.js.map +1 -1
- package/build/question/options/PermissionGrantOptions.js +1 -1
- package/build/question/options/PermissionGrantOptions.js.map +1 -1
- package/build/question/options/PermissionListOptions.js +1 -1
- package/build/question/options/PermissionListOptions.js.map +1 -1
- package/build/question/options/PreviewTeamsAppOptions.js +1 -1
- package/build/question/options/PreviewTeamsAppOptions.js.map +1 -1
- package/build/question/options/SPFxAddWebpartOptions.js +1 -1
- package/build/question/options/SPFxAddWebpartOptions.js.map +1 -1
- package/build/question/options/SelectTeamsManifestOptions.js +1 -1
- package/build/question/options/SelectTeamsManifestOptions.js.map +1 -1
- package/build/question/options/ValidateTeamsAppOptions.js +1 -1
- package/build/question/options/ValidateTeamsAppOptions.js.map +1 -1
- package/build/question/options/index.d.ts +1 -0
- package/build/question/options/index.d.ts.map +1 -1
- package/build/question/options/index.js +1 -0
- package/build/question/options/index.js.map +1 -1
- package/build/question/other.d.ts +9 -0
- package/build/question/other.d.ts.map +1 -1
- package/build/question/other.js +167 -2
- package/build/question/other.js.map +1 -1
- package/build/question/questionNames.d.ts +6 -1
- package/build/question/questionNames.d.ts.map +1 -1
- package/build/question/questionNames.js +5 -0
- package/build/question/questionNames.js.map +1 -1
- package/package.json +14 -10
- package/resource/package.nls.json +51 -27
- package/resource/yaml-schema/v1.5/yaml.schema.json +122 -1
- package/resource/yaml-schema/yaml.schema.json +122 -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/build/question/create.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Copyright (c) Microsoft Corporation.
|
|
3
3
|
// Licensed under the MIT license.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.createProjectCliHelpNode = exports.createSampleProjectQuestionNode = exports.createProjectQuestionNode = exports.capabilitySubTree = exports.CustomCopilotAssistantOptions = exports.CustomCopilotRagOptions = exports.apiOperationQuestion = exports.apiMessageExtensionAuthQuestion = exports.openAIPluginManifestLocationQuestion = exports.apiSpecLocationQuestion = exports.ApiMessageExtensionAuthOptions = exports.RuntimeOptions = exports.appNameQuestion = exports.AppNamePattern = exports.folderQuestion = exports.programmingLanguageQuestion = exports.ProgrammingLanguage = exports.getLanguageOptions = exports.getOfficeAddinFramework = exports.getAddinFrameworkOptions = exports.officeAddinFrameworkQuestion = exports.officeAddinHostingQuestion = exports.SPFxImportFolderQuestion = exports.SPFxVersionOptionIds = exports.SPFxWebpartNameQuestion = exports.SPFxFrameworkQuestion = exports.SPFxPackageSelectQuestion = exports.NotificationTriggerOptions = exports.meArchitectureQuestion = exports.MeArchitectureOptions = exports.capabilityQuestion = exports.CapabilityOptions = exports.OfficeAddinHostOptions = exports.ProjectTypeOptions = exports.ScratchOptions = void 0;
|
|
5
|
+
exports.createProjectCliHelpNode = exports.createSampleProjectQuestionNode = exports.createProjectQuestionNode = exports.capabilitySubTree = exports.CustomCopilotAssistantOptions = exports.CustomCopilotRagOptions = exports.apiOperationQuestion = exports.apiMessageExtensionAuthQuestion = exports.openAIPluginManifestLocationQuestion = exports.apiSpecLocationQuestion = exports.ApiMessageExtensionAuthOptions = exports.RuntimeOptions = exports.appNameQuestion = exports.getSolutionName = exports.AppNamePattern = exports.folderQuestion = exports.programmingLanguageQuestion = exports.ProgrammingLanguage = exports.getLanguageOptions = exports.getOfficeAddinFramework = exports.getAddinFrameworkOptions = exports.officeAddinFrameworkQuestion = exports.officeAddinHostingQuestion = exports.SPFxImportFolderQuestion = exports.SPFxVersionOptionIds = exports.SPFxWebpartNameQuestion = exports.SPFxFrameworkQuestion = exports.SPFxPackageSelectQuestion = exports.NotificationTriggerOptions = exports.meArchitectureQuestion = exports.MeArchitectureOptions = exports.capabilityQuestion = exports.CapabilityOptions = exports.OfficeAddinHostOptions = exports.projectTypeQuestion = exports.ProjectTypeOptions = exports.ScratchOptions = void 0;
|
|
6
6
|
const tslib_1 = require("tslib");
|
|
7
7
|
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
8
8
|
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
@@ -21,7 +21,6 @@ const utils_2 = require("../component/driver/teamsApp/utils/utils");
|
|
|
21
21
|
const helper_1 = require("../component/generator/copilotPlugin/helper");
|
|
22
22
|
const projectConfig_1 = require("../component/generator/officeXMLAddin/projectConfig");
|
|
23
23
|
const error_1 = require("../component/generator/spfx/error");
|
|
24
|
-
const spfxGenerator_1 = require("../component/generator/spfx/spfxGenerator");
|
|
25
24
|
const constants_2 = require("../component/generator/spfx/utils/constants");
|
|
26
25
|
const utils_3 = require("../component/generator/spfx/utils/utils");
|
|
27
26
|
const utils_4 = require("../component/utils");
|
|
@@ -55,6 +54,7 @@ class ProjectTypeOptions {
|
|
|
55
54
|
id: "tab-type",
|
|
56
55
|
label: `${platform === teamsfx_api_1.Platform.VSCode ? "$(browser) " : ""}${localizeUtils_1.getLocalizedString("core.TabOption.label")}`,
|
|
57
56
|
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.tab.detail"),
|
|
57
|
+
groupName: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.createGroup.title"),
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
60
|
static bot(platform) {
|
|
@@ -62,6 +62,7 @@ class ProjectTypeOptions {
|
|
|
62
62
|
id: "bot-type",
|
|
63
63
|
label: `${platform === teamsfx_api_1.Platform.VSCode ? "$(hubot) " : ""}${localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.bot.label")}`,
|
|
64
64
|
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.bot.detail"),
|
|
65
|
+
groupName: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.createGroup.title"),
|
|
65
66
|
};
|
|
66
67
|
}
|
|
67
68
|
static me(platform) {
|
|
@@ -71,6 +72,7 @@ class ProjectTypeOptions {
|
|
|
71
72
|
detail: featureFlags_1.isCopilotPluginEnabled()
|
|
72
73
|
? localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.messageExtension.copilotEnabled.detail")
|
|
73
74
|
: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.messageExtension.detail"),
|
|
75
|
+
groupName: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.createGroup.title"),
|
|
74
76
|
};
|
|
75
77
|
}
|
|
76
78
|
static outlookAddin(platform) {
|
|
@@ -78,6 +80,7 @@ class ProjectTypeOptions {
|
|
|
78
80
|
id: "outlook-addin-type",
|
|
79
81
|
label: `${platform === teamsfx_api_1.Platform.VSCode ? "$(mail) " : ""}${localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.outlookAddin.label")}`,
|
|
80
82
|
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.outlookAddin.detail"),
|
|
83
|
+
groupName: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.createGroup.title"),
|
|
81
84
|
};
|
|
82
85
|
}
|
|
83
86
|
static officeXMLAddin(platform) {
|
|
@@ -85,6 +88,7 @@ class ProjectTypeOptions {
|
|
|
85
88
|
id: "office-xml-addin-type",
|
|
86
89
|
label: `${platform === teamsfx_api_1.Platform.VSCode ? "$(teamsfx-m365) " : ""}${localizeUtils_1.getLocalizedString("core.createProjectQuestion.officeXMLAddin.mainEntry.title")}`,
|
|
87
90
|
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.officeXMLAddin.mainEntry.detail"),
|
|
91
|
+
groupName: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.createGroup.title"),
|
|
88
92
|
};
|
|
89
93
|
}
|
|
90
94
|
static officeAddin(platform) {
|
|
@@ -92,6 +96,7 @@ class ProjectTypeOptions {
|
|
|
92
96
|
id: "office-addin-type",
|
|
93
97
|
label: `${platform === teamsfx_api_1.Platform.VSCode ? "$(extensions) " : ""}${localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.officeAddin.label")}`,
|
|
94
98
|
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.officeAddin.detail"),
|
|
99
|
+
groupName: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.createGroup.title"),
|
|
95
100
|
};
|
|
96
101
|
}
|
|
97
102
|
static officeAddinAllIds(platform) {
|
|
@@ -106,6 +111,7 @@ class ProjectTypeOptions {
|
|
|
106
111
|
id: "copilot-plugin-type",
|
|
107
112
|
label: `${platform === teamsfx_api_1.Platform.VSCode ? "$(teamsfx-copilot-plugin) " : ""}${localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.copilotPlugin.label")}`,
|
|
108
113
|
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.copilotPlugin.detail"),
|
|
114
|
+
groupName: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.createGroup.title"),
|
|
109
115
|
};
|
|
110
116
|
}
|
|
111
117
|
static customCopilot(platform) {
|
|
@@ -113,6 +119,23 @@ class ProjectTypeOptions {
|
|
|
113
119
|
id: "custom-copilot-type",
|
|
114
120
|
label: `${platform === teamsfx_api_1.Platform.VSCode ? "$(teamsfx-custom-copilot) " : ""}${localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.customCopilot.label")}`,
|
|
115
121
|
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.customCopilot.detail"),
|
|
122
|
+
groupName: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.createGroup.title"),
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
static startWithGithubCopilot() {
|
|
126
|
+
return {
|
|
127
|
+
id: "start-with-github-copilot",
|
|
128
|
+
label: `$(comment-discussion) ${localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.copilotHelp.label")}`,
|
|
129
|
+
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.copilotHelp.detail"),
|
|
130
|
+
groupName: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.copilotGroup.title"),
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
static customizeGpt() {
|
|
134
|
+
return {
|
|
135
|
+
id: "customize-gpt-type",
|
|
136
|
+
label: "Declarative Copilot",
|
|
137
|
+
detail: "Author a Declarative Copilot",
|
|
138
|
+
groupName: localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.createGroup.title"),
|
|
116
139
|
};
|
|
117
140
|
}
|
|
118
141
|
}
|
|
@@ -134,6 +157,11 @@ function projectTypeQuestion() {
|
|
|
134
157
|
dynamicOptions: (inputs) => {
|
|
135
158
|
var _a;
|
|
136
159
|
const staticOptions = [];
|
|
160
|
+
if (teamsfx_api_1.CLIPlatforms.includes(inputs.platform) &&
|
|
161
|
+
featureFlags_1.featureFlagManager.getBooleanValue(featureFlags_1.FeatureFlags.CustomizeGpt)) {
|
|
162
|
+
// Show in CLI only
|
|
163
|
+
staticOptions.push(ProjectTypeOptions.customizeGpt());
|
|
164
|
+
}
|
|
137
165
|
if (featureFlags_1.isApiCopilotPluginEnabled()) {
|
|
138
166
|
staticOptions.push(ProjectTypeOptions.copilotPlugin(inputs.platform));
|
|
139
167
|
}
|
|
@@ -146,11 +174,23 @@ function projectTypeQuestion() {
|
|
|
146
174
|
}
|
|
147
175
|
}
|
|
148
176
|
else {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
177
|
+
if (inputs.agent === "office") {
|
|
178
|
+
//only for @office agent, officeXMLAddin are supported
|
|
179
|
+
staticOptions.push(ProjectTypeOptions.officeXMLAddin(inputs.platform));
|
|
180
|
+
}
|
|
181
|
+
else {
|
|
182
|
+
if (featureFlags_1.isOfficeJSONAddinEnabled()) {
|
|
183
|
+
staticOptions.push(ProjectTypeOptions.officeAddin(inputs.platform));
|
|
184
|
+
}
|
|
185
|
+
else {
|
|
186
|
+
staticOptions.push(ProjectTypeOptions.outlookAddin(inputs.platform));
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
if (inputs.platform === teamsfx_api_1.Platform.VSCode &&
|
|
191
|
+
featureFlags_1.isChatParticipantEnabled() &&
|
|
192
|
+
!inputs.teamsAppFromTdp) {
|
|
193
|
+
staticOptions.push(ProjectTypeOptions.startWithGithubCopilot());
|
|
154
194
|
}
|
|
155
195
|
return staticOptions;
|
|
156
196
|
},
|
|
@@ -159,6 +199,7 @@ function projectTypeQuestion() {
|
|
|
159
199
|
skipSingleOption: true,
|
|
160
200
|
};
|
|
161
201
|
}
|
|
202
|
+
exports.projectTypeQuestion = projectTypeQuestion;
|
|
162
203
|
class OfficeAddinHostOptions {
|
|
163
204
|
static all(platform) {
|
|
164
205
|
return [
|
|
@@ -501,6 +542,9 @@ class CapabilityOptions {
|
|
|
501
542
|
CapabilityOptions.nonSsoTabAndBot(),
|
|
502
543
|
];
|
|
503
544
|
}
|
|
545
|
+
static customizeGptOptions() {
|
|
546
|
+
return [CapabilityOptions.customizeGptBasic(), CapabilityOptions.customizeGptWithPlugin()];
|
|
547
|
+
}
|
|
504
548
|
/**
|
|
505
549
|
* static capability list, which does not depend on any feature flags
|
|
506
550
|
*/
|
|
@@ -512,6 +556,7 @@ class CapabilityOptions {
|
|
|
512
556
|
...CapabilityOptions.copilotPlugins(),
|
|
513
557
|
...CapabilityOptions.customCopilots(),
|
|
514
558
|
...CapabilityOptions.tdpIntegrationCapabilities(),
|
|
559
|
+
...CapabilityOptions.customizeGptOptions(),
|
|
515
560
|
];
|
|
516
561
|
capabilityOptions.push(...CapabilityOptions.officeAddinStaticCapabilities());
|
|
517
562
|
return capabilityOptions;
|
|
@@ -528,23 +573,15 @@ class CapabilityOptions {
|
|
|
528
573
|
if (featureFlags_1.isApiCopilotPluginEnabled()) {
|
|
529
574
|
capabilityOptions.push(...CapabilityOptions.copilotPlugins());
|
|
530
575
|
}
|
|
576
|
+
if (featureFlags_1.featureFlagManager.getBooleanValue(featureFlags_1.FeatureFlags.CustomizeGpt)) {
|
|
577
|
+
capabilityOptions.push(...CapabilityOptions.customizeGptOptions());
|
|
578
|
+
}
|
|
531
579
|
capabilityOptions.push(...CapabilityOptions.customCopilots());
|
|
532
580
|
if (featureFlags_1.isTdpTemplateCliTestEnabled()) {
|
|
533
581
|
// test templates that are used by TDP integration only
|
|
534
582
|
capabilityOptions.push(...CapabilityOptions.tdpIntegrationCapabilities());
|
|
535
583
|
}
|
|
536
584
|
capabilityOptions.push(...CapabilityOptions.officeAddinDynamicCapabilities(inputs === null || inputs === void 0 ? void 0 : inputs.projectType, inputs === null || inputs === void 0 ? void 0 : inputs.host));
|
|
537
|
-
// if (isOfficeXMLAddinEnabled()) {
|
|
538
|
-
// capabilityOptions.push(
|
|
539
|
-
// ...[
|
|
540
|
-
// ...CapabilityOptions.officeAddinStaticCapabilities("word"),
|
|
541
|
-
// ...CapabilityOptions.officeAddinStaticCapabilities("excel"),
|
|
542
|
-
// ...CapabilityOptions.officeAddinStaticCapabilities("powerpoint"),
|
|
543
|
-
// ]
|
|
544
|
-
// );
|
|
545
|
-
// } else {
|
|
546
|
-
// capabilityOptions.push(...CapabilityOptions.officeAddinStaticCapabilities("json"));
|
|
547
|
-
// }
|
|
548
585
|
return capabilityOptions;
|
|
549
586
|
}
|
|
550
587
|
static outlookAddinImport() {
|
|
@@ -664,6 +701,21 @@ class CapabilityOptions {
|
|
|
664
701
|
detail: localizeUtils_1.getLocalizedString("core.createProjectQuestion.capability.customCopilotAssistantOption.detail"),
|
|
665
702
|
};
|
|
666
703
|
}
|
|
704
|
+
// customize GPT
|
|
705
|
+
static customizeGptBasic() {
|
|
706
|
+
return {
|
|
707
|
+
id: "basic-declarative-copilot",
|
|
708
|
+
label: "Basic Declarative Copilot",
|
|
709
|
+
detail: "A declarative Copilot skeleton you can author without any plugin",
|
|
710
|
+
};
|
|
711
|
+
}
|
|
712
|
+
static customizeGptWithPlugin() {
|
|
713
|
+
return {
|
|
714
|
+
id: "declarative-copilot-with-plugin-from-scratch",
|
|
715
|
+
label: "Declarative Copilot with a plugin using Azure Functions",
|
|
716
|
+
detail: "A declarative Copilot containing a Copilot plugin with a new API from Azure Functions",
|
|
717
|
+
};
|
|
718
|
+
}
|
|
667
719
|
}
|
|
668
720
|
exports.CapabilityOptions = CapabilityOptions;
|
|
669
721
|
function capabilityQuestion() {
|
|
@@ -697,6 +749,8 @@ function capabilityQuestion() {
|
|
|
697
749
|
return localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.copilotPlugin.title");
|
|
698
750
|
case ProjectTypeOptions.customCopilot().id:
|
|
699
751
|
return localizeUtils_1.getLocalizedString("core.createProjectQuestion.projectType.customCopilot.title");
|
|
752
|
+
case ProjectTypeOptions.customizeGpt().id:
|
|
753
|
+
return "Choose Declarative Copilot type";
|
|
700
754
|
default:
|
|
701
755
|
return localizeUtils_1.getLocalizedString("core.createCapabilityQuestion.titleNew");
|
|
702
756
|
}
|
|
@@ -744,6 +798,9 @@ function capabilityQuestion() {
|
|
|
744
798
|
else if (projectType === ProjectTypeOptions.customCopilot().id) {
|
|
745
799
|
return CapabilityOptions.customCopilots();
|
|
746
800
|
}
|
|
801
|
+
else if (projectType === ProjectTypeOptions.customizeGpt().id) {
|
|
802
|
+
return CapabilityOptions.customizeGptOptions();
|
|
803
|
+
}
|
|
747
804
|
else {
|
|
748
805
|
return CapabilityOptions.all(inputs);
|
|
749
806
|
}
|
|
@@ -1218,9 +1275,11 @@ function getLanguageOptions(inputs) {
|
|
|
1218
1275
|
// SPFx only supports typescript
|
|
1219
1276
|
return [{ id: ProgrammingLanguage.TS, label: "TypeScript" }];
|
|
1220
1277
|
}
|
|
1221
|
-
else if (constants_3.capabilitiesHavePythonOption.includes(capabilities) &&
|
|
1278
|
+
else if (constants_3.capabilitiesHavePythonOption.includes(inputs[capabilities] ? inputs[capabilities] : capabilities) &&
|
|
1222
1279
|
!(capabilities == CapabilityOptions.customCopilotRag().id &&
|
|
1223
|
-
inputs[CapabilityOptions.customCopilotRag().id] ==
|
|
1280
|
+
(inputs[CapabilityOptions.customCopilotRag().id] ==
|
|
1281
|
+
CustomCopilotRagOptions.microsoft365().id ||
|
|
1282
|
+
inputs[CapabilityOptions.customCopilotRag().id] == CustomCopilotRagOptions.customApi().id))) {
|
|
1224
1283
|
// support python language
|
|
1225
1284
|
return [
|
|
1226
1285
|
{ id: ProgrammingLanguage.JS, label: "JavaScript" },
|
|
@@ -1308,6 +1367,22 @@ function folderQuestion() {
|
|
|
1308
1367
|
}
|
|
1309
1368
|
exports.folderQuestion = folderQuestion;
|
|
1310
1369
|
exports.AppNamePattern = '^(?=(.*[\\da-zA-Z]){2})[a-zA-Z][^"<>:\\?/*&|\u0000-\u001F]*[^"\\s.<>:\\?/*&|\u0000-\u001F]$';
|
|
1370
|
+
async function getSolutionName(spfxFolder) {
|
|
1371
|
+
const yoInfoPath = path.join(spfxFolder, constants_2.Constants.YO_RC_FILE);
|
|
1372
|
+
if (await fs_extra_1.default.pathExists(yoInfoPath)) {
|
|
1373
|
+
const yoInfo = await fs_extra_1.default.readJson(yoInfoPath);
|
|
1374
|
+
if (yoInfo["@microsoft/generator-sharepoint"]) {
|
|
1375
|
+
return yoInfo["@microsoft/generator-sharepoint"][constants_2.Constants.YO_RC_SOLUTION_NAME];
|
|
1376
|
+
}
|
|
1377
|
+
else {
|
|
1378
|
+
return undefined;
|
|
1379
|
+
}
|
|
1380
|
+
}
|
|
1381
|
+
else {
|
|
1382
|
+
throw new error_2.FileNotFoundError(constants_2.Constants.PLUGIN_NAME, yoInfoPath, constants_2.Constants.IMPORT_HELP_LINK);
|
|
1383
|
+
}
|
|
1384
|
+
}
|
|
1385
|
+
exports.getSolutionName = getSolutionName;
|
|
1311
1386
|
function appNameQuestion() {
|
|
1312
1387
|
const question = {
|
|
1313
1388
|
type: "text",
|
|
@@ -1322,7 +1397,7 @@ function appNameQuestion() {
|
|
|
1322
1397
|
defaultName = utils_1.convertToAlphanumericOnly((_b = inputs.teamsAppFromTdp) === null || _b === void 0 ? void 0 : _b.appName);
|
|
1323
1398
|
}
|
|
1324
1399
|
else if (inputs[questionNames_1.QuestionNames.SPFxSolution] == "import") {
|
|
1325
|
-
defaultName = await
|
|
1400
|
+
defaultName = await getSolutionName(inputs[questionNames_1.QuestionNames.SPFxFolder]);
|
|
1326
1401
|
}
|
|
1327
1402
|
else if (inputs.openAIPluginManifest) {
|
|
1328
1403
|
defaultName = inputs.openAIPluginManifest.name_for_human;
|
|
@@ -1752,25 +1827,18 @@ function apiMessageExtensionAuthQuestion() {
|
|
|
1752
1827
|
placeholder: localizeUtils_1.getLocalizedString("core.createProjectQuestion.apiMessageExtensionAuth.placeholder"),
|
|
1753
1828
|
cliDescription: "The authentication type for the API.",
|
|
1754
1829
|
staticOptions: ApiMessageExtensionAuthOptions.all(),
|
|
1755
|
-
dynamicOptions: () =>
|
|
1756
|
-
const options = [ApiMessageExtensionAuthOptions.none()];
|
|
1757
|
-
if (featureFlags_1.isApiKeyEnabled()) {
|
|
1758
|
-
options.push(ApiMessageExtensionAuthOptions.apiKey());
|
|
1759
|
-
}
|
|
1760
|
-
if (featureFlags_1.isApiMeSSOEnabled()) {
|
|
1761
|
-
options.push(ApiMessageExtensionAuthOptions.microsoftEntra());
|
|
1762
|
-
}
|
|
1763
|
-
return options;
|
|
1764
|
-
},
|
|
1830
|
+
dynamicOptions: () => ApiMessageExtensionAuthOptions.all(),
|
|
1765
1831
|
default: ApiMessageExtensionAuthOptions.none().id,
|
|
1766
1832
|
};
|
|
1767
1833
|
}
|
|
1768
1834
|
exports.apiMessageExtensionAuthQuestion = apiMessageExtensionAuthQuestion;
|
|
1769
|
-
function apiOperationQuestion(includeExistingAPIs = true) {
|
|
1835
|
+
function apiOperationQuestion(includeExistingAPIs = true, isAddPlugin = false) {
|
|
1770
1836
|
// export for unit test
|
|
1771
1837
|
let placeholder = "";
|
|
1772
1838
|
const isPlugin = (inputs) => {
|
|
1773
|
-
return (
|
|
1839
|
+
return (isAddPlugin ||
|
|
1840
|
+
(!!inputs &&
|
|
1841
|
+
inputs[questionNames_1.QuestionNames.Capabilities] === CapabilityOptions.copilotPluginApiSpec().id));
|
|
1774
1842
|
};
|
|
1775
1843
|
return {
|
|
1776
1844
|
type: "multiSelect",
|
|
@@ -1780,7 +1848,9 @@ function apiOperationQuestion(includeExistingAPIs = true) {
|
|
|
1780
1848
|
? localizeUtils_1.getLocalizedString("core.createProjectQuestion.apiSpec.copilotOperation.title")
|
|
1781
1849
|
: localizeUtils_1.getLocalizedString("core.createProjectQuestion.apiSpec.operation.title");
|
|
1782
1850
|
},
|
|
1783
|
-
cliDescription:
|
|
1851
|
+
cliDescription: isAddPlugin
|
|
1852
|
+
? "Select operation(s) Copilot can interact with."
|
|
1853
|
+
: "Select operation(s) Teams can interact with.",
|
|
1784
1854
|
cliShortName: "o",
|
|
1785
1855
|
placeholder: (inputs) => {
|
|
1786
1856
|
const isPlugin = inputs[questionNames_1.QuestionNames.Capabilities] === CapabilityOptions.copilotPluginApiSpec().id;
|
|
@@ -1790,11 +1860,8 @@ function apiOperationQuestion(includeExistingAPIs = true) {
|
|
|
1790
1860
|
else if (isPlugin) {
|
|
1791
1861
|
placeholder = ""; // TODO: add placeholder for api plugin
|
|
1792
1862
|
}
|
|
1793
|
-
else if (featureFlags_1.isApiKeyEnabled()) {
|
|
1794
|
-
placeholder = localizeUtils_1.getLocalizedString("core.createProjectQuestion.apiSpec.operation.apikey.placeholder");
|
|
1795
|
-
}
|
|
1796
1863
|
else {
|
|
1797
|
-
placeholder = localizeUtils_1.getLocalizedString("core.createProjectQuestion.apiSpec.operation.placeholder");
|
|
1864
|
+
placeholder = localizeUtils_1.getLocalizedString("core.createProjectQuestion.apiSpec.operation.apikey.placeholder");
|
|
1798
1865
|
}
|
|
1799
1866
|
return placeholder;
|
|
1800
1867
|
},
|
|
@@ -1802,12 +1869,15 @@ function apiOperationQuestion(includeExistingAPIs = true) {
|
|
|
1802
1869
|
staticOptions: [],
|
|
1803
1870
|
validation: {
|
|
1804
1871
|
validFunc: (input, inputs) => {
|
|
1872
|
+
if (!inputs) {
|
|
1873
|
+
throw new Error("inputs is undefined"); // should never happen
|
|
1874
|
+
}
|
|
1805
1875
|
if (input.length < 1 ||
|
|
1806
1876
|
(input.length > 10 &&
|
|
1807
|
-
|
|
1877
|
+
inputs[questionNames_1.QuestionNames.CustomCopilotRag] != CustomCopilotRagOptions.customApi().id)) {
|
|
1808
1878
|
return localizeUtils_1.getLocalizedString("core.createProjectQuestion.apiSpec.operation.invalidMessage", input.length, 10);
|
|
1809
1879
|
}
|
|
1810
|
-
const operations = inputs
|
|
1880
|
+
const operations = inputs.supportedApisFromApiSpec;
|
|
1811
1881
|
const authNames = new Set();
|
|
1812
1882
|
const serverUrls = new Set();
|
|
1813
1883
|
for (const inputItem of input) {
|
|
@@ -1825,6 +1895,10 @@ function apiOperationQuestion(includeExistingAPIs = true) {
|
|
|
1825
1895
|
if (serverUrls.size > 1) {
|
|
1826
1896
|
return localizeUtils_1.getLocalizedString("core.createProjectQuestion.apiSpec.operation.multipleServer", Array.from(serverUrls).join(", "));
|
|
1827
1897
|
}
|
|
1898
|
+
const authApi = operations.find((api) => !!api.data.authName && input.includes(api.id));
|
|
1899
|
+
if (authApi) {
|
|
1900
|
+
inputs.apiAuthData = authApi.data;
|
|
1901
|
+
}
|
|
1828
1902
|
},
|
|
1829
1903
|
},
|
|
1830
1904
|
dynamicOptions: (inputs) => {
|
|
@@ -1871,7 +1945,7 @@ class CustomCopilotRagOptions {
|
|
|
1871
1945
|
return [
|
|
1872
1946
|
CustomCopilotRagOptions.customize(),
|
|
1873
1947
|
CustomCopilotRagOptions.azureAISearch(),
|
|
1874
|
-
|
|
1948
|
+
CustomCopilotRagOptions.customApi(),
|
|
1875
1949
|
CustomCopilotRagOptions.microsoft365(),
|
|
1876
1950
|
];
|
|
1877
1951
|
}
|
|
@@ -1985,6 +2059,14 @@ function azureOpenAIEndpointQuestion() {
|
|
|
1985
2059
|
placeholder: localizeUtils_1.getLocalizedString("core.createProjectQuestion.llmService.azureOpenAIEndpoint.placeholder"),
|
|
1986
2060
|
};
|
|
1987
2061
|
}
|
|
2062
|
+
function azureOpenAIDeploymentNameQuestion() {
|
|
2063
|
+
return {
|
|
2064
|
+
type: "text",
|
|
2065
|
+
name: questionNames_1.QuestionNames.AzureOpenAIDeploymentName,
|
|
2066
|
+
title: localizeUtils_1.getLocalizedString("core.createProjectQuestion.llmService.azureOpenAIDeploymentName.title"),
|
|
2067
|
+
placeholder: localizeUtils_1.getLocalizedString("core.createProjectQuestion.llmService.azureOpenAIDeploymentName.placeholder"),
|
|
2068
|
+
};
|
|
2069
|
+
}
|
|
1988
2070
|
function capabilitySubTree() {
|
|
1989
2071
|
const node = {
|
|
1990
2072
|
data: capabilityQuestion(),
|
|
@@ -2056,11 +2138,6 @@ function capabilitySubTree() {
|
|
|
2056
2138
|
data: { type: "group", name: questionNames_1.QuestionNames.CopilotPluginExistingApi },
|
|
2057
2139
|
children: [
|
|
2058
2140
|
{
|
|
2059
|
-
condition: (inputs) => {
|
|
2060
|
-
return (inputs[questionNames_1.QuestionNames.Capabilities] ===
|
|
2061
|
-
CapabilityOptions.copilotPluginApiSpec().id ||
|
|
2062
|
-
inputs[questionNames_1.QuestionNames.MeArchitectureType] === MeArchitectureOptions.apiSpec().id);
|
|
2063
|
-
},
|
|
2064
2141
|
data: apiSpecLocationQuestion(),
|
|
2065
2142
|
},
|
|
2066
2143
|
// {
|
|
@@ -2074,8 +2151,7 @@ function capabilitySubTree() {
|
|
|
2074
2151
|
},
|
|
2075
2152
|
{
|
|
2076
2153
|
condition: (inputs) => {
|
|
2077
|
-
return
|
|
2078
|
-
inputs[questionNames_1.QuestionNames.MeArchitectureType] == MeArchitectureOptions.newApi().id);
|
|
2154
|
+
return inputs[questionNames_1.QuestionNames.MeArchitectureType] == MeArchitectureOptions.newApi().id;
|
|
2079
2155
|
},
|
|
2080
2156
|
data: apiMessageExtensionAuthQuestion(),
|
|
2081
2157
|
},
|
|
@@ -2113,6 +2189,7 @@ function capabilitySubTree() {
|
|
|
2113
2189
|
inputs[questionNames_1.QuestionNames.Capabilities] !== CapabilityOptions.copilotPluginApiSpec().id &&
|
|
2114
2190
|
inputs[questionNames_1.QuestionNames.Capabilities] !==
|
|
2115
2191
|
CapabilityOptions.copilotPluginOpenAIPlugin().id &&
|
|
2192
|
+
inputs[questionNames_1.QuestionNames.Capabilities] !== CapabilityOptions.customizeGptBasic().id &&
|
|
2116
2193
|
inputs[questionNames_1.QuestionNames.MeArchitectureType] !== MeArchitectureOptions.apiSpec().id &&
|
|
2117
2194
|
inputs[questionNames_1.QuestionNames.Capabilities] !== CapabilityOptions.officeAddinImport().id &&
|
|
2118
2195
|
inputs[questionNames_1.QuestionNames.Capabilities] !== CapabilityOptions.outlookAddinImport().id);
|
|
@@ -2136,6 +2213,15 @@ function capabilitySubTree() {
|
|
|
2136
2213
|
return ((_a = inputs[questionNames_1.QuestionNames.AzureOpenAIKey]) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
2137
2214
|
},
|
|
2138
2215
|
data: azureOpenAIEndpointQuestion(),
|
|
2216
|
+
children: [
|
|
2217
|
+
{
|
|
2218
|
+
condition: (inputs) => {
|
|
2219
|
+
var _a;
|
|
2220
|
+
return ((_a = inputs[questionNames_1.QuestionNames.AzureOpenAIEndpoint]) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
2221
|
+
},
|
|
2222
|
+
data: azureOpenAIDeploymentNameQuestion(),
|
|
2223
|
+
},
|
|
2224
|
+
],
|
|
2139
2225
|
},
|
|
2140
2226
|
],
|
|
2141
2227
|
},
|
|
@@ -2162,6 +2248,9 @@ function capabilitySubTree() {
|
|
|
2162
2248
|
data: appNameQuestion(),
|
|
2163
2249
|
},
|
|
2164
2250
|
],
|
|
2251
|
+
condition: (inputs) => {
|
|
2252
|
+
return inputs[questionNames_1.QuestionNames.ProjectType] !== ProjectTypeOptions.startWithGithubCopilot().id;
|
|
2253
|
+
},
|
|
2165
2254
|
};
|
|
2166
2255
|
return node;
|
|
2167
2256
|
}
|