@sellable/mcp 0.1.202 → 0.1.203
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 +7 -3
- package/package.json +1 -1
package/dist/tools/leads.js
CHANGED
|
@@ -1364,7 +1364,7 @@ export const leadToolDefinitions = [
|
|
|
1364
1364
|
},
|
|
1365
1365
|
limit: {
|
|
1366
1366
|
type: "number",
|
|
1367
|
-
description: "Max posts (default 25, max 50). Used for profile search.",
|
|
1367
|
+
description: "Max posts (default 25, max 50). Used for profile or company search.",
|
|
1368
1368
|
},
|
|
1369
1369
|
headlineICPCriteria: {
|
|
1370
1370
|
type: "array",
|
|
@@ -3176,7 +3176,9 @@ export async function selectPromisingPosts(input) {
|
|
|
3176
3176
|
const { campaignOfferId, selections, headlineICPCriteria, selectionMode, mode, scrapePlanMode, targetEngagerCount, maxPostsToScrape, } = input;
|
|
3177
3177
|
const effectiveMode = selectionMode ?? mode ?? "replace";
|
|
3178
3178
|
const effectiveScrapePlanMode = scrapePlanMode ??
|
|
3179
|
-
(targetEngagerCount || maxPostsToScrape
|
|
3179
|
+
(targetEngagerCount || maxPostsToScrape
|
|
3180
|
+
? "capacity-target"
|
|
3181
|
+
: "all-selected");
|
|
3180
3182
|
if (selections.length > MAX_SIGNAL_DISCOVERY_POSTS) {
|
|
3181
3183
|
return {
|
|
3182
3184
|
success: false,
|
|
@@ -3248,7 +3250,9 @@ export async function selectPromisingPosts(input) {
|
|
|
3248
3250
|
}
|
|
3249
3251
|
const recommendation = buildSignalDiscoverySourceRecommendation({
|
|
3250
3252
|
selectedPosts: Array.from(selectedByUrl.values()),
|
|
3251
|
-
targetEngagerCount: effectiveScrapePlanMode === "capacity-target"
|
|
3253
|
+
targetEngagerCount: effectiveScrapePlanMode === "capacity-target"
|
|
3254
|
+
? targetEngagerCount
|
|
3255
|
+
: null,
|
|
3252
3256
|
maxPostsToScrape: effectiveScrapePlanMode === "capacity-target" ? maxPostsToScrape : null,
|
|
3253
3257
|
});
|
|
3254
3258
|
sourceRecommendation = recommendation.message;
|