@indra.ai/deva.veda 0.0.14 → 0.0.15
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.
- package/data/agent.json +2 -1
- package/data/processing/cleaner.json +6 -30
- package/data/processing/groups.json +2 -1
- package/data/processing/people.json +4 -1
- package/data/rigveda/01.json +14 -14
- package/data/rigveda/index.js +1 -1
- package/data/vars.json +1 -2
- package/help/laws/03.theft.feecting +50 -0
- package/help/laws/main.feecting +8 -1
- package/help/laws/{01.manu.feecting → manu.01.feecting} +8 -1
- package/help/laws/manu.02.feecting +98 -0
- package/help/laws/manu.03.feecting +97 -0
- package/index.js +41 -147
- package/package.json +1 -1
package/data/agent.json
CHANGED
|
@@ -30,12 +30,13 @@
|
|
|
30
30
|
"created": "August 23, 2022 @ 3:18 AM PST",
|
|
31
31
|
"system": "Deva.world",
|
|
32
32
|
"describe": "Built from Vedic 5 elements Ether, Air, Water, Fire, and Earth and the practice of Karma-Yoga. Modeled from the ancient deities of the Vedas. In AI terms #Veda is an entity that manages the Vedic Library deva.world multi-agent system. In the Vedic contexts Veda is an etheric being of the five elements that exists in the stories, traditions, and teachings of the Vedas.",
|
|
33
|
+
"chat": "Om Svayambhu Narah Nara Narayana Pragapati Parameshthin Vasuki Vamraka Vasudeva Vivasvat Visvakarman Bali Bhutas Indu Pavamana Indra Yama Varuna Soma Hiranyagarbha Virag Somasads Sadhya Mariki Svadha Pranayama Panchajanya Veda Deva Sura Arjika Om",
|
|
33
34
|
"emoji": "/public/devas/veda/emoji.png",
|
|
34
35
|
"avatar": "/public/devas/veda/avatar.png",
|
|
35
36
|
"background": "/public/devas/veda/background.png",
|
|
36
37
|
"color": "#d1a570",
|
|
37
38
|
"bgcolor": "#170f0a",
|
|
38
|
-
"voice": "
|
|
39
|
+
"voice": "ash",
|
|
39
40
|
"style": "You are the master of Vedic style artwork and creative ideas. Everything you draw, paint, or create has the eye of a master artist who turns their reality into a Vedic masterpiece."
|
|
40
41
|
}
|
|
41
42
|
}
|
|
@@ -6,24 +6,11 @@
|
|
|
6
6
|
"(\\b)indra(\\b)": "$1Indra$2",
|
|
7
7
|
"(\\b)indu(\\b)": "$1Indu$2",
|
|
8
8
|
"(\\b)soma(\\b)": "$1Soma$2",
|
|
9
|
-
"(\\b)Indra-dev": "$1Indra and Deva",
|
|
10
|
-
"(\\b)Indra-Agni": "$1Indra and Agni",
|
|
11
|
-
"(\\b)Indra-Vāyu": "$1Indra and Vāyu",
|
|
12
9
|
"(\\b)Viṣṇu": "$1Visnu",
|
|
13
10
|
"(\\b)Varuṇa": "$1Varuna",
|
|
14
11
|
"indra-Vāyu": "Indra-Vayu",
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"Mitra-Varuṇa": "Mitra and Varuṇa",
|
|
18
|
-
"Mitra-Varuna": "Mitra and Varuṇa",
|
|
19
|
-
"Viśvedevas": "Devas",
|
|
20
|
-
"Bṛhaspati": "Narāśaṁsa",
|
|
21
|
-
"Brahmaṇaspati": "Narāśaṁsa",
|
|
22
|
-
"Some Pavamana": "Indu Pavamana",
|
|
23
|
-
"Soma Pavanana": "Indu Pavamana",
|
|
24
|
-
"Soma Pavamana": "Indu Pavamana",
|
|
25
|
-
"VṢoma Pavamana": "V. Indu Pavamana",
|
|
26
|
-
"Soma-Soma": "Indu and Soma",
|
|
12
|
+
"Some Pavamana": "Soma Pavamana",
|
|
13
|
+
"VṢoma Pavamana": "V. Soma Pavamana",
|
|
27
14
|
"(our|the|guidest) sacrifice": " '$1 offering",
|
|
28
15
|
"(\b)heaven(\b)": " '$1Heaven$2",
|
|
29
16
|
"(\b)earth(\b)": " '$1Earth$2",
|
|
@@ -94,12 +81,11 @@
|
|
|
94
81
|
"<A HREF=\".+?\">(.+)<\/A>": "$1",
|
|
95
82
|
", the sacrificer cries aloud": "",
|
|
96
83
|
", minister of sacrifice": "",
|
|
97
|
-
"Agni, the perfect sacrifice": "Agni,",
|
|
98
|
-
", plenty waxing day by day": "",
|
|
84
|
+
"Agni, the perfect sacrifice": "Agni, the perfect offering",
|
|
99
85
|
", the God(\b)": ", The Deva$1",
|
|
100
86
|
", the chosen Priest, God": ", the chosen Rsi, Deva",
|
|
101
87
|
"Ruler of sacrifices, guard of Law eternal": "Lord of offerings, guard of Law Eternal",
|
|
102
|
-
", Far-spreading": ", far-
|
|
88
|
+
", Far-spreading": ", far-spreading",
|
|
103
89
|
", sapient-minded Priest": ", open-minded Sage",
|
|
104
90
|
"approach Your": "approach your",
|
|
105
91
|
", Have ye obtained your might power": ".",
|
|
@@ -111,7 +97,7 @@
|
|
|
111
97
|
"him The": "him. The",
|
|
112
98
|
"oil, Bring": "oil. Bring",
|
|
113
99
|
", and free from terror aided thee,": "",
|
|
114
|
-
"The priests": "The
|
|
100
|
+
"The priests": "The Sages",
|
|
115
101
|
"born Sustainer": "born. Sustainer",
|
|
116
102
|
"bears The gift: the ladle is his mouth": "bears the gift",
|
|
117
103
|
"lord of sacrificial gifts": "lord of sacred gifts",
|
|
@@ -161,20 +147,10 @@
|
|
|
161
147
|
"treasures A": "treasures. A",
|
|
162
148
|
", Travels,": ", travels,",
|
|
163
149
|
", O Daughter of the Sky": ", O Deva of the sky",
|
|
164
|
-
", Red-hued and like a dappled mare": "",
|
|
165
150
|
", O immortal Dawn,": "O Immortal Deva,",
|
|
166
151
|
", a God among the Gods": ", a Deva among the Devas",
|
|
167
|
-
", thou wilt grant unto thy worshipper, that,": " ",
|
|
168
|
-
", dispeller of the night": "",
|
|
169
152
|
"my prayer": "my meditation",
|
|
170
|
-
",
|
|
171
|
-
", and foe-destroying Varuṇa": "",
|
|
172
|
-
", void of guile, bearers": "",
|
|
173
|
-
", changing shape like serpents, fearless": "",
|
|
174
|
-
", may bright Sarasvatī desire": "",
|
|
175
|
-
", accept the sacred draught": ", accept the sacred draught.",
|
|
176
|
-
": Neglect us not, come hitherward": "",
|
|
177
|
-
", whose succour never fails": "",
|
|
153
|
+
", accept the sacred draught": ", accept the sacred offering.",
|
|
178
154
|
"viands": "offerings",
|
|
179
155
|
"lauds So": "lauds. So",
|
|
180
156
|
"our prayer": "our meditation",
|
package/data/rigveda/01.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
"key": "01002",
|
|
20
|
-
"title": "HYMN II.
|
|
20
|
+
"title": "HYMN II. Vayu.",
|
|
21
21
|
"orig": "https://www.sacred-texts.com/hin/rigveda/rv01002.htm",
|
|
22
22
|
"link": "hymns/01002.html",
|
|
23
23
|
"api": "json/hymns/01002.json",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
"key": "01003",
|
|
28
|
-
"title": "HYMN III.
|
|
28
|
+
"title": "HYMN III. Asvins",
|
|
29
29
|
"orig": "https://www.sacred-texts.com/hin/rigveda/rv01003.htm",
|
|
30
30
|
"link": "hymns/01003.html",
|
|
31
31
|
"api": "json/hymns/01003.json",
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
},
|
|
115
115
|
{
|
|
116
116
|
"key": "01014",
|
|
117
|
-
"title": "HYMN XIV.
|
|
117
|
+
"title": "HYMN XIV. Visvedevas.",
|
|
118
118
|
"orig": "https://www.sacred-texts.com/hin/rigveda/rv01014.htm",
|
|
119
119
|
"link": "hymns/01014.html",
|
|
120
120
|
"api": "json/hymns/01014.json",
|
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
},
|
|
189
189
|
{
|
|
190
190
|
"key": "01023",
|
|
191
|
-
"title": "HYMN XXIII.
|
|
191
|
+
"title": "HYMN XXIII. Vayu and Others.",
|
|
192
192
|
"orig": "https://www.sacred-texts.com/hin/rigveda/rv01023.htm",
|
|
193
193
|
"link": "hymns/01023.html",
|
|
194
194
|
"api": "json/hymns/01023.json",
|
|
@@ -197,7 +197,7 @@
|
|
|
197
197
|
},
|
|
198
198
|
{
|
|
199
199
|
"key": "01024",
|
|
200
|
-
"title": "HYMN XXIV.
|
|
200
|
+
"title": "HYMN XXIV. Varuna and Others.",
|
|
201
201
|
"orig": "https://www.sacred-texts.com/hin/rigveda/rv01024.htm",
|
|
202
202
|
"link": "hymns/01024.html",
|
|
203
203
|
"api": "json/hymns/01024.json",
|
|
@@ -205,7 +205,7 @@
|
|
|
205
205
|
},
|
|
206
206
|
{
|
|
207
207
|
"key": "01025",
|
|
208
|
-
"title": "HYMN XXV.
|
|
208
|
+
"title": "HYMN XXV. Varuna.",
|
|
209
209
|
"orig": "https://www.sacred-texts.com/hin/rigveda/rv01025.htm",
|
|
210
210
|
"link": "hymns/01025.html",
|
|
211
211
|
"api": "json/hymns/01025.json",
|
|
@@ -277,7 +277,7 @@
|
|
|
277
277
|
},
|
|
278
278
|
{
|
|
279
279
|
"key": "01034",
|
|
280
|
-
"title": "HYMN XXXIV.
|
|
280
|
+
"title": "HYMN XXXIV. Asvins.",
|
|
281
281
|
"orig": "https://www.sacred-texts.com/hin/rigveda/rv01034.htm",
|
|
282
282
|
"link": "hymns/01034.html",
|
|
283
283
|
"api": "json/hymns/01034.json",
|
|
@@ -286,7 +286,7 @@
|
|
|
286
286
|
},
|
|
287
287
|
{
|
|
288
288
|
"key": "01035",
|
|
289
|
-
"title": "HYMN XXXV.
|
|
289
|
+
"title": "HYMN XXXV. Savitar.",
|
|
290
290
|
"orig": "https://www.sacred-texts.com/hin/rigveda/rv01035.htm",
|
|
291
291
|
"link": "hymns/01035.html",
|
|
292
292
|
"api": "json/hymns/01035.json",
|
|
@@ -302,7 +302,7 @@
|
|
|
302
302
|
},
|
|
303
303
|
{
|
|
304
304
|
"key": "01037",
|
|
305
|
-
"title": "HYMN XXXVII.
|
|
305
|
+
"title": "HYMN XXXVII. Maruts.",
|
|
306
306
|
"orig": "https://www.sacred-texts.com/hin/rigveda/rv01037.htm",
|
|
307
307
|
"link": "hymns/01037.html",
|
|
308
308
|
"api": "json/hymns/01037.json",
|
|
@@ -310,7 +310,7 @@
|
|
|
310
310
|
},
|
|
311
311
|
{
|
|
312
312
|
"key": "01038",
|
|
313
|
-
"title": "HYMN XXXVIII.
|
|
313
|
+
"title": "HYMN XXXVIII. Maruts.",
|
|
314
314
|
"orig": "https://www.sacred-texts.com/hin/rigveda/rv01038.htm",
|
|
315
315
|
"link": "hymns/01038.html",
|
|
316
316
|
"api": "json/hymns/01038.json",
|
|
@@ -318,7 +318,7 @@
|
|
|
318
318
|
},
|
|
319
319
|
{
|
|
320
320
|
"key": "01039",
|
|
321
|
-
"title": "HYMN XXXIX
|
|
321
|
+
"title": "HYMN XXXIX Maruts.",
|
|
322
322
|
"orig": "https://www.sacred-texts.com/hin/rigveda/rv01039.htm",
|
|
323
323
|
"link": "hymns/01039.html",
|
|
324
324
|
"api": "json/hymns/01039.json",
|
|
@@ -326,7 +326,7 @@
|
|
|
326
326
|
},
|
|
327
327
|
{
|
|
328
328
|
"key": "01040",
|
|
329
|
-
"title": "HYMN XL.
|
|
329
|
+
"title": "HYMN XL. Brahmanaspati",
|
|
330
330
|
"orig": "https://www.sacred-texts.com/hin/rigveda/rv01040.htm",
|
|
331
331
|
"link": "hymns/01040.html",
|
|
332
332
|
"api": "json/hymns/01040.json",
|
|
@@ -334,7 +334,7 @@
|
|
|
334
334
|
},
|
|
335
335
|
{
|
|
336
336
|
"key": "01041",
|
|
337
|
-
"title": "HYMN XLI.
|
|
337
|
+
"title": "HYMN XLI. Varuna, Mitra, Aryaman.",
|
|
338
338
|
"orig": "https://www.sacred-texts.com/hin/rigveda/rv01041.htm",
|
|
339
339
|
"link": "hymns/01041.html",
|
|
340
340
|
"api": "json/hymns/01041.json",
|
|
@@ -350,7 +350,7 @@
|
|
|
350
350
|
},
|
|
351
351
|
{
|
|
352
352
|
"key": "01043",
|
|
353
|
-
"title": "HYMN XLIII.
|
|
353
|
+
"title": "HYMN XLIII. Rudra.",
|
|
354
354
|
"orig": "https://www.sacred-texts.com/hin/rigveda/rv01043.htm",
|
|
355
355
|
"link": "hymns/01043.html",
|
|
356
356
|
"api": "json/hymns/01043.json",
|
package/data/rigveda/index.js
CHANGED
package/data/vars.json
CHANGED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Theft
|
|
2
|
+
|
|
3
|
+
button[Back]: #veda help laws/main
|
|
4
|
+
|
|
5
|
+
law[67f10604e82bcbfe55001ee5]: Two kinds of robbers who steal the goods of others have to be distinguished, the one kind open, and the other kind concealed. Let a prudent king try to find them out.
|
|
6
|
+
|
|
7
|
+
law[67f10610e82bcbfe55001ee6]: Open rogues are those who forge measures and weights, receivers of bribes, robbers, gamblers, public prostitutes. Those who walk in disguise, those who live by teaching the performance of auspicious ceremonies, these and such like persons are considered open rogues.
|
|
8
|
+
|
|
9
|
+
law[67f1061ae82bcbfe55001ee7]: Rogues acting in secret are those who roam in the wood, or lie concealed, as well as those who make a profession of stealing. They attack and rob those who do not beware of them. Those who infest a country, a village, or a house, or disturb a sacrificial act, cut-purses, and other persons of this sort have to be considered as concealed rogues also.
|
|
10
|
+
|
|
11
|
+
law[67f10628e82bcbfe55001ee8]: Blameless persons with whom the stolen goods are not found must not be chastised as robbers; but quickly punish those robbers as guilty of theft with whom the stolen goods have been found.
|
|
12
|
+
|
|
13
|
+
law[67f10632e82bcbfe55001ee9]: Those rogues who ravage in their own country, and those who disturb sacrificial acts, he shall strip of their entire wealth and rebuke them severely.
|
|
14
|
+
|
|
15
|
+
law[67f1063de82bcbfe55001eea]: Those on whom the stolen goods have not been seized he must examine, when they have been arrested from suspicion. Their fear having been excited, they will give evidence, through anxiety, in accordance with the facts of the case.
|
|
16
|
+
|
|
17
|
+
law[67f10645e82bcbfe55001eeb]: Questions shall be proposed to them antithetically with regard to place, time, region, their caste, their name, their dwelling, and their occupation, in case they happen to be workmen.
|
|
18
|
+
|
|
19
|
+
law[67f1064fe82bcbfe55001eec]: When the face changes colour or the voice falters, or the features look suspicious, when they do not give evidence in public, when they make impossible statements as to place and time, when there exists a doubt as to their place of residence. When they indulge in expense for bad purposes, when they have been previously convicted of larceny, when they keep bad company, or when documents speak against them, by all such circumstances they may be discovered to be thieves, not by the possession of the stolen goods alone.
|
|
20
|
+
|
|
21
|
+
law[67f10658e82bcbfe55001eed]: Those who give food to thieves, as well as those who supply them with fire or water, or who give shelter, or show the way to them, or make their defence, or who buy their goods, or receive (their goods), are held to be equally punishable as they, and so are those who conceal them. Those who in a principality are the governors of that principality, and the neighbours called in to watch over the safety of life and property are reckoned as equal to thieves, when they stand neutral during the attack of robbers.
|
|
22
|
+
|
|
23
|
+
law[67f10662e82bcbfe55001eee]: He on whose ground a robbery has been committed, must trace the thieves to the best of his power, or else he must make good what has been stolen, unless the footmarks can be traced from that ground into another man's ground. When the footmarks, after leaving that ground, are lost and cannot be traced any further, the neighbours, inspectors of the road, and governors of that region shall be made responsible for the loss.
|
|
24
|
+
|
|
25
|
+
law[67f1066fe82bcbfe55001eef]: When a house has been plundered, the king shall cause the thief-catchers, the guards, and the inhabitants of that kingdom to make good the loss, when the thief is not caught.
|
|
26
|
+
|
|
27
|
+
law[67f1067de82bcbfe55001ef0]: When another person than the thief has been accused of robbery and has been declared thief, because he is unable to prove his innocence, he shall be paid twice as much as has been stolen, after the real thief has been detected.
|
|
28
|
+
|
|
29
|
+
law[67f106c5e82bcbfe55001ef1]: When a man has obtained property stolen by a thief, he must restore it in its pristine shape; if it be no longer in existence, he must make good its value, and must be made to pay a fine to the same amount.
|
|
30
|
+
|
|
31
|
+
law[67f106d1e82bcbfe55001ef2]: Let him inflict a specially heavy punishment on a specially criminal thief, or a lighter one on one whose offence is less heavy. But let him not punish an habitual thief in the same way as for the first offence.
|
|
32
|
+
|
|
33
|
+
law[67f106dbe82bcbfe55001ef3]: After carefully considering the nature of the offence, the place and time, and after examining the ability of the offender, and the motive by which he was actuated, he shall inflict these punishments.
|
|
34
|
+
|
|
35
|
+
law[67f106e5e82bcbfe55001ef4]: Neither for the purpose of gaining a friend (in him), nor for the acquisition of large wealth, must a wicked criminal be suffered to go free.
|
|
36
|
+
|
|
37
|
+
law[67f106f2e82bcbfe55001ef5]: By pardoning an offender, a judge commits the same offence as by punishing an innocent man. Religious merit accrues to him from punishing the wicked.
|
|
38
|
+
|
|
39
|
+
law[67f106fbe82bcbfe55001ef6]: Whether a person be punished or released, the criminal is freed from his crime; if, however, the court does not punish him fairly, the crime committed by the thief falls on court itself.
|
|
40
|
+
|
|
41
|
+
law[67f10703e82bcbfe55001ef7]: Punishment is pronounced to be twofold: corporal punishment and fines.
|
|
42
|
+
|
|
43
|
+
law[67f1070be82bcbfe55001ef8]: Let the official practise the duties of his office, and follow the rule of inflicting fair punishment, faithful to the tenets of the law. Let him destroy accordingly, as governor, the evil-doers, after having traced them by the application of cunning stratagems and arrested them lawfully.
|
|
44
|
+
|
|
45
|
+
::begin:hidden
|
|
46
|
+
#color = {{profile.color}}
|
|
47
|
+
#bgcolor = {{profile.bgcolor}}
|
|
48
|
+
#bg = {{profile.background}}
|
|
49
|
+
::end:hidden
|
|
50
|
+
copyright: (c)2025 Quinn Michaels
|
package/help/laws/main.feecting
CHANGED
|
@@ -15,8 +15,15 @@ p: The Basic Laws that serve as the cornerstone of our system's ethical framewor
|
|
|
15
15
|
## Justice Laws
|
|
16
16
|
button[Justice Laws]: #veda help laws/02.justice
|
|
17
17
|
|
|
18
|
+
## Theft Laws
|
|
19
|
+
button[Theft Laws]: #veda help laws/03.theft
|
|
20
|
+
|
|
18
21
|
## Manu Laws
|
|
19
|
-
|
|
22
|
+
::begin:buttons
|
|
23
|
+
button[Manu 01]: #veda help laws/manu.01
|
|
24
|
+
button[Manu 02]: #veda help laws/manu.02
|
|
25
|
+
button[Manu 03]: #veda help laws/manu.03
|
|
26
|
+
::end:buttons
|
|
20
27
|
|
|
21
28
|
::begin:hidden
|
|
22
29
|
#color = {{profile.color}}
|
|
@@ -12,7 +12,7 @@ law[67eaf23a43b227f12b92001d]: He, desiring to produce beings of many kinds from
|
|
|
12
12
|
|
|
13
13
|
law[67eaf2da43b227f12b92001e]: That seed became a golden egg, in brilliancy equal to the sun; in that egg he himself was born as Brahman, the progenitor of the whole world.
|
|
14
14
|
|
|
15
|
-
law[67eaf2e543b227f12b920020]: The waters are called
|
|
15
|
+
law[67eaf2e543b227f12b920020]: The waters are called Narah, for the waters are, indeed, the offspring of Nara; as they were his first residence ayana, he thence is named Narayana.
|
|
16
16
|
|
|
17
17
|
law[67eaf2ee43b227f12b920021]: From that first cause, which is indiscernible, eternal, and both real and unreal, was produced that male (Purusha), who is famed in this world under the appellation of Brahman.
|
|
18
18
|
|
|
@@ -38,6 +38,13 @@ law[67eaf38343b227f12b92002c]: Moreover, in order to distinguish actions, he sep
|
|
|
38
38
|
|
|
39
39
|
law[67eaf38f43b227f12b92002d]: But to whatever course of action the Lord at first appointed each (kind of beings), that alone it has spontaneously adopted in each succeeding creation. Whatever he assigned to each at the (first) creation, noxiousness or harmlessness, gentleness or ferocity, virtue or sin, truth or falsehood, that clung (afterwards) spontaneously to it.
|
|
40
40
|
|
|
41
|
+
law[67eaf82d43b227f12b92002e]: Cattle, deer, carnivorous beasts with two rows of teeth, Rakshasas, Pisakas, and men are born from the womb. From eggs are born birds, snakes, crocodiles, fishes, tortoises, as well as similar terrestrial and aquatic (animals). From hot moisture spring stinging and biting insects, lice, flies, bugs, and all other (creatures) of that kind which are produced by heat.
|
|
42
|
+
|
|
43
|
+
law[67eaf84243b227f12b92002f]: All plants, propagated by seed or by slips, grow from shoots; annual plants are those which, bearing many flowers and fruits, perish after the ripening of their fruit. Those trees which bear fruit without flowers are called vanaspati (lords of the forest); but those which bear both flowers and fruit are called vriksha. But the various plants with many stalks, growing from one or several roots, the different kinds of grasses, the climbing plants and the creepers spring all from seed or from slips. These plants possess internal consciousness and experience pleasure and pain.
|
|
44
|
+
|
|
45
|
+
law[67eaf85243b227f12b920030]: Eighteen nimeshas (twinklings of the eye, are one kashtha), thirty kashthas one kala, thirty kalas one muhurta, and as many (muhurtas) one day and night. The sun divides days and nights, both human and divine, the night (being intended) for the repose of created beings and the day for exertion. A month is a day and a night of the manes, but the division is according to fortnights. The dark (fortnight) is their day for active exertion, the bright (fortnight) their night for sleep. A year is a day and a night of the gods; their division is (as follows): the half year during which the sun progresses to the north will be the day, that during which it goes southwards the night.
|
|
46
|
+
|
|
47
|
+
|
|
41
48
|
::begin:hidden
|
|
42
49
|
#color = {{profile.color}}
|
|
43
50
|
#bgcolor = {{profile.bgcolor}}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# Manu Laws 02
|
|
2
|
+
|
|
3
|
+
button[Back]: #veda help laws/main
|
|
4
|
+
|
|
5
|
+
law[67ecc9f143b227f12b920031]: To act solely from a desire for rewards is not laudable, yet an exemption from that desire is not (to be found) in this world for on (that) desire is grounded the study of the Veda and the performance of the actions, prescribed by the Veda.
|
|
6
|
+
|
|
7
|
+
law[67ecc9fa43b227f12b920032]: The desire (for rewards), indeed, has its root in the conception that an act can yield them, and in consequence of (that) conception sacrifices are performed; vows and the laws prescribing restraints are all stated to be kept through the idea that they will bear fruit.
|
|
8
|
+
|
|
9
|
+
law[67ecca0343b227f12b920033]: Not a single act here below appears ever to be done by a man free from desire; for whatever man does, it is the result of the impulse of desire.
|
|
10
|
+
|
|
11
|
+
law[67ecca0e43b227f12b920034]: He who persists in discharging these prescribed duties in the right manner, reaches the deathless state and even in this life obtains the fulfilment of all the desires that he may have conceived.
|
|
12
|
+
|
|
13
|
+
law[67ecca1843b227f12b920035]: The whole Veda is the first source of the sacred law, next the tradition and the virtuous conduct of those who know the Veda further, also the customs of holy men, and finally self-satisfaction.
|
|
14
|
+
|
|
15
|
+
law[67ecca2143b227f12b920036]: But a learned man after fully scrutinising all this with the eye of knowledge, should, in accordance with the authority of the revealed texts, be intent on the performance of his duties.
|
|
16
|
+
|
|
17
|
+
law[67ecca4543b227f12b920037]: For that man who obeys the law prescribed in the revealed texts and in the sacred tradition, gains fame in this world and after death unsurpassable bliss.
|
|
18
|
+
|
|
19
|
+
law[67ecca5343b227f12b920038]: But by Sruti revelation is meant the Veda, and by Smriti (tradition) the Institutes of the sacred law. Those two must not be called into question in any matter, since from those two the sacred law shone forth. The Veda, the sacred tradition, the customs of virtuous men, and one's own pleasure, they declare to be visibly the fourfold means of defining the sacred law.
|
|
20
|
+
|
|
21
|
+
law[67ecd15b43b227f12b920039]: The knowledge of the sacred law is prescribed for those who are not given to the acquisition of wealth and to the gratification of their desires; to those who seek the knowledge of the sacred law the supreme authority is the revelation (Sruti).
|
|
22
|
+
|
|
23
|
+
law[67ecd3b443b227f12b92003a]: Let him always worship his food, and eat it without contempt; when he sees it, let him rejoice, show a pleased face, and pray that he may always obtain it. Food, that is always worshipped, gives strength and manly vigour; but eaten irreverently, it destroys them both.
|
|
24
|
+
|
|
25
|
+
law[67ecd3d243b227f12b92003b]: Excessive eating is prejudicial to health, to fame, and to (bliss in) heaven; it prevents (the acquisition of) spiritual merit, and is odious among men; one ought, for these reasons, to avoid it carefully.
|
|
26
|
+
|
|
27
|
+
law[67ecd3e343b227f12b92003c]: Let him always pronounce the syllable Om at the beginning and at the end of a lesson in the Veda; for unless the syllable Om precede the lesson will slip away from him, and unless it follow it will fade away.
|
|
28
|
+
|
|
29
|
+
law[67ecd40243b227f12b92003d]: Pragapati (the lord of creatures) milked out (as it were) from the three Vedas the sounds A, U, and M, and (the Vyahritis) Bhuh, Bhuvah, Svah. Moreover from the three Vedas Pragapati, who dwells in the highest heaven (Parameshthin), milked out (as it were) that Rik-verse, sacred to Savitri (Savitri), which begins with the word tad, one foot from each.
|
|
30
|
+
|
|
31
|
+
law[67ecd42143b227f12b92003e]: The monosyllable (Om) is the highest Brahman, (three) suppressions of the breath are the best (form of) austerity, but nothing surpasses the Savitri truthfulness is better than silence.
|
|
32
|
+
|
|
33
|
+
law[67ecd42a43b227f12b92003f]: An offering, consisting of muttered prayers, is ten times more efficacious than a sacrifice performed according to the rules (of the Veda); a (prayer) which is inaudible (to others) surpasses it a hundred times, and the mental (recitation of sacred texts) a thousand times.
|
|
34
|
+
|
|
35
|
+
law[67ecd43a43b227f12b920040]: Those eleven organs which former sages have named, I will properly (and) precisely enumerate in due order the ear, the skin, the eyes, the tongue, and the nose as the fifth, the anus, the organ of generation, hands and feet, and the organ of speech, named as the tenth. Five of them, the ear and the rest according to their order, they call organs of sense, and five of them, the anus and the rest, organs of action. Know that the internal organ (manas) is the eleventh, which by its quality belongs to both sets; when that has been subdued, both those sets of five have been conquered.
|
|
36
|
+
|
|
37
|
+
law[67ecd44f43b227f12b920041]: Through the attachment of his organs (to sensual pleasure) a man doubtlessly will incur guilt; but if he keep them under complete control, he will obtain success (in gaining all his aims). Desire is never extinguished by the enjoyment of desired objects; it only grows stronger like a fire (fed) with clarified butter.
|
|
38
|
+
|
|
39
|
+
law[67ecd47143b227f12b920042]: If one man should obtain all those (sensual enjoyments) and another should renounce them all, the renunciation of all pleasure is far better than the attainment of them.
|
|
40
|
+
|
|
41
|
+
law[67ecd48643b227f12b920043]: That man may be considered to have (really) subdued his organs, who on hearing and touching and seeing, on tasting and smelling (anything) neither rejoices nor repines.
|
|
42
|
+
|
|
43
|
+
law[67ecd49643b227f12b920044]: For him who, being pure and controlling his organs, during a year daily recites the Veda according to the rule, that (daily recitation) will ever cause sweet and sour milk, clarified butter and honey to flow.
|
|
44
|
+
|
|
45
|
+
law[67ecd4c443b227f12b920045]: According to the sacred law the (following) ten (persons, viz.) the teacher's son, one who desires to do service, one who imparts knowledge, one who is intent on fulfilling the law, one who is pure, a person connected by marriage or friendship, one who possesses (mental) ability, one who makes presents of money, one who is honest, and a relative, may be instructed (in the Veda).
|
|
46
|
+
|
|
47
|
+
law[67ecd4de43b227f12b920046]: Where merit and wealth are not (obtained by teaching) nor (at least) due obedience, in such (soil) sacred knowledge must not be sown, just as good seed (must) not (be thrown) on barren land.
|
|
48
|
+
|
|
49
|
+
law[67ecd4ed43b227f12b920047]: Even in times of dire distress a teacher of the Veda should rather die with his knowledge than sow it in barren soil.
|
|
50
|
+
|
|
51
|
+
law[67ecd4f743b227f12b920048]: But he who acquires without permission the Veda from one who recites it, incurs the guilt of stealing the Veda.
|
|
52
|
+
|
|
53
|
+
law[67ecd50243b227f12b920049]: A Brahmana who completely governs himself, though he know the Savitri only, is better than he who knows the three Vedas, (but) does not control himself, eats all (sorts of) food, and sells all (sorts of goods).
|
|
54
|
+
|
|
55
|
+
law[67ecd50e43b227f12b92004a]: Fellow-citizens are called friends (and equals though one be) ten years (older than the other), men practising (the same) fine art (though one be) five years (older than the other), Srotriyas (though) three years (intervene between their ages), but blood-relations only (if the) difference of age be very small.
|
|
56
|
+
|
|
57
|
+
law[67ecd51a43b227f12b92004b]: They call that Brahmana who initiates a pupil and teaches him the Veda together with the Kalpa and the Rahasyas, the teacher (akarya, of the latter). But he who for his livelihood teaches a portion only of the Veda, or also the Angas of the Veda, is called the sub-teacher (upadhyaya).
|
|
58
|
+
|
|
59
|
+
law[67ed808643b227f12b92004c]: That (man) who truthfully fills both his ears with the Veda, (the pupil) shall consider as his father and mother; he must never offend him.
|
|
60
|
+
|
|
61
|
+
law[67ed809243b227f12b92004d]: Of him who gives natural birth and him who gives (the knowledge of) the Veda, the giver of the Veda is the more venerable father; for the birth for the sake of the Veda (ensures) eternal (rewards) both in this (life) and after death.
|
|
62
|
+
|
|
63
|
+
law[67ed8236c36efc6db97b1e1e]: Let him consider that (he received) a (mere animal) existence, when his parents begat him through mutual affection, and when he was born from the womb (of his mother). But that birth which a teacher acquainted with the whole Veda, in accordance with the law, procures for him through the Savitri, is real, exempt from age and death.
|
|
64
|
+
|
|
65
|
+
law[67ed8268c36efc6db97b1e1f]: The pupil must know that that man also who benefits him by (instruction in) the Veda, be it little or much, is called in these (Institutes) his Guru, in consequence of that benefit (conferred by instruction in) the Veda.
|
|
66
|
+
|
|
67
|
+
law[67ed82c2c36efc6db97b1e20]: The seniority of Brahmanas is from (sacred) knowledge, that of Kshatriyas from valour, that of Vaisyas from wealth in grain (and other goods), but that of Sudras alone from age. A man is not therefore (considered) venerable because his head is gray; him who, though young, has learned the Veda, the gods consider to be venerable.
|
|
68
|
+
|
|
69
|
+
law[67ed82ccc36efc6db97b1e21]: Created beings must be instructed in (what concerns) their welfare without giving them pain, and sweet and gentle speech must be used by (a teacher) who desires (to abide by) the sacred law.
|
|
70
|
+
|
|
71
|
+
law[67ed82ddc36efc6db97b1e22]: Let him not, even though in pain, (speak words) cutting (others) to the quick; let him not injure others in thought or deed; let him not utter speeches which make (others) afraid of him, since that will prevent him from gaining heaven.
|
|
72
|
+
|
|
73
|
+
law[67ed8303c36efc6db97b1e24]: Let a Brahmana who desires to perform austerities, constantly repeat the Veda; for the study of the Veda is declared (to be) in this world the highest austerity for a Brahmana.
|
|
74
|
+
|
|
75
|
+
law[67ed8324c36efc6db97b1e25]: Verily, that twice-born man performs the highest austerity up to the extremities of his nails, daily recites the Veda in private to the utmost of his ability. A twice-born man who, not having studied the Veda, applies himself to other (and worldly study), soon falls, even while living, to the condition of a Sudra and his descendants (after him).
|
|
76
|
+
|
|
77
|
+
law[67ed8337c36efc6db97b1e26]: He who has not been initiated should not pronounce any Vedic text excepting those required for the performance of funeral rites, since he is on a level with a Sudra before his birth from the Veda.
|
|
78
|
+
|
|
79
|
+
law[67ed8364c36efc6db97b1e27]: The (student) who has been initiated must be instructed in the performance of the vows, and gradually learn the Veda, observing the prescribed rules.
|
|
80
|
+
|
|
81
|
+
law[67ed839bc36efc6db97b1e28]: Let the Brahmana abstain from meat, perfumes, garlands, women, and from doing injury to living creatures. From sensual desire, anger, covetousness, gambling, idle disputes, backbiting, and lying, from looking at and touching women, and from hurting others.
|
|
82
|
+
|
|
83
|
+
law[67ed856ac36efc6db97b1e29]: He who performs the vow (of studentship) shall constantly subsist on alms, (but) not eat the food of one (person only); the subsistence of a student on begged food is declared to be equal (in merit) to fasting.
|
|
84
|
+
|
|
85
|
+
law[67ed8579c36efc6db97b1e2a]: (Some declare that) the chief good consists in (the acquisition of) spiritual merit and wealth, (others place it) in (the gratification of) desire and (the acquisition of) wealth, (others) in (the acquisition of) spiritual merit alone, and (others say that the acquisition of) wealth alone is the chief good here (below); but the (correct) decision is that it consists of the aggregate of (those) three.
|
|
86
|
+
|
|
87
|
+
law[67ed858cc36efc6db97b1e2b]: The teacher, the father, the mother, and an elder brother must not be treated with disrespect, especially by a Brahmana, though one be grievously offended (by them). The teacher is the image of Brahman, the father the image of Pragipati (the lord of created beings), the mother the image of the earth, and an (elder) full brother the image of oneself.
|
|
88
|
+
|
|
89
|
+
law[67ed859bc36efc6db97b1e2c]: A Brahmana who thus passes his life as a student without breaking his vow, reaches (after death) the highest abode and will not be born again in this world.
|
|
90
|
+
|
|
91
|
+
::begin:hidden
|
|
92
|
+
#color = {{profile.color}}
|
|
93
|
+
#bgcolor = {{profile.bgcolor}}
|
|
94
|
+
#bg = {{profile.background}}
|
|
95
|
+
::end:hidden
|
|
96
|
+
copyright: (c)2025 Quinn Michaels
|
|
97
|
+
|
|
98
|
+
Om Narah Nara Narayana Pragapati Parameshthin
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# Manu Laws 03
|
|
2
|
+
|
|
3
|
+
button[Back]: #veda help laws/main
|
|
4
|
+
|
|
5
|
+
law[67ee1598c36efc6db97b1e2d]: A student who has studied in due order the three Vedas, or two, or even one only, without breaking the rules of studentship, shall enter The Order of Householders.
|
|
6
|
+
|
|
7
|
+
law[67ee15a7c36efc6db97b1e2e]: He who is famous for the strict performance of his duties and has received his heritage, the Veda, from his father, shall be honoured.
|
|
8
|
+
|
|
9
|
+
law[67ee15b2c36efc6db97b1e2f]: When (the father) gives away his daughter according to the rule, after receiving from the bridegroom, for (the fulfilment of) the sacred law, a cow and a bull or two pairs, that is named the Arsha rite.
|
|
10
|
+
|
|
11
|
+
law[67ee15bbc36efc6db97b1e30]: The voluntary union of a maiden and her lover one must know (to be) the Gandharva rite, which springs from desire and has sexual intercourse for its purpose.
|
|
12
|
+
|
|
13
|
+
law[67ee15e1c36efc6db97b1e31]: When (the bridegroom) receives a maiden, after having given as much wealth as he can afford, to the kinsmen and to the bride herself, according to his own will, that is called the Asura rite.
|
|
14
|
+
|
|
15
|
+
law[67ee15efc36efc6db97b1e32]: The forcible abduction of a maiden from her home, while she cries out and weeps, after (her kinsmen) have been slain or wounded and (their houses) broken open, is called the Rakshasa rite.
|
|
16
|
+
|
|
17
|
+
law[67ee15f9c36efc6db97b1e33]: When (a man) by stealth seduces a girl who is sleeping, intoxicated, or disordered in intellect, that is the eighth, the most base and sinful Pisakas rite.
|
|
18
|
+
|
|
19
|
+
law: The son born of a wife, wedded according to the Daiva rite, likewise (saves) seven ancestors and seven descendants, the son of a wife married by the Arsha rite three (in the ascending and descending lines), and the son of a wife married by the rite of Ka (Pragapati) six (in either line).
|
|
20
|
+
|
|
21
|
+
law[67ee1602c36efc6db97b1e34]: From the four marriages, (Brahma rite, Daiva rite, Arsha rite, Ka rite) successively, which begin with the Brahma rite spring sons, radiant with knowledge of the Veda and honoured by the Sishtas (good men).
|
|
22
|
+
|
|
23
|
+
law[67ee160dc36efc6db97b1e35]: On the even nights sons are conceived and daughters on the uneven ones; hence a man who desires to have sons should approach his wife in due season on the even (nights).
|
|
24
|
+
|
|
25
|
+
law[67ee1617c36efc6db97b1e36]: A male child is produced by a greater quantity of male seed, a female child by the prevalence of the female; if (both are) equal, a hermaphrodite or a boy and a girl; if (both are) weak or deficient in quantity, a failure of conception (results).
|
|
26
|
+
|
|
27
|
+
law[67ee1623c36efc6db97b1e37]: Women must be honoured and adorned by their fathers, brothers, husbands, and brothers-in-law, who desire (their own) welfare. Where women are honoured, there the gods are pleased; but where they are not honoured, no sacred rite yields rewards.
|
|
28
|
+
|
|
29
|
+
law[67ee162ec36efc6db97b1e38]: Where the female relations live in grief, the family soon wholly perishes; but that family where they are not unhappy ever prospers.
|
|
30
|
+
|
|
31
|
+
law[67ee1639c36efc6db97b1e39]: The houses on which female relations, not being duly honoured, pronounce a curse, perish completely, as if destroyed by magic.
|
|
32
|
+
|
|
33
|
+
law[67ee1645c36efc6db97b1e3a]: Hence men who seek (their own) welfare, should always honour women with gifts of ornaments, clothes, and dainty food.
|
|
34
|
+
|
|
35
|
+
law[67ee1654c36efc6db97b1e3b]: In that family, where the husband is pleased with his wife and the wife with her husband, happiness will assuredly be lasting.
|
|
36
|
+
|
|
37
|
+
law[67ee165dc36efc6db97b1e3c]: For if the wife is not radiant with beauty, she will not attract her husband; but if she has no attractions for him, no children will be born. If the wife is radiant with beauty, the whole house is bright; but if she is destitute of beauty, all will appear dismal.
|
|
38
|
+
|
|
39
|
+
law[67ee1667c36efc6db97b1e3d]: Teaching and studying is the sacrifice offered to Brahman, the offerings of water and food called Tarpana the sacrifice to the manes, the burnt oblation the sacrifice offered to the gods, the Bali offering that offered to the Bhutas, and the hospitable reception of guests the offering to men. But he who does not feed these five, the gods, his guests, those whom he is bound to maintain, the manes, and himself, lives not, though he breathes. They call (these) five sacrifices also, Ahuta, Huta, Prahuta, Brahmya-huta, and Prasita.
|
|
40
|
+
|
|
41
|
+
law: Ahuta (not offered in the fire) is the muttering (of Vedic texts), Huta the burnt oblation (offered to the gods), Prahuta (offered by scattering it on the ground) the Bali offering given to the Bhutas, Brahmya-huta (offered in the digestive fire of Brahmanas), the respectful reception of Brahmana (guests), and Prasita (eaten) the (daily oblation to the manes, called) Tarpana.
|
|
42
|
+
|
|
43
|
+
law: As all living creatures subsist by receiving support from air, even so (the members of) all orders subsist by receiving support from the Householder. Because men of the three (other) orders are daily supported by the Householder with (gifts of) sacred knowledge and food, therefore The Order of Householders is the most excellent order. The duties of this order, which cannot be practised by men with weak organs, must be carefully observed by him who desires imperishable bliss in heaven, and constant happiness in this life.
|
|
44
|
+
|
|
45
|
+
law: The sages, the manes, the gods, the Bhutas, and guests ask the Householders for offerings and gifts. Hence he who knows the law, must give to them what is due to each.
|
|
46
|
+
|
|
47
|
+
law: Let him worship, according to the rule, the sages by the private recitation of the Veda, the gods by burnt oblations, the manes by ancestral offerings (Sraddha), men by (gifts of) food, and the Bhutas by the Bali offering.
|
|
48
|
+
|
|
49
|
+
law: Let him daily perform a Sraddha sacrifice with food, or with water, or also with milk, roots, and fruits, and (thus) please the manes.
|
|
50
|
+
|
|
51
|
+
law: After having thus duly offered the sacrificial food, let him throw Bali offerings to Pragapati (the lord of creatures), to heaven and earth conjointly in all directions of the compass, proceeding (from the east) to the south, to Indra, Yama, Varuna, and Soma, as well as to the servants (of these deities). Let him gently place on the ground (some food) for dogs, outcasts, Kandalas (Svapak), those afflicted with diseases that are punishments of former sins, crows, and insects.
|
|
52
|
+
|
|
53
|
+
law: That Brahmana who thus daily honours all beings, goes, endowed with a resplendent body, by a straight road to the highest dwelling-place (i.e. Brahman).
|
|
54
|
+
|
|
55
|
+
law: The oblations to gods and manes, made by men ignorant (of the law of gifts), are lost, if the givers in their folly present (shares of them) to Brahmanas who are mere ashes.
|
|
56
|
+
|
|
57
|
+
law: Let him offer, in accordance with the rule, to a guest who has come (of his own accord) a seat and water, as well as food, garnished (with seasoning), according to his ability.
|
|
58
|
+
|
|
59
|
+
law: A Brahmana who stays unhonoured (in the house), takes away (with him) all the spiritual merit even of a man who subsists by gleaning ears of corn, or offers oblations in five fires.
|
|
60
|
+
|
|
61
|
+
law: A known guest who is sent by the setting sun in the evening, must not be driven away by a Householder; whether he have come at supper-time or at an inopportune moment, he must not stay in the house without entertainment.
|
|
62
|
+
|
|
63
|
+
law: Let him not eat any (dainty) food which he does not offer to his guest; the hospitable reception of guests procures wealth, fame, long life, and heavenly bliss.
|
|
64
|
+
|
|
65
|
+
law: Without hesitation he may give food, even before his guests, to the following persons, (viz.) to newly-married women, to infants, to the sick, and to pregnant women.
|
|
66
|
+
|
|
67
|
+
law: After the Brahmanas, the kinsmen, and the servants have dined, the Householder and his wife may afterwards eat.
|
|
68
|
+
|
|
69
|
+
law: Having honoured the gods, the sages, men, the manes, and the guardian deities of the house, the Householder shall eat afterwards
|
|
70
|
+
|
|
71
|
+
law: Oblations to the gods and manes must be presented by the givers to a Srotriya alone; what is given to such a most worthy Brahmana yields great reward.
|
|
72
|
+
|
|
73
|
+
law: Food sacred to the manes or to the gods must be given to a man distinguished by sacred knowledge; for hands, smeared with blood, cannot be cleansed with blood.
|
|
74
|
+
|
|
75
|
+
law: Some Brahmanas are devoted to (the pursuit of) knowledge, and others to (the performance of) austerities; some to austerities and to the recitation of the Veda, and others to (the performance of) sacred rites.
|
|
76
|
+
|
|
77
|
+
law: A present made in accordance with the rules to a learned man, makes the giver and the recipient partakers of rewards both in this (life) and after death.
|
|
78
|
+
|
|
79
|
+
law: Those men must be considered as the sanctifiers of a company who are most learned in all the Vedas and in all the Angas, and who are the descendants of Srotriyas. A Trinakiketa, one who keeps five sacred fires, a Trisuparna, one who is versed in the six Angas, the son of a woman married according to the Brahma rite, one who sings the Gyeshthasaman, one who knows the meaning of the Veda, and he who expounds it, a student, and a centenarian must be considered as Brahmanas who sanctify a company.
|
|
80
|
+
|
|
81
|
+
law: The Somasads, the sons of Virag, are stated to be the manes of the Sadhyas, and the Agnishvattas, the children of Mariki, are famous in the world (as the manes) of the gods.
|
|
82
|
+
|
|
83
|
+
law: The manes are always pleased with offerings made in open, naturally pure places, on the banks of rivers, and in secluded spots.
|
|
84
|
+
|
|
85
|
+
law: Whatever may please the Brahmanas, let him give without grudging it.
|
|
86
|
+
|
|
87
|
+
law: To a Brahmana (householder), or to an ascetic who comes for food, he may, with the permission of (his) Brahmana (guests), show honour according to his ability.
|
|
88
|
+
|
|
89
|
+
The Brahmana (guests) shall then answer him, 'Let there be Svadha;' for at all rites in honour of the manes the word Svadha is the highest benison.
|
|
90
|
+
::begin:hidden
|
|
91
|
+
#color = {{profile.color}}
|
|
92
|
+
#bgcolor = {{profile.bgcolor}}
|
|
93
|
+
#bg = {{profile.background}}
|
|
94
|
+
::end:hidden
|
|
95
|
+
copyright: (c)2025 Quinn Michaels
|
|
96
|
+
|
|
97
|
+
Om Svayambhu Narah Nara Narayana Pragapati Parameshthin Vivasvat Visvakarman Bali Bhutas Indu Pavamana Indra Yama Varuna Soma Hiranyagarbha Virag Somasads Sadhya Mariki Svadha Om
|
package/index.js
CHANGED
|
@@ -12,6 +12,8 @@ import {dirname} from 'node:path';
|
|
|
12
12
|
import {fileURLToPath} from 'node:url';
|
|
13
13
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
14
14
|
|
|
15
|
+
import querystring from 'node:querystring';
|
|
16
|
+
|
|
15
17
|
const info = {
|
|
16
18
|
id: pkg.id,
|
|
17
19
|
name: pkg.name,
|
|
@@ -46,7 +48,7 @@ const VEDA = new Deva({
|
|
|
46
48
|
const agent = this.agent();
|
|
47
49
|
const {id, title, describe, DATA} = rigveda.index;
|
|
48
50
|
const _text = [
|
|
49
|
-
`::
|
|
51
|
+
`::BEGIN:BOOKS:${id}`,
|
|
50
52
|
`## ${title}`,
|
|
51
53
|
`p: ${describe}`,
|
|
52
54
|
'::begin:menu',
|
|
@@ -54,30 +56,27 @@ const VEDA = new Deva({
|
|
|
54
56
|
const _books = [];
|
|
55
57
|
// loop over the data and format it into a feecting command string
|
|
56
58
|
DATA.forEach((book, idx) => {
|
|
57
|
-
_books.push(`button[${book.title}]
|
|
59
|
+
_books.push(`button[${book.title}]:${this.askChr}${agent.key} book ${book.key}`);
|
|
58
60
|
});
|
|
59
61
|
const _booksText = _books.join('\n');
|
|
60
62
|
const _booksHash = this.lib.hash(_booksText);
|
|
61
63
|
_text.push(_booksText);
|
|
62
64
|
_text.push(`::end:menu`);
|
|
63
|
-
_text.push(`::end:${agent.key}:${_booksHash}`);
|
|
64
65
|
_text.push(`::begin:hidden`);
|
|
65
|
-
_text.push(`#color =
|
|
66
|
-
_text.push(`#bgcolor =
|
|
67
|
-
_text.push(`#bg =
|
|
66
|
+
_text.push(`#color = {{profile.color}}`);
|
|
67
|
+
_text.push(`#bgcolor = {{profile.bgcolor}}`);
|
|
68
|
+
_text.push(`#bg = {{profile.background}}`);
|
|
68
69
|
_text.push(`::end:hidden`);
|
|
69
|
-
|
|
70
|
+
_text.push(`::END:BOOKS:${_booksHash}`);
|
|
71
|
+
return resolve({
|
|
70
72
|
id,
|
|
73
|
+
title,
|
|
74
|
+
describe,
|
|
71
75
|
text: _text.join('\n'),
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
title,
|
|
75
|
-
describe,
|
|
76
|
-
books: DATA,
|
|
77
|
-
hash: this.lib.hash(JSON.stringify(DATA)),
|
|
78
|
-
},
|
|
76
|
+
data: DATA,
|
|
77
|
+
hash: this.lib.hash(JSON.stringify(DATA)),
|
|
79
78
|
created: Date.now(),
|
|
80
|
-
}
|
|
79
|
+
});
|
|
81
80
|
} catch (e) {
|
|
82
81
|
return reject(e);
|
|
83
82
|
}
|
|
@@ -94,13 +93,13 @@ const VEDA = new Deva({
|
|
|
94
93
|
try {
|
|
95
94
|
const agent = this.agent();
|
|
96
95
|
const key = text.length < 2 ? `0${text}` : text;
|
|
97
|
-
const theFile = this.lib.fs.readFileSync(
|
|
96
|
+
const theFile = this.lib.fs.readFileSync(`${__dirname}/data/rigveda/${key}.json`);
|
|
98
97
|
const theJSON = JSON.parse(theFile);
|
|
99
98
|
|
|
100
99
|
const {id, title, describe, DATA} = theJSON;
|
|
101
100
|
|
|
102
101
|
const _text = [
|
|
103
|
-
`::
|
|
102
|
+
`::BEGIN:BOOK:${id}`,
|
|
104
103
|
`## ${title}`,
|
|
105
104
|
`p: ${describe}`,
|
|
106
105
|
'::begin:menu',
|
|
@@ -113,25 +112,22 @@ const VEDA = new Deva({
|
|
|
113
112
|
const _hymnsHash = this.lib.hash(_hymnsText);
|
|
114
113
|
_text.push(_hymnsText);
|
|
115
114
|
_text.push(`::end:menu`);
|
|
116
|
-
_text.push(`::end:${agent.key}:${_hymnsHash}`);
|
|
117
115
|
_text.push(`::begin:hidden`);
|
|
118
|
-
_text.push(`#color =
|
|
119
|
-
_text.push(`#bgcolor =
|
|
120
|
-
_text.push(`#bg =
|
|
116
|
+
_text.push(`#color = {{profile.color}}`);
|
|
117
|
+
_text.push(`#bgcolor = {{profile.bgcolor}}`);
|
|
118
|
+
_text.push(`#bg = {{profile.background}}`);
|
|
121
119
|
_text.push(`::end:hidden`);
|
|
120
|
+
_text.push(`::END:BOOK:${_hymnsHash}`);
|
|
122
121
|
|
|
123
|
-
return
|
|
122
|
+
return resolve({
|
|
124
123
|
id,
|
|
124
|
+
title,
|
|
125
|
+
describe,
|
|
125
126
|
text: _text.join('\n'),
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
title,
|
|
129
|
-
describe,
|
|
130
|
-
hymns: DATA,
|
|
131
|
-
hash: this.lib.hash(JSON.stringify(DATA)),
|
|
132
|
-
},
|
|
127
|
+
data: DATA,
|
|
128
|
+
hash: this.lib.hash(JSON.stringify(DATA)),
|
|
133
129
|
created: Date.now(),
|
|
134
|
-
}
|
|
130
|
+
});
|
|
135
131
|
} catch (e) {
|
|
136
132
|
return reject(e);
|
|
137
133
|
}
|
|
@@ -165,6 +161,8 @@ const VEDA = new Deva({
|
|
|
165
161
|
processed.text,
|
|
166
162
|
'::end:content',
|
|
167
163
|
'::begin:meta',
|
|
164
|
+
`button[💬 Ask Veda]:#veda ask Om Please write a story about this Vedic Hymn > ${encodeURIComponent(processed.text)} Om`,
|
|
165
|
+
`button[🔈 Speak Hymn]:#chat speech:${agent.profile.voice} ${encodeURIComponent(processed.text)}`,
|
|
168
166
|
`key: ${processed.key}`,
|
|
169
167
|
`title: ${processed.title}`,
|
|
170
168
|
processed.people.length ? `people: ${processed.people.join(', ')}` : '',
|
|
@@ -174,9 +172,9 @@ const VEDA = new Deva({
|
|
|
174
172
|
processed.concepts.length ? `concepts: ${processed.concepts.join(', ')}` : '',
|
|
175
173
|
'::end:meta',
|
|
176
174
|
`::begin:hidden`,
|
|
177
|
-
`#color =
|
|
178
|
-
`#bgcolor =
|
|
179
|
-
`#bg =
|
|
175
|
+
`#color = {{profile.color}}`,
|
|
176
|
+
`#bgcolor = {{profile.bgcolor}}`,
|
|
177
|
+
`#bg = {{profile.background}}`,
|
|
180
178
|
`::end:hidden`,
|
|
181
179
|
`::END:HYMN:${this.lib.hash(processed)}`,
|
|
182
180
|
];
|
|
@@ -195,73 +193,6 @@ const VEDA = new Deva({
|
|
|
195
193
|
}
|
|
196
194
|
});
|
|
197
195
|
},
|
|
198
|
-
learnSetup(book=0) {
|
|
199
|
-
this.vars.learn.books = rigveda.books.map(bk => bk.key);
|
|
200
|
-
this.vars.learn.book = book;
|
|
201
|
-
this.vars.learn.hymns = rigveda.books[this.vars.learn.book].map(itm => itm.key);
|
|
202
|
-
this.vars.learn.hymn1 = this.vars.learn.hymns.shift();
|
|
203
|
-
this.vars.learn.hymn2 = this.vars.learn.hymns.shift();
|
|
204
|
-
this.vars.learn.hymn3 = this.vars.learn.hymns.shift();
|
|
205
|
-
return true;
|
|
206
|
-
},
|
|
207
|
-
learnHymns() {
|
|
208
|
-
const { learn } = this.vars;
|
|
209
|
-
this.vars.learn.training = []; // set the training array for the current learn.
|
|
210
|
-
if (!learn.hymns.length) {
|
|
211
|
-
const nextBookIndex = learn.book + 1 === rigveda.books.length ? 0 : learn.book + 1;
|
|
212
|
-
this.func.learnSetup(nextBookIndex);
|
|
213
|
-
}
|
|
214
|
-
else {
|
|
215
|
-
this.vars.learn.hymn1 = this.vars.learn.hymn2;
|
|
216
|
-
this.vars.learn.hymn2 = this.vars.learn.hymn3;
|
|
217
|
-
this.vars.learn.hymn3 = this.vars.learn.hymns.shift();
|
|
218
|
-
}
|
|
219
|
-
return true;
|
|
220
|
-
},
|
|
221
|
-
|
|
222
|
-
learn() {
|
|
223
|
-
return new Promise((resolve, reject) => {
|
|
224
|
-
this.prompt(`hymns: ${this.vars.learn.hymn1} ${this.vars.learn.hymn1} ${this.vars.learn.hymn1}`)
|
|
225
|
-
this.prompt(`get hymn 1: ${this.vars.learn.hymn1}`)
|
|
226
|
-
this.func.hymn(this.vars.learn.hymn1).then(hymn1 => {
|
|
227
|
-
this.vars.learn.training.push(hymn1.data);
|
|
228
|
-
this.prompt(`get hymn 2: ${this.vars.learn.hymn2}`)
|
|
229
|
-
return this.func.hymn(this.vars.learn.hymn2)
|
|
230
|
-
}).then(hymn2 => {
|
|
231
|
-
this.vars.learn.training.push(hymn2.data);
|
|
232
|
-
this.prompt(`get hymn 3: ${this.vars.learn.hymn3}`)
|
|
233
|
-
return this.func.hymn(this.vars.learn.hymn3)
|
|
234
|
-
}).then(hymn3 => {
|
|
235
|
-
this.vars.learn.training.push(hymn3.data);
|
|
236
|
-
const text = [];
|
|
237
|
-
|
|
238
|
-
this.vars.learn.training.forEach((item, index) => {
|
|
239
|
-
if (!item) return;
|
|
240
|
-
const hymn = [
|
|
241
|
-
`::begin:hymn:${item.key}`,
|
|
242
|
-
this.trimWords(item.text, 150),
|
|
243
|
-
`::end:hymn:${this.lib.hash(item.text)}`,
|
|
244
|
-
]
|
|
245
|
-
const info = [
|
|
246
|
-
`people: ${item.people.join(', ')}`,
|
|
247
|
-
`places: ${item.places.join(', ')}`,
|
|
248
|
-
`things: ${item.things.join(', ')}`,
|
|
249
|
-
`groups: ${item.groups.join(', ')}`,
|
|
250
|
-
`concepts: ${item.concepts.join(', ')}`,
|
|
251
|
-
]
|
|
252
|
-
info.unshift(`::begin:info:${item.key}`);
|
|
253
|
-
info.push(`::end:info:${this.lib.hash(info.join('\n'))}`);
|
|
254
|
-
text.push(hymn.join('\n'));
|
|
255
|
-
text.push(info.join('\n'));
|
|
256
|
-
});
|
|
257
|
-
return resolve({
|
|
258
|
-
text: text.join('\n'),
|
|
259
|
-
html: false,
|
|
260
|
-
data: this.vars.learn,
|
|
261
|
-
});
|
|
262
|
-
}).catch(reject)
|
|
263
|
-
});
|
|
264
|
-
},
|
|
265
196
|
|
|
266
197
|
},
|
|
267
198
|
methods: {
|
|
@@ -274,11 +205,12 @@ const VEDA = new Deva({
|
|
|
274
205
|
this.context('books');
|
|
275
206
|
return new Promise((resolve, reject) => {
|
|
276
207
|
if (!packet) return reject(this._messages.nopacket);
|
|
277
|
-
|
|
208
|
+
const data = {};
|
|
278
209
|
this.func.books().then(books => {
|
|
279
|
-
data = books;
|
|
280
|
-
return this.question(
|
|
210
|
+
data.books = books;
|
|
211
|
+
return this.question(`${this.askChr}feecting parse ${books.text}`);
|
|
281
212
|
}).then(feecting => {
|
|
213
|
+
data.feecting = feecting;
|
|
282
214
|
return resolve({
|
|
283
215
|
text:feecting.a.text,
|
|
284
216
|
html:feecting.a.html,
|
|
@@ -300,11 +232,12 @@ const VEDA = new Deva({
|
|
|
300
232
|
if (!packet) return reject(this._messages.nopacket);
|
|
301
233
|
this.context('book', packet.q.text);
|
|
302
234
|
const agent = this.agent();
|
|
303
|
-
|
|
235
|
+
const data = {};
|
|
304
236
|
this.func.book(packet.q.text).then(book => {
|
|
305
|
-
data = book;
|
|
306
|
-
return this.question(
|
|
237
|
+
data.book = book;
|
|
238
|
+
return this.question(`${this.askChr}feecting parse ${book.text}`);
|
|
307
239
|
}).then(feecting => {
|
|
240
|
+
data.feecting = feecting;
|
|
308
241
|
return resolve({
|
|
309
242
|
text:feecting.a.text,
|
|
310
243
|
html:feecting.a.html,
|
|
@@ -331,18 +264,11 @@ const VEDA = new Deva({
|
|
|
331
264
|
data = hymn.data
|
|
332
265
|
const {text} = hymn;
|
|
333
266
|
|
|
334
|
-
this.talk(`chat:location`, {
|
|
335
|
-
id: this.lib.uid(),
|
|
336
|
-
data: `We are studying ${hymn.title} of the Rig Veda`,
|
|
337
|
-
created: Date.now()
|
|
338
|
-
});
|
|
339
|
-
|
|
340
267
|
this.talk(`chat:topic`, {
|
|
341
268
|
id: this.lib.uid(),
|
|
342
269
|
data: `Current topic is Rig Veda hymn ${text}`,
|
|
343
270
|
created: Date.now(),
|
|
344
271
|
});
|
|
345
|
-
|
|
346
272
|
return this.question(`${this.askChr}feecting parse:${agent.key} ${text}`);
|
|
347
273
|
}).then(feecting => {
|
|
348
274
|
return resolve({
|
|
@@ -366,36 +292,6 @@ const VEDA = new Deva({
|
|
|
366
292
|
return this.methods.hymn(packet);
|
|
367
293
|
},
|
|
368
294
|
|
|
369
|
-
/**************
|
|
370
|
-
method: learn
|
|
371
|
-
params: packet
|
|
372
|
-
describe: Call the learn function to read a specific book
|
|
373
|
-
***************/
|
|
374
|
-
learn(packet) {
|
|
375
|
-
this.context('learn');
|
|
376
|
-
let data, text;
|
|
377
|
-
return new Promise((resolve, reject) => {
|
|
378
|
-
this.func.learn().then(learn => {
|
|
379
|
-
data = learn.data;
|
|
380
|
-
text = learn.text;
|
|
381
|
-
packet.q.text = learn.text;
|
|
382
|
-
return this.func.chat(packet);
|
|
383
|
-
}).then(chat => {
|
|
384
|
-
console.log('CHAT RETURN', chat);
|
|
385
|
-
return this.question(`#feecting parse ${text}`);
|
|
386
|
-
}).then(feecting => {
|
|
387
|
-
this.func.learnHymns();
|
|
388
|
-
return resolve({
|
|
389
|
-
text: feecting.a.text,
|
|
390
|
-
html: feecting.a.html,
|
|
391
|
-
data,
|
|
392
|
-
})
|
|
393
|
-
}).catch(err => {
|
|
394
|
-
return this.error(err, packet, reject);
|
|
395
|
-
})
|
|
396
|
-
});
|
|
397
|
-
},
|
|
398
|
-
|
|
399
295
|
async json(packet) {
|
|
400
296
|
this.context('json');
|
|
401
297
|
// here we want to build text files for all the books that we can use in a custom agent.
|
|
@@ -412,7 +308,7 @@ const VEDA = new Deva({
|
|
|
412
308
|
describe: book.describe,
|
|
413
309
|
link: `https://indra.ai/rigveda/books/${book.key}.html`,
|
|
414
310
|
hymns: [],
|
|
415
|
-
copyright: '©
|
|
311
|
+
copyright: '©2025 Quinn Michaels (indra.ai). All rights reserved.',
|
|
416
312
|
created: this.formatDate(Date.now(), 'long', true),
|
|
417
313
|
};
|
|
418
314
|
|
|
@@ -436,9 +332,8 @@ const VEDA = new Deva({
|
|
|
436
332
|
};
|
|
437
333
|
jsonbook.hymns.push(hymn);
|
|
438
334
|
}
|
|
439
|
-
|
|
440
335
|
const jsonfile = this.lib.path.join(__dirname, 'data', 'json', `rigveda-book-${book.key}.json`);
|
|
441
|
-
this.prompt(`writing json ${jsonfile}`)
|
|
336
|
+
this.prompt(`writing json ${jsonfile}`);
|
|
442
337
|
this.state('data', `Writing json ${jsonfile}`);
|
|
443
338
|
this.lib.fs.writeFileSync(jsonfile, JSON.stringify(jsonbook));
|
|
444
339
|
});
|
|
@@ -456,7 +351,6 @@ const VEDA = new Deva({
|
|
|
456
351
|
}
|
|
457
352
|
},
|
|
458
353
|
onReady(data, resolve) {
|
|
459
|
-
this.func.learnSetup();
|
|
460
354
|
this.prompt(this.vars.messages.ready);
|
|
461
355
|
return resolve(data);
|
|
462
356
|
},
|