salesprompter-cli 0.1.57 → 0.1.58

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/README.md CHANGED
@@ -66,7 +66,7 @@ salesprompter companies:resolve-linkedin-urls --in ./companies.txt --out ./compa
66
66
  salesprompter contacts:resolve-emails --in ./contacts.tsv --out-dir ./email-run --dry-run
67
67
 
68
68
  # Collect a Sales Navigator people search into the active workspace
69
- # Searches above the native window are split by company headcount and deduplicated.
69
+ # Oversized or pagination-short searches are split by company headcount and deduplicated.
70
70
  salesprompter leads:collect \
71
71
  --linkedin-url "$SALES_NAV_PEOPLE_URL"
72
72
 
package/dist/cli.js CHANGED
@@ -8803,7 +8803,9 @@ async function fetchCompleteLocalSalesNavigatorPeople(sourceQueryUrl, requestHea
8803
8803
  const needsSplit = tooBroadTotal != null ||
8804
8804
  (collected?.totalResults == null &&
8805
8805
  collected != null &&
8806
- collected.people.length >= options.maxResultsPerSearch);
8806
+ collected.people.length >= options.maxResultsPerSearch) ||
8807
+ (collected?.totalResults != null &&
8808
+ collected.people.length < collected.totalResults);
8807
8809
  if (needsSplit) {
8808
8810
  const usedDimensionKeys = new Set(attempt.splitTrail.map((entry) => entry.key.replace(/-residual$/, "")));
8809
8811
  const nextDimension = dimensions.find((dimension) => !usedDimensionKeys.has(dimension.key));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "salesprompter-cli",
3
- "version": "0.1.57",
3
+ "version": "0.1.58",
4
4
  "description": "Sales workflow CLI for guided lead generation, enrichment, scoring, and sync.",
5
5
  "author": "Daniel Sinewe <hello@danielsinewe.com>",
6
6
  "type": "module",