@signaliz/cli 1.0.24 → 1.0.26
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 +2 -0
- package/dist/bin.js +15 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,6 +16,8 @@ signaliz find-email --company-domain example.com --full-name "Jane Doe"
|
|
|
16
16
|
# Force a fresh-provider quality check instead of reusing cached email or verification data
|
|
17
17
|
signaliz find-email --company-domain example.com --full-name "Jane Doe" --skip-cache
|
|
18
18
|
signaliz verify-email jane@example.com
|
|
19
|
+
# Force a fresh-provider verification instead of reusing cached proof
|
|
20
|
+
signaliz verify-email jane@example.com --skip-cache
|
|
19
21
|
signaliz company-signals --domain example.com --research-prompt "expansion priorities"
|
|
20
22
|
# Resume a queued run in a later agent/process without duplicate spend
|
|
21
23
|
signaliz company-signals --signal-run-id run_...
|
package/dist/bin.js
CHANGED
|
@@ -17,7 +17,8 @@ Four product commands:
|
|
|
17
17
|
signaliz company-signals --domain example.com [--research-prompt "..."] [--max-wait-ms 1200000]
|
|
18
18
|
signaliz company-signals --signal-run-id run_... Resume without duplicate spend
|
|
19
19
|
signaliz signal-to-copy --company-domain example.com --person-name "Jane Doe" \\
|
|
20
|
-
--title "VP Sales" --campaign-offer "pipeline intelligence" [--
|
|
20
|
+
--title "VP Sales" --campaign-offer "pipeline intelligence" [--signal-run-id run_...] \\
|
|
21
|
+
[--skip-cache] [--deep-search] [--max-wait-ms 1200000]
|
|
21
22
|
|
|
22
23
|
Access and connection:
|
|
23
24
|
signaliz auth login
|
|
@@ -37,7 +38,12 @@ Common flags:
|
|
|
37
38
|
function loadConfig() {
|
|
38
39
|
if (!(0, import_node_fs.existsSync)(CONFIG_FILE)) return {};
|
|
39
40
|
try {
|
|
40
|
-
|
|
41
|
+
const stored = JSON.parse((0, import_node_fs.readFileSync)(CONFIG_FILE, "utf8"));
|
|
42
|
+
return {
|
|
43
|
+
apiKey: stored.apiKey || stored.api_key,
|
|
44
|
+
workspaceId: stored.workspaceId || stored.workspace_id,
|
|
45
|
+
baseUrl: stored.baseUrl || stored.base_url
|
|
46
|
+
};
|
|
41
47
|
} catch {
|
|
42
48
|
return {};
|
|
43
49
|
}
|
|
@@ -205,7 +211,6 @@ async function findEmail() {
|
|
|
205
211
|
const result2 = await createClient().findEmails(rows.map((value) => {
|
|
206
212
|
const row = record(value);
|
|
207
213
|
return {
|
|
208
|
-
signalRunId: row.signalRunId || row.signal_run_id,
|
|
209
214
|
companyDomain: row.companyDomain || row.company_domain || row.domain,
|
|
210
215
|
fullName: row.fullName || row.full_name || row.name,
|
|
211
216
|
firstName: row.firstName || row.first_name,
|
|
@@ -248,13 +253,16 @@ async function verifyEmail(args) {
|
|
|
248
253
|
const rows = readBatchInput();
|
|
249
254
|
if (rows) {
|
|
250
255
|
const emails = rows.map((value) => typeof value === "string" ? value : String(record(value).email || ""));
|
|
251
|
-
const result2 = await createClient().verifyEmails(emails,
|
|
256
|
+
const result2 = await createClient().verifyEmails(emails, {
|
|
257
|
+
...batchOptions(),
|
|
258
|
+
skipCache: hasFlag("skip-cache")
|
|
259
|
+
});
|
|
252
260
|
batchOutput(result2);
|
|
253
261
|
return;
|
|
254
262
|
}
|
|
255
263
|
const email = args.find((value) => !value.startsWith("--")) || flag("email");
|
|
256
264
|
if (!email) fail("Usage: signaliz verify-email jane@example.com");
|
|
257
|
-
const result = await createClient().verifyEmail(email);
|
|
265
|
+
const result = await createClient().verifyEmail(email, { skipCache: hasFlag("skip-cache") });
|
|
258
266
|
output(result, () => {
|
|
259
267
|
process.stdout.write(`${result.email}: ${result.isDeliverable ? "deliverable" : "not deliverable"}
|
|
260
268
|
`);
|
|
@@ -270,6 +278,7 @@ async function companySignals() {
|
|
|
270
278
|
const row = record(value);
|
|
271
279
|
const online = row.online ?? !hasFlag("offline");
|
|
272
280
|
return {
|
|
281
|
+
signalRunId: row.signalRunId || row.signal_run_id,
|
|
273
282
|
companyDomain: row.companyDomain || row.company_domain || row.domain,
|
|
274
283
|
companyName: row.companyName || row.company_name || row.name,
|
|
275
284
|
researchPrompt: row.researchPrompt || row.research_prompt || flag("research-prompt") || flag("prompt"),
|
|
@@ -355,6 +364,7 @@ async function signalToCopy() {
|
|
|
355
364
|
title,
|
|
356
365
|
campaignOffer,
|
|
357
366
|
researchPrompt: flag("research-prompt") || flag("prompt"),
|
|
367
|
+
signalRunId: flag("signal-run-id"),
|
|
358
368
|
skipCache: hasFlag("skip-cache"),
|
|
359
369
|
enableDeepSearch: hasFlag("deep-search"),
|
|
360
370
|
maxWaitMs: numberFlag("max-wait-ms"),
|