@microsoft/teamsfx-core 3.1.3 → 3.1.4-alpha.db74a278f9.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.
- package/build/common/templates-config.json +4 -4
- package/build/component/configManager/actionInjector.d.ts +4 -2
- package/build/component/configManager/actionInjector.d.ts.map +1 -1
- package/build/component/configManager/actionInjector.js +50 -3
- package/build/component/configManager/actionInjector.js.map +1 -1
- package/build/component/driver/teamsApp/utils/utils.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/utils.js +1 -18
- package/build/component/driver/teamsApp/utils/utils.js.map +1 -1
- package/build/component/generator/openApiSpec/helper.d.ts +1 -1
- package/build/component/generator/openApiSpec/helper.d.ts.map +1 -1
- package/build/component/generator/openApiSpec/helper.js +23 -3
- package/build/component/generator/openApiSpec/helper.js.map +1 -1
- package/build/component/generator/openPlugin/authResolver.d.ts +2 -2
- package/build/component/generator/openPlugin/authResolver.d.ts.map +1 -1
- package/build/component/generator/openPlugin/authResolver.js +17 -7
- package/build/component/generator/openPlugin/authResolver.js.map +1 -1
- package/build/component/generator/openPlugin/errors.d.ts +4 -0
- package/build/component/generator/openPlugin/errors.d.ts.map +1 -0
- package/build/component/generator/openPlugin/errors.js +13 -0
- package/build/component/generator/openPlugin/errors.js.map +1 -0
- package/build/component/generator/openPlugin/exporter.d.ts +9 -6
- package/build/component/generator/openPlugin/exporter.d.ts.map +1 -1
- package/build/component/generator/openPlugin/exporter.js +502 -53
- package/build/component/generator/openPlugin/exporter.js.map +1 -1
- package/build/component/generator/openPlugin/fileSystem.d.ts +28 -0
- package/build/component/generator/openPlugin/fileSystem.d.ts.map +1 -0
- package/build/component/generator/openPlugin/fileSystem.js +181 -0
- package/build/component/generator/openPlugin/fileSystem.js.map +1 -0
- package/build/component/generator/openPlugin/iconStrategy.d.ts.map +1 -1
- package/build/component/generator/openPlugin/iconStrategy.js +30 -14
- package/build/component/generator/openPlugin/iconStrategy.js.map +1 -1
- package/build/component/generator/openPlugin/importer.d.ts.map +1 -1
- package/build/component/generator/openPlugin/importer.js +75 -12
- package/build/component/generator/openPlugin/importer.js.map +1 -1
- package/build/component/generator/openPlugin/mapper.d.ts +3 -2
- package/build/component/generator/openPlugin/mapper.d.ts.map +1 -1
- package/build/component/generator/openPlugin/mapper.js +188 -29
- package/build/component/generator/openPlugin/mapper.js.map +1 -1
- package/build/component/generator/openPlugin/parser.d.ts.map +1 -1
- package/build/component/generator/openPlugin/parser.js +264 -70
- package/build/component/generator/openPlugin/parser.js.map +1 -1
- package/build/component/generator/openPlugin/skillValidation.d.ts +2 -0
- package/build/component/generator/openPlugin/skillValidation.d.ts.map +1 -0
- package/build/component/generator/openPlugin/skillValidation.js +63 -0
- package/build/component/generator/openPlugin/skillValidation.js.map +1 -0
- package/build/component/generator/openPlugin/spec.d.ts +67 -0
- package/build/component/generator/openPlugin/spec.d.ts.map +1 -0
- package/build/component/generator/openPlugin/spec.js +157 -0
- package/build/component/generator/openPlugin/spec.js.map +1 -0
- package/build/component/generator/openPlugin/textUtils.d.ts +1 -1
- package/build/component/generator/openPlugin/textUtils.d.ts.map +1 -1
- package/build/component/generator/openPlugin/textUtils.js +8 -7
- package/build/component/generator/openPlugin/textUtils.js.map +1 -1
- package/build/component/generator/openPlugin/types.d.ts +76 -14
- package/build/component/generator/openPlugin/types.d.ts.map +1 -1
- package/build/component/generator/openPlugin/validation.d.ts +17 -0
- package/build/component/generator/openPlugin/validation.d.ts.map +1 -0
- package/build/component/generator/openPlugin/validation.js +563 -0
- package/build/component/generator/openPlugin/validation.js.map +1 -0
- package/build/component/utils/common.d.ts +1 -9
- package/build/component/utils/common.d.ts.map +1 -1
- package/build/component/utils/common.js +7 -37
- package/build/component/utils/common.js.map +1 -1
- package/build/component/utils/envFunctionUtils.d.ts +3 -8
- package/build/component/utils/envFunctionUtils.d.ts.map +1 -1
- package/build/component/utils/envFunctionUtils.js +46 -131
- package/build/component/utils/envFunctionUtils.js.map +1 -1
- package/build/component/utils/mcpAuthScaffolder.d.ts +5 -0
- package/build/component/utils/mcpAuthScaffolder.d.ts.map +1 -1
- package/build/component/utils/mcpAuthScaffolder.js +14 -2
- package/build/component/utils/mcpAuthScaffolder.js.map +1 -1
- package/build/core/FxCore.d.ts +1 -1
- package/build/core/FxCore.d.ts.map +1 -1
- package/build/core/FxCore.declarativeAgent.d.ts +2 -1
- package/build/core/FxCore.declarativeAgent.d.ts.map +1 -1
- package/build/core/FxCore.declarativeAgent.js +17 -6
- package/build/core/FxCore.declarativeAgent.js.map +1 -1
- package/build/core/FxCore.js +3 -3
- package/build/core/FxCore.js.map +1 -1
- package/build/core/FxCore.openPlugin.d.ts +7 -6
- package/build/core/FxCore.openPlugin.d.ts.map +1 -1
- package/build/core/FxCore.openPlugin.js +7 -6
- package/build/core/FxCore.openPlugin.js.map +1 -1
- package/build/question/inputs/AddAuthActionInputs.d.ts +2 -0
- package/build/question/inputs/AddAuthActionInputs.d.ts.map +1 -1
- package/build/question/inputs/AddPluginInputs.d.ts +5 -1
- package/build/question/inputs/AddPluginInputs.d.ts.map +1 -1
- package/build/question/options/AddAuthActionOptions.d.ts.map +1 -1
- package/build/question/options/AddAuthActionOptions.js +7 -0
- package/build/question/options/AddAuthActionOptions.js.map +1 -1
- package/build/question/options/AddPluginOptions.d.ts.map +1 -1
- package/build/question/options/AddPluginOptions.js +14 -1
- package/build/question/options/AddPluginOptions.js.map +1 -1
- package/build/question/options/ExportOpenPluginOptions.js +2 -2
- package/build/question/options/ExportOpenPluginOptions.js.map +1 -1
- package/build/question/options/ImportOpenPluginOptions.js +4 -4
- package/build/question/options/ImportOpenPluginOptions.js.map +1 -1
- package/build/question/other.d.ts +1 -0
- package/build/question/other.d.ts.map +1 -1
- package/build/question/other.js +49 -9
- package/build/question/other.js.map +1 -1
- package/build/question/questionNames.d.ts +1 -0
- package/build/question/questionNames.d.ts.map +1 -1
- package/build/question/questionNames.js +1 -0
- package/build/question/questionNames.js.map +1 -1
- package/build/question/scaffold/vsc/teamsProjectTypeNode.d.ts +2 -0
- package/build/question/scaffold/vsc/teamsProjectTypeNode.d.ts.map +1 -1
- package/build/question/scaffold/vsc/teamsProjectTypeNode.js +24 -1
- package/build/question/scaffold/vsc/teamsProjectTypeNode.js.map +1 -1
- package/build/v4/mcp/mcpAuthAction.d.ts +2 -1
- package/build/v4/mcp/mcpAuthAction.d.ts.map +1 -1
- package/build/v4/mcp/mcpAuthAction.js +32 -5
- package/build/v4/mcp/mcpAuthAction.js.map +1 -1
- package/build/v4/mcp/mcpAuthScaffold.d.ts +3 -0
- package/build/v4/mcp/mcpAuthScaffold.d.ts.map +1 -1
- package/build/v4/mcp/mcpAuthScaffold.js +57 -30
- package/build/v4/mcp/mcpAuthScaffold.js.map +1 -1
- package/build/v4/runtime/steps/mcpAuth.d.ts.map +1 -1
- package/build/v4/runtime/steps/mcpAuth.js +13 -0
- package/build/v4/runtime/steps/mcpAuth.js.map +1 -1
- package/package.json +3 -3
- package/resource/package.nls.json +20 -0
- package/templates/fallback/common.zip +0 -0
- package/templates/fallback/csharp.zip +0 -0
- package/templates/fallback/js.zip +0 -0
- package/templates/fallback/python.zip +0 -0
- package/templates/fallback/ts.zip +0 -0
- package/templates/metadata.zip +0 -0
- package/templates/v4/floor.json +1 -1
- package/templates/v4/templates-metadata.zip +0 -0
- package/templates/v4/templates.zip +0 -0
|
@@ -8,6 +8,7 @@ const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
|
8
8
|
const neverthrow_1 = require("neverthrow");
|
|
9
9
|
const localizeUtils_1 = require("../../../common/localizeUtils");
|
|
10
10
|
const mcpToolFetcher = tslib_1.__importStar(require("../../../common/mcpToolFetcher"));
|
|
11
|
+
const spec_1 = require("./spec");
|
|
11
12
|
const SOURCE = "OpenPluginImport";
|
|
12
13
|
function isLocalHostname(hostname) {
|
|
13
14
|
if (hostname === "localhost" ||
|
|
@@ -22,8 +23,11 @@ function isLocalHostname(hostname) {
|
|
|
22
23
|
function classifyAuthProbeTarget(serverUrl) {
|
|
23
24
|
try {
|
|
24
25
|
const parsed = new URL(serverUrl);
|
|
26
|
+
if (parsed.protocol !== "https:") {
|
|
27
|
+
return "unsupported";
|
|
28
|
+
}
|
|
25
29
|
const hostname = parsed.hostname.toLowerCase().replace(/\.$/, "");
|
|
26
|
-
return
|
|
30
|
+
return isLocalHostname(hostname) ? "noProbe" : "remote";
|
|
27
31
|
}
|
|
28
32
|
catch {
|
|
29
33
|
return "invalid";
|
|
@@ -43,6 +47,9 @@ function unresolvedAuth(serverName, error) {
|
|
|
43
47
|
async function resolveOpenPluginMcpAuth(parsed, defaultAuth) {
|
|
44
48
|
const authTypes = {};
|
|
45
49
|
const warnings = [];
|
|
50
|
+
if (defaultAuth === "Auto" && parsed.invalidRemoteMcpServers?.length) {
|
|
51
|
+
return (0, neverthrow_1.err)(unresolvedAuth([...parsed.invalidRemoteMcpServers].sort()[0]));
|
|
52
|
+
}
|
|
46
53
|
for (const serverName of Object.keys(parsed.mcpServers).sort()) {
|
|
47
54
|
const server = parsed.mcpServers[serverName];
|
|
48
55
|
const serverUrl = typeof server.url === "string" ? server.url.trim() : "";
|
|
@@ -51,19 +58,22 @@ async function resolveOpenPluginMcpAuth(parsed, defaultAuth) {
|
|
|
51
58
|
}
|
|
52
59
|
const override = parsed.atkExtension?.agentConnectors?.[serverName]?.authorization?.type;
|
|
53
60
|
if (override) {
|
|
54
|
-
authTypes
|
|
61
|
+
(0, spec_1.setRecordValue)(authTypes, serverName, override);
|
|
55
62
|
continue;
|
|
56
63
|
}
|
|
57
64
|
if (defaultAuth !== "Auto") {
|
|
58
|
-
authTypes
|
|
65
|
+
(0, spec_1.setRecordValue)(authTypes, serverName, defaultAuth);
|
|
59
66
|
continue;
|
|
60
67
|
}
|
|
61
68
|
const probeTarget = classifyAuthProbeTarget(serverUrl);
|
|
62
69
|
if (probeTarget === "invalid") {
|
|
63
70
|
return (0, neverthrow_1.err)(unresolvedAuth(serverName));
|
|
64
71
|
}
|
|
72
|
+
if (probeTarget === "unsupported") {
|
|
73
|
+
continue;
|
|
74
|
+
}
|
|
65
75
|
if (probeTarget === "noProbe") {
|
|
66
|
-
authTypes
|
|
76
|
+
(0, spec_1.setRecordValue)(authTypes, serverName, "None");
|
|
67
77
|
warnings.push((0, localizeUtils_1.getLocalizedString)("core.openPluginImport.autoAuthNone", serverName));
|
|
68
78
|
continue;
|
|
69
79
|
}
|
|
@@ -79,16 +89,16 @@ async function resolveOpenPluginMcpAuth(parsed, defaultAuth) {
|
|
|
79
89
|
}
|
|
80
90
|
try {
|
|
81
91
|
await mcpToolFetcher.resolveMCPOAuthMetadata(probe.authMetadataUrl, undefined, serverUrl);
|
|
82
|
-
authTypes
|
|
92
|
+
(0, spec_1.setRecordValue)(authTypes, serverName, "OAuthPluginVault");
|
|
83
93
|
warnings.push((0, localizeUtils_1.getLocalizedString)("core.openPluginImport.autoAuthOAuth", serverName));
|
|
84
94
|
}
|
|
85
95
|
catch {
|
|
86
96
|
if (probe.requiresAuth) {
|
|
87
|
-
authTypes
|
|
97
|
+
(0, spec_1.setRecordValue)(authTypes, serverName, "OAuthPluginVault");
|
|
88
98
|
warnings.push((0, localizeUtils_1.getLocalizedString)("core.openPluginImport.authFallback", serverName));
|
|
89
99
|
continue;
|
|
90
100
|
}
|
|
91
|
-
authTypes
|
|
101
|
+
(0, spec_1.setRecordValue)(authTypes, serverName, "None");
|
|
92
102
|
warnings.push((0, localizeUtils_1.getLocalizedString)("core.openPluginImport.autoAuthNone", serverName));
|
|
93
103
|
}
|
|
94
104
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authResolver.js","sourceRoot":"","sources":["../../../../src/component/generator/openPlugin/authResolver.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;
|
|
1
|
+
{"version":3,"file":"authResolver.js","sourceRoot":"","sources":["../../../../src/component/generator/openPlugin/authResolver.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAy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AC;gBACvB,IAAA,qBAAc,EAAC,SAAS,EAAE,UAAU,EAAE,kBAAkB,CAAC,CAAC;gBAC1D,QAAQ,CAAC,IAAI,CAAC,IAAA,kCAAkB,EAAC,oCAAoC,EAAE,UAAU,CAAC,CAAC,CAAC;gBACpF,SAAS;YACX,CAAC;YACD,IAAA,qBAAc,EAAC,SAAS,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;YAC9C,QAAQ,CAAC,IAAI,CAAC,IAAA,kCAAkB,EAAC,oCAAoC,EAAE,UAAU,CAAC,CAAC,CAAC;QACtF,CAAC;IACH,CAAC;IAED,OAAO,IAAA,eAAE,EAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,CAAC;AACrC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../src/component/generator/openPlugin/errors.ts"],"names":[],"mappings":"AAGA,qBAAa,oBAAqB,SAAQ,KAAK;gBACjC,OAAO,EAAE,MAAM;CAI5B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT license.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.OpenPluginInputError = void 0;
|
|
6
|
+
class OpenPluginInputError extends Error {
|
|
7
|
+
constructor(message) {
|
|
8
|
+
super(message);
|
|
9
|
+
this.name = "OpenPluginInputError";
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.OpenPluginInputError = OpenPluginInputError;
|
|
13
|
+
//# sourceMappingURL=errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../src/component/generator/openPlugin/errors.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,MAAa,oBAAqB,SAAQ,KAAK;IAC7C,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,sBAAsB,CAAC;IACrC,CAAC;CACF;AALD,oDAKC"}
|
|
@@ -2,17 +2,20 @@ import { FxError, Result } from "@microsoft/teamsfx-api";
|
|
|
2
2
|
import { ExportInputs } from "./types";
|
|
3
3
|
export declare const OPEN_PLUGIN_EXPORT_SOURCE = "OpenPluginExport";
|
|
4
4
|
export interface ExportResult {
|
|
5
|
-
/** Absolute path to the generated
|
|
5
|
+
/** Absolute path to the generated Agent Plugin directory. */
|
|
6
6
|
outputPath: string;
|
|
7
7
|
warnings: string[];
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Export an ATK project (folder containing appPackage/manifest.json plus the
|
|
11
|
-
* usual agentSkills/agentConnectors layout) into an
|
|
12
|
-
* directory. The output is structured so that
|
|
13
|
-
* <output>` reconstructs an equivalent ATK
|
|
14
|
-
*
|
|
15
|
-
* `
|
|
11
|
+
* usual agentSkills/agentConnectors layout) into an Agent Plugins v1.0.0
|
|
12
|
+
* directory (https://agent-plugins.org/). The output is structured so that
|
|
13
|
+
* `atk import agentplugin --path <output>` reconstructs an equivalent ATK
|
|
14
|
+
* project; fields with no native Agent Plugins equivalent are preserved
|
|
15
|
+
* verbatim under `extensions["com.microsoft.agents-toolkit"]` in plugin.json.
|
|
16
|
+
*
|
|
17
|
+
* Output is always spec-compliant 1.0.0: plugin.json in the plugin root, and
|
|
18
|
+
* mcp.json (not .mcp.json) for MCP servers.
|
|
16
19
|
*/
|
|
17
20
|
export declare function exportOpenPlugin(inputs: ExportInputs): Promise<Result<ExportResult, FxError>>;
|
|
18
21
|
//# sourceMappingURL=exporter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exporter.d.ts","sourceRoot":"","sources":["../../../../src/component/generator/openPlugin/exporter.ts"],"names":[],"mappings":"AAGA,OAAO,EAAO,OAAO,EAAM,MAAM,EAA0B,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"exporter.d.ts","sourceRoot":"","sources":["../../../../src/component/generator/openPlugin/exporter.ts"],"names":[],"mappings":"AAGA,OAAO,EAAO,OAAO,EAAM,MAAM,EAA0B,MAAM,wBAAwB,CAAC;AA0B1F,OAAO,EAIL,YAAY,EACb,MAAM,SAAS,CAAC;AAGjB,eAAO,MAAM,yBAAyB,qBAAqB,CAAC;AAE5D,MAAM,WAAW,YAAY;IAC3B,6DAA6D;IAC7D,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAkBD;;;;;;;;;;GAUG;AACH,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,YAAY,GACnB,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC,CAqLxC"}
|