salesprompter-cli 0.1.45 → 0.1.46
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 +3 -1
- package/dist/cli.js +7 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -88,6 +88,8 @@ salesprompter affiliate:run \
|
|
|
88
88
|
salesprompter affiliate:status "$AFFILIATE_RUN_ID"
|
|
89
89
|
salesprompter affiliate:regenerate-sequence "$AFFILIATE_RUN_ID"
|
|
90
90
|
salesprompter affiliate:enrich "$AFFILIATE_RUN_ID"
|
|
91
|
+
salesprompter affiliate:enrich "$AFFILIATE_RUN_ID" \
|
|
92
|
+
--source-audience-run-id "$NEW_AUDIENCE_RUN_ID"
|
|
91
93
|
salesprompter affiliate:activate "$AFFILIATE_RUN_ID"
|
|
92
94
|
|
|
93
95
|
# See included capability packs
|
|
@@ -108,7 +110,7 @@ salesprompter --help
|
|
|
108
110
|
- Respect provider terms and customer data boundaries.
|
|
109
111
|
- `affiliate:run` uses direct email enrichment first, then Phantombuster Email Finder for unresolved people before creating a draft Instantly campaign.
|
|
110
112
|
- Affiliate preparation automatically creates three variants per step with spintax; `affiliate:regenerate-sequence` rebuilds and syncs them through the Salesprompter app.
|
|
111
|
-
- `affiliate:enrich` reruns email recovery and adds only newly found addresses to an existing campaign.
|
|
113
|
+
- `affiliate:enrich` reruns email recovery and adds only newly found addresses to an existing campaign. Pass `--source-audience-run-id` to merge a newer compatible audience into that campaign without creating a duplicate campaign.
|
|
112
114
|
- A draft campaign does not send until `affiliate:activate` is run.
|
|
113
115
|
- The CLI is designed for interactive users and agent-assisted workflows.
|
|
114
116
|
- A repo-local Chrome extension compatibility copy is available in `chrome-extension/` for local LinkedIn session sync and popup copy/debug flows.
|
package/dist/cli.js
CHANGED
|
@@ -6586,7 +6586,7 @@ async function regenerateAffiliateOutreachSequenceViaApp(session, audienceRunId)
|
|
|
6586
6586
|
}), AffiliateOutreachResponseSchema);
|
|
6587
6587
|
return value.outreach;
|
|
6588
6588
|
}
|
|
6589
|
-
async function enrichAffiliateOutreachViaApp(session, audienceRunId) {
|
|
6589
|
+
async function enrichAffiliateOutreachViaApp(session, audienceRunId, sourceAudienceRunId) {
|
|
6590
6590
|
const before = await getAffiliateOutreachViaApp(session, audienceRunId);
|
|
6591
6591
|
const previousAttemptedAt = typeof before.stats.latestTopUp === "object" && before.stats.latestTopUp !== null
|
|
6592
6592
|
? String(before.stats.latestTopUp.attemptedAt ?? "")
|
|
@@ -6597,7 +6597,7 @@ async function enrichAffiliateOutreachViaApp(session, audienceRunId) {
|
|
|
6597
6597
|
"Content-Type": "application/json",
|
|
6598
6598
|
Authorization: `Bearer ${currentSession.accessToken}`
|
|
6599
6599
|
},
|
|
6600
|
-
body: JSON.stringify({})
|
|
6600
|
+
body: JSON.stringify({ sourceAudienceRunId })
|
|
6601
6601
|
}), AffiliateOutreachEnrichStartResponseSchema);
|
|
6602
6602
|
const deadline = Date.now() + 10 * 60 * 1000;
|
|
6603
6603
|
const configuredPollMs = Number(process.env.SALESPROMPTER_AFFILIATE_ENRICH_POLL_MS);
|
|
@@ -13357,9 +13357,12 @@ program
|
|
|
13357
13357
|
program
|
|
13358
13358
|
.command("affiliate:enrich <run-id>")
|
|
13359
13359
|
.description("Find additional verified emails and add only new leads to the campaign.")
|
|
13360
|
-
.
|
|
13360
|
+
.option("--source-audience-run-id <run-id>", "Use a newer compatible audience to top up this campaign")
|
|
13361
|
+
.action(async (runId, options) => {
|
|
13361
13362
|
const session = await requireAuthSession();
|
|
13362
|
-
const outreach = await enrichAffiliateOutreachViaApp(session, z.string().uuid().parse(runId)
|
|
13363
|
+
const outreach = await enrichAffiliateOutreachViaApp(session, z.string().uuid().parse(runId), options.sourceAudienceRunId
|
|
13364
|
+
? z.string().uuid().parse(options.sourceAudienceRunId)
|
|
13365
|
+
: undefined);
|
|
13363
13366
|
printOutput({
|
|
13364
13367
|
status: "ok",
|
|
13365
13368
|
outreach,
|
package/package.json
CHANGED