worsoft-frontend-codegen-local-mcp 0.1.55 → 0.1.57
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/mcp_server.js +9 -5
- package/package.json +1 -1
package/mcp_server.js
CHANGED
|
@@ -5,7 +5,7 @@ const fs = require('fs');
|
|
|
5
5
|
const path = require('path');
|
|
6
6
|
|
|
7
7
|
const SERVER_NAME = 'worsoft-codegen-local';
|
|
8
|
-
const SERVER_VERSION = '0.1.
|
|
8
|
+
const SERVER_VERSION = '0.1.57';
|
|
9
9
|
const PROTOCOL_VERSION = '2024-11-05';
|
|
10
10
|
const TOOL_NAME = 'worsoft_codegen_local_generate_frontend';
|
|
11
11
|
const STYLE_CATALOG_PATH = path.join(__dirname, 'assets', 'style-catalog.json');
|
|
@@ -1912,9 +1912,12 @@ function renderOptionFieldV2(field, labelKey, dictRegistryRefs, indent = ' ')
|
|
|
1912
1912
|
if (field.show === false) {
|
|
1913
1913
|
parts.push('show: false');
|
|
1914
1914
|
}
|
|
1915
|
-
if (field.listShow
|
|
1916
|
-
parts.push(
|
|
1917
|
-
}
|
|
1915
|
+
if (field.listShow !== field.show) {
|
|
1916
|
+
parts.push(`listShow: ${field.listShow ? 'true' : 'false'}`);
|
|
1917
|
+
}
|
|
1918
|
+
if (field.formShow !== field.show) {
|
|
1919
|
+
parts.push(`formShow: ${field.formShow ? 'true' : 'false'}`);
|
|
1920
|
+
}
|
|
1918
1921
|
|
|
1919
1922
|
return `${indent}{ ${parts.join(', ')} },`;
|
|
1920
1923
|
}
|
|
@@ -2050,7 +2053,8 @@ function renderMultiLevelOptionField(field, model, moduleModel, dictRegistryRefs
|
|
|
2050
2053
|
const width = getDefaultOptionFieldWidthV2(field);
|
|
2051
2054
|
if (width) parts.push(`width: '${width}'`);
|
|
2052
2055
|
if (field.show === false) parts.push('show: false');
|
|
2053
|
-
if (field.listShow
|
|
2056
|
+
if (field.listShow !== field.show) parts.push(`listShow: ${field.listShow ? 'true' : 'false'}`);
|
|
2057
|
+
if (field.formShow !== field.show) parts.push(`formShow: ${field.formShow ? 'true' : 'false'}`);
|
|
2054
2058
|
if (field.smart) parts.push('smart: true');
|
|
2055
2059
|
if (field.dictType) {
|
|
2056
2060
|
parts.push(`dictType: ${getDictRegistryReference(field.dictType, dictRegistryRefs)}`);
|
package/package.json
CHANGED