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
@@ -1,158 +1,174 @@
1
1
  'use strict';
2
2
 
3
- require('../chunk-AD7T42HJ.js');
4
- var chunkT67M2WBD_js = require('../chunk-T67M2WBD.js');
3
+ var chunkXB6PXEKO_js = require('../chunk-XB6PXEKO.js');
4
+ var chunk3HYK4Q4B_js = require('../chunk-3HYK4Q4B.js');
5
5
  require('../chunk-FM7WUVZV.js');
6
6
 
7
7
 
8
8
 
9
+ Object.defineProperty(exports, "TreeWorkspace", {
10
+ enumerable: true,
11
+ get: function () { return chunkXB6PXEKO_js.TreeWorkspace; }
12
+ });
13
+ Object.defineProperty(exports, "createTreeWorkspace", {
14
+ enumerable: true,
15
+ get: function () { return chunkXB6PXEKO_js.createTreeWorkspace; }
16
+ });
17
+ Object.defineProperty(exports, "getCanonicalTree", {
18
+ enumerable: true,
19
+ get: function () { return chunkXB6PXEKO_js.getCanonicalTree; }
20
+ });
9
21
  Object.defineProperty(exports, "BaseNode", {
10
22
  enumerable: true,
11
- get: function () { return chunkT67M2WBD_js.BaseNode; }
23
+ get: function () { return chunk3HYK4Q4B_js.BaseNode; }
12
24
  });
13
25
  Object.defineProperty(exports, "COLORS", {
14
26
  enumerable: true,
15
- get: function () { return chunkT67M2WBD_js.COLORS; }
27
+ get: function () { return chunk3HYK4Q4B_js.COLORS; }
16
28
  });
17
29
  Object.defineProperty(exports, "COLORS_DATA", {
18
30
  enumerable: true,
19
- get: function () { return chunkT67M2WBD_js.COLORS_DATA; }
31
+ get: function () { return chunk3HYK4Q4B_js.COLORS_DATA; }
20
32
  });
21
33
  Object.defineProperty(exports, "FOUR_WORLDS", {
22
34
  enumerable: true,
23
- get: function () { return chunkT67M2WBD_js.FOUR_WORLDS; }
35
+ get: function () { return chunk3HYK4Q4B_js.FOUR_WORLDS; }
24
36
  });
25
37
  Object.defineProperty(exports, "FOUR_WORLDS_DATA", {
26
38
  enumerable: true,
27
- get: function () { return chunkT67M2WBD_js.FOUR_WORLDS_DATA; }
39
+ get: function () { return chunk3HYK4Q4B_js.FOUR_WORLDS_DATA; }
28
40
  });
29
41
  Object.defineProperty(exports, "HEBREW_LETTERS", {
30
42
  enumerable: true,
31
- get: function () { return chunkT67M2WBD_js.HEBREW_LETTERS; }
43
+ get: function () { return chunk3HYK4Q4B_js.HEBREW_LETTERS; }
32
44
  });
33
45
  Object.defineProperty(exports, "HEBREW_LETTERS_DATA", {
34
46
  enumerable: true,
35
- get: function () { return chunkT67M2WBD_js.HEBREW_LETTERS_DATA; }
47
+ get: function () { return chunk3HYK4Q4B_js.HEBREW_LETTERS_DATA; }
36
48
  });
37
49
  Object.defineProperty(exports, "KaabalahTypes", {
38
50
  enumerable: true,
39
- get: function () { return chunkT67M2WBD_js.KaabalahTypes; }
51
+ get: function () { return chunk3HYK4Q4B_js.KaabalahTypes; }
40
52
  });
41
53
  Object.defineProperty(exports, "LATIN_LETTERS", {
42
54
  enumerable: true,
43
- get: function () { return chunkT67M2WBD_js.LATIN_LETTERS; }
55
+ get: function () { return chunk3HYK4Q4B_js.LATIN_LETTERS; }
44
56
  });
45
57
  Object.defineProperty(exports, "LATIN_LETTERS_DATA", {
46
58
  enumerable: true,
47
- get: function () { return chunkT67M2WBD_js.LATIN_LETTERS_DATA; }
59
+ get: function () { return chunk3HYK4Q4B_js.LATIN_LETTERS_DATA; }
48
60
  });
49
61
  Object.defineProperty(exports, "LURIANIC_PATHS", {
50
62
  enumerable: true,
51
- get: function () { return chunkT67M2WBD_js.LURIANIC_PATHS; }
63
+ get: function () { return chunk3HYK4Q4B_js.LURIANIC_PATHS; }
52
64
  });
53
65
  Object.defineProperty(exports, "LetterTypes", {
54
66
  enumerable: true,
55
- get: function () { return chunkT67M2WBD_js.LetterTypes; }
67
+ get: function () { return chunk3HYK4Q4B_js.LetterTypes; }
56
68
  });
57
69
  Object.defineProperty(exports, "MELKITZEDEKI_PATHS", {
58
70
  enumerable: true,
59
- get: function () { return chunkT67M2WBD_js.MELKITZEDEKI_PATHS; }
71
+ get: function () { return chunk3HYK4Q4B_js.MELKITZEDEKI_PATHS; }
60
72
  });
61
73
  Object.defineProperty(exports, "MODALITIES", {
62
74
  enumerable: true,
63
- get: function () { return chunkT67M2WBD_js.MODALITIES; }
75
+ get: function () { return chunk3HYK4Q4B_js.MODALITIES; }
64
76
  });
65
77
  Object.defineProperty(exports, "MUSICAL_NOTES", {
66
78
  enumerable: true,
67
- get: function () { return chunkT67M2WBD_js.MUSICAL_NOTES; }
79
+ get: function () { return chunk3HYK4Q4B_js.MUSICAL_NOTES; }
68
80
  });
69
81
  Object.defineProperty(exports, "MUSICAL_NOTES_DATA", {
70
82
  enumerable: true,
71
- get: function () { return chunkT67M2WBD_js.MUSICAL_NOTES_DATA; }
83
+ get: function () { return chunk3HYK4Q4B_js.MUSICAL_NOTES_DATA; }
72
84
  });
73
85
  Object.defineProperty(exports, "MiscTypes", {
74
86
  enumerable: true,
75
- get: function () { return chunkT67M2WBD_js.MiscTypes; }
87
+ get: function () { return chunk3HYK4Q4B_js.MiscTypes; }
76
88
  });
77
89
  Object.defineProperty(exports, "NumerologyTypes", {
78
90
  enumerable: true,
79
- get: function () { return chunkT67M2WBD_js.NumerologyTypes; }
91
+ get: function () { return chunk3HYK4Q4B_js.NumerologyTypes; }
80
92
  });
81
93
  Object.defineProperty(exports, "PLANETS", {
82
94
  enumerable: true,
83
- get: function () { return chunkT67M2WBD_js.PLANETS; }
95
+ get: function () { return chunk3HYK4Q4B_js.PLANETS; }
84
96
  });
85
97
  Object.defineProperty(exports, "SPHERES", {
86
98
  enumerable: true,
87
- get: function () { return chunkT67M2WBD_js.SPHERES; }
99
+ get: function () { return chunk3HYK4Q4B_js.SPHERES; }
88
100
  });
89
101
  Object.defineProperty(exports, "SPHERES_DATA", {
90
102
  enumerable: true,
91
- get: function () { return chunkT67M2WBD_js.SPHERES_DATA; }
103
+ get: function () { return chunk3HYK4Q4B_js.SPHERES_DATA; }
92
104
  });
93
105
  Object.defineProperty(exports, "SYSTEMS", {
94
106
  enumerable: true,
95
- get: function () { return chunkT67M2WBD_js.SYSTEMS; }
107
+ get: function () { return chunk3HYK4Q4B_js.SYSTEMS; }
96
108
  });
97
109
  Object.defineProperty(exports, "TAROT_ARKANNUS", {
98
110
  enumerable: true,
99
- get: function () { return chunkT67M2WBD_js.TAROT_ARKANNUS; }
111
+ get: function () { return chunk3HYK4Q4B_js.TAROT_ARKANNUS; }
100
112
  });
101
113
  Object.defineProperty(exports, "TAROT_ARKANNUS_DATA", {
102
114
  enumerable: true,
103
- get: function () { return chunkT67M2WBD_js.TAROT_ARKANNUS_DATA; }
115
+ get: function () { return chunk3HYK4Q4B_js.TAROT_ARKANNUS_DATA; }
104
116
  });
105
117
  Object.defineProperty(exports, "TAROT_DECKS", {
106
118
  enumerable: true,
107
- get: function () { return chunkT67M2WBD_js.TAROT_DECKS; }
119
+ get: function () { return chunk3HYK4Q4B_js.TAROT_DECKS; }
108
120
  });
109
121
  Object.defineProperty(exports, "TAROT_SUITS", {
110
122
  enumerable: true,
111
- get: function () { return chunkT67M2WBD_js.TAROT_SUITS; }
123
+ get: function () { return chunk3HYK4Q4B_js.TAROT_SUITS; }
112
124
  });
113
125
  Object.defineProperty(exports, "TantraTypes", {
114
126
  enumerable: true,
115
- get: function () { return chunkT67M2WBD_js.TantraTypes; }
127
+ get: function () { return chunk3HYK4Q4B_js.TantraTypes; }
116
128
  });
117
129
  Object.defineProperty(exports, "TarotTypes", {
118
130
  enumerable: true,
119
- get: function () { return chunkT67M2WBD_js.TarotTypes; }
131
+ get: function () { return chunk3HYK4Q4B_js.TarotTypes; }
120
132
  });
121
133
  Object.defineProperty(exports, "TreeOfLife", {
122
134
  enumerable: true,
123
- get: function () { return chunkT67M2WBD_js.TreeOfLife; }
135
+ get: function () { return chunk3HYK4Q4B_js.TreeOfLife; }
124
136
  });
125
137
  Object.defineProperty(exports, "WESTERN_ASPECTS", {
126
138
  enumerable: true,
127
- get: function () { return chunkT67M2WBD_js.WESTERN_ASPECTS; }
139
+ get: function () { return chunk3HYK4Q4B_js.WESTERN_ASPECTS; }
128
140
  });
129
141
  Object.defineProperty(exports, "WESTERN_ELEMENTS", {
130
142
  enumerable: true,
131
- get: function () { return chunkT67M2WBD_js.WESTERN_ELEMENTS; }
143
+ get: function () { return chunk3HYK4Q4B_js.WESTERN_ELEMENTS; }
132
144
  });
133
145
  Object.defineProperty(exports, "WESTERN_HOUSES", {
134
146
  enumerable: true,
135
- get: function () { return chunkT67M2WBD_js.WESTERN_HOUSES; }
147
+ get: function () { return chunk3HYK4Q4B_js.WESTERN_HOUSES; }
136
148
  });
137
149
  Object.defineProperty(exports, "WESTERN_ZODIAC_SIGNS", {
138
150
  enumerable: true,
139
- get: function () { return chunkT67M2WBD_js.WESTERN_ZODIAC_SIGNS; }
151
+ get: function () { return chunk3HYK4Q4B_js.WESTERN_ZODIAC_SIGNS; }
140
152
  });
141
153
  Object.defineProperty(exports, "WesternAstrologyTypes", {
142
154
  enumerable: true,
143
- get: function () { return chunkT67M2WBD_js.WesternAstrologyTypes; }
155
+ get: function () { return chunk3HYK4Q4B_js.WesternAstrologyTypes; }
144
156
  });
145
157
  Object.defineProperty(exports, "createTree", {
146
158
  enumerable: true,
147
- get: function () { return chunkT67M2WBD_js.createTree; }
159
+ get: function () { return chunk3HYK4Q4B_js.createTree; }
148
160
  });
149
161
  Object.defineProperty(exports, "id", {
150
162
  enumerable: true,
151
- get: function () { return chunkT67M2WBD_js.id; }
163
+ get: function () { return chunk3HYK4Q4B_js.id; }
164
+ });
165
+ Object.defineProperty(exports, "makeCorrespondenceId", {
166
+ enumerable: true,
167
+ get: function () { return chunk3HYK4Q4B_js.makeCorrespondenceId; }
152
168
  });
153
169
  Object.defineProperty(exports, "parseId", {
154
170
  enumerable: true,
155
- get: function () { return chunkT67M2WBD_js.parseId; }
171
+ get: function () { return chunk3HYK4Q4B_js.parseId; }
156
172
  });
157
173
  //# sourceMappingURL=index.js.map
158
174
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
- import '../chunk-RFSO3JRG.mjs';
2
- export { BaseNode, COLORS, COLORS_DATA, FOUR_WORLDS, FOUR_WORLDS_DATA, HEBREW_LETTERS, HEBREW_LETTERS_DATA, KaabalahTypes, LATIN_LETTERS, LATIN_LETTERS_DATA, LURIANIC_PATHS, LetterTypes, MELKITZEDEKI_PATHS, MODALITIES, MUSICAL_NOTES, MUSICAL_NOTES_DATA, MiscTypes, NumerologyTypes, PLANETS, SPHERES, SPHERES_DATA, SYSTEMS, TAROT_ARKANNUS, TAROT_ARKANNUS_DATA, TAROT_DECKS, TAROT_SUITS, TantraTypes, TarotTypes, TreeOfLife, WESTERN_ASPECTS, WESTERN_ELEMENTS, WESTERN_HOUSES, WESTERN_ZODIAC_SIGNS, WesternAstrologyTypes, createTree, id, parseId } from '../chunk-2J6CVLH2.mjs';
1
+ export { TreeWorkspace, createTreeWorkspace, getCanonicalTree } from '../chunk-4NMXTZX4.mjs';
2
+ export { BaseNode, COLORS, COLORS_DATA, FOUR_WORLDS, FOUR_WORLDS_DATA, HEBREW_LETTERS, HEBREW_LETTERS_DATA, KaabalahTypes, LATIN_LETTERS, LATIN_LETTERS_DATA, LURIANIC_PATHS, LetterTypes, MELKITZEDEKI_PATHS, MODALITIES, MUSICAL_NOTES, MUSICAL_NOTES_DATA, MiscTypes, NumerologyTypes, PLANETS, SPHERES, SPHERES_DATA, SYSTEMS, TAROT_ARKANNUS, TAROT_ARKANNUS_DATA, TAROT_DECKS, TAROT_SUITS, TantraTypes, TarotTypes, TreeOfLife, WESTERN_ASPECTS, WESTERN_ELEMENTS, WESTERN_HOUSES, WESTERN_ZODIAC_SIGNS, WesternAstrologyTypes, createTree, id, makeCorrespondenceId, parseId } from '../chunk-IHQPXEB7.mjs';
3
3
  import '../chunk-WY6NIR2V.mjs';
4
4
  //# sourceMappingURL=index.mjs.map
5
5
  //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,281 @@
1
+ import { D as NodeType, O as Node, E as NodeId, N as NumerologyTypes, J as NodeData, K as KaabalahTypes, y as WesternAstrologyTypes, z as TarotTypes } from './constants-DbFwuCjR.mjs';
2
+
3
+ /**
4
+ * TreeOfLife represents a graph structure for mapping Kaabalah, Tarot, Astrology and other
5
+ * esoteric correspondences. It can be used to create multiple independent instances
6
+ * for different use cases or to isolate different sets of correspondences.
7
+ */
8
+ declare class TreeOfLife {
9
+ private nodes;
10
+ private adjacent;
11
+ private edges;
12
+ private mutationSources;
13
+ private modules;
14
+ private getCurrentMutationSource;
15
+ runWithMutationSource<T>(source: CorrespondenceSource, fn: () => T): T;
16
+ /**
17
+ * Loads the tree of life system to be used
18
+ * @param systemKey - the key of the system to load
19
+ */
20
+ loadSystem(systemKey: SystemKey): void;
21
+ /**
22
+ * Loads a part of a system into the tree of life
23
+ * @param partKey - the key of the part to load
24
+ */
25
+ loadPart(partKey: PartKey): void;
26
+ /**
27
+ * Unloads the tree of life system and all its parts
28
+ */
29
+ unloadSystem(): void;
30
+ get activeSystem(): SystemKey | null;
31
+ get availableParts(): string[];
32
+ get loadedParts(): PartKey[];
33
+ get availableBridges(): Bridge[];
34
+ get bridgedParts(): string[];
35
+ /**
36
+ * Upserts a node to the tree
37
+ * @param node - the node to upsert
38
+ * @returns the id of the added node
39
+ */
40
+ upsertNode<T extends NodeType>(node: Node<T>): NodeId<T>;
41
+ getNode<T extends NodeType>(id: NodeId<T>): Node<T> | undefined;
42
+ getNodes(): Node<NodeType>[];
43
+ getEdge(left: NodeId<NodeType>, right: NodeId<NodeType>): CorrespondenceEdge | undefined;
44
+ getEdges(nodeId?: NodeId<NodeType>): CorrespondenceEdge[];
45
+ /**
46
+ * Links two nodes bi-directionally
47
+ * @param firstNode - the id of the first node
48
+ * @param secondNode - the id of the second node
49
+ */
50
+ link(firstNode: NodeId<NodeType>, secondNode: NodeId<NodeType>, options?: {
51
+ metadata?: CorrespondenceMetadata;
52
+ source?: CorrespondenceSource;
53
+ }): void;
54
+ /**
55
+ * Gets the current node and all its direct relations, or, when filtered by node type, only the direct relations of that type.
56
+ * @param id - the id of the node to get the relations for
57
+ * @param nodeType - the node type to filter the relations by
58
+ * @returns the current node and all its direct relations
59
+ */
60
+ related<T extends NodeType, U extends NodeType>(id: NodeId<T>, nodeType?: U): Node<U>[];
61
+ /**
62
+ * Sugar for `related(id, type)[0]`
63
+ * @param id - the id of the node to get the related node for
64
+ * @param type - the type of the node to get the related node for
65
+ * @returns the related node
66
+ */
67
+ relatedFirst<T extends NodeType, U extends NodeType>(id: NodeId<T>, type: U): Node<U> | undefined;
68
+ /**
69
+ * Gets all the types of nodes that are directly connected to the given node
70
+ * @param id - the id of the node to get related types for
71
+ * @returns array of node types that are directly connected
72
+ */
73
+ relatedTypes<T extends NodeType>(id: NodeId<T>): T[];
74
+ /**
75
+ * BFS up to depth k, optional type filter for the result set
76
+ * @param id - the id of the node to get the extended relations for
77
+ * @param depth - the depth of the walk
78
+ * @param type - the type of the nodes to filter the result set by
79
+ * @returns the current node and all its extended relations
80
+ */
81
+ walk<T extends NodeType, U extends NodeType>(id: NodeId<T>, depth?: number, type?: U): Node<U>[];
82
+ /**
83
+ * Removes a node and all its relations from the graph, cleaning up adjacency sets.
84
+ * @param id - the id of the node to remove
85
+ */
86
+ removeNode(id: NodeId<NodeType>): void;
87
+ addNumber({ number, nodeId }: {
88
+ number: number;
89
+ nodeId?: NodeId<NodeType>;
90
+ }): NodeId<NumerologyTypes>;
91
+ /**
92
+ * Adds a sphere (sephirah) to the tree with its Hebrew and English names
93
+ * @param sphere - the identifier for the sphere
94
+ * @param data - the sphere's Hebrew and English names
95
+ * @returns the sphere's id
96
+ */
97
+ addSphere({ sphere, data, relatedNumber, }: {
98
+ sphere: string;
99
+ data: NodeData<KaabalahTypes.SPHERE>;
100
+ relatedNumber: number;
101
+ }): NodeId<KaabalahTypes.SPHERE>;
102
+ /**
103
+ * Adds a path between two spheres with its associated number
104
+ * @param leftSphere - the id of the first sphere
105
+ * @param rightSphere - the id of the second sphere
106
+ * @param relatedNumber - the number associated with this path
107
+ * @returns the path's id
108
+ */
109
+ addPath({ leftSphere, rightSphere, relatedNumber, data, }: {
110
+ leftSphere: NodeId<KaabalahTypes.SPHERE>;
111
+ rightSphere: NodeId<KaabalahTypes.SPHERE>;
112
+ relatedNumber: number;
113
+ data?: Omit<NodeData<KaabalahTypes.PATH>, "from" | "to">;
114
+ }): NodeId<KaabalahTypes.PATH>;
115
+ addLetters({ path, letters, }: {
116
+ path: NodeId<KaabalahTypes.PATH>;
117
+ letters: {
118
+ letter: string;
119
+ type: NodeType;
120
+ data?: NodeData<NodeType>;
121
+ }[];
122
+ }): void;
123
+ addWesternAstrologySign({ spheres, path, house, planets, element, modality, sign, relatedNumber, }: {
124
+ spheres: NodeId<KaabalahTypes.SPHERE>[];
125
+ path: NodeId<KaabalahTypes.PATH>;
126
+ house: NodeId<WesternAstrologyTypes.HOUSE>;
127
+ planets: NodeId<WesternAstrologyTypes.PLANET>[];
128
+ element: NodeId<WesternAstrologyTypes.WESTERN_ELEMENT>;
129
+ modality: NodeId<WesternAstrologyTypes.MODALITIES>;
130
+ sign: string;
131
+ relatedNumber: number;
132
+ }): NodeId<WesternAstrologyTypes.WESTERN_ZODIAC_SIGN>;
133
+ addTarotArkAnnu({ node, tarotArkAnnu, data, relatedNumber, suit, }: {
134
+ node: NodeId<NodeType>;
135
+ tarotArkAnnu: string;
136
+ data: NodeData<TarotTypes.TAROT_ARK_ANNU>;
137
+ relatedNumber: number;
138
+ suit?: string;
139
+ }): NodeId<TarotTypes.TAROT_ARK_ANNU>;
140
+ }
141
+
142
+ /**
143
+ * Loads the Hermetic Qabalah system into the tree of life
144
+ */
145
+ declare function loadHermeticQabalah(tree: TreeOfLife): TreeOfLife;
146
+ declare function loadColors(tree: TreeOfLife): TreeOfLife;
147
+ declare function loadMusicalNotes(tree: TreeOfLife): TreeOfLife;
148
+ declare const LOADERS$2: {
149
+ base: typeof loadHermeticQabalah;
150
+ colors: typeof loadColors;
151
+ music: typeof loadMusicalNotes;
152
+ westernAstrology: Loader;
153
+ };
154
+
155
+ declare const LOADERS$1: {
156
+ base: Loader;
157
+ colors: Loader;
158
+ music: Loader;
159
+ westernAstrology: Loader;
160
+ tarot: Loader;
161
+ };
162
+
163
+ /**
164
+ * Loads the Lurianic Kabbalah system into the tree of life
165
+ */
166
+ declare function loadLurianicKabbalah(tree: TreeOfLife): TreeOfLife;
167
+ declare const LOADERS: {
168
+ base: typeof loadLurianicKabbalah;
169
+ };
170
+
171
+ type System = {
172
+ SYSTEM: "kaabalah" | "hermetic-qabalah" | "lurianic-kabbalah";
173
+ LOADERS: Record<string, Loader>;
174
+ UNLOADERS: Record<string, Unloader>;
175
+ BRIDGES: Bridge[];
176
+ };
177
+ declare const SYSTEMS: System[];
178
+ type SystemKey = (typeof SYSTEMS)[number]["SYSTEM"];
179
+ type PartKey = keyof typeof LOADERS$1 | keyof typeof LOADERS$2 | keyof typeof LOADERS;
180
+ type Loader = (t: TreeOfLife) => TreeOfLife;
181
+ type Unloader = (t: TreeOfLife) => void;
182
+ type Bridge = {
183
+ id: string;
184
+ needs: PartKey[];
185
+ run: (t: TreeOfLife) => void;
186
+ };
187
+
188
+ type CorrespondenceSource = {
189
+ kind: "manual";
190
+ } | {
191
+ kind: "system";
192
+ system: SystemKey;
193
+ } | {
194
+ kind: "part";
195
+ system: SystemKey;
196
+ part: PartKey;
197
+ } | {
198
+ kind: "bridge";
199
+ system: SystemKey;
200
+ bridgeId: string;
201
+ parts: PartKey[];
202
+ } | {
203
+ kind: "overlay";
204
+ overlayId: string;
205
+ label?: string;
206
+ };
207
+ interface CorrespondenceMetadata {
208
+ kind?: string;
209
+ label?: string;
210
+ tags?: string[];
211
+ attributes?: Record<string, unknown>;
212
+ }
213
+ interface CorrespondenceEdge {
214
+ id: string;
215
+ left: NodeId<NodeType>;
216
+ right: NodeId<NodeType>;
217
+ metadata?: CorrespondenceMetadata;
218
+ sources: readonly CorrespondenceSource[];
219
+ }
220
+ type TreeNoteTarget = {
221
+ kind: "node";
222
+ nodeId: NodeId<NodeType>;
223
+ } | {
224
+ kind: "correspondence";
225
+ left: NodeId<NodeType>;
226
+ right: NodeId<NodeType>;
227
+ };
228
+ interface TreeNote {
229
+ id: string;
230
+ text: string;
231
+ kind?: string;
232
+ target: TreeNoteTarget;
233
+ metadata?: Record<string, unknown>;
234
+ }
235
+ type TreeOverlayCorrespondence = {
236
+ op: "add";
237
+ left: NodeId<NodeType>;
238
+ right: NodeId<NodeType>;
239
+ metadata?: CorrespondenceMetadata;
240
+ } | {
241
+ op: "remove";
242
+ left: NodeId<NodeType>;
243
+ right: NodeId<NodeType>;
244
+ } | {
245
+ op: "annotate";
246
+ left: NodeId<NodeType>;
247
+ right: NodeId<NodeType>;
248
+ metadata?: CorrespondenceMetadata;
249
+ };
250
+ interface TreeOverlay {
251
+ id: string;
252
+ name?: string;
253
+ version?: string;
254
+ nodes?: Node<NodeType>[];
255
+ correspondences?: TreeOverlayCorrespondence[];
256
+ notes?: TreeNote[];
257
+ }
258
+ interface TreeWorkspaceDescriptor {
259
+ id?: string;
260
+ name?: string;
261
+ version?: string;
262
+ system?: SystemKey;
263
+ parts?: readonly string[];
264
+ cacheKey?: string;
265
+ }
266
+ interface CorrespondenceStep {
267
+ from: NodeId<NodeType>;
268
+ to: NodeId<NodeType>;
269
+ edge: CorrespondenceEdge;
270
+ }
271
+ interface CorrespondenceMatch<T extends NodeType = NodeType> {
272
+ node: Node<T>;
273
+ distance: number;
274
+ path: readonly CorrespondenceStep[];
275
+ }
276
+ type CorrespondenceMap = Partial<{
277
+ [K in NodeType]: CorrespondenceMatch<K>[];
278
+ }>;
279
+ declare function makeCorrespondenceId(left: NodeId<NodeType>, right: NodeId<NodeType>): string;
280
+
281
+ export { type Bridge as B, type CorrespondenceSource as C, type Loader as L, type PartKey as P, type System as S, type TreeNoteTarget as T, type Unloader as U, type CorrespondenceMetadata as a, type CorrespondenceEdge as b, type TreeNote as c, type TreeOverlayCorrespondence as d, type TreeOverlay as e, type TreeWorkspaceDescriptor as f, type CorrespondenceStep as g, type CorrespondenceMatch as h, type CorrespondenceMap as i, SYSTEMS as j, type SystemKey as k, TreeOfLife as l, makeCorrespondenceId as m };