@adobe/spacecat-shared-utils 1.110.0 → 1.111.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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [@adobe/spacecat-shared-utils-v1.111.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.110.0...@adobe/spacecat-shared-utils-v1.111.0) (2026-04-01)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
* LLMO-3758 info-gain ([#1488](https://github.com/adobe/spacecat-shared/issues/1488)) ([cc6bcc1](https://github.com/adobe/spacecat-shared/commit/cc6bcc16921e98f46b79efdff272004672fb455e))
|
|
6
|
+
|
|
1
7
|
## [@adobe/spacecat-shared-utils-v1.110.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.109.0...@adobe/spacecat-shared-utils-v1.110.0) (2026-04-01)
|
|
2
8
|
|
|
3
9
|
### Features
|
package/package.json
CHANGED
package/src/constants.js
CHANGED
|
@@ -79,6 +79,9 @@ export const AUDIT_OPPORTUNITY_MAP = {
|
|
|
79
79
|
'wikipedia-analysis': ['wikipedia-analysis'],
|
|
80
80
|
'reddit-analysis': ['reddit-analysis'],
|
|
81
81
|
'youtube-analysis': ['youtube-analysis'],
|
|
82
|
+
|
|
83
|
+
// LLMO customer / GEO content catalog
|
|
84
|
+
'llmo-customer-analysis': ['info-gain'],
|
|
82
85
|
};
|
|
83
86
|
|
|
84
87
|
// ─── Query helpers ───────────────────────────────────────────────────────────
|
|
@@ -97,6 +97,7 @@ export const OPPORTUNITY_DEPENDENCY_MAP = {
|
|
|
97
97
|
'wikipedia-analysis': [DEPENDENCY_SOURCES.EXTERNAL_API],
|
|
98
98
|
'reddit-analysis': [DEPENDENCY_SOURCES.EXTERNAL_API],
|
|
99
99
|
'youtube-analysis': [DEPENDENCY_SOURCES.EXTERNAL_API],
|
|
100
|
+
'info-gain': [DEPENDENCY_SOURCES.SCRAPING, DEPENDENCY_SOURCES.EXTERNAL_API],
|
|
100
101
|
};
|
|
101
102
|
|
|
102
103
|
// ─── Query helpers ───────────────────────────────────────────────────────────
|
package/src/url-extractors.js
CHANGED
|
@@ -200,6 +200,33 @@ function extractUrlsFromOpportunity(opts) {
|
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
break;
|
|
203
|
+
case OPPORTUNITY_TYPES.INFO_GAIN:
|
|
204
|
+
{
|
|
205
|
+
const pushCatalogRow = (row) => {
|
|
206
|
+
const entry = row?.data && typeof row.data === 'object' ? row.data : row;
|
|
207
|
+
if (!entry || typeof entry !== 'object') {
|
|
208
|
+
return;
|
|
209
|
+
}
|
|
210
|
+
const reportUrl = entry?.report?.url;
|
|
211
|
+
if (reportUrl && typeof reportUrl === 'string') {
|
|
212
|
+
urls.push(reportUrl);
|
|
213
|
+
}
|
|
214
|
+
const discovered = entry?.discoveredOpportunities;
|
|
215
|
+
if (Array.isArray(discovered)) {
|
|
216
|
+
discovered.forEach((opp) => {
|
|
217
|
+
const targetUrl = opp?.targetUrl;
|
|
218
|
+
if (targetUrl && typeof targetUrl === 'string') {
|
|
219
|
+
urls.push(targetUrl);
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
const embeddedSuggestions = data?.suggestions;
|
|
225
|
+
if (Array.isArray(embeddedSuggestions)) {
|
|
226
|
+
embeddedSuggestions.forEach(pushCatalogRow);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
break;
|
|
203
230
|
default:
|
|
204
231
|
break;
|
|
205
232
|
}
|