@microsoft/teamsfx-core 3.1.3 → 3.1.4-alpha.564122f4e1.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 (133) hide show
  1. package/build/common/templates-config.json +4 -4
  2. package/build/component/configManager/actionInjector.d.ts +4 -2
  3. package/build/component/configManager/actionInjector.d.ts.map +1 -1
  4. package/build/component/configManager/actionInjector.js +50 -3
  5. package/build/component/configManager/actionInjector.js.map +1 -1
  6. package/build/component/driver/teamsApp/utils/utils.d.ts.map +1 -1
  7. package/build/component/driver/teamsApp/utils/utils.js +1 -18
  8. package/build/component/driver/teamsApp/utils/utils.js.map +1 -1
  9. package/build/component/generator/openApiSpec/helper.d.ts +1 -1
  10. package/build/component/generator/openApiSpec/helper.d.ts.map +1 -1
  11. package/build/component/generator/openApiSpec/helper.js +23 -3
  12. package/build/component/generator/openApiSpec/helper.js.map +1 -1
  13. package/build/component/generator/openPlugin/authResolver.d.ts +2 -2
  14. package/build/component/generator/openPlugin/authResolver.d.ts.map +1 -1
  15. package/build/component/generator/openPlugin/authResolver.js +17 -7
  16. package/build/component/generator/openPlugin/authResolver.js.map +1 -1
  17. package/build/component/generator/openPlugin/errors.d.ts +4 -0
  18. package/build/component/generator/openPlugin/errors.d.ts.map +1 -0
  19. package/build/component/generator/openPlugin/errors.js +13 -0
  20. package/build/component/generator/openPlugin/errors.js.map +1 -0
  21. package/build/component/generator/openPlugin/exporter.d.ts +9 -6
  22. package/build/component/generator/openPlugin/exporter.d.ts.map +1 -1
  23. package/build/component/generator/openPlugin/exporter.js +502 -53
  24. package/build/component/generator/openPlugin/exporter.js.map +1 -1
  25. package/build/component/generator/openPlugin/fileSystem.d.ts +28 -0
  26. package/build/component/generator/openPlugin/fileSystem.d.ts.map +1 -0
  27. package/build/component/generator/openPlugin/fileSystem.js +181 -0
  28. package/build/component/generator/openPlugin/fileSystem.js.map +1 -0
  29. package/build/component/generator/openPlugin/iconStrategy.d.ts.map +1 -1
  30. package/build/component/generator/openPlugin/iconStrategy.js +30 -14
  31. package/build/component/generator/openPlugin/iconStrategy.js.map +1 -1
  32. package/build/component/generator/openPlugin/importer.d.ts.map +1 -1
  33. package/build/component/generator/openPlugin/importer.js +75 -12
  34. package/build/component/generator/openPlugin/importer.js.map +1 -1
  35. package/build/component/generator/openPlugin/mapper.d.ts +3 -2
  36. package/build/component/generator/openPlugin/mapper.d.ts.map +1 -1
  37. package/build/component/generator/openPlugin/mapper.js +188 -29
  38. package/build/component/generator/openPlugin/mapper.js.map +1 -1
  39. package/build/component/generator/openPlugin/parser.d.ts.map +1 -1
  40. package/build/component/generator/openPlugin/parser.js +264 -70
  41. package/build/component/generator/openPlugin/parser.js.map +1 -1
  42. package/build/component/generator/openPlugin/skillValidation.d.ts +2 -0
  43. package/build/component/generator/openPlugin/skillValidation.d.ts.map +1 -0
  44. package/build/component/generator/openPlugin/skillValidation.js +63 -0
  45. package/build/component/generator/openPlugin/skillValidation.js.map +1 -0
  46. package/build/component/generator/openPlugin/spec.d.ts +67 -0
  47. package/build/component/generator/openPlugin/spec.d.ts.map +1 -0
  48. package/build/component/generator/openPlugin/spec.js +157 -0
  49. package/build/component/generator/openPlugin/spec.js.map +1 -0
  50. package/build/component/generator/openPlugin/textUtils.d.ts +1 -1
  51. package/build/component/generator/openPlugin/textUtils.d.ts.map +1 -1
  52. package/build/component/generator/openPlugin/textUtils.js +8 -7
  53. package/build/component/generator/openPlugin/textUtils.js.map +1 -1
  54. package/build/component/generator/openPlugin/types.d.ts +76 -14
  55. package/build/component/generator/openPlugin/types.d.ts.map +1 -1
  56. package/build/component/generator/openPlugin/validation.d.ts +17 -0
  57. package/build/component/generator/openPlugin/validation.d.ts.map +1 -0
  58. package/build/component/generator/openPlugin/validation.js +563 -0
  59. package/build/component/generator/openPlugin/validation.js.map +1 -0
  60. package/build/component/utils/common.d.ts +1 -9
  61. package/build/component/utils/common.d.ts.map +1 -1
  62. package/build/component/utils/common.js +7 -37
  63. package/build/component/utils/common.js.map +1 -1
  64. package/build/component/utils/envFunctionUtils.d.ts +3 -8
  65. package/build/component/utils/envFunctionUtils.d.ts.map +1 -1
  66. package/build/component/utils/envFunctionUtils.js +46 -131
  67. package/build/component/utils/envFunctionUtils.js.map +1 -1
  68. package/build/component/utils/mcpAuthScaffolder.d.ts +5 -0
  69. package/build/component/utils/mcpAuthScaffolder.d.ts.map +1 -1
  70. package/build/component/utils/mcpAuthScaffolder.js +14 -2
  71. package/build/component/utils/mcpAuthScaffolder.js.map +1 -1
  72. package/build/core/FxCore.d.ts +1 -1
  73. package/build/core/FxCore.d.ts.map +1 -1
  74. package/build/core/FxCore.declarativeAgent.d.ts +2 -1
  75. package/build/core/FxCore.declarativeAgent.d.ts.map +1 -1
  76. package/build/core/FxCore.declarativeAgent.js +17 -6
  77. package/build/core/FxCore.declarativeAgent.js.map +1 -1
  78. package/build/core/FxCore.js +3 -3
  79. package/build/core/FxCore.js.map +1 -1
  80. package/build/core/FxCore.openPlugin.d.ts +7 -6
  81. package/build/core/FxCore.openPlugin.d.ts.map +1 -1
  82. package/build/core/FxCore.openPlugin.js +7 -6
  83. package/build/core/FxCore.openPlugin.js.map +1 -1
  84. package/build/question/inputs/AddAuthActionInputs.d.ts +2 -0
  85. package/build/question/inputs/AddAuthActionInputs.d.ts.map +1 -1
  86. package/build/question/inputs/AddPluginInputs.d.ts +5 -1
  87. package/build/question/inputs/AddPluginInputs.d.ts.map +1 -1
  88. package/build/question/options/AddAuthActionOptions.d.ts.map +1 -1
  89. package/build/question/options/AddAuthActionOptions.js +7 -0
  90. package/build/question/options/AddAuthActionOptions.js.map +1 -1
  91. package/build/question/options/AddPluginOptions.d.ts.map +1 -1
  92. package/build/question/options/AddPluginOptions.js +14 -1
  93. package/build/question/options/AddPluginOptions.js.map +1 -1
  94. package/build/question/options/ExportOpenPluginOptions.js +2 -2
  95. package/build/question/options/ExportOpenPluginOptions.js.map +1 -1
  96. package/build/question/options/ImportOpenPluginOptions.js +4 -4
  97. package/build/question/options/ImportOpenPluginOptions.js.map +1 -1
  98. package/build/question/other.d.ts +1 -0
  99. package/build/question/other.d.ts.map +1 -1
  100. package/build/question/other.js +49 -9
  101. package/build/question/other.js.map +1 -1
  102. package/build/question/questionNames.d.ts +1 -0
  103. package/build/question/questionNames.d.ts.map +1 -1
  104. package/build/question/questionNames.js +1 -0
  105. package/build/question/questionNames.js.map +1 -1
  106. package/build/question/scaffold/vsc/teamsProjectTypeNode.d.ts +2 -0
  107. package/build/question/scaffold/vsc/teamsProjectTypeNode.d.ts.map +1 -1
  108. package/build/question/scaffold/vsc/teamsProjectTypeNode.js +24 -1
  109. package/build/question/scaffold/vsc/teamsProjectTypeNode.js.map +1 -1
  110. package/build/v4/mcp/mcpAuthAction.d.ts +2 -1
  111. package/build/v4/mcp/mcpAuthAction.d.ts.map +1 -1
  112. package/build/v4/mcp/mcpAuthAction.js +32 -5
  113. package/build/v4/mcp/mcpAuthAction.js.map +1 -1
  114. package/build/v4/mcp/mcpAuthScaffold.d.ts +3 -0
  115. package/build/v4/mcp/mcpAuthScaffold.d.ts.map +1 -1
  116. package/build/v4/mcp/mcpAuthScaffold.js +57 -30
  117. package/build/v4/mcp/mcpAuthScaffold.js.map +1 -1
  118. package/build/v4/runtime/steps/mcpAuth.d.ts.map +1 -1
  119. package/build/v4/runtime/steps/mcpAuth.js +13 -0
  120. package/build/v4/runtime/steps/mcpAuth.js.map +1 -1
  121. package/package.json +37 -37
  122. package/resource/package.nls.json +20 -0
  123. package/templates/configs/local/typescript/.gitignore +1 -0
  124. package/templates/configs/playground/typescript/.gitignore +4 -0
  125. package/templates/fallback/common.zip +0 -0
  126. package/templates/fallback/csharp.zip +0 -0
  127. package/templates/fallback/js.zip +0 -0
  128. package/templates/fallback/python.zip +0 -0
  129. package/templates/fallback/ts.zip +0 -0
  130. package/templates/metadata.zip +0 -0
  131. package/templates/v4/floor.json +1 -1
  132. package/templates/v4/templates-metadata.zip +0 -0
  133. package/templates/v4/templates.zip +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/teamsfx-core",
3
- "version": "3.1.3",
3
+ "version": "3.1.4-alpha.564122f4e1.0",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "license": "MIT",
@@ -8,37 +8,6 @@
8
8
  "type": "git",
9
9
  "url": "git+https://github.com/OfficeDev/microsoft-365-agents-toolkit.git"
10
10
  },
11
- "scripts": {
12
- "lint": "eslint \"src/**/*.ts\" \"tests/**/*.ts\" \"scripts/scenario-tooling/**/*.ts\"",
13
- "test:unit": "vitest run --coverage --config vitest.config.ts --maxWorkers=75%",
14
- "test:unit:fast": "vitest run --config vitest.config.ts --maxWorkers=75% --reporter=dot",
15
- "test:unit:changed": "vitest run --config vitest.config.ts --maxWorkers=75% --changed",
16
- "test:unit:log": "vitest run --coverage --config vitest.config.ts --maxWorkers=75% > unit-test.log 2>&1",
17
- "test:unit:vitest": "vitest run --config vitest.config.ts --maxWorkers=75%",
18
- "test:unit:vitest:watch": "vitest --config vitest.config.ts",
19
- "test:coverage:changed": "node scripts/run-changed-coverage.js",
20
- "test:env-checker": "vitest run --config vitest.config.ts --maxWorkers=75% \"tests/component/deps-checker/\"",
21
- "clean": "rimraf -rf build",
22
- "prebuild": "npm run gen:cli",
23
- "build": "tsc -p ./ --incremental && npm run typecheck:scenario-tooling",
24
- "typecheck:scenario-tooling": "tsc -p tsconfig.scenario-tooling.json --incremental false",
25
- "lint:fix": "eslint --fix \"src/**/*.ts\" \"tests/**/*.ts\" \"scripts/scenario-tooling/**/*.ts\"",
26
- "prepublishOnly": "npm run build",
27
- "package": "rimraf build && webpack --mode production --config ./webpack.config.js",
28
- "precommit": "lint-staged",
29
- "install:tabs": "cd tabs && npm install",
30
- "installAll": "npm run install:tabs",
31
- "checkUnusedStrings": "node ./scripts/find-unused-strings.js ./resource/package.nls.json ./src ./templates/ui || exit 1",
32
- "clean:strings": "node ./scripts/delete-unused-strings.js ./resource/package.nls.json ./src",
33
- "gen:cli": "npx tsx ./src/question/generator.ts && npx prettier --write \"src/question/options/*.ts\" && npx prettier --write \"src/question/inputs/*.ts\"",
34
- "gen:template-info:vsc": "npx tsx ./scripts/generate-template-info.ts vscode ./resource/template-info/vsc.json",
35
- "scenario:catalog": "tsx ./scripts/scenario-tooling/scenarioCli.ts catalog",
36
- "scenario:init": "tsx ./scripts/scenario-tooling/scenarioCli.ts init",
37
- "scenario:render": "tsx ./scripts/scenario-tooling/scenarioCli.ts render",
38
- "scenario:review": "tsx ./scripts/scenario-tooling/scenarioCli.ts review",
39
- "scenario:check": "tsx ./scripts/scenario-tooling/scenarioCli.ts check",
40
- "scenario:accept": "tsx ./scripts/scenario-tooling/scenarioCli.ts accept"
41
- },
42
11
  "dependencies": {
43
12
  "@apidevtools/swagger-parser": "^10.1.0",
44
13
  "@azure/arm-appservice": "^13.0.0",
@@ -53,8 +22,6 @@
53
22
  "@microsoft/dev-tunnels-contracts": "1.1.9",
54
23
  "@microsoft/dev-tunnels-management": "1.1.9",
55
24
  "@microsoft/kiota": "1.31.1",
56
- "@microsoft/m365-spec-parser": "^0.3.2",
57
- "@microsoft/teamsfx-api": "0.24.2",
58
25
  "@modelcontextprotocol/sdk": "^1.29.0",
59
26
  "adm-zip": "^0.6.0",
60
27
  "ajv": "^8.18.0",
@@ -100,7 +67,9 @@
100
67
  "uuid": "^11.1.1",
101
68
  "validator": "^13.7.0",
102
69
  "xml2js": "^0.5.0",
103
- "yaml": "^2.4.2"
70
+ "yaml": "^2.4.2",
71
+ "@microsoft/m365-spec-parser": "^0.3.3-alpha.564122f4e1.0",
72
+ "@microsoft/teamsfx-api": "0.24.3-alpha.564122f4e1.0"
104
73
  },
105
74
  "devDependencies": {
106
75
  "@azure/storage-blob": "^12.5.0",
@@ -184,12 +153,43 @@
184
153
  ],
185
154
  "gitHead": "7d60c0765c0ea8c023a26c10d1c93001c597afbb",
186
155
  "publishConfig": {
187
- "access": "public"
156
+ "access": "public",
157
+ "tag": "alpha"
188
158
  },
189
159
  "lint-staged": {
190
160
  "*.{js,jsx,css,ts,tsx}": [
191
161
  "eslint --cache --fix --quiet",
192
162
  "prettier --cache --write --ignore-unknown"
193
163
  ]
164
+ },
165
+ "scripts": {
166
+ "lint": "eslint \"src/**/*.ts\" \"tests/**/*.ts\" \"scripts/scenario-tooling/**/*.ts\"",
167
+ "test:unit": "vitest run --coverage --config vitest.config.ts --maxWorkers=75%",
168
+ "test:unit:fast": "vitest run --config vitest.config.ts --maxWorkers=75% --reporter=dot",
169
+ "test:unit:changed": "vitest run --config vitest.config.ts --maxWorkers=75% --changed",
170
+ "test:unit:log": "vitest run --coverage --config vitest.config.ts --maxWorkers=75% > unit-test.log 2>&1",
171
+ "test:unit:vitest": "vitest run --config vitest.config.ts --maxWorkers=75%",
172
+ "test:unit:vitest:watch": "vitest --config vitest.config.ts",
173
+ "test:coverage:changed": "node scripts/run-changed-coverage.js",
174
+ "test:env-checker": "vitest run --config vitest.config.ts --maxWorkers=75% \"tests/component/deps-checker/\"",
175
+ "clean": "rimraf -rf build",
176
+ "prebuild": "npm run gen:cli",
177
+ "build": "tsc -p ./ --incremental && npm run typecheck:scenario-tooling",
178
+ "typecheck:scenario-tooling": "tsc -p tsconfig.scenario-tooling.json --incremental false",
179
+ "lint:fix": "eslint --fix \"src/**/*.ts\" \"tests/**/*.ts\" \"scripts/scenario-tooling/**/*.ts\"",
180
+ "package": "rimraf build && webpack --mode production --config ./webpack.config.js",
181
+ "precommit": "lint-staged",
182
+ "install:tabs": "cd tabs && npm install",
183
+ "installAll": "npm run install:tabs",
184
+ "checkUnusedStrings": "node ./scripts/find-unused-strings.js ./resource/package.nls.json ./src ./templates/ui || exit 1",
185
+ "clean:strings": "node ./scripts/delete-unused-strings.js ./resource/package.nls.json ./src",
186
+ "gen:cli": "npx tsx ./src/question/generator.ts && npx prettier --write \"src/question/options/*.ts\" && npx prettier --write \"src/question/inputs/*.ts\"",
187
+ "gen:template-info:vsc": "npx tsx ./scripts/generate-template-info.ts vscode ./resource/template-info/vsc.json",
188
+ "scenario:catalog": "tsx ./scripts/scenario-tooling/scenarioCli.ts catalog",
189
+ "scenario:init": "tsx ./scripts/scenario-tooling/scenarioCli.ts init",
190
+ "scenario:render": "tsx ./scripts/scenario-tooling/scenarioCli.ts render",
191
+ "scenario:review": "tsx ./scripts/scenario-tooling/scenarioCli.ts review",
192
+ "scenario:check": "tsx ./scripts/scenario-tooling/scenarioCli.ts check",
193
+ "scenario:accept": "tsx ./scripts/scenario-tooling/scenarioCli.ts accept"
194
194
  }
195
- }
195
+ }
@@ -404,6 +404,7 @@
404
404
  "core.createProjectQuestion.apiSpec.placeholder": "Enter OpenAPI Document URL",
405
405
  "core.createProjectQuestion.apiSpecInputUrl.label": "Enter OpenAPI Document URL",
406
406
  "core.createProjectQuestion.ApiKey": "Enter API Key in OpenAPI Description Document",
407
+ "core.addOpenApiActionQuestion.ApiKey.title": "API Key (optional)",
407
408
  "core.createProjectQuestion.ApiKeyConfirm": "Microsoft 365 Agents Toolkit will upload the API key to Developer Portal. The API key will be used by Teams client to securely access your API in runtime. Microsoft 365 Agents Toolkit will not store your API key.",
408
409
  "core.createProjectQuestion.OauthClientId": "Oauth registration client ID",
409
410
  "core.createProjectQuestion.OauthClientId.placeholder": "Input client ID for OAuth registration in OpenAPI Description Document",
@@ -1144,6 +1145,7 @@
1144
1145
  "core.createProjectQuestion.mcpForDa.Auth.OAuthDynamic.Detail": "MCP server registers a client at runtime; no extra details needed.",
1145
1146
  "core.createProjectQuestion.mcpForDa.Auth.EntraSSO": "Entra SSO",
1146
1147
  "core.createProjectQuestion.mcpForDa.Auth.EntraSSO.Detail": "Use a Microsoft Entra app for single sign-on. The toolkit will ask for the Entra app client id.",
1148
+ "core.createProjectQuestion.mcpForDa.Auth.BearerToken.Detail": "Send an API key as an HTTP Bearer token.",
1147
1149
  "core.createProjectQuestion.mcpForDa.Auth.None": "None",
1148
1150
  "core.createProjectQuestion.mcpForDa.Auth.None.Detail": "The MCP server does not require authentication.",
1149
1151
  "core.createProjectQuestion.mcpForDa.ClientId.title": "OAuth Client ID",
@@ -1154,6 +1156,8 @@
1154
1156
  "core.createProjectQuestion.mcpForDa.ClientSecret.required": "OAuth Client Secret is required.",
1155
1157
  "core.createProjectQuestion.mcpForDa.Scopes.title": "OAuth Scopes (optional)",
1156
1158
  "core.createProjectQuestion.mcpForDa.Scopes.placeholder": "Space-separated OAuth scopes, e.g. 'read:user repo'",
1159
+ "core.createProjectQuestion.mcpForDa.ApiKey.title": "API Key (optional)",
1160
+ "core.createProjectQuestion.mcpForDa.ApiKey.placeholder": "Enter the API key sent as a bearer token",
1157
1161
  "core.createProjectQuestion.mcpForDa.EntraClientId.title": "Microsoft Entra Application (Client) ID",
1158
1162
  "core.createProjectQuestion.mcpForDa.EntraClientId.placeholder": "Enter the Application (client) ID of your Microsoft Entra app registration",
1159
1163
  "core.createProjectQuestion.mcpForDa.EntraClientId.required": "Microsoft Entra Application (Client) ID is required.",
@@ -1198,7 +1202,23 @@
1198
1202
  "core.openPluginImport.autoAuthNone": "Auto inferred authentication type None for MCP server '%s'. Verify this choice if individual tools require authentication or use an API key.",
1199
1203
  "core.openPluginImport.autoAuthOAuth": "Auto inferred OAuthPluginVault for MCP server '%s'. The generated reference ID is a placeholder and must be registered before use.",
1200
1204
  "core.openPluginImport.authFallback": "OAuth metadata could not be resolved for MCP server '%s' after it confirmed authentication is required. Auto fell back to OAuthPluginVault. Verify the authentication type and register the generated reference ID before use.",
1205
+ "core.openPluginImport.failed": "Failed to import the Agent Plugin.",
1206
+ "core.openPluginImport.invalidManifest": "The mapped Teams manifest is invalid: %s",
1207
+ "core.openPluginImport.invalidOutputPath": "The output path must not be a symbolic link or junction: %s.",
1208
+ "core.openPluginImport.invalidPlugin": "The Agent Plugin is invalid: %s",
1209
+ "core.openPluginImport.missingPluginPath": "The --path option is required.",
1210
+ "core.openPluginImport.outputDirectoryNotEmpty": "The output directory is not empty: %s. Choose a different --output path or empty the directory.",
1201
1211
  "core.openPluginImport.unresolvedMcpAuth": "Unable to resolve authentication for MCP server '%s' while --default-auth-type is Auto. Specify None, OAuthPluginVault, or ApiKeyPluginVault explicitly.",
1212
+ "core.openPluginExport.failed": "Failed to export the Agent Plugin.",
1213
+ "core.openPluginExport.invalidAgentPluginManifest": "The project cannot be exported as an Agent Plugins 1.0.0 manifest.",
1214
+ "core.openPluginExport.invalidManifest": "The project manifest is invalid.",
1215
+ "core.openPluginExport.invalidMcpServerUrl": "The project contains an MCP server URL that cannot be exported.",
1216
+ "core.openPluginExport.invalidOutputPath": "The output path must not be a symbolic link or junction.",
1217
+ "core.openPluginExport.invalidProjectPath": "The project path is invalid.",
1218
+ "core.openPluginExport.invalidProjectStructure": "The project structure is invalid.",
1219
+ "core.openPluginExport.manifestNotFound": "appPackage/manifest.json was not found in the project.",
1220
+ "core.openPluginExport.missingProjectPath": "The --path option is required.",
1221
+ "core.openPluginExport.outputDirectoryNotEmpty": "The output directory is not empty. Choose a different --output path or empty the directory.",
1202
1222
  "core.MCPForDA.openYmlFile": "Open m365agents.yml",
1203
1223
  "core.MCPForDA.fetchError": "Failed to fetch tools from the MCP server at %s. To add tools later, run:\n %s"
1204
1224
  }
@@ -0,0 +1 @@
1
+ .localConfigs
@@ -0,0 +1,4 @@
1
+ .localConfigs.playground
2
+
3
+ # Dev tool directories
4
+ /devTools/
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "6.16.0"
2
+ "version": "6.16.1"
3
3
  }
Binary file
Binary file