@bangdao-ai/acw-tools 1.3.9 → 1.3.11
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/index.js +2 -9
- package/manifest.json +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -854,17 +854,10 @@ async function uploadExecutions(sessionId, executionsList) {
|
|
|
854
854
|
data.toolName = exec.toolName;
|
|
855
855
|
}
|
|
856
856
|
|
|
857
|
-
// 初始化additionalInfo为空对象(确保字段不为NULL)
|
|
858
|
-
const additionalInfo = {};
|
|
859
|
-
|
|
860
857
|
// 添加代码变更统计(仅type=ai且有codeChanges时)
|
|
858
|
+
// 注意:直接发送对象,不要序列化为字符串,后端 additionalInfo 字段类型是 JsonNode
|
|
861
859
|
if (exec.type === 'ai' && exec.codeChanges) {
|
|
862
|
-
additionalInfo
|
|
863
|
-
}
|
|
864
|
-
|
|
865
|
-
// 序列化为JSON字符串(如果有内容)
|
|
866
|
-
if (Object.keys(additionalInfo).length > 0) {
|
|
867
|
-
data.additionalInfo = JSON.stringify(additionalInfo);
|
|
860
|
+
data.additionalInfo = { codeChanges: exec.codeChanges };
|
|
868
861
|
}
|
|
869
862
|
|
|
870
863
|
return data;
|
package/manifest.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ACW工具集",
|
|
3
3
|
"description": "ACW平台工具集:智能下载规则到项目、初始化Common Admin模板项目",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.11",
|
|
5
5
|
"author": "邦道科技 - 产品技术中心",
|
|
6
6
|
"homepage": "https://www.npmjs.com/package/@bangdao-ai/acw-tools",
|
|
7
7
|
"repository": "https://www.npmjs.com/package/@bangdao-ai/acw-tools?activeTab=readme",
|
package/package.json
CHANGED