Yearly forecast: solar return, transits, progressions, profection, eclipses
CI / test (push) Successful in 56s
CI / build (push) Successful in 4m41s
CI / deploy (push) Skipped

- astro-engine: forecast module (solar return moment, slow-planet transits
  with exact dates and periods, natal house ingresses, secondary
  progressions, annual profection, eclipses via Swiss Ephemeris)
- horoscope-api: POST /v1/forecast, solar return chart cast for the place
  of the birthday
- backend: forecasts table, /v1/charts/{id}/forecasts, /v1/forecasts/{id}
  and its analyses using a new 'forecast' unit; current year of life open,
  the next one 30 days before the birthday
- packages: Páros and Család include forecasts (6 000 / 11 000 Ft),
  +1 éves előrejelzés add-on 2 500 Ft; Egy elemzés unchanged
- worker and prompt: forecast kind with five sections and forecast rules
  (trends, no event predictions); no birth data, place or exact age sent
- frontend: /kepletek/{id}/elorejelzes with the solar return wheel, the
  keys of the year, a monthly timeline, transit list and detailed forecast
- data export: forecasts added, model name removed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
feco
2026-11-18 08:19:13 +00:00
co-authored by Claude Opus 5.5
parent 829c33e52f
commit f1bd34c394
42 changed files with 4764 additions and 85 deletions
+100 -1
View File
@@ -32,6 +32,7 @@ export interface Package {
price_huf: number;
natal: number;
synastry: number;
forecast: number;
persons: number;
badge: string | null;
list_price_huf: number;
@@ -58,6 +59,7 @@ export interface BirthChange {
export interface UnitBalance {
natal: number;
synastry: number;
forecast: number;
}
export interface PublicConfig {
@@ -204,7 +206,7 @@ export interface SynastryListItem {
export interface Analysis {
id: string;
kind: "natal" | "synastry" | "summary";
kind: "natal" | "synastry" | "summary" | "forecast";
status: "pending" | "running" | "done" | "failed";
model: string;
language: string;
@@ -338,3 +340,100 @@ export interface InvitationResult {
id?: string;
url?: string;
}
/** A calculated year in a list (`GET /v1/charts/{id}/forecasts`). */
export interface ForecastSummary {
id: string;
chart_id: string;
year: number;
/** First and last day, `YYYY-MM-DD`. */
start: string;
end: string;
place: string | null;
/** Reckoned at the birth place. */
birth_place: boolean;
created_at: string;
}
export interface ForecastList {
/** Years that can be calculated now. */
years: number[];
birth_place: string | null;
time_known: boolean;
forecasts: ForecastSummary[];
}
export interface ForecastExact {
date: string;
retrograde: boolean;
}
/** A transiting or progressed planet in aspect to a natal point. */
export interface ForecastContact {
planet: string;
natal_point: string;
aspect: string;
nature: "harmonious" | "challenging" | "neutral";
exact: ForecastExact[];
periods?: { start: string; end: string }[];
peak: string;
min_orb: number;
house?: number;
}
export interface HouseIngress {
house: number;
date: string;
retrograde: boolean;
}
export interface Forecast {
start: string;
end: string;
age: number;
profection: {
house: number;
sign: string;
lord: string;
lord_sign: string;
lord_house: number;
planets_in_sign: string[];
} | null;
transits: ForecastContact[];
transit_houses: { planet: string; house_at_start: number; ingresses: HouseIngress[] }[];
progressions: {
bodies: (Position & {
planet: string;
house: number | null;
retrograde: boolean;
approximate: boolean;
sign_changes: { sign: string; date: string }[];
house_changes: HouseIngress[];
})[];
lunar_phase: string;
lunar_phase_change: { phase: string; date: string } | null;
contacts: ForecastContact[];
};
eclipses: (Position & {
date: string;
kind: "solar" | "lunar";
eclipse_type: "total" | "annular" | "hybrid" | "partial" | "penumbral";
house: number | null;
contacts: { point: string; aspect: string; orb: number }[];
})[];
warnings?: string[];
}
export type SolarReturn = ChartResult & {
moment_utc: string;
local_time: string;
timezone: string;
utc_offset: string;
natal_house_of_ascendant: number | null;
};
/** One calculated year (`GET /v1/forecasts/{id}`). */
export interface ForecastDetail extends ForecastSummary {
location: { country: string; place?: string; geonames_id?: number } | null;
result: { year: number; solar_return: SolarReturn | null; forecast: Forecast };
}