kaabalah 5.5.0 → 5.6.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 (54) hide show
  1. package/README.md +25 -0
  2. package/dist/{chunk-T67M2WBD.js → chunk-3HYK4Q4B.js} +263 -50
  3. package/dist/chunk-3HYK4Q4B.js.map +1 -0
  4. package/dist/{chunk-5ID55YUP.mjs → chunk-3SFBJHP2.mjs} +3 -3
  5. package/dist/{chunk-5ID55YUP.mjs.map → chunk-3SFBJHP2.mjs.map} +1 -1
  6. package/dist/chunk-4NMXTZX4.mjs +525 -0
  7. package/dist/chunk-4NMXTZX4.mjs.map +1 -0
  8. package/dist/{chunk-ZZ3YMT2R.js → chunk-EVQ432JA.js} +23 -23
  9. package/dist/{chunk-ZZ3YMT2R.js.map → chunk-EVQ432JA.js.map} +1 -1
  10. package/dist/{chunk-2J6CVLH2.mjs → chunk-IHQPXEB7.mjs} +263 -51
  11. package/dist/chunk-IHQPXEB7.mjs.map +1 -0
  12. package/dist/{chunk-M7XQFDS4.mjs → chunk-OGWTKRJK.js} +236 -43
  13. package/dist/chunk-OGWTKRJK.js.map +1 -0
  14. package/dist/{chunk-XSAXO3D2.mjs → chunk-S6BFRUJQ.mjs} +3 -3
  15. package/dist/{chunk-XSAXO3D2.mjs.map → chunk-S6BFRUJQ.mjs.map} +1 -1
  16. package/dist/{chunk-G5BG73Y5.js → chunk-U3JFWP24.mjs} +225 -46
  17. package/dist/chunk-U3JFWP24.mjs.map +1 -0
  18. package/dist/chunk-XB6PXEKO.js +529 -0
  19. package/dist/chunk-XB6PXEKO.js.map +1 -0
  20. package/dist/{chunk-2WENLHIP.js → chunk-XTVGQXCL.js} +4 -4
  21. package/dist/{chunk-2WENLHIP.js.map → chunk-XTVGQXCL.js.map} +1 -1
  22. package/dist/cli.js +1061 -126
  23. package/dist/cli.js.map +1 -1
  24. package/dist/{registry-DOiHyH-r.d.mts → constants-DbFwuCjR.d.mts} +1 -177
  25. package/dist/{registry-DOiHyH-r.d.ts → constants-DbFwuCjR.d.ts} +1 -177
  26. package/dist/core/index.d.mts +66 -3
  27. package/dist/core/index.d.ts +66 -3
  28. package/dist/core/index.js +55 -39
  29. package/dist/core/index.mjs +2 -2
  30. package/dist/correspondence-model-D8c42J4c.d.mts +281 -0
  31. package/dist/correspondence-model-DhmBYoMf.d.ts +281 -0
  32. package/dist/gematria/index.d.mts +2 -1
  33. package/dist/gematria/index.d.ts +2 -1
  34. package/dist/gematria/index.js +5 -5
  35. package/dist/gematria/index.mjs +2 -2
  36. package/dist/index.d.mts +4 -3
  37. package/dist/index.d.ts +4 -3
  38. package/dist/index.js +111 -71
  39. package/dist/index.mjs +5 -5
  40. package/dist/numerology/index.js +18 -18
  41. package/dist/numerology/index.mjs +3 -3
  42. package/dist/tarot/index.d.mts +64 -2
  43. package/dist/tarot/index.d.ts +64 -2
  44. package/dist/tarot/index.js +30 -4
  45. package/dist/tarot/index.mjs +3 -1
  46. package/package.json +1 -1
  47. package/dist/chunk-2J6CVLH2.mjs.map +0 -1
  48. package/dist/chunk-AD7T42HJ.js +0 -4
  49. package/dist/chunk-AD7T42HJ.js.map +0 -1
  50. package/dist/chunk-G5BG73Y5.js.map +0 -1
  51. package/dist/chunk-M7XQFDS4.mjs.map +0 -1
  52. package/dist/chunk-RFSO3JRG.mjs +0 -3
  53. package/dist/chunk-RFSO3JRG.mjs.map +0 -1
  54. package/dist/chunk-T67M2WBD.js.map +0 -1
@@ -451,180 +451,4 @@ declare const COLORS: {
451
451
  };
452
452
  declare const COLORS_DATA: Record<keyof typeof COLORS, ColorData>;
453
453
 
454
- /**
455
- * TreeOfLife represents a graph structure for mapping Kaabalah, Tarot, Astrology and other
456
- * esoteric correspondences. It can be used to create multiple independent instances
457
- * for different use cases or to isolate different sets of correspondences.
458
- */
459
- declare class TreeOfLife {
460
- private nodes;
461
- private adjacent;
462
- private modules;
463
- /**
464
- * Loads the tree of life system to be used
465
- * @param systemKey - the key of the system to load
466
- */
467
- loadSystem(systemKey: SystemKey): void;
468
- /**
469
- * Loads a part of a system into the tree of life
470
- * @param partKey - the key of the part to load
471
- */
472
- loadPart(partKey: PartKey): void;
473
- /**
474
- * Unloads the tree of life system and all its parts
475
- */
476
- unloadSystem(): void;
477
- get activeSystem(): SystemKey | null;
478
- get availableParts(): string[];
479
- get loadedParts(): PartKey[];
480
- get availableBridges(): Bridge[];
481
- get bridgedParts(): string[];
482
- /**
483
- * Upserts a node to the tree
484
- * @param node - the node to upsert
485
- * @returns the id of the added node
486
- */
487
- upsertNode<T extends NodeType>(node: Node<T>): NodeId<T>;
488
- getNode<T extends NodeType>(id: NodeId<T>): Node<T> | undefined;
489
- getNodes(): Node<NodeType>[];
490
- /**
491
- * Links two nodes bi-directionally
492
- * @param firstNode - the id of the first node
493
- * @param secondNode - the id of the second node
494
- */
495
- link(firstNode: NodeId<NodeType>, secondNode: NodeId<NodeType>): void;
496
- /**
497
- * Gets the current node and all its direct relations, or, when filtered by node type, only the direct relations of that type.
498
- * @param id - the id of the node to get the relations for
499
- * @param nodeType - the node type to filter the relations by
500
- * @returns the current node and all its direct relations
501
- */
502
- related<T extends NodeType, U extends NodeType>(id: NodeId<T>, nodeType?: U): Node<U>[];
503
- /**
504
- * Sugar for `related(id, type)[0]`
505
- * @param id - the id of the node to get the related node for
506
- * @param type - the type of the node to get the related node for
507
- * @returns the related node
508
- */
509
- relatedFirst<T extends NodeType, U extends NodeType>(id: NodeId<T>, type: U): Node<U> | undefined;
510
- /**
511
- * Gets all the types of nodes that are directly connected to the given node
512
- * @param id - the id of the node to get related types for
513
- * @returns array of node types that are directly connected
514
- */
515
- relatedTypes<T extends NodeType>(id: NodeId<T>): T[];
516
- /**
517
- * BFS up to depth k, optional type filter for the result set
518
- * @param id - the id of the node to get the extended relations for
519
- * @param depth - the depth of the walk
520
- * @param type - the type of the nodes to filter the result set by
521
- * @returns the current node and all its extended relations
522
- */
523
- walk<T extends NodeType, U extends NodeType>(id: NodeId<T>, depth?: number, type?: U): Node<U>[];
524
- /**
525
- * Removes a node and all its relations from the graph, cleaning up adjacency sets.
526
- * @param id - the id of the node to remove
527
- */
528
- removeNode(id: NodeId<NodeType>): void;
529
- addNumber({ number, nodeId }: {
530
- number: number;
531
- nodeId?: NodeId<NodeType>;
532
- }): NodeId<NumerologyTypes>;
533
- /**
534
- * Adds a sphere (sephirah) to the tree with its Hebrew and English names
535
- * @param sphere - the identifier for the sphere
536
- * @param data - the sphere's Hebrew and English names
537
- * @returns the sphere's id
538
- */
539
- addSphere({ sphere, data, relatedNumber, }: {
540
- sphere: string;
541
- data: NodeData<KaabalahTypes.SPHERE>;
542
- relatedNumber: number;
543
- }): NodeId<KaabalahTypes.SPHERE>;
544
- /**
545
- * Adds a path between two spheres with its associated number
546
- * @param leftSphere - the id of the first sphere
547
- * @param rightSphere - the id of the second sphere
548
- * @param relatedNumber - the number associated with this path
549
- * @returns the path's id
550
- */
551
- addPath({ leftSphere, rightSphere, relatedNumber, data, }: {
552
- leftSphere: NodeId<KaabalahTypes.SPHERE>;
553
- rightSphere: NodeId<KaabalahTypes.SPHERE>;
554
- relatedNumber: number;
555
- data?: Omit<NodeData<KaabalahTypes.PATH>, "from" | "to">;
556
- }): NodeId<KaabalahTypes.PATH>;
557
- addLetters({ path, letters, }: {
558
- path: NodeId<KaabalahTypes.PATH>;
559
- letters: {
560
- letter: string;
561
- type: NodeType;
562
- data?: NodeData<NodeType>;
563
- }[];
564
- }): void;
565
- addWesternAstrologySign({ spheres, path, house, planets, element, modality, sign, relatedNumber, }: {
566
- spheres: NodeId<KaabalahTypes.SPHERE>[];
567
- path: NodeId<KaabalahTypes.PATH>;
568
- house: NodeId<WesternAstrologyTypes.HOUSE>;
569
- planets: NodeId<WesternAstrologyTypes.PLANET>[];
570
- element: NodeId<WesternAstrologyTypes.WESTERN_ELEMENT>;
571
- modality: NodeId<WesternAstrologyTypes.MODALITIES>;
572
- sign: string;
573
- relatedNumber: number;
574
- }): NodeId<WesternAstrologyTypes.WESTERN_ZODIAC_SIGN>;
575
- addTarotArkAnnu({ node, tarotArkAnnu, data, relatedNumber, suit, }: {
576
- node: NodeId<NodeType>;
577
- tarotArkAnnu: string;
578
- data: NodeData<TarotTypes.TAROT_ARK_ANNU>;
579
- relatedNumber: number;
580
- suit?: string;
581
- }): NodeId<TarotTypes.TAROT_ARK_ANNU>;
582
- }
583
-
584
- /**
585
- * Loads the Hermetic Qabalah system into the tree of life
586
- */
587
- declare function loadHermeticQabalah(tree: TreeOfLife): TreeOfLife;
588
- declare function loadColors(tree: TreeOfLife): TreeOfLife;
589
- declare function loadMusicalNotes(tree: TreeOfLife): TreeOfLife;
590
- declare const LOADERS$2: {
591
- base: typeof loadHermeticQabalah;
592
- colors: typeof loadColors;
593
- music: typeof loadMusicalNotes;
594
- westernAstrology: Loader;
595
- };
596
-
597
- declare const LOADERS$1: {
598
- base: Loader;
599
- colors: Loader;
600
- music: Loader;
601
- westernAstrology: Loader;
602
- tarot: Loader;
603
- };
604
-
605
- /**
606
- * Loads the Lurianic Kabbalah system into the tree of life
607
- */
608
- declare function loadLurianicKabbalah(tree: TreeOfLife): TreeOfLife;
609
- declare const LOADERS: {
610
- base: typeof loadLurianicKabbalah;
611
- };
612
-
613
- type System = {
614
- SYSTEM: "kaabalah" | "hermetic-qabalah" | "lurianic-kabbalah";
615
- LOADERS: Record<string, Loader>;
616
- UNLOADERS: Record<string, Unloader>;
617
- BRIDGES: Bridge[];
618
- };
619
- declare const SYSTEMS: System[];
620
- type SystemKey = (typeof SYSTEMS)[number]["SYSTEM"];
621
- type PartKey = keyof typeof LOADERS$1 | keyof typeof LOADERS$2 | keyof typeof LOADERS;
622
- type Loader = (t: TreeOfLife) => TreeOfLife;
623
- type Unloader = (t: TreeOfLife) => void;
624
- type Bridge = {
625
- id: string;
626
- needs: PartKey[];
627
- run: (t: TreeOfLife) => void;
628
- };
629
-
630
- export { BaseNode as $, type PartKey as A, type Loader as B, type ColorData as C, type Bridge as D, TreeOfLife as E, FOUR_WORLDS as F, LetterTypes as G, type HebrewLetterData as H, WesternAstrologyTypes as I, TarotTypes as J, KaabalahTypes as K, type LatinLetterData as L, type MusicalNoteData as M, TantraTypes as N, NumerologyTypes as O, type PathData as P, MiscTypes as Q, type NodeType as R, type SphereData as S, type TarotArkAnnuData as T, type Unloader as U, type NodeId as V, type WorldData as W, id as X, parseId as Y, type NodeData as Z, type Node as _, FOUR_WORLDS_DATA as a, SPHERES as b, SPHERES_DATA as c, PLANETS as d, MODALITIES as e, WESTERN_ZODIAC_SIGNS as f, WESTERN_ELEMENTS as g, WESTERN_HOUSES as h, WESTERN_ASPECTS as i, MELKITZEDEKI_PATHS as j, LURIANIC_PATHS as k, LATIN_LETTERS as l, LATIN_LETTERS_DATA as m, HEBREW_LETTERS as n, HEBREW_LETTERS_DATA as o, TAROT_SUITS as p, TAROT_ARKANNUS as q, TAROT_DECKS as r, TAROT_ARKANNUS_DATA as s, MUSICAL_NOTES as t, MUSICAL_NOTES_DATA as u, COLORS as v, COLORS_DATA as w, type System as x, SYSTEMS as y, type SystemKey as z };
454
+ export { TantraTypes as A, MiscTypes as B, type ColorData as C, type NodeType as D, type NodeId as E, FOUR_WORLDS as F, id as G, type HebrewLetterData as H, parseId as I, type NodeData as J, KaabalahTypes as K, type LatinLetterData as L, type MusicalNoteData as M, NumerologyTypes as N, type Node as O, type PathData as P, BaseNode as Q, type SphereData as S, type TarotArkAnnuData as T, type WorldData as W, FOUR_WORLDS_DATA as a, SPHERES as b, SPHERES_DATA as c, PLANETS as d, MODALITIES as e, WESTERN_ZODIAC_SIGNS as f, WESTERN_ELEMENTS as g, WESTERN_HOUSES as h, WESTERN_ASPECTS as i, MELKITZEDEKI_PATHS as j, LURIANIC_PATHS as k, LATIN_LETTERS as l, LATIN_LETTERS_DATA as m, HEBREW_LETTERS as n, HEBREW_LETTERS_DATA as o, TAROT_SUITS as p, TAROT_ARKANNUS as q, TAROT_DECKS as r, TAROT_ARKANNUS_DATA as s, MUSICAL_NOTES as t, MUSICAL_NOTES_DATA as u, COLORS as v, COLORS_DATA as w, LetterTypes as x, WesternAstrologyTypes as y, TarotTypes as z };
@@ -451,180 +451,4 @@ declare const COLORS: {
451
451
  };
452
452
  declare const COLORS_DATA: Record<keyof typeof COLORS, ColorData>;
453
453
 
454
- /**
455
- * TreeOfLife represents a graph structure for mapping Kaabalah, Tarot, Astrology and other
456
- * esoteric correspondences. It can be used to create multiple independent instances
457
- * for different use cases or to isolate different sets of correspondences.
458
- */
459
- declare class TreeOfLife {
460
- private nodes;
461
- private adjacent;
462
- private modules;
463
- /**
464
- * Loads the tree of life system to be used
465
- * @param systemKey - the key of the system to load
466
- */
467
- loadSystem(systemKey: SystemKey): void;
468
- /**
469
- * Loads a part of a system into the tree of life
470
- * @param partKey - the key of the part to load
471
- */
472
- loadPart(partKey: PartKey): void;
473
- /**
474
- * Unloads the tree of life system and all its parts
475
- */
476
- unloadSystem(): void;
477
- get activeSystem(): SystemKey | null;
478
- get availableParts(): string[];
479
- get loadedParts(): PartKey[];
480
- get availableBridges(): Bridge[];
481
- get bridgedParts(): string[];
482
- /**
483
- * Upserts a node to the tree
484
- * @param node - the node to upsert
485
- * @returns the id of the added node
486
- */
487
- upsertNode<T extends NodeType>(node: Node<T>): NodeId<T>;
488
- getNode<T extends NodeType>(id: NodeId<T>): Node<T> | undefined;
489
- getNodes(): Node<NodeType>[];
490
- /**
491
- * Links two nodes bi-directionally
492
- * @param firstNode - the id of the first node
493
- * @param secondNode - the id of the second node
494
- */
495
- link(firstNode: NodeId<NodeType>, secondNode: NodeId<NodeType>): void;
496
- /**
497
- * Gets the current node and all its direct relations, or, when filtered by node type, only the direct relations of that type.
498
- * @param id - the id of the node to get the relations for
499
- * @param nodeType - the node type to filter the relations by
500
- * @returns the current node and all its direct relations
501
- */
502
- related<T extends NodeType, U extends NodeType>(id: NodeId<T>, nodeType?: U): Node<U>[];
503
- /**
504
- * Sugar for `related(id, type)[0]`
505
- * @param id - the id of the node to get the related node for
506
- * @param type - the type of the node to get the related node for
507
- * @returns the related node
508
- */
509
- relatedFirst<T extends NodeType, U extends NodeType>(id: NodeId<T>, type: U): Node<U> | undefined;
510
- /**
511
- * Gets all the types of nodes that are directly connected to the given node
512
- * @param id - the id of the node to get related types for
513
- * @returns array of node types that are directly connected
514
- */
515
- relatedTypes<T extends NodeType>(id: NodeId<T>): T[];
516
- /**
517
- * BFS up to depth k, optional type filter for the result set
518
- * @param id - the id of the node to get the extended relations for
519
- * @param depth - the depth of the walk
520
- * @param type - the type of the nodes to filter the result set by
521
- * @returns the current node and all its extended relations
522
- */
523
- walk<T extends NodeType, U extends NodeType>(id: NodeId<T>, depth?: number, type?: U): Node<U>[];
524
- /**
525
- * Removes a node and all its relations from the graph, cleaning up adjacency sets.
526
- * @param id - the id of the node to remove
527
- */
528
- removeNode(id: NodeId<NodeType>): void;
529
- addNumber({ number, nodeId }: {
530
- number: number;
531
- nodeId?: NodeId<NodeType>;
532
- }): NodeId<NumerologyTypes>;
533
- /**
534
- * Adds a sphere (sephirah) to the tree with its Hebrew and English names
535
- * @param sphere - the identifier for the sphere
536
- * @param data - the sphere's Hebrew and English names
537
- * @returns the sphere's id
538
- */
539
- addSphere({ sphere, data, relatedNumber, }: {
540
- sphere: string;
541
- data: NodeData<KaabalahTypes.SPHERE>;
542
- relatedNumber: number;
543
- }): NodeId<KaabalahTypes.SPHERE>;
544
- /**
545
- * Adds a path between two spheres with its associated number
546
- * @param leftSphere - the id of the first sphere
547
- * @param rightSphere - the id of the second sphere
548
- * @param relatedNumber - the number associated with this path
549
- * @returns the path's id
550
- */
551
- addPath({ leftSphere, rightSphere, relatedNumber, data, }: {
552
- leftSphere: NodeId<KaabalahTypes.SPHERE>;
553
- rightSphere: NodeId<KaabalahTypes.SPHERE>;
554
- relatedNumber: number;
555
- data?: Omit<NodeData<KaabalahTypes.PATH>, "from" | "to">;
556
- }): NodeId<KaabalahTypes.PATH>;
557
- addLetters({ path, letters, }: {
558
- path: NodeId<KaabalahTypes.PATH>;
559
- letters: {
560
- letter: string;
561
- type: NodeType;
562
- data?: NodeData<NodeType>;
563
- }[];
564
- }): void;
565
- addWesternAstrologySign({ spheres, path, house, planets, element, modality, sign, relatedNumber, }: {
566
- spheres: NodeId<KaabalahTypes.SPHERE>[];
567
- path: NodeId<KaabalahTypes.PATH>;
568
- house: NodeId<WesternAstrologyTypes.HOUSE>;
569
- planets: NodeId<WesternAstrologyTypes.PLANET>[];
570
- element: NodeId<WesternAstrologyTypes.WESTERN_ELEMENT>;
571
- modality: NodeId<WesternAstrologyTypes.MODALITIES>;
572
- sign: string;
573
- relatedNumber: number;
574
- }): NodeId<WesternAstrologyTypes.WESTERN_ZODIAC_SIGN>;
575
- addTarotArkAnnu({ node, tarotArkAnnu, data, relatedNumber, suit, }: {
576
- node: NodeId<NodeType>;
577
- tarotArkAnnu: string;
578
- data: NodeData<TarotTypes.TAROT_ARK_ANNU>;
579
- relatedNumber: number;
580
- suit?: string;
581
- }): NodeId<TarotTypes.TAROT_ARK_ANNU>;
582
- }
583
-
584
- /**
585
- * Loads the Hermetic Qabalah system into the tree of life
586
- */
587
- declare function loadHermeticQabalah(tree: TreeOfLife): TreeOfLife;
588
- declare function loadColors(tree: TreeOfLife): TreeOfLife;
589
- declare function loadMusicalNotes(tree: TreeOfLife): TreeOfLife;
590
- declare const LOADERS$2: {
591
- base: typeof loadHermeticQabalah;
592
- colors: typeof loadColors;
593
- music: typeof loadMusicalNotes;
594
- westernAstrology: Loader;
595
- };
596
-
597
- declare const LOADERS$1: {
598
- base: Loader;
599
- colors: Loader;
600
- music: Loader;
601
- westernAstrology: Loader;
602
- tarot: Loader;
603
- };
604
-
605
- /**
606
- * Loads the Lurianic Kabbalah system into the tree of life
607
- */
608
- declare function loadLurianicKabbalah(tree: TreeOfLife): TreeOfLife;
609
- declare const LOADERS: {
610
- base: typeof loadLurianicKabbalah;
611
- };
612
-
613
- type System = {
614
- SYSTEM: "kaabalah" | "hermetic-qabalah" | "lurianic-kabbalah";
615
- LOADERS: Record<string, Loader>;
616
- UNLOADERS: Record<string, Unloader>;
617
- BRIDGES: Bridge[];
618
- };
619
- declare const SYSTEMS: System[];
620
- type SystemKey = (typeof SYSTEMS)[number]["SYSTEM"];
621
- type PartKey = keyof typeof LOADERS$1 | keyof typeof LOADERS$2 | keyof typeof LOADERS;
622
- type Loader = (t: TreeOfLife) => TreeOfLife;
623
- type Unloader = (t: TreeOfLife) => void;
624
- type Bridge = {
625
- id: string;
626
- needs: PartKey[];
627
- run: (t: TreeOfLife) => void;
628
- };
629
-
630
- export { BaseNode as $, type PartKey as A, type Loader as B, type ColorData as C, type Bridge as D, TreeOfLife as E, FOUR_WORLDS as F, LetterTypes as G, type HebrewLetterData as H, WesternAstrologyTypes as I, TarotTypes as J, KaabalahTypes as K, type LatinLetterData as L, type MusicalNoteData as M, TantraTypes as N, NumerologyTypes as O, type PathData as P, MiscTypes as Q, type NodeType as R, type SphereData as S, type TarotArkAnnuData as T, type Unloader as U, type NodeId as V, type WorldData as W, id as X, parseId as Y, type NodeData as Z, type Node as _, FOUR_WORLDS_DATA as a, SPHERES as b, SPHERES_DATA as c, PLANETS as d, MODALITIES as e, WESTERN_ZODIAC_SIGNS as f, WESTERN_ELEMENTS as g, WESTERN_HOUSES as h, WESTERN_ASPECTS as i, MELKITZEDEKI_PATHS as j, LURIANIC_PATHS as k, LATIN_LETTERS as l, LATIN_LETTERS_DATA as m, HEBREW_LETTERS as n, HEBREW_LETTERS_DATA as o, TAROT_SUITS as p, TAROT_ARKANNUS as q, TAROT_DECKS as r, TAROT_ARKANNUS_DATA as s, MUSICAL_NOTES as t, MUSICAL_NOTES_DATA as u, COLORS as v, COLORS_DATA as w, type System as x, SYSTEMS as y, type SystemKey as z };
454
+ export { TantraTypes as A, MiscTypes as B, type ColorData as C, type NodeType as D, type NodeId as E, FOUR_WORLDS as F, id as G, type HebrewLetterData as H, parseId as I, type NodeData as J, KaabalahTypes as K, type LatinLetterData as L, type MusicalNoteData as M, NumerologyTypes as N, type Node as O, type PathData as P, BaseNode as Q, type SphereData as S, type TarotArkAnnuData as T, type WorldData as W, FOUR_WORLDS_DATA as a, SPHERES as b, SPHERES_DATA as c, PLANETS as d, MODALITIES as e, WESTERN_ZODIAC_SIGNS as f, WESTERN_ELEMENTS as g, WESTERN_HOUSES as h, WESTERN_ASPECTS as i, MELKITZEDEKI_PATHS as j, LURIANIC_PATHS as k, LATIN_LETTERS as l, LATIN_LETTERS_DATA as m, HEBREW_LETTERS as n, HEBREW_LETTERS_DATA as o, TAROT_SUITS as p, TAROT_ARKANNUS as q, TAROT_DECKS as r, TAROT_ARKANNUS_DATA as s, MUSICAL_NOTES as t, MUSICAL_NOTES_DATA as u, COLORS as v, COLORS_DATA as w, LetterTypes as x, WesternAstrologyTypes as y, TarotTypes as z };
@@ -1,5 +1,7 @@
1
- import { z as SystemKey, A as PartKey, E as TreeOfLife } from '../registry-DOiHyH-r.mjs';
2
- export { $ as BaseNode, D as Bridge, v as COLORS, w as COLORS_DATA, C as ColorData, F as FOUR_WORLDS, a as FOUR_WORLDS_DATA, n as HEBREW_LETTERS, o as HEBREW_LETTERS_DATA, H as HebrewLetterData, K as KaabalahTypes, l as LATIN_LETTERS, m as LATIN_LETTERS_DATA, k as LURIANIC_PATHS, L as LatinLetterData, G as LetterTypes, B as Loader, j as MELKITZEDEKI_PATHS, e as MODALITIES, t as MUSICAL_NOTES, u as MUSICAL_NOTES_DATA, Q as MiscTypes, M as MusicalNoteData, _ as Node, Z as NodeData, V as NodeId, R as NodeType, O as NumerologyTypes, d as PLANETS, P as PathData, b as SPHERES, c as SPHERES_DATA, y as SYSTEMS, S as SphereData, x as System, q as TAROT_ARKANNUS, s as TAROT_ARKANNUS_DATA, r as TAROT_DECKS, p as TAROT_SUITS, N as TantraTypes, T as TarotArkAnnuData, J as TarotTypes, U as Unloader, i as WESTERN_ASPECTS, g as WESTERN_ELEMENTS, h as WESTERN_HOUSES, f as WESTERN_ZODIAC_SIGNS, I as WesternAstrologyTypes, W as WorldData, X as id, Y as parseId } from '../registry-DOiHyH-r.mjs';
1
+ import { D as NodeType, E as NodeId, O as Node } from '../constants-DbFwuCjR.mjs';
2
+ export { Q as BaseNode, v as COLORS, w as COLORS_DATA, C as ColorData, F as FOUR_WORLDS, a as FOUR_WORLDS_DATA, n as HEBREW_LETTERS, o as HEBREW_LETTERS_DATA, H as HebrewLetterData, K as KaabalahTypes, l as LATIN_LETTERS, m as LATIN_LETTERS_DATA, k as LURIANIC_PATHS, L as LatinLetterData, x as LetterTypes, j as MELKITZEDEKI_PATHS, e as MODALITIES, t as MUSICAL_NOTES, u as MUSICAL_NOTES_DATA, B as MiscTypes, M as MusicalNoteData, J as NodeData, N as NumerologyTypes, d as PLANETS, P as PathData, b as SPHERES, c as SPHERES_DATA, S as SphereData, q as TAROT_ARKANNUS, s as TAROT_ARKANNUS_DATA, r as TAROT_DECKS, p as TAROT_SUITS, A as TantraTypes, T as TarotArkAnnuData, z as TarotTypes, i as WESTERN_ASPECTS, g as WESTERN_ELEMENTS, h as WESTERN_HOUSES, f as WESTERN_ZODIAC_SIGNS, y as WesternAstrologyTypes, W as WorldData, G as id, I as parseId } from '../constants-DbFwuCjR.mjs';
3
+ import { k as SystemKey, P as PartKey, l as TreeOfLife, f as TreeWorkspaceDescriptor, b as CorrespondenceEdge, c as TreeNote, T as TreeNoteTarget, h as CorrespondenceMatch, i as CorrespondenceMap, e as TreeOverlay } from '../correspondence-model-D8c42J4c.mjs';
4
+ export { B as Bridge, a as CorrespondenceMetadata, C as CorrespondenceSource, g as CorrespondenceStep, L as Loader, j as SYSTEMS, S as System, d as TreeOverlayCorrespondence, U as Unloader, m as makeCorrespondenceId } from '../correspondence-model-D8c42J4c.mjs';
3
5
 
4
6
  interface TreeOptions {
5
7
  system: SystemKey;
@@ -12,4 +14,65 @@ interface TreeOptions {
12
14
  */
13
15
  declare function createTree(opts?: TreeOptions): TreeOfLife;
14
16
 
15
- export { PartKey, SystemKey, TreeOfLife, type TreeOptions, createTree };
17
+ interface TreeCorrespondenceQueryOptions<T extends NodeType = NodeType> {
18
+ type?: T | readonly T[];
19
+ depth?: number;
20
+ includeSelf?: boolean;
21
+ limit?: number;
22
+ }
23
+ interface TreeFindNodesOptions<T extends NodeType = NodeType> {
24
+ type?: T | readonly T[];
25
+ ids?: readonly NodeId<T>[];
26
+ search?: string;
27
+ predicate?: (node: Node<T>) => boolean;
28
+ }
29
+ interface TreeVisualRequest {
30
+ nodeId: NodeId<NodeType>;
31
+ kind?: string;
32
+ [key: string]: unknown;
33
+ }
34
+ interface TreeVisualResult {
35
+ kind: string;
36
+ nodeId: NodeId<NodeType>;
37
+ [key: string]: unknown;
38
+ }
39
+ type TreeVisualResolver = (input: {
40
+ request: TreeVisualRequest;
41
+ workspace: TreeWorkspace;
42
+ }) => TreeVisualResult | undefined;
43
+ interface CreateTreeWorkspaceOptions {
44
+ base?: TreeWorkspace | TreeOfLife;
45
+ overlays?: TreeOverlay[];
46
+ descriptor?: TreeWorkspaceDescriptor;
47
+ visualResolvers?: TreeVisualResolver[];
48
+ }
49
+ type TreeGraphData = {
50
+ descriptor: TreeWorkspaceDescriptor;
51
+ nodesById: Map<NodeId<NodeType>, Node<NodeType>>;
52
+ nodeIdsByType: Map<NodeType, NodeId<NodeType>[]>;
53
+ edgesById: Map<string, CorrespondenceEdge>;
54
+ edgeIdsByNodeId: Map<NodeId<NodeType>, string[]>;
55
+ notesById: Map<string, TreeNote>;
56
+ noteIdsByNodeId: Map<NodeId<NodeType>, string[]>;
57
+ noteIdsByCorrespondenceId: Map<string, string[]>;
58
+ };
59
+ declare class TreeWorkspace {
60
+ private readonly graph;
61
+ private readonly visualResolvers;
62
+ readonly descriptor: TreeWorkspaceDescriptor;
63
+ constructor(graph: TreeGraphData, visualResolvers?: readonly TreeVisualResolver[]);
64
+ getNode<T extends NodeType>(id: NodeId<T>): Node<T> | undefined;
65
+ hasNode(id: NodeId<NodeType>): boolean;
66
+ getNodes<T extends NodeType>(type?: T): Node<T>[];
67
+ findNodes<T extends NodeType = NodeType>(options?: TreeFindNodesOptions<T>): Node<T>[];
68
+ getEdge(left: NodeId<NodeType>, right: NodeId<NodeType>): CorrespondenceEdge | undefined;
69
+ getEdges(nodeId?: NodeId<NodeType>): CorrespondenceEdge[];
70
+ getNotes(target?: TreeNoteTarget): TreeNote[];
71
+ getCorrespondences<T extends NodeType, U extends NodeType = NodeType>(nodeId: NodeId<T>, options?: TreeCorrespondenceQueryOptions<U>): CorrespondenceMatch<U>[];
72
+ getCorrespondenceMap<T extends NodeType>(nodeId: NodeId<T>, options?: Omit<TreeCorrespondenceQueryOptions, "type">): CorrespondenceMap;
73
+ resolveVisual(request: TreeVisualRequest): TreeVisualResult | undefined;
74
+ }
75
+ declare function createTreeWorkspace(options?: CreateTreeWorkspaceOptions): TreeWorkspace;
76
+ declare function getCanonicalTree(opts?: TreeOptions): TreeWorkspace;
77
+
78
+ export { CorrespondenceEdge, CorrespondenceMap, CorrespondenceMatch, type CreateTreeWorkspaceOptions, Node, NodeId, NodeType, PartKey, SystemKey, type TreeCorrespondenceQueryOptions, type TreeFindNodesOptions, TreeNote, TreeNoteTarget, TreeOfLife, type TreeOptions, TreeOverlay, type TreeVisualRequest, type TreeVisualResolver, type TreeVisualResult, TreeWorkspace, TreeWorkspaceDescriptor, createTree, createTreeWorkspace, getCanonicalTree };
@@ -1,5 +1,7 @@
1
- import { z as SystemKey, A as PartKey, E as TreeOfLife } from '../registry-DOiHyH-r.js';
2
- export { $ as BaseNode, D as Bridge, v as COLORS, w as COLORS_DATA, C as ColorData, F as FOUR_WORLDS, a as FOUR_WORLDS_DATA, n as HEBREW_LETTERS, o as HEBREW_LETTERS_DATA, H as HebrewLetterData, K as KaabalahTypes, l as LATIN_LETTERS, m as LATIN_LETTERS_DATA, k as LURIANIC_PATHS, L as LatinLetterData, G as LetterTypes, B as Loader, j as MELKITZEDEKI_PATHS, e as MODALITIES, t as MUSICAL_NOTES, u as MUSICAL_NOTES_DATA, Q as MiscTypes, M as MusicalNoteData, _ as Node, Z as NodeData, V as NodeId, R as NodeType, O as NumerologyTypes, d as PLANETS, P as PathData, b as SPHERES, c as SPHERES_DATA, y as SYSTEMS, S as SphereData, x as System, q as TAROT_ARKANNUS, s as TAROT_ARKANNUS_DATA, r as TAROT_DECKS, p as TAROT_SUITS, N as TantraTypes, T as TarotArkAnnuData, J as TarotTypes, U as Unloader, i as WESTERN_ASPECTS, g as WESTERN_ELEMENTS, h as WESTERN_HOUSES, f as WESTERN_ZODIAC_SIGNS, I as WesternAstrologyTypes, W as WorldData, X as id, Y as parseId } from '../registry-DOiHyH-r.js';
1
+ import { D as NodeType, E as NodeId, O as Node } from '../constants-DbFwuCjR.js';
2
+ export { Q as BaseNode, v as COLORS, w as COLORS_DATA, C as ColorData, F as FOUR_WORLDS, a as FOUR_WORLDS_DATA, n as HEBREW_LETTERS, o as HEBREW_LETTERS_DATA, H as HebrewLetterData, K as KaabalahTypes, l as LATIN_LETTERS, m as LATIN_LETTERS_DATA, k as LURIANIC_PATHS, L as LatinLetterData, x as LetterTypes, j as MELKITZEDEKI_PATHS, e as MODALITIES, t as MUSICAL_NOTES, u as MUSICAL_NOTES_DATA, B as MiscTypes, M as MusicalNoteData, J as NodeData, N as NumerologyTypes, d as PLANETS, P as PathData, b as SPHERES, c as SPHERES_DATA, S as SphereData, q as TAROT_ARKANNUS, s as TAROT_ARKANNUS_DATA, r as TAROT_DECKS, p as TAROT_SUITS, A as TantraTypes, T as TarotArkAnnuData, z as TarotTypes, i as WESTERN_ASPECTS, g as WESTERN_ELEMENTS, h as WESTERN_HOUSES, f as WESTERN_ZODIAC_SIGNS, y as WesternAstrologyTypes, W as WorldData, G as id, I as parseId } from '../constants-DbFwuCjR.js';
3
+ import { k as SystemKey, P as PartKey, l as TreeOfLife, f as TreeWorkspaceDescriptor, b as CorrespondenceEdge, c as TreeNote, T as TreeNoteTarget, h as CorrespondenceMatch, i as CorrespondenceMap, e as TreeOverlay } from '../correspondence-model-DhmBYoMf.js';
4
+ export { B as Bridge, a as CorrespondenceMetadata, C as CorrespondenceSource, g as CorrespondenceStep, L as Loader, j as SYSTEMS, S as System, d as TreeOverlayCorrespondence, U as Unloader, m as makeCorrespondenceId } from '../correspondence-model-DhmBYoMf.js';
3
5
 
4
6
  interface TreeOptions {
5
7
  system: SystemKey;
@@ -12,4 +14,65 @@ interface TreeOptions {
12
14
  */
13
15
  declare function createTree(opts?: TreeOptions): TreeOfLife;
14
16
 
15
- export { PartKey, SystemKey, TreeOfLife, type TreeOptions, createTree };
17
+ interface TreeCorrespondenceQueryOptions<T extends NodeType = NodeType> {
18
+ type?: T | readonly T[];
19
+ depth?: number;
20
+ includeSelf?: boolean;
21
+ limit?: number;
22
+ }
23
+ interface TreeFindNodesOptions<T extends NodeType = NodeType> {
24
+ type?: T | readonly T[];
25
+ ids?: readonly NodeId<T>[];
26
+ search?: string;
27
+ predicate?: (node: Node<T>) => boolean;
28
+ }
29
+ interface TreeVisualRequest {
30
+ nodeId: NodeId<NodeType>;
31
+ kind?: string;
32
+ [key: string]: unknown;
33
+ }
34
+ interface TreeVisualResult {
35
+ kind: string;
36
+ nodeId: NodeId<NodeType>;
37
+ [key: string]: unknown;
38
+ }
39
+ type TreeVisualResolver = (input: {
40
+ request: TreeVisualRequest;
41
+ workspace: TreeWorkspace;
42
+ }) => TreeVisualResult | undefined;
43
+ interface CreateTreeWorkspaceOptions {
44
+ base?: TreeWorkspace | TreeOfLife;
45
+ overlays?: TreeOverlay[];
46
+ descriptor?: TreeWorkspaceDescriptor;
47
+ visualResolvers?: TreeVisualResolver[];
48
+ }
49
+ type TreeGraphData = {
50
+ descriptor: TreeWorkspaceDescriptor;
51
+ nodesById: Map<NodeId<NodeType>, Node<NodeType>>;
52
+ nodeIdsByType: Map<NodeType, NodeId<NodeType>[]>;
53
+ edgesById: Map<string, CorrespondenceEdge>;
54
+ edgeIdsByNodeId: Map<NodeId<NodeType>, string[]>;
55
+ notesById: Map<string, TreeNote>;
56
+ noteIdsByNodeId: Map<NodeId<NodeType>, string[]>;
57
+ noteIdsByCorrespondenceId: Map<string, string[]>;
58
+ };
59
+ declare class TreeWorkspace {
60
+ private readonly graph;
61
+ private readonly visualResolvers;
62
+ readonly descriptor: TreeWorkspaceDescriptor;
63
+ constructor(graph: TreeGraphData, visualResolvers?: readonly TreeVisualResolver[]);
64
+ getNode<T extends NodeType>(id: NodeId<T>): Node<T> | undefined;
65
+ hasNode(id: NodeId<NodeType>): boolean;
66
+ getNodes<T extends NodeType>(type?: T): Node<T>[];
67
+ findNodes<T extends NodeType = NodeType>(options?: TreeFindNodesOptions<T>): Node<T>[];
68
+ getEdge(left: NodeId<NodeType>, right: NodeId<NodeType>): CorrespondenceEdge | undefined;
69
+ getEdges(nodeId?: NodeId<NodeType>): CorrespondenceEdge[];
70
+ getNotes(target?: TreeNoteTarget): TreeNote[];
71
+ getCorrespondences<T extends NodeType, U extends NodeType = NodeType>(nodeId: NodeId<T>, options?: TreeCorrespondenceQueryOptions<U>): CorrespondenceMatch<U>[];
72
+ getCorrespondenceMap<T extends NodeType>(nodeId: NodeId<T>, options?: Omit<TreeCorrespondenceQueryOptions, "type">): CorrespondenceMap;
73
+ resolveVisual(request: TreeVisualRequest): TreeVisualResult | undefined;
74
+ }
75
+ declare function createTreeWorkspace(options?: CreateTreeWorkspaceOptions): TreeWorkspace;
76
+ declare function getCanonicalTree(opts?: TreeOptions): TreeWorkspace;
77
+
78
+ export { CorrespondenceEdge, CorrespondenceMap, CorrespondenceMatch, type CreateTreeWorkspaceOptions, Node, NodeId, NodeType, PartKey, SystemKey, type TreeCorrespondenceQueryOptions, type TreeFindNodesOptions, TreeNote, TreeNoteTarget, TreeOfLife, type TreeOptions, TreeOverlay, type TreeVisualRequest, type TreeVisualResolver, type TreeVisualResult, TreeWorkspace, TreeWorkspaceDescriptor, createTree, createTreeWorkspace, getCanonicalTree };