@measurequick/measurequick-report-generator 1.5.193 → 1.5.194
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/.claude/settings.local.json +2 -1
- package/package.json +1 -1
- package/util.js +6 -2
package/package.json
CHANGED
package/util.js
CHANGED
|
@@ -1079,8 +1079,12 @@ export function getAiSummary(payload) {
|
|
|
1079
1079
|
}
|
|
1080
1080
|
// Check aiSummaries array on project
|
|
1081
1081
|
if (payload.project && payload.project.aiSummaries && payload.project.aiSummaries.length > 0) {
|
|
1082
|
-
// Return the most recent summary
|
|
1083
|
-
|
|
1082
|
+
// Return the most recent summary - extract text if it's an object
|
|
1083
|
+
const summary = payload.project.aiSummaries[payload.project.aiSummaries.length - 1];
|
|
1084
|
+
if (typeof summary === 'string') return summary;
|
|
1085
|
+
if (summary && summary.text) return summary.text;
|
|
1086
|
+
if (summary && summary.summary) return summary.summary;
|
|
1087
|
+
if (summary && summary.content) return summary.content;
|
|
1084
1088
|
}
|
|
1085
1089
|
return null;
|
|
1086
1090
|
}
|