@microsoft/teamsfx-core 3.0.15 → 3.0.16-beta.2026073102.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 (370) hide show
  1. package/build/client/aadAppClient.d.ts.map +1 -1
  2. package/build/client/aadAppClient.js +6 -6
  3. package/build/client/aadAppClient.js.map +1 -1
  4. package/build/common/featureFlags.d.ts +0 -5
  5. package/build/common/featureFlags.d.ts.map +1 -1
  6. package/build/common/featureFlags.js +0 -5
  7. package/build/common/featureFlags.js.map +1 -1
  8. package/build/common/httpProxy.d.ts +21 -0
  9. package/build/common/httpProxy.d.ts.map +1 -0
  10. package/build/common/httpProxy.js +117 -0
  11. package/build/common/httpProxy.js.map +1 -0
  12. package/build/common/mcpToolFetcher.d.ts +90 -0
  13. package/build/common/mcpToolFetcher.d.ts.map +1 -0
  14. package/build/common/mcpToolFetcher.js +404 -0
  15. package/build/common/mcpToolFetcher.js.map +1 -0
  16. package/build/common/odrProvider.d.ts +43 -0
  17. package/build/common/odrProvider.d.ts.map +1 -0
  18. package/build/common/odrProvider.js +154 -0
  19. package/build/common/odrProvider.js.map +1 -0
  20. package/build/common/openApiParserOptions.d.ts +3 -0
  21. package/build/common/openApiParserOptions.d.ts.map +1 -0
  22. package/build/common/openApiParserOptions.js +61 -0
  23. package/build/common/openApiParserOptions.js.map +1 -0
  24. package/build/common/secretmasker/dict.d.ts.map +1 -1
  25. package/build/common/secretmasker/dict.js +5 -2
  26. package/build/common/secretmasker/dict.js.map +1 -1
  27. package/build/common/secretmasker/feature.js.map +1 -1
  28. package/build/common/templates-config.json +5 -5
  29. package/build/component/coordinator/index.d.ts.map +1 -1
  30. package/build/component/coordinator/index.js.map +1 -1
  31. package/build/component/deps-checker/internal/dotnetChecker.js.map +1 -1
  32. package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.d.ts +3 -0
  33. package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.d.ts.map +1 -1
  34. package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js +38 -3
  35. package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js.map +1 -1
  36. package/build/component/driver/script/scriptDriver.js +1 -1
  37. package/build/component/driver/script/scriptDriver.js.map +1 -1
  38. package/build/component/driver/teamsApp/create.d.ts.map +1 -1
  39. package/build/component/driver/teamsApp/create.js +3 -3
  40. package/build/component/driver/teamsApp/create.js.map +1 -1
  41. package/build/component/driver/teamsApp/createAppPackage.d.ts +1 -0
  42. package/build/component/driver/teamsApp/createAppPackage.d.ts.map +1 -1
  43. package/build/component/driver/teamsApp/createAppPackage.js +23 -0
  44. package/build/component/driver/teamsApp/createAppPackage.js.map +1 -1
  45. package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.js.map +1 -1
  46. package/build/component/generator/declarativeAgent/helper.d.ts.map +1 -1
  47. package/build/component/generator/declarativeAgent/helper.js +25 -2
  48. package/build/component/generator/declarativeAgent/helper.js.map +1 -1
  49. package/build/component/generator/generatorAction.d.ts +3 -1
  50. package/build/component/generator/generatorAction.d.ts.map +1 -1
  51. package/build/component/generator/generatorAction.js.map +1 -1
  52. package/build/component/generator/officeAddin/generator.d.ts +1 -0
  53. package/build/component/generator/officeAddin/generator.d.ts.map +1 -1
  54. package/build/component/generator/officeAddin/generator.js +109 -2
  55. package/build/component/generator/officeAddin/generator.js.map +1 -1
  56. package/build/component/generator/openApiSpec/helper.d.ts +2 -3
  57. package/build/component/generator/openApiSpec/helper.d.ts.map +1 -1
  58. package/build/component/generator/openApiSpec/helper.js +19 -57
  59. package/build/component/generator/openApiSpec/helper.js.map +1 -1
  60. package/build/component/generator/templateHelper.d.ts +10 -2
  61. package/build/component/generator/templateHelper.d.ts.map +1 -1
  62. package/build/component/generator/templateHelper.js +16 -3
  63. package/build/component/generator/templateHelper.js.map +1 -1
  64. package/build/component/generator/templates/metadata/index.d.ts +15 -0
  65. package/build/component/generator/templates/metadata/index.d.ts.map +1 -1
  66. package/build/component/generator/templates/metadata/index.js +39 -0
  67. package/build/component/generator/templates/metadata/index.js.map +1 -1
  68. package/build/component/generator/templates/templateNames.d.ts +2 -0
  69. package/build/component/generator/templates/templateNames.d.ts.map +1 -1
  70. package/build/component/generator/templates/templateNames.js +2 -0
  71. package/build/component/generator/templates/templateNames.js.map +1 -1
  72. package/build/component/generator/utils.d.ts.map +1 -1
  73. package/build/component/generator/utils.js +6 -0
  74. package/build/component/generator/utils.js.map +1 -1
  75. package/build/component/generator/v4TemplateBridge.d.ts +4 -1
  76. package/build/component/generator/v4TemplateBridge.d.ts.map +1 -1
  77. package/build/component/generator/v4TemplateBridge.js +19 -3
  78. package/build/component/generator/v4TemplateBridge.js.map +1 -1
  79. package/build/component/utils/envUtil.d.ts.map +1 -1
  80. package/build/component/utils/envUtil.js +2 -2
  81. package/build/component/utils/envUtil.js.map +1 -1
  82. package/build/component/utils/fileOperation.d.ts.map +1 -1
  83. package/build/component/utils/fileOperation.js +4 -1
  84. package/build/component/utils/fileOperation.js.map +1 -1
  85. package/build/component/utils/mcpAuthScaffolder.d.ts +28 -0
  86. package/build/component/utils/mcpAuthScaffolder.d.ts.map +1 -1
  87. package/build/component/utils/mcpAuthScaffolder.js +39 -4
  88. package/build/component/utils/mcpAuthScaffolder.js.map +1 -1
  89. package/build/component/utils/mcpToolFetcher.d.ts +1 -72
  90. package/build/component/utils/mcpToolFetcher.d.ts.map +1 -1
  91. package/build/component/utils/mcpToolFetcher.js +1 -227
  92. package/build/component/utils/mcpToolFetcher.js.map +1 -1
  93. package/build/component/utils/odrProvider.d.ts +1 -55
  94. package/build/component/utils/odrProvider.d.ts.map +1 -1
  95. package/build/component/utils/odrProvider.js +1 -101
  96. package/build/component/utils/odrProvider.js.map +1 -1
  97. package/build/core/FxCore.d.ts.map +1 -1
  98. package/build/core/FxCore.declarativeAgent.d.ts.map +1 -1
  99. package/build/core/FxCore.declarativeAgent.js +110 -3
  100. package/build/core/FxCore.declarativeAgent.js.map +1 -1
  101. package/build/core/FxCore.js +4 -6
  102. package/build/core/FxCore.js.map +1 -1
  103. package/build/core/createFrontDoorAdapters.d.ts +4 -27
  104. package/build/core/createFrontDoorAdapters.d.ts.map +1 -1
  105. package/build/core/createFrontDoorAdapters.js +17 -157
  106. package/build/core/createFrontDoorAdapters.js.map +1 -1
  107. package/build/core/createProjectFrontDoor.d.ts +10 -12
  108. package/build/core/createProjectFrontDoor.d.ts.map +1 -1
  109. package/build/core/createProjectFrontDoor.js +143 -106
  110. package/build/core/createProjectFrontDoor.js.map +1 -1
  111. package/build/core/modifyProjectFrontDoor.d.ts +0 -1
  112. package/build/core/modifyProjectFrontDoor.d.ts.map +1 -1
  113. package/build/core/modifyProjectFrontDoor.js +0 -2
  114. package/build/core/modifyProjectFrontDoor.js.map +1 -1
  115. package/build/index.d.ts +3 -2
  116. package/build/index.d.ts.map +1 -1
  117. package/build/index.js +9 -1
  118. package/build/index.js.map +1 -1
  119. package/build/question/create.d.ts.map +1 -1
  120. package/build/question/create.js +2 -1
  121. package/build/question/create.js.map +1 -1
  122. package/build/question/inputs/AddKnowledgeInputs.d.ts.map +1 -1
  123. package/build/question/inputs/CreateProjectInputs.d.ts +4 -0
  124. package/build/question/inputs/CreateProjectInputs.d.ts.map +1 -1
  125. package/build/question/options/CreateProjectOptions.d.ts.map +1 -1
  126. package/build/question/options/CreateProjectOptions.js +14 -0
  127. package/build/question/options/CreateProjectOptions.js.map +1 -1
  128. package/build/question/other.d.ts.map +1 -1
  129. package/build/question/other.js +11 -1
  130. package/build/question/other.js.map +1 -1
  131. package/build/question/questionNames.d.ts +2 -0
  132. package/build/question/questionNames.d.ts.map +1 -1
  133. package/build/question/questionNames.js +2 -0
  134. package/build/question/questionNames.js.map +1 -1
  135. package/build/question/scaffold/constructNode.d.ts +3 -1
  136. package/build/question/scaffold/constructNode.d.ts.map +1 -1
  137. package/build/question/scaffold/constructNode.js +50 -0
  138. package/build/question/scaffold/constructNode.js.map +1 -1
  139. package/build/question/scaffold/vsc/CapabilityOptions.d.ts +2 -0
  140. package/build/question/scaffold/vsc/CapabilityOptions.d.ts.map +1 -1
  141. package/build/question/scaffold/vsc/CapabilityOptions.js +16 -0
  142. package/build/question/scaffold/vsc/CapabilityOptions.js.map +1 -1
  143. package/build/question/scaffold/vsc/teamsProjectTypeNode.d.ts +19 -1
  144. package/build/question/scaffold/vsc/teamsProjectTypeNode.d.ts.map +1 -1
  145. package/build/question/scaffold/vsc/teamsProjectTypeNode.js +39 -7
  146. package/build/question/scaffold/vsc/teamsProjectTypeNode.js.map +1 -1
  147. package/build/v4/buildTarget/parseSelector.d.ts +6 -2
  148. package/build/v4/buildTarget/parseSelector.d.ts.map +1 -1
  149. package/build/v4/buildTarget/parseSelector.js +58 -45
  150. package/build/v4/buildTarget/parseSelector.js.map +1 -1
  151. package/build/v4/buildTarget/resolveBuildTarget.d.ts +21 -7
  152. package/build/v4/buildTarget/resolveBuildTarget.d.ts.map +1 -1
  153. package/build/v4/buildTarget/resolveBuildTarget.js +97 -52
  154. package/build/v4/buildTarget/resolveBuildTarget.js.map +1 -1
  155. package/build/v4/collectInputs/collectInputs.d.ts +51 -10
  156. package/build/v4/collectInputs/collectInputs.d.ts.map +1 -1
  157. package/build/v4/collectInputs/collectInputs.js +287 -91
  158. package/build/v4/collectInputs/collectInputs.js.map +1 -1
  159. package/build/v4/distribution/createQuestions.d.ts.map +1 -1
  160. package/build/v4/distribution/createQuestions.js +2 -29
  161. package/build/v4/distribution/createQuestions.js.map +1 -1
  162. package/build/v4/distribution/declarativePackage.d.ts.map +1 -1
  163. package/build/v4/distribution/declarativePackage.js +2 -30
  164. package/build/v4/distribution/declarativePackage.js.map +1 -1
  165. package/build/v4/distribution/questionFragments.d.ts +11 -0
  166. package/build/v4/distribution/questionFragments.d.ts.map +1 -0
  167. package/build/v4/distribution/questionFragments.js +130 -0
  168. package/build/v4/distribution/questionFragments.js.map +1 -0
  169. package/build/v4/engineVersion.d.ts +7 -0
  170. package/build/v4/engineVersion.d.ts.map +1 -0
  171. package/build/v4/engineVersion.js +12 -0
  172. package/build/v4/engineVersion.js.map +1 -0
  173. package/build/v4/expression/evaluateExpression.d.ts +13 -0
  174. package/build/v4/expression/evaluateExpression.d.ts.map +1 -1
  175. package/build/v4/expression/evaluateExpression.js +57 -0
  176. package/build/v4/expression/evaluateExpression.js.map +1 -1
  177. package/build/v4/index.d.ts +7 -0
  178. package/build/v4/index.d.ts.map +1 -1
  179. package/build/v4/index.js +7 -0
  180. package/build/v4/index.js.map +1 -1
  181. package/build/v4/inspection/scaffoldCatalog.d.ts +28 -0
  182. package/build/v4/inspection/scaffoldCatalog.d.ts.map +1 -0
  183. package/build/v4/inspection/scaffoldCatalog.js +66 -0
  184. package/build/v4/inspection/scaffoldCatalog.js.map +1 -0
  185. package/build/v4/inspection/scaffoldMetadataSource.d.ts +6 -0
  186. package/build/v4/inspection/scaffoldMetadataSource.d.ts.map +1 -0
  187. package/build/v4/inspection/scaffoldMetadataSource.js +78 -0
  188. package/build/v4/inspection/scaffoldMetadataSource.js.map +1 -0
  189. package/build/v4/mcp/mcpAuthAction.d.ts +36 -0
  190. package/build/v4/mcp/mcpAuthAction.d.ts.map +1 -0
  191. package/build/v4/mcp/mcpAuthAction.js +177 -0
  192. package/build/v4/mcp/mcpAuthAction.js.map +1 -0
  193. package/build/v4/mcp/mcpAuthScaffold.d.ts +37 -0
  194. package/build/v4/mcp/mcpAuthScaffold.d.ts.map +1 -0
  195. package/build/v4/mcp/mcpAuthScaffold.js +162 -0
  196. package/build/v4/mcp/mcpAuthScaffold.js.map +1 -0
  197. package/build/v4/model/dataModel.d.ts +1 -1
  198. package/build/v4/model/dataModel.d.ts.map +1 -1
  199. package/build/v4/pipeline/runScaffoldPipeline.d.ts +27 -5
  200. package/build/v4/pipeline/runScaffoldPipeline.d.ts.map +1 -1
  201. package/build/v4/pipeline/runScaffoldPipeline.js +64 -10
  202. package/build/v4/pipeline/runScaffoldPipeline.js.map +1 -1
  203. package/build/v4/providers/createOptionsProviders.d.ts +11 -0
  204. package/build/v4/providers/createOptionsProviders.d.ts.map +1 -0
  205. package/build/v4/providers/createOptionsProviders.js +268 -0
  206. package/build/v4/providers/createOptionsProviders.js.map +1 -0
  207. package/build/v4/renderContext/buildRenderContext.d.ts.map +1 -1
  208. package/build/v4/renderContext/buildRenderContext.js +4 -6
  209. package/build/v4/renderContext/buildRenderContext.js.map +1 -1
  210. package/build/v4/runtime/generalSensitivityLabel.d.ts +5 -0
  211. package/build/v4/runtime/generalSensitivityLabel.d.ts.map +1 -0
  212. package/build/v4/runtime/generalSensitivityLabel.js +36 -0
  213. package/build/v4/runtime/generalSensitivityLabel.js.map +1 -0
  214. package/build/v4/runtime/inMemoryRuntime.d.ts +7 -1
  215. package/build/v4/runtime/inMemoryRuntime.d.ts.map +1 -1
  216. package/build/v4/runtime/inMemoryRuntime.js +25 -3
  217. package/build/v4/runtime/inMemoryRuntime.js.map +1 -1
  218. package/build/v4/runtime/packageParse.d.ts.map +1 -1
  219. package/build/v4/runtime/packageParse.js +64 -8
  220. package/build/v4/runtime/packageParse.js.map +1 -1
  221. package/build/v4/runtime/realRuntime.d.ts +3 -1
  222. package/build/v4/runtime/realRuntime.d.ts.map +1 -1
  223. package/build/v4/runtime/realRuntime.js +3 -2
  224. package/build/v4/runtime/realRuntime.js.map +1 -1
  225. package/build/v4/runtime/renderMustache.d.ts.map +1 -1
  226. package/build/v4/runtime/renderMustache.js +13 -4
  227. package/build/v4/runtime/renderMustache.js.map +1 -1
  228. package/build/v4/runtime/runtimeRegistry.d.ts +12 -3
  229. package/build/v4/runtime/runtimeRegistry.d.ts.map +1 -1
  230. package/build/v4/runtime/runtimeRegistry.js +123 -17
  231. package/build/v4/runtime/runtimeRegistry.js.map +1 -1
  232. package/build/v4/runtime/scaffold.d.ts +1 -0
  233. package/build/v4/runtime/scaffold.d.ts.map +1 -1
  234. package/build/v4/runtime/scaffold.js +1 -20
  235. package/build/v4/runtime/scaffold.js.map +1 -1
  236. package/build/v4/runtime/steps/daAction.d.ts.map +1 -1
  237. package/build/v4/runtime/steps/daAction.js +3 -111
  238. package/build/v4/runtime/steps/daAction.js.map +1 -1
  239. package/build/v4/runtime/steps/daSensitivity.d.ts +14 -0
  240. package/build/v4/runtime/steps/daSensitivity.d.ts.map +1 -0
  241. package/build/v4/runtime/steps/daSensitivity.js +50 -0
  242. package/build/v4/runtime/steps/daSensitivity.js.map +1 -0
  243. package/build/v4/runtime/steps/mcpAuth.d.ts +5 -2
  244. package/build/v4/runtime/steps/mcpAuth.d.ts.map +1 -1
  245. package/build/v4/runtime/steps/mcpAuth.js +37 -66
  246. package/build/v4/runtime/steps/mcpAuth.js.map +1 -1
  247. package/build/v4/runtime/steps/mcpLocal.d.ts +0 -4
  248. package/build/v4/runtime/steps/mcpLocal.d.ts.map +1 -1
  249. package/build/v4/runtime/steps/mcpLocal.js +11 -31
  250. package/build/v4/runtime/steps/mcpLocal.js.map +1 -1
  251. package/build/v4/runtime/steps/mcpStatic.d.ts +1 -1
  252. package/build/v4/runtime/steps/mcpStatic.d.ts.map +1 -1
  253. package/build/v4/runtime/steps/mcpStatic.js +14 -32
  254. package/build/v4/runtime/steps/mcpStatic.js.map +1 -1
  255. package/build/v4/runtime/steps/metaOs.d.ts.map +1 -1
  256. package/build/v4/runtime/steps/metaOs.js +39 -51
  257. package/build/v4/runtime/steps/metaOs.js.map +1 -1
  258. package/build/v4/runtime/steps/officeAddin.d.ts.map +1 -1
  259. package/build/v4/runtime/steps/officeAddin.js +7 -12
  260. package/build/v4/runtime/steps/officeAddin.js.map +1 -1
  261. package/build/v4/runtime/steps/openApi.d.ts.map +1 -1
  262. package/build/v4/runtime/steps/openApi.js +85 -566
  263. package/build/v4/runtime/steps/openApi.js.map +1 -1
  264. package/build/v4/runtime/steps/openApiCustomApi.d.ts +5 -0
  265. package/build/v4/runtime/steps/openApiCustomApi.d.ts.map +1 -0
  266. package/build/v4/runtime/steps/openApiCustomApi.js +385 -0
  267. package/build/v4/runtime/steps/openApiCustomApi.js.map +1 -0
  268. package/build/v4/runtime/whitelist.d.ts +27 -0
  269. package/build/v4/runtime/whitelist.d.ts.map +1 -1
  270. package/build/v4/runtime/whitelist.js +156 -1
  271. package/build/v4/runtime/whitelist.js.map +1 -1
  272. package/build/v4/runtime/withTempDirectory.d.ts +10 -0
  273. package/build/v4/runtime/withTempDirectory.d.ts.map +1 -0
  274. package/build/v4/runtime/withTempDirectory.js +41 -0
  275. package/build/v4/runtime/withTempDirectory.js.map +1 -0
  276. package/build/v4/surface/createFloorTail.d.ts +12 -0
  277. package/build/v4/surface/createFloorTail.d.ts.map +1 -0
  278. package/build/v4/surface/createFloorTail.js +138 -0
  279. package/build/v4/surface/createFloorTail.js.map +1 -0
  280. package/build/v4/surface/createInputs.d.ts +25 -3
  281. package/build/v4/surface/createInputs.d.ts.map +1 -1
  282. package/build/v4/surface/createInputs.js +54 -431
  283. package/build/v4/surface/createInputs.js.map +1 -1
  284. package/build/v4/surface/createSelectorWalk.d.ts +8 -3
  285. package/build/v4/surface/createSelectorWalk.d.ts.map +1 -1
  286. package/build/v4/surface/createSelectorWalk.js +21 -11
  287. package/build/v4/surface/createSelectorWalk.js.map +1 -1
  288. package/build/v4/surface/deriveCreateOptions.d.ts.map +1 -1
  289. package/build/v4/surface/deriveCreateOptions.js +5 -2
  290. package/build/v4/surface/deriveCreateOptions.js.map +1 -1
  291. package/build/v4/surface/localizePrompt.d.ts +11 -0
  292. package/build/v4/surface/localizePrompt.d.ts.map +1 -0
  293. package/build/v4/surface/localizePrompt.js +32 -0
  294. package/build/v4/surface/localizePrompt.js.map +1 -0
  295. package/build/v4/surface/modifySelectorWalk.d.ts.map +1 -1
  296. package/build/v4/surface/modifySelectorWalk.js +0 -3
  297. package/build/v4/surface/modifySelectorWalk.js.map +1 -1
  298. package/build/v4/surface/uiPromptUI.d.ts.map +1 -1
  299. package/build/v4/surface/uiPromptUI.js +45 -45
  300. package/build/v4/surface/uiPromptUI.js.map +1 -1
  301. package/build/v4/validation/capabilityCatalog.d.ts +8 -0
  302. package/build/v4/validation/capabilityCatalog.d.ts.map +1 -0
  303. package/build/v4/validation/capabilityCatalog.js +62 -0
  304. package/build/v4/validation/capabilityCatalog.js.map +1 -0
  305. package/build/v4/validation/templateArchiveValidation.d.ts +15 -0
  306. package/build/v4/validation/templateArchiveValidation.d.ts.map +1 -0
  307. package/build/v4/validation/templateArchiveValidation.js +297 -0
  308. package/build/v4/validation/templateArchiveValidation.js.map +1 -0
  309. package/build/v4/validation/validateTemplatePackage.d.ts +21 -2
  310. package/build/v4/validation/validateTemplatePackage.d.ts.map +1 -1
  311. package/build/v4/validation/validateTemplatePackage.js +155 -31
  312. package/build/v4/validation/validateTemplatePackage.js.map +1 -1
  313. package/build/v4/validators/createInputValidators.d.ts +7 -0
  314. package/build/v4/validators/createInputValidators.d.ts.map +1 -0
  315. package/build/v4/validators/createInputValidators.js +77 -0
  316. package/build/v4/validators/createInputValidators.js.map +1 -0
  317. package/build/v4/validators/mcpCredentialValidators.d.ts +5 -0
  318. package/build/v4/validators/mcpCredentialValidators.d.ts.map +1 -0
  319. package/build/v4/validators/mcpCredentialValidators.js +13 -0
  320. package/build/v4/validators/mcpCredentialValidators.js.map +1 -0
  321. package/build/v4/validators/mcpServerUrlValidator.d.ts +9 -0
  322. package/build/v4/validators/mcpServerUrlValidator.d.ts.map +1 -0
  323. package/build/v4/validators/mcpServerUrlValidator.js +15 -0
  324. package/build/v4/validators/mcpServerUrlValidator.js.map +1 -0
  325. package/package.json +29 -23
  326. package/resource/package.nls.cs.json +56 -54
  327. package/resource/package.nls.de.json +56 -54
  328. package/resource/package.nls.es.json +55 -53
  329. package/resource/package.nls.fr.json +56 -54
  330. package/resource/package.nls.it.json +55 -53
  331. package/resource/package.nls.ja.json +56 -54
  332. package/resource/package.nls.json +10 -3
  333. package/resource/package.nls.ko.json +56 -54
  334. package/resource/package.nls.pl.json +56 -54
  335. package/resource/package.nls.pt-BR.json +56 -54
  336. package/resource/package.nls.ru.json +56 -54
  337. package/resource/package.nls.tr.json +56 -54
  338. package/resource/package.nls.zh-Hans.json +56 -54
  339. package/resource/package.nls.zh-Hant.json +56 -54
  340. package/resource/templates/package.nls.cs.json +22 -9
  341. package/resource/templates/package.nls.de.json +22 -9
  342. package/resource/templates/package.nls.es.json +22 -9
  343. package/resource/templates/package.nls.fr.json +22 -9
  344. package/resource/templates/package.nls.it.json +22 -9
  345. package/resource/templates/package.nls.ja.json +22 -9
  346. package/resource/templates/package.nls.json +16 -3
  347. package/resource/templates/package.nls.ko.json +22 -9
  348. package/resource/templates/package.nls.pl.json +22 -9
  349. package/resource/templates/package.nls.pt-BR.json +22 -9
  350. package/resource/templates/package.nls.ru.json +22 -9
  351. package/resource/templates/package.nls.tr.json +22 -9
  352. package/resource/templates/package.nls.zh-Hans.json +22 -9
  353. package/resource/templates/package.nls.zh-Hant.json +22 -9
  354. package/resource/templates/package.nls.zh-cn.json +7 -1
  355. package/resource/templates/package.nls.zh-tw.json +7 -1
  356. package/templates/fallback/common.zip +0 -0
  357. package/templates/fallback/csharp.zip +0 -0
  358. package/templates/fallback/js.zip +0 -0
  359. package/templates/fallback/python.zip +0 -0
  360. package/templates/fallback/ts.zip +0 -0
  361. package/templates/metadata/allTemplates.json +16 -2
  362. package/templates/metadata.zip +0 -0
  363. package/templates/ui/wizardNode.json +24 -0
  364. package/templates/v4/create-selector.json +30 -5
  365. package/templates/v4/floor.json +1 -1
  366. package/templates/v4/modify-selector.json +1 -6
  367. package/templates/v4/templates-metadata.zip +0 -0
  368. package/templates/v4/templates.zip +0 -0
  369. package/templates/configs/local/typescript/.gitignore +0 -1
  370. package/templates/configs/playground/typescript/.gitignore +0 -4
@@ -5,10 +5,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.scaffoldV4Deps = void 0;
6
6
  exports.scaffoldV4 = scaffoldV4;
7
7
  exports.collectCreateFloor = collectCreateFloor;
8
- exports.applyV3PreFill = applyV3PreFill;
9
8
  const tslib_1 = require("tslib");
10
9
  /**
11
- * The composition-root impl of the two flag-on `createProjectFrontDoor` seams
10
+ * The composition-root impl of the flag-on `createProjectFrontDoor` seams
12
11
  * (`dispatch-create-by-engine` `CreateFrontDoorDeps`). These live outside the
13
12
  * pure orchestrator so it stays injectable and I/O-free: `FxCore` wires these
14
13
  * real handlers, the orchestrator's tests wire fakes.
@@ -16,10 +15,6 @@ const tslib_1 = require("tslib");
16
15
  * - `scaffoldV4` — the `engine: "v4"` hand-off: build a v3 `GeneratorContext`
17
16
  * over the create floor and render the authored declarative
18
17
  * package through the v4 distribution channel.
19
- * - `applyV3PreFill` — the `engine: "v3"` adapter: translate the Q1 dimension
20
- * picks the v4 selector collected onto the v3
21
- * `QuestionNames.*` so `createProject`'s `QuestionMW` skips
22
- * Q1 and asks only Q2 (dispatch-create-by-engine INV-5).
23
18
  */
24
19
  const teamsfx_api_1 = require("@microsoft/teamsfx-api");
25
20
  const fs = tslib_1.__importStar(require("fs-extra"));
@@ -32,9 +27,12 @@ const generator_1 = require("../component/generator/generator");
32
27
  const utils_1 = require("../component/generator/utils");
33
28
  const v4TemplateBridge_1 = require("../component/generator/v4TemplateBridge");
34
29
  const telemetry_2 = require("../component/telemetry");
30
+ const ManifestUtils_1 = require("../component/driver/teamsApp/utils/ManifestUtils");
35
31
  const pathUtils_1 = require("../component/utils/pathUtils");
36
32
  const common_1 = require("../error/common");
37
33
  const question_1 = require("../question");
34
+ const v4_1 = require("../v4");
35
+ const runtimeRegistry_1 = require("../v4/runtime/runtimeRegistry");
38
36
  /** The package namespace the create front door opens v4 packages under. */
39
37
  const CREATE_KIND = "create";
40
38
  /** The language a single-language (language-neutral) v4 package scaffolds under. */
@@ -62,8 +60,9 @@ exports.scaffoldV4Deps = {
62
60
  * floor (`folder` / `app-name`), then renders the located `create/<templateId>`
63
61
  * declarative package onto disk via the v4 distribution channel.
64
62
  *
65
- * Mirrors the legacy customized-generator validation and tracking-id tail so a
66
- * v4 scaffold yields the same `CreateProjectResult` shape as every other create path.
63
+ * Mirrors the legacy customized-generator validation, tracking-id and manifest
64
+ * short-name-trim tail so a v4 scaffold yields the same `CreateProjectResult`
65
+ * shape as every other create path.
67
66
  */
68
67
  async function scaffoldV4(inputs, target, answers, flagReader, resolvedPackage) {
69
68
  const folderInput = inputs[question_1.QuestionNames.Folder];
@@ -97,7 +96,7 @@ async function scaffoldV4(inputs, target, answers, flagReader, resolvedPackage)
97
96
  const locator = { kind: CREATE_KIND, templateId: target.templateId };
98
97
  const callerFloor = { appName, language };
99
98
  try {
100
- const source = await exports.scaffoldV4Deps.scaffoldDeclarativeFromV4Channel(generatorContext, locator, answers, callerFloor, telemetryProps, flagReader, resolvedPackage);
99
+ const source = await exports.scaffoldV4Deps.scaffoldDeclarativeFromV4Channel(generatorContext, locator, answers, callerFloor, telemetryProps, flagReader, resolvedPackage, (0, runtimeRegistry_1.createStepRegistry)((0, v4_1.createGeneralSensitivityLabelService)(globalVars_1.TOOLS.tokenProvider.m365TokenProvider)));
101
100
  if (source.warning) {
102
101
  globalVars_1.TOOLS.logProvider.warning(source.warning);
103
102
  }
@@ -109,6 +108,11 @@ async function scaffoldV4(inputs, target, answers, flagReader, resolvedPackage)
109
108
  }
110
109
  (0, telemetry_2.sendSuccessEvent)(telemetry_1.TelemetryEvent.GenerateTemplate, telemetryProps);
111
110
  const result = { projectPath };
111
+ // The scaffolding summary and the surfaces' post-create notifications read these; dropping
112
+ // them here is what would make a placeholder-bearing m365agents.yml fail silently later.
113
+ if (generatorContext.warnings?.length) {
114
+ result.warnings = generatorContext.warnings;
115
+ }
112
116
  const ymlPath = pathUtils_1.pathUtils.getYmlFilePath(projectPath, "dev");
113
117
  if (ymlPath && (await fs.pathExists(ymlPath))) {
114
118
  const ensureRes = await coordinator_1.coordinator.ensureTrackingId(projectPath, inputs.projectId);
@@ -117,6 +121,10 @@ async function scaffoldV4(inputs, target, answers, flagReader, resolvedPackage)
117
121
  }
118
122
  result.projectId = ensureRes.value;
119
123
  }
124
+ const trimRes = await ManifestUtils_1.manifestUtils.trimManifestShortName(projectPath);
125
+ if (trimRes.isErr()) {
126
+ return (0, teamsfx_api_1.err)(trimRes.error);
127
+ }
120
128
  return (0, teamsfx_api_1.ok)(result);
121
129
  }
122
130
  function getStringValidationFunc(validation) {
@@ -199,152 +207,4 @@ async function collectCreateFloor(inputs, ui) {
199
207
  }
200
208
  return (0, teamsfx_api_1.ok)(undefined);
201
209
  }
202
- const COPILOT_AGENT_PROJECT_TYPE = "copilot-agent-type";
203
- const CUSTOM_ENGINE_AGENT_PROJECT_TYPE = "custom-engine-agent-type";
204
- const TEAMS_PROJECT_TYPE = "teams-agent-and-app-type";
205
- const OFFICE_PROJECT_TYPE = "office-meta-os-type";
206
- const DECLARATIVE_AGENT_CAPABILITY = "declarative-agent";
207
- const ADD_ACTION_DA_TEMPLATE = "add-action";
208
- const NEW_API_ACTION_SOURCE = "new-api";
209
- const TEAMS_RAG_APP = "rag";
210
- const TEAMS_OTHER_APP = "other";
211
- const OFFICE_DA_META_OS_CAPABILITY = "office-da-meta-os";
212
- /**
213
- * The v3 `teams-other-app-type` question has no `QuestionNames` member (the
214
- * wizard JSON names it inline), so the pre-fill keys it by its literal name.
215
- */
216
- const TEAMS_OTHER_APP_TYPE_QUESTION = "teams-other-app-type";
217
- /** Copilot-agent selector `daTemplate` → the v3 `with-plugin` answer. */
218
- const WITH_PLUGIN_BY_DA_TEMPLATE = {
219
- "no-action": "no",
220
- "add-action": "yes",
221
- "graph-connector": "gc",
222
- skill: "skill",
223
- typespec: "type-spec",
224
- };
225
- /** Copilot-agent selector `actionSource` → the v3 `api-plugin-type` answer. */
226
- const ACTION_TYPE_BY_ACTION_SOURCE = {
227
- "new-api": "new-api",
228
- openapi: "api-spec",
229
- mcp: "mcp",
230
- };
231
- /** Teams selector `teamsApp` → the v3 `teams-app-type` answer (ids are renamed). */
232
- const TEAMS_APP_TYPE_BY_TEAMS_APP = {
233
- "custom-copilot-basic": "custom-copilot-basic",
234
- rag: "custom-copilot-rag",
235
- "teams-collaborator-agent": "teams-collaborator-agent",
236
- other: "teams-other-app-type",
237
- };
238
- /** Office-addin selector `officeAddinCapability` → the v3 `capabilities` answer. */
239
- const OFFICE_CAPABILITY_BY_ADDIN_CAPABILITY = {
240
- "office-addin-wxpo-taskpane": "wxp-json-taskpane",
241
- "office-addin-excel-cfshortcut": "wxp-json-cf-shortcut",
242
- "office-da-meta-os": "office-da-meta-os",
243
- "office-addin-config": "office-addin-import",
244
- };
245
- /** Office-addin selector `daMetaOsCapability` → the v3 `da-meta-os-capability` answer. */
246
- const DA_META_OS_CAPABILITY_BY_SELECTOR = {
247
- "declarative-agent-meta-os-upgrade-project": "da-meta-os-upgrade-existing-project",
248
- };
249
- /**
250
- * The `engine: "v3"` adapter (dispatch-create-by-engine INV-5). Translate the Q1
251
- * dimension picks the v4 selector collected (`target.answers`) onto the v3
252
- * `QuestionNames.*` so `createProject`'s `QuestionMW` skips Q1 and asks only Q2.
253
- *
254
- * It does **not** set `QuestionNames.TemplateName`: a preset single-select answer
255
- * still fires its `onDidSelection` during the v3 walk (`questionVisitor`), and
256
- * the deepest preset dimension's callback sets `TemplateName` to the route's
257
- * `templateId` — while `traverse`'s `TemplateName` short-circuit (checked only at
258
- * entry) does not fire, so the non-preset Q2 (app name / language / folder) is
259
- * still asked.
260
- *
261
- * Each `projectType` family translates its selector dimension ids onto the v3
262
- * `QuestionNames.*` (the ids diverge per family; the maps above own each rename).
263
- * `graph-connector-type` carries no capability dimension (its v3 node is a group),
264
- * so it pre-fills `ProjectType` only and the v3 walk asks its Q2 group. Setting
265
- * only `ProjectType` for any not-yet-expanded dimension is safe: the v3 walk
266
- * re-asks the un-preset dimensions rather than mis-scaffolding.
267
- */
268
- function applyV3PreFill(inputs, target) {
269
- const answers = target.answers;
270
- if (!answers) {
271
- return;
272
- }
273
- const projectType = answers.projectType;
274
- if (!projectType) {
275
- return;
276
- }
277
- // The selector `projectType` ids are the v3 `ProjectTypeOptions` ids (1:1).
278
- inputs[question_1.QuestionNames.ProjectType] = projectType;
279
- if (projectType === COPILOT_AGENT_PROJECT_TYPE) {
280
- preFillCopilotAgent(inputs, answers);
281
- }
282
- else if (projectType === CUSTOM_ENGINE_AGENT_PROJECT_TYPE) {
283
- preFillCustomEngineAgent(inputs, answers);
284
- }
285
- else if (projectType === TEAMS_PROJECT_TYPE) {
286
- preFillTeamsApp(inputs, answers);
287
- }
288
- else if (projectType === OFFICE_PROJECT_TYPE) {
289
- preFillOfficeAddin(inputs, answers);
290
- }
291
- }
292
- /** Expand the copilot-agent Q1 picks onto the v3 declarative-agent question path. */
293
- function preFillCopilotAgent(inputs, answers) {
294
- inputs[question_1.QuestionNames.Capabilities] = DECLARATIVE_AGENT_CAPABILITY;
295
- const withPlugin = WITH_PLUGIN_BY_DA_TEMPLATE[answers.daTemplate];
296
- if (withPlugin) {
297
- inputs[question_1.QuestionNames.WithPlugin] = withPlugin;
298
- }
299
- if (answers.daTemplate !== ADD_ACTION_DA_TEMPLATE) {
300
- return;
301
- }
302
- const actionType = ACTION_TYPE_BY_ACTION_SOURCE[answers.actionSource];
303
- if (actionType) {
304
- inputs[question_1.QuestionNames.ActionType] = actionType;
305
- inputs["action-type"] = actionType; // v3 walk's `questionVisitor` looks for this alias when it visits the action-type question
306
- }
307
- // The api-auth dimension only applies to the new-api action source; its ids are
308
- // shared verbatim between the selector and the v3 `api-auth` question.
309
- if (answers.actionSource === NEW_API_ACTION_SOURCE && answers.apiAuth) {
310
- inputs[question_1.QuestionNames.ApiAuth] = answers.apiAuth;
311
- }
312
- }
313
- /** Expand the custom-engine-agent Q1 pick onto the v3 capabilities question. */
314
- function preFillCustomEngineAgent(inputs, answers) {
315
- // The selector `customEngineAgent` ids are the v3 `capabilities` ids (1:1).
316
- if (answers.customEngineAgent) {
317
- inputs[question_1.QuestionNames.Capabilities] = answers.customEngineAgent;
318
- }
319
- }
320
- /** Expand the teams Q1 picks onto the v3 teams-app-type question path. */
321
- function preFillTeamsApp(inputs, answers) {
322
- const teamsAppType = TEAMS_APP_TYPE_BY_TEAMS_APP[answers.teamsApp];
323
- if (!teamsAppType) {
324
- return;
325
- }
326
- inputs[question_1.QuestionNames.TeamsAppType] = teamsAppType;
327
- // The rag-source / other-capability dimension ids are shared verbatim with the
328
- // v3 questions; only the parent `teamsApp` id is renamed (the map above).
329
- if (answers.teamsApp === TEAMS_RAG_APP && answers.customCopilotRagType) {
330
- inputs[question_1.QuestionNames.CustomCopilotRag] = answers.customCopilotRagType;
331
- }
332
- else if (answers.teamsApp === TEAMS_OTHER_APP && answers.teamsOtherAppType) {
333
- inputs[TEAMS_OTHER_APP_TYPE_QUESTION] = answers.teamsOtherAppType;
334
- }
335
- }
336
- /** Expand the office-addin Q1 picks onto the v3 capabilities question path. */
337
- function preFillOfficeAddin(inputs, answers) {
338
- const capability = OFFICE_CAPABILITY_BY_ADDIN_CAPABILITY[answers.officeAddinCapability];
339
- if (!capability) {
340
- return;
341
- }
342
- inputs[question_1.QuestionNames.Capabilities] = capability;
343
- if (answers.officeAddinCapability === OFFICE_DA_META_OS_CAPABILITY) {
344
- const daMetaOsCapability = DA_META_OS_CAPABILITY_BY_SELECTOR[answers.daMetaOsCapability];
345
- if (daMetaOsCapability) {
346
- inputs[question_1.QuestionNames.DAMetaOSCapability] = daMetaOsCapability;
347
- }
348
- }
349
- }
350
210
  //# sourceMappingURL=createFrontDoorAdapters.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"createFrontDoorAdapters.js","sourceRoot":"","sources":["../../src/core/createFrontDoorAdapters.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAsFlC,gCAqEC;AA2CD,gDA4DC;AA2ED,wCAqBC;;AAhWD;;;;;;;;;;;;;GAaG;AAEH,wDASgC;AAChC,qDAA+B;AAC/B,+DAAyC;AACzC,wDAAwB;AAExB,mDAAmF;AACnF,qDAA6C;AAC7C,0DAAuD;AACvD,gEAAgF;AAEhF,wDAAgE;AAChE,8EAGiD;AACjD,sDAA0E;AAC1E,4DAA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G,cAAc,CAAC;QAC/C,OAAO,oBAAoB,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IACtD,CAAC;IAED,MAAM,aAAa,GAAG,MAAM,EAAE,CAAC,SAAS,CAAC;QACvC,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,KAAK,EAAE,CAAC,MAAM,kBAAkB,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,IAAI,EAAE;QAC9D,WAAW,EAAE,MAAM,kBAAkB,CAAC,OAAO,CAAC,WAAW,EAAE,MAAM,CAAC;QAClE,MAAM,EAAE,MAAM,kBAAkB,CAAC,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC;QACxD,OAAO,EAAE,cAAc;QACvB,UAAU,EAAE,uBAAuB,CAAC,OAAO,CAAC,UAAU,CAAC;KACxD,CAAC,CAAC;IACH,IAAI,aAAa,CAAC,KAAK,EAAE,EAAE,CAAC;QAC1B,OAAO,IAAA,iBAAG,EAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAClC,CAAC;IACD,IAAI,OAAO,aAAa,CAAC,KAAK,CAAC,MAAM,KAAK,QAAQ,EAAE,CAAC;QACnD,MAAM,CAAC,wBAAa,CAAC,OAAO,CAAC,GAAG,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC;IAC7D,CAAC;IACD,OAAO,IAAA,gBAAE,EAAC,SAAS,CAAC,CAAC;AACvB,CAAC"}
@@ -1,24 +1,22 @@
1
1
  import { CreateProjectResult, FxError, Inputs, UserInteraction } from "@microsoft/teamsfx-api";
2
2
  import { Result } from "neverthrow";
3
- import { Answers, BuildTarget, TemplateArtifactKind, TemplateArtifactSnapshot, resolveCreateTargetByTemplateId, runCreateInputs, runCreateSelector } from "../v4";
3
+ import { Answers, BuildTarget, TemplateArtifactKind, TemplateArtifactSnapshot, resolveCreateTargetByTemplateId, runCreateInputsWalk, runCreateSelector } from "../v4";
4
4
  import type { ResolvedV4ChannelPackage } from "../component/generator/v4TemplateBridge";
5
5
  /**
6
- * The create front door's injected seams. `createV3` is required it is both the
7
- * flag-off pass-through and the engine=v3 hand-off, and injecting it (rather than
8
- * importing `FxCore`) keeps this seam free of an import cycle. `scaffoldV4`,
9
- * `runInputs`, and `applyV3PreFill` are the flag-on hand-offs the
6
+ * The create front door's injected seams. `createV3` is required for the
7
+ * flag-off pass-through, and injecting it (rather than importing `FxCore`) keeps
8
+ * this seam free of an import cycle. `scaffoldV4`, `runInputs`, and the legacy
9
+ * `collectCreateFloor` seam are the flag-on hand-offs the
10
10
  * composition root (`FxCore`) supplies. The remaining members default to the real
11
11
  * wiring, so a production caller passes only the four handlers.
12
12
  */
13
13
  export interface CreateFrontDoorDeps {
14
- /** The flag-off pass-through + the engine=v3 hand-off: the unmodified `FxCore.createProject`. */
14
+ /** The flag-off pass-through: the unmodified `FxCore.createProject`. */
15
15
  createV3: (inputs: Inputs) => Promise<Result<CreateProjectResult, FxError>>;
16
16
  /** The engine=v4 hand-off: build the scaffold context + run the authored declarative package. */
17
17
  scaffoldV4: (inputs: Inputs, target: BuildTarget, answers: Answers, flagReader: (name: string) => boolean, resolvedPackage?: ResolvedV4ChannelPackage) => Promise<Result<CreateProjectResult, FxError>>;
18
18
  /** Legacy create-floor seam retained for existing composition wiring; v4 now appends floor questions inside `runInputs`. */
19
19
  collectCreateFloor: (inputs: Inputs, ui: UserInteraction) => Promise<Result<undefined, FxError>>;
20
- /** The engine=v3 adapter: translate the Q1 dimension picks onto the v3 `QuestionNames.*` (INV-5). */
21
- applyV3PreFill: (inputs: Inputs, target: BuildTarget) => void;
22
20
  /** The feature-flag reader (default: `featureFlagManager`-backed, so VS Code-settings flags apply). */
23
21
  flagReader?: (name: string) => boolean;
24
22
  /** The bundled-floor channel-zip reader (default: the shipped `templates.zip`; injectable for tests, INV-6). */
@@ -35,14 +33,14 @@ export interface CreateFrontDoorDeps {
35
33
  runSelector?: typeof runCreateSelector;
36
34
  /** Resolve a target directly from a preset `template-name`, bypassing Q1 (default: the real `resolveCreateTargetByTemplateId`). */
37
35
  resolveByTemplateId?: typeof resolveCreateTargetByTemplateId;
38
- /** The Q2 inputs walk (default: the real `runCreateInputs`). */
39
- runInputs?: typeof runCreateInputs;
36
+ /** The Q2 inputs walk (default: the real `runCreateInputsWalk`, returning a resumable outcome). */
37
+ runInputs?: typeof runCreateInputsWalk;
40
38
  }
41
39
  /**
42
40
  * Run the create front door for `inputs`, dispatching the resolved engine.
43
41
  *
44
- * @param inputs the v3 create inputs (carries `platform`; mutated in place by the
45
- * engine=v3 pre-fill before the hand-off to `createV3`)
42
+ * @param inputs the create inputs (carries `platform`; mutated in place by the
43
+ * v4 floor collection before the hand-off to `scaffoldV4`)
46
44
  * @param deps the injected seams (see `CreateFrontDoorDeps`)
47
45
  * @returns the created project (drop-in for `FxCore.createProject`), or a
48
46
  * `UserError` / `SystemError` (a surface cancellation or a route break)
@@ -1 +1 @@
1
- {"version":3,"file":"createProjectFrontDoor.d.ts","sourceRoot":"","sources":["../../src/core/createProjectFrontDoor.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,mBAAmB,EACnB,OAAO,EACP,MAAM,EAGN,eAAe,EAChB,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EAAE,MAAM,EAAW,MAAM,YAAY,CAAC;AAC7C,OAAO,EACL,OAAO,EACP,WAAW,EAEX,oBAAoB,EACpB,wBAAwB,EAExB,+BAA+B,EAC/B,eAAe,EACf,iBAAiB,EAElB,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AAsExF;;;;;;;GAOG;AACH,MAAM,WAAW,mBAAmB;IAClC,iGAAiG;IACjG,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC,CAAC;IAC5E,iGAAiG;IACjG,UAAU,EAAE,CACV,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,WAAW,EACnB,OAAO,EAAE,OA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AAE,CACxB,YAAY,EAAE,oBAAoB,KAC/B,OAAO,CAAC,MAAM,CAAC,wBAAwB,EAAE,OAAO,CAAC,CAAC,CAAC;IACxD,6DAA6D;IAC7D,UAAU,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC;IAC7C,8CAA8C;IAC9C,EAAE,CAAC,EAAE,eAAe,CAAC;IACrB,oEAAoE;IACpE,WAAW,CAAC,EAAE,OAAO,iBAAiB,CAAC;IACvC,mIAAmI;IACnI,mBAAmB,CAAC,EAAE,OAAO,+BAA+B,CAAC;IAC7D,mGAAmG;IACnG,SAAS,CAAC,EAAE,OAAO,mBAAmB,CAAC;CACxC;AA0GD;;;;;;;;GAQG;AACH,wBAAsB,sBAAsB,CAC1C,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,mBAAmB,GACxB,OAAO,CAAC,MAAM,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC,CAsL/C"}
@@ -25,10 +25,8 @@ const questionNames_1 = require("../question/questionNames");
25
25
  * - `v4` → run the template's own Q2 (`runCreateInputs`) over the
26
26
  * same floor, with the create floor appended to the same
27
27
  * walk, then `scaffoldV4` the authored package;
28
- * - `v3` → translate the Q1 picks onto the v3 `QuestionNames.*`
29
- * (`applyV3PreFill`, INV-5) and hand off to `createV3`,
30
- * whose `QuestionMW` then skips Q1 and asks only Q2;
31
28
  * - `surface-action` → return the action's surface signal (no scaffold).
29
+ * - `v3` / `v3-core-method` → unsupported when the v4 front door is enabled.
32
30
  * Flag off is a pure pass-through to the unmodified `createV3` (INV-1): the
33
31
  * selector is never walked, so v3 behavior is byte-identical.
34
32
  *
@@ -54,6 +52,8 @@ const V4_TO_V3_TEMPLATE_ID = {
54
52
  "default-bot": templateNames_1.TemplateNames.DefaultBot,
55
53
  "office-addin-wxpo-taskpane": templateNames_1.TemplateNames.WXPTaskpane,
56
54
  "office-addin-excel-cfshortcut": templateNames_1.TemplateNames.ExcelCFShortcut,
55
+ "office-addin-excel-customfunctions": templateNames_1.TemplateNames.ExcelCustomFunctions,
56
+ "office-addin-sso-naa": templateNames_1.TemplateNames.OfficeAddinSsoNaa,
57
57
  "declarative-agent-meta-os-upgrade-project": "declarative-agent-meta-os-upgrade-project",
58
58
  "office-addin-config": templateNames_1.TemplateNames.OfficeAddinCommon,
59
59
  "da/no-action": templateNames_1.TemplateNames.DeclarativeAgentBasic,
@@ -156,11 +156,18 @@ function dispatchSurfaceAction(target) {
156
156
  message: `The create front door does not handle the '${target.templateId}' surface action.`,
157
157
  }));
158
158
  }
159
+ function unsupportedCreateTarget(target) {
160
+ return new teamsfx_api_1.SystemError({
161
+ source: SOURCE,
162
+ name: "UnsupportedCreateEngine",
163
+ message: `The create front door does not dispatch the '${target.engine}' engine.`,
164
+ });
165
+ }
159
166
  /**
160
167
  * Run the create front door for `inputs`, dispatching the resolved engine.
161
168
  *
162
- * @param inputs the v3 create inputs (carries `platform`; mutated in place by the
163
- * engine=v3 pre-fill before the hand-off to `createV3`)
169
+ * @param inputs the create inputs (carries `platform`; mutated in place by the
170
+ * v4 floor collection before the hand-off to `scaffoldV4`)
164
171
  * @param deps the injected seams (see `CreateFrontDoorDeps`)
165
172
  * @returns the created project (drop-in for `FxCore.createProject`), or a
166
173
  * `UserError` / `SystemError` (a surface cancellation or a route break)
@@ -176,15 +183,83 @@ async function createProjectFrontDoor(inputs, deps) {
176
183
  let snapshot = deps.artifactSnapshot;
177
184
  let floorBytes;
178
185
  const interactive = !inputs.nonInteractive;
186
+ // Dispatch one resolved BuildTarget by its engine (INV-3). Returns a scaffolded
187
+ // result, or `{ kind: "back" }` when a backable Q2 was exited at its first prompt
188
+ // (the caller re-enters Q1). `snapshot` / `floorBytes` are read lazily and shared.
189
+ async function dispatchByEngine(target, baseStep, backable) {
190
+ switch (target.engine) {
191
+ case "surface-action": {
192
+ const action = dispatchSurfaceAction(target);
193
+ return action.isErr() ? (0, neverthrow_1.err)(action.error) : (0, neverthrow_1.ok)({ kind: "result", result: action.value });
194
+ }
195
+ case "v3-core-method":
196
+ return (0, neverthrow_1.err)(unsupportedCreateTarget(target));
197
+ case "v4": {
198
+ inputs[questionNames_1.QuestionNames.TemplateName] = templateNameForV4(target);
199
+ const runInputs = deps.runInputs ?? v4_1.runCreateInputsWalk;
200
+ const locator = { kind: "create", templateId: target.templateId };
201
+ // Q2 + common floor, over the same floor, continuing Q1's step numbering.
202
+ const entryParams = {
203
+ ...(target.answers ?? {}),
204
+ ...neutralAnswersFromInputs(inputs),
205
+ };
206
+ let inputBytes;
207
+ if (snapshot === undefined) {
208
+ inputBytes = floorBytes ?? (deps.readFloorBytes ?? readBundledFloorBytes)();
209
+ }
210
+ else {
211
+ const metadataBytes = await readSnapshotBytes(snapshot, "metadata");
212
+ if (metadataBytes.isErr()) {
213
+ return (0, neverthrow_1.err)(metadataBytes.error);
214
+ }
215
+ inputBytes = metadataBytes.value;
216
+ }
217
+ const outcome = await runInputs(inputBytes, locator, entryParams, ui, {
218
+ flagReader,
219
+ surface,
220
+ inputs,
221
+ baseStep,
222
+ backable,
223
+ });
224
+ if (outcome.isErr()) {
225
+ return (0, neverthrow_1.err)(outcome.error);
226
+ }
227
+ if (outcome.value.kind === "back") {
228
+ return (0, neverthrow_1.ok)({ kind: "back" });
229
+ }
230
+ const answers = outcome.value.answers;
231
+ applyV4CreateFloorAnswers(inputs, answers);
232
+ // The scaffold contract is a plain BuildTarget; do not leak Q1 walk metadata.
233
+ const scaffoldTarget = {
234
+ templateId: target.templateId,
235
+ engine: target.engine,
236
+ answers: target.answers,
237
+ };
238
+ if (snapshot !== undefined) {
239
+ const fullBytes = await readSnapshotBytes(snapshot, "templates");
240
+ if (fullBytes.isErr()) {
241
+ return (0, neverthrow_1.err)(fullBytes.error);
242
+ }
243
+ const scaffolded = await deps.scaffoldV4(inputs, scaffoldTarget, answers, flagReader, {
244
+ source: (0, v4_1.templateSourceFromArtifactSnapshot)(snapshot),
245
+ bytes: fullBytes.value,
246
+ });
247
+ return scaffolded.isErr()
248
+ ? (0, neverthrow_1.err)(scaffolded.error)
249
+ : (0, neverthrow_1.ok)({ kind: "result", result: scaffolded.value });
250
+ }
251
+ const scaffolded = await deps.scaffoldV4(inputs, scaffoldTarget, answers, flagReader);
252
+ return scaffolded.isErr()
253
+ ? (0, neverthrow_1.err)(scaffolded.error)
254
+ : (0, neverthrow_1.ok)({ kind: "result", result: scaffolded.value });
255
+ }
256
+ }
257
+ }
179
258
  // A surface that already resolved the leaf template — the CLI in non-interactive
180
259
  // mode presets `template-name` from its `-c` capability — pins the BuildTarget by
181
- // id: the Q1 selector is a *router*, so re-walking it would re-prompt, or (non-
182
- // interactive) fail on a missing dimension, for a target already chosen. Resolve
183
- // the engine from the template's route and reuse the v3 `traverse` short-circuit
184
- // on `template-name` for the v3 hand-off. Otherwise walk Q1 (INV-2), threading
185
- // `interactive` so a non-interactive surface never silently prompts.
260
+ // id: the Q1 selector is a *router*, so re-walking it would re-prompt. Resolve the
261
+ // engine from the template's route and dispatch once (no cross-phase back; INV-8).
186
262
  const presetTemplateId = inputs[questionNames_1.QuestionNames.TemplateName];
187
- let target;
188
263
  if (presetTemplateId) {
189
264
  if (snapshot === undefined && deps.resolveArtifactSnapshot !== undefined) {
190
265
  const resolved = await deps.resolveArtifactSnapshot("templates");
@@ -204,111 +279,73 @@ async function createProjectFrontDoor(inputs, deps) {
204
279
  floorBytes = fullBytes.value;
205
280
  }
206
281
  const resolveByTemplateId = deps.resolveByTemplateId ?? v4_1.resolveCreateTargetByTemplateId;
207
- target = resolveByTemplateId(floorBytes, presetTemplateId);
208
- }
209
- else {
210
- if (snapshot === undefined && deps.resolveArtifactSnapshot !== undefined) {
211
- const resolved = await deps.resolveArtifactSnapshot("create-selector");
212
- if (resolved.isErr()) {
213
- return (0, neverthrow_1.err)(resolved.error);
214
- }
215
- snapshot = resolved.value;
282
+ const target = resolveByTemplateId(floorBytes, presetTemplateId);
283
+ if (target.isErr()) {
284
+ return (0, neverthrow_1.err)(target.error);
216
285
  }
217
- let selectorBytes;
218
- if (snapshot === undefined) {
219
- floorBytes = (deps.readFloorBytes ?? readBundledFloorBytes)();
220
- selectorBytes = floorBytes;
286
+ const dispatched = await dispatchByEngine(target.value, 0, false);
287
+ if (dispatched.isErr()) {
288
+ return (0, neverthrow_1.err)(dispatched.error);
221
289
  }
222
- else {
223
- const selector = await readSnapshotBytes(snapshot, "create-selector");
224
- if (selector.isErr()) {
225
- return (0, neverthrow_1.err)(selector.error);
226
- }
227
- selectorBytes = selector.value;
290
+ // The preset path is not backable (baseStep 0, backable false), so `done` is the live branch.
291
+ return dispatched.value.kind === "back"
292
+ ? (0, neverthrow_1.err)(unsupportedCreateTarget(target.value))
293
+ : (0, neverthrow_1.ok)(dispatched.value.result);
294
+ }
295
+ // Otherwise walk Q1 (INV-2). The selector bytes are stable across the cross-phase
296
+ // back re-entry loop, so resolve them once; each iteration re-walks Q1 (retaining
297
+ // its history for `resume`) and dispatches, re-entering Q1 on a Q2-first back so
298
+ // Q1 and Q2 form one continuous back-navigable wizard (INV-10). The loop is scoped
299
+ // below the preset check, so a prior iteration's `template-name` never short-circuits Q1.
300
+ if (snapshot === undefined && deps.resolveArtifactSnapshot !== undefined) {
301
+ const resolved = await deps.resolveArtifactSnapshot("create-selector");
302
+ if (resolved.isErr()) {
303
+ return (0, neverthrow_1.err)(resolved.error);
304
+ }
305
+ snapshot = resolved.value;
306
+ }
307
+ let selectorBytes;
308
+ if (snapshot === undefined) {
309
+ floorBytes = (deps.readFloorBytes ?? readBundledFloorBytes)();
310
+ selectorBytes = floorBytes;
311
+ }
312
+ else {
313
+ const selector = await readSnapshotBytes(snapshot, "create-selector");
314
+ if (selector.isErr()) {
315
+ return (0, neverthrow_1.err)(selector.error);
228
316
  }
229
- const runSelector = deps.runSelector ?? v4_1.runCreateSelector;
317
+ selectorBytes = selector.value;
318
+ }
319
+ const runSelector = deps.runSelector ?? v4_1.runCreateSelector;
320
+ let resumeHistory = undefined;
321
+ for (;;) {
230
322
  const selectorDeps = {
231
323
  flagReader,
232
324
  interactive,
233
325
  prefilled: selectorPrefillFromInputs(inputs),
326
+ resume: resumeHistory === undefined ? undefined : { history: resumeHistory },
234
327
  };
235
- target =
236
- snapshot === undefined
237
- ? await runSelector(selectorBytes, ui, surface, selectorDeps)
238
- : await runSelector(selectorBytes, ui, surface, {
239
- ...selectorDeps,
240
- selectorBytesKind: "json",
241
- v4Registry: deps.v4Registry,
242
- });
243
- }
244
- if (target.isErr()) {
245
- return (0, neverthrow_1.err)(target.error);
246
- }
247
- // INV-3: exactly one resolved BuildTarget, dispatched by its engine.
248
- switch (target.value.engine) {
249
- case "surface-action":
250
- return dispatchSurfaceAction(target.value);
251
- case "v3":
252
- // INV-5: translate the Q1 picks onto the v3 inputs (a translation, not a
253
- // re-ask), then hand off to createProject — its QuestionMW skips Q1. A preset
254
- // `template-name` carries no Q1 picks and already short-circuits the v3
255
- // traverse, so the pre-fill is skipped.
256
- if (!presetTemplateId) {
257
- deps.applyV3PreFill(inputs, target.value);
258
- }
259
- return deps.createV3(inputs);
260
- case "v4": {
261
- inputs[questionNames_1.QuestionNames.TemplateName] = templateNameForV4(target.value);
262
- const runInputs = deps.runInputs ?? v4_1.runCreateInputs;
263
- const locator = { kind: "create", templateId: target.value.templateId };
264
- // Q2: the template's own inputs, over the same floor.
265
- const entryParams = {
266
- ...(target.value.answers ?? {}),
267
- ...neutralAnswersFromInputs(inputs),
268
- };
269
- let inputBytes;
270
- if (snapshot === undefined) {
271
- if (floorBytes === undefined) {
272
- floorBytes = (deps.readFloorBytes ?? readBundledFloorBytes)();
273
- }
274
- inputBytes = floorBytes;
275
- }
276
- else {
277
- const metadataBytes = await readSnapshotBytes(snapshot, "metadata");
278
- if (metadataBytes.isErr()) {
279
- return (0, neverthrow_1.err)(metadataBytes.error);
280
- }
281
- inputBytes = metadataBytes.value;
282
- }
283
- const answers = await runInputs(inputBytes, locator, entryParams, ui, {
284
- flagReader,
285
- surface,
286
- inputs,
328
+ const target = snapshot === undefined
329
+ ? await runSelector(selectorBytes, ui, surface, selectorDeps)
330
+ : await runSelector(selectorBytes, ui, surface, {
331
+ ...selectorDeps,
332
+ selectorBytesKind: "json",
333
+ v4Registry: deps.v4Registry,
287
334
  });
288
- if (answers.isErr()) {
289
- return (0, neverthrow_1.err)(answers.error);
290
- }
291
- applyV4CreateFloorAnswers(inputs, answers.value);
292
- if (snapshot !== undefined) {
293
- const fullBytes = await readSnapshotBytes(snapshot, "templates");
294
- if (fullBytes.isErr()) {
295
- return (0, neverthrow_1.err)(fullBytes.error);
296
- }
297
- return deps.scaffoldV4(inputs, target.value, answers.value, flagReader, {
298
- source: (0, v4_1.templateSourceFromArtifactSnapshot)(snapshot),
299
- bytes: fullBytes.value,
300
- });
301
- }
302
- return deps.scaffoldV4(inputs, target.value, answers.value, flagReader);
335
+ if (target.isErr()) {
336
+ return (0, neverthrow_1.err)(target.error);
337
+ }
338
+ // Q2 continues Q1's step numbering (baseStep = promptCount) and is backable: a
339
+ // back at its first prompt re-enters Q1 with the retained history (INV-10).
340
+ const dispatched = await dispatchByEngine(target.value, target.value.promptCount, true);
341
+ if (dispatched.isErr()) {
342
+ return (0, neverthrow_1.err)(dispatched.error);
343
+ }
344
+ if (dispatched.value.kind === "back") {
345
+ resumeHistory = target.value.history;
346
+ continue;
303
347
  }
304
- case "v3-core-method":
305
- // The shipped create selector carries no v3-core-method route; fail loudly
306
- // (no silent fallback) rather than mis-route through createProject.
307
- return (0, neverthrow_1.err)(new teamsfx_api_1.SystemError({
308
- source: SOURCE,
309
- name: "UnsupportedCreateEngine",
310
- message: `The create front door does not dispatch the '${target.value.engine}' engine.`,
311
- }));
348
+ return (0, neverthrow_1.ok)(dispatched.value.result);
312
349
  }
313
350
  }
314
351
  //# sourceMappingURL=createProjectFrontDoor.js.map