@signaliz/cli 1.0.41 → 1.0.42
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 -0
- package/dist/bin.js +10 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -30,6 +30,9 @@ signaliz signal-to-copy \
|
|
|
30
30
|
--title "VP Sales" \
|
|
31
31
|
--campaign-offer "pipeline intelligence"
|
|
32
32
|
|
|
33
|
+
# Resume a queued copy request with the returned ID only
|
|
34
|
+
signaliz signal-to-copy --signal-run-id copy_... --json
|
|
35
|
+
|
|
33
36
|
# Force fresh signals or opt into slower deep research only when needed
|
|
34
37
|
signaliz signal-to-copy --company-domain example.com --person-name "Jane Doe" \
|
|
35
38
|
--title "VP Sales" --campaign-offer "pipeline intelligence" --skip-cache --deep-search
|
package/dist/bin.js
CHANGED
|
@@ -19,6 +19,7 @@ Four product commands:
|
|
|
19
19
|
signaliz signal-to-copy --company-domain example.com --person-name "Jane Doe" \\
|
|
20
20
|
--title "VP Sales" --campaign-offer "pipeline intelligence" [--signal-run-id run_...] \\
|
|
21
21
|
[--skip-cache] [--deep-search] [--max-wait-ms 1200000]
|
|
22
|
+
signaliz signal-to-copy --signal-run-id copy_... Resume with the returned ID only
|
|
22
23
|
|
|
23
24
|
Access and connection:
|
|
24
25
|
signaliz auth login
|
|
@@ -403,8 +404,9 @@ async function signalToCopy() {
|
|
|
403
404
|
const personName = flag("person-name");
|
|
404
405
|
const title = flag("title");
|
|
405
406
|
const campaignOffer = flag("campaign-offer") || flag("offer");
|
|
406
|
-
|
|
407
|
-
|
|
407
|
+
const signalRunId = flag("signal-run-id");
|
|
408
|
+
if (!signalRunId && (!companyDomain || !personName || !title || !campaignOffer)) {
|
|
409
|
+
fail('Usage: signaliz signal-to-copy --company-domain example.com --person-name "Jane Doe" --title "VP Sales" --campaign-offer "pipeline intelligence" OR signaliz signal-to-copy --signal-run-id copy_...');
|
|
408
410
|
}
|
|
409
411
|
const result = await createClient().signalToCopy({
|
|
410
412
|
companyDomain,
|
|
@@ -412,13 +414,18 @@ async function signalToCopy() {
|
|
|
412
414
|
title,
|
|
413
415
|
campaignOffer,
|
|
414
416
|
researchPrompt: flag("research-prompt") || flag("prompt"),
|
|
415
|
-
signalRunId
|
|
417
|
+
signalRunId,
|
|
416
418
|
skipCache: hasFlag("skip-cache"),
|
|
417
419
|
enableDeepSearch: hasFlag("deep-search"),
|
|
418
420
|
maxWaitMs: numberFlag("max-wait-ms"),
|
|
419
421
|
pollIntervalMs: numberFlag("poll-interval-ms")
|
|
420
422
|
});
|
|
421
423
|
output(result, () => {
|
|
424
|
+
if (result.variations.length === 0) {
|
|
425
|
+
process.stdout.write(`${String(result.raw.message || "Signal research completed without supported evidence.")}
|
|
426
|
+
`);
|
|
427
|
+
return;
|
|
428
|
+
}
|
|
422
429
|
process.stdout.write(`Strongest signal: ${result.strongestSignal}
|
|
423
430
|
Confidence: ${result.confidence}
|
|
424
431
|
Evidence: ${result.evidenceUrl}
|