@graphext/cuery 0.10.4 → 0.10.5

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.
@@ -84,7 +84,7 @@ export function parseSources(citations, linksAttached = []) {
84
84
  for (const link of sortedLinks) {
85
85
  if (!link.url)
86
86
  continue;
87
- const source = upsertSource(link.url, link.text ?? '', true);
87
+ const source = upsertSource(link.url, '', true);
88
88
  if (link.position != null) {
89
89
  source.positions ??= [];
90
90
  if (!source.positions.includes(link.position)) {
@@ -155,7 +155,7 @@ function parseAIResult(data, { allowNestedOverview = true } = {}) {
155
155
  const refIndexToSourceIndex = new Map();
156
156
  for (const r of refs) {
157
157
  const link = r.link || r.url;
158
- const title = [r.title, r.source].filter(Boolean).join(' - ');
158
+ const title = r.title ?? '';
159
159
  const snippet = cleanText(r.snippet || '') || undefined;
160
160
  if (link && r.index != null) {
161
161
  // Deduplicate by URL
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphext/cuery",
3
- "version": "0.10.4",
3
+ "version": "0.10.5",
4
4
  "description": "Cuery tools for AI-powered keyword research and brand analysis",
5
5
  "repository": {
6
6
  "type": "git",
@@ -124,7 +124,7 @@ function parseSources(citations, linksAttached = []) {
124
124
  for (const link of sortedLinks) {
125
125
  if (!link.url)
126
126
  continue;
127
- const source = upsertSource(link.url, link.text ?? '', true);
127
+ const source = upsertSource(link.url, '', true);
128
128
  if (link.position != null) {
129
129
  source.positions ??= [];
130
130
  if (!source.positions.includes(link.position)) {
@@ -195,7 +195,7 @@ function parseAIResult(data, { allowNestedOverview = true } = {}) {
195
195
  const refIndexToSourceIndex = new Map();
196
196
  for (const r of refs) {
197
197
  const link = r.link || r.url;
198
- const title = [r.title, r.source].filter(Boolean).join(' - ');
198
+ const title = r.title ?? '';
199
199
  const snippet = cleanText(r.snippet || '') || undefined;
200
200
  if (link && r.index != null) {
201
201
  // Deduplicate by URL