@microsoft/teamsfx-core 3.1.0 → 3.1.1

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 (916) hide show
  1. package/build/client/aadAppClient.d.ts +0 -6
  2. package/build/client/aadAppClient.d.ts.map +1 -1
  3. package/build/client/aadAppClient.js +8 -6
  4. package/build/client/aadAppClient.js.map +1 -1
  5. package/build/client/graphClient.d.ts +4 -4
  6. package/build/client/graphClient.d.ts.map +1 -1
  7. package/build/client/graphClient.js +91 -23
  8. package/build/client/graphClient.js.map +1 -1
  9. package/build/client/teamsDevPortalClient.d.ts +2 -6
  10. package/build/client/teamsDevPortalClient.d.ts.map +1 -1
  11. package/build/client/teamsDevPortalClient.js +97 -120
  12. package/build/client/teamsDevPortalClient.js.map +1 -1
  13. package/build/client/teamsGraphClient.d.ts +20 -0
  14. package/build/client/teamsGraphClient.d.ts.map +1 -0
  15. package/build/client/teamsGraphClient.js +152 -0
  16. package/build/client/teamsGraphClient.js.map +1 -0
  17. package/build/common/accountUtils.d.ts +3 -2
  18. package/build/common/accountUtils.d.ts.map +1 -1
  19. package/build/common/accountUtils.js +7 -2
  20. package/build/common/accountUtils.js.map +1 -1
  21. package/build/common/constants.d.ts +5 -1
  22. package/build/common/constants.d.ts.map +1 -1
  23. package/build/common/constants.js +20 -5
  24. package/build/common/constants.js.map +1 -1
  25. package/build/common/daSpecParser.d.ts +2 -1
  26. package/build/common/daSpecParser.d.ts.map +1 -1
  27. package/build/common/daSpecParser.js +214 -21
  28. package/build/common/daSpecParser.js.map +1 -1
  29. package/build/common/featureFlags.d.ts +22 -5
  30. package/build/common/featureFlags.d.ts.map +1 -1
  31. package/build/common/featureFlags.js +40 -9
  32. package/build/common/featureFlags.js.map +1 -1
  33. package/build/common/fetchHelper.d.ts.map +1 -1
  34. package/build/common/fetchHelper.js +41 -3
  35. package/build/common/fetchHelper.js.map +1 -1
  36. package/build/common/globalVars.d.ts +1 -1
  37. package/build/common/globalVars.d.ts.map +1 -1
  38. package/build/common/globalVars.js.map +1 -1
  39. package/build/common/httpProxy.d.ts +21 -0
  40. package/build/common/httpProxy.d.ts.map +1 -0
  41. package/build/common/httpProxy.js +117 -0
  42. package/build/common/httpProxy.js.map +1 -0
  43. package/build/common/kiotaClient.d.ts +3 -3
  44. package/build/common/kiotaClient.d.ts.map +1 -1
  45. package/build/common/kiotaClient.js +10 -10
  46. package/build/common/kiotaClient.js.map +1 -1
  47. package/build/common/mcpToolFetcher.d.ts +90 -0
  48. package/build/common/mcpToolFetcher.d.ts.map +1 -0
  49. package/build/common/mcpToolFetcher.js +404 -0
  50. package/build/common/mcpToolFetcher.js.map +1 -0
  51. package/build/common/odrProvider.d.ts +43 -0
  52. package/build/common/odrProvider.d.ts.map +1 -0
  53. package/build/common/odrProvider.js +154 -0
  54. package/build/common/odrProvider.js.map +1 -0
  55. package/build/common/openApiParserOptions.d.ts +3 -0
  56. package/build/common/openApiParserOptions.d.ts.map +1 -0
  57. package/build/common/openApiParserOptions.js +61 -0
  58. package/build/common/openApiParserOptions.js.map +1 -0
  59. package/build/common/projectSettingsHelper.d.ts +0 -2
  60. package/build/common/projectSettingsHelper.d.ts.map +1 -1
  61. package/build/common/projectSettingsHelper.js +1 -59
  62. package/build/common/projectSettingsHelper.js.map +1 -1
  63. package/build/common/retryHandler.d.ts +5 -0
  64. package/build/common/retryHandler.d.ts.map +1 -0
  65. package/build/common/retryHandler.js +27 -0
  66. package/build/common/retryHandler.js.map +1 -0
  67. package/build/common/samples.d.ts +1 -1
  68. package/build/common/samples.js +1 -1
  69. package/build/common/secretmasker/dict.d.ts.map +1 -1
  70. package/build/common/secretmasker/dict.js +5 -2
  71. package/build/common/secretmasker/dict.js.map +1 -1
  72. package/build/common/secretmasker/feature.js.map +1 -1
  73. package/build/common/teamsGraphApiNames.d.ts +10 -0
  74. package/build/common/teamsGraphApiNames.d.ts.map +1 -0
  75. package/build/common/teamsGraphApiNames.js +16 -0
  76. package/build/common/teamsGraphApiNames.js.map +1 -0
  77. package/build/common/telemetry.d.ts +6 -15
  78. package/build/common/telemetry.d.ts.map +1 -1
  79. package/build/common/telemetry.js +9 -20
  80. package/build/common/telemetry.js.map +1 -1
  81. package/build/common/templates-config.json +10 -3
  82. package/build/common/tools.d.ts +1 -1
  83. package/build/common/tools.d.ts.map +1 -1
  84. package/build/common/tools.js +6 -6
  85. package/build/common/tools.js.map +1 -1
  86. package/build/common/wrappedAxiosClient.d.ts +11 -2
  87. package/build/common/wrappedAxiosClient.d.ts.map +1 -1
  88. package/build/common/wrappedAxiosClient.js +147 -59
  89. package/build/common/wrappedAxiosClient.js.map +1 -1
  90. package/build/component/configManager/actionInjector.d.ts +16 -1
  91. package/build/component/configManager/actionInjector.d.ts.map +1 -1
  92. package/build/component/configManager/actionInjector.js +106 -1
  93. package/build/component/configManager/actionInjector.js.map +1 -1
  94. package/build/component/configManager/lifecycle.d.ts.map +1 -1
  95. package/build/component/configManager/lifecycle.js +9 -0
  96. package/build/component/configManager/lifecycle.js.map +1 -1
  97. package/build/component/configManager/parser.js.map +1 -1
  98. package/build/component/configManager/validator.d.ts.map +1 -1
  99. package/build/component/configManager/validator.js +2 -0
  100. package/build/component/configManager/validator.js.map +1 -1
  101. package/build/component/coordinator/index.d.ts.map +1 -1
  102. package/build/component/coordinator/index.js +13 -11
  103. package/build/component/coordinator/index.js.map +1 -1
  104. package/build/component/deps-checker/internal/dotnetChecker.js.map +1 -1
  105. package/build/component/deps-checker/internal/funcToolChecker.js +6 -7
  106. package/build/component/deps-checker/internal/funcToolChecker.js.map +1 -1
  107. package/build/component/deps-checker/internal/nodeChecker.js +1 -1
  108. package/build/component/deps-checker/internal/nodeChecker.js.map +1 -1
  109. package/build/component/deps-checker/internal/testToolChecker.js +13 -13
  110. package/build/component/deps-checker/internal/testToolChecker.js.map +1 -1
  111. package/build/component/developerPortalScaffoldUtils.d.ts.map +1 -1
  112. package/build/component/developerPortalScaffoldUtils.js +5 -5
  113. package/build/component/developerPortalScaffoldUtils.js.map +1 -1
  114. package/build/component/driver/aad/utility/aadManifestHelper.d.ts +1 -1
  115. package/build/component/driver/aad/utility/aadManifestHelper.d.ts.map +1 -1
  116. package/build/component/driver/aad/utility/aadManifestHelper.js +7 -4
  117. package/build/component/driver/aad/utility/aadManifestHelper.js.map +1 -1
  118. package/build/component/driver/add/addWebPart.js +3 -3
  119. package/build/component/driver/add/addWebPart.js.map +1 -1
  120. package/build/component/driver/apiKey/create.d.ts.map +1 -1
  121. package/build/component/driver/apiKey/create.js +4 -4
  122. package/build/component/driver/apiKey/create.js.map +1 -1
  123. package/build/component/driver/apiKey/update.d.ts.map +1 -1
  124. package/build/component/driver/apiKey/update.js +4 -4
  125. package/build/component/driver/apiKey/update.js.map +1 -1
  126. package/build/component/driver/arm/util/handleError.js +5 -4
  127. package/build/component/driver/arm/util/handleError.js.map +1 -1
  128. package/build/component/driver/copilotAgent/interfaces/PublishArgs.d.ts +14 -0
  129. package/build/component/driver/copilotAgent/interfaces/PublishArgs.d.ts.map +1 -0
  130. package/build/component/driver/copilotAgent/interfaces/PublishArgs.js +5 -0
  131. package/build/component/driver/copilotAgent/interfaces/PublishArgs.js.map +1 -0
  132. package/build/component/driver/copilotAgent/publish.d.ts +16 -0
  133. package/build/component/driver/copilotAgent/publish.d.ts.map +1 -0
  134. package/build/component/driver/copilotAgent/publish.js +175 -0
  135. package/build/component/driver/copilotAgent/publish.js.map +1 -0
  136. package/build/component/driver/dcr/create.d.ts +10 -0
  137. package/build/component/driver/dcr/create.d.ts.map +1 -0
  138. package/build/component/driver/dcr/create.js +142 -0
  139. package/build/component/driver/dcr/create.js.map +1 -0
  140. package/build/component/driver/dcr/error/dcrNameTooLong.d.ts +5 -0
  141. package/build/component/driver/dcr/error/dcrNameTooLong.d.ts.map +1 -0
  142. package/build/component/driver/dcr/error/dcrNameTooLong.js +21 -0
  143. package/build/component/driver/dcr/error/dcrNameTooLong.js.map +1 -0
  144. package/build/component/driver/dcr/error/dcrWellKnownInvalid.d.ts +5 -0
  145. package/build/component/driver/dcr/error/dcrWellKnownInvalid.d.ts.map +1 -0
  146. package/build/component/driver/dcr/error/dcrWellKnownInvalid.js +21 -0
  147. package/build/component/driver/dcr/error/dcrWellKnownInvalid.js.map +1 -0
  148. package/build/component/driver/dcr/interface/createDcrArgs.d.ts +9 -0
  149. package/build/component/driver/dcr/interface/createDcrArgs.d.ts.map +1 -0
  150. package/build/component/driver/dcr/interface/createDcrArgs.js +5 -0
  151. package/build/component/driver/dcr/interface/createDcrArgs.js.map +1 -0
  152. package/build/component/driver/dcr/interface/createDcrOutputs.d.ts +7 -0
  153. package/build/component/driver/dcr/interface/createDcrOutputs.d.ts.map +1 -0
  154. package/build/component/driver/dcr/interface/createDcrOutputs.js +10 -0
  155. package/build/component/driver/dcr/interface/createDcrOutputs.js.map +1 -0
  156. package/build/component/driver/dcr/utility/constants.d.ts +7 -0
  157. package/build/component/driver/dcr/utility/constants.d.ts.map +1 -0
  158. package/build/component/driver/dcr/utility/constants.js +12 -0
  159. package/build/component/driver/dcr/utility/constants.js.map +1 -0
  160. package/build/component/driver/deploy/azure/azureStaticWebAppGetDeploymentTokenDriver.d.ts +3 -1
  161. package/build/component/driver/deploy/azure/azureStaticWebAppGetDeploymentTokenDriver.d.ts.map +1 -1
  162. package/build/component/driver/deploy/azure/azureStaticWebAppGetDeploymentTokenDriver.js +12 -9
  163. package/build/component/driver/deploy/azure/azureStaticWebAppGetDeploymentTokenDriver.js.map +1 -1
  164. package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.d.ts +3 -0
  165. package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.d.ts.map +1 -1
  166. package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js +38 -3
  167. package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js.map +1 -1
  168. package/build/component/driver/devTool/httpClient.d.ts +4 -0
  169. package/build/component/driver/devTool/httpClient.d.ts.map +1 -1
  170. package/build/component/driver/devTool/httpClient.js +6 -3
  171. package/build/component/driver/devTool/httpClient.js.map +1 -1
  172. package/build/component/driver/index.d.ts +2 -0
  173. package/build/component/driver/index.d.ts.map +1 -1
  174. package/build/component/driver/index.js +2 -0
  175. package/build/component/driver/index.js.map +1 -1
  176. package/build/component/driver/m365/acquire.d.ts.map +1 -1
  177. package/build/component/driver/m365/acquire.js +4 -3
  178. package/build/component/driver/m365/acquire.js.map +1 -1
  179. package/build/component/driver/oauth/create.d.ts.map +1 -1
  180. package/build/component/driver/oauth/create.js +5 -4
  181. package/build/component/driver/oauth/create.js.map +1 -1
  182. package/build/component/driver/oauth/update.d.ts.map +1 -1
  183. package/build/component/driver/oauth/update.js +5 -5
  184. package/build/component/driver/oauth/update.js.map +1 -1
  185. package/build/component/driver/script/scriptDriver.d.ts.map +1 -1
  186. package/build/component/driver/script/scriptDriver.js +3 -2
  187. package/build/component/driver/script/scriptDriver.js.map +1 -1
  188. package/build/component/driver/share/utils.d.ts.map +1 -1
  189. package/build/component/driver/share/utils.js +9 -7
  190. package/build/component/driver/share/utils.js.map +1 -1
  191. package/build/component/driver/teamsApp/appStudio.d.ts.map +1 -1
  192. package/build/component/driver/teamsApp/appStudio.js +1 -1
  193. package/build/component/driver/teamsApp/appStudio.js.map +1 -1
  194. package/build/component/driver/teamsApp/configure.d.ts.map +1 -1
  195. package/build/component/driver/teamsApp/configure.js +7 -0
  196. package/build/component/driver/teamsApp/configure.js.map +1 -1
  197. package/build/component/driver/teamsApp/constants.d.ts +9 -3
  198. package/build/component/driver/teamsApp/constants.d.ts.map +1 -1
  199. package/build/component/driver/teamsApp/constants.js +11 -4
  200. package/build/component/driver/teamsApp/constants.js.map +1 -1
  201. package/build/component/driver/teamsApp/create.d.ts.map +1 -1
  202. package/build/component/driver/teamsApp/create.js +19 -1
  203. package/build/component/driver/teamsApp/create.js.map +1 -1
  204. package/build/component/driver/teamsApp/createAppPackage.d.ts +3 -0
  205. package/build/component/driver/teamsApp/createAppPackage.d.ts.map +1 -1
  206. package/build/component/driver/teamsApp/createAppPackage.js +130 -11
  207. package/build/component/driver/teamsApp/createAppPackage.js.map +1 -1
  208. package/build/component/driver/teamsApp/interfaces/DcrRegistration.d.ts +10 -0
  209. package/build/component/driver/teamsApp/interfaces/DcrRegistration.d.ts.map +1 -0
  210. package/build/component/driver/teamsApp/interfaces/DcrRegistration.js +5 -0
  211. package/build/component/driver/teamsApp/interfaces/DcrRegistration.js.map +1 -0
  212. package/build/component/driver/teamsApp/interfaces/OauthRegistration.d.ts +4 -0
  213. package/build/component/driver/teamsApp/interfaces/OauthRegistration.d.ts.map +1 -1
  214. package/build/component/driver/teamsApp/interfaces/OauthRegistration.js.map +1 -1
  215. package/build/component/driver/teamsApp/interfaces/ValidationResult.d.ts +6 -0
  216. package/build/component/driver/teamsApp/interfaces/ValidationResult.d.ts.map +1 -1
  217. package/build/component/driver/teamsApp/publishAppPackage.d.ts +0 -2
  218. package/build/component/driver/teamsApp/publishAppPackage.d.ts.map +1 -1
  219. package/build/component/driver/teamsApp/publishAppPackage.js +19 -60
  220. package/build/component/driver/teamsApp/publishAppPackage.js.map +1 -1
  221. package/build/component/driver/teamsApp/syncManifest.d.ts +3 -3
  222. package/build/component/driver/teamsApp/syncManifest.d.ts.map +1 -1
  223. package/build/component/driver/teamsApp/syncManifest.js +8 -8
  224. package/build/component/driver/teamsApp/syncManifest.js.map +1 -1
  225. package/build/component/driver/teamsApp/teamsappMgr.d.ts +4 -0
  226. package/build/component/driver/teamsApp/teamsappMgr.d.ts.map +1 -1
  227. package/build/component/driver/teamsApp/teamsappMgr.js +6 -3
  228. package/build/component/driver/teamsApp/teamsappMgr.js.map +1 -1
  229. package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.d.ts +2 -0
  230. package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.d.ts.map +1 -1
  231. package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.js +120 -5
  232. package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.js.map +1 -1
  233. package/build/component/driver/teamsApp/utils/ManifestUtils.d.ts +1 -1
  234. package/build/component/driver/teamsApp/utils/ManifestUtils.d.ts.map +1 -1
  235. package/build/component/driver/teamsApp/utils/ManifestUtils.js +10 -2
  236. package/build/component/driver/teamsApp/utils/ManifestUtils.js.map +1 -1
  237. package/build/component/driver/teamsApp/utils/McpCertVerification.d.ts +17 -0
  238. package/build/component/driver/teamsApp/utils/McpCertVerification.d.ts.map +1 -0
  239. package/build/component/driver/teamsApp/utils/McpCertVerification.js +72 -0
  240. package/build/component/driver/teamsApp/utils/McpCertVerification.js.map +1 -0
  241. package/build/component/driver/teamsApp/utils/PluginManifestUtils.d.ts.map +1 -1
  242. package/build/component/driver/teamsApp/utils/PluginManifestUtils.js +1 -1
  243. package/build/component/driver/teamsApp/utils/PluginManifestUtils.js.map +1 -1
  244. package/build/component/driver/teamsApp/utils/telemetry.d.ts +1 -0
  245. package/build/component/driver/teamsApp/utils/telemetry.d.ts.map +1 -1
  246. package/build/component/driver/teamsApp/utils/telemetry.js +1 -0
  247. package/build/component/driver/teamsApp/utils/telemetry.js.map +1 -1
  248. package/build/component/driver/teamsApp/utils/utils.d.ts +1 -4
  249. package/build/component/driver/teamsApp/utils/utils.d.ts.map +1 -1
  250. package/build/component/driver/teamsApp/utils/utils.js +3 -25
  251. package/build/component/driver/teamsApp/utils/utils.js.map +1 -1
  252. package/build/component/driver/teamsApp/validate.d.ts.map +1 -1
  253. package/build/component/driver/teamsApp/validate.js +16 -5
  254. package/build/component/driver/teamsApp/validate.js.map +1 -1
  255. package/build/component/driver/teamsApp/validateAppPackage.d.ts.map +1 -1
  256. package/build/component/driver/teamsApp/validateAppPackage.js +7 -0
  257. package/build/component/driver/teamsApp/validateAppPackage.js.map +1 -1
  258. package/build/component/driver/teamsApp/validateTestCases.d.ts.map +1 -1
  259. package/build/component/driver/typeSpec/compile.d.ts.map +1 -1
  260. package/build/component/driver/typeSpec/compile.js +23 -7
  261. package/build/component/driver/typeSpec/compile.js.map +1 -1
  262. package/build/component/driver/typeSpec/error/typeSpecCompileError.d.ts +5 -0
  263. package/build/component/driver/typeSpec/error/typeSpecCompileError.d.ts.map +1 -0
  264. package/build/component/driver/typeSpec/error/typeSpecCompileError.js +21 -0
  265. package/build/component/driver/typeSpec/error/typeSpecCompileError.js.map +1 -0
  266. package/build/component/generator/combinedProject/generator.d.ts.map +1 -1
  267. package/build/component/generator/combinedProject/generator.js +9 -1
  268. package/build/component/generator/combinedProject/generator.js.map +1 -1
  269. package/build/component/generator/declarativeAgent/generator.d.ts +7 -0
  270. package/build/component/generator/declarativeAgent/generator.d.ts.map +1 -1
  271. package/build/component/generator/declarativeAgent/generator.js +23 -15
  272. package/build/component/generator/declarativeAgent/generator.js.map +1 -1
  273. package/build/component/generator/declarativeAgent/helper.d.ts +52 -0
  274. package/build/component/generator/declarativeAgent/helper.d.ts.map +1 -1
  275. package/build/component/generator/declarativeAgent/helper.js +469 -63
  276. package/build/component/generator/declarativeAgent/helper.js.map +1 -1
  277. package/build/component/generator/defaultGenerator.d.ts.map +1 -1
  278. package/build/component/generator/defaultGenerator.js +17 -1
  279. package/build/component/generator/defaultGenerator.js.map +1 -1
  280. package/build/component/generator/error.d.ts +3 -0
  281. package/build/component/generator/error.d.ts.map +1 -1
  282. package/build/component/generator/error.js +7 -1
  283. package/build/component/generator/error.js.map +1 -1
  284. package/build/component/generator/generatorAction.d.ts +12 -1
  285. package/build/component/generator/generatorAction.d.ts.map +1 -1
  286. package/build/component/generator/generatorAction.js +16 -8
  287. package/build/component/generator/generatorAction.js.map +1 -1
  288. package/build/component/generator/officeAddin/generator.d.ts +13 -0
  289. package/build/component/generator/officeAddin/generator.d.ts.map +1 -1
  290. package/build/component/generator/officeAddin/generator.js +159 -35
  291. package/build/component/generator/officeAddin/generator.js.map +1 -1
  292. package/build/component/generator/officeAddin/helperMethods.d.ts +4 -0
  293. package/build/component/generator/officeAddin/helperMethods.d.ts.map +1 -1
  294. package/build/component/generator/officeAddin/helperMethods.js +6 -3
  295. package/build/component/generator/officeAddin/helperMethods.js.map +1 -1
  296. package/build/component/generator/openApiSpec/customEngineAgentGenerator.d.ts +8 -0
  297. package/build/component/generator/openApiSpec/customEngineAgentGenerator.d.ts.map +1 -1
  298. package/build/component/generator/openApiSpec/customEngineAgentGenerator.js +9 -4
  299. package/build/component/generator/openApiSpec/customEngineAgentGenerator.js.map +1 -1
  300. package/build/component/generator/openApiSpec/helper.d.ts +2 -3
  301. package/build/component/generator/openApiSpec/helper.d.ts.map +1 -1
  302. package/build/component/generator/openApiSpec/helper.js +19 -57
  303. package/build/component/generator/openApiSpec/helper.js.map +1 -1
  304. package/build/component/generator/openPlugin/authorParser.d.ts +8 -0
  305. package/build/component/generator/openPlugin/authorParser.d.ts.map +1 -0
  306. package/build/component/generator/openPlugin/authorParser.js +49 -0
  307. package/build/component/generator/openPlugin/authorParser.js.map +1 -0
  308. package/build/component/generator/openPlugin/deterministicId.d.ts +6 -0
  309. package/build/component/generator/openPlugin/deterministicId.d.ts.map +1 -0
  310. package/build/component/generator/openPlugin/deterministicId.js +31 -0
  311. package/build/component/generator/openPlugin/deterministicId.js.map +1 -0
  312. package/build/component/generator/openPlugin/exporter.d.ts +18 -0
  313. package/build/component/generator/openPlugin/exporter.d.ts.map +1 -0
  314. package/build/component/generator/openPlugin/exporter.js +233 -0
  315. package/build/component/generator/openPlugin/exporter.js.map +1 -0
  316. package/build/component/generator/openPlugin/iconStrategy.d.ts +8 -0
  317. package/build/component/generator/openPlugin/iconStrategy.d.ts.map +1 -0
  318. package/build/component/generator/openPlugin/iconStrategy.js +62 -0
  319. package/build/component/generator/openPlugin/iconStrategy.js.map +1 -0
  320. package/build/component/generator/openPlugin/importer.d.ts +25 -0
  321. package/build/component/generator/openPlugin/importer.d.ts.map +1 -0
  322. package/build/component/generator/openPlugin/importer.js +140 -0
  323. package/build/component/generator/openPlugin/importer.js.map +1 -0
  324. package/build/component/generator/openPlugin/mapper.d.ts +6 -0
  325. package/build/component/generator/openPlugin/mapper.d.ts.map +1 -0
  326. package/build/component/generator/openPlugin/mapper.js +141 -0
  327. package/build/component/generator/openPlugin/mapper.js.map +1 -0
  328. package/build/component/generator/openPlugin/parser.d.ts +3 -0
  329. package/build/component/generator/openPlugin/parser.d.ts.map +1 -0
  330. package/build/component/generator/openPlugin/parser.js +153 -0
  331. package/build/component/generator/openPlugin/parser.js.map +1 -0
  332. package/build/component/generator/openPlugin/placeholderPng.d.ts +6 -0
  333. package/build/component/generator/openPlugin/placeholderPng.d.ts.map +1 -0
  334. package/build/component/generator/openPlugin/placeholderPng.js +71 -0
  335. package/build/component/generator/openPlugin/placeholderPng.js.map +1 -0
  336. package/build/component/generator/openPlugin/textUtils.d.ts +12 -0
  337. package/build/component/generator/openPlugin/textUtils.d.ts.map +1 -0
  338. package/build/component/generator/openPlugin/textUtils.js +43 -0
  339. package/build/component/generator/openPlugin/textUtils.js.map +1 -0
  340. package/build/component/generator/openPlugin/types.d.ts +128 -0
  341. package/build/component/generator/openPlugin/types.d.ts.map +1 -0
  342. package/build/component/generator/openPlugin/types.js.map +1 -0
  343. package/build/component/generator/other/tdpGenerator.d.ts +1 -0
  344. package/build/component/generator/other/tdpGenerator.d.ts.map +1 -1
  345. package/build/component/generator/other/tdpGenerator.js +24 -2
  346. package/build/component/generator/other/tdpGenerator.js.map +1 -1
  347. package/build/component/generator/spfx/utils/constants.d.ts +1 -1
  348. package/build/component/generator/spfx/utils/constants.js +1 -1
  349. package/build/component/generator/spfx/utils/utils.js +1 -1
  350. package/build/component/generator/spfx/utils/utils.js.map +1 -1
  351. package/build/component/generator/templateHelper.d.ts +17 -2
  352. package/build/component/generator/templateHelper.d.ts.map +1 -1
  353. package/build/component/generator/templateHelper.js +36 -3
  354. package/build/component/generator/templateHelper.js.map +1 -1
  355. package/build/component/generator/templates/metadata/index.d.ts +15 -0
  356. package/build/component/generator/templates/metadata/index.d.ts.map +1 -1
  357. package/build/component/generator/templates/metadata/index.js +51 -5
  358. package/build/component/generator/templates/metadata/index.js.map +1 -1
  359. package/build/component/generator/templates/templateNames.d.ts +6 -3
  360. package/build/component/generator/templates/templateNames.d.ts.map +1 -1
  361. package/build/component/generator/templates/templateNames.js +7 -2
  362. package/build/component/generator/templates/templateNames.js.map +1 -1
  363. package/build/component/generator/templates/templateReplaceMap.d.ts.map +1 -1
  364. package/build/component/generator/templates/templateReplaceMap.js +4 -1
  365. package/build/component/generator/templates/templateReplaceMap.js.map +1 -1
  366. package/build/component/generator/utils.d.ts.map +1 -1
  367. package/build/component/generator/utils.js +14 -8
  368. package/build/component/generator/utils.js.map +1 -1
  369. package/build/component/generator/v4MetadataSource.d.ts +16 -0
  370. package/build/component/generator/v4MetadataSource.d.ts.map +1 -0
  371. package/build/component/generator/v4MetadataSource.js +35 -0
  372. package/build/component/generator/v4MetadataSource.js.map +1 -0
  373. package/build/component/generator/v4TemplateBridge.d.ts +55 -0
  374. package/build/component/generator/v4TemplateBridge.d.ts.map +1 -0
  375. package/build/component/generator/v4TemplateBridge.js +224 -0
  376. package/build/component/generator/v4TemplateBridge.js.map +1 -0
  377. package/build/component/local/localCertificateManager.d.ts +16 -1
  378. package/build/component/local/localCertificateManager.d.ts.map +1 -1
  379. package/build/component/local/localCertificateManager.js +47 -31
  380. package/build/component/local/localCertificateManager.js.map +1 -1
  381. package/build/component/m365/constants.d.ts +2 -1
  382. package/build/component/m365/constants.d.ts.map +1 -1
  383. package/build/component/m365/constants.js +1 -0
  384. package/build/component/m365/constants.js.map +1 -1
  385. package/build/component/m365/launchHelper.d.ts.map +1 -1
  386. package/build/component/m365/launchHelper.js +7 -2
  387. package/build/component/m365/launchHelper.js.map +1 -1
  388. package/build/component/m365/packageService.d.ts +7 -0
  389. package/build/component/m365/packageService.d.ts.map +1 -1
  390. package/build/component/m365/packageService.js +79 -13
  391. package/build/component/m365/packageService.js.map +1 -1
  392. package/build/component/m365/serviceConstant.d.ts.map +1 -1
  393. package/build/component/m365/serviceConstant.js +24 -4
  394. package/build/component/m365/serviceConstant.js.map +1 -1
  395. package/build/component/middleware/envMW.d.ts.map +1 -1
  396. package/build/component/middleware/envMW.js +5 -0
  397. package/build/component/middleware/envMW.js.map +1 -1
  398. package/build/component/provisionUtils.d.ts.map +1 -1
  399. package/build/component/provisionUtils.js +5 -2
  400. package/build/component/provisionUtils.js.map +1 -1
  401. package/build/component/utils/ResourceGroupHelper.d.ts +4 -0
  402. package/build/component/utils/ResourceGroupHelper.d.ts.map +1 -1
  403. package/build/component/utils/ResourceGroupHelper.js +8 -4
  404. package/build/component/utils/ResourceGroupHelper.js.map +1 -1
  405. package/build/component/utils/charsetUtils.js +3 -3
  406. package/build/component/utils/charsetUtils.js.map +1 -1
  407. package/build/component/utils/envUtil.d.ts.map +1 -1
  408. package/build/component/utils/envUtil.js +2 -2
  409. package/build/component/utils/envUtil.js.map +1 -1
  410. package/build/component/utils/fileOperation.d.ts +9 -0
  411. package/build/component/utils/fileOperation.d.ts.map +1 -1
  412. package/build/component/utils/fileOperation.js +31 -17
  413. package/build/component/utils/fileOperation.js.map +1 -1
  414. package/build/component/utils/mcpAuthScaffolder.d.ts +137 -0
  415. package/build/component/utils/mcpAuthScaffolder.d.ts.map +1 -0
  416. package/build/component/utils/mcpAuthScaffolder.js +200 -0
  417. package/build/component/utils/mcpAuthScaffolder.js.map +1 -0
  418. package/build/component/utils/mcpToolFetcher.d.ts +2 -0
  419. package/build/component/utils/mcpToolFetcher.d.ts.map +1 -0
  420. package/build/component/utils/mcpToolFetcher.js +7 -0
  421. package/build/component/utils/mcpToolFetcher.js.map +1 -0
  422. package/build/component/utils/metadataGraphPermssion.d.ts +4 -0
  423. package/build/component/utils/metadataGraphPermssion.d.ts.map +1 -1
  424. package/build/component/utils/metadataGraphPermssion.js +7 -4
  425. package/build/component/utils/metadataGraphPermssion.js.map +1 -1
  426. package/build/component/utils/odrProvider.d.ts +1 -48
  427. package/build/component/utils/odrProvider.d.ts.map +1 -1
  428. package/build/component/utils/odrProvider.js +2 -94
  429. package/build/component/utils/odrProvider.js.map +1 -1
  430. package/build/core/FxCore.d.ts +45 -13
  431. package/build/core/FxCore.d.ts.map +1 -1
  432. package/build/core/FxCore.declarativeAgent.d.ts +45 -1
  433. package/build/core/FxCore.declarativeAgent.d.ts.map +1 -1
  434. package/build/core/FxCore.declarativeAgent.js +747 -56
  435. package/build/core/FxCore.declarativeAgent.js.map +1 -1
  436. package/build/core/FxCore.js +462 -305
  437. package/build/core/FxCore.js.map +1 -1
  438. package/build/core/FxCore.openPlugin.d.ts +23 -0
  439. package/build/core/FxCore.openPlugin.d.ts.map +1 -0
  440. package/build/core/FxCore.openPlugin.js +131 -0
  441. package/build/core/FxCore.openPlugin.js.map +1 -0
  442. package/build/core/collaborator.d.ts.map +1 -1
  443. package/build/core/createFrontDoorAdapters.d.ts +39 -0
  444. package/build/core/createFrontDoorAdapters.d.ts.map +1 -0
  445. package/build/core/createFrontDoorAdapters.js +210 -0
  446. package/build/core/createFrontDoorAdapters.js.map +1 -0
  447. package/build/core/createProjectFrontDoor.d.ts +49 -0
  448. package/build/core/createProjectFrontDoor.d.ts.map +1 -0
  449. package/build/core/createProjectFrontDoor.js +351 -0
  450. package/build/core/createProjectFrontDoor.js.map +1 -0
  451. package/build/core/middleware/concurrentLocker.d.ts.map +1 -1
  452. package/build/core/middleware/concurrentLocker.js +7 -10
  453. package/build/core/middleware/concurrentLocker.js.map +1 -1
  454. package/build/core/middleware/errorHandler.d.ts.map +1 -1
  455. package/build/core/middleware/errorHandler.js +9 -0
  456. package/build/core/middleware/errorHandler.js.map +1 -1
  457. package/build/core/middleware/fileLocker.js +6 -6
  458. package/build/core/middleware/fileLocker.js.map +1 -1
  459. package/build/core/middleware/utils/v3MigrationUtils.d.ts +1 -34
  460. package/build/core/middleware/utils/v3MigrationUtils.d.ts.map +1 -1
  461. package/build/core/middleware/utils/v3MigrationUtils.js +6 -245
  462. package/build/core/middleware/utils/v3MigrationUtils.js.map +1 -1
  463. package/build/core/modifyProjectFrontDoor.d.ts +27 -0
  464. package/build/core/modifyProjectFrontDoor.d.ts.map +1 -0
  465. package/build/core/modifyProjectFrontDoor.js +149 -0
  466. package/build/core/modifyProjectFrontDoor.js.map +1 -0
  467. package/build/core/v4ArtifactSnapshot.d.ts +5 -0
  468. package/build/core/v4ArtifactSnapshot.d.ts.map +1 -0
  469. package/build/core/v4ArtifactSnapshot.js +23 -0
  470. package/build/core/v4ArtifactSnapshot.js.map +1 -0
  471. package/build/error/common.d.ts.map +1 -1
  472. package/build/error/common.js +3 -0
  473. package/build/error/common.js.map +1 -1
  474. package/build/error/teamsApp.d.ts +3 -0
  475. package/build/error/teamsApp.d.ts.map +1 -1
  476. package/build/error/teamsApp.js +15 -1
  477. package/build/error/teamsApp.js.map +1 -1
  478. package/build/error/teamsGraph.d.ts +5 -0
  479. package/build/error/teamsGraph.d.ts.map +1 -0
  480. package/build/error/teamsGraph.js +24 -0
  481. package/build/error/teamsGraph.js.map +1 -0
  482. package/build/index.d.ts +5 -2
  483. package/build/index.d.ts.map +1 -1
  484. package/build/index.js +15 -2
  485. package/build/index.js.map +1 -1
  486. package/build/question/constants.d.ts +1 -0
  487. package/build/question/constants.d.ts.map +1 -1
  488. package/build/question/constants.js +15 -8
  489. package/build/question/constants.js.map +1 -1
  490. package/build/question/create.d.ts +18 -0
  491. package/build/question/create.d.ts.map +1 -1
  492. package/build/question/create.js +121 -14
  493. package/build/question/create.js.map +1 -1
  494. package/build/question/index.d.ts +1 -1
  495. package/build/question/index.d.ts.map +1 -1
  496. package/build/question/index.js +4 -4
  497. package/build/question/index.js.map +1 -1
  498. package/build/question/inputs/AddKnowledgeInputs.d.ts.map +1 -1
  499. package/build/question/inputs/AddPluginInputs.d.ts +17 -5
  500. package/build/question/inputs/AddPluginInputs.d.ts.map +1 -1
  501. package/build/question/inputs/AddSkillInputs.d.ts +10 -0
  502. package/build/question/inputs/AddSkillInputs.d.ts.map +1 -0
  503. package/build/question/inputs/AddSkillInputs.js +5 -0
  504. package/build/question/inputs/AddSkillInputs.js.map +1 -0
  505. package/build/question/inputs/CreateProjectInputs.d.ts +19 -1
  506. package/build/question/inputs/CreateProjectInputs.d.ts.map +1 -1
  507. package/build/question/inputs/ExportOpenPluginInputs.d.ts +10 -0
  508. package/build/question/inputs/ExportOpenPluginInputs.d.ts.map +1 -0
  509. package/build/question/inputs/ExportOpenPluginInputs.js +5 -0
  510. package/build/question/inputs/ExportOpenPluginInputs.js.map +1 -0
  511. package/build/question/inputs/ImportOpenPluginInputs.d.ts +28 -0
  512. package/build/question/inputs/ImportOpenPluginInputs.d.ts.map +1 -0
  513. package/build/question/inputs/ImportOpenPluginInputs.js +5 -0
  514. package/build/question/inputs/ImportOpenPluginInputs.js.map +1 -0
  515. package/build/question/inputs/index.d.ts +4 -1
  516. package/build/question/inputs/index.d.ts.map +1 -1
  517. package/build/question/inputs/index.js +4 -1
  518. package/build/question/inputs/index.js.map +1 -1
  519. package/build/question/options/AddPluginOptions.d.ts.map +1 -1
  520. package/build/question/options/AddPluginOptions.js +38 -6
  521. package/build/question/options/AddPluginOptions.js.map +1 -1
  522. package/build/question/options/AddSkillOptions.d.ts +4 -0
  523. package/build/question/options/AddSkillOptions.d.ts.map +1 -0
  524. package/build/question/options/AddSkillOptions.js +47 -0
  525. package/build/question/options/AddSkillOptions.js.map +1 -0
  526. package/build/question/options/CreateProjectOptions.d.ts.map +1 -1
  527. package/build/question/options/CreateProjectOptions.js +53 -1
  528. package/build/question/options/CreateProjectOptions.js.map +1 -1
  529. package/build/question/options/ExportOpenPluginOptions.d.ts +4 -0
  530. package/build/question/options/ExportOpenPluginOptions.d.ts.map +1 -0
  531. package/build/question/options/ExportOpenPluginOptions.js +29 -0
  532. package/build/question/options/ExportOpenPluginOptions.js.map +1 -0
  533. package/build/question/options/ImportOpenPluginOptions.d.ts +4 -0
  534. package/build/question/options/ImportOpenPluginOptions.d.ts.map +1 -0
  535. package/build/question/options/ImportOpenPluginOptions.js +54 -0
  536. package/build/question/options/ImportOpenPluginOptions.js.map +1 -0
  537. package/build/question/options/index.d.ts +3 -0
  538. package/build/question/options/index.d.ts.map +1 -1
  539. package/build/question/options/index.js +3 -0
  540. package/build/question/options/index.js.map +1 -1
  541. package/build/question/other.d.ts +1 -1
  542. package/build/question/other.d.ts.map +1 -1
  543. package/build/question/other.js +195 -17
  544. package/build/question/other.js.map +1 -1
  545. package/build/question/questionNames.d.ts +14 -1
  546. package/build/question/questionNames.d.ts.map +1 -1
  547. package/build/question/questionNames.js +13 -0
  548. package/build/question/questionNames.js.map +1 -1
  549. package/build/question/scaffold/commonNodes.d.ts.map +1 -1
  550. package/build/question/scaffold/commonNodes.js +14 -2
  551. package/build/question/scaffold/commonNodes.js.map +1 -1
  552. package/build/question/scaffold/constructNode.d.ts +3 -1
  553. package/build/question/scaffold/constructNode.d.ts.map +1 -1
  554. package/build/question/scaffold/constructNode.js +55 -2
  555. package/build/question/scaffold/constructNode.js.map +1 -1
  556. package/build/question/scaffold/vsc/CapabilityOptions.d.ts +3 -5
  557. package/build/question/scaffold/vsc/CapabilityOptions.d.ts.map +1 -1
  558. package/build/question/scaffold/vsc/CapabilityOptions.js +46 -46
  559. package/build/question/scaffold/vsc/CapabilityOptions.js.map +1 -1
  560. package/build/question/scaffold/vsc/ProjectTypeOptions.d.ts +2 -0
  561. package/build/question/scaffold/vsc/ProjectTypeOptions.d.ts.map +1 -1
  562. package/build/question/scaffold/vsc/ProjectTypeOptions.js +9 -0
  563. package/build/question/scaffold/vsc/ProjectTypeOptions.js.map +1 -1
  564. package/build/question/scaffold/vsc/createRootNode.d.ts.map +1 -1
  565. package/build/question/scaffold/vsc/createRootNode.js +3 -0
  566. package/build/question/scaffold/vsc/createRootNode.js.map +1 -1
  567. package/build/question/scaffold/vsc/daProjectTypeNode.d.ts.map +1 -1
  568. package/build/question/scaffold/vsc/daProjectTypeNode.js +1 -6
  569. package/build/question/scaffold/vsc/daProjectTypeNode.js.map +1 -1
  570. package/build/question/scaffold/vsc/rootNode.d.ts.map +1 -1
  571. package/build/question/scaffold/vsc/rootNode.js +17 -4
  572. package/build/question/scaffold/vsc/rootNode.js.map +1 -1
  573. package/build/question/scaffold/vsc/teamsProjectTypeNode.d.ts +66 -0
  574. package/build/question/scaffold/vsc/teamsProjectTypeNode.d.ts.map +1 -1
  575. package/build/question/scaffold/vsc/teamsProjectTypeNode.js +408 -21
  576. package/build/question/scaffold/vsc/teamsProjectTypeNode.js.map +1 -1
  577. package/build/question/share.js +3 -2
  578. package/build/question/share.js.map +1 -1
  579. package/build/ui/visitor.d.ts.map +1 -1
  580. package/build/ui/visitor.js +10 -0
  581. package/build/ui/visitor.js.map +1 -1
  582. package/build/v4/buildTarget/parseSelector.d.ts +35 -0
  583. package/build/v4/buildTarget/parseSelector.d.ts.map +1 -0
  584. package/build/v4/buildTarget/parseSelector.js +226 -0
  585. package/build/v4/buildTarget/parseSelector.js.map +1 -0
  586. package/build/v4/buildTarget/resolveBuildTarget.d.ts +85 -0
  587. package/build/v4/buildTarget/resolveBuildTarget.d.ts.map +1 -0
  588. package/build/v4/buildTarget/resolveBuildTarget.js +260 -0
  589. package/build/v4/buildTarget/resolveBuildTarget.js.map +1 -0
  590. package/build/v4/collectInputs/collectInputs.d.ts +151 -0
  591. package/build/v4/collectInputs/collectInputs.d.ts.map +1 -0
  592. package/build/v4/collectInputs/collectInputs.js +533 -0
  593. package/build/v4/collectInputs/collectInputs.js.map +1 -0
  594. package/build/v4/distribution/bundledFloor.d.ts +11 -0
  595. package/build/v4/distribution/bundledFloor.d.ts.map +1 -0
  596. package/build/v4/distribution/bundledFloor.js +114 -0
  597. package/build/v4/distribution/bundledFloor.js.map +1 -0
  598. package/build/v4/distribution/createQuestions.d.ts +6 -0
  599. package/build/v4/distribution/createQuestions.d.ts.map +1 -0
  600. package/build/v4/distribution/createQuestions.js +61 -0
  601. package/build/v4/distribution/createQuestions.js.map +1 -0
  602. package/build/v4/distribution/createSelector.d.ts +15 -0
  603. package/build/v4/distribution/createSelector.d.ts.map +1 -0
  604. package/build/v4/distribution/createSelector.js +115 -0
  605. package/build/v4/distribution/createSelector.js.map +1 -0
  606. package/build/v4/distribution/declarativePackage.d.ts +14 -0
  607. package/build/v4/distribution/declarativePackage.d.ts.map +1 -0
  608. package/build/v4/distribution/declarativePackage.js +165 -0
  609. package/build/v4/distribution/declarativePackage.js.map +1 -0
  610. package/build/v4/distribution/packageDir.d.ts +15 -0
  611. package/build/v4/distribution/packageDir.d.ts.map +1 -0
  612. package/build/v4/distribution/packageDir.js +101 -0
  613. package/build/v4/distribution/packageDir.js.map +1 -0
  614. package/build/v4/distribution/questionFragments.d.ts +11 -0
  615. package/build/v4/distribution/questionFragments.d.ts.map +1 -0
  616. package/build/v4/distribution/questionFragments.js +130 -0
  617. package/build/v4/distribution/questionFragments.js.map +1 -0
  618. package/build/v4/distribution/templateArtifacts.d.ts +61 -0
  619. package/build/v4/distribution/templateArtifacts.d.ts.map +1 -0
  620. package/build/v4/distribution/templateArtifacts.js +459 -0
  621. package/build/v4/distribution/templateArtifacts.js.map +1 -0
  622. package/build/v4/distribution/templateConfig.d.ts +43 -0
  623. package/build/v4/distribution/templateConfig.d.ts.map +1 -0
  624. package/build/v4/distribution/templateConfig.js +70 -0
  625. package/build/v4/distribution/templateConfig.js.map +1 -0
  626. package/build/v4/distribution/templatePackage.d.ts +6 -0
  627. package/build/v4/distribution/templatePackage.d.ts.map +1 -0
  628. package/build/v4/distribution/templatePackage.js +63 -0
  629. package/build/v4/distribution/templatePackage.js.map +1 -0
  630. package/build/v4/distribution/templateSource.d.ts +66 -0
  631. package/build/v4/distribution/templateSource.d.ts.map +1 -0
  632. package/build/v4/distribution/templateSource.js +233 -0
  633. package/build/v4/distribution/templateSource.js.map +1 -0
  634. package/build/v4/distribution/templateSourcePort.d.ts +27 -0
  635. package/build/v4/distribution/templateSourcePort.d.ts.map +1 -0
  636. package/build/v4/distribution/templateSourcePort.js +175 -0
  637. package/build/v4/distribution/templateSourcePort.js.map +1 -0
  638. package/build/v4/engineVersion.d.ts +7 -0
  639. package/build/v4/engineVersion.d.ts.map +1 -0
  640. package/build/v4/engineVersion.js +12 -0
  641. package/build/v4/engineVersion.js.map +1 -0
  642. package/build/v4/expression/evaluateExpression.d.ts +55 -0
  643. package/build/v4/expression/evaluateExpression.d.ts.map +1 -0
  644. package/build/v4/expression/evaluateExpression.js +338 -0
  645. package/build/v4/expression/evaluateExpression.js.map +1 -0
  646. package/build/v4/index.d.ts +41 -0
  647. package/build/v4/index.d.ts.map +1 -0
  648. package/build/v4/index.js +46 -0
  649. package/build/v4/index.js.map +1 -0
  650. package/build/v4/inspection/scaffoldCatalog.d.ts +28 -0
  651. package/build/v4/inspection/scaffoldCatalog.d.ts.map +1 -0
  652. package/build/v4/inspection/scaffoldCatalog.js +66 -0
  653. package/build/v4/inspection/scaffoldCatalog.js.map +1 -0
  654. package/build/v4/inspection/scaffoldMetadataSource.d.ts +6 -0
  655. package/build/v4/inspection/scaffoldMetadataSource.d.ts.map +1 -0
  656. package/build/v4/inspection/scaffoldMetadataSource.js +78 -0
  657. package/build/v4/inspection/scaffoldMetadataSource.js.map +1 -0
  658. package/build/v4/mcp/mcpAuthAction.d.ts +36 -0
  659. package/build/v4/mcp/mcpAuthAction.d.ts.map +1 -0
  660. package/build/v4/mcp/mcpAuthAction.js +177 -0
  661. package/build/v4/mcp/mcpAuthAction.js.map +1 -0
  662. package/build/v4/mcp/mcpAuthScaffold.d.ts +37 -0
  663. package/build/v4/mcp/mcpAuthScaffold.d.ts.map +1 -0
  664. package/build/v4/mcp/mcpAuthScaffold.js +162 -0
  665. package/build/v4/mcp/mcpAuthScaffold.js.map +1 -0
  666. package/build/v4/mcp/mcpStaticTools.d.ts +17 -0
  667. package/build/v4/mcp/mcpStaticTools.d.ts.map +1 -0
  668. package/build/v4/mcp/mcpStaticTools.js +70 -0
  669. package/build/v4/mcp/mcpStaticTools.js.map +1 -0
  670. package/build/v4/model/dataModel.d.ts +27 -0
  671. package/build/v4/model/dataModel.d.ts.map +1 -0
  672. package/build/v4/model/dataModel.js +5 -0
  673. package/build/v4/model/dataModel.js.map +1 -0
  674. package/build/v4/pipeline/runScaffoldPipeline.d.ts +101 -0
  675. package/build/v4/pipeline/runScaffoldPipeline.d.ts.map +1 -0
  676. package/build/v4/pipeline/runScaffoldPipeline.js +212 -0
  677. package/build/v4/pipeline/runScaffoldPipeline.js.map +1 -0
  678. package/build/v4/providers/createOptionsProviders.d.ts +11 -0
  679. package/build/v4/providers/createOptionsProviders.d.ts.map +1 -0
  680. package/build/v4/providers/createOptionsProviders.js +268 -0
  681. package/build/v4/providers/createOptionsProviders.js.map +1 -0
  682. package/build/v4/renderContext/buildRenderContext.d.ts +24 -0
  683. package/build/v4/renderContext/buildRenderContext.d.ts.map +1 -0
  684. package/build/v4/renderContext/buildRenderContext.js +75 -0
  685. package/build/v4/renderContext/buildRenderContext.js.map +1 -0
  686. package/build/v4/runtime/generalSensitivityLabel.d.ts +5 -0
  687. package/build/v4/runtime/generalSensitivityLabel.d.ts.map +1 -0
  688. package/build/v4/runtime/generalSensitivityLabel.js +36 -0
  689. package/build/v4/runtime/generalSensitivityLabel.js.map +1 -0
  690. package/build/v4/runtime/inMemoryRuntime.d.ts +21 -0
  691. package/build/v4/runtime/inMemoryRuntime.d.ts.map +1 -0
  692. package/build/v4/runtime/inMemoryRuntime.js +43 -0
  693. package/build/v4/runtime/inMemoryRuntime.js.map +1 -0
  694. package/build/v4/runtime/packageParse.d.ts +13 -0
  695. package/build/v4/runtime/packageParse.d.ts.map +1 -0
  696. package/build/v4/runtime/packageParse.js +235 -0
  697. package/build/v4/runtime/packageParse.js.map +1 -0
  698. package/build/v4/runtime/realRuntime.d.ts +11 -0
  699. package/build/v4/runtime/realRuntime.d.ts.map +1 -0
  700. package/build/v4/runtime/realRuntime.js +64 -0
  701. package/build/v4/runtime/realRuntime.js.map +1 -0
  702. package/build/v4/runtime/renderMustache.d.ts +7 -0
  703. package/build/v4/runtime/renderMustache.d.ts.map +1 -0
  704. package/build/v4/runtime/renderMustache.js +54 -0
  705. package/build/v4/runtime/renderMustache.js.map +1 -0
  706. package/build/v4/runtime/runtimeRegistry.d.ts +28 -0
  707. package/build/v4/runtime/runtimeRegistry.d.ts.map +1 -0
  708. package/build/v4/runtime/runtimeRegistry.js +165 -0
  709. package/build/v4/runtime/runtimeRegistry.js.map +1 -0
  710. package/build/v4/runtime/scaffold.d.ts +31 -0
  711. package/build/v4/runtime/scaffold.d.ts.map +1 -0
  712. package/build/v4/runtime/scaffold.js +34 -0
  713. package/build/v4/runtime/scaffold.js.map +1 -0
  714. package/build/v4/runtime/scaffoldFromPackageDir.d.ts +7 -0
  715. package/build/v4/runtime/scaffoldFromPackageDir.d.ts.map +1 -0
  716. package/build/v4/runtime/scaffoldFromPackageDir.js +43 -0
  717. package/build/v4/runtime/scaffoldFromPackageDir.js.map +1 -0
  718. package/build/v4/runtime/selectLanguageContent.d.ts +7 -0
  719. package/build/v4/runtime/selectLanguageContent.d.ts.map +1 -0
  720. package/build/v4/runtime/selectLanguageContent.js +39 -0
  721. package/build/v4/runtime/selectLanguageContent.js.map +1 -0
  722. package/build/v4/runtime/steps/daAction.d.ts +6 -0
  723. package/build/v4/runtime/steps/daAction.d.ts.map +1 -0
  724. package/build/v4/runtime/steps/daAction.js +41 -0
  725. package/build/v4/runtime/steps/daAction.js.map +1 -0
  726. package/build/v4/runtime/steps/daSensitivity.d.ts +14 -0
  727. package/build/v4/runtime/steps/daSensitivity.d.ts.map +1 -0
  728. package/build/v4/runtime/steps/daSensitivity.js +50 -0
  729. package/build/v4/runtime/steps/daSensitivity.js.map +1 -0
  730. package/build/v4/runtime/steps/mcpAuth.d.ts +13 -0
  731. package/build/v4/runtime/steps/mcpAuth.d.ts.map +1 -0
  732. package/build/v4/runtime/steps/mcpAuth.js +90 -0
  733. package/build/v4/runtime/steps/mcpAuth.js.map +1 -0
  734. package/build/v4/runtime/steps/mcpLocal.d.ts +6 -0
  735. package/build/v4/runtime/steps/mcpLocal.d.ts.map +1 -0
  736. package/build/v4/runtime/steps/mcpLocal.js +93 -0
  737. package/build/v4/runtime/steps/mcpLocal.js.map +1 -0
  738. package/build/v4/runtime/steps/mcpStatic.d.ts +10 -0
  739. package/build/v4/runtime/steps/mcpStatic.d.ts.map +1 -0
  740. package/build/v4/runtime/steps/mcpStatic.js +182 -0
  741. package/build/v4/runtime/steps/mcpStatic.js.map +1 -0
  742. package/build/v4/runtime/steps/metaOs.d.ts +10 -0
  743. package/build/v4/runtime/steps/metaOs.d.ts.map +1 -0
  744. package/build/v4/runtime/steps/metaOs.js +422 -0
  745. package/build/v4/runtime/steps/metaOs.js.map +1 -0
  746. package/build/v4/runtime/steps/officeAddin.d.ts +4 -0
  747. package/build/v4/runtime/steps/officeAddin.d.ts.map +1 -0
  748. package/build/v4/runtime/steps/officeAddin.js +168 -0
  749. package/build/v4/runtime/steps/officeAddin.js.map +1 -0
  750. package/build/v4/runtime/steps/openApi.d.ts +6 -0
  751. package/build/v4/runtime/steps/openApi.d.ts.map +1 -0
  752. package/build/v4/runtime/steps/openApi.js +389 -0
  753. package/build/v4/runtime/steps/openApi.js.map +1 -0
  754. package/build/v4/runtime/steps/openApiCustomApi.d.ts +5 -0
  755. package/build/v4/runtime/steps/openApiCustomApi.d.ts.map +1 -0
  756. package/build/v4/runtime/steps/openApiCustomApi.js +385 -0
  757. package/build/v4/runtime/steps/openApiCustomApi.js.map +1 -0
  758. package/build/v4/runtime/whitelist.d.ts +41 -0
  759. package/build/v4/runtime/whitelist.d.ts.map +1 -0
  760. package/build/v4/runtime/whitelist.js +211 -0
  761. package/build/v4/runtime/whitelist.js.map +1 -0
  762. package/build/v4/runtime/withTempDirectory.d.ts +10 -0
  763. package/build/v4/runtime/withTempDirectory.d.ts.map +1 -0
  764. package/build/v4/runtime/withTempDirectory.js +41 -0
  765. package/build/v4/runtime/withTempDirectory.js.map +1 -0
  766. package/build/v4/surface/createFloorTail.d.ts +12 -0
  767. package/build/v4/surface/createFloorTail.d.ts.map +1 -0
  768. package/build/v4/surface/createFloorTail.js +138 -0
  769. package/build/v4/surface/createFloorTail.js.map +1 -0
  770. package/build/v4/surface/createInputs.d.ts +51 -0
  771. package/build/v4/surface/createInputs.d.ts.map +1 -0
  772. package/build/v4/surface/createInputs.js +153 -0
  773. package/build/v4/surface/createInputs.js.map +1 -0
  774. package/build/v4/surface/createSelectorWalk.d.ts +26 -0
  775. package/build/v4/surface/createSelectorWalk.d.ts.map +1 -0
  776. package/build/v4/surface/createSelectorWalk.js +143 -0
  777. package/build/v4/surface/createSelectorWalk.js.map +1 -0
  778. package/build/v4/surface/deriveCreateOptions.d.ts +5 -0
  779. package/build/v4/surface/deriveCreateOptions.d.ts.map +1 -0
  780. package/build/v4/surface/deriveCreateOptions.js +212 -0
  781. package/build/v4/surface/deriveCreateOptions.js.map +1 -0
  782. package/build/v4/surface/localizePrompt.d.ts +11 -0
  783. package/build/v4/surface/localizePrompt.d.ts.map +1 -0
  784. package/build/v4/surface/localizePrompt.js +32 -0
  785. package/build/v4/surface/localizePrompt.js.map +1 -0
  786. package/build/v4/surface/modifySelectorWalk.d.ts +12 -0
  787. package/build/v4/surface/modifySelectorWalk.d.ts.map +1 -0
  788. package/build/v4/surface/modifySelectorWalk.js +115 -0
  789. package/build/v4/surface/modifySelectorWalk.js.map +1 -0
  790. package/build/v4/surface/uiPromptUI.d.ts +5 -0
  791. package/build/v4/surface/uiPromptUI.d.ts.map +1 -0
  792. package/build/v4/surface/uiPromptUI.js +220 -0
  793. package/build/v4/surface/uiPromptUI.js.map +1 -0
  794. package/build/v4/validation/capabilityCatalog.d.ts +8 -0
  795. package/build/v4/validation/capabilityCatalog.d.ts.map +1 -0
  796. package/build/v4/validation/capabilityCatalog.js +62 -0
  797. package/build/v4/validation/capabilityCatalog.js.map +1 -0
  798. package/build/v4/validation/templateArchiveValidation.d.ts +15 -0
  799. package/build/v4/validation/templateArchiveValidation.d.ts.map +1 -0
  800. package/build/v4/validation/templateArchiveValidation.js +297 -0
  801. package/build/v4/validation/templateArchiveValidation.js.map +1 -0
  802. package/build/v4/validation/validateTemplatePackage.d.ts +83 -0
  803. package/build/v4/validation/validateTemplatePackage.d.ts.map +1 -0
  804. package/build/v4/validation/validateTemplatePackage.js +313 -0
  805. package/build/v4/validation/validateTemplatePackage.js.map +1 -0
  806. package/build/v4/validators/createInputValidators.d.ts +7 -0
  807. package/build/v4/validators/createInputValidators.d.ts.map +1 -0
  808. package/build/v4/validators/createInputValidators.js +77 -0
  809. package/build/v4/validators/createInputValidators.js.map +1 -0
  810. package/build/v4/validators/mcpCredentialValidators.d.ts +5 -0
  811. package/build/v4/validators/mcpCredentialValidators.d.ts.map +1 -0
  812. package/build/v4/validators/mcpCredentialValidators.js +13 -0
  813. package/build/v4/validators/mcpCredentialValidators.js.map +1 -0
  814. package/build/v4/validators/mcpServerUrlValidator.d.ts +9 -0
  815. package/build/v4/validators/mcpServerUrlValidator.d.ts.map +1 -0
  816. package/build/v4/validators/mcpServerUrlValidator.js +15 -0
  817. package/build/v4/validators/mcpServerUrlValidator.js.map +1 -0
  818. package/package.json +46 -97
  819. package/resource/package.nls.cs.json +1176 -1095
  820. package/resource/package.nls.de.json +1176 -1095
  821. package/resource/package.nls.es.json +1176 -1095
  822. package/resource/package.nls.fr.json +1176 -1095
  823. package/resource/package.nls.it.json +1176 -1095
  824. package/resource/package.nls.ja.json +1176 -1095
  825. package/resource/package.nls.json +116 -28
  826. package/resource/package.nls.ko.json +1176 -1095
  827. package/resource/package.nls.pl.json +1176 -1095
  828. package/resource/package.nls.pt-BR.json +1176 -1095
  829. package/resource/package.nls.ru.json +1176 -1095
  830. package/resource/package.nls.tr.json +1176 -1095
  831. package/resource/package.nls.zh-Hans.json +1176 -1095
  832. package/resource/package.nls.zh-Hant.json +1176 -1095
  833. package/resource/templates/package.nls.cs.json +39 -24
  834. package/resource/templates/package.nls.de.json +37 -22
  835. package/resource/templates/package.nls.es.json +35 -20
  836. package/resource/templates/package.nls.fr.json +45 -30
  837. package/resource/templates/package.nls.it.json +42 -27
  838. package/resource/templates/package.nls.ja.json +35 -20
  839. package/resource/templates/package.nls.json +27 -12
  840. package/resource/templates/package.nls.ko.json +33 -18
  841. package/resource/templates/package.nls.pl.json +38 -23
  842. package/resource/templates/package.nls.pt-BR.json +34 -19
  843. package/resource/templates/package.nls.ru.json +33 -18
  844. package/resource/templates/package.nls.tr.json +38 -23
  845. package/resource/templates/package.nls.zh-Hans.json +44 -29
  846. package/resource/templates/package.nls.zh-Hant.json +45 -30
  847. package/resource/templates/package.nls.zh-cn.json +7 -8
  848. package/resource/templates/package.nls.zh-tw.json +7 -8
  849. package/resource/yaml-schema/v1.11/yaml.schema.json +3 -0
  850. package/resource/yaml-schema/v1.12/yaml.schema.json +2132 -0
  851. package/resource/yaml-schema/v1.13/yaml.schema.json +2193 -0
  852. package/resource/yaml-schema/yaml.schema.json +127 -2
  853. package/templates/configs/playground/typescript/.vscode/tasks.json +1 -1
  854. package/templates/fallback/common.zip +0 -0
  855. package/templates/fallback/csharp.zip +0 -0
  856. package/templates/fallback/js.zip +0 -0
  857. package/templates/fallback/python.zip +0 -0
  858. package/templates/fallback/ts.zip +0 -0
  859. package/templates/metadata/allTemplates.json +32 -16
  860. package/templates/metadata/defaultGeneratorTemplates.json +8 -0
  861. package/templates/metadata.zip +0 -0
  862. package/templates/ui/ceaNode.json +30 -0
  863. package/templates/ui/tdpNode.json +13 -14
  864. package/templates/ui/teamsNode.json +124 -0
  865. package/templates/ui/wizardNode.json +56 -46
  866. package/templates/v4/create-selector.json +392 -0
  867. package/templates/v4/floor.json +3 -0
  868. package/templates/v4/modify-selector.json +78 -0
  869. package/templates/v4/templates-metadata.zip +0 -0
  870. package/templates/v4/templates.zip +0 -0
  871. package/build/core/middleware/projectMigratorV3.d.ts +0 -39
  872. package/build/core/middleware/projectMigratorV3.d.ts.map +0 -1
  873. package/build/core/middleware/projectMigratorV3.js +0 -694
  874. package/build/core/middleware/projectMigratorV3.js.map +0 -1
  875. package/build/core/middleware/projectVersionChecker.d.ts +0 -3
  876. package/build/core/middleware/projectVersionChecker.d.ts.map +0 -1
  877. package/build/core/middleware/projectVersionChecker.js +0 -60
  878. package/build/core/middleware/projectVersionChecker.js.map +0 -1
  879. package/build/core/middleware/types.d.ts +0 -9
  880. package/build/core/middleware/types.d.ts.map +0 -1
  881. package/build/core/middleware/types.js.map +0 -1
  882. package/build/core/middleware/utils/MigrationUtils.d.ts +0 -13
  883. package/build/core/middleware/utils/MigrationUtils.d.ts.map +0 -1
  884. package/build/core/middleware/utils/MigrationUtils.js +0 -212
  885. package/build/core/middleware/utils/MigrationUtils.js.map +0 -1
  886. package/build/core/middleware/utils/appYmlGenerator.d.ts +0 -34
  887. package/build/core/middleware/utils/appYmlGenerator.d.ts.map +0 -1
  888. package/build/core/middleware/utils/appYmlGenerator.js +0 -158
  889. package/build/core/middleware/utils/appYmlGenerator.js.map +0 -1
  890. package/build/core/middleware/utils/debug/appLocalYmlGenerator.d.ts +0 -65
  891. package/build/core/middleware/utils/debug/appLocalYmlGenerator.d.ts.map +0 -1
  892. package/build/core/middleware/utils/debug/appLocalYmlGenerator.js +0 -61
  893. package/build/core/middleware/utils/debug/appLocalYmlGenerator.js.map +0 -1
  894. package/build/core/middleware/utils/debug/constants.d.ts +0 -20
  895. package/build/core/middleware/utils/debug/constants.d.ts.map +0 -1
  896. package/build/core/middleware/utils/debug/constants.js +0 -28
  897. package/build/core/middleware/utils/debug/constants.js.map +0 -1
  898. package/build/core/middleware/utils/debug/debugMigrationContext.d.ts +0 -14
  899. package/build/core/middleware/utils/debug/debugMigrationContext.d.ts.map +0 -1
  900. package/build/core/middleware/utils/debug/debugMigrationContext.js +0 -23
  901. package/build/core/middleware/utils/debug/debugMigrationContext.js.map +0 -1
  902. package/build/core/middleware/utils/debug/debugV3MigrationUtils.d.ts +0 -37
  903. package/build/core/middleware/utils/debug/debugV3MigrationUtils.d.ts.map +0 -1
  904. package/build/core/middleware/utils/debug/debugV3MigrationUtils.js +0 -291
  905. package/build/core/middleware/utils/debug/debugV3MigrationUtils.js.map +0 -1
  906. package/build/core/middleware/utils/debug/taskMigrator.d.ts +0 -22
  907. package/build/core/middleware/utils/debug/taskMigrator.d.ts.map +0 -1
  908. package/build/core/middleware/utils/debug/taskMigrator.js +0 -935
  909. package/build/core/middleware/utils/debug/taskMigrator.js.map +0 -1
  910. package/build/core/middleware/utils/migrationContext.d.ts +0 -32
  911. package/build/core/middleware/utils/migrationContext.d.ts.map +0 -1
  912. package/build/core/middleware/utils/migrationContext.js +0 -104
  913. package/build/core/middleware/utils/migrationContext.js.map +0 -1
  914. package/templates/configs/local/typescript/.gitignore +0 -1
  915. package/templates/configs/playground/typescript/.gitignore +0 -4
  916. /package/build/{core/middleware → component/generator/openPlugin}/types.js +0 -0
@@ -0,0 +1,182 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT license.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.mcpStaticMaterializeTools = exports.STEP_MATERIALIZE_STATIC_MCP_TOOLS = exports.mcpStaticDeps = void 0;
6
+ const tslib_1 = require("tslib");
7
+ const teamsfx_api_1 = require("@microsoft/teamsfx-api");
8
+ const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
9
+ const neverthrow_1 = require("neverthrow");
10
+ const mcpToolFetcher_1 = require("../../../common/mcpToolFetcher");
11
+ const mcpStaticTools_1 = require("../../mcp/mcpStaticTools");
12
+ /** Materialize static MCP tools and plugin runtime metadata. */
13
+ const SOURCE = "Scaffold";
14
+ exports.mcpStaticDeps = {
15
+ fetchTools: (serverUrl) => (0, mcpToolFetcher_1.fetchMCPTools)(serverUrl),
16
+ };
17
+ /** Engine step name `mcp-static/materialize-tools`. */
18
+ exports.STEP_MATERIALIZE_STATIC_MCP_TOOLS = "mcp-static/materialize-tools";
19
+ function systemError(name, message) {
20
+ return new teamsfx_api_1.SystemError({ source: SOURCE, name, message });
21
+ }
22
+ function stringParam(params, key) {
23
+ const value = params[key];
24
+ return typeof value === "string" ? value : undefined;
25
+ }
26
+ function isUnresolvedToken(value) {
27
+ return /^\{\{[A-Za-z_][A-Za-z0-9_.]*\}\}$/.test(value);
28
+ }
29
+ function optionalStringParam(params, key) {
30
+ const value = stringParam(params, key);
31
+ if (value === undefined || value === "" || isUnresolvedToken(value)) {
32
+ return undefined;
33
+ }
34
+ return value;
35
+ }
36
+ function stringArrayParam(params, key) {
37
+ const value = params[key];
38
+ if (!Array.isArray(value) || !value.every((item) => typeof item === "string")) {
39
+ return undefined;
40
+ }
41
+ return value;
42
+ }
43
+ function optionalStringArrayParam(params, key) {
44
+ const value = params[key];
45
+ if (value === undefined ||
46
+ value === "" ||
47
+ (typeof value === "string" && isUnresolvedToken(value))) {
48
+ return undefined;
49
+ }
50
+ return stringArrayParam(params, key);
51
+ }
52
+ function hasOptionalArrayParamValue(params, key) {
53
+ const value = params[key];
54
+ return !(value === undefined ||
55
+ value === "" ||
56
+ (typeof value === "string" && isUnresolvedToken(value)));
57
+ }
58
+ function mcpToolsJsonFromFetchResult(serverUrl, result) {
59
+ if (result.requiresAuth) {
60
+ return (0, neverthrow_1.err)(new teamsfx_api_1.UserError({
61
+ source: SOURCE,
62
+ name: "McpAuthRequired",
63
+ message: `The MCP server at ${serverUrl} requires authentication.`,
64
+ }));
65
+ }
66
+ if (result.tools.length === 0) {
67
+ return (0, neverthrow_1.err)(new teamsfx_api_1.UserError({
68
+ source: SOURCE,
69
+ name: "McpToolsNotFound",
70
+ message: `No tools were discovered from the MCP server at ${serverUrl}.`,
71
+ }));
72
+ }
73
+ return (0, neverthrow_1.ok)(JSON.stringify({ tools: result.tools }));
74
+ }
75
+ async function resolveToolsJson(resolved, serverUrl) {
76
+ const toolsJson = optionalStringParam(resolved, "toolsJson")?.trim();
77
+ if (toolsJson) {
78
+ return (0, neverthrow_1.ok)(toolsJson);
79
+ }
80
+ const toolsFilePath = optionalStringParam(resolved, "toolsFilePath")?.trim();
81
+ if (toolsFilePath) {
82
+ try {
83
+ return (0, neverthrow_1.ok)(fs_extra_1.default.readFileSync(toolsFilePath, "utf8"));
84
+ }
85
+ catch {
86
+ return (0, neverthrow_1.err)(new teamsfx_api_1.UserError({
87
+ source: SOURCE,
88
+ name: "McpToolsFileReadFailed",
89
+ message: "Failed to read the MCP tools file.",
90
+ }));
91
+ }
92
+ }
93
+ try {
94
+ return mcpToolsJsonFromFetchResult(serverUrl, await exports.mcpStaticDeps.fetchTools(serverUrl));
95
+ }
96
+ catch (error) {
97
+ if (error instanceof teamsfx_api_1.UserError || error instanceof teamsfx_api_1.SystemError) {
98
+ return (0, neverthrow_1.err)(error);
99
+ }
100
+ return (0, neverthrow_1.err)(new teamsfx_api_1.UserError({
101
+ source: SOURCE,
102
+ name: "McpToolsFetchFailed",
103
+ message: `Failed to fetch tools from the MCP server at ${serverUrl}.`,
104
+ }));
105
+ }
106
+ }
107
+ function errorMessage(error) {
108
+ return error instanceof Error ? error.message : String(error);
109
+ }
110
+ function readRequiredPlugin(ctx, pluginPath) {
111
+ const current = ctx.read(pluginPath);
112
+ if (current === undefined) {
113
+ return (0, neverthrow_1.err)(systemError("McpStaticPluginMissing", `Cannot materialize static MCP tools because '${pluginPath}' was not produced by the render phase.`));
114
+ }
115
+ return (0, neverthrow_1.ok)(current);
116
+ }
117
+ function fileName(filePath) {
118
+ const segments = filePath.split("/").filter((segment) => segment.length > 0);
119
+ return segments[segments.length - 1] ?? filePath;
120
+ }
121
+ /** Registered step for writing `mcp-tools-1.json` and static RemoteMCPServer metadata. */
122
+ exports.mcpStaticMaterializeTools = {
123
+ validateParams(resolved) {
124
+ if (stringParam(resolved, "pluginPath") === undefined) {
125
+ return "missing string parameter 'pluginPath'";
126
+ }
127
+ if (stringParam(resolved, "toolsPath") === undefined) {
128
+ return "missing string parameter 'toolsPath'";
129
+ }
130
+ if (stringParam(resolved, "mcpServerUrl") === undefined) {
131
+ return "missing string parameter 'mcpServerUrl'";
132
+ }
133
+ if (hasOptionalArrayParamValue(resolved, "selected") &&
134
+ stringArrayParam(resolved, "selected") === undefined) {
135
+ return "missing string[] parameter 'selected'";
136
+ }
137
+ return undefined;
138
+ },
139
+ async apply(resolved, ctx) {
140
+ const pluginPath = stringParam(resolved, "pluginPath");
141
+ const toolsPath = stringParam(resolved, "toolsPath");
142
+ const mcpServerUrl = stringParam(resolved, "mcpServerUrl");
143
+ const selected = optionalStringArrayParam(resolved, "selected");
144
+ if (hasOptionalArrayParamValue(resolved, "selected") && selected === undefined) {
145
+ return (0, neverthrow_1.err)(systemError("McpStaticParams", "resolved parameters are not all of the expected type"));
146
+ }
147
+ if (pluginPath === undefined || toolsPath === undefined || mcpServerUrl === undefined) {
148
+ return (0, neverthrow_1.err)(systemError("McpStaticParams", "resolved parameters are not all of the expected type"));
149
+ }
150
+ const toolsJson = await resolveToolsJson(resolved, mcpServerUrl);
151
+ if (toolsJson.isErr()) {
152
+ return (0, neverthrow_1.err)(toolsJson.error);
153
+ }
154
+ const parsedTools = (0, mcpStaticTools_1.parseMcpStaticToolsJson)(toolsJson.value);
155
+ if (!parsedTools.ok) {
156
+ return (0, neverthrow_1.err)(systemError(parsedTools.code, parsedTools.message));
157
+ }
158
+ const selectedTools = (0, mcpStaticTools_1.selectMcpStaticTools)(parsedTools.tools, selected ?? parsedTools.tools.map((tool) => tool.name));
159
+ if (!selectedTools.ok) {
160
+ return (0, neverthrow_1.err)(systemError(selectedTools.code, selectedTools.message));
161
+ }
162
+ const plugin = readRequiredPlugin(ctx, pluginPath);
163
+ if (plugin.isErr()) {
164
+ return (0, neverthrow_1.err)(plugin.error);
165
+ }
166
+ let pluginManifest;
167
+ try {
168
+ pluginManifest = teamsfx_api_1.APIPluginManifestWrapper.fromJSON(plugin.value.toString("utf8"));
169
+ }
170
+ catch (error) {
171
+ return (0, neverthrow_1.err)(systemError(error instanceof SyntaxError ? "McpStaticPluginParse" : "McpStaticPluginShape", `Cannot parse '${pluginPath}' as an API plugin manifest: ${errorMessage(error)}`));
172
+ }
173
+ pluginManifest.materializeRemoteMcpTools(selectedTools.tools.map((tool) => ({
174
+ name: tool.name,
175
+ description: tool.description,
176
+ })), mcpServerUrl, fileName(toolsPath));
177
+ ctx.write(pluginPath, Buffer.from(pluginManifest.toJSON(), "utf8"));
178
+ ctx.write(toolsPath, Buffer.from(JSON.stringify({ tools: selectedTools.tools.map((tool) => tool.raw) }, null, 4) + "\n", "utf8"));
179
+ return (0, neverthrow_1.ok)(undefined);
180
+ },
181
+ };
182
+ //# sourceMappingURL=mcpStatic.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mcpStatic.js","sourceRoot":"","sources":["../../../../src/v4/runtime/steps/mcpStatic.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,wDAAmG;AACnG,gEAA0B;AAC1B,2CAA6C;AAC7C,mEAA+E;AAC/E,6DAAyF;AAGzF,gEAAgE;AAEhE,MAAM,MAAM,GAAG,UAAU,CAAC;AAEb,QAAA,aAAa,GAAG;IAC3B,UAAU,EAAE,CAAC,SAAiB,EAA2B,EAAE,CAAC,IAAA,8BAAa,EAAC,SAAS,CAAC;CACrF,CAAC;AAEF,uDAAuD;AAC1C,QAAA,iCAAiC,GAAG,8BAA8B,CAAC;AAEhF,SAAS,WAAW,CAAC,IAAY,EAAE,OAAe;IAChD,OAAO,IAAI,yBAAW,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;AAC5D,CAAC;AAED,SAAS,WAAW,CAAC,MAAkB,EAAE,GAAW;IAClD,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;IAC1B,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;AACvD,CAAC;AAED,SAAS,iBAAiB,CAAC,KAAa;IACtC,OAAO,mCAAmC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACzD,CAAC;AAED,SAAS,mBAAmB,CAAC,MAAk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AO,IAAA,gBAAG,EACR,WAAW,CACT,KAAK,YAAY,WAAW,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,sBAAsB,EAC9E,iBAAiB,UAAU,gCAAgC,YAAY,CAAC,KAAK,CAAC,EAAE,CACjF,CACF,CAAC;QACJ,CAAC;QACD,cAAc,CAAC,yBAAyB,CACtC,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;YACjC,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,WAAW,EAAE,IAAI,CAAC,WAAW;SAC9B,CAAC,CAAC,EACH,YAAY,EACZ,QAAQ,CAAC,SAAS,CAAC,CACpB,CAAC;QACF,GAAG,CAAC,KAAK,CAAC,UAAU,EAAE,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,MAAM,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC;QACpE,GAAG,CAAC,KAAK,CACP,SAAS,EACT,MAAM,CAAC,IAAI,CACT,IAAI,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,GAAG,IAAI,EACtF,MAAM,CACP,CACF,CAAC;QACF,OAAO,IAAA,eAAE,EAAC,SAAS,CAAC,CAAC;IACvB,CAAC;CACF,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { RegisteredStep } from "../../pipeline/runScaffoldPipeline";
2
+ /** Engine step name `metaos/unify-project-id`. */
3
+ export declare const STEP_UNIFY_PROJECT_ID = "metaos/unify-project-id";
4
+ /** Engine step name `metaos/upgrade-existing-project`. */
5
+ export declare const STEP_UPGRADE_EXISTING_PROJECT = "metaos/upgrade-existing-project";
6
+ /** Registered step for mirroring v3 MetaOSHelper.unifyProjectID. */
7
+ export declare const metaOsUnifyProjectId: RegisteredStep;
8
+ /** Registered step for mirroring v3 MetaOSHelper copy + extend + unify for upgrade. */
9
+ export declare const metaOsUpgradeExistingProject: RegisteredStep;
10
+ //# sourceMappingURL=metaOs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metaOs.d.ts","sourceRoot":"","sources":["../../../../src/v4/runtime/steps/metaOs.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,cAAc,EAA2B,MAAM,oCAAoC,CAAC;AAM7F,kDAAkD;AAClD,eAAO,MAAM,qBAAqB,4BAA4B,CAAC;AAC/D,0DAA0D;AAC1D,eAAO,MAAM,6BAA6B,oCAAoC,CAAC;AAsc/E,oEAAoE;AACpE,eAAO,MAAM,oBAAoB,EAAE,cAmBlC,CAAC;AAEF,uFAAuF;AACvF,eAAO,MAAM,4BAA4B,EAAE,cA2B1C,CAAC"}
@@ -0,0 +1,422 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT license.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.metaOsUpgradeExistingProject = exports.metaOsUnifyProjectId = exports.STEP_UPGRADE_EXISTING_PROJECT = exports.STEP_UNIFY_PROJECT_ID = void 0;
6
+ const tslib_1 = require("tslib");
7
+ const crypto_1 = require("crypto");
8
+ const teamsfx_api_1 = require("@microsoft/teamsfx-api");
9
+ const fs = tslib_1.__importStar(require("fs-extra"));
10
+ const path = tslib_1.__importStar(require("path"));
11
+ const neverthrow_1 = require("neverthrow");
12
+ /** MetaOS post-render steps. */
13
+ const SOURCE = "Scaffold";
14
+ /** Engine step name `metaos/unify-project-id`. */
15
+ exports.STEP_UNIFY_PROJECT_ID = "metaos/unify-project-id";
16
+ /** Engine step name `metaos/upgrade-existing-project`. */
17
+ exports.STEP_UPGRADE_EXISTING_PROJECT = "metaos/upgrade-existing-project";
18
+ const APP_PACKAGE_FOLDER = "appPackage";
19
+ const MANIFEST_PATH = "appPackage/manifest.json";
20
+ const ENV_PATH = "env/.env.dev";
21
+ const PACKAGE_JSON_PATH = "package.json";
22
+ const COMMANDS_PATH = "src/commands/commands.ts";
23
+ const DEFAULT_MANIFEST_ID = "${{TEAMS_APP_ID}}";
24
+ const DEFAULT_DA_ID = "declarativeAgentAlc";
25
+ const DEFAULT_COMMAND_FILE_NAME = "commands.js";
26
+ const OFFICE_ADDIN_DEBUGGING_VERSION = "6.0.6";
27
+ const EXCLUDED_FILES = new Set([
28
+ "README.md",
29
+ "teamsapp.yml",
30
+ "m365agents.yml",
31
+ "package-lock.json",
32
+ "pnpm-lock.yaml",
33
+ "yarn.lock",
34
+ ]);
35
+ const EXCLUDED_FOLDERS = new Set(["node_modules", "env"]);
36
+ function systemError(name, message) {
37
+ return new teamsfx_api_1.SystemError({ source: SOURCE, name, message });
38
+ }
39
+ function stringParam(params, key) {
40
+ const value = params[key];
41
+ return typeof value === "string" ? value : undefined;
42
+ }
43
+ function isRecord(value) {
44
+ return typeof value === "object" && value !== null && !Array.isArray(value);
45
+ }
46
+ function nestedRecord(record, key) {
47
+ const value = record[key];
48
+ return isRecord(value) ? value : undefined;
49
+ }
50
+ function parseJsonObject(json, errorName, filePath) {
51
+ let parsed;
52
+ try {
53
+ parsed = JSON.parse(json.toString("utf8"));
54
+ }
55
+ catch {
56
+ return (0, neverthrow_1.err)(systemError(errorName, `'${filePath}' is not valid JSON.`));
57
+ }
58
+ if (!isRecord(parsed)) {
59
+ return (0, neverthrow_1.err)(systemError(errorName, `'${filePath}' must be a JSON object.`));
60
+ }
61
+ return (0, neverthrow_1.ok)(parsed);
62
+ }
63
+ function readRequired(ctx, filePath, errorName) {
64
+ const current = ctx.read(filePath);
65
+ if (current === undefined) {
66
+ return (0, neverthrow_1.err)(systemError(errorName, `Cannot read '${filePath}'.`));
67
+ }
68
+ return (0, neverthrow_1.ok)(current);
69
+ }
70
+ function userError(name, message) {
71
+ return new teamsfx_api_1.UserError({ source: SOURCE, name, message });
72
+ }
73
+ function withTeamsAppId(envText, appId) {
74
+ const lines = envText.split(/\r?\n/);
75
+ let found = false;
76
+ const updated = lines.map((line) => {
77
+ if (line.startsWith("TEAMS_APP_ID=")) {
78
+ found = true;
79
+ return "TEAMS_APP_ID=" + appId;
80
+ }
81
+ return line;
82
+ });
83
+ if (!found) {
84
+ updated.push("TEAMS_APP_ID=" + appId);
85
+ }
86
+ return updated.join("\n").replace(/\n*$/, "\n");
87
+ }
88
+ function writeJson(ctx, filePath, value) {
89
+ ctx.write(filePath, Buffer.from(JSON.stringify(value, null, 2) + "\n", "utf8"));
90
+ }
91
+ function readRequiredJsonObject(ctx, filePath, missingErrorName, invalidErrorName) {
92
+ const raw = readRequired(ctx, filePath, missingErrorName);
93
+ if (raw.isErr()) {
94
+ return (0, neverthrow_1.err)(raw.error);
95
+ }
96
+ return parseJsonObject(raw.value, invalidErrorName, filePath);
97
+ }
98
+ function unifyProjectId(ctx, manifestPath, envPath) {
99
+ const manifestContents = readRequired(ctx, manifestPath, "MetaOsManifestMissing");
100
+ if (manifestContents.isErr()) {
101
+ return (0, neverthrow_1.err)(manifestContents.error);
102
+ }
103
+ let manifest;
104
+ try {
105
+ manifest = teamsfx_api_1.TeamsManifestWrapper.fromJSON(manifestContents.value.toString("utf8"));
106
+ }
107
+ catch {
108
+ return (0, neverthrow_1.err)(systemError("MetaOsManifestInvalid", `'${manifestPath}' is not valid JSON.`));
109
+ }
110
+ const appId = (0, crypto_1.randomUUID)();
111
+ manifest.setId(appId);
112
+ ctx.write(manifestPath, Buffer.from(manifest.toJSON(), "utf8"));
113
+ const envRaw = ctx.read(envPath);
114
+ const envText = envRaw === undefined ? "" : envRaw.toString("utf8");
115
+ ctx.write(envPath, Buffer.from(withTeamsAppId(envText, appId), "utf8"));
116
+ return (0, neverthrow_1.ok)(undefined);
117
+ }
118
+ function isExcludedRelativePath(relativePath) {
119
+ const normalized = relativePath.replace(/\\/g, "/");
120
+ const segments = normalized.split("/");
121
+ if (segments.some((segment) => EXCLUDED_FOLDERS.has(segment))) {
122
+ return true;
123
+ }
124
+ return EXCLUDED_FILES.has(segments[segments.length - 1] ?? normalized);
125
+ }
126
+ function copySourceFiles(sourceFolder, ctx) {
127
+ const root = path.resolve(sourceFolder);
128
+ const walk = (dir) => {
129
+ for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
130
+ if (entry.isSymbolicLink()) {
131
+ continue;
132
+ }
133
+ const fullPath = path.join(dir, entry.name);
134
+ const relativePath = path.relative(root, fullPath).replace(/\\/g, "/");
135
+ if (isExcludedRelativePath(relativePath)) {
136
+ continue;
137
+ }
138
+ if (entry.isDirectory()) {
139
+ walk(fullPath);
140
+ continue;
141
+ }
142
+ ctx.write(relativePath, fs.readFileSync(fullPath));
143
+ }
144
+ };
145
+ try {
146
+ walk(root);
147
+ return (0, neverthrow_1.ok)(undefined);
148
+ }
149
+ catch {
150
+ return (0, neverthrow_1.err)(userError("MetaOsSourceProjectInvalid", "The Office Add-in project folder could not be read."));
151
+ }
152
+ }
153
+ function uniqueFileName(ctx, baseName, extension) {
154
+ let suffix = 0;
155
+ while (true) {
156
+ const candidate = suffix === 0 ? `${baseName}${extension}` : `${baseName}${suffix}${extension}`;
157
+ if (ctx.read(`${APP_PACKAGE_FOLDER}/${candidate}`) === undefined) {
158
+ return candidate;
159
+ }
160
+ suffix++;
161
+ }
162
+ }
163
+ function updateManifestForDa(ctx, daFilename) {
164
+ const manifestContents = readRequired(ctx, MANIFEST_PATH, "MetaOsManifestMissing");
165
+ if (manifestContents.isErr()) {
166
+ return (0, neverthrow_1.err)(manifestContents.error);
167
+ }
168
+ let manifest;
169
+ try {
170
+ manifest = teamsfx_api_1.TeamsManifestWrapper.fromJSON(manifestContents.value.toString("utf8"));
171
+ }
172
+ catch {
173
+ return (0, neverthrow_1.err)(systemError("MetaOsManifestInvalid", `'${MANIFEST_PATH}' is not valid JSON.`));
174
+ }
175
+ manifest
176
+ .setId(DEFAULT_MANIFEST_ID)
177
+ .removeDeclarativeAgent(DEFAULT_DA_ID)
178
+ .addDeclarativeAgent(DEFAULT_DA_ID, daFilename);
179
+ if (!manifest.hasExtensions()) {
180
+ return (0, neverthrow_1.err)(systemError("MetaOsManifestShape", "No runtimes found in manifest.extensions."));
181
+ }
182
+ const commandIds = manifest.addExtensionRuntimeActions(DEFAULT_COMMAND_FILE_NAME, [
183
+ { baseId: "addfooter", type: "executeDataFunction" },
184
+ { baseId: "fillcolor", type: "executeDataFunction" },
185
+ { baseId: "addtexttoslide", type: "executeDataFunction" },
186
+ ]);
187
+ if (commandIds === undefined ||
188
+ commandIds[0] === undefined ||
189
+ commandIds[1] === undefined ||
190
+ commandIds[2] === undefined) {
191
+ return (0, neverthrow_1.err)(systemError("MetaOsCommandsRuntimeMissing", "No command runtime found in manifest.extensions."));
192
+ }
193
+ ctx.write(MANIFEST_PATH, Buffer.from(manifest.toJSON(), "utf8"));
194
+ return (0, neverthrow_1.ok)({ word: commandIds[0], excel: commandIds[1], powerpoint: commandIds[2] });
195
+ }
196
+ function daManifest(appName, actionFilename) {
197
+ return {
198
+ $schema: "https://developer.microsoft.com/json-schemas/copilot/declarative-agent/v1.4/schema.json",
199
+ version: "v1.4",
200
+ name: `Add-in Skill + Agent for ${appName}`,
201
+ description: "You are an agent for working with add-in. You can work with any cells, not only well formatted table.",
202
+ instructions: "You are an agent for working with add-in. You can work with any cells, not only well formatted table.",
203
+ conversation_starters: [
204
+ {
205
+ title: "Change cell color (for excel)",
206
+ text: "Change the cell below A2 to the color of grass. Tell me how long it took in seconds.",
207
+ },
208
+ {
209
+ title: "Add footer (for word)",
210
+ text: "Add a footer with message 'Hello Agent!'. Tell me how long it took in seconds.",
211
+ },
212
+ {
213
+ title: "Add text to slide (for powerpoint)",
214
+ text: "Please add text 'Hello PPT!' to the slide. Tell me how long it took in seconds.",
215
+ },
216
+ ],
217
+ actions: [{ id: "alchemyPlugin", file: actionFilename }],
218
+ };
219
+ }
220
+ function functionDefinition(name, description, properties, required) {
221
+ return {
222
+ name,
223
+ description,
224
+ parameters: { type: "object", properties, required },
225
+ states: {
226
+ reasoning: { description: "", instructions: "" },
227
+ responding: { description: "", instructions: "reply" },
228
+ },
229
+ };
230
+ }
231
+ function actionManifest(appName, commandNames) {
232
+ return {
233
+ $schema: "https://developer.microsoft.com/json-schemas/copilot/plugin/v2.3/schema.json",
234
+ schema_version: "v2.3",
235
+ name_for_human: `Add-in Skill + Agent for ${appName}`,
236
+ description_for_human: "Get answer for user's question related to Microsoft 365 products",
237
+ namespace: "AddInFunctions",
238
+ functions: [
239
+ functionDefinition(commandNames.word, "Action addfooter: take in arg a JSON object, with a footer message in the field 'Footer'.", {
240
+ Footer: {
241
+ type: "string",
242
+ description: "example message to be added to footer",
243
+ default: "Declarative Agent Footer",
244
+ },
245
+ }, ["Footer"]),
246
+ functionDefinition(commandNames.excel, "Action fillcolor: take in arg a JSON object, a cell location and a color in hex. Cell location is a single cell.", {
247
+ Cell: { type: "string", description: "example cell location", default: "B7" },
248
+ Color: { type: "string", description: "example color in hex", default: "#30d5c8" },
249
+ }, ["Cell", "Color"]),
250
+ functionDefinition(commandNames.powerpoint, "Action addtexttoslide: take in arg a JSON object, a text to be added to a slide.", {
251
+ Text: {
252
+ type: "string",
253
+ description: "example text to be added to a slide",
254
+ default: "hello declarative agent",
255
+ },
256
+ }, ["Text"]),
257
+ ],
258
+ runtimes: [
259
+ {
260
+ type: "LocalPlugin",
261
+ spec: { local_endpoint: "Microsoft.Office.Addin" },
262
+ run_for_functions: [commandNames.word, commandNames.excel, commandNames.powerpoint],
263
+ },
264
+ ],
265
+ };
266
+ }
267
+ function commandHandlerCode(commandNames) {
268
+ return `
269
+ /* global Office */
270
+ /* global Word, Excel, PowerPoint, performance, console */
271
+
272
+ async function addFooter(message) {
273
+ await Word.run(async (context) => {
274
+ context.document.sections
275
+ .getFirst()
276
+ .getFooter(Word.HeaderFooterType.primary)
277
+ .insertParagraph(\`From Agent: \${message}\`, "End");
278
+
279
+ await context.sync();
280
+ });
281
+ }
282
+
283
+ async function fillColor(cell, color) {
284
+ await Excel.run(async (context) => {
285
+ context.workbook.worksheets.getActiveWorksheet().getRange(cell).format.fill.color = color;
286
+ await context.sync();
287
+ });
288
+ }
289
+
290
+ async function addTextToSlide(text) {
291
+ await PowerPoint.run(async (context) => {
292
+ context.presentation.slides.getItemAt(0).shapes.addTextBox(text, {
293
+ left: Math.random() * 200,
294
+ top: Math.random() * 200,
295
+ height: 150,
296
+ width: 150,
297
+ });
298
+ await context.sync();
299
+ });
300
+ }
301
+
302
+ Office.onReady((info) => {
303
+ if (info.host === Office.HostType.Word) {
304
+ Office.actions.associate("${commandNames.word}", async (message) => {
305
+ const start = performance.now();
306
+ const { Footer: footer } = JSON.parse(message);
307
+ await addFooter(footer);
308
+ const duration = performance.now() - start;
309
+ const result = \`Demo add-in: Footer added! completed in \${duration.toFixed(0)} ms.\`;
310
+ console.log(\`Returning result: "\${result}"\`);
311
+ return result;
312
+ });
313
+ } else if (info.host === Office.HostType.Excel) {
314
+ Office.actions.associate("${commandNames.excel}", async (message) => {
315
+ const start = performance.now();
316
+ const { Cell: cell, Color: color } = JSON.parse(message);
317
+ await fillColor(cell, color);
318
+ const duration = performance.now() - start;
319
+ const result = \`Demo add-in: Action completed! completed in \${duration.toFixed(0)} ms.\`;
320
+ console.log(\`Returning result: "\${result}"\`);
321
+ return result;
322
+ });
323
+ } else if (info.host === Office.HostType.PowerPoint) {
324
+ Office.actions.associate("${commandNames.powerpoint}", async (message) => {
325
+ const start = performance.now();
326
+ const { Text: text } = JSON.parse(message);
327
+ await addTextToSlide(text);
328
+ const duration = performance.now() - start;
329
+ const result = \`Demo add-in: text added to slide! completed in \${duration.toFixed(0)} ms.\`;
330
+ console.log(\`Returning result: "\${result}"\`);
331
+ return result;
332
+ });
333
+ }
334
+ });
335
+ `;
336
+ }
337
+ function appendCommandHandlers(ctx, commandNames) {
338
+ const current = readRequired(ctx, COMMANDS_PATH, "MetaOsCommandsMissing");
339
+ if (current.isErr()) {
340
+ return (0, neverthrow_1.err)(current.error);
341
+ }
342
+ ctx.write(COMMANDS_PATH, Buffer.from(current.value.toString("utf8") + commandHandlerCode(commandNames), "utf8"));
343
+ return (0, neverthrow_1.ok)(undefined);
344
+ }
345
+ function upgradeOfficeAddinDebugging(ctx) {
346
+ const packageJson = readRequiredJsonObject(ctx, PACKAGE_JSON_PATH, "MetaOsPackageJsonMissing", "MetaOsPackageJsonInvalid");
347
+ if (packageJson.isErr()) {
348
+ return (0, neverthrow_1.err)(packageJson.error);
349
+ }
350
+ let devDependencies = nestedRecord(packageJson.value, "devDependencies");
351
+ if (devDependencies === undefined) {
352
+ devDependencies = {};
353
+ packageJson.value.devDependencies = devDependencies;
354
+ }
355
+ devDependencies["office-addin-debugging"] = OFFICE_ADDIN_DEBUGGING_VERSION;
356
+ writeJson(ctx, PACKAGE_JSON_PATH, packageJson.value);
357
+ return (0, neverthrow_1.ok)(undefined);
358
+ }
359
+ function extendToDeclarativeAgent(ctx, appName) {
360
+ const daFilename = uniqueFileName(ctx, "declarativeAgent", ".json");
361
+ const actionFilename = uniqueFileName(ctx, "alchemy-plugin", ".json");
362
+ const commandNames = updateManifestForDa(ctx, daFilename);
363
+ if (commandNames.isErr()) {
364
+ return (0, neverthrow_1.err)(commandNames.error);
365
+ }
366
+ writeJson(ctx, `${APP_PACKAGE_FOLDER}/${daFilename}`, daManifest(appName, actionFilename));
367
+ writeJson(ctx, `${APP_PACKAGE_FOLDER}/${actionFilename}`, actionManifest(appName, commandNames.value));
368
+ const appended = appendCommandHandlers(ctx, commandNames.value);
369
+ if (appended.isErr()) {
370
+ return (0, neverthrow_1.err)(appended.error);
371
+ }
372
+ return upgradeOfficeAddinDebugging(ctx);
373
+ }
374
+ /** Registered step for mirroring v3 MetaOSHelper.unifyProjectID. */
375
+ exports.metaOsUnifyProjectId = {
376
+ validateParams(resolved) {
377
+ if (stringParam(resolved, "manifestPath") === undefined) {
378
+ return "missing string parameter 'manifestPath'";
379
+ }
380
+ if (stringParam(resolved, "envPath") === undefined) {
381
+ return "missing string parameter 'envPath'";
382
+ }
383
+ return undefined;
384
+ },
385
+ apply(resolved, ctx) {
386
+ const manifestPath = stringParam(resolved, "manifestPath");
387
+ const envPath = stringParam(resolved, "envPath");
388
+ if (manifestPath === undefined || envPath === undefined) {
389
+ return (0, neverthrow_1.err)(systemError("MetaOsUnifyParams", "resolved parameters are not all strings"));
390
+ }
391
+ return unifyProjectId(ctx, manifestPath, envPath);
392
+ },
393
+ };
394
+ /** Registered step for mirroring v3 MetaOSHelper copy + extend + unify for upgrade. */
395
+ exports.metaOsUpgradeExistingProject = {
396
+ validateParams(resolved) {
397
+ if (stringParam(resolved, "sourceFolder") === undefined) {
398
+ return "missing string parameter 'sourceFolder'";
399
+ }
400
+ if (stringParam(resolved, "appName") === undefined) {
401
+ return "missing string parameter 'appName'";
402
+ }
403
+ return undefined;
404
+ },
405
+ apply(resolved, ctx) {
406
+ const sourceFolder = stringParam(resolved, "sourceFolder");
407
+ const appName = stringParam(resolved, "appName");
408
+ if (sourceFolder === undefined || appName === undefined) {
409
+ return (0, neverthrow_1.err)(systemError("MetaOsUpgradeParams", "resolved parameters are not all strings"));
410
+ }
411
+ const copied = copySourceFiles(sourceFolder, ctx);
412
+ if (copied.isErr()) {
413
+ return (0, neverthrow_1.err)(copied.error);
414
+ }
415
+ const extended = extendToDeclarativeAgent(ctx, appName);
416
+ if (extended.isErr()) {
417
+ return (0, neverthrow_1.err)(extended.error);
418
+ }
419
+ return unifyProjectId(ctx, MANIFEST_PATH, ENV_PATH);
420
+ },
421
+ };
422
+ //# sourceMappingURL=metaOs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metaOs.js","sourceRoot":"","sources":["../../../../src/v4/runtime/steps/metaOs.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,mCAAoC;AACpC,wDAA+F;AAC/F,qDAA+B;AAC/B,mDAA6B;AAC7B,2CAA6C;AAG7C,gCAAgC;AAEhC,MAAM,MAAM,GAAG,UAAU,CAAC;AAE1B,kDAAkD;AACrC,QAAA,q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T_EXISTING_OFFICE_ADDIN_PROJECT = "officeaddin/import-existing-project";
3
+ export declare const officeAddinImportExistingProject: RegisteredStep;
4
+ //# sourceMappingURL=officeAddin.d.ts.map