@signaliz/cli 1.0.76 → 1.0.77
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/bin.js +24 -4
- package/package.json +2 -2
package/dist/bin.js
CHANGED
|
@@ -652,7 +652,10 @@ function customerSignalResult(value) {
|
|
|
652
652
|
...Object.keys(billingMetadata).length > 0 ? { billingMetadata } : {},
|
|
653
653
|
creditsUsed: result.creditsUsed ?? raw.credits_used,
|
|
654
654
|
aiProviderCalled: result.aiProviderCalled ?? raw.ai_provider_called,
|
|
655
|
-
byoAiUsed: result.byoAiUsed ?? raw.byo_ai_used
|
|
655
|
+
byoAiUsed: result.byoAiUsed ?? raw.byo_ai_used,
|
|
656
|
+
cacheHit: result.cacheHit ?? raw.cache_hit,
|
|
657
|
+
liveProviderCalled: result.liveProviderCalled ?? raw.live_provider_called,
|
|
658
|
+
resultReturnedFrom: result.resultReturnedFrom ?? raw.result_returned_from
|
|
656
659
|
};
|
|
657
660
|
}
|
|
658
661
|
function customerCompanySignalResult(value) {
|
|
@@ -680,7 +683,10 @@ function customerCompanySignalResult(value) {
|
|
|
680
683
|
company: normalizedCompany,
|
|
681
684
|
signals: signals2,
|
|
682
685
|
signalCount: signals2.length,
|
|
683
|
-
creditsUsed: result.creditsUsed ?? raw.credits_used
|
|
686
|
+
creditsUsed: result.creditsUsed ?? raw.credits_used,
|
|
687
|
+
cacheHit: result.cacheHit ?? raw.cache_hit,
|
|
688
|
+
liveProviderCalled: result.liveProviderCalled ?? raw.live_provider_called,
|
|
689
|
+
resultReturnedFrom: result.resultReturnedFrom ?? raw.result_returned_from
|
|
684
690
|
};
|
|
685
691
|
}
|
|
686
692
|
function customerSignalBatch(value) {
|
|
@@ -910,6 +916,9 @@ function normalizeSignalsEverythingResult(request, value) {
|
|
|
910
916
|
creditsCharged: numberValue(value.credits_charged) ?? 0,
|
|
911
917
|
...value.billing_status === "included" ? { billingStatus: "included" } : {},
|
|
912
918
|
...typeof value.idempotency_replayed === "boolean" ? { idempotencyReplayed: value.idempotency_replayed } : {},
|
|
919
|
+
...typeof value.cache_hit === "boolean" ? { cacheHit: value.cache_hit } : {},
|
|
920
|
+
...typeof value.live_provider_called === "boolean" ? { liveProviderCalled: value.live_provider_called } : {},
|
|
921
|
+
...value.result_returned_from === "stored_signal_search_run" ? { resultReturnedFrom: value.result_returned_from } : {},
|
|
913
922
|
...publicFailure ? publicFailure : {},
|
|
914
923
|
...typeof value.retry_eligible === "boolean" ? { retryEligible: value.retry_eligible } : {}
|
|
915
924
|
};
|
|
@@ -982,11 +991,22 @@ function publicCliValue(value) {
|
|
|
982
991
|
if (Array.isArray(value)) return value.map(publicCliValue);
|
|
983
992
|
if (!value || typeof value !== "object") return value;
|
|
984
993
|
const recordValue = value;
|
|
985
|
-
const
|
|
994
|
+
const isSignalRetrievalResult = [
|
|
995
|
+
"stored_monitor_signals",
|
|
996
|
+
"stored_signal_search_run",
|
|
997
|
+
"stored_signal_copy",
|
|
998
|
+
"available_data",
|
|
999
|
+
"fresh_signal_enrichment",
|
|
1000
|
+
"negative_cache"
|
|
1001
|
+
].includes(String(recordValue.resultReturnedFrom || ""));
|
|
986
1002
|
const output2 = {};
|
|
987
1003
|
for (const [key, raw] of Object.entries(recordValue)) {
|
|
988
1004
|
const normalizedKey = key.toLowerCase().replace(/_/g, "");
|
|
989
|
-
const safeStoredReadDiagnostic =
|
|
1005
|
+
const safeStoredReadDiagnostic = isSignalRetrievalResult && (normalizedKey === "resultreturnedfrom" || normalizedKey === "liveprovidercalled" || normalizedKey === "cachehit");
|
|
1006
|
+
if (safeStoredReadDiagnostic) {
|
|
1007
|
+
output2[key] = raw;
|
|
1008
|
+
continue;
|
|
1009
|
+
}
|
|
990
1010
|
if (normalizedKey.includes("cache") || INTERNAL_PRODUCT_OUTPUT_KEYS.has(normalizedKey) && !safeStoredReadDiagnostic) continue;
|
|
991
1011
|
if (typeof raw === "string" && (raw.toLowerCase().includes("cache") || raw === "available_data")) {
|
|
992
1012
|
if (["source", "emailsource", "emailsourcelabel", "verificationsource", "providerstatus"].includes(normalizedKey)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signaliz/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.77",
|
|
4
4
|
"description": "Signaliz CLI for Company Signal Enrichment, Signals First, Signal Awareness, Signal to Copy AI, and Signaliz Flow.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"signaliz": "dist/bin.js"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"node": ">=18"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@signaliz/sdk": "^1.0.
|
|
32
|
+
"@signaliz/sdk": "^1.0.82"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"tsup": "^8.0.0",
|