@zodiacs/engine 1.0.0 → 1.1.0

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.
Files changed (70) hide show
  1. package/CHANGELOG.md +1020 -0
  2. package/LICENSING.md +168 -27
  3. package/NOTICE +78 -12
  4. package/README.md +288 -44
  5. package/dist/{api-WbxJ4Wj-.d.ts → api-ChL1N2Sr.d.ts} +33 -2
  6. package/dist/{ayanamsa--YQ46fET.d.ts → ayanamsa-ClFzkKmV.d.ts} +2 -1
  7. package/dist/calc.d.ts +90 -4
  8. package/dist/calc.js +360 -126
  9. package/dist/chunk-2PZYJQV5.js +83 -0
  10. package/dist/{chunk-7TRLIFFI.js → chunk-4XOYTBLS.js} +1 -1
  11. package/dist/chunk-767FTO7O.js +48 -0
  12. package/dist/{chunk-YIITY7Q7.js → chunk-7Y2F2IWN.js} +19 -17
  13. package/dist/{chunk-OG4OYTJJ.js → chunk-B4M2Y7FT.js} +1 -129
  14. package/dist/{chunk-PFGUCNOK.js → chunk-BMDASNPB.js} +6 -6
  15. package/dist/chunk-I3L4POY7.js +18 -0
  16. package/dist/{chunk-CHSYDKBL.js → chunk-LNGURVNH.js} +3 -3
  17. package/dist/{chunk-DMGHYCDI.js → chunk-NNOSOOWS.js} +1 -1
  18. package/dist/chunk-OVXQQEXL.js +41 -0
  19. package/dist/{chunk-SRXBTP5H.js → chunk-QLIEEICB.js} +201 -190
  20. package/dist/chunk-RMBWKZI2.js +130 -0
  21. package/dist/{chunk-FTX3JDJA.js → chunk-TZVPZHZM.js} +42 -23
  22. package/dist/{chunk-WS3TDSP3.js → chunk-WBTWY2OB.js} +7 -3
  23. package/dist/chunk-Y4E3WJU5.js +87 -0
  24. package/dist/chunk-YPU3MDNI.js +852 -0
  25. package/dist/conventions.d.ts +70 -0
  26. package/dist/conventions.js +26 -0
  27. package/dist/crossings.d.ts +15 -4
  28. package/dist/de440-pack.d.ts +43 -0
  29. package/dist/de440-pack.js +16 -0
  30. package/dist/de440.d.ts +113 -0
  31. package/dist/de440.js +19 -0
  32. package/dist/ephemeris-exTSqBgb.d.ts +60 -0
  33. package/dist/geo.d.ts +16 -4
  34. package/dist/geo.js +2 -2
  35. package/dist/{houses-CFERsAlK.d.ts → houses-Bh7GCnPi.d.ts} +3 -3
  36. package/dist/houses-extra.d.ts +5 -4
  37. package/dist/index.d.ts +8 -6
  38. package/dist/index.js +40 -28
  39. package/dist/{internal-math-DJJ8BYex.d.ts → internal-math-CxenuGfm.d.ts} +2 -2
  40. package/dist/internal-math.d.ts +4 -3
  41. package/dist/internal-math.js +14 -12
  42. package/dist/internal.d.ts +16 -7
  43. package/dist/internal.js +25 -4
  44. package/dist/lite-composite.js +114 -0
  45. package/dist/lite-declinations.js +253 -0
  46. package/dist/lite-dignities.js +333 -0
  47. package/dist/lite-sect.js +72 -0
  48. package/dist/lite.d.ts +82 -0
  49. package/dist/lite.js +4 -0
  50. package/dist/receipt.d.ts +3 -2
  51. package/dist/receipt.js +143 -65
  52. package/dist/{rulers-Dla6h_Sm.d.ts → rulers-CSSWtiWF.d.ts} +1 -1
  53. package/dist/sky.d.ts +4 -3
  54. package/dist/sky.js +17 -10
  55. package/dist/techniques.d.ts +102 -6
  56. package/dist/techniques.js +131 -56
  57. package/dist/time-bands-CZA9AlLg.d.ts +36 -0
  58. package/dist/time-scale-DIFNa0gz.d.ts +47 -0
  59. package/dist/time.d.ts +81 -0
  60. package/dist/time.js +74 -0
  61. package/dist/timing.d.ts +6 -5
  62. package/dist/timing.js +24 -17
  63. package/dist/types-DpPdtXgO.d.ts +335 -0
  64. package/dist/vedic.d.ts +112 -4
  65. package/dist/vedic.js +369 -14
  66. package/dist/window.d.ts +22 -2
  67. package/dist/window.js +86 -28
  68. package/dist/{zone-history-ghdyO0Sc.d.ts → zone-history-BxmDCcTK.d.ts} +32 -10
  69. package/package.json +24 -3
  70. package/dist/types-B-yb_tGL.d.ts +0 -240
package/README.md CHANGED
@@ -4,26 +4,108 @@ Pure TypeScript astrology calculations for browsers and Node.js. The package
4
4
  computes tropical planetary positions, natal charts, transit snapshots,
5
5
  synastry, secondary progressions, Moon phase, and Saturn-return seasons, and,
6
6
  in separate entries, one calculation API over frames, centers and
7
- corrections with bounds and receipts, birth-time windows, house positions and
8
- cusp speeds, rise, set and transit times and planetary hours, returns and
9
- relationship charts, Hellenistic timing techniques, and sidereal positions
10
- and Jyotish techniques. Its calculations are synchronous; only loading a zone's
11
- history before 1970 (`prepareLocalTime`) and the GeoNames client, both in
12
- `@zodiacs/engine/geo`, are asynchronous. It is ESM-only, has no import-time
13
- side effects, and performs no network request from its core entry point. Its
14
- one runtime side effect is the ΔT it installs in astronomy-engine (see Time
15
- below).
16
-
17
- **1.0.0**, the first stable release: 1.0.0-rc.2 with the version changed,
18
- the same API and the same values (CHANGELOG.md). The package follows Semantic
19
- Versioning: [docs/versioning.md](docs/versioning.md) says what is public, how
20
- a number may change, which records stay readable and how something public is
7
+ corrections with bounds, time bands and receipts, birth-time windows, house
8
+ positions and cusp speeds, rise, set and transit times and planetary hours,
9
+ returns and relationship charts, Hellenistic timing techniques, sidereal
10
+ positions and Jyotish techniques, the time basis and the frame of date
11
+ without the ephemeris, and declination parallels, sect, composite midpoints
12
+ and dignities without it. Its calculations are synchronous; only loading a
13
+ zone's history before 1970 (`prepareLocalTime`) and the GeoNames client,
14
+ both in `@zodiacs/engine/geo`, are asynchronous. It is ESM-only, has no
15
+ import-time side effects, and performs no network request from its core
16
+ entry point. Its one runtime side effect is the ΔT it installs in
17
+ astronomy-engine (see Time below).
18
+
19
+ **1.1.0**, a minor release: 1.1.0-rc.13 with the version changed
20
+ (CHANGELOG.md). It ships a sealed
21
+ pack of JPL's DE440 for 1790 to 2210 and computes on it by default: a plain
22
+ `natalChart`, `positions`, `calc` or `birthWindow` call, with nothing opened
23
+ or supplied, takes the Sun, the Moon, the planets and the true node from the
24
+ pack, and the result names it (`chart.ephemeris`). On that default the Sun,
25
+ the Moon and the planets are within 1″ of JPL Horizons (DE441) at all 240
26
+ position vectors of the repository's conformance suite, 24 instants from 1851
27
+ to 2148, the largest difference 0.0127″ (`src/de440-default.test.ts`); on
28
+ astronomy-engine, which every release through 1.1.0-rc.7 computed on, 48 of
29
+ the 240 are. **Positions change against those releases**, by the difference
30
+ between the two ephemerides. At one instant a day (noon TT) from 1800 to
31
+ 2199 the largest is 29.19″ of ecliptic longitude for the Sun, the Moon and
32
+ the planets (Pluto, on 2199-12-31) and 32.64″ for the true node
33
+ (CHANGELOG.md has each body's). That is the largest at those instants, not a
34
+ limit: near the Sun a planet moves more, because the pack bends its light by
35
+ the Sun and astronomy-engine does not (at most 1.7512″, at the Sun's limb). From
36
+ 1.1.0-rc.12 the pack bends no light from a planet behind the Sun's disc, as
37
+ NASA JPL's Horizons system does not, a convention this package follows
38
+ from Horizons and credits to NASA JPL (`NOTICE`): at every passage behind the disc from 1800 to 2199
39
+ (393 passages, 3,490 instants inside the disc) the pack's place is within
40
+ 0.0023″ of Horizons's, taken relative to the Sun, where the formula of
41
+ 1.1.0-rc.10 and rc.11, which bent the light there too, is up to 333.48″ from it
42
+ (Mercury; reduced from `de440.bsp`)
43
+ ([docs/de440.md](docs/de440.md), *Behind the Sun's disc*;
44
+ `docs/evidence/1.1.0-rc.12-20261115/near-sun/`).
45
+ **No fallback is silent**: outside 1790-01-02 to 2209-12-31, or if the pack
46
+ cannot be opened, the engine computes on astronomy-engine, and the result
47
+ says so with a flag (`"outside-de440-span"`, `"de440-unavailable"`) and by
48
+ naming astronomy-engine as its ephemeris. A function that returns a bare
49
+ value (a `Date`, a number, a list) cannot carry that label, so it has a
50
+ labelled form beside it: `searchLongitudeCrossings` for
51
+ `findLongitudeCrossings`, and from 1.1.0-rc.11 `solarReturnInstantDetailed`,
52
+ `mostRecentSolarReturnInstantDetailed`, `lunarReturnInstantDetailed` and
53
+ `moonSignsBetweenDetailed` in `@zodiacs/engine/techniques`, which return
54
+ `{ value, ephemeris, flags }` ([docs/de440.md](docs/de440.md)). From
55
+ 1.1.0-rc.12 `chartPoints` and `chartDeclinations` carry their chart's
56
+ `ephemeris` and fallback `flags` too, given a birth or a chart.
57
+ `setDefaultEphemeris("astronomy-engine")` gives earlier releases' positions
58
+ everywhere, named and not flagged. From 1.1.0-rc.10 `@zodiacs/engine/calc`
59
+ (`calc`, `chart`, `events`) and `birthWindow` compute on the pack too, so
60
+ they agree with `natalChart`; what `calc()` gives beyond the apparent
61
+ geocentric place (other centers and corrections, the Earth) and the sky
62
+ entry's rising and setting still compute on astronomy-engine whatever the
63
+ default, so none is a fallback: a calc receipt names astronomy-engine, and
64
+ the sky entry's results name no ephemeris ([docs/de440.md](docs/de440.md)). The pack makes the package about four times larger unpacked
65
+ (4,581,449 bytes against 1.1.0-rc.7's 1,152,017), and an application
66
+ that bundles the root entry bundles the pack's 3,319,552 characters (see
67
+ [docs/de440.md](docs/de440.md) and CHANGELOG.md). 1.1.0-rc.9 was
68
+ 1.1.0's first draft, superseded before review; 1.1.0-rc.10,
69
+ 1.1.0-rc.11 and 1.1.0-rc.12 were drafts on the same pull request, reviewed
70
+ and replaced, and this release is 1.1.0-rc.13 with
71
+ the version changed;
72
+ 1.1.0-rc.8 was a draft
73
+ that shipped the pack behind `withEphemeris` only, withdrawn, and its
74
+ number is not used again. From 1.1.0-rc.7 the error limits
75
+ `@zodiacs/engine/calc` quotes for geocentric
76
+ positions come from DE440 on every day from 1800 through 2199 (CHANGELOG.md).
77
+ From 1.1.0-rc.6 a birth in an hour the clock showed twice can take the
78
+ later pass (`fold: "later"` in `@zodiacs/engine/geo`; see
79
+ [docs/time.md](docs/time.md)).
80
+ 1.1.0-rc.4 and 1.1.0-rc.5 were drafts that were not merged (CHANGELOG.md).
81
+ 1.1.0-rc.3 added
82
+ `@zodiacs/engine/de440`, positions from JPL's DE440 through a pack the caller
83
+ supplies, which the root's `withEphemeris` puts in place of the default
84
+ source; with `@zodiacs/engine/de440/pack` there are seventeen public entry
85
+ points (see [docs/de440.md](docs/de440.md)). Over
86
+ 1.0.0, natal receipts name their conventions as ids of the Zodiacs
87
+ conventions registry, which a new entry, `@zodiacs/engine/conventions`,
88
+ gives (from 1.1.0-rc.1; see *Draft natal receipts*). 1.1.0-rc.2 added two
89
+ entries that load no ephemeris, `@zodiacs/engine/time` and
90
+ `@zodiacs/engine/lite`; time bands in
91
+ `@zodiacs/engine/calc`; how far the birth time can move before each varga
92
+ sign changes; and corrections of statements that said more than their
93
+ evidence (CHANGELOG.md). The package follows Semantic Versioning:
94
+ [docs/versioning.md](docs/versioning.md) says what is public, how a number
95
+ may change, which records stay readable and how something public is
21
96
  deprecated, and `api/` holds each public entry point's declarations.
97
+ Install it from npm:
22
98
 
23
99
  ```sh
24
100
  npm install @zodiacs/engine
25
101
  ```
26
102
 
103
+ 1.0.0, npm's `latest` before this release, has no `./conventions`, `./time`,
104
+ `./lite`, `./de440` or DE440 pack, computes on astronomy-engine and writes no
105
+ ids. Until this release is published, `artifacts/zodiacs-engine-1.1.0.tgz`
106
+ in the repository, with its SHA-256 receipt, is the exact archive the Release
107
+ workflow publishes.
108
+
27
109
  The Release workflow publishes the archive carried in `artifacts/` as it is,
28
110
  with provenance (CONTRIBUTING.md, *Releases*). Before 1.0.0 npm carried
29
111
  0.1.1-rc.14 to 0.1.1-rc.16. 0.1.1-rc.17, 1.0.0-rc.1 and 1.0.0-rc.2 were never
@@ -45,7 +127,7 @@ themselves and are not affected.
45
127
 
46
128
  From a source checkout, run `npm ci` and `npm run build`, then
47
129
  `npm pack --ignore-scripts`. Test the packed file in a clean consumer using
48
- `npm run consumer:smoke -- /absolute/path/to/zodiacs-engine-1.0.0.tgz`.
130
+ `npm run consumer:smoke -- /absolute/path/to/zodiacs-engine-1.1.0.tgz`.
49
131
  The smoke check
50
132
  downloads the artifact's public dependencies and TypeScript 5.9.3; its output
51
133
  records the artifact hash and runtime, and it removes its temporary consumer
@@ -103,9 +185,20 @@ gained a conventions set that names the nutation; rc.15's receipts stay
103
185
  readable. As in rc.15, a chart's instant is read on a time basis: from 1972
104
186
  to 2027-10-02 as UTC, with TT from the leap seconds and UT1 from IERS
105
187
  UT1 − UTC, and otherwise as UT1 with the ΔT model, or on UT1 or TT when
106
- `timeScale` says so (see Time). The ephemeris is still astronomy-engine
107
- 2.1.19. See CHANGELOG.md for the release history and
108
- `docs/evidence/1.0.0-20261011/` for this release's checks (1.0.0-rc.2's are in
188
+ `timeScale` says so (see Time). From 1.1.0-rc.9 the ephemeris is the shipped
189
+ DE440 pack inside its years and astronomy-engine 2.1.19 elsewhere; where this
190
+ document speaks of the ephemeris's accuracy or of its error limits without
191
+ naming DE440, it speaks of astronomy-engine, the fallback and the ephemeris
192
+ of what the pack does not give. See CHANGELOG.md for the release history and
193
+ `docs/evidence/1.1.0-20261116/` for this release's checks
194
+ (1.1.0-rc.13's are in `docs/evidence/1.1.0-rc.13-20261115/`, 1.1.0-rc.12's in
195
+ `docs/evidence/1.1.0-rc.12-20261115/`, 1.1.0-rc.11's and 1.1.0-rc.10's in
196
+ their own dated folders there, 1.1.0-rc.9's, its superseded draft's, are in
197
+ `docs/evidence/1.1.0-rc.9-20261114/`)
198
+ (1.1.0-rc.3's are in `docs/evidence/de440-20261110/`, 1.1.0-rc.2's in
199
+ `docs/evidence/1.1.0-rc.2-20261102/`, 1.1.0-rc.1's in
200
+ `docs/evidence/1.1.0-rc.1-20261026/`, 1.0.0's in
201
+ `docs/evidence/1.0.0-20261011/`, 1.0.0-rc.2's in
109
202
  `docs/evidence/1.0.0-rc.2-20261006/`, 1.0.0-rc.1's in
110
203
  `docs/evidence/1.0.0-rc.1-20261006/`, rc.17's in
111
204
  `docs/evidence/rc17-20261005/`). Site adoption is reviewed separately.
@@ -211,12 +304,53 @@ for (const aspect of today.aspects) {
211
304
  and the speeds of the cusps and the angles (see `docs/houses.md`). It
212
305
  imports no ephemeris and no module of the root entry.
213
306
  - `@zodiacs/engine/vedic` provides the sidereal zodiac: ayanamsas, sidereal
214
- charts, nakshatras, vargas, KP sub-lords and dashas (see `docs/vedic.md`).
307
+ charts, nakshatras, vargas, KP sub-lords and dashas, and, new in
308
+ 1.1.0-rc.2, how far the birth time can move before each varga sign changes
309
+ (`vargaSensitivity`; see `docs/vedic.md`).
215
310
  - `@zodiacs/engine/sky` provides rise, set and transit times for an observer
216
311
  and planetary hours (see `docs/sky.md`).
217
312
  - `@zodiacs/engine/window` partitions a birth-time window into cells within
218
313
  which the chart's signs, houses and aspects are constant (see *Birth-time
219
314
  windows*).
315
+ - `@zodiacs/engine/conventions`, new in 1.1.0-rc.1, gives the ids of the
316
+ conventions registry a natal receipt names, and each id's address (see
317
+ *Draft natal receipts*). It imports no module of another entry point.
318
+ - `@zodiacs/engine/time`, new in 1.1.0-rc.2, gives the clock and the frame of
319
+ date a chart is computed on, and loads no ephemeris: `timeBasis`, an
320
+ instant's UT1 and TT with the `deltaT` and `timeScale` records a chart
321
+ reports; `elapsedDays`; `EPHEMERIS_SPAN`; the frame that turns
322
+ astronomy-engine's vectors to the ecliptic of date: `tilt`,
323
+ `eclipticFrame`, `meanEcliptic` and `eclipticOfDate`; and `timeBands`, the
324
+ 1-σ bands of a recorded instant's TT and UT1 (see *Time*).
325
+ - `@zodiacs/engine/de440`, new in 1.1.0-rc.3: `openDe440Pack` opens a sealed
326
+ pack of Chebyshev series refitted from DE440 that the caller supplies and
327
+ checks it against the SHA-256 it is given, and the root's
328
+ `withEphemeris(source, fn)` runs `fn` with the root's body positions taken
329
+ from it; charts name it, and so do their receipts. The calc entry, the
330
+ window entry, the sky entry's rising and setting and the vedic entry's
331
+ star-anchored ayanamsas and varga timing refuse inside it. The entry fetches nothing; the pack is
332
+ the caller's, or the one the next entry ships (see
333
+ [docs/de440.md](docs/de440.md)).
334
+ - `@zodiacs/engine/de440/pack`, new in 1.1.0-rc.9, gives out the pack the
335
+ package ships and the root computes on by default:
336
+ `de440-1790-2210.v2.zeph`, 2,489,664 bytes, refitted from NAIF's
337
+ `de440.bsp` for 1790 to 2210, as base64 text in one file that this entry
338
+ and the root share. `shippedDe440Source()` opens it, checked against its
339
+ SHA-256, and gives the source (`openShippedDe440Pack()` gives the same one
340
+ as a promise); `de440PackBytes()` gives the bytes and `DE440_PACK`
341
+ describes them. It fetches nothing. A plain root call needs none of this:
342
+ the root's `defaultEphemeris()` says what it computes on, and
343
+ `setDefaultEphemeris("astronomy-engine")` puts it back on astronomy-engine.
344
+ The `withEphemeris` callback must be synchronous (see
345
+ [docs/de440.md](docs/de440.md)).
346
+ - `@zodiacs/engine/lite`, new in 1.1.0-rc.2, gives declination parallels and
347
+ out-of-bounds flags, a chart's sect under a named convention
348
+ (`sectReading`), composite midpoints and their aspects, and the essential
349
+ dignities, and loads no ephemeris. The functions and tables of its
350
+ declination, composite and dignity parts are copies of the root's and
351
+ `@zodiacs/engine/techniques`', with the same results; its sect part
352
+ (`sectReading`, `orientality` and their constants) is new (see
353
+ [docs/lite.md](docs/lite.md)).
220
354
 
221
355
  ### Uniform calculation API
222
356
 
@@ -228,12 +362,40 @@ the ICRS); geocentric, heliocentric, barycentric and topocentric centers;
228
362
  apparent, astrometric or geometric positions with distances and speeds; and
229
363
  the tropical or the sidereal zodiac, with any ayanamsa of
230
364
  `@zodiacs/engine/vedic` or a caller's own (Swiss Ephemeris's `SE_SIDM_USER`).
231
- Results carry bounds and a receipt of convention ids. A measured bound is the
232
- largest difference from JPL Horizons on 32 instants from 1802 to 2188: a
233
- sample maximum, not a limit. In the sidereal zodiac a bound adds the
365
+ Results carry bounds and a receipt of convention ids, which names the
366
+ ephemeris. The apparent geocentric place of the Sun, the Moon and Mercury to
367
+ Pluto, and the true nodes, come from the shipped DE440 pack, as
368
+ `natalChart()`'s do (to the bit, with every default); every other center
369
+ and correction, and the Earth, from astronomy-engine
370
+ ([docs/calc.md](docs/calc.md), *Which ephemeris*). A measured bound is the
371
+ largest difference found, rounded up. For a position from the pack: from JPL
372
+ Horizons at the conformance suite's 240 L1 vectors (the Moon 0.013″, the Sun
373
+ and the planets under 0.004″, in the true ecliptic of date), with no bound
374
+ for its distance, its speed or the true node, which no arbiter has checked
375
+ on the pack. For a position from astronomy-engine: for the geocentric Sun,
376
+ Moon, planets and true nodes, from JPL's DE440 at noon TT on each of the 146,097 days from
377
+ 1800-01-01 to 2199-12-31; for every other center and body, from JPL Horizons
378
+ on 32 instants from 1802 to 2188 (for the mean nodes and Black Moon Lilith,
379
+ from their definitions evaluated with ERFA on the same instants). Its
380
+ `basis` says which. It is a sample maximum, not a limit. In the sidereal
381
+ zodiac a bound adds the
234
382
  ayanamsa's: the largest difference of its mean, and of its rate, from ERFA's
235
383
  construction of the same definition, over every year from 1800 to 2199. An
236
- estimated bound names what it rests on. What this version does not compute
384
+ estimated bound names what it rests on. Results also carry `band`, which is
385
+ not a bound on the error: to first order, how far a position, an angle, a
386
+ cusp or an event's clock label moves when the instant's TT and UT1 move by
387
+ the 1-σ bands its time basis records. An angle's or a cusp's band is its rate
388
+ on UT1 times the UT1 band plus its rate on TT (the frame's precession and
389
+ nutation, the obliquity and a sidereal zodiac's ayanamsa) times the TT band;
390
+ the true nodes' is their speed over ±0.25 day times the TT band, which
391
+ smooths their short-period motion; and a topocentric position's is an upper
392
+ bound on its first-order movement, not that movement. On UTC input from
393
+ 1972-01-01 to 2027-10-02 without a pinned ΔT, TT comes from the leap seconds
394
+ (exactly to 2027-06-28, when the shipped list expires; after it the list's
395
+ last value is carried), so every geocentric, heliocentric and barycentric
396
+ position's band is 0 there, and the band falls on the angles and cusps,
397
+ topocentric positions and each event's UT1 (docs/calc.md, *Bands*).
398
+ Root charts and natal envelopes carry none. What this version does not compute
237
399
  comes back as a typed refusal, such as gravitational deflection, or an
238
400
  instant whose UT1 or TT is outside 1800 to 2200: there calc has no
239
401
  comparison to take a bound from, while the root entry's functions
@@ -244,9 +406,13 @@ mapping and the measured accuracy, is
244
406
  [docs/calc.md](https://github.com/zodiacs-org/engine/blob/main/docs/calc.md).
245
407
 
246
408
  Returned longitudes use degrees in `[0, 360)` and positions include sign and degree
247
- annotations. Charts use the tropical ecliptic of date. Planetary positions are
248
- geocentric and corrected for light time and aberration, but not for the Sun's
249
- gravitational deflection; the Moon's series carries neither correction. The
409
+ annotations. Charts use the tropical ecliptic of date. Positions are
410
+ geocentric. On the shipped DE440 pack, the default, each body's place is
411
+ corrected for light time, the Sun's light deflection (from 1.1.0-rc.12 none
412
+ for a planet behind the Sun's disc, as JPL Horizons) and aberration; on
413
+ astronomy-engine planetary positions are corrected for light time and
414
+ aberration, not for the deflection, and the Moon's series carries neither
415
+ correction. The
250
416
  chart functions do not calculate topocentric parallax; `@zodiacs/engine/calc`
251
417
  gives topocentric positions (`center: { topocentric }`), and
252
418
  `@zodiacs/engine/sky` finds rise and set for a topocentric observer.
@@ -474,6 +640,8 @@ short way round between the two supplied longitudes, reduced exactly modulo
474
640
  (1 + 2⁻⁵⁰ apart), and 1.1 and 0.1 (1 + 3·2⁻⁵⁵), do not. Body labels follow
475
641
  the configured-aspect rule. `eclipticToEquatorial` and `declinationsForBodies`
476
642
  expose the same geometry with an explicitly supplied obliquity.
643
+ `@zodiacs/engine/lite` carries copies of these, and of `findDeclinationAspects`,
644
+ that load no ephemeris ([docs/lite.md](docs/lite.md)).
477
645
 
478
646
  These are derived coordinates of the existing ephemeris, with its existing
479
647
  corrections and limits. They do not establish the programme's 0.01″ physical
@@ -551,10 +719,15 @@ Every chart gets those three. The Vertex, the East Point, the sect and the
551
719
  lots need a birth time and place.
552
720
 
553
721
  - The Vertex and the East Point come from the instant and the place, not from a
554
- supplied chart's angles. Given Swiss's sidereal time, latitude and obliquity,
555
- they agree with its `swe_houses_armc` to within 0.00001″.
722
+ supplied chart's angles. On the conformance suite's ten L2 vectors for them,
723
+ from 1833 to 2182 at latitudes from 60° S to 60° N, whose arbiter is ERFA's
724
+ sidereal time and obliquity with each point's published definition, they are
725
+ within 0.014″ and 0.007″ (`conformance/RESULTS.md`, which rounds to the
726
+ nearest 0.001″, and `conformance/results/summary.json`).
556
727
  - The sect is day when the Sun is between the descendant and the ascendant
557
- through the midheaven.
728
+ through the midheaven. `sectReading`, in `@zodiacs/engine/lite`, reads the
729
+ sect under the convention a caller names: this one, or the Sun's altitude
730
+ ([docs/lite.md](docs/lite.md)).
558
731
  - The lots use the chart's own ascendant and bodies. Each is the ascendant plus
559
732
  the arc between two points, taken as Paulus gives it by day and reversed by
560
733
  night. Ptolemy's Fortune, which does not reverse, is `asc + moon − sun`.
@@ -570,7 +743,10 @@ arcminutes from Swiss's.
570
743
 
571
744
  ### Input flag compatibility
572
745
 
573
- Public birth inputs accept all six `ChartFlag` values. Supply an array with at
746
+ Public birth inputs accept all nine `ChartFlag` values: the six below,
747
+ `delta-t-extrapolated` (see Time) and the two fallback flags,
748
+ `de440-unavailable` and `outside-de440-span`, each of which a caller may echo
749
+ only where the calculation derives it. Supply an array with at
574
750
  most 64 entries; entries must be known string values in ordinary data slots.
575
751
  Repeated values collapse in first-occurrence order. Unknown strings, sparse
576
752
  slots, accessor slots, non-array iterables and simultaneous `dst-gap`/`dst-fold`
@@ -659,9 +835,13 @@ before it; a sampled plateau on the target is returned where it begins.
659
835
  Offsets of 90° or more on either side of a step are the far side of the circle,
660
836
  not a crossing.
661
837
 
662
- A fixed step alone loses both crossings when a station falls between two
663
- samples just past the target: at 5 days, a Saturn station within 0.0103° of
664
- it, or a Jupiter station within 0.0205°. Wherever the sampled motion turns
838
+ A fixed step alone can lose both crossings when a station takes the body
839
+ less than |f″|h²/8 past the target, f″ being the second derivative of its
840
+ longitude at the station and h the step, since both crossings can then fall
841
+ between two samples: at 5 days, up to 0.0056° for Saturn and 0.011° for
842
+ Jupiter at their stations from 2019 to 2024
843
+ (`docs/evidence/1.1.0-rc.2-20261102/f89/blind-band.json`).
844
+ Wherever the sampled motion turns
665
845
  without the offset changing sign, and the turning sample is within reach of the
666
846
  local curvature, the solver finds the extremum by golden-section search. It
667
847
  bisects both crossings when the extremum passes the target, and returns one,
@@ -774,6 +954,30 @@ and none extra, and natalChart confirmed every switch at its millisecond
774
954
  (`docs/evidence/birth-window/RESULTS.md`); on rc.16's build, after the time
775
955
  basis and the nutation, again (`docs/evidence/birth-window/rc16/`).
776
956
 
957
+ **On the shipped DE440 pack** (from 1.1.0-rc.10). A window is computed on
958
+ the source a plain `natalChart` uses, which inside `REFERENCE_SPAN` is the
959
+ pack, and says so: `result.ephemeris` names it, or names astronomy-engine,
960
+ with the flag `de440-unavailable` when that is a fallback. Everything this
961
+ section measures above was measured on astronomy-engine, where the search is
962
+ unchanged. On the pack three things differ. The true node comes from the
963
+ pack's own velocity and does not jitter: over 3,000 consecutive milliseconds
964
+ at each of 29,220 epochs it stays within 4.5e-12° of a quadratic, so an
965
+ ingress does not flicker. The pack's positions step where a read passes
966
+ from one of its Chebyshev records to the next: the true node by up to
967
+ 1.11″, more than J, the Moon by up to 0.0011″; the search takes each such
968
+ instant, a few in 48 hours, as a seam, like a step of the time basis. And
969
+ near the Sun the pack bends a planet's light, by at most 1.7512″ outside the
970
+ Sun's disc and, from 1.1.0-rc.12, not at all behind it, so within a degree
971
+ of the Sun the search takes that deflection as a displacement of at most
972
+ 1.8″, as it takes the node's jitter. The rate scan on the pack holds every
973
+ bound with its margin, bound over largest rate plus what its grid can miss
974
+ 1.634 to 2.057 (`docs/evidence/1.1.0-rc.12-20261115/window/`). Through
975
+ 1.1.0-rc.11 the pack bent light behind the disc too, Neptune's place moved
976
+ at 1.85 times its bound behind the Sun on 1920-08-04, and the search raised
977
+ its bounds there and compared single milliseconds within 0.01° of the Sun's
978
+ centre; from 1.1.0-rc.12 it does neither, and `src/window-de440.test.ts`
979
+ holds a window across each limb and the centre of a passage to natalChart.
980
+
777
981
  In one thread, a 10-minute window takes about 2 ms, two hours about 20 ms and
778
982
  a whole day about 0.23 s (medians, Node.js 22; `timing.json`). A window over a
779
983
  node ingress takes from seconds to a few minutes, as the node is compared at
@@ -875,7 +1079,17 @@ planets on Terrestrial Time (TT). `utc` is on UTC unless `timeScale` says
875
1079
  ut1MinusUtc, leapSeconds }`). `@zodiacs/engine/deltat` exports the model with
876
1080
  no dependencies. astronomy-engine keeps one ΔT for its whole module; every
877
1081
  engine call leaves the model installed, and code that calls astronomy-engine
878
- directly should install it too: `SetDeltaTFunction(deltaT)`.
1082
+ directly should install it too: `SetDeltaTFunction(deltaT)`. Such code can
1083
+ take the engine's clock and frame of date from `@zodiacs/engine/time`, which
1084
+ loads no ephemeris ([docs/time.md](docs/time.md), *Without the ephemeris*).
1085
+ Its `timeBands` turns a record's two bands, `deltaT.sigma` and
1086
+ `timeScale.ut1MinusUtc.sigma`, into the 1-σ bands of the TT and the UT1 the
1087
+ engine used: on UTC input from 1972-01-01 to 2027-10-02 without a pinned ΔT,
1088
+ TT comes from the leap seconds (exactly to 2027-06-28, when the shipped list
1089
+ expires; after it the list's last value is carried, with no band for a leap
1090
+ second not yet announced), so its band is 0, and UT1 carries the band of
1091
+ UT1 − UTC; with a pin, TT is UT1 plus the pin and takes UT1's band
1092
+ ([docs/time.md](docs/time.md), *The time bands*).
879
1093
 
880
1094
  `@zodiacs/engine/geo` reads wall times before 1970 on the tzdb 2025c history
881
1095
  with backzone, shipped as 16 lazily imported chunks: `prepareLocalTime(date,
@@ -883,8 +1097,13 @@ timeZone)` loads the one a zone needs, and a wall time before 1970 throws until
883
1097
  it has. From 1970 the host's Intl answers. A `longitude` reads a time in a
884
1098
  zone's local mean time era on the birthplace's own mean time; `calendar:
885
1099
  "julian"` takes an Old Style date, and `country` adds a note from the country's
886
- Gregorian adoption. Each resolution names the tzdb version, the transition
887
- behind the offset and its cause (`dst`, `legal-change` or `date-line`).
1100
+ Gregorian adoption. A wall time the clock showed twice takes its first pass,
1101
+ or its second with `fold: "later"` (from 1.1.0-rc.6). Each resolution names the tzdb version (the host's where
1102
+ its Intl answered, null when the runtime does not report one) and, where
1103
+ there is one, the transition behind the offset with its cause (`dst`,
1104
+ `legal-change` or `date-line`): the jump's in a gap or fold, or, where the
1105
+ shipped history answered, the last change it records before the time. From
1106
+ 1970, outside a gap or fold, the transition is null.
888
1107
  [docs/time.md](docs/time.md) describes every field.
889
1108
 
890
1109
  ## Nutation
@@ -912,7 +1131,12 @@ sidereal angle.
912
1131
 
913
1132
  ## Accuracy and licensing
914
1133
 
915
- The ephemeris is powered by the MIT-licensed `astronomy-engine`. Tests compare
1134
+ By default the positions come from a sealed pack refitted from the Jet
1135
+ Propulsion Laboratory's DE440 planetary and lunar ephemeris (Park, Folkner,
1136
+ Williams and Boggs 2021), which [NOTICE](NOTICE) credits and cites; the pack
1137
+ is Zodiacs.org's work, and JPL has not reviewed or endorsed it. Outside the
1138
+ pack's years, and for what its reduction does not give, the ephemeris is the
1139
+ MIT-licensed `astronomy-engine`. Tests compare
916
1140
  modern and historical positions with public JPL Horizons vectors and exercise
917
1141
  astronomical and geometric invariants. See [LICENSING.md](LICENSING.md) for the
918
1142
  full provenance audit and the explicit Swiss Ephemeris exclusion.
@@ -923,7 +1147,8 @@ Table S15 in the package's ΔT module (`@zodiacs/engine/deltat`, which the build
923
1147
  places in a shared chunk under `dist/` that `dist/deltat.js` re-exports) are
924
1148
  CC BY 4.0, attributed in [NOTICE](NOTICE).
925
1149
 
926
- The npm package contains no place database. It carries tzdb 2025c's zone
1150
+ The npm package contains no place database. It carries the DE440 pack
1151
+ (2,489,664 bytes), tzdb 2025c's zone
927
1152
  histories before 1970, the IERS leap-second list, an IERS UT1 − UTC table, a
928
1153
  table of Gregorian adoption dates from public-domain sources, 22 catalogue
929
1154
  values for the stars of the Vedic ayanamsas, and the IAU 2000B nutation series
@@ -939,7 +1164,8 @@ package implementation while keeping its scanner-oriented functions and lazy
939
1164
  bundle boundary intact. They are not covered by semantic-versioning guarantees;
940
1165
  third-party code must use the documented entry points: the root, `/calc`,
941
1166
  `/geo`, `/houses`, `/sky`, `/techniques`, `/timing`, `/vedic`, `/window`,
942
- `/receipt`, `/crossings` and `/deltat`.
1167
+ `/receipt`, `/conventions`, `/crossings`, `/deltat`, `/time`, `/lite`,
1168
+ `/de440` and `/de440/pack`.
943
1169
 
944
1170
  ## GeoNames request recovery
945
1171
 
@@ -1029,7 +1255,7 @@ The time-basis sets, written from 0.1.1-rc.15 on, also record the instant's
1029
1255
  scale (`receipt.timeScale`) and its time basis (`result.timeScale`), and a
1030
1256
  local resolution records the calendar, the tzdb version and form, the clock,
1031
1257
  the transition behind the offset and any birthplace mean time, each checked
1032
- against the offsets and flags. The current set, written from 0.1.1-rc.16 on,
1258
+ against the offsets and flags. The set written from 0.1.1-rc.16 to 1.0.0
1033
1259
  also names the nutation, the engine's IAU 2000B (`nutation`), and takes the
1034
1260
  Moon from astronomy-engine's geocentric series turned by the engine's frame
1035
1261
  (`moonPosition`); rc.15's set, which does not name the nutation, stays
@@ -1038,10 +1264,28 @@ as UT1, stay readable and replay as UTC requests (see docs/time.md). A
1038
1264
  receipt's engine, ephemeris and package versions must be SemVer 2.0.0
1039
1265
  versions. The codec accepts an earlier set only under the versions that wrote
1040
1266
  it, rc.15's under 0.1.1-rc.15 alone, and compares the engine's version in
1041
- SemVer order with 0.1.1-rc.16, which brought the current set, and with the
1042
- releases that brought each house system: a receipt of the current set that
1043
- names a version before 0.1.1-rc.16, such as 0.1.1-rc.15.1 or 0.1.1-beta, is
1044
- refused.
1267
+ SemVer order with the release that brought each set and each house system: a
1268
+ receipt names the engine that computed its chart, so rc.16's set and the
1269
+ current one are accepted from 0.1.1-rc.16 on, and one that names a version
1270
+ before it, such as 0.1.1-rc.15.1 or 0.1.1-beta, is refused.
1271
+
1272
+ The current set, written from 1.1.0-rc.1 on, is rc.16's with
1273
+ `conventionIds`, and its receipts list, as `receipt.conventionIds`, every id in
1274
+ the syntax of the Zodiacs conventions registry
1275
+ ([zodiacs.org/developers/conventions](https://zodiacs.org/developers/conventions/))
1276
+ that the receipt and its result name, in code-unit order, each once: each
1277
+ conventions and coverage field's key and value (`zodiac:tropical`), the
1278
+ requested and actual house systems (`house:placidus`), why there are no
1279
+ houses, each flag, the reference, the instant's scale (`time-scale:utc`), the
1280
+ ephemeris (`ephemeris:astronomy-engine@2.1.19`), and the result's ΔT model and
1281
+ segment, time basis and source of UT1 − UTC (`time-basis:iers`). The codec
1282
+ refuses ids that differ from those the envelope's fields name. Its envelopes
1283
+ require the feature `convention-ids`, so an earlier engine refuses them as
1284
+ `unsupported_feature` (docs/versioning.md). `@zodiacs/engine/conventions`
1285
+ exports the rule as `natalConventionIds(envelope)`, which also names a 1.0.0
1286
+ envelope's ids, with `conventionId`, `parseConventionId` (the value is
1287
+ everything after the first colon) and `conventionAddress`, an id's address on
1288
+ the registry's page; each throws a `RangeError` for a malformed id.
1045
1289
 
1046
1290
  `natalReplayInput` recovers the recorded request. It does not select or install
1047
1291
  the original engine. Recalculation with another engine, ephemeris dependency or
@@ -1,5 +1,5 @@
1
1
  import { DeltaT } from './deltat.js';
2
- import { B as BodyName, D as DateInput, d as Chart, h as BirthInput, i as ChartPoints, M as MoonPhase, c as BodyPosition, S as SynastryResult, j as TransitResult } from './types-B-yb_tGL.js';
2
+ import { E as EphemerisFallback, B as BodyName, e as DateInput, d as Chart, h as BirthInput, i as ChartPoints, M as MoonPhase, c as BodyPosition, S as SynastryResult, T as TransitResult } from './types-DpPdtXgO.js';
3
3
  import { LongitudeCrossing, CrossingSearchOptions, CrossingSearchResult } from './crossings.js';
4
4
 
5
5
  /** Geometry over full ecliptic positions; no independent ephemeris is implied. */
@@ -112,6 +112,21 @@ interface ChartDeclinations extends Declinations {
112
112
  utc: string;
113
113
  /** The evaluated provider Delta-T used to obtain true obliquity. */
114
114
  deltaT: DeltaT;
115
+ /**
116
+ * From 1.1.0-rc.12: the ephemeris of the chart the rows were derived from,
117
+ * its own `ephemeris`; null for a supplied chart that names none (one from
118
+ * 1.1.0-rc.9 or earlier).
119
+ */
120
+ ephemeris: {
121
+ readonly name: string;
122
+ readonly version: string;
123
+ } | null;
124
+ /**
125
+ * From 1.1.0-rc.12: the chart's fallback flags (`EphemerisFallback`): where
126
+ * its bodies are astronomy-engine's as a fallback from the shipped pack,
127
+ * the rows are too, and say so here.
128
+ */
129
+ flags: EphemerisFallback[];
115
130
  }
116
131
  /**
117
132
  * Rotate full ecliptic longitude/latitude into the equator associated with the
@@ -145,6 +160,19 @@ interface SaturnReturnResult {
145
160
  natalLon: number;
146
161
  natalRetrograde: boolean;
147
162
  seasons: ReturnSeason[];
163
+ /**
164
+ * The ephemeris the result's positions came from, as a BodyPosition names it; set by `saturnReturn` from
165
+ * 1.1.0-rc.10. From 1.1.0-rc.12 it is astronomy-engine wherever `flags` holds a fallback, a search that ran
166
+ * past an end of the shipped DE440 pack included; in rc.10 and rc.11 it named natal Saturn's ephemeris there.
167
+ */
168
+ ephemeris?: string;
169
+ /**
170
+ * Each kind of fallback from the shipped DE440 pack to astronomy-engine
171
+ * that the natal position or the search to about age 92 met, or none: a
172
+ * search that runs past the pack's last year reports `"outside-de440-span"`.
173
+ * Set by `saturnReturn` from 1.1.0-rc.10.
174
+ */
175
+ flags?: EphemerisFallback[];
148
176
  }
149
177
  /**
150
178
  * Every instant in (from, to] when `body` sits exactly on `targetLongitude`,
@@ -161,7 +189,10 @@ declare function findLongitudeCrossings(body: BodyName, targetLongitude: number,
161
189
  * {@link findLongitudeCrossings} under an optional budget of ephemeris
162
190
  * evaluations, `maxSamples`, with the step as `stepDays` (default 5). Over
163
191
  * budget, it returns `{ status: "refused", reason: "sample-budget" }` with no
164
- * crossings rather than throwing.
192
+ * crossings rather than throwing. A complete result carries `flags`: each
193
+ * kind of fallback from the shipped DE440 pack to astronomy-engine that a
194
+ * longitude of the search met (`EphemerisFallback`), or none.
195
+ * `findLongitudeCrossings` returns the bare crossings and cannot say.
165
196
  */
166
197
  declare function searchLongitudeCrossings(body: BodyName, targetLongitude: number, from: DateInput, to: DateInput, options?: CrossingSearchOptions): CrossingSearchResult;
167
198
  declare function groupIntoSeasons(crossings: readonly LongitudeCrossing[], gapDays?: number): ReturnSeason[];
@@ -1,5 +1,6 @@
1
1
  import { DeltaT } from './deltat.js';
2
- import { T as TimeScaleName, e as TimeScale, D as DateInput } from './types-B-yb_tGL.js';
2
+ import { a as TimeScaleName, T as TimeScale } from './time-scale-DIFNa0gz.js';
3
+ import { e as DateInput } from './types-DpPdtXgO.js';
3
4
 
4
5
  /** The precession model of an epoch value: the engine's IAU 2006, Newcomb's (Kinoshita 1975) or IAU 1976. */
5
6
  type AyanamsaPrecessionModel = "engine" | "newcomb" | "iau1976";