@sellable/mcp 0.1.198 → 0.1.199
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
|
@@ -1087,7 +1087,7 @@ export const leadToolDefinitions = [
|
|
|
1087
1087
|
},
|
|
1088
1088
|
currentStep: {
|
|
1089
1089
|
type: ["string", "null"],
|
|
1090
|
-
description:
|
|
1090
|
+
description: 'Headless workflow step ID. For Signal Discovery imports, omit this or pass "confirm-lead-list"; provider/search steps are stale after the scrape starts.',
|
|
1091
1091
|
},
|
|
1092
1092
|
confirmed: {
|
|
1093
1093
|
type: "boolean",
|
|
@@ -2410,9 +2410,13 @@ export async function importLeads(input) {
|
|
|
2410
2410
|
const effectiveCurrentStep = shouldDefaultStep
|
|
2411
2411
|
? "confirm-lead-list"
|
|
2412
2412
|
: currentStep;
|
|
2413
|
-
const shouldSetCurrentStep = typeof effectiveCurrentStep === "string" && effectiveCurrentStep.length > 0;
|
|
2414
2413
|
const normalizedMode = mode === "add" || mode === "replace" ? mode : undefined;
|
|
2415
2414
|
assertPhase126ImportProvider(provider, campaignOfferId);
|
|
2415
|
+
const postImportCurrentStep = provider === "signal-discovery" && effectiveCurrentStep !== null
|
|
2416
|
+
? "confirm-lead-list"
|
|
2417
|
+
: effectiveCurrentStep;
|
|
2418
|
+
const shouldSetCurrentStep = typeof postImportCurrentStep === "string" &&
|
|
2419
|
+
postImportCurrentStep.length > 0;
|
|
2416
2420
|
if (provider === "signal-discovery" &&
|
|
2417
2421
|
!sourceLeadListId &&
|
|
2418
2422
|
campaignSelectedLeadListId) {
|
|
@@ -2575,7 +2579,7 @@ export async function importLeads(input) {
|
|
|
2575
2579
|
// This enables realtime updates in LeadListCanvas
|
|
2576
2580
|
await api.put(`/api/v2/campaign-offers/${campaignOfferId}`, {
|
|
2577
2581
|
selectedLeadListId: result.tableId,
|
|
2578
|
-
...(shouldSetCurrentStep ? { currentStep:
|
|
2582
|
+
...(shouldSetCurrentStep ? { currentStep: postImportCurrentStep } : {}),
|
|
2579
2583
|
...(shouldSetCurrentStep
|
|
2580
2584
|
? {
|
|
2581
2585
|
watchNarration: buildSourceImportWatchNarration({
|