diff --git a/packages/fx-core/src/component/generator/templates/templateNames.ts b/packages/fx-core/src/component/generator/templates/templateNames.ts index 4a3fb00690..4248e21538 100644 --- a/packages/fx-core/src/component/generator/templates/templateNames.ts +++ b/packages/fx-core/src/component/generator/templates/templateNames.ts @@ -33,7 +33,6 @@ export enum TemplateNames { MessageExtension = "message-extension", MessageExtensionAction = "message-extension-action", MessageExtensionSearch = "message-extension-search", - MessageExtensionCopilot = "message-extension-copilot", M365MessageExtension = "m365-message-extension", TabAndDefaultBot = "non-sso-tab-default-bot", BotAndMessageExtension = "default-bot-message-extension", @@ -85,8 +84,6 @@ export const Feature2TemplateName = { [`${CapabilityOptions.me().id}:undefined`]: TemplateNames.MessageExtension, [`${CapabilityOptions.collectFormMe().id}:undefined`]: TemplateNames.MessageExtensionAction, [`${CapabilityOptions.SearchMe().id}:undefined`]: TemplateNames.MessageExtensionSearch, - [`${CapabilityOptions.m365SearchMe().id}:undefined:${MeArchitectureOptions.botPlugin().id}`]: - TemplateNames.MessageExtensionCopilot, [`${CapabilityOptions.m365SearchMe().id}:undefined:${MeArchitectureOptions.botMe().id}`]: TemplateNames.M365MessageExtension, [`${CapabilityOptions.nonSsoTabAndBot().id}:undefined`]: TemplateNames.TabAndDefaultBot, @@ -204,13 +201,6 @@ export const inputsToTemplateName: Map<{ [key: string]: any }, TemplateNames> = { [QuestionNames.Capabilities]: CapabilityOptions.SearchMe().id }, TemplateNames.MessageExtensionSearch, ], - [ - { - [QuestionNames.Capabilities]: CapabilityOptions.m365SearchMe().id, - [QuestionNames.MeArchitectureType]: MeArchitectureOptions.botPlugin().id, - }, - TemplateNames.MessageExtensionCopilot, - ], [ { [QuestionNames.Capabilities]: CapabilityOptions.m365SearchMe().id, diff --git a/packages/fx-core/src/question/constants.ts b/packages/fx-core/src/question/constants.ts index 99eb8fd76c..e0b61bba8d 100644 --- a/packages/fx-core/src/question/constants.ts +++ b/packages/fx-core/src/question/constants.ts @@ -835,19 +835,6 @@ export class MeArchitectureOptions { }; } - static botPlugin(): OptionItem { - return { - id: "bot-plugin", - label: getLocalizedString("core.createProjectQuestion.capability.botMessageExtension.label"), - detail: getLocalizedString( - "core.createProjectQuestion.capability.botMessageExtension.detail" - ), - description: getLocalizedString( - "core.createProjectQuestion.option.description.worksInOutlookCopilot" - ), - }; - } - static newApi(): OptionItem { return { id: "new-api", @@ -876,7 +863,7 @@ export class MeArchitectureOptions { return [ MeArchitectureOptions.newApi(), MeArchitectureOptions.apiSpec(), - MeArchitectureOptions.botPlugin(), + MeArchitectureOptions.botMe(), ]; } @@ -884,7 +871,6 @@ export class MeArchitectureOptions { return [ MeArchitectureOptions.newApi(), MeArchitectureOptions.apiSpec(), - MeArchitectureOptions.botPlugin(), MeArchitectureOptions.botMe(), ]; } diff --git a/packages/fx-core/src/question/inputs/CreateProjectInputs.ts b/packages/fx-core/src/question/inputs/CreateProjectInputs.ts index eb285462a8..7bf9d8b0bc 100644 --- a/packages/fx-core/src/question/inputs/CreateProjectInputs.ts +++ b/packages/fx-core/src/question/inputs/CreateProjectInputs.ts @@ -57,7 +57,7 @@ export interface CreateProjectInputs extends Inputs { /** @description SPFx solution folder */ "spfx-folder"?: string; /** @description Architecture of Search Based Message Extension */ - "me-architecture"?: "new-api" | "api-spec" | "bot-plugin" | "bot"; + "me-architecture"?: "new-api" | "api-spec" | "bot"; /** @description Create Declarative Agent */ "with-plugin"?: "no" | "yes"; /** @description Create API Plugin */ diff --git a/packages/fx-core/src/question/options/CreateProjectOptions.ts b/packages/fx-core/src/question/options/CreateProjectOptions.ts index af3bf88bcc..b7d26a520e 100644 --- a/packages/fx-core/src/question/options/CreateProjectOptions.ts +++ b/packages/fx-core/src/question/options/CreateProjectOptions.ts @@ -106,7 +106,7 @@ export const CreateProjectOptions: CLICommandOption[] = [ shortName: "m", description: "Architecture of Search Based Message Extension.", default: "new-api", - choices: ["new-api", "api-spec", "bot-plugin", "bot"], + choices: ["new-api", "api-spec", "bot"], }, { name: "with-plugin",