kaabalah 6.13.0 → 6.14.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 (41) hide show
  1. package/dist/chunk-4PVIDUPI.js +3809 -0
  2. package/dist/chunk-4PVIDUPI.js.map +1 -0
  3. package/dist/{chunk-MWHMP3LI.js → chunk-7C7VO76O.js} +437 -7
  4. package/dist/chunk-7C7VO76O.js.map +1 -0
  5. package/dist/{chunk-ZE2KPCHT.mjs → chunk-OZUEDZ4U.mjs} +76 -2
  6. package/dist/chunk-OZUEDZ4U.mjs.map +1 -0
  7. package/dist/{chunk-V5KXYFHZ.mjs → chunk-QQN54SLY.mjs} +427 -6
  8. package/dist/chunk-QQN54SLY.mjs.map +1 -0
  9. package/dist/chunk-WA52P72D.mjs +3781 -0
  10. package/dist/chunk-WA52P72D.mjs.map +1 -0
  11. package/dist/{chunk-5PZ7EB2E.js → chunk-XWVT3SI7.js} +77 -1
  12. package/dist/chunk-XWVT3SI7.js.map +1 -0
  13. package/dist/cli.js +1881 -13
  14. package/dist/cli.js.map +1 -1
  15. package/dist/{data-BXhkIF1M.d.ts → data-BRi5-xg_.d.ts} +9 -1
  16. package/dist/{data-2Hp_b3BD.d.mts → data-BoQrkrWX.d.mts} +9 -1
  17. package/dist/iching/index.d.mts +6 -1
  18. package/dist/iching/index.d.ts +6 -1
  19. package/dist/iching/index.js +42 -34
  20. package/dist/iching/index.mjs +1 -1
  21. package/dist/index.d.mts +4 -4
  22. package/dist/index.d.ts +4 -4
  23. package/dist/index.js +141 -77
  24. package/dist/index.mjs +3 -3
  25. package/dist/semantic/index.d.mts +209 -2
  26. package/dist/semantic/index.d.ts +209 -2
  27. package/dist/semantic/index.js +57 -21
  28. package/dist/semantic/index.mjs +2 -2
  29. package/dist/tarot/index.d.mts +58 -3
  30. package/dist/tarot/index.d.ts +58 -3
  31. package/dist/tarot/index.js +43 -23
  32. package/dist/tarot/index.mjs +1 -1
  33. package/package.json +1 -1
  34. package/dist/chunk-5PZ7EB2E.js.map +0 -1
  35. package/dist/chunk-GET23WEG.js +0 -2678
  36. package/dist/chunk-GET23WEG.js.map +0 -1
  37. package/dist/chunk-MWHMP3LI.js.map +0 -1
  38. package/dist/chunk-V5KXYFHZ.mjs.map +0 -1
  39. package/dist/chunk-WER5UY5M.mjs +0 -2655
  40. package/dist/chunk-WER5UY5M.mjs.map +0 -1
  41. package/dist/chunk-ZE2KPCHT.mjs.map +0 -1
@@ -1,8 +1,9 @@
1
1
  import { E as NodeId, K as KaabalahTypes, O as Node, y as WesternAstrologyTypes, x as LetterTypes, D as NodeType, z as TarotTypes } from '../constants-C0XjrYIG.mjs';
2
- import { b as TarotCard } from '../data-2Hp_b3BD.mjs';
2
+ import { b as TarotCard } from '../data-BoQrkrWX.mjs';
3
3
  import { SIGNS, HydratedPlanet, BirthChart, HydratedNode } from '../astrology/index.mjs';
4
4
  import { calculateGematria } from '../gematria/index.mjs';
5
5
  import { calculateKaabalisticLifePath, calculateStraightAcrossReductionLifePath } from '../numerology/index.mjs';
6
+ import { IChingReading } from '../iching/index.mjs';
6
7
  import '../correspondence-model-QJK8AilM.mjs';
7
8
 
8
9
  type KaabalisticTargetId = NodeId<KaabalahTypes.SPHERE> | NodeId<KaabalahTypes.PATH>;
@@ -150,6 +151,212 @@ declare function getNumerologyTreeMarkers(input: Date | NumerologyTreeInput): Ka
150
151
  declare function getGematriaTreeMarkers(input: string | GematriaTreeInput): KaabalisticMarkerDescriptor[];
151
152
  declare function buildKaabalisticMapData(input: BuildKaabalisticMapDataInput): KaabalisticMapData;
152
153
 
154
+ /**
155
+ * One reading on one Tree: the port of Mat's oracle panel (pergunta-oraculo painel.py).
156
+ * Every address a card or a trigram touches counts once; the chart adds only the planet
157
+ * of the subconscious card's sphere. Sign, element and planet matches with the chart and
158
+ * with today's sky become threads, never Tree weight.
159
+ */
160
+ declare const TREE_ORDER: readonly [NodeId<KaabalahTypes.SPHERE>, NodeId<KaabalahTypes.SPHERE>, NodeId<KaabalahTypes.SPHERE>, NodeId<KaabalahTypes.SPHERE>, NodeId<KaabalahTypes.SPHERE>, NodeId<KaabalahTypes.SPHERE>, NodeId<KaabalahTypes.SPHERE>, NodeId<KaabalahTypes.SPHERE>, NodeId<KaabalahTypes.SPHERE>, NodeId<KaabalahTypes.SPHERE>, NodeId<KaabalahTypes.SPHERE>];
161
+ declare const PLANET_KEYS: readonly ["sun", "moon", "mercury", "venus", "mars", "jupiter", "saturn", "uranus", "neptune", "pluto"];
162
+ type CardSlot = 'conscious' | 'unconscious' | 'subconscious';
163
+ type ReadingCard = {
164
+ slot: CardSlot | null;
165
+ number: number;
166
+ name: string;
167
+ kind: 'major' | 'court' | 'minor';
168
+ /** Major: its path. */
169
+ path?: {
170
+ number: number;
171
+ letter: string;
172
+ from: string;
173
+ to: string;
174
+ };
175
+ /** Major: what its path carries, the first of sign, element, planet. */
176
+ tag?: {
177
+ type: 'sign' | 'element' | 'planet';
178
+ value: string;
179
+ };
180
+ /** Pip: its sphere, that sphere's planet, its step from 1 to 10. */
181
+ sphere?: string;
182
+ planet?: string;
183
+ rank?: number;
184
+ /** Court: its sign (a page has none). */
185
+ sign?: string;
186
+ /** Pip and court: the suit and its element; a court's rank. */
187
+ suit?: string;
188
+ courtRank?: string;
189
+ element?: string;
190
+ };
191
+ declare function resolveCard(cardNumber: number, slot: string | null): ReadingCard | null;
192
+ type ChartAspect = {
193
+ a: string;
194
+ b: string;
195
+ aspect: string;
196
+ };
197
+ /**
198
+ * A chart as a reading uses it: signs by planet key (sun to pluto), the major aspects
199
+ * between those planets and, where the chart has a place and an hour, the ascendant and
200
+ * each planet's house. A reading stands on three of them:
201
+ * - the birth chart, read whole (signs, houses, ascendant, aspects);
202
+ * - the horary chart, cast for the moment the question was asked: signs and aspects
203
+ * always, houses and ascendant only when the person set where they were;
204
+ * - the day chart, for the day the reading is about (tomorrow, when casting tonight for
205
+ * tomorrow): signs and aspects only, since the rising turns through the whole day.
206
+ */
207
+ type Natal = {
208
+ planets: Record<string, string>;
209
+ ascendant: string | null;
210
+ houses?: Record<string, number>;
211
+ /** Signs on the numbered chart cusps; absent when place or hour is unknown. */
212
+ houseSigns?: Record<number, string>;
213
+ aspects?: ChartAspect[];
214
+ };
215
+ type Sky = Natal;
216
+ /** A kaabalah chart reduced to what a reading uses. `houses` is false for a chart with no place or hour. */
217
+ declare function projectChart(chart: {
218
+ planets: Record<string, {
219
+ zodiacPosition?: {
220
+ sign?: string;
221
+ house?: number;
222
+ };
223
+ } | undefined>;
224
+ houses?: {
225
+ ascendant?: {
226
+ sign?: string;
227
+ };
228
+ houses?: {
229
+ sign?: string;
230
+ }[];
231
+ };
232
+ aspects?: {
233
+ planetA: string;
234
+ planetB: string;
235
+ aspect: string;
236
+ }[];
237
+ }, options: {
238
+ houses: boolean;
239
+ }): Natal;
240
+ type HitSystem = 'cards' | 'iching' | 'chart' | 'sky' | 'day' | 'you';
241
+ type Hit = {
242
+ system: HitSystem;
243
+ key: 'majorFrom' | 'majorTo' | 'pipHome' | 'trigramFrom' | 'trigramTo' | 'pipPlanet' | 'majorSign' | 'signHouse' | 'signRuler' | 'rulerCard' | 'rulerPlacement' | 'majorElement' | 'majorPlanet' | 'pipAlsoPlanet' | 'natalInSign' | 'natalInElement' | 'skyInElement' | 'dayInElement' | 'natalPlanet' | 'courtSign' | 'natalHas' | 'natalNone' | 'skyIn' | 'skyPlanet' | 'pipIsPlanet' | 'dayIn' | 'dayPlanet' | 'aspects' | 'sovereign' | 'birthday';
244
+ card?: ReadingCard;
245
+ trigram?: string;
246
+ letter?: string;
247
+ path?: number;
248
+ sphere?: string;
249
+ planet?: string;
250
+ sign?: string;
251
+ /** The major's sign when `sign` holds the ruler's actual chart placement. */
252
+ viaSign?: string;
253
+ /** Explicit authority for ruler context, distinct from Kaabalah correspondences. */
254
+ rulership?: 'traditional';
255
+ element?: string;
256
+ /** Planet keys, in chart order. */
257
+ planets?: string[];
258
+ placements?: {
259
+ planet: string;
260
+ sign: string;
261
+ }[];
262
+ ascendant?: boolean;
263
+ /** The planet's house, in a chart that has houses. */
264
+ house?: number;
265
+ /** What the planet touches in its chart: the other planet and the aspect. */
266
+ aspects?: {
267
+ other: string;
268
+ aspect: string;
269
+ }[];
270
+ /** The pip's planet shares its sign with one of the person's lights. */
271
+ same?: 'sun' | 'moon' | 'ascendant' | null;
272
+ hexagram?: number;
273
+ window?: {
274
+ start: {
275
+ month: number;
276
+ day: number;
277
+ };
278
+ end: {
279
+ month: number;
280
+ day: number;
281
+ };
282
+ };
283
+ };
284
+ type ReadingWeights = {
285
+ spheres: Map<string, {
286
+ count: number;
287
+ hits: Hit[];
288
+ }>;
289
+ paths: Map<string, number>;
290
+ top: string | null;
291
+ };
292
+ type ReadingInput = {
293
+ cards: ReadingCard[];
294
+ iching: IChingReading | null;
295
+ natal: Natal | null;
296
+ /** Houses explicitly selected for the question by the caller; never inferred from prose. */
297
+ selectedHouses?: readonly number[];
298
+ };
299
+ declare function buildReadingWeights({ cards, iching, natal }: ReadingInput): ReadingWeights;
300
+ /** Spheres by weight, heaviest first; ties keep the Tree's order. */
301
+ declare function rankedSpheres(weights: ReadingWeights): {
302
+ count: number;
303
+ hits: Hit[];
304
+ id: NodeId<KaabalahTypes.SPHERE>;
305
+ }[];
306
+ /** Contextual priority is separate from the number of oracle addresses on the Tree. */
307
+ type ReadingRelevance = {
308
+ weight: 1 | 2;
309
+ selectedForQuestion: boolean;
310
+ requiresHumanReview: true;
311
+ };
312
+ /** `detail` rows (aspects and review context) belong to the detailed view only. */
313
+ type CountedHit = {
314
+ hit: Hit;
315
+ count: number;
316
+ detail?: boolean;
317
+ relevance?: ReadingRelevance;
318
+ };
319
+ /** The same sentence said twice is said once, with how many times. */
320
+ declare function collapseHits(hits: Hit[]): CountedHit[];
321
+ type ThreadTitle = {
322
+ kind: 'top';
323
+ sphere: string;
324
+ } | {
325
+ kind: 'sign' | 'element' | 'planet';
326
+ value: string;
327
+ } | {
328
+ kind: 'window';
329
+ window: NonNullable<Hit['window']>;
330
+ };
331
+ type Thread = {
332
+ id: string;
333
+ title: ThreadTitle;
334
+ rows: CountedHit[];
335
+ };
336
+ /**
337
+ * Why the pieces talk: the top sphere first, then each card against the three charts that
338
+ * belong to the reading. The birth chart says what the person carries; the sky of the
339
+ * moment they asked (the horary side) says what the question was asked under. The
340
+ * conscious card speaks by what its path carries, the unconscious by its sign, the
341
+ * subconscious by its sphere's planet. Last, a sovereign hexagram whose month holds the
342
+ * person's birthday.
343
+ */
344
+ declare function buildThreads(input: ReadingInput & {
345
+ sky: Sky | null;
346
+ day?: Sky | null;
347
+ birthday: {
348
+ month: number;
349
+ day: number;
350
+ } | null;
351
+ }, weights: ReadingWeights): Thread[];
352
+
353
+ interface ReadingReference {
354
+ readonly gloss: Readonly<Record<string, string>>;
355
+ readonly rung: Readonly<Record<string, string>>;
356
+ }
357
+ /** Mat's plain sphere phrases and ten steps of the descent, in English or Portuguese. */
358
+ declare function getReadingReference(language?: string): ReadingReference;
359
+
153
360
  declare const OCCULT_THEME_STOPWORDS: readonly ["the", "and", "for", "with", "that", "this", "was", "were", "been", "have", "has", "had", "just", "from", "into", "about", "over", "under", "very", "more", "less", "then", "than", "when", "what", "where", "which", "while", "would", "could", "should", "again", "still", "really", "gotta", "lota", "lotta", "para", "com", "sem", "por", "uma", "um", "uns", "das", "dos", "del", "que", "não", "nao", "isso", "essa", "este", "esta", "como", "mais", "menos", "muito", "muita", "their", "your", "mine", "ours", "onto", "sobre", "entre", "depois", "antes"];
154
361
  interface TokenizeOccultThemeTextOptions {
155
362
  minTokenLength?: number;
@@ -229,4 +436,4 @@ declare function getHouseThemeProfile(lookup: HouseThemeLookup): HouseThemeProfi
229
436
  declare function listTarotThemeProfiles(): readonly TarotThemeProfile[];
230
437
  declare function getTarotThemeProfile(lookup: TarotThemeLookup): TarotThemeProfile | undefined;
231
438
 
232
- export { type AstrologyTreeChartInput, type BuildKaabalisticMapDataInput, type GematriaTreeInput, type HouseNumber, type HouseThemeAxis, type HouseThemeLookup, type HouseThemeProfile, type HouseThemeScope, type KaabalisticAngleCorrespondenceLookup, type KaabalisticCorrespondenceLookup, type KaabalisticCorrespondenceResult, type KaabalisticCorrespondenceSource, type KaabalisticCorrespondenceTarget, type KaabalisticCountsEntry, type KaabalisticHebrewLetterCorrespondenceLookup, type KaabalisticItemConnection, type KaabalisticMapData, type KaabalisticMarkerDescriptor, type KaabalisticMarkerKind, type KaabalisticMarkerMapping, type KaabalisticMarkerSourceType, type KaabalisticNodeCorrespondenceLookup, type KaabalisticNumberCorrespondenceLookup, type KaabalisticPlanetCorrespondenceLookup, type KaabalisticSignCorrespondenceLookup, type KaabalisticSignLookup, type KaabalisticSummaryTarget, type KaabalisticSymbolMetadata, type KaabalisticTargetId, type KaabalisticTargetType, type NumerologyTreeInput, OCCULT_THEME_STOPWORDS, type OccultThemeCorrespondence, type OccultThemeCorrespondences, type TarotMajorArchetypeReference, type TarotThemeCorrespondences, type TarotThemeLookup, type TarotThemeProfile, type TokenizeOccultThemeTextOptions, buildKaabalisticMapData, getAngleSymbolMetadata, getAstrologyTreeMarkers, getGematriaTreeMarkers, getHouseThemeProfile, getKaabalisticCorrespondenceTargets, getNodeSymbolMetadata, getNumerologyTreeMarkers, getPlanetSymbolMetadata, getTarotThemeProfile, getZodiacSignSymbolMetadata, listAngleSymbolMetadata, listHouseThemeProfiles, listNodeSymbolMetadata, listPlanetSymbolMetadata, listTarotThemeProfiles, listZodiacSignSymbolMetadata, tokenizeOccultThemeText };
439
+ export { type AstrologyTreeChartInput, type BuildKaabalisticMapDataInput, type CardSlot, type ChartAspect, type CountedHit, type GematriaTreeInput, type Hit, type HitSystem, type HouseNumber, type HouseThemeAxis, type HouseThemeLookup, type HouseThemeProfile, type HouseThemeScope, type KaabalisticAngleCorrespondenceLookup, type KaabalisticCorrespondenceLookup, type KaabalisticCorrespondenceResult, type KaabalisticCorrespondenceSource, type KaabalisticCorrespondenceTarget, type KaabalisticCountsEntry, type KaabalisticHebrewLetterCorrespondenceLookup, type KaabalisticItemConnection, type KaabalisticMapData, type KaabalisticMarkerDescriptor, type KaabalisticMarkerKind, type KaabalisticMarkerMapping, type KaabalisticMarkerSourceType, type KaabalisticNodeCorrespondenceLookup, type KaabalisticNumberCorrespondenceLookup, type KaabalisticPlanetCorrespondenceLookup, type KaabalisticSignCorrespondenceLookup, type KaabalisticSignLookup, type KaabalisticSummaryTarget, type KaabalisticSymbolMetadata, type KaabalisticTargetId, type KaabalisticTargetType, type Natal, type NumerologyTreeInput, OCCULT_THEME_STOPWORDS, type OccultThemeCorrespondence, type OccultThemeCorrespondences, PLANET_KEYS, type ReadingCard, type ReadingInput, type ReadingReference, type ReadingRelevance, type ReadingWeights, type Sky, TREE_ORDER, type TarotMajorArchetypeReference, type TarotThemeCorrespondences, type TarotThemeLookup, type TarotThemeProfile, type Thread, type ThreadTitle, type TokenizeOccultThemeTextOptions, buildKaabalisticMapData, buildReadingWeights, buildThreads, collapseHits, getAngleSymbolMetadata, getAstrologyTreeMarkers, getGematriaTreeMarkers, getHouseThemeProfile, getKaabalisticCorrespondenceTargets, getNodeSymbolMetadata, getNumerologyTreeMarkers, getPlanetSymbolMetadata, getReadingReference, getTarotThemeProfile, getZodiacSignSymbolMetadata, listAngleSymbolMetadata, listHouseThemeProfiles, listNodeSymbolMetadata, listPlanetSymbolMetadata, listTarotThemeProfiles, listZodiacSignSymbolMetadata, projectChart, rankedSpheres, resolveCard, tokenizeOccultThemeText };
@@ -1,8 +1,9 @@
1
1
  import { E as NodeId, K as KaabalahTypes, O as Node, y as WesternAstrologyTypes, x as LetterTypes, D as NodeType, z as TarotTypes } from '../constants-C0XjrYIG.js';
2
- import { b as TarotCard } from '../data-BXhkIF1M.js';
2
+ import { b as TarotCard } from '../data-BRi5-xg_.js';
3
3
  import { SIGNS, HydratedPlanet, BirthChart, HydratedNode } from '../astrology/index.js';
4
4
  import { calculateGematria } from '../gematria/index.js';
5
5
  import { calculateKaabalisticLifePath, calculateStraightAcrossReductionLifePath } from '../numerology/index.js';
6
+ import { IChingReading } from '../iching/index.js';
6
7
  import '../correspondence-model-5JQwAX16.js';
7
8
 
8
9
  type KaabalisticTargetId = NodeId<KaabalahTypes.SPHERE> | NodeId<KaabalahTypes.PATH>;
@@ -150,6 +151,212 @@ declare function getNumerologyTreeMarkers(input: Date | NumerologyTreeInput): Ka
150
151
  declare function getGematriaTreeMarkers(input: string | GematriaTreeInput): KaabalisticMarkerDescriptor[];
151
152
  declare function buildKaabalisticMapData(input: BuildKaabalisticMapDataInput): KaabalisticMapData;
152
153
 
154
+ /**
155
+ * One reading on one Tree: the port of Mat's oracle panel (pergunta-oraculo painel.py).
156
+ * Every address a card or a trigram touches counts once; the chart adds only the planet
157
+ * of the subconscious card's sphere. Sign, element and planet matches with the chart and
158
+ * with today's sky become threads, never Tree weight.
159
+ */
160
+ declare const TREE_ORDER: readonly [NodeId<KaabalahTypes.SPHERE>, NodeId<KaabalahTypes.SPHERE>, NodeId<KaabalahTypes.SPHERE>, NodeId<KaabalahTypes.SPHERE>, NodeId<KaabalahTypes.SPHERE>, NodeId<KaabalahTypes.SPHERE>, NodeId<KaabalahTypes.SPHERE>, NodeId<KaabalahTypes.SPHERE>, NodeId<KaabalahTypes.SPHERE>, NodeId<KaabalahTypes.SPHERE>, NodeId<KaabalahTypes.SPHERE>];
161
+ declare const PLANET_KEYS: readonly ["sun", "moon", "mercury", "venus", "mars", "jupiter", "saturn", "uranus", "neptune", "pluto"];
162
+ type CardSlot = 'conscious' | 'unconscious' | 'subconscious';
163
+ type ReadingCard = {
164
+ slot: CardSlot | null;
165
+ number: number;
166
+ name: string;
167
+ kind: 'major' | 'court' | 'minor';
168
+ /** Major: its path. */
169
+ path?: {
170
+ number: number;
171
+ letter: string;
172
+ from: string;
173
+ to: string;
174
+ };
175
+ /** Major: what its path carries, the first of sign, element, planet. */
176
+ tag?: {
177
+ type: 'sign' | 'element' | 'planet';
178
+ value: string;
179
+ };
180
+ /** Pip: its sphere, that sphere's planet, its step from 1 to 10. */
181
+ sphere?: string;
182
+ planet?: string;
183
+ rank?: number;
184
+ /** Court: its sign (a page has none). */
185
+ sign?: string;
186
+ /** Pip and court: the suit and its element; a court's rank. */
187
+ suit?: string;
188
+ courtRank?: string;
189
+ element?: string;
190
+ };
191
+ declare function resolveCard(cardNumber: number, slot: string | null): ReadingCard | null;
192
+ type ChartAspect = {
193
+ a: string;
194
+ b: string;
195
+ aspect: string;
196
+ };
197
+ /**
198
+ * A chart as a reading uses it: signs by planet key (sun to pluto), the major aspects
199
+ * between those planets and, where the chart has a place and an hour, the ascendant and
200
+ * each planet's house. A reading stands on three of them:
201
+ * - the birth chart, read whole (signs, houses, ascendant, aspects);
202
+ * - the horary chart, cast for the moment the question was asked: signs and aspects
203
+ * always, houses and ascendant only when the person set where they were;
204
+ * - the day chart, for the day the reading is about (tomorrow, when casting tonight for
205
+ * tomorrow): signs and aspects only, since the rising turns through the whole day.
206
+ */
207
+ type Natal = {
208
+ planets: Record<string, string>;
209
+ ascendant: string | null;
210
+ houses?: Record<string, number>;
211
+ /** Signs on the numbered chart cusps; absent when place or hour is unknown. */
212
+ houseSigns?: Record<number, string>;
213
+ aspects?: ChartAspect[];
214
+ };
215
+ type Sky = Natal;
216
+ /** A kaabalah chart reduced to what a reading uses. `houses` is false for a chart with no place or hour. */
217
+ declare function projectChart(chart: {
218
+ planets: Record<string, {
219
+ zodiacPosition?: {
220
+ sign?: string;
221
+ house?: number;
222
+ };
223
+ } | undefined>;
224
+ houses?: {
225
+ ascendant?: {
226
+ sign?: string;
227
+ };
228
+ houses?: {
229
+ sign?: string;
230
+ }[];
231
+ };
232
+ aspects?: {
233
+ planetA: string;
234
+ planetB: string;
235
+ aspect: string;
236
+ }[];
237
+ }, options: {
238
+ houses: boolean;
239
+ }): Natal;
240
+ type HitSystem = 'cards' | 'iching' | 'chart' | 'sky' | 'day' | 'you';
241
+ type Hit = {
242
+ system: HitSystem;
243
+ key: 'majorFrom' | 'majorTo' | 'pipHome' | 'trigramFrom' | 'trigramTo' | 'pipPlanet' | 'majorSign' | 'signHouse' | 'signRuler' | 'rulerCard' | 'rulerPlacement' | 'majorElement' | 'majorPlanet' | 'pipAlsoPlanet' | 'natalInSign' | 'natalInElement' | 'skyInElement' | 'dayInElement' | 'natalPlanet' | 'courtSign' | 'natalHas' | 'natalNone' | 'skyIn' | 'skyPlanet' | 'pipIsPlanet' | 'dayIn' | 'dayPlanet' | 'aspects' | 'sovereign' | 'birthday';
244
+ card?: ReadingCard;
245
+ trigram?: string;
246
+ letter?: string;
247
+ path?: number;
248
+ sphere?: string;
249
+ planet?: string;
250
+ sign?: string;
251
+ /** The major's sign when `sign` holds the ruler's actual chart placement. */
252
+ viaSign?: string;
253
+ /** Explicit authority for ruler context, distinct from Kaabalah correspondences. */
254
+ rulership?: 'traditional';
255
+ element?: string;
256
+ /** Planet keys, in chart order. */
257
+ planets?: string[];
258
+ placements?: {
259
+ planet: string;
260
+ sign: string;
261
+ }[];
262
+ ascendant?: boolean;
263
+ /** The planet's house, in a chart that has houses. */
264
+ house?: number;
265
+ /** What the planet touches in its chart: the other planet and the aspect. */
266
+ aspects?: {
267
+ other: string;
268
+ aspect: string;
269
+ }[];
270
+ /** The pip's planet shares its sign with one of the person's lights. */
271
+ same?: 'sun' | 'moon' | 'ascendant' | null;
272
+ hexagram?: number;
273
+ window?: {
274
+ start: {
275
+ month: number;
276
+ day: number;
277
+ };
278
+ end: {
279
+ month: number;
280
+ day: number;
281
+ };
282
+ };
283
+ };
284
+ type ReadingWeights = {
285
+ spheres: Map<string, {
286
+ count: number;
287
+ hits: Hit[];
288
+ }>;
289
+ paths: Map<string, number>;
290
+ top: string | null;
291
+ };
292
+ type ReadingInput = {
293
+ cards: ReadingCard[];
294
+ iching: IChingReading | null;
295
+ natal: Natal | null;
296
+ /** Houses explicitly selected for the question by the caller; never inferred from prose. */
297
+ selectedHouses?: readonly number[];
298
+ };
299
+ declare function buildReadingWeights({ cards, iching, natal }: ReadingInput): ReadingWeights;
300
+ /** Spheres by weight, heaviest first; ties keep the Tree's order. */
301
+ declare function rankedSpheres(weights: ReadingWeights): {
302
+ count: number;
303
+ hits: Hit[];
304
+ id: NodeId<KaabalahTypes.SPHERE>;
305
+ }[];
306
+ /** Contextual priority is separate from the number of oracle addresses on the Tree. */
307
+ type ReadingRelevance = {
308
+ weight: 1 | 2;
309
+ selectedForQuestion: boolean;
310
+ requiresHumanReview: true;
311
+ };
312
+ /** `detail` rows (aspects and review context) belong to the detailed view only. */
313
+ type CountedHit = {
314
+ hit: Hit;
315
+ count: number;
316
+ detail?: boolean;
317
+ relevance?: ReadingRelevance;
318
+ };
319
+ /** The same sentence said twice is said once, with how many times. */
320
+ declare function collapseHits(hits: Hit[]): CountedHit[];
321
+ type ThreadTitle = {
322
+ kind: 'top';
323
+ sphere: string;
324
+ } | {
325
+ kind: 'sign' | 'element' | 'planet';
326
+ value: string;
327
+ } | {
328
+ kind: 'window';
329
+ window: NonNullable<Hit['window']>;
330
+ };
331
+ type Thread = {
332
+ id: string;
333
+ title: ThreadTitle;
334
+ rows: CountedHit[];
335
+ };
336
+ /**
337
+ * Why the pieces talk: the top sphere first, then each card against the three charts that
338
+ * belong to the reading. The birth chart says what the person carries; the sky of the
339
+ * moment they asked (the horary side) says what the question was asked under. The
340
+ * conscious card speaks by what its path carries, the unconscious by its sign, the
341
+ * subconscious by its sphere's planet. Last, a sovereign hexagram whose month holds the
342
+ * person's birthday.
343
+ */
344
+ declare function buildThreads(input: ReadingInput & {
345
+ sky: Sky | null;
346
+ day?: Sky | null;
347
+ birthday: {
348
+ month: number;
349
+ day: number;
350
+ } | null;
351
+ }, weights: ReadingWeights): Thread[];
352
+
353
+ interface ReadingReference {
354
+ readonly gloss: Readonly<Record<string, string>>;
355
+ readonly rung: Readonly<Record<string, string>>;
356
+ }
357
+ /** Mat's plain sphere phrases and ten steps of the descent, in English or Portuguese. */
358
+ declare function getReadingReference(language?: string): ReadingReference;
359
+
153
360
  declare const OCCULT_THEME_STOPWORDS: readonly ["the", "and", "for", "with", "that", "this", "was", "were", "been", "have", "has", "had", "just", "from", "into", "about", "over", "under", "very", "more", "less", "then", "than", "when", "what", "where", "which", "while", "would", "could", "should", "again", "still", "really", "gotta", "lota", "lotta", "para", "com", "sem", "por", "uma", "um", "uns", "das", "dos", "del", "que", "não", "nao", "isso", "essa", "este", "esta", "como", "mais", "menos", "muito", "muita", "their", "your", "mine", "ours", "onto", "sobre", "entre", "depois", "antes"];
154
361
  interface TokenizeOccultThemeTextOptions {
155
362
  minTokenLength?: number;
@@ -229,4 +436,4 @@ declare function getHouseThemeProfile(lookup: HouseThemeLookup): HouseThemeProfi
229
436
  declare function listTarotThemeProfiles(): readonly TarotThemeProfile[];
230
437
  declare function getTarotThemeProfile(lookup: TarotThemeLookup): TarotThemeProfile | undefined;
231
438
 
232
- export { type AstrologyTreeChartInput, type BuildKaabalisticMapDataInput, type GematriaTreeInput, type HouseNumber, type HouseThemeAxis, type HouseThemeLookup, type HouseThemeProfile, type HouseThemeScope, type KaabalisticAngleCorrespondenceLookup, type KaabalisticCorrespondenceLookup, type KaabalisticCorrespondenceResult, type KaabalisticCorrespondenceSource, type KaabalisticCorrespondenceTarget, type KaabalisticCountsEntry, type KaabalisticHebrewLetterCorrespondenceLookup, type KaabalisticItemConnection, type KaabalisticMapData, type KaabalisticMarkerDescriptor, type KaabalisticMarkerKind, type KaabalisticMarkerMapping, type KaabalisticMarkerSourceType, type KaabalisticNodeCorrespondenceLookup, type KaabalisticNumberCorrespondenceLookup, type KaabalisticPlanetCorrespondenceLookup, type KaabalisticSignCorrespondenceLookup, type KaabalisticSignLookup, type KaabalisticSummaryTarget, type KaabalisticSymbolMetadata, type KaabalisticTargetId, type KaabalisticTargetType, type NumerologyTreeInput, OCCULT_THEME_STOPWORDS, type OccultThemeCorrespondence, type OccultThemeCorrespondences, type TarotMajorArchetypeReference, type TarotThemeCorrespondences, type TarotThemeLookup, type TarotThemeProfile, type TokenizeOccultThemeTextOptions, buildKaabalisticMapData, getAngleSymbolMetadata, getAstrologyTreeMarkers, getGematriaTreeMarkers, getHouseThemeProfile, getKaabalisticCorrespondenceTargets, getNodeSymbolMetadata, getNumerologyTreeMarkers, getPlanetSymbolMetadata, getTarotThemeProfile, getZodiacSignSymbolMetadata, listAngleSymbolMetadata, listHouseThemeProfiles, listNodeSymbolMetadata, listPlanetSymbolMetadata, listTarotThemeProfiles, listZodiacSignSymbolMetadata, tokenizeOccultThemeText };
439
+ export { type AstrologyTreeChartInput, type BuildKaabalisticMapDataInput, type CardSlot, type ChartAspect, type CountedHit, type GematriaTreeInput, type Hit, type HitSystem, type HouseNumber, type HouseThemeAxis, type HouseThemeLookup, type HouseThemeProfile, type HouseThemeScope, type KaabalisticAngleCorrespondenceLookup, type KaabalisticCorrespondenceLookup, type KaabalisticCorrespondenceResult, type KaabalisticCorrespondenceSource, type KaabalisticCorrespondenceTarget, type KaabalisticCountsEntry, type KaabalisticHebrewLetterCorrespondenceLookup, type KaabalisticItemConnection, type KaabalisticMapData, type KaabalisticMarkerDescriptor, type KaabalisticMarkerKind, type KaabalisticMarkerMapping, type KaabalisticMarkerSourceType, type KaabalisticNodeCorrespondenceLookup, type KaabalisticNumberCorrespondenceLookup, type KaabalisticPlanetCorrespondenceLookup, type KaabalisticSignCorrespondenceLookup, type KaabalisticSignLookup, type KaabalisticSummaryTarget, type KaabalisticSymbolMetadata, type KaabalisticTargetId, type KaabalisticTargetType, type Natal, type NumerologyTreeInput, OCCULT_THEME_STOPWORDS, type OccultThemeCorrespondence, type OccultThemeCorrespondences, PLANET_KEYS, type ReadingCard, type ReadingInput, type ReadingReference, type ReadingRelevance, type ReadingWeights, type Sky, TREE_ORDER, type TarotMajorArchetypeReference, type TarotThemeCorrespondences, type TarotThemeLookup, type TarotThemeProfile, type Thread, type ThreadTitle, type TokenizeOccultThemeTextOptions, buildKaabalisticMapData, buildReadingWeights, buildThreads, collapseHits, getAngleSymbolMetadata, getAstrologyTreeMarkers, getGematriaTreeMarkers, getHouseThemeProfile, getKaabalisticCorrespondenceTargets, getNodeSymbolMetadata, getNumerologyTreeMarkers, getPlanetSymbolMetadata, getReadingReference, getTarotThemeProfile, getZodiacSignSymbolMetadata, listAngleSymbolMetadata, listHouseThemeProfiles, listNodeSymbolMetadata, listPlanetSymbolMetadata, listTarotThemeProfiles, listZodiacSignSymbolMetadata, projectChart, rankedSpheres, resolveCard, tokenizeOccultThemeText };
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkMWHMP3LI_js = require('../chunk-MWHMP3LI.js');
4
- require('../chunk-GET23WEG.js');
3
+ var chunk7C7VO76O_js = require('../chunk-7C7VO76O.js');
4
+ require('../chunk-4PVIDUPI.js');
5
5
  require('../chunk-UNXDDLZS.js');
6
6
  require('../chunk-SWWLTDR6.js');
7
7
  require('../chunk-CW6QDSMF.js');
@@ -13,79 +13,115 @@ require('../chunk-4337NVKS.js');
13
13
 
14
14
  Object.defineProperty(exports, "OCCULT_THEME_STOPWORDS", {
15
15
  enumerable: true,
16
- get: function () { return chunkMWHMP3LI_js.OCCULT_THEME_STOPWORDS; }
16
+ get: function () { return chunk7C7VO76O_js.OCCULT_THEME_STOPWORDS; }
17
+ });
18
+ Object.defineProperty(exports, "PLANET_KEYS", {
19
+ enumerable: true,
20
+ get: function () { return chunk7C7VO76O_js.PLANET_KEYS; }
21
+ });
22
+ Object.defineProperty(exports, "TREE_ORDER", {
23
+ enumerable: true,
24
+ get: function () { return chunk7C7VO76O_js.TREE_ORDER; }
17
25
  });
18
26
  Object.defineProperty(exports, "buildKaabalisticMapData", {
19
27
  enumerable: true,
20
- get: function () { return chunkMWHMP3LI_js.buildKaabalisticMapData; }
28
+ get: function () { return chunk7C7VO76O_js.buildKaabalisticMapData; }
29
+ });
30
+ Object.defineProperty(exports, "buildReadingWeights", {
31
+ enumerable: true,
32
+ get: function () { return chunk7C7VO76O_js.buildReadingWeights; }
33
+ });
34
+ Object.defineProperty(exports, "buildThreads", {
35
+ enumerable: true,
36
+ get: function () { return chunk7C7VO76O_js.buildThreads; }
37
+ });
38
+ Object.defineProperty(exports, "collapseHits", {
39
+ enumerable: true,
40
+ get: function () { return chunk7C7VO76O_js.collapseHits; }
21
41
  });
22
42
  Object.defineProperty(exports, "getAngleSymbolMetadata", {
23
43
  enumerable: true,
24
- get: function () { return chunkMWHMP3LI_js.getAngleSymbolMetadata; }
44
+ get: function () { return chunk7C7VO76O_js.getAngleSymbolMetadata; }
25
45
  });
26
46
  Object.defineProperty(exports, "getAstrologyTreeMarkers", {
27
47
  enumerable: true,
28
- get: function () { return chunkMWHMP3LI_js.getAstrologyTreeMarkers; }
48
+ get: function () { return chunk7C7VO76O_js.getAstrologyTreeMarkers; }
29
49
  });
30
50
  Object.defineProperty(exports, "getGematriaTreeMarkers", {
31
51
  enumerable: true,
32
- get: function () { return chunkMWHMP3LI_js.getGematriaTreeMarkers; }
52
+ get: function () { return chunk7C7VO76O_js.getGematriaTreeMarkers; }
33
53
  });
34
54
  Object.defineProperty(exports, "getHouseThemeProfile", {
35
55
  enumerable: true,
36
- get: function () { return chunkMWHMP3LI_js.getHouseThemeProfile; }
56
+ get: function () { return chunk7C7VO76O_js.getHouseThemeProfile; }
37
57
  });
38
58
  Object.defineProperty(exports, "getKaabalisticCorrespondenceTargets", {
39
59
  enumerable: true,
40
- get: function () { return chunkMWHMP3LI_js.getKaabalisticCorrespondenceTargets; }
60
+ get: function () { return chunk7C7VO76O_js.getKaabalisticCorrespondenceTargets; }
41
61
  });
42
62
  Object.defineProperty(exports, "getNodeSymbolMetadata", {
43
63
  enumerable: true,
44
- get: function () { return chunkMWHMP3LI_js.getNodeSymbolMetadata; }
64
+ get: function () { return chunk7C7VO76O_js.getNodeSymbolMetadata; }
45
65
  });
46
66
  Object.defineProperty(exports, "getNumerologyTreeMarkers", {
47
67
  enumerable: true,
48
- get: function () { return chunkMWHMP3LI_js.getNumerologyTreeMarkers; }
68
+ get: function () { return chunk7C7VO76O_js.getNumerologyTreeMarkers; }
49
69
  });
50
70
  Object.defineProperty(exports, "getPlanetSymbolMetadata", {
51
71
  enumerable: true,
52
- get: function () { return chunkMWHMP3LI_js.getPlanetSymbolMetadata; }
72
+ get: function () { return chunk7C7VO76O_js.getPlanetSymbolMetadata; }
73
+ });
74
+ Object.defineProperty(exports, "getReadingReference", {
75
+ enumerable: true,
76
+ get: function () { return chunk7C7VO76O_js.getReadingReference; }
53
77
  });
54
78
  Object.defineProperty(exports, "getTarotThemeProfile", {
55
79
  enumerable: true,
56
- get: function () { return chunkMWHMP3LI_js.getTarotThemeProfile; }
80
+ get: function () { return chunk7C7VO76O_js.getTarotThemeProfile; }
57
81
  });
58
82
  Object.defineProperty(exports, "getZodiacSignSymbolMetadata", {
59
83
  enumerable: true,
60
- get: function () { return chunkMWHMP3LI_js.getZodiacSignSymbolMetadata; }
84
+ get: function () { return chunk7C7VO76O_js.getZodiacSignSymbolMetadata; }
61
85
  });
62
86
  Object.defineProperty(exports, "listAngleSymbolMetadata", {
63
87
  enumerable: true,
64
- get: function () { return chunkMWHMP3LI_js.listAngleSymbolMetadata; }
88
+ get: function () { return chunk7C7VO76O_js.listAngleSymbolMetadata; }
65
89
  });
66
90
  Object.defineProperty(exports, "listHouseThemeProfiles", {
67
91
  enumerable: true,
68
- get: function () { return chunkMWHMP3LI_js.listHouseThemeProfiles; }
92
+ get: function () { return chunk7C7VO76O_js.listHouseThemeProfiles; }
69
93
  });
70
94
  Object.defineProperty(exports, "listNodeSymbolMetadata", {
71
95
  enumerable: true,
72
- get: function () { return chunkMWHMP3LI_js.listNodeSymbolMetadata; }
96
+ get: function () { return chunk7C7VO76O_js.listNodeSymbolMetadata; }
73
97
  });
74
98
  Object.defineProperty(exports, "listPlanetSymbolMetadata", {
75
99
  enumerable: true,
76
- get: function () { return chunkMWHMP3LI_js.listPlanetSymbolMetadata; }
100
+ get: function () { return chunk7C7VO76O_js.listPlanetSymbolMetadata; }
77
101
  });
78
102
  Object.defineProperty(exports, "listTarotThemeProfiles", {
79
103
  enumerable: true,
80
- get: function () { return chunkMWHMP3LI_js.listTarotThemeProfiles; }
104
+ get: function () { return chunk7C7VO76O_js.listTarotThemeProfiles; }
81
105
  });
82
106
  Object.defineProperty(exports, "listZodiacSignSymbolMetadata", {
83
107
  enumerable: true,
84
- get: function () { return chunkMWHMP3LI_js.listZodiacSignSymbolMetadata; }
108
+ get: function () { return chunk7C7VO76O_js.listZodiacSignSymbolMetadata; }
109
+ });
110
+ Object.defineProperty(exports, "projectChart", {
111
+ enumerable: true,
112
+ get: function () { return chunk7C7VO76O_js.projectChart; }
113
+ });
114
+ Object.defineProperty(exports, "rankedSpheres", {
115
+ enumerable: true,
116
+ get: function () { return chunk7C7VO76O_js.rankedSpheres; }
117
+ });
118
+ Object.defineProperty(exports, "resolveCard", {
119
+ enumerable: true,
120
+ get: function () { return chunk7C7VO76O_js.resolveCard; }
85
121
  });
86
122
  Object.defineProperty(exports, "tokenizeOccultThemeText", {
87
123
  enumerable: true,
88
- get: function () { return chunkMWHMP3LI_js.tokenizeOccultThemeText; }
124
+ get: function () { return chunk7C7VO76O_js.tokenizeOccultThemeText; }
89
125
  });
90
126
  //# sourceMappingURL=out.js.map
91
127
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
- export { OCCULT_THEME_STOPWORDS, buildKaabalisticMapData, getAngleSymbolMetadata, getAstrologyTreeMarkers, getGematriaTreeMarkers, getHouseThemeProfile, getKaabalisticCorrespondenceTargets, getNodeSymbolMetadata, getNumerologyTreeMarkers, getPlanetSymbolMetadata, getTarotThemeProfile, getZodiacSignSymbolMetadata, listAngleSymbolMetadata, listHouseThemeProfiles, listNodeSymbolMetadata, listPlanetSymbolMetadata, listTarotThemeProfiles, listZodiacSignSymbolMetadata, tokenizeOccultThemeText } from '../chunk-V5KXYFHZ.mjs';
2
- import '../chunk-WER5UY5M.mjs';
1
+ export { OCCULT_THEME_STOPWORDS, PLANET_KEYS, TREE_ORDER, buildKaabalisticMapData, buildReadingWeights, buildThreads, collapseHits, getAngleSymbolMetadata, getAstrologyTreeMarkers, getGematriaTreeMarkers, getHouseThemeProfile, getKaabalisticCorrespondenceTargets, getNodeSymbolMetadata, getNumerologyTreeMarkers, getPlanetSymbolMetadata, getReadingReference, getTarotThemeProfile, getZodiacSignSymbolMetadata, listAngleSymbolMetadata, listHouseThemeProfiles, listNodeSymbolMetadata, listPlanetSymbolMetadata, listTarotThemeProfiles, listZodiacSignSymbolMetadata, projectChart, rankedSpheres, resolveCard, tokenizeOccultThemeText } from '../chunk-QQN54SLY.mjs';
2
+ import '../chunk-WA52P72D.mjs';
3
3
  import '../chunk-RAQDVWNK.mjs';
4
4
  import '../chunk-PEHDLSUH.mjs';
5
5
  import '../chunk-OSMB2MJR.mjs';