@sellable/mcp 0.1.493 → 0.1.495
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 +4 -4
- package/package.json +1 -1
package/dist/tools/leads.js
CHANGED
|
@@ -3641,11 +3641,11 @@ export async function searchSignals(input) {
|
|
|
3641
3641
|
const effectiveHeadlineICPCriteria = headlineICPCriteria && headlineICPCriteria.length > 0
|
|
3642
3642
|
? headlineICPCriteria
|
|
3643
3643
|
: rubricGuidelines;
|
|
3644
|
-
if (campaignOfferId) {
|
|
3644
|
+
if (campaignOfferId && searchCurrentStep) {
|
|
3645
3645
|
await api.put(`/api/v2/campaign-offers/${campaignOfferId}`, {
|
|
3646
3646
|
leadSourceType: "new",
|
|
3647
3647
|
leadSourceProvider: "signal-discovery",
|
|
3648
|
-
|
|
3648
|
+
currentStep: searchCurrentStep,
|
|
3649
3649
|
...(currentStepTransition ? { currentStepTransition } : {}),
|
|
3650
3650
|
watchNarration: buildSignalDiscoverySearchWatchNarration(),
|
|
3651
3651
|
});
|
|
@@ -3661,9 +3661,9 @@ export async function searchSignals(input) {
|
|
|
3661
3661
|
}
|
|
3662
3662
|
const response = await api.post(`/api/v1/signal-discovery/search-signals`, searchRequest);
|
|
3663
3663
|
const summary = summarizeSignalSearchResponse(response);
|
|
3664
|
-
if (campaignOfferId) {
|
|
3664
|
+
if (campaignOfferId && searchCurrentStep) {
|
|
3665
3665
|
await api.put(`/api/v2/campaign-offers/${campaignOfferId}`, {
|
|
3666
|
-
|
|
3666
|
+
currentStep: searchCurrentStep,
|
|
3667
3667
|
...(currentStepTransition ? { currentStepTransition } : {}),
|
|
3668
3668
|
watchNarration: buildSignalDiscoveryResultsWatchNarration(summary.postsReturned),
|
|
3669
3669
|
});
|