@microsoft/teamsfx-core 3.0.10-alpha.845b0d258.0 → 3.0.10-alpha.bd1eea45e.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 +1 -1
- package/build/component/utils/odrProvider.d.ts +0 -13
- package/build/component/utils/odrProvider.d.ts.map +1 -1
- package/build/component/utils/odrProvider.js +0 -25
- package/build/component/utils/odrProvider.js.map +1 -1
- package/package.json +4 -4
- 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
|
@@ -17,12 +17,6 @@ export interface ODRTool {
|
|
|
17
17
|
_meta?: any;
|
|
18
18
|
}
|
|
19
19
|
export declare class ODRProvider {
|
|
20
|
-
/**
|
|
21
|
-
* Check if a server configuration is ODR-based.
|
|
22
|
-
* @param serverConfig The server configuration object
|
|
23
|
-
* @returns True if the server is ODR-based, false otherwise
|
|
24
|
-
*/
|
|
25
|
-
static isODRServer(serverConfig: any): boolean;
|
|
26
20
|
/**
|
|
27
21
|
* Parse the output of 'odr list' command
|
|
28
22
|
* @param jsonOutput The JSON output from 'odr list' command
|
|
@@ -38,12 +32,5 @@ export declare class ODRProvider {
|
|
|
38
32
|
* - ODR command fails or returns invalid output
|
|
39
33
|
*/
|
|
40
34
|
static listServers(): Promise<ODRServer[]>;
|
|
41
|
-
/**
|
|
42
|
-
* Get tools for a specific ODR server by matching command and arguments.
|
|
43
|
-
* @param command The command of the ODR server (e.g., "odr")
|
|
44
|
-
* @param args The arguments array for the ODR server
|
|
45
|
-
* @returns Array of tools from the matching ODR server, or empty array if no match found
|
|
46
|
-
*/
|
|
47
|
-
static getToolsForODRServer(command: string, args?: string[]): Promise<ODRTool[]>;
|
|
48
35
|
}
|
|
49
36
|
//# sourceMappingURL=odrProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"odrProvider.d.ts","sourceRoot":"","sources":["../../../src/component/utils/odrProvider.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,OAAO,EAAE,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB;AAED,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,GAAG,CAAC;IACjB,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,KAAK,CAAC,EAAE,GAAG,CAAC;CACb;AAED,qBAAa,WAAW;IACtB;;;;OAIG;IACH,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"odrProvider.d.ts","sourceRoot":"","sources":["../../../src/component/utils/odrProvider.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,OAAO,EAAE,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB;AAED,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,GAAG,CAAC;IACjB,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,KAAK,CAAC,EAAE,GAAG,CAAC;CACb;AAED,qBAAa,WAAW;IACtB;;;;OAIG;IACH,MAAM,CAAC,kBAAkB,CAAC,UAAU,EAAE,GAAG,GAAG,SAAS,EAAE;IAwCvD;;;;;;;OAOG;WACU,WAAW,IAAI,OAAO,CAAC,SAAS,EAAE,CAAC;CAoBjD"}
|
|
@@ -6,18 +6,6 @@ exports.ODRProvider = void 0;
|
|
|
6
6
|
const child_process_1 = require("child_process");
|
|
7
7
|
const util_1 = require("util");
|
|
8
8
|
class ODRProvider {
|
|
9
|
-
/**
|
|
10
|
-
* Check if a server configuration is ODR-based.
|
|
11
|
-
* @param serverConfig The server configuration object
|
|
12
|
-
* @returns True if the server is ODR-based, false otherwise
|
|
13
|
-
*/
|
|
14
|
-
static isODRServer(serverConfig) {
|
|
15
|
-
if ((serverConfig === null || serverConfig === void 0 ? void 0 : serverConfig.type) !== "stdio" || !serverConfig.command) {
|
|
16
|
-
return false;
|
|
17
|
-
}
|
|
18
|
-
const configCommand = serverConfig.command.toLowerCase();
|
|
19
|
-
return configCommand === "odr" || configCommand.endsWith("odr.exe");
|
|
20
|
-
}
|
|
21
9
|
/**
|
|
22
10
|
* Parse the output of 'odr list' command
|
|
23
11
|
* @param jsonOutput The JSON output from 'odr list' command
|
|
@@ -82,19 +70,6 @@ class ODRProvider {
|
|
|
82
70
|
return [];
|
|
83
71
|
}
|
|
84
72
|
}
|
|
85
|
-
/**
|
|
86
|
-
* Get tools for a specific ODR server by matching command and arguments.
|
|
87
|
-
* @param command The command of the ODR server (e.g., "odr")
|
|
88
|
-
* @param args The arguments array for the ODR server
|
|
89
|
-
* @returns Array of tools from the matching ODR server, or empty array if no match found
|
|
90
|
-
*/
|
|
91
|
-
static async getToolsForODRServer(command, args = []) {
|
|
92
|
-
const odrServers = await ODRProvider.listServers();
|
|
93
|
-
const matchingServer = odrServers.find((odrServer) => {
|
|
94
|
-
return (odrServer.command === command && JSON.stringify(odrServer.args) === JSON.stringify(args));
|
|
95
|
-
});
|
|
96
|
-
return (matchingServer === null || matchingServer === void 0 ? void 0 : matchingServer.tools) || [];
|
|
97
|
-
}
|
|
98
73
|
}
|
|
99
74
|
exports.ODRProvider = ODRProvider;
|
|
100
75
|
//# sourceMappingURL=odrProvider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"odrProvider.js","sourceRoot":"","sources":["../../../src/component/utils/odrProvider.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,iDAAqC;AACrC,+BAAiC;AAsBjC,MAAa,WAAW;IACtB;;;;OAIG;IACH,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"odrProvider.js","sourceRoot":"","sources":["../../../src/component/utils/odrProvider.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,iDAAqC;AACrC,+BAAiC;AAsBjC,MAAa,WAAW;IACtB;;;;OAIG;IACH,MAAM,CAAC,kBAAkB,CAAC,UAAe;;QACvC,MAAM,OAAO,GAAgB,EAAE,CAAC;QAEhC,IAAI,CAAC,UAAU,IAAI,CAAC,UAAU,CAAC,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE;YAC5E,OAAO,OAAO,CAAC;SAChB;QAED,KAAK,MAAM,MAAM,IAAI,UAAU,CAAC,OAAO,EAAE;YACvC,MAAM,QAAQ,GACZ,MAAA,MAAA,MAAA,MAAM,CAAC,KAAK,0CAAG,qDAAqD,CAAC,0CACnE,uBAAuB,CACxB,0CAAE,QAAQ,CAAC;YACd,MAAM,eAAe,GAAG,MAAA,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,KAAK,0CAAG,uBAAuB,CAAC,0CAAE,gBAAgB,CAAC;YACrF,MAAM,SAAS,GAAG,CAAA,MAAA,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAG,YAAY,CAAC,0CAAE,KAAK,KAAI,EAAE,CAAC;YAC/D,MAAM,aAAa,GAAG,M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AAC,CAAC;QAClC,IAAI;YACF,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,SAAS,CAAC,UAAU,CAAC,CAAC;YAE/C,IAAI,CAAC,MAAM,EAAE;gBACX,OAAO,EAAE,CAAC;aACX;YAED,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;YACtC,OAAO,WAAW,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC;SACnD;QAAC,OAAO,KAAK,EAAE;YACd,OAAO,CAAC,KAAK,CAAC,2BAA2B,EAAE,KAAK,CAAC,CAAC;YAClD,OAAO,EAAE,CAAC;SACX;IACH,CAAC;CACF;AA1ED,kCA0EC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/teamsfx-core",
|
|
3
|
-
"version": "3.0.10-alpha.
|
|
3
|
+
"version": "3.0.10-alpha.bd1eea45e.0",
|
|
4
4
|
"main": "build/index.js",
|
|
5
5
|
"types": "build/index.d.ts",
|
|
6
6
|
"license": "MIT",
|
|
@@ -109,8 +109,8 @@
|
|
|
109
109
|
"@microsoft/dev-tunnels-contracts": "1.1.9",
|
|
110
110
|
"@microsoft/dev-tunnels-management": "1.1.9",
|
|
111
111
|
"@microsoft/kiota": "1.29.0",
|
|
112
|
-
"@microsoft/m365-spec-parser": "^0.2.11-alpha.
|
|
113
|
-
"@microsoft/teamsfx-api": "0.23.12-alpha.
|
|
112
|
+
"@microsoft/m365-spec-parser": "^0.2.11-alpha.bd1eea45e.0",
|
|
113
|
+
"@microsoft/teamsfx-api": "0.23.12-alpha.bd1eea45e.0",
|
|
114
114
|
"adm-zip": "^0.5.10",
|
|
115
115
|
"ajv": "^8.5.0",
|
|
116
116
|
"axios": "^1.8.3",
|
|
@@ -233,7 +233,7 @@
|
|
|
233
233
|
"resource/**/*",
|
|
234
234
|
"templates/**/*"
|
|
235
235
|
],
|
|
236
|
-
"gitHead": "
|
|
236
|
+
"gitHead": "539c31fc5ebb02860e5972d564b12818059fdebd",
|
|
237
237
|
"publishConfig": {
|
|
238
238
|
"access": "public"
|
|
239
239
|
},
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/templates/metadata.zip
CHANGED
|
Binary file
|