@sap-ux/fiori-mcp-server 0.0.6 → 0.0.7
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/dist/telemetry/index.js
CHANGED
|
@@ -43,7 +43,12 @@ class TelemetryHelper {
|
|
|
43
43
|
resourceId,
|
|
44
44
|
...options
|
|
45
45
|
};
|
|
46
|
-
|
|
46
|
+
try {
|
|
47
|
+
await (0, telemetry_1.initTelemetrySettings)(telemetryOptions);
|
|
48
|
+
}
|
|
49
|
+
catch (error) {
|
|
50
|
+
console.error('Error initializing telemetry settings:', error);
|
|
51
|
+
}
|
|
47
52
|
}
|
|
48
53
|
/**
|
|
49
54
|
* Creates telemetry data and adds default telemetry props.
|
|
@@ -125,7 +125,7 @@ async function command(params) {
|
|
|
125
125
|
const content = JSON.stringify(generatorConfig, null, 4);
|
|
126
126
|
await fs_1.promises.mkdir((0, path_1.dirname)(outputPath), { recursive: true });
|
|
127
127
|
await fs_1.promises.writeFile(outputPath, content, { encoding: 'utf8' });
|
|
128
|
-
const command = `npx -y yo@4 @sap/fiori:headless ${configPath} --force`.trim();
|
|
128
|
+
const command = `npx -y yo@4 @sap/fiori:headless ${configPath} --force --skipInstall`.trim();
|
|
129
129
|
const { stdout, stderr } = await exec(command, { cwd: targetDir });
|
|
130
130
|
console.log(stdout);
|
|
131
131
|
if (stderr) {
|
|
@@ -153,7 +153,7 @@ async function command(params) {
|
|
|
153
153
|
return {
|
|
154
154
|
functionalityId: constant_1.GENERATE_FIORI_UI_APP_ID,
|
|
155
155
|
status: 'Success',
|
|
156
|
-
message:
|
|
156
|
+
message: `Generation completed successfully: ${appPath}. You must run \`npm install\` in ${targetDir} before trying to run the application.`,
|
|
157
157
|
parameters: params.parameters,
|
|
158
158
|
appPath,
|
|
159
159
|
changes: [],
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/fiori-mcp-server",
|
|
3
3
|
"description": "SAP Fiori - Model Context Protocol (MCP) server",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.7",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"SAP Fiori tools",
|
|
7
7
|
"SAP Fiori elements",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"@types/mem-fs": "1.1.2",
|
|
33
33
|
"@sap-ux/i18n": "0.3.3",
|
|
34
34
|
"@sap-ux/odata-annotation-core-types": "0.4.5",
|
|
35
|
-
"@sap-ux/
|
|
36
|
-
"@sap-ux/
|
|
35
|
+
"@sap-ux/text-document-utils": "0.3.1",
|
|
36
|
+
"@sap-ux/odata-entity-model": "0.3.1"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@modelcontextprotocol/sdk": "1.17.4",
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
"zod": "4.1.5",
|
|
45
45
|
"@sap-ux/btp-utils": "1.1.1",
|
|
46
46
|
"@sap-ux/fiori-annotation-api": "0.6.17",
|
|
47
|
-
"@sap-ux/nodejs-utils": "0.2.3",
|
|
48
|
-
"@sap-ux/project-access": "1.30.13",
|
|
49
47
|
"@sap-ux/feature-toggle": "0.3.1",
|
|
50
|
-
"@sap-ux/
|
|
48
|
+
"@sap-ux/nodejs-utils": "0.2.3",
|
|
49
|
+
"@sap-ux/telemetry": "0.6.19",
|
|
50
|
+
"@sap-ux/project-access": "1.30.13"
|
|
51
51
|
},
|
|
52
52
|
"engines": {
|
|
53
53
|
"node": ">=20.x"
|