@cyanheads/astronomy-mcp-server 0.4.1 → 0.4.3
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/AGENTS.md +16 -12
- package/CLAUDE.md +16 -12
- package/Dockerfile +3 -3
- package/README.md +39 -14
- package/changelog/0.4.x/0.4.2.md +37 -0
- package/changelog/0.4.x/0.4.3.md +28 -0
- package/dist/mcp-server/prompts/definitions/stargazing-plan.prompt.js +1 -1
- package/dist/mcp-server/prompts/definitions/stargazing-plan.prompt.js.map +1 -1
- package/dist/mcp-server/tools/definitions/find-events.tool.d.ts +31 -4
- package/dist/mcp-server/tools/definitions/find-events.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/find-events.tool.js +96 -24
- package/dist/mcp-server/tools/definitions/find-events.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-ephemeris.tool.d.ts +29 -7
- package/dist/mcp-server/tools/definitions/get-ephemeris.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-ephemeris.tool.js +221 -46
- package/dist/mcp-server/tools/definitions/get-ephemeris.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-moon-phase.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-moon-phase.tool.js +1 -0
- package/dist/mcp-server/tools/definitions/get-moon-phase.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-rise-set.tool.d.ts +49 -2
- package/dist/mcp-server/tools/definitions/get-rise-set.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-rise-set.tool.js +85 -43
- package/dist/mcp-server/tools/definitions/get-rise-set.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-satellite-passes.tool.d.ts +27 -3
- package/dist/mcp-server/tools/definitions/get-satellite-passes.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-satellite-passes.tool.js +98 -23
- package/dist/mcp-server/tools/definitions/get-satellite-passes.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-sky-position.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-sky-position.tool.js +1 -0
- package/dist/mcp-server/tools/definitions/get-sky-position.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/list-visible.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/list-visible.tool.js +1 -0
- package/dist/mcp-server/tools/definitions/list-visible.tool.js.map +1 -1
- package/dist/services/ephemeris/ephemeris-service.d.ts +86 -14
- package/dist/services/ephemeris/ephemeris-service.d.ts.map +1 -1
- package/dist/services/ephemeris/ephemeris-service.js +455 -100
- package/dist/services/ephemeris/ephemeris-service.js.map +1 -1
- package/dist/services/ephemeris/iso-time.d.ts +2 -2
- package/dist/services/ephemeris/iso-time.js +5 -5
- package/dist/services/ephemeris/types.d.ts +42 -1
- package/dist/services/ephemeris/types.d.ts.map +1 -1
- package/dist/services/ephemeris/types.js +16 -0
- package/dist/services/ephemeris/types.js.map +1 -1
- package/dist/services/horizons/horizons-service.d.ts +25 -3
- package/dist/services/horizons/horizons-service.d.ts.map +1 -1
- package/dist/services/horizons/horizons-service.js +154 -15
- package/dist/services/horizons/horizons-service.js.map +1 -1
- package/dist/services/horizons/types.d.ts +8 -4
- package/dist/services/horizons/types.d.ts.map +1 -1
- package/dist/services/satellite/satellite-service.d.ts +48 -10
- package/dist/services/satellite/satellite-service.d.ts.map +1 -1
- package/dist/services/satellite/satellite-service.js +215 -102
- package/dist/services/satellite/satellite-service.js.map +1 -1
- package/dist/services/satellite/types.d.ts +36 -2
- package/dist/services/satellite/types.d.ts.map +1 -1
- package/dist/services/satellite/types.js.map +1 -1
- package/package.json +10 -9
- package/server.json +3 -3
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* substituting core output. Parses the OBSERVER ephemeris table between Horizons' $$SOE/$$EOE markers.
|
|
8
8
|
* @module services/horizons/horizons-service
|
|
9
9
|
*/
|
|
10
|
-
import { invalidParams, notFound, serviceUnavailable } from '@cyanheads/mcp-ts-core/errors';
|
|
10
|
+
import { invalidParams, McpError, notFound, serviceUnavailable, } from '@cyanheads/mcp-ts-core/errors';
|
|
11
11
|
import { fetchWithTimeout, withRetry } from '@cyanheads/mcp-ts-core/utils';
|
|
12
12
|
/** Cap on inline ephemeris rows; beyond this the result truncates with disclosure. */
|
|
13
13
|
const MAX_ROWS = 200;
|
|
@@ -20,6 +20,51 @@ const MAX_ROWS = 200;
|
|
|
20
20
|
* span outside the target's data ("No ephemeris for target …", matched by `OUT_OF_SPAN`).
|
|
21
21
|
*/
|
|
22
22
|
const DESIGNATION_MISS = /No matches found|Matching small-bodies/i;
|
|
23
|
+
/**
|
|
24
|
+
* The line Horizons prints instead of an ephemeris when a name matches several major bodies
|
|
25
|
+
* or spacecraft, e.g. `Multiple major-bodies match string "MARS*"` for `Mars`. A table of the
|
|
26
|
+
* candidates follows, one per line, keyed by the ID number that selects each one.
|
|
27
|
+
*/
|
|
28
|
+
const MAJOR_BODY_MULTI_MATCH = /Multiple major-bodies match string/;
|
|
29
|
+
/** Most candidates an ambiguous-designation error lists; the message states the full count. */
|
|
30
|
+
const MAX_DESIGNATION_CANDIDATES = 20;
|
|
31
|
+
/**
|
|
32
|
+
* Recovery hint for a designation matching several major bodies, byte-identical to the
|
|
33
|
+
* `recovery` the tool declares for `ambiguous_designation`.
|
|
34
|
+
*/
|
|
35
|
+
const AMBIGUOUS_DESIGNATION_RECOVERY = 'Re-call with designation set to the ID number of the intended body from the listed candidates — e.g. "499" for the planet Mars — or a more specific name when it is not listed.';
|
|
36
|
+
/**
|
|
37
|
+
* Read the candidate table under Horizons' multi-match line. The table is fixed-width under
|
|
38
|
+
* a separator of dash runs, one run per column; the ID# and Name columns are the first two.
|
|
39
|
+
* A long name fills its column and the gap after it, so the name runs up to where the next
|
|
40
|
+
* column starts, cut there exactly as Horizons cut it. Rows run until the first line with
|
|
41
|
+
* no ID number in the ID# column.
|
|
42
|
+
*/
|
|
43
|
+
function multiMatchCandidates(text) {
|
|
44
|
+
const lines = text.split('\n');
|
|
45
|
+
const separatorAt = lines.findIndex((line) => {
|
|
46
|
+
const trimmed = line.trim();
|
|
47
|
+
return trimmed.includes(' ') && /^[- ]+$/.test(trimmed);
|
|
48
|
+
});
|
|
49
|
+
if (separatorAt === -1)
|
|
50
|
+
return [];
|
|
51
|
+
const columns = [...(lines[separatorAt] ?? '').matchAll(/-+/g)].map((m) => ({
|
|
52
|
+
from: m.index,
|
|
53
|
+
to: m.index + m[0].length,
|
|
54
|
+
}));
|
|
55
|
+
const [idColumn, nameColumn, nextColumn] = columns;
|
|
56
|
+
if (!idColumn || !nameColumn)
|
|
57
|
+
return [];
|
|
58
|
+
const candidates = [];
|
|
59
|
+
for (const line of lines.slice(separatorAt + 1)) {
|
|
60
|
+
// An ID right-aligned in its column can start before the dashes do, so read from 0.
|
|
61
|
+
const id = line.slice(0, idColumn.to).trim();
|
|
62
|
+
if (!/^-?\d+$/.test(id))
|
|
63
|
+
break;
|
|
64
|
+
candidates.push({ id, name: line.slice(nameColumn.from, nextColumn?.from).trim() });
|
|
65
|
+
}
|
|
66
|
+
return candidates;
|
|
67
|
+
}
|
|
23
68
|
/**
|
|
24
69
|
* The line Horizons prints when the requested span leaves the target's data, e.g.
|
|
25
70
|
* `No ephemeris for target "Mars" after A.D. 2599-DEC-31 23:58:50.8164 UT`. Captures the
|
|
@@ -31,6 +76,37 @@ const OUT_OF_SPAN = /^No ephemeris for target "([^"]*)" (prior to|after) ((?:A\.
|
|
|
31
76
|
* the tool declares for `time_out_of_range`. The bound itself rides in the message.
|
|
32
77
|
*/
|
|
33
78
|
const OUT_OF_SPAN_RECOVERY = "Move start and stop inside the target's Horizons data span — the message names the bound the request crossed — then retry.";
|
|
79
|
+
/**
|
|
80
|
+
* The refusal Horizons prints when STEP_SIZE spans more than the target's whole data span,
|
|
81
|
+
* e.g. `2147483647d` for 433 Eros. Which steps that is depends on the target, so it cannot
|
|
82
|
+
* be checked before the request.
|
|
83
|
+
*/
|
|
84
|
+
const STEP_TOO_BIG = /STEP_SIZE too big/;
|
|
85
|
+
/** Recovery hint for an over-long step, byte-identical to the tool's `invalid_step` recovery. */
|
|
86
|
+
const INVALID_STEP_RECOVERY = 'Pass step as a count up to 2147483647 plus m, h, d, mo, or y — for example "10m", "1h", or "1d" — and shorter than the span of data Horizons holds for the target, then retry.';
|
|
87
|
+
/**
|
|
88
|
+
* The refusal Horizons prints when the target is the body the observer stands on — every
|
|
89
|
+
* request here observes from Earth, so this is a target that resolves to Earth.
|
|
90
|
+
*/
|
|
91
|
+
const OBSERVER_IS_TARGET = /Observer table for observer=target disallowed/;
|
|
92
|
+
/** Recovery hint for Earth as the target, byte-identical to the tool's declared recovery. */
|
|
93
|
+
const OBSERVER_IS_TARGET_RECOVERY = 'Choose a target other than Earth: this tool observes from Earth, geocentric or from the supplied latitude and longitude, and Horizons computes no ephemeris of the observer’s own body.';
|
|
94
|
+
/**
|
|
95
|
+
* How Horizons names a request parameter whose value it refuses with HTTP 400, e.g.
|
|
96
|
+
* `invalid value specified for query parameter 'COMMAND': invalid character(s) found (must be
|
|
97
|
+
* ASCII hex code 0x20-0x7f)`. The capture is the parameter name.
|
|
98
|
+
*/
|
|
99
|
+
const REFUSED_PARAMETER = /query parameter '([A-Z_]+)'/;
|
|
100
|
+
/** The tool input each refusable Horizons query parameter carries. */
|
|
101
|
+
const PARAMETER_INPUTS = {
|
|
102
|
+
COMMAND: 'designation',
|
|
103
|
+
START_TIME: 'start',
|
|
104
|
+
STOP_TIME: 'stop',
|
|
105
|
+
STEP_SIZE: 'step',
|
|
106
|
+
SITE_COORD: 'the observer coordinates',
|
|
107
|
+
};
|
|
108
|
+
/** Recovery hint for a request Horizons refused, byte-identical to the tool's declared recovery. */
|
|
109
|
+
const REQUEST_REJECTED_RECOVERY = 'Horizons refuses this request the same way on every attempt, so do not retry it unchanged: correct the input the message names — the designation as a record-resolving form such as "433;", or the start, stop, step, or observer coordinates — then call again.';
|
|
34
110
|
/**
|
|
35
111
|
* The header line naming the object Horizons resolved, e.g.
|
|
36
112
|
* "Target body name: 433 Eros (A898 PA) {source: JPL#659}". The capture is
|
|
@@ -69,19 +145,22 @@ export class HorizonsService {
|
|
|
69
145
|
* fetchWithTimeout throws a status-mapped McpError on any non-2xx whose data
|
|
70
146
|
* carries raw upstream internals (status/statusText/body plus the legacy
|
|
71
147
|
* statusCode/responseBody aliases), and a Timeout McpError when its own deadline
|
|
72
|
-
* fires.
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
148
|
+
* fires. Horizons signals a genuine no-match with a 200 body (handled in parse); its
|
|
149
|
+
* one deterministic HTTP refusal is a 400 for a parameter value it will not accept,
|
|
150
|
+
* which no retry changes, so that becomes a typed input refusal naming the input.
|
|
151
|
+
* Everything else is horizons_unavailable. Either way the error is rebuilt with clean
|
|
152
|
+
* data so nothing upstream leaks to the client: the captured body echoes the query,
|
|
153
|
+
* so the data is replaced rather than forwarded.
|
|
78
154
|
*/
|
|
155
|
+
if (err instanceof McpError && err.data?.status === 400) {
|
|
156
|
+
throw this.requestRejected(designation, err);
|
|
157
|
+
}
|
|
79
158
|
throw serviceUnavailable(`Failed to fetch an ephemeris for "${designation}" from JPL Horizons.`, {
|
|
80
159
|
reason: 'horizons_unavailable',
|
|
81
160
|
recovery: { hint: 'JPL Horizons is degraded or timed out; retry in a few minutes.' },
|
|
82
161
|
}, { cause: err instanceof Error ? err : undefined });
|
|
83
162
|
}
|
|
84
|
-
return this.parse(designation, text, !!observer);
|
|
163
|
+
return this.parse(designation, step, text, !!observer);
|
|
85
164
|
}
|
|
86
165
|
/** Build the Horizons GET URL with quoted, URL-encoded parameters. */
|
|
87
166
|
buildUrl(designation, start, stop, step, observer) {
|
|
@@ -100,6 +179,12 @@ export class HorizonsService {
|
|
|
100
179
|
CSV_FORMAT: 'YES',
|
|
101
180
|
ANG_FORMAT: 'DEG',
|
|
102
181
|
EXTRA_PREC: 'YES',
|
|
182
|
+
// ISO 8601 dates are proleptic Gregorian. Horizons' default mixed calendar reads a
|
|
183
|
+
// date before 1582-10-15 as Julian — 1500-01-01 lands on Gregorian 1500-01-10 — and
|
|
184
|
+
// labels its rows the same way, so START_TIME, STOP_TIME, and every row's date
|
|
185
|
+
// would name instants other than the ones computed. One calendar end to end;
|
|
186
|
+
// after 1582-10-15 the two agree and nothing changes.
|
|
187
|
+
CAL_TYPE: 'GREGORIAN',
|
|
103
188
|
});
|
|
104
189
|
if (observer) {
|
|
105
190
|
params.set('COORD_TYPE', 'GEODETIC');
|
|
@@ -115,9 +200,22 @@ export class HorizonsService {
|
|
|
115
200
|
}
|
|
116
201
|
return `${this.baseUrl}?${params.toString()}`;
|
|
117
202
|
}
|
|
118
|
-
/**
|
|
119
|
-
|
|
203
|
+
/**
|
|
204
|
+
* Parse the CSV OBSERVER table between $$SOE and $$EOE. A response with no table is
|
|
205
|
+
* matched against the refusals Horizons gives identically on every attempt, each typed
|
|
206
|
+
* so the caller is not told to retry; only an answer none of them explains falls to
|
|
207
|
+
* the retryable outage. Refusals the tool prevents before the request — a date it
|
|
208
|
+
* cannot read, a stop not after start, a step count it cannot read, a blank target, an
|
|
209
|
+
* observer altitude out of range, a span past its row ceiling — are not matched here.
|
|
210
|
+
*/
|
|
211
|
+
parse(designation, step, text, hasObserver) {
|
|
120
212
|
const hasBlock = text.includes('$$SOE');
|
|
213
|
+
if (!hasBlock && STEP_TOO_BIG.test(text)) {
|
|
214
|
+
throw invalidParams(`Step "${step}" is longer than the span of data JPL Horizons holds for "${designation}".`, { reason: 'invalid_step', recovery: { hint: INVALID_STEP_RECOVERY } });
|
|
215
|
+
}
|
|
216
|
+
if (!hasBlock && OBSERVER_IS_TARGET.test(text)) {
|
|
217
|
+
throw invalidParams(`"${designation}" resolves to Earth, the body the observer is on, and JPL Horizons has no observer table for it.`, { reason: 'observer_is_target', recovery: { hint: OBSERVER_IS_TARGET_RECOVERY } });
|
|
218
|
+
}
|
|
121
219
|
const outOfSpan = hasBlock ? null : OUT_OF_SPAN.exec(text);
|
|
122
220
|
if (outOfSpan) {
|
|
123
221
|
const [, target, direction, bound] = outOfSpan;
|
|
@@ -126,6 +224,9 @@ export class HorizonsService {
|
|
|
126
224
|
recovery: { hint: OUT_OF_SPAN_RECOVERY },
|
|
127
225
|
});
|
|
128
226
|
}
|
|
227
|
+
if (!hasBlock && MAJOR_BODY_MULTI_MATCH.test(text)) {
|
|
228
|
+
throw this.ambiguousDesignation(designation, multiMatchCandidates(text));
|
|
229
|
+
}
|
|
129
230
|
if (DESIGNATION_MISS.test(text) && !hasBlock) {
|
|
130
231
|
throw notFound(`JPL Horizons has no match for designation "${designation}".`, {
|
|
131
232
|
reason: 'body_not_found',
|
|
@@ -177,6 +278,35 @@ export class HorizonsService {
|
|
|
177
278
|
...(targetName ? { targetName } : {}),
|
|
178
279
|
};
|
|
179
280
|
}
|
|
281
|
+
/**
|
|
282
|
+
* A name matching several major bodies is a fixed answer, not an outage: Horizons lists
|
|
283
|
+
* the same candidates every time, so the error hands them over for the caller to pick
|
|
284
|
+
* one ID from. The list is capped, and the message says so when it is.
|
|
285
|
+
*/
|
|
286
|
+
ambiguousDesignation(designation, matched) {
|
|
287
|
+
const candidates = matched.slice(0, MAX_DESIGNATION_CANDIDATES);
|
|
288
|
+
const listing = candidates.map((c) => `${c.id} (${c.name})`).join(', ');
|
|
289
|
+
const message = matched.length === 0
|
|
290
|
+
? `"${designation}" matches several JPL Horizons major bodies.`
|
|
291
|
+
: matched.length > candidates.length
|
|
292
|
+
? `"${designation}" matches ${matched.length} JPL Horizons major bodies. The first ${candidates.length}: ${listing}.`
|
|
293
|
+
: `"${designation}" matches ${matched.length} JPL Horizons major bodies: ${listing}.`;
|
|
294
|
+
return invalidParams(message, {
|
|
295
|
+
reason: 'ambiguous_designation',
|
|
296
|
+
recovery: { hint: AMBIGUOUS_DESIGNATION_RECOVERY },
|
|
297
|
+
...(matched.length > 0 ? { match_count: matched.length, candidates } : {}),
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* A 400 names the query parameter Horizons refused; the error names the tool input that
|
|
302
|
+
* parameter carries, and neither Horizons' text nor the HTTP details reach the client.
|
|
303
|
+
*/
|
|
304
|
+
requestRejected(designation, err) {
|
|
305
|
+
const body = typeof err.data?.body === 'string' ? err.data.body : '';
|
|
306
|
+
const parameter = REFUSED_PARAMETER.exec(body)?.[1];
|
|
307
|
+
const input = (parameter && PARAMETER_INPUTS[parameter]) ?? 'a request parameter';
|
|
308
|
+
return invalidParams(`JPL Horizons refused the request for "${designation}": it rejected the value sent for ${input}.`, { reason: 'request_rejected', recovery: { hint: REQUEST_REJECTED_RECOVERY } }, { cause: err });
|
|
309
|
+
}
|
|
180
310
|
/**
|
|
181
311
|
* Parse one CSV row (CSV_FORMAT YES). The column layout depends on whether an
|
|
182
312
|
* observer was supplied, because buildUrl requests azimuth/elevation (QUANTITIES
|
|
@@ -241,12 +371,16 @@ export class HorizonsService {
|
|
|
241
371
|
/**
|
|
242
372
|
* Convert a Horizons calendar date to ISO 8601 UTC. The OBSERVER table emits
|
|
243
373
|
* "2024-Apr-08 18:00" (HH:MM) at hour/day steps and "…18:00:00.0000" at finer
|
|
244
|
-
* steps, so seconds are optional.
|
|
245
|
-
*
|
|
374
|
+
* steps, so seconds are optional. A START_TIME carrying a fraction of a second comes
|
|
375
|
+
* back on every row ("2026-Jan-01 00:00:30.500"), and the fraction is kept — rounded to
|
|
376
|
+
* the millisecond an ISO instant holds — so `time_utc` names the instant Horizons
|
|
377
|
+
* computed, and a resume start derived from it stays on the caller's time grid.
|
|
378
|
+
* Horizons dates are always UT — parse them as UTC explicitly; never let a bare
|
|
379
|
+
* string fall to local-time `new Date(...)`.
|
|
246
380
|
*/
|
|
247
381
|
parseHorizonsDate(raw) {
|
|
248
382
|
const cleaned = raw.replace(/^A\.D\.\s*/, '').trim();
|
|
249
|
-
const match = cleaned.match(/^(\d{4})-([A-Za-z]{3})-(\d{2})\s+(\d{2}):(\d{2})(?::(\d{2}))?(
|
|
383
|
+
const match = cleaned.match(/^(\d{4})-([A-Za-z]{3})-(\d{2})\s+(\d{2}):(\d{2})(?::(\d{2}))?(?:\.(\d+))?/);
|
|
250
384
|
if (!match) {
|
|
251
385
|
// Append Z so an unzoned fallback string is read as UTC, not host-local time.
|
|
252
386
|
const d = new Date(/[zZ]|[+-]\d{2}:?\d{2}$/.test(cleaned) ? cleaned : `${cleaned}Z`);
|
|
@@ -266,13 +400,18 @@ export class HorizonsService {
|
|
|
266
400
|
Nov: '11',
|
|
267
401
|
Dec: '12',
|
|
268
402
|
};
|
|
269
|
-
const [, year, monName, day, hh, mm, ss] = match;
|
|
403
|
+
const [, year, monName, day, hh, mm, ss, fraction] = match;
|
|
270
404
|
const monNum = monName ? months[monName] : undefined;
|
|
271
405
|
if (!monNum)
|
|
272
406
|
return null;
|
|
273
407
|
const iso = `${year}-${monNum}-${day}T${hh}:${mm}:${ss ?? '00'}Z`;
|
|
274
408
|
const d = new Date(iso);
|
|
275
|
-
|
|
409
|
+
if (Number.isNaN(d.getTime()))
|
|
410
|
+
return null;
|
|
411
|
+
// Added to the epoch rather than written into the string, so a fraction that rounds up
|
|
412
|
+
// to a whole second carries into the next minute instead of naming second 60.
|
|
413
|
+
const ms = fraction === undefined ? 0 : Math.round(Number(`0.${fraction}`) * 1000);
|
|
414
|
+
return new Date(d.getTime() + ms).toISOString();
|
|
276
415
|
}
|
|
277
416
|
}
|
|
278
417
|
// --- Init / accessor pattern ------------------------------------------------
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"horizons-service.js","sourceRoot":"","sources":["../../../src/services/horizons/horizons-service.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAC5F,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAI3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AAC,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;IAClD,CAAC;CACF;AAED,+EAA+E;AAE/E,IAAI,QAAqC,CAAC;AAE1C,gFAAgF;AAChF,MAAM,UAAU,mBAAmB,CAAC,OAAe,EAAE,SAAiB;IACpE,QAAQ,GAAG,IAAI,eAAe,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;AACrD,CAAC;AAED,8DAA8D;AAC9D,MAAM,UAAU,kBAAkB;IAChC,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,MAAM,IAAI,KAAK,CAAC,oEAAoE,CAAC,CAAC;IACxF,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
|
@@ -36,10 +36,14 @@ export interface EphemerisResult {
|
|
|
36
36
|
*/
|
|
37
37
|
targetName?: string;
|
|
38
38
|
/**
|
|
39
|
-
* True when Horizons returned more rows than the inline cap. The
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
39
|
+
* True when Horizons returned more rows than the inline cap. The tool asks for one row
|
|
40
|
+
* past the cap at most, so this reads that row. This field alone does not decide
|
|
41
|
+
* continuation: the tool, not this field, also treats a page as continuing when a
|
|
42
|
+
* dropped row left the cap unreached and one step past the last point is still inside
|
|
43
|
+
* the requested span. The remaining rows are retrieved by re-calling from the instant
|
|
44
|
+
* one step past the last row returned, never by widening `step` — a wider step answers
|
|
45
|
+
* a different question, dropping samples the original range asked for instead of
|
|
46
|
+
* retrieving them.
|
|
43
47
|
*/
|
|
44
48
|
truncated: boolean;
|
|
45
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/services/horizons/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB;;;;;;OAMG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,cAAc,EAAE,CAAC;IACzB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/services/horizons/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB;;;;;;OAMG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,cAAc,EAAE,CAAC;IACzB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;;;;;;OASG;IACH,SAAS,EAAE,OAAO,CAAC;CACpB"}
|
|
@@ -5,11 +5,14 @@
|
|
|
5
5
|
* via satellite.js (offline), and returns above-horizon passes. One request builder
|
|
6
6
|
* serves both lookups: by catalog number (`CATNR=`) and by name (`NAME=`, a
|
|
7
7
|
* case-insensitive substring match whose single-match response already carries the
|
|
8
|
-
* element set, so resolving a name costs no extra round trip).
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
8
|
+
* element set, so resolving a name costs no extra round trip). Horizon crossings are
|
|
9
|
+
* bisected to the second between 30-second scan samples. A pass is reported when its
|
|
10
|
+
* visible stretch — above the horizon, the satellite sunlit, and the Sun below −6° for
|
|
11
|
+
* the observer — reaches 10° altitude, wherever in the pass that stretch falls; the
|
|
12
|
+
* ground-darkness test reuses the core sun-altitude logic. A pass up longer than one
|
|
13
|
+
* scan step when the window opens is omitted rather than reported with the query
|
|
14
|
+
* boundary as its rise (one rising in the 30 s before the start is reported), and one
|
|
15
|
+
* still up when the window closes is followed to its set. Well-known
|
|
13
16
|
* common names (ISS, Hubble, Tiangong) resolve through a fixed alias table to their
|
|
14
17
|
* catalog numbers before any `NAME=` search. A start beyond the element set's epoch
|
|
15
18
|
* horizon is rejected on that distance alone, and inside the horizon an element set
|
|
@@ -85,8 +88,9 @@ export declare class SatelliteService {
|
|
|
85
88
|
private ambiguousName;
|
|
86
89
|
/**
|
|
87
90
|
* Predict visible passes over the next `days` from `start`. Steps the orbit with
|
|
88
|
-
* SGP4
|
|
89
|
-
* and
|
|
91
|
+
* SGP4 every `STEP_SECONDS`, brackets above-horizon intervals, refines each horizon
|
|
92
|
+
* crossing to the second, and keeps a pass when its visible stretch — sunlit, over a
|
|
93
|
+
* dark-enough sky — reaches `MIN_PEAK_ELEVATION`.
|
|
90
94
|
*
|
|
91
95
|
* Throws `time_out_of_range` when `start` lies beyond the element set's epoch horizon,
|
|
92
96
|
* and `object_decayed` when a window inside that horizon will not propagate at all.
|
|
@@ -95,6 +99,37 @@ export declare class SatelliteService {
|
|
|
95
99
|
* built from elements that stopped describing the orbit weeks earlier.
|
|
96
100
|
*/
|
|
97
101
|
predictPasses(elements: ElementSet, observer: ObserverInput, days: number, start: Date, formatLocal?: (d: Date) => string): SatellitePassResult;
|
|
102
|
+
/**
|
|
103
|
+
* Turn one bracketed above-horizon interval into a reported pass, or `null` when it is
|
|
104
|
+
* not visible enough to report. `below` and `after` are the scan samples on either side
|
|
105
|
+
* of the interval, both at or under the horizon; `above` is every sample over it.
|
|
106
|
+
*
|
|
107
|
+
* The peak stays the highest scan sample. The rise and set are bisected between the
|
|
108
|
+
* samples bracketing each crossing, and the visible stretch is located on the crossings
|
|
109
|
+
* plus the samples between them: a sample counts as visible when the satellite is
|
|
110
|
+
* sunlit and the Sun is below `GROUND_DARK_SUN_ALT`, an edge inside the pass is bisected
|
|
111
|
+
* the same way, and an edge on a crossing is that crossing at altitude 0. Testing only
|
|
112
|
+
* the peak instant dropped every pass that crosses into or out of Earth's shadow on the
|
|
113
|
+
* dark side of its peak, however long it is lit over a dark sky.
|
|
114
|
+
*/
|
|
115
|
+
private completePass;
|
|
116
|
+
/**
|
|
117
|
+
* The visible stretch of a pass reaching the highest altitude, or `null` when no point
|
|
118
|
+
* of it is visible. `points` runs from the rise crossing through the scan samples to the
|
|
119
|
+
* set crossing. A pass rarely holds more than one stretch — that takes an eclipse
|
|
120
|
+
* shorter than the pass — but when it does, the one climbing higher is the one to look
|
|
121
|
+
* for, and the earlier one wins a tie.
|
|
122
|
+
*/
|
|
123
|
+
private visibleStretch;
|
|
124
|
+
/**
|
|
125
|
+
* Narrow the instant where `test` changes value between two samples it disagrees on,
|
|
126
|
+
* `from` the earlier. Halves on whole seconds counted from `from` until the ends are
|
|
127
|
+
* `EDGE_RESOLUTION_MS` apart and returns both ends, so the caller reports the side it
|
|
128
|
+
* means. Counting from a scan sample keeps every probe on the scan's own second grid,
|
|
129
|
+
* so the instant found is the first whole second past the change — what a one-second
|
|
130
|
+
* scan from the same start reports — however the 30-second samples fall around it.
|
|
131
|
+
*/
|
|
132
|
+
private bisect;
|
|
98
133
|
/** How far an instant sits from the element set's epoch, in days, on either side. */
|
|
99
134
|
private epochDistanceDays;
|
|
100
135
|
/**
|
|
@@ -110,9 +145,12 @@ export declare class SatelliteService {
|
|
|
110
145
|
* signature of a reentry rather than of a request that overreached.
|
|
111
146
|
*/
|
|
112
147
|
private objectDecayed;
|
|
113
|
-
/**
|
|
114
|
-
private
|
|
115
|
-
/**
|
|
148
|
+
/** Propagate to one instant and place the satellite in the observer's sky. */
|
|
149
|
+
private sample;
|
|
150
|
+
/**
|
|
151
|
+
* True when the satellite is in sunlight at a sample — Earth covers less than half the
|
|
152
|
+
* solar disc. Reads the sample's own position, so it costs no propagation.
|
|
153
|
+
*/
|
|
116
154
|
private isSunlit;
|
|
117
155
|
/** True when the observer's sky is dark enough (Sun below civil dusk) for a naked-eye pass. */
|
|
118
156
|
private isGroundDark;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"satellite-service.d.ts","sourceRoot":"","sources":["../../../src/services/satellite/satellite-service.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"satellite-service.d.ts","sourceRoot":"","sources":["../../../src/services/satellite/satellite-service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAwBtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EACL,KAAK,UAAU,EAKf,KAAK,mBAAmB,EACzB,MAAM,YAAY,CAAC;AAuJpB,qBAAa,gBAAgB;IAIzB,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,UAAU;IAL7B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAuC;IAE7D,YACmB,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,EACjC;IAEJ,oFAAoF;IAC9E,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,CASxE;IAED;;;;;;;OAOG;IACG,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC,UAAU,C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