oculon 0.1.3 → 0.1.5
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 +21 -3
- package/dist/cli/main.js +196 -1
- package/dist/core/http.js +4 -0
- package/dist/core/quota.js +20 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +43 -0
- package/dist/mcp.d.ts +7 -0
- package/dist/mcp.js +97 -3
- package/dist/modules/breach.d.ts +53 -0
- package/dist/modules/breach.js +98 -0
- package/dist/modules/company.d.ts +53 -0
- package/dist/modules/company.js +149 -0
- package/dist/modules/contradictions.js +6 -4
- package/dist/modules/hashcheck.d.ts +29 -0
- package/dist/modules/hashcheck.js +82 -0
- package/dist/modules/ipintel.d.ts +52 -0
- package/dist/modules/ipintel.js +149 -0
- package/dist/modules/lynx.js +15 -9
- package/dist/modules/owl.js +4 -1
- package/dist/modules/phone.d.ts +32 -0
- package/dist/modules/phone.js +148 -0
- package/dist/modules/ransomware.d.ts +56 -0
- package/dist/modules/ransomware.js +85 -0
- package/dist/modules/satellites.d.ts +45 -0
- package/dist/modules/satellites.js +113 -0
- package/dist/sources/threatintel.d.ts +151 -0
- package/dist/sources/threatintel.js +256 -0
- package/dist/telegram.js +55 -5
- package/dist/web/ask.html +1 -1
- package/dist/web/assets/og-app.png +0 -0
- package/dist/web/assets/og-docs.png +0 -0
- package/dist/web/assets/og-mcp.png +0 -0
- package/dist/web/assets/og.png +0 -0
- package/dist/web/docs.html +1 -1
- package/dist/web/index.html +109 -11
- package/dist/web/insights.js +2 -0
- package/dist/web/landing.html +1 -1
- package/dist/web/legal.html +1 -1
- package/dist/web/mcp.html +1 -1
- package/dist/web/openapi.js +7 -0
- package/dist/web/public.js +9 -1
- package/dist/web/server.js +63 -4
- package/package.json +2 -2
package/dist/modules/lynx.js
CHANGED
|
@@ -39,7 +39,16 @@ async function pickSame(groups, fetchImpl) {
|
|
|
39
39
|
if (!availableProviders().length)
|
|
40
40
|
return null;
|
|
41
41
|
const out = groups.map(() => -1);
|
|
42
|
-
|
|
42
|
+
// Batches run three at a time: one after another they took over a minute for 40 markets.
|
|
43
|
+
const starts = [];
|
|
44
|
+
for (let s = 0; s < groups.length; s += 8)
|
|
45
|
+
starts.push(s);
|
|
46
|
+
let next = 0;
|
|
47
|
+
const worker = async () => { while (next < starts.length)
|
|
48
|
+
await runBatch(starts[next++]); };
|
|
49
|
+
await Promise.all([worker(), worker(), worker()]);
|
|
50
|
+
return out;
|
|
51
|
+
async function runBatch(start) {
|
|
43
52
|
const batch = groups.slice(start, start + 8);
|
|
44
53
|
try {
|
|
45
54
|
const r = await chat([
|
|
@@ -61,7 +70,6 @@ async function pickSame(groups, fetchImpl) {
|
|
|
61
70
|
// leave this batch unmatched
|
|
62
71
|
}
|
|
63
72
|
}
|
|
64
|
-
return out;
|
|
65
73
|
}
|
|
66
74
|
export async function lynx(ctx, opts = {}) {
|
|
67
75
|
const nowMs = ctx.now().getTime();
|
|
@@ -71,15 +79,13 @@ export async function lynx(ctx, opts = {}) {
|
|
|
71
79
|
const pool = (pm.data ?? []).filter((m) => !isSportsLine(m) && !isResolving(m, nowMs) && m.volume24h >= 20_000 && m.prices.length === 2).slice(0, opts.limit ?? 40);
|
|
72
80
|
// Per market: a loose shortlist from Kalshi, plus Manifold search results for the 12 highest-volume markets.
|
|
73
81
|
const groups = [];
|
|
82
|
+
const manifold = await Promise.all(pool.slice(0, 12).map((m) => { const term = searchTerm(m.question); return term ? manifoldSearch(ctx, term, 6) : null; }));
|
|
74
83
|
for (const [i, m] of pool.entries()) {
|
|
75
84
|
const options = ks.data ? shortlist(m.question, ks.data, 8) : [];
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
provenance.push(r.prov);
|
|
81
|
-
options.push(...(r.data ?? []));
|
|
82
|
-
}
|
|
85
|
+
const r = manifold[i];
|
|
86
|
+
if (r) {
|
|
87
|
+
provenance.push(r.prov);
|
|
88
|
+
options.push(...(r.data ?? []));
|
|
83
89
|
}
|
|
84
90
|
if (options.length)
|
|
85
91
|
groups.push({ pm: m, options });
|
package/dist/modules/owl.js
CHANGED
|
@@ -162,6 +162,9 @@ export async function owl(ctx, opts = {}) {
|
|
|
162
162
|
// Hacker News: front-page stories with unusual traction for their age.
|
|
163
163
|
if (hn.data) {
|
|
164
164
|
for (const s of hn.data) {
|
|
165
|
+
// Algolia sometimes returns hits without points or comment counts; those carry no traction signal.
|
|
166
|
+
if (!Number.isFinite(s.points) || !Number.isFinite(s.created_at_i))
|
|
167
|
+
continue;
|
|
165
168
|
const ageH = Math.max(1, (nowMs / 1000 - s.created_at_i) / 3600);
|
|
166
169
|
const velocity = s.points / ageH;
|
|
167
170
|
if (s.points < 150 && velocity < 40)
|
|
@@ -171,7 +174,7 @@ export async function owl(ctx, opts = {}) {
|
|
|
171
174
|
title: s.title,
|
|
172
175
|
url: hnItemUrl(s.objectID),
|
|
173
176
|
strength: clamp(Math.round(25 + 10 * Math.log2(Math.max(1, velocity))), 0, 85),
|
|
174
|
-
detail: `${s.points} points, ${s.num_comments} comments in ${ageH.toFixed(0)}h`,
|
|
177
|
+
detail: `${s.points} points, ${Number.isFinite(s.num_comments) ? s.num_comments : 0} comments in ${ageH.toFixed(0)}h`,
|
|
175
178
|
value: velocity,
|
|
176
179
|
}));
|
|
177
180
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Phone number check, for the sender of a suspicious SMS or a missed call from abroad.
|
|
3
|
+
* Offline: country from the calling code, number length, premium-rate and "one ring" callback-scam codes.
|
|
4
|
+
* Online (NUMVERIFY_API_KEY, free 100 lookups a month): validity, carrier, line type (mobile, landline, VoIP)
|
|
5
|
+
* and location. Owner names are never looked up.
|
|
6
|
+
*/
|
|
7
|
+
import type { Ctx } from '../core/context.js';
|
|
8
|
+
import type { ModuleResult } from '../core/types.js';
|
|
9
|
+
export interface PhoneCheck {
|
|
10
|
+
e164: string;
|
|
11
|
+
countryCode: string;
|
|
12
|
+
country: string | null;
|
|
13
|
+
iso2: string | null;
|
|
14
|
+
plausible: boolean;
|
|
15
|
+
lineType: string | null;
|
|
16
|
+
carrier: string | null;
|
|
17
|
+
location: string | null;
|
|
18
|
+
valid: boolean | null;
|
|
19
|
+
risk: 'high' | 'medium' | 'low';
|
|
20
|
+
warnings: string[];
|
|
21
|
+
advice: string[];
|
|
22
|
+
}
|
|
23
|
+
/** Normalise to E.164 digits. A national number needs a default country (ISO code). */
|
|
24
|
+
export declare function toE164(input: string, defaultCountry?: string): {
|
|
25
|
+
digits: string;
|
|
26
|
+
code: string;
|
|
27
|
+
} | null;
|
|
28
|
+
/** What can be told without any lookup. */
|
|
29
|
+
export declare function offlinePhone(digits: string, code: string): Pick<PhoneCheck, 'country' | 'iso2' | 'plausible' | 'lineType' | 'warnings'>;
|
|
30
|
+
export declare function phoneCheck(ctx: Ctx, input: string, opts?: {
|
|
31
|
+
country?: string;
|
|
32
|
+
}): Promise<ModuleResult<PhoneCheck>>;
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { key } from '../core/keys.js';
|
|
2
|
+
/** ITU calling codes → [ISO 3166 code, country]. +1 and +7 are shared plans and named as such. */
|
|
3
|
+
const CODES = {
|
|
4
|
+
'1': ['', 'United States, Canada or the Caribbean (North American plan)'], '7': ['', 'Russia or Kazakhstan'],
|
|
5
|
+
'20': ['EG', 'Egypt'], '27': ['ZA', 'South Africa'], '30': ['GR', 'Greece'], '31': ['NL', 'Netherlands'], '32': ['BE', 'Belgium'], '33': ['FR', 'France'], '34': ['ES', 'Spain'], '36': ['HU', 'Hungary'], '39': ['IT', 'Italy'],
|
|
6
|
+
'40': ['RO', 'Romania'], '41': ['CH', 'Switzerland'], '43': ['AT', 'Austria'], '44': ['GB', 'United Kingdom'], '45': ['DK', 'Denmark'], '46': ['SE', 'Sweden'], '47': ['NO', 'Norway'], '48': ['PL', 'Poland'], '49': ['DE', 'Germany'],
|
|
7
|
+
'51': ['PE', 'Peru'], '52': ['MX', 'Mexico'], '53': ['CU', 'Cuba'], '54': ['AR', 'Argentina'], '55': ['BR', 'Brazil'], '56': ['CL', 'Chile'], '57': ['CO', 'Colombia'], '58': ['VE', 'Venezuela'],
|
|
8
|
+
'60': ['MY', 'Malaysia'], '61': ['AU', 'Australia'], '62': ['ID', 'Indonesia'], '63': ['PH', 'Philippines'], '64': ['NZ', 'New Zealand'], '65': ['SG', 'Singapore'], '66': ['TH', 'Thailand'],
|
|
9
|
+
'81': ['JP', 'Japan'], '82': ['KR', 'South Korea'], '84': ['VN', 'Vietnam'], '86': ['CN', 'China'], '90': ['TR', 'Turkey'], '91': ['IN', 'India'], '92': ['PK', 'Pakistan'], '93': ['AF', 'Afghanistan'], '94': ['LK', 'Sri Lanka'], '95': ['MM', 'Myanmar'], '98': ['IR', 'Iran'],
|
|
10
|
+
'211': ['SS', 'South Sudan'], '212': ['MA', 'Morocco'], '213': ['DZ', 'Algeria'], '216': ['TN', 'Tunisia'], '218': ['LY', 'Libya'], '220': ['GM', 'Gambia'], '221': ['SN', 'Senegal'], '222': ['MR', 'Mauritania'], '223': ['ML', 'Mali'], '224': ['GN', 'Guinea'], '225': ['CI', "Côte d'Ivoire"], '226': ['BF', 'Burkina Faso'], '227': ['NE', 'Niger'], '228': ['TG', 'Togo'], '229': ['BJ', 'Benin'],
|
|
11
|
+
'230': ['MU', 'Mauritius'], '231': ['LR', 'Liberia'], '232': ['SL', 'Sierra Leone'], '233': ['GH', 'Ghana'], '234': ['NG', 'Nigeria'], '235': ['TD', 'Chad'], '236': ['CF', 'Central African Republic'], '237': ['CM', 'Cameroon'], '238': ['CV', 'Cape Verde'], '239': ['ST', 'São Tomé and Príncipe'],
|
|
12
|
+
'240': ['GQ', 'Equatorial Guinea'], '241': ['GA', 'Gabon'], '242': ['CG', 'Congo'], '243': ['CD', 'DR Congo'], '244': ['AO', 'Angola'], '245': ['GW', 'Guinea-Bissau'], '248': ['SC', 'Seychelles'], '249': ['SD', 'Sudan'], '250': ['RW', 'Rwanda'], '251': ['ET', 'Ethiopia'], '252': ['SO', 'Somalia'], '253': ['DJ', 'Djibouti'], '254': ['KE', 'Kenya'], '255': ['TZ', 'Tanzania'], '256': ['UG', 'Uganda'], '257': ['BI', 'Burundi'], '258': ['MZ', 'Mozambique'],
|
|
13
|
+
'260': ['ZM', 'Zambia'], '261': ['MG', 'Madagascar'], '262': ['RE', 'Réunion or Mayotte'], '263': ['ZW', 'Zimbabwe'], '264': ['NA', 'Namibia'], '265': ['MW', 'Malawi'], '266': ['LS', 'Lesotho'], '267': ['BW', 'Botswana'], '268': ['SZ', 'Eswatini'], '269': ['KM', 'Comoros'],
|
|
14
|
+
'290': ['SH', 'Saint Helena'], '291': ['ER', 'Eritrea'], '297': ['AW', 'Aruba'], '298': ['FO', 'Faroe Islands'], '299': ['GL', 'Greenland'],
|
|
15
|
+
'350': ['GI', 'Gibraltar'], '351': ['PT', 'Portugal'], '352': ['LU', 'Luxembourg'], '353': ['IE', 'Ireland'], '354': ['IS', 'Iceland'], '355': ['AL', 'Albania'], '356': ['MT', 'Malta'], '357': ['CY', 'Cyprus'], '358': ['FI', 'Finland'], '359': ['BG', 'Bulgaria'],
|
|
16
|
+
'370': ['LT', 'Lithuania'], '371': ['LV', 'Latvia'], '372': ['EE', 'Estonia'], '373': ['MD', 'Moldova'], '374': ['AM', 'Armenia'], '375': ['BY', 'Belarus'], '376': ['AD', 'Andorra'], '377': ['MC', 'Monaco'], '378': ['SM', 'San Marino'], '380': ['UA', 'Ukraine'], '381': ['RS', 'Serbia'], '382': ['ME', 'Montenegro'], '383': ['XK', 'Kosovo'], '385': ['HR', 'Croatia'], '386': ['SI', 'Slovenia'], '387': ['BA', 'Bosnia and Herzegovina'], '389': ['MK', 'North Macedonia'],
|
|
17
|
+
'420': ['CZ', 'Czechia'], '421': ['SK', 'Slovakia'], '423': ['LI', 'Liechtenstein'],
|
|
18
|
+
'500': ['FK', 'Falkland Islands'], '501': ['BZ', 'Belize'], '502': ['GT', 'Guatemala'], '503': ['SV', 'El Salvador'], '504': ['HN', 'Honduras'], '505': ['NI', 'Nicaragua'], '506': ['CR', 'Costa Rica'], '507': ['PA', 'Panama'], '509': ['HT', 'Haiti'], '590': ['GP', 'Guadeloupe'], '591': ['BO', 'Bolivia'], '592': ['GY', 'Guyana'], '593': ['EC', 'Ecuador'], '595': ['PY', 'Paraguay'], '597': ['SR', 'Suriname'], '598': ['UY', 'Uruguay'], '599': ['CW', 'Curaçao or Caribbean Netherlands'],
|
|
19
|
+
'670': ['TL', 'Timor-Leste'], '673': ['BN', 'Brunei'], '674': ['NR', 'Nauru'], '675': ['PG', 'Papua New Guinea'], '676': ['TO', 'Tonga'], '677': ['SB', 'Solomon Islands'], '678': ['VU', 'Vanuatu'], '679': ['FJ', 'Fiji'], '680': ['PW', 'Palau'], '682': ['CK', 'Cook Islands'], '685': ['WS', 'Samoa'], '686': ['KI', 'Kiribati'], '687': ['NC', 'New Caledonia'], '688': ['TV', 'Tuvalu'], '689': ['PF', 'French Polynesia'], '691': ['FM', 'Micronesia'], '692': ['MH', 'Marshall Islands'],
|
|
20
|
+
'850': ['KP', 'North Korea'], '852': ['HK', 'Hong Kong'], '853': ['MO', 'Macau'], '855': ['KH', 'Cambodia'], '856': ['LA', 'Laos'], '880': ['BD', 'Bangladesh'], '886': ['TW', 'Taiwan'],
|
|
21
|
+
'960': ['MV', 'Maldives'], '961': ['LB', 'Lebanon'], '962': ['JO', 'Jordan'], '963': ['SY', 'Syria'], '964': ['IQ', 'Iraq'], '965': ['KW', 'Kuwait'], '966': ['SA', 'Saudi Arabia'], '967': ['YE', 'Yemen'], '968': ['OM', 'Oman'], '970': ['PS', 'Palestine'], '971': ['AE', 'United Arab Emirates'], '972': ['IL', 'Israel'], '973': ['BH', 'Bahrain'], '974': ['QA', 'Qatar'], '975': ['BT', 'Bhutan'], '976': ['MN', 'Mongolia'], '977': ['NP', 'Nepal'],
|
|
22
|
+
'992': ['TJ', 'Tajikistan'], '993': ['TM', 'Turkmenistan'], '994': ['AZ', 'Azerbaijan'], '995': ['GE', 'Georgia'], '996': ['KG', 'Kyrgyzstan'], '998': ['UZ', 'Uzbekistan'],
|
|
23
|
+
'882': ['', 'International networks (satellite or global)'], '883': ['', 'International networks (global)'], '881': ['', 'Satellite phone (global mobile satellite system)'], '870': ['', 'Inmarsat satellite phone'], '979': ['', 'International premium-rate service'], '808': ['', 'International shared-cost service'], '800': ['', 'International freephone'],
|
|
24
|
+
};
|
|
25
|
+
/** North American area codes in other countries that the FCC warns about in "one ring" callback scams. */
|
|
26
|
+
const ONE_RING = { '268': 'Antigua and Barbuda', '284': 'British Virgin Islands', '473': 'Grenada', '649': 'Turks and Caicos', '664': 'Montserrat', '767': 'Dominica', '809': 'Dominican Republic', '829': 'Dominican Republic', '849': 'Dominican Republic', '876': 'Jamaica' };
|
|
27
|
+
/** Other North American area codes outside the US and Canada (calls are charged as international). */
|
|
28
|
+
const NANP_OTHER = { '242': 'Bahamas', '246': 'Barbados', '264': 'Anguilla', '340': 'US Virgin Islands', '345': 'Cayman Islands', '441': 'Bermuda', '658': 'Jamaica', '671': 'Guam', '670': 'Northern Mariana Islands', '684': 'American Samoa', '721': 'Sint Maarten', '758': 'Saint Lucia', '784': 'Saint Vincent and the Grenadines', '787': 'Puerto Rico', '939': 'Puerto Rico', '868': 'Trinidad and Tobago', '869': 'Saint Kitts and Nevis' };
|
|
29
|
+
const ISO_TO_CODE = Object.fromEntries(Object.entries(CODES).filter(([, v]) => v[0]).map(([k, v]) => [v[0], k]));
|
|
30
|
+
Object.assign(ISO_TO_CODE, { US: '1', CA: '1', KZ: '7', RU: '7' });
|
|
31
|
+
/** Normalise to E.164 digits. A national number needs a default country (ISO code). */
|
|
32
|
+
export function toE164(input, defaultCountry) {
|
|
33
|
+
let s = input.trim().replace(/[\s().\-/]/g, '');
|
|
34
|
+
if (s.startsWith('00'))
|
|
35
|
+
s = `+${s.slice(2)}`;
|
|
36
|
+
if (!/^\+?\d{6,16}$/.test(s))
|
|
37
|
+
return null;
|
|
38
|
+
if (!s.startsWith('+')) {
|
|
39
|
+
const cc = defaultCountry ? ISO_TO_CODE[defaultCountry.toUpperCase()] : undefined;
|
|
40
|
+
if (!cc)
|
|
41
|
+
return null;
|
|
42
|
+
s = `+${cc}${s.replace(/^0+/, '')}`;
|
|
43
|
+
}
|
|
44
|
+
const digits = s.slice(1);
|
|
45
|
+
for (const len of [3, 2, 1]) {
|
|
46
|
+
const code = digits.slice(0, len);
|
|
47
|
+
if (CODES[code])
|
|
48
|
+
return { digits, code };
|
|
49
|
+
}
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
/** What can be told without any lookup. */
|
|
53
|
+
export function offlinePhone(digits, code) {
|
|
54
|
+
const [iso2, country] = CODES[code];
|
|
55
|
+
const national = digits.slice(code.length);
|
|
56
|
+
const warnings = [];
|
|
57
|
+
let lineType = null;
|
|
58
|
+
let iso = iso2 || null;
|
|
59
|
+
let name = country;
|
|
60
|
+
let plausible = digits.length >= 8 && digits.length <= 15;
|
|
61
|
+
if (code === '1') {
|
|
62
|
+
plausible = national.length === 10 && /^[2-9]\d{2}[2-9]/.test(national);
|
|
63
|
+
const area = national.slice(0, 3);
|
|
64
|
+
if (ONE_RING[area]) {
|
|
65
|
+
iso = null;
|
|
66
|
+
name = ONE_RING[area];
|
|
67
|
+
warnings.push(`Area code ${area} is ${ONE_RING[area]}: it looks like a US number but calls are charged as international. The FCC warns about "one ring" scams from this code; do not call back.`);
|
|
68
|
+
}
|
|
69
|
+
else if (NANP_OTHER[area]) {
|
|
70
|
+
name = NANP_OTHER[area];
|
|
71
|
+
iso = null;
|
|
72
|
+
}
|
|
73
|
+
if (/^(900|976)/.test(national)) {
|
|
74
|
+
lineType = 'premium rate';
|
|
75
|
+
warnings.push('900 and 976 numbers are premium rate: calling costs money per minute.');
|
|
76
|
+
}
|
|
77
|
+
if (/^8(00|33|44|55|66|77|88)/.test(national))
|
|
78
|
+
lineType = 'toll free';
|
|
79
|
+
}
|
|
80
|
+
if (code === '44') {
|
|
81
|
+
if (/^9/.test(national)) {
|
|
82
|
+
lineType = 'premium rate';
|
|
83
|
+
warnings.push('UK 09 numbers are premium rate: calls can cost several pounds a minute.');
|
|
84
|
+
}
|
|
85
|
+
if (/^70/.test(national)) {
|
|
86
|
+
lineType = 'personal number';
|
|
87
|
+
warnings.push('UK 070 "personal numbers" look like mobiles but are expensive to call and are often used by scammers.');
|
|
88
|
+
}
|
|
89
|
+
if (/^7[1-9]/.test(national))
|
|
90
|
+
lineType = 'mobile';
|
|
91
|
+
}
|
|
92
|
+
if (code === '979')
|
|
93
|
+
warnings.push('+979 is an international premium-rate code: calling it costs money.');
|
|
94
|
+
if (['881', '882', '883', '870'].includes(code))
|
|
95
|
+
warnings.push('Satellite and international network numbers are very expensive to call; a stranger has little reason to use one.');
|
|
96
|
+
if (!plausible)
|
|
97
|
+
warnings.push('The number has the wrong length for its country, so it may be spoofed or mistyped.');
|
|
98
|
+
return { country: name, iso2: iso, plausible, lineType, warnings };
|
|
99
|
+
}
|
|
100
|
+
export async function phoneCheck(ctx, input, opts = {}) {
|
|
101
|
+
const n = toE164(input, opts.country);
|
|
102
|
+
if (!n)
|
|
103
|
+
throw new Error(/^\+|^00/.test(input.trim()) || opts.country ? `not a phone number: ${input}` : 'give the number in international format, e.g. +44 20 7946 0958, or pass a country');
|
|
104
|
+
const off = offlinePhone(n.digits, n.code);
|
|
105
|
+
const provenance = [{ source: 'calling-codes', url: '', status: 'LIVE', fetchedAt: new Date().toISOString(), note: 'offline ITU calling-code table' }];
|
|
106
|
+
let valid = null;
|
|
107
|
+
let carrier = null;
|
|
108
|
+
let location = null;
|
|
109
|
+
let lineType = off.lineType;
|
|
110
|
+
let iso2 = off.iso2;
|
|
111
|
+
const k = key('NUMVERIFY_API_KEY');
|
|
112
|
+
if (!k)
|
|
113
|
+
provenance.push({ source: 'numverify', url: '', status: 'UNAVAILABLE', fetchedAt: new Date().toISOString(), note: 'set NUMVERIFY_API_KEY to enable carrier and line type' });
|
|
114
|
+
else {
|
|
115
|
+
// The free Numverify plan is HTTP only.
|
|
116
|
+
const r = await ctx.http.get(`http://apilayer.net/api/validate?access_key=${encodeURIComponent(k)}&number=${n.digits}`, { source: 'numverify', ttlSec: 30 * 86_400, retries: 1 });
|
|
117
|
+
if (r.data && r.data.success !== false && typeof r.data.valid === 'boolean') {
|
|
118
|
+
provenance.push(r.prov);
|
|
119
|
+
valid = r.data.valid;
|
|
120
|
+
carrier = r.data.carrier || null;
|
|
121
|
+
location = r.data.location && r.data.location.toLowerCase() !== (off.country ?? '').toLowerCase() ? r.data.location : null;
|
|
122
|
+
lineType = r.data.line_type || lineType;
|
|
123
|
+
if (r.data.country_code)
|
|
124
|
+
iso2 = r.data.country_code;
|
|
125
|
+
}
|
|
126
|
+
else
|
|
127
|
+
provenance.push(r.data?.error ? { ...r.prov, status: 'ERROR', note: r.data.error.info ?? 'lookup failed' } : r.prov);
|
|
128
|
+
}
|
|
129
|
+
const warnings = [...off.warnings];
|
|
130
|
+
if (valid === false)
|
|
131
|
+
warnings.unshift('Numverify says this number is not valid: it is probably spoofed or made up.');
|
|
132
|
+
if (lineType && /voip/i.test(lineType))
|
|
133
|
+
warnings.push('A VoIP number: it can be created online in minutes, anywhere in the world. Scammers often use them.');
|
|
134
|
+
if (lineType && /special|premium|shared/i.test(lineType) && !warnings.some((w) => /premium/.test(w)))
|
|
135
|
+
warnings.push(`Line type "${lineType}": calling it may cost extra.`);
|
|
136
|
+
const risk = warnings.some((w) => /one ring|premium|not valid|personal numbers|\+979/.test(w)) ? 'high' : warnings.length ? 'medium' : 'low';
|
|
137
|
+
const advice = risk === 'low'
|
|
138
|
+
? ['Nothing unusual about the number itself. Scammers can still spoof any number, so judge the message, not only the sender.']
|
|
139
|
+
: ['Do not call back or reply. If the message claims to be from a company you use, contact it through its app or official website.', 'Block the number and report the message (forward scam SMS to 7726 in the US and UK).'];
|
|
140
|
+
return {
|
|
141
|
+
module: 'phone',
|
|
142
|
+
input: `+${n.digits}`,
|
|
143
|
+
generatedAt: ctx.now().toISOString(),
|
|
144
|
+
result: { e164: `+${n.digits}`, countryCode: `+${n.code}`, country: off.country, iso2, plausible: off.plausible, lineType, carrier, location, valid, risk, warnings, advice },
|
|
145
|
+
signals: [],
|
|
146
|
+
provenance,
|
|
147
|
+
};
|
|
148
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ransomware victims: claims posted on ransomware group leak sites, collected by ransomware.live (keyless).
|
|
3
|
+
* Empty query: the newest claims with counts by group, country and sector.
|
|
4
|
+
* A two-letter country code, a sector name, or any word (company, domain) narrows the list.
|
|
5
|
+
* Leak-site (.onion) links are never passed on; each victim links to its ransomware.live page.
|
|
6
|
+
*/
|
|
7
|
+
import type { Ctx } from '../core/context.js';
|
|
8
|
+
import type { ModuleResult } from '../core/types.js';
|
|
9
|
+
export interface Victim {
|
|
10
|
+
victim: string;
|
|
11
|
+
group: string;
|
|
12
|
+
country: string | null;
|
|
13
|
+
sector: string | null;
|
|
14
|
+
domain: string | null;
|
|
15
|
+
attacked: string | null;
|
|
16
|
+
discovered: string | null;
|
|
17
|
+
description: string | null;
|
|
18
|
+
url: string | null;
|
|
19
|
+
}
|
|
20
|
+
export interface RansomwareResult {
|
|
21
|
+
query: string;
|
|
22
|
+
mode: 'recent' | 'country' | 'sector' | 'search';
|
|
23
|
+
total: number;
|
|
24
|
+
victims: Victim[];
|
|
25
|
+
byGroup: {
|
|
26
|
+
name: string;
|
|
27
|
+
count: number;
|
|
28
|
+
}[];
|
|
29
|
+
byCountry: {
|
|
30
|
+
name: string;
|
|
31
|
+
count: number;
|
|
32
|
+
}[];
|
|
33
|
+
bySector: {
|
|
34
|
+
name: string;
|
|
35
|
+
count: number;
|
|
36
|
+
}[];
|
|
37
|
+
note: string;
|
|
38
|
+
}
|
|
39
|
+
interface RawVictim {
|
|
40
|
+
victim?: string;
|
|
41
|
+
post_title?: string;
|
|
42
|
+
group?: string;
|
|
43
|
+
group_name?: string;
|
|
44
|
+
country?: string;
|
|
45
|
+
activity?: string;
|
|
46
|
+
domain?: string;
|
|
47
|
+
website?: string;
|
|
48
|
+
attackdate?: string;
|
|
49
|
+
discovered?: string;
|
|
50
|
+
published?: string;
|
|
51
|
+
description?: string;
|
|
52
|
+
url?: string;
|
|
53
|
+
}
|
|
54
|
+
export declare function toVictim(x: RawVictim): Victim;
|
|
55
|
+
export declare function ransomware(ctx: Ctx, input?: string): Promise<ModuleResult<RansomwareResult>>;
|
|
56
|
+
export {};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { signalId } from '../core/text.js';
|
|
2
|
+
const SECTORS = ['Agriculture and Food Production', 'Business Services', 'Construction', 'Consumer Services', 'Education', 'Energy', 'Financial Services', 'Government', 'Healthcare', 'Hospitality', 'Manufacturing', 'Not Found', 'Professional Services', 'Public Sector', 'Retail', 'Technology', 'Telecommunication', 'Transportation/Logistics'];
|
|
3
|
+
const clip = (s, n) => {
|
|
4
|
+
const t = (s ?? '').replace(/\s+/g, ' ').replace(/^\[AI generated\]\s*/i, '').trim();
|
|
5
|
+
// Some upstream summaries are placeholders or a model declining to answer; leave those out.
|
|
6
|
+
if (!t || /^n\/a\b|^none\b|i don't have reliable|i'm not able|i cannot find|no (reliable|verified) information/i.test(t))
|
|
7
|
+
return null;
|
|
8
|
+
return t.length > n ? `${t.slice(0, n - 1)}…` : t;
|
|
9
|
+
};
|
|
10
|
+
export function toVictim(x) {
|
|
11
|
+
const url = typeof x.url === 'string' && /^https:\/\/(www\.)?ransomware\.live\//.test(x.url) ? x.url : null;
|
|
12
|
+
return {
|
|
13
|
+
victim: (x.victim ?? x.post_title ?? '').trim() || 'unnamed',
|
|
14
|
+
group: (x.group ?? x.group_name ?? '').trim() || 'unknown',
|
|
15
|
+
country: x.country?.trim() || null,
|
|
16
|
+
sector: x.activity && x.activity !== 'Not Found' ? x.activity : null,
|
|
17
|
+
domain: (x.domain ?? x.website ?? '').replace(/^https?:\/\//, '').replace(/\/.*$/, '').trim() || null,
|
|
18
|
+
attacked: x.attackdate ?? null,
|
|
19
|
+
discovered: x.discovered ?? x.published ?? null,
|
|
20
|
+
description: clip(x.description, 240),
|
|
21
|
+
url,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
const tally = (xs, n = 8) => {
|
|
25
|
+
const m = new Map();
|
|
26
|
+
for (const x of xs)
|
|
27
|
+
if (x)
|
|
28
|
+
m.set(x, (m.get(x) ?? 0) + 1);
|
|
29
|
+
return [...m].map(([name, count]) => ({ name, count })).sort((a, b) => b.count - a.count).slice(0, n);
|
|
30
|
+
};
|
|
31
|
+
export async function ransomware(ctx, input = '') {
|
|
32
|
+
const q = input.trim();
|
|
33
|
+
const base = 'https://api.ransomware.live/v2';
|
|
34
|
+
const sector = SECTORS.find((s) => s.toLowerCase() === q.toLowerCase() || s.toLowerCase().startsWith(`${q.toLowerCase()} `));
|
|
35
|
+
const mode = !q ? 'recent' : /^[a-z]{2}$/i.test(q) ? 'country' : sector ? 'sector' : 'search';
|
|
36
|
+
if (mode === 'search' && q.length < 3)
|
|
37
|
+
throw new Error('give at least 3 characters to search for');
|
|
38
|
+
const url = mode === 'recent' ? `${base}/recentvictims` : mode === 'country' ? `${base}/countryvictims/${q.toUpperCase()}` : mode === 'sector' ? `${base}/sectorvictims/${encodeURIComponent(sector)}` : `${base}/searchvictims/${encodeURIComponent(q)}`;
|
|
39
|
+
const r = await ctx.http.get(url, {
|
|
40
|
+
source: 'ransomware-live',
|
|
41
|
+
ttlSec: 1800,
|
|
42
|
+
timeoutMs: 30_000,
|
|
43
|
+
retries: 1,
|
|
44
|
+
keep: (d) => (Array.isArray(d) ? d.slice(0, 300).map((x) => ({ victim: x.victim ?? x.post_title, group: x.group ?? x.group_name, country: x.country, activity: x.activity, domain: x.domain ?? x.website, attackdate: x.attackdate, discovered: x.discovered ?? x.published, description: (x.description ?? '').slice(0, 300), url: x.url })) : d),
|
|
45
|
+
});
|
|
46
|
+
const provenance = [r.prov];
|
|
47
|
+
const notFound = !Array.isArray(r.data) && (r.prov.note === 'HTTP 404' || /no victims/i.test(String(r.data?.error ?? '')));
|
|
48
|
+
if (!Array.isArray(r.data) && !notFound)
|
|
49
|
+
throw new Error(`ransomware.live is not answering right now (${r.prov.note ?? r.prov.status})`);
|
|
50
|
+
if (notFound)
|
|
51
|
+
provenance[0] = { ...r.prov, status: 'LIVE', note: 'no matching victims' };
|
|
52
|
+
const all = (Array.isArray(r.data) ? r.data : []).map(toVictim).sort((a, b) => (b.discovered ?? b.attacked ?? '').localeCompare(a.discovered ?? a.attacked ?? ''));
|
|
53
|
+
const victims = all.slice(0, 40);
|
|
54
|
+
const nowIso = ctx.now().toISOString();
|
|
55
|
+
const signals = [];
|
|
56
|
+
if (mode === 'search' && all.length) {
|
|
57
|
+
const s = {
|
|
58
|
+
id: signalId('ransomware', q.toLowerCase(), all.slice(0, 5).map((v) => `${v.group}:${v.victim}`).join(',')),
|
|
59
|
+
module: 'ransomware',
|
|
60
|
+
title: `${q}: ${all.length} ransomware leak-site claim${all.length === 1 ? '' : 's'}, newest by ${all[0].group}`,
|
|
61
|
+
score: 60,
|
|
62
|
+
entity: q.toLowerCase(),
|
|
63
|
+
evidence: all.slice(0, 3).map((v) => ({ source: 'ransomware.live', text: `${v.group} claims ${v.victim}${v.discovered ? ` (${v.discovered.slice(0, 10)})` : ''}`, ...(v.url ? { url: v.url } : {}) })),
|
|
64
|
+
createdAt: nowIso,
|
|
65
|
+
};
|
|
66
|
+
signals.push(s);
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
module: 'ransomware',
|
|
70
|
+
input: q,
|
|
71
|
+
generatedAt: nowIso,
|
|
72
|
+
result: {
|
|
73
|
+
query: q,
|
|
74
|
+
mode,
|
|
75
|
+
total: all.length,
|
|
76
|
+
victims,
|
|
77
|
+
byGroup: tally(all.map((v) => v.group)),
|
|
78
|
+
byCountry: tally(all.map((v) => v.country)),
|
|
79
|
+
bySector: tally(all.map((v) => v.sector)),
|
|
80
|
+
note: 'These are claims posted by ransomware groups on their leak sites. Groups sometimes exaggerate or list the wrong company; confirm with the organization before acting.',
|
|
81
|
+
},
|
|
82
|
+
signals,
|
|
83
|
+
provenance,
|
|
84
|
+
};
|
|
85
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Satellites, from CelesTrak (keyless; CelesTrak asks clients not to fetch the same data more often than every
|
|
3
|
+
* two hours, so results are cached for that long).
|
|
4
|
+
* No query: objects launched in the last 30 days, grouped by launch.
|
|
5
|
+
* A name ("hubble", "starlink-1007") or a NORAD catalog number: orbit, owner, launch date and status.
|
|
6
|
+
* Orbit heights come from the published mean motion and eccentricity (Kepler's third law), not a live position.
|
|
7
|
+
*/
|
|
8
|
+
import type { Ctx } from '../core/context.js';
|
|
9
|
+
import type { ModuleResult } from '../core/types.js';
|
|
10
|
+
export interface Orbit {
|
|
11
|
+
periodMin: number;
|
|
12
|
+
apogeeKm: number;
|
|
13
|
+
perigeeKm: number;
|
|
14
|
+
inclination: number;
|
|
15
|
+
regime: 'LEO' | 'MEO' | 'GEO' | 'HEO' | 'other';
|
|
16
|
+
}
|
|
17
|
+
export interface SatObject {
|
|
18
|
+
name: string;
|
|
19
|
+
norad: number;
|
|
20
|
+
intlId: string;
|
|
21
|
+
epoch: string | null;
|
|
22
|
+
orbit: Orbit | null;
|
|
23
|
+
owner: string | null;
|
|
24
|
+
type: string | null;
|
|
25
|
+
launchDate: string | null;
|
|
26
|
+
launchSite: string | null;
|
|
27
|
+
status: string | null;
|
|
28
|
+
decayed: string | null;
|
|
29
|
+
url: string;
|
|
30
|
+
}
|
|
31
|
+
export interface SatResult {
|
|
32
|
+
query: string | null;
|
|
33
|
+
mode: 'recent' | 'search';
|
|
34
|
+
objects: SatObject[];
|
|
35
|
+
launches: {
|
|
36
|
+
id: string;
|
|
37
|
+
objects: number;
|
|
38
|
+
names: string[];
|
|
39
|
+
}[];
|
|
40
|
+
total: number;
|
|
41
|
+
note: string;
|
|
42
|
+
}
|
|
43
|
+
/** Period, apogee and perigee from mean motion (revolutions per day) and eccentricity. */
|
|
44
|
+
export declare function orbitFrom(meanMotion: number, ecc: number, inclination: number): Orbit | null;
|
|
45
|
+
export declare function satellites(ctx: Ctx, input?: string): Promise<ModuleResult<SatResult>>;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
const EARTH_R = 6378.137;
|
|
2
|
+
const MU = 398600.4418;
|
|
3
|
+
/** Period, apogee and perigee from mean motion (revolutions per day) and eccentricity. */
|
|
4
|
+
export function orbitFrom(meanMotion, ecc, inclination) {
|
|
5
|
+
if (!(meanMotion > 0) || !(ecc >= 0 && ecc < 1))
|
|
6
|
+
return null;
|
|
7
|
+
const n = (meanMotion * 2 * Math.PI) / 86_400;
|
|
8
|
+
const a = Math.cbrt(MU / (n * n));
|
|
9
|
+
const apogee = a * (1 + ecc) - EARTH_R;
|
|
10
|
+
const perigee = a * (1 - ecc) - EARTH_R;
|
|
11
|
+
const periodMin = 1440 / meanMotion;
|
|
12
|
+
const regime = ecc > 0.25 ? 'HEO' : apogee < 2000 ? 'LEO' : Math.abs(periodMin - 1436) < 30 && ecc < 0.05 ? 'GEO' : apogee < 35_000 ? 'MEO' : 'other';
|
|
13
|
+
return { periodMin: Math.round(periodMin * 10) / 10, apogeeKm: Math.round(apogee), perigeeKm: Math.round(perigee), inclination: Math.round(inclination * 100) / 100, regime };
|
|
14
|
+
}
|
|
15
|
+
const STATUS = { '+': 'operational', '-': 'not operational', P: 'partially operational', B: 'backup', S: 'spare', X: 'extended mission', D: 'decayed', '?': 'unknown' };
|
|
16
|
+
const TYPES = { PAY: 'payload', 'R/B': 'rocket body', DEB: 'debris', UNK: 'unknown' };
|
|
17
|
+
async function celestrak(ctx, url) {
|
|
18
|
+
// An empty search answers with plain text ("No GP data found"), so read text and parse here.
|
|
19
|
+
const r = await ctx.http.get(url, { source: 'celestrak', as: 'text', ttlSec: 2 * 3600, timeoutMs: 30_000, retries: 1 });
|
|
20
|
+
// CelesTrak answers 404 for a search with no match.
|
|
21
|
+
if (r.data == null && r.prov.note === 'HTTP 404')
|
|
22
|
+
return { data: [], prov: { ...r.prov, status: 'LIVE', note: 'no match' } };
|
|
23
|
+
if (r.data == null)
|
|
24
|
+
return { data: null, prov: r.prov };
|
|
25
|
+
try {
|
|
26
|
+
const d = JSON.parse(r.data);
|
|
27
|
+
return { data: Array.isArray(d) ? d : [], prov: r.prov };
|
|
28
|
+
}
|
|
29
|
+
catch {
|
|
30
|
+
return { data: [], prov: { ...r.prov, note: r.data.trim().slice(0, 80) || 'no data' } };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
function toObject(g, s) {
|
|
34
|
+
const norad = Number(g.NORAD_CAT_ID ?? s?.NORAD_CAT_ID ?? 0);
|
|
35
|
+
return {
|
|
36
|
+
name: g.OBJECT_NAME ?? `NORAD ${norad}`,
|
|
37
|
+
norad,
|
|
38
|
+
intlId: g.OBJECT_ID ?? '',
|
|
39
|
+
epoch: g.EPOCH ? `${g.EPOCH.slice(0, 19)}Z` : null,
|
|
40
|
+
orbit: g.MEAN_MOTION != null ? orbitFrom(Number(g.MEAN_MOTION), Number(g.ECCENTRICITY ?? 0), Number(g.INCLINATION ?? 0)) : null,
|
|
41
|
+
owner: s?.OWNER || null,
|
|
42
|
+
type: s?.OBJECT_TYPE ? TYPES[s.OBJECT_TYPE] ?? s.OBJECT_TYPE : null,
|
|
43
|
+
launchDate: s?.LAUNCH_DATE || null,
|
|
44
|
+
launchSite: s?.LAUNCH_SITE || null,
|
|
45
|
+
status: s?.OPS_STATUS_CODE ? STATUS[s.OPS_STATUS_CODE] ?? s.OPS_STATUS_CODE : null,
|
|
46
|
+
decayed: s?.DECAY_DATE || null,
|
|
47
|
+
url: `https://celestrak.org/satcat/table-satcat.php?CATNR=${norad}`,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
export async function satellites(ctx, input = '') {
|
|
51
|
+
const q = input.trim();
|
|
52
|
+
const provenance = [];
|
|
53
|
+
const base = 'https://celestrak.org';
|
|
54
|
+
if (!q) {
|
|
55
|
+
const g = await celestrak(ctx, `${base}/NORAD/elements/gp.php?GROUP=last-30-days&FORMAT=json`);
|
|
56
|
+
provenance.push(g.prov);
|
|
57
|
+
if (!g.data)
|
|
58
|
+
throw new Error(`CelesTrak is not answering right now (${g.prov.note ?? g.prov.status})`);
|
|
59
|
+
const byLaunch = new Map();
|
|
60
|
+
for (const x of g.data) {
|
|
61
|
+
const id = (x.OBJECT_ID ?? '').replace(/[A-Z]+$/, '');
|
|
62
|
+
if (!id)
|
|
63
|
+
continue;
|
|
64
|
+
byLaunch.set(id, [...(byLaunch.get(id) ?? []), x]);
|
|
65
|
+
}
|
|
66
|
+
const launches = [...byLaunch].map(([id, xs]) => {
|
|
67
|
+
const names = [...new Set(xs.map((x) => (x.OBJECT_NAME ?? '').replace(/[-\s]?\d+[A-Z]?$/, '').trim() || x.OBJECT_NAME || '').filter(Boolean))].slice(0, 4);
|
|
68
|
+
return { id, objects: xs.length, names };
|
|
69
|
+
}).sort((a, b) => b.id.localeCompare(a.id));
|
|
70
|
+
return {
|
|
71
|
+
module: 'satellites',
|
|
72
|
+
input: '',
|
|
73
|
+
generatedAt: ctx.now().toISOString(),
|
|
74
|
+
result: { query: null, mode: 'recent', objects: [], launches: launches.slice(0, 30), total: g.data.length, note: 'Objects CelesTrak catalogued from launches in the last 30 days, newest launch first (international designator YYYY-NNN).' },
|
|
75
|
+
signals: [],
|
|
76
|
+
provenance,
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
const isNum = /^\d{1,9}$/.test(q);
|
|
80
|
+
if (!isNum && q.length < 3)
|
|
81
|
+
throw new Error('give at least 3 characters of a satellite name, or a NORAD number');
|
|
82
|
+
const g = await celestrak(ctx, `${base}/NORAD/elements/gp.php?${isNum ? `CATNR=${q}` : `NAME=${encodeURIComponent(q)}`}&FORMAT=json`);
|
|
83
|
+
provenance.push(g.prov);
|
|
84
|
+
if (!g.data)
|
|
85
|
+
throw new Error(`CelesTrak is not answering right now (${g.prov.note ?? g.prov.status})`);
|
|
86
|
+
// Exact names first ("HUBBLE" before "HUBBLE 6"), then by catalog number.
|
|
87
|
+
const lower = q.toLowerCase();
|
|
88
|
+
const sorted = [...g.data].sort((a, b) => Number((b.OBJECT_NAME ?? '').toLowerCase() === lower || (b.OBJECT_NAME ?? '').toLowerCase().startsWith(`${lower} (`)) - Number((a.OBJECT_NAME ?? '').toLowerCase() === lower || (a.OBJECT_NAME ?? '').toLowerCase().startsWith(`${lower} (`)) || Number(a.NORAD_CAT_ID ?? 0) - Number(b.NORAD_CAT_ID ?? 0));
|
|
89
|
+
const top = sorted.slice(0, 10);
|
|
90
|
+
let cat = [];
|
|
91
|
+
if (top.length) {
|
|
92
|
+
const s = await celestrak(ctx, `${base}/satcat/records.php?CATNR=${top.slice(0, 5).map((x) => x.NORAD_CAT_ID).join(',')}&FORMAT=json`);
|
|
93
|
+
provenance.push(s.prov);
|
|
94
|
+
cat = s.data ?? [];
|
|
95
|
+
}
|
|
96
|
+
else if (isNum) {
|
|
97
|
+
// Decayed objects have no current orbit but are still in the catalog.
|
|
98
|
+
const s = await celestrak(ctx, `${base}/satcat/records.php?CATNR=${q}&FORMAT=json`);
|
|
99
|
+
provenance.push(s.prov);
|
|
100
|
+
if (s.data?.[0])
|
|
101
|
+
top.push({ OBJECT_NAME: s.data[0].OBJECT_NAME, OBJECT_ID: s.data[0].OBJECT_ID, NORAD_CAT_ID: Number(q) });
|
|
102
|
+
cat = s.data ?? [];
|
|
103
|
+
}
|
|
104
|
+
const objects = top.map((x) => toObject(x, cat.find((c) => Number(c.NORAD_CAT_ID) === Number(x.NORAD_CAT_ID))));
|
|
105
|
+
return {
|
|
106
|
+
module: 'satellites',
|
|
107
|
+
input: q,
|
|
108
|
+
generatedAt: ctx.now().toISOString(),
|
|
109
|
+
result: { query: q, mode: 'search', objects, launches: [], total: g.data.length, note: objects.length ? 'Orbit heights are computed from the latest published orbital elements.' : 'No object with that name or number is in orbit. Decayed objects are only found by NORAD number.' },
|
|
110
|
+
signals: [],
|
|
111
|
+
provenance,
|
|
112
|
+
};
|
|
113
|
+
}
|