@sellable/mcp 0.1.190 → 0.1.192
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/dist/tools/leads.js +5 -5
- package/dist/tools/rows.d.ts +2 -0
- package/dist/tools/rubrics.js +1 -1
- package/package.json +1 -1
package/dist/tools/leads.js
CHANGED
|
@@ -529,7 +529,7 @@ function buildSourceImportWatchNarration({ provider, selectedPostCount, estimate
|
|
|
529
529
|
: "Apollo";
|
|
530
530
|
const sourceDetail = provider === "signal-discovery"
|
|
531
531
|
? `${selectedPostCount ?? "selected"} approved post${selectedPostCount === 1 ? "" : "s"}${typeof estimatedEngagers === "number"
|
|
532
|
-
? ` with
|
|
532
|
+
? ` with about ${estimatedEngagers.toLocaleString("en-US")} people to check`
|
|
533
533
|
: ""}`
|
|
534
534
|
: `the approved ${providerLabel} source`;
|
|
535
535
|
const targetDetail = typeof targetLeadCount === "number"
|
|
@@ -806,8 +806,8 @@ function buildSignalDiscoverySourceRecommendation({ selectedPosts, targetEngager
|
|
|
806
806
|
? "the approved buyer-search target"
|
|
807
807
|
: `the ${Math.round(defaultFitRate * 100)}% starting estimate`;
|
|
808
808
|
const selectedPoolCopy = recommendedCount < selectedCount
|
|
809
|
-
? `**Posts considered:** ${selectedCount.toLocaleString("en-US")} selected posts with ${formatApproxInteger(totalVisibleEngagement)}
|
|
810
|
-
: `**
|
|
809
|
+
? `**Posts considered:** ${selectedCount.toLocaleString("en-US")} selected posts with ${formatApproxInteger(totalVisibleEngagement)} public reactions/comments<br>\n**Recommended first set:** ${recommendedCount.toLocaleString("en-US")} post${recommendedCount === 1 ? "" : "s"} with ${formatApproxInteger(recommendedVisibleEngagement)} public reactions/comments and up to ${formatApproxInteger(scrapePlan.estimatedEngagers)} people to check<br>`
|
|
810
|
+
: `**Public activity in the selected posts:** ${formatApproxInteger(totalVisibleEngagement)} reactions/comments<br>\n**People we can check from this set:** up to ${formatApproxInteger(scrapePlan.estimatedEngagers)}<br>`;
|
|
811
811
|
const message = `## Source Recommendation
|
|
812
812
|
|
|
813
813
|
Start with LinkedIn posts.
|
|
@@ -821,7 +821,7 @@ I found ${recommendedCount.toLocaleString("en-US")} recommended LinkedIn post${r
|
|
|
821
821
|
|
|
822
822
|
### Recommended posts
|
|
823
823
|
|
|
824
|
-
| Post | Why this post |
|
|
824
|
+
| Post | Why this post | Public activity | People we can check |
|
|
825
825
|
|---|---|---:|---:|
|
|
826
826
|
${tableRows || "| Recommended posts | Campaign-matched public activity | - | - |"}
|
|
827
827
|
|
|
@@ -2583,7 +2583,7 @@ export async function importLeads(input) {
|
|
|
2583
2583
|
maxPostsToScrape: normalizePositiveInteger(maxPostsToScrape) ?? null,
|
|
2584
2584
|
limitedSelectedPosts: importSelection.limited,
|
|
2585
2585
|
targetLeadCount: cappedTargetLeadCount ?? null,
|
|
2586
|
-
message: `Started scraping ${postsToScrape.length} posts (up to ~${result.estimatedEngagers} people to check
|
|
2586
|
+
message: `Started scraping ${postsToScrape.length} posts (up to ~${result.estimatedEngagers} people to check). Leads will appear as scraping completes.${importSelection.limited
|
|
2587
2587
|
? ` Limited from ${uniqueSelectedPosts.length} selected posts by the approved source-capacity scrape plan.`
|
|
2588
2588
|
: ""} The watched campaign has been moved to confirm-lead-list with import progress copy. Keep calling wait_for_lead_list_ready until it reports ready, failed, or cancelled before confirm_lead_list; only confirm a partial list with allowPartialSourceList after the user explicitly asks to keep going early. Do not call update_campaign to fix that step.`,
|
|
2589
2589
|
};
|
package/dist/tools/rows.d.ts
CHANGED
|
@@ -15,6 +15,8 @@ export interface LightweightRow {
|
|
|
15
15
|
enrichStatus?: string | null;
|
|
16
16
|
icpCellId?: string | null;
|
|
17
17
|
icpStatus?: string | null;
|
|
18
|
+
passesRubricCellId?: string | null;
|
|
19
|
+
passesRubricStatus?: string | null;
|
|
18
20
|
icpPassed?: boolean | null;
|
|
19
21
|
carryData?: Record<string, string>;
|
|
20
22
|
}
|
package/dist/tools/rubrics.js
CHANGED
|
@@ -12,7 +12,7 @@ function sleep(ms) {
|
|
|
12
12
|
function countPassingGeneratedMessages(rowSnapshot) {
|
|
13
13
|
if (!rowSnapshot?.rows?.length)
|
|
14
14
|
return 0;
|
|
15
|
-
return rowSnapshot.rows.filter((row) => row.icpPassed
|
|
15
|
+
return rowSnapshot.rows.filter((row) => row.icpPassed !== false && Boolean(row.message?.trim())).length;
|
|
16
16
|
}
|
|
17
17
|
function normalizeRubricItemDefaults(item) {
|
|
18
18
|
return {
|