@microsoft/teamsfx-core 3.0.0-alpha.e2e4e5205.0 → 3.0.0-alpha.e3f6ce706.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.
Files changed (136) hide show
  1. package/build/client/graphClient.d.ts +6 -1
  2. package/build/client/graphClient.d.ts.map +1 -1
  3. package/build/client/graphClient.js +49 -18
  4. package/build/client/graphClient.js.map +1 -1
  5. package/build/common/daSpecParser.d.ts +1 -1
  6. package/build/common/daSpecParser.d.ts.map +1 -1
  7. package/build/common/daSpecParser.js +44 -21
  8. package/build/common/daSpecParser.js.map +1 -1
  9. package/build/common/featureFlags.d.ts +0 -5
  10. package/build/common/featureFlags.d.ts.map +1 -1
  11. package/build/common/featureFlags.js +0 -5
  12. package/build/common/featureFlags.js.map +1 -1
  13. package/build/common/templates-config.json +1 -1
  14. package/build/common/wrappedAxiosClient.d.ts.map +1 -1
  15. package/build/common/wrappedAxiosClient.js +3 -0
  16. package/build/common/wrappedAxiosClient.js.map +1 -1
  17. package/build/component/coordinator/index.d.ts.map +1 -1
  18. package/build/component/coordinator/index.js +5 -6
  19. package/build/component/coordinator/index.js.map +1 -1
  20. package/build/component/driver/teamsApp/createAppPackage.d.ts.map +1 -1
  21. package/build/component/driver/teamsApp/createAppPackage.js +4 -4
  22. package/build/component/driver/teamsApp/createAppPackage.js.map +1 -1
  23. package/build/component/driver/teamsApp/utils/ManifestUtils.d.ts.map +1 -1
  24. package/build/component/driver/teamsApp/utils/ManifestUtils.js +29 -29
  25. package/build/component/driver/teamsApp/utils/ManifestUtils.js.map +1 -1
  26. package/build/component/driver/typeSpec/compile.d.ts.map +1 -1
  27. package/build/component/driver/typeSpec/compile.js +1 -2
  28. package/build/component/driver/typeSpec/compile.js.map +1 -1
  29. package/build/component/generator/combinedProject/generator.d.ts.map +1 -1
  30. package/build/component/generator/combinedProject/generator.js +1 -1
  31. package/build/component/generator/combinedProject/generator.js.map +1 -1
  32. package/build/component/generator/openApiSpec/helper.d.ts +1 -1
  33. package/build/component/generator/openApiSpec/helper.d.ts.map +1 -1
  34. package/build/component/generator/openApiSpec/helper.js +4 -3
  35. package/build/component/generator/openApiSpec/helper.js.map +1 -1
  36. package/build/component/m365/serviceConstant.d.ts.map +1 -1
  37. package/build/component/m365/serviceConstant.js +10 -0
  38. package/build/component/m365/serviceConstant.js.map +1 -1
  39. package/build/component/migrate.d.ts.map +1 -1
  40. package/build/component/migrate.js +1 -2
  41. package/build/component/migrate.js.map +1 -1
  42. package/build/core/FxCore.d.ts +6 -1
  43. package/build/core/FxCore.d.ts.map +1 -1
  44. package/build/core/FxCore.js +106 -4
  45. package/build/core/FxCore.js.map +1 -1
  46. package/build/core/middleware/retry.d.ts +3 -0
  47. package/build/core/middleware/retry.d.ts.map +1 -0
  48. package/build/core/middleware/retry.js +30 -0
  49. package/build/core/middleware/retry.js.map +1 -0
  50. package/build/error/common.d.ts +15 -0
  51. package/build/error/common.d.ts.map +1 -1
  52. package/build/error/common.js +57 -1
  53. package/build/error/common.js.map +1 -1
  54. package/build/index.d.ts +3 -0
  55. package/build/index.d.ts.map +1 -1
  56. package/build/index.js +17 -4
  57. package/build/index.js.map +1 -1
  58. package/build/question/constants.d.ts +2 -206
  59. package/build/question/constants.d.ts.map +1 -1
  60. package/build/question/constants.js +6 -683
  61. package/build/question/constants.js.map +1 -1
  62. package/build/question/create.d.ts +4 -9
  63. package/build/question/create.d.ts.map +1 -1
  64. package/build/question/create.js +159 -555
  65. package/build/question/create.js.map +1 -1
  66. package/build/question/index.d.ts +1 -0
  67. package/build/question/index.d.ts.map +1 -1
  68. package/build/question/index.js +3 -1
  69. package/build/question/index.js.map +1 -1
  70. package/build/question/other.d.ts +1 -0
  71. package/build/question/other.d.ts.map +1 -1
  72. package/build/question/other.js +16 -2
  73. package/build/question/other.js.map +1 -1
  74. package/build/question/questionNames.d.ts +131 -0
  75. package/build/question/questionNames.d.ts.map +1 -0
  76. package/build/question/questionNames.js +137 -0
  77. package/build/question/questionNames.js.map +1 -0
  78. package/build/question/scaffold/vs/createRootNode.d.ts +1 -0
  79. package/build/question/scaffold/vs/createRootNode.d.ts.map +1 -1
  80. package/build/question/scaffold/vs/createRootNode.js +14 -6
  81. package/build/question/scaffold/vs/createRootNode.js.map +1 -1
  82. package/build/question/scaffold/vsc/CapabilityOptions.d.ts +6 -1
  83. package/build/question/scaffold/vsc/CapabilityOptions.d.ts.map +1 -1
  84. package/build/question/scaffold/vsc/CapabilityOptions.js +43 -14
  85. package/build/question/scaffold/vsc/CapabilityOptions.js.map +1 -1
  86. package/build/question/scaffold/vsc/ProjectTypeOptions.d.ts +4 -1
  87. package/build/question/scaffold/vsc/ProjectTypeOptions.d.ts.map +1 -1
  88. package/build/question/scaffold/vsc/ProjectTypeOptions.js +15 -11
  89. package/build/question/scaffold/vsc/ProjectTypeOptions.js.map +1 -1
  90. package/build/question/scaffold/vsc/agentForTeamsNode.js +11 -11
  91. package/build/question/scaffold/vsc/agentForTeamsNode.js.map +1 -1
  92. package/build/question/scaffold/vsc/createFromTdpNode.d.ts +1 -7
  93. package/build/question/scaffold/vsc/createFromTdpNode.d.ts.map +1 -1
  94. package/build/question/scaffold/vsc/createFromTdpNode.js +11 -45
  95. package/build/question/scaffold/vsc/createFromTdpNode.js.map +1 -1
  96. package/build/question/scaffold/vsc/createRootNode.d.ts.map +1 -1
  97. package/build/question/scaffold/vsc/createRootNode.js +26 -11
  98. package/build/question/scaffold/vsc/createRootNode.js.map +1 -1
  99. package/build/question/scaffold/vsc/customEngineAgentNode.js +2 -2
  100. package/build/question/scaffold/vsc/customEngineAgentNode.js.map +1 -1
  101. package/build/question/scaffold/vsc/daProjectTypeNode.d.ts +2 -1
  102. package/build/question/scaffold/vsc/daProjectTypeNode.d.ts.map +1 -1
  103. package/build/question/scaffold/vsc/daProjectTypeNode.js +16 -22
  104. package/build/question/scaffold/vsc/daProjectTypeNode.js.map +1 -1
  105. package/build/question/scaffold/vsc/graphConnectorProjectTypeNode.d.ts.map +1 -1
  106. package/build/question/scaffold/vsc/graphConnectorProjectTypeNode.js +0 -1
  107. package/build/question/scaffold/vsc/graphConnectorProjectTypeNode.js.map +1 -1
  108. package/build/question/scaffold/vsc/officeAddinProjectTypeNode.js +9 -9
  109. package/build/question/scaffold/vsc/officeAddinProjectTypeNode.js.map +1 -1
  110. package/build/question/scaffold/vsc/teamsProjectTypeNode.js +14 -14
  111. package/build/question/scaffold/vsc/teamsProjectTypeNode.js.map +1 -1
  112. package/build/tsconfig.tsbuildinfo +1 -1
  113. package/package.json +6 -4
  114. package/resource/package.nls.cs.json +87 -81
  115. package/resource/package.nls.de.json +87 -81
  116. package/resource/package.nls.es.json +87 -81
  117. package/resource/package.nls.fr.json +87 -81
  118. package/resource/package.nls.it.json +87 -81
  119. package/resource/package.nls.ja.json +87 -81
  120. package/resource/package.nls.json +13 -12
  121. package/resource/package.nls.ko.json +87 -81
  122. package/resource/package.nls.pl.json +79 -73
  123. package/resource/package.nls.pt-BR.json +87 -81
  124. package/resource/package.nls.ru.json +152 -146
  125. package/resource/package.nls.tr.json +87 -81
  126. package/resource/package.nls.zh-Hans.json +79 -73
  127. package/resource/package.nls.zh-Hant.json +87 -81
  128. package/templates/fallback/common.zip +0 -0
  129. package/templates/fallback/csharp.zip +0 -0
  130. package/templates/fallback/js.zip +0 -0
  131. package/templates/fallback/python.zip +0 -0
  132. package/templates/fallback/ts.zip +0 -0
  133. package/build/component/driver/typeSpec/error/reProvisionError.d.ts +0 -5
  134. package/build/component/driver/typeSpec/error/reProvisionError.d.ts.map +0 -1
  135. package/build/component/driver/typeSpec/error/reProvisionError.js +0 -21
  136. package/build/component/driver/typeSpec/error/reProvisionError.js.map +0 -1
@@ -2,143 +2,12 @@
2
2
  // Copyright (c) Microsoft Corporation.
3
3
  // Licensed under the MIT license.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.KnowledgeSearchTypeOptions = exports.KnowledgeSourceOptions = exports.GCSelectOptions = exports.ActionStartOptions = exports.DeclarativeCopilotTypeOptions = exports.HubOptions = exports.HubTypes = exports.TeamsAppValidationOptions = exports.recommendedLocations = exports.CustomCopilotAssistantOptions = exports.CustomCopilotRagOptions = exports.SPFxVersionOptionIds = exports.NotificationTriggerOptions = exports.NotificationTriggers = exports.HostType = exports.MeArchitectureOptions = exports.AddAuthActionAuthTypeOptions = exports.ApiAuthOptions = exports.CapabilityOptions = exports.ProjectTypeOptions = exports.ScratchOptions = exports.getRuntime = exports.RuntimeOptions = exports.capabilitiesHavePythonOption = exports.DeclarativeAgentApiSpecOptionId = exports.ProgrammingLanguage = exports.CliQuestionName = exports.AppNamePattern = exports.ProjectTypeGroup = exports.QuestionNames = void 0;
6
- const teamsfx_api_1 = require("@microsoft/teamsfx-api");
5
+ exports.KnowledgeSearchTypeOptions = exports.KnowledgeSourceOptions = exports.GCSelectOptions = exports.ActionStartOptions = exports.HubOptions = exports.HubTypes = exports.TeamsAppValidationOptions = exports.recommendedLocations = exports.CustomCopilotAssistantOptions = exports.CustomCopilotRagOptions = exports.SPFxVersionOptionIds = exports.NotificationTriggerOptions = exports.NotificationTriggers = exports.HostType = exports.MeArchitectureOptions = exports.AddAuthActionAuthTypeOptions = exports.ApiAuthOptions = exports.ScratchOptions = exports.capabilitiesHavePythonOption = exports.DeclarativeAgentApiSpecOptionId = exports.ProgrammingLanguage = exports.CliQuestionName = exports.AppNamePattern = exports.QuestionNames = void 0;
7
6
  const featureFlags_1 = require("../common/featureFlags");
8
7
  const localizeUtils_1 = require("../common/localizeUtils");
9
- var QuestionNames;
10
- (function (QuestionNames) {
11
- QuestionNames["Scratch"] = "scratch";
12
- QuestionNames["SctatchYes"] = "scratch-yes";
13
- QuestionNames["AppName"] = "app-name";
14
- QuestionNames["Folder"] = "folder";
15
- QuestionNames["ProjectPath"] = "projectPath";
16
- QuestionNames["ProgrammingLanguage"] = "programming-language";
17
- QuestionNames["ProjectType"] = "project-type";
18
- QuestionNames["Capabilities"] = "capabilities";
19
- QuestionNames["TeamsAppType"] = "teams-app-type";
20
- QuestionNames["BotTrigger"] = "bot-host-type-trigger";
21
- QuestionNames["Runtime"] = "runtime";
22
- QuestionNames["SPFxSolution"] = "spfx-solution";
23
- QuestionNames["SPFxInstallPackage"] = "spfx-install-latest-package";
24
- QuestionNames["SPFxFramework"] = "spfx-framework-type";
25
- QuestionNames["SPFxWebpartName"] = "spfx-webpart-name";
26
- QuestionNames["SPFxWebpartDesc"] = "spfx-webpart-desp";
27
- QuestionNames["SPFxFolder"] = "spfx-folder";
28
- QuestionNames["OfficeAddinFolder"] = "addin-project-folder";
29
- QuestionNames["OfficeAddinManifest"] = "addin-project-manifest";
30
- QuestionNames["OfficeAddinTemplate"] = "addin-template-select";
31
- QuestionNames["OfficeAddinHost"] = "addin-host";
32
- QuestionNames["OfficeAddinImport"] = "addin-import";
33
- QuestionNames["OfficeAddinFramework"] = "office-addin-framework-type";
34
- QuestionNames["Samples"] = "samples";
35
- QuestionNames["ReplaceContentUrl"] = "replaceContentUrl";
36
- QuestionNames["ReplaceWebsiteUrl"] = "replaceWebsiteUrl";
37
- QuestionNames["ReplaceBotIds"] = "replaceBotIds";
38
- QuestionNames["SafeProjectName"] = "safeProjectName";
39
- QuestionNames["RepalceTabUrl"] = "tdp-tab-url";
40
- QuestionNames["ValidateMethod"] = "validate-method";
41
- QuestionNames["AppPackagePath"] = "appPackagePath";
42
- QuestionNames["FromExistingApi"] = "from-existing-api";
43
- QuestionNames["SearchOpenAPISpecQuery"] = "search-openapi-spec-query";
44
- QuestionNames["SelectOpenApiSpec"] = "select-openapi-spec";
45
- QuestionNames["OpenAPISpecType"] = "openapi-spec-type";
46
- QuestionNames["ApiSpecLocation"] = "openapi-spec-location";
47
- QuestionNames["ApiOperation"] = "api-operation";
48
- QuestionNames["ActionManifestPath"] = "external-api-plugin-manifest-path";
49
- QuestionNames["MeArchitectureType"] = "me-architecture";
50
- QuestionNames["ApiSpecApiKey"] = "api-key";
51
- QuestionNames["ApiSpecApiKeyConfirm"] = "api-key-confirm";
52
- QuestionNames["ApiAuth"] = "api-auth";
53
- QuestionNames["OauthClientSecret"] = "oauth-client-secret";
54
- QuestionNames["OauthClientId"] = "oauth-client-id";
55
- QuestionNames["OauthConfirm"] = "oauth-confirm";
56
- QuestionNames["CustomCopilotRag"] = "custom-copilot-rag";
57
- QuestionNames["CustomCopilotAssistant"] = "custom-copilot-agent";
58
- QuestionNames["LLMService"] = "llm-service";
59
- QuestionNames["OpenAIKey"] = "openai-key";
60
- QuestionNames["OpenAIEmbeddingModel"] = "openai-embedding-model";
61
- QuestionNames["AzureOpenAIKey"] = "azure-openai-key";
62
- QuestionNames["AzureOpenAIEndpoint"] = "azure-openai-endpoint";
63
- QuestionNames["AzureOpenAIDeploymentName"] = "azure-openai-deployment-name";
64
- QuestionNames["AzureOpenAIEmbeddingDeploymentName"] = "azure-openai-embedding-deployment-name";
65
- QuestionNames["AzureAISearchApiKey"] = "azure-ai-search-api-key";
66
- QuestionNames["AzureAISearchEndpoint"] = "azure-ai-search-endpoint";
67
- QuestionNames["Features"] = "features";
68
- QuestionNames["Env"] = "env";
69
- QuestionNames["SourceEnvName"] = "sourceEnvName";
70
- QuestionNames["TargetEnvName"] = "targetEnvName";
71
- QuestionNames["TargetResourceGroupName"] = "targetResourceGroupName";
72
- QuestionNames["NewResourceGroupName"] = "newResourceGroupName";
73
- QuestionNames["NewResourceGroupLocation"] = "newResourceGroupLocation";
74
- QuestionNames["NewTargetEnvName"] = "newTargetEnvName";
75
- QuestionNames["ExistingTabEndpoint"] = "existing-tab-endpoint";
76
- QuestionNames["TeamsAppManifestFilePath"] = "manifest-path";
77
- QuestionNames["LocalTeamsAppManifestFilePath"] = "local-manifest-path";
78
- QuestionNames["AadAppManifestFilePath"] = "manifest-file-path";
79
- QuestionNames["TeamsAppPackageFilePath"] = "app-package-file-path";
80
- QuestionNames["ConfirmManifest"] = "confirmManifest";
81
- QuestionNames["ConfirmLocalManifest"] = "confirmLocalManifest";
82
- QuestionNames["ConfirmAadManifest"] = "confirmAadManifest";
83
- QuestionNames["OutputZipPathParamName"] = "output-zip-path";
84
- QuestionNames["OutputManifestParamName"] = "output-manifest-path";
85
- QuestionNames["OutputFolderParamName"] = "output-folder";
86
- QuestionNames["M365Host"] = "m365-host";
87
- QuestionNames["ManifestPath"] = "manifest-path";
88
- QuestionNames["ManifestId"] = "manifest-id";
89
- QuestionNames["TeamsAppId"] = "teams-app-id";
90
- QuestionNames["TitleId"] = "title-id";
91
- QuestionNames["UserEmail"] = "email";
92
- QuestionNames["UninstallMode"] = "mode";
93
- QuestionNames["UninstallModeManifestId"] = "manifest-id";
94
- QuestionNames["UninstallModeEnv"] = "env";
95
- QuestionNames["UninstallModeTitleId"] = "title-id";
96
- QuestionNames["UninstallOptions"] = "options";
97
- QuestionNames["UninstallOptionM365"] = "m365-app";
98
- QuestionNames["UninstallOptionTDP"] = "app-registration";
99
- QuestionNames["UninstallOptionBot"] = "bot-framework-registration";
100
- QuestionNames["collaborationAppType"] = "collaborationType";
101
- QuestionNames["DestinationApiSpecFilePath"] = "destination-api-spec-location";
102
- QuestionNames["SyncManifest"] = "sync-manifest";
103
- QuestionNames["ActionType"] = "api-plugin-type";
104
- QuestionNames["WithPlugin"] = "with-plugin";
105
- QuestionNames["ImportPlugin"] = "import-plugin";
106
- QuestionNames["PluginManifestFilePath"] = "plugin-manifest-path";
107
- QuestionNames["PluginOpenApiSpecFilePath"] = "plugin-opeanapi-spec-path";
108
- QuestionNames["KnowledgeSource"] = "knowledge-source";
109
- QuestionNames["OneDriveSharePointURL"] = "oneDriveSharePointURL";
110
- QuestionNames["OneDriveSharePointContent"] = "oneDriveSharePointContent";
111
- QuestionNames["WebContent"] = "web-content";
112
- QuestionNames["SearchType"] = "search-type";
113
- QuestionNames["GCContent"] = "graph-connector-content";
114
- QuestionNames["GCList"] = "graph-connector-list";
115
- QuestionNames["GCInput"] = "graph-connector-input";
116
- QuestionNames["GCName"] = "graph-connector-name";
117
- QuestionNames["GCConnectionId"] = "graph-connector-connection-id";
118
- QuestionNames["AuthName"] = "auth-name";
119
- QuestionNames["TemplateName"] = "template-name";
120
- QuestionNames["EmbeddedKnowledgeFiles"] = "embedded-knowledge-files";
121
- QuestionNames["OAuthAuthorizationUrl"] = "oauth-authorization-url";
122
- QuestionNames["OAuthTokenUrl"] = "oauth-token-url";
123
- QuestionNames["OAuthRefreshUrl"] = "oauth-refresh-url";
124
- QuestionNames["OAuthScope"] = "oauth-scope";
125
- QuestionNames["OauthPKCE"] = "oauth-pkce";
126
- QuestionNames["ApiKeyIn"] = "api-key-in";
127
- QuestionNames["ApiKeyName"] = "api-key-name";
128
- QuestionNames["TypeSpecProjectType"] = "type-spec-project-type";
129
- QuestionNames["DeclarativeAgentManifestPath"] = "declarative-agent-manifest-path";
130
- QuestionNames["SensitivityLabel"] = "sensitivity-label";
131
- QuestionNames["ShareOption"] = "option";
132
- QuestionNames["ShareOptionShareApp"] = "share-app";
133
- QuestionNames["ShareOptionShareToUser"] = "share-with-users";
134
- QuestionNames["ShareToUsers"] = "users";
135
- QuestionNames["RemoveUsers"] = "users";
136
- })(QuestionNames = exports.QuestionNames || (exports.QuestionNames = {}));
137
- var ProjectTypeGroup;
138
- (function (ProjectTypeGroup) {
139
- ProjectTypeGroup["AIAgent"] = "AI Agent";
140
- ProjectTypeGroup["M365Apps"] = "Apps for Microsoft 365";
141
- })(ProjectTypeGroup = exports.ProjectTypeGroup || (exports.ProjectTypeGroup = {}));
8
+ const questionNames_1 = require("./questionNames");
9
+ var questionNames_2 = require("./questionNames");
10
+ Object.defineProperty(exports, "QuestionNames", { enumerable: true, get: function () { return questionNames_2.QuestionNames; } });
142
11
  exports.AppNamePattern = '^(?=(.*[\\da-zA-Z]){2})[a-zA-Z][^"<>:\\?/*&|\u0000-\u001F]*[^"\\s.<>:\\?/*&|\u0000-\u001F]$';
143
12
  var CliQuestionName;
144
13
  (function (CliQuestionName) {
@@ -162,34 +31,6 @@ exports.capabilitiesHavePythonOption = [
162
31
  "custom-copilot-agent-assistants-api",
163
32
  "custom-copilot-rag-customApi",
164
33
  ];
165
- class RuntimeOptions {
166
- static NodeJS() {
167
- return {
168
- id: "node",
169
- label: "Node.js",
170
- detail: (0, localizeUtils_1.getLocalizedString)("core.RuntimeOptionNodeJS.detail"),
171
- };
172
- }
173
- static DotNet() {
174
- return {
175
- id: "dotnet",
176
- label: ".NET Core",
177
- detail: (0, localizeUtils_1.getLocalizedString)("core.RuntimeOptionDotNet.detail"),
178
- };
179
- }
180
- }
181
- exports.RuntimeOptions = RuntimeOptions;
182
- function getRuntime(inputs) {
183
- let runtime = RuntimeOptions.NodeJS().id;
184
- if ((inputs === null || inputs === void 0 ? void 0 : inputs.platform) === teamsfx_api_1.Platform.VS) {
185
- runtime = RuntimeOptions.DotNet().id;
186
- }
187
- else if (featureFlags_1.featureFlagManager.getBooleanValue(featureFlags_1.FeatureFlags.CLIDotNet)) {
188
- runtime = inputs[QuestionNames.Runtime] || runtime;
189
- }
190
- return runtime;
191
- }
192
- exports.getRuntime = getRuntime;
193
34
  class ScratchOptions {
194
35
  static yes() {
195
36
  return {
@@ -210,505 +51,6 @@ class ScratchOptions {
210
51
  }
211
52
  }
212
53
  exports.ScratchOptions = ScratchOptions;
213
- class ProjectTypeOptions {
214
- static getCreateGroupName(group) {
215
- switch (group) {
216
- case ProjectTypeGroup.AIAgent:
217
- return (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.projectType.createGroup.aiAgent");
218
- case ProjectTypeGroup.M365Apps:
219
- return (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.projectType.createGroup.m365Apps");
220
- }
221
- }
222
- static tab(platform) {
223
- return {
224
- id: "tab-type",
225
- label: `${platform === teamsfx_api_1.Platform.VSCode ? "$(browser) " : ""}${(0, localizeUtils_1.getLocalizedString)("core.TabOption.label")}`,
226
- detail: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.projectType.tab.detail"),
227
- groupName: ProjectTypeOptions.getCreateGroupName(ProjectTypeGroup.M365Apps),
228
- };
229
- }
230
- static bot(platform) {
231
- return {
232
- id: "bot-type",
233
- label: `${platform === teamsfx_api_1.Platform.VSCode ? "$(hubot) " : ""}${(0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.projectType.bot.label")}`,
234
- detail: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.projectType.bot.detail"),
235
- groupName: ProjectTypeOptions.getCreateGroupName(ProjectTypeGroup.M365Apps),
236
- };
237
- }
238
- static me(platform) {
239
- return {
240
- id: "me-type",
241
- label: `${platform === teamsfx_api_1.Platform.VSCode ? "$(symbol-keyword) " : ""}${(0, localizeUtils_1.getLocalizedString)("core.MessageExtensionOption.label")}`,
242
- detail: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.projectType.messageExtension.copilotEnabled.detail"),
243
- groupName: ProjectTypeOptions.getCreateGroupName(ProjectTypeGroup.M365Apps),
244
- };
245
- }
246
- static outlookAddin(platform) {
247
- return {
248
- id: "outlook-addin-type",
249
- label: `${platform === teamsfx_api_1.Platform.VSCode ? "$(mail) " : ""}${(0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.projectType.outlookAddin.label")}`,
250
- detail: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.projectType.outlookAddin.detail"),
251
- groupName: ProjectTypeOptions.getCreateGroupName(ProjectTypeGroup.M365Apps),
252
- };
253
- }
254
- static officeMetaOS(platform) {
255
- return {
256
- id: "office-meta-os-type",
257
- label: `${platform === teamsfx_api_1.Platform.VSCode ? "$(teamsfx-m365) " : ""}${(0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.projectType.officeAddin.label")}`,
258
- detail: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.projectType.officeAddin.detail"),
259
- groupName: ProjectTypeOptions.getCreateGroupName(ProjectTypeGroup.M365Apps),
260
- };
261
- }
262
- static officeAddinAllIds(platform) {
263
- return [
264
- ProjectTypeOptions.officeMetaOS(platform).id,
265
- ProjectTypeOptions.outlookAddin(platform).id,
266
- ];
267
- }
268
- static Agent(platform) {
269
- return {
270
- id: "copilot-agent-type",
271
- label: `${platform === teamsfx_api_1.Platform.VSCode ? "$(teamsfx-agent) " : ""}${(0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.projectType.declarativeAgent.label")}`,
272
- detail: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.projectType.declarativeAgent.detail"),
273
- groupName: ProjectTypeOptions.getCreateGroupName(ProjectTypeGroup.AIAgent),
274
- };
275
- }
276
- static customCopilot(platform) {
277
- return {
278
- id: "custom-copilot-type",
279
- label: `${platform === teamsfx_api_1.Platform.VSCode ? "$(teamsfx-custom-copilot) " : ""}${(0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.projectType.customCopilot.label")}`,
280
- detail: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.projectType.customCopilot.detail"),
281
- groupName: ProjectTypeOptions.getCreateGroupName(ProjectTypeGroup.AIAgent),
282
- };
283
- }
284
- static startWithGithubCopilot() {
285
- return {
286
- id: "start-with-github-copilot",
287
- label: `$(question) ${(0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.projectType.copilotHelp.label")}`,
288
- detail: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.projectType.copilotHelp.detail"),
289
- groupName: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.projectType.copilotGroup.title"),
290
- };
291
- }
292
- }
293
- exports.ProjectTypeOptions = ProjectTypeOptions;
294
- class CapabilityOptions {
295
- // empty
296
- static empty() {
297
- return {
298
- id: "empty",
299
- label: "Empty",
300
- };
301
- }
302
- // bot
303
- static basicBot() {
304
- return {
305
- id: "bot",
306
- label: `${(0, localizeUtils_1.getLocalizedString)("core.BotNewUIOption.label")}`,
307
- detail: (0, localizeUtils_1.getLocalizedString)("core.BotNewUIOption.detail"),
308
- };
309
- }
310
- static notificationBot() {
311
- return {
312
- // For default option, id and cliName must be the same
313
- id: "notification",
314
- label: `${(0, localizeUtils_1.getLocalizedString)("core.NotificationOption.label")}`,
315
- detail: (0, localizeUtils_1.getLocalizedString)("core.NotificationOption.detail"),
316
- data: "https://aka.ms/teamsfx-send-notification",
317
- buttons: [
318
- {
319
- iconPath: "file-symlink-file",
320
- tooltip: (0, localizeUtils_1.getLocalizedString)("core.option.github"),
321
- command: "fx-extension.openTutorial",
322
- },
323
- ],
324
- };
325
- }
326
- static commandBot() {
327
- return {
328
- // id must match cli `yargsHelp`
329
- id: "command-bot",
330
- label: `${(0, localizeUtils_1.getLocalizedString)("core.CommandAndResponseOption.label")}`,
331
- detail: (0, localizeUtils_1.getLocalizedString)("core.CommandAndResponseOption.detail"),
332
- data: "https://aka.ms/teamsfx-create-command",
333
- buttons: [
334
- {
335
- iconPath: "file-symlink-file",
336
- tooltip: (0, localizeUtils_1.getLocalizedString)("core.option.github"),
337
- command: "fx-extension.openTutorial",
338
- },
339
- ],
340
- };
341
- }
342
- static workflowBot(inputs) {
343
- const item = {
344
- // id must match cli `yargsHelp`
345
- id: "workflow-bot",
346
- label: `${(0, localizeUtils_1.getLocalizedString)("core.WorkflowOption.label")}`,
347
- detail: (0, localizeUtils_1.getLocalizedString)("core.WorkflowOption.detail"),
348
- data: "https://aka.ms/teamsfx-create-workflow",
349
- buttons: [
350
- {
351
- iconPath: "file-symlink-file",
352
- tooltip: (0, localizeUtils_1.getLocalizedString)("core.option.github"),
353
- command: "fx-extension.openTutorial",
354
- },
355
- ],
356
- };
357
- if (inputs === null || inputs === void 0 ? void 0 : inputs.inProductDoc) {
358
- item.data = "cardActionResponse";
359
- item.buttons = [
360
- {
361
- iconPath: "file-code",
362
- tooltip: (0, localizeUtils_1.getLocalizedString)("core.option.inProduct"),
363
- command: "fx-extension.openTutorial",
364
- },
365
- ];
366
- }
367
- return item;
368
- }
369
- //tab
370
- static nonSsoTab() {
371
- return {
372
- id: "tab-non-sso",
373
- label: `${(0, localizeUtils_1.getLocalizedString)("core.TabNonSso.label")}`,
374
- detail: (0, localizeUtils_1.getLocalizedString)("core.TabNonSso.detail"),
375
- description: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.option.description.worksInOutlookM365"),
376
- };
377
- }
378
- static tab() {
379
- return {
380
- id: "tab",
381
- label: (0, localizeUtils_1.getLocalizedString)("core.TabOption.label"),
382
- description: (0, localizeUtils_1.getLocalizedString)("core.TabOption.description"),
383
- detail: (0, localizeUtils_1.getLocalizedString)("core.TabOption.detail"),
384
- };
385
- }
386
- static m365SsoLaunchPage() {
387
- return {
388
- id: "sso-launch-page",
389
- label: `${(0, localizeUtils_1.getLocalizedString)("core.M365SsoLaunchPageOptionItem.label")}`,
390
- detail: (0, localizeUtils_1.getLocalizedString)("core.M365SsoLaunchPageOptionItem.detail"),
391
- description: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.option.description.worksInOutlookM365"),
392
- };
393
- }
394
- static dashboardTab() {
395
- return {
396
- id: "dashboard-tab",
397
- label: `${(0, localizeUtils_1.getLocalizedString)("core.DashboardOption.label")}`,
398
- detail: (0, localizeUtils_1.getLocalizedString)("core.DashboardOption.detail"),
399
- description: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.option.description.worksInOutlookM365"),
400
- data: "https://aka.ms/teamsfx-dashboard-app",
401
- buttons: [
402
- {
403
- iconPath: "file-symlink-file",
404
- tooltip: (0, localizeUtils_1.getLocalizedString)("core.option.github"),
405
- command: "fx-extension.openTutorial",
406
- },
407
- ],
408
- };
409
- }
410
- static SPFxTab() {
411
- return {
412
- id: "tab-spfx",
413
- label: (0, localizeUtils_1.getLocalizedString)("core.TabSPFxOption.labelNew"),
414
- description: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.option.description.worksInOutlookM365"),
415
- detail: (0, localizeUtils_1.getLocalizedString)("core.TabSPFxOption.detailNew"),
416
- };
417
- }
418
- //message extension
419
- static linkUnfurling() {
420
- return {
421
- id: "link-unfurling",
422
- label: `${(0, localizeUtils_1.getLocalizedString)("core.LinkUnfurlingOption.label")}`,
423
- detail: (0, localizeUtils_1.getLocalizedString)("core.LinkUnfurlingOption.detail"),
424
- description: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.option.description.worksInOutlook"),
425
- };
426
- }
427
- static m365SearchMe() {
428
- return {
429
- id: "search-app",
430
- label: `${(0, localizeUtils_1.getLocalizedString)("core.M365SearchAppOptionItem.label")}`,
431
- detail: (0, localizeUtils_1.getLocalizedString)("core.M365SearchAppOptionItem.copilot.detail"),
432
- };
433
- }
434
- static SearchMe() {
435
- return {
436
- id: "search-message-extension",
437
- label: `${(0, localizeUtils_1.getLocalizedString)("core.M365SearchAppOptionItem.label")}`,
438
- detail: (0, localizeUtils_1.getLocalizedString)("core.SearchAppOptionItem.detail"),
439
- };
440
- }
441
- static collectFormMe() {
442
- return {
443
- id: "collect-form-message-extension",
444
- label: `${(0, localizeUtils_1.getLocalizedString)("core.MessageExtensionOption.labelNew")}`,
445
- detail: (0, localizeUtils_1.getLocalizedString)("core.MessageExtensionOption.detail"),
446
- };
447
- }
448
- static me() {
449
- return {
450
- id: "message-extension",
451
- label: (0, localizeUtils_1.getLocalizedString)("core.MessageExtensionOption.label"),
452
- description: (0, localizeUtils_1.getLocalizedString)("core.MessageExtensionOption.description"),
453
- detail: (0, localizeUtils_1.getLocalizedString)("core.MessageExtensionOption.detail"),
454
- };
455
- }
456
- static bots(inputs) {
457
- if (inputs && getRuntime(inputs) === RuntimeOptions.DotNet().id) {
458
- return [
459
- CapabilityOptions.basicBot(),
460
- CapabilityOptions.aiBot(),
461
- CapabilityOptions.aiAssistantBot(),
462
- CapabilityOptions.notificationBot(),
463
- CapabilityOptions.commandBot(),
464
- CapabilityOptions.workflowBot(inputs),
465
- ];
466
- }
467
- return [
468
- CapabilityOptions.basicBot(),
469
- CapabilityOptions.notificationBot(),
470
- CapabilityOptions.commandBot(),
471
- CapabilityOptions.workflowBot(inputs),
472
- ];
473
- }
474
- static tabs() {
475
- return [
476
- CapabilityOptions.nonSsoTab(),
477
- CapabilityOptions.m365SsoLaunchPage(),
478
- CapabilityOptions.dashboardTab(),
479
- CapabilityOptions.SPFxTab(),
480
- ];
481
- }
482
- static dotnetCaps(inputs) {
483
- const capabilities = [
484
- CapabilityOptions.empty(),
485
- ...CapabilityOptions.agents(),
486
- ...CapabilityOptions.customCopilots(inputs),
487
- ...CapabilityOptions.bots(inputs),
488
- CapabilityOptions.nonSsoTab(),
489
- CapabilityOptions.tab(),
490
- ...CapabilityOptions.collectMECaps(),
491
- ];
492
- if (featureFlags_1.featureFlagManager.getBooleanValue(featureFlags_1.FeatureFlags.TdpTemplateCliTest)) {
493
- capabilities.push(CapabilityOptions.me());
494
- }
495
- return capabilities;
496
- }
497
- /**
498
- * Collect all capabilities for message extension, including dotnet and nodejs.
499
- * @returns OptionItem[] capability list
500
- */
501
- static collectMECaps() {
502
- return [
503
- CapabilityOptions.m365SearchMe(),
504
- CapabilityOptions.collectFormMe(),
505
- CapabilityOptions.SearchMe(),
506
- CapabilityOptions.linkUnfurling(),
507
- ];
508
- }
509
- static mes(inputs) {
510
- return inputs !== undefined && getRuntime(inputs) === RuntimeOptions.DotNet().id
511
- ? [
512
- CapabilityOptions.SearchMe(),
513
- CapabilityOptions.collectFormMe(),
514
- CapabilityOptions.linkUnfurling(),
515
- ]
516
- : [
517
- CapabilityOptions.m365SearchMe(),
518
- CapabilityOptions.collectFormMe(),
519
- CapabilityOptions.linkUnfurling(),
520
- ];
521
- }
522
- static officeAddinCapabilities(projectType) {
523
- const items = [CapabilityOptions.officeAddinTaskpane()];
524
- const isOutlookAddin = projectType === ProjectTypeOptions.outlookAddin().id;
525
- const isMetaOSAddin = projectType === ProjectTypeOptions.officeMetaOS().id;
526
- if (isOutlookAddin) {
527
- items.push(CapabilityOptions.outlookAddinImport());
528
- }
529
- else if (isMetaOSAddin) {
530
- items.push(CapabilityOptions.officeAddinImport());
531
- }
532
- return items;
533
- }
534
- static agents() {
535
- return [CapabilityOptions.declarativeAgent()];
536
- }
537
- static customCopilots(inputs) {
538
- return inputs !== undefined && getRuntime(inputs) === RuntimeOptions.DotNet().id
539
- ? [
540
- CapabilityOptions.customCopilotBasic(),
541
- CapabilityOptions.customCopilotRag(),
542
- CapabilityOptions.customCopilotAssistant(),
543
- // customCopilotWeather is currently only for dotnet
544
- CapabilityOptions.customCopilotWeather(),
545
- ]
546
- : [
547
- CapabilityOptions.customCopilotBasic(),
548
- CapabilityOptions.customCopilotRag(),
549
- CapabilityOptions.customCopilotAssistant(),
550
- ];
551
- }
552
- static tdpIntegrationCapabilities() {
553
- // templates that are used by TDP integration only
554
- return [
555
- CapabilityOptions.me(),
556
- CapabilityOptions.botAndMe(),
557
- CapabilityOptions.nonSsoTabAndBot(),
558
- ];
559
- }
560
- /**
561
- * static capability list, which does not depend on any feature flags
562
- */
563
- static staticAll(inputs) {
564
- const capabilityOptions = [
565
- CapabilityOptions.empty(),
566
- ...CapabilityOptions.bots(inputs),
567
- ...CapabilityOptions.tabs(),
568
- ...CapabilityOptions.collectMECaps(),
569
- ...CapabilityOptions.agents(),
570
- ...CapabilityOptions.customCopilots(),
571
- ...CapabilityOptions.tdpIntegrationCapabilities(),
572
- ];
573
- return capabilityOptions;
574
- }
575
- /**
576
- * dynamic capability list, which depends on feature flags
577
- */
578
- static all(inputs) {
579
- if (inputs && getRuntime(inputs) === RuntimeOptions.DotNet().id) {
580
- return CapabilityOptions.dotnetCaps(inputs);
581
- }
582
- const capabilityOptions = [
583
- ...CapabilityOptions.bots(inputs),
584
- ...CapabilityOptions.tabs(),
585
- ...CapabilityOptions.collectMECaps(),
586
- ];
587
- capabilityOptions.push(...CapabilityOptions.agents());
588
- capabilityOptions.push(...CapabilityOptions.customCopilots());
589
- if (featureFlags_1.featureFlagManager.getBooleanValue(featureFlags_1.FeatureFlags.TdpTemplateCliTest)) {
590
- // test templates that are used by TDP integration only
591
- capabilityOptions.push(...CapabilityOptions.tdpIntegrationCapabilities());
592
- }
593
- capabilityOptions.push(...CapabilityOptions.officeAddinCapabilities(inputs === null || inputs === void 0 ? void 0 : inputs.projectType));
594
- return capabilityOptions;
595
- }
596
- static officeAddinTaskpane() {
597
- return {
598
- id: "office-addin-taskpane",
599
- label: (0, localizeUtils_1.getLocalizedString)("core.newTaskpaneAddin.label"),
600
- detail: (0, localizeUtils_1.getLocalizedString)("core.newTaskpaneAddin.detail"),
601
- };
602
- }
603
- static outlookAddinImport() {
604
- return {
605
- id: "outlook-addin-import",
606
- label: (0, localizeUtils_1.getLocalizedString)("core.importAddin.label"),
607
- detail: (0, localizeUtils_1.getLocalizedString)("core.importAddin.detail"),
608
- };
609
- }
610
- static officeAddinImport() {
611
- return {
612
- id: "office-addin-import",
613
- label: (0, localizeUtils_1.getLocalizedString)("core.importOfficeAddin.label"),
614
- detail: (0, localizeUtils_1.getLocalizedString)("core.importAddin.detail"),
615
- description: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.option.description.previewOnWindow"),
616
- };
617
- }
618
- static officeContentAddin() {
619
- return {
620
- id: "office-content-addin",
621
- label: (0, localizeUtils_1.getLocalizedString)("core.officeContentAddin.label"),
622
- detail: (0, localizeUtils_1.getLocalizedString)("core.officeContentAddin.detail"),
623
- };
624
- }
625
- static nonSsoTabAndBot() {
626
- return {
627
- id: "TabNonSsoAndBot",
628
- label: "", // No need to set display name as this option won't be shown in UI
629
- };
630
- }
631
- static botAndMe() {
632
- return {
633
- id: "BotAndMessageExtension",
634
- label: "", // No need to set display name as this option won't be shown in UI
635
- };
636
- }
637
- // copilot extension - api plugin
638
- static apiPlugin() {
639
- return {
640
- id: "api-plugin",
641
- label: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.projectType.copilotPlugin.label"),
642
- detail: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.projectType.copilotPlugin.detail"),
643
- };
644
- }
645
- // copilot extension - declarative copilot
646
- static declarativeAgent() {
647
- return {
648
- id: "declarative-agent",
649
- label: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.projectType.declarativeAgent.label"),
650
- detail: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.projectType.declarativeAgent.detail"),
651
- };
652
- }
653
- static aiBot() {
654
- return {
655
- id: "ai-bot",
656
- label: (0, localizeUtils_1.getLocalizedString)("core.aiBotOption.label"),
657
- detail: (0, localizeUtils_1.getLocalizedString)("core.aiBotOption.detail"),
658
- };
659
- }
660
- static aiAssistantBot() {
661
- return {
662
- id: "ai-assistant-bot",
663
- label: (0, localizeUtils_1.getLocalizedString)("core.aiAssistantBotOption.label"),
664
- detail: (0, localizeUtils_1.getLocalizedString)("core.aiAssistantBotOption.detail"),
665
- description: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.option.description.preview"),
666
- };
667
- }
668
- // custom copilot
669
- static customCopilotBasic() {
670
- const description = featureFlags_1.featureFlagManager.getBooleanValue(featureFlags_1.FeatureFlags.CEAEnabled)
671
- ? (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.capability.customEngineAgent.description")
672
- : undefined;
673
- return {
674
- id: "custom-copilot-basic",
675
- label: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.capability.customCopilotBasicOption.label"),
676
- detail: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.capability.customCopilotBasicOption.detail"),
677
- description: description,
678
- };
679
- }
680
- static customCopilotRag() {
681
- const description = featureFlags_1.featureFlagManager.getBooleanValue(featureFlags_1.FeatureFlags.CEAEnabled)
682
- ? (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.capability.customEngineAgent.description")
683
- : undefined;
684
- return {
685
- id: "custom-copilot-rag",
686
- label: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.capability.customCopilotRagOption.label"),
687
- detail: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.capability.customCopilotRagOption.detail"),
688
- description: description,
689
- };
690
- }
691
- static customCopilotAssistant() {
692
- const description = featureFlags_1.featureFlagManager.getBooleanValue(featureFlags_1.FeatureFlags.CEAEnabled)
693
- ? (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.capability.customEngineAgent.description")
694
- : undefined;
695
- return {
696
- id: "custom-copilot-agent",
697
- label: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.capability.customCopilotAssistantOption.label"),
698
- detail: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.capability.customCopilotAssistantOption.detail"),
699
- description: description,
700
- };
701
- }
702
- // Currently only for dotnet
703
- static customCopilotWeather() {
704
- return {
705
- id: "custom-copilot-weather-agent",
706
- label: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.capability.customCopilotWeatherOption.label"),
707
- detail: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.capability.customCopilotWeatherOption.detail"),
708
- };
709
- }
710
- }
711
- exports.CapabilityOptions = CapabilityOptions;
712
54
  class ApiAuthOptions {
713
55
  static none() {
714
56
  return {
@@ -1051,26 +393,6 @@ class HubOptions {
1051
393
  }
1052
394
  }
1053
395
  exports.HubOptions = HubOptions;
1054
- class DeclarativeCopilotTypeOptions {
1055
- static noPlugin() {
1056
- return {
1057
- id: "no",
1058
- label: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.noPlugin.label"),
1059
- detail: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.noPlugin.detail"),
1060
- };
1061
- }
1062
- static withPlugin() {
1063
- return {
1064
- id: "yes",
1065
- label: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.addPlugin.label"),
1066
- detail: (0, localizeUtils_1.getLocalizedString)("core.createProjectQuestion.addPlugin.detail"),
1067
- };
1068
- }
1069
- static all() {
1070
- return [DeclarativeCopilotTypeOptions.noPlugin(), DeclarativeCopilotTypeOptions.withPlugin()];
1071
- }
1072
- }
1073
- exports.DeclarativeCopilotTypeOptions = DeclarativeCopilotTypeOptions;
1074
396
  class ActionStartOptions {
1075
397
  static newApi() {
1076
398
  return {
@@ -1106,7 +428,8 @@ class ActionStartOptions {
1106
428
  if (doesProjectExists) {
1107
429
  return [ActionStartOptions.apiSpec(), ActionStartOptions.existingPlugin()];
1108
430
  }
1109
- else if (inputs[QuestionNames.Capabilities] === CapabilityOptions.declarativeAgent().id) {
431
+ else if (inputs[questionNames_1.QuestionNames.Capabilities] === "declarative-agent") {
432
+ // use constant string to avoid cycle dependency
1110
433
  return [
1111
434
  ActionStartOptions.newApi(),
1112
435
  ActionStartOptions.apiSpec(),